8e4be257a8a51a39e095852cc8f0c87ea0d25fc5
[external/binutils.git] / gdb / ChangeLog
1 2014-12-08  Doug Evans  <dje@google.com>
2
3         * NEWS: Mention gdb.Objfile.owner.
4         * python/py-objfile.c (objfpy_get_owner): New function.
5         (objfile_getset): Add "owner".
6
7 2014-12-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
8
9         * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
10         (lookup_global_symbol_from_objfile): Call it.
11
12 2014-12-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
13
14         Remove const from struct objfile *.
15         * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
16         symtab.c, symtab.h: In these files.
17
18 2014-12-05  Andreas From  <andreas.from@ericsson.com>
19
20         * MAINTAINERS (Write After Approval): Add "Andreas From"
21
22 2014-12-05  Doug Evans  <xdje42@gmail.com>
23
24         Revert:
25         PR symtab/17602
26         * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
27
28 2014-12-04  Doug Evans  <dje@google.com>
29
30         * NEWS: Mention gdb.Objfile.add_separate_debug_file.
31         * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
32         (objfile_getset): Add "add_separate_debug_file".
33
34 2014-12-04  Doug Evans  <dje@google.com>
35
36         * NEWS: Mention gdb.Objfile.build_id.
37         * build-id.c (build_id_bfd_get): Make non-static.
38         * build-id.h (build_id_bfd_get): Add declaration.
39         * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
40         (OBJFPY_REQUIRE_VALID): New macro.
41         (objfpy_get_build_id): New function.
42         (objfile_getset): Add "build_id".
43         * utils.c (make_hex_string): New function.
44         * utils.h (make_hex_string): Add declaration.
45
46 2014-12-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
47
48         * block.c (block_lookup_symbol_primary): New function.
49         * block.h (block_lookup_symbol_primary): New declaration.
50         * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
51         Call block_lookup_symbol_primary.
52
53 2014-12-03  Maciej W. Rozycki  <macro@codesourcery.com>
54
55         * tramp-frame.h (tramp_frame): Add `validate' member.
56         * tramp-frame.c (tramp_frame_start): Validate trampoline before
57         scanning.
58         * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
59         (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
60         (mips_linux_o32_sigframe): Initialize `validate' member.
61         (mips_linux_o32_rt_sigframe): Likewise.
62         (mips_linux_n32_rt_sigframe): Likewise.
63         (mips_linux_n64_rt_sigframe): Likewise.
64         (micromips_linux_o32_sigframe): New variable.
65         (micromips_linux_o32_rt_sigframe): Likewise.
66         (micromips_linux_n32_rt_sigframe): Likewise.
67         (micromips_linux_n64_rt_sigframe): Likewise.
68         (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
69         (mips_linux_n32n64_sigframe_init): Likewise.
70         (mips_linux_sigframe_validate): New function.
71         (micromips_linux_sigframe_validate): Likewise.
72         (mips_linux_init_abi): Install microMIPS trampoline unwinders.
73
74 2014-12-03  Ulrich Weigand  <uweigand@de.ibm.com>
75
76         * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
77         * sparc-sol2-tdep.c: Include "regset.h".
78         (sparc32_sol2_supply_core_gregset): New function.
79         (sparc32_sol2_collect_core_gregset): Likewise.
80         (sparc32_sol2_supply_core_fpregset): Likewise.
81         (sparc32_sol2_collect_core_fpregset): Likewise.
82         (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
83         (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
84         tdep->fpregset/sizeof_fpregset.
85         * sparc64-sol2-tdep.c: Include "regset.h".
86         (sparc64_sol2_supply_core_gregset): New function.
87         (sparc64_sol2_collect_core_gregset): Likewise.
88         (sparc64_sol2_supply_core_fpregset): Likewise.
89         (sparc64_sol2_collect_core_fpregset): Likewise.
90         (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
91         (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
92         tdep->fpregset/sizeof_fpregset.
93
94 2014-12-03  Simon Marchi  <simon.marchi@ericsson.com>
95
96         * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
97         type.
98
99 2014-12-02  Doug Evans  <dje@google.com>
100
101         * symtab.c (symbol_init_cplus_specific): Delete.
102         (symbol_set_demangled_name): Remove special c++ support.
103         (symbol_get_demangled_name, symbol_set_language): Ditto.
104         * symtab.h (struct cplus_specific): Delete.
105         (struct general_symbol_info) <language_specific>: Remove
106         cplus_specific.
107
108 2014-12-02  Doug Evans  <dje@google.com>
109
110         PR symtab/17602
111         * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
112
113 2014-12-02  Doug Evans  <dje@google.com>
114
115         PR symtab/17591
116         * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
117         to strip parameters.
118
119 2014-12-02  Doug Evans  <dje@google.com>
120
121         * dwarf2read.c (peek_die_abbrev): Improve error message text.
122
123 2014-12-02  Doug Evans  <dje@google.com>
124
125         * valops.c (do_search_struct_field): Remove remnant of Chill support.
126         Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
127
128 2014-12-02  Simon Marchi  <simon.marchi@ericsson.com>
129
130         * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
131
132 2014-12-02  Nick Bull  <nicholaspbull@gmail.com>
133
134         * NEWS: Mention new Python events.
135         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
136         (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
137         (py-infevents.o): New rule.
138         * doc/observer.texi (inferior_call_pre, inferior_call_post)
139         (memory_changed, register_changed): New observers.
140         * infcall.c (call_function_by_hand): Notify observer before and
141         after inferior call.
142         * python/py-event.h (inferior_call_kind): New enum.
143         (emit_inferior_call_event): New prototype.
144         (emit_register_changed_event): New prototype.
145         (emit_memory_changed_event): New prototype.
146         * python/py-events.h (events_object): New registries
147         inferior_call, memory_changed and register_changed.
148         * python/py-evts.c (gdbpy_initialize_py_events): Add the
149         inferior_call, memory_changed and register_changed registries.
150         * python/py-infevents.c: New.
151         * python/py-inferior.c (python_on_inferior_call_pre)
152         (python_on_inferior_call_post, python_on_register_change)
153         (python_on_memory_change): New functions.
154         (gdbpy_initialize_inferior): Attach python handler to new
155         observers.
156         * python/py-infthread.c(gdbpy_create_ptid_object): New.
157         (thpy_get_ptid) Use gdbpy_create_ptid_object.
158         * python/python-internal.h:
159         (gdbpy_create_ptid_object)
160         (gdbpy_initialize_inferior_call_pre_event)
161         (gdbpy_initialize_inferior_call_post_event)
162         (gdbpy_initialize_register_changed_event)
163         (gdbpy_initialize_memory_changed_event): New prototypes.
164         * python/python.c (_initialize_python): Initialize new events.
165         * valops.c (value_assign): Notify register_changed observer.
166
167 2014-12-02  Doug Evans  <dje@google.com>
168
169         * python/py-infthread.c: Whitespace fixes.
170
171 2014-12-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
172
173         * features/Makefile (s390-te-linux64-expedite): Replace
174         non-existant r14 and r15 by r14l and r15l, respectively.
175         * regformats/s390-te-linux64.dat: Regenerate.
176
177 2014-12-01  Simon Marchi  <simon.marchi@ericsson.com>
178
179         * objfiles.c (allocate_objfile): Remove duplicate comment.
180
181 2014-12-01  Ulrich Weigand  <uweigand@de.ibm.com>
182
183         * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
184         * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
185         (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
186         (supply_gregset, supply_fpregset): Remove.
187         * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
188         (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
189         and sizeof_gregset.
190
191 2014-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
192
193         Add add-auto-load-scripts-directory.
194         * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
195         * auto-load.c (add_auto_load_dir): New function.
196         (_initialize_auto_load): Install it.
197
198 2014-11-30  Martin Galvan  <martin.galvan@tallertechnologies.com>  (tiny patch, obvious)
199
200         Pushed by Joel Brobecker  <brobecker@adacore.com>.
201         * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
202
203 2014-11-29  Siva Chandra Reddy  <sivachandra@google.com>
204
205         * eval.c (evaluate_subexp): Check that the thread stack temporaries
206         are not already enabled before enabling them.
207
208 2014-11-29  Yao Qi  <yao@codesourcery.com>
209
210         * arm-tdep.c (arm_analyze_prologue): Move local variables
211         'framereg' and 'framesize' to inner block.  Move code to
212         inner block too.
213
214 2014-11-28  Siva Chandra Reddy  <sivachandra@google.com>
215
216         * eval.c: Include gdbthread.h.
217         (evaluate_subexp): Enable thread stack temporaries before
218         evaluating a complete expression and clean them up after the
219         evaluation is complete.
220         * gdbthread.h: Include common/vec.h.
221         (value_ptr): New typedef.
222         (VEC (value_ptr)): New vector type.
223         (value_vec): New typedef.
224         (struct thread_info): Add new fields stack_temporaries_enabled
225         and stack_temporaries.
226         (enable_thread_stack_temporaries)
227         (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
228         (get_last_thread_stack_temporary)
229         (value_in_thread_stack_temporaries): Declare.
230         * gdbtypes.c (class_or_union_p): New function.
231         * gdbtypes.h (class_or_union_p): Declare.
232         * infcall.c (call_function_by_hand): Store return values of class
233         type as temporaries on stack.
234         * thread.c (enable_thread_stack_temporaries): New function.
235         (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
236         (get_last_thread_stack_temporary): Likewise.
237         (value_in_thread_stack_temporaries): Likewise.
238         * value.c (value_force_lval): New function.
239         * value.h (value_force_lval): Declare.
240
241 2014-11-28  Pierre Muller  <muller@sourceware.org>
242
243         Pushed by Joel Brobecker  <brobecker@adacore.com>.
244         * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
245         registers.
246
247 2014-11-28  Ulrich Weigand  <uweigand@de.ibm.com>
248
249         * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
250         * config/sparc/linux.mh (NATDEPFILES): Likewise.
251         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
252         * m68klinux-nat.c (fetch_core_registers): Remove.
253         (linux_elf_core_fns): Remove.
254         (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
255
256 2014-11-28  Joel Brobecker  <brobecker@adacore.com>
257
258         * utils.c (gdb_realpath): Rework comment about handling on
259         Windows.
260
261 2014-11-28  Yao Qi  <yao@codesourcery.com>
262
263         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
264         rename.
265         * gnulib/aclocal.m4: Re-generated.
266         * gnulib/config.in: Re-generated.
267         * gnulib/configure: Re-generated.
268         * gnulib/import/Makefile.am: Re-generated.
269         * gnulib/import/Makefile.in: Re-generated.
270         * gnulib/import/m4/gnulib-cache.m4: Re-generated.
271         * gnulib/import/m4/gnulib-comp.m4: Re-generated.
272         * import/basename-lgpl.c: New file.
273         * import/dirname-lgpl.c: New file.
274         * import/dirname.h: New file.
275         * import/m4/dirname.m4: New file.
276         * import/m4/malloc.m4: New file.
277         * import/m4/rename.m4: New file.
278         * import/m4/rmdir.m4: New file.
279         * import/m4/stdio_h.m4: New file.
280         * import/malloc.c: New file.
281         * import/rename.c: New file.
282         * import/rmdir.c: New file.
283         * import/same-inode.h: New file.
284         * import/stdio.c: New file.
285         * import/stdio.in.h: New file.
286         * import/stripslash.c: New file.
287
288 2014-11-28  Yao Qi  <yao@codesourcery.com>
289
290         * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
291         and realpath.
292         * config.in: Re-generated.
293         * configure: Re-generated.
294         * utils.c (gdb_realpath): Remove code calling realpath,
295         canonicalize_file_name and pathconf.
296         [!_WIN32]: Call canonicalize_file_name.
297
298 2014-11-28  Yao Qi  <yao@codesourcery.com>
299
300         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
301         canonicalize-lgpl.
302         * aclocal.m4: Re-generated.
303         * config.in: Re-generated.
304         * configure: Re-generated.
305         * import/Makefile.am: Re-generated.
306         * import/Makefile.in: Re-generated.
307         * import/m4/gnulib-cache.m4: Re-generated.
308         * import/m4/gnulib-comp.m4: Re-generated.
309         * import/canonicalize-lgpl.c: New file.
310         * import/extra/snippet/_Noreturn.h: New file.
311         * import/m4/canonicalize.m4: New file.
312         * import/m4/double-slash-root.m4: New file.
313         * import/m4/eealloc.m4: New file.
314         * import/m4/malloca.m4: New file.
315         * import/m4/nocrash.m4: New file.
316         * import/m4/stdlib_h.m4: New file.
317         * import/malloca.c: New file.
318         * import/malloca.h: New file.
319         * import/malloca.valgrind: New file.
320
321 2014-11-28  Yao Qi  <yao@codesourcery.com>
322
323         * configure.ac (AC_CHECK_FUNCS): Remove lstat.
324         * config.in, configure: Regenerate.
325         * symfile.c (find_separate_debug_file_by_debuglink): Remove
326         code checking HAVE_LSTAT is defined.
327
328 2014-11-28  Yao Qi  <yao@codesourcery.com>
329
330         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
331         lstat.
332         * gnulib/aclocal.m4: Re-generated.
333         * gnulib/config.in: Re-generated.
334         * gnulib/configure: Re-generated.
335         * gnulib/import/Makefile.am: Re-generated.
336         * gnulib/import/Makefile.in: Re-generated.
337         * gnulib/import/m4/gnulib-cache.m4: Re-generated.
338         * gnulib/import/m4/gnulib-comp.m4: Re-generated.
339         * gnulib/import/lstat.c: New file.
340         * gnulib/import/m4/lstat.m4: New file.
341
342 2014-11-28  Yao Qi  <yao@codesourcery.com>
343
344         * configure.ac (AC_CHECK_FUNCS): Remove readlink.
345         * config.in, configure: Re-generate.
346         * inf-child.c (inf_child_fileio_readlink): Don't check
347         HAVE_READLINK is defined.
348
349 2014-11-28  Yao Qi  <yao@codesourcery.com>
350
351         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
352         * gnulib/aclocal.m4: Re-generated.
353         * gnulib/config.in: Likewise.
354         * gnulib/configure: Likewise.
355         * gnulib/import/Makefile.am: Likewise.
356         * gnulib/import/Makefile.in: Likewise.
357         * gnulib/import/m4/gnulib-cache.m4: Likewise.
358         * gnulib/import/m4/gnulib-comp.m4: Likewise.
359         * gnulib/import/dosname.h: New file
360         * gnulib/import/m4/largefile.m4: New file.
361         * gnulib/import/m4/readlink.m4: New file.
362         * gnulib/import/m4/stat.m4: New file.
363         * gnulib/import/readlink.c: New file.
364         * gnulib/import/stat.c: New file.
365
366 2014-11-26  Mark Wielaard  <mjw@redhat.com>
367
368         * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
369         DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
370
371 2014-11-25  Sandra Loosemore  <sandra@codesourcery.com>
372
373         * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
374         that there can be only one stack adjustment in the prologue
375         with tests to detect specific disallowed stack adjustments.
376
377 2014-11-25  Sandra Loosemore  <sandra@codesourcery.com>
378
379         * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
380         adjustments.
381
382 2014-11-25  Sandra Loosemore  <sandra@codesourcery.com>
383
384         * nios2-tdep.c (nios2_fetch_insn): Move up in file.  Disassemble
385         the instruction as well as reading it from memory.
386         (nios2_match_add): New.
387         (nios2_match_sub): New.
388         (nios2_match_addi): New.
389         (nios2_match_orhi): New.
390         (nios2_match_stw): New.
391         (nios2_match_ldw): New.
392         (nios2_match_rdctl): New.
393         (enum branch_condition): New.
394         (nios2_match_branch): New.
395         (nios2_match_jmpi): New.
396         (nios2_match_calli): New.
397         (nios2_match_jmpr): New.
398         (nios2_match_callr): New.
399         (nios2_match_break): New.
400         (nios2_match_trap): New.
401         (nios2_in_epilogue_p): Rewrite to use new functions.
402         (nios2_analyze_prologue): Likewise.
403         (nios2_skip_prologue): Delete unused local limit_pc.
404         (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
405         (nios2_get_next_pc): Rewrite to use new functions.
406
407 2014-11-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
408
409         * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
410
411 2014-11-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
412
413         Pushed by Joel Brobecker  <brobecker@adacore.com>
414         * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
415         elements pi_len by the size of the elements before calling
416         vm_deallocate.
417         (inf_validate_task_sc): Likewise, and properly deallocate the
418         noise array.
419
420 2014-11-23  Doug Evans  <xdje42@gmail.com>
421
422         * gdbtypes.c (print_args): Renamed from print_arg_types.  Print arg
423         number and name if present.  All callers updated.
424         (dump_fn_fieldlists): Fix indentation of args.
425
426 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
427
428         * MAINTAINERS (Write After Approval): Add myself.
429
430 2014-11-23  Joel Brobecker  <brobecker@adacore.com>
431
432         * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
433         to a bp_call_dummy breakpoint type.
434
435 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
436
437         * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
438         registering the signal handler.
439
440 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
441
442         * event-top.h (call_stdin_event_handler_again_p): Declare.
443         * event-top.c (call_stdin_event_handler_again_p): Define.
444         (stdin_event_handler): Use it.
445         * tui/tui-io.c (tui_getc): Prepare to call the stdin event
446         handler again if there is pending input following a
447         start sequence.
448
449 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
450
451         Pushed by Joel Brobecker  <brobecker@adacore.com>
452         * linux-fork.c (checkpoint_command): Print index of new
453         checkpoint in response message.
454
455 2014-11-23  Yao Qi  <yao@codesourcery.com>
456
457         * valprint.c (read_string): Move local variables 'found_nul',
458         'chunksize' and 'limit' to inner scope.  Update comments.
459
460 2014-11-22  Doug Evans  <xdje42@gmail.com>
461
462         * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
463         function comment.
464         (search_symbols): Fix comments and whitespace.
465
466 2014-11-22  Doug Evans  <xdje42@gmail.com>
467
468         * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
469
470 2014-11-21  Doug Evans  <dje@google.com>
471
472         * psymtab.c (psymtab_search_name): Fix whitespace.
473
474 2014-11-21  Yao Qi  <yao@codesourcery.com>
475
476         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
477         errno.
478         * gnulib/import/Makefile.am: Re-generated.
479         * gnulib/import/Makefile.in: Likewise.
480         * gnulib/import/m4/gnulib-cache.m4: Likewise.
481
482 2014-11-21  Yao Qi  <yao@codesourcery.com>
483
484         * gdb_wchar.h: Include wchar.h and wctype.h.
485         [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
486         include wchar.h and wctype.h.
487         Don't check HAVE_WCHAR_H.
488
489 2014-11-21  Yao Qi  <yao@codesourcery.com>
490
491         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
492         and wctype-h.
493         * gnulib/import/Makefile.am: Re-generated.
494         * gnulib/import/Makefile.in: Likewise.
495         * gnulib/import/m4/gnulib-cache.m4: Likewise.
496
497 2014-11-21  Yao Qi  <yao@codesourcery.com>
498
499         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
500         memchr.
501         * gnulib/import/Makefile.am: Re-generated.
502         * gnulib/import/Makefile.in: Likewise.
503         * gnulib/import/m4/gnulib-cache.m4: Likewise.
504
505 2014-11-21  Yao Qi  <yao@codesourcery.com>
506
507         * common/common-defs.h: Include alloca.h
508         * configure.ac: Don't invoke AC_FUNC_ALLOCA.
509         * configure: Re-generated.
510         * defs.h: Remove code handling alloca.
511         * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
512         or not.
513
514 2014-11-21  Yao Qi  <yao@codesourcery.com>
515
516         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
517         alloca.
518         * gnulib/import/Makefile.am: Re-generated.
519         * gnulib/import/Makefile.in: Likewise..
520         * gnulib/import/m4/gnulib-cache.m4: Likewise.
521
522 2014-11-21  Yao Qi  <yao@codesourcery.com>
523
524         * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
525         alphabetical order.
526
527 2014-11-21  Joel Brobecker  <brobecker@adacore.com>
528
529         * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
530         flag_unsigned if HIGH_BOUND is constant and negative.
531
532 2014-11-20  Sergio Durigan Junior  <sergiodj@redhat.com>
533
534         PR breakpoints/10737
535         * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
536         modifier from "struct gdbarch" when compiling without Expat (XML)
537         support.
538         (get_syscall_by_number): Likewise.
539         (get_syscall_by_name): Likewise.
540         (get_syscall_names): Likewise.
541
542 2014-11-20  Sergio Durigan Junior  <sergiodj@redhat.com>
543
544         PR breakpoints/10737
545         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
546         set_xml_syscall_file_name to provide gdbarch.
547         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
548         * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
549         * breakpoint.c (print_it_catch_syscall): Adjust call to
550         get_syscall_by_number to provide gdbarch.
551         (print_one_catch_syscall): Likewise.
552         (print_mention_catch_syscall): Likewise.
553         (print_recreate_catch_syscall): Likewise.
554         (catch_syscall_split_args): Adjust calls to get_syscall_by_number
555         and get_syscall_by_name to provide gdbarch.
556         (catch_syscall_completer): Adjust call to get_syscall_names to
557         provide gdbarch.
558         * gdbarch.c: Regenerate.
559         * gdbarch.h: Likewise.
560         * gdbarch.sh: Forward declare "struct syscalls_info".
561         (xml_syscall_file): New variable.
562         (syscalls_info): Likewise.
563         * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
564         set_xml_syscall_file_name to provide gdbarch.
565         * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
566         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
567         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
568         * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
569         * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
570         * xml-syscall.c: Include gdbarch.h.
571         (set_xml_syscall_file_name): Accept gdbarch parameter.
572         (get_syscall_by_number): Likewise.
573         (get_syscall_by_name): Likewise.
574         (get_syscall_names): Likewise.
575         (my_gdb_datadir): Delete global variable.
576         (struct syscalls_info) <my_gdb_datadir>: New variable.
577         (struct syscalls_info) <sysinfo>: Rename variable to
578         "syscalls_info".
579         (sysinfo): Delete global variable.
580         (have_initialized_sysinfo): Likewise.
581         (xml_syscall_file): Likewise.
582         (sysinfo_free_syscalls_desc): Rename to...
583         (syscalls_info_free_syscalls_desc): ... this.
584         (free_syscalls_info): Rename "sysinfo" to "syscalls_info".  Adjust
585         code to the new layout of "struct syscalls_info".
586         (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
587         "syscalls_info".
588         (syscall_create_syscall_desc): Likewise.
589         (syscall_start_syscall): Likewise.
590         (syscall_parse_xml): Likewise.
591         (xml_init_syscalls_info): Likewise.  Drop "const" from return value.
592         (init_sysinfo): Rename to...
593         (init_syscalls_info): ...this.  Add gdbarch as a parameter.
594         Adjust function to deal with gdbarch.
595         (xml_get_syscall_number): Delete parameter sysinfo.  Accept
596         gdbarch as a parameter.  Adjust code.
597         (xml_get_syscall_name): Likewise.
598         (xml_list_of_syscalls): Likewise.
599         (set_xml_syscall_file_name): Accept gdbarch as parameter.
600         (get_syscall_by_number): Likewise.
601         (get_syscall_by_name): Likewise.
602         (get_syscall_names): Likewise.
603         * xml-syscall.h (set_xml_syscall_file_name): Likewise.
604         (get_syscall_by_number): Likewise.
605         (get_syscall_by_name): Likewise.
606         (get_syscall_names): Likewise.
607
608 2014-11-20  Doug Evans  <xdje42@gmail.com>
609
610         Split struct symtab into two: struct symtab and compunit_symtab.
611         * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
612         * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
613         to "struct compunit_symtab *".  All callers updated.
614         (set_block_compunit_symtab): Renamed from set_block_symtab.  Change
615         "struct symtab *" argument to "struct compunit_symtab *".
616         All callers updated.
617         (get_block_compunit_symtab): Renamed from get_block_symtab.  Change
618         result to "struct compunit_symtab *".  All callers updated.
619         (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
620         Change result to "struct compunit_symtab *".  All callers updated.
621         * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
622         hange type to "struct compunit_symtab *".  All uses updated.
623         (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
624         Change type to "struct compunit_symtab *".  All uses updated.
625         * buildsym.c (struct buildsym_compunit): New struct.
626         (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
627         (buildsym_compunit): New static global.
628         (finish_block_internal): Update to fetch objfile from
629         buildsym_compunit.
630         (make_blockvector): Delete objfile argument.
631         (start_subfile): Rewrite to use buildsym_compunit.  Don't initialize
632         debugformat, producer.
633         (start_buildsym_compunit): New function.
634         (free_buildsym_compunit): Renamed from free_subfiles_list.
635         All callers updated.
636         (patch_subfile_names): Rewrite to use buildsym_compunit.
637         (get_compunit_symtab): New function.
638         (get_macro_table): Delete argument comp_dir.  All callers updated.
639         (start_symtab): Change result to "struct compunit_symtab *".
640         All callers updated.  Create the subfile of the main source file.
641         (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
642         (reset_symtab_globals): Update.
643         (end_symtab_get_static_block): Update to use buildsym_compunit.
644         (end_symtab_without_blockvector): Rewrite.
645         (end_symtab_with_blockvector): Change result to
646         "struct compunit_symtab *".  All callers updated.
647         Update to use buildsym_compunit.  Don't set symtab->dirname,
648         instead set it in the compunit.
649         Explicitly make sure main symtab is first in its list.
650         Set debugformat, producer, blockvector, block_line_section, and
651         macrotable in the compunit.
652         (end_symtab_from_static_block): Change result to
653         "struct compunit_symtab *".  All callers updated.
654         (end_symtab, end_expandable_symtab): Ditto.
655         (set_missing_symtab): Change symtab argument to
656         "struct compunit_symtab *".  All callers updated.
657         (augment_type_symtab): Ditto.
658         (record_debugformat): Update to use buildsym_compunit.
659         (record_producer): Update to use buildsym_compunit.
660         * buildsym.h (struct subfile) <dirname>: Delete.
661         <producer, debugformat>: Delete.
662         <buildsym_compunit>: New member.
663         (get_compunit_symtab): Declare.
664         * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
665         from primary_symtab.  Change type to "struct compunit_symtab *".
666         All uses updated.
667         (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
668         All callers updated.
669         (dwarf_decode_macros): Delete comp_dir argument.  All callers updated.
670         (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
671         symtab.  Change type to "struct compunit_symtab *".  All uses updated.
672         (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
673         All callers updated.
674         (dw2_find_last_source_symtab): Ditto.
675         (dw2_lookup_symbol): Ditto.
676         (recursively_find_pc_sect_compunit_symtab): Renamed from
677         recursively_find_pc_sect_symtab.  Change result to
678         "struct compunit_symtab *".  All callers updated.
679         (dw2_find_pc_sect_compunit_symtab): Renamed from
680         dw2_find_pc_sect_symtab.  Change result to
681         "struct compunit_symtab *".  All callers updated.
682         (get_compunit_symtab): Renamed from get_symtab.  Change result to
683         "struct compunit_symtab *".  All callers updated.
684         (recursively_compute_inclusions): Change type of immediate_parent
685         argument to "struct compunit_symtab *".  All callers updated.
686         (compute_compunit_symtab_includes): Renamed from
687         compute_symtab_includes.  All callers updated.  Rewrite to compute
688         includes of compunit_symtabs and not symtabs.
689         (process_full_comp_unit): Update to work with struct compunit_symtab.
690         (process_full_type_unit): Ditto.
691         (dwarf_decode_lines_1): Delete argument comp_dir.  All callers updated.
692         (dwarf_decode_lines): Remove special case handling of main subfile.
693         (macro_start_file): Delete argument comp_dir.  All callers updated.
694         (dwarf_decode_macro_bytes): Ditto.
695         * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
696         use struct compunit_symtab.
697         * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
698         * jit.c (finalize_symtab): Build compunit_symtab.
699         * jv-lang.c (get_java_class_symtab): Change result to
700         "struct compunit_symtab *".  All callers updated.
701         * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
702         * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
703         comp_dir.  Change type to "struct compunit_symtab *".
704         All uses updated.
705         (new_macro_table): Change comp_dir argument to cust,
706         "struct compunit_symtab *".  All callers updated.
707         * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
708         nr_primary_symtabs.  All uses updated.
709         (count_symtabs_and_blocks): Update to handle compunits.
710         (report_command_stats): Update output, "primary symtabs" renamed to
711         "compunits".
712         * mdebugread.c (new_symtab): Change result to
713         "struct compunit_symtab *".  All callers updated.
714         (parse_procedure): Change type of search_symtab argument to
715         "struct compunit_symtab *".  All callers updated.
716         * objfiles.c (objfile_relocate1): Loop over blockvectors in a
717         separate loop.
718         * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
719         symtabs.  Change type to "struct compunit_symtab *".  All uses updated.
720         (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
721         All uses updated.
722         (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
723         All uses updated.
724         (ALL_FILETABS): Renamed from ALL_SYMTABS.  All uses updated.
725         (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS.  All uses updated.
726         * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
727         symtab.  Change type to "struct compunit_symtab *".  All uses updated.
728         * psymtab.c (psymtab_to_symtab): Change result type to
729         "struct compunit_symtab *".  All callers updated.
730         (find_pc_sect_compunit_symtab_from_partial): Renamed from
731         find_pc_sect_symtab_from_partial.  Change result type to
732         "struct compunit_symtab *".  All callers updated.
733         (lookup_symbol_aux_psymtabs): Change result type to
734         "struct compunit_symtab *".  All callers updated.
735         (find_last_source_symtab_from_partial): Ditto.
736         * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
737         * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
738         and macro_table from compunit.
739         * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
740         type to "struct compunit_symtab *".  All callers updated.
741         (debug_qf_lookup_symbol): Ditto.
742         (debug_qf_find_pc_sect_compunit_symtab): Renamed from
743         debug_qf_find_pc_sect_symtab, change result type to
744         "struct compunit_symtab *".  All callers updated.
745         * symfile.c (allocate_symtab): Delete objfile argument.
746         New argument cust.
747         (allocate_compunit_symtab): New function.
748         (add_compunit_symtab_to_objfile): New function.
749         * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
750         Change result type to "struct compunit_symtab *".  All uses updated.
751         <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
752         Change result type to "struct compunit_symtab *".  All uses updated.
753         * symmisc.c (print_objfile_statistics): Compute blockvector count in
754         separate loop.
755         (dump_symtab_1): Update test for primary source symtab.
756         (maintenance_info_symtabs): Update to handle compunit symtabs.
757         (maintenance_check_symtabs): Ditto.
758         * symtab.c (set_primary_symtab): Delete.
759         (compunit_primary_filetab): New function.
760         (compunit_language): New function.
761         (iterate_over_some_symtabs): Change type of arguments "first",
762         "after_last" to "struct compunit_symtab *".  All callers updated.
763         Update to loop over symtabs in each compunit.
764         (error_in_psymtab_expansion): Rename symtab argument to cust,
765         and change type to "struct compunit_symtab *".  All callers updated.
766         (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
767         Change result type to "struct compunit_symtab *".  All callers updated.
768         (find_pc_compunit_symtab): Renamed from find_pc_symtab.
769         Change result type to "struct compunit_symtab *".  All callers updated.
770         (find_pc_sect_line): Only loop over symtabs within selected compunit
771         instead of all symtabs in the objfile.
772         * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
773         <compunit_symtab> New member.
774         <block_line_section>: Moved to compunit_symtab.
775         <locations_valid>: Ditto.
776         <epilogue_unwind_valid>: Ditto.
777         <macro_table>: Ditto.
778         <dirname>: Ditto.
779         <debugformat>: Ditto.
780         <producer>: Ditto.
781         <objfile>: Ditto.
782         <call_site_htab>: Ditto.
783         <includes>: Ditto.
784         <user>: Ditto.
785         <primary>: Delete
786         (SYMTAB_COMPUNIT): New macro.
787         (SYMTAB_BLOCKVECTOR): Update definition.
788         (SYMTAB_OBJFILE): Update definition.
789         (SYMTAB_DIRNAME): Update definition.
790         (struct compunit_symtab): New type.  Common members among all source
791         symtabs within a compilation unit moved here.  All uses updated.
792         (COMPUNIT_OBJFILE): New macro.
793         (COMPUNIT_FILETABS): New macro.
794         (COMPUNIT_DEBUGFORMAT): New macro.
795         (COMPUNIT_PRODUCER): New macro.
796         (COMPUNIT_DIRNAME): New macro.
797         (COMPUNIT_BLOCKVECTOR): New macro.
798         (COMPUNIT_BLOCK_LINE_SECTION): New macro.
799         (COMPUNIT_LOCATIONS_VALID): New macro.
800         (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
801         (COMPUNIT_CALL_SITE_HTAB): New macro.
802         (COMPUNIT_MACRO_TABLE): New macro.
803         (ALL_COMPUNIT_FILETABS): New macro.
804         (compunit_symtab_ptr): New typedef.
805         (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
806
807 2014-11-20  Joel Brobecker  <brobecker@adacore.com>
808
809         * ada-lang.c (ada_is_redundant_range_encoding): Return 0
810         if the TYPE_CODE of range_type's base type does not match
811         the TYPE_CODE of encoding_type's base type.
812
813 2014-11-19  Joel Brobecker  <brobecker@adacore.com>
814
815         * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
816         it starts with '<'.
817
818 2014-11-19  Joel Brobecker  <brobecker@adacore.com>
819
820         * ada-lang.c (ada_is_redundant_range_encoding): New function.
821         (ada_is_redundant_index_type_desc): New function.
822         (to_fixed_array_type): Ignore parallel XA type if redundant.
823
824 2014-11-19  Joel Brobecker  <brobecker@adacore.com>
825
826         * ada-lang.c (constrained_packed_array_type): Set the length
827         of the return array as if both bounds where zero if that
828         returned array's index type is dynamic.
829
830 2014-11-19  Yao Qi  <yao@codesourcery.com>
831
832         * config/i386/go32.mh (CC): Remove.
833
834 2014-11-18  Doug Evans  <xdje42@gmail.com>
835
836         * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR.  All uses
837         updated.
838
839 2014-11-18  Doug Evans  <xdje42@gmail.com>
840
841         * buildsym.c (buildsym_objfile): New static global.
842         (buildsym_comp_dir): New static global.
843         (finish_block_internal): Delete arg objfile.  All callers updated.
844         (finish_block): Delete arg objfile.  All callers updated.
845         (start_subfile): Delete arg dirname.  All callers updated.
846         (patch_subfile_names): Update buildsym_comp_dir.
847         (get_macro_table): Delete arg objfile.  All callers updated.
848         (start_symtab): New arg objfile.  All callers updated.
849         Rename arg dirname to comp_dir.
850         (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
851         (end_symtab_get_static_block): Delete arg objfile.  All callers
852         updated.
853         (end_symtab_without_blockvector): Ditto.
854         (end_symtab_with_blockvector): Ditto.
855         (end_symtab_from_static_block): Ditto.
856         (end_symtab): Ditto.
857         (end_expandable_symtab): Ditto.
858         (augment_type_symtab): Ditto.
859         * coffread.c (coff_start_symtab): New arg objfile.  All callers
860         updated.
861
862 2014-11-18  Doug Evans  <xdje42@gmail.com>
863
864         * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE.  All uses
865         updated.
866
867 2014-11-18  Doug Evans  <xdje42@gmail.com>
868
869         * symtab.h (SYMTAB_DIRNAME): New macro.  All uses of member
870         symtab.dirname updated to use it.
871
872 2014-11-18  Doug Evans  <xdje42@gmail.com>
873
874         * symtab.h (SYMTAB_OBJFILE): New macro.  All uses of member
875         symtab.objfile updated to use it.
876
877 2014-11-18  Doug Evans  <xdje42@gmail.com>
878
879         * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
880
881 2014-11-18  Doug Evans  <xdje42@gmail.com>
882
883         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
884         SYMBOL_OBJFILE.
885         * findvar.c (default_read_var_value): Ditto.
886         * jv-lang.c (add_class_symtab_symbol): Ditto.
887         * parse.c (operator_check_standard): Ditto.
888         * printcmd.c (address_info): Ditto.
889         * symtab.c (fixup_symbol_section): Ditto.
890         (skip_prologue_sal): Ditto.
891         * tracepoint.c (scope_info): Ditto.
892         * valops.c (find_function_in_inferior): Ditto.
893         * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
894         * python/py-symbol.c (set_symbol): Ditto.
895
896 2014-11-18  Doug Evans  <xdje42@gmail.com>
897
898         * buildsym.c (main_subfile): New static global.
899         (free_subfiles_list): New function.
900         (start_symtab): Set main_subfile.
901         (restart_symtab): Replace init of subfiles, current_subfile with
902         call to free_subfiles_list.
903         (watch_main_source_file_lossage): Use main_subfile.
904         (reset_symtab_globals): Replace init of current_subfile with call
905         to free_subfiles_list.
906         (end_symtab_without_blockvector, end_symtab_with_blockvector): New
907         functions, split out from ...
908         (end_symtab_from_static_block): ... here.  Rewrite to call them.
909
910 2014-11-18  Doug Evans  <xdje42@gmail.com>
911
912         The result of symtab expansion is always a primary symtab.
913         * dwarf2read.c (dw2_instantiate_symtab): Add assert.
914         (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
915         * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
916         (psymtab_to_symtab): Add comment and assert.
917         (map_matching_symbols_psymtab): Remove unnecessary test for
918         non-primary symtab.
919
920 2014-11-15  Doug Evans  <xdje42@gmail.com>
921
922         PR symtab/17559
923         * symtab.c (find_pc_line_symtab): New function.
924         * symtab.h (find_pc_line_symtab): Declare.
925         * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
926         find_pc_symtab.
927         * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
928         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
929         * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
930         * tui/tui-win.c (make_visible_with_new_height): Ditto.
931         * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
932         (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
933
934 2014-11-15  Doug Evans  <xdje42@gmail.com>
935
936         * symtab.c (expand_symtab_containing_pc): Renamed from
937         find_pc_sect_symtab_via_partial.  All callers updated.
938
939 2014-11-15  Yao Qi  <yao@codesourcery.com>
940
941         * go32-nat.c (go32_create_inferior): Add missing parenthesis.
942
943 2014-11-14  Joel Brobecker  <brobecker@adacore.com>
944
945         * common/common-defs.h: Move <stdarg.h> #include ahead of
946         <stdio.h> #include.
947
948 2014-11-14  Pedro Alves  <palves@redhat.com>
949
950         * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
951         [!PHONY_ICONV] (gdb_iconv): New function.
952         [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
953
954 2014-11-13  Doug Evans  <dje@google.com>
955
956         PR symtab/17591
957         * dwarf2read.c (find_slot_in_mapped_hash): Handle
958         "(anonymous namespace)".
959
960 2014-11-13  Doug Evans  <dje@google.com>
961
962         * dwarf2read.c (update_enumeration_type_from_children): Avoid
963         infinite loop.
964
965 2014-11-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
966
967         * NEWS (maint set target-async): Fix typo.
968
969 2014-11-12  Pedro Alves  <palves@redhat.com>
970
971         * infrun.c (enum infwait_states, infwait_state): Delete.
972
973 2014-11-12  Pedro Alves  <palves@redhat.com>
974
975         * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
976         Rewrite stepping over a permanent breakpoint.
977         (thread_still_needs_step_over, proceed): Don't set
978         stepping_over_breakpoint for permanent breakpoints.
979         (handle_signal_stop): Don't clear stepped_breakpoint.  Also pull
980         single-step breakpoints out of the target on hardware step
981         targets.
982         (process_event_stop_test): If stepping a permanent breakpoint
983         doesn't hit the step-resume breakpoint, delete the step-resume
984         breakpoint.
985         (switch_back_to_stepped_thread): Also check if the stepped thread
986         has advanced already on hardware step targets.
987         (currently_stepping): Return true if the thread stepped a
988         breakpoint.
989
990 2014-11-12  Pedro Alves  <palves@redhat.com>
991
992         Mark locations as permanent, not the whole breakpoint.
993         * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
994         (mark_breakpoints_out): Don't mark permanent breakpoints as
995         uninserted.
996         (breakpoint_init_inferior): Use mark_breakpoints_out.
997         (breakpoint_here_p): Adjust.
998         (bpstat_stop_status, describe_other_breakpoints): Remove handling
999         of permanent breakpoints.
1000         (make_breakpoint_permanent): Mark each location as permanent,
1001         instead of marking the breakpoint.
1002         (add_location_to_breakpoint): If the location is permanent, mark
1003         it as such, and as inserted.
1004         (init_breakpoint_sal): Don't make the breakpoint permanent here.
1005         (bp_location_compare, update_global_location_list): Adjust.
1006         (update_breakpoint_locations): Don't make the breakpoint permanent
1007         here.
1008         (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1009         breakpoints.
1010         * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1011         (struct bp_location) <permanent>: New field.
1012         * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1013         reference to bp_permanent.
1014
1015 2014-11-12  Pedro Alves  <palves@redhat.com>
1016
1017         * arch-utils.c (default_skip_permanent_breakpoint): New function.
1018         * arch-utils.h (default_skip_permanent_breakpoint): New
1019         declaration.
1020         * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1021         Install default_skip_permanent_breakpoint as default method.
1022         * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1023         (i386_gdbarch_init): Don't install it.
1024         * infrun.c (resume): Assume there's always a
1025         gdbarch_skip_permanent_breakpoint implementation.
1026         * gdbarch.h, gdbarch.c: Regenerate.
1027
1028 2014-11-11  Daniel Colascione  <dancol@dancol.org>
1029
1030         Warn about cross-PID-namespace debugging.
1031         * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1032         * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1033         * linux-thread-db.c (check_pid_namespace_match): New function.
1034         (thread_db_inferior_created): Call it.
1035
1036 2014-11-10  Doug Evans  <xdje42@gmail.com>
1037
1038         * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1039         (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1040
1041 2014-11-10  Doug Evans  <xdje42@gmail.com>
1042
1043         * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1044
1045 2014-11-10  Doug Evans  <xdje42@gmail.com>
1046
1047         PR symtab/17564
1048         * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1049         (lookup_static_symbol): Move definition to new location and rewrite.
1050         (lookup_symbol_in_objfile): New function.
1051         (lookup_symbol_global_iterator_cb): Call it.
1052
1053 2014-11-10  Ulrich Weigand  <uweigand@de.ibm.com>
1054
1055         * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1056
1057 2014-11-07  Pedro Alves  <palves@redhat.com>
1058
1059         * infrun.c (process_event_stop_test) <subroutine check>: Don't
1060         check if we did a "nexti" inside a prologue.
1061         * symtab.c (in_prologue): Delete function.
1062         * symtab.h (in_prologue): Delete declaration.
1063
1064 2014-11-06  Doug Evans  <xdje42@gmail.com>
1065
1066         * symtab.h (lookup_global_symbol): Improve function comment.
1067
1068 2014-11-06  Doug Evans  <xdje42@gmail.com>
1069
1070         * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1071         All callers updated.
1072         * symtab.h (lookup_global_symbol): Update decl.
1073         (lookup_static_symbol): Move decl to better location.
1074
1075 2014-11-06  Doug Evans  <xdje42@gmail.com>
1076
1077         * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1078
1079 2014-11-06  Doug Evans  <xdje42@gmail.com>
1080
1081         * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1082         All callers updated.
1083         (lookup_symbol_in_all_objfiles): Renamed from
1084         lookup_symbol_aux_symtabs.  All callers updated.
1085         (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1086         All callers updated.
1087         (lookup_symbol_in_objfile_symtabs): Renamed from
1088         lookup_symbol_aux_objfile.  All callers updated.
1089
1090 2014-11-06  Doug Evans  <xdje42@gmail.com>
1091
1092         * symtab.c (lookup_symbol_in_block): Renamed from
1093         lookup_symbol_aux_block.  All callers updated.
1094
1095 2014-11-06  Doug Evans  <xdje42@gmail.com>
1096
1097         * symtab.c (lookup_static_symbol): Renamed from
1098         lookup_static_symbol_aux.  All callers updated.
1099         (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1100         All callers updated.
1101
1102 2014-11-06  Doug Evans  <xdje42@gmail.com>
1103
1104         * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1105         * block.c (block_lookup_symbol): Use it.
1106         * cp-support.c (make_symbol_overload_list_block): Use it.
1107         * symtab.c (iterate_over_symbols): Use it.
1108
1109 2014-11-06  Doug Evans  <xdje42@gmail.com>
1110
1111         * symtab.c (lookup_block_symbol): Moved to ...
1112         * block.c (block_lookup_symbol):  ... here and renamed.
1113         All callers updated.
1114         * block.h (block_lookup_symbol): Declare.
1115         * symtab.h (lookup_block_symbol): Delete.
1116
1117 2014-11-06  Doug Evans  <xdje42@gmail.com>
1118
1119         * ada-lang.c (ada_make_symbol_completion_list): Use
1120         ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1121         * symtab.c (lookup_objfile_from_block): Ditto.
1122
1123 2014-11-06  Doug Evans  <xdje42@gmail.com>
1124
1125         * gdbtypes.h (TYPE_CODE_CLASS): Delete.  All uses changed to use
1126         TYPE_CODE_STRUCT.
1127
1128 2014-11-06  Doug Evans  <xdje42@gmail.com>
1129
1130         * objfiles.c (get_objfile_arch): Constify.
1131         * objfiles.h (get_objfile_arch): Update prototype.
1132         * solib.c (solib_global_lookup): Fetch arch from objfile,
1133         not target_gdbarch.
1134
1135 2014-11-06  Sandra Loosemore  <sandra@codesourcery.com>
1136
1137         * nios2-tdep.c (wild_insn): Delete.
1138         (profiler_insn, irqentry_insn): Delete.
1139         (nios2_match_sequence): Delete.
1140         (nios2_analyze_prologue): Update comments.  Remove matching
1141         of obsolete profiler_insn and irqentry_insn sequences.
1142
1143 2014-11-05  Alan Modra  <amodra@gmail.com>
1144
1145         * charset.c (convert_between_encodings): Shrink obstack using
1146         obstack_blank_fast.
1147         * minsyms.c (install_minimal_symbols): Likewise.
1148         * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1149         to char* before doing pointer arithmetic.
1150
1151 2014-11-04  Simon Marchi  <simon.marchi@ericsson.com>
1152
1153         * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1154
1155 2014-11-04  Pedro Alves  <palves@redhat.com>
1156
1157         * breakpoint.c (breakpoint_thread_match): Delete function.
1158         * breakpoint.h (breakpoint_thread_match): Delete declaration.
1159
1160 2014-11-03  Siva Chandra Reddy  <sivachandra@google.com>
1161
1162         PR c++/17494
1163         * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1164         the method args also under EVAL_SKIP when evaluating method
1165         calls under EVAL_SKIP.
1166
1167 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
1168
1169         * dwarf2loc.c (read_pieced_value): Do big endian
1170         processing only if gdb_regnum is not -1.
1171         (write_pieced_value): Ditto.
1172
1173 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
1174
1175         * arm-linux-tdep.c (arm_linux_init_abi): Use
1176         info.byte_order_for_code to choose endianity of breakpoint
1177         instructions snippets.
1178
1179 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
1180
1181         * arm-tdep.c (extract_arm_insn): Use
1182         gdbarch_byte_order_for_code to read arm instruction.
1183
1184 2014-11-02  Doug Evans  <xdje42@gmail.com>
1185
1186         * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1187
1188 2014-11-02  Doug Evans  <xdje42@gmail.com>
1189
1190         * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1191         main_subfile before returning.
1192
1193 2014-10-31  Doug Evans  <xdje42@gmail.com>
1194
1195         * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1196         (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1197
1198 2014-10-31  Doug Evans  <xdje42@gmail.com>
1199
1200         * valops.c (value_cast_pointers): Fix whitespace.
1201         (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1202         Ditto.
1203
1204 2014-10-30  Doug Evans  <dje@google.com>
1205
1206         * NEWS: Mention ability add attributes to gdb.Objfile and
1207         gdb.Progspace objects.
1208         * python/py-objfile.c (objfile_object): New member dict.
1209         (objfpy_dealloc): Py_XDECREF dict.
1210         (objfpy_initialize): Initialize dict.
1211         (objfile_getset): Add __dict__.
1212         (objfile_object_type): Set tp_dictoffset member.
1213         * python/py-progspace.c (progspace_object): New member dict.
1214         (pspy_dealloc): Py_XDECREF dict.
1215         (pspy_initialize): Initialize dict.
1216         (pspace_getset): Add __dict__.
1217         (pspace_object_type): Set tp_dictoffset member.
1218
1219 2014-10-30  Yao Qi  <yao@codesourcery.com>
1220
1221         * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1222         replace '\\' with '\\\\'.
1223
1224 2014-10-29  Joel Brobecker  <brobecker@adacore.com>
1225
1226         GDB 7.8.1 released.
1227
1228 2014-10-29  Pedro Alves  <palves@redhat.com>
1229
1230         PR gdb/17408
1231         * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1232         instead of assuming a thread with a stepping range is always
1233         stepping.
1234
1235 2014-10-29  Pedro Alves  <palves@redhat.com>
1236
1237         PR python/17372
1238         * event-top.c (change_line_handler): Call
1239         gdb_rl_callback_handler_remove instead of
1240         rl_callback_handler_remove.
1241         (callback_handler_installed): New global.
1242         (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1243         (gdb_rl_callback_handler_reinstall): New functions.
1244         (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1245         gdb_rl_callback_handler_install instead of
1246         rl_callback_handler_remove and rl_callback_handler_install.
1247         (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1248         instead of rl_callback_handler_remove.
1249         * event-top.h (gdb_rl_callback_handler_remove)
1250         (gdb_rl_callback_handler_install)
1251         (gdb_rl_callback_handler_reinstall): New declarations.
1252         * infrun.c (reinstall_readline_callback_handler_cleanup): New
1253         cleanup function.
1254         (fetch_inferior_event): Install it.
1255         * top.c (gdb_readline_wrapper_line) Call
1256         gdb_rl_callback_handler_remove instead of
1257         rl_callback_handler_remove.
1258         (gdb_readline_wrapper_cleanup): Don't call
1259         rl_callback_handler_install.
1260
1261 2014-10-29  Pedro Alves  <palves@redhat.com>
1262
1263         * event-top.c (command_line_handler): Clear the first byte of
1264         linebuffer, when it is first allocated.
1265
1266 2014-10-29  Pedro Alves  <palves@redhat.com>
1267
1268         * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1269         TRY_CATCH.
1270
1271 2014-10-29  Pedro Alves  <palves@redhat.com>
1272
1273         PR tui/16138
1274         PR tui/17519
1275         * tui/tui-interp.c (tui_is_toplevel): Delete global.
1276         (tui_allowed_p): Delete function.
1277         * tui/tui.c: Include "interps.h".
1278         (tui_enable): Don't use tui_allowed_p.  Error out here with
1279         detailed error messages if the TUI is the top level interpreter,
1280         or if output is not a terminal.  Use newterm instead of initscr,
1281         and error out if initializing the terminal fails.  Also error out if
1282         the terminal doesn't support cursor addressing.
1283         * tui/tui.h (tui_allowed_p): Delete declaration.
1284
1285 2014-10-29  Joel Brobecker  <brobecker@adacore.com>
1286
1287         * arm-tdep.c (arm_skip_stack_protector): Return early if
1288         address loaded by first "ldr" instruction does not have
1289         a corresponding minimal symbol.  Update comment.
1290
1291 2014-10-29  Yao Qi  <yao@codesourcery.com>
1292
1293         * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1294         loaded address correctly of ldr instruction.
1295
1296 2014-10-28  Pedro Alves  <palves@redhat.com>
1297
1298         PR gdb/12623
1299         * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1300         field.
1301         * infrun.c (resume) <stepping breakpoint instruction>: Set the
1302         thread's stepped_breakpoint field.  Skip if reverse debugging.
1303         Add comment.
1304         (init_thread_stepping_state, handle_signal_stop): Clear the
1305         thread's stepped_breakpoint field.
1306
1307 2014-10-27  Pedro Alves  <palves@redhat.com>
1308
1309         * remote.c (remote_thread_alive): New, factored out from ...
1310         (remote_thread_alive): ... this.
1311         (remote_update_thread_list): Bail out before deleting threads if
1312         the target returned an empty list, and, the current thread has a
1313         magic/fake ptid.
1314
1315 2014-10-27  Pedro Alves  <palves@redhat.com>
1316
1317         * infrun.c (handle_signal_stop): Also skip handlers when a random
1318         signal arrives while handling a "stepi" or a "nexti".  Set the
1319         thread's 'step_after_step_resume_breakpoint' flag.
1320
1321 2014-10-27  Luis Machado  <lgustavo@codesourcery.com>
1322
1323         * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1324         (arm_record_ld_st_imm_offset): Reimplement to cover all
1325         load/store cases for ARM opcode 010.
1326         (arm_record_ld_st_multiple): Reimplement to cover all
1327         load/store cases for ARM opcode 100.
1328
1329 2014-10-26  Doug Evans  <xdje42@gmail.com>
1330
1331         * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1332
1333 2014-10-26  Doug Evans  <xdje42@gmail.com>
1334
1335         * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1336         parameter "kind" to "block_index".
1337         * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1338         "block_index".
1339         (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1340
1341 2014-10-26  Doug Evans  <xdje42@gmail.com>
1342
1343         * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1344
1345 2014-10-26  Doug Evans  <xdje42@gmail.com>
1346
1347         * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1348         obstack_alloc.
1349
1350 2014-10-26  Doug Evans  <xdje42@gmail.com>
1351
1352         * parser-defs.h (block_found): Move decl from here ...
1353         * symtab.h (block_found): ... to here.
1354
1355 2014-10-26  Doug Evans  <xdje42@gmail.com>
1356
1357         * symtab.h (struct field_of_this_result): Fix typo in comment.
1358         (lookup_symbol_in_language): Move function comment here.
1359         (lookup_symbol): Improve function comment.
1360         (basic_lookup_symbol_nonlocal): Ditto.
1361         (lookup_symbol_static, lookup_symbol_global): Ditto.
1362         (lookup_symbol_aux_block): Ditto.
1363         (lookup_language_this): Add function comment.
1364         (lookup_static_symbol_aux): Explicitly mark as extern.  Improve
1365         function comment.
1366         (lookup_block_symbol): Improve function comment.
1367         (lookup_struct): Fix capitalization in function comment.
1368         (lookup_transparent_type): Add function comment.
1369         (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1370         Improve function comment.
1371         (lookup_objfile_from_block): Add function comment.
1372         * symtab.c (lookup_symbol_in_language): Update function comment.
1373         (lookup_symbol, lookup_language_this): Ditto.
1374         (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1375         (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1376         (basic_lookup_symbol_nonlocal): Ditto.
1377         (lookup_symbol_static, lookup_symbol_global): Ditto.
1378         (lookup_transparent_type, lookup_block_symbol): Ditto.
1379
1380 2014-10-25  Doug Evans  <xdje42@gmail.com>
1381
1382         * symtab.c (types_info): Delete forward decl.
1383         (functions_info, variables_info, sources_info): Ditto.
1384         (_initialize_symtab): Rewrite forward decl to use
1385         initialize_file_ftype.
1386
1387 2014-10-25  Doug Evans  <xdje42@gmail.com>
1388
1389         * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1390
1391 2014-10-25  Doug Evans  <xdje42@gmail.com>
1392
1393         * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1394         of local var child_die.
1395
1396 2014-10-24  Don Breazeal  <donb@codesourcery.com>
1397
1398         * infrun.c (follow_fork_inferior): Update fork message printing
1399         to use target_terminal_ours_for_output instead of
1400         target_terminal_ours, to use _() for all format strings, to print
1401         "vfork" instead of "fork" for vforks, and to add a detach message.
1402         (handle_vfork_child_exec_or_exit): Update message printing to use
1403         target_terminal_ours_for_output instead of target_terminal_ours, to
1404         use _() for all format strings, and to fix some formatting.
1405
1406 2014-10-24  Pedro Alves  <palves@redhat.com>
1407
1408         * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1409         * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1410         * config/vax/vax.mh: Delete.
1411         * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1412         obsolete configurations section.
1413         * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1414         * vax-nat.c: Delete file.
1415
1416 2014-10-24  Pedro Alves  <palves@redhat.com>
1417
1418         * NEWS (Removed targets): Add OS/arch column.
1419
1420 2014-10-24  Siva Chandra Reddy  <sivachandra@google.com>
1421
1422         * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1423         on the arg type of a constructor only if it is of reference type.
1424
1425 2014-10-23  Sandra Loosemore  <sandra@codesourcery.com>
1426
1427         * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1428         accessors and constants from nios2 opcodes update.
1429         (nios2_get_next_pc): Likewise.
1430
1431 2014-10-19  Doug Evans  <xdje42@gmail.com>
1432
1433         * gdbthread.h (set_running): Fix comment.
1434         (set_executing, finish_thread_state): Fix comment.
1435
1436 2014-10-18  Doug Evans  <xdje42@gmail.com>
1437
1438         * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1439
1440 2014-10-17  Doug Evans  <dje@google.com>
1441
1442         * NEWS: Mention new event gdb.clear_objfiles.
1443         * python/py-event.h (emit_clear_objfiles_event): Clear
1444         * python/py-events.h (events_object): New member clear_objfiles.
1445         * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1446         event.
1447         * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1448         emit clear_objfiles event.
1449         * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1450         function.
1451         (emit_clear_objfiles_event): New function.
1452         (clear_objfiles): New event.
1453         * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1454         Declare.
1455         * python/python.c (_initialize_python): Call
1456         gdbpy_initialize_clear_objfiles_event.
1457
1458 2014-10-17  Doug Evans  <dje@google.com>
1459
1460         * NEWS: Mention new gdb.Objfile.progspace attribute.
1461         * python/py-objfile.c (objfpy_get_progspace): New function.
1462         (objfile_getset): New entry for "progspace".
1463
1464 2014-10-17  Pedro Alves  <palves@redhat.com>
1465
1466         PR gdb/17471
1467         * infcmd.c (strip_bg_char): Change prototype and rewrite.  Now
1468         returns a copy of the input.
1469         (run_command_1, continue_command, step_1, jump_command)
1470         (signal_command, until_command, advance_command, finish_command)
1471         (attach_command): Adjust and install a cleanup to free the
1472         stripped args.
1473
1474 2014-10-17  Pedro Alves  <palves@redhat.com>
1475
1476         PR gdb/17300
1477         * infcmd.c (continue_1): If continuing all threads in the
1478         foreground, make sure the inferior's terminal settings are put in
1479         effect.
1480
1481 2014-10-17  Pedro Alves  <palves@redhat.com>
1482
1483         PR gdb/17472
1484         * annotate.c (annotate_breakpoints_invalid): Use
1485         target_terminal_our_for_output instead of target_terminal_ours.
1486         Give back the terminal to the target.
1487         (annotate_frames_invalid): Likewise.
1488
1489 2014-10-17  Pedro Alves  <palves@redhat.com>
1490
1491         * target.c (enum terminal_state): New enum.
1492         (terminal_state): New global.
1493         (target_terminal_init): New function.
1494         (target_terminal_inferior): Skip if inferior already owns the
1495         terminal.
1496         (target_terminal_ours, target_terminal_ours_for_output): New
1497         functions.
1498         * target.h (target_terminal_init): Convert to function prototype.
1499         (target_terminal_ours_for_output): Convert to function prototype
1500         and tweak comment.
1501         (target_terminal_ours): Convert to function prototype and tweak
1502         comment.
1503         * windows-nat.c (do_initial_windows_stuff): Call
1504         target_terminal_init instead of child_terminal_init_with_pgrp.
1505
1506 2014-10-17  Pedro Alves  <palves@redhat.com>
1507
1508         * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1509         (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1510         (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1511         solib-osf.c.
1512         * NEWS: Mention that support for alpha*-*-osf* has been removed.
1513         * ada-lang.h [__alpha__ && __osf__]
1514         (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1515         * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1516         * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1517         GDB_OSABI_OSF1.
1518         * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1519         files.
1520         * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1521         (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1522         * configure: Regenerate.
1523         * configure.ac: Remove references to osf.
1524         * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1525         section.  Remove all other references to osf.
1526         * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1527         Remove all other references to osf.
1528         * dec-thread.c: Delete file.
1529         * defs.h (GDB_OSABI_OSF1): Delete.
1530         * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1531         defined.
1532         * osabi.c (gdb_osabi_names): Delete "OSF/1".
1533         * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1534         Delete code.
1535         (unconditionally_kill_inferior)
1536         [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1537         * solib-osf.c: Delete file.
1538
1539 2014-10-17  Pedro Alves  <palves@redhat.com>
1540
1541         * remote.c (clear_threads_listing_context): Move higher up, out of
1542         the HAVE_LIBEXPAT guard.
1543
1544 2014-10-16  Tristan Gingold  <gingold@adacore.com>
1545
1546         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1547         (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1548         on amd64.
1549
1550 2014-10-15  Pedro Alves  <palves@redhat.com>
1551
1552         * dec-thread.c (dec_thread_count_gdb_threads)
1553         (dec_thread_add_gdb_thread): Delete.
1554         (dec_thread_update_thread_list): Delete.
1555         (dec_thread_find_new_threads): Rename to ...
1556         (dec_thread_update_thread_list): ... this.  Delete GDB-size
1557         threads that are no longer found in dec_thread_list.
1558         (resync_thread_list): Delete.
1559         (dec_thread_wait): Call dec_thread_update_thread_list instead of
1560         resync_thread_list.
1561
1562 2014-10-15  Pedro Alves  <palves@redhat.com>
1563
1564         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1565         * remote.c (remote_update_thread_list): Skip calling prune_threads
1566         if any thread listing method is supported, and instead walk over
1567         the set of remote threads listed, deleting those that are not
1568         found in GDB's thread list.
1569
1570 2014-10-15  Pedro Alves  <palves@redhat.com>
1571
1572         * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1573         * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1574         (bsd_uthread_update_thread_list): ... this.  Call prune_threads.
1575         (bsd_uthread_target): Adjust.
1576         * corelow.c (core_open): Adjust.
1577         * dec-thread.c (dec_thread_find_new_threads): Update comment.
1578         (dec_thread_update_thread_list): New function.
1579         (init_dec_thread_ops): Adjust.
1580         * gdbthread.h (prune_threads): New declaration.
1581         * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1582         (thread_db_update_thread_list): ... this.  Call prune_threads.
1583         (init_thread_db_ops): Adjust.
1584         * nto-procfs.c (procfs_find_new_threads): Rename to ...
1585         (procfs_update_thread_list): ... this.  Call prune_threads.
1586         (procfs_attach, procfs_create_inferior, init_procfs_targets):
1587         Adjust.
1588         * obsd-nat.c (obsd_find_new_threads): Rename to ...
1589         (obsd_update_thread_list): ... this.  Call prune_threads.
1590         (obsd_add_target): Adjust.
1591         * procfs.c (procfs_target): Adjust.
1592         (procfs_notice_thread): Update comment.
1593         (procfs_find_new_threads): Rename to ...
1594         (procfs_update_thread_list): ... this.  Call prune_threads.
1595         * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1596         comment.
1597         (ravenscar_wait): Adjust.
1598         (ravenscar_find_new_threads): Rename to ...
1599         (ravenscar_update_thread_list): ... this.  Call prune_threads.
1600         (init_ravenscar_thread_ops): Adjust.
1601         * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1602         (record_btrace_update_thread_list): ... this.  Adjust comment.
1603         (init_record_btrace_ops): Adjust.
1604         * remote.c (remote_threads_info): Rename to ...
1605         (remote_update_thread_list): ... this.  Call prune_threads.
1606         (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1607         Adjust.
1608         * sol-thread.c (check_for_thread_db): Adjust.
1609         (sol_find_new_threads_callback): Rename to ...
1610         (sol_update_thread_list_callback): ... this.
1611         (sol_find_new_threads): Rename to ...
1612         (sol_update_thread_list): ... this.  Call prune_threads.  Adjust.
1613         (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1614         * target-delegates.c: Regenerate.
1615         * target.c (target_find_new_threads): Rename to ...
1616         (target_update_thread_list): ... this.
1617         * target.h (struct target_ops): Rename to_find_new_threads field
1618         to to_update_thread_list.
1619         (target_find_new_threads): Rename to ...
1620         (target_update_thread_list): ... this.
1621         * thread.c (prune_threads): Make extern.
1622         (update_thread_list): Adjust.
1623
1624 2014-10-15  Pedro Alves  <palves@redhat.com>
1625
1626         * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1627         Add describing comment.  Return -1 if the qL packet is not
1628         supported.
1629         (struct thread_item, thread_item_t): Move higher up in
1630         the file.  Add comments.
1631         (struct threads_parsing_context): Move higher up in
1632         the file, add comments, and remote to ...
1633         (struct threads_listing_context): ... this.
1634         (remote_newthread_step): Don't add the thread to GDB's thread
1635         database here.  Instead push it to the thread_listing_context
1636         list.
1637         (remote_find_new_threads): Rename to ...
1638         (remote_get_threads_with_ql): ... this.  Add target_ops and
1639         targets_listing_context parameters.  Pass down context.
1640         (start_thread): Adjust.
1641         (clear_threads_parsing_context): Rename to ...
1642         (clear_threads_listing_context): ... this.
1643         (remote_get_threads_with_qxfer): New, with parts salvaged from old
1644         remote_threads_info.
1645         (remote_get_threads_with_qthreadinfo): Ditto.
1646         (remote_threads_info): Reimplement.
1647
1648 2014-10-15  Pedro Alves  <palves@redhat.com>
1649
1650         * infrun.c (resume): Don't force displaced-stepping for all
1651         single-steps on software single-stepping archs.
1652
1653 2014-10-15  Pedro Alves  <palves@redhat.com>
1654
1655         * breakpoint.c (single_step_breakpoints): Delete global.
1656         (insert_single_step_breakpoint): Adjust to store the breakpoint
1657         pointer in the current thread.
1658         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1659         (cancel_single_step_breakpoints): Delete functions.
1660         (breakpoint_has_location_inserted_here): Make extern.
1661         (single_step_breakpoint_inserted_here_p): Adjust to walk the
1662         breakpoint list.
1663         * breakpoint.h (breakpoint_has_location_inserted_here): New
1664         declaration.
1665         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1666         (cancel_single_step_breakpoints): Remove declarations.
1667         * gdbthread.h (struct thread_control_state)
1668         <single_step_breakpoints>: New field.
1669         (delete_single_step_breakpoints)
1670         (thread_has_single_step_breakpoints_set)
1671         (thread_has_single_step_breakpoint_here): New declarations.
1672         * infrun.c (follow_exec): Also clear the single-step breakpoints.
1673         (singlestep_breakpoints_inserted_p, singlestep_ptid)
1674         (singlestep_pc): Delete globals.
1675         (infrun_thread_ptid_changed): Remove references to removed
1676         globals.
1677         (resume_cleanups): Delete the current thread's single-step
1678         breakpoints.
1679         (maybe_software_singlestep): Remove references to removed globals.
1680         (resume): Adjust to use thread_has_single_step_breakpoints_set and
1681         delete_single_step_breakpoints.
1682         (init_wait_for_inferior): Remove references to removed globals.
1683         (delete_thread_infrun_breakpoints): Delete the thread's
1684         single-step breakpoints too.
1685         (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1686         single-step breakpoints here.
1687         (delete_stopped_threads_single_step_breakpoints): New function.
1688         (adjust_pc_after_break): Adjust to use
1689         thread_has_single_step_breakpoints_set.
1690         (handle_inferior_event): Remove references to removed globals.
1691         Use delete_stopped_threads_single_step_breakpoints.
1692         (handle_signal_stop): Adjust to per-thread single-step
1693         breakpoints.  Swap test order to do cheaper tests first.
1694         (switch_back_to_stepped_thread): Extend debug output.  Remove
1695         references to removed globals.
1696         * record-full.c (record_full_wait_1): Adjust to per-thread
1697         single-step breakpoints.
1698         * thread.c (delete_single_step_breakpoints)
1699         (thread_has_single_step_breakpoints_set)
1700         (thread_has_single_step_breakpoint_here): New functions.
1701         (clear_thread_inferior_resources): Also delete the thread's
1702         single-step breakpoints.
1703
1704 2014-10-15  Pedro Alves  <palves@redhat.com>
1705
1706         * thread.c (delete_thread_breakpoint): New function.
1707         (delete_step_resume_breakpoint)
1708         (delete_exception_resume_breakpoint): Use it.
1709         (delete_at_next_stop): New function.
1710         (clear_thread_inferior_resources): Use delete_at_next_stop.
1711
1712 2014-10-15  Pedro Alves  <palves@redhat.com>
1713
1714         * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1715         (breakpoint_inserted_here_p): ... here.  Remove special case for
1716         software single-step breakpoints.
1717         (find_non_raw_software_breakpoint_inserted_here): Inline ...
1718         (software_breakpoint_inserted_here_p): ... here.  Remove special
1719         case for software single-step breakpoints.
1720         (bp_target_info_copy_insertion_state)
1721         (deprecated_insert_raw_breakpoint)
1722         (deprecated_remove_raw_breakpoint): Delete functions.
1723         * breakpoint.h (deprecated_insert_raw_breakpoint)
1724         (deprecated_remove_raw_breakpoint): Remove declarations.
1725
1726 2014-10-15  Pedro Alves  <palves@redhat.com>
1727
1728         PR breakpoints/9649
1729         * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1730         Delete array globals.
1731         (single_step_breakpoints): New global.
1732         (breakpoint_xfer_memory): Remove special handling for single-step
1733         breakpoints.
1734         (update_breakpoints_after_exec): Delete bp_single_step
1735         breakpoints.
1736         (detach_breakpoints): Remove special handling for single-step
1737         breakpoints.
1738         (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1739         (bpstat_stop_status): Add comment.
1740         (bpstat_what, bptype_string, print_one_breakpoint_location)
1741         (adjust_breakpoint_address, init_bp_location): Handle
1742         bp_single_step.
1743         (new_single_step_breakpoint): New function.
1744         (set_momentary_breakpoint, bkpt_remove_location): Remove special
1745         handling for single-step breakpoints.
1746         (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1747         (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1748         Rewrite.
1749         (detach_single_step_breakpoints, find_single_step_breakpoint):
1750         Delete functions.
1751         (breakpoint_has_location_inserted_here): New function.
1752         (single_step_breakpoint_inserted_here_p): Rewrite.
1753         * breakpoint.h: Remove FIXME.
1754         (enum bptype) <bp_single_step>: New enum value.
1755         (insert_single_step_breakpoint): Update comment.
1756         * infrun.c (resume_cleanups)
1757         (delete_step_thread_step_resume_breakpoint): Remove single-step
1758         breakpoints.
1759         (fetch_inferior_event): Install a cleanup that removes infrun
1760         breakpoints.
1761         (switch_back_to_stepped_thread) <expect thread advanced also>:
1762         Clear step-over info.
1763
1764 2014-10-15  Pedro Alves  <palves@redhat.com>
1765
1766         * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1767         (delete_thread_infrun_breakpoints): New function, with parts
1768         salvaged from delete_step_resume_breakpoint_callback.
1769         (delete_step_thread_step_resume_breakpoint): Delete.
1770         (for_each_just_stopped_thread_callback_func): New typedef.
1771         (for_each_just_stopped_thread): New function.
1772         (delete_just_stopped_threads_infrun_breakpoints): New function.
1773         (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1774         (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1775         ... this.  Adjust.
1776         (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1777
1778 2014-10-15  Pedro Alves  <palves@redhat.com>
1779
1780         * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1781         trying to step past a non-steppable watchpoint.
1782         * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1783         field.
1784         * infrun.c (struct step_over_info): Add new field
1785         'nonsteppable_watchpoint_p' and adjust comments.
1786         (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1787         Adjust.
1788         (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1789         (stepping_past_nonsteppable_watchpoint): New function.
1790         (step_over_info_valid_p): Also return true if stepping past a
1791         nonsteppable watchpoint.
1792         (proceed): Adjust call to set_step_over_info.  Remove reference to
1793         init_infwait_state.
1794         (init_wait_for_inferior): Remove reference to init_infwait_state.
1795         (waiton_ptid): Delete global.
1796         (struct execution_control_state)
1797         <stepped_after_stopped_by_watchpoint>: Delete field.
1798         (wait_for_inferior, fetch_inferior_event): Always pass
1799         minus_one_ptid to target_wait.
1800         (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1801         field.
1802         (init_infwait_state): Delete function.
1803         (handle_inferior_event): Remove infwait_state handling.
1804         (handle_signal_stop) <watchpoints handling>: Adjust after
1805         stepped_after_stopped_by_watchpoint removal.  Don't remove
1806         breakpoints here nor set infwait_state.  Set the thread's
1807         stepping_over_watchpoint flag, and call keep_going instead.
1808         (keep_going): Handle stepping_over_watchpoint.  Adjust
1809         set_step_over_info calls.
1810         * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1811         function.
1812
1813 2014-10-15  Pedro Alves  <palves@redhat.com>
1814
1815         * infrun.c (step_over_info_valid_p): New function.
1816         (resume): Use step_over_info_valid_p instead of checking the
1817         threads's trap_expected flag.
1818
1819 2014-10-15  Doug Evans  <dje@google.com>
1820             Walfred Tedeschi  <walfred.tedeschi@intel.com>
1821
1822         PR python/17364
1823         * python/lib/gdb/__init__.py (packages): Add "printer".
1824         * python/lib/gdb/command/bound_registers.py: Moved to ...
1825         * python/lib/gdb/printer/bound_registers.py: ... here.
1826         Add printer to global set of builtin printers.  Rename printer from
1827         "bound" to "mpx_bound128".
1828         * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1829         registered as global "builtin" printer.
1830         (add_builtin_pretty_printer): New function.
1831         * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1832         gdb/printer/__init__.py.
1833
1834 2014-10-15  Iain Buclaw  <ibuclaw@gdcproject.org>
1835
1836         * Makefile.in (SFILES): Remove d-support.c.
1837         (COMMON_OBS): Remove d-support.o.
1838         * d-lang.h (d_parse_symbol): Remove declaration.
1839         * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1840         * d-support.c: Remove file.
1841
1842 2014-10-15  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1843
1844         * gdb/infrun.c (process_event_stop_test): Apply
1845         gdbarch_addr_bits_remove to longjmp resume address.
1846
1847 2014-10-15  Pedro Alves  <palves@redhat.com>
1848
1849         * regformats/microblaze.dat: Delete file.
1850
1851 2014-10-15  Ajit Agarwal  <ajitkum@xilinx.com>
1852
1853         * features/Makefile (microblaze-expedite): Replace pc with rpc.
1854         * regformats/microblaze-with-stack-protect.dat: Regenerate.
1855
1856 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
1857
1858         * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1859         as non-trivial.
1860
1861 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
1862
1863         PR c++/13403
1864         PR c++/15154
1865         * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1866         with qualified args.
1867
1868 2014-10-14  Joel Brobecker  <brobecker@adacore.com>
1869
1870         * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1871         of the case where the second operand is a pointer.
1872         <BINOP_SUB>: Likewise.
1873
1874 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
1875
1876         * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1877         only if it is not NULL.
1878         (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1879         * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1880         (struct probe_ops) <clear_semaphore>: Likewise.
1881         * tracepoint.c (start_tracing): Call set_semaphore only if it is
1882         not NULL.
1883         (stop_tracing): Likewise, for clear_semaphore.
1884
1885 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
1886
1887         * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1888         using language_c, instead of current_language.
1889
1890 2014-10-13  Doug Evans  <dje@google.com>
1891
1892         * python/py-objfile.c (objfpy_initialize): New function.
1893         (objfpy_new, objfile_to_objfile_object): Call it.
1894         * python/py-progspace.c (pspy_initialize): New function.
1895         (pspy_new, pspace_to_pspace_object): Call it.
1896
1897 2014-10-13  Miroslav Franc  <mfranc@redhat.com>
1898             Jan Kratochvil  <jan.kratochvil@redhat.com>
1899
1900         Fix "save breakpoints" for "catch" command.
1901         * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1902         newline.
1903
1904 2014-10-12  Miroslav Franc  <mfranc@redhat.com>
1905
1906         Fix "save breakpoints" for "disable $bpnum" command.
1907         * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1908
1909 2014-10-10  Pedro Alves  <palves@redhat.com>
1910
1911         * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1912         (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1913         (HFILES_NO_SRCDIR): Remove solib-irix.h.
1914         * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1915         and been removed.
1916         * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1917         * configure.ac: Remove references to IRIX.
1918         * configure.host: Add *-*-irix* to the obsolete hosts section.
1919         Remove all other references to irix.
1920         * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1921         Delete files.
1922
1923 2014-10-10  Ajit Agarwal  <ajitkum@xilinx.com>
1924
1925         * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1926         isn't valid, release the tdesc arch data and return NULL.
1927
1928 2014-10-10  Pedro Alves  <palves@redhat.com>
1929
1930         * linux-tdep.c: Include observer.h.
1931         (linux_inferior_data): New global.
1932         (struct linux_info): New structure.
1933         (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1934         (get_linux_inferior_data): New functions.
1935         (linux_vsyscall_range): Rename to ...
1936         (linux_vsyscall_range_raw): ... this.
1937         (linux_vsyscall_range): New function; handles caching.
1938         (_initialize_linux_tdep): Register linux_inferior_data.  Install
1939         inferior_exit and inferior_appeared observers.
1940
1941 2014-10-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
1942             Pedro Alves  <palves@redhat.com>
1943
1944         PR symtab/14466
1945         * solib-svr4.c (svr4_read_so_list): Rename to ...
1946         (svr4_current_sos_1): ... this and change the function comment.
1947         (svr4_current_sos): New function.
1948
1949 2014-10-10  Pedro Alves  <palves@redhat.com>
1950
1951         * arch-utils.c (default_vsyscall_range): New function.
1952         * arch-utils.h (default_vsyscall_range): New declaration.
1953         * gdbarch.sh (vsyscall_range): New hook.
1954         * gdbarch.h, gdbarch.c: Regenerate.
1955         * linux-tdep.c (linux_vsyscall_range): New function.
1956         (linux_init_abi): Install linux_vsyscall_range as
1957         vsyscall_range gdbarch hook.
1958         * memrange.c (address_in_mem_range): New function.
1959         * memrange.h (address_in_mem_range): New declaration.
1960         * symfile-mem.c (find_vdso_size): Delete function.
1961         (add_vsyscall_page): Use gdbarch_vsyscall_range.
1962
1963 2014-10-10  Pedro Alves  <palves@redhat.com>
1964
1965         * infrun.c (normal_stop): Fix typo in comment.
1966
1967 2014-10-09  Sergio Durigan Junior  <sergiodj@redhat.com>
1968
1969         PR tdep/9390
1970         * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1971         typo when using logical AND to determine instruction type.
1972
1973 2014-10-09  Yao Qi  <yao@codesourcery.com>
1974
1975         * infrun.c (handle_signal_stop): Remove local variable
1976         'printed'.
1977
1978 2014-10-08  Stan Shebs  <stan@codesourcery.com>
1979
1980         * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1981
1982 2014-10-08  Gary Benson  <gbenson@redhat.com>
1983
1984         * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1985
1986 2014-10-08  Gary Benson  <gbenson@redhat.com>
1987
1988         * common/common-defs.h: Include common-exceptions.h.
1989         * exceptions.h: Do not include common-exceptions.h.
1990
1991 2014-10-08  Gary Benson  <gbenson@redhat.com>
1992
1993         * common/common-defs.h: Include cleanups.h.
1994         * common/common-exceptions.c: Do not include cleanups.h.
1995         * utils.h: Likewise.
1996
1997 2014-10-08  Gary Benson  <gbenson@redhat.com>
1998
1999         * ada-lang.c: Do not include exceptions.h.
2000         * ada-valprint.c: Likewise.
2001         * amd64-tdep.c: Likewise.
2002         * auto-load.c: Likewise.
2003         * block.c: Likewise.
2004         * break-catch-throw.c: Likewise.
2005         * breakpoint.c: Likewise.
2006         * btrace.c: Likewise.
2007         * c-lang.c: Likewise.
2008         * cli/cli-cmds.c: Likewise.
2009         * cli/cli-interp.c: Likewise.
2010         * cli/cli-script.c: Likewise.
2011         * completer.c: Likewise.
2012         * corefile.c: Likewise.
2013         * corelow.c: Likewise.
2014         * cp-abi.c: Likewise.
2015         * cp-support.c: Likewise.
2016         * cp-valprint.c: Likewise.
2017         * darwin-nat.c: Likewise.
2018         * dwarf2-frame-tailcall.c: Likewise.
2019         * dwarf2-frame.c: Likewise.
2020         * dwarf2loc.c: Likewise.
2021         * dwarf2read.c: Likewise.
2022         * eval.c: Likewise.
2023         * event-loop.c: Likewise.
2024         * event-top.c: Likewise.
2025         * f-valprint.c: Likewise.
2026         * frame-unwind.c: Likewise.
2027         * frame.c: Likewise.
2028         * gdbtypes.c: Likewise.
2029         * gnu-v2-abi.c: Likewise.
2030         * gnu-v3-abi.c: Likewise.
2031         * guile/scm-auto-load.c: Likewise.
2032         * guile/scm-breakpoint.c: Likewise.
2033         * guile/scm-cmd.c: Likewise.
2034         * guile/scm-frame.c: Likewise.
2035         * guile/scm-lazy-string.c: Likewise.
2036         * guile/scm-param.c: Likewise.
2037         * guile/scm-symbol.c: Likewise.
2038         * guile/scm-type.c: Likewise.
2039         * hppa-hpux-tdep.c: Likewise.
2040         * i386-tdep.c: Likewise.
2041         * inf-loop.c: Likewise.
2042         * infcall.c: Likewise.
2043         * infcmd.c: Likewise.
2044         * infrun.c: Likewise.
2045         * interps.c: Likewise.
2046         * interps.h: Likewise.
2047         * jit.c: Likewise.
2048         * linespec.c: Likewise.
2049         * linux-nat.c: Likewise.
2050         * linux-thread-db.c: Likewise.
2051         * m32r-rom.c: Likewise.
2052         * main.c: Likewise.
2053         * memory-map.c: Likewise.
2054         * mi/mi-cmd-break.c: Likewise.
2055         * mi/mi-cmd-stack.c: Likewise.
2056         * mi/mi-interp.c: Likewise.
2057         * mi/mi-main.c: Likewise.
2058         * monitor.c: Likewise.
2059         * nto-procfs.c: Likewise.
2060         * objc-lang.c: Likewise.
2061         * p-valprint.c: Likewise.
2062         * parse.c: Likewise.
2063         * ppc-linux-tdep.c: Likewise.
2064         * printcmd.c: Likewise.
2065         * probe.c: Likewise.
2066         * python/py-auto-load.c: Likewise.
2067         * python/py-breakpoint.c: Likewise.
2068         * python/py-cmd.c: Likewise.
2069         * python/py-finishbreakpoint.c: Likewise.
2070         * python/py-frame.c: Likewise.
2071         * python/py-framefilter.c: Likewise.
2072         * python/py-function.c: Likewise.
2073         * python/py-gdb-readline.c: Likewise.
2074         * python/py-inferior.c: Likewise.
2075         * python/py-infthread.c: Likewise.
2076         * python/py-lazy-string.c: Likewise.
2077         * python/py-linetable.c: Likewise.
2078         * python/py-param.c: Likewise.
2079         * python/py-prettyprint.c: Likewise.
2080         * python/py-symbol.c: Likewise.
2081         * python/py-type.c: Likewise.
2082         * python/py-value.c: Likewise.
2083         * python/python-internal.h: Likewise.
2084         * python/python.c: Likewise.
2085         * record-btrace.c: Likewise.
2086         * record-full.c: Likewise.
2087         * regcache.c: Likewise.
2088         * remote-fileio.c: Likewise.
2089         * remote-mips.c: Likewise.
2090         * remote.c: Likewise.
2091         * rs6000-aix-tdep.c: Likewise.
2092         * rs6000-nat.c: Likewise.
2093         * skip.c: Likewise.
2094         * solib-darwin.c: Likewise.
2095         * solib-dsbt.c: Likewise.
2096         * solib-frv.c: Likewise.
2097         * solib-ia64-hpux.c: Likewise.
2098         * solib-spu.c: Likewise.
2099         * solib-svr4.c: Likewise.
2100         * solib.c: Likewise.
2101         * spu-tdep.c: Likewise.
2102         * stack.c: Likewise.
2103         * stap-probe.c: Likewise.
2104         * symfile-mem.c: Likewise.
2105         * symmisc.c: Likewise.
2106         * target.c: Likewise.
2107         * thread.c: Likewise.
2108         * top.c: Likewise.
2109         * tracepoint.c: Likewise.
2110         * tui/tui-interp.c: Likewise.
2111         * typeprint.c: Likewise.
2112         * utils.c: Likewise.
2113         * valarith.c: Likewise.
2114         * valops.c: Likewise.
2115         * valprint.c: Likewise.
2116         * value.c: Likewise.
2117         * varobj.c: Likewise.
2118         * windows-nat.c: Likewise.
2119         * xml-support.c: Likewise.
2120
2121 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
2122
2123         * mips-tdep.c (add_offset_16): Rewrite to implement what the
2124         name implies.
2125         (extended_mips16_next_pc): Update accordingly.
2126
2127 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
2128
2129         * mips-tdep.c (mips16_instruction_is_compact_branch): New
2130         function.
2131         (micromips_instruction_is_compact_branch): Likewise.
2132         (mips16_scan_prologue): Terminate scanning upon seeing a branch
2133         or a compact jump, reaching a jump delay slot, or seeing a
2134         second non-prologue instruction.
2135         (micromips_scan_prologue): Also terminate scanning upon seeing a
2136         compact branch or jump, or reaching a branch or jump delay slot.
2137         (mips32_scan_prologue): Terminate scanning upon reaching a branch
2138         or jump delay slot, or seeing a second non-prologue instruction.
2139         (mips32_instruction_has_delay_slot): Retain instruction
2140         examination code only, update arguments accordingly and move
2141         instruction fetch pieces to...
2142         (mips32_insn_at_pc_has_delay_slot): ... this new function.
2143         (micromips_instruction_has_delay_slot): Likewise and to...
2144         (micromips_insn_at_pc_has_delay_slot): ... this new function.
2145         (mips16_instruction_has_delay_slot): Likewise and to...
2146         (mips16_insn_at_pc_has_delay_slot): ... this new function.
2147         (mips_single_step_through_delay): Update accordingly.
2148         (mips_adjust_breakpoint_address): Likewise.
2149
2150 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
2151
2152         * mips-tdep.c (micromips_instruction_has_delay_slot): When
2153         !mustbe32 also return 1 for 32-bit instructions.
2154         (mips16_instruction_has_delay_slot): Likewise.  Add an
2155         explanatory comment.
2156
2157 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
2158
2159         * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2160         symbols special.
2161
2162 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
2163
2164         * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2165         update comments.
2166         * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2167         for the breakpoint's address.  Don't preinitialize `placed_size'.
2168         (insert_bp_location): Set `reqstd_address' rather than
2169         `placed_address'.
2170         (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2171         (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2172         address.
2173         (bkpt_remove_location): Likewise.
2174         (deprecated_insert_raw_breakpoint): Likewise.
2175         (deprecated_remove_raw_breakpoint): Likewise.
2176         (find_single_step_breakpoint): Likewise.
2177         * mem-break.c (default_memory_insert_breakpoint): Use
2178         `reqstd_address' for the breakpoint's address.  Don't set
2179         `placed_address' or `placed_size' if breakpoint contents couldn't
2180         have been determined.
2181         * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2182         the breakpoint's address.
2183         (remote_insert_hw_breakpoint): Likewise.  Don't set
2184         `placed_address' or `placed_size' if breakpoint couldn't have been
2185         set.
2186         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2187         `reqstd_address' for the breakpoint's address.
2188         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2189         * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2190         * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2191         * microblaze-linux-tdep.c
2192         (microblaze_linux_memory_remove_breakpoint): Likewise.
2193         * monitor.c (monitor_insert_breakpoint): Likewise.
2194         * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2195         (procfs_insert_hw_breakpoint): Likewise.
2196         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2197         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2198         * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2199         * remote-mips.c (mips_insert_breakpoint): Likewise.
2200         * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2201
2202 2014-10-03  Luis Machado  <lgustavo@codesourcery.com>
2203
2204         * valops.c (value_assign): Check for bit field assignments
2205         before calling architecture-specific register value
2206         conversion functions.
2207
2208 2014-10-03  Pierre Muller  <muller@sourceware.org>
2209
2210         * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2211
2212 2014-10-02  Pedro Alves  <palves@redhat.com>
2213
2214         * breakpoint.c (breakpoints_should_be_inserted_now): Use
2215         threads_are_executing.
2216         * breakpoint.h (breakpoints_should_be_inserted_now): Add
2217         describing comment.
2218         * gdbthread.h (threads_are_executing): Declare.
2219         (handle_signal_stop) <random signals>: Don't print about the
2220         signal here if stopping.
2221         (end_stepping_range): Don't notify observers here.
2222         (normal_stop): Update the thread list.  If stopped by a random
2223         signal or a stepping range ended, notify observers.
2224         * thread.c (threads_executing): New global.
2225         (init_thread_list): Clear 'threads_executing'.
2226         (set_executing): Set or clear 'threads_executing'.
2227         (threads_are_executing): New function.
2228         (update_threads_executing): New function.
2229         (update_thread_list): Use it.
2230
2231 2014-10-02  Pedro Alves  <palves@redhat.com>
2232
2233         PR breakpoints/17431
2234         * breakpoint.c (update_breakpoints_after_exec): Don't create
2235         overlay, longjmp, std terminate nor exception breakpoints here.
2236
2237 2014-10-02  Pedro Alves  <palves@redhat.com>
2238
2239         * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2240         Adjust comments.
2241         * inferior.c (find_inferior_for_program_space): Give preference to
2242         the current inferior.
2243         * inferior.h (find_inferior_for_program_space): Update comment.
2244         * progspace.c (switch_to_program_space_and_thread): Prefer the
2245         current inferior if it's bound to the program space requested.  If
2246         the inferior found doesn't have a PID yet, don't bother looking up
2247         a thread.
2248         * progspace.h (switch_to_program_space_and_thread): Adjust
2249         comment.
2250         * thread.c (any_thread_of_process, any_live_thread_of_process):
2251         Give preference to the current thread.
2252
2253 2014-10-01  Pedro Alves  <palves@redhat.com>
2254
2255         * breakpoint.c (insert_bp_location): Error out if inserting a
2256         software breakpoint at a read-only address.
2257         * target.c (memory_xfer_check_region): New function, factored out
2258         from ...
2259         (memory_xfer_partial_1): ... this.  Make the 'reg_len' local a
2260         ULONGEST.
2261         (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2262         against the memory region attributes.
2263
2264 2014-10-01  Simon Marchi  <simon.marchi@ericsson.com>
2265
2266         * NEWS: Announce new exit-code field in -list-thread-groups
2267         output.
2268         * inferior.c (exit_inferior_1): Don't clear exit code.
2269         (inferior_appeared): Clear exit code.
2270         * mi/mi-main.c (print_one_inferior): Add printing of the exit
2271         code.
2272
2273 2014-10-01  Pedro Alves  <palves@redhat.com>
2274
2275         * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2276         GENERATED" along with emacs/vi read-only markers.
2277         * regformats/aarch64.dat: Regenerate.
2278         * regformats/arm-with-iwmmxt.dat: Regenerate.
2279         * regformats/arm-with-neon.dat: Regenerate.
2280         * regformats/arm-with-vfpv2.dat: Regenerate.
2281         * regformats/arm-with-vfpv3.dat: Regenerate.
2282         * regformats/i386/amd64-avx-linux.dat: Regenerate.
2283         * regformats/i386/amd64-avx.dat: Regenerate.
2284         * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2285         * regformats/i386/amd64-avx512.dat: Regenerate.
2286         * regformats/i386/amd64-linux.dat: Regenerate.
2287         * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2288         * regformats/i386/amd64-mpx.dat: Regenerate.
2289         * regformats/i386/amd64.dat: Regenerate.
2290         * regformats/i386/i386-avx-linux.dat: Regenerate.
2291         * regformats/i386/i386-avx.dat: Regenerate.
2292         * regformats/i386/i386-avx512-linux.dat: Regenerate.
2293         * regformats/i386/i386-avx512.dat: Regenerate.
2294         * regformats/i386/i386-linux.dat: Regenerate.
2295         * regformats/i386/i386-mmx-linux.dat: Regenerate.
2296         * regformats/i386/i386-mmx.dat: Regenerate.
2297         * regformats/i386/i386-mpx-linux.dat: Regenerate.
2298         * regformats/i386/i386-mpx.dat: Regenerate.
2299         * regformats/i386/i386.dat: Regenerate.
2300         * regformats/i386/x32-avx-linux.dat: Regenerate.
2301         * regformats/i386/x32-avx.dat: Regenerate.
2302         * regformats/i386/x32-avx512-linux.dat: Regenerate.
2303         * regformats/i386/x32-avx512.dat: Regenerate.
2304         * regformats/i386/x32-linux.dat: Regenerate.
2305         * regformats/i386/x32.dat: Regenerate.
2306         * regformats/microblaze-with-stack-protect.dat: Regenerate.
2307         * regformats/mips-dsp-linux.dat: Regenerate.
2308         * regformats/mips-linux.dat: Regenerate.
2309         * regformats/mips64-dsp-linux.dat: Regenerate.
2310         * regformats/mips64-linux.dat: Regenerate.
2311         * regformats/nios2-linux.dat: Regenerate.
2312         * regformats/rs6000/powerpc-32.dat: Regenerate.
2313         * regformats/rs6000/powerpc-32l.dat: Regenerate.
2314         * regformats/rs6000/powerpc-64l.dat: Regenerate.
2315         * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2316         * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2317         * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2318         * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2319         * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2320         * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2321         * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2322         * regformats/s390-linux32.dat: Regenerate.
2323         * regformats/s390-linux32v1.dat: Regenerate.
2324         * regformats/s390-linux32v2.dat: Regenerate.
2325         * regformats/s390-linux64.dat: Regenerate.
2326         * regformats/s390-linux64v1.dat: Regenerate.
2327         * regformats/s390-linux64v2.dat: Regenerate.
2328         * regformats/s390-te-linux64.dat: Regenerate.
2329         * regformats/s390x-linux64.dat: Regenerate.
2330         * regformats/s390x-linux64v1.dat: Regenerate.
2331         * regformats/s390x-linux64v2.dat: Regenerate.
2332         * regformats/s390x-te-linux64.dat: Regenerate.
2333         * regformats/tic6x-c62x-linux.dat: Regenerate.
2334         * regformats/tic6x-c62x.dat: Regenerate.
2335         * regformats/tic6x-c64x-linux.dat: Regenerate.
2336         * regformats/tic6x-c64x.dat: Regenerate.
2337         * regformats/tic6x-c64xp-linux.dat: Regenerate.
2338         * regformats/tic6x-c64xp.dat: Regenerate.
2339
2340 2014-10-01  Pedro Alves  <palves@redhat.com>
2341
2342         * features/Makefile: Update comments.
2343         (XMLTOC): List all xml files we build C files from.
2344         (clean-cfiles): New rule.
2345
2346 2014-10-01  Pedro Alves  <palves@redhat.com>
2347
2348         * features/i386/amd64-avx512-linux.c: Regenerate.
2349         * features/i386/amd64-avx512.c: Regenerate.
2350         * features/i386/x32-avx512-linux.c: Regenerate.
2351         * features/i386/x32-avx512.c: Regenerate.
2352
2353 2014-10-01  Pedro Alves  <palves@redhat.com>
2354
2355         * features/Makefile (WHICH): Remove arm-with-m,
2356         arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2357
2358 2014-10-01  Pedro Alves  <palves@redhat.com>
2359
2360         * features/Makefile (clean): New rule.
2361
2362 2014-10-01  Pedro Alves  <palves@redhat.com>
2363
2364         * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2365         (zmm14h): Add missing end quotes.
2366
2367 2014-10-01  Pedro Alves  <palves@redhat.com>
2368
2369         * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2370         * features/aarch64.c: Regenerate.
2371
2372 2014-09-30  Don Breazeal  <donb@codesourcery.com>
2373
2374         * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2375         code so as to work with follow_fork_inferior.
2376         * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2377         (inf_ttrace_create_inferior): Remove reference to
2378         inf_ttrace_vfork_ppid.
2379         (inf_ttrace_attach): Ditto.
2380         (inf_ttrace_detach): Ditto.
2381         (inf_ttrace_kill): Use current_inferior instead of
2382         inf_ttrace_vfork_ppid.
2383         (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2384         TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2385         inferior away from the parent.
2386         * infrun.c (follow_fork): Call follow_fork_inferior instead of
2387         target_follow_fork.
2388         (follow_fork_inferior): New function.
2389         (follow_inferior_reset_breakpoints): Make function static.
2390         * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2391         * linux-nat.c (linux_child_follow_fork): Move target-independent
2392         code to infrun.c:follow_fork_inferior.
2393
2394 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2395
2396         * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2397         * gdbarch.c: Regenerate.
2398         * gdbarch.h: Likewise.
2399         * corelow.c (sniff_core_bfd): Drop presence check for deleted
2400         gdbarch method 'regset_from_core_section'.
2401         (get_core_register_section): Remove handling for the case that
2402         regset == NULL and regset_from_core_section is defined.
2403         (get_core_registers): Drop check for deleted method.
2404         * procfs.c (procfs_do_thread_registers): Adjust comment.
2405
2406 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2407
2408         * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2409         (linux_nat_make_corefile_notes): Remove.
2410         (linux_target_install_ops): Do not set target method
2411         'make_corefile_notes'.
2412         * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2413         Remove field.
2414         (linux_corefile_thread_callback): Instead of args->collect, call
2415         linux_collect_thread_registers.
2416         (linux_make_corefile_notes): Remove 'collect' parameter.  Return
2417         NULL unless there is a regset iterator.
2418         (linux_make_corefile_notes_1): Remove.
2419         (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2420         by linux_make_corefile_notes.
2421         * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2422
2423 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2424
2425         * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2426         (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2427         Remove.
2428         * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2429
2430 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2431
2432         * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2433         (xtensa_iterate_over_regset_sections): New.
2434         (xtensa_gdbarch_init): Adjust gdbarch initialization.
2435
2436 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2437
2438         * vax-tdep.c (vax_regset_from_core_section): Remove.
2439         (vax_iterate_over_regset_sections): New.
2440         (vax_gdbarch_init): Adjust gdbarch initialization.
2441
2442 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2443
2444         * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2445         (tilegx_regset_from_core_section): Remove.
2446         (tilegx_iterate_over_regset_sections): New.
2447         (tilegx_linux_init_abi): Adjust gdbarch initialization.
2448
2449 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2450
2451         * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2452         (sparc_iterate_over_regset_sections): New.
2453         (sparc32_gdbarch_init): Adjust gdbarch initialization.
2454         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2455         targets.
2456         * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2457         (sparc64fbsd_init_abi): Call fbsd_init_abi.
2458         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2459         target method 'make_corefile_notes'.
2460
2461 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2462
2463         * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2464         'sizeof_gregset' and 'sizeof_fpregset'.
2465         * sh-tdep.c (sh_regset_from_core_section): Remove.
2466         (sh_iterate_over_regset_sections): New.
2467         (sh_gdbarch_init): Adjust gdbarch initialization.
2468         * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2469         sizeof_fpregset.
2470         * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2471         'sizeof_gregset'.
2472
2473 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2474
2475         * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2476         (score7_linux_iterate_over_regset_sections): New.
2477         (score_gdbarch_init): Adjust gdbarch initialization.
2478
2479 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2480
2481         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2482         FreeBSD targets.
2483         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2484         method 'make_corefile_notes'.
2485         * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2486         (ppcfbsd_regset_from_core_section): Remove.
2487         (ppcfbsd_iterate_over_regset_sections): New.
2488         (ppcfbsd_init_abi): Call fbsd_init_abi.  Adjust gdbarch
2489         initialization.
2490         * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2491         (ppcnbsd_iterate_over_regset_sections): New.
2492         (ppcnbsd_init_abi): Adjust.
2493         * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2494         (ppcobsd_iterate_over_regset_sections): New.
2495         (ppcobsd_init_abi): Adjust.
2496         * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2497         (rs6000_aix_iterate_over_regset_sections): New.
2498         (rs6000_aix_init_osabi): Adjust.
2499
2500 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2501
2502         * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2503         (nios2_regset_from_core_section): Remove.
2504         (nios2_iterate_over_regset_sections): New.
2505         (nios2_linux_init_abi): Adjust gdbarch initialization.
2506
2507 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2508
2509         * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2510         (am33_iterate_over_regset_sections): New.
2511         (am33_linux_init_osabi): Adjust gdbarch initialization.
2512
2513 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2514
2515         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2516         (mips_linux_iterate_over_regset_sections): New.
2517         (mips_linux_init_abi): Adjust gdbarch initialization.
2518         * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2519         (mips64obsd_iterate_over_regset_sections): New.
2520         (mips64obsd_init_abi): Adjust.
2521         * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2522         (mipsnbsd_iterate_over_regset_sections): New.
2523         (mipsnbsd_init_abi): Adjust.
2524
2525 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2526
2527         * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2528         (m88k_iterate_over_regset_sections): New.
2529         (m88k_gdbarch_init): Adjust gdbarch initialization.
2530
2531 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2532
2533         * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2534         (ia64_linux_iterate_over_regset_sections): New.
2535         (ia64_linux_init_abi): Adjust gdbarch initialization.
2536
2537 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2538
2539         * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2540         (m68kbsd_iterate_over_regset_sections): New.
2541         (m68kbsd_init_abi): Adjust gdbarch initialization.
2542         * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2543         (m68k_linux_iterate_over_regset_sections): New.
2544         (m68k_linux_init_abi): Adjust gdbarch initialization.
2545
2546 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2547
2548         * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2549         (m32r_linux_regset_from_core_section): Remove.
2550         (m32r_linux_iterate_over_regset_sections): New.
2551         (m32r_linux_init_abi): Adjust gdbarch initialization.
2552
2553 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2554
2555         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2556         (amd64obsd_iterate_over_regset_sections): New.
2557         (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2558         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2559         Remove.
2560         (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset.  Drop
2561         regset_from_core_section initialization.
2562         * i386-tdep.c (i386_regset_from_core_section): Remove.
2563         (i386_iterate_over_regset_sections): New.
2564         (i386_gdbarch_init): Adjust gdbarch initialization.
2565         * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2566         (i386_iterate_over_regset_sections): New prototype.
2567         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2568         Remove.
2569         (i386obsd_aout_iterate_over_regset_sections): New.
2570         (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2571         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2572         targets.
2573         * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2574         (amd64fbsd_init_abi): Call fbsd_init_abi.
2575         * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2576         (i386fbsd4_init_abi): Call fbsd_init_abi.
2577         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2578         target method 'make_corefile_notes'.
2579         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2580
2581 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2582
2583         * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2584         (hppa_hpux_iterate_over_regset_sections): New.
2585         (hppa_hpux_init_abi): Adjust gdbarch initialization.
2586         * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2587         (hppa_linux_iterate_over_regset_sections): New.
2588         (hppa_linux_init_abi): Adjust.
2589         * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2590         (hppanbsd_iterate_over_regset_sections): New.
2591         (hppanbsd_init_abi): Adjust.
2592         * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2593         (hppaobsd_iterate_over_regset_sections): New.
2594         (hppaobsd_init_abi): Adjust.
2595
2596 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2597
2598         * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2599         (frv_linux_iterate_over_regset_sections): New.
2600         (frv_linux_init_abi): Adjust gdbarch initialization.
2601
2602 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2603
2604         * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2605         (armbsd_iterate_over_regset_sections): New prototype.
2606         * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2607         (armbsd_iterate_over_regset_sections): New.
2608         * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2609         initialization.
2610
2611 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2612
2613         * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2614         (alpha_linux_iterate_over_regset_sections): New.
2615         (alpha_linux_init_abi): Adjust gdbarch initialization.
2616         * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2617         prototype.
2618         (alphanbsd_iterate_over_regset_sections): New prototype.
2619
2620 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2621
2622         * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2623         Remove.
2624         (aarch64_linux_iterate_over_regset_sections): New.
2625         (aarch64_linux_init_abi): Adjust gdbarch initialization.
2626
2627 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2628
2629         * fbsd-tdep.c: New file.
2630         * fbsd-tdep.h: New file.
2631         * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2632         (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2633         (ALLDEPFILES): Add fbsd-tdep.c.
2634
2635 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2636
2637         * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2638         parameter.
2639         * gdbarch.h: Regenerate.
2640         * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2641         iterator.
2642         (get_core_register_section): Add parameter 'regset' and use it, if
2643         set.  Add parameter 'min_size' and verify the bfd section size
2644         against it.
2645         (get_core_registers_cb): Add parameter 'regset' and pass it to
2646         get_core_register section.  For the "standard" register sections
2647         ".reg" and ".reg2", set an appropriate default for human_name.
2648         (get_core_registers): Don't abort when the gdbarch has an iterator
2649         but no regset_from_core_section.  Add NULL/0 for parameters
2650         'regset'/'min_size' in calls to get_core_register_section.
2651         * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2652         'regset' and use it instead of calling the
2653         regset_from_core_section gdbarch method.
2654         * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2655         * i386-tdep.c (i386_supply_xstateregset)
2656         (i386_collect_xstateregset, i386_xstateregset): Moved to
2657         i386-linux-tdep.c.
2658         (i386_regset_from_core_section): Drop handling for .reg-xfp and
2659         .reg-xstate.
2660         (i386_gdbarch_init): Set tdep field 'fpregset'.  Enable generic
2661         core file support only if the regset iterator hasn't been set.
2662         * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2663         (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2664         Moved from i386-tdep.c and renamed to *_linux*.
2665         (i386_linux_iterate_over_regset_sections): Add regset parameter to
2666         each callback invocation.  Allow any .reg-xstate size when reading
2667         from a core file.
2668         * amd64-tdep.c (amd64_supply_xstateregset)
2669         (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2670         amd64-linux-tdep.c.
2671         (amd64_regset_from_core_section): Remove.
2672         (amd64_init_abi): Set new tdep field 'fpregset'.  No longer
2673         install an amd64-specific regset_from_core_section gdbarch method.
2674         * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2675         (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2676         Moved from amd64-tdep.c and renamed to *_linux*.
2677         (amd64_linux_iterate_over_regset_sections): Add regset parameter
2678         to each callback invocation.  Allow any .reg-xstate size when
2679         reading from a core file.
2680         * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2681         (arm_linux_iterate_over_regset_sections): Add regset parameter to
2682         each callback invocation.
2683         (arm_linux_init_abi): No longer set the regset_from_core_section
2684         gdbarch method.
2685         * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2686         (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2687         each callback invocation.
2688         (ppc_linux_init_abi): No longer set the regset_from_core_section
2689         gdbarch method.
2690         * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2691         gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2692         (s390_regset_from_core_section): Remove.
2693         (s390_iterate_over_regset_sections): Add regset parameter to each
2694         callback invocation.
2695         (s390_gdbarch_init): No longer set the regset_from_core_section
2696         gdbarch method.  Drop initialization of deleted tdep fields.
2697
2698 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2699
2700         * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2701         (amd64_linux_iterate_over_regset_sections): New.
2702         (amd64_linux_init_abi_common): Don't install the regset section
2703         list, but the new iterator in gdbarch.
2704         * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2705         (arm_linux_vfp_regset_sections): Remove.  Move combined logic...
2706         (arm_linux_iterate_over_regset_sections): ...here.  New function.
2707         (arm_linux_init_abi): Set iterator instead of section list.
2708         * corelow.c (get_core_registers_cb): New function, logic moved
2709         from...
2710         (get_core_registers): ...loop body here.  Use new iterator method
2711         instead of walking through the regset section list.
2712         * gdbarch.sh: Remove 'core_regset_sections'.  New method
2713         'iterate_over_regset_sections'.  New typedef
2714         'iterate_over_regset_sections_cb'.
2715         * gdbarch.c: Regenerate.
2716         * gdbarch.h: Likewise.
2717         * i386-linux-tdep.c (i386_linux_regset_sections)
2718         (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2719         Remove.
2720         (i386_linux_iterate_over_regset_sections): New.
2721         (i386_linux_init_abi): Don't choose a regset section list, but
2722         install new iterator in gdbarch.
2723         * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2724         (linux_collect_regset_section_cb): New function, logic moved
2725         from...
2726         (linux_collect_thread_registers): ...loop body here.  Use iterator
2727         method instead of walking through list.
2728         (linux_make_corefile_notes_1): Check for presence of iterator
2729         method instead of regset section list.
2730         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2731         (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2732         (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2733         (ppc64_linux_fp_regset_sections): Remove.  Move combined logic...
2734         (ppc_linux_iterate_over_regset_sections): ...here.  New function.
2735         (ppc_linux_init_abi): Don't choose from above regset section
2736         lists, but install new iterator in gdbarch.
2737         * regset.h (struct core_regset_section): Remove.
2738         * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2739         have_linux_v1, have_linux_v2, and have_tdb.
2740         (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2741         (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2742         (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2743         (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2744         (s390x_linux64v2_regset_sections): Remove.  Move combined logic...
2745         (s390_iterate_over_regset_sections): ...here.  New function.  Use
2746         new tdep fields.
2747         (s390_gdbarch_init): Set new tdep fields.  Don't choose from above
2748         regset section lists, but install new iterator.
2749
2750 2014-09-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
2751
2752         * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2753
2754 2014-09-26  Simon Marchi  <simon.marchi@ericsson.com>
2755
2756         * progspace.c (print_program_space): Don't prune program spaces
2757         before printing them.
2758
2759 2014-09-25  Pedro Alves  <palves@redhat.com>
2760
2761         * infrun.c (user_visible_resume_ptid): Don't check
2762         singlestep_breakpoints_inserted_p.
2763
2764 2014-09-25  Pedro Alves  <palves@redhat.com>
2765
2766         * breakpoint.c (should_be_inserted): Add debug output.
2767
2768 2014-09-25  Pedro Alves  <palves@redhat.com>
2769
2770         * infrun.c (stepping_past_instruction_at)
2771         (clear_exit_convenience_vars): Point at infrun.h instead of
2772         inferior.h.
2773         (handle_signal_stop): Fix typo.
2774
2775 2014-09-24  Yao Qi  <yao@codesourcery.com>
2776
2777         * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2778         bitmask.
2779
2780 2014-09-22  Gary Benson  <gbenson@redhat.com>
2781
2782         * target.c (target_stop): Updated comment.
2783
2784 2014-09-22  Gary Benson  <gbenson@redhat.com>
2785
2786         * target/target.h (target_stop_ptid): Renamed as...
2787         (target_stop_and_wait): New function.  Updated comment.
2788         All uses updated.
2789         (target_continue_ptid): Renamed as...
2790         (target_continue_no_signal): New function.  Updated comment.
2791         All uses updated.
2792
2793 2014-09-22  Pedro Alves  <palves@redhat.com>
2794
2795         * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2796         and "auto" merged.
2797         * breakpoint.c (enum ugll_insert_mode): New enum.
2798         (always_inserted_mode): Now a plain boolean.
2799         (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2800         (breakpoints_always_inserted_mode): Delete.
2801         (breakpoints_should_be_inserted_now): New function.
2802         (insert_breakpoints): Pass UGLL_INSERT to
2803         update_global_location_list instead of calling
2804         insert_breakpoint_locations manually.
2805         (create_solib_event_breakpoint_1): New, factored out from ...
2806         (create_solib_event_breakpoint): ... this.
2807         (create_and_insert_solib_event_breakpoint): Use
2808         create_solib_event_breakpoint_1 instead of calling
2809         insert_breakpoint_locations manually.
2810         (update_global_location_list): Change parameter type from boolean
2811         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
2812         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2813         (update_global_location_list_nothrow): Change parameter type from
2814         boolean to enum ugll_insert_mode.
2815         (_initialize_breakpoint): "breakpoint always-inserted" option is
2816         now a boolean command.  Update help text.
2817         * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2818         (breakpoints_should_be_inserted_now): New declaration.
2819         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2820         Remove breakpoints_always_inserted_mode check.
2821         (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2822         * remote.c (remote_start_remote): Likewise.
2823
2824 2014-09-22  Pedro Alves  <palves@redhat.com>
2825
2826         * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2827         (insert_breakpoints): Don't call insert_breakpoint_locations here.
2828         Instead, pass UGLL_INSERT to update_global_location_list.
2829         (update_global_location_list): Change parameter type from boolean
2830         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
2831         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2832         (create_solib_event_breakpoint_1): New, factored out from ...
2833         (create_solib_event_breakpoint): ... this.
2834         (create_and_insert_solib_event_breakpoint): Use
2835         create_solib_event_breakpoint_1 instead of calling
2836         insert_breakpoint_locations manually.
2837         (update_global_location_list): Handle UGLL_INSERT.
2838
2839 2014-09-22  Pedro Alves  <palves@redhat.com>
2840
2841         * breakpoint.c (enum ugll_insert_mode): New enum.
2842         (update_global_location_list)
2843         (update_global_location_list_nothrow): Change parameter type from
2844         boolean to enum ugll_insert_mode.  All callers adjusted.
2845
2846 2014-09-19  Joel Brobecker  <brobecker@adacore.com>
2847
2848         * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2849         SystemTap support in GDB.
2850
2851 2014-09-19  Don Breazeal  <donb@codesourcery.com>
2852
2853         * linux-nat.c (linux_handle_extended_wait): Call
2854         linux_ptrace_get_extended_event.
2855         (wait_lwp): Call linux_is_extended_waitstatus.
2856         (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2857         and linux_is_extended_waitstatus.
2858         * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2859         linux_ptrace_get_extended_event.
2860         (linux_ptrace_get_extended_event): New function.
2861         (linux_is_extended_waitstatus): New function.
2862         * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2863         (linux_is_extended_waitstatus): New declarations.
2864
2865 2014-09-19  Yao Qi  <yao@codesourcery.com>
2866
2867         * dwarf2read.c (dwarf_decode_lines): Update declaration.
2868         (handle_DW_AT_stmt_list): Add argument 'lowpc'.  Update
2869         comments.  Callers update.
2870         (dwarf_decode_lines): Likewise.
2871         (dwarf_decode_lines_1): Add argument 'lowpc'.  Update
2872         comments.  Skip the line table if  'lowpc' is greater than
2873         'address'.  Don't check
2874         dwarf2_per_objfile->has_section_at_zero.
2875
2876 2014-09-18  Doug Evans  <dje@google.com>
2877
2878         * NEWS: Mention new "producer" attribute of gdb.Symtab.
2879         * python/py-symtab.c (stpy_get_producer): New function.
2880         (symtab_object_getset): Add "producer" attribute.
2881
2882 2014-09-17  Ulrich Weigand  <uweigand@de.ibm.com>
2883
2884         PR gdb/17384
2885         * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2886         (do_captured_read_memory_integer): Remove.
2887         (safe_read_memory_integer): Use target_read_memory directly instead
2888         of catching errors in do_captured_read_memory_integer.
2889
2890 2014-09-16  Maciej W. Rozycki  <macro@codesourcery.com>
2891
2892         * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2893         not gdb/doc.
2894
2895 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
2896
2897         * objc-lang.c (find_implementation_from_class): Remove dead code.
2898
2899 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
2900
2901         PR cli/7233
2902         * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2903         "fprintf_unfiltered (gdb_stdlog...)".
2904
2905 2014-09-16  Patrick Palka  <patrick@parcs.ath.cx>
2906
2907         PR breakpoints/12526
2908         * breakpoint.h (struct watchpoint): New fields val_bitpos and
2909         val_bitsize.
2910         * breakpoint.c (watch_command_1): Use these fields to retain
2911         bitfield information.
2912         (extract_bitfield_from_watchpoint_value): New function.
2913         (watchpoint_check): Use it.
2914         (update_watchpoint): Use it.  Optimize the address and length of a
2915         HW watchpoint pointing to a bitfield.
2916         * value.h (unpack_value_bitfield): New prototype.
2917         * value.c (unpack_value_bitfield): Make extern.
2918
2919 2014-09-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2920
2921         * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2922         x86-dregs.o.
2923         * gnu-nat.c (inf_threads): New function.
2924         * gnu-nat.h (inf_threads_ftype): New typedef.
2925         (inf_threads): New declaration.
2926         * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2927         [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2928         (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2929         (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2930         (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2931         (i386_gnu_dr_get_control): New functions.
2932         (reg_addr): New structure.
2933         (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2934         i386 debugging register hooks.
2935         * NEWS: Mention this.
2936
2937 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
2938
2939         * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2940         vector data transfer instructions.
2941         (arm_record_coproc_data_proc): Updated.
2942
2943 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
2944
2945         * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2946         arm_record_exreg_ld_st_insn.
2947         (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2948         load/store insns.
2949
2950 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
2951
2952         * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2953         (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2954         processing instructions.
2955
2956 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
2957
2958         * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2959         for advance SIMD struct ld/st insn.
2960         (thumb2_record_decode_insn_handler): Replace stub handler with
2961         thumb2_record_asimd_struct_ld_st.
2962
2963 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
2964
2965         * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2966         for asimd, vfp and coprocessor insns.
2967         (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2968         and coprocessor insns.
2969         (thumb2_record_coproc_insn): New function.
2970         (thumb2_record_decode_insn_handler): Update coprocessor insns record
2971         handlers.
2972         (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2973         opcode 110 insns.
2974
2975 2014-09-13  Doug Evans  <xdje42@gmail.com>
2976
2977         * NEWS: Mention new "queue-signal" command.
2978         * infcmd.c (queue_signal_command): New function.
2979         (_initialize_infcmd): Add new queue-signal command.
2980
2981 2014-09-13  Doug Evans  <xdje42@gmail.com>
2982
2983         * linux-nat.c (wait_lwp): Add debugging printf.
2984         (linux_nat_wait_1): Ditto.
2985
2986 2014-09-12  Pedro Alves  <palves@redhat.com>
2987
2988         * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2989         (create_and_insert_solib_event_breakpoint): New functions.
2990         * breakpoint.h (create_and_insert_solib_event_breakpoint)
2991         (remove_solib_event_breakpoints_at_next_stop): New declarations.
2992         * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2993         (remove_dbx_link_breakpoint): Delete function.
2994         (insert_dbx_link_bpt_in_file): Use
2995         create_and_insert_solib_event_breakpoint instead of
2996         deprecated_insert_raw_breakpoint.
2997         (procfs_wait): Don't check whether we hit __dbx_link here.
2998         (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2999         here.
3000         * solib-irix.c (base_breakpoint): Delete global.
3001         (disable_break): Delete function.
3002         (enable_break): Use create_solib_event_breakpoint
3003         instead of deprecated_insert_raw_breakpoint.
3004         (irix_solib_handle_event): New function.
3005         (irix_solib_create_inferior_hook): Don't run the target or disable
3006         the mapping-complete breakpoint here.
3007         (_initialize_irix_solib): Install irix_solib_handle_event as
3008         so_ops->handle_event hook.
3009
3010 2014-09-12  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
3011             Ulrich Weigand  <uweigand@de.ibm.com>
3012
3013         PR tdep/17379
3014         * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3015         instead of read_memory_unsigned_integer.
3016
3017 2014-09-12  Gary Benson  <gbenson@redhat.com>
3018
3019         * nat/linux-waitpid.c: Include common-defs.h.
3020         [GDBSERVER]: Add FIXME comment.
3021         [!GDBSERVER]: Don't include defs.h or signal.h.
3022         (linux_debug) [!GDBSERVER]: Remove empty block.
3023
3024 2014-09-12  Gary Benson  <gbenson@redhat.com>
3025
3026         * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3027         Don't include defs.h or server.h.
3028
3029 2014-09-12  Gary Benson  <gbenson@redhat.com>
3030
3031         * nat/linux-btrace.c: Include common-defs.h.
3032         Don't include defs.h, server.h or gdbthread.h.
3033         * nat/linux-btrace.h (struct target_ops): New forward declaration.
3034
3035 2014-09-12  Gary Benson  <gbenson@redhat.com>
3036
3037         * common/agent.c: Include common-defs.h.
3038         Don't include defs.h or server.h.
3039         * common/buffer.c: Likewise.
3040         * common/common-debug.c: Likewise.
3041         * common/common-utils.c: Likewise.
3042         * common/errors.c: Likewise.
3043         * common/filestuff.c: Likewise.
3044         * common/format.c: Likewise.
3045         * common/gdb_vecs.c: Likewise.
3046         * common/print-utils.c: Likewise.
3047         * common/ptid.c: Likewise.
3048         * common/rsp-low.c: Likewise.
3049         * common/signals.c: Likewise.
3050         * common/vec.c: Likewise.
3051         * common/xml-utils.c: Likewise.
3052         * nat/linux-osdata.c: Likewise.
3053         * nat/linux-procfs.c: Likewise.
3054         * nat/linux-ptrace.c: Likewise.
3055         * nat/mips-linux-watch.c: Likewise.
3056         * target/waitstatus.c: Likewise.
3057
3058 2014-09-12  Tom Tromey  <tromey@redhat.com>
3059             Gary Benson  <gbenson@redhat.com>
3060
3061         * common/common-regcache.h: New file.
3062         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3063         * regcache.h: Include common-regcache.h.
3064         (regcache_read_pc): Don't declare.
3065         * regcache.c (get_thread_regcache_for_ptid): New function.
3066         * nat/linux-btrace.c: Don't include regcache.h.
3067         Include common-regcache.h.
3068         (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3069
3070 2014-09-11  Thomas Schwinge  <thomas@codesourcery.com>
3071
3072         * regcache.h (struct regset): Declare.
3073
3074 2014-09-11  Pedro Alves  <palves@redhat.com>
3075
3076         PR gdb/17347
3077         * main.c: Include "infrun.h".
3078         (catch_command_errors, catch_command_errors_const): Wait for the
3079         foreground command to complete.
3080         * top.c (maybe_wait_sync_command_done): New function, factored out
3081         from ...
3082         (maybe_wait_sync_command_done): ... here.
3083         * top.h (maybe_wait_sync_command_done): New declaration.
3084
3085 2014-09-11  Tom Tromey  <tromey@redhat.com>
3086             Gary Benson  <gbenson@redhat.com>
3087
3088         * common/symbol.h: New file.
3089         * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3090         * minsyms.c (find_minimal_symbol_address): New function.
3091         * common/agent.c: Include common/symbol.h.
3092         [!GDBSERVER]: Don't include objfiles.h.
3093         (agent_look_up_symbols): Use find_minimal_symbol_address.
3094
3095 2014-09-11  Gary Benson  <gbenson@redhat.com>
3096
3097         * target/target.h (target_stop_ptid, target_continue_ptid):
3098         Declare.
3099         * target.c (target_stop_ptid, target_continue_ptid): New
3100         functions.
3101         * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3102         (agent_run_command): Always use target_stop_ptid and
3103         target_continue_ptid.
3104
3105 2014-09-11  Tom Tromey  <tromey@redhat.com>
3106             Gary Benson  <gbenson@redhat.com>
3107
3108         * target/target.h: New file.
3109         * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3110         * target.h: Include target/target.h.
3111         (target_read_memory, target_write_memory): Don't declare.
3112         * target.c (target_read_uint32): New function.
3113         * common/agent.c: Include target/target.h.
3114         [!GDBSERVER]: Don't include target.h.
3115         (helper_thread_id): Type changed to uint32_t.
3116         (agent_get_helper_thread_id): Use target_read_uint32.
3117         (agent_run_command): Always use target_read_memory and
3118         target_write_memory.
3119         (agent_capability): Type changed to uint32_t.
3120         (agent_capability_check): Use target_read_uint32.
3121
3122 2014-09-11  Gary Benson  <gbenson@redhat.com>
3123
3124         * common/common-debug.h (show_debug_regs): Declare.
3125         * common/common-debug.c (show_debug_regs): Define.
3126         * aarch64-linux-nat.c (debug_hw_points): Don't define.  Replace
3127         all uses with show_debug_regs.  Replace all uses that considered
3128         debug_hw_points as a multi-value integer with straight boolean
3129         uses.
3130         * x86-nat.c (debug_hw_points): Don't define.  Replace all uses
3131         with show_debug_regs.
3132         * nat/x86-dregs.c (debug_hw_points): Don't declare.  Replace
3133         all uses with show_debug_regs.
3134         * mips-linux-nat.c (maint_show_dr): Don't define.  Replace all
3135         uses with show_debug_regs.
3136
3137 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
3138
3139         * findvar.c (address_from_register): Handle targets requiring
3140         a special conversion routine even for plain pointer types.
3141
3142 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
3143
3144         * rs6000-nat.c (exec_one_dummy_insn): Remove.
3145         (store_register): Do not call exec_one_dummy_insn.
3146
3147 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
3148
3149         * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3150         dereference it first.  Use value_enclosing_type instead of
3151         value_type.
3152         (ada_array_length): Likewise.
3153
3154 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
3155
3156         * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3157         Adjust function implementation and documentation accordingly.
3158         (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3159         NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3160         Update call to ada_value_ptr_subscript.
3161
3162 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
3163
3164         * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3165         instead of VAL's type.
3166
3167 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
3168
3169         * amd64-linux-nat.c: Add <sys/uio.h> #include.
3170
3171 2014-09-09  Doug Evans  <xdje42@gmail.com>
3172
3173         PR guile/17367
3174         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3175         last parameter to pkg-config, not first.
3176         * configure.ac: Pass --with-guile provided pkg-config path to
3177         GDB_GUILE_PROGRAM_NAMES.
3178         * configure: Regenerate.
3179
3180 2014-09-09  Gabriel Krisman Bertazi  <gabriel@krisman.be>
3181
3182         * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3183         Bertazi".
3184
3185 2014-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
3186
3187         * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3188         Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3189         the list of sections determining GDB_OSABI_IRIX.
3190
3191 2014-09-09  James Hogan  <james.hogan@imgtec.com>
3192
3193         * MAINTAINERS (Write After Approval): Add "James Hogan".
3194
3195 2014-09-09  James Hogan  <james.hogan@imgtec.com>
3196
3197         * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3198
3199 2014-09-09  Joel Brobecker  <brobecker@adacore.com>
3200
3201         * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3202
3203 2014-09-08  Doug Evans  <xdje42@gmail.com>
3204
3205         PR 17247
3206         * guile.c: #include <signal.h>.
3207         (_initialize_guile): Block SIGCHLD while initializing Guile.
3208
3209         Replaces the following, which is reverted.
3210
3211         2014-07-26  Doug Evans  <xdje42@gmail.com>
3212
3213         PR 17185
3214         * configure.ac: Add check for header gc/gc.h.
3215         Add check for function setenv.
3216         * configure: Regenerate.
3217         * config.in: Regenerate.
3218         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3219
3220 2014-09-08  Doug Evans  <xdje42@gmail.com>
3221
3222         * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3223         with named constant.  Fix style of pointer comparison.
3224         * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3225
3226 2014-09-07  Gabriel Krisman Bertazi  <gabriel@krisman.be>
3227
3228         PR gdb/17035
3229         * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3230         decide whether we display the command on "show user".
3231         * cli/cli-script.c (show_user_1): Only verify cmdlines after
3232         printing command name.
3233         * cli/cli-decode.h (cli_user_command_p): Declare new function.
3234         * cli/cli-decode.c (cli_user_command_p): Create helper function
3235         to verify whether cmd_list_element is a user-defined command.
3236
3237 2014-09-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3238
3239         PR python/17355
3240         * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3241         Fix goto out of TRY_CATCH.
3242
3243 2014-09-06  Doug Evans  <xdje42@gmail.com>
3244             Tom Tromey  <tromey@redhat.com>
3245
3246         PR 15276
3247         * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3248         $_any_caller_matches.
3249         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3250         * python/lib/gdb/function/caller_is.py: New file.
3251
3252 2014-09-06  Doug Evans  <xdje42@gmail.com>
3253
3254         * infcmd.c (program_info): Fix typo.
3255
3256 2014-09-05  Sergio Durigan Junior  <sergiodj@redhat.com>
3257
3258         PR gdb/17235
3259         * stap-probe.c (stap_parse_single_operand): Delete unused variable
3260         'number'.  New variable 'has_digit'.  Rewrite code to deal with
3261         subexpressions on SDT probes.
3262
3263 2014-09-04  Pedro Alves  <palves@redhat.com>
3264
3265         * c-exp.y (parse_number): Skip handling base-switching prefixes if
3266         the input is only one character long.
3267
3268 2014-09-04  Sergio Durigan Junior  <sergiodj@redhat.com>
3269
3270         PR fortran/17237
3271         * f-valprint.c (f_val_print): Specify the correct print option to
3272         use when printing integer values.
3273
3274 2014-09-04  Gary Benson  <gbenson@redhat.com>
3275
3276         * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3277         Remove code to cope with LWPs wrapped as PIDs.
3278         Add assertions to ensure no wrapped LWPs are passed.
3279
3280 2014-09-04  Pedro Alves  <palves@redhat.com>
3281
3282         * value.c (value_ranges_copy_adjusted): New function, factored out
3283         from ...
3284         (value_contents_copy_raw): ... here.
3285         (unpack_value_bits_as_long_1): Rename back to ...
3286         (unpack_bits_as_long): ... this.  Remove 'original_value' and
3287         'result' parameters.  Change return type to LONGEST.
3288         (unpack_value_bits_as_long): Delete.
3289         (unpack_value_field_as_long_1): Delete.
3290         (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3291         (unpack_value_bitfield): New function.
3292         (value_field_bitfield): Reimplement using unpack_value_bitfield.
3293         (value_fetch_lazy): Use unpack_value_bitfield.
3294         * value.h (unpack_value_bits_as_long): Delete declaration.
3295
3296 2014-09-03  Sasha Smundak  <asmundak@google.com>
3297
3298         * python/py-frame.c (frapy_read_register): New function.
3299
3300 2014-09-03  James Hogan  <james.hogan@imgtec.com>
3301
3302         * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3303         prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3304
3305 2014-09-03  Sergio Durigan Junior  <sergiodj@redhat.com>
3306
3307         PR python/16699
3308         * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3309         function.
3310         (add_cmd): Set "completer_handle_brkchars" to NULL.
3311         * cli/cli-decode.h (struct cmd_list_element)
3312         <completer_handle_brkchars>: New field.
3313         * command.h (completer_ftype_void): New typedef.
3314         (set_cmd_completer_handle_brkchars): New prototype.
3315         * completer.c (set_gdb_completion_word_break_characters): New
3316         function.
3317         (complete_line_internal): Call "completer_handle_brkchars"
3318         callback from command.
3319         * completer.h: Include "command.h".
3320         (set_gdb_completion_word_break_characters): New prototype.
3321         * python/py-cmd.c (cmdpy_completer_helper): New function.
3322         (cmdpy_completer_handle_brkchars): New function.
3323         (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3324         (cmdpy_init): Set completer_handle_brkchars to
3325         cmdpy_completer_handle_brkchars.
3326
3327 2014-09-03  Gary Benson  <gbenson@redhat.com>
3328
3329         * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3330         (ALL_DEBUG_ADDRESS_REGISTERS): New macro.  All uses updated.
3331         Loop conditions changed to equivalent form.
3332         (struct x86_debug_reg_state): Updated dr_ref_count comment.
3333         * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3334         ALL_DEBUG_ADDRESS_REGISTERS.
3335
3336 2014-09-03  Joel Brobecker  <brobecker@adacore.com>
3337
3338         * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3339         description fix.
3340
3341 2014-09-02  Doug Evans  <dje@google.com>
3342
3343         * typeprint.c (find_global_typedef): Fix comment.
3344
3345 2014-09-02  Gary Benson  <gbenson@redhat.com>
3346
3347         * i386-nat.h: Renamed as...
3348         * x86-nat.h: New file.  All type, function and variable name
3349         prefixes changed from "i386_" to "x86_".  All references updated.
3350         * i386-nat.c: Renamed as...
3351         * x86-nat.c: New file.  All type, function and variable name
3352         prefixes changed from "i386_" to "x86_".  All references updated.
3353         * common/i386-xstate.h: Renamed as...
3354         * common/x86-xstate.h: New file.  All type, function and variable
3355         name prefixes changed from "i386_" to "x86_".  All references
3356         updated.
3357         * nat/i386-cpuid.h: Renamed as...
3358         * nat/x86-cpuid.h: New file.  All type, function and variable name
3359         prefixes changed from "i386_" to "x86_".  All references updated.
3360         * nat/i386-gcc-cpuid.h: Renamed as...
3361         * nat/x86-gcc-cpuid.h: New file.  All type, function and variable
3362         name prefixes changed from "i386_" to "x86_".  All references
3363         updated.
3364         * nat/i386-dregs.h: Renamed as...
3365         * nat/x86-dregs.h: New file.  All type, function and variable name
3366         prefixes changed from "i386_" to "x86_".  All references updated.
3367         * nat/i386-dregs.c: Renamed as...
3368         * nat/x86-dregs.c: New file.  All type, function and variable name
3369         prefixes changed from "i386_" to "x86_".  All references updated.
3370
3371 2014-09-01  Maciej W. Rozycki  <macro@codesourcery.com>
3372
3373         * varobj.c (_initialize_varobj): Move to the end of file.
3374
3375 2014-08-29  Gary Benson  <gbenson@redhat.com>
3376
3377         * common/common-exceptions.h: New file.
3378         * common/common-exceptions.c: Likewise.
3379         * Makefile.in (SFILES): Add common/common-exceptions.c.
3380         (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3381         (COMMON_OBS): Add common-exceptions.o.
3382         (common-exceptions.o): New rule.
3383         * exceptions.h (common-exceptions.h): Include.
3384         (gdb_setjmp.h): Do not include.
3385         (return_reason): Moved to common-exceptions.h.
3386         (enum return_reason): Likewise.
3387         (RETURN_MASK): Likewise.
3388         (typedef return_mask): Likewise.
3389         (enum errors): Likewise.
3390         (struct gdb_exception): Likewise.
3391         (exceptions_state_mc_init): Likewise.
3392         (exceptions_state_mc_action_iter): Likewise.
3393         (exceptions_state_mc_action_iter_1): Likewise.
3394         (TRY_CATCH): Likewise.
3395         (throw_exception): Likewise.
3396         (throw_verror): Likewise.
3397         (throw_vquit): Likewise.
3398         (throw_error): Likewise.
3399         (throw_quit): Likewise.
3400         * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3401         (enum catcher_action): Likewise.
3402         (struct catcher): Likewise.
3403         (current_catcher): Likewise.
3404         (catcher_list_size): Likewise.
3405         (exceptions_state_mc_init): Likewise.
3406         (catcher_pop): Likewise.
3407         (exceptions_state_mc): Likewise.
3408         (exceptions_state_mc_action_iter): Likewise.
3409         (exceptions_state_mc_action_iter_1): Likewise.
3410         (throw_exception): Likewise.
3411         (exception_messages): Likewise.
3412         (exception_messages_size): Likewise.
3413         (throw_it): Likewise.
3414         (throw_verror): Likewise.
3415         (throw_vquit): Likewise.
3416         (throw_error): Likewise.
3417         (throw_quit): Likewise.
3418         (prepare_to_throw_exception): New function.
3419
3420 2014-08-29  Gary Benson  <gbenson@redhat.com>
3421
3422         * common/gdb_setjmp.h: New file.
3423         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3424         * configure.ac: Move sigsetjmp check...
3425         * common/common.m4: ...here.
3426         * configure: Regenerate.
3427         * cp-support.c (SIGJMP_BUF): Delete.
3428         (SIGSETJMP): Likewise.
3429         (SIGLONGJMP): Likewise.
3430         * exceptions.h (gdb_setjmp.h): Include.
3431         (setjmp.h): Do not include.
3432         (EXCEPTIONS_SIGJMP_BUF): Delete.
3433         (EXCEPTIONS_SIGSETJMP): Likewise.
3434         (EXCEPTIONS_SIGLONGJMP): Likewise.
3435         Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3436         from gdb_setjmp.h.
3437         * exceptions.c: Likewise.
3438
3439 2014-08-29  Gary Benson  <gbenson@redhat.com>
3440
3441         * cleanups.h: Moved to...
3442         * common/cleanups.h: New file.
3443         * cleanups.c: Moved to...
3444         * common/cleanups.c: New file.  Include common-defs.h and
3445         cleanups.h.  Do not include defs.h.
3446         * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3447         (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3448         (cleanups.o): New rule.
3449
3450 2014-08-29  Gary Benson  <gbenson@redhat.com>
3451
3452         * common/errors.h (internal_warning): New declaration.
3453         (internal_vwarning): Likewise.
3454         * common/errors.c (internal_warning): New function.
3455         * utils.h (internal_warning): Don't declare.
3456         (internal_vwarning): Likewise.
3457         * utils.c (internal_warning): Removed.
3458
3459 2014-08-29  Gary Benson  <gbenson@redhat.com>
3460
3461         * main.c (captured_main): Use warning during startup.
3462         Prefix startup warning messages with command name.
3463
3464 2014-08-29  Gary Benson  <gbenson@redhat.com>
3465
3466         * main.c (captured_main): Handle usage errors with error.
3467
3468 2014-08-29  Gary Benson  <gbenson@redhat.com>
3469
3470         * go32-nat.c (go32_create_inferior): Replace a fprintf/
3471         exit pair with a call to error.  Wrap the message with _().
3472
3473 2014-08-29  Gary Benson  <gbenson@redhat.com>
3474
3475         * main.c (captured_main): Replace a fprintf/exit
3476         pair with a call to error.  Wrap the message with _().
3477
3478 2014-08-29  Gary Benson  <gbenson@redhat.com>
3479
3480         * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3481         pairs with calls to error.  Wrap the message with _().
3482
3483 2014-08-29  Gary Benson  <gbenson@redhat.com>
3484
3485         * utils.c (vwarning): Protect calls to target_terminal_ours
3486         and wrap_here.
3487
3488 2014-08-29  Gary Benson  <gbenson@redhat.com>
3489
3490         * exceptions.c (print_flush): Protect calls to
3491         target_terminal_ours and wrap_here.
3492
3493 2014-08-29  Gary Benson  <gbenson@redhat.com>
3494
3495         * utils.h (filtered_printing_initialized): New declaration.
3496         * utils.c (abort_with_message): New function.
3497         (internal_vproblem): Use abort_with_message for first level
3498         recursive internal problems, and if gdb_stderr is not set up.
3499         Protect calls to target_terminal_ours, begin_line and query.
3500
3501 2014-08-28  Doug Evans  <dje@google.com>
3502
3503         * symtab.c (in_prologue): Move definition to better spot.
3504         (skip_prologue_using_sal): Ditto.
3505
3506 2014-08-28  Doug Evans  <dje@google.com>
3507
3508         * symtab.c (find_function_start_sal): Move definition to better spot.
3509
3510 2014-08-28  Yao Qi  <yao@codesourcery.com>
3511
3512         * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3513         found_stack_adjust in forward scan.  Remove condition check
3514         on found_stack_adjust which is always true.  Indent the code.
3515
3516 2014-08-28  Yao Qi  <yao@codesourcery.com>
3517
3518         * dwarf2read.c (dwarf_decode_lines): Update declaration.
3519         (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3520         (dwarf_decode_lines): Remove argument
3521         want_line_info.  Remove condition check on want_line_info.
3522         Callers update.
3523
3524 2014-08-27  Doug Evans  <dje@google.com>
3525
3526         * dwarf2read.c (dwarf_record_line): Fix typo.
3527
3528 2014-08-27  Patrick Palka  <patrick@parcs.ath.cx>
3529
3530         * target.h (struct target_ops::to_terminal_save_ours): Remove
3531         declaration.
3532         (target_terminal_save_ours): Remove macro.
3533         * target-delegates.c: Regenerate.
3534         * inf-child.c (inf_child_target): Don't set the nonexistent
3535         field to_terminal_save_ours.
3536         * inferior.h (child_terminal_save_ours): Remove declaration.
3537         * terminal.h (gdb_save_tty_state): New declaration.
3538         * inflow.c (child_terminal_save_ours): Rename to ...
3539         (gdb_save_tty_state): ... this.
3540         * tui/tui.c: Include terminal.h.
3541         (tui_enable): Use gdb_save_tty_state instead of
3542         target_terminal_save_ours.
3543         (tui_disable): Likewise.
3544
3545 2014-08-25  Doug Evans  <dje@google.com>
3546
3547         * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3548         Pass NULL instead of 0 for context pointer.
3549
3550 2014-08-25  Yao Qi  <yao@codesourcery.com>
3551
3552         * dwarf2read.c: Fix grammatical error.
3553
3554 2014-08-24  Yao Qi  <yao@codesourcery.com>
3555
3556         * dwarf2read.c (scan_partial_symbols):  Update comments.
3557         Rename argument 'need_pc' with 'set_addrmap'.
3558         (add_partial_namespace): Rename argument 'need_pc' with
3559         'set_addrmap'.
3560         (add_partial_module): Likewise.
3561         (add_partial_subprogram): Likewise.  Update comments.
3562         (dwarf2_name): Fix typo.
3563
3564 2014-08-22  Doug Evans  <dje@google.com>
3565
3566         PR 17276
3567         * dwarf2read.c (dwarf_record_line_p): New function.
3568         (dwarf_decode_lines_1): Ignore subsequent line number entries
3569         for the same line if any entry had a non-zero discriminator.
3570
3571 2014-08-22  Doug Evans  <dje@google.com>
3572
3573         * buildsym.h (record_line_ftype): New typedef.
3574         (record_line): Use it.
3575         * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3576         (dwarf_decode_lines_1): Call them.
3577
3578 2014-08-22  Yao Qi  <yao@codesourcery.com>
3579
3580         * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3581         (ctf_end): Remove code.
3582
3583 2014-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
3584
3585         * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3586         (linux_make_corefile_notes): call update_thread_list, protected against
3587         exceptions.
3588
3589 2014-08-21  Pedro Alves  <palves@redhat.com>
3590
3591         * infcmd.c (attach_command): Remove comment.
3592
3593 2014-08-21  Bin Cheng  <bin.cheng@arm.com>
3594
3595         * aarch64-linux-nat.c (dr_changed_t): Change the type from
3596         unsigned LONGEST to ULONGEST.
3597
3598 2014-08-20  Pedro Alves  <palves@redhat.com>
3599
3600         * Makefile.in (check-read1): New rule.
3601
3602 2014-08-20  Joel Brobecker  <brobecker@adacore.com>
3603
3604         * value.c (value_from_contents_and_address): Strip resolved_type's
3605         typedef layers before checking its TYPE_DATA_LOCATION.
3606
3607 2014-08-20  Pedro Alves  <palves@redhat.com>
3608
3609         * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3610
3611 2014-08-20  Yao Qi  <yao@codesourcery.com>
3612
3613         * amd64-tdep.c (amd64_classify): Add a blank line after the
3614         example.  Move "*/" to a new line.
3615         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3616         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3617         * dwarf2read.c (psymtab_include_file_name): Likewise.
3618
3619 2014-08-19  Andrew Burgess  <aburgess@broadcom.com>
3620             Pedro Alves  <palves@redhat.com>
3621
3622         PR symtab/14604
3623         PR symtab/14605
3624         * ada-lang.c (coerce_unspec_val_to_type): Use
3625         value_contents_copy_raw.
3626         * ada-valprint.c (val_print_packed_array_elements): Adjust.
3627         * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3628         * cp-valprint.c (cp_print_value_fields): Let the common printing
3629         code handle optimized out values.
3630         (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3631         * d-valprint.c (dynamic_array_type): Use
3632         value_bits_any_optimized_out.
3633         * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3634         check_any_valid fields.
3635         (check_pieced_value_bits): Delete and inline ...
3636         (check_pieced_synthetic_pointer): ... here.
3637         (check_pieced_value_validity): Delete.
3638         (check_pieced_value_invalid): Delete.
3639         (pieced_value_funcs): Remove check_validity and check_any_valid
3640         fields.
3641         (read_pieced_value): Use mark_value_bits_optimized_out.
3642         (write_pieced_value): Switch to use
3643         mark_value_bytes_optimized_out.
3644         (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3645         of assuming the whole value is optimized out.
3646         * findvar.c (read_frame_register_value): Remove special handling
3647         of optimized out registers.
3648         (value_from_register): Use mark_value_bytes_optimized_out.
3649         * frame-unwind.c (frame_unwind_got_optimized): Use
3650         mark_value_bytes_optimized_out.
3651         * jv-valprint.c (java_value_print): Adjust.
3652         (java_print_value_fields): Let the common printing code handle
3653         optimized out values.
3654         * mips-tdep.c (mips_print_register): Remove special handling of
3655         optimized out registers.
3656         * opencl-lang.c (lval_func_check_validity): Delete.
3657         (lval_func_check_any_valid): Delete.
3658         (opencl_value_funcs): Remove check_validity and check_any_valid
3659         fields.
3660         * p-valprint.c (pascal_object_print_value_fields): Let the common
3661         printing code handle optimized out values.
3662         * stack.c (read_frame_arg): Remove special handling of optimized
3663         out values.  Fetch both VAL and ENTRYVAL before comparing
3664         contents.  Adjust to value_available_contents_eq rename.
3665         * valprint.c (valprint_check_validity)
3666         (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3667         (val_print_array_elements): Adjust.
3668         * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3669         (value_bits_any_optimized_out): New function.
3670         (value_entirely_covered_by_range_vector): New function, factored
3671         out from value_entirely_unavailable.
3672         (value_entirely_unavailable): Reimplement.
3673         (value_entirely_optimized_out): New function.
3674         (insert_into_bit_range_vector): New function, factored out from
3675         mark_value_bits_unavailable.
3676         (mark_value_bits_unavailable): Reimplement.
3677         (struct ranges_and_idx): New struct.
3678         (find_first_range_overlap_and_match): New function, factored out
3679         from value_available_contents_bits_eq.
3680         (value_available_contents_bits_eq): Rename to ...
3681         (value_contents_bits_eq): ... this.  Check both unavailable
3682         contents and optimized out contents.
3683         (value_available_contents_eq): Rename to ...
3684         (value_contents_eq): ... this.
3685         (allocate_value_lazy): Remove reference to the old optimized_out
3686         boolean.
3687         (allocate_optimized_out_value): Use
3688         mark_value_bytes_optimized_out.
3689         (require_not_optimized_out): Adjust to check whether the
3690         optimized_out vec is empty.
3691         (ranges_copy_adjusted): New function, factored out from
3692         value_contents_copy_raw.
3693         (value_contents_copy_raw): Also copy the optimized out ranges.
3694         Assert the destination ranges aren't optimized out.
3695         (value_contents_copy): Update comment, remove call to
3696         require_not_optimized_out.
3697         (value_contents_equal): Adjust to check whether the optimized_out
3698         vec is empty.
3699         (set_value_optimized_out, value_optimized_out_const): Delete.
3700         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3701         New functions.
3702         (value_entirely_optimized_out, value_bits_valid): Delete.
3703         (value_copy): Take a VEC copy of the 'optimized_out' field.
3704         (value_primitive_field): Remove special handling of optimized out.
3705         (value_fetch_lazy): Assert that lazy values have no unavailable
3706         regions.  Use value_bits_any_optimized_out.  Remove some special
3707         handling for optimized out values.
3708         * value.h: Add intro comment about <optimized out> and
3709         <unavailable>.
3710         (struct lval_funcs): Remove check_validity and check_any_valid
3711         fields.
3712         (set_value_optimized_out, value_optimized_out_const): Remove.
3713         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3714         New declarations.
3715         (value_bits_any_optimized_out): New declaration.
3716         (value_bits_valid): Delete declaration.
3717         (value_available_contents_eq): Rename to ...
3718         (value_contents_eq): ... this, and extend comments.
3719
3720 2014-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
3721
3722         Fix -fsanitize=address on unreadable inferior strings.
3723         * valprint.c (val_print_string): Fix access before BUFFER.
3724
3725 2014-08-19  Simon Marchi  <simon.marchi@ericsson.com>
3726
3727         * target.c (target_struct_size): Remove.
3728         (target_struct_allocsize): Remove.
3729         (DEFAULT_ALLOCSIZE): Remove.
3730         (target_ops_p): New typedef.
3731         (DEF_VEC_P (target_ops_p)): New vector type.
3732         (target_structs): Change type to VEC (target_ops_p).
3733         (add_target_with_completer): Replace "push" code by VEC_safe_push.
3734         (find_default_run_target): Rewrite for loop following changes to
3735         target_structs.
3736
3737 2014-08-19  Joel Brobecker  <brobecker@adacore.com>
3738
3739         * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3740         Adjust code accordingly.  Adjust function description comment.
3741
3742 2014-08-19  Yao Qi  <yao@codesourcery.com>
3743
3744         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3745         types.
3746
3747 2014-08-19  Alan Modra  <amodra@gmail.com>
3748
3749         * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3750         * config.in: Regenerate.
3751         * configure: Regenerate.
3752
3753 2014-08-19  Tom Tromey  <tromey@redhat.com>
3754             Gary Benson  <gbenson@redhat.com>
3755
3756         * common/common-debug.h: New file.
3757         * common/common-debug.c: Likewise.
3758         * debug.c: Likewise.
3759         * Makefile.in (SFILES): Add common/common-debug.c.
3760         (HFILES_NO_SRCDIR): Add common/common-debug.h.
3761         (COMMON_OBS): Add common-debug.o and debug.o.
3762         (common-debug.o): New rule.
3763         * common/common-defs.h: Include common-debug.h.
3764         * common/agent.c (debug_agent_printf): New function.
3765         (DEBUG_AGENT): Redefine.
3766         * nat/i386-dregs.c (debug_printf): Undefine.
3767
3768 2014-08-19  Gary Benson  <gbenson@redhat.com>
3769
3770         * common/common-defs.h: Include print-utils.h.
3771         * utils.h: Do not include print-utils.h.
3772
3773 2014-08-19  Tom Tromey  <tromey@redhat.com>
3774             Gary Benson  <gbenson@redhat.com>
3775
3776         * common/common-types.h: New file.
3777         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3778         * common/common-defs.h: Include common-types.h.
3779         * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3780         (ULONGEST): Remove.
3781
3782 2014-08-19  Tom Tromey  <tromey@redhat.com>
3783             Gary Benson  <gbenson@redhat.com>
3784
3785         * common/errors.h: New file.
3786         * common/errors.c: Likewise.
3787         * Makefile.in (SFILES): Add common/errors.c.
3788         (HFILES_NO_SRCDIR): Add common/errors.h.
3789         (COMMON_OBS): Add errors.o.
3790         (errors.o): New rule.
3791         * common/common-defs.h: Include errors.h.
3792         * utils.h (perror_with_name, error, verror, warning, vwarning):
3793         Don't declare.
3794         * common/common-utils.h: (malloc_failure, internal_error):
3795         Likewise.
3796
3797 2014-08-19  Gary Benson  <gbenson@redhat.com>
3798
3799         * utils.c (internal_vproblem): Always print the message.
3800
3801 2014-08-18  Doug Evans  <dje@google.com>
3802
3803         * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3804
3805 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
3806
3807         * ada-typeprint.c (type_is_full_subrange_of_target_type):
3808         Return 0 if TYPE is dynamic.
3809         (print_range): Add handling of dynamic ranges.
3810
3811 2014-08-18  Keven Boell  <keven.boell@intel.com>
3812             Joel Brobecker  <brobecker@adacore.com>
3813
3814         * gdbtypes.h (struct main_type): Add field "data_location".
3815         (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3816         (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3817         * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3818         a dynamic data location.
3819         (resolve_dynamic_type): Add DW_AT_data_location handling.
3820         (copy_recursive, copy_type): Copy the data_location information
3821         when present.
3822         * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3823         * value.c (value_from_contents_and_address): Add
3824         DW_AT_data_location handling.
3825
3826 2014-08-18  Keven Boell  <keven.boell@intel.com>
3827             Joel Brobecker  <brobecker@adacore.com>
3828
3829         * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3830         field "get_object_address".
3831         * dwarf2expr.c (execute_stack_op): Add handling for
3832         DW_OP_push_object_address.
3833         * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3834         * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3835         (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3836         (dwarf_expr_get_obj_addr): New function.
3837         (dwarf_expr_ctx_funcs): Add get_object_address field.
3838         (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3839         (dwarf2_locexpr_baton_eval): Add parameter "addr".  Use it.
3840         (dwarf2_evaluate_property): Add parameter "address".  Use it.
3841         (needs_get_obj_addr): New function.
3842         (needs_frame_ctx_funcs): Add get_object_address field.
3843         (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3844         * gdbtypes.c (resolve_dynamic_range): Add "addr" field.  Use it.
3845         (resolve_dynamic_array): Likewise.
3846
3847 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
3848
3849         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3850         When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3851         fixed value for records and unions for which some GNAT encodings
3852         are present.
3853
3854 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
3855
3856         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3857         rewrite to avoid "else if" and "else" constructs.  Should be
3858         a no-op in practice.
3859
3860 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
3861
3862         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3863         of lexical block.
3864
3865 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
3866
3867         PR c++/17132
3868         * eval.c: Update all calls to find_overload_match.
3869         * valarith.c: Likewise.
3870         (value_user_defined_cpp_op, value_user_defined_op): New
3871         argument NOSIDE.  Update all callers.
3872         * valops.c (find_overload_match): New argument NOSIDE.
3873         * value.h (find_overload_match): Update signature.
3874
3875 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
3876
3877         * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3878         'items' methods instead of 'iteritems' method on dictionaries.
3879
3880 2014-08-15  Doug Evans  <dje@google.com>
3881
3882         * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3883         closer to use.
3884
3885 2014-08-15  Doug Evans  <dje@google.com>
3886
3887         * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3888
3889 2014-08-15  Doug Evans  <dje@google.com>
3890
3891         * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3892
3893 2014-08-15  Doug Evans  <dje@google.com>
3894
3895         * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3896         unused.
3897
3898 2014-08-15  Eli Zaretskii  <eliz@gnu.org>
3899
3900         * dcache.h: Include target.h, to avoid compile time warnings.
3901
3902 2014-08-15  Joel Brobecker  <brobecker@adacore.com>
3903
3904         * gdbarch.sh: #include "frame.h" in gdbarch.h.  Delete "struct
3905         frame_info" partial declaration.
3906         * gdbarch.h: Regenerate.
3907
3908 2014-08-15  Yao Qi  <yao@codesourcery.com>
3909
3910         * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3911         Add parameter 'decode_for_pst_p'.  Callers update.
3912
3913 2014-08-13  Yao Qi  <yao@codesourcery.com>
3914
3915         PR build/17104
3916         * configure.ac: Use local variable 'pos'.
3917         * configure: Regenerated.
3918
3919 2014-08-11  Doug Evans  <dje@google.com>
3920
3921         * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3922         message, it is redundant with "Reading symbols from ..." message.
3923
3924 2014-08-10  Doug Evans  <xdje42@gmail.com>
3925
3926         * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3927
3928 2014-08-09  Yao Qi  <yao@codesourcery.com>
3929
3930         PR remote/9053
3931         * remote.c (remote_xfer_partial): Remove dead code.
3932
3933 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3934
3935         * ia64-linux-tdep.c: Include "regset.h".
3936         (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3937         (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3938         (ia64_linux_supply_fpregset): New function.
3939         (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3940         (ia64_linux_regset_from_core_section): New function.
3941         (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3942         method.
3943
3944 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3945
3946         * m68klinux-tdep.c: Include "regset.h".
3947         (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3948         (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3949         (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3950         (m68k_linux_regset_from_core_section): New function.
3951         (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3952         method.
3953
3954 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3955
3956         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3957         function.  Move logic to...
3958         (tilegx_linux_regmap): ... this new register map.
3959         (tilegx_linux_regset): Refer to register map, replace supply
3960         method by regcache_supply_regset, and add collect method.
3961         * tilegx-tdep.h (enum tilegx_regnum): New enum value
3962         TILEGX_FIRST_EASY_REGNUM.
3963
3964 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3965
3966         * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3967         that calls regcache_supply_regset and handles the EPC register
3968         separately.  Move main logic to...
3969         (score7_linux_gregmap): ... this new register map.
3970         (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3971         (score7_linux_gregset): Refer to register map.  Add collect method.
3972         (score7_linux_regset_from_core_section): Replace
3973         sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3974         * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3975         (struct regset): Delete unused forward declaraction.
3976         (struct pt_regs): Delete structure definition.
3977         (elf_gregset_t): Delete typedef.
3978
3979 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3980
3981         * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3982         (nios2_core_regset): Add collect method.
3983
3984 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3985
3986         * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3987         platform-independent and don't write to read-only input buffer.
3988         (m32r_linux_collect_gregset): New function.
3989         (m32r_linux_gregset): Add collect method.
3990
3991 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3992
3993         * hppa-linux-tdep.c (greg_map): Rename to...
3994         (hppa_linux_gregmap): ... this.  Also convert to
3995         regcache_map_entry format.
3996         (hppa_linux_supply_regset): Delete function.
3997         (hppa_linux_supply_fpregset): Delete function.  Move logic to...
3998         (hppa_linux_fpregmap): ... this new register map.
3999         (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4000         register map, replace supply method by regcache_supply_regset, and
4001         add collect method regcache_collect_regset.
4002
4003 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4004
4005         * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4006         (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4007         (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4008         (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4009         (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4010         (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4011         (frv_linux_supply_gregset): Replace main logic by call to
4012         regcache_supply_regset, but keep clearing gr32-gr63.
4013         (frv_linux_supply_fpregset): Delete function.
4014         (frv_linux_gregset): Refer to appropriate register map and add
4015         regcache_collect_regset as the collect method.
4016         (frv_linux_fpregset): Likewise.  Also exchange the supply method
4017         by regcache_supply_regset.
4018
4019 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4020
4021         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4022         by call to alpha_supply_int_regs.
4023         (alpha_linux_collect_gregset): New function.
4024         (alpha_linux_supply_fpregset): Replace logic by call to
4025         alpha_supply_fp_regs.
4026         (alpha_linux_collect_fpregset): New function.
4027         (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4028
4029 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4030
4031         * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4032         by call to regcache_collect_regset.
4033         (supply_gregset, supply_fpregset): Call regcache_supply_regset
4034         instead of aarch64_linux_supply_gregset/_fpregset.
4035         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4036         (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4037         header file instead.
4038         (aarch64_linux_supply_gregset, supply_gregset_from_core)
4039         (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4040         functions.  Move logic to ...
4041         (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4042         register maps.
4043         (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4044         refer to new register maps, replace *_regset_from_core by
4045         regcache_supply_regset, and also use regcache_collect_regset.
4046         * aarch64-linux-tdep.h: Include "regset.h".
4047         (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4048         Delete prototypes.
4049         (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4050         macros, moved from C source file.
4051         (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4052         variable declarations.
4053
4054 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4055
4056         * s390-linux-nat.c: Include "regset.h".
4057         (regmap_gregset): Delete macro.
4058         (s390_64_regmap_gregset): New register map for
4059         regcache_supply/_collect_regset.
4060         (s390_64_gregset): New regset.
4061         (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4062         (regmap_fpregset): Delete macro.
4063         (s390_native_supply, s390_native_collect): Delete functions.
4064         (supply_gregset, fill_gregset): Replace s390-specific regmap
4065         handling by a call to regcache_supply/_collect_regset.
4066         (supply_fpregset, fill_fpregset): Call regcache_supply/
4067         _collect_regset instead of s390_native_supply/_collect.
4068         (fetch_regset, store_regset): Likewise.  Also change the last
4069         parameter to a regset instead of a regmap.
4070         (s390_linux_fetch_inferior_registers)
4071         (390_linux_store_inferior_registers): Adjust last parameter in
4072         calls to fetch_regset and store_regset.
4073         * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4074         (s390_gregmap): ... this.  Also make static const and convert to
4075         regcache_map_entry format.
4076         (s390x_regmap_gregset): Delete.
4077         (s390_regmap_fpregset): Rename to...
4078         (s390_fpregmap): ... this.  Make static const and convert to
4079         regcache_map_entry format.
4080         (s390_regmap_upper, s390_regmap_last_break)
4081         (s390x_regmap_last_break, s390_regmap_system_call)
4082         (s390_regmap_tdb): Likewise.
4083         (s390_supply_regset, s390_collect_regset): Remove functions.
4084         (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4085         s390_supply_regset.
4086         (s390_gregset, s390_fpregset, s390_upper_regset)
4087         (s390_last_break_regset, s390x_last_break_regset)
4088         (s390_system_call_regset, s390_tdb_regset): Make global and
4089         replace s390_supply/_collect_regset by regcache_supply/
4090         _collect_regset.
4091         (s390x_gregset): Delete.
4092         (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4093         * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4094         (s390_regmap_fpregset, s390_regmap_last_break)
4095         (s390x_regmap_last_break, s390_regmap_system_call)
4096         (s390_regmap_tdb): Delete global variable declarations.
4097         (s390_gregset, s390_fpregset, s390_last_break_regset)
4098         (s390x_last_break_regset, s390_system_call_regset)
4099         (s390_tdb_regset): New global variable declarations.
4100
4101 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4102
4103         * regcache.c: Include "regset.h".
4104         (regcache_transfer_regset): New local function.
4105         (regcache_supply_regset, regcache_collect_regset): New functions.
4106         * regcache.h (struct regcache_map_entry): New structure.
4107         (REGCACHE_MAP_SKIP): New enum value.
4108         (regcache_supply_regset, regcache_collect_regset): New prototypes.
4109
4110 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4111
4112         * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4113         * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4114         (ppc_linux_collect_gregset ): Likewise.
4115         * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4116         (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4117         (ppc_collect_vrregset): Likewise.
4118         * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4119         Likewise.
4120
4121 2014-08-07  Yao Qi  <yao@codesourcery.com>
4122
4123         * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4124         * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4125         * remote.c (remote_read_bytes): Likewise.
4126
4127 2014-08-07  Yao Qi  <yao@codesourcery.com>
4128
4129         * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4130
4131 2014-08-07  Yao Qi  <yao@codesourcery.com>
4132
4133         PR remote/17230
4134         * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4135         TARGET_XFER_OK instead of 0.
4136
4137 2014-08-07  Gary Benson  <gbenson@redhat.com>
4138
4139         * common/common-defs.h: Include errno.h.
4140         * defs.h: Do not include errno.h.
4141         * ada-typeprint.c: Likewise.
4142         * c-typeprint.c: Likewise.
4143         * core-regset.c: Likewise.
4144         * corefile.c: Likewise.
4145         * corelow.c: Likewise.
4146         * event-loop.c: Likewise.
4147         * f-typeprint.c: Likewise.
4148         * gnu-nat.c: Likewise.
4149         * go32-nat.c: Likewise.
4150         * i386gnu-nat.c: Likewise.
4151         * m2-typeprint.c: Likewise.
4152         * nat/linux-btrace.c: Likewise.
4153         * p-typeprint.c: Likewise.
4154         * procfs.c: Likewise.
4155         * remote-sim.c: Likewise.
4156         * rs6000-nat.c: Likewise.
4157         * target.c: Likewise.
4158         * typeprint.c: Likewise.
4159         * ui-file.c: Likewise.
4160         * valops.c: Likewise.
4161         * valprint.c: Likewise.
4162
4163 2014-08-07  Gary Benson  <gbenson@redhat.com>
4164
4165         * common/common-defs.h: Include string.h.
4166         * aarch64-tdep.c: Do not include string.h.
4167         * ada-exp.y: Likewise.
4168         * ada-lang.c: Likewise.
4169         * ada-lex.l: Likewise.
4170         * ada-typeprint.c: Likewise.
4171         * ada-valprint.c: Likewise.
4172         * aix-thread.c: Likewise.
4173         * alpha-linux-tdep.c: Likewise.
4174         * alpha-mdebug-tdep.c: Likewise.
4175         * alpha-nat.c: Likewise.
4176         * alpha-osf1-tdep.c: Likewise.
4177         * alpha-tdep.c: Likewise.
4178         * alphanbsd-tdep.c: Likewise.
4179         * amd64-dicos-tdep.c: Likewise.
4180         * amd64-linux-tdep.c: Likewise.
4181         * amd64-nat.c: Likewise.
4182         * amd64-sol2-tdep.c: Likewise.
4183         * amd64fbsd-tdep.c: Likewise.
4184         * amd64obsd-tdep.c: Likewise.
4185         * arch-utils.c: Likewise.
4186         * arm-linux-nat.c: Likewise.
4187         * arm-linux-tdep.c: Likewise.
4188         * arm-tdep.c: Likewise.
4189         * arm-wince-tdep.c: Likewise.
4190         * armbsd-tdep.c: Likewise.
4191         * armnbsd-nat.c: Likewise.
4192         * armnbsd-tdep.c: Likewise.
4193         * armobsd-tdep.c: Likewise.
4194         * avr-tdep.c: Likewise.
4195         * ax-gdb.c: Likewise.
4196         * ax-general.c: Likewise.
4197         * bcache.c: Likewise.
4198         * bfin-tdep.c: Likewise.
4199         * breakpoint.c: Likewise.
4200         * build-id.c: Likewise.
4201         * buildsym.c: Likewise.
4202         * c-exp.y: Likewise.
4203         * c-lang.c: Likewise.
4204         * c-typeprint.c: Likewise.
4205         * c-valprint.c: Likewise.
4206         * charset.c: Likewise.
4207         * cli-out.c: Likewise.
4208         * cli/cli-cmds.c: Likewise.
4209         * cli/cli-decode.c: Likewise.
4210         * cli/cli-dump.c: Likewise.
4211         * cli/cli-interp.c: Likewise.
4212         * cli/cli-logging.c: Likewise.
4213         * cli/cli-script.c: Likewise.
4214         * cli/cli-setshow.c: Likewise.
4215         * cli/cli-utils.c: Likewise.
4216         * coffread.c: Likewise.
4217         * common/agent.c: Likewise.
4218         * common/buffer.c: Likewise.
4219         * common/buffer.h: Likewise.
4220         * common/common-utils.c: Likewise.
4221         * common/filestuff.c: Likewise.
4222         * common/filestuff.c: Likewise.
4223         * common/format.c: Likewise.
4224         * common/print-utils.c: Likewise.
4225         * common/rsp-low.c: Likewise.
4226         * common/signals.c: Likewise.
4227         * common/vec.h: Likewise.
4228         * common/xml-utils.c: Likewise.
4229         * core-regset.c: Likewise.
4230         * corefile.c: Likewise.
4231         * corelow.c: Likewise.
4232         * cp-abi.c: Likewise.
4233         * cp-name-parser.y: Likewise.
4234         * cp-support.c: Likewise.
4235         * cp-valprint.c: Likewise.
4236         * cris-tdep.c: Likewise.
4237         * d-exp.y: Likewise.
4238         * darwin-nat.c: Likewise.
4239         * dbxread.c: Likewise.
4240         * dcache.c: Likewise.
4241         * demangle.c: Likewise.
4242         * dicos-tdep.c: Likewise.
4243         * disasm.c: Likewise.
4244         * doublest.c: Likewise.
4245         * dsrec.c: Likewise.
4246         * dummy-frame.c: Likewise.
4247         * dwarf2-frame.c: Likewise.
4248         * dwarf2loc.c: Likewise.
4249         * dwarf2read.c: Likewise.
4250         * elfread.c: Likewise.
4251         * environ.c: Likewise.
4252         * eval.c: Likewise.
4253         * event-loop.c: Likewise.
4254         * exceptions.c: Likewise.
4255         * exec.c: Likewise.
4256         * expprint.c: Likewise.
4257         * f-exp.y: Likewise.
4258         * f-lang.c: Likewise.
4259         * f-typeprint.c: Likewise.
4260         * f-valprint.c: Likewise.
4261         * fbsd-nat.c: Likewise.
4262         * findcmd.c: Likewise.
4263         * findvar.c: Likewise.
4264         * fork-child.c: Likewise.
4265         * frame.c: Likewise.
4266         * frv-linux-tdep.c: Likewise.
4267         * frv-tdep.c: Likewise.
4268         * gdb.c: Likewise.
4269         * gdb_bfd.c: Likewise.
4270         * gdbarch.c: Likewise.
4271         * gdbarch.sh: Likewise.
4272         * gdbtypes.c: Likewise.
4273         * gnu-nat.c: Likewise.
4274         * gnu-v2-abi.c: Likewise.
4275         * gnu-v3-abi.c: Likewise.
4276         * go-exp.y: Likewise.
4277         * go-lang.c: Likewise.
4278         * go32-nat.c: Likewise.
4279         * guile/guile.c: Likewise.
4280         * guile/scm-auto-load.c: Likewise.
4281         * hppa-hpux-tdep.c: Likewise.
4282         * hppa-linux-nat.c: Likewise.
4283         * hppanbsd-tdep.c: Likewise.
4284         * hppaobsd-tdep.c: Likewise.
4285         * i386-cygwin-tdep.c: Likewise.
4286         * i386-dicos-tdep.c: Likewise.
4287         * i386-linux-tdep.c: Likewise.
4288         * i386-nto-tdep.c: Likewise.
4289         * i386-sol2-tdep.c: Likewise.
4290         * i386-tdep.c: Likewise.
4291         * i386bsd-tdep.c: Likewise.
4292         * i386gnu-nat.c: Likewise.
4293         * i386nbsd-tdep.c: Likewise.
4294         * i386obsd-tdep.c: Likewise.
4295         * i387-tdep.c: Likewise.
4296         * ia64-libunwind-tdep.c: Likewise.
4297         * ia64-linux-nat.c: Likewise.
4298         * inf-child.c: Likewise.
4299         * inf-ptrace.c: Likewise.
4300         * inf-ttrace.c: Likewise.
4301         * infcall.c: Likewise.
4302         * infcmd.c: Likewise.
4303         * inflow.c: Likewise.
4304         * infrun.c: Likewise.
4305         * interps.c: Likewise.
4306         * iq2000-tdep.c: Likewise.
4307         * irix5-nat.c: Likewise.
4308         * jv-exp.y: Likewise.
4309         * jv-lang.c: Likewise.
4310         * jv-typeprint.c: Likewise.
4311         * jv-valprint.c: Likewise.
4312         * language.c: Likewise.
4313         * linux-fork.c: Likewise.
4314         * linux-nat.c: Likewise.
4315         * lm32-tdep.c: Likewise.
4316         * m2-exp.y: Likewise.
4317         * m2-typeprint.c: Likewise.
4318         * m32c-tdep.c: Likewise.
4319         * m32r-linux-nat.c: Likewise.
4320         * m32r-linux-tdep.c: Likewise.
4321         * m32r-rom.c: Likewise.
4322         * m32r-tdep.c: Likewise.
4323         * m68hc11-tdep.c: Likewise.
4324         * m68k-tdep.c: Likewise.
4325         * m68kbsd-tdep.c: Likewise.
4326         * m68klinux-nat.c: Likewise.
4327         * m68klinux-tdep.c: Likewise.
4328         * m88k-tdep.c: Likewise.
4329         * machoread.c: Likewise.
4330         * macrocmd.c: Likewise.
4331         * main.c: Likewise.
4332         * mdebugread.c: Likewise.
4333         * mem-break.c: Likewise.
4334         * memattr.c: Likewise.
4335         * memory-map.c: Likewise.
4336         * mep-tdep.c: Likewise.
4337         * mi/mi-cmd-break.c: Likewise.
4338         * mi/mi-cmd-disas.c: Likewise.
4339         * mi/mi-cmd-env.c: Likewise.
4340         * mi/mi-cmd-stack.c: Likewise.
4341         * mi/mi-cmd-var.c: Likewise.
4342         * mi/mi-cmds.c: Likewise.
4343         * mi/mi-console.c: Likewise.
4344         * mi/mi-getopt.c: Likewise.
4345         * mi/mi-interp.c: Likewise.
4346         * mi/mi-main.c: Likewise.
4347         * mi/mi-parse.c: Likewise.
4348         * microblaze-rom.c: Likewise.
4349         * microblaze-tdep.c: Likewise.
4350         * mingw-hdep.c: Likewise.
4351         * minidebug.c: Likewise.
4352         * minsyms.c: Likewise.
4353         * mips-irix-tdep.c: Likewise.
4354         * mips-linux-tdep.c: Likewise.
4355         * mips-tdep.c: Likewise.
4356         * mips64obsd-tdep.c: Likewise.
4357         * mipsnbsd-tdep.c: Likewise.
4358         * mipsread.c: Likewise.
4359         * mn10300-linux-tdep.c: Likewise.
4360         * mn10300-tdep.c: Likewise.
4361         * monitor.c: Likewise.
4362         * moxie-tdep.c: Likewise.
4363         * mt-tdep.c: Likewise.
4364         * nat/linux-btrace.c: Likewise.
4365         * nat/linux-osdata.c: Likewise.
4366         * nat/linux-procfs.c: Likewise.
4367         * nat/linux-ptrace.c: Likewise.
4368         * nat/linux-waitpid.c: Likewise.
4369         * nbsd-tdep.c: Likewise.
4370         * nios2-linux-tdep.c: Likewise.
4371         * nto-procfs.c: Likewise.
4372         * nto-tdep.c: Likewise.
4373         * objc-lang.c: Likewise.
4374         * objfiles.c: Likewise.
4375         * opencl-lang.c: Likewise.
4376         * osabi.c: Likewise.
4377         * osdata.c: Likewise.
4378         * p-exp.y: Likewise.
4379         * p-lang.c: Likewise.
4380         * p-typeprint.c: Likewise.
4381         * parse.c: Likewise.
4382         * posix-hdep.c: Likewise.
4383         * ppc-linux-nat.c: Likewise.
4384         * ppc-sysv-tdep.c: Likewise.
4385         * ppcfbsd-tdep.c: Likewise.
4386         * ppcnbsd-tdep.c: Likewise.
4387         * ppcobsd-tdep.c: Likewise.
4388         * printcmd.c: Likewise.
4389         * procfs.c: Likewise.
4390         * prologue-value.c: Likewise.
4391         * python/py-auto-load.c: Likewise.
4392         * python/py-gdb-readline.c: Likewise.
4393         * ravenscar-thread.c: Likewise.
4394         * regcache.c: Likewise.
4395         * registry.c: Likewise.
4396         * remote-fileio.c: Likewise.
4397         * remote-m32r-sdi.c: Likewise.
4398         * remote-mips.c: Likewise.
4399         * remote-notif.c: Likewise.
4400         * remote-sim.c: Likewise.
4401         * remote.c: Likewise.
4402         * reverse.c: Likewise.
4403         * rs6000-aix-tdep.c: Likewise.
4404         * ser-base.c: Likewise.
4405         * ser-go32.c: Likewise.
4406         * ser-mingw.c: Likewise.
4407         * ser-pipe.c: Likewise.
4408         * ser-tcp.c: Likewise.
4409         * ser-unix.c: Likewise.
4410         * serial.c: Likewise.
4411         * sh-tdep.c: Likewise.
4412         * sh64-tdep.c: Likewise.
4413         * shnbsd-tdep.c: Likewise.
4414         * skip.c: Likewise.
4415         * sol-thread.c: Likewise.
4416         * solib-dsbt.c: Likewise.
4417         * solib-frv.c: Likewise.
4418         * solib-osf.c: Likewise.
4419         * solib-som.c: Likewise.
4420         * solib-spu.c: Likewise.
4421         * solib-target.c: Likewise.
4422         * solib.c: Likewise.
4423         * somread.c: Likewise.
4424         * source.c: Likewise.
4425         * sparc-nat.c: Likewise.
4426         * sparc-sol2-tdep.c: Likewise.
4427         * sparc-tdep.c: Likewise.
4428         * sparc64-tdep.c: Likewise.
4429         * sparc64fbsd-tdep.c: Likewise.
4430         * sparc64nbsd-tdep.c: Likewise.
4431         * sparcnbsd-tdep.c: Likewise.
4432         * spu-linux-nat.c: Likewise.
4433         * spu-multiarch.c: Likewise.
4434         * spu-tdep.c: Likewise.
4435         * stabsread.c: Likewise.
4436         * stack.c: Likewise.
4437         * std-regs.c: Likewise.
4438         * symfile.c: Likewise.
4439         * symmisc.c: Likewise.
4440         * symtab.c: Likewise.
4441         * target.c: Likewise.
4442         * thread.c: Likewise.
4443         * tilegx-linux-nat.c: Likewise.
4444         * tilegx-tdep.c: Likewise.
4445         * top.c: Likewise.
4446         * tracepoint.c: Likewise.
4447         * tui/tui-command.c: Likewise.
4448         * tui/tui-data.c: Likewise.
4449         * tui/tui-disasm.c: Likewise.
4450         * tui/tui-file.c: Likewise.
4451         * tui/tui-layout.c: Likewise.
4452         * tui/tui-out.c: Likewise.
4453         * tui/tui-regs.c: Likewise.
4454         * tui/tui-source.c: Likewise.
4455         * tui/tui-stack.c: Likewise.
4456         * tui/tui-win.c: Likewise.
4457         * tui/tui-windata.c: Likewise.
4458         * tui/tui-winsource.c: Likewise.
4459         * typeprint.c: Likewise.
4460         * ui-file.c: Likewise.
4461         * ui-out.c: Likewise.
4462         * user-regs.c: Likewise.
4463         * utils.c: Likewise.
4464         * v850-tdep.c: Likewise.
4465         * valarith.c: Likewise.
4466         * valops.c: Likewise.
4467         * valprint.c: Likewise.
4468         * value.c: Likewise.
4469         * varobj.c: Likewise.
4470         * vax-tdep.c: Likewise.
4471         * vaxnbsd-tdep.c: Likewise.
4472         * vaxobsd-tdep.c: Likewise.
4473         * windows-nat.c: Likewise.
4474         * xcoffread.c: Likewise.
4475         * xml-support.c: Likewise.
4476         * xstormy16-tdep.c: Likewise.
4477         * xtensa-linux-nat.c: Likewise.
4478
4479 2014-08-07  Gary Benson  <gbenson@redhat.com>
4480
4481         * common/common-defs.h: Include gdb_assert.h.
4482         * aarch64-tdep.c: Do not include gdb_assert.h.
4483         * addrmap.c: Likewise.
4484         * aix-thread.c: Likewise.
4485         * alpha-linux-tdep.c: Likewise.
4486         * alpha-mdebug-tdep.c: Likewise.
4487         * alphanbsd-tdep.c: Likewise.
4488         * amd64-nat.c: Likewise.
4489         * amd64-tdep.c: Likewise.
4490         * amd64bsd-nat.c: Likewise.
4491         * amd64fbsd-nat.c: Likewise.
4492         * amd64fbsd-tdep.c: Likewise.
4493         * amd64nbsd-nat.c: Likewise.
4494         * amd64nbsd-tdep.c: Likewise.
4495         * amd64obsd-nat.c: Likewise.
4496         * amd64obsd-tdep.c: Likewise.
4497         * arch-utils.c: Likewise.
4498         * arm-tdep.c: Likewise.
4499         * armbsd-tdep.c: Likewise.
4500         * auxv.c: Likewise.
4501         * bcache.c: Likewise.
4502         * bfin-tdep.c: Likewise.
4503         * blockframe.c: Likewise.
4504         * breakpoint.c: Likewise.
4505         * bsd-kvm.c: Likewise.
4506         * bsd-uthread.c: Likewise.
4507         * buildsym.c: Likewise.
4508         * c-exp.y: Likewise.
4509         * c-lang.c: Likewise.
4510         * charset.c: Likewise.
4511         * cleanups.c: Likewise.
4512         * cli-out.c: Likewise.
4513         * cli/cli-decode.c: Likewise.
4514         * cli/cli-dump.c: Likewise.
4515         * cli/cli-logging.c: Likewise.
4516         * cli/cli-script.c: Likewise.
4517         * cli/cli-utils.c: Likewise.
4518         * coffread.c: Likewise.
4519         * common/common-utils.c: Likewise.
4520         * common/queue.h: Likewise.
4521         * common/signals.c: Likewise.
4522         * common/vec.h: Likewise.
4523         * complaints.c: Likewise.
4524         * completer.c: Likewise.
4525         * corelow.c: Likewise.
4526         * cp-abi.c: Likewise.
4527         * cp-name-parser.y: Likewise.
4528         * cp-namespace.c: Likewise.
4529         * cp-support.c: Likewise.
4530         * cris-tdep.c: Likewise.
4531         * dbxread.c: Likewise.
4532         * dictionary.c: Likewise.
4533         * doublest.c: Likewise.
4534         * dsrec.c: Likewise.
4535         * dummy-frame.c: Likewise.
4536         * dwarf2-frame-tailcall.c: Likewise.
4537         * dwarf2-frame.c: Likewise.
4538         * dwarf2expr.c: Likewise.
4539         * dwarf2loc.c: Likewise.
4540         * dwarf2read.c: Likewise.
4541         * eval.c: Likewise.
4542         * event-loop.c: Likewise.
4543         * exceptions.c: Likewise.
4544         * expprint.c: Likewise.
4545         * f-valprint.c: Likewise.
4546         * fbsd-nat.c: Likewise.
4547         * findvar.c: Likewise.
4548         * frame-unwind.c: Likewise.
4549         * frame.c: Likewise.
4550         * frv-tdep.c: Likewise.
4551         * gcore.c: Likewise.
4552         * gdb-dlfcn.c: Likewise.
4553         * gdb_bfd.c: Likewise.
4554         * gdbarch.c: Likewise.
4555         * gdbarch.sh: Likewise.
4556         * gdbtypes.c: Likewise.
4557         * gnu-nat.c: Likewise.
4558         * gnu-v3-abi.c: Likewise.
4559         * go-lang.c: Likewise.
4560         * guile/scm-exception.c: Likewise.
4561         * guile/scm-gsmob.c: Likewise.
4562         * guile/scm-lazy-string.c: Likewise.
4563         * guile/scm-math.c: Likewise.
4564         * guile/scm-pretty-print.c: Likewise.
4565         * guile/scm-safe-call.c: Likewise.
4566         * guile/scm-utils.c: Likewise.
4567         * guile/scm-value.c: Likewise.
4568         * h8300-tdep.c: Likewise.
4569         * hppa-hpux-nat.c: Likewise.
4570         * hppa-tdep.c: Likewise.
4571         * hppanbsd-tdep.c: Likewise.
4572         * hppaobsd-tdep.c: Likewise.
4573         * i386-darwin-nat.c: Likewise.
4574         * i386-darwin-tdep.c: Likewise.
4575         * i386-nto-tdep.c: Likewise.
4576         * i386-tdep.c: Likewise.
4577         * i386bsd-nat.c: Likewise.
4578         * i386fbsd-tdep.c: Likewise.
4579         * i386gnu-nat.c: Likewise.
4580         * i386nbsd-tdep.c: Likewise.
4581         * i386obsd-tdep.c: Likewise.
4582         * i387-tdep.c: Likewise.
4583         * ia64-libunwind-tdep.c: Likewise.
4584         * ia64-tdep.c: Likewise.
4585         * inf-ptrace.c: Likewise.
4586         * inf-ttrace.c: Likewise.
4587         * infcall.c: Likewise.
4588         * infcmd.c: Likewise.
4589         * infrun.c: Likewise.
4590         * inline-frame.c: Likewise.
4591         * interps.c: Likewise.
4592         * jv-lang.c: Likewise.
4593         * jv-typeprint.c: Likewise.
4594         * linux-fork.c: Likewise.
4595         * linux-nat.c: Likewise.
4596         * linux-thread-db.c: Likewise.
4597         * m32c-tdep.c: Likewise.
4598         * m32r-linux-nat.c: Likewise.
4599         * m32r-tdep.c: Likewise.
4600         * m68k-tdep.c: Likewise.
4601         * m68kbsd-nat.c: Likewise.
4602         * m68kbsd-tdep.c: Likewise.
4603         * m88k-tdep.c: Likewise.
4604         * machoread.c: Likewise.
4605         * macroexp.c: Likewise.
4606         * macrotab.c: Likewise.
4607         * maint.c: Likewise.
4608         * mdebugread.c: Likewise.
4609         * memory-map.c: Likewise.
4610         * mep-tdep.c: Likewise.
4611         * mi/mi-common.c: Likewise.
4612         * microblaze-tdep.c: Likewise.
4613         * mingw-hdep.c: Likewise.
4614         * mips-linux-nat.c: Likewise.
4615         * mips-linux-tdep.c: Likewise.
4616         * mips-tdep.c: Likewise.
4617         * mips64obsd-tdep.c: Likewise.
4618         * mipsnbsd-tdep.c: Likewise.
4619         * mn10300-linux-tdep.c: Likewise.
4620         * mn10300-tdep.c: Likewise.
4621         * moxie-tdep.c: Likewise.
4622         * mt-tdep.c: Likewise.
4623         * nat/linux-btrace.c: Likewise.
4624         * nat/linux-osdata.c: Likewise.
4625         * nat/linux-ptrace.c: Likewise.
4626         * nat/mips-linux-watch.c: Likewise.
4627         * nios2-linux-tdep.c: Likewise.
4628         * nios2-tdep.c: Likewise.
4629         * objc-lang.c: Likewise.
4630         * objfiles.c: Likewise.
4631         * obsd-nat.c: Likewise.
4632         * opencl-lang.c: Likewise.
4633         * osabi.c: Likewise.
4634         * parse.c: Likewise.
4635         * ppc-linux-nat.c: Likewise.
4636         * ppc-sysv-tdep.c: Likewise.
4637         * ppcfbsd-nat.c: Likewise.
4638         * ppcfbsd-tdep.c: Likewise.
4639         * ppcnbsd-nat.c: Likewise.
4640         * ppcnbsd-tdep.c: Likewise.
4641         * ppcobsd-nat.c: Likewise.
4642         * ppcobsd-tdep.c: Likewise.
4643         * printcmd.c: Likewise.
4644         * procfs.c: Likewise.
4645         * prologue-value.c: Likewise.
4646         * psymtab.c: Likewise.
4647         * python/py-lazy-string.c: Likewise.
4648         * python/py-value.c: Likewise.
4649         * regcache.c: Likewise.
4650         * reggroups.c: Likewise.
4651         * registry.c: Likewise.
4652         * remote-sim.c: Likewise.
4653         * remote.c: Likewise.
4654         * rs6000-aix-tdep.c: Likewise.
4655         * rs6000-tdep.c: Likewise.
4656         * s390-linux-tdep.c: Likewise.
4657         * score-tdep.c: Likewise.
4658         * ser-base.c: Likewise.
4659         * ser-mingw.c: Likewise.
4660         * sh-tdep.c: Likewise.
4661         * sh64-tdep.c: Likewise.
4662         * solib-darwin.c: Likewise.
4663         * solib-spu.c: Likewise.
4664         * solib-svr4.c: Likewise.
4665         * source.c: Likewise.
4666         * sparc-nat.c: Likewise.
4667         * sparc-sol2-tdep.c: Likewise.
4668         * sparc-tdep.c: Likewise.
4669         * sparc64-sol2-tdep.c: Likewise.
4670         * sparc64-tdep.c: Likewise.
4671         * sparc64fbsd-tdep.c: Likewise.
4672         * sparc64nbsd-tdep.c: Likewise.
4673         * sparc64obsd-tdep.c: Likewise.
4674         * sparcnbsd-tdep.c: Likewise.
4675         * sparcobsd-tdep.c: Likewise.
4676         * spu-multiarch.c: Likewise.
4677         * spu-tdep.c: Likewise.
4678         * stabsread.c: Likewise.
4679         * stack.c: Likewise.
4680         * symfile.c: Likewise.
4681         * symtab.c: Likewise.
4682         * target-descriptions.c: Likewise.
4683         * target-memory.c: Likewise.
4684         * target.c: Likewise.
4685         * tic6x-linux-tdep.c: Likewise.
4686         * tic6x-tdep.c: Likewise.
4687         * tilegx-linux-nat.c: Likewise.
4688         * tilegx-tdep.c: Likewise.
4689         * top.c: Likewise.
4690         * tramp-frame.c: Likewise.
4691         * tui/tui-out.c: Likewise.
4692         * tui/tui-winsource.c: Likewise.
4693         * ui-out.c: Likewise.
4694         * user-regs.c: Likewise.
4695         * utils.c: Likewise.
4696         * v850-tdep.c: Likewise.
4697         * valops.c: Likewise.
4698         * value.c: Likewise.
4699         * varobj.c: Likewise.
4700         * vax-nat.c: Likewise.
4701         * xml-syscall.c: Likewise.
4702         * xml-tdesc.c: Likewise.
4703         * xstormy16-tdep.c: Likewise.
4704         * xtensa-linux-nat.c: Likewise.
4705         * xtensa-tdep.c: Likewise.
4706
4707 2014-08-07  Gary Benson  <gbenson@redhat.com>
4708
4709         * common/common-defs.h: Include common-utils.h.
4710         * defs.h: Do not include common-utils.h.
4711         * common/gdb_assert.h: Likewise.
4712         * darwin-nat.h: Likewise.
4713         * nat/linux-btrace.c: Likewise.
4714         * target/waitstatus.h: Likewise.
4715
4716 2014-08-07  Gary Benson  <gbenson@redhat.com>
4717
4718         * common/common-defs.h: Include ptid.h.
4719         * defs.h: Do not include ptid.h.
4720         * inferior.h: Likewise.
4721         * infrun.h: Likewise.
4722         * nat/linux-btrace.h: Likewise.
4723         * nat/linux-osdata.h: Likewise.
4724         * target/waitstatus.h: Likewise.
4725
4726 2014-08-07  Gary Benson  <gbenson@redhat.com>
4727
4728         * common/common-defs.h: Include gdb_locale.h.
4729         * defs.h: Do not include gdb_locale.h.
4730
4731 2014-08-07  Gary Benson  <gbenson@redhat.com>
4732
4733         * common/common-defs.h: Include gdb/signals.h.
4734         * defs.h: Do not include gdb/signals.h.
4735
4736 2014-08-07  Gary Benson  <gbenson@redhat.com>
4737
4738         * common/common-defs.h: Include pathmax.h.
4739         * defs.h: Do not include pathmax.h.
4740
4741 2014-08-07  Gary Benson  <gbenson@redhat.com>
4742
4743         * common/common-defs.h: Include libiberty.h.
4744         * defs.h: Do not include libiberty.h.
4745         * common/queue.h: Likewise.
4746         * cp-name-parser.y: Likewise.
4747         * mi/mi-cmd-catch.c: Likewise.
4748         * python/python.c: Likewise.
4749
4750 2014-08-07  Gary Benson  <gbenson@redhat.com>
4751
4752         * common/common-defs.h: Include ansidecl.h.
4753         * defs.h: Do not include ansidecl.h.
4754         * common/buffer.h: Likewise.
4755         * common/common-utils.h: Likewise.
4756
4757 2014-08-07  Gary Benson  <gbenson@redhat.com>
4758
4759         * common/common-defs.h: Include stddef.h.
4760         * defs.h: Do not include stddef.h.
4761         * common/common-utils.h: Likewise.
4762         * amd64fbsd-nat.c: Likewise.
4763         * bcache.c: Likewise.
4764         * charset.c: Likewise.
4765         * common/buffer.h: Likewise.
4766         * common/vec.h: Likewise.
4767         * i386bsd-nat.c: Likewise.
4768         * nat/linux-btrace.h: Likewise.
4769         * ppcfbsd-nat.c: Likewise.
4770         * ppcnbsd-tdep.h: Likewise.
4771         * ppcobsd-nat.c: Likewise.
4772         * ppcobsd-tdep.h: Likewise.
4773         * python/py-gdb-readline.c: Likewise.
4774
4775 2014-08-07  Gary Benson  <gbenson@redhat.com>
4776
4777         * common/common-defs.h: Include stdarg.h.
4778         * defs.h: Do not include stdarg.h.
4779         * ada-lang.c: Likewise.
4780         * common/common-utils.h: Likewise.
4781         * guile/scm-string.c: Likewise.
4782         * guile/scm-utils.c: Likewise.
4783         * m32c-tdep.c: Likewise.
4784
4785 2014-08-07  Gary Benson  <gbenson@redhat.com>
4786
4787         * common/common-defs.h: Include stdlib.h.
4788         * defs.h: Do not include stdlib.h.
4789         * addrmap.c: Likewise.
4790         * bcache.c: Likewise.
4791         * common/buffer.c: Likewise.
4792         * common/common-utils.c: Likewise.
4793         * cp-name-parser.y: Likewise.
4794         * go32-nat.c: Likewise.
4795         * mn10300-linux-tdep.c: Likewise.
4796         * nat/linux-osdata.c: Likewise.
4797         * tui/tui.c: Likewise.
4798         * windows-nat.c: Likewise.
4799
4800 2014-08-07  Gary Benson  <gbenson@redhat.com>
4801
4802         * common/common-defs.h: Include stdio.h.
4803         * defs.h: Do not include stdio.h.
4804         * ada-lang.c: Likewise.
4805         * common/buffer.c: Likewise.
4806         * common/common-utils.c: Likewise.
4807         * cp-name-parser.y: Likewise.
4808         * gnu-nat.c: Likewise.
4809         * go32-nat.c: Likewise.
4810         * i386gnu-nat.c: Likewise.
4811         * proc-api.c: Likewise.
4812         * proc-events.c: Likewise.
4813         * proc-flags.c: Likewise.
4814         * proc-why.c: Likewise.
4815         * python/python-internal.h: Likewise.
4816         * target-memory.c: Likewise.
4817         * tui/tui-io.c: Likewise.
4818         * tui/tui.c: Likewise.
4819
4820 2014-08-06  Simon Marchi  <simon.marchi@ericsson.com>
4821
4822         * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4823         (scan_dyntag_auxv): Same.
4824
4825 2014-08-06  Yao Qi  <yao@codesourcery.com>
4826
4827         * amd64-linux-nat.c: Remove duplicated include
4828         "x86-linux-nat.h".
4829         * i386-linux-nat.c: Likewise.
4830
4831 2014-08-06  Yao Qi  <yao@codesourcery.com>
4832
4833         * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4834         operand" with "Special opcode" in comments.
4835
4836 2014-08-05  Gary Benson  <gbenson@redhat.com>
4837
4838         * interps.c (initialize_interps): Remove prototype.
4839         (interpreter_initialized): Remove static global.
4840         (interp_add): Do not call initialize_interps.
4841         (initialize_interps): Remove function.
4842
4843 2014-08-05  Gary Benson  <gbenson@redhat.com>
4844
4845         * utils.c (vwarning): Remove spurious va_end.
4846
4847 2014-08-05  Alan Modra  <amodra@gmail.com>
4848
4849         * charset.c (convert_between_encodings): Cast result of obstack_base.
4850         * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4851         * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4852         (read_unwind_info): Use size_t for some locals.
4853         * jit.c (finalize_symtab): Likewise.
4854         * utils.c (hashtab_obstack_allocate): Likewise.
4855         * symmisc.c (print_objfile_statistics): Update format strings.
4856
4857 2014-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4858
4859         * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4860         (Changes in GDB 7.8): ... here.
4861
4862 2014-08-04  Tom Tromey  <tromey@redhat.com>
4863
4864         * target.c (set_targetdebug): New function.
4865         (initialize_targets): Pass set_targetdebug when creating "set
4866         debug target".
4867
4868 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
4869
4870         * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4871         if detecting a variable-sized field that is not the last field.
4872         Fix struct type length computation.
4873
4874 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
4875
4876         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4877         Add debug trace.
4878
4879 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
4880
4881         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4882         Remove "+ 8" offset in computation of CHAIN_VMA.
4883
4884 2014-07-31  Doug Evans  <dje@google.com>
4885
4886         * inflow.c (child_terminal_inferior): Add comment.
4887         (child_terminal_ours_for_output): Add comment.
4888         (child_terminal_ours): Add comment.
4889         * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4890         (linux_nat_terminal_ours): Add comment.
4891
4892 2014-07-31  Gary Benson  <gbenson@redhat.com>
4893
4894         * common/btrace-common.h: Do not include defs.h or server.h.
4895         * nat/mips-linux-watch.h: Likewise.
4896         * gdb-dlfcn.h: Do not include defs.h.
4897         * tracefile.h: Likewise.
4898
4899 2014-07-30  Roland McGrath  <mcgrathr@google.com>
4900
4901         * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4902
4903 2014-07-30  Tom Tromey  <tromey@redhat.com>
4904
4905         * bsd-kvm.c (bsd_kvm_open): Constify.
4906         * corelow.c (core_open): Constify.
4907         * ctf.c (ctf_open): Constify.
4908         * dbug-rom.c (dbug_open): Constify.
4909         * exec.c (exec_open): Constify.
4910         * m32r-rom.c (m32r_open, mon2000_open): Constify.
4911         * microblaze-rom.c (picobug_open): Constify.
4912         * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4913         Constify.
4914         * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4915         * record-btrace.c (record_btrace_open): Constify.
4916         * record-full.c (record_full_core_open_1, record_full_open_1)
4917         (record_full_open): Constify.
4918         * remote-m32r-sdi.c (m32r_open): Constify.
4919         * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4920         (rockhopper_open, lsi_open): Constify.
4921         * remote-sim.c (gdbsim_open): Constify.
4922         * remote.c (remote_open, extended_remote_open, remote_open_1):
4923         Constify.
4924         * target.h (struct target_ops) <to_open>: Make "arg" const.
4925         * tracefile-tfile.c (tfile_open): Constify.
4926
4927 2014-07-30  Tom Tromey  <tromey@redhat.com>
4928
4929         * breakpoint.c (map_breakpoint_numbers): Update.
4930         * cli/cli-utils.c (get_number_trailer): Make "pp" const.  Update.
4931         (get_number_const): New function.
4932         (get_number): Rewrite using get_number_const.
4933         (init_number_or_range): Make "string" const.
4934         (number_is_in_list): Make "list" const.
4935         * cli/cli-utils.h (get_number_const): Declare.
4936         (struct get_number_or_range_state) <string, end_ptr>: Now const.
4937         (init_number_or_range, number_is_in_list): Update.
4938         * printcmd.c (map_display_numbers): Update.
4939         * value.c (value_from_history_ref): Constify.
4940         * value.h (value_from_history_ref): Update.
4941
4942 2014-07-30  Tom Tromey  <tromey@redhat.com>
4943
4944         * corefile.c (hook_type, call_extra_exec_file_hooks)
4945         (specify_exec_file_hook): Constify.
4946         * exec.c (exec_file_attach): Make "filename" const.
4947         * gdbcore.h (deprecated_exec_file_display_hook)
4948         (specify_exec_file_hook, exec_file_attach): Constify.
4949         * main.c (captured_main): Use catch_command_errors_const.
4950
4951 2014-07-30  Tom Tromey  <tromey@redhat.com>
4952
4953         * target.c (open_target): New function.
4954         (add_target_with_completer, add_deprecated_target_alias): Use
4955         set_cmd_sfunc, set_cmd_context.
4956         (debug_to_open): Remove.
4957         (setup_target_debug): Update.
4958
4959 2014-07-30  Yao Qi  <yao@codesourcery.com>
4960
4961         * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4962         comments.
4963         * parse.c (exp_iterate): Update comments.
4964
4965 2014-07-30  Gary Benson  <gbenson@redhat.com>
4966
4967         * common/common-defs.h: New file.
4968         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4969         * defs.h: Include common-defs.h.
4970         Do not include config.h or build-gnulib/config.h.
4971
4972 2014-07-30  Gary Benson  <gbenson@redhat.com>
4973
4974         * common/common-utils.h: Do not include config.h.
4975         * nat/linux-btrace.h: Likewise.
4976
4977 2014-07-30  Gary Benson  <gbenson@redhat.com>
4978
4979         * btrace.c: Include defs.h.
4980         * common/ptid.c: Include defs.h or server.h as appropriate.
4981         * nat/mips-linux-watch.c: Likewise.
4982
4983 2014-07-29  Tom Tromey  <tromey@redhat.com>
4984
4985         * target.c (target_is_pushed): Simplify.
4986
4987 2014-07-29  Joel Brobecker  <brobecker@adacore.com>
4988
4989         GDB 7.8 released.
4990
4991 2014-07-29  Yao Qi  <yao@codesourcery.com>
4992
4993         PR gdb/17206
4994         * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4995
4996 2014-07-28  Doug Evans  <xdje42@gmail.com>
4997
4998         PR guile/17203
4999         * guile/scm-param.c (pascm_parameter_defined_p): New function.
5000         (gdbscm_register_parameter_x): Call it.  Raise error for pre-existing
5001         parameters.
5002
5003 2014-07-28  Will Newton  <will.newton@linaro.org>
5004
5005         * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5006         (THUMB2_SET_R7_SIGRETURN2): Likewise.
5007         (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5008         (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5009         (THUMB2_EABI_SYSCALL): Likewise.
5010         (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5011         struct tramp_frame.
5012         (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5013         (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5014
5015 2014-07-27  Doug Evans  <xdje42@gmail.com>
5016
5017         * guile/scm-param.c (pascm_print_param_smob): Fix output.
5018
5019 2014-07-27  Doug Evans  <xdje42@gmail.com>
5020
5021         * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5022
5023 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
5024             Doug Evans  <xdje42@gmail.com>
5025
5026         PR guile/17146
5027         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5028         (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5029         * configure.ac: Try to use guild to compile an scm file, if it fails
5030         then disable guile support.
5031         * configure: Regenerate.
5032         * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5033         GUILE_FILE_LIST.
5034         (GUILE_COMPILED_FILES): New variable.
5035         (GUILE_FILES) Update.
5036         (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5037         (stamp-guile): Compile scm files.
5038         * guile/guile.c (boot_guile_support): New function.
5039         (standard_throw_args_p): New function.
5040         (print_standard_throw_error, print_throw_error): New functions.
5041         (handle_boot_error): New function.
5042         (initialize_scheme_side): Rewrite to call boot_guile_support.
5043         * guile/lib/gdb/boot.scm: Update %load-compiled-path.  Load gdb.go.
5044         * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5045
5046 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
5047             Doug Evans  <xdje42@gmail.com>
5048
5049         PR guile/17146
5050         * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5051         * guile/lib/gdb/support.scm: New file.
5052         * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5053         * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5054         All uses updated.
5055         * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5056         All uses updated.
5057         (%assert-type): Ditto, and renamed to assert-type.
5058         (%exception-print-style): Delete.
5059
5060 2014-07-26  Doug Evans  <xdje42@gmail.com>
5061
5062         PR build/17105
5063         * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5064         * configure: Regenerate.
5065         * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5066         PYTHON_FILES.
5067         (PYTHON_FILES): New variable.
5068         (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5069         (GUILE_FILES): New variable.
5070         (stamp-python, install-python, uninstall-python): Handle empty
5071         file list.
5072         (stamp-guile, install-guile, uninstall-guile): Ditto.
5073
5074 2014-07-26  Doug Evans  <xdje42@gmail.com>
5075
5076         PR guile/17177
5077         * guile/lib/gdb.scm (pretty-printers): Export.
5078         (set-pretty-printers!): Export.
5079         * guile/lib/gdb/printing.scm (gdb module): Update.
5080         (prepend-pretty-printer!, append-pretty-printer!): Update.
5081         * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5082         (pretty_printer_list_var): Delete.
5083         (pretty_printer_list): New static global.
5084         (gdbscm_pretty_printers): New function.
5085         (gdbscm_set_pretty_printers_x): New function.
5086         (ppscm_find_pretty_printer_from_gdb): Update.
5087         (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5088         (gdbscm_initialize_pretty_printers): Update.
5089
5090 2014-07-26  Doug Evans  <xdje42@gmail.com>
5091
5092         PR 17185
5093         * configure.ac: Add check for header gc/gc.h.
5094         Add check for function setenv.
5095         * configure: Regenerate.
5096         * config.in: Regenerate.
5097         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5098
5099 2014-07-25  Maciej W. Rozycki  <macro@codesourcery.com>
5100
5101         * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5102         variation in gdbarch matching.
5103
5104 2014-07-25  Tom Tromey  <tromey@redhat.com>
5105
5106         * exec.c (using_exec_ops): Remove.
5107         (exec_close_1): Update.  Remove extraneous block, reindent.
5108         (add_target_sections): Use target_is_pushed.
5109
5110 2014-07-25  Pedro Alves  <palves@redhat.com>
5111
5112         * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5113         * monitor.c (monitor_create_inferior): Likewise.
5114         * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5115         * remote-sim.c (gdbsim_create_inferior): Likewise.
5116         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5117         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5118         * windows-nat.c (do_initial_windows_stuff): Likewise.
5119
5120 2014-07-25  Pedro Alves  <palves@redhat.com>
5121
5122         * NEWS: Mention signal passing and "signal" command changes.
5123         * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5124         comment.
5125         * breakpoint.c (until_break_command): Adjust clear_proceed_status
5126         call.
5127         * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5128         * infcmd.c (proceed_thread_callback, continue_1, step_once)
5129         (jump_command): Adjust clear_proceed_status call.
5130         (signal_command): Warn if other thread that are resumed have
5131         signals that will be delivered.  Adjust clear_proceed_status call.
5132         (until_next_command, finish_command)
5133         (proceed_after_attach_callback, attach_command_post_wait)
5134         (attach_command): Adjust clear_proceed_status call.
5135         * infrun.c (proceed_after_vfork_done): Likewise.
5136         (proceed_after_attach_callback): Adjust comment.
5137         (clear_proceed_status_thread): Clear stop_signal if not in pass
5138         state.
5139         (clear_proceed_status_callback): Delete.
5140         (clear_proceed_status): New 'step' parameter.  Only clear the
5141         proceed status of threads the command being prepared is about to
5142         resume.
5143         (proceed): If passed in an explicit signal, override stop_signal
5144         with it.  Don't pass the last stop signal to the thread we're
5145         resuming.
5146         (init_wait_for_inferior): Adjust clear_proceed_status call.
5147         (switch_back_to_stepped_thread): Clear the signal if it should not
5148         be passed.
5149         * infrun.h (clear_proceed_status): New 'step' parameter.
5150         (user_visible_resume_ptid): Add comment.
5151         * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5152         signal is in pass state.
5153         * remote.c (append_pending_thread_resumptions): Likewise.
5154         * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5155
5156 2014-07-25  Tom Tromey  <tromey@redhat.com>
5157
5158         * target.h (target_stopped_data_address)
5159         (target_watchpoint_addr_within_range): Use "->", not ".".  Fix
5160         parentheses.
5161
5162 2014-07-25  Pierre Langlois  <pierre.langlois@embecosm.com>
5163
5164         * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5165         comments.
5166         (avr_pointer_to_address): Likewise.
5167
5168 2014-07-24  Tom Tromey  <tromey@redhat.com>
5169
5170         * monitor.c (compile_pattern): Update.
5171         * target.h (struct target_ops) <to_shortname, to_longname,
5172         to_doc>: Now const.
5173
5174 2014-07-24  Tom Tromey  <tromey@redhat.com>
5175
5176         * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5177         (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5178         (add_info_alias, add_com): Make "doc" const.
5179         (print_doc_line): Make "str" const.
5180         (delete_cmd): Update.
5181         * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5182         (print_doc_line): Update.
5183         * cli/cli-script.c (document_command): Update.
5184         * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5185         (add_com, add_info, add_info_alias): Update.
5186         * guile/scm-cmd.c (cmdscm_destroyer): Update.
5187         * python/py-cmd.c (cmdpy_destroyer): Update.
5188
5189 2014-07-24  Tom Tromey  <tromey@redhat.com>
5190
5191         * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5192         (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5193         (help_cmd_list): Constify.
5194         (lookup_cmd): Update.
5195         * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5196         const.
5197         (help_cmd_list, apropos_cmd): Update.
5198         * cli/cli-script.c (show_user): Update.
5199         * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5200         * cli/cli-setshow.h (cmd_show_list): Update.
5201         * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5202         (cmd_show_list): Update.
5203         * guile/scm-cmd.c (cmdscm_destroyer): Update.
5204         * python/py-cmd.c (cmdpy_destroyer): Update.
5205
5206 2014-07-24  Tom Tromey  <tromey@redhat.com>
5207
5208         * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5209         * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5210         const.
5211         * command.h (deprecate_cmd): Update.
5212         * maint.c (maintenance_do_deprecate): Add casts.
5213
5214 2014-07-24  Tom Tromey  <tromey@redhat.com>
5215
5216         * cli/cli-decode.c (help_cmd): Make parameter "const".
5217         * cli/cli-decode.h (help_cmd): Update.
5218
5219 2014-07-24  Tom Tromey  <tromey@redhat.com>
5220
5221         * stack.c (up_silently_base, down_silently_base): Make argument
5222         const.
5223
5224 2014-07-24  Tom Tromey  <tromey@redhat.com>
5225
5226         * solib.c (solib_add): Make "pattern" const.
5227         * solib.h (solib_add): Update.
5228
5229 2014-07-24  Tom Tromey  <tromey@redhat.com>
5230
5231         * remote.c (remote_serial_open, print_packet, putpkt)
5232         (putpkt_binary): Constify.
5233         * remote.h (putpkt): Update.
5234
5235 2014-07-24  Tom Tromey  <tromey@redhat.com>
5236
5237         * monitor.c (monitor_open): Make "args" const.
5238         * monitor.h (monitor_open): Update.
5239
5240 2014-07-24  Tom Tromey  <tromey@redhat.com>
5241
5242         * maint.c (match_bfd_flags): Make "string" const.
5243         (print_bfd_section_info): Remove casts.
5244         (print_objfile_section_info): Make "string" const.
5245
5246 2014-07-24  Tom Tromey  <tromey@redhat.com>
5247
5248         * inf-child.c (inf_child_open_target): Make "arg" const.
5249         * inf-child.h (inf_child_open_target): Update.
5250
5251 2014-07-24  Tom Tromey  <tromey@redhat.com>
5252
5253         * environ.c (unset_in_environ): Make "var" const.
5254         * environ.h (unset_in_environ): Update.
5255
5256 2014-07-24  Tom Tromey  <tromey@redhat.com>
5257
5258         * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5259         Make "cmd" const.
5260         (scan_filename_with_cleanup): Likewise.
5261         (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5262         Make arguments const.
5263         (restore_command): Update.
5264
5265 2014-07-24  Pedro Alves  <palves@redhat.com>
5266
5267         * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5268
5269 2014-07-24  Tom Tromey  <tromey@redhat.com>
5270             Gary Benson  <gbenson@redhat.com>
5271
5272         * nat/linux-ptrace.c (additional_flags): New global.
5273         (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5274         additional_flags; don't check GDBSERVER.
5275         (linux_ptrace_set_additional_flags): New function.
5276         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5277         Declare.
5278         * linux-nat.c (_initialize_linux_nat): Call
5279         linux_ptrace_set_additional_flags.
5280
5281 2014-07-24  Tom Tromey  <tromey@redhat.com>
5282
5283         * make-target-delegates (munge_type, write_debugmethod): New
5284         functions.
5285         (debug_names): New global.
5286         ($TARGET_DEBUG_PRINTER): New global.
5287         (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5288         name.
5289         Write debug methods.  Generate init_debug_target.
5290         * target-debug.h: New file.
5291         * target-delegates.c: Rebuild.
5292         * target.c: Include target-debug.h.
5293         (debug_target): Hoist definition.
5294         (target_kill, target_get_section_table, target_memory_map)
5295         (target_flash_erase, target_flash_done, target_detach)
5296         (target_disconnect, target_wait, target_resume)
5297         (target_pass_signals, target_program_signals, target_follow_fork)
5298         (target_mourn_inferior, target_search_memory)
5299         (target_thread_address_space, target_close)
5300         (target_find_new_threads, target_core_of_thread)
5301         (target_verify_memory, target_insert_mask_watchpoint)
5302         (target_remove_mask_watchpoint): Remove targetdebug code.
5303         (debug_to_post_attach, debug_to_prepare_to_store)
5304         (debug_to_files_info, debug_to_insert_breakpoint)
5305         (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5306         (debug_to_region_ok_for_hw_watchpoint)
5307         (debug_to_can_accel_watchpoint_condition)
5308         (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5309         (debug_to_watchpoint_addr_within_range)
5310         (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5311         (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5312         (debug_to_terminal_init, debug_to_terminal_inferior)
5313         (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5314         (debug_to_terminal_save_ours, debug_to_terminal_info)
5315         (debug_to_load, debug_to_post_startup_inferior)
5316         (debug_to_insert_fork_catchpoint)
5317         (debug_to_remove_fork_catchpoint)
5318         (debug_to_insert_vfork_catchpoint)
5319         (debug_to_remove_vfork_catchpoint)
5320         (debug_to_insert_exec_catchpoint)
5321         (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5322         (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5323         (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5324         (setup_target_debug): Call init_debug_target.
5325         * target.h (TARGET_DEBUG_PRINTER): New macro.
5326         (struct target_ops) <to_resume, to_wait, to_pass_signals,
5327         to_program_signals>: Use TARGET_DEBUG_PRINTER.
5328
5329 2014-07-24  Gary Benson  <gbenson@redhat.com>
5330
5331         * exceptions.h (throw_vfatal): Renamed to...
5332         (throw_vquit): New declaration.
5333         (throw_quit): Likewise.
5334         * exceptions.c (throw_vfatal): Renamed to...
5335         (throw_vquit): New function.
5336         (throw_quit): Likewise.
5337         (throw_error): Call throw_verror rather than throw_it.
5338         * utils.h (vfatal): Removed.
5339         (fatal): Likewise.
5340         * utils.c (vfatal): Removed.
5341         (fatal): Likewise.
5342         (internal_verror): Replaced call to fatal with call to throw_quit.
5343         (quit): Replaced calls to fatal with calls to throw_quit.
5344
5345 2014-07-23  Ajit Agarwal <ajitkum@xilinx.com>
5346
5347         * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5348         target_read_code.
5349
5350 2014-07-23  Chen Gang <gang.chen.5i5j@gmail.com>
5351
5352         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5353         less than zero in conditional expression.
5354
5355 2014-07-23  Tom Tromey  <tromey@redhat.com>
5356
5357         * make-target-delegates ($ARGS_PART): Match trailing close paren.
5358         ($INTRO_PART): Don't match whitespace.
5359         ($METHOD_TRAILER): Move earlier.  Remove trailing semicolon and
5360         argument matching.
5361         ($METHOD): Add $METHOD_TRAILER.
5362         (trim): Rewrite.
5363         (scan_target_h): New sub.
5364         Change main loop not to collect state.
5365         * target-delegates.c: Rebuild.
5366
5367 2014-07-23  Gary Benson  <gbenson@redhat.com>
5368
5369         * cp-support.c (gdb_demangle): Fix build on systems without
5370         sigaltstack.
5371
5372 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
5373
5374         * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5375         for reference entry value target data value.
5376
5377 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
5378
5379         * stack.c (read_frame_arg): Verify value_optimized_out before calling
5380         value_available_contents_eq.
5381
5382 2014-07-22  Pedro Alves  <palves@redhat.com>
5383
5384         * value.c (allocate_optimized_out_value): Don't mark value as
5385         non-lazy.
5386
5387 2014-07-22  Jiong Wang  <jiong.wang@arm.com>
5388
5389         * MAINTAINERS (Write After Approval): Update my email address.
5390
5391 2014-07-20  Doug Evans  <dje@google.com>
5392
5393         PR server/17147
5394         * remote.c (putpkt_binary): Add text to error message.
5395
5396 2014-07-20  Yao Qi  <yao@codesourcery.com>
5397
5398         * eval.c: Remove "Chill" from comments.
5399         * gdbtypes.h: Likewise.
5400         * symtab.h: Likewise.
5401
5402 2014-07-20  Yao Qi  <yao@codesourcery.com>
5403
5404         * std-operator.def: Update comments to TERNOP_SLICE.
5405
5406 2014-07-20  Yao Qi  <yao@codesourcery.com>
5407
5408         * std-operator.def: Remove BINOP_RANGE.
5409         * breakpoint.c (watchpoint_exp_is_const): Update.
5410         * expprint.c (dump_subexp_body_standard): Likewise.
5411         * eval.c (init_array_element): Remove dead code.
5412         (evaluate_subexp_standard): Likewise.
5413
5414 2014-07-20  Yao Qi  <yao@codesourcery.com>
5415
5416         * std-operator.def: Remove BINOP_IN.
5417         * breakpoint.c (watchpoint_exp_is_const): Update.
5418         * eval.c (evaluate_subexp_standard): Likewise.
5419         * expprint.c (dump_subexp_body_standard): Likewise.
5420
5421 2014-07-19  Ajit Agarwal  <ajitkum@xilinx.com>
5422
5423         * microblaze-tdep.c (microblaze_register_names): Add
5424         the rshr and rslr register names.
5425         (microblaze_gdbarch_init): Use of tdesc_has_registers.
5426         Use of tdesc_find_feature. Use of tdesc_data_alloc.
5427         Use of tdesc_numbered_register. Use of
5428         microblaze_register_g_packet_guesses. Use of
5429         tdesc_use_registers. Use of set_gdbarch_register_type.
5430         (microblaze_register_g_packet_guesses): New.
5431         * microblaze-tdep.h (microblaze_reg_num): Add
5432         field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5433         MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5434         (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5435         * features/microblaze-core.xml: New file.
5436         * features/microblaze-stack-protect.xml: New file.
5437         * features/microblaze-with-stack-protect.c: New file.
5438         * features/microblaze-with-stack-protect.xml: New file.
5439         * features/microblaze.xml: New file.
5440         * features/microblaze.c: New file.
5441         * features/Makefile (microblaze-with-stack-protect): Add
5442         microblaze-with-stack-protect microblaze and microblaze-expedite.
5443         * regformats/microblaze-with-stack-protect.dat: New file.
5444         * regformats/microblaze.dat: New file.
5445         * doc/gdb.texinfo (MicroBlaze Features): Added.
5446
5447 2014-07-18  Tom Tromey  <tromey@redhat.com>
5448
5449         * exec.c (exec_ops): Now static.
5450         * exec.h (exec_ops): Don't declare.
5451
5452 2014-07-18  Tom Tromey  <tromey@redhat.com>
5453
5454         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5455         to find_target_beneath.
5456         * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5457         find_target_beneath.
5458         (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5459
5460 2014-07-18  Tom Tromey  <tromey@redhat.com>
5461
5462         PR gdb/17130:
5463         * utils.c (quit): Use target_supports_terminal_ours.
5464         * target.h (target_supports_terminal_ours): Declare.
5465         * target.c (target_supports_delete_record): Don't check
5466         to_delete_record against NULL.
5467         (target_supports_terminal_ours): New function.
5468
5469 2014-07-18  Tom Tromey  <tromey@redhat.com>
5470
5471         PR gdb/17130:
5472         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5473         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5474         (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5475         * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5476         * windows-nat.c (windows_xfer_partial): Always delegate.
5477         * record-btrace.c (record_btrace_xfer_partial): Simplify
5478         delegation.
5479         (record_btrace_fetch_registers, record_btrace_store_registers)
5480         (record_btrace_prepare_to_store, record_btrace_resume)
5481         (record_btrace_wait, record_btrace_find_new_threads)
5482         (record_btrace_thread_alive): Likewise.
5483         * procfs.c (procfs_xfer_partial): Always delegate.
5484         * corelow.c (core_xfer_partial): Always delegate.
5485         * sol-thread.c (sol_find_new_threads): Simplify delegation.
5486
5487 2014-07-18  Tom Tromey  <tromey@redhat.com>
5488
5489         * exec.c (exec_make_note_section): Move earlier.
5490
5491 2014-07-17  Doug Evans  <dje@google.com>
5492
5493         PR gdb/17170
5494         * maint.c (count_symtabs_and_blocks): Handle NULL
5495         current_program_space.
5496         (report_command_stats): Check global enabled flag in addition to
5497         recorded enabled flag.
5498         (make_command_stats_cleanup): Handle msg_type == 0, startup.
5499
5500 2014-07-16  Pedro Alves  <palves@redhat.com>
5501
5502         * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5503
5504 2014-07-16  Tom Tromey  <tromey@redhat.com>
5505
5506         * target.h (struct target_ops) <to_delete_record>: Reformat
5507         comment.
5508
5509 2014-07-16  Tom Tromey  <tromey@redhat.com>
5510
5511         * target-delegates.c: Rebuild.
5512
5513 2014-07-15  Pierre Langlois  <pierre.langlois@embecosm.com>
5514
5515         * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5516         (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5517         (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5518         (avr_pointer_to_address): Likewise.
5519         (avr_address_class_type_flags): New function.
5520         (avr_address_class_type_flags_to_name): Likewise.
5521         (avr_address_class_name_to_type_flags): Likewise.
5522         (avr_gdbarch_init): Set address_class_type_flags,
5523         address_class_type_flags_to_name and
5524         address_class_name_to_type_flags.
5525
5526 2014-07-15  Pedro Alves  <palves@redhat.com>
5527
5528         * linux-nat.c (kill_callback): Save errno and work with saved
5529         copy.
5530
5531 2014-07-15  Simon Marchi  <simon.marchi@ericsson.com>
5532
5533         * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5534
5535 2014-07-14  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
5536
5537         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5538         breakpoint support correctly.
5539
5540 2014-07-14  Pedro Alves  <palves@redhat.com>
5541
5542         * utils.c (prompt_for_continue): Call target_terminal_ours.
5543
5544 2014-07-14  Pedro Alves  <palves@redhat.com>
5545
5546         * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5547         catch_errors.  Don't re-enable stdin or notify observers where,
5548         and rethrow error.
5549         (fetch_inferior_event_wrapper): Delete.
5550
5551 2014-07-14  Pedro Alves  <palves@redhat.com>
5552
5553         PR gdb/17072
5554         * top.c: Include "inf-loop.h".
5555         (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5556         field.
5557         (gdb_readline_wrapper_cleanup): Make the target async again, if it
5558         was async before.
5559         (gdb_readline_wrapper): Store whether the target is async, and
5560         make it sync.
5561
5562 2014-07-14  Pedro Alves  <palves@redhat.com>
5563
5564         PR gdb/17072
5565         * top.c (gdb_readline_wrapper_line): Tweak comment.
5566         (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5567         the input handler callback.
5568
5569 2014-07-14  Pedro Alves  <palves@redhat.com>
5570
5571         PR gdb/17072
5572         * main.c: Include event-top.h.
5573         (handle_command_errors): New function.
5574         (catch_command_errors, catch_command_errors_const): Use it.
5575
5576 2014-07-14  Pedro Alves  <palves@redhat.com>
5577
5578         * exceptions.c (catch_command_errors, catch_command_errors_const):
5579         Moved to main.c.
5580         * exceptions.h (catch_command_errors_ftype)
5581         (catch_command_errors_const_ftype): Moved to main.c.
5582         (catch_command_errors, catch_command_errors_const): Delete
5583         declarations.
5584         * main.c (catch_command_errors_ftype)
5585         (catch_command_errors_const_ftype): Moved here from exceptions.h.
5586         (catch_command_errors, catch_command_errors_const)): Moved here
5587         from exceptions.c and make static.
5588
5589 2014-07-14  Pedro Alves  <palves@redhat.com>
5590
5591         * exceptions.c (print_any_exception): Delete.
5592         (catch_exceptions_with_msg): Use exception_print instead of
5593         print_any_exception.
5594         (catch_errors): Use exception_fprintf instead of
5595         print_any_exception.
5596         (catch_command_errors, catch_command_errors_const): Use
5597         exception_print instead of print_any_exception.
5598
5599 2014-07-14  Pedro Alves  <palves@redhat.com>
5600
5601         * infcall.c (run_inferior_call): Set 'sync_execution' while
5602         running the inferior call.
5603
5604 2014-07-14  Pedro Alves  <palves@redhat.com>
5605
5606         * value.c (value_contents_equal): Delete function.
5607         * value.h (value_contents_equal): Delete declaration.
5608
5609 2014-07-14  Tom Tromey  <tromey@redhat.com>
5610
5611         PR exp/17106:
5612         * gdbtypes.c (is_dynamic_type_internal): New function, from
5613         is_dynamic_type.
5614         (is_dynamic_type): Rewrite.
5615         (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5616         (resolve_dynamic_struct): Likewise.
5617         (resolve_dynamic_type_internal): New function, from
5618         resolve_dynamic_type.
5619         (resolve_dynamic_type): Rewrite.
5620
5621 2014-07-14  Tom Tromey  <tromey@redhat.com>
5622
5623         * target.c (target_require_runnable): Also check record_stratum.
5624         Update comment.
5625
5626 2014-07-11  Yao Qi  <yao@codesourcery.com>
5627
5628         * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5629         thumb_instruction_restores_sp return true.
5630
5631 2014-07-11  Yao Qi  <yao@codesourcery.com>
5632
5633         * arm-tdep.c (thumb_instruction_restores_sp): New function.
5634         (thumb_in_function_epilogue_p): Call
5635         thumb_instruction_restores_sp.
5636
5637 2014-07-11  Yao Qi  <yao@codesourcery.com>
5638
5639         * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5640         'add sp, #imm'.
5641         (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5642
5643 2014-07-11  Gary Benson  <gbenson@redhat.com>
5644
5645         * amd64-linux-nat.c (gdbcore.h): Remove include.
5646         (regset.h): Likewise.
5647         (nat/linux-btrace.h): Likewise.
5648         (btrace.h): Likewise.
5649         (gdb_assert.h): Likewise.
5650         (string.h): Likewise.
5651         (sys/uio.h): Likewise.
5652         (sys/debugreg.h): Likewise.
5653         (sys/syscall.h): Likewise.
5654         (sys/procfs.h): Likewise.
5655         (sys/user.h): Likewise.
5656         (asm/ptrace.h): Likewise.
5657         (i386-nat.h): Likewise.
5658         * i386-linux-nat.c (i386-nat.h): Likewise.
5659         (regset.h): Likewise.
5660         (target.h): Likewise.
5661         (linux-nat.h): Likewise.
5662         (nat/linux-btrace.h): Likewise.
5663         (btrace.h): Likewise.
5664         (gdb_assert.h): Likewise.
5665         (string.h): Likewise.
5666         (sys/uio.h): Likewise.
5667         (sys/user.h): Likewise.
5668         (sys/procfs.h): Likewise.
5669         (sys/reg.h): Likewise.
5670         (sys/debugreg.h): Likewise.
5671         (ORIG_EAX): Remove definition.
5672
5673 2014-07-11  Gary Benson  <gbenson@redhat.com>
5674
5675         * i386-linux-nat.h: New file.
5676         * x86-linux-nat.h: Likewise.
5677         * x86-linux-nat.c: Likewise.
5678         * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5679         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5680         * config/i386/linux64.mh (NATDEPFILES): Likewise.
5681         * amd64-linux-nat.c (x86-linux-nat.h): New include.
5682         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5683         (PTRACE_SETREGSET): Likewise.
5684         (arch_lwp_info): Now in x86-linux-nat.c.
5685         (have_ptrace_getregset): Now in x86-linux-nat.h.
5686         (x86_linux_dr_get): Now in x86-linux-nat.c.
5687         (x86_linux_dr_set): Likewise.
5688         (x86_linux_dr_get_addr): Likewise.
5689         (x86_linux_dr_get_control): Likewise.
5690         (x86_linux_dr_get_status): Likewise.
5691         (update_debug_registers_callback): Likewise.
5692         (x86_linux_dr_set_control): Likewise.
5693         (x86_linux_dr_set_addr): Likewise.
5694         (x86_linux_prepare_to_resume): Likewise.
5695         (x86_linux_new_thread): Likewise.
5696         (x86_linux_new_fork): Likewise.
5697         (x86_linux_get_thread_area): Likewise.
5698         (super_post_startup_inferior): Likewise.
5699         (x86_linux_child_post_startup_inferior): Likewise.
5700         (AMD64_LINUX_USER64_CS): Likewise.
5701         (AMD64_LINUX_X32_DS): Likewise.
5702         (x86_linux_read_description): Likewise.
5703         (x86_linux_enable_btrace): Likewise.
5704         (x86_linux_disable_btrace): Likewise.
5705         (x86_linux_teardown_btrace): Likewise.
5706         (x86_linux_read_btrace): Likewise.
5707         (x86_linux_create_target): Likewise.
5708         (x86_linux_add_target): Likewise.
5709         * i386-linux-nat.c (x86-linux-nat.h): New include.
5710         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5711         (PTRACE_SETREGSET): Likewise.
5712         (arch_lwp_info): Now in x86-linux-nat.c.
5713         (have_ptrace_getregset): Now in x86-linux-nat.h.
5714         (x86_linux_dr_get): Now in x86-linux-nat.c.
5715         (x86_linux_dr_set): Likewise.
5716         (x86_linux_dr_get_addr): Likewise.
5717         (x86_linux_dr_get_control): Likewise.
5718         (x86_linux_dr_get_status): Likewise.
5719         (update_debug_registers_callback): Likewise.
5720         (x86_linux_dr_set_control): Likewise.
5721         (x86_linux_dr_set_addr): Likewise.
5722         (x86_linux_prepare_to_resume): Likewise.
5723         (x86_linux_new_thread): Likewise.
5724         (x86_linux_new_fork): Likewise.
5725         (x86_linux_get_thread_area): Likewise.
5726         (super_post_startup_inferior): Likewise.
5727         (x86_linux_child_post_startup_inferior): Likewise.
5728         (AMD64_LINUX_USER64_CS): Likewise.
5729         (AMD64_LINUX_X32_DS): Likewise.
5730         (x86_linux_read_description): Likewise.
5731         (x86_linux_enable_btrace): Likewise.
5732         (x86_linux_disable_btrace): Likewise.
5733         (x86_linux_teardown_btrace): Likewise.
5734         (x86_linux_read_btrace): Likewise.
5735         (x86_linux_create_target): Likewise.
5736         (x86_linux_add_target): Likewise.
5737
5738 2014-07-11  Gary Benson  <gbenson@redhat.com>
5739
5740         * amd64-linux-nat.c: Comment and whitespace changes.
5741         * i386-linux-nat.c: Comment and whitespace changes.
5742
5743 2014-07-11  Gary Benson  <gbenson@redhat.com>
5744
5745         * amd64-linux-nat.c (x86_linux_create_target): New function.
5746         (x86_linux_add_target): Likewise.
5747         (_initialize_amd64_linux_nat): Delegate to the above new functions.
5748         * i386-linux-nat.c (x86_linux_create_target): New function.
5749         (x86_linux_add_target): Likewise.
5750         (_initialize_i386_linux_nat): Delegate to the above new functions.
5751
5752 2014-07-11  Gary Benson  <gbenson@redhat.com>
5753
5754         * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5755         (ps_get_thread_area): Delegate to the above in 32-bit mode.
5756         * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5757         (ps_get_thread_area): Delegate to the above.
5758
5759 2014-07-11  Gary Benson  <gbenson@redhat.com>
5760
5761         * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5762         x86_linux_read_description.  All uses updated.  amd64-specific
5763         code conditionalized.  Conditionalized i386-specific code added.
5764         Redundant cast removed.
5765         * i386-linux-nat.c (i386_linux_read_description): Renamed to
5766         x86_linux_read_description.  All uses updated.  i386-specific
5767         code conditionalized.  Conditionalized amd64-specific code added.
5768         One sizeof replaced with the actual type it is describing.
5769
5770 2014-07-11  Gary Benson  <gbenson@redhat.com>
5771
5772         * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5773         x86_linux_dr_get.  All uses updated.
5774         (amd64_linux_dr_set): Renamed to
5775         x86_linux_dr_set.  All uses updated.
5776         (amd64_linux_dr_get_addr): Renamed to
5777         x86_linux_dr_get_addr.  All uses updated.
5778         (amd64_linux_dr_get_control): Renamed to
5779         x86_linux_dr_get_control.  All uses updated.
5780         (amd64_linux_dr_get_status): Renamed to
5781         x86_linux_dr_get_status.  All uses updated.
5782         (amd64_linux_dr_set_control): Renamed to
5783         x86_linux_dr_set_control.  All uses updated.
5784         (amd64_linux_dr_set_addr): Renamed to
5785         x86_linux_dr_set_addr.  All uses updated.
5786         (amd64_linux_prepare_to_resume): Renamed to
5787         x86_linux_prepare_to_resume.  All uses updated.
5788         (amd64_linux_new_thread): Renamed to
5789         x86_linux_new_thread.  All uses updated.
5790         (amd64_linux_new_fork): Renamed to
5791         x86_linux_new_fork.  All uses updated.
5792         (amd64_linux_child_post_startup_inferior): Renamed to
5793         x86_linux_child_post_startup_inferior.  All uses updated.
5794         (amd64_linux_enable_btrace): Renamed to
5795         x86_linux_enable_btrace.  All uses updated.
5796         (amd64_linux_disable_btrace): Renamed to
5797         x86_linux_disable_btrace.  All uses updated.
5798         (amd64_linux_teardown_btrace): Renamed to
5799         x86_linux_teardown_btrace.  All uses updated.
5800         (amd64_linux_read_btrace): Renamed to
5801         x86_linux_read_btrace.  All uses updated.
5802         * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5803         x86_linux_dr_get.  All uses updated.
5804         (i386_linux_dr_set): Renamed to
5805         x86_linux_dr_set.  All uses updated.
5806         (i386_linux_dr_get_addr): Renamed to
5807         x86_linux_dr_get_addr.  All uses updated.
5808         (i386_linux_dr_get_control): Renamed to
5809         x86_linux_dr_get_control.  All uses updated.
5810         (i386_linux_dr_get_status): Renamed to
5811         x86_linux_dr_get_status.  All uses updated.
5812         (i386_linux_dr_set_control): Renamed to
5813         x86_linux_dr_set_control.  All uses updated.
5814         (i386_linux_dr_set_addr): Renamed to
5815         x86_linux_dr_set_addr.  All uses updated.
5816         (i386_linux_prepare_to_resume): Renamed to
5817         x86_linux_prepare_to_resume.  All uses updated.
5818         (i386_linux_new_thread): Renamed to
5819         x86_linux_new_thread.  All uses updated.
5820         (i386_linux_new_fork): Renamed to
5821         x86_linux_new_fork.  All uses updated.
5822         (i386_linux_child_post_startup_inferior): Renamed to
5823         x86_linux_child_post_startup_inferior.  All uses updated.
5824         (i386_linux_enable_btrace): Renamed to
5825         x86_linux_enable_btrace.  All uses updated.
5826         (i386_linux_disable_btrace): Renamed to
5827         x86_linux_disable_btrace.  All uses updated.
5828         (i386_linux_teardown_btrace): Renamed to
5829         x86_linux_teardown_btrace.  All uses updated.
5830         (i386_linux_read_btrace): Renamed to
5831         x86_linux_read_btrace.  All uses updated.
5832
5833 2014-07-11  Adrian Sendroiu  <adrian.sendroiu@freescale.com>
5834
5835         * remote.c (extended_remote_post_attach): New function.
5836         (init_extended_remote_ops): Install it as to_post_attach method.
5837
5838 2014-07-09  Pedro Alves  <palves@redhat.com>
5839
5840         * infcmd.c (attach_command_post_wait): Don't call
5841         target_terminal_inferior here.
5842         (attach_command): Call it here instead.
5843
5844 2014-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
5845
5846         * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5847         field.
5848         * c-varobj.c (c_is_path_expr_parent): New function, moved core
5849         from varobj.c, with additional checks.
5850         (c_varobj_ops): Fill in is_path_expr_parent field.
5851         (cplus_varobj_ops): Fill in is_path_expr_parent field.
5852         * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5853         field.
5854         * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5855         ops method.
5856         (varobj_default_is_path_expr_parent): New function.
5857         * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5858         (varobj_default_is_path_expr_parent): Declare new function.
5859
5860 2014-07-08  Markus Metzger  <markus.t.metzger@intel.com>
5861
5862         * infcmd.c (finish_backward): Turn internal error into normal error.
5863
5864 2014-07-07  Pedro Alves  <palves@redhat.com>
5865
5866         PR gdb/17096
5867         * remote.c (async_handle_remote_sigint)
5868         (async_handle_remote_sigint_twice): Call
5869         gdb_call_async_signal_handler instead of
5870         mark_async_signal_handler.
5871
5872 2014-07-07  Tom Tromey  <tromey@redhat.com>
5873
5874         * target-delegates.c: Rebuild.
5875         * target.c (target_info_record): Remove.
5876         * record.c (info_record_command): Unconditionally call
5877         to_info_record.
5878         * target.h (struct target_ops) <to_info_record>: Use
5879         TARGET_DEFAULT_IGNORE.
5880         (target_info_record): Remove.
5881
5882 2014-07-07  Tom Tromey  <tromey@redhat.com>
5883
5884         * target.h (struct target_ops) <to_get_thread_local_address>: Use
5885         TARGET_DEFAULT_NORETURN.
5886         * target.c (generic_tls_error): New function.
5887         (target_translate_tls_address): Don't search target stack.
5888         * target-delegates.c: Rebuild.
5889         * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5890         stack.
5891         * linux-thread-db.c (thread_db_get_thread_local_address):
5892         Unconditionally call beneath target.
5893
5894 2014-07-03  Marc Khouzam  <marc.khouzam@ericsson.com>
5895
5896         * cli/cli-logging.c (pop_output_files): Assign targerr to
5897         gdb_stdtargerr.
5898
5899 2014-07-03  Andrew Burgess  <andrew.burgess@embecosm.com>
5900
5901         * MAINTAINERS (Write After Approval): Update my email address.
5902
5903 2014-07-02  Gary Benson  <gbenson@redhat.com>
5904
5905         * proc-service.c (ps_xfer_memory): Update comment.
5906         (ps_pstop): Remove unused function.
5907         (ps_pcontinue): Likewise.
5908         (ps_lstop): Likewise.
5909         (ps_lcontinue): Likewise.
5910         (ps_lgetxregsize): Likewise.
5911         (ps_lgetxregs): Likewise.
5912         (ps_lsetxregs): Likewise.
5913         (ps_plog): Likewise.
5914         (ps_ptread): Likewise.
5915         (ps_ptwrite): Likewise.
5916
5917 2014-07-01  Mark Wielaard  <mjw@redhat.com>
5918
5919         * dwarf2read.c (add_array_cv_type): New function.
5920         (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5921         (read_tag_volatile_type): Likewise.
5922
5923 2014-07-01  Tom Tromey  <tromey@redhat.com>
5924
5925         * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5926         * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5927         * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5928         (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5929         * command.h (cmd_cfunc_ftype): Move earlier.
5930         (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5931         (add_com, add_info): Use cmd_cfunc_ftype.
5932
5933 2014-06-30  Tom Tromey  <tromey@redhat.com>
5934
5935         * symtab.c (operator_chars): Make parameters and return type
5936         const.
5937         (file_matches): Make "files" const.
5938         (struct search_symbols_data) <files>: Now const.
5939         (search_symbols): Make "regexp" and "files" parameters const.
5940         Update.
5941         (symtab_symbol_info): Remove cast.
5942         (rbreak_command): Update.
5943         * symtab.h (search_symbols): Update.
5944
5945 2014-06-27  Yao Qi  <yao@codesourcery.com>
5946
5947         * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5948         Change parameter type to 'struct thread_info *'.  Caller
5949         updated.
5950         * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5951         Update declaration.
5952         * dummy-frame.c (struct dummy_frame_id): New.
5953         (dummy_frame_id_eq): New function.
5954         (struct dummy_frame) <id>: Change its type to 'struct
5955         dummy_frame_id'.
5956         (dummy_frame_push): Add parameter ptid and save it in
5957         dummy_frame_id.
5958         (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5959         inferior_ptid.
5960         (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5961         to inferior_ptid.
5962         (lookup_dummy_frame): Change parameter type to 'struct
5963         dummy_frame_id *'.  Callers updated.  Call dummy_frame_id_eq
5964         instead of frame_id_eq.
5965         (dummy_frame_pop): Add parameter ptid.  Callers updated.
5966         Update comments.  Compose dummy_frame_id and pass it to
5967         lookup_dummy_frame.
5968         (dummy_frame_discard): Add parameter ptid.
5969         (dummy_frame_sniffer): Compose dummy_frame_id and call
5970         dummy_frame_id_eq instead of frame_id_eq.
5971         (fprint_dummy_frames): Print ptid.
5972         * dummy-frame.h: Remove comments.
5973         (dummy_frame_push): Add ptid in declaration.
5974         (dummy_frame_pop, dummy_frame_discard): Likewise.
5975
5976 2014-06-26  Tom Tromey  <tromey@redhat.com>
5977
5978         * cli/cli-cmds.c (error_no_arg): Make "why" const.
5979         * command.h (error_no_arg): Update.
5980
5981 2014-06-26  Tom Tromey  <tromey@redhat.com>
5982
5983         * cli/cli-setshow.c (do_set_command): Make "arg" const.
5984         (do_show_command): Make "arg" const.
5985         * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5986
5987 2014-06-26  Tom Tromey  <tromey@redhat.com>
5988
5989         * record-full.c (record_full_get_bookmark): Make "args" const.
5990         (record_full_goto_bookmark): Make "raw_bookmark" const.
5991         * record.c (record_goto): New function.
5992         (cmd_record_goto): Use it.  Now static.
5993         * record.h (record_goto): Declare.
5994         (cmd_record_goto): Remove declaration.
5995         * target-delegates.c: Rebuild.
5996         * target.h (struct target_ops) <to_get_bookmark,
5997         to_goto_bookmark>: Make parameter const.
5998
5999 2014-06-26  Tom Tromey  <tromey@redhat.com>
6000
6001         * defs.h (generic_load): Update.
6002         * m32r-rom.c (m32r_load_gen): Make "filename" const.
6003         * monitor.c (monitor_load): Make "args" const.
6004         * remote-m32r-sdi.c (m32r_load): Make "args" const.
6005         * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6006         const.
6007         (mips_load): Make "file" const.
6008         * remote-sim.c (gdbsim_load): Make "args" const.
6009         * remote.c (remote_load): Make "name" const.
6010         * symfile.c (generic_load): Make "args" const.
6011         * target-delegates.c: Rebuild.
6012         * target.c (target_load): Make "arg" const.
6013         (debug_to_load): Make "args" const.
6014         * target.h (struct target_ops) <to_load>: Make parameter const.
6015         (target_load): Update.
6016
6017 2014-06-26  Tom Tromey  <tromey@redhat.com>
6018
6019         PR symtab/16902:
6020         * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6021         (dwarf2_physname, read_partial_die)
6022         (guess_partial_die_structure_name, fixup_partial_die)
6023         (guess_full_die_structure_name, anonymous_struct_prefix)
6024         (dwarf2_name): Use per-BFD obstack.
6025
6026 2014-06-26  Yao Qi  <yao@codesourcery.com>
6027
6028         * dummy-frame.c (dummy_frame_sniffer): Move local variables
6029         dummyframe and this_id into inner block below.
6030
6031 2014-06-26  Yao Qi  <yao@codesourcery.com>
6032
6033         * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6034         with "signal_pass[0]" in the initialization of signal_pass.
6035
6036 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
6037
6038         * record-btrace.c (record_btrace_generating_corefile)
6039         (record_btrace_prepare_to_generate_core)
6040         (record_btrace_done_generating_core): New.
6041         (record_btrace_xfer_partial, record_btrace_fetch_registers)
6042         (record_btrace_store_registers, record_btrace_prepare_to_store):
6043         Forward request when generating a core file.
6044         (record_btrace_open): Set record_btrace_generating_corefile to zero.
6045         (init_record_btrace_ops): Set to_prepare_to_generate_core and
6046         to_done_generating_core.
6047
6048 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
6049
6050         * target.h (target_ops) <to_prepare_to_generate_core>
6051         <to_done_generating_core>: New.
6052         (target_prepare_to_generate_core, target_done_generating_core): New.
6053         * target.c (target_prepare_to_generate_core)
6054         (target_done_generating_core): New.
6055         * target-delegates.c: Regenerate.
6056         * gcore.c: (write_gcore_file): Rename to ...
6057         (write_gcore_file_1): ...this.
6058         (write_gcore_file): Call target_prepare_to_generate_core
6059         and target_done_generating_core.
6060
6061 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
6062
6063         * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6064         * gcore.c (write_gcore_file): Free memory returned from
6065         make_corefile_notes.
6066         * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6067         * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6068
6069 2014-06-24  Yao Qi  <yao@codesourcery.com>
6070
6071         * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6072         (arm_linux_init_abi): Set skip_trampoline_code with
6073         gdbarch_skip_trampoline_code instead of
6074         find_solib_trampoline_target.
6075
6076 2014-06-24  Yao Qi  <yao@codesourcery.com>
6077
6078         * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6079         arm_skip_bx_reg returns non-zero.
6080
6081 2014-06-24  Yao Qi  <yao@codesourcery.com>
6082
6083         * arm-tdep.c (arm_skip_bx_reg): New function.
6084         (arm_skip_stub): Call arm_skip_bx_reg.
6085
6086 2014-06-23  Don Breazeal  <donb@codesourcery.com>
6087
6088         * MAINTAINERS: Add myself as write-after-approval maintainer.
6089
6090 2014-06-23  Pedro Alves  <palves@redhat.com>
6091
6092         * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6093         DR_CONTROL before setting DR0..DR3.
6094         * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6095         * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6096         bits of DR_CONTROL related to the debug register slot being
6097         disabled.  If all slots are vacant, clear local slowdown as well,
6098         and assert DR_CONTROL is 0.
6099
6100 2014-06-23  Siva Chandra Reddy  <sivachandra@google.com>
6101
6102         * python/lib/gdb/command/xmethods.py
6103         (get_method_matchers_in_loci):  Lookup xmethod matchers in the
6104         current progspace only if the string "progspace" matches LOCUS_RE.
6105
6106 2014-06-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6107
6108         Fix --with-system-readline with readline-6.3 patch 5.
6109         * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6110         (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6111         types.
6112
6113 2014-06-20  Tom Tromey  <tromey@redhat.com>
6114
6115         * dwarf2read.c (dw2_get_real_path): Use correct type in
6116         OBSTACK_CALLOC.
6117         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6118
6119 2014-06-20  Gary Benson  <gbenson@redhat.com>
6120
6121         * common/gdb_thread_db.h: Moved to nat.  All includes updated.
6122         * common/glibc_thread_db.h: Likewise.
6123         * common/i386-cpuid.h: Likewise.
6124         * common/i386-gcc-cpuid.h: Likewise.
6125         * common/linux-btrace.h: Likewise.
6126         * common/linux-osdata.h: Likewise.
6127         * common/linux-procfs.h: Likewise.
6128         * common/linux-ptrace.h: Likewise.
6129         * common/mips-linux-watch.h: Likewise.
6130         * common/linux-btrace.c: Moved to nat.
6131         * common/linux-osdata.c: Likewise.
6132         * common/linux-procfs.c: Likewise.
6133         * common/linux-ptrace.c: Likewise.
6134         * common/mips-linux-watch.c: Likewise.
6135         * nat/gdb_thread_db.h: Moved from common.
6136         * nat/glibc_thread_db.h: Likewise.
6137         * nat/i386-cpuid.h: Likewise.
6138         * nat/i386-gcc-cpuid.h: Likewise.
6139         * nat/linux-btrace.c: Likewise.
6140         * nat/linux-btrace.h: Likewise.
6141         * nat/linux-osdata.c: Likewise.
6142         * nat/linux-osdata.h: Likewise.
6143         * nat/linux-procfs.c: Likewise.
6144         * nat/linux-procfs.h: Likewise.
6145         * nat/linux-ptrace.c: Likewise.
6146         * nat/linux-ptrace.h: Likewise.
6147         * nat/mips-linux-watch.c: Likewise.
6148         * nat/mips-linux-watch.h: Likewise.
6149         * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6150         (object file files): Reordered.
6151         * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6152         of glibc_thread_db.h.
6153
6154 2014-06-20  Gary Benson  <gbenson@redhat.com>
6155
6156         * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6157         (i386_dr_low_type): Moved to nat/i386-dregs.h.
6158         (i386_dr_low): Likewise.
6159         (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6160         (i386_dr_low_set_addr): Likewise.
6161         (i386_dr_low_get_addr): Likewise.
6162         (i386_dr_low_can_set_control): Likewise.
6163         (i386_dr_low_set_control): Likewise.
6164         (i386_dr_low_get_control): Likewise.
6165         (i386_dr_low_get_status): Likewise.
6166         (i386_get_debug_register_length): Likewise.
6167         * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6168         (i386_dr_low): Likewise.
6169         * nat/i386-dregs.c (i386-low.h): Remove include.
6170         (i386-nat.h): Likewise.
6171         (nat/i386-dregs.h): New include.
6172         (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6173         (i386_dr_low_set_addr): Likewise.
6174         (i386_dr_low_get_addr): Likewise.
6175         (i386_dr_low_can_set_control): Likewise.
6176         (i386_dr_low_set_control): Likewise.
6177         (i386_dr_low_get_control): Likewise.
6178         (i386_dr_low_get_status): Likewise.
6179         (i386_get_debug_register_length): Likewise.
6180         (debug_hw_points): Likewise.
6181
6182 2014-06-19  Iain Buclaw  <ibuclaw@gdcproject.org>
6183
6184         * Makefile.in (SFILES): Add d-exp.y.
6185         (YYFILES): Add d-exp.c.
6186         (YYOBJ): Add d-exp.o.
6187         (local-maintainer-clean): Delete d-exp.c.
6188         * d-exp.y: New file.
6189         * d-lang.h (d_parse): New declaration.
6190         (d_error): New declaration.
6191         * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6192         Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6193         PREC_ORDER operators.
6194         (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6195
6196 2014-06-19  Yao Qi  <yao@codesourcery.com>
6197
6198         * gdbthread.h (any_running): Remove the declaration.
6199         * thread.c (any_running): Remove.
6200
6201 2014-06-19  Yao Qi  <yao@codesourcery.com>
6202
6203         * gdbthread.h (struct thread_info) <state>: Change its type to
6204         'enum thread_state'.  Update comments.
6205
6206 2014-06-19  Pedro Alves  <palves@redhat.com>
6207
6208         * gdbthread.h (ALL_THREADS): Delete.
6209         (ALL_NON_EXITED_THREADS): New macro.
6210         * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6211         instead of ALL_THREADS.
6212         * infrun.c (find_thread_needs_step_over)
6213         (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6214         instead of ALL_THREADS.
6215         * record-btrace.c (record_btrace_open)
6216         (record_btrace_stop_recording, record_btrace_close)
6217         (record_btrace_is_replaying, record_btrace_resume)
6218         (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6219         * remote.c (append_pending_thread_resumptions): Likewise.
6220         * thread.c (thread_apply_all_command): Likewise.
6221
6222 2014-06-19  Gary Benson  <gbenson@redhat.com>
6223
6224         * i386-nat.c (i386_stopped_by_watchpoint):
6225         Use i386_dr_stopped_by_watchpoint.
6226         (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6227         (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6228
6229 2014-06-19  Gary Benson  <gbenson@redhat.com>
6230
6231         * nat/i386-dregs.c: New file.
6232         * Makefile.in (i386-dregs.o): New rule.
6233         * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6234         * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6235         * config/i386/darwin.mh (NATDEPFILES): Likewise.
6236         * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6237         * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6238         * config/i386/go32.mh (NATDEPFILES): Likewise.
6239         * config/i386/linux.mh (NATDEPFILES): Likewise.
6240         * config/i386/linux64.mh (NATDEPFILES): Likewise.
6241         * config/i386/mingw.mh (NATDEPFILES): Likewise.
6242         * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6243         * i386-nat.h (debug_hw_points): New declaration.
6244         * i386-nat.c (breakpoint.h): Remove include.
6245         (command.h): Likewise.
6246         (target.h): Likewise.
6247         (gdb_assert.h): Likewise.
6248         (debug_hw_points): Made nonstatic.
6249         (debug_printf): Now in i386-dregs.c.
6250         (TARGET_HAS_DR_LEN_8): Likewise.
6251         (DR_CONTROL_SHIFT): Likewise.
6252         (DR_CONTROL_SIZE): Likewise.
6253         (DR_RW_EXECUTE): Likewise.
6254         (DR_RW_WRITE): Likewise.
6255         (DR_RW_READ): Likewise.
6256         (DR_RW_IORW): Likewise.
6257         (DR_LEN_1): Likewise.
6258         (DR_LEN_2): Likewise.
6259         (DR_LEN_4): Likewise.
6260         (DR_LEN_8): Likewise.
6261         (DR_LOCAL_ENABLE_SHIFT): Likewise.
6262         (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6263         (DR_ENABLE_SIZE): Likewise.
6264         (DR_LOCAL_SLOWDOWN): Likewise.
6265         (DR_GLOBAL_SLOWDOWN): Likewise.
6266         (DR_CONTROL_RESERVED): Likewise.
6267         (I386_DR_CONTROL_MASK): Likewise.
6268         (I386_DR_VACANT): Likewise.
6269         (I386_DR_LOCAL_ENABLE): Likewise.
6270         (I386_DR_GLOBAL_ENABLE): Likewise.
6271         (I386_DR_DISABLE): Likewise.
6272         (I386_DR_SET_RW_LEN): Likewise.
6273         (I386_DR_GET_RW_LEN): Likewise.
6274         (I386_DR_WATCH_HIT): Likewise.
6275         (i386_wp_op_t): Likewise.
6276         (i386_show_dr): Likewise.
6277         (i386_length_and_rw_bits): Likewise.
6278         (i386_insert_aligned_watchpoint): Likewise.
6279         (i386_remove_aligned_watchpoint): Likewise.
6280         (i386_handle_nonaligned_watchpoint): Likewise.
6281         (i386_update_inferior_debug_regs): Likewise.
6282         (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6283         (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6284         (i386_region_ok_for_watchpoint):
6285         Use i386_dr_region_ok_for_watchpoint.
6286         (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6287
6288 2014-06-19  Gary Benson  <gbenson@redhat.com>
6289
6290         * i386-nat.c (i386_insert_hw_breakpoint): Use
6291         i386_insert_watchpoint.
6292         (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6293
6294 2014-06-19  Gary Benson  <gbenson@redhat.com>
6295
6296         * i386-nat.c (i386_dr_show): Renamed to
6297         i386_show_dr and made static.  All uses updated.
6298         (i386_dr_length_and_rw_bits): Renamed to
6299         i386_length_and_rw_bits and made static.
6300         All uses updated.
6301         (i386_dr_insert_aligned_watchpoint): Renamed to
6302         i386_insert_aligned_watchpoint and made static.
6303         All uses updated.
6304         (i386_dr_remove_aligned_watchpoint): Renamed to
6305         i386_remove_aligned_watchpoint and made static.
6306         All uses updated.
6307         (i386_dr_update_inferior_debug_regs): Renamed to
6308         i386_update_inferior_debug_regs and made static.
6309         All uses updated.
6310         * nat/i386-dregs.h (i386_dr_show): Removed.
6311         (i386_dr_length_and_rw_bits): Likewise.
6312         (i386_dr_insert_aligned_watchpoint): Likewise.
6313         (i386_dr_remove_aligned_watchpoint): Likewise.
6314         (i386_dr_update_inferior_debug_regs): Likewise.
6315
6316 2014-06-19  Gary Benson  <gbenson@redhat.com>
6317
6318         * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6319         * configure: Regenerate.
6320         * config.in: Likewise.
6321         * main.c (signal.h): New include.
6322         (setup_alternate_signal_stack): New function.
6323         (captured_main): Call the above.
6324         * cp-support.c (signal.h): New include.
6325         (catch_demangler_crashes): New flag.
6326         (SIGJMP_BUF): New define.
6327         (SIGSETJMP): Likewise.
6328         (SIGLONGJMP): Likewise.
6329         (gdb_demangle_jmp_buf): New static global.
6330         (gdb_demangle_attempt_core_dump): Likewise.
6331         (gdb_demangle_signal_handler): New function.
6332         (gdb_demangle): If catch_demangler_crashes is set, install the
6333         above signal handler before calling bfd_demangle, and restore
6334         the original signal handler afterwards.  Display the offending
6335         symbol and call demangler_warning the first time a segmentation
6336         fault is caught.
6337         (_initialize_cp_support): New maint set/show command.
6338
6339 2014-06-19  Gary Benson  <gbenson@redhat.com>
6340
6341         * utils.h (resource_limit_kind): New enum.
6342         (can_dump_core): New declaration.
6343         (warn_cant_dump_core): Likewise.
6344         (dump_core): Likewise.
6345         * utils.c (dump_core): Made nonstatic.  Added new
6346         parameter "limit_kind".
6347         (can_dump_core): Made nonstatic. Moved printing code to...
6348         (warn_cant_dump_core): New function.
6349         (can_dump_core_warn): Likewise.
6350         (internal_vproblem): Replace calls to can_dump_core with
6351         calls to can_dump_core_warn.  Supply new argument to each.
6352
6353 2014-06-19  Gary Benson  <gbenson@redhat.com>
6354
6355         * utils.h (demangler_vwarning): New declaration.
6356         (demangler_warning): Likewise.
6357         * utils.c (struct internal_problem)
6358         <user_settable_should_quit>: New field.
6359         <user_settable_should_dump_core>: Likewise
6360         (internal_error_problem): Add values for above new fields.
6361         (internal_warning_problem): Likewise.
6362         (demangler_warning_problem): New static global.
6363         (demangler_vwarning): New function.
6364         (demangler_warning): Likewise.
6365         (add_internal_problem_command): Selectively add commands.
6366         (_initialize_utils): New internal problem command.
6367         * maint.c (maintenance_demangler_warning): New function.
6368         (_initialize_maint_cmds): New command.
6369
6370 2014-06-18  Tom Tromey  <tromey@redhat.com>
6371
6372         * f-valprint.c (info_common_command_for_block): Update.
6373         * symtab.h (struct general_symbol_info) <common_block>: Now
6374         const.
6375
6376 2014-06-18  Tom Tromey  <tromey@redhat.com>
6377
6378         * symtab.h (struct symtab) <blockvector>: Now const.
6379         * ada-lang.c (ada_add_global_exceptions): Update.
6380         * buildsym.c (augment_type_symtab): Update.
6381         * dwarf2read.c (dw2_lookup_symbol): Update.
6382         * jit.c (finalize_symtab): Update.
6383         * jv-lang.c (add_class_symtab_symbol): Update.
6384         * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6385         Update.
6386         * objfiles.c (objfile_relocate1): Update.
6387         * psymtab.c (lookup_symbol_aux_psymtabs)
6388         (maintenance_check_psymtabs): Update.
6389         * python/py-symtab.c (stpy_global_block, stpy_static_block):
6390         Update.
6391         * spu-tdep.c (spu_catch_start): Update.
6392         * symmisc.c (dump_symtab_1): Update.
6393         * symtab.c (lookup_global_symbol_from_objfile)
6394         (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6395         (basic_lookup_transparent_type_quick)
6396         (basic_lookup_transparent_type, find_pc_sect_symtab)
6397         (find_pc_sect_line, search_symbols): Update.
6398         * block.c (find_block_in_blockvector): Make "bl" const.
6399         (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6400         const.
6401         (blockvector_contains_pc): Make "bv" const.
6402         (block_for_pc_sect): Update.
6403         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6404         (blockvector_contains_pc): Update.
6405         * breakpoint.c (resolve_sal_pc): Update.
6406         * inline-frame.c (block_starting_point_at): Update.
6407
6408 2014-06-18  Tom Tromey  <tromey@redhat.com>
6409
6410         * completer.c (complete_line): Make "line_buffer" const.
6411         * completer.h (complete_line): Update.
6412
6413 2014-06-18  Tom Tromey  <tromey@redhat.com>
6414
6415         * symtab.c (add_macro_name): Remove unneeded cast.
6416
6417 2014-06-18  Tom Tromey  <tromey@redhat.com>
6418
6419         * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6420         * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6421
6422 2014-06-18  Tom Tromey  <tromey@redhat.com>
6423
6424         * probe.c (info_probes_for_ops): Make "arg" const.
6425         * probe.h (info_probes_for_ops): Update.
6426
6427 2014-06-18  Tom Tromey  <tromey@redhat.com>
6428
6429         * varobj.c (varobj_create): Update.
6430         * valops.c (value_of_this): Update.
6431         * tracepoint.c (add_local_symbols, scope_info): Update.
6432         * symtab.h (struct general_symbol_info) <block>: Now const.
6433         * symtab.c (skip_prologue_sal)
6434         (default_make_symbol_completion_list_break_on)
6435         (skip_prologue_using_sal): Update.
6436         * stack.h (iterate_over_block_locals)
6437         (iterate_over_block_local_vars): Update.
6438         * stack.c (print_frame_args): Update.
6439         (iterate_over_block_locals, iterate_over_block_local_vars): Make
6440         parameter const.
6441         (get_selected_block): Make return type const.
6442         * python/py-frame.c (frapy_block): Update.
6443         * python/py-block.c (gdbpy_block_for_pc): Update.
6444         * p-exp.y (%union) <bval>: Now const.
6445         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6446         * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6447         * m2-exp.y (%union) <bval>: Now const.
6448         * linespec.c (get_current_search_block): Make return type const.
6449         (create_sals_line_offset, find_label_symbols): Update.
6450         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6451         Update.
6452         (block_starting_point_at): Make "block" const.
6453         * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6454         (check_exception_resume): Update.
6455         * guile/scm-frame.c (gdbscm_frame_block): Update.
6456         * guile/scm-block.c (gdbscm_lookup_block): Update.
6457         * frame.h (get_frame_block): Update.
6458         (get_selected_block): Make return type const.
6459         * frame.c (frame_id_inner): Update.
6460         * f-valprint.c (info_common_command_for_block)
6461         (info_common_command): Update.
6462         * dwarf2loc.c (dwarf2_find_location_expression)
6463         (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6464         (locexpr_describe_location_piece): Update.
6465         * c-exp.y (%union) <bval>: Now const.
6466         * breakpoint.c (resolve_sal_pc): Update.
6467         * blockframe.c (get_frame_block):Make return type const.
6468         (get_pc_function_start, get_frame_function, find_pc_sect_function)
6469         (block_innermost_frame): Update.
6470         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6471         (block_for_pc, block_for_pc_sect): Update.
6472         * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6473         'pblock' const.
6474         (block_for_pc_sect, block_for_pc): Make return type const.
6475         * ax-gdb.c (gen_expr): Update.
6476         * alpha-mdebug-tdep.c (find_proc_desc): Update.
6477         * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6478         (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6479         (ada_read_var_value): Update.
6480         * ada-exp.y (struct name_info) <block>: Now const.
6481         (%union): Likewise.
6482         (block_lookup): Constify.
6483
6484 2014-06-18  Gary Benson  <gbenson@redhat.com>
6485
6486         * nat/i386-dregs.h: New file.
6487         * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6488         * i386-nat.h (i386-dregs.h): New include.
6489         (DR_FIRSTADDR): Now in i386-dregs.h.
6490         (DR_LASTADDR): Likewise.
6491         (DR_NADDR): Likewise.
6492         (DR_STATUS): Likewise.
6493         (DR_CONTROL): Likewise.
6494         (i386_debug_reg_state): Likewise.
6495         * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6496
6497 2014-06-18  Don Breazeal  <donb@codesourcery.com>
6498
6499         * breakpoint.c (set_longjmp_breakpoint): Call
6500         momentary_breakpoint_from_master with additional argument.
6501         (set_longjmp_breakpoint_for_call_dummy): Call
6502         momentary_breakpoint_from_master with additional argument.
6503         (set_std_terminate_breakpoint): Call
6504         momentary_breakpoint_from_master with additional argument.
6505         (momentary_breakpoint_from_master): Add argument to function
6506         definition and use it to initialize structure member flag.
6507         (clone_momentary_breakpoint): Call
6508         momentary_breakpoint_from_master with additional argument.
6509         * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6510         member flags set in momentary_breakpoint_from_master.
6511
6512 2014-06-18  Gary Benson  <gbenson@redhat.com>
6513
6514         * i386-nat.c (i386_show_dr): Renamed to
6515         i386_dr_show and made nonstatic.  All uses updated.
6516         (i386_length_and_rw_bits): Renamed to
6517         i386_dr_length_and_rw_bits and made nonstatic.
6518         All uses updated.
6519         (i386_insert_aligned_watchpoint): Renamed to
6520         i386_dr_insert_aligned_watchpoint and made nonstatic.
6521         All uses updated.
6522         (i386_remove_aligned_watchpoint): Renamed to
6523         i386_dr_remove_aligned_watchpoint and made nonstatic.
6524         All uses updated.
6525         (i386_update_inferior_debug_regs): Renamed to
6526         i386_dr_update_inferior_debug_regs and made nonstatic.
6527         All uses updated.
6528
6529 2014-06-18  Gary Benson  <gbenson@redhat.com>
6530
6531         * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6532         (i386_dr_low_can_set_control): Likewise.
6533         (i386_dr_low_set_addr): Likewise.
6534         (i386_dr_low_set_control): Likewise.
6535         (i386_dr_low_get_addr): Likewise.
6536         (i386_dr_low_get_status): Likewise.
6537         (i386_dr_low_get_control): Likewise.
6538         (i386_insert_aligned_watchpoint): Use new macros.
6539         (i386_update_inferior_debug_regs): Likewise.
6540         (i386_stopped_data_address): Likewise.
6541
6542 2014-06-18  Gary Benson  <gbenson@redhat.com>
6543
6544         * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6545         New parameter.  All uses updated.
6546
6547 2014-06-18  Gary Benson  <gbenson@redhat.com>
6548
6549         * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6550         All uses updated.
6551
6552 2014-06-18  Gary Benson  <gbenson@redhat.com>
6553
6554         * i386-nat.c (debug_printf): New macro.
6555         (i386_get_debug_register_length): Likewise.
6556         (TARGET_HAS_DR_LEN_8): Use above macro.
6557         (i386_show_dr): Use debug_printf instead of puts_unfiltered
6558         and printf_unfiltered.  Use phex to format values.
6559
6560 2014-06-18  Gary Benson  <gbenson@redhat.com>
6561
6562         * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6563         Make const.
6564
6565 2014-06-18  Gary Benson  <gbenson@redhat.com>
6566
6567         * i386-nat.c: Comment changes.
6568
6569 2014-06-18  Gary Benson  <gbenson@redhat.com>
6570
6571         * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6572
6573 2014-06-18  Gary Benson  <gbenson@redhat.com>
6574
6575         * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6576         (i386_insert_aligned_watchpoint): Likewise.
6577         (i386_remove_aligned_watchpoint): Likewise.
6578         (i386_handle_nonaligned_watchpoint): Likewise.
6579
6580 2014-06-18  Gary Benson  <gbenson@redhat.com>
6581
6582         * i386-nat.c: Whitespace changes.
6583
6584 2014-06-17  Samuel Bronson  <naesten@gmail.com>
6585
6586         * MAINTAINERS: Update Roland McGrath's email address.
6587         Thanks to Sergio Durigan Junior for pointing out that he left
6588         Red Hat a while ago, and giving me a current address.
6589
6590 2014-06-17  Tom Tromey  <tromey@redhat.com>
6591
6592         * utils.h (savestring): Remove declaration.
6593
6594 2014-06-17  Tom Tromey  <tromey@redhat.com>
6595
6596         * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6597
6598 2014-06-16  Keith Seitz  <keiths@redhat.com>
6599
6600         PR mi/15863
6601         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6602         to update the varobj if inferior_ptid is null_ptid.
6603
6604 2014-06-16  Tom Tromey  <tromey@redhat.com>
6605
6606         * target.h (struct target_ops) <to_info_proc>: Make parameter
6607         const.
6608         (target_info_proc): Update.
6609         * target.c (target_info_proc): Make "args" const.
6610         * procfs.c (procfs_info_proc): Update.
6611         * linux-tdep.c (linux_info_proc): Update.
6612         (linux_core_info_proc_mappings): Make "args" const.
6613         (linux_core_info_proc): Update.
6614         * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6615         * gdbarch.c: Rebuild.
6616         * gdbarch.h: Rebuild.
6617         * corelow.c (core_info_proc): Update.
6618
6619 2014-06-16  Tom Tromey  <tromey@redhat.com>
6620
6621         * target.h (struct target_ops) <to_disconnect>: Make parameter
6622         const.
6623         (target_disconnect): Update.
6624         * target.c (target_disconnect): Make "args" const.
6625         * target-delegates.c: Rebuild.
6626         * remote.c (remote_disconnect): Update.
6627         * record.h (record_disconnect): Update.
6628         * record.c (record_disconnect): Update.
6629         * inf-child.c (inf_child_disconnect): Update.
6630
6631 2014-06-16  Tom Tromey  <tromey@redhat.com>
6632
6633         * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6634         * target.c (debug_to_rcmd, default_rcmd): Update.
6635         * target-delegates.c: Rebuild.
6636         * remote.c (remote_rcmd): Update.
6637         * monitor.c (monitor_rcmd): Update.
6638
6639 2014-06-16  Pedro Alves  <palves@redhat.com>
6640
6641         * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6642         (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6643         have OBJF_SHARED set.
6644         * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6645         (shared_objfile_contains_address_p): ... this.  Check OBJF_SHARED
6646         instead of OBJF_USERLOADED.
6647         * objfiles.h (OBJF_SHARED): Update comment.
6648         (userloaded_objfile_contains_address_p): Rename to ...
6649         (shared_objfile_contains_address_p): ... this, and update
6650         comments.
6651         * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6652         new objfile.
6653         (remove_symbol_file_command): Skip objfiles that don't have
6654         OBJF_SHARED set.
6655
6656 2014-06-16  Tom Tromey  <tromey@redhat.com>
6657
6658         * minsyms.h (prim_record_minimal_symbol)
6659         (prim_record_minimal_symbol_and_info): Update comments.
6660
6661 2014-06-14  Eli Zaretskii  <eliz@gnu.org>
6662
6663         * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6664         or --without-guile, according to how GDB was built.
6665
6666 2014-06-13  Tom Tromey  <tromey@redhat.com>
6667
6668         * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6669         to help_list.
6670         * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6671         to help_list.
6672         * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6673         help_list.
6674         * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6675         help_list.Pass all_commands, not -1, to help_list.
6676         * cli/cli-dump.c (dump_command, append_command)
6677         (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6678         (binary_dump_command, binary_append_command): Pass all_commands,
6679         not -1, to help_list.
6680         * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6681         -1, to help_list.
6682         * valprint.c (set_print, set_print_raw): Pass all_commands, not
6683         -1, to help_list.
6684         * typeprint.c (set_print_type): Pass all_commands, not -1, to
6685         help_list.
6686         * top.c (set_history): Pass all_commands, not -1, to help_list.
6687         * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6688         all_commands, not -1, to help_list.
6689         * symfile.c (overlay_command): Pass all_commands, not -1, to
6690         help_list.
6691         * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6692         help_list.
6693         * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6694         help_list.
6695         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6696         -1, to help_list.
6697         * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6698         not -1, to help_list.
6699         * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6700         not -1, to help_list.
6701         * maint.c (maintenance_command, maintenance_info_command)
6702         (maintenance_print_command, maintenance_set_cmd): Pass
6703         all_commands, not -1, to help_list.
6704         * macrocmd.c (macro_command): Pass all_commands, not -1, to
6705         help_list.
6706         * language.c (set_check): Pass all_commands, not -1, to help_list.
6707         * infcmd.c (unset_command): Pass all_commands, not -1, to
6708         help_list.
6709         * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6710         help_list.
6711         * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6712         help_list.
6713         * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6714         help_list.
6715         * breakpoint.c (save_command): Pass all_commands, not -1, to
6716         help_list.
6717         * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6718         all_commands, not -1, to help_list.
6719
6720 2014-06-12  Pierre Langlois  <pierre.langlois@embecosm.com>
6721
6722         * regcache.c (struct register_to_invalidate): New structure.
6723         (do_register_invalidate, make_cleanup_regcache_invalidate): New
6724         functions.
6725         (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6726
6727 2014-06-12  Yao Qi  <yao@codesourcery.com>
6728
6729         * varobj.c (varobj_get_num_children): Call
6730         varobj_is_dynamic_p.
6731         (varobj_list_children): Likewise.
6732         (varobj_update): Likewise.  Update comments.
6733
6734 2014-06-12  Yao Qi  <yao@codesourcery.com>
6735
6736         * varobj.c (varobj_pretty_printed_p): Rename to ...
6737         (varobj_is_dynamic_p): ... this.  New function.
6738         * varobj.h (varobj_pretty_printed_p): Remove declaration.
6739         (varobj_is_dynamic_p): Declare.
6740         * mi/mi-cmd-var.c (print_varobj): All callers updated.
6741         (mi_print_value_p, varobj_update_one): Likewise.
6742
6743 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
6744             Yao Qi  <yao@codesourcery.com>
6745
6746         * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6747         (varobj_get_iterator): Wrap up code for pretty-printer by
6748         "#if HAVE_PYTHON" and "#endif".
6749         (update_dynamic_varobj_children): Likewise.
6750
6751 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
6752             Yao Qi  <yao@codesourcery.com>
6753
6754         * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6755         gdb_python_initialized is false.  Move some code from varobj.c.
6756         * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6757         * varobj.c: Move "varobj-iter.h" inclusion earlier.
6758         (struct varobj_item): Moved to varobj-iter.h".
6759         (varobj_clear_saved_item): New function.
6760         (update_dynamic_varobj_children): Move python-related code to
6761         py-varobj.c.
6762         (free_variable): Call varobj_clear_saved_item and
6763         varobj_iter_delete.
6764
6765 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
6766             Yao Qi  <yao@codesourcery.com>
6767
6768         * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6769         (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6770         (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6771         (py-varobj.o): New rule.
6772         * python/py-varobj.c: New file.
6773         * python/python-internal.h (py_varobj_get_iterator): Declare.
6774         * varobj-iter.h: New file.
6775         * varobj.c: Include "varobj-iter.h"
6776         (struct varobj) <child_iter>: Change its type from "PyObject *"
6777         to "struct varobj_iter *".
6778         <saved_item>: Likewise.
6779         [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6780         [HAVE_PYTHON] (varobj_get_iterator): New function.
6781         (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6782         python-specific code to python/py-varobj.c.
6783         (install_visualizer): Call varobj_iter_delete instead of
6784         Py_XDECREF.
6785         * varobj.h (varobj_ensure_python_env): Declare.
6786
6787 2014-06-12  Yao Qi  <yao@codesourcery.com>
6788
6789         * varobj.c (struct varobj_item): New structure.
6790         (create_child_with_value): Update declaration.
6791         (varobj_add_child): Replace arguments 'name' and 'value' with
6792         'item'.  All callers updated.
6793         (install_dynamic_child): Likewise.
6794         (update_dynamic_varobj_children): Likewise.
6795         (varobj_add_child): Likewise.
6796         (create_child_with_value): Likewise.
6797
6798 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
6799
6800         * NEWS: Create a new section for the next release branch.
6801         Rename the section of the current branch, now that it has
6802         been cut.
6803
6804 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
6805
6806         GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6807         * version.in: Bump version to 7.8.50.DATE-cvs.
6808
6809 2014-06-11  Pedro Alves  <palves@redhat.com>
6810
6811         PR remote/17028
6812         * ser-mingw.c (net_windows_socket_check_pending): New function.
6813         (net_windows_select_thread): Ignore spurious wakeups.  Use
6814         net_windows_socket_check_pending.
6815         (net_windows_wait_handle): Check for pending events with
6816         ioctlsocket, through net_windows_socket_check_pending, instead of
6817         checking the socket's event.
6818
6819 2014-06-10  Siva Chandra Reddy  <sivachandra@google.com>
6820
6821         * python/python-internal.h (gdb_PyObject_GetAttrString)
6822         (gdb_PyObject_HasAttrString): New inline function definitions.
6823         * py-value.c (get_field_flag): Remove the now unnecessary cast to
6824         char * of the second argument to PyObject_GetAttrString.
6825
6826 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
6827
6828         * serial.c (serial_write): Fix index of character to be printed
6829         in call to serial_logchar when serial debug traces are enabled.
6830
6831 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
6832
6833         * gdbtypes (resolve_dynamic_range): Add function description.
6834
6835 2014-06-09  Pedro Alves  <palves@redhat.com>
6836
6837         * linux-nat.c (linux_child_follow_fork): Initialize status with
6838         W_STOPCODE (0) instead of 0.  Remove shodowing 'status' local from
6839         inner block.  Only pass the signal to PTRACE_DETACH if in pass
6840         state.
6841
6842 2014-06-09  Gary Benson  <gbenson@redhat.com>
6843
6844         * common/signals.c (gdb_signal_from_host): Reorder to separate
6845         the always-available ANSI-standard signals from the signals that
6846         require checking.
6847         (do_gdb_signal_to_host): Likewise.
6848         * proc-events.c (signal_table): Likewise.
6849
6850 2014-06-08  Hui Zhu  <hui@codesourcery.com>
6851
6852         * common/linux-ptrace.c (linux_disable_event_reporting): New
6853         function.
6854         * common/linux-ptrace.h (linux_disable_event_reporting): New
6855         declaration.
6856         * linux-nat.c (linux_child_follow_fork): Do a single step before
6857         detach.
6858
6859 2014-06-07  Keith Seitz  <keiths@redhat.com>
6860
6861         Revert:
6862         PR c++/16253
6863         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6864         from symbol_matches_domain in symtab.c. All local callers
6865         of symbol_matches_domain updated.
6866         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6867         search STRUCT_DOMAIN.
6868         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6869         independently.  standard_lookup will do that automatically.
6870         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6871         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6872         (cp_lookup_symbol_in_namespace): Likewise.
6873         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6874         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6875         may return a STRUCT_DOMAIN match.
6876         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6877         * cp-support.c: Include language.h.
6878         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6879         VAR_DOMAIN.
6880         * psymtab.c (match_partial_symbol): Compare the requested
6881         domain with the symbol's domain directly.
6882         (lookup_partial_symbol): Likewise.
6883         * symtab.c (lookup_symbol_in_language): Explain when/why
6884         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6885         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6886         appropriate languages.
6887         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6888         and moved to ada-lang.c
6889         (lookup_block_symbol): Explain that this function only returns
6890         symbol matching the requested DOMAIN.
6891         Compare the requested domain with the symbol's domain directly.
6892         (iterate_over_symbols): Compare the requested domain with the
6893         symbol's domain directly.
6894         * symtab.h (symbol_matches_domain): Remove.
6895
6896 2014-06-06  Doug Evans  <xdje42@gmail.com>
6897
6898         * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6899         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6900         (gdbscm_guile_version_is_at_least): Declare.
6901         (gdbscm_scm_string_to_int): Declare.
6902         * guile/guile.c (gdbscm_guile_major_version): New global.
6903         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6904         (guile_datadir): New static global.
6905         (gdbscm_guile_data_directory): New function.
6906         (initialize_scheme_side): Update.
6907         (misc_guile_functions): Add guile-data-directory.
6908         (initialize_gdb_module): Fetch guile version number.
6909         * guile/lib/gdb.scm: Remove call to add-to-load-path.
6910         * guile/lib/gdb/init.scm (%initialize!): Ditto.
6911         * guile/lib/gdb/boot.scm: Use guile-data-directory.
6912         * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6913         comments.
6914         * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6915         * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6916         * guile/scm-value.c (gdbscm_value_to_string): Only call
6917         scm_port_conversion_strategy if Guile version >= 2.0.6.
6918
6919 2014-06-06  Mingjie Xing  <mingjie.xing@gmail.com>
6920
6921         * main.c (print_gdb_help): Add -q and --silent.
6922
6923 2014-06-06  Gary Benson  <gbenson@redhat.com>
6924
6925         * common/signals.c: Remove preprocessor conditionals for
6926         always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6927         SIGSEGV and SIGTERM.
6928         * proc-events.c: Likewise.
6929
6930 2014-06-06  Markus Metzger  <markus.t.metzger@intel.com>
6931
6932         * symfile.c (symfile_free_objfile): Remove restriction to
6933         OBJF_USERLOADED.
6934         * symfile-mem.c (symbol_file_add_from_memory): Call
6935         add_target_sections_of_objfile.
6936
6937 2014-06-05  Ludovic Courtès  <ludo@gnu.org>
6938
6939         * guile/scm-value.c (gdbscm_history_append_x): Use
6940         'vlscm_get_value_smob_arg_unsafe' instead of
6941         'vlscm_scm_to_value'.
6942
6943 2014-06-05  Simon Marchi  <simon.marchi@ericsson.com>
6944
6945         PR mi/15806
6946         * utils.c (printchar): Don't escape at all if quoter is NUL.
6947         Update function documentation to clarify effect of parameter
6948         QUOTER.
6949         * remote.c (escape_buffer): Pass '\\' as the quoter to
6950         fputstrn_unfiltered.
6951         * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6952         generate the output.
6953         (mi_solib_unloaded): Same.
6954
6955 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
6956
6957         * development.sh: Delete.
6958         * Makefile.in (config.status): Adjust dependency on development.sh.
6959         * configure.ac: Adjust development.sh source call.
6960         * configure: Regenerate.
6961
6962 2014-06-04  Doug Evans  <xdje42@gmail.com>
6963
6964         * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6965         is_scheme_bkpt, spec.
6966         (bpscm_make_breakpoint_smob): Initialize new members.
6967         (gdbscm_create_breakpoint_x): Split into two ...
6968         (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6969         (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6970         (scheme_function breakpoint_functions): Update.
6971         * guile/lib/gdb.scm: Delete create-breakpoint!.  Rename
6972         breakpoint-delete! to delete-breakpoint!.  Add make-breakpoint,
6973         register-breakpoint!.
6974
6975 2014-06-04  Joel Brobecker  <brobecker@adacorer.com>
6976
6977         PR server/17023
6978         * mem-break.c (z_type_supported): Return zero if
6979         THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6980
6981 2014-06-04  Tom Tromey  <tromey@redhat.com>
6982
6983         * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6984         value_from_contents_and_address_unresolved.
6985         (ada_template_to_fixed_record_type_1): Likewise.
6986         (ada_which_variant_applies): Likewise.
6987         * value.h (value_from_contents_and_address_unresolved): Declare.
6988         * value.c (value_from_contents_and_address_unresolved): New
6989         function.
6990         * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6991         <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6992         (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6993
6994 2014-06-04  Tom Tromey  <tromey@redhat.com>
6995
6996         * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6997
6998 2014-06-04  Tom Tromey  <tromey@redhat.com>
6999
7000         * procfs.c (procfs_attach): Make "args" const.
7001         * windows-nat.c (windows_attach): Make "args" const.
7002         * nto-procfs.c (procfs_attach): Make "args" const.
7003         * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7004         * go32-nat.c (go32_attach): Make "args" const.
7005         * gnu-nat.c (gnu_attach): Make "args" const.
7006         * darwin-nat.c (darwin_attach): Make "args" const.
7007         * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7008         * linux-nat.c (linux_nat_attach): Make "args" const.
7009         * remote.c (extended_remote_attach_1, extended_remote_attach):
7010         Make "args" const.
7011         * target.h (struct target_ops) <to_attach>: Make "args" const.
7012         (find_default_attach): Likewise.
7013         * utils.c (parse_pid_to_attach): Make "args" const.
7014         * utils.h (parse_pid_to_attach): Update.
7015
7016 2014-06-04  Tom Tromey  <tromey@redhat.com>
7017
7018         * target-delegates.c: Rebuild.
7019         * target.c (default_thread_address_space): New function.
7020         (target_thread_address_space): Simplify.
7021         * target.h (struct target_ops) <to_thread_address_space>: Add
7022         TARGET_DEFAULT_FUNC.
7023
7024 2014-06-04  Doug Evans  <xdje42@gmail.com>
7025
7026         * guile/scm-type.c (type_smob): Remove duplicate typedef.
7027
7028 2014-06-04  Markus Metzger  <markus.t.metzger@intel.com>
7029
7030         * record-btrace.c: Include event-loop.h and inf-loop.h.
7031         (record_btrace_resume_exec_dir)
7032         (record_btrace_async_inferior_event_handler)
7033         (record_btrace_handle_async_inferior_event): New.
7034         (record_btrace_open): Create async event handler.
7035         (record_btrace_close): Delete async event handler.
7036         (record_btrace_resume): Set record_btrace_resume_exec_dir,
7037         Mark async event handler.
7038         (record_btrace_execution_direction): New.
7039         (init_record_btrace_ops): Initialize to_execution_direction.
7040
7041 2014-06-03  Doug Evans  <xdje42@gmail.com>
7042
7043         * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7044         (gdbscm_make_parameter): Ditto.
7045
7046 2014-06-03  Doug Evans  <dje@google.com>
7047
7048         * exec.c (exec_close_1): Call clear_section_table instead of
7049         resize_section_table.
7050         (clear_section_table): New function.
7051         (resize_section_table): Make static.  Rename arg num_added to
7052         adjustment.
7053         * exec.h (clear_section_table): Declare.
7054         (resize_section_table): Delete.
7055         * progspace.c (release_program_space): Call clear_section_table
7056         instead of resize_section_table.
7057
7058 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
7059
7060         * NEWS (Python Scripting): Add entry about the new xmethods
7061         feature.
7062
7063 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
7064
7065         * python/py-xmethods.c: New file.
7066         * python/py-objfile.c (objfile_object): New field 'xmethods'.
7067         (objfpy_dealloc): XDECREF on the new xmethods field.
7068         (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7069         field.
7070         (objfpy_get_xmethods): New function.
7071         (objfile_getset): New entry 'xmethods'.
7072         * python/py-progspace.c (pspace_object): New field 'xmethods'.
7073         (pspy_dealloc): XDECREF on the new xmethods field.
7074         (pspy_new, pspace_to_pspace_object): Initialize xmethods
7075         field.
7076         (pspy_get_xmethods): New function.
7077         (pspace_getset): New entry 'xmethods'.
7078         * python/python-internal.h: Add declarations for new functions.
7079         * python/python.c (_initialize_python): Invoke
7080         gdbpy_initialize_xmethods.
7081         * python/lib/gdb/__init__.py (xmethods): New
7082         attribute.
7083         * python/lib/gdb/xmethod.py: New file.
7084         * python/lib/gdb/command/xmethods.py: New file.
7085
7086 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
7087
7088         * eval.c (evaluate_subexp_standard): Call the xmethod if the
7089         best match method returned by find_overload_match is an xmethod.
7090         * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7091         the best matching operator returned by find_overload_match is an
7092         xmethod.
7093         * valops.c: #include "extension.h".
7094         (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7095         Return void.  The list of matching source methods is returned in
7096         "fn_list" and a vector of matching debug method workers is
7097         returned in "xm_worker_vec".  Update all callers.
7098         (value_find_oload_method_list): Likewise.
7099         (find_oload_champ): Add "xm_worker_vec" parameter.  If it is
7100         non-NULL, then the index of the best matching method in this
7101         vector is returned.  Update all callers.
7102         (find_overload_match): Include xmethods while performing overload
7103         resolution.
7104
7105 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
7106
7107         * defs.h (enum lval_type): New enumerator "lval_xcallable".
7108         * extension-priv.h (struct extension_language_ops): Add the
7109         xmethod interface.
7110         * extension.c (new_xmethod_worker, clone_xmethod_worker,
7111         get_matching_xmethod_workers, get_xmethod_argtypes,
7112         invoke_xmethod, free_xmethod_worker,
7113         free_xmethod_worker_vec): New functions.
7114         * extension.h: #include "common/vec.h".
7115         New function declarations.
7116         (struct xmethod_worker): New struct.
7117         (VEC (xmethod_worker_ptr)): New vector type.
7118         (xmethod_worker_ptr): New typedef.
7119         (xmethod_worker_vec): Likewise.
7120         * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7121         builtin_type.
7122         * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7123         (struct builtin_type): New field "xmethod".
7124         * valarith.c (value_ptradd): Assert that the value argument is not
7125         lval_xcallable.
7126         * valops.c (value_must_coerce_to_target): Return 0 for
7127         lval_xcallable values.
7128         * value.c (struct value): New field XM_WORKER in the field
7129         LOCATION.
7130         (value_address, value_raw_address): Return 0 for lval_xcallable
7131         values.
7132         (set_value_address): Assert that the value is not an
7133         lval_xcallable.
7134         (value_free): Free the associated xmethod worker when freeing
7135         lval_xcallable values.
7136         (set_value_component_location): Assert that the WHOLE value is not
7137         lval_xcallable.
7138         (value_of_xmethod, call_xmethod): New functions.
7139         * value.h: Declare "struct xmethod_worker".
7140         Declare new functions value_of_xmethod, call_xmethod.
7141
7142 2014-06-03  Joel Brobecker  <brobecker@adacore.com>
7143             Pedro Alves  <palves@redhat.com>
7144
7145         PR breakpoints/17000
7146         * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7147         New function, extracted from software_breakpoint_inserted_here_p.
7148         (software_breakpoint_inserted_here_p): Replace factored out code
7149         by call to find_non_raw_software_breakpoint_inserted_here.
7150         (bp_target_info_copy_insertion_state): New function.
7151         (bkpt_insert_location): Handle the case of a single-step
7152         breakpoint already inserted at the same address.
7153         (bkpt_remove_location): Handle the case of a single-step
7154         breakpoint still inserted at the same address.
7155         (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7156         breakpoint already inserted at the same address.
7157         (deprecated_remove_raw_breakpoint): Handle the case of a
7158         non-raw breakpoint still inserted at the same address.
7159         (find_single_step_breakpoint): New function, extracted from
7160         single_step_breakpoint_inserted_here_p.
7161         (find_single_step_breakpoint): New function,
7162         factored out from single_step_breakpoint_inserted_here_p.
7163         (single_step_breakpoint_inserted_here_p): Reimplement.
7164
7165 2014-06-03  Brad Mouring  <bmouring@ni.com>  (tiny patch)
7166
7167         Pushed by Joel Brobecker  <brobecker@adacore.com>
7168         * source.c (show_substitute_path_command): Fix display of matching
7169         substitution rules.
7170
7171 2014-06-03  Gary Benson  <gbenson@redhat.com>
7172
7173         * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7174
7175 2014-06-02  Doug Evans  <xdje42@gmail.com>
7176
7177         Add parameter support for Guile.
7178         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7179         (SUBDIR_GUILE_SRCS): Add scm-param.c.
7180         (scm-param.o): New rule.
7181         * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7182         (gdbscm_misc_error): Declare.
7183         (gdbscm_canonicalize_command_name): Declare.
7184         (gdbscm_scm_to_host_string): Declare.
7185         (gdbscm_scm_from_host_string): Declare.
7186         (gdbscm_initialize_parameters): Declare.
7187         * guile/guile.c (initialize_gdb_module): Call
7188         gdbscm_initialize_parameters.
7189         * guile/lib/gdb.scm: Export parameter symbols.
7190         * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7191         cmdscm_canonicalize_name and made public.  All callers updated.
7192         * guile/scm-exception.c (gdbscm_misc_error): New function.
7193         * guile/scm-param.c: New file.
7194         * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7195         (gdbscm_scm_to_host_string): New function.
7196         (gdbscm_scm_from_host_string): New function.
7197         * scm-utils.c (gdbscm_gc_dup_argv): New function.
7198
7199 2014-06-02  Doug Evans  <xdje42@gmail.com>
7200
7201         Add command support for Guile.
7202         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7203         (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7204         (scm-cmd.o): New rule.
7205         * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7206         (gdbscm_user_error_p): Declare.
7207         (gdbscm_parse_command_name): Declare.
7208         (gdbscm_valid_command_class_p): Declare.
7209         (gdbscm_initialize_commands): Declare.
7210         * guile/guile.c (initialize_gdb_module): Call
7211         gdbscm_initialize_commands.
7212         * guile/lib/gdb.scm: Export command symbols.
7213         * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7214         (throw-user-error): New function.
7215         * guile/scm-cmd.c: New file.
7216         * guile/scm-exception.c (user_error_symbol): New static global.
7217         (gdbscm_user_error_p): New function.
7218         (gdbscm_initialize_exceptions): Set user_error_symbol.
7219         * scm-utils.c (gdbscm_gc_xstrdup): New function.
7220
7221 2014-06-02  Phil Muldoon  <pmuldoon@redhat.com>
7222
7223         * top.c (command_loop): Handle comments here...
7224         (command_line_input): ... not here.
7225
7226 2014-06-02  Doug Evans  <xdje42@gmail.com>
7227
7228         Add progspace support for Guile.
7229         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7230         (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7231         (scm-progspace.o): New rule.
7232         * guile/guile-internal.h (pspace_smob): New typedef.
7233         (psscm_pspace_smob_pretty_printers): Declare.
7234         (psscm_pspace_smob_from_pspace): Declare.
7235         (psscm_scm_from_pspace): Declare.
7236         * guile/guile.c (initialize_gdb_module): Call
7237         gdbscm_initialize_pspaces.
7238         * guile/lib/gdb.scm: Export progspace symbols.
7239         * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7240         support.
7241         (append-pretty-printer!): Ditto.
7242         * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7243         Implement.
7244         * guile/scm-progspace.c: New file.
7245
7246 2014-06-03  Alan Modra  <amodra@gmail.com>
7247
7248         * ppc64-tdep.c (ppc64_standard_linkage8): New.
7249         (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7250
7251 2014-06-02  Doug Evans  <dje@google.com>
7252
7253         Add support for skeletonless type units.
7254         * dwarf2read.c (struct dwarf2_per_objfile): New member
7255         n_allocated_type_units.
7256         (struct dwarf2_per_objfile) <tu_stats>: New member
7257         nr_all_type_units_reallocs.
7258         (create_signatured_type_table_from_index): Initialize
7259         n_allocated_type_units
7260         (create_all_type_units): Ditto.
7261         (add_type_unit): Move up in file.  New arg slot.
7262         All callers updated.  Increase space for all_type_units more
7263         efficiently.
7264         (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7265         (lookup_dwo_signatured_type): Handle skeletonless TUs.
7266         (lookup_dwp_signatured_type): Ditto.
7267         (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7268         All callers updated.
7269         (build_type_psymtabs_1): Leave type_unit_groups as
7270         NULL if no TUs present.
7271         (print_tu_stats): New function.
7272         (process_skeletonless_type_unit): New function.
7273         (process_dwo_file_for_skeletonless_type_units): New
7274         function.
7275         (process_skeletonless_type_units): New function.
7276         (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7277         Call print tu_stats if debugging enabled.
7278
7279 2014-06-02  Pedro Alves  <palves@redhat.com>
7280
7281         * breakpoint.c (build_target_command_list): Don't build a command
7282         list if we have any duplicate location that isn't a dprintf.
7283
7284 2014-06-02  Pedro Alves  <palves@redhat.com>
7285
7286         * breakpoint.c (dprintf_breakpoint_hit): New function.
7287         (initialize_breakpoint_ops): Install it as dprintf's
7288         breakpoint_hit method.
7289
7290 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
7291
7292         * source.c (substitute_path_rule_matches): Simplify using
7293         filename_ncmp instead of FILENAME_CMP.
7294
7295 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
7296
7297         * source.c (substitute_path_rule_matches): Remove trailing spaces.
7298
7299 2014-06-01  Ludovic Courtès  <ludo@gnu.org>
7300
7301         * configure.ac: When Guile is available, check for the
7302         availability of 'scm_new_smob'.
7303         * configure, config.h.in: Regenerate.
7304         * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7305         function.
7306
7307 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
7308
7309         * frame.c (struct frame_info): Add stop_string field.
7310         (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7311         (get_prev_frame_always): Old content moved into
7312         get_prev_frame_always_1.  Call get_prev_frame_always_1 inside
7313         TRY_CATCH, handle MEMORY_ERROR exceptions.
7314         (frame_stop_reason_string): New function definition.
7315         * frame.h (unwind_stop_reason_to_string): Extend comment to
7316         mention frame_stop_reason_string.
7317         (frame_stop_reason_string): New function declaration.
7318         * stack.c (frame_info): Switch to frame_stop_reason_string.
7319         (backtrace_command_1): Switch to frame_stop_reason_string.
7320         * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7321         (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7322         * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7323
7324 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
7325
7326         * frame.c (frame_stop_reason_string): Rename to ...
7327         (unwind_stop_reason_to_string): this.
7328         * frame.h (frame_stop_reason_string): Rename to ...
7329         (unwind_stop_reason_to_string): this.
7330         * stack.c (frame_info): Update call to frame_stop_reason_string.
7331         (backtrace_command_1): Likewise.
7332         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7333         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7334
7335 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
7336
7337         * frame.c (remove_prev_frame): New function.
7338         (get_prev_frame_if_no_cycle): Create / discard cleanup using
7339         remove_prev_frame.
7340
7341 2014-05-29  Pedro Alves  <palves@redhat.com>
7342
7343         * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7344         and make it const.  When a single-step decays to a continue,
7345         clear 'step', not 'hw_step'.  Pass whether the caller wanted
7346         to step to user_visible_resume_ptid, not what we ask the
7347         target to do.
7348
7349 2014-05-29  Pedro Alves  <palves@redhat.com>
7350
7351         * infrun.c (process_event_stop_test, handle_step_into_function)
7352         (handle_step_into_function_backward): Adjust.
7353         Don't set the even thread's stop_step and call stop_waiting before
7354         calling end_stepping_range.  Instead do that ...
7355         (end_stepping_range): ... here.  Take an ecs pointer parameter.
7356
7357 2014-05-29  Pedro Alves  <palves@redhat.com>
7358
7359         * infrun.c (stop_stepping): Rename to ...
7360         (stop_waiting): ... this.
7361         (proceed): Update comment.
7362         (process_event_stop_test, handle_inferior_event)
7363         (handle_signal_stop, handle_step_into_function)
7364         (handle_step_into_function_backward): Update.
7365
7366 2014-05-29  Pedro Alves  <palves@redhat.com>
7367
7368         * infcall.c (run_inferior_call): Don't check whether the current
7369         thread is running after the proceed call.
7370
7371 2014-05-29  Pedro Alves  <palves@redhat.com>
7372             Tom Tromey  <tromey@redhat.com>
7373
7374         * NEWS: Mention "maint set target-async", "set mi-async", and that
7375         background execution commands are now always available.
7376         * target.h (target_async_permitted): Update comment.
7377         * target.c (target_async_permitted, target_async_permitted_1):
7378         Default to 1.
7379         (set_target_async_command): Rename to ...
7380         (maint_set_target_async_command): ... this.
7381         (show_target_async_command): Rename to ...
7382         (maint_show_target_async_command): ... this.
7383         (_initialize_target): Adjust.
7384         * infcmd.c (prepare_execution_command): Make extern.
7385         * inferior.h (prepare_execution_command): Declare.
7386         * infrun.c (set_observer_mode): Leave target async alone.
7387         * mi/mi-interp.c (mi_interpreter_init): Install
7388         mi_on_sync_execution_done as sync_execution_done observer.
7389         (mi_on_sync_execution_done): New function.
7390         (mi_execute_command_input_handler): Don't print the prompt if we
7391         just started a synchronous command with an async target.
7392         (mi_on_resume): Check sync_execution before printing prompt.
7393         * mi/mi-main.h (mi_async_p): Declare.
7394         * mi/mi-main.c: Include gdbcmd.h.
7395         (mi_async_p): New function.
7396         (mi_async, mi_async_1): New globals.
7397         (set_mi_async_command, show_mi_async_command, mi_async): New
7398         functions.
7399         (exec_continue): Call prepare_execution_command.
7400         (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7401         (mi_execute_async_cli_command): Use mi_async_p.
7402         (_initialize_mi_main): Install "set mi-async".  Make
7403         "target-async" a deprecated alias.
7404
7405 2014-05-29  Pedro Alves  <palves@redhat.com>
7406
7407         * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7408         (_initialize_cli_interp): Adjust.
7409         * event-loop.c: Include "observer.h".
7410         (start_event_loop): Notify 'command_error' observers instead of
7411         calling display_gdb_prompt.  Remove FIXME comment.
7412         * event-top.c (display_gdb_prompt): Remove call into the
7413         interpreters.
7414         * inf-loop.c: Include "observer.h".
7415         (inferior_event_handler): Notify 'command_error' observers instead
7416         of calling display_gdb_prompt.
7417         * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7418         observers instead of calling display_gdb_prompt.
7419         * interps.c (interp_set): Don't call display_gdb_prompt.
7420         (current_interp_display_prompt_p): Delete.
7421         * interps.h (interp_prompt_p): Delete declaration.
7422         (interp_prompt_p_ftype): Delete.
7423         (struct interp_procs) <prompt_proc_p>: Delete field.
7424         (current_interp_display_prompt_p): Delete declaration.
7425         * mi-interp.c (mi_interpreter_prompt_p): Delete.
7426         (_initialize_mi_interp): Adjust.
7427         * tui-interp.c (tui_init): Install 'sync_execution_done' and
7428         'command_error' observers.
7429         (tui_on_sync_execution_done, tui_on_command_error): New
7430         functions.
7431         (tui_display_prompt_p): Delete.
7432         (_initialize_tui_interp): Adjust.
7433
7434 2014-05-29  Pedro Alves  <palves@redhat.com>
7435
7436         PR gdb/13860
7437         * cli/cli-interp.c: Include infrun.h and observer.h.
7438         (cli_uiout, cli_interp): New globals.
7439         (cli_on_signal_received, cli_on_end_stepping_range)
7440         (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7441         functions.
7442         (cli_interpreter_init): Install them as 'end_stepping_range',
7443         'signal_received' 'signal_exited', 'exited' and 'no_history'
7444         observers.
7445         (_initialize_cli_interp): Remove cli_interp local.
7446         * infrun.c (handle_inferior_event): Call the several stop reason
7447         observers instead of printing the stop reason directly.
7448         (end_stepping_range): New function.
7449         (print_end_stepping_range_reason, print_signal_exited_reason)
7450         (print_exited_reason, print_signal_received_reason)
7451         (print_no_history_reason): Make static, and add an uiout
7452         parameter.  Print to that instead of to CURRENT_UIOUT.
7453         * infrun.h (print_end_stepping_range_reason)
7454         (print_signal_exited_reason, print_exited_reason)
7455         (print_signal_received_reason print_no_history_reason): New
7456         declarations.
7457         * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7458         'mi_uiout'.
7459         <cli_uiout>: New field.
7460         * mi/mi-interp.c (mi_interpreter_init): Adjust.  Create the new
7461         uiout for CLI output.  Install 'signal_received',
7462         'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7463         observers.
7464         (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7465         (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7466         (mi_on_no_history): New functions.
7467         (ui_out_free_cleanup): Delete function.
7468         (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7469         instead use the one already stored in the MI interpreter data.
7470         (mi_ui_out): Adjust.
7471         * tui/tui-interp.c: Include infrun.h and observer.h.
7472         (tui_interp): New global.
7473         (tui_on_signal_received, tui_on_end_stepping_range)
7474         (tui_on_signal_exited, tui_on_exited)
7475         (tui_on_no_history): New functions.
7476         (tui_init): Install them as 'end_stepping_range',
7477         'signal_received' 'signal_exited', 'exited' and 'no_history'
7478         observers.
7479         (_initialize_tui_interp): Delete tui_interp local.
7480
7481 2014-05-29  Pedro Alves  <palves@redhat.com>
7482
7483         PR gdb/15713
7484         * linux-nat.c (linux_nat_resume_callback): Rename the second
7485         parameter to 'except'.  Skip LP if it points to EXCEPT.
7486         (linux_nat_resume): Don't mark the event lwp as not stopped
7487         before resuming sibling lwps.  Instead ask
7488         linux_nat_resume_callback to skip the event lwp.  Mark it as not
7489         stopped after actually resuming it.
7490         (linux_handle_syscall_trap): Mark the lwp as not stopped after
7491         resuming it.
7492         (wait_lwp): Mark the lwp as stopped here.
7493         (stop_wait_callback): Mark the lwp as not stopped right after
7494         resuming it.  Don't mark lwps as stopped here.
7495         (linux_nat_filter_event): Mark the lwp as stopped earlier.
7496         (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7497
7498 2014-05-29  Pedro Alves  <palves@redhat.com>
7499
7500         PR PR15693
7501         * infrun.c (resume): Determine how much to resume depending on
7502         whether the caller wanted a step, not whether we can hardware step
7503         the target.  Mark all threads that we intend to run as running,
7504         unless we're calling an inferior function.
7505         (normal_stop): If the thread is running an infcall, don't finish
7506         thread state.
7507         * target.c (target_resume): Don't mark threads as running here.
7508
7509 2014-05-28  Joel Brobecker  <brobecker@adacore.com>
7510
7511         * serial.c (_initialize_serial): Remove support for
7512         the "set remotebaud" and "show remotebaud" commands.
7513         * NEWS: Add entry documenting the removal of that command.
7514
7515 2014-05-28  Yao Qi  <yao@codesourcery.com>
7516
7517         * charset.c: Fix typo in comments.
7518
7519 2014-05-27  Gary Benson  <gbenson@redhat.com>
7520
7521         * utils.c (internal_vproblem): Prompt for a bug report.
7522
7523 2014-05-26  Andy Wingo  <wingo@igalia.com>
7524
7525         * guile/scm-arch.c (arscm_mark_arch_smob):
7526         * guile/scm-block.c (bkscm_mark_block_smob)
7527         (bkscm_mark_block_syms_progress_smob):
7528         * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7529         * guile/scm-exception.c (exscm_mark_exception_smob):
7530         * guile/scm-frame.c (frscm_mark_frame_smob):
7531         * guile/scm-iterator.c (itscm_mark_iterator_smob):
7532         * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7533         * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7534         * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7535         (ppscm_mark_pretty_printer_worker_smob):
7536         * guile/scm-symbol.c (syscm_mark_symbol_smob):
7537         * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7538         * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7539         * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7540         mark functions.
7541         * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7542         function.
7543
7544 2014-05-26  Andy Wingo  <wingo@igalia.com>
7545             Doug Evans  <xdje42@gmail.com>
7546
7547         * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7548         empty_base_class.  All uses updated.
7549         (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7550         (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7551         Adapt all callers.
7552         * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7553         (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7554         (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7555         (gdbscm_gsmob_has_property_p, add_property_name)
7556         (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7557         * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7558         (gdb-object-has-property?, gdb-object-properties): Remove.
7559         (gdb-object-kind): Renamed from gsmob-kind.
7560
7561 2014-05-26  Andy Wingo  <wingo@igalia.com>
7562
7563         * configure.ac (try_guile_versions): Allow building with guile 2.2.
7564         * configure: Regenerate.
7565
7566 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
7567
7568         * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7569
7570 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
7571
7572         * record-btrace.c (record_btrace_allow_memory_access): Remove.
7573         (replay_memory_access_read_only, replay_memory_access_read_write)
7574         (replay_memory_access_types, replay_memory_access)
7575         (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7576         (cmd_set_record_btrace, cmd_show_record_btrace)
7577         (cmd_show_replay_memory_access): New.
7578         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7579         (record_btrace_remove_breakpoint): Replace
7580         record_btrace_allow_memory_access with replay_memory_access.
7581         (_initialize_record_btrace): Add commands.
7582         * NEWS: Announce it.
7583
7584 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7585
7586         * aarch64-linux-nat.c (asm/ptrace.h): Include.
7587
7588 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7589
7590         * MAINTAINERS (Write After Approval): Move self back from
7591         paper trail.
7592
7593 2014-05-22  Pedro Alves  <palves@redhat.com>
7594
7595         * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7596         (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7597         (disable_randomization, enum exec_direction_kind)
7598         (execution_direction, stop_registers, start_remote)
7599         (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7600         (wait_for_inferior, normal_stop, get_last_target_status)
7601         (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7602         (insert_step_resume_breakpoint_at_sal)
7603         (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7604         (set_step_info, print_stop_event, signal_stop_state)
7605         (signal_print_state, signal_pass_state, signal_stop_update)
7606         (signal_print_update, signal_pass_update)
7607         (update_signals_program_target, clear_exit_convenience_vars)
7608         (displaced_step_dump_bytes, update_observer_mode)
7609         (signal_catch_update, gdb_signal_from_command): Move
7610         declarations ...
7611         * infrun.h: ... to this new file.
7612         * amd64-tdep.c: Include infrun.h.
7613         * annotate.c: Include infrun.h.
7614         * arch-utils.c: Include infrun.h.
7615         * arm-linux-tdep.c: Include infrun.h.
7616         * arm-tdep.c: Include infrun.h.
7617         * break-catch-sig.c: Include infrun.h.
7618         * breakpoint.c: Include infrun.h.
7619         * common/agent.c: Include infrun.h instead of inferior.h.
7620         * corelow.c: Include infrun.h.
7621         * event-top.c: Include infrun.h.
7622         * go32-nat.c: Include infrun.h.
7623         * i386-tdep.c: Include infrun.h.
7624         * inf-loop.c: Include infrun.h.
7625         * infcall.c: Include infrun.h.
7626         * infcmd.c: Include infrun.h.
7627         * infrun.c: Include infrun.h.
7628         * linux-fork.c: Include infrun.h.
7629         * linux-nat.c: Include infrun.h.
7630         * linux-thread-db.c: Include infrun.h.
7631         * monitor.c: Include infrun.h.
7632         * nto-tdep.c: Include infrun.h.
7633         * procfs.c: Include infrun.h.
7634         * record-btrace.c: Include infrun.h.
7635         * record-full.c: Include infrun.h.
7636         * remote-m32r-sdi.c: Include infrun.h.
7637         * remote-mips.c: Include infrun.h.
7638         * remote-notif.c: Include infrun.h.
7639         * remote-sim.c: Include infrun.h.
7640         * remote.c: Include infrun.h.
7641         * reverse.c: Include infrun.h.
7642         * rs6000-tdep.c: Include infrun.h.
7643         * s390-linux-tdep.c: Include infrun.h.
7644         * solib-irix.c: Include infrun.h.
7645         * solib-osf.c: Include infrun.h.
7646         * solib-svr4.c: Include infrun.h.
7647         * target.c: Include infrun.h.
7648         * top.c: Include infrun.h.
7649         * windows-nat.c: Include infrun.h.
7650         * mi/mi-interp.c: Include infrun.h.
7651         * mi/mi-main.c: Include infrun.h.
7652         * python/py-threadevent.c: Include infrun.h.
7653
7654 2014-05-22  Pedro Alves  <palves@redhat.com>
7655
7656         * infrun.c (handle_inferior_event): Store the exit code for
7657         --return-child-result here, instead of ...
7658         (print_exited_reason): ... here.
7659
7660 2014-05-21  Pedro Alves  <palves@redhat.com>
7661
7662         PR gdb/13860
7663         * gdbthread.h (struct thread_control_state): New field
7664         `command_interp'.
7665         * infrun.c (follow_fork): Copy the new thread control field to the
7666         child fork thread.
7667         (clear_proceed_status_thread): Clear the new thread control field.
7668         (proceed): Set the new thread control field.
7669         * interps.h (command_interp): Declare.
7670         * interps.c (command_interpreter): New global.
7671         (command_interp): New function.
7672         (interp_exec): Set `command_interpreter' while here.
7673         * cli-out.c (cli_uiout_dtor): New function.
7674         (cli_ui_out_impl): Install it.
7675         * mi/mi-interp.c: Include cli-out.h.
7676         (mi_cmd_interpreter_exec): Add comment.
7677         (restore_current_uiout_cleanup): New function.
7678         (ui_out_free_cleanup): New function.
7679         (mi_on_normal_stop): If finishing an execution command started by
7680         a CLI command, or any kind of breakpoint-like event triggered,
7681         print the stop event to the output (CLI) stream.
7682         * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7683
7684 2014-05-21  Pedro Alves  <palves@redhat.com>
7685
7686         * cli/cli-cmds.c (list_command): Handle the first "list" after the
7687         current source line having changed.
7688         * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7689         * infrun.c (normal_stop): Adjust call to
7690         set_current_sal_from_frame.
7691         * source.c (clear_lines_listed_range): New function.
7692         (set_current_source_symtab_and_line, identify_source_line): Clear
7693         the lines listed range.
7694         (line_info): Handle the first "info line" after the current source
7695         line having changed.
7696         * stack.c (print_stack_frame): Remove center handling.
7697         (set_current_sal_from_frame): Remove 'center' parameter.  Don't
7698         center sal.line.
7699
7700 2014-05-21  Pedro Alves  <palves@redhat.com>
7701
7702         * inf-child.c (inf_child_mourn_inferior): New function.
7703         * inf-child.h (inf_child_mourn_inferior): New declaration.
7704         * darwin-nat.c (darwin_mourn_inferior): Use
7705         inf_child_mourn_inferior.
7706         * gnu-nat.c (gnu_mourn_inferior): Likewise.
7707         * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7708         * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7709         * nto-procfs.c (procfs_mourn_inferior): Likewise.
7710         * windows-nat.c (windows_mourn_inferior): Likewise.
7711
7712 2014-05-21  Doug Evans  <xdje42@gmail.com>
7713
7714         * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7715
7716 2014-05-21  Doug Evans  <xdje42@gmail.com>
7717
7718         * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7719         (gdbscm_out_of_range_error): Ditto.
7720         (gdbscm_memory_error): Ditto.
7721         * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7722         * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7723         (gdbscm_out_of_range_error): Update.
7724         (gdbscm_memory_error): Update.
7725         (gdbscm_scm_to_target_string_unsafe): Delete.
7726
7727 2014-05-21  Pedro Alves  <palves@redhat.com>
7728
7729         * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7730         globals.
7731         (inf_child_open_target): New function.
7732         (inf_child_open): Use inf_child_open_target to push the target
7733         instead of erroring out.
7734         (inf_child_disconnect, inf_child_close)
7735         (inf_child_maybe_unpush_target): New functions.
7736         (inf_child_target): Install inf_child_disconnect and
7737         inf_child_close.  Store a pointer to the returned object.
7738         * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7739         declarations.
7740         * target.c (auto_connect_native_target): New global.
7741         (show_default_run_target): New function.
7742         (find_default_run_target): Return NULL if automatically connecting
7743         to the native target is disabled.
7744         (_initialize_target): Install set/show auto-connect-native-target.
7745         * NEWS: Mention "set auto-connect-native-target", and "target
7746         native".
7747         * linux-nat.c (super_close): New global.
7748         (linux_nat_close): Call super_close.
7749         (linux_nat_add_target): Store a pointer to the base class's
7750         to_close method.
7751         * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7752         inf_child_maybe_unpush.
7753         * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7754         already pushed.
7755         (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7756         the inferior.  Use inf_child_maybe_unpush_target.
7757         (inf_ttrace_attach): Don't push the target if it is already
7758         pushed.
7759         (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7760         * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7761         after mourning the inferior.  Use inf_child_maybe_unpush_target.
7762         (darwin_attach_pid): Don't push the target if it is already
7763         pushed.
7764         * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7765         mourning the inferior.  Use inf_child_maybe_unpush_target.
7766         (gnu_detach): Use inf_child_maybe_unpush_target.
7767         * go32-nat.c (go32_create_inferior): Don't push the target if it
7768         is already pushed.
7769         (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7770         * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7771         (procfs_open): Rename to ...
7772         (procfs_open_1): ... this.  Add target_ops parameter.  Adjust
7773         comments.  Can target_preopen before changing node.  Call
7774         inf_child_open_target to push the target explicitly.
7775         (procfs_attach): Don't push the target if it is already pushed.
7776         (procfs_detach): Use inf_child_maybe_unpush_target.
7777         (procfs_create_inferior): Don't push the target if it is already
7778         pushed.
7779         (nto_native_ops): New global.
7780         (procfs_open): Reimplement.
7781         (procfs_native_open): New function.
7782         (init_procfs_targets): Install procfs_native_open as to_open of
7783         "target native".  Store a pointer to the "native" target in
7784         nto_native_ops.
7785         * procfs.c (procfs_attach): Don't push the target if it is already
7786         pushed.
7787         (procfs_detach): Use inf_child_maybe_unpush_target.
7788         (procfs_mourn_inferior): Only unpush the target after mourning the
7789         inferior.  Use inf_child_maybe_unpush_target.
7790         (procfs_init_inferior): Don't push the target if it is already
7791         pushed.
7792         * windows-nat.c (do_initial_windows_stuff): Don't push the target
7793         if it is already pushed.
7794
7795 2014-05-21  Pedro Alves  <palves@redhat.com>
7796
7797         * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7798         and "procfs" targets are now called "native" instead.
7799
7800 2014-05-21  Pedro Alves  <palves@redhat.com>
7801
7802         * go32-nat.c (go32_open): Delete.
7803         (go32_target): Don't override the to_open method.
7804
7805 2014-05-21  Pedro Alves  <palves@redhat.com>
7806
7807         * nto-procfs.c (procfs_can_run): New function.
7808         (nto_procfs_ops): New global.
7809         (init_procfs_targets): New, based on procfs_target.  Install
7810         "target native" in addition to "target procfs".
7811         (_initialize_procfs): Call init_procfs_targets instead of adding
7812         the target here.
7813
7814 2014-05-21  Pedro Alves  <palves@redhat.com>
7815
7816         * windows-nat.c (windows_target): Don't override to_shortname,
7817         to_longname or to_doc.
7818
7819 2014-05-21  Pedro Alves  <palves@redhat.com>
7820
7821         * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7822         to_doc.
7823
7824 2014-05-21  Pedro Alves  <palves@redhat.com>
7825
7826         * darwin-nat.c (_initialize_darwin_inferior): Don't override
7827         to_shortname, to_longname or to_doc.
7828
7829 2014-05-21  Pedro Alves  <palves@redhat.com>
7830
7831         * go32-nat.c (go32_target): Don't override to_shortname,
7832         to_longname or to_doc.
7833
7834 2014-05-21  Pedro Alves  <palves@redhat.com>
7835
7836         * inf-child.c (inf_child_open): Remove mention of "child".
7837         (inf_child_target): Rename target to "native" instead of "child".
7838
7839 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7840
7841         * Makefile.in (SFILES): Delete "regset.c".
7842         (COMMON_OBS): Delete "regset.o".
7843         * regset.c: Remove.
7844         * regset.h (regset_alloc): Delete prototype.
7845
7846 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7847
7848         * sparc-linux-tdep.c (sparc32_linux_gregset)
7849         (sparc32_linux_fpregset): New static regset structures.
7850         (sparc32_linux_init_abi): Drop dynamic regset allocations.
7851         * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7852         'fpregset' fields.
7853         * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7854         (sparc64_linux_fpregset): New static regset structures.
7855         (sparc64_linux_init_abi): Drop dynamic regset allocations.
7856         * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7857         New static regset structures.
7858         (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7859         * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7860         New static regset structures.
7861         (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7862         * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7863         New static regset structures.
7864         (sparc64obsd_init_abi): Drop dynamic regset allocations.
7865         * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7866         New static regset structures.
7867         (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7868
7869 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7870
7871         * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7872         (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7873         register maps ("regmaps") from "*regset" to "*regmap".  Do this
7874         for all regmap types and variables.
7875         * sparc-linux-tdep.c (sparc32_linux_step_trap)
7876         (sparc32_linux_supply_core_gregset)
7877         (sparc32_linux_collect_core_gregset)
7878         (sparc32_linux_supply_core_fpregset)
7879         (sparc32_linux_collect_core_fpregset): Likewise.
7880         * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7881         (sparc_gregmap, sparc_fpregmap): ... these.
7882         (sparc_supply_gregset, sparc_collect_gregset)
7883         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7884         (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7885         (_initialize_sparc_nat): Rename regmaps.
7886         * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7887         (sparc_gregmap, sparc_fpregmap): ... these.
7888         (sparc_supply_gregset, sparc_collect_gregset)
7889         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7890         * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7891         Rename macros to...
7892         (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7893         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7894         Likewise.
7895         * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7896         Rename to...
7897         (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7898         * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7899         (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7900         regmaps.
7901         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7902         (sparc32_bsd_fpregset): Rename to...
7903         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7904         (sparc32_bsd_fpregmap): ... these.
7905         * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7906         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7907         (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7908         (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7909         (struct sparc_gregmap, struct sparc_fpregmap)
7910         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7911         (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7912         (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7913         (sparc32_supply_regset, sparc32_collect_gregset)
7914         (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7915         prototypes.
7916         * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7917         (sparc64_linux_ptrace_gregmap): ... this.
7918         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7919         (_initialize_sparc64_linux_nat): Rename regmaps.
7920         * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7921         (sparc64_linux_core_gregmap): ... this.
7922         (sparc64_linux_supply_core_gregset)
7923         (sparc64_linux_collect_core_gregset)
7924         (sparc64_linux_supply_core_fpregset)
7925         (sparc64_linux_collect_core_fpregset): Rename regmaps.
7926         * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7927         (sparc64_sol2_fpregset): Rename to...
7928         (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7929         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7930         (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7931         regmaps.
7932         * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7933         (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7934         (sparc64_bsd_fpregset): Rename to...
7935         (struct sparc_gregmap, sparc64_sol2_gregmap)
7936         (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7937         (sparc64_bsd_fpregmap): ... these.
7938         (sparc64_supply_gregset, sparc64_collect_gregset)
7939         (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7940         prototypes.
7941         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7942         * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7943         (sparc64fbsd_gregmap): ... this.
7944         (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7945         (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7946         Rename regmaps.
7947         * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7948         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7949         (sparc64nbsd_collect_fpregset): Likewise.
7950         * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7951         (sparc64nbsd_gregmap): ... this.
7952         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7953         regmaps.
7954         * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7955         * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7956         (sparc64obsd_gregmap): ... this.
7957         (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7958         regmaps.
7959         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7960         * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7961         (sparc32nbsd_gregmap): ... this.
7962         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7963         regmaps.
7964
7965 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7966
7967         * score-tdep.c (score7_linux_gregset): New static regset
7968         structure.
7969         (score7_linux_regset_from_core_section): Remove dynamic regset
7970         allocation.
7971         (score_gdbarch_init): Drop allocation of tdep structure.
7972         * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7973
7974 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7975
7976         * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7977         regset structures.
7978         (am33_regset_from_core_section): Remove dynamic regset
7979         allocations.
7980
7981 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7982
7983         * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7984         (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7985         structures.
7986         (mips_linux_regset_from_core_section): Remove dynamic regset
7987         allocations.
7988         * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7989         'gregset64', 'fpregset', and 'fpregset64'.
7990         * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7991         deleted tdep fields.
7992
7993 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7994
7995         * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7996         regset structures.
7997         (amd64_regset_from_core_section): Remove dynamic regset
7998         allocations.
7999         * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8000         structure.
8001         (amd64obsd_regset_from_core_section): Remove dynamic regset
8002         allocation.
8003         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8004         Likewise.
8005         * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8006         x86-common regset supply function.
8007         * i386-tdep.c (i386_collect_gregset): Make static.
8008         (i386_gregset): New global regset structure.
8009         (i386_fpregset, i386_xstateregset): New static regset structures.
8010         (i386_regset_from_core_section): Remove dynamic regset
8011         allocations.
8012         (i386_gdbarch_init): Remove initialization of tdep fields
8013         'gregset', 'fpregset', and 'xstateregset'.
8014         * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8015         'fpregset', and 'xstateregset'.
8016         (i386_collect_gregset): Remove prototype.
8017         (i386_gregset): New declaration.
8018         * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8019         structure.
8020         (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8021         allocation.
8022
8023 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8024
8025         * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8026         (arm_linux_vfpregset): New static regset structures.
8027         (arm_linux_regset_from_core_section): Remove dynamic allocation of
8028         regset structures.
8029         * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8030         and 'vfpregset' fields.
8031
8032 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8033
8034         * aarch64-linux-tdep.c (aarch64_linux_gregset)
8035         (aarch64_linux_fpregset): New static regset structures.
8036         (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8037         of regset structures.
8038         * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8039         'fpregset' fields.
8040
8041 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8042
8043         * regset.h (struct regset): Remove gdbarch field.
8044         * regset.c (regset_alloc): Drop initialization of gdbarch field.
8045         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8046         * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8047         Likewise.
8048         * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8049         (ppc32_linux_fpregset, ppc32_linux_vrregset)
8050         (ppc32_linux_vsxregset): Likewise.
8051         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8052         via the regcache instead of the regset.
8053         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8054         (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8055         * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8056         * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8057         Likewise.
8058
8059 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8060
8061         * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8062         Constify structures.
8063         * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8064         (alphanbsd_aout_gregset): Likewise.
8065         * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8066         * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8067         Likewise.
8068         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8069         * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8070         Likewise.
8071         * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8072         * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8073         * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8074         * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8075         * m88k-tdep.c (m88k_gregset): Likewise.
8076         * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8077         * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8078         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8079         * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8080         * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8081         * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8082         * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8083         * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8084         * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8085         Likewise.
8086         * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8087         * sh-tdep.h (sh_corefile_gregset): Likewise.
8088         * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8089         * vax-tdep.c (vax_gregset): Likewise.
8090
8091 2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8092
8093         Fix TLS access for -static -pthread.
8094         * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8095         (try_thread_db_load_1): Initialize it.
8096         (thread_db_get_thread_local_address): Call it if LM is zero.
8097         * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8098         * target.h (struct target_ops) (to_get_thread_local_address): Add
8099         load_module_addr comment.
8100
8101 2014-05-21  Pedro Alves  <palves@redhat.com>
8102
8103         * dcache.c (dcache_read_memory_partial): If reading the cache line
8104         fails, fallback to reading just the memory the caller wanted.
8105
8106 2014-05-20  Doug Evans  <dje@google.com>
8107
8108         * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8109         instead of get_current_arch.
8110
8111 2014-05-20  Pedro Alves  <palves@redhat.com>
8112
8113         * NEWS: Mention that compare-sections now works with all targets.
8114
8115         * remote.c (PACKET_qCRC): New enum value.
8116         (remote_verify_memory): Don't send qCRC if the target has no
8117         execution.  Use packet_support/packet_ok.  If the target doesn't
8118         support the qCRC packet, fallback to a deep memory copy.
8119         (compare_sections_command): Say "target image" instead of "remote
8120         executable".
8121         (_initialize_remote): Add PACKET_qCRC to the list of config
8122         packets that have no associated command.  Extend comment.
8123         * target.c (simple_verify_memory, default_verify_memory): New
8124         function.
8125         * target.h (struct target_ops) <to_verify_memory>: Default to
8126         default_verify_memory.
8127         (simple_verify_memory): New declaration.
8128         * target-delegates.c: Regenerate.
8129
8130 2014-05-20  Markus Metzger  <markus.t.metzger@intel.com>
8131
8132         * record-btrace.c (record_btrace_step_thread): Check for empty history.
8133
8134 2014-05-20  Hui Zhu  <hui@codesourcery.com>
8135             Yao Qi  <yao@codesourcery.com>
8136
8137         PR backtrace/16558
8138         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8139         and change address of sp and pc.
8140
8141 2014-05-19  Tom Tromey  <tromey@redhat.com>
8142
8143         * gdbtypes.c (rank_function): Use XNEWVEC.
8144         * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8145
8146 2014-05-19  Doug Evans  <dje@google.com>
8147
8148         * dwarf2read.c (build_type_psymtabs_1): Renamed from
8149         build_type_unit_groups and moved closer to only caller.  Remove
8150         arguments.  All references updated.  Remove outdated .gdb_index
8151         comment.
8152         (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8153         build_type_psymtabs_1.
8154
8155 2014-05-19  Doug Evans  <dje@google.com>
8156
8157         * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8158         n_type_unit_groups, all_type_unit_groups.  All uses removed.
8159         (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8160         (dw2_get_cutu): Renamed from dw2_get_cu.  All callers updated.
8161         (dw2_get_cu): Renamed from dw2_get_primary_cu.  All callers updated.
8162         (add_type_unit_group_to_table): Delete.
8163
8164 2014-05-19  Doug Evans  <dje@google.com>
8165
8166         * eval.c (evaluate_subexp_standard): Add some comments.
8167
8168 2014-05-17  Doug Evans  <xdje42@gmail.com>
8169
8170         * progspace.c (remove_program_space): Delete, unused.
8171         * progspace.h (remove_program_space): Ditto.
8172
8173 2014-05-17  Doug Evans  <xdje42@gmail.com>
8174
8175         * inferior.c (prune_inferiors): Fix comment.
8176         (remove_inferior_command): Call prune_program_spaces.
8177
8178 2014-05-16  Doug Evans  <dje@google.com>
8179
8180         New command line option -D.
8181         * NEWS: Mention it.
8182         * main.c (set_gdb_data_directory): New function.
8183         (captured_main): Recognize -D.  Flag error for --data-directory "".
8184         Call set_gdb_data_directory.
8185         (print_gdb_help): Print --data-directory, -D.
8186         * main.h (set_gdb_data_directory): Declare.
8187         * top.c (staged_gdb_datadir): New static global.
8188         (set_gdb_datadir): Call set_gdb_data_directory
8189         (show_gdb_datadir): New function.
8190         (init_main): Update init of data-directory parameter.
8191
8192 2014-05-16  Gregory Fong  <gregory.0xf0@gmail.com>
8193
8194         Import the "dirfd" gnulib module.
8195         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8196         * gnulib/aclocal.m4: Update.
8197         * gnulib/config.in: Update.
8198         * gnulib/configure: Update.
8199         * gnulib/import/Makefile.am: Update.
8200         * gnulib/import/Makefile.in: Update.
8201         * gnulib/import/dirfd.c: New.
8202         * gnulib/import/m4/dirfd.m4: New.
8203         * gnulib/import/m4/gnulib-cache.m4: Update.
8204         * gnulib/import/m4/gnulib-comp.m4: Update.
8205
8206 2014-05-16  Pierre Muller  <muller@sourceware.org>
8207             Yao Qi  <yao@codesourcery.com>
8208
8209         * valprint.c (print_wchar): Move the code on checking whether
8210         W is a printable wide char to the default branch of switch
8211         statement below.  Call wchar_printable instead of gdb_iswprint.
8212
8213 2014-05-16  Taimoor Mirza  <tmirza@codesourcery.com>
8214
8215         * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8216         ldr.w and ldrd instructions.
8217
8218 2014-05-15  Doug Evans  <dje@google.com>
8219
8220         * dwarf2read.c (read_structure_type): Delete outdated comments.
8221
8222 2014-05-14  Tom Tromey  <tromey@redhat.com>
8223
8224         * macrocmd.c (print_macro_definition): Reindent.
8225
8226 2014-05-13  Doug Evans  <xdje42@gmail.com>
8227
8228         * python/py-cmd.c (cmdpy_completer): Add comment.
8229         (completers): Make const.
8230
8231 2014-05-13  Simon Marchi  <simon.marchi@ericsson.com>
8232
8233         * infrun.c (resume): Remove should_resume (unused).  Move up
8234         declaration of resume_ptid.
8235
8236 2014-05-13  Tom Tromey  <tromey@redhat.com>
8237
8238         * language.h (unop_type_check): Remove.
8239         (binop_type_check): Don't declare.
8240
8241 2014-05-13  Andreas Arnez  <arnez@vnet.linux.ibm.com>
8242
8243         * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8244         call to regcache_raw_collect.
8245
8246 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
8247
8248         * mi/mi-console.c (mi_console_raw_packet): Use the value from
8249         mi_console->quote as the quoting character.
8250
8251 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
8252
8253         * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8254
8255 2014-04-29  Tom Tromey  <tromey@redhat.com>
8256
8257         * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8258         "show debug varobj".
8259
8260 2014-05-07  Kyle McMartin  <kyle@redhat.com>
8261
8262         Pushed by Joel Brobecker  <brobecker@adacore.com>.
8263         * aarch64-tdep.c (aarch64_software_single_step): New function.
8264         (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8265         with aarch64_software_single_step.
8266
8267 2014-05-05  Joel Brobecker  <brobecker@adacore.com>
8268
8269         GDB 7.7.1 released.
8270
8271 2014-05-05  Keith Seitz  <keiths@redhat.com>
8272
8273         * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8274         variable or history value is successfully parsed.
8275
8276 2014-05-05  Yao Qi  <yao@codesourcery.com>
8277             Pedro Alves  <palves@redhat.com>
8278
8279         * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8280         address of blocks that intersects the requested range.  Trim
8281         LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8282         sections.
8283         * ctf.c (ctf_xfer_partial): Likewise.
8284
8285 2014-05-05  Yao Qi  <yao@codesourcery.com>
8286
8287         * printcmd.c (display_command): Remove the check to
8288         target_has_execution.
8289
8290 2014-05-03  Mark Kettenis  <kettenis@gnu.org>
8291
8292         * ppcobsd-nat.c: Include "obsd-nat.h".
8293         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8294         add_target.
8295         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8296
8297 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
8298
8299         * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8300         and 16-bit signed and unsigned arguments.  Update comment.
8301         (stap_parse_probe_arguments): Extend code to handle such
8302         arguments.  Use warning instead of complaint to notify about
8303         unrecognized bitness.
8304
8305 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
8306
8307         PR breakpoints/16889
8308         * stap-probe.c (stap_parse_probe_arguments): Simplify
8309         check for non-prefixed probes (i.e., probes whose
8310         arguments do not start with "N@").  Always set the
8311         argument type to a sane value.
8312
8313 2014-05-01  David Taylor  <dtaylor@emc.com>
8314
8315         * remote.c (compare_sections_command): Add -r option to compare
8316         all loadable read-only sections.
8317
8318 2014-04-30  Siva Chandra Reddy  <sivachandra@google.com>
8319
8320         * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8321         dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8322         Update all callers.
8323         * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8324         * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8325         Remove unused CORE_ADDR argument.  Update all callers.
8326
8327 2014-04-29  Pedro Alves  <palves@redhat.com>
8328
8329         * remote.c (struct packet_config) <detect>: Extend comment.
8330         (add_packet_config_cmd): Don't set the config's detect or support
8331         fields here.
8332         (init_all_packet_configs): Also initialize the config's 'detect'
8333         field.
8334         (reset_all_packet_configs_support): New function.
8335         (remote_open_1): Call reset_all_packet_configs_support instead of
8336         init_all_packet_configs.
8337         (_initialize_remote): Initialize all packet configs.  Assert that
8338         all packets have an associated command, except a few known
8339         outliers.
8340
8341 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8342
8343         * dwarf2read.c (read_subrange_type): Handle dynamic
8344         DW_AT_lower_bound attributes.
8345
8346 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8347
8348         * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8349         dynamic bounds before computing its upper bound.
8350         (ada_discrete_type_low_bound): Same as above with the lower bound.
8351
8352 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8353
8354         * dwarf2read.c (is_dynamic_type): Return true for dynamic
8355         range types.  Adjust the array handling implementation to
8356         take advantage of this change.
8357         (resolve_dynamic_range): New function, mostly extracted from
8358         resolve_dynamic_bounds.
8359         (resolve_dynamic_array): New function, mostly extracted from
8360         resolve_dynamic_bounds.
8361         (resolve_dynamic_bounds): Delete.
8362         (resolve_dynamic_type): Reimplement.  Add handling of
8363         TYPE_CODE_RANGE types.
8364
8365 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8366
8367         * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8368         handling of parallel ___XA types.
8369
8370 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8371
8372         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8373         unnecessary second call to static_unwrap_type.
8374
8375 2014-04-27  Hui Zhu  <hui@codesourcery.com>
8376
8377         * stack.c (print_frame_info): Call do_gdb_disassembly with
8378         DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8379
8380 2014-04-26  Doug Evans  <xdje42@gmail.com>
8381
8382         * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8383
8384 2014-04-25  Pedro Alves  <palves@redhat.com>
8385
8386         PR server/16255
8387         * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8388         (linux_ptrace_attach_fail_reason): ... this.  Remove "warning: "
8389         and newline from built string.
8390         * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8391         (linux_ptrace_attach_fail_reason): ... this.
8392         * linux-nat.c (linux_nat_attach): Adjust to use
8393         linux_ptrace_attach_fail_reason.
8394
8395 2014-04-25  Pedro Alves  <palves@redhat.com>
8396
8397         * remote.c (struct remote_state): Remove multi_process_aware,
8398         non_stop_aware, cond_tracepoints, cond_breakpoints,
8399         breakpoint_commands, fast_tracepoints, static_tracepoints,
8400         install_in_trace, disconnected_tracing,
8401         enable_disable_tracepoints, string_tracing, and
8402         augmented_libraries_svr4_read fields.
8403         (remote_multi_process_p): Move further below in the file.
8404         (struct packet_config): Add comments.
8405         (update_packet_config): Delete function.
8406         (show_packet_config_cmd): Use packet_config_support.
8407         (add_packet_config_cmd): Use NULL as set callback.
8408         (packet_ok): "set remote foo-packet"-style commands no longer
8409         change config->supported -- adjust.
8410         (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8411         (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8412         (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8413         (PACKET_QNonStop, PACKET_multiprocess_feature)
8414         (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8415         (PACKET_DisconnectedTracing_feature)
8416         (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8417         (set_remote_protocol_packet_cmd): Delete function.
8418         (packet_config_support, packet_support): New functions.
8419         (set_remote_protocol_Z_packet_cmd): Don't call
8420         update_packet_config.
8421         (remote_query_attached, remote_pass_signals)
8422         (remote_program_signals, remote_threads_info)
8423         (remote_threads_extra_info, remote_start_remote): Use
8424         packet_support.
8425         (remote_start_remote): Use packet_config_support and
8426         packet_support.
8427         (init_all_packet_configs): Set all packets to unknown support,
8428         instead of calling update_packet_config.
8429         (remote_check_symbols): Use packet_support.
8430         (remote_supported_packet): Unconditionally set the packet config's
8431         support status.
8432         (remote_multi_process_feature, remote_non_stop_feature)
8433         (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8434         (remote_breakpoint_commands_feature)
8435         (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8436         (remote_install_in_trace_feature)
8437         (remote_disconnected_tracing_feature)
8438         (remote_enable_disable_tracepoint_feature)
8439         (remote_string_tracing_feature)
8440         (remote_augmented_libraries_svr4_read_feature): Delete functions.
8441         (remote_protocol_features): Adjust to use remote_supported_packet
8442         for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8443         "ConditionalTracepoints", "ConditionalBreakpoints",
8444         "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8445         "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8446         "EnableDisableTracepoints", and "tracenz".
8447         (remote_query_supported): Use packet_support.
8448         (remote_open_1): Adjust.
8449         (extended_remote_attach_1): Use packet_support.  Switch on the
8450         result of packet_ok instead of checking whether the packet ended
8451         up disabled.
8452         (remote_vcont_resume): Use packet_support.
8453         (remote_resume, remote_stop_ns, fetch_register_using_p)
8454         (remote_prepare_to_store, store_register_using_P)
8455         (check_binary_download, remote_write_bytes): Use packet_support.
8456         (remote_vkill): Use packet_support.  Switch on the result of
8457         packet_ok instead of checking whether the packet ended up
8458         disabled.
8459         (extended_remote_supports_disable_randomization): Use
8460         packet_support.
8461         (extended_remote_run): Switch on the result of packet_ok instead
8462         of checking whether the packet ended up disabled.
8463         (remote_insert_breakpoint, remote_remove_breakpoint)
8464         (remote_insert_watchpoint, remote_remove_watchpoint)
8465         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8466         packet_support.
8467         (remote_search_memory): Use packet_config_support.
8468         (remote_get_thread_local_address, remote_get_tib_address)
8469         (remote_hostio_send_command, remote_can_execute_reverse): Use
8470         packet_support.
8471         (remote_supports_cond_tracepoints)
8472         (remote_supports_cond_breakpoints)
8473         (remote_supports_fast_tracepoints)
8474         (remote_supports_static_tracepoints)
8475         (remote_supports_install_in_trace)
8476         (remote_supports_enable_disable_tracepoint)
8477         (remote_supports_string_tracing)
8478         (remote_can_run_breakpoint_commands): Rewrite, checking whether
8479         the packet config says the feature is enabled or disabled.
8480         (remote_download_tracepoint, remote_trace_set_readonly_regions)
8481         (remote_get_trace_status): Use packet_support.
8482         (remote_set_disconnected_tracing): Adjust to check whether the
8483         feature is enabled with packet_support.
8484         (remote_set_trace_buffer_size, remote_use_agent)
8485         (remote_can_use_agent, remote_supports_btrace): Use
8486         packet_support.
8487         (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8488         Use packet_config_support.
8489         (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8490         the packet config says the feature is enabled or disabled.
8491         (set_range_stepping): Use packet_support.
8492
8493 2014-04-25  Tom Tromey  <tromey@redhat.com>
8494
8495         * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8496         argument.
8497
8498 2014-04-24  Sanimir Agovic  <sanimir.agovic@intel.com>
8499
8500         * NEWS: Mention support for C99 variable length arrays.
8501
8502 2014-04-24  Joel Brobecker  <brobecker@adacore.com>
8503
8504         * ada-lang.c (standard_exc): Expand introductory comment.
8505
8506 2014-04-24  Michael Sturm  <michael.sturm@mintel.com>
8507             Walfred Tedeschi  <walfred.tedeschi@intel.com>
8508
8509         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8510         AVX512 registers.
8511         (amd64_linux_read_description): Add code to handle AVX512 xstate
8512         mask and return respective tdesc.
8513         * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8514         and features/i386/x32-avx512-linux.c.
8515         (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8516         (amd64_linux_core_read_description): Add code to handle AVX512
8517         xstate mask and return respective tdesc.
8518         (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8519         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8520         calculation.
8521         (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8522         (tdesc_amd64_avx512_linux): New prototype.
8523         (tdesc_x32_avx512_linux): Likewise.
8524         * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8525         features/i386/x32-avx512.c.
8526         (amd64_ymm_avx512_names): New register names for pseudo
8527         registers YMM16-31.
8528         (amd64_ymmh_avx512_names): New register names for raw registers
8529         YMMH16-31.
8530         (amd64_k_names): New register names for K registers.
8531         (amd64_zmmh_names): New register names for ZMM raw registers.
8532         (amd64_zmm_names): New registers names for ZMM pseudo registers.
8533         (amd64_xmm_avx512_names): New register names for XMM16-31
8534         registers.
8535         (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8536         registers.
8537         (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8538         if feature is present.
8539         (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8540         * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8541         (AMD64_NUM_REGS): Adjust to new number of registers.
8542         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8543         registers supplied via XSTATE by AVX512 registers.
8544         (i386_linux_read_description): Add case for AVX512.
8545         * i386-linux-tdep.c: Include i386-avx512-linux.c.
8546         (i386_linux_gregset_reg_offset): Add AVX512 registers.
8547         (i386_linux_core_read_description): Add case for AVX512.
8548         (i386_linux_init_abi): Install supported register note section
8549         for AVX512.
8550         (_initialize_i386_linux_tdep): Add call to tdesc init function for
8551         AVX512.
8552         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8553         registers to be number of zmm7h + 1.
8554         (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8555         * i386-tdep.c: Include features/i386/i386-avx512.c.
8556         (i386_zmm_names): Add ZMM pseudo register names array.
8557         (i386_zmmh_names): Add ZMM raw register names array.
8558         (i386_k_names): Add K raw register names array.
8559         (num_lower_zmm_regs): Add constant for the number of lower ZMM
8560         registers. AVX512 has 16 more ZMM registers than there are YMM
8561         registers.
8562         (i386_zmmh_regnum_p): Add function to look up register number of
8563         ZMM raw registers.
8564         (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8565         (i386_k_regnum_p): Likewise for K raw registers.
8566         (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8567         registers added by AVX512.
8568         (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8569         registers added by AVX512.
8570         (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8571         added by AVX512.
8572         (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8573         (i386_pseudo_register_name): Add ZMM pseudo registers.
8574         (i386_zmm_type): Construct and return vector registers type for ZMM
8575         registers.
8576         (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8577         ZMM0-31 pseudo registers and K registers.
8578         (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8579         and YMM16-31 registers from register cache.
8580         (i386_pseudo_register_write): Add code to write  K, ZMM and
8581         YMM16-31 registers.
8582         (i386_register_reggroup_p): Add code to include/exclude AVX512
8583         registers in/from respective register groups.
8584         (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8585         registers if feature is present in xcr0.
8586         (i386_gdbarch_init): Add code to initialize AVX512 feature
8587         variables in tdep structure, wire in pseudo registers and call
8588         initialize_tdesc_i386_avx512.
8589         * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8590         variables.
8591         (i386_regnum): Add AVX512 registers.
8592         (I386_SSE_NUM_REGS): New define for number of SSE registers.
8593         (I386_AVX_NUM_REGS): Likewise for AVX registers.
8594         (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8595         (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8596         512 bits wide.
8597         (i386_xmm_avx512_regnum_p): New prototype for register look up.
8598         (i386_ymm_avx512_regnum_p): Likewise.
8599         (i386_k_regnum_p): Likewise.
8600         (i386_zmm_regnum_p): Likewise.
8601         (i386_zmmh_regnum_p): Likewise.
8602         * i387-tdep.c : Update year in copyright notice.
8603         (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8604         XSAVE buffer.
8605         (XSAVE_YMM_AVX512_ADDR): New macro.
8606         (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8607         XSAVE buffer.
8608         (XSAVE_XMM_AVX512_ADDR): New macro.
8609         (xsave_avx512_k_offset): New table for K register offsets in
8610         XSAVE buffer.
8611         (XSAVE_AVX512_K_ADDR): New macro.
8612         (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8613         in XSAVE buffer.
8614         (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8615         (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8616         buffer.
8617         (i387_collect_xsave): Add code to collect AVX512 registers from
8618         XSAVE buffer.
8619         * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8620         of XMM16-31 registers.
8621         (I387_NUM_K_REGS): New define for number of K registers.
8622         (I387_K0_REGNUM): New define for K0 register number.
8623         (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8624         (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8625         (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8626         registers.
8627         (I387_YMM16H_REGNUM): New define for YMM16H register number.
8628         (I387_XMM16_REGNUM): New define for XMM16 register number.
8629         (I387_YMM0_REGNUM): New define for YMM0 register number.
8630         (I387_KEND_REGNUM): New define for last K register number.
8631         (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8632         (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8633         number.
8634         (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8635         number.
8636         * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8637         size.
8638         * features/Makefile: Add AVX512 related files.
8639         * features/i386/32bit-avx512.xml: New file.
8640         * features/i386/64bit-avx512.xml: Likewise.
8641         * features/i386/amd64-avx512-linux.c: Likewise.
8642         * features/i386/amd64-avx512-linux.xml: Likewise.
8643         * features/i386/amd64-avx512.c: Likewise.
8644         * features/i386/amd64-avx512.xml: Likewise.
8645         * features/i386/i386-avx512-linux.c: Likewise.
8646         * features/i386/i386-avx512-linux.xml: Likewise.
8647         * features/i386/i386-avx512.c: Likewise.
8648         * features/i386/i386-avx512.xml: Likewise.
8649         * features/i386/x32-avx512-linux.c: Likewise.
8650         * features/i386/x32-avx512-linux.xml: Likewise.
8651         * features/i386/x32-avx512.c: Likewise.
8652         * features/i386/x32-avx512.xml: Likewise.
8653         * regformats/i386/amd64-avx512-linux.dat: New file.
8654         * regformats/i386/amd64-avx512.dat: Likewise.
8655         * regformats/i386/i386-avx512-linux.dat: Likewise.
8656         * regformats/i386/i386-avx512.dat: Likewise.
8657         * regformats/i386/x32-avx512-linux.dat: Likewise.
8658         * regformats/i386/x32-avx512.dat: Likewise.
8659         * NEWS: Add note about new support for AVX512.
8660
8661
8662 2014-04-23  Pedro Alves  <palves@redhat.com>
8663
8664         * breakpoint.c (insert_bp_location): Tolerate errors if the
8665         breakpoint is set in a user-loaded objfile.
8666         (remove_breakpoint_1): Likewise.  Also tolerate errors if the
8667         location is marked shlib_disabled.  If the breakpoint is set in a
8668         user-loaded objfile is a GDB-side memory breakpoint, validate it
8669         before uninsertion.  (disable_breakpoints_in_freed_objfile): Skip
8670         non-OBJF_USERLOADED objfiles.  Don't clear the location's inserted
8671         flag.
8672         * mem-break.c (memory_validate_breakpoint): New function.
8673         * objfiles.c (userloaded_objfile_contains_address_p): New
8674         function.
8675         * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8676         * target.h (memory_validate_breakpoint): New declaration.
8677
8678 2014-04-23  Pedro Alves  <palves@redhat.com>
8679
8680         * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8681         the breakpoint is set in a shared library, only suppress
8682         errors for software breakpoints, not hardware breakpoints.
8683
8684 2014-04-22  Pedro Alves  <palves@redhat.com>
8685
8686         * infrun.c (schedlock_applies): New function, factored out from
8687         find_thread_needs_step_over.
8688         (find_thread_needs_step_over): Use it.
8689         (switch_back_to_stepped_thread): Always clear trap_expected if the
8690         step over is finished.  Return early if scheduler locking applies.
8691         Look for the stepping thread and a potential step-over thread with
8692         a single loop.
8693         (currently_stepping_or_nexting_callback): Delete.
8694
8695 2014-04-22  Nick Clifton  <nickc@redhat.com>
8696
8697         * NEWS: Mention that ARM sim now supports tracing.
8698
8699 2014-04-22  Yao Qi  <yao@codesourcery.com>
8700
8701         * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8702         to ...
8703         * tracefile.c (tracefile_fetch_registers): ... it.  New
8704         function.
8705         * tracefile.h (tracefile_fetch_registers): Declare.
8706         * ctf.c (ctf_fetch_registers): Remove the bottom.  Call
8707         tracefile_fetch_registers.
8708
8709 2014-04-19  Eli Zaretskii  <eliz@gnu.org>
8710
8711         PR gdb/14018
8712         * windows-nat.c (thread_rec): Don't display a warning when
8713         SuspendThread fails with ERROR_ACCESS_DENIED.  If SuspendThread
8714         fails for any reason, set th->suspended to -1, so that we don't
8715         try to resume such a thread.  Also, don't return NULL in these
8716         cases, to avoid completely ruin the session due to "PC register is
8717         not available" error.
8718         (do_windows_fetch_inferior_registers): Check errors in
8719         GetThreadContext call.
8720         (windows_continue): Accept an additional argument KILLED; if not
8721         zero, ignore errors in the SetThreadContext call, since the
8722         inferior was killed and is shutting down.
8723         (windows_resume, get_windows_debug_event)
8724         (windows_create_inferior, windows_mourn_inferior)
8725         (windows_kill_inferior): All callers of windows_continue changed
8726         to adjust to its new calling sequence.
8727
8728 2014-04-19  Yao Qi  <yao@codesourcery.com>
8729
8730         * ctf.c (ctf_open): Call post_create_inferior.
8731
8732 2014-04-19  Yao Qi  <yao@codesourcery.com>
8733
8734         * ctf.c (handle_id): New static variable.
8735         (ctf_open_dir): Get handle_id from bt_context_add_trace return
8736         value.  Get the declaration of event "register" and get length
8737         of field "contents".
8738
8739 2014-04-19  Yao Qi  <yao@codesourcery.com>
8740
8741         * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8742
8743 2014-04-18  Siva Chandra Reddy  <sivachandra@google.com>
8744
8745         * valops.c (oload_method_static): Remove unnecessary argument
8746         METHOD.  Update all callers.
8747
8748 2014-04-18  Pedro alves  <palves@redhat.com>
8749             Tom Tromey  <tromey@redhat.com>
8750
8751         PR backtrace/15558
8752         * frame.c (get_prev_frame_1): Rename to ...
8753         (get_prev_frame_always): ... this, and make extern.  Adjust.
8754         (skip_artificial_frames): Use get_prev_frame_always.
8755         (frame_unwind_caller_id, frame_pop, get_prev_frame)
8756         (get_frame_unwind_stop_reason): Adjust to rename.
8757         * frame.h (get_prev_frame_always): Declare.
8758         * inline-frame.c: Include frame.h.
8759         (inline_frame_this_id): Use get_prev_frame_always.
8760
8761 2014-04-18  Tristan Gingold  <gingold@adacore.com>
8762
8763         * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8764         code by using bfd_mach_o_get_base_address.
8765
8766 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
8767
8768         * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8769         (spu_ax_pseudo_register_collect): New function.
8770         (spu_ax_pseudo_register_push_stack): Likewise.
8771         (spu_dwarf_reg_to_regnum): Likewise.
8772         (spu_gdbarch_init): Install them.  Append DWARF unwinders.
8773
8774 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
8775
8776         * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8777         Replace FRAME argument with FRAME_ID.
8778         * gdbarch.c, gdbarch.h: Regenerate.
8779         * findvar.c (default_value_from_register): Add GDBARCH argument;
8780         replace FRAME by FRAME_ID.  No longer call get_frame_id.
8781         (value_from_register): Update call to gdbarch_value_from_register.
8782         * value.h (default_value_from_register): Update prototype.
8783         * s390-linux-tdep.c (s390_value_from_register): Update interface
8784         and call to default_value_from_register.
8785         * spu-tdep.c (spu_value_from_register): Likewise.
8786
8787         * findvar.c (address_from_register): Remove TYPE argument.
8788         Do not call value_from_register; use gdbarch_value_from_register
8789         with null_frame_id instead.
8790         * value.h (address_from_register): Update prototype.
8791         * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8792         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8793         address_from_register interface change.
8794
8795 2014-04-17  Yao Qi  <yao@codesourcery.com>
8796
8797         * gdbtypes.h: Update comments to link to types and macros'
8798         definitions.
8799
8800 2014-04-16  Siva Chandra Reddy  <sivachandra@google.com>
8801
8802         * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8803
8804 2014-04-16  Keith Seitz  <keiths@redhat.com>
8805
8806         PR gdb/15827
8807         * dwarf2read.c (skip_one_die): Check that all relative-offset
8808         sibling DIEs fall within range of the current reader's buffer.
8809         (read_partial_die): Likewise.
8810
8811 2014-04-16  Keith Seitz  <keiths@redhat.com>
8812
8813         PR c++/16597
8814         * cp-namespace.c (lookup_symbol_file): If the type name of
8815         `this' is NULL, return immediately.
8816
8817 2014-04-14  Keith Seitz  <keiths@redhat.com>
8818
8819         PR c++/16253
8820         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8821         from symbol_matches_domain in symtab.c. All local callers
8822         of symbol_matches_domain updated.
8823         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8824         search STRUCT_DOMAIN.
8825         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8826         independently.  standard_lookup will do that automatically.
8827         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8828         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8829         (cp_lookup_symbol_in_namespace): Likewise.
8830         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8831         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8832         may return a STRUCT_DOMAIN match.
8833         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8834         * cp-support.c: Include language.h.
8835         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8836         VAR_DOMAIN.
8837         * psymtab.c (match_partial_symbol): Compare the requested
8838         domain with the symbol's domain directly.
8839         (lookup_partial_symbol): Likewise.
8840         * symtab.c (lookup_symbol_in_language): Explain when/why
8841         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8842         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8843         appropriate languages.
8844         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8845         and moved to ada-lang.c
8846         (lookup_block_symbol): Explain that this function only returns
8847         symbol matching the requested DOMAIN.
8848         Compare the requested domain with the symbol's domain directly.
8849         (iterate_over_symbols): Compare the requested domain with the
8850         symbol's domain directly.
8851         * symtab.h (symbol_matches_domain): Remove.
8852
8853 2014-04-14  Tom Tromey  <tromey@redhat.com>
8854
8855         PR c++/15246:
8856         * c-exp.y (type_aggregate_p): New function.
8857         (qualified_name, classify_inner_name): Use it.
8858         * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8859         and TYPE_TARGET_TYPE of an enum type.
8860         * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8861         an enum type.
8862         (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8863         handle TYPE_DECLARED_CLASS.
8864         * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8865         types.
8866         * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8867         * valops.c (enum_constant_from_type): New function.
8868         (value_aggregate_elt): Use it.
8869         * cp-namespace.c (cp_lookup_nested_symbol): Handle
8870         TYPE_CODE_ENUM.
8871
8872 2014-04-14  Tom Tromey  <tromey@redhat.com>
8873
8874         * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8875         (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8876         const.
8877         * value.h (value_aggregate_elt): Update.
8878
8879 2014-04-14  Tom Tromey  <tromey@redhat.com>
8880
8881         * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8882
8883 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8884
8885         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8886         (evaluate_subexp_standard): Pass noside argument.
8887         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8888         if noside equals EVAL_NORMAL. If the subscript yields a vla type
8889         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8890         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8891         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8892
8893 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8894
8895         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8896         points to a constant blob.
8897
8898 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8899
8900         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8901         property and store it as the high bound and flag the range accordingly.
8902         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8903         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8904         * gdbtypes.h (enum range_flags): New enum.
8905         (struct range_bounds): Add flags member.
8906
8907 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8908
8909         * c-typeprint.c (c_type_print_varspec_suffix): Added
8910         check for not yet resolved high bound. If unresolved, print
8911         "variable length" string to the console instead of random
8912         length.
8913
8914 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8915
8916         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8917         value.
8918         (ada_template_to_fixed_record_type_1): Likewise.
8919         (ada_to_fixed_type_1): Likewise.
8920         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8921         (cp_print_value): Likewise.
8922         * d-valprint.c (dynamic_array_type): Likewise.
8923         * findvar.c (address_of_variable): Likewise.
8924         * jv-valprint.c (java_value_print): Likewise.
8925         * valops.c (value_ind): Likewise.
8926         * value.c (coerce_ref): Likewise.
8927
8928 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8929
8930         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8931         value and retrieve the dynamic type size.
8932
8933 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8934
8935         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8936         passed to sizeof is dynamic evaluate the argument to compute the length.
8937
8938 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8939             Joel Brobecker  <brobecker@adacore.com>
8940
8941         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8942         (dwarf2_evaluate_property): New function.
8943         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8944         * dwarf2read.c (attr_to_dynamic_prop): New function.
8945         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8946         attribute.
8947         * gdbtypes.c: Include dwarf2loc.h.
8948         (is_dynamic_type): New function.
8949         (resolve_dynamic_type): New function.
8950         (resolve_dynamic_bounds): New function.
8951         (get_type_length): New function.
8952         (check_typedef): Use get_type_length to compute type length.
8953         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8954         (TYPE_LOW_BOUND_KIND): New macro.
8955         (is_dynamic_type): New function prototype.
8956         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8957         to resolve dynamic properties of the type. Update comment.
8958         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8959
8960 2014-04-14  Richard Henderson  <rth@redhat.com>
8961
8962         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8963
8964 2014-04-12  Siva Chandra Reddy  <sivachandra@google.com>
8965             Doug Evans  <xdje42@gmail.com>
8966
8967         * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8968         dereference TYPE_CODE_REF values.
8969
8970 2014-04-11  Joel Brobecker  <brobecker@adacore.com>
8971
8972         Revert the following changes due to regressions:
8973
8974         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8975         (dwarf2_evaluate_property): New function.
8976         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8977         * dwarf2read.c (attr_to_dynamic_prop): New function.
8978         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8979         attribute.
8980         * gdbtypes.c: Include dwarf2loc.h.
8981         (is_dynamic_type): New function.
8982         (resolve_dynamic_type): New function.
8983         (resolve_dynamic_bounds): New function.
8984         (get_type_length): New function.
8985         (check_typedef): Use get_type_length to compute type length.
8986         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8987         (TYPE_LOW_BOUND_KIND): New macro.
8988         (is_dynamic_type): New function prototype.
8989         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8990         to resolve dynamic properties of the type. Update comment.
8991         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8992
8993         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8994         passed to sizeof is dynamic evaluate the argument to compute the length.
8995
8996         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8997         value and retrieve the dynamic type size.
8998
8999         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9000         (ada_template_to_fixed_record_type_1): Likewise.
9001         (ada_to_fixed_type_1): Likewise.
9002         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9003         (cp_print_value): Likewise.
9004         * d-valprint.c (dynamic_array_type): Likewise.
9005         * eval.c (evaluate_subexp_with_coercion): Likewise.
9006         * findvar.c (address_of_variable): Likewise.
9007         * jv-valprint.c (java_value_print): Likewise.
9008         * valops.c (value_ind): Likewise.
9009         * value.c (coerce_ref): Likewise.
9010
9011         * c-typeprint.c (c_type_print_varspec_suffix): Added
9012         check for not yet resolved high bound. If unresolved, print
9013         "variable length" string to the console instead of random
9014         length.
9015
9016         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9017         property and store it as the high bound and flag the range accordingly.
9018         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9019         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9020         * gdbtypes.h (enum range_flags): New enum.
9021         (struct range_bounds): Add flags member.
9022
9023         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9024         points to a constant blob.
9025
9026         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9027         (evaluate_subexp_standard): Pass noside argument.
9028         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9029         if noside equals EVAL_NORMAL. If the subscript yields a vla type
9030         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9031         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9032         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9033
9034 2014-04-11  Keith Seitz  <keiths@redhat.com>
9035
9036         PR c++/16675
9037         * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9038         * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9039         reference types.
9040
9041 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9042
9043         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9044         (evaluate_subexp_standard): Pass noside argument.
9045         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9046         if noside equals EVAL_NORMAL. If the subscript yields a vla type
9047         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9048         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9049         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9050
9051 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9052
9053         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9054         points to a constant blob.
9055
9056 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9057
9058         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9059         property and store it as the high bound and flag the range accordingly.
9060         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9061         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9062         * gdbtypes.h (enum range_flags): New enum.
9063         (struct range_bounds): Add flags member.
9064
9065 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9066
9067         * c-typeprint.c (c_type_print_varspec_suffix): Added
9068         check for not yet resolved high bound. If unresolved, print
9069         "variable length" string to the console instead of random
9070         length.
9071
9072 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9073
9074         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9075         (ada_template_to_fixed_record_type_1): Likewise.
9076         (ada_to_fixed_type_1): Likewise.
9077         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9078         (cp_print_value): Likewise.
9079         * d-valprint.c (dynamic_array_type): Likewise.
9080         * eval.c (evaluate_subexp_with_coercion): Likewise.
9081         * findvar.c (address_of_variable): Likewise.
9082         * jv-valprint.c (java_value_print): Likewise.
9083         * valops.c (value_ind): Likewise.
9084         * value.c (coerce_ref): Likewise.
9085
9086 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9087
9088         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9089         value and retrieve the dynamic type size.
9090
9091 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9092
9093         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9094         passed to sizeof is dynamic evaluate the argument to compute the length.
9095
9096 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9097
9098         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9099         (dwarf2_evaluate_property): New function.
9100         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9101         * dwarf2read.c (attr_to_dynamic_prop): New function.
9102         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9103         attribute.
9104         * gdbtypes.c: Include dwarf2loc.h.
9105         (is_dynamic_type): New function.
9106         (resolve_dynamic_type): New function.
9107         (resolve_dynamic_bounds): New function.
9108         (get_type_length): New function.
9109         (check_typedef): Use get_type_length to compute type length.
9110         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9111         (TYPE_LOW_BOUND_KIND): New macro.
9112         (is_dynamic_type): New function prototype.
9113         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9114         to resolve dynamic properties of the type. Update comment.
9115         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9116
9117 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9118
9119         * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9120         declaring high/low bounds and change uses accordingly. Call
9121         create_range_type instead of create_static_range_type.
9122         * gdbtypes.c (create_range_type): New function.
9123         (create_range_type): Convert bounds into struct bound_prop and pass
9124         them to create_range_type.
9125         * gdbtypes.h (struct bound_prop): New struct.
9126         (create_range_type): New function prototype.
9127         (struct range_bounds): Use struct bound_prop instead of LONGEST for
9128         high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9129         (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9130         part of the bound.
9131         * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9132
9133 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9134
9135         * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9136         * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9137         * ada-lang.c: All uses of create_range_type updated.
9138         * coffread.c: All uses of create_range_type updated.
9139         * dwarf2read.c: All uses of create_range_type updated.
9140         * f-exp.y: All uses of create_range_type updated.
9141         * m2-valprint.c: All uses of create_range_type updated.
9142         * mdebugread.c: All uses of create_range_type updated.
9143         * stabsread.c: All uses of create_range_type updated.
9144         * valops.c: All uses of create_range_type updated.
9145         * valprint.c: All uses of create_range_type updated.
9146
9147 2014-04-10  Pedro Alves  <palves@redhat.com>
9148
9149         * breakpoint.c (single_step_breakpoints)
9150         (single_step_gdbarch): Move up in the file.
9151         (one_breakpoint_xfer_memory): New function, factored out from ...
9152         (breakpoint_xfer_memory): ... here.  Also process single-step
9153         breakpoints.
9154
9155 2014-04-09  Tristan Gingold  <gingold@adacore.com>
9156
9157         * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9158         comments.
9159         (darwin_decode_exception_message): Free port only after use.
9160
9161 2014-04-08  Pierre Langlois  <pierre.langlois@embecosm.com>
9162
9163         * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9164         (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9165         when setting the size of call_length.
9166
9167 2014-04-07  Siva Chandra Reddy  <sivachandra@google.com>
9168
9169         * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9170         dereference TYPE_CODE_REF values.
9171
9172 2014-04-07  Joel Brobecker  <brobecker@adacore.com>
9173
9174         * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9175         end of warning message.
9176
9177 2014-04-03  Doug Evans  <dje@google.com>
9178
9179         * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9180         of stub_comp_unit_die, stub_comp_dir is non-NULL.
9181
9182 2014-04-02  Alan Modra  <amodra@gmail.com>
9183
9184         * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9185         Pass to bfd_elf_bfd_from_remote_memory.  Adjust all callers.
9186         (struct symbol_file_add_from_memory_args): Add size field.
9187         (find_vdso_size): New function.
9188         (add_vsyscall_page): Attempt to find vdso size.
9189
9190 2014-04-01  Doug Evans  <dje@google.com>
9191
9192         * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9193
9194 2014-04-01  Tristan Gingold  <gingold@adacore.com>
9195
9196         * darwin-nat.c (darwin_encode_reply): Add prototype.
9197         (darwin_decode_exception_message): Reply to unknown inferiors.
9198         (darwin_decode_message): Handle message by id.  Ignore message
9199         to unknown inferior.
9200         (darwin_wait): Discard unknown messages, add debug trace.
9201
9202 2014-03-31  Doug Evans  <dje@google.com>
9203
9204         * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9205         comp_dir_string.
9206
9207 2014-03-31  Doug Evans  <dje@google.com>
9208
9209         New option "set print symbol-loading".
9210         * NEWS: Mention it.
9211         * solib.c (solib_read_symbols): Only print symbol loading messages
9212         if requested.
9213         (solib_add): If symbol loading is in "brief" mode, notify user
9214         symbols are being loaded.
9215         (reload_shared_libraries_1): Ditto.
9216         * symfile.c (print_symbol_loading_off): New static global.
9217         (print_symbol_loading_brief): New static global.
9218         (print_symbol_loading_full): New static global.
9219         (print_symbol_loading_enums): New static global.
9220         (print_symbol_loading): New static global.
9221         (print_symbol_loading_p): New function.
9222         (symbol_file_add_with_addrs): Only print symbol loading messages
9223         if requested.
9224         (_initialize_symfile): Register "print symbol-loading" set/show
9225         command.
9226         * symfile.h (print_symbol_loading_p): Declare.
9227
9228 2014-03-30  Doug Evans  <xdje42@gmail.com>
9229
9230         * infrun.c (set_last_target_status): New function.
9231         (handle_inferior_event): Call it.
9232
9233 2014-03-30  Doug Evans  <xdje42@gmail.com>
9234
9235         * inferior.h (enum stop_kind): Improve comment.
9236
9237 2014-03-28  Joel Brobecker  <brobecker@adacore.com>
9238
9239         * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9240         a reference, strip the reference layer before calling
9241         the lang_ops value_has_mutated callback.
9242
9243 2014-03-27  Sergio Durigan Junior  <sergiodj@redhat.com>
9244
9245         Remove some globals from our parser.
9246         * language.c (unk_lang_parser): Add "struct parser_state"
9247         argument.
9248         * language.h (struct language_defn) <la_parser>: Likewise.
9249         * parse.c (expout, expout_size, expout_ptr): Remove variables.
9250         (initialize_expout): Add "struct parser_state" argument.
9251         Rewrite function to use the parser state.
9252         (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9253         write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9254         write_exp_elt_longcst, write_exp_elt_dblcst,
9255         write_exp_elt_decfloatcst, write_exp_elt_type,
9256         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9257         write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9258         write_dollar_variable): Likewise.
9259         (parse_exp_in_context_1): Use parser state.
9260         (insert_type_address_space): Add "struct parser_state" argument.
9261         Use parser state.
9262         (increase_expout_size): New function.
9263         * parser-defs.h: Forward declare "struct language_defn" and
9264         "struct parser_state".
9265         (expout, expout_size, expout_ptr): Remove extern declarations.
9266         (parse_gdbarch, parse_language): Rewrite macro declarations to
9267         accept the parser state.
9268         (struct parser_state): New struct.
9269         (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9270         write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9271         write_exp_elt_decfloatcst, write_exp_elt_type,
9272         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9273         write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9274         write_exp_msymbol, write_dollar_variable,
9275         mark_struct_expression, insert_type_address_space): Add "struct
9276         parser_state" argument.
9277         (increase_expout_size): New function.
9278         * utils.c (do_clear_parser_state): New function.
9279         (make_cleanup_clear_parser_state): Likewise.
9280         * utils.h (make_cleanup_clear_parser_state): New function
9281         prototype.
9282         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9283         Update calls to write_exp* in order to pass the parser state.
9284         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9285         * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9286         (i386_stap_parse_special_token_three_arg_disp): Likewise.
9287         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9288         * stap-probe.c (stap_parse_register_operand): Likewise.
9289         (stap_parse_single_operand): Likewise.
9290         (stap_parse_argument_1): Likewise.
9291         (stap_parse_argument): Use parser state.
9292         * stap-probe.h: Include "parser-defs.h".
9293         (struct stap_parse_info) <pstate>: New field.
9294         * c-exp.y (parse_type): Rewrite to use parser state.
9295         (yyparse): Redefine to c_parse_internal.
9296         (pstate): New global variable.
9297         (parse_number): Add "struct parser_state" argument.
9298         (write_destructor_name): Likewise.
9299         (type_exp): Update calls to write_exp* and similars in order to
9300         use parser state.
9301         (exp1, exp, variable, qualified_name, space_identifier,
9302         typename, typebase): Likewise.
9303         (write_destructor_name, parse_number, lex_one_token,
9304         classify_name, classify_inner_name, c_parse): Add "struct
9305         parser_state" argument.  Update function to use parser state.
9306         * c-lang.h: Forward declare "struct parser_state".
9307         (c_parse): Add "struct parser_state" argument.
9308         * ada-exp.y (parse_type): Rewrite macro to use parser state.
9309         (yyparse): Redefine macro to ada_parse_internal.
9310         (pstate): New variable.
9311         (write_int, write_object_renaming, write_var_or_type,
9312         write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9313         type_int, type_long, type_long_long, type_float, type_double,
9314         type_long_double, type_char, type_boolean, type_system_address):
9315         Add "struct parser_state" argument.
9316         (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9317         or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9318         var_or_type, aggregate, aggregate_component_list,
9319         positional_list, others, component_group,
9320         component_associations): Update calls to write_exp* and similar
9321         functions in order to use parser state.
9322         (ada_parse, write_var_from_sym, write_int,
9323         write_exp_op_with_string, write_object_renaming,
9324         find_primitive_type, write_selectors, write_ambiguous_var,
9325         write_var_or_type, write_name_assoc, type_int, type_long,
9326         type_long_long, type_float, type_double, type_long_double,
9327         type_char, type_boolean, type_system_address): Add "struct
9328         parser_state" argument.  Adjust function to use parser state.
9329         * ada-lang.c (parse): Likewise.
9330         * ada-lang.h: Forward declare "struct parser_state".
9331         (ada_parse): Add "struct parser_state" argument.
9332         * ada-lex.l (processInt, processReal): Likewise.  Adjust all
9333         calls to both functions.
9334         * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9335         parser state.
9336         (yyparse): Redefine macro to f_parse_internal.
9337         (pstate): New variable.
9338         (parse_number): Add "struct parser_state" argument.
9339         (type_exp, exp, subrange, typebase): Update calls to write_exp*
9340         and similars in order to use parser state.
9341         (parse_number): Adjust code to use parser state.
9342         (yylex): Likewise.
9343         (f_parse): New function.
9344         * f-lang.h: Forward declare "struct parser_state".
9345         (f_parse): Add "struct parser_state" argument.
9346         * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9347         parser state.
9348         (yyparse): Redefine macro for java_parse_internal.
9349         (pstate): New variable.
9350         (push_expression_name, push_expression_name, insert_exp): Add
9351         "struct parser_state" argument.
9352         (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9353         FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9354         FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9355         PostIncrementExpression, PostDecrementExpression,
9356         UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9357         UnaryExpressionNotPlusMinus, CastExpression,
9358         MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9359         RelationalExpression, EqualityExpression, AndExpression,
9360         ExclusiveOrExpression, InclusiveOrExpression,
9361         ConditionalAndExpression, ConditionalOrExpression,
9362         ConditionalExpression, Assignment, LeftHandSide): Update
9363         calls to write_exp* and similars in order to use parser state.
9364         (parse_number): Ajust code to use parser state.
9365         (yylex): Likewise.
9366         (java_parse): New function.
9367         (push_variable): Add "struct parser_state" argument.  Adjust
9368         code to user parser state.
9369         (push_fieldnames, push_qualified_expression_name,
9370         push_expression_name, insert_exp): Likewise.
9371         * jv-lang.h: Forward declare "struct parser_state".
9372         (java_parse): Add "struct parser_state" argument.
9373         * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9374         parser state.
9375         (yyparse): Redefine macro to m2_parse_internal.
9376         (pstate): New variable.
9377         (type_exp, exp, fblock, variable, type): Update calls to
9378         write_exp* and similars to use parser state.
9379         (yylex): Likewise.
9380         (m2_parse): New function.
9381         * m2-lang.h: Forward declare "struct parser_state".
9382         (m2_parse): Add "struct parser_state" argument.
9383         * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9384         * objc-lang.h: Forward declare "struct parser_state".
9385         (end_msglist): Add "struct parser_state" argument.
9386         * p-exp.y (parse_type): Rewrite macro to use parser state.
9387         (yyparse): Redefine macro to pascal_parse_internal.
9388         (pstate): New variable.
9389         (parse_number): Add "struct parser_state" argument.
9390         (type_exp, exp1, exp, qualified_name, variable): Update calls to
9391         write_exp* and similars in order to use parser state.
9392         (parse_number, yylex): Adjust code to use parser state.
9393         (pascal_parse): New function.
9394         * p-lang.h: Forward declare "struct parser_state".
9395         (pascal_parse): Add "struct parser_state" argument.
9396         * go-exp.y (parse_type): Rewrite macro to use parser state.
9397         (yyparse): Redefine macro to go_parse_internal.
9398         (pstate): New variable.
9399         (parse_number): Add "struct parser_state" argument.
9400         (type_exp, exp1, exp, variable, type): Update calls to
9401         write_exp* and similars in order to use parser state.
9402         (parse_number, lex_one_token, classify_name, yylex): Adjust code
9403         to use parser state.
9404         (go_parse): Likewise.
9405         * go-lang.h: Forward declare "struct parser_state".
9406         (go_parse): Add "struct parser_state" argument.
9407
9408 2014-03-27  Doug Evans  <dje@google.com>
9409
9410         * dwarf2read.c (read_str_index): Delete arg cu.  All callers updated.
9411
9412 2014-03-27  Doug Evans  <dje@google.com>
9413
9414         * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9415         Remove argument abbrev_section.  All callers updated.
9416
9417 2014-03-27  Doug Evans  <dje@google.com>
9418
9419         * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9420         addr_base, ranges_base.
9421
9422 2014-03-26  Keith Seitz  <keiths@redhat.com>
9423
9424         * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9425         types, not VAR_DOMAIN.
9426
9427 2014-03-25  Sandra Loosemore  <sandra@codesourcery.com>
9428
9429         * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9430         "ra" registers.
9431         * features/nios2-linux.c: Regenerated.
9432         * features/nios2.c: Regenerated.
9433
9434 2014-03-25  Pedro Alves  <palves@redhat.com>
9435
9436         * cli/cli-script.c (script_from_file): Force the interpreter to
9437         sync mode.
9438
9439 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
9440
9441         * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9442         small stack allocation.
9443
9444 2014-03-24  Tristan Gingold  <gingold@adacore.com>
9445
9446         * darwin-nat.c (exc_server): Remove unused prototype.
9447         (darwin_dump_message): Correctly display data on x86_64.
9448         (darwin_encode_reply): Fix style.
9449         Add comments and fix indentation.
9450
9451 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
9452
9453         * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9454
9455 2014-03-22  Doug Evans  <xdje42@gmail.com>
9456
9457         * infcmd.c: Whitespace fixes.
9458         (interrupt_command): Merge two function comments into one.
9459
9460 2014-03-22  Doug Evans  <xdje42@gmail.com>
9461
9462         * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9463         All uses updated.
9464
9465 2014-03-22  Yao Qi  <yao@codesourcery.com>
9466
9467         * remote.c (target_read_live_memory): Remove.
9468         (memory_xfer_live_readonly_partial): Rename it to
9469         remote_xfer_live_readonly_partial.  Remove argument 'object'.
9470         All callers updated.  Call remote_read_bytes_1
9471         instead of target_read_live_memory.
9472         * tracepoint.c (set_traceframe_number): Remove.
9473         (make_cleanup_restore_traceframe_number): Likewise .
9474         * tracepoint.h (set_traceframe_number): Remove declaration.
9475         (make_cleanup_restore_traceframe_number): Likewise.
9476
9477 2014-03-22  Yao Qi  <yao@codesourcery.com>
9478
9479         * remote.c (remote_read_bytes): Move code on reading from the
9480         remote stub to ...
9481         (remote_read_bytes_1): ... here.  New function.
9482
9483 2014-03-22  Yao Qi  <yao@codesourcery.com>
9484
9485         * ctf.c (ctf_xfer_partial): Check the return value of
9486         exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9487         return TARGET_XFER_UNAVAILABLE.
9488         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9489         * target.c (target_read_live_memory): Move it to remote.c.
9490         (memory_xfer_live_readonly_partial): Likewise.
9491         (memory_xfer_partial_1): Move some code to remote_read_bytes.
9492         * remote.c (target_read_live_memory): Moved from target.c.
9493         (memory_xfer_live_readonly_partial): Likewise.
9494         (remote_read_bytes): Factored out from
9495         memory_xfer_partial_1.
9496
9497 2014-03-21  Daniel Gutson  <daniel.gutson@tallertechnologies.com>
9498
9499         * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9500         NULL pointer.
9501
9502 2014-03-21  Pedro Alves  <palves@redhat.com>
9503
9504         * infrun.c (normal_stop): Extend comment.
9505
9506 2014-03-21  Hui Zhu  <hui@codesourcery.com>
9507             Pedro Alves  <palves@redhat.com>
9508
9509         * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9510         static buffer.
9511         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9512         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9513         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9514
9515 2014-03-20  Maciej W. Rozycki  <macro@codesourcery.com>
9516
9517         * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9518         `z' formatted output modifier.
9519
9520 2014-03-20  Tom Tromey  <tromey@redhat.com>
9521             Sergio Durigan Junior  <sergiodj@redhat.com>
9522
9523         * probe.c (parse_probes): Turn assert into an ordinary error.
9524         * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9525         exceptions when parsing probes.  Rearrange the code for clarity.
9526
9527 2014-03-20  Tom Tromey  <tromey@redhat.com>
9528
9529         PR gdb/14135
9530         * top.c (execute_command): Only dispatch events if the command
9531         started the target.
9532
9533 2014-03-20  Tom Tromey  <tromey@redhat.com>
9534
9535         PR cli/15718
9536         * infcall.c: Include event-top.h.
9537         (run_inferior_call): Call async_disable_stdin if needed.
9538
9539 2014-03-20  Pedro Alves  <palves@redhat.com>
9540
9541         * infrun.c (prepare_to_proceed): Delete.
9542         (thread_still_needs_step_over): New function.
9543         (find_thread_needs_step_over): New function.
9544         (proceed): If the current thread needs a step-over, set its
9545         steping_over_breakpoint flag.  Adjust to use
9546         find_thread_needs_step_over instead of prepare_to_proceed.
9547         (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9548         BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9549         breakpoint.
9550         (switch_back_to_stepped_thread): Step over breakpoints of all
9551         threads not the stepping thread, before switching back to the
9552         stepping thread.
9553
9554 2014-03-20  Pedro Alves  <palves@redhat.com>
9555
9556         * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9557         extern.
9558         * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9559         * infrun.c (saved_singlestep_ptid)
9560         (stepping_past_singlestep_breakpoint): Delete.
9561         (resume): Remove stepping_past_singlestep_breakpoint handling.
9562         (proceed): Store the prev_pc of the stepping thread too.
9563         (init_wait_for_inferior): Adjust.  Clear singlestep_ptid and
9564         singlestep_pc.
9565         (enum infwait_states): Delete infwait_thread_hop_state.
9566         (struct execution_control_state) <hit_singlestep_breakpoint>: New
9567         field.
9568         (handle_inferior_event): Adjust.
9569         (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9570         handling and the thread-hop code.  Before removing single-step
9571         breakpoints, check whether the thread hit a single-step breakpoint
9572         of another thread.  If it did, the trap is not a random signal.
9573         (switch_back_to_stepped_thread): If the event thread hit a
9574         single-step breakpoint, unblock it before switching to the
9575         stepping thread.  Handle the case of the stepped thread having
9576         advanced already.
9577         (keep_going): Handle the case of the current thread moving past a
9578         single-step breakpoint.
9579
9580 2014-03-20  Pedro Alves  <palves@redhat.com>
9581
9582         PR breakpoints/7143
9583         * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9584         are being stepped over.
9585         (breakpoint_address_match): Make extern.
9586         * breakpoint.h (breakpoint_address_match): New declaration.
9587         * inferior.h (stepping_past_instruction_at): New declaration.
9588         * infrun.c (struct step_over_info): New type.
9589         (step_over_info): New global.
9590         (set_step_over_info, clear_step_over_info)
9591         (stepping_past_instruction_at): New functions.
9592         (handle_inferior_event): Clear the step-over info when
9593         trap_expected is cleared.
9594         (resume): Remove now stale comment.
9595         (clear_proceed_status): Clear step-over info.
9596         (proceed): Adjust step-over handling to set or clear the step-over
9597         info instead of removing all breakpoints.
9598         (handle_signal_stop): When setting up a thread-hop, don't remove
9599         breakpoints here.
9600         (stop_stepping): Clear step-over info.
9601         (keep_going): Adjust step-over handling to set or clear step-over
9602         info and then always inserting breakpoints, instead of removing
9603         all breakpoints when stepping over one.
9604
9605 2014-03-20  Pedro Alves  <palves@redhat.com>
9606
9607         * infrun.c (previous_inferior_ptid): Adjust comment.
9608         (deferred_step_ptid): Delete.
9609         (infrun_thread_ptid_changed, prepare_to_proceed)
9610         (init_wait_for_inferior): Adjust.
9611         (handle_signal_stop): Delete deferred_step_ptid handling.
9612
9613 2014-03-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
9614
9615         PR gdb/15358
9616         * defs.h (sync_quit_force_run): New declaration.
9617         (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9618         * event-top.c (async_sigterm_handler): New declaration.
9619         (async_sigterm_token): New variable.
9620         (async_init_signals): Create also async_sigterm_token.
9621         (async_sigterm_handler): New function.
9622         (sync_quit_force_run): New variable.
9623         (handle_sigterm): Replace quit_force call by other calls.
9624         * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9625
9626 2014-03-18  Maciej W. Rozycki  <macro@codesourcery.com>
9627
9628         * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9629         offset into SPE pseudo registers.
9630
9631 2014-03-18  Pedro Alves  <palves@redhat.com>
9632
9633         PR gdb/13860
9634         * inferior.h (print_stop_event): Declare.
9635         * infrun.c (print_stop_event): New, factored out from ...
9636         (normal_stop): ... this.
9637         * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9638         of bpstat_print/print_stack_frame.
9639
9640 2014-03-17  Tom Tromey  <tromey@redhat.com>
9641
9642         * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9643
9644 2014-03-17  Pierre-Marie de Rodat  <derodat@adacore.com>
9645
9646         * ada-lang.c (decode_constrained_packed_array): Perform a
9647         minimal coercion for reference with coerce_ref instead of
9648         ada_coerce_ref.
9649
9650 2014-03-17  Tristan Gingold  <gingold@adacore.com>
9651
9652         * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9653         (darwin_solib_create_inferior_hook): Emit a warning if version
9654         is unhandled.
9655
9656 2014-03-16  Ulrich Weigand  <uweigand@de.ibm.com>
9657
9658         * python/py-value.c (get_field_flag): Cast flag_name argument to
9659         PyObject_GetAttrString to support Python 2.4.
9660
9661 2014-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
9662
9663         * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9664         (Global Maintainers): Remove Jan Kratochvil.
9665
9666 2014-03-14  Pedro Alves  <palves@redhat.com>
9667
9668         * inferior.h (terminal_ours_for_output): Rename to ...
9669         (child_terminal_ours_for_output): ... this.
9670         (terminal_save_ours): Rename to ...
9671         (child_terminal_save_ours): ... this.
9672         (terminal_ours): Rename to ...
9673         (child_terminal_ours): ... this.
9674         (terminal_inferior): Rename to ...
9675         (child_terminal_inferior): ... this.
9676         (terminal_init_inferior): Rename to ...
9677         (child_terminal_init_inferior): ... this.
9678         (terminal_init_inferior_with_pgrp): Rename to ...
9679         (child_terminal_init_inferior_with_pgrp): ... this.
9680         * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9681         (child_terminal_init_with_pgrp): ... this.
9682         (terminal_save_ours): Rename to ...
9683         (child_terminal_save_ours): ... this.
9684         (terminal_init_inferior): Rename to ...
9685         (child_terminal_init): ... this.  Adjust.
9686         (terminal_inferior): Rename to ...
9687         (child_terminal_inferior): ... this.
9688         (terminal_ours_for_output): Rename to ...
9689         (child_terminal_ours_for_output): ... this.  Adjust.
9690         (terminal_ours): Rename to ...
9691         (child_terminal_ours): ... this.
9692         (terminal_ours_1): Rename to ...
9693         (child_terminal_ours_1): ... this.  Adjust.
9694         * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9695         * windows-nat.c (do_initial_windows_stuff): Adjust.
9696         * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9697         (gnu_terminal_init): ... this.  Adjust.
9698         (gnu_target): Adjust.
9699         * inf-child.c (inf_child_target): Adjust.
9700
9701 2014-03-13  Doug Evans  <xdje42@gmail.com>
9702
9703         PR guile/16612
9704         * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9705         new eq?-hashtab.
9706
9707 2014-03-13  Doug Evans  <xdje42@gmail.com>
9708
9709         * value.c (record_latest_value): Call release_value_or_incref
9710         instead of release_value.
9711
9712 2014-03-13  Pedro Alves  <palves@redhat.com>
9713
9714         * procfs.c (procfs_target): Don't override to_shortname,
9715         to_longname or to_doc.
9716
9717 2014-03-13  Pedro Alves  <palves@redhat.com>
9718
9719         * inf-child.c (inf_child_open, inf_child_target): Don't mention
9720         Unix in user visible strings.
9721
9722 2014-03-12  Stan Shebs  <stan@codesourcery.com>
9723
9724         * gdbtypes.h: Annotate comments for Doxygen, add a page
9725         block comment with some general info.
9726
9727 2014-03-12  Pedro Alves  <palves@redhat.com>
9728
9729         * infcmd.c (prepare_execution_command): New function, factored out
9730         from several execution commands.
9731         (run_command_1, continue_command, step_1, jump_command)
9732         (signal_command, until_command, advance_command, finish_command)
9733         (attach_command): Use prepare_execution_command.
9734
9735 2014-03-12  Omair Javaid  <omair.javaid@linaro.org>
9736
9737         * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9738         (MAX_BPTS): Define.
9739         (MAX_WPTS): Define.
9740         (struct arm_linux_thread_points): Removed.
9741         (struct arm_linux_process_info): New.
9742         (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9743         (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9744         (arm_linux_find_breakpoints_by_tid): Removed.
9745         (struct arch_lwp_info): New.
9746         (arm_linux_find_process_pid): New functions.
9747         (arm_linux_add_process): New functions.
9748         (arm_linux_process_info_get): New functions.
9749         (arm_linux_forget_process): New function.
9750         (arm_linux_get_debug_reg_state): New function.
9751         (struct update_registers_data): New.
9752         (update_registers_callback): New function.
9753         (arm_linux_insert_hw_breakpoint1): Updated.
9754         (arm_linux_remove_hw_breakpoint1): Updated.
9755         (arm_linux_insert_hw_breakpoint): Updated.
9756         (arm_linux_remove_hw_breakpoint): Updated.
9757         (arm_linux_insert_watchpoint): Updated.
9758         (arm_linux_remove_watchpoint): Updated.
9759         (arm_linux_new_thread): Updated.
9760         (arm_linux_prepare_to_resume): New function.
9761         (arm_linux_new_fork): New function.
9762         (_initialize_arm_linux_nat): Updated.
9763
9764 2014-03-12  Pedro Alves  <palves@redhat.com>
9765
9766         * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9767
9768 2014-03-12  Tom Tromey  <tromey@redhat.com>
9769
9770         * inf-child.c (return_zero): New function.
9771         (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9772         * aix-thread.c (aix_thread_inferior_created): New function.
9773         (aix_thread_attach): Remove.
9774         (init_aix_thread_ops): Don't set to_attach.
9775         (_initialize_aix_thread): Register inferior_created observer.
9776         * corelow.c (init_core_ops): Don't set to_attach or
9777         to_create_inferior.
9778         * exec.c (init_exec_ops): Don't set to_attach or
9779         to_create_inferior.
9780         * infcmd.c (run_command_1): Use find_run_target.  Make direct
9781         target calls.
9782         (attach_command): Use find_attach_target.  Make direct target
9783         calls.
9784         * record-btrace.c (init_record_btrace_ops): Don't set
9785         to_create_inferior.
9786         * record-full.c (record_full_can_async_p, record_full_is_async_p):
9787         Remove.
9788         (init_record_full_ops, init_record_full_core_ops): Update.  Don't
9789         set to_create_inferior.
9790         * target.c (complete_target_initialization): Add assertion.
9791         (target_create_inferior): Remove.
9792         (find_default_attach, find_default_create_inferior): Remove.
9793         (find_attach_target, find_run_target): New functions.
9794         (find_default_is_async_p, find_default_can_async_p)
9795         (target_supports_non_stop, target_attach): Remove.
9796         (init_dummy_target): Don't set to_create_inferior or
9797         to_supports_non_stop.
9798         * target.h (struct target_ops) <to_attach>: Add comment.  Remove
9799         TARGET_DEFAULT_FUNC.
9800         <to_create_inferior>: Add comment.
9801         <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9802         TARGET_DEFAULT_RETURN.
9803         <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9804         (find_attach_target, find_run_target): Declare.
9805         (target_create_inferior): Remove.
9806         (target_has_execution_1): Update comment.
9807         (target_supports_non_stop): Remove.
9808         * target-delegates.c: Rebuild.
9809
9810 2014-03-12  Pedro Alves  <palves@redhat.com>
9811
9812         * inf-child.h: Update comment to not mention Unix.
9813
9814 2014-03-12  Pedro Alves  <palves@redhat.com>
9815
9816         * inf-child.c: Update top comment to not mention Unix.  Add
9817         generic comment describing how this target is meant to be used.
9818         (inf_child_post_attach, inf_child_post_startup_inferior)
9819         (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9820         Unix in comment.
9821
9822 2014-03-12  Pedro Alves  <palves@redhat.com>
9823
9824         * nto-procfs.c: Include inf-child.h.
9825         (procfs_ops): Delete global.
9826         (procfs_can_run): Delete method.
9827         (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9828         target pointer instead of referencing procfs_ops.
9829         (procfs_prepare_to_store): Delete.
9830         (init_procfs_ops): Delete function.
9831         (procfs_target): New function, based on init_procfs_ops, but
9832         inherit inf_child_target.
9833         (_initialize_procfs): Use procfs_target.
9834
9835 2014-03-12  Pedro Alves  <palves@redhat.com>
9836
9837         * windows-nat.c: Include inf-child.h.
9838         (windows_ops): Delete global.
9839         (windows_open, windows_prepare_to_store, windows_can_run): Delete
9840         methods.
9841         (init_windows_ops): Delete function.
9842         (windows_target): New function, based on init_windows_ops, but
9843         inherit inf_child_target.
9844         (_initialize_windows_nat): Use windows_target.  Install x86
9845         specific target methods here.
9846
9847 2014-03-10  Doug Evans  <xdje42@gmail.com>
9848
9849         * guile/guile.c (call_initialize_gdb_module): New function.
9850         (initialize_guile): Replace call to scm_init_guile with call to
9851         scm_with_guile.
9852
9853 2014-03-10  Joel Brobecker  <brobecker@adacore.com>
9854
9855         * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9856         in call to TYPE_CODE macro.
9857
9858 2014-03-10  Jerome Guitton  <guitton@adacore.com>
9859
9860         * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9861         Resolve tagged types to full view.
9862
9863 2014-03-10  Hui Zhu  <hui@codesourcery.com>
9864
9865         * target.h (target_insert_breakpoint): Remove "hardware" from its
9866         comments.
9867
9868 2014-03-07  Doug Evans  <dje@google.com>
9869
9870         * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9871
9872 2014-03-07  Doug Evans  <dje@google.com>
9873
9874         * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9875         Remove unused local comp_dir_attr.  Assert exactly one of
9876         stub_comp_unit_die, stub_comp_dir is non-NULL.
9877
9878 2014-03-07  Joel Brobecker  <brobecker@adacore.com>
9879
9880         * target.h (complete_target_initialization, add_target):
9881         Add comment.
9882
9883 2014-03-07  Pedro Alves  <palves@redhat.com>
9884
9885         * go32-nat.c: Include inf-child.h.
9886         (go32_ops): Delete global.
9887         (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9888         Delete methods.
9889         (go32_create_inferior): Push the passed in target pointer instead
9890         of referencing go32_ops.
9891         (init_go32_ops): Delete function.  Moved parts to _initialize_go32_nat.
9892         (go32_target): New function, based on init_go32_ops, but inherit
9893         inf_child_target.
9894         (_initialize_go32_nat): Use go32_target.  Move parts of
9895         init_go32_ops here.
9896
9897 2014-03-06  Joel Brobecker  <brobecker@adacore.com>
9898
9899         * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9900         (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9901         SYMBOL_VALUE_ADDRESS.
9902         (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9903
9904 2014-03-06  Yao Qi  <yao@codesourcery.com>
9905
9906         * breakpoint.c (get_tracepoint_by_number): Remove argument
9907         optional_p.  All callers updated.  Adjust comments.  Update
9908         output message.
9909         * breakpoint.h (get_tracepoint_by_number): Update declaration.
9910
9911 2014-03-06  Yao Qi  <yao@codesourcery.com>
9912
9913         * reverse.c (goto_bookmark_command): Add local 'p'.  Emit error
9914         early if get_number returns zero.  Use 'p' instead of 'args'.
9915
9916 2014-03-06  Yao Qi  <yao@codesourcery.com>
9917
9918         * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9919         message.
9920
9921 2014-03-06  Yao Qi  <yao@codesourcery.com>
9922
9923         PR breakpoints/16508
9924         * tracepoint.c (check_trace_running): New function.
9925         (trace_find_command): Move code to check_trace_running and
9926         call check_trace_running.
9927         (trace_find_pc_command): Likewise.
9928         (trace_find_tracepoint_command): Likewise.
9929         (trace_find_line_command): Likewise.
9930         (trace_find_range_command): Likewise.
9931         * tracepoint.h (check_trace_running): Likewise.
9932         * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9933
9934 2014-03-06  Yao Qi  <yao@codesourcery.com>
9935
9936         * target.h (struct target_ops) <to_traceframe_info>: Use
9937         TARGET_DEFAULT_NORETURN (tcomplain ()).
9938         * target-delegates.c: Regenerated.
9939
9940 2014-03-05  Pedro Alves  <palves@redhat.com>
9941
9942         PR gdb/16575
9943         * dcache.c (dcache_poke_byte): Constify ptr parameter.  Return
9944         void.  Update comment.
9945         (dcache_xfer_memory): Delete.
9946         (dcache_read_memory_partial): New, based on the read bits of
9947         dcache_xfer_memory.
9948         (dcache_update): Add status parameter.  Use ULONGEST for len, and
9949         adjust.  Discard cache lines if the reason for the update was
9950         error.
9951         * dcache.h (dcache_xfer_memory): Delete declaration.
9952         (dcache_read_memory_partial): New declaration.
9953         (dcache_update): Update prototype.
9954         * target.c (raw_memory_xfer_partial): Update the dcache here.
9955         (memory_xfer_partial_1): Don't handle dcache writes here.
9956
9957 2014-03-05  Mike Frysinger  <vapier@gentoo.org>
9958
9959         * remote-sim.c (gdbsim_load): Add const to prog.
9960
9961 2014-03-03  Tom Tromey  <tromey@redhat.com>
9962
9963         * elfread.c (probe_key): Change to bfd_data.
9964         (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9965         now per-BFD, not per-objfile.
9966         * stap-probe.c (stap_probe_destroy): Update comment.
9967         (handle_stap_probe): Allocate on the per-BFD obstack.
9968
9969 2014-03-03  Tom Tromey  <tromey@redhat.com>
9970
9971         * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9972         * breakpoint.c (create_longjmp_master_breakpoint): Use
9973         get_probe_address.
9974         (add_location_to_breakpoint, bkpt_probe_insert_location)
9975         (bkpt_probe_remove_location): Update.
9976         * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9977         * elfread.c (elf_symfile_relocate_probe): Remove.
9978         (elf_probe_fns): Update.
9979         (insert_exception_resume_breakpoint): Change type of "probe"
9980         parameter to bound_probe.
9981         (check_exception_resume): Update.
9982         * objfiles.c (objfile_relocate1): Don't relocate probes.
9983         * probe.c (bound_probe_s): New typedef.
9984         (parse_probes): Use get_probe_address.  Set sal's objfile.
9985         (find_probe_by_pc): Return a bound_probe.
9986         (collect_probes): Return a VEC(bound_probe_s).
9987         (compare_probes): Update.
9988         (gen_ui_out_table_header_info): Change type of "probes"
9989         parameter.  Update.
9990         (info_probes_for_ops): Update.
9991         (get_probe_address): New function.
9992         (probe_safe_evaluate_at_pc): Update.
9993         * probe.h (struct probe_ops) <get_probe_address>: New field.
9994         <set_semaphore, clear_semaphore>: Add objfile parameter.
9995         (struct probe) <objfile>: Remove field.
9996         <arch>: New field.
9997         <address>: Update comment.
9998         (struct bound_probe): New.
9999         (find_probe_by_pc): Return a bound_probe.
10000         (get_probe_address): Declare.
10001         * solib-svr4.c (struct probe_and_action) <address>: New field.
10002         (hash_probe_and_action, equal_probe_and_action): Update.
10003         (register_solib_event_probe): Add address parameter.
10004         (solib_event_probe_at): Update.
10005         (svr4_create_probe_breakpoints): Add objfile parameter.  Use
10006         get_probe_address.
10007         * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10008         (stap_get_probe_address): New function.
10009         (stap_can_evaluate_probe_arguments, compute_probe_arg)
10010         (compile_probe_arg): Update.
10011         (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10012         address.
10013         (handle_stap_probe): Don't relocate the probe.
10014         (stap_relocate): Remove.
10015         (stap_gen_info_probes_table_values): Update.
10016         (stap_probe_ops): Remove stap_relocate.
10017         * symfile-debug.c (debug_sym_relocate_probe): Remove.
10018         (debug_sym_probe_fns): Update.
10019         * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10020         * symtab.c (init_sal): Use memset.
10021         * symtab.h (struct symtab_and_line) <objfile>: New field.
10022         * tracepoint.c (start_tracing, stop_tracing): Update.
10023
10024 2014-03-03  Tom Tromey  <tromey@redhat.com>
10025
10026         * probe.h (parse_probes, find_probe_by_pc)
10027         (find_probes_in_objfile): Fix comments.
10028
10029 2014-03-02  Doug Evans  <xdje42@gmail.com>
10030
10031         * infrun.c (handle_signal_stop): Replace test for
10032         TARGET_WAITKIND_STOPPED with an assert.
10033
10034 2014-03-02  Doug Evans  <xdje42@gmail.com>
10035
10036         * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10037
10038 2014-03-02  Doug Evans  <xdje42@gmail.com>
10039
10040         * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10041
10042 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
10043
10044         * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10045
10046 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
10047
10048         * i386obsd-nat.c: Include "obsd-nat.h".
10049         (_initialize_i386obsd_nat): Call obsd_add_target instead of
10050         add_target.
10051         * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10052
10053 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
10054
10055         * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10056
10057 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
10058
10059         * mips64obsd-nat.c: Include "obsd-nath".
10060         (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10061         add_target
10062         * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10063
10064 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
10065
10066         * amd64obsd-nat.c: Include "obsd-nat,h.
10067         (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10068         add_target.
10069         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10070
10071 2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
10072
10073         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10074         (find_overload_match): Update call to find_oload_champ.
10075         (find_oload_champ_namespace_loop): Likewise
10076
10077 2014-02-28  Mark Kettenis  <kettenis@gnu.org>
10078
10079         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10080
10081         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10082         * config/sparc/obsd64.mh: New file.
10083         * sparc64obsd-nat.c: New file.
10084
10085         * obsd-nat.h: New file.
10086         * obsd-nat.c: New file.
10087         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10088         (ALLDEPFILES): Add obsd-nat.c.
10089
10090 2014-02-28  Tom Tromey  <tromey@redhat.com>
10091
10092         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
10093         * cli-out.h (cli_ui_out_impl): Now const.
10094         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
10095         * ui-out.c (struct ui_out) <impl>: Now const.
10096         (default_ui_out_impl): Now const.
10097         (ui_out_new): Make 'impl' parameter const.
10098         * ui-out.h (ui_out_new): Update.
10099
10100 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
10101
10102         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10103
10104 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
10105
10106         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10107
10108 2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
10109
10110         Additional PR 8882 fix.
10111         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10112
10113 2014-02-27  Pedro Alves  <palves@redhat.com>
10114
10115         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10116         isn't set.
10117
10118 2014-02-27  Pedro Alves  <palves@redhat.com>
10119
10120         PR 12702
10121         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10122         * nat/linux-waitpid.c: Include string.h.
10123         (status_to_str): Moved here and made extern.
10124         * nat/linux-waitpid.h (status_to_str): New declaration.
10125
10126 2014-02-27  Hui Zhu  <hui@codesourcery.com>
10127
10128         PR 12702
10129         * infrun.c (ptid_match): Move ...
10130         * common/ptid.c (ptid_match): ... here.
10131         * inferior.h (ptid_match): Move ...
10132         * common/ptid.h (ptid_match): ... here.
10133
10134 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
10135
10136         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10137         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10138         gdb_target_obs.
10139
10140 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
10141
10142         * obsd-tdep.c (obsd_auxv_parse): New function.
10143         (obsd_init_abi): Set auxv_parse.
10144
10145         * gdbarch.sh (auxv_parse): New.
10146         * gdbarch.h: Regenerated.
10147         * gdbarch.c: Regenerated.
10148         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10149
10150 2014-02-26  Ludovic Courtès  <ludo@gnu.org>
10151
10152         * guile/scm-value.c (gdbscm_history_append_x): New function.
10153         (value_functions): Add it.
10154
10155 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
10156
10157         * dwarf2read.c (attr_value_as_address): New function.
10158         (dwarf2_find_base_address, read_call_site_scope): Use
10159         attr_value_as_address in place of DW_ADDR.
10160         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10161         the low and high addresses.  Slight rework of the handling
10162         of the high pc being a constant form, and limit it to
10163         DWARF verson 4 or higher.
10164         (dwarf2_record_block_ranges): Likewise.
10165         (read_partial_die): Likewise.
10166         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10167
10168 2014-02-26  Tom Tromey  <tromey@redhat.com>
10169
10170         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10171
10172 2014-02-26  Tom Tromey  <tromey@redhat.com>
10173
10174         * elfread.c (elf_read_minimal_symbols): Return early if
10175         minimal symbols have already been read.  Add "ei" parameter.
10176         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10177         * minsyms.c (prim_record_minimal_symbol_full): Update.
10178         * objfiles.h (struct objstats) <n_minsyms>: Move...
10179         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10180         * symmisc.c (print_objfile_statistics): Update.
10181
10182 2014-02-26  Tom Tromey  <tromey@redhat.com>
10183
10184         * elfread.c (elf_read_minimal_symbols): New function, from
10185         elf_symfile_read.
10186         (elf_symfile_read): Call it.
10187
10188 2014-02-26  Tom Tromey  <tromey@redhat.com>
10189
10190         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10191         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10192         (lookup_minimal_symbol_solib_trampoline)
10193         (lookup_minimal_symbol_by_pc_section_1)
10194         (lookup_minimal_symbol_and_objfile): Update.
10195         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10196         Don't allocate a minimal symbol if minsyms have already been read.
10197         (build_minimal_symbol_hash_tables): Update.
10198         (install_minimal_symbols): Do nothing if minsyms already read.
10199         Use the per-BFD obstack.
10200         (terminate_minimal_symbol_table): Use the per-BFD obstack.
10201         * objfiles.c (allocate_objfile): Call
10202         terminate_minimal_symbol_table later.
10203         (have_minimal_symbols): Update.
10204         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10205         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10206         Move from struct objfile.
10207         <minsyms_read>: New field.
10208         (struct objfile) <msymbols, minimal_symbol_count,
10209         msymbol_hash, msymbol_demangled_hash>: Move.
10210         (ALL_OBJFILE_MSYMBOLS): Update.
10211         * symfile.c (read_symbols): Set minsyms_read.
10212         (reread_symbols): Update.
10213         * symmisc.c (dump_objfile, dump_msymbols): Update.
10214
10215 2014-02-26  Tom Tromey  <tromey@redhat.com>
10216
10217         * minsyms.c (msymbols_sort): Remove.
10218         * minsyms.h (msymbols_sort): Remove.
10219         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10220         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10221         * elfread.c (elf_symtab_read): Don't add section offsets.
10222         * xcoffread.c (record_minimal_symbol): Don't add section offset
10223         to minimal symbol address.
10224         * somread.c (text_offset, data_offset): Remove.
10225         (som_symtab_read): Don't add section offsets to minimal symbol
10226         addresses.
10227         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10228         Don't add section offsets to minimal symbols.
10229         * coffread.c (coff_symtab_read): Don't add section offsets
10230         to minimal symbol addresses.
10231         * machoread.c (macho_symtab_add_minsym): Don't add section offset
10232         to minimal symbol addresses.
10233         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10234         section offset to minimal symbol addresses.
10235         * mdebugread.c (parse_partial_symbols): Don't add section
10236         offset to minimal symbol addresses.
10237         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10238         offset to minimal symbol addresses.
10239
10240 2014-02-26  Tom Tromey  <tromey@redhat.com>
10241
10242         * ada-lang.c (ada_main_name): Update.
10243         (ada_add_standard_exceptions): Update.
10244         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10245         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10246         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10247         * auxv.c (ld_so_xfer_auxv): Update.
10248         * avr-tdep.c (avr_scan_prologue): Update.
10249         * ax-gdb.c (gen_var_ref): Update.
10250         * blockframe.c (get_pc_function_start)
10251         (find_pc_partial_function_gnu_ifunc): Update.
10252         * breakpoint.c (create_overlay_event_breakpoint)
10253         (create_longjmp_master_breakpoint)
10254         (create_std_terminate_master_breakpoint)
10255         (create_exception_master_breakpoint): Update.
10256         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10257         * c-valprint.c (c_val_print): Update.
10258         * coff-pe-read.c (add_pe_forwarded_sym): Update.
10259         * common/agent.c (agent_look_up_symbols): Update.
10260         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10261         * dwarf2loc.c (call_site_to_target_addr): Update.
10262         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10263         * elfread.c (elf_gnu_ifunc_record_cache)
10264         (elf_gnu_ifunc_resolve_by_got): Update.
10265         * findvar.c (default_read_var_value): Update.
10266         * frame.c (inside_main_func): Update.
10267         * frv-tdep.c (frv_frame_this_id): Update.
10268         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10269         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10270         Update.
10271         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10272         (hppa_hpux_find_dummy_bpaddr): Update.
10273         * hppa-tdep.c (hppa_symbol_address): Update.
10274         * infcmd.c (until_next_command): Update.
10275         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10276         Update.
10277         * linespec.c (minsym_found, add_minsym): Update.
10278         * linux-nat.c (get_signo): Update.
10279         * linux-thread-db.c (inferior_has_bug): Update.
10280         * m32c-tdep.c (m32c_return_value)
10281         (m32c_m16c_address_to_pointer): Update.
10282         * m32r-tdep.c (m32r_frame_this_id): Update.
10283         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10284         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10285         * maint.c (maintenance_translate_address): Update.
10286         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10287         (frob_address): New function.
10288         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10289         frob_address.  Rename parameter to "pc_in".
10290         (compare_minimal_symbols, compact_minimal_symbols): Use raw
10291         addresses.
10292         (find_solib_trampoline_target, minimal_symbol_upper_bound):
10293         Update.
10294         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10295         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10296         * objc-lang.c (find_objc_msgsend): Update.
10297         * objfiles.c (objfile_relocate1): Update.
10298         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10299         * p-valprint.c (pascal_val_print): Update.
10300         * parse.c (write_exp_msymbol): Update.
10301         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10302         (ppc_elfv2_skip_entrypoint): Update.
10303         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10304         * printcmd.c (build_address_symbolic, msym_info)
10305         (address_info): Update.
10306         * proc-service.c (ps_pglobal_lookup): Update.
10307         * psymtab.c (find_pc_sect_psymtab_closer)
10308         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10309         Change msymbol parameter to bound_minimal_symbol.
10310         * ravenscar-thread.c (get_running_thread_id): Update.
10311         * remote.c (remote_check_symbols): Update.
10312         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10313         address.
10314         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10315         * solib-dsbt.c (lm_base): Update.
10316         * solib-frv.c (lm_base, main_got): Update.
10317         * solib-irix.c (locate_base): Update.
10318         * solib-som.c (som_solib_create_inferior_hook)
10319         (link_map_start): Update.
10320         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10321         * solib-svr4.c (elf_locate_base, enable_break): Update.
10322         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10323         (flush_ea_cache): Update.
10324         * stabsread.c (define_symbol, scan_file_globals): Update.
10325         * stack.c (find_frame_funname): Update.
10326         * symfile-debug.c (debug_qf_expand_symtabs_matching)
10327         (debug_qf_find_pc_sect_symtab): Update.
10328         * symfile.c (simple_read_overlay_table)
10329         (simple_overlay_update): Update.
10330         * symfile.h (struct quick_symbol_functions)
10331         <find_pc_sect_symtab>: Change type of msymbol to
10332         bound_minimal_symbol.
10333         * symmisc.c (dump_msymbols): Update.
10334         * symtab.c (find_pc_sect_symtab_via_partial)
10335         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10336         (search_symbols, print_msymbol_info): Update.
10337         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10338         (MSYMBOL_VALUE_ADDRESS): Redefine.
10339         (BMSYMBOL_VALUE_ADDRESS): New macro.
10340         * tracepoint.c (scope_info): Update.
10341         * tui/tui-disasm.c (tui_find_disassembly_address)
10342         (tui_get_begin_asm_address): Update.
10343         * valops.c (find_function_in_inferior): Update.
10344         * value.c (value_static_field, value_fn_field): Update.
10345
10346 2014-02-26  Tom Tromey  <tromey@redhat.com>
10347
10348         * ada-lang.c (ada_update_initial_language): Update.
10349         (ada_main_name, ada_has_this_exception_support): Update.
10350         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10351         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10352         * arm-tdep.c (arm_skip_stub): Update.
10353         * auxv.c (ld_so_xfer_auxv): Update.
10354         * avr-tdep.c (avr_scan_prologue): Update.
10355         * ax-gdb.c (gen_var_ref): Update.
10356         * breakpoint.c (struct breakpoint_objfile_data)
10357         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10358         type to bound_minimal_symbol.
10359         (create_overlay_event_breakpoint)
10360         (create_longjmp_master_breakpoint)
10361         (create_std_terminate_master_breakpoint)
10362         (create_exception_master_breakpoint): Update.
10363         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10364         * c-exp.y (classify_name): Update.
10365         * coffread.c (coff_symfile_read): Update.
10366         * common/agent.c (agent_look_up_symbols): Update.
10367         * d-lang.c (d_main_name): Update.
10368         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10369         * dec-thread.c (enable_dec_thread): Update.
10370         * dwarf2loc.c (call_site_to_target_addr): Update.
10371         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10372         * eval.c (evaluate_subexp_standard): Update.
10373         * findvar.c (struct minsym_lookup_data) <result>: Change type
10374         to bound_minimal_symbol.
10375         <objfile>: Remove.
10376         (minsym_lookup_iterator_cb, default_read_var_value): Update.
10377         * frame.c (inside_main_func): Update.
10378         * frv-tdep.c (frv_frame_this_id): Update.
10379         * gcore.c (call_target_sbrk): Update.
10380         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10381         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10382         Update.
10383         * go-lang.c (go_main_name): Update.
10384         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10385         (hppa_hpux_find_import_stub_for_addr): Update.
10386         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10387         Update.  Change return type.
10388         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10389         type.
10390         * jit.c (jit_breakpoint_re_set_internal): Update.
10391         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10392         Update.
10393         * linux-nat.c (get_signo): Update.
10394         * linux-thread-db.c (inferior_has_bug): Update
10395         * m32c-tdep.c (m32c_return_value)
10396         (m32c_m16c_address_to_pointer): Update.
10397         * m32r-tdep.c (m32r_frame_this_id): Update.
10398         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10399         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10400         * minsyms.c (lookup_minimal_symbol_internal): Rename to
10401         lookup_minimal_symbol.  Change return type.
10402         (lookup_minimal_symbol): Remove.
10403         (lookup_bound_minimal_symbol): Update.
10404         (lookup_minimal_symbol_text): Change return type.
10405         (lookup_minimal_symbol_solib_trampoline): Change return type.
10406         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10407         (lookup_minimal_symbol_solib_trampoline): Change return type.
10408         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10409         * objc-lang.c (lookup_objc_class, lookup_child_selector)
10410         (value_nsstring, find_imps): Update.
10411         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10412         * p-lang.c (pascal_main_name): Update.
10413         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10414         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10415         * proc-service.c (ps_pglobal_lookup): Update.
10416         * ravenscar-thread.c (get_running_thread_msymbol): Change
10417         return type.
10418         (has_ravenscar_runtime, get_running_thread_id): Update.
10419         * remote.c (remote_check_symbols): Update.
10420         * sol-thread.c (ps_pglobal_lookup): Update.
10421         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10422         * solib-dsbt.c (lm_base): Update.
10423         * solib-frv.c (lm_base, frv_relocate_section_addresses):
10424         Update.
10425         * solib-irix.c (locate_base): Update.
10426         * solib-som.c (som_solib_create_inferior_hook)
10427         (som_solib_desire_dynamic_linker_symbols, link_map_start):
10428         Update.
10429         * solib-spu.c (spu_enable_break): Update.
10430         * solib-svr4.c (elf_locate_base, enable_break): Update.
10431         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10432         (flush_ea_cache): Update.
10433         * stabsread.c (define_symbol): Update.
10434         * symfile.c (simple_read_overlay_table): Update.
10435         * symtab.c (find_pc_sect_line): Update.
10436         * tracepoint.c (scope_info): Update.
10437         * tui-disasm.c (tui_get_begin_asm_address): Update.
10438         * value.c (value_static_field): Update.
10439
10440 2014-02-26  Tom Tromey  <tromey@redhat.com>
10441
10442         * minsyms.c (prim_record_minimal_symbol_full): Use
10443         SET_MSYMBOL_VALUE_ADDRESS.
10444         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10445         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10446         SET_MSYMBOL_VALUE_ADDRESS.
10447         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10448         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10449
10450 2014-02-26  Tom Tromey  <tromey@redhat.com>
10451
10452         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10453         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10454         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10455         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10456         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10457         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10458         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10459         * ada-lang.c (ada_main_name): Update.
10460         (ada_lookup_simple_minsym): Update.
10461         (ada_make_symbol_completion_list): Update.
10462         (ada_add_standard_exceptions): Update.
10463         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10464         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10465         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10466         * arm-tdep.c (skip_prologue_function): Update.
10467         (arm_skip_stack_protector, arm_skip_stub): Update.
10468         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10469         (arm_wince_skip_main_prologue): Update.
10470         * auxv.c (ld_so_xfer_auxv): Update.
10471         * avr-tdep.c (avr_scan_prologue): Update.
10472         * ax-gdb.c (gen_var_ref): Update.
10473         * block.c (call_site_for_pc): Update.
10474         * blockframe.c (get_pc_function_start): Update.
10475         (find_pc_partial_function_gnu_ifunc): Update.
10476         * breakpoint.c (create_overlay_event_breakpoint): Update.
10477         (create_longjmp_master_breakpoint): Update.
10478         (create_std_terminate_master_breakpoint): Update.
10479         (create_exception_master_breakpoint): Update.
10480         (resolve_sal_pc): Update.
10481         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10482         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10483         Update.
10484         * c-valprint.c (c_val_print): Update.
10485         * coff-pe-read.c (add_pe_forwarded_sym): Update.
10486         * coffread.c (coff_symfile_read): Update.
10487         * common/agent.c (agent_look_up_symbols): Update.
10488         * dbxread.c (find_stab_function_addr): Update.
10489         (end_psymtab): Update.
10490         * dwarf2loc.c (call_site_to_target_addr): Update.
10491         (func_verify_no_selftailcall): Update.
10492         (tailcall_dump): Update.
10493         (call_site_find_chain_1): Update.
10494         (dwarf_expr_reg_to_entry_parameter): Update.
10495         * elfread.c (elf_gnu_ifunc_record_cache): Update.
10496         (elf_gnu_ifunc_resolve_by_got): Update.
10497         * f-valprint.c (info_common_command): Update.
10498         * findvar.c (read_var_value): Update.
10499         * frame.c (get_prev_frame_1): Update.
10500         (inside_main_func): Update.
10501         * frv-tdep.c (frv_skip_main_prologue): Update.
10502         (frv_frame_this_id): Update.
10503         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10504         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10505         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10506         (gnuv3_skip_trampoline): Update.
10507         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10508         (hppa64_hpux_in_solib_call_trampoline): Update.
10509         (hppa_hpux_skip_trampoline_code): Update.
10510         (hppa64_hpux_search_dummy_call_sequence): Update.
10511         (hppa_hpux_find_import_stub_for_addr): Update.
10512         (hppa_hpux_find_dummy_bpaddr): Update.
10513         * hppa-tdep.c (hppa_symbol_address)
10514         (hppa_lookup_stub_minimal_symbol): Update.
10515         * i386-tdep.c (i386_skip_main_prologue): Update.
10516         (i386_pe_skip_trampoline_code): Update.
10517         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10518         * infcall.c (get_function_name): Update.
10519         * infcmd.c (until_next_command): Update.
10520         * jit.c (jit_breakpoint_re_set_internal): Update.
10521         (jit_inferior_init): Update.
10522         * linespec.c (minsym_found): Update.
10523         (add_minsym): Update.
10524         * linux-fork.c (info_checkpoints_command): Update.
10525         * linux-nat.c (get_signo): Update.
10526         * linux-thread-db.c (inferior_has_bug): Update.
10527         * m32c-tdep.c (m32c_return_value): Update.
10528         (m32c_m16c_address_to_pointer): Update.
10529         (m32c_m16c_pointer_to_address): Update.
10530         * m32r-tdep.c (m32r_frame_this_id): Update.
10531         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10532         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10533         * maint.c (maintenance_translate_address): Update.
10534         * minsyms.c (add_minsym_to_hash_table): Update.
10535         (add_minsym_to_demangled_hash_table): Update.
10536         (msymbol_objfile): Update.
10537         (lookup_minimal_symbol): Update.
10538         (iterate_over_minimal_symbols): Update.
10539         (lookup_minimal_symbol_text): Update.
10540         (lookup_minimal_symbol_by_pc_name): Update.
10541         (lookup_minimal_symbol_solib_trampoline): Update.
10542         (lookup_minimal_symbol_by_pc_section_1): Update.
10543         (lookup_minimal_symbol_and_objfile): Update.
10544         (prim_record_minimal_symbol_full): Update.
10545         (compare_minimal_symbols): Update.
10546         (compact_minimal_symbols): Update.
10547         (build_minimal_symbol_hash_tables): Update.
10548         (install_minimal_symbols): Update.
10549         (terminate_minimal_symbol_table): Update.
10550         (find_solib_trampoline_target): Update.
10551         (minimal_symbol_upper_bound): Update.
10552         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10553         * mips-tdep.c (mips_stub_frame_sniffer): Update.
10554         (mips_skip_pic_trampoline_code): Update.
10555         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10556         * objc-lang.c (selectors_info): Update.
10557         (classes_info): Update.
10558         (find_methods): Update.
10559         (find_imps): Update.
10560         (find_objc_msgsend): Update.
10561         * objfiles.c (objfile_relocate1): Update.
10562         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10563         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10564         * p-valprint.c (pascal_val_print): Update.
10565         * parse.c (write_exp_msymbol): Update.
10566         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10567         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10568         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10569         * printcmd.c (build_address_symbolic): Update.
10570         (sym_info): Update.
10571         (address_info): Update.
10572         * proc-service.c (ps_pglobal_lookup): Update.
10573         * psymtab.c (find_pc_sect_psymtab_closer): Update.
10574         (find_pc_sect_psymtab): Update.
10575         * python/py-framefilter.c (py_print_frame): Update.
10576         * ravenscar-thread.c (get_running_thread_id): Update.
10577         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10578         Update.
10579         * remote.c (remote_check_symbols): Update.
10580         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10581         (rs6000_skip_trampoline_code): Update.
10582         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10583         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10584         * solib-dsbt.c (lm_base): Update.
10585         * solib-frv.c (lm_base): Update.
10586         (main_got): Update.
10587         * solib-irix.c (locate_base): Update.
10588         * solib-som.c (som_solib_create_inferior_hook): Update.
10589         (som_solib_desire_dynamic_linker_symbols): Update.
10590         (link_map_start): Update.
10591         * solib-spu.c (spu_enable_break): Update.
10592         (ocl_enable_break): Update.
10593         * solib-svr4.c (elf_locate_base): Update.
10594         (enable_break): Update.
10595         * spu-tdep.c (spu_get_overlay_table): Update.
10596         (spu_catch_start): Update.
10597         (flush_ea_cache): Update.
10598         * stabsread.c (define_symbol): Update.
10599         (scan_file_globals): Update.
10600         * stack.c (find_frame_funname): Update.
10601         (frame_info): Update.
10602         * symfile.c (simple_read_overlay_table): Update.
10603         (simple_overlay_update): Update.
10604         * symmisc.c (dump_msymbols): Update.
10605         * symtab.c (fixup_section): Update.
10606         (find_pc_sect_line): Update.
10607         (skip_prologue_sal): Update.
10608         (search_symbols): Update.
10609         (print_msymbol_info): Update.
10610         (rbreak_command): Update.
10611         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10612         (completion_list_objc_symbol): Update.
10613         (default_make_symbol_completion_list_break_on): Update.
10614         * tracepoint.c (scope_info): Update.
10615         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10616         (tui_get_begin_asm_address): Update.
10617         * valops.c (find_function_in_inferior): Update.
10618         * value.c (value_static_field): Update.
10619         (value_fn_field): Update.
10620
10621 2014-02-26  Tom Tromey  <tromey@redhat.com>
10622
10623         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10624         bound minimal symbols.  Move code that knows about minsym
10625         table layout...
10626         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
10627         function.
10628         * minsyms.h (minimal_symbol_upper_bound): Declare.
10629         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10630         minimal_symbol_upper_bound.
10631
10632 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
10633
10634         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10635         Use the type's name if its basic type does not have a tag.
10636
10637 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
10638
10639         * dwarf2read.c (read_subrange_type): Add comment.
10640
10641 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
10642
10643         * dwarf2read.c (update_enumeration_type_from_children): New
10644         function, mostly extracted from process_structure_scope.
10645         (read_enumeration_type): Call update_enumeration_type_from_children.
10646         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10647         and flag_flag_enum fields.
10648
10649 2014-02-26  Pedro Alves  <palves@redhat.com>
10650
10651         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10652         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10653         to_xfer_partial method.
10654
10655 2014-02-26  Pedro Alves  <palves@redhat.com>
10656
10657         * target.c (complete_target_initialization): Don't install
10658         default_xfer_partial as to_xfer_partial hook.
10659         (nomemory): Delete.
10660         (update_current_target): Don't INHERIT nor de_fault
10661         deprecated_xfer_memory.  Delete de_fault macro.
10662         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10663         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10664         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10665         field.
10666
10667 2014-02-26  Pedro Alves  <palves@redhat.com>
10668
10669         * go32-nat.c (my_write_child): New function.
10670         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10671         (go32_xfer_partial): New function.
10672         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10673         Instead install a to_xfer_partial hook.
10674
10675 2014-02-26  Pedro Alves  <palves@redhat.com>
10676
10677         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10678         to_xfer_partial helper.  Rewrite.
10679         (procfs_xfer_partial): New function.
10680         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10681         Install a to_xfer_partial hook.
10682
10683 2014-02-26  Pedro Alves  <palves@redhat.com>
10684
10685         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10686         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10687         (m32r_xfer_partial): New function.
10688         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10689         Install a to_xfer_partial hook.
10690
10691 2014-02-26  Pedro Alves  <palves@redhat.com>
10692
10693         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10694         helper.
10695         (mips_xfer_partial): New function.
10696         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10697         hook.  Install a to_xfer_partial hook.
10698
10699 2014-02-26  Joel Brobecker  <brobecker@adacore.com>
10700
10701         * gdbtypes.h (create_array_type_with_stride): Add declaration.
10702         * gdbtypes.c (create_array_type_with_stride): New function,
10703         renaming create_array_type, but with an added parameter
10704         called "bit_stride".
10705         (create_array_type): Re-implement using
10706         create_array_type_with_stride.
10707         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10708         and DW_AT_bit_stride attributes.
10709
10710 2014-02-26  Pedro Alves  <palves@redhat.com>
10711
10712         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10713         task-specific breakpoints.
10714
10715 2014-02-25  Pedro Alves  <palves@redhat.com>
10716
10717         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10718         handling of object == TARGET_OBJECT_UNWIND_TABLE.
10719
10720 2014-02-25  Stan Shebs  <stan@codesourcery.com>
10721
10722         * defs.h: Annotate comments for Doxygen.
10723
10724 2014-02-25  Tom Tromey  <tromey@redhat.com>
10725
10726         * target.h (target_ignore): Don't declare.
10727         * target.c (target_ignore): Remove.
10728
10729 2014-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
10730
10731         PR gdb/16626
10732         * auto-load.c (auto_load_objfile_script_1): Change filename to
10733         debugfile.
10734
10735 2014-02-25  Joel Brobecker  <brobecker@adacore.com>
10736
10737         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10738         documentation.  Adjust prototype to match the target_ops
10739         to_xfer_partial method.  Adjust implementation accordingly.
10740
10741 2014-02-25  Hui Zhu  <hui@codesourcery.com>
10742
10743         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10744         to_traceframe_info.
10745
10746 2014-02-25  Kevin Buettner  <kevinb@redhat.com>
10747
10748         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10749         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10750         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10751         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10752         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10753         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10754         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10755         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10756         New constants.
10757         (rl78_register_type): Use a data pointer type for SP and
10758         new pseudo registers mentioned above.  Use a 16 bit integer
10759         type for all other register pairs.
10760         (rl78_register_name, rl78_g10_register_name): Update for
10761         new pseudo registers.
10762         (rl78_pseudo_register_read): Likewise.
10763         (rl78_pseudo_register_write): Likewise.
10764         (rl78_dwarf_reg_to_regnum): Return register numbers representing
10765         to the newly added pseudo registers.
10766
10767 2014-02-24  Doug Evans  <dje@google.com>
10768
10769         * value.c (record_latest_value): Fix comment.
10770         * printcmd.c (print_command_1): Remove code to handle -1 return from
10771         record_latest_value.
10772
10773 2014-02-24  Pedro Alves  <palves@redhat.com>
10774
10775         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10776         deprecated_xfer_memory hook.
10777         (procfs_xfer_partial): Call procfs_xfer_memory instead
10778         of the deprecated_xfer_memory target hook.
10779         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10780         helper.
10781
10782 2014-02-24  Yuanhui Zhang  <asmwarrior@gmail.com>
10783
10784         * windows-nat.c (windows_xfer_shared_libraries): Return
10785         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10786         requested object is TARGET_OBJECT_LIBRARIES.
10787
10788 2014-02-24  Yao Qi  <yao@codesourcery.com>
10789
10790         * target.h (enum target_xfer_status)
10791         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10792         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10793         explicitly.  New.
10794         * corefile.c (memory_error_message): User updated.
10795         * exec.c (section_table_read_available_memory): Likewise.
10796         * record-btrace.c (record_btrace_xfer_partial): Likewise.
10797         * target.c (target_xfer_status_to_string): Likewise.
10798         (raw_memory_xfer_partial): Likewise.
10799         (memory_xfer_partial_1, target_xfer_partial): Likewise.
10800         * valops.c (read_value_memory): Likewise.
10801         * exec.h: Update comments.
10802
10803 2014-02-24  Yao Qi  <yao@codesourcery.com>
10804
10805         * target.c (target_xfer_status_to_string): Rename argument err
10806         to status.
10807         * target.h (target_xfer_status_to_string): Update declaration.
10808         Replace target_xfer_error_to_string with
10809         target_xfer_status_to_string in comment.
10810
10811 2014-02-24  Yao Qi  <yao@codesourcery.com>
10812
10813         * mips-linux-nat.c (super_close): Update its type.
10814         (mips_linux_close): Pass 'self' to super_close.
10815
10816 2014-02-24  Yao Qi  <yao@codesourcery.com>
10817
10818         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10819         * corefile.c (read_memory): Adjusted.
10820         * target.c (target_write_with_progress): Adjusted.
10821
10822 2014-02-23  Yao Qi  <yao@codesourcery.com>
10823
10824         Revert two patches:
10825
10826         2013-10-25  Yao Qi  <yao@codesourcery.com>
10827
10828         * remote.c (remote_traceframe_info): Return early if
10829         traceframe is not selected.
10830
10831         2013-07-19  Yao Qi  <yao@codesourcery.com>
10832
10833         * target.c (update_current_target): Change the default action
10834         of 'to_traceframe_info' from tcomplain to return_zero.
10835         * target.h (struct target_ops) <to_traceframe_info>: Add more
10836         comments.
10837
10838 2014-02-23  Yao Qi  <yao@codesourcery.com>
10839
10840         * valops.c (read_value_memory): Rewrite it.  Call
10841         target_xfer_partial in a loop.
10842         * exec.h (section_table_available_memory): Remove declaration.
10843         Move comments to ...
10844         * exec.c (section_table_available_memory): ... here.  Make it
10845         static.
10846
10847 2014-02-23  Yao Qi  <yao@codesourcery.com>
10848
10849         * exec.c (section_table_read_available_memory): New function.
10850         * exec.h (section_table_read_available_memory): Declare.
10851         * ctf.c (ctf_xfer_partial): Call
10852         section_table_read_available_memory.
10853         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10854
10855 2014-02-23  Yao Qi  <yao@codesourcery.com>
10856
10857         * ctf.c (ctf_xfer_partial): Move code to ...
10858         * exec.c (exec_read_partial_read_only): ... it.  New function.
10859         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10860         * tracefile.c: Include "exec.h".
10861         * exec.h (exec_read_partial_read_only): Declare.
10862
10863 2014-02-23  Yao Qi  <yao@codesourcery.com>
10864
10865         * tracefile-tfile.c (tfile_has_all_memory): Remove.
10866         (tfile_has_memory): Remove.
10867         (init_tfile_ops): Don't set fields to_has_all_memory and
10868         to_has_memory of tfile_ops.
10869         * tracefile.c (tracefile_has_all_memory): New function.
10870         (tracefile_has_memory): New function.
10871         (init_tracefile_ops): Initialize fields to_has_all_memory and
10872         to_has_memory of 'ops'.
10873
10874 2014-02-23  Yao Qi  <yao@codesourcery.com>
10875
10876         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10877         (ctf_thread_alive, ctf_get_trace_status): Remove.
10878         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
10879         init_tracefile_ops.
10880         * tracefile-tfile.c (tfile_get_trace_status): Remove.
10881         (tfile_has_stack, tfile_has_registers): Remove.
10882         (tfile_thread_alive): Remove.
10883         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
10884         init_tracefile_ops.
10885         * tracefile.c (tracefile_has_stack): New function.
10886         (tracefile_has_registers): New function.
10887         (tracefile_thread_alive): New function.
10888         (tracefile_get_trace_status): New function.
10889         (init_tracefile_ops): New function.
10890         * tracefile.h (init_tracefile_ops): Declare.
10891
10892 2014-02-23  Yao Qi  <yao@codesourcery.com>
10893
10894         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10895         (O_LARGEFILE): Likewise.
10896         (tfile_ops): Likewise.
10897         (TRACE_HEADER_SIZE): Likewise.
10898         (trace_fd, trace_frames_offset, cur_offset): Likewise.
10899         (cur_data_size): Likewise.
10900         (tfile_read, tfile_open, tfile_interp_line): Likewise.
10901         (tfile_close, tfile_files_info): Likewise.
10902         (tfile_get_trace_status): Likewise.
10903         (tfile_get_tracepoint_status): Likewise.
10904         (tfile_get_traceframe_address): Likewise.
10905         (tfile_trace_find, match_blocktype): Likewise.
10906         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10907         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10908         (tfile_get_trace_state_variable_value): Likewise.
10909         (tfile_has_all_memory, tfile_has_memory): Likewise.
10910         (tfile_has_stack, tfile_has_registers): Likewise.
10911         (tfile_thread_alive, build_traceframe_info): Likewise.
10912         (tfile_traceframe_info, init_tfile_ops): Likewise.
10913         (_initialize_tracepoint): Don't call init_tfile_ops
10914         and add_target_with_completer.
10915         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10916         exec.h, completer.h and filenames.h.
10917         (_initialize_tracefile_tfile): New function.
10918
10919 2014-02-23  Yao Qi  <yao@codesourcery.com>
10920
10921         * Makefile.in (REMOTE_OBS): Append tracefile.o and
10922         tracefile-tfile.o.
10923         (HFILES_NO_SRCDIR): Add tracefile.h.
10924         * ctf.c: Include "tracefile.h".
10925         * tracefile.h: New file.
10926         * tracefile.c: New file
10927         * tracefile-tfile.c: New file.
10928         * tracepoint.c: Include "tracefile.h".
10929         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10930         (stop_reason_names): Add const.
10931         (trace_file_writer_xfree): Move it to tracefile.c.
10932         (trace_save, trace_save_command, trace_save_tfile): Likewise.
10933         (trace_save_ctf): Likewise.
10934         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10935         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10936         (tfile_write_header, tfile_write_regblock_type): Likewise.
10937         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10938         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10939         (tfile_write_raw_data, tfile_end): Likewise.
10940         (tfile_trace_file_writer_new): Likewise.
10941         (free_uploaded_tp): Make it extern.
10942         (free_uploaded_tsv): Make it extern.
10943         (_initialize_tracepoint): Move code to register command 'tsave'
10944         to tracefile.c.
10945         * tracepoint.h (stop_reason_names): Declare.
10946         (struct trace_frame_write_ops): Move it to tracefile.h.
10947         (struct trace_file_write_ops): Likewise.
10948         (struct trace_file_writer): Likewise.
10949         (free_uploaded_tsvs, free_uploaded_tps): Declare.
10950
10951 2014-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
10952
10953         PR gdb/16594
10954         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10955         process name.
10956         (get_cores_used_by_process): New parameter num_cores, use it.
10957         (linux_xfer_osdata_processes): Pass num_cores to it.
10958         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10959         process name.
10960
10961 2014-02-21  Andreas Arnez  <arnez@vnet.linux.ibm.com>
10962
10963         * target.c (memory_xfer_partial): Fix length arg in call to
10964         breakpoint_xfer_memory.
10965
10966 2014-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
10967
10968         PR tdep/16397
10969         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10970         number comes after the + or - signs.  Adjust length of register
10971         name to be extracted.
10972
10973 2014-02-20  Tom Tromey  <tromey@redhat.com>
10974
10975         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10976         (ada_varobj_ops): Mark "extern".
10977
10978 2014-02-20  Tom Tromey  <tromey@redhat.com>
10979
10980         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10981
10982 2014-02-20  Doug Evans  <xdje42@gmail.com>
10983
10984         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10985         All callers updated.
10986         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10987         All callers updated.
10988         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10989         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10990
10991 2014-02-20  lin zuojian  <manjian2006@gmail.com>
10992             Joel Brobecker  <brobecker@adacore.com>
10993             Doug Evans  <xdje42@gmail.com>
10994
10995         PR symtab/16581
10996         * dwarf2read.c (struct die_info): New member in_process.
10997         (reset_die_in_process): New function.
10998         (process_die): Set it at the start, reset when returning.
10999         (inherit_abstract_dies): Only call process_die if origin_child_die
11000         not already being processed.
11001
11002 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11003
11004         * windows-nat.c (handle_unload_dll): Add function documentation.
11005         (do_initial_windows_stuff): Add comment explaining why we wait
11006         until after inferior initialization has finished before
11007         processing all DLLs.
11008
11009 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11010
11011         * windows-nat.c (get_module_name): Delete.
11012         (windows_get_exec_module_filename): New function, mostly
11013         inspired from get_module_name.
11014         (windows_pid_to_exec_file): Replace call to get_module_name
11015         by call to windows_get_exec_module_filename.
11016
11017 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11018
11019         * windows-nat.c (handle_load_dll): Rewrite this function's
11020         introductory comment.  Remove code using get_module_name
11021         to get the DLL's name.
11022
11023 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11024
11025         * windows-nat.c (get_windows_debug_event): Ignore
11026         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11027         if windows_initialization_done == 0.
11028         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11029         Adjust implementation to always load all DLLs.
11030         (do_initial_windows_stuff): Replace call to
11031         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11032
11033 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11034
11035         * windows-nat.c (_initialize_windows_nat): Deprecate the
11036         "dll-symbols" command.  Turn the "add-shared-symbol-files"
11037         and "assf" aliases into commands, and deprecate them as well.
11038         * NEWS: Add entry explaining that "dll-symbols" and its two
11039         aliases are now deprecated.
11040
11041 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11042
11043         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11044         new-line in debug string.  Remove trailing spaces.
11045
11046 2014-02-19  Stan Shebs  <stan@codesourcery.com>
11047
11048         * darwin-nat.c (darwin_xfer_partial): Fix return type.
11049
11050 2014-02-19  Siva Chandra Reddy  <sivachandra@google.com>
11051
11052         * NEWS: Add entry for the new feature
11053         * python/py-value.c (valpy_binop): Call value_x_binop for struct
11054         and class values.
11055
11056 2014-02-19  Stan Shebs  <stan@codesourcery.com>
11057
11058         * MAINTAINERS: List Yao Qi as nios2 maintainer.
11059
11060 2014-02-19  Pedro Alves  <palves@redhat.com>
11061
11062         * common/ptid.h (struct ptid): Mention that process_stratum
11063         targets should prefer ptid.lwp.
11064
11065 2014-02-19  Pedro Alves  <palves@redhat.com>
11066
11067         * remote.c (remote_thread_alive, write_ptid, read_ptid)
11068         (read_ptid, remote_newthread_step, remote_threads_extra_info)
11069         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11070         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11071         store remote thread ids rather than ptid.tid.
11072         (_initialize_remote): Adjust.
11073
11074 2014-02-19  Tom Tromey  <tromey@redhat.com>
11075
11076         * target.c (target_get_unwinder): Rewrite.
11077         (target_get_tailcall_unwinder): Rewrite.
11078         * record-btrace.c (record_btrace_to_get_unwinder): New function.
11079         (record_btrace_to_get_tailcall_unwinder): New function.
11080         (init_record_btrace_ops): Update.
11081         * target.h (struct target_ops) <to_get_unwinder,
11082         to_get_tailcall_unwinder>: Now function pointers.  Use
11083         TARGET_DEFAULT_RETURN.
11084
11085 2014-02-19  Tom Tromey  <tromey@redhat.com>
11086
11087         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11088         argument.
11089         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11090
11091 2014-02-19  Tom Tromey  <tromey@redhat.com>
11092
11093         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11094         directly.
11095         * target-delegates.c: Rebuild.
11096         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11097         TARGET_DEFAULT_FUNC.
11098         * target.c (default_target_decr_pc_after_break): Rename from
11099         forward_target_decr_pc_after_break.  Simplify.
11100         (target_decr_pc_after_break): Rely on delegation.
11101
11102 2014-02-19  Tom Tromey  <tromey@redhat.com>
11103
11104         * target.c (update_current_target): Do not INHERIT to_doc or
11105         to_magic.  Do not de_fault to_open or to_close.
11106
11107 2014-02-19  Tom Tromey  <tromey@redhat.com>
11108
11109         * gcore.h (objfile_find_memory_regions): Declare.
11110         * gcore.c (objfile_find_memory_regions): No longer static.  Add
11111         "self" argument.
11112         (_initialize_gcore): Don't call exec_set_find_memory_regions.
11113         * exec.c: Include gcore.h.
11114         (exec_set_find_memory_regions): Remove.
11115         (exec_find_memory_regions): Remove.
11116         (exec_do_find_memory_regions): Remove.
11117         (init_exec_ops): Update.
11118         * defs.h (exec_set_find_memory_regions): Remove.
11119
11120 2014-02-19  Tom Tromey  <tromey@redhat.com>
11121
11122         * target-delegates.c: Rebuild.
11123         * target.h (struct target_ops) <to_extra_thread_info,
11124         to_thread_name, to_pid_to_exec_file, to_get_section_table,
11125         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11126         not 0, in TARGET_DEFAULT_RETURN.
11127
11128 2014-02-19  Tom Tromey  <tromey@redhat.com>
11129
11130         * target.c (complete_target_initialization): Remove casts.  Use
11131         return_zero_has_execution.
11132         (return_zero): Add "ignore" argument.
11133         (return_zero_has_execution): New function.
11134         (init_dummy_target): Remove casts.  Use
11135         return_zero_has_execution.
11136
11137 2014-02-19  Tom Tromey  <tromey@redhat.com>
11138
11139         * target.c (update_current_target): Update comments.  Do not
11140         INHERIT to_stratum.
11141
11142 2014-02-19  Tom Tromey  <tromey@redhat.com>
11143
11144         * arm-linux-nat.c (arm_linux_read_description): Delegate when
11145         needed.
11146         * corelow.c (core_read_description): Delegate when needed.
11147         * remote.c (remote_read_description): Delegate when needed.
11148         * target-delegates.c: Rebuild.
11149         * target.c (target_read_description): Rewrite.
11150         * target.h (struct target_ops) <to_read_description>: Update
11151         comment.  Use TARGET_DEFAULT_RETURN.
11152
11153 2014-02-19  Tom Tromey  <tromey@redhat.com>
11154
11155         * target-delegates.c: Rebuild.
11156         * target.c (update_current_target): Don't inherit or default
11157         to_can_run.
11158         (find_default_run_target): Check against delegate_can_run.
11159         * target.h (struct target_ops) <to_can_run>: Use
11160         TARGET_DEFAULT_RETURN.
11161
11162 2014-02-19  Tom Tromey  <tromey@redhat.com>
11163
11164         * target-delegates.c: Rebuild.
11165         * target.c (target_disconnect): Unconditionally delegate.
11166         * target.h (struct target_ops) <to_disconnect>: Use
11167         TARGET_DEFAULT_NORETURN.
11168
11169 2014-02-19  Tom Tromey  <tromey@redhat.com>
11170
11171         * record.c (record_stop): Unconditionally delegate.
11172         * target-delegates.c: Rebuild.
11173         * target.c (target_stop_recording): Unconditionally delegate.
11174         * target.h (struct target_ops) <to_stop_recording>: Use
11175         TARGET_DEFAULT_IGNORE.
11176
11177 2014-02-19  Tom Tromey  <tromey@redhat.com>
11178
11179         * target-delegates.c: Rebuild.
11180         * target.c (target_enable_btrace): Unconditionally delegate.
11181         * target.h (struct target_ops) <to_enable_btrace>: Use
11182         TARGET_DEFAULT_NORETURN.
11183
11184 2014-02-19  Tom Tromey  <tromey@redhat.com>
11185
11186         * target-delegates.c: Rebuild.
11187         * target.c (target_read_btrace): Unconditionally delegate.
11188         * target.h (struct target_ops) <to_read_btrace>: Use
11189         TARGET_DEFAULT_NORETURN.
11190
11191 2014-02-19  Tom Tromey  <tromey@redhat.com>
11192
11193         * target-delegates.c: Rebuild.
11194         * target.c (target_teardown_btrace): Unconditionally delegate.
11195         * target.h (struct target_ops) <to_teardown_btrace>: Use
11196         TARGET_DEFAULT_NORETURN.
11197
11198 2014-02-19  Tom Tromey  <tromey@redhat.com>
11199
11200         * target-delegates.c: Rebuild.
11201         * target.c (target_disable_btrace): Unconditionally delegate.
11202         * target.h (struct target_ops) <to_disable_btrace>: Use
11203         TARGET_DEFAULT_NORETURN.
11204
11205 2014-02-19  Tom Tromey  <tromey@redhat.com>
11206
11207         * target-delegates.c: Rebuild.
11208         * target.c (default_search_memory): New function.
11209         (simple_search_memory): Update comment.
11210         (target_search_memory): Unconditionally delegate.
11211         * target.h (struct target_ops) <to_search_memory>: Use
11212         TARGET_DEFAULT_FUNC.
11213
11214 2014-02-19  Tom Tromey  <tromey@redhat.com>
11215
11216         * auxv.c (default_auxv_parse): No longer static.
11217         (target_auxv_parse): Unconditionally delegate.
11218         * auxv.h (default_auxv_parse): Declare.
11219         * target-delegates.c: Rebuild.
11220         * target.c: Include auxv.h.
11221         * target.h (struct target_ops) <to_auxv_parse>: Use
11222         TARGET_DEFAULT_FUNC.
11223
11224 2014-02-19  Tom Tromey  <tromey@redhat.com>
11225
11226         * target-delegates.c: Rebuild.
11227         * target.c (target_memory_map): Unconditionally delegate.
11228         * target.h (struct target_ops) <to_memory_map>: Use
11229         TARGET_DEFAULT_RETURN.
11230
11231 2014-02-19  Tom Tromey  <tromey@redhat.com>
11232
11233         * target-delegates.c: Rebuild.
11234         * target.c (target_thread_alive): Unconditionally delegate.
11235         * target.h (struct target_ops) <to_thread_alive>: Use
11236         TARGET_DEFAULT_RETURN.
11237
11238 2014-02-19  Tom Tromey  <tromey@redhat.com>
11239
11240         * target-delegates.c: Rebuild.
11241         * target.c (target_save_record): Unconditionally delegate.
11242         * target.h (struct target_ops) <to_save_record>: Use
11243         TARGET_DEFAULT_NORETURN.
11244
11245 2014-02-19  Tom Tromey  <tromey@redhat.com>
11246
11247         * target-delegates.c: Rebuild.
11248         * target.c (target_delete_record): Unconditionally delegate.
11249         * target.h (struct target_ops) <to_delete_record>: Use
11250         TARGET_DEFAULT_NORETURN.
11251
11252 2014-02-19  Tom Tromey  <tromey@redhat.com>
11253
11254         * target-delegates.c: Rebuild.
11255         * target.c (target_record_is_replaying): Unconditionally
11256         delegate.
11257         * target.h (struct target_ops) <to_record_is_replaying>: Use
11258         TARGET_DEFAULT_RETURN.
11259
11260 2014-02-19  Tom Tromey  <tromey@redhat.com>
11261
11262         * target-delegates.c: Rebuild.
11263         * target.c (target_goto_record_begin): Unconditionally delegate.
11264         * target.h (struct target_ops) <to_goto_record_begin>: Use
11265         TARGET_DEFAULT_NORETURN.
11266
11267 2014-02-19  Tom Tromey  <tromey@redhat.com>
11268
11269         * target-delegates.c: Rebuild.
11270         * target.c (target_goto_record_end): Unconditionally delegate.
11271         * target.h (struct target_ops) <to_goto_record_end>: Use
11272         TARGET_DEFAULT_NORETURN.
11273
11274 2014-02-19  Tom Tromey  <tromey@redhat.com>
11275
11276         * target-delegates.c: Rebuild.
11277         * target.c (target_goto_record): Unconditionally delegate.
11278         * target.h (struct target_ops) <to_goto_record>: Use
11279         TARGET_DEFAULT_NORETURN.
11280
11281 2014-02-19  Tom Tromey  <tromey@redhat.com>
11282
11283         * target-delegates.c: Rebuild.
11284         * target.c (target_insn_history): Unconditionally delegate.
11285         * target.h (struct target_ops) <to_insn_history>: Use
11286         TARGET_DEFAULT_NORETURN.
11287
11288 2014-02-19  Tom Tromey  <tromey@redhat.com>
11289
11290         * target-delegates.c: Rebuild.
11291         * target.c (target_insn_history_from): Unconditionally delegate.
11292         * target.h (struct target_ops) <to_insn_history_from>: Use
11293         TARGET_DEFAULT_NORETURN.
11294
11295 2014-02-19  Tom Tromey  <tromey@redhat.com>
11296
11297         * target-delegates.c: Rebuild.
11298         * target.c (target_insn_history_range): Unconditionally delegate.
11299         * target.h (struct target_ops) <to_insn_history_range>: Use
11300         TARGET_DEFAULT_NORETURN.
11301
11302 2014-02-19  Tom Tromey  <tromey@redhat.com>
11303
11304         * target-delegates.c: Rebuild.
11305         * target.c (target_call_history): Unconditionally delegate.
11306         * target.h (struct target_ops) <to_call_history>: Use
11307         TARGET_DEFAULT_NORETURN.
11308
11309 2014-02-19  Tom Tromey  <tromey@redhat.com>
11310
11311         * target-delegates.c: Rebuild.
11312         * target.c (target_call_history_from): Unconditionally delegate.
11313         * target.h (struct target_ops) <to_call_history_from>: Use
11314         TARGET_DEFAULT_NORETURN.
11315
11316 2014-02-19  Tom Tromey  <tromey@redhat.com>
11317
11318         * target-delegates.c: Rebuild.
11319         * target.c (target_call_history_range): Unconditionally delegate.
11320         * target.h (struct target_ops) <to_call_history_range>: Use
11321         TARGET_DEFAULT_NORETURN.
11322
11323 2014-02-19  Tom Tromey  <tromey@redhat.com>
11324
11325         * target-delegates.c: Rebuild.
11326         * target.c (target_verify_memory): Unconditionally delegate.
11327         * target.h (struct target_ops) <to_verify_memory>: Use
11328         TARGET_DEFAULT_NORETURN.
11329
11330 2014-02-19  Tom Tromey  <tromey@redhat.com>
11331
11332         * target-delegates.c: Rebuild.
11333         * target.c (target_core_of_thread): Unconditionally delegate.
11334         * target.h (struct target_ops) <to_core_of_thread>: Use
11335         TARGET_DEFAULT_RETURN.
11336
11337 2014-02-19  Tom Tromey  <tromey@redhat.com>
11338
11339         * target-delegates.c: Rebuild.
11340         * target.c (target_flash_done): Unconditionally delegate.
11341         * target.h (struct target_ops) <to_flash_done>: Use
11342         TARGET_DEFAULT_NORETURN.
11343
11344 2014-02-19  Tom Tromey  <tromey@redhat.com>
11345
11346         * target-delegates.c: Rebuild.
11347         * target.c (target_flash_erase): Unconditionally delegate.
11348         * target.h (struct target_ops) <to_flash_erase>: Use
11349         TARGET_DEFAULT_NORETURN.
11350
11351 2014-02-19  Tom Tromey  <tromey@redhat.com>
11352
11353         * target-delegates.c: Rebuild.
11354         * target.c (target_get_section_table): Unconditionally delegate.
11355         * target.h (struct target_ops) <to_get_section_table>: Use
11356         TARGET_DEFAULT_RETURN.
11357
11358 2014-02-19  Tom Tromey  <tromey@redhat.com>
11359
11360         * target-delegates.c: Rebuild.
11361         * target.c (target_pid_to_str): Unconditionally delegate.
11362         (init_dummy_target): Don't initialize to_pid_to_str.
11363         (default_pid_to_str): Rename from dummy_pid_to_str.
11364         * target.h (struct target_ops) <to_pid_to_str>: Use
11365         TARGET_DEFAULT_FUNC.
11366
11367 2014-02-19  Tom Tromey  <tromey@redhat.com>
11368
11369         * target-delegates.c: Rebuild.
11370         * target.c (target_find_new_threads): Unconditionally delegate.
11371         * target.h (struct target_ops) <to_find_new_threads>: Use
11372         TARGET_DEFAULT_RETURN.
11373
11374 2014-02-19  Tom Tromey  <tromey@redhat.com>
11375
11376         * target-delegates.c: Rebuild.
11377         * target.c (target_program_signals): Unconditionally delegate.
11378         * target.h (struct target_ops) <to_program_signals>: Use
11379         TARGET_DEFAULT_IGNORE.
11380
11381 2014-02-19  Tom Tromey  <tromey@redhat.com>
11382
11383         * target-delegates.c: Rebuild.
11384         * target.c (target_pass_signals): Unconditionally delegate.
11385         * target.h (struct target_ops) <to_pass_signals>: Use
11386         TARGET_DEFAULT_IGNORE.
11387
11388 2014-02-19  Tom Tromey  <tromey@redhat.com>
11389
11390         * target-delegates.c: Rebuild.
11391         * target.c (default_mourn_inferior): New function.
11392         (target_mourn_inferior): Unconditionally delegate.
11393         * target.h (struct target_ops) <to_mourn_inferior>: Use
11394         TARGET_DEFAULT_FUNC.
11395
11396 2014-02-19  Tom Tromey  <tromey@redhat.com>
11397
11398         * target-delegates.c: Rebuild.
11399         * target.c (default_follow_fork): New function.
11400         (target_follow_fork): Unconditionally delegate.
11401         * target.h (struct target_ops) <to_follow_fork>: Use
11402         TARGET_DEFAULT_FUNC.
11403
11404 2014-02-19  Tom Tromey  <tromey@redhat.com>
11405
11406         * target-delegates.c: Rebuild.
11407         * target.c (target_kill): Unconditionally delegate.
11408         * target.h (struct target_ops) <to_kill>: Use
11409         TARGET_DEFAULT_NORETURN.
11410
11411 2014-02-19  Tom Tromey  <tromey@redhat.com>
11412
11413         * target-delegates.c: Rebuild.
11414         * target.c (target_masked_watch_num_registers): Unconditionally
11415         delegate.
11416         * target.h (struct target_ops) <to_masked_watch_num_registers>:
11417         Use TARGET_DEFAULT_RETURN.
11418
11419 2014-02-19  Tom Tromey  <tromey@redhat.com>
11420
11421         * target-delegates.c: Rebuild.
11422         * target.c (target_remove_mask_watchpoint): Unconditionally
11423         delegate.
11424         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11425         TARGET_DEFAULT_RETURN.
11426
11427 2014-02-19  Tom Tromey  <tromey@redhat.com>
11428
11429         * target-delegates.c: Rebuild.
11430         * target.c (target_insert_mask_watchpoint): Unconditionally
11431         delegate.
11432         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11433         TARGET_DEFAULT_RETURN.
11434
11435 2014-02-19  Tom Tromey  <tromey@redhat.com>
11436
11437         * target-delegates.c: Rebuild.
11438         * target.c (target_ranged_break_num_registers): Unconditionally
11439         delegate.
11440         * target.h (struct target_ops) <to_ranged_break_num_registers>:
11441         Use TARGET_DEFAULT_RETURN.
11442
11443 2014-02-19  Tom Tromey  <tromey@redhat.com>
11444
11445         * target-delegates.c: Rebuild.
11446         * target.c (target_fetch_registers): Unconditionally delegate.
11447         * target.h (struct target_ops) <to_fetch_registers>: Use
11448         TARGET_DEFAULT_NORETURN.
11449
11450 2014-02-19  Tom Tromey  <tromey@redhat.com>
11451
11452         * target-delegates.c: Rebuild.
11453         * target.c (update_current_target): Don't inherit or default
11454         to_stop.
11455         * target.h (struct target_ops) <to_stop>: Use
11456         TARGET_DEFAULT_IGNORE.
11457
11458 2014-02-19  Tom Tromey  <tromey@redhat.com>
11459
11460         * target-delegates.c: Rebuild.
11461         * target.c (update_current_target): Don't inherit or default
11462         to_can_run_breakpoint_commands.
11463         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11464         Use TARGET_DEFAULT_RETURN.
11465
11466 2014-02-19  Tom Tromey  <tromey@redhat.com>
11467
11468         * target-delegates.c: Rebuild.
11469         * target.c (update_current_target): Don't inherit or default
11470         to_supports_evaluation_of_breakpoint_conditions.
11471         * target.h (struct target_ops)
11472         <to_supports_evaluation_of_breakpoint_conditions>: Use
11473         TARGET_DEFAULT_RETURN.
11474
11475 2014-02-19  Tom Tromey  <tromey@redhat.com>
11476
11477         * target-delegates.c: Rebuild.
11478         * target.c (update_current_target): Don't inherit or default
11479         to_augmented_libraries_svr4_read.
11480         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11481         Use TARGET_DEFAULT_RETURN.
11482
11483 2014-02-19  Tom Tromey  <tromey@redhat.com>
11484
11485         * target-delegates.c: Rebuild.
11486         * target.c (update_current_target): Don't inherit or default
11487         to_can_use_agent.
11488         * target.h (struct target_ops) <to_can_use_agent>: Use
11489         TARGET_DEFAULT_RETURN.
11490
11491 2014-02-19  Tom Tromey  <tromey@redhat.com>
11492
11493         * target-delegates.c: Rebuild.
11494         * target.c (update_current_target): Don't inherit or default
11495         to_use_agent.
11496         * target.h (struct target_ops) <to_use_agent>: Use
11497         TARGET_DEFAULT_NORETURN.
11498
11499 2014-02-19  Tom Tromey  <tromey@redhat.com>
11500
11501         * target-delegates.c: Rebuild.
11502         * target.c (update_current_target): Don't inherit or default
11503         to_traceframe_info.
11504         (return_null): Remove.
11505         * target.h (struct target_ops) <to_traceframe_info>: Use
11506         TARGET_DEFAULT_RETURN.
11507
11508 2014-02-19  Tom Tromey  <tromey@redhat.com>
11509
11510         * target-delegates.c: Rebuild.
11511         * target.c (update_current_target): Don't inherit or default
11512         to_static_tracepoint_markers_by_strid.
11513         * target.h (struct target_ops)
11514         <to_static_tracepoint_markers_by_strid>: Use
11515         TARGET_DEFAULT_NORETURN.
11516
11517 2014-02-19  Tom Tromey  <tromey@redhat.com>
11518
11519         * target-delegates.c: Rebuild.
11520         * target.c (update_current_target): Don't inherit or default
11521         to_static_tracepoint_marker_at.
11522         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11523         Use TARGET_DEFAULT_RETURN.
11524
11525 2014-02-19  Tom Tromey  <tromey@redhat.com>
11526
11527         * target-delegates.c: Rebuild.
11528         * target.c (update_current_target): Don't inherit or default
11529         to_set_permissions.
11530         * target.h (struct target_ops) <to_set_permissions>: Use
11531         TARGET_DEFAULT_IGNORE.
11532
11533 2014-02-19  Tom Tromey  <tromey@redhat.com>
11534
11535         * target-delegates.c: Rebuild.
11536         * target.c (update_current_target): Don't inherit or default
11537         to_get_tib_address.
11538         * target.h (struct target_ops) <to_get_tib_address>: Use
11539         TARGET_DEFAULT_NORETURN.
11540
11541 2014-02-19  Tom Tromey  <tromey@redhat.com>
11542
11543         * target-delegates.c: Rebuild.
11544         * target.c (update_current_target): Don't inherit or default
11545         to_set_trace_notes.
11546         * target.h (struct target_ops) <to_set_trace_notes>: Use
11547         TARGET_DEFAULT_RETURN.
11548
11549 2014-02-19  Tom Tromey  <tromey@redhat.com>
11550
11551         * target-delegates.c: Rebuild.
11552         * target.c (update_current_target): Don't initialize
11553         to_set_trace_buffer_size.
11554         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11555         TARGET_DEFAULT_IGNORE.
11556
11557 2014-02-19  Tom Tromey  <tromey@redhat.com>
11558
11559         * target-delegates.c: Rebuild.
11560         * target.c (update_current_target): Don't inherit or default
11561         to_set_circular_trace_buffer.
11562         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11563         TARGET_DEFAULT_IGNORE.
11564
11565 2014-02-19  Tom Tromey  <tromey@redhat.com>
11566
11567         * target-delegates.c: Rebuild.
11568         * target.c (update_current_target): Don't inherit or default
11569         to_set_disconnected_tracing.
11570         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11571         TARGET_DEFAULT_IGNORE.
11572
11573 2014-02-19  Tom Tromey  <tromey@redhat.com>
11574
11575         * target-delegates.c: Rebuild.
11576         * target.c (update_current_target): Don't inherit or default
11577         to_get_min_fast_tracepoint_insn_len.
11578         (return_minus_one): Remove.
11579         * target.h (struct target_ops)
11580         <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11581
11582 2014-02-19  Tom Tromey  <tromey@redhat.com>
11583
11584         * target-delegates.c: Rebuild.
11585         * target.c (update_current_target): Don't inherit or default
11586         to_get_raw_trace_data.
11587         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11588         TARGET_DEFAULT_NORETURN.
11589
11590 2014-02-19  Tom Tromey  <tromey@redhat.com>
11591
11592         * target-delegates.c: Rebuild.
11593         * target.c (update_current_target): Don't inherit or default
11594         to_upload_trace_state_variables.
11595         * target.h (struct target_ops) <to_upload_trace_state_variables>:
11596         Use TARGET_DEFAULT_RETURN.
11597
11598 2014-02-19  Tom Tromey  <tromey@redhat.com>
11599
11600         * target-delegates.c: Rebuild.
11601         * target.c (update_current_target): Don't inherit or default
11602         to_upload_tracepoints.
11603         * target.h (struct target_ops) <to_upload_tracepoints>: Use
11604         TARGET_DEFAULT_RETURN.
11605
11606 2014-02-19  Tom Tromey  <tromey@redhat.com>
11607
11608         * target-delegates.c: Rebuild.
11609         * target.c (update_current_target): Don't inherit or default
11610         to_save_trace_data.
11611         * target.h (struct target_ops) <to_save_trace_data>: Use
11612         TARGET_DEFAULT_NORETURN.
11613
11614 2014-02-19  Tom Tromey  <tromey@redhat.com>
11615
11616         * target-delegates.c: Rebuild.
11617         * target.c (update_current_target): Don't inherit or default
11618         to_get_trace_state_variable_value.
11619         * target.h (struct target_ops)
11620         <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11621
11622 2014-02-19  Tom Tromey  <tromey@redhat.com>
11623
11624         * target-delegates.c: Rebuild.
11625         * target.c (update_current_target): Don't inherit or default
11626         to_trace_find.
11627         * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11628
11629 2014-02-19  Tom Tromey  <tromey@redhat.com>
11630
11631         * target-delegates.c: Rebuild.
11632         * target.c (update_current_target): Don't inherit or default
11633         to_trace_stop.
11634         * target.h (struct target_ops) <to_trace_stop>: Use
11635         TARGET_DEFAULT_NORETURN.
11636
11637 2014-02-19  Tom Tromey  <tromey@redhat.com>
11638
11639         * target-delegates.c: Rebuild.
11640         * target.c (update_current_target): Don't inherit or default
11641         to_get_tracepoint_status.
11642         * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11643         TARGET_DEFAULT_NORETURN.
11644
11645 2014-02-19  Tom Tromey  <tromey@redhat.com>
11646
11647         * target-delegates.c: Rebuild.
11648         * target.c (update_current_target): Don't inherit or default
11649         to_get_trace_status.
11650         * target.h (struct target_ops) <to_get_trace_status>: Use
11651         TARGET_DEFAULT_RETURN.
11652
11653 2014-02-19  Tom Tromey  <tromey@redhat.com>
11654
11655         * target-delegates.c: Rebuild.
11656         * target.c (update_current_target): Don't inherit or default
11657         to_trace_start.
11658         * target.h (struct target_ops) <to_trace_start>: Use
11659         TARGET_DEFAULT_NORETURN.
11660
11661 2014-02-19  Tom Tromey  <tromey@redhat.com>
11662
11663         * target-delegates.c: Rebuild.
11664         * target.c (update_current_target): Don't inherit or default
11665         to_trace_set_readonly_regions.
11666         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11667         Use TARGET_DEFAULT_NORETURN.
11668
11669 2014-02-19  Tom Tromey  <tromey@redhat.com>
11670
11671         * target-delegates.c: Rebuild.
11672         * target.c (update_current_target): Don't inherit or default
11673         to_disable_tracepoint.
11674         * target.h (struct target_ops) <to_disable_tracepoint>: Use
11675         TARGET_DEFAULT_NORETURN.
11676
11677 2014-02-19  Tom Tromey  <tromey@redhat.com>
11678
11679         * target-delegates.c: Rebuild.
11680         * target.c (update_current_target): Don't inherit or default
11681         to_enable_tracepoint.
11682         * target.h (struct target_ops) <to_enable_tracepoint>: Use
11683         TARGET_DEFAULT_NORETURN.
11684
11685 2014-02-19  Tom Tromey  <tromey@redhat.com>
11686
11687         * target-delegates.c: Rebuild.
11688         * target.c (update_current_target): Don't inherit or default
11689         to_download_trace_state_variable.
11690         * target.h (struct target_ops) <to_download_trace_state_variable>:
11691         Use TARGET_DEFAULT_NORETURN.
11692
11693 2014-02-19  Tom Tromey  <tromey@redhat.com>
11694
11695         * target-delegates.c: Rebuild.
11696         * target.c (update_current_target): Don't inherit or default
11697         to_can_download_tracepoint.
11698         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11699         TARGET_DEFAULT_RETURN.
11700
11701 2014-02-19  Tom Tromey  <tromey@redhat.com>
11702
11703         * target-delegates.c: Rebuild.
11704         * target.c (update_current_target): Don't inherit or default
11705         to_download_tracepoint.
11706         * target.h (struct target_ops) <to_download_tracepoint>: Use
11707         TARGET_DEFAULT_NORETURN.
11708
11709 2014-02-19  Tom Tromey  <tromey@redhat.com>
11710
11711         * target-delegates.c: Rebuild.
11712         * target.c (update_current_target): Don't inherit or default
11713         to_trace_init.
11714         * target.h (struct target_ops) <to_trace_init>: Use
11715         TARGET_DEFAULT_RETURN.
11716
11717 2014-02-19  Tom Tromey  <tromey@redhat.com>
11718
11719         * target-delegates.c: Rebuild.
11720         * target.c (update_current_target): Don't inherit or default
11721         to_supports_string_tracing.
11722         * target.h (struct target_ops) <to_supports_string_tracing>: Use
11723         TARGET_DEFAULT_RETURN.
11724
11725 2014-02-19  Tom Tromey  <tromey@redhat.com>
11726
11727         * target-delegates.c: Rebuild.
11728         * target.c (update_current_target): Don't inherit or default
11729         to_supports_enable_disable_tracepoint.
11730         * target.h (struct target_ops)
11731         <to_supports_enable_disable_tracepoint>: Use
11732         TARGET_DEFAULT_RETURN.
11733
11734 2014-02-19  Tom Tromey  <tromey@redhat.com>
11735
11736         * target-delegates.c: Rebuild.
11737         * target.c (update_current_target): Don't inherit or default
11738         to_supports_multi_process.
11739         * target.h (struct target_ops) <to_supports_multi_process>: Use
11740         TARGET_DEFAULT_RETURN.
11741
11742 2014-02-19  Tom Tromey  <tromey@redhat.com>
11743
11744         * target-delegates.c: Rebuild.
11745         * target.c (update_current_target): Don't inherit or default
11746         to_get_ada_task_ptid.
11747         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11748         TARGET_DEFAULT_FUNC.
11749
11750 2014-02-19  Tom Tromey  <tromey@redhat.com>
11751
11752         * target-delegates.c: Rebuild.
11753         * target.c (update_current_target): Don't inherit or default
11754         to_thread_architecture.
11755         * target.h (struct target_ops) <to_thread_architecture>: Use
11756         TARGET_DEFAULT_FUNC.
11757
11758 2014-02-19  Tom Tromey  <tromey@redhat.com>
11759
11760         * target-delegates.c: Rebuild.
11761         * target.c (update_current_target): Don't inherit or default
11762         to_execution_direction.
11763         * target.h (struct target_ops) <to_execution_direction>: Use
11764         TARGET_DEFAULT_FUNC.
11765
11766 2014-02-19  Tom Tromey  <tromey@redhat.com>
11767
11768         * target-delegates.c: Rebuild.
11769         * target.c (update_current_target): Don't inherit or default
11770         to_can_execute_reverse.
11771         * target.h (struct target_ops) <to_can_execute_reverse>: Use
11772         TARGET_DEFAULT_RETURN.
11773         (target_can_execute_reverse): Unconditionally delegate.
11774
11775 2014-02-19  Tom Tromey  <tromey@redhat.com>
11776
11777         * target-delegates.c: Rebuild.
11778         * target.c (update_current_target): Don't inherit or default
11779         to_goto_bookmark.
11780         (dummy_goto_bookmark): Remove.
11781         (init_dummy_target): Don't inherit or default to_goto_bookmark.
11782         * target.h (struct target_ops) <to_goto_bookmark>: Use
11783         TARGET_DEFAULT_NORETURN.
11784
11785 2014-02-19  Tom Tromey  <tromey@redhat.com>
11786
11787         * target-delegates.c: Rebuild.
11788         * target.c (update_current_target): Don't inherit or default
11789         to_get_bookmark.
11790         (dummy_get_bookmark): Remove.
11791         (init_dummy_target): Don't inherit or default to_get_bookmark.
11792         * target.h (struct target_ops) <to_get_bookmark>: Use
11793         TARGET_DEFAULT_NORETURN
11794
11795 2014-02-19  Tom Tromey  <tromey@redhat.com>
11796
11797         * target-delegates.c: Rebuild.
11798         * target.c (update_current_target): Don't inherit or default
11799         to_make_corefile_notes.
11800         (init_dummy_target): Don't initialize to_make_corefile_notes.
11801         * target.h (struct target_ops) <to_make_corefile_notes>: Use
11802         TARGET_DEFAULT_FUNC.
11803
11804 2014-02-19  Tom Tromey  <tromey@redhat.com>
11805
11806         * target-delegates.c: Rebuild.
11807         * target.c (update_current_target): Don't inherit or default
11808         to_find_memory_regions.
11809         (init_dummy_target): Don't initialize to_find_memory_regions.
11810         * target.h (struct target_ops) <to_find_memory_regions>: Use
11811         TARGET_DEFAULT_FUNC.
11812
11813 2014-02-19  Tom Tromey  <tromey@redhat.com>
11814
11815         * target-delegates.c: Rebuild.
11816         * target.c (update_current_target): Don't inherit or default
11817         to_log_command.
11818         * target.h (struct target_ops) <to_log_command>: Use
11819         TARGET_DEFAULT_IGNORE.
11820         (target_log_command): Unconditionally delegate.
11821
11822 2014-02-19  Tom Tromey  <tromey@redhat.com>
11823
11824         * target-delegates.c: Rebuild.
11825         * target.c (update_current_target): Don't inherit or default
11826         to_pid_to_exec_file.
11827         * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11828         TARGET_DEFAULT_RETURN.
11829
11830 2014-02-19  Tom Tromey  <tromey@redhat.com>
11831
11832         * target-delegates.c: Rebuild.
11833         * target.c (update_current_target): Don't inherit or default
11834         to_thread_name.
11835         (target_thread_name): Unconditionally delegate.
11836         * target.h (struct target_ops) <to_thread_name>: Use
11837         TARGET_DEFAULT_RETURN.
11838
11839 2014-02-19  Tom Tromey  <tromey@redhat.com>
11840
11841         * target-delegates.c: Rebuild.
11842         * target.c (update_current_target): Don't inherit or default
11843         to_extra_thread_info.
11844         * target.h (struct target_ops) <to_extra_thread_info>: Use
11845         TARGET_DEFAULT_RETURN.
11846
11847 2014-02-19  Tom Tromey  <tromey@redhat.com>
11848
11849         * target-delegates.c: Rebuild.
11850         * target.c (update_current_target): Don't inherit or default
11851         to_has_exited.
11852         * target.h (struct target_ops) <to_has_exited>: Use
11853         TARGET_DEFAULT_RETURN..
11854
11855 2014-02-19  Tom Tromey  <tromey@redhat.com>
11856
11857         * target-delegates.c: Rebuild.
11858         * target.c (update_current_target): Don't inherit or default
11859         to_set_syscall_catchpoint.
11860         (return_one): Remove.
11861         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11862         TARGET_DEFAULT_RETURN.
11863
11864 2014-02-19  Tom Tromey  <tromey@redhat.com>
11865
11866         * target-delegates.c: Rebuild.
11867         * target.c (update_current_target): Don't inherit or default
11868         to_insert_exec_catchpoint.
11869         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11870         TARGET_DEFAULT_RETURN.
11871
11872 2014-01-08  Tom Tromey  <tromey@redhat.com>
11873
11874         * target-delegates.c: Rebuild.
11875         * target.c (update_current_target): Don't inherit or default
11876         to_insert_exec_catchpoint.
11877         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11878         TARGET_DEFAULT_RETURN.
11879
11880 2014-02-19  Tom Tromey  <tromey@redhat.com>
11881
11882         * target-delegates.c: Rebuild.
11883         * target.c (update_current_target): Don't inherit or default
11884         to_remove_vfork_catchpoint.
11885         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11886         TARGET_DEFAULT_RETURN.
11887
11888 2014-02-19  Tom Tromey  <tromey@redhat.com>
11889
11890         * target-delegates.c: Rebuild.
11891         * target.c (update_current_target): Don't inherit or default
11892         to_insert_vfork_catchpoint.
11893         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11894         TARGET_DEFAULT_RETURN.
11895
11896 2014-02-19  Tom Tromey  <tromey@redhat.com>
11897
11898         * target-delegates.c: Rebuild.
11899         * target.c (update_current_target): Don't inherit or default
11900         to_remove_fork_catchpoint.
11901         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11902         TARGET_DEFAULT_RETURN.
11903
11904 2014-02-19  Tom Tromey  <tromey@redhat.com>
11905
11906         * target-delegates.c: Rebuild.
11907         * target.c (update_current_target): Don't inherit or default
11908         to_insert_fork_catchpoint.
11909         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11910         TARGET_DEFAULT_RETURN.
11911
11912 2014-02-19  Tom Tromey  <tromey@redhat.com>
11913
11914         * target-delegates.c: Rebuild.
11915         * target.c (update_current_target): Don't inherit or default
11916         to_post_startup_inferior.
11917         * target.h (struct target_ops) <to_post_startup_inferior>: Use
11918         TARGET_DEFAULT_IGNORE.
11919
11920 2014-02-19  Tom Tromey  <tromey@redhat.com>
11921
11922         * target-delegates.c: Rebuild.
11923         * target.c (update_current_target): Don't inherit or default
11924         to_load.
11925         * target.h (struct target_ops) <to_load>: Use
11926         TARGET_DEFAULT_NORETURN.
11927
11928 2014-02-19  Tom Tromey  <tromey@redhat.com>
11929
11930         * target-delegates.c: Rebuild.
11931         * target.c (update_current_target): Don't inherit or default
11932         to_terminal_info.
11933         * target.h (struct target_ops) <to_terminal_info>: Use
11934         TARGET_DEFAULT_FUNC.
11935
11936 2014-02-19  Tom Tromey  <tromey@redhat.com>
11937
11938         * target-delegates.c: Rebuild.
11939         * target.c (update_current_target): Don't inherit or default
11940         to_terminal_save_ours.
11941         * target.h (struct target_ops) <to_terminal_save_ours>: Use
11942         TARGET_DEFAULT_IGNORE.
11943
11944 2014-02-19  Tom Tromey  <tromey@redhat.com>
11945
11946         * target-delegates.c: Rebuild.
11947         * target.c (update_current_target): Don't inherit or default
11948         to_terminal_ours.
11949         * target.h (struct target_ops) <to_terminal_ours>: Use
11950         TARGET_DEFAULT_IGNORE.
11951
11952 2014-02-19  Tom Tromey  <tromey@redhat.com>
11953
11954         * target-delegates.c: Rebuild.
11955         * target.c (update_current_target): Don't inherit or default
11956         to_terminal_ours_for_output.
11957         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11958         TARGET_DEFAULT_IGNORE.
11959
11960 2014-02-19  Tom Tromey  <tromey@redhat.com>
11961
11962         * target-delegates.c: Rebuild.
11963         * target.c (update_current_target): Don't inherit or default
11964         to_terminal_inferior.
11965         * target.h (struct target_ops) <to_terminal_inferior>: Use
11966         TARGET_DEFAULT_IGNORE.
11967
11968 2014-02-19  Tom Tromey  <tromey@redhat.com>
11969
11970         * target-delegates.c: Rebuild.
11971         * target.c (update_current_target): Don't inherit or default
11972         to_terminal_init.
11973         * target.h (struct target_ops) <to_terminal_init>: Use
11974         TARGET_DEFAULT_IGNORE.
11975
11976 2014-02-19  Tom Tromey  <tromey@redhat.com>
11977
11978         * target-delegates.c: Rebuild.
11979         * target.c (update_current_target): Don't inherit or default
11980         to_can_accel_watchpoint_condition.
11981         * target.h (struct target_ops)
11982         <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11983
11984 2014-02-19  Tom Tromey  <tromey@redhat.com>
11985
11986         * target-delegates.c: Rebuild.
11987         * target.c (update_current_target): Don't inherit or default
11988         to_region_ok_for_hw_watchpoint.
11989         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11990         Use TARGET_DEFAULT_FUNC.
11991
11992 2014-02-19  Tom Tromey  <tromey@redhat.com>
11993
11994         * target-delegates.c: Rebuild.
11995         * target.c (update_current_target): Don't inherit or default
11996         to_watchpoint_addr_within_range.
11997         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11998         Use TARGET_DEFAULT_FUNC.
11999
12000 2014-02-19  Tom Tromey  <tromey@redhat.com>
12001
12002         * target-delegates.c: Rebuild.
12003         * target.c (update_current_target): Don't inherit or default
12004         to_remove_watchpoint.
12005         * target.h (struct target_ops) <to_remove_watchpoint>: Use
12006         TARGET_DEFAULT_NORETURN.
12007
12008 2014-02-19  Tom Tromey  <tromey@redhat.com>
12009
12010         * target-delegates.c: Rebuild.
12011         * target.c (update_current_target): Don't inherit or default
12012         to_insert_watchpoint.
12013         * target.h (struct target_ops) <to_insert_watchpoint>: Use
12014         TARGET_DEFAULT_RETURN.
12015
12016 2014-02-19  Tom Tromey  <tromey@redhat.com>
12017
12018         * target-delegates.c: Rebuild.
12019         * target.c (update_current_target): Don't inherit or default
12020         to_remove_hw_breakpoint.
12021         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12022         TARGET_DEFAULT_RETURN.
12023
12024 2014-02-19  Tom Tromey  <tromey@redhat.com>
12025
12026         * target-delegates.c: Rebuild.
12027         * target.c (update_current_target): Don't inherit or default
12028         to_insert_hw_breakpoint.
12029         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12030         TARGET_DEFAULT_RETURN.
12031
12032 2014-02-19  Tom Tromey  <tromey@redhat.com>
12033
12034         * target-delegates.c: Rebuild.
12035         * target.c (update_current_target): Don't inherit or default
12036         to_can_use_hw_breakpoint.
12037         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12038         TARGET_DEFAULT_RETURN.
12039
12040 2014-02-19  Tom Tromey  <tromey@redhat.com>
12041
12042         * target-delegates.c: Rebuild.
12043         * target.c (update_current_target): Don't inherit or default
12044         to_files_info.
12045         * target.h (struct target_ops) <to_files_info>: Use
12046         TARGET_DEFAULT_IGNORE.
12047
12048 2014-02-19  Tom Tromey  <tromey@redhat.com>
12049
12050         * target-delegates.c: Rebuild.
12051         * target.c (update_current_target): Don't inherit or default
12052         to_store.
12053         * target.h (struct target_ops) <to_store>: Use
12054         TARGET_DEFAULT_NORETURN.
12055
12056 2014-02-19  Tom Tromey  <tromey@redhat.com>
12057
12058         * target-delegates.c: Rebuild.
12059         * target.c (update_current_target): Don't inherit or default
12060         to_post_attach.
12061         * target.h (struct target_ops) <to_post_attach>: Use
12062         TARGET_DEFAULT_IGNORE.
12063
12064 2014-02-19  Tom Tromey  <tromey@redhat.com>
12065
12066         * target-delegates.c: Rebuild.
12067         * target.c (update_current_target): Don't inherit or default
12068         to_rcmd.
12069         (default_rcmd): New function.
12070         (do_monitor_command): Unconditionally delegate.
12071         * target.h (struct target_ops) <to_rmcd>: Use
12072         TARGET_DEFAULT_FUNC.
12073
12074 2014-02-19  Tom Tromey  <tromey@redhat.com>
12075
12076         * target-delegates.c: Rebuild.
12077         * target.c (init_dummy_target): Don't initialize to_attach.
12078         (target_attach): Unconditionally delegate.
12079         * target.h (struct target_ops) <to_attach>: Use
12080         TARGET_DEFAULT_FUNC.
12081
12082 2014-02-19  Tom Tromey  <tromey@redhat.com>
12083
12084         * target-delegates.c: Rebuild.
12085         * target.c (target_detach): Unconditionally delegate.
12086         (init_dummy_target): Don't initialize to_detach.
12087         * target.h (struct target_ops) <to_detach>: Use
12088         TARGET_DEFAULT_IGNORE.
12089
12090 2014-02-19  Tom Tromey  <tromey@redhat.com>
12091
12092         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12093         Add argument.
12094         (target_augmented_libraries_svr4_read): Add argument.
12095         * target.c (update_current_target): Update.
12096         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12097         argument.
12098
12099 2014-02-19  Tom Tromey  <tromey@redhat.com>
12100
12101         * target.h (struct target_ops) <to_call_history_range>: Add
12102         argument.
12103         * target.c (target_call_history_range): Add argument.
12104         * record-btrace.c (record_btrace_call_history_range): Add 'self'
12105         argument.
12106         (record_btrace_call_history_from): Update.
12107
12108 2014-02-19  Tom Tromey  <tromey@redhat.com>
12109
12110         * target.h (struct target_ops) <to_call_history_from>: Add
12111         argument.
12112         * target.c (target_call_history_from): Add argument.
12113         * record-btrace.c (record_btrace_call_history_from): Add 'self'
12114         argument.
12115
12116 2014-02-19  Tom Tromey  <tromey@redhat.com>
12117
12118         * target.h (struct target_ops) <to_call_history>: Add argument.
12119         * target.c (target_call_history): Add argument.
12120         * record-btrace.c (record_btrace_call_history): Add 'self'
12121         argument.
12122
12123 2014-02-19  Tom Tromey  <tromey@redhat.com>
12124
12125         * target.h (struct target_ops) <to_insn_history_range>: Add
12126         argument.
12127         * target.c (target_insn_history_range): Add argument.
12128         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12129         argument.
12130         (record_btrace_insn_history_from): Update.
12131
12132 2014-02-19  Tom Tromey  <tromey@redhat.com>
12133
12134         * target.h (struct target_ops) <to_insn_history_from>: Add
12135         argument.
12136         * target.c (target_insn_history_from): Add argument.
12137         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12138         argument.
12139
12140 2014-02-19  Tom Tromey  <tromey@redhat.com>
12141
12142         * target.h (struct target_ops) <to_insn_history>: Add argument.
12143         * target.c (target_insn_history): Add argument.
12144         * record-btrace.c (record_btrace_insn_history): Add 'self'
12145         argument.
12146
12147 2014-02-19  Tom Tromey  <tromey@redhat.com>
12148
12149         * target.h (struct target_ops) <to_goto_record>: Add argument.
12150         * target.c (target_goto_record): Add argument.
12151         * record-full.c (record_full_goto): Add 'self' argument.
12152         * record-btrace.c (record_btrace_goto): Add 'self' argument.
12153
12154 2014-02-19  Tom Tromey  <tromey@redhat.com>
12155
12156         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12157         * target.c (target_goto_record_end): Add argument.
12158         * record-full.c (record_full_goto_end): Add 'self' argument.
12159         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12160
12161 2014-02-19  Tom Tromey  <tromey@redhat.com>
12162
12163         * target.h (struct target_ops) <to_goto_record_begin>: Add
12164         argument.
12165         * target.c (target_goto_record_begin): Add argument.
12166         * record-full.c (record_full_goto_begin): Add 'self' argument.
12167         * record-btrace.c (record_btrace_goto_begin): Add 'self'
12168         argument.
12169
12170 2014-02-19  Tom Tromey  <tromey@redhat.com>
12171
12172         * target.h (struct target_ops) <to_record_is_replaying>: Add
12173         argument.
12174         * target.c (target_record_is_replaying): Add argument.
12175         * record-full.c (record_full_is_replaying): Add 'self' argument.
12176         * record-btrace.c (record_btrace_is_replaying): Add 'self'
12177         argument.
12178         (record_btrace_xfer_partial, record_btrace_store_registers)
12179         (record_btrace_prepare_to_store, record_btrace_resume)
12180         (record_btrace_wait, record_btrace_decr_pc_after_break)
12181         (record_btrace_find_new_threads, record_btrace_thread_alive):
12182         Update.
12183
12184 2014-02-19  Tom Tromey  <tromey@redhat.com>
12185
12186         * target.h (struct target_ops) <to_delete_record>: Add argument.
12187         * target.c (target_delete_record): Add argument.
12188         * record-full.c (record_full_delete): Add 'self' argument.
12189
12190 2014-02-19  Tom Tromey  <tromey@redhat.com>
12191
12192         * target.h (struct target_ops) <to_save_record>: Add argument.
12193         * target.c (target_save_record): Add argument.
12194         * record-full.c (record_full_save): Add 'self' argument.
12195         (record_full_save): Add 'self' argument.
12196
12197 2014-02-19  Tom Tromey  <tromey@redhat.com>
12198
12199         * target.h (struct target_ops) <to_info_record>: Add argument.
12200         * target.c (target_info_record): Add argument.
12201         * record.c (info_record_command): Add argument.
12202         * record-full.c (record_full_info): Add 'self' argument.
12203         * record-btrace.c (record_btrace_info): Add 'self' argument.
12204
12205 2014-02-19  Tom Tromey  <tromey@redhat.com>
12206
12207         * target.h (struct target_ops) <to_stop_recording>: Add argument.
12208         * target.c (target_stop_recording): Add argument.
12209         * record.c (record_stop): Add argument.
12210         * record-btrace.c (record_btrace_stop_recording): Add 'self'
12211         argument.
12212
12213 2014-02-19  Tom Tromey  <tromey@redhat.com>
12214
12215         * target.h (struct target_ops) <to_read_btrace>: Add argument.
12216         * target.c (struct target_ops) <to_read_btrace>: Add argument.
12217         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12218         argument.
12219         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12220         (_initialize_amd64_linux_nat): Use it.
12221         * i386-linux-nat.c (i386_linux_read_btrace): New function.
12222         (_initialize_i386_linux_nat): Use it.
12223
12224 2014-02-19  Tom Tromey  <tromey@redhat.com>
12225
12226         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12227         * target.c (target_teardown_btrace): Add argument.
12228         * remote.c (remote_teardown_btrace): Add 'self' argument.
12229         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12230         argument.
12231         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12232         argument.
12233
12234 2014-02-19  Tom Tromey  <tromey@redhat.com>
12235
12236         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12237         * target.c (target_disable_btrace): Add argument.
12238         * remote.c (remote_disable_btrace): Add 'self' argument.
12239         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12240         argument.
12241         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12242         argument.
12243
12244 2014-02-19  Tom Tromey  <tromey@redhat.com>
12245
12246         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12247         * target.c (target_enable_btrace): Add argument.
12248         * remote.c (remote_enable_btrace): Add 'self' argument.
12249         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12250         argument.
12251         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12252         argument.
12253
12254 2014-02-19  Tom Tromey  <tromey@redhat.com>
12255
12256         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12257         (target_can_use_agent): Add argument.
12258         * target.c (update_current_target): Update.
12259         * remote.c (remote_can_use_agent): Add 'self' argument.
12260         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12261
12262 2014-02-19  Tom Tromey  <tromey@redhat.com>
12263
12264         * target.h (struct target_ops) <to_use_agent>: Add argument.
12265         (target_use_agent): Add argument.
12266         * target.c (update_current_target): Update.
12267         * remote.c (remote_use_agent): Add 'self' argument.
12268         * inf-child.c (inf_child_use_agent): Add 'self' argument.
12269
12270 2014-02-19  Tom Tromey  <tromey@redhat.com>
12271
12272         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12273         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12274         (target_traceframe_info): Add argument.
12275         * target.c (update_current_target): Update.
12276         * remote.c (remote_traceframe_info): Add 'self' argument.
12277         * ctf.c (ctf_traceframe_info): Add 'self' argument.
12278
12279 2014-02-19  Tom Tromey  <tromey@redhat.com>
12280
12281         * target.h (target_static_tracepoint_markers_by_strid): Add
12282         argument.
12283         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12284         'self' argument.
12285         * target.c (update_current_target): Update.
12286         * remote.c (struct target_ops)
12287         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12288         * linux-nat.c (struct target_ops)
12289         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12290
12291 2014-02-19  Tom Tromey  <tromey@redhat.com>
12292
12293         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12294         Add argument.
12295         (target_static_tracepoint_marker_at): Add argument.
12296         * target.c (update_current_target): Update.
12297         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12298         argument.
12299
12300 2014-02-19  Tom Tromey  <tromey@redhat.com>
12301
12302         * target.h (struct target_ops) <to_set_permissions>: Add argument.
12303         (target_set_permissions): Add argument.
12304         * target.c (update_current_target): Update.
12305         * remote.c (remote_set_permissions): Add 'self' argument.
12306         (remote_start_remote): Update.
12307
12308 2014-02-19  Tom Tromey  <tromey@redhat.com>
12309
12310         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12311         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12312         (target_get_tib_address): Add argument.
12313         * target.c (update_current_target): Update.
12314         * remote.c (remote_get_tib_address): Add 'self' argument.
12315
12316 2014-02-19  Tom Tromey  <tromey@redhat.com>
12317
12318         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12319         (target_set_trace_notes): Add argument.
12320         * target.c (update_current_target): Update.
12321         * remote.c (remote_set_trace_notes): Add 'self' argument.
12322
12323 2014-02-19  Tom Tromey  <tromey@redhat.com>
12324
12325         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12326         argument.
12327         (target_set_trace_buffer_size): Add argument.
12328         * target.c (update_current_target): Update.
12329         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12330
12331 2014-02-19  Tom Tromey  <tromey@redhat.com>
12332
12333         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12334         argument.
12335         (target_set_circular_trace_buffer): Add argument.
12336         * target.c (update_current_target): Update.
12337         * remote.c (remote_set_circular_trace_buffer): Add 'self'
12338         argument.
12339
12340 2014-02-19  Tom Tromey  <tromey@redhat.com>
12341
12342         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12343         argument.
12344         (target_set_disconnected_tracing): Add argument.
12345         * target.c (update_current_target): Update.
12346         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12347
12348 2014-02-19  Tom Tromey  <tromey@redhat.com>
12349
12350         * target.h (struct target_ops)
12351         <to_get_min_fast_tracepoint_insn_len>: Add argument.
12352         (target_get_min_fast_tracepoint_insn_len): Add argument.
12353         * target.c (update_current_target): Update.
12354         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12355         argument.
12356
12357 2014-02-19  Tom Tromey  <tromey@redhat.com>
12358
12359         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12360         argument.
12361         (target_get_raw_trace_data): Add argument.
12362         * target.c (update_current_target): Update.
12363         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12364
12365 2014-02-19  Tom Tromey  <tromey@redhat.com>
12366
12367         * target.h (struct target_ops) <to_upload_trace_state_variables>:
12368         Add argument.
12369         (target_upload_trace_state_variables): Add argument.
12370         * target.c (update_current_target): Update.
12371         * remote.c (remote_upload_trace_state_variables): Add 'self'
12372         argument.
12373         (remote_start_remote): Update.
12374
12375 2014-02-19  Tom Tromey  <tromey@redhat.com>
12376
12377         * target.h (struct target_ops) <to_upload_tracepoints>: Add
12378         argument.
12379         (target_upload_tracepoints): Add argument.
12380         * target.c (update_current_target): Update.
12381         * remote.c (remote_upload_tracepoints): Add 'self' argument.
12382         (remote_start_remote): Update.
12383
12384 2014-02-19  Tom Tromey  <tromey@redhat.com>
12385
12386         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12387         (target_save_trace_data): Add argument.
12388         * target.c (update_current_target): Update.
12389         * remote.c (remote_save_trace_data): Add 'self' argument.
12390
12391 2014-02-19  Tom Tromey  <tromey@redhat.com>
12392
12393         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12394         argument.
12395         * target.h (struct target_ops)
12396         <to_get_trace_state_variable_value>: Add argument.
12397         (target_get_trace_state_variable_value): Add argument.
12398         * target.c (update_current_target): Update.
12399         * remote.c (remote_get_trace_state_variable_value): Add 'self'
12400         argument.
12401         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12402
12403 2014-02-19  Tom Tromey  <tromey@redhat.com>
12404
12405         * tracepoint.c (tfile_trace_find): Add 'self' argument.
12406         * target.h (struct target_ops) <to_trace_find>: Add argument.
12407         (target_trace_find): Add argument.
12408         * target.c (update_current_target): Update.
12409         * remote.c (remote_trace_find): Add 'self' argument.
12410         * ctf.c (ctf_trace_find): Add 'self' argument.
12411
12412 2014-02-19  Tom Tromey  <tromey@redhat.com>
12413
12414         * target.h (struct target_ops) <to_trace_stop>: Add argument.
12415         (target_trace_stop): Add argument.
12416         * target.c (update_current_target): Update.
12417         * remote.c (remote_trace_stop): Add 'self' argument.
12418
12419 2014-02-19  Tom Tromey  <tromey@redhat.com>
12420
12421         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12422         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12423         argument.
12424         (target_get_tracepoint_status): Add argument.
12425         * target.c (update_current_target): Update.
12426         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12427
12428 2014-02-19  Tom Tromey  <tromey@redhat.com>
12429
12430         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12431         * target.h (struct target_ops) <to_get_trace_status>: Add
12432         argument.
12433         (target_get_trace_status): Add argument.
12434         * target.c (update_current_target): Update.
12435         * remote.c (remote_get_trace_status): Add 'self' argument.
12436         (remote_start_remote, remote_can_download_tracepoint): Update.
12437         * ctf.c (ctf_get_trace_status): Add 'self' argument.
12438
12439 2014-02-19  Tom Tromey  <tromey@redhat.com>
12440
12441         * target.h (struct target_ops) <to_trace_start>: Add argument.
12442         (target_trace_start): Add argument.
12443         * target.c (update_current_target): Update.
12444         * remote.c (remote_trace_start): Add 'self' argument.
12445
12446 2014-02-19  Tom Tromey  <tromey@redhat.com>
12447
12448         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12449         Add argument.
12450         (target_trace_set_readonly_regions): Add argument.
12451         * target.c (update_current_target): Update.
12452         * remote.c (remote_trace_set_readonly_regions): Add 'self'
12453         argument.
12454
12455 2014-02-19  Tom Tromey  <tromey@redhat.com>
12456
12457         * target.h (struct target_ops) <to_disable_tracepoint>: Add
12458         argument.
12459         (target_disable_tracepoint): Add argument.
12460         * target.c (update_current_target): Update.
12461         * remote.c (remote_disable_tracepoint): Add 'self' argument.
12462
12463 2014-02-19  Tom Tromey  <tromey@redhat.com>
12464
12465         * target.h (struct target_ops) <to_enable_tracepoint>: Add
12466         argument.
12467         (target_enable_tracepoint): Add argument.
12468         * target.c (update_current_target): Update.
12469         * remote.c (remote_enable_tracepoint): Add 'self' argument.
12470
12471 2014-02-19  Tom Tromey  <tromey@redhat.com>
12472
12473         * target.h (struct target_ops) <to_download_trace_state_variable>:
12474         Add argument.
12475         (target_download_trace_state_variable): Add argument.
12476         * target.c (update_current_target): Update.
12477         * remote.c (remote_download_trace_state_variable): Add 'self'
12478         argument.
12479
12480 2014-02-19  Tom Tromey  <tromey@redhat.com>
12481
12482         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12483         argument.
12484         (target_can_download_tracepoint): Add argument.
12485         * target.c (update_current_target): Update.
12486         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12487
12488 2014-02-19  Tom Tromey  <tromey@redhat.com>
12489
12490         * target.h (struct target_ops) <to_download_tracepoint>: Add
12491         argument.
12492         (target_download_tracepoint): Add argument.
12493         * target.c (update_current_target): Update.
12494         * remote.c (remote_download_tracepoint): Add 'self' argument.
12495
12496 2014-02-19  Tom Tromey  <tromey@redhat.com>
12497
12498         * target.h (struct target_ops) <to_trace_init>: Add argument.
12499         (target_trace_init): Add argument.
12500         * target.c (update_current_target): Update.
12501         * remote.c (remote_trace_init): Add 'self' argument.
12502
12503 2014-02-19  Tom Tromey  <tromey@redhat.com>
12504
12505         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12506         * target.c (target_fileio_readlink): Add argument.
12507         * remote.c (remote_hostio_readlink): Add 'self' argument.
12508         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12509
12510 2014-02-19  Tom Tromey  <tromey@redhat.com>
12511
12512         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12513         * target.c (target_fileio_unlink): Add argument.
12514         * remote.c (remote_hostio_unlink): Add 'self' argument.
12515         (remote_file_delete): Update.
12516         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12517
12518 2014-02-19  Tom Tromey  <tromey@redhat.com>
12519
12520         * target.h (struct target_ops) <to_fileio_close>: Add argument.
12521         * target.c (target_fileio_close): Add argument.
12522         * remote.c (remote_hostio_close): Add 'self' argument.
12523         (remote_hostio_close_cleanup): Update.
12524         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12525         Update.
12526         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12527
12528 2014-02-19  Tom Tromey  <tromey@redhat.com>
12529
12530         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12531         * target.c (target_fileio_pread): Add argument.
12532         * remote.c (remote_hostio_pread): Add 'self' argument.
12533         (remote_bfd_iovec_pread, remote_file_get): Update.
12534         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12535
12536 2014-02-19  Tom Tromey  <tromey@redhat.com>
12537
12538         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12539         * target.c (target_fileio_pwrite): Add argument.
12540         * remote.c (remote_hostio_pwrite): Add 'self' argument.
12541         (remote_file_put): Update.
12542         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12543
12544 2014-02-19  Tom Tromey  <tromey@redhat.com>
12545
12546         * target.h (struct target_ops) <to_fileio_open>: Add argument.
12547         * target.c (target_fileio_open): Add argument.
12548         * remote.c (remote_hostio_open): Add 'self' argument.
12549         (remote_bfd_iovec_open): Add 'self' argument.
12550         (remote_file_put): Add 'self' argument.
12551         (remote_file_get): Add 'self' argument.
12552         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12553
12554 2014-02-19  Tom Tromey  <tromey@redhat.com>
12555
12556         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12557         Add argument.
12558         (target_can_run_breakpoint_commands): Add argument.
12559         * target.c (update_current_target): Update.
12560         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12561         argument.
12562         (remote_insert_breakpoint): Add 'self' argument.
12563         (remote_insert_hw_breakpoint): Add 'self' argument.
12564         (remote_can_run_breakpoint_commands): Add 'self' argument.
12565
12566 2014-02-19  Tom Tromey  <tromey@redhat.com>
12567
12568         * target.h (struct target_ops)
12569         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12570         (target_supports_evaluation_of_breakpoint_conditions): Add
12571         argument.
12572         * target.c (update_current_target): Update.
12573         * remote.c (remote_supports_cond_breakpoints): Add 'self'
12574         argument.
12575         (remote_insert_breakpoint): Add 'self' argument.
12576         (remote_insert_hw_breakpoint): Add 'self' argument.
12577         (remote_supports_cond_breakpoints): Add 'self' argument.
12578
12579 2014-02-19  Tom Tromey  <tromey@redhat.com>
12580
12581         * target.h (struct target_ops) <to_supports_string_tracing>: Add
12582         argument.
12583         (target_supports_string_tracing): Add argument.
12584         * target.c (update_current_target): Update.
12585         * remote.c (remote_supports_string_tracing): Add 'self' argument.
12586
12587 2014-02-19  Tom Tromey  <tromey@redhat.com>
12588
12589         * target.h (struct target_ops)
12590         <to_supports_disable_randomization>: Add argument.
12591         * target.c (find_default_supports_disable_randomization): Add
12592         argument.
12593         (target_supports_disable_randomization): Add argument.
12594         (find_default_supports_disable_randomization): Add 'self'
12595         argument.
12596         * remote.c (extended_remote_supports_disable_randomization): Add
12597         'self' argument.
12598         (remote_supports_disable_randomization): Add 'self' argument.
12599         (extended_remote_create_inferior): Update.
12600         * linux-nat.c (linux_nat_supports_disable_randomization): Add
12601         'self' argument.
12602
12603 2014-02-19  Tom Tromey  <tromey@redhat.com>
12604
12605         * target.h (struct target_ops)
12606         <to_supports_enable_disable_tracepoint>: Add argument.
12607         (target_supports_enable_disable_tracepoint): Add argument.
12608         * target.c (update_current_target): Update.
12609         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12610         argument.
12611
12612 2014-02-19  Tom Tromey  <tromey@redhat.com>
12613
12614         * target.h (struct target_ops) <to_supports_multi_process>: Add
12615         argument.
12616         (target_supports_multi_process): Add argument.
12617         * target.c (update_current_target): Update.
12618         * remote.c (remote_supports_multi_process): Add 'self' argument.
12619         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12620         argument.
12621         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12622         argument.
12623
12624 2014-02-19  Tom Tromey  <tromey@redhat.com>
12625
12626         * target.h (struct target_ops) <to_execution_direction>: Add
12627         argument.
12628         (target_execution_direction): Add argument.
12629         * target.c (default_execution_direction): Add 'self' argument.
12630         * record-full.c (record_full_execution_direction): Add 'self'
12631         argument.
12632
12633 2014-02-19  Tom Tromey  <tromey@redhat.com>
12634
12635         * target.h (struct target_ops) <to_can_execute_reverse>: Add
12636         argument.
12637         (target_can_execute_reverse): Add argument.
12638         * remote.c (remote_can_execute_reverse): Add 'self' argument.
12639         * record-full.c (record_full_can_execute_reverse): Add 'self'
12640         argument.
12641         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12642         argument.
12643
12644 2014-02-19  Tom Tromey  <tromey@redhat.com>
12645
12646         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12647         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12648         argument.
12649         (target_get_ada_task_ptid): Add argument.
12650         * target.c (update_current_target): Update.
12651         (default_get_ada_task_ptid): Add 'self' argument.
12652         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12653         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12654         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12655         argument.
12656         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12657         argument.
12658         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12659         argument.
12660         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12661         argument.
12662         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12663         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12664         argument.
12665
12666 2014-02-19  Tom Tromey  <tromey@redhat.com>
12667
12668         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12669         (target_goto_bookmark): Add argument.
12670         * target.c (dummy_goto_bookmark): Add 'self' argument.
12671         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12672
12673 2014-02-19  Tom Tromey  <tromey@redhat.com>
12674
12675         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12676         (target_get_bookmark): Add argument.
12677         * target.c (dummy_get_bookmark): Add 'self' argument.
12678         * record-full.c (record_full_get_bookmark): Add 'self' argument.
12679
12680 2014-02-19  Tom Tromey  <tromey@redhat.com>
12681
12682         * target.h (struct target_ops) <to_make_corefile_notes>: Add
12683         argument.
12684         (target_make_corefile_notes): Add argument.
12685         * target.c (dummy_make_corefile_notes): Add 'self' argument.
12686         * procfs.c (procfs_make_note_section): Add 'self' argument.
12687         (procfs_make_note_section): Add 'self' argument.
12688         (procfs_make_note_section): Add 'self' argument.
12689         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12690         argument.
12691         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12692         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12693         * exec.c (exec_make_note_section): Add 'self' argument.
12694         (exec_make_note_section): Add 'self' argument.
12695
12696 2014-02-19  Tom Tromey  <tromey@redhat.com>
12697
12698         * target.h (struct target_ops) <to_find_memory_regions>: Add
12699         argument.
12700         (target_find_memory_regions): Add argument.
12701         * target.c (dummy_find_memory_regions): Add 'self' argument.
12702         * procfs.c (proc_find_memory_regions): Add 'self' argument.
12703         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12704         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12705         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12706         * exec. (exec_do_find_memory_regions): New global.
12707         (exec_set_find_memory_regions): Rewrite.
12708         (exec_find_memory_regions): New function.
12709         (init_exec_ops): Use exec_find_memory_regions.
12710
12711 2014-02-19  Tom Tromey  <tromey@redhat.com>
12712
12713         * target.h (struct target_ops) <to_supports_non_stop>: Add
12714         argument.
12715         * target.c (find_default_supports_non_stop): Add argument.
12716         (target_supports_non_stop): Add argument.
12717         (find_default_supports_non_stop): Add 'self' argument.
12718         * remote.c (remote_supports_non_stop): Add 'self' argument.
12719         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12720
12721 2014-02-19  Tom Tromey  <tromey@redhat.com>
12722
12723         * target.h (struct target_ops) <to_log_command>: Add argument.
12724         (target_log_command): Add argument.
12725         * serial.h (serial_log_command): Add 'self' argument.
12726         * serial.c (serial_log_command): Add 'self' argument.
12727
12728 2014-02-19  Tom Tromey  <tromey@redhat.com>
12729
12730         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12731         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12732         argument.
12733         (target_pid_to_exec_file): Add argument.
12734         * target.c (debug_to_pid_to_exec_file): Add argument.
12735         (update_current_target): Update.
12736         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12737         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12738         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12739         (linux_handle_extended_wait): Update.
12740         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12741         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12742         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12743         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12744
12745 2014-02-19  Tom Tromey  <tromey@redhat.com>
12746
12747         * target.h (struct target_ops) <to_rcmd>: Add argument.
12748         (target_rcmd): Add argument.
12749         * target.c (debug_to_rcmd): Add argument.
12750         (update_current_target, do_monitor_command): Update.
12751         * remote.c (remote_rcmd): Add 'self' argument.
12752         * monitor.c (monitor_rcmd): Add 'self' argument.
12753
12754 2014-02-19  Tom Tromey  <tromey@redhat.com>
12755
12756         * windows-nat.c (windows_stop): Add 'self' argument.
12757         * target.h (struct target_ops) <to_stop>: Add argument.
12758         * target.c (target_stop): Add argument.
12759         (debug_to_stop): Add argument.
12760         (update_current_target): Update.
12761         * remote.c (remote_stop): Add 'self' argument.
12762         * remote-sim.c (gdbsim_stop): Add 'self' argument.
12763         (gdbsim_cntrl_c): Update.
12764         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12765         * procfs.c (procfs_stop): Add 'self' argument.
12766         * nto-procfs.c (procfs_stop): Add 'self' argument.
12767         * monitor.c (monitor_stop): Add 'self' argument.
12768         (monitor_open): Update.
12769         * linux-nat.c (linux_nat_stop): Add argument.
12770         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12771         * gnu-nat.c (gnu_stop): Add 'self' argument.
12772         * darwin-nat.c (darwin_stop): Add 'self' argument.
12773
12774 2014-02-19  Tom Tromey  <tromey@redhat.com>
12775
12776         * target.h (struct target_ops) <to_thread_name>: Add argument.
12777         * target.c (target_thread_name): Add argument.
12778         (update_current_target): Update.
12779         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12780
12781 2014-02-19  Tom Tromey  <tromey@redhat.com>
12782
12783         * target.h (struct target_ops) <to_extra_thread_info>: Add
12784         argument.
12785         (target_extra_thread_info): Add argument.
12786         * target.c (update_current_target): Update.
12787         * remote.c (remote_threads_extra_info): Add 'self' argument.
12788         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12789         argument.
12790         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12791         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12792         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12793         argument.
12794         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12795         argument.
12796         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12797         argument.
12798         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12799         argument.
12800
12801 2014-02-19  Tom Tromey  <tromey@redhat.com>
12802
12803         * target.h (struct target_ops) <to_program_signals>: Add argument.
12804         * target.c (target_program_signals): Add argument.
12805         * remote.c (remote_program_signals): Add 'self' argument.
12806
12807 2014-02-19  Tom Tromey  <tromey@redhat.com>
12808
12809         * target.h (struct target_ops) <to_pass_signals>: Add argument.
12810         * target.c (target_pass_signals): Add argument.
12811         * remote.c (remote_pass_signals): Add 'self' argument.
12812         (remote_start_remote): Update.
12813         * procfs.c (procfs_pass_signals): Add 'self' argument.
12814         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12815         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12816         (linux_nat_create_inferior, linux_nat_attach): Update.
12817
12818 2014-02-19  Tom Tromey  <tromey@redhat.com>
12819
12820         * windows-nat.c (windows_can_run): Add 'self' argument.
12821         * target.h (struct target_ops) <to_can_run>: Add argument.
12822         (target_can_run): Add argument.
12823         * target.c (debug_to_can_run): Add argument.
12824         (update_current_target): Update.
12825         * nto-procfs.c (procfs_can_run): Add 'self' argument.
12826         * inf-child.c (inf_child_can_run): Add 'self' argument.
12827         * go32-nat.c (go32_can_run): Add 'self' argument.
12828
12829 2014-02-19  Tom Tromey  <tromey@redhat.com>
12830
12831         * target.h (struct target_ops) <to_has_exited>: Add argument.
12832         (target_has_exited): Add argument.
12833         * target.c (debug_to_has_exited): Add argument.
12834         (update_current_target): Update.
12835
12836 2014-02-19  Tom Tromey  <tromey@redhat.com>
12837
12838         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12839         argument.
12840         (target_set_syscall_catchpoint): Add argument.
12841         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12842         argument.
12843         * target.c (update_current_target): Update.
12844
12845 2014-02-19  Tom Tromey  <tromey@redhat.com>
12846
12847         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12848         argument.
12849         (target_remove_exec_catchpoint): Add argument.
12850         * target.c (debug_to_remove_exec_catchpoint): Add argument.
12851         (update_current_target): Update.
12852         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12853         argument.
12854
12855 2014-02-19  Tom Tromey  <tromey@redhat.com>
12856
12857         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12858         argument.
12859         (target_insert_exec_catchpoint): Add argument.
12860         * target.c (debug_to_insert_exec_catchpoint): Add argument.
12861         (update_current_target): Update.
12862         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12863         argument.
12864
12865 2014-02-19  Tom Tromey  <tromey@redhat.com>
12866
12867         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12868         argument.
12869         (target_remove_vfork_catchpoint): Add argument.
12870         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12871         (update_current_target): Update.
12872         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12873         argument.
12874
12875 2014-02-19  Tom Tromey  <tromey@redhat.com>
12876
12877         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12878         argument.
12879         (target_insert_vfork_catchpoint): Add argument.
12880         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12881         (update_current_target): Update.
12882         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12883         argument.
12884
12885 2014-02-19  Tom Tromey  <tromey@redhat.com>
12886
12887         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12888         argument.
12889         (target_remove_fork_catchpoint): Add argument.
12890         * target.c (debug_to_remove_fork_catchpoint): Add argument.
12891         (update_current_target): Update.
12892         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12893         argument.
12894
12895 2014-02-19  Tom Tromey  <tromey@redhat.com>
12896
12897         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12898         argument.
12899         (target_insert_fork_catchpoint): Add argument.
12900         * target.c (debug_to_insert_fork_catchpoint): Add argument.
12901         (update_current_target): Update.
12902         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12903         argument.
12904
12905 2014-02-19  Tom Tromey  <tromey@redhat.com>
12906
12907         * target.h (struct target_ops) <to_post_startup_inferior>: Add
12908         argument.
12909         (target_post_startup_inferior): Add argument.
12910         * target.c (debug_to_post_startup_inferior): Add argument.
12911         (update_current_target): Update.
12912         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12913         argument.
12914         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12915         argument.
12916         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12917         argument.
12918         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12919         argument.
12920         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12921         'self' argument.
12922         (super_post_startup_inferior): Likewise.
12923         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12924         'self' argument.
12925         (super_post_startup_inferior): Likewise.
12926         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12927         Add 'self' argument.
12928         (super_post_startup_inferior): Likewise.
12929
12930 2014-02-19  Tom Tromey  <tromey@redhat.com>
12931
12932         * target.h (struct target_ops) <to_load>: Add argument.
12933         * target.c (target_load): Add argument.
12934         (debug_to_load): Add argument.
12935         (update_current_target): Update.
12936         * remote.c (remote_load): Add 'self' argument.
12937         * remote-sim.c (gdbsim_load): Add 'self' argument.
12938         * remote-mips.c (mips_load): Add 'self' argument.
12939         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12940         * monitor.c (monitor_load): Add 'self' argument.
12941         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12942
12943 2014-02-19  Tom Tromey  <tromey@redhat.com>
12944
12945         * target.h (struct target_ops) <to_terminal_info>: Add argument.
12946         (target_terminal_info): Add argument.
12947         * target.c (debug_to_terminal_info): Add argument.
12948         (default_terminal_info): Likewise.
12949         * inflow.c (child_terminal_info): Add 'self' argument.
12950         * inferior.h (child_terminal_info): Add 'self' argument.
12951         * go32-nat.c (go32_terminal_info): Add 'self' argument.
12952
12953 2014-02-19  Tom Tromey  <tromey@redhat.com>
12954
12955         * target.h (struct target_ops) <to_terminal_save_ours>: Add
12956         argument.
12957         (target_terminal_save_ours): Add argument.
12958         * target.c (debug_to_terminal_save_ours): Add argument.
12959         (update_current_target): Update.
12960         * inflow.c (terminal_save_ours): Add 'self' argument.
12961         * inferior.h (terminal_save_ours): Add 'self' argument.
12962
12963 2014-02-19  Tom Tromey  <tromey@redhat.com>
12964
12965         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12966         (target_terminal_ours): Add argument.
12967         * target.c (debug_to_terminal_ours): Add argument.
12968         (update_current_target): Update.
12969         * remote.c (remote_terminal_ours): Add 'self' argument.
12970         (remote_close): Update.
12971         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12972         * inflow.c (terminal_ours): Add 'self' argument.
12973         * inferior.h (terminal_ours): Add 'self' argument.
12974         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12975
12976 2014-02-19  Pedro Alves  <palves@redhat.com>
12977             Tom Tromey  <tromey@redhat.com>
12978
12979         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12980         argument.
12981         (target_terminal_ours_for_output): Add argument.
12982         * target.c (debug_to_terminal_ours_for_output): Add argument.
12983         (update_current_target): Update.
12984         * inflow.c (terminal_ours_for_output): Add 'self' argument.
12985         * inferior.h (terminal_ours_for_output): Add 'self' argument.
12986         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12987
12988 2014-02-19  Tom Tromey  <tromey@redhat.com>
12989
12990         * target.h (struct target_ops) <to_terminal_inferior>: Add
12991         argument.
12992         * target.c (target_terminal_inferior): Add argument.
12993         (update_current_target): Update.
12994         * remote.c (remote_terminal_inferior): Add 'self' argument.
12995         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12996         * inflow.c (terminal_inferior): Add 'self' argument.
12997         * inferior.h (terminal_inferior): Add 'self' argument.
12998         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12999         (go32_terminal_inferior): Add 'self' argument.
13000
13001 2014-02-19  Tom Tromey  <tromey@redhat.com>
13002
13003         * target.h (struct target_ops) <to_terminal_init>: Add argument.
13004         (target_terminal_init): Add argument.
13005         * target.c (debug_to_terminal_init): Add argument.
13006         (update_current_target): Update.
13007         * inflow.c (terminal_init_inferior): Add 'self' argument.
13008         * inferior.h (terminal_init_inferior): Add 'self' argument.
13009         * go32-nat.c (go32_terminal_init): Add 'self' argument.
13010         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13011
13012 2014-02-19  Tom Tromey  <tromey@redhat.com>
13013
13014         * target.h (struct target_ops)
13015         <to_can_accel_watchpoint_condition>: Add argument.
13016         (target_can_accel_watchpoint_condition): Add argument.
13017         * target.c (debug_to_can_accel_watchpoint_condition): Add
13018         argument.
13019         (update_current_target): Update.
13020         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13021         'self' argument.
13022
13023 2014-02-19  Tom Tromey  <tromey@redhat.com>
13024
13025         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13026         Add argument.
13027         (target_region_ok_for_hw_watchpoint): Add argument.
13028         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13029         (default_region_ok_for_hw_watchpoint): Add argument.
13030         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13031         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13032         argument.
13033         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13034         argument.
13035         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13036         argument.
13037         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13038         'self' argument.
13039         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13040         'self' argument.
13041         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13042         'self' argument.
13043         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13044         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13045         'self' argument.
13046         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13047         Add 'self' argument.
13048
13049 2014-02-19  Tom Tromey  <tromey@redhat.com>
13050
13051         * target.h (struct target_ops) <to_insert_watchpoint>: Add
13052         argument.
13053         (target_insert_watchpoint): Add argument.
13054         * target.c (debug_to_insert_watchpoint): Add argument.
13055         (update_current_target): Update.
13056         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13057         * remote.c (remote_insert_watchpoint): Add 'self' argument.
13058         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13059         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13060         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13061         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13062         argument.
13063         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13064         (procfs_insert_hw_watchpoint): Add 'self' argument.
13065         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13066         argument.
13067         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13068         argument.
13069         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13070         argument.
13071         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13072         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13073         argument.
13074         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13075         'self' argument.
13076
13077 2014-02-19  Tom Tromey  <tromey@redhat.com>
13078
13079         * target.h (struct target_ops) <to_remove_watchpoint>: Add
13080         argument.
13081         (target_remove_watchpoint): Add argument.
13082         * target.c (debug_to_remove_watchpoint): Add argument.
13083         (update_current_target): Update.
13084         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13085         * remote.c (remote_remove_watchpoint): Add 'self' argument.
13086         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13087         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13088         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13089         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13090         argument.
13091         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13092         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13093         argument.
13094         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13095         argument.
13096         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13097         argument.
13098         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13099         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13100         argument.
13101         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13102         'self' argument.
13103
13104 2014-02-19  Tom Tromey  <tromey@redhat.com>
13105
13106         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13107         argument.
13108         (target_remove_hw_breakpoint): Add argument.
13109         * target.c (debug_to_remove_hw_breakpoint): Add argument.
13110         (update_current_target): Update.
13111         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13112         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13113         argument.
13114         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13115         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13116         argument.
13117         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13118         'self' argument.
13119
13120 2014-02-19  Tom Tromey  <tromey@redhat.com>
13121
13122         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13123         argument.
13124         (target_insert_hw_breakpoint): Add argument.
13125         * target.c (debug_to_insert_hw_breakpoint): Add argument.
13126         (update_current_target): Update.
13127         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13128         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13129         argument.
13130         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13131         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13132         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13133         argument.
13134         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13135         'self' argument.
13136
13137 2014-02-19  Tom Tromey  <tromey@redhat.com>
13138
13139         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13140         argument.
13141         (target_can_use_hardware_watchpoint): Add argument.
13142         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13143         (update_current_target): Update.
13144         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13145         argument.
13146         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13147         argument.
13148         * remote.c (remote_check_watch_resources): Add 'self' argument.
13149         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13150         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13151         argument.
13152         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13153         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13154         argument.
13155         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13156         argument.
13157         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13158         argument.
13159         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13160         argument.
13161         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13162         argument.
13163         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13164         argument.
13165         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13166         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13167         argument.
13168         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13169         'self' argument.
13170
13171 2014-02-19  Tom Tromey  <tromey@redhat.com>
13172
13173         * target.h (struct target_ops) <to_post_attach>: Add argument.
13174         (target_post_attach): Add argument.
13175         * target.c (debug_to_post_attach): Add argument.
13176         (update_current_target): Update.
13177         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13178         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13179         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13180         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13181         * inf-child.c (inf_child_post_attach): Add 'self' argument.
13182
13183 2014-02-19  Tom Tromey  <tromey@redhat.com>
13184
13185         * windows-nat.c (windows_close): Add 'self' argument.
13186         * tracepoint.c (tfile_close): Add 'self' argument.
13187         * target.h (struct target_ops) <to_close>: Add argument.
13188         * target.c (target_close): Add argument.
13189         (update_current_target): Update.
13190         * remote.c (remote_close): Add 'self' argument.
13191         * remote-sim.c (gdbsim_close): Add 'self' argument.
13192         * remote-mips.c (mips_close): Add 'self' argument.
13193         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13194         * record-full.c (record_full_close): Add 'self' argument.
13195         * record-btrace.c (record_btrace_close): Add 'self' argument.
13196         * monitor.h (monitor_close): Add 'self' argument.
13197         * monitor.c (monitor_close): Add 'self' argument.
13198         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13199         * linux-nat.c (linux_nat_close): Add argument.
13200         * go32-nat.c (go32_close): Add 'self' argument.
13201         * exec.c (exec_close_1): Add 'self' argument.
13202         * ctf.c (ctf_close): Add 'self' argument.
13203         * corelow.c (core_close): Add 'self' argument.
13204         (core_close_cleanup): Update.
13205         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13206         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13207
13208 2014-02-19  Tom Tromey  <tromey@redhat.com>
13209
13210         * remote.c (remote_load): New function.
13211         (init_remote_ops): Use it.
13212
13213 2014-02-19  Tom Tromey  <tromey@redhat.com>
13214
13215         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13216         argument.
13217         * common/linux-btrace.h (linux_supports_btrace): Update.
13218         * remote.c (remote_supports_btrace): Add "self" argument.
13219         * target-delegates.c: Rebuild.
13220         * target.c (target_supports_btrace): Remove.
13221         * target.h (struct target_ops) <to_supports_btrace>: Add
13222         target_ops argument.
13223         (target_supports_btrace): New define.
13224
13225 2014-02-19  Tom Tromey  <tromey@redhat.com>
13226
13227         * record-full.c (record_full_beneath_to_resume_ops)
13228         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13229         (record_full_beneath_to_wait)
13230         (record_full_beneath_to_store_registers_ops)
13231         (record_full_beneath_to_store_registers)
13232         (record_full_beneath_to_xfer_partial_ops)
13233         (record_full_beneath_to_xfer_partial)
13234         (record_full_beneath_to_insert_breakpoint_ops)
13235         (record_full_beneath_to_insert_breakpoint)
13236         (record_full_beneath_to_remove_breakpoint_ops)
13237         (record_full_beneath_to_remove_breakpoint)
13238         (record_full_beneath_to_stopped_by_watchpoint)
13239         (record_full_beneath_to_stopped_data_address)
13240         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13241         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13242         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13243         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13244         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13245         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13246         (tmp_to_stopped_data_address, tmp_to_async): Remove.
13247         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
13248         (record_full_resume, record_full_wait_1)
13249         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13250         (record_full_store_registers, record_full_xfer_partial)
13251         (record_full_insert_breakpoint, record_full_remove_breakpoint)
13252         (record_full_async, record_full_core_xfer_partial): Use target
13253         delegation.
13254         * target-delegates.c: Rebuild.
13255         * target.c (current_xfer_partial): Remove.
13256         (update_current_target): Do not INHERIT or de_fault
13257         to_insert_breakpoint, to_remove_breakpoint,
13258         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13259         to_is_async_p, to_async.  Do not set to_xfer_partial field.
13260         (default_xfer_partial): Simplify.
13261         (current_xfer_partial): Remove.
13262         (target_wait, target_resume): Simplify.
13263         (find_default_can_async_p, find_default_is_async_p): Update.
13264         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13265         to_xfer_partial, to_stopped_by_watchpoint,
13266         to_stopped_data_address.
13267         (target_store_registers): Simplify.
13268         (forward_target_remove_breakpoint)
13269         (forward_target_insert_breakpoint): Remove.
13270         (target_remove_breakpoint, target_insert_breakpoint)
13271         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13272         * target.h (struct target_ops) <to_resume, to_wait,
13273         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13274         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13275         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13276         markup.
13277         (forward_target_remove_breakpoint)
13278         (forward_target_insert_breakpoint): Remove.
13279         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13280         directly.
13281         (record_btrace_insert_breakpoint): Delegate directly.
13282
13283 2014-02-19  Tom Tromey  <tromey@redhat.com>
13284
13285         PR build/7701:
13286         * target-delegates.c: New file.
13287         * target.c: Include target-delegates.c.
13288         (init_dummy_target): Call install_dummy_methods.
13289         (complete_target_initialization): Call install_delegators.
13290         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13291         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13292         * make-target-delegates: New file.
13293
13294 2014-02-19  Tom Tromey  <tromey@redhat.com>
13295
13296         * record.c (find_record_target): Use find_target_at.
13297         * target.c (find_target_at): New function.
13298         * target.h (find_target_at): Declare.
13299
13300 2014-02-19  Tom Tromey  <tromey@redhat.com>
13301
13302         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13303         Add 'ops' argument.
13304         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13305         'ops' argument.
13306         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13307         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13308         'ops' argument.
13309         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13310         argument.
13311         * linux-nat.c (save_sigtrap): Update.
13312         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13313         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13314         (linux_nat_close): Update.
13315         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13316         argument.
13317         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13318         argument.
13319         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13320         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13321         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13322         (tmp_to_async): Add 'ops' argument.
13323         (record_full_stopped_by_watchpoint, record_full_async)
13324         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13325         argument.
13326         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13327         (m32r_stopped_by_watchpoint): Add 'ops' argument.
13328         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13329         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13330         (remote_is_async_p, remote_async): Add 'ops' argument.
13331         (remote_stopped_data_address): Update.
13332         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13333         * target.c (update_current_target)
13334         (find_default_can_async_p, find_default_is_async_p): Update.
13335         (init_dummy_target): Update.
13336         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13337         * target.h (struct target_ops) <to_stopped_by_watchpoint,
13338         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13339         (target_can_async_p, target_is_async_p, target_async)
13340         (target_stopped_by_watchpoint): Update.
13341
13342 2014-02-19  Yao Qi  <yao@codesourcery.com>
13343
13344         PR gdb/16220
13345         * gdbarch.sh: Remove startup_gdbarch.
13346         * gdbarch.c: Regenerated.
13347         * gdbarch.h: Likewise.
13348
13349 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
13350
13351         * rl78-tdep.c (rl78_g10_register_name): New function.
13352         (rl78_return_value): Add g10 support.
13353         (rl78_gdbarch_init): Register rl78_g10_register_name for the
13354         g10.
13355
13356 2014-02-17  Doug Evans  <xdje42@gmail.com>
13357
13358         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13359         (SUBDIR_GUILE_SRCS): Ditto.
13360         (scm-gsmob.o): Ditto.
13361
13362 2014-02-17  Yao Qi  <yao@codesourcery.com>
13363
13364         * gnu-nat.c (ILL_RPC): Declare defined function.
13365
13366 2014-02-17  Yao Qi  <yao@codesourcery.com>
13367
13368         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13369         mach_msg_type_number_t.
13370         (gnu_write_inferior): Likewise.
13371
13372 2014-02-17  Yao Qi  <yao@codesourcery.com>
13373
13374         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13375         in format string.
13376         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13377         (inf_validate_procs, inf_signal): Likewise.
13378         (S_exception_raise_request): Likewise.
13379         (do_mach_notify_dead_name): Likewise.
13380         (steal_exc_port): Likewise.
13381         (gnu_read_inferior): Change 'copy_count''s type to
13382         mach_msg_type_number_t.
13383         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
13384         format string.
13385
13386 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
13387
13388         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13389         flag.  Adjust all users; in particular...
13390         (gnu_wait): ..., don't decrement its value in here...
13391         (gnu_create_inferior): ..., and instead set the flag in here,
13392         around the startup_inferior call, and call that one with
13393         START_INFERIOR_TRAPS_EXPECTED.
13394
13395         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13396         (ILL_RPC): ... new macro.
13397         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13398         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13399         (do_mach_notify_send_once, S_proc_setmsgport_reply)
13400         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13401         functions with ILL_RPC macro.
13402         (S_proc_pid2task_reply, S_proc_task2pid_reply)
13403         (S_proc_task2proc_reply, S_proc_proc2task_reply)
13404         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13405         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13406         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13407         (S_proc_getlogin_reply, S_proc_getsid_reply)
13408         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13409         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13410         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13411         (S_proc_getnports_reply, S_proc_is_important_reply)
13412         (S_proc_get_code_reply): New stub functions, generated with
13413         ILL_RPC macro.
13414
13415         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13416         collected the type check structures.
13417
13418         * reply_mig_hack.awk: Don't expect to see the auto keyword.
13419
13420 2014-02-14  Doug Evans  <dje@google.com>
13421
13422         * target.c (target_write_partial): Fix result type.
13423
13424 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
13425
13426         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13427         the proper offsets to access fpregset_t.
13428
13429 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
13430
13431         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13432         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13433         * h8300-tdep.c (setmachinelist): Remove global.
13434         * hppa-tdep.c (hppa_sigtramp): Remove global.
13435         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13436         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13437         * ravenscar-thread.c (update_target_observer): Remove global.
13438         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13439
13440 2014-02-12  Tom Tromey  <tromey@redhat.com>
13441
13442         * common/rsp-low.c: Update comments.
13443         * common/rsp-low.h: Update comments.
13444
13445 2014-02-12  Tom Tromey  <tromey@redhat.com>
13446
13447         * common/rsp-low.c (convert_ascii_to_int): Remove.
13448         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13449
13450 2014-02-12  Tom Tromey  <tromey@redhat.com>
13451
13452         * common/rsp-low.h (unhexify): Don't declare.
13453         * common/rsp-low.c (unhexify): Remove.
13454
13455 2014-02-12  Tom Tromey  <tromey@redhat.com>
13456
13457         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13458         * common/rsp-low.c (convert_int_to_ascii): Remove.
13459
13460 2014-02-12  Tom Tromey  <tromey@redhat.com>
13461
13462         * common/rsp-low.h (hexify): Don't declare.
13463         * common/rsp-low.c (hexify): Remove.
13464
13465 2014-02-12  Tom Tromey  <tromey@redhat.com>
13466
13467         * common/rsp-low.c (hexify): Never take strlen of argument.
13468
13469 2014-02-12  Tom Tromey  <tromey@redhat.com>
13470
13471         * common/rsp-low.c (bin2hex): Never take strlen of argument.
13472         * remote.c (extended_remote_run, remote_rcmd)
13473         (remote_download_trace_state_variable, remote_save_trace_data)
13474         (remote_set_trace_notes): Update.
13475         * tracepoint.c (encode_source_string, tfile_write_status)
13476         (tfile_write_uploaded_tsv): Update.
13477
13478 2014-02-12  Tom Tromey  <tromey@redhat.com>
13479
13480         * tracepoint.c: Include rsp-low.h.
13481         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13482         * remote.c: Include rsp-low.h.
13483         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13484         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13485         (remote_unescape_input): Move to common/rsp-low.c.
13486         * common/rsp-low.h: New file.
13487         * common/rsp-low.c: New file.
13488         * Makefile.in (SFILES): Add common/rsp-low.c.
13489         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13490         (COMMON_OBS): Add rsp-low.o.
13491         (rsp-low.o): New target.
13492
13493 2014-02-12  Tom Tromey  <tromey@redhat.com>
13494
13495         * utils.h: Include print-utils.h.
13496         (host_address_to_string, plongest, pulongest, phex, phex_nz)
13497         (int_string, core_addr_to_string, core_addr_to_string_nz)
13498         (hex_string, hex_string_custom): Don't declare.
13499         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13500         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13501         (hex_string_custom, int_string, core_addr_to_string)
13502         (core_addr_to_string_nz, host_address_to_string): Move to
13503         common/print-utils.c.
13504         * common/print-utils.h: New file.
13505         * common/print-utils.c: New file
13506         * Makefile.in (SFILES): Add common/print-utils.c.
13507         (HFILES_NO_SRCDIR): Add common/print-utils.h.
13508         (COMMON_OBS): Add print-utils.o.
13509         (print-utils.o): New target.
13510
13511 2014-02-12  Tom Tromey  <tromey@redhat.com>
13512
13513         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13514
13515 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
13516
13517         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13518
13519 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
13520
13521         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13522         if a PT_IO ptrace request returns sucessfully but indicates that 0
13523         bytes were transferred.
13524
13525 2014-02-12  Pedro Alves  <palves@redhat.com>
13526             Kevin Buettner <kevinb@redhat.com>
13527
13528         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13529         TYPE_INSTANCE_FLAG_CODE_SPACE.
13530
13531 2014-02-12  Pedro Alves  <palves@redhat.com>
13532
13533         * h8300-tdep.c (pseudo_from_raw_register)
13534         (raw_from_pseudo_register): New functions.
13535         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13536         them.
13537
13538 2014-02-12  Pedro Alves  <palves@redhat.com>
13539
13540         * h8300-tdep.c (h8300_register_sim_regno): New function.
13541         (h8300_gdbarch_init): Install h8300_register_sim_regno as
13542         gdbarch_register_sim_regno hook.
13543
13544 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
13545
13546         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13547
13548 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
13549
13550         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13551
13552 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
13553
13554         * obsd-tdep.h (obsd_init_abi): New prototype.
13555         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13556         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13557         (obsd_init_abi): New functions.
13558         * i386obsd-tdep.c: Include "obsd-tdep.h".
13559         (i386obsd_init_abi): Call obsd_init_abi.
13560         * amd64obsd-tdep.c: Include "obsd-tdep.h".
13561         (amd64obsd_init_abi): Call obsd_init_abi.
13562         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13563         obsd-tdep.c to gdb_target_obs.
13564
13565 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
13566
13567         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13568         double float arguments to 16-byte in the argument slots.
13569
13570 2014-02-11  Doug Evans  <xdje42@gmail.com>
13571
13572         * configure.ac: Don't crash if pkg-config is not found and guile
13573         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
13574         in guile checks.
13575         * configure: Regenerate.
13576
13577 2014-02-11  Yao Qi  <yao@codesourcery.com>
13578
13579         * aix-thread.c (aix_thread_xfer_partial): Update comments.
13580         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13581         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13582         * gnu-nat.c (gnu_xfer_memory): Likewise.
13583         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
13584         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13585         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13586         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13587
13588 2014-02-11  Yao Qi  <yao@codesourcery.com>
13589
13590         * target.h (enum target_xfer_error): Rename to ...
13591         (enum target_xfer_status): ... it.  New.  All users updated.
13592         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13593         New.
13594         (TARGET_XFER_STATUS_ERROR_P): New macro.
13595         (target_xfer_error_to_string): Remove declaration.
13596         (target_xfer_status_to_string): Declare.
13597         (target_xfer_partial_ftype): Adjust it.
13598         (struct target_ops) <to_xfer_partial>: Return
13599         target_xfer_status.  Add argument xfered_len.  Update
13600         comments.
13601         * target.c (target_xfer_error_to_string): Rename to ...
13602         (target_xfer_status_to_string): ... it.  New.  All callers
13603         updated.
13604         (target_read_live_memory): Likewise.  Call target_xfer_partial
13605         instead of target_read.
13606         (memory_xfer_live_readonly_partial): Return
13607         target_xfer_status.  Add argument xfered_len.
13608         (raw_memory_xfer_partial): Likewise.
13609         (memory_xfer_partial_1): Likewise.
13610         (memory_xfer_partial): Likewise.
13611         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
13612         properly.  Update debug message.
13613         (default_xfer_partial, current_xfer_partial): Likewise.
13614         (target_write_partial): Likewise.
13615         (target_read_partial): Likewise.  All callers updated.
13616         (read_whatever_is_readable): Likewise.
13617         (target_write_with_progress): Likewise.
13618         (target_read_alloc_1): Likewise.
13619
13620         * aix-thread.c (aix_thread_xfer_partial): Likewise.
13621         * auxv.c (procfs_xfer_auxv): Likewise.
13622         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13623         * bfd-target.c (target_bfd_xfer_partial): Likewise.
13624         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13625         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13626         * corefile.c (read_memory): Adjust.
13627         * corelow.c (core_xfer_partial): Likewise.
13628         * ctf.c (ctf_xfer_partial): Likewise.
13629         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
13630         updated.
13631         (darwin_xfer_partial): Likewise.
13632         * exec.c (section_table_xfer_memory_partial): Likewise.  All
13633         callers updated.
13634         (exec_xfer_partial): Likewise.
13635         * exec.h (section_table_xfer_memory_partial): Update
13636         declaration.
13637         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
13638         negative.
13639         (gnu_xfer_partial): Likewise.
13640         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13641         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13642         (ia64_hpux_xfer_solib_got): Likewise.
13643         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
13644         type of 'partial_len' to ULONGEST.
13645         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13646         * linux-nat.c (linux_xfer_siginfo ): Likewise.
13647         (linux_nat_xfer_partial): Likewise.
13648         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13649         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13650         * monitor.c (monitor_xfer_memory): Likewise.
13651         (monitor_xfer_partial): Likewise.
13652         * procfs.c (procfs_xfer_partial): Likewise.
13653         * record-btrace.c (record_btrace_xfer_partial): Likewise.
13654         * record-full.c (record_full_xfer_partial): Likewise.
13655         (record_full_core_xfer_partial): Likewise.
13656         * remote-sim.c (gdbsim_xfer_memory): Likewise.
13657         (gdbsim_xfer_partial): Likewise.
13658         * remote.c (remote_write_bytes_aux): Likewise.  All callers
13659         updated.
13660         (remote_write_bytes, remote_read_bytes): Likewise.  All
13661         callers updated.
13662         (remote_flash_erase): Likewise.  All callers updated.
13663         (remote_write_qxfer): Likewise.  All callers updated.
13664         (remote_read_qxfer): Likewise.  All callers updated.
13665         (remote_xfer_partial): Likewise.
13666         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13667         (rs6000_xfer_shared_libraries): Likewise.
13668         * sol-thread.c (sol_thread_xfer_partial): Likewise.
13669         (sol_thread_xfer_partial): Likewise.
13670         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13671         (sparc_xfer_partial): Likewise.
13672         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
13673         updated.
13674         (spu_xfer_partial): Likewise.
13675         * spu-multiarch.c (spu_xfer_partial): Likewise.
13676         * tracepoint.c (tfile_xfer_partial): Likewise.
13677         * windows-nat.c (windows_xfer_memory): Likewise.
13678         (windows_xfer_shared_libraries): Likewise.
13679         (windows_xfer_partial): Likewise.
13680         * valprint.c: Replace 'target_xfer_error' with
13681         'target_xfer_status' in comments.
13682
13683 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
13684
13685         Checked in by Joel Brobecker <brobecker@adacore.com>.
13686         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13687
13688 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
13689
13690         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13691         function parameters.
13692
13693 2014-02-10  Will Newton  <will.newton@linaro.org>
13694
13695         * elfread.c (elf_rel_plt_read): Look for a .got section if
13696         looking up .got.plt fails.
13697         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13698         on address passed to elf_gnu_ifunc_record_cache.
13699         (elf_gnu_ifunc_resolve_addr): Likewise.
13700         (elf_gnu_ifunc_resolver_return_stop): Likewise.
13701
13702 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
13703
13704         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13705         (X_RETTURN): New macro.
13706         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13707
13708         * sparc64-tdep.c (sparc64_init_abi): Hook
13709         sparc_in_function_epilogue_p.
13710
13711 2014-02-10  Gary Benson  <gbenson@redhat.com>
13712
13713         * symfile-debug.c (debug_qf_expand_symtabs_matching):
13714         Rename name_matcher to symbol_matcher.
13715
13716 2014-02-10  Gary Benson  <gbenson@redhat.com>
13717
13718         * symfile-debug.c (debug_qf_expand_symtabs_matching):
13719         Use expand_symtabs_file_matcher_ftype and
13720         expand_symtabs_symbol_matcher_ftype.
13721
13722 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13723
13724         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13725         (struct ada_symbol_cache): New.
13726         (ada_free_symbol_cache): Forward declare.
13727         (struct ada_pspace_data): New.
13728         (ada_pspace_data_handle): New static global.
13729         (get_ada_pspace_data, ada_pspace_data_cleanup)
13730         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13731         (cache_space, cache): Delete, now folded inside struct
13732         ada_pspace_data.
13733         (ada_get_symbol_cache): New function.
13734         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13735         implementation.
13736         (_initialize_ada_language): Remove initialization of cache_space.
13737         Move call to observer_attach_inferior_exit up, grouping it
13738         with the other observer registrations inside this function.
13739         Rename command to be more general.  Add call to
13740         register_program_space_data_with_cleanup.
13741
13742 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13743
13744         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13745         ada_new_objfile_observer.
13746         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13747         (_initialize_tasks): Update uses of ada_new_objfile_observer
13748         and ada_tasks_normal_stop_observer.
13749
13750 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13751
13752         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13753         returned by the 'Length attribute to integer.
13754
13755 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13756
13757         * ada-lang.c (_initialize_ada_language): Initialize
13758         cache_space obstack.
13759
13760 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13761
13762         * ada-lang.c (HASH_SIZE): New macro.
13763         (struct cache_entry): New type.
13764         (cache_space, cache): New static globals.
13765         (ada_clear_symbol_cache, find_entry): New functions.
13766         (lookup_cached_symbol, cache_symbol): Implement.
13767         (ada_new_objfile_observer, ada_free_objfile_observer): New.
13768         (_initialize_ada_language): Attach ada_new_objfile_observer
13769         and ada_free_objfile_observer.
13770
13771 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13772
13773         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13774         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13775         struct block * parameter.
13776         (ada_lookup_symbol_list_worker): Constify local variable "block".
13777         Remove cast which is no longer necessary.
13778
13779 2014-02-10  Doug Evans  <xdje42@gmail.com>
13780
13781         Add Guile as an extension language.
13782         * NEWS: Mention Guile scripting.
13783         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13784         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13785         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13786         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13787         (CLIBS): Add GUILE_LIBS.
13788         (install-guile): New rule.
13789         (guile.o): New rule.
13790         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13791         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13792         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13793         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13794         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13795         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13796         (scm-type.o, scm-utils.o, scm-value.o): New rules.
13797         * configure.ac: New option --with-guile.
13798         * configure: Regenerate.
13799         * config.in: Regenerate.
13800         * auto-load.c: Remove #include "python/python.h".  Add #include
13801         "gdb/section-scripts.h".
13802         (source_section_scripts): Handle Guile scripts.
13803         (_initialize_auto_load): Add name of Guile objfile script to
13804         scripts-directory help text.
13805         * breakpoint.c (condition_command): Tweak comment to include Scheme.
13806         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13807         (struct breakpoint): New member scm_bp_object.
13808         * defs.h (enum command_control_type): New value guile_control.
13809         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
13810         "extension.h".
13811         (show_user): Update comment.
13812         (_initialize_cli_cmds): Update help text for "show user".  Update help
13813         text for max-user-call-depth.
13814         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
13815         "extension.h".
13816         (multi_line_command_p): Add guile_control.
13817         (print_command_lines): Handle guile_control.
13818         (execute_control_command, recurse_read_control_structure): Ditto.
13819         (process_next_line): Recognize "guile" commands.
13820         * disasm.c (gdb_disassemble_info): Make non-static.
13821         * disasm.h: #include "dis-asm.h".
13822         (struct gdbarch): Add forward decl.
13823         (gdb_disassemble_info): Declare.
13824         * extension.c: #include "guile/guile.h".
13825         (extension_languages): Add guile.
13826         (get_ext_lang_defn): Handle EXT_LANG_GDB.
13827         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13828         * gdbtypes.c (get_unsigned_type_max): New function.
13829         (get_signed_type_minmax): New function.
13830         * gdbtypes.h (get_unsigned_type_max): Declare.
13831         (get_signed_type_minmax): Declare.
13832         * guile/README: New file.
13833         * guile/guile-internal.h: New file.
13834         * guile/guile.c: New file.
13835         * guile/guile.h: New file.
13836         * guile/scm-arch.c: New file.
13837         * guile/scm-auto-load.c: New file.
13838         * guile/scm-block.c: New file.
13839         * guile/scm-breakpoint.c: New file.
13840         * guile/scm-disasm.c: New file.
13841         * guile/scm-exception.c: New file.
13842         * guile/scm-frame.c: New file.
13843         * guile/scm-gsmob.c: New file.
13844         * guile/scm-iterator.c: New file.
13845         * guile/scm-lazy-string.c: New file.
13846         * guile/scm-math.c: New file.
13847         * guile/scm-objfile.c: New file.
13848         * guile/scm-ports.c: New file.
13849         * guile/scm-pretty-print.c: New file.
13850         * guile/scm-safe-call.c: New file.
13851         * guile/scm-string.c: New file.
13852         * guile/scm-symbol.c: New file.
13853         * guile/scm-symtab.c: New file.
13854         * guile/scm-type.c: New file.
13855         * guile/scm-utils.c: New file.
13856         * guile/scm-value.c: New file.
13857         * guile/lib/gdb.scm: New file.
13858         * guile/lib/gdb/boot.scm: New file.
13859         * guile/lib/gdb/experimental.scm: New file.
13860         * guile/lib/gdb/init.scm: New file.
13861         * guile/lib/gdb/iterator.scm: New file.
13862         * guile/lib/gdb/printing.scm: New file.
13863         * guile/lib/gdb/types.scm: New file.
13864         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13865         (VPATH): Add $(GUILE_SRCDIR).
13866         (GUILE_DIR): New variable.
13867         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13868         (all): Add stamp-guile dependency.
13869         (stamp-guile): New rule.
13870         (clean-guile, install-guile, uninstall-guile): New rules.
13871         (install-only): Add install-guile dependency.
13872         (uninstall): Add uninstall-guile dependency.
13873         (clean): Add clean-guile dependency.
13874
13875 2014-02-09  Doug Evans  <xdje42@gmail.com>
13876
13877         Revert this patch (which I approved, mea culpa).
13878
13879         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
13880
13881         * Makefile.in (all-lib): Remove.
13882         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13883
13884 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
13885
13886         Fix Python stack corruption.
13887         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13888         gdb_py_longest.
13889
13890 2014-02-08  Mark Kettenis  <kettenis@gnu.org>
13891
13892         * Makefile.in (all-lib): Remove.
13893         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13894
13895 2014-02-07  Doug Evans  <dje@google.com>
13896
13897         * extension-priv.h (extension_language_script_ops): Add comment.
13898         (extension_language_ops): Add comment.
13899         (active_ext_lang_state): Fix typo in comment.
13900
13901 2014-02-07  Pedro Alves  <palves@redhat.com>
13902
13903         PR breakpoints/16292
13904         * infrun.c (handle_signal_stop) <signal arrives while stepping
13905         over a breakpoint>: Switch back to the stepping thread.
13906
13907 2014-02-07  Yao Qi  <yao@codesourcery.com>
13908
13909         * target.c (target_xfer_partial): Return zero if LEN is zero.
13910
13911 2014-02-07  Yao Qi  <yao@codesourcery.com>
13912
13913         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13914         (ld_so_xfer_auxv): Likewise.
13915         * bfd-target.c (target_bfd_xfer_partial): Likewise.
13916         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13917         * corelow.c (core_xfer_partial): Likewise.
13918         * ctf.c (ctf_xfer_partial): Likewise.
13919         * darwin-nat.c (darwin_read_dyld_info): Likewise.
13920         (darwin_xfer_partial): Likewise.
13921         * exec.c (exec_xfer_partial): Likewise.
13922         * gnu-nat.c (gnu_xfer_partial): Likewise.
13923         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13924         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13925         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13926         * linux-nat.c (linux_xfer_siginfo): Likewise.
13927         (linux_proc_xfer_spu): Likewise.
13928         * procfs.c (procfs_xfer_partial): Likewise.
13929         * record-full.c (record_full_xfer_partial): Likewise.
13930         (record_full_core_xfer_partial): Likewise.
13931         * remote-sim.c (gdbsim_xfer_partial): Likewise.
13932         * remote.c (remote_write_qxfer): Likewise.
13933         (remote_write_qxfer, remote_read_qxfer): Likewise.
13934         (remote_xfer_partial): Likewise.
13935         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13936         (rs6000_xfer_shared_libraries): Likewise.
13937         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13938         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13939         (spu_xfer_partial): Likewise.
13940         * target.c (memory_xfer_partial_1): Likewise.
13941         * tracepoint.c (tfile_xfer_partial): Likewise.
13942         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13943         (windows_xfer_partial): Likewise.
13944
13945 2014-02-07  Yao Qi  <yao@codesourcery.com>
13946
13947         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
13948         comments.
13949         (core_xfer_shared_libraries_aix): Likewise.
13950         * gdbarch.c, gdbarch.h: Regenerated.
13951         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13952         ULONGEST.  Change 'len_avail' type to ULONGEST.
13953         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13954         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13955         declaration.
13956         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13957
13958 2014-02-07  Yao Qi  <yao@codesourcery.com>
13959
13960         * corefile.c (memory_error): Get 'exception' from ERR and pass
13961         'exception' to throw_error.
13962
13963 2014-02-06  Doug Evans  <xdje42@gmail.com>
13964
13965         * configure.ac (libpython checking): Remove all but python.o from
13966         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
13967         * configure: Regenerate.
13968
13969         * Makefile.in (SFILES): Add extension.c.
13970         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13971         (COMMON_OBS): Add extension.o.
13972         * extension.h: New file.
13973         * extension-priv.h: New file.
13974         * extension.c: New file.
13975
13976         * python/python-internal.h: #include "extension.h".
13977         (gdbpy_auto_load_enabled): Declare.
13978         (gdbpy_apply_val_pretty_printer): Declare.
13979         (gdbpy_apply_frame_filter): Declare.
13980         (gdbpy_preserve_values): Declare.
13981         (gdbpy_breakpoint_cond_says_stop): Declare.
13982         (gdbpy_breakpoint_has_cond): Declare.
13983         (void source_python_script_for_objfile): Delete.
13984         * python/python.c: #include "extension-priv.h".
13985         Delete inclusion of "observer.h".
13986         (extension_language_python): Moved here and renamed from
13987         script_language_python in py-auto-load.c.
13988         Redefined to be of type extension_language_defn.
13989         (python_extension_script_ops): New global.
13990         (python_extension_ops): New global.
13991         (struct python_env): New member previous_active.
13992         (restore_python_env): Call restore_active_ext_lang.
13993         (ensure_python_env): Call set_active_ext_lang.
13994         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13995         New arg extlang.
13996         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13997         New arg extlang.
13998         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13999         New arg extlang.
14000         (gdbpy_eval_from_control_command): Renamed from
14001         eval_python_from_control_command, made static.  New arg extlang.
14002         (gdbpy_source_script) Renamed from source_python_script, made static.
14003         New arg extlang.
14004         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
14005         result to int.  New arg extlang.
14006         (gdbpy_source_objfile_script): Renamed from
14007         source_python_script_for_objfile, made static.  New arg extlang.
14008         (gdbpy_start_type_printers): Renamed from start_type_printers, made
14009         static.  New args extlang, extlang_printers.  Change result type to
14010         "void".
14011         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14012         static.  New arg extlang.  Rename arg printers to extlang_printers
14013         and change type to ext_lang_type_printers *.
14014         (gdbpy_free_type_printers): Renamed from free_type_printers, made
14015         static.  Replace argument arg with extlang, extlang_printers.
14016         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14017         (!HAVE_PYTHON, source_python_script): Delete.
14018         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14019         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14020         (!HAVE_PYTHON, start_type_printers): Delete.
14021         (!HAVE_PYTHON, apply_type_printers): Delete.
14022         (!HAVE_PYTHON, free_type_printers): Delete.
14023         (_initialize_python): Delete call to observer_attach_before_prompt.
14024         (finalize_python): Set/restore active extension language.
14025         (gdbpy_finish_initialization) Renamed from
14026         finish_python_initialization, made static.  New arg extlang.
14027         (gdbpy_initialized): New function.
14028         * python/python.h: #include "extension.h".  Delete #include
14029         "value.h", "mi/mi-cmds.h".
14030         (extension_language_python): Declare.
14031         (GDBPY_AUTO_FILE_NAME): Delete.
14032         (enum py_bt_status): Moved to extension.h and renamed to
14033         ext_lang_bt_status.
14034         (enum frame_filter_flags): Moved to extension.h.
14035         (enum py_frame_args): Moved to extension.h and renamed to
14036         ext_lang_frame_args.
14037         (finish_python_initialization): Delete.
14038         (eval_python_from_control_command): Delete.
14039         (source_python_script): Delete.
14040         (apply_val_pretty_printer): Delete.
14041         (apply_frame_filter): Delete.
14042         (preserve_python_values): Delete.
14043         (gdbpy_script_language_defn): Delete.
14044         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14045         (start_type_printers, apply_type_printers, free_type_printers): Delete.
14046
14047         * auto-load.c: #include "extension.h".
14048         (GDB_AUTO_FILE_NAME): Delete.
14049         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
14050         (script_language_gdb): Delete, moved to extension.c and renamed to
14051         extension_language_gdb.
14052         (source_gdb_script_for_objfile): Delete.
14053         (auto_load_pspace_info): New member unsupported_script_warning_printed.
14054         (loaded_script): Change type of language member to
14055         struct extension_language_defn *.
14056         (init_loaded_scripts_info): Initialize
14057         unsupported_script_warning_printed.
14058         (maybe_add_script): Make static.  Change type of language arg to
14059         struct extension_language_defn *.
14060         (clear_section_scripts): Reset unsupported_script_warning_printed.
14061         (auto_load_objfile_script_1): Rewrite to use extension language API.
14062         (auto_load_objfile_script): Make public.  Remove support-compiled-in
14063         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14064         (source_section_scripts): Rewrite to use extension language API.
14065         (load_auto_scripts_for_objfile): Rewrite to use
14066         auto_load_scripts_for_objfile.
14067         (collect_matching_scripts_data): Change type of language member to
14068         struct extension_language_defn *.
14069         (auto_load_info_scripts): Change type of language arg to
14070         struct extension_language_defn *.
14071         (unsupported_script_warning_print): New function.
14072         (script_not_found_warning_print): Make static.
14073         (_initialize_auto_load): Rewrite construction of scripts-directory
14074         help.
14075         * auto-load.h (struct objfile): Add forward decl.
14076         (struct script_language): Delete.
14077         (struct auto_load_pspace_info): Add forward decl.
14078         (struct extension_language_defn): Add forward decl.
14079         (maybe_add_script): Delete.
14080         (auto_load_objfile_script): Declare.
14081         (script_not_found_warning_print): Delete.
14082         (auto_load_info_scripts): Update prototype.
14083         (auto_load_gdb_scripts_enabled): Declare.
14084         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14085         auto_load_python_scripts_enabled and made public.
14086         (script_language_python): Delete, moved to python.c.
14087         (gdbpy_script_language_defn): Delete.
14088         (info_auto_load_python_scripts): Update to use
14089         extension_language_python.
14090
14091         * breakpoint.c (condition_command): Replace call to
14092         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14093         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14094         with call to breakpoint_ext_lang_cond_says_stop.
14095         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14096         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
14097         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14098         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14099         New arg slang.
14100         (local_setattro): Print name of extension language with existing
14101         stop condition.
14102
14103         * valprint.c (val_print, value_print): Update to call
14104         apply_ext_lang_val_pretty_printer.
14105         * cp-valprint.c (cp_print_value): Update call to
14106         apply_ext_lang_val_pretty_printer.
14107         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14108         (gdbpy_apply_val_pretty_printer): Renamed from
14109         apply_val_pretty_printer.  New arg extlang.
14110         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14111
14112         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14113         extension language API.
14114         * cli/cli-script.c (execute_control_command): Update to call
14115         eval_ext_lang_from_control_command.
14116
14117         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14118         enum ext_lang_bt_status values.  Update call to
14119         apply_ext_lang_frame_filter.
14120         (mi_cmd_stack_list_locals): Ditto.
14121         (mi_cmd_stack_list_args): Ditto.
14122         (mi_cmd_stack_list_variables): Ditto.
14123         * mi/mi-main.c: Delete #include "python/python-internal.h".
14124         Add #include "extension.h".
14125         (mi_cmd_list_features): Replace reference to python internal variable
14126         gdb_python_initialized with call to ext_lang_initialized_p.
14127
14128         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14129         Update to use enum ext_lang_frame_args.  Update to call
14130         apply_ext_lang_frame_filter.
14131         * python/py-framefilter.c (extract_sym): Update to use enum
14132         ext_lang_bt_status.
14133         (extract_value, py_print_type, py_print_value): Ditto.
14134         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14135         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14136         (py_print_frame): Ditto.
14137         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14138         New arg extlang.  Update to use enum ext_lang_bt_status.
14139
14140         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14141         finish_python_initialization.  Replace with call to
14142         finish_ext_lang_initialization.
14143
14144         * typeprint.c (do_free_global_table): Update to call
14145         free_ext_lang_type_printers.
14146         (create_global_typedef_table): Update to call
14147         start_ext_lang_type_printers.
14148         (find_global_typedef): Update to call apply_ext_lang_type_printers.
14149         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14150         (type_print_options): Change type of global_printers from "void *"
14151         to "struct ext_lang_type_printers *".
14152
14153         * value.c (preserve_values): Update to call preserve_ext_lang_values.
14154         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14155         (gdbpy_preserve_values): Renamed from preserve_python_values.
14156         New arg extlang.
14157         (!HAVE_PYTHON, preserve_python_values): Delete.
14158
14159         * utils.c (quit_flag): Delete, moved to extension.c.
14160         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14161         extension.c.
14162
14163         * eval.c: Delete #include "python/python.h".
14164         * main.c: Delete #include "python/python.h".
14165
14166         * defs.h: Update comment.
14167
14168 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
14169
14170         GDB 7.7 released.
14171
14172 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
14173
14174         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14175         defined.
14176
14177 2014-02-05  Yao Qi  <yao@codesourcery.com>
14178
14179         * remote.c (remote_pass_signals): Remove local 'buf' and use
14180         rs->buf.
14181         (remote_program_signals): Likewise.
14182
14183 2014-02-05  Yao Qi  <yao@codesourcery.com>
14184
14185         * ctf.c: Include "inferior.h" and "gdbthread.h".
14186         (CTF_PID): A new macro.
14187         (ctf_open): Call inferior_appeared and add_thread_silent.
14188         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14189         (ctf_thread_alive): New function.
14190         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14191
14192 2014-02-05  Yao Qi  <yao@codesourcery.com>
14193
14194         Revert this patch:
14195
14196         2013-05-24  Yao Qi  <yao@codesourcery.com>
14197
14198         * tracepoint.c (TFILE_PID): Remove.
14199         (tfile_open): Don't add thread and inferior.
14200         (tfile_close): Don't set 'inferior_ptid'.  Don't call
14201         exit_inferior_silent.
14202         (tfile_thread_alive): Remove.
14203         (init_tfile_ops): Don't set field 'to_thread_alive' of
14204         tfile_ops.
14205
14206 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
14207
14208         * remote.c (remote_start_remote): Call remote_check_symbols even
14209         if only symbol-file (not file) has been given.
14210
14211 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14212
14213         * gdbarch.sh (skip_entrypoint): New callback.
14214         * gdbarch.c, gdbarch.h: Regenerate.
14215         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14216         * infrun.c (fill_in_stop_func): Likewise.
14217         * ppc-linux-tdep.c: Include "elf/ppc64.h".
14218         (ppc_elfv2_elf_make_msymbol_special): New function.
14219         (ppc_elfv2_skip_entrypoint): Likewise.
14220         (ppc_linux_init_abi): Install them for ELFv2.
14221
14222 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14223
14224         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14225         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14226         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14227         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
14228         structures returned in GPRs.
14229
14230 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14231
14232         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14233         offset to the stack parameter list for the ELFv2 ABI.
14234
14235 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14236
14237         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14238         set_gdbarch_convert_from_func_ptr_addr and
14239         set_gdbarch_elf_make_msymbol_special for ELFv1.
14240         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14241         function descriptors on ELFv1.
14242         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
14243         set up r12 at function entry.
14244
14245 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14246
14247         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14248         (struct gdbarch_tdep): New member elf_abi.
14249
14250         * rs6000-tdep.c: Include "elf/ppc64.h".
14251         (rs6000_gdbarch_init): Detect ELF ABI version.
14252
14253 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14254
14255         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14256         within a register pair holding a DFP 128-bit value on little-endian.
14257         (ppc64_sysv_abi_return_value_base): Likewise.
14258         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14259         (dfp_pseudo_register_write): Likewise.
14260
14261 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14262
14263         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14264         offset on little-endian when passing _Decimal32.
14265         (ppc64_sysv_abi_return_value_base): Likewise for return values.
14266
14267 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14268
14269         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14270         of the overlapped FP register within the VSX register on little-
14271         endian platforms.
14272         (efpr_pseudo_register_write): Likewise.
14273
14274 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14275
14276         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14277         offset on little-endian when passing small structures.
14278
14279 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14280
14281         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14282         (struct ppc64_sysv_argpos): New data structure.
14283         (ppc64_sysv_abi_push_float): Remove.
14284         (ppc64_sysv_abi_push_val): New function.
14285         (ppc64_sysv_abi_push_integer): Likewise.
14286         (ppc64_sysv_abi_push_freg): Likewise.
14287         (ppc64_sysv_abi_push_vreg): Likewise.
14288         (ppc64_sysv_abi_push_param): Likewise.
14289         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14290         (ppc64_sysv_abi_return_value_base): New function.
14291         (ppc64_sysv_abi_return_value): Refactor to use it.
14292
14293 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14294
14295         * NEWS: Document new target powerpc64le-*-linux*.
14296
14297 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
14298
14299         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14300         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14301         core dumps.
14302         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14303         register set used in ELF core dumps.  Add floating-point register set.
14304
14305 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
14306
14307         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14308         dwarf2_to_gdb[] table using symbolic constants.  Adjust
14309         penultimate entry from number representing the PC register
14310         to symbolic constant representing the MDR register.  Add
14311         constant for the PC register to the end of the table.
14312
14313 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
14314
14315         * bsd-kvm.c: Include <sys/param.h>
14316
14317 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
14318
14319         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14320
14321 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
14322
14323         * ada-lang.h (clear_ada_sym_cache): Delete.
14324
14325 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
14326
14327         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14328
14329 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
14330
14331         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14332           the sigreturn register save area only if the syscall is
14333           sigreturn.
14334
14335 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
14336
14337         * valops.c (value_slice): Minor reformatting.
14338
14339 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
14340
14341         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14342
14343 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
14344
14345         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14346         New static globals.
14347         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14348         (ada_ignore_descriptive_types_p): New static global.
14349         (find_parallel_type_by_descriptive_type): Return immediately
14350         if ada_ignore_descriptive_types_p is set.
14351         (_initialize_ada_language): Register new commands "maintenance
14352         set ada", "maintenance show ada", "maintenance set ada
14353         ignore-descriptive-types" and "maintenance show ada
14354         ignore-descriptive-types".
14355         * NEWS: Add entry for new "maint ada set/show
14356         ignore-descriptive-types" commands.
14357
14358 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
14359
14360         * record-btrace.c (record_btrace_close): Call btrace_teardown
14361         for all threads.
14362
14363 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14364
14365         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14366         "ui-out.h".
14367
14368 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14369
14370         * ada-typeprint (type_is_full_subrange_of_target_type):
14371         New function.
14372         (print_range): Add parameter bounds_prefered_p.  If not set,
14373         try printing range types using the name of their base type.
14374         (print_range_type): Add parameter bounds_prefered_p.
14375         Use it in call to print_range.
14376         (print_array_type, ada_print_type): Update calls to print_range
14377         and print_range_type.
14378
14379 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14380
14381         * ada-typeprint.c (print_array_type, print_choices, print_range)
14382         (print_range_bound, print_dynamic_range_bound, print_range_type):
14383         Remove declaration.
14384
14385 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14386
14387         * ada-typeprint.c (print_range): Add missing empty line
14388         after local declaration.
14389
14390 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14391
14392         * ada-valprint.c (print_optional_low_bound): Get index_type's
14393         target type for as long as it is a TYPE_CODE_RANGE.
14394
14395 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14396
14397         * procfs.c (procfs_make_note_section): Remove assertion and
14398         associated comment.
14399
14400 2014-01-24  Yao Qi  <yao@codesourcery.com>
14401
14402         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14403         * corelow.c (get_core_siginfo): Likewise.
14404
14405 2014-01-24  Yao Qi  <yao@codesourcery.com>
14406
14407         * remote.c (remote_write_bytes_aux): Change type of 'len' to
14408         ULONGEST.  Don't check 'len' is negative.
14409         (remote_write_bytes):  Change type of 'len' to ULONGEST.
14410
14411 2014-01-23  Tom Tromey  <tromey@redhat.com>
14412
14413         PR python/16485:
14414         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14415         Handle exception from frame.block.
14416         (FrameVars.fetch_frame_locals): Likewise.
14417
14418 2014-01-23  Tom Tromey  <tromey@redhat.com>
14419
14420         PR python/16487:
14421         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14422         on a NULL pointer.  Move "goto error" to correct place.
14423
14424 2014-01-23  Tom Tromey  <tromey@redhat.com>
14425
14426         PR python/16491:
14427         * python/py-framefilter.c (apply_frame_filter): Call
14428         ensure_python_env after computing gdbarch.
14429
14430 2014-01-23  Yao Qi  <yao@codesourcery.com>
14431
14432         * target.c (raw_memory_xfer_partial): Change argument type
14433         from void * to gdb_byte *.
14434         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14435
14436 2014-01-22  Doug Evans  <dje@google.com>
14437
14438         New gdbserver option --debug-format=timestamp.
14439         * NEWS: Mention it.
14440
14441 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
14442
14443         * syscalls/s390x-linux.xml: New file.
14444         * syscalls/s390-linux.xml: New file.
14445         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14446         (XML_SYSCALL_FILENAME_S390X): Likewise.
14447         (op_svc): New enum value for SVC opcode.
14448         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14449         (s390_linux_get_syscall_number): New function.
14450         (s390_gdbarch_init): Register '*get_syscall_number' and the
14451         syscall xml file name.
14452         * data-directory/Makefile.in (SYSCALLS_FILES): Add
14453         "s390-linux.xml" and "s390x-linux.xml".
14454         * NEWS: Announce new feature.
14455
14456 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
14457
14458         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14459
14460 2014-01-22  Pedro Alves  <palves@redhat.com>
14461
14462         * xtensa-config.c: Include defs.h.
14463
14464 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
14465
14466         * common/common-utils.h: Add "ARI:" comment beside __func__
14467         reference.
14468
14469 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
14470
14471         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14472         documentation a bit.
14473
14474 2014-01-21  Roland McGrath  <mcgrathr@google.com>
14475
14476         * configure.ac: Call AM_PROG_INSTALL_STRIP.
14477         * configure: Regenerate.
14478         * aclocal.m4: Regenerate.
14479         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14480         New substituted variables.
14481         (install-strip): New target.
14482         (INSTALL_SCRIPT): New substituted variable.
14483         (FLAGS_TO_PASS): Add it.
14484         (install-only): Use $(INSTALL_SCRIPT) rather than
14485         $(INSTALL_PROGRAM) for gcore.
14486
14487 2014-01-20  Tom Tromey  <tromey@redhat.com>
14488
14489         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14490         together.
14491
14492 2014-01-20  Tom Tromey  <tromey@redhat.com>
14493
14494         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14495         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14496         (deprecated_cmd_warning, complete_on_cmdlist): Update.
14497         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14498         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14499         (struct cmd_list_element) <flags>: Remove.
14500         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14501         doc_allocated>: New fields.
14502         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14503         bitfields.
14504         * maint.c (maintenance_do_deprecate): Update.
14505         * top.c (execute_command): Update.
14506
14507 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
14508
14509         * xtensa-linux-nat.c: Include asm/ptrace.h.
14510
14511 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14512
14513         * Makefile.in (SFILES): Add d-support.c.
14514         (COMMON_OBS): Add d-support.o.
14515         * d-lang.h (d_parse_symbol): Add comment, now defined in
14516         d-support.c.
14517         * d-lang.c (parse_call_convention)
14518         (parse_attributes, parse_function_types)
14519         (parse_function_args, parse_type, parse_identifier)
14520         (call_convention_p, d_parse_symbol): Move functions to ...
14521         * d-support.c: ... New file.
14522
14523 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14524
14525         * d-lang.h (d_parse_symbol): Add declaration.
14526         * d-lang.c (extract_identifiers)
14527         (extract_type_info): Remove functions.
14528         (parse_call_convention, parse_attributes)
14529         (parse_function_types, parse_function_args)
14530         (parse_type, parse_identifier, call_convention_p)
14531         (d_parse_symbol): New functions.
14532         (d_demangle): Use d_parse_symbol to demangle D symbols.
14533
14534 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14535
14536         * d-lang.h (struct builtin_d_type): New data type.
14537         (builtin_d_type): Add declaration.
14538         * d-lang.c (d_language_arch_info, build_d_types)
14539         (builtin_d_type): New functions.
14540         (enum d_primitive_types): New data type.
14541         (d_language_defn): Change c_language_arch_info to
14542         d_language_arch_info.
14543         (d_type_data): New static variable.
14544         (_initialize_d_language): Initialize d_type_data.
14545
14546 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14547
14548         * d-lang.h (d_main_name): Add declaration.
14549         * d-lang.c (d_main_name): New function.
14550         * symtab.c (find_main_name): Add call to d_main_name.
14551
14552 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14553
14554         * d-lang.c (d_language_defn): Change macro_expansion_c to
14555         macro_expansion_no.
14556
14557 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14558
14559         * MAINTAINERS: Add myself as a write-after-approval maintainer.
14560
14561 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
14562
14563         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14564         gdb_exception" declaration.
14565         * remote.c (getpkt_or_notif_sane): Likewise.
14566
14567 2014-01-17  Doug Evans  <dje@google.com>
14568
14569         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14570         function, contents of dirnames_to_char_ptr_vec_append moved here.
14571         (delim_string_to_char_ptr_vec): New function.
14572         (dirnames_to_char_ptr_vec_append): Rewrite.
14573         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14574
14575 2014-01-17  Doug Evans  <dje@google.com>
14576
14577         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14578         and moved here ...
14579         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14580         #include "common-utils.h".
14581         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14582         * common/vec.h (VEC_ASSERT_PASS): Update.
14583         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14584         (MACH_CHECK_ERROR): Update.
14585
14586 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
14587
14588         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14589         comments.
14590         * gdbarch.h: Regenerate.
14591
14592 2014-01-16  Tom Tromey  <tromey@redhat.com>
14593
14594         * value.c (struct value) <regnum>: Move earlier.
14595
14596 2014-01-16  Tom Tromey  <tromey@redhat.com>
14597
14598         * remote.c (extended_remote_create_inferior): Rename from
14599         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
14600         old implementation.
14601
14602 2014-01-16  Pedro Alves  <palves@redhat.com>
14603
14604         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14605         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14606         the backchain.
14607
14608 2014-01-16  Doug Evans  <dje@google.com>
14609
14610         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14611
14612 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14613
14614         * btrace.h (btrace_thread_flag): New.
14615         (struct btrace_thread_info) <flags>: New.
14616         * record-btrace.c (record_btrace_resume_thread)
14617         (record_btrace_find_thread_to_move, btrace_step_no_history)
14618         (btrace_step_stopped, record_btrace_start_replaying)
14619         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14620         (record_btrace_find_resume_thread): New.
14621         (record_btrace_resume, record_btrace_wait): Extend.
14622         (record_btrace_can_execute_reverse): New.
14623         (record_btrace_open): Fail in non-stop mode.
14624         (record_btrace_set_replay): Split into this, ...
14625         (record_btrace_stop_replaying): ... this, ...
14626         (record_btrace_clear_histories): ... and this.
14627         (init_record_btrace_ops): Init to_can_execute_reverse.
14628         * NEWS: Announce it.
14629
14630 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14631
14632         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14633         (forward_target_decr_pc_after_break)
14634         (target_decr_pc_after_break): New.
14635         * target.c (forward_target_decr_pc_after_break)
14636         (target_decr_pc_after_break): New.
14637         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14638         instead of gdbarch_decr_pc_after_break.
14639         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14640         instead of gdbarch_decr_pc_after_break.
14641         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14642         instead of gdbarch_decr_pc_after_break.
14643         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14644         instead of gdbarch_decr_pc_after_break.
14645         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14646         instead of gdbarch_decr_pc_after_break.
14647         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14648         instead of gdbarch_decr_pc_after_break.
14649
14650 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14651
14652         * btrace.c: Include regcache.h.
14653         (btrace_add_pc): New.
14654         (btrace_enable): Call btrace_add_pc.
14655         (btrace_is_empty): New.
14656         * btrace.h (btrace_is_empty): New.
14657         * record-btrace.c (require_btrace, record_btrace_info): Call
14658         btrace_is_empty.
14659
14660 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14661
14662         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14663         Support delta reads.
14664         (linux_disable_btrace): Change return type.
14665         * common/linux-btrace.h (linux_read_btrace): Change parameters
14666         and return type to allow error reporting.  Update users.
14667         (linux_disable_btrace): Change return type.  Update users.
14668         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14669         New.
14670         (btrace_error): New.
14671         (btrace_block) <begin>: Comment on BEGIN == 0.
14672         * btrace.c (btrace_compute_ftrace): Start from the end of
14673         the current trace.
14674         (btrace_stitch_trace, btrace_clear_history): New.
14675         (btrace_fetch): Read delta trace, return if replaying.
14676         (btrace_clear): Move clear history code to btrace_clear_history.
14677         (parse_xml_btrace): Throw an error if parsing failed.
14678         * target.h (struct target_ops) <to_read_btrace>: Change parameters
14679         and return type to allow error reporting.
14680         (target_read_btrace): Change parameters and return type to allow
14681         error reporting.
14682         * target.c (target_read_btrace): Update.
14683         * remote.c (remote_read_btrace): Support delta reads.  Pass
14684         errors on.
14685         * NEWS: Announce it.
14686
14687 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14688
14689         * record.h (record_btrace_frame_unwind)
14690         (record_btrace_tailcall_frame_unwind): New declarations.
14691         * dwarf2-frame: Include record.h
14692         (dwarf2_frame_cfa): Throw an error for btrace frames.
14693         * record-btrace.c: Include hashtab.h.
14694         (btrace_get_bfun_name): New.
14695         (btrace_call_history): Call btrace_get_bfun_name.
14696         (struct btrace_frame_cache): New.
14697         (bfcache): New.
14698         (bfcache_hash, bfcache_eq, bfcache_new): New.
14699         (btrace_get_frame_function): New.
14700         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14701         (record_btrace_frame_this_id): Compute own id.
14702         (record_btrace_frame_prev_register): Provide PC, throw_error
14703         for all other registers.
14704         (record_btrace_frame_sniffer): Detect btrace frames.
14705         (record_btrace_tailcall_frame_sniffer): New.
14706         (record_btrace_frame_dealloc_cache): New.
14707         (record_btrace_frame_unwind): Add new functions.
14708         (record_btrace_tailcall_frame_unwind): New.
14709         (_initialize_record_btrace): Allocate cache.
14710         * btrace.c (btrace_clear): Call reinit_frame_cache.
14711         * NEWS: Announce it.
14712
14713 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14714
14715         * record-btrace.c (record_btrace_set_replay)
14716         (record_btrace_goto_begin, record_btrace_goto_end)
14717         (record_btrace_goto): New.
14718         (init_record_btrace_ops): Initialize them.
14719         * NEWS: Announce it.
14720
14721 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14722
14723         * record-btrace.c (record_btrace_find_new_threads)
14724         (record_btrace_thread_alive): New.
14725         (init_record_btrace_ops): Initialize to_find_new_threads and
14726         to_thread_alive.
14727
14728 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14729
14730         * record-btrace.c (record_btrace_resume): New.
14731         (record_btrace_wait): New.
14732         (init_record_btrace_ops): Initialize to_wait and to_resume.
14733
14734 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14735
14736         * record-btrace.c (record_btrace_xfer_partial)
14737         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14738         (record_btrace_allow_memory_access): New.
14739         (init_record_btrace_ops): Initialize new methods.
14740         * target.c (raw_memory_xfer_partial): Bail out if target reports
14741         that this memory is not available.
14742
14743 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14744
14745         * target.h (target_ops) <to_insert_breakpoint>
14746         <to_remove_breakpoint>: Add target_ops parameter.
14747         (forward_target_insert_breakpoint): New.
14748         (forward_target_remove_breakpoint): New.
14749         (memory_remove_breakpoint, memory_insert_breakpoint):
14750         Add target_ops parameter.
14751         * target.c (target_insert_breakpoint): Split into this and ...
14752         (forward_target_insert_breakpoint): ... this.
14753         (target_remove_breakpoint): Split into this and ...
14754         (forward_target_remove_breakpoint): ... this.
14755         (debug_to_insert_breakpoint): Add target_ops parameter.
14756         Call forward_target_insert_breakpoint.
14757         (debug_to_remove_breakpoint): Add target_ops parameter.
14758         Call forward_target_remove_breakpoint.
14759         (update_current_target): Do not inherit or default to_insert_breakpoint
14760         and to_remove_breakpoint.
14761         * corelow.c (ignore): Add target_ops parameter.
14762         * exec.c (ignore): Add target_ops parameter.
14763         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14764         Add target_ops parameter.
14765         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14766         Add target_ops parameter.
14767         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14768         Add target_ops parameter.
14769         * record-full.c (record_full_beneath_to_insert_breakpoint)
14770         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14771         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14772         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14773         (record_full_core_remove_breakpoint): Add target_ops parameter.
14774         Update users.
14775         (record_full_beneath_to_insert_breakpoint_ops)
14776         (record_full_beneath_to_remove_breakpoint_ops)
14777         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14778         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14779         tmp_to_remove_breakpoint_ops,
14780         record_full_beneath_to_insert_breakpoint_ops, and
14781         record_full_beneath_to_remove_breakpoint_ops.
14782         * remote-m32r-sdi.c (m32r_insert_breakpoint)
14783         (m32r_remove_breakpoint): Add target_ops parameter.
14784         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14785         Add target_ops parameter.
14786         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14787         Add target_ops parameter.
14788
14789 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
14790             Markus Metzger  <markus.t.metzger@intel.com>
14791
14792         * record-btrace.c: Include frame-unwind.h.
14793         (record_btrace_frame_unwind_stop_reason)
14794         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14795         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14796         New.
14797         (init_record_btrace_ops): Install it.
14798
14799 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
14800
14801         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14802         get_prev_frame_1.
14803
14804 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
14805
14806         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14807         earlier.
14808
14809 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
14810
14811         * frame-unwind.c: Include target.h.
14812         (frame_unwind_try_unwinder): New function with code from ...
14813         (frame_unwind_find_by_frame): ... here.  New variable
14814         unwinder_from_target, call also target_get_unwinder)
14815         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14816         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14817         * target.h (struct target_ops): New fields to_get_unwinder and
14818         to_get_tailcall_unwinder.
14819         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14820
14821 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14822
14823         * record-btrace.c (record_btrace_fetch_registers)
14824         (record_btrace_store_registers)
14825         (record_btrace_to_prepare_to_store): New.
14826         (init_record_btrace_ops): Add the above.
14827
14828 2014-01-16  Tom Tromey  <tromey@redhat.com>
14829
14830         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14831         * target.h (struct target_ops) <to_prepare_to_store>: Add
14832         argument.
14833         (target_prepare_to_store): Add argument.
14834         * target.c (debug_to_prepare_to_store): Add argument.
14835         (update_current_target): Update.
14836         * remote.c (remote_prepare_to_store): Add 'self' argument.
14837         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14838         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14839         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14840         * record-full.c (record_full_core_prepare_to_store): Add 'self'
14841         argument.
14842         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14843         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14844         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14845         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14846         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14847
14848 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14849
14850         * btrace.h (replay) <replay>: New.
14851         (btrace_is_replaying): New.
14852         * btrace.c (btrace_clear): Free replay iterator.
14853         (btrace_is_replaying): New.
14854         * record-btrace.c (record_btrace_is_replaying): New.
14855         (record_btrace_info): Print insn number if replaying.
14856         (record_btrace_insn_history): Start at replay position.
14857         (record_btrace_call_history): Start at replay position.
14858         (init_record_btrace_ops): Init to_record_is_replaying.
14859
14860 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14861
14862         * record-btrace.c (record_btrace_insn_history_range): Include
14863         end.
14864         (record_btrace_insn_history_from): Adjust range.
14865         (record_btrace_call_history_range): Include
14866         end.
14867         (record_btrace_call_history_from): Adjust range.
14868         * NEWS: Announce changes.
14869
14870 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14871
14872         * record.h (enum record_print_flag)
14873         <record_print_indent_calls>: New.
14874         * record.c (get_call_history_modifiers): Recognize /c modifier.
14875         (_initialize_record): Document /c modifier.
14876         * record-btrace.c (btrace_call_history): Add btinfo parameter.
14877         Reorder fields.  Optionally indent the function name.  Update
14878         all users.
14879         * NEWS: Announce changes.
14880
14881 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14882
14883         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14884
14885 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14886
14887         * btrace.c (ftrace_new_function): Start counting at one.
14888         * record-btrace.c (record_btrace_info): Adjust number of calls
14889         and insns.
14890         * NEWS: Announce it.
14891
14892 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14893
14894         * record-btrace.c (btrace_call_history_insn_range): Print
14895         insn range as [begin, end].
14896
14897 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14898
14899         * btrace.h (struct btrace_func_link): New.
14900         (enum btrace_function_flag): New.
14901         (struct btrace_inst): Rename to ...
14902         (struct btrace_insn): ...this. Update all users.
14903         (struct btrace_func) <ibegin, iend>: Remove.
14904         (struct btrace_func_link): New.
14905         (struct btrace_func): Rename to ...
14906         (struct btrace_function): ...this. Update all users.
14907         (struct btrace_function) <segment, flow, up, insn, insn_offset)
14908         (number, level, flags>: New.
14909         (struct btrace_insn_iterator): Rename to ...
14910         (struct btrace_insn_history): ...this.
14911         Update all users.
14912         (struct btrace_insn_iterator, btrace_call_iterator): New.
14913         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14914         (struct btrace_target_info) <begin, end, level>
14915         <insn_history, call_history>: New.
14916         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14917         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14918         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14919         (btrace_call_number, btrace_call_begin, btrace_call_end)
14920         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14921         (btrace_find_function_by_number, btrace_set_insn_history)
14922         (btrace_set_call_history): New.
14923         * btrace.c (btrace_init_insn_iterator)
14924         (btrace_init_func_iterator, compute_itrace): Remove.
14925         (ftrace_print_function_name, ftrace_print_filename)
14926         (ftrace_skip_file): Change
14927         parameter to const.
14928         (ftrace_init_func): Remove.
14929         (ftrace_debug): Use new btrace_function fields.
14930         (ftrace_function_switched): Also consider gaining and
14931         losing symbol information).
14932         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14933         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14934         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14935         New.
14936         (ftrace_new_function): Move. Remove debug print.
14937         (ftrace_update_lines, ftrace_update_insns): New.
14938         (ftrace_update_function): Check for call, ret, and jump.
14939         (compute_ftrace): Renamed to ...
14940         (btrace_compute_ftrace): ...this. Rewritten to compute call
14941         stack.
14942         (btrace_fetch, btrace_clear): Updated.
14943         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14944         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14945         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14946         (btrace_call_number, btrace_call_begin, btrace_call_end)
14947         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14948         (btrace_find_function_by_number, btrace_set_insn_history)
14949         (btrace_set_call_history): New.
14950         * record-btrace.c (require_btrace): Use new btrace thread
14951         info fields.
14952         (record_btrace_info, btrace_insn_history)
14953         (record_btrace_insn_history, record_btrace_insn_history_range):
14954         Use new btrace thread info fields and new iterator.
14955         (btrace_func_history_src_line): Rename to ...
14956         (btrace_call_history_src_line): ...this. Use new btrace
14957         thread info fields.
14958         (btrace_func_history): Rename to ...
14959         (btrace_call_history): ...this. Use new btrace thread info
14960         fields and new iterator.
14961         (record_btrace_call_history, record_btrace_call_history_range):
14962         Use new btrace thread info fields and new iterator.
14963
14964 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14965
14966         * frame.h (frame_id_build_unavailable_stack_special): New.
14967         * frame.c (frame_id_build_unavailable_stack_special): New.
14968
14969 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14970
14971         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14972         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14973         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14974         to gdbarch.
14975         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14976         (i386_insn_is_jump, i386_jmp_p): New.
14977         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14978         insn_is_jump to gdbarch.
14979         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14980         * gdbarch.h: Regenerated.
14981         * gdbarch.c: Regenerated.
14982         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14983         (default_insn_is_jump): New.
14984         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14985         (default_insn_is_jump): New.
14986
14987 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14988
14989         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14990         Change to ...
14991         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
14992         (btrace_read_type) <btrace_read_new>: Change to ...
14993         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
14994
14995 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14996
14997         * common/linux-btrace.c (linux_read_btrace): Free trace from
14998         previous iteration.
14999
15000 2014-01-15  Doug Evans  <dje@google.com>
15001
15002         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15003         uint32_t.
15004
15005 2014-01-15  Tom Tromey  <tromey@redhat.com>
15006
15007         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15008         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15009         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15010         (set_objfile_main_name): New function.
15011         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15012         language_of_main>: New fields.
15013         (set_objfile_main_name): Declare.
15014         * symtab.c (find_main_name): Loop over objfiles to find the main
15015         name and language.
15016         (set_main_name): Now static.
15017         (get_main_info): Add comment.
15018         * symtab.h (set_main_name): Don't declare.
15019
15020 2014-01-15  Tom Tromey  <tromey@redhat.com>
15021
15022         * symtab.c (main_progspace_key): New global.
15023         (struct main_info): New.
15024         (name_of_main, language_of_main): Remove.
15025         (get_main_info, main_info_cleanup): New function.
15026         (set_main_name, main_name, main_language): Use get_main_info.
15027         (_initialize_symtab): Initialize main_progspace_key.
15028
15029 2014-01-15  Tom Tromey  <tromey@redhat.com>
15030
15031         * dbxread.c (process_one_symbol): Update.
15032         * dwarf2read.c (read_partial_die): Update.
15033         * symfile.c (set_initial_language): Call main_language.
15034         * symtab.c (language_of_main): Now static.
15035         (set_main_name): Add 'lang' parameter.
15036         (find_main_name): Update.
15037         (main_language): New function.
15038         (symtab_observer_executable_changed): Update.
15039         * symtab.h (set_main_name): Update.
15040         (language_of_main): Remove.
15041         (main_language): Declare.
15042
15043 2014-01-15  Tom Tromey  <tromey@redhat.com>
15044
15045         * symfile.c (init_entry_point_info): Use new "initialized" field.
15046         Update.
15047         * objfiles.h (struct entry_point) <initialized>: New field.
15048         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15049         (struct objfile) <ei>: ...here.  Remove.
15050         * objfiles.c (entry_point_address_query): Update.
15051
15052 2014-01-15  Tom Tromey  <tromey@redhat.com>
15053
15054         * objfiles.c (entry_point_address_query): Relocate entry point
15055         address.
15056         (objfile_relocate1): Do not relocate entry point address.
15057         * objfiles.h (struct entry_info) <entry_point>: Update comment.
15058         <the_bfd_section_index>: New field.
15059         * symfile.c (init_entry_point_info): Find the entry point's
15060         section.
15061
15062 2014-01-15  Tom Tromey  <tromey@redhat.com>
15063
15064         * solib-frv.c (enable_break): Use entry_point_address_query.
15065
15066 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15067
15068         * NEWS: Add note on improved process record-replay on
15069         arm*-linux* targets.
15070
15071 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15072
15073         * arm-tdep.c (enum arm_record_result): New enum.
15074         (arm_record_unsupported_insn): New function.
15075         (arm_record_coproc_data_proc): Removed.
15076         (thumb2_record_ld_st_multiple): New function.
15077         (thumb2_record_ld_st_dual_ex_tbb): New function.
15078         (thumb2_record_data_proc_sreg_mimm): New function.
15079         (thumb2_record_ps_dest_generic): New function.
15080         (thumb2_record_branch_misc_cntrl): New function.
15081         (thumb2_record_str_single_data): New function.
15082         (thumb2_record_ld_mem_hints): New function.
15083         (thumb2_record_ld_word): New function.
15084         (thumb2_record_lmul_lmla_div): New function.
15085         (thumb2_record_decode_insn_handler): New function.
15086         (decode_insn): Add thumb32 instruction handlers.
15087
15088 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15089
15090         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15091         (struct arm_linux_record_tdep): Declare.
15092         (arm_canonicalize_syscall): New function.
15093         (arm_all_but_pc_registers_record): New function.
15094         (arm_linux_syscall_record): New function.
15095         (arm_linux_init_abi): Add syscall recording constructs.
15096         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15097         decoding.  (arm_record_coproc_data_proc): Update arm syscall
15098         decoding.
15099         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15100         <arm_syscall_record>: New field.
15101         * configure.tgt (arm*-*-linux*): Add linux-record.o to
15102         gdb_target_obs.
15103
15104 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15105
15106         * arm-tdep.c (thumb_record_misc): Update to use sp as base
15107         register for push instruction recording.
15108
15109 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15110
15111         * arm-tdep.c (thumb_record_misc): Update to correct logical
15112         error while recording ldm, ldmia and pop instructions.
15113
15114 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15115
15116         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15117
15118 2014-01-15  Pedro Alves  <palves@redhat.com>
15119
15120         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15121         (go32_resume, go32_fetch_registers, store_register)
15122         (go32_store_registers, go32_prepare_to_store)
15123         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15124         (go32_create_inferior, go32_can_run, go32_terminal_init)
15125         (go32_terminal_inferior, go32_terminal_ours): Delete forward
15126         declarations.
15127
15128 2014-01-15  Tom Tromey  <tromey@redhat.com>
15129
15130         * target.h (async_callback_ftype): New typedef.
15131         (struct target_ops) <to_async>: Use it.
15132
15133 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
15134
15135         * python/py-value.c (get_field_type): Remove unnecessary curly
15136         braces for single-statement if block.
15137
15138 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
15139
15140         * python/py-type.c (convert_field): Add missing empty line
15141         after declarations.
15142
15143 2014-01-14  Doug Evans  <dje@google.com>
15144
15145         * symfile.h (expand_symtabs_matching): Renamed from
15146         expand_partial_symbol_names.  Update prototype.
15147         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15148         * symfile.c (expand_symtabs_matching): Renamed from
15149         expand_partial_symbol_names.  New args file_matcher, kind.
15150         Rename arg fun to symbol_matcher.
15151         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15152         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15153         ada_expand_partial_symbol_name.
15154         (ada_make_symbol_completion_list): Update to call
15155         expand_symtabs_matching.
15156         (ada_add_global_exceptions): Call expand_symtabs_matching.
15157         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15158         call map_symbol_filenames.
15159         * symtab.c (sources_info): Update to call map_symbol_filenames.
15160         (search_symbols): Call expand_symtabs_matching.
15161         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15162         (default_make_symbol_completion_list_break_on): Update to call
15163         expand_symtabs_matching.
15164         (make_source_files_completion_list): Update to call
15165         map_symbol_filenames.
15166
15167 2014-01-14  Doug Evans  <dje@google.com>
15168
15169         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15170         (expand_symtabs_symbol_matcher_ftype): New typedef.
15171         (quick_symbol_functions.expand_symtabs_matching): Update to use.
15172         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15173         * symfile.c (expand_partial_symbol_names): Update to use
15174         expand_symtabs_symbol_matcher_ftype.
15175         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15176         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15177         Arg name_matcher renamed to symbol_matcher.
15178         * psymtab.c (recursively_search_psymtabs): Update to use
15179         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
15180         sym_matcher.
15181         (expand_symtabs_matching_via_partial): Update to use
15182         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15183         Arg name_matcher renamed to symbol_matcher.
15184
15185 2014-01-14  Doug Evans  <dje@google.com>
15186
15187         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15188         (map_partial_symbol_filenames): Ditto.
15189         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15190         (map_partial_symbol_filenames): Ditto.
15191         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15192         (map_partial_symbol_filenames): Ditto.
15193         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15194         (map_partial_symbol_filenames): Ditto.
15195         * symtab.c: Delete #include "psymtab.h".
15196
15197 2014-01-14  Pedro Alves  <palves@redhat.com>
15198             Tom Tromey  <tromey@redhat.com>
15199
15200         * infrun.c (use_displaced_stepping): Use find_record_target
15201         instead of RECORD_IS_USED.
15202         (adjust_pc_after_break): Use record_full_is_used instead of
15203         RECORD_IS_USED.
15204         * record-btrace.c (record_btrace_open): Call record_preopen
15205         instead of checking RECORD_IS_USED.
15206         * record-full.c (record_full_shortname)
15207         (record_full_core_shortname): New globals.
15208         (record_full_is_used): New function.
15209         (find_full_open): Call record_preopen instead of checking
15210         RECORD_IS_USED.
15211         (init_record_full_ops): Set the target's shortname to
15212         record_full_shortname.
15213         (init_record_full_core_ops): Set the target's shortname to
15214         record_full_core_shortname.
15215         * record-full.h (record_full_is_used): Declare.
15216         * record.c (find_record_target): Make extern.
15217         (record_preopen): New function.
15218         * record.h (RECORD_IS_USED): Delete macro.
15219         (find_record_target, record_preopen): Declare functions.
15220
15221 2014-01-14  Yao Qi  <yao@codesourcery.com>
15222
15223         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15224         'len''s type to ULONGEST.
15225         (core_xfer_shared_libraries_aix): Likewise.
15226         * gdbarch.c, gdbarch.h: Regenerated.
15227         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15228         Change type of 'len' to ULONGEST.
15229         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15230         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15231
15232 2014-01-14  Yao Qi  <yao@codesourcery.com>
15233
15234         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15235         type of 'len' to ULONGEST.
15236         (linux_xfer_osdata_processgroups): Likewise.
15237         (linux_xfer_osdata_threads): Likewise.
15238         (linux_xfer_osdata_fds): Likewise.
15239         (linux_xfer_osdata_isockets): Likewise.
15240         (linux_xfer_osdata_shm): Likewise.
15241         (linux_xfer_osdata_sem): Likewise.
15242         (linux_xfer_osdata_msg): Likewise.
15243         (linux_common_xfer_osdata): Likewise.
15244         (struct osdata_type) <getter>: Likewise.
15245         * common/linux-osdata.h (linux_common_xfer_osdata): Update
15246         the declaration.
15247
15248 2014-01-14  Yao Qi  <yao@codesourcery.com>
15249
15250         * target.h (target_xfer_partial_ftype): Update.
15251         (struct target_ops) <to_xfer_partial>: Change 'len' type to
15252         ULONGEST.
15253         * aix-thread.c (aix_thread_xfer_partial): Change type of
15254         argument 'len' to ULONGEST.
15255         * auxv.c (procfs_xfer_auxv): Likewise.
15256         (ld_so_xfer_auxv): Likewise.
15257         (memory_xfer_auxv): Likewise.
15258         * bfd-target.c (target_bfd_xfer_partial): Likewise.
15259         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15260         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15261         * corelow.c (core_xfer_partial): Likewise.
15262         * ctf.c (ctf_xfer_partial): Likewise.
15263         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
15264         '%u'.
15265         (darwin_read_dyld_info): Likewise.
15266         (darwin_xfer_partial): Likewise.
15267         * exec.c (section_table_xfer_memory_partial): Likewise.
15268         (exec_xfer_partial): Likewise.
15269         * exec.h (section_table_xfer_memory_partial): Update
15270         declaration.
15271         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
15272         instead of plongest.
15273         (gnu_xfer_partial): Likewise.
15274         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15275         (ia64_hpux_xfer_solib_got): Likewise.
15276         (ia64_hpux_xfer_partial): Likewise.
15277         * ia64-linux-nat.c (ia64_linux_xfer_partial):
15278         * inf-ptrace.c (inf_ptrace_xfer_partial):
15279         * inf-ttrace.c (inf_ttrace_xfer_partial):
15280         * linux-nat.c (linux_xfer_siginfo): Likewise.
15281         (linux_nat_xfer_partial): Likewise.
15282         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15283         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15284         * monitor.c (monitor_xfer_memory): Likewise.
15285         (monitor_xfer_partial): Likewise.
15286         * procfs.c (procfs_xfer_partial): Likewise.
15287         * record-full.c (record_full_xfer_partial): Likewise.
15288         (record_full_core_xfer_partial): Likewise.
15289         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
15290         instead of plongest.
15291         (gdbsim_xfer_partial): Likewise.
15292         * remote.c (remote_xfer_partial): Likewise.
15293         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15294         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15295         declaration.
15296         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15297         (rs6000_xfer_shared_libraries): Likewise.
15298         * sol-thread.c (sol_thread_xfer_partial): Likewise.
15299         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15300         (sparc_xfer_partial): Likewise.
15301         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15302         (spu_xfer_partial): Likewise.
15303         * spu-multiarch.c (spu_xfer_partial): Likewise.
15304         * target.c (target_read_live_memory): Likewise.
15305         (memory_xfer_live_readonly_partial): Likewise.
15306         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15307         (target_xfer_partial, default_xfer_partial): Likewise.
15308         (current_xfer_partial): Likewise.
15309         * tracepoint.c (tfile_xfer_partial): Likewise.
15310         * windows-nat.c (windows_xfer_memory): Likewise.  Call
15311         pulongest instead of plongest.
15312         (windows_xfer_partial): Likewise.
15313         (windows_xfer_shared_libraries): Likewise.
15314
15315 2014-01-14  Yao Qi  <yao@codesourcery.com>
15316
15317         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15318         target_xfer_partial_ftype.
15319
15320 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
15321
15322         PR python/15464
15323         PR python/16113
15324         * valops.c (value_struct_elt_bitpos): New function
15325         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15326         object to 'None' if the field name is an empty string ("").
15327         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15328         attribute to look for a field when 'name' is 'None'.
15329         (get_field_type): New function
15330
15331 2014-01-13  Doug Evans  <dje@google.com>
15332
15333         PR symtab/16426
15334         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15335         (try_open_dwop_file): Ditto.
15336         * gdb_bfd.c: #include "vec.h".
15337         (bfdp): New typedef.
15338         (struct gdb_bfd_data): New member included_bfds.
15339         (gdb_bfd_unref): Unref all included bfds.
15340         (gdb_bfd_record_inclusion): New function.
15341         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15342
15343 2014-01-13  Tom Tromey  <tromey@redhat.com>
15344
15345         * gdbcore.h (deprecated_core_resize_section_table): Remove.
15346
15347 2014-01-13  Tom Tromey  <tromey@redhat.com>
15348
15349         * defs.h (use_windows): Remove.
15350         * gdb.c (main): Update.
15351         * main.c (captured_main, gdb_main): Update.
15352         * main.h (struct captured_main_args) <use_windows>: Remove.
15353         * top.c (use_windows): Remove.
15354
15355 2014-01-13  Tom Tromey  <tromey@redhat.com>
15356
15357         * defs.h (deprecated_flush_hook): Remove.
15358
15359 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
15360
15361         PR threads/16216
15362         * linux-thread-db.c (try_thread_db_load): Add parameter
15363         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
15364         (try_thread_db_load_from_pdir_1): Move it there from here.
15365         (try_thread_db_load_from_sdir): Update caller.
15366         (try_thread_db_load_from_dir): Move it there from here.
15367
15368 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
15369
15370         * regformats/regdat.sh: Always rewrite the register file.
15371
15372 2014-01-13  Pedro Alves  <palves@redhat.com>
15373
15374         * Makefile.in (CHECK_HEADERS): New variable.
15375         (check-headers:): New rule.
15376
15377 2014-01-13  Tom Tromey  <tromey@redhat.com>
15378
15379         * cli/cli-setshow.c (do_set_command): Update.
15380         * defs.h (deprecated_set_hook): Remove.
15381         * top.c (deprecated_set_hook): Remove.
15382
15383 2014-01-13  Pedro Alves  <palves@redhat.com>
15384
15385         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15386         the tracepoint if the PC is a pseudo-register.
15387
15388 2014-01-13  Tom Tromey  <tromey@redhat.com>
15389
15390         * defs.h (XCALLOC): Remove.
15391         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15392         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15393         * dwarf2loc.c (allocate_piece_closure): Likewise.
15394         * elfread.c (elf_symfile_segments): Likewise.
15395         (elf_symfile_segments): Likewise.
15396         * gdbtypes.c (copy_type_recursive): Likewise.
15397         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15398         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15399         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15400         XCALLOC.
15401         * mt-tdep.c (mt_gdbarch_init): Likewise.
15402         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15403         XCALLOC.
15404         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15405         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15406         * registry.c (registry_alloc_data): Likewise.
15407         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15408         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15409         * serial.c (serial_fdopen_ops): Likewise.
15410         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15411         XCALLOC.
15412         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15413         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15414         not XCALLOC.
15415
15416 2014-01-13  Tom Tromey  <tromey@redhat.com>
15417
15418         * defs.h (XMALLOC): Remove.
15419         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15420         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15421         * cli-out.c (struct ui_out *): Likewise.
15422         * cli/cli-dump.c (add_dump_command): Likewise.
15423         (add_dump_command): Likewise.
15424         * complaints.c (get_complaints): Likewise.
15425         (find_complaint): Likewise.
15426         * dwarf2-frame.c (execute_cfa_program): Likewise.
15427         * dwarf2read.c (abbrev_table_read_table): Likewise.
15428         * gdbarch.sh: Likewise.
15429         * gdbarch.c: Rebuild.
15430         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15431         * interps.c (interp_new): Likewise.
15432         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15433         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15434         * mi/mi-console.c (mi_console_file_new): Likewise.
15435         * mi/mi-interp.c (mi_interpreter_init): Likewise.
15436         * mi/mi-out.c (mi_out_new): Likewise.
15437         * mi/mi-parse.c (mi_parse): Likewise.
15438         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15439         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15440         * observer.c (xalloc_observer_list_node): Likewise.
15441         * regcache.c (regcache_xmalloc_1): Likewise.
15442         * reggroups.c (reggroup_new): Likewise.
15443         (_initialize_reggroup): Likewise.
15444         * registry.c (register_data_with_cleanup): Likewise.
15445         * remote.c (remote_notif_stop_alloc_reply): Likewise.
15446         * ser-base.c (serial_ttystate): Likewise.
15447         * ser-mingw.c (make_pipe_state): Likewise.
15448         * ser-pipe.c (pipe_open): Likewise.
15449         * serial.c (serial_open): Likewise.
15450         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15451         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15452         (tui_alloc_win_info): Likewise.
15453         (tui_add_content_elements): Likewise.
15454         * tui/tui-file.c (tui_file_new): Likewise.
15455         * tui/tui-out.c (tui_out_new): Likewise.
15456         * ui-file.c (mem_file_new): Likewise.
15457         * ui-out.c (push_level): Likewise.
15458         (make_cleanup_ui_out_end): Likewise.
15459         (append_header_to_list): Likewise.
15460         (ui_out_new): Likewise.
15461         * user-regs.c (user_reg_add_builtin): Likewise.
15462
15463 2014-01-13  Tom Tromey  <tromey@redhat.com>
15464
15465         * defs.h (XZALLOC): Remove.
15466         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15467         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15468         (get_ada_tasks_inferior_data): Likewise.
15469         * auto-load.c (get_auto_load_pspace_data): Likewise.
15470         * auxv.c (get_auxv_inferior_data): Likewise.
15471         * bfd-target.c (target_bfd_reopen): Likewise.
15472         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15473         (deprecated_insert_raw_breakpoint): Likewise.
15474         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15475         * corelow.c (core_open): Likewise.
15476         * darwin-nat.c (darwin_check_new_threads): Likewise.
15477         (darwin_attach_pid): Likewise.
15478         * dummy-frame.c (dummy_frame_push): Likewise.
15479         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15480         * dwarf2loc.c (allocate_piece_closure): Likewise.
15481         * elfread.c (elf_symfile_segments): Likewise.
15482         * eval.c (ptrmath_type_p): Likewise.
15483         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15484         * gdbtypes.c (alloc_type_arch): Likewise.
15485         (alloc_type_instance): Likewise.
15486         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15487         * inf-child.c (inf_child_can_use_agent): Likewise.
15488         * inflow.c (get_inflow_inferior_data): Likewise.
15489         * infrun.c (save_infcall_suspend_state): Likewise.
15490         * jit.c (jit_reader_load): Likewise.
15491         (get_jit_objfile_data): Likewise.
15492         (get_jit_program_space_data): Likewise.
15493         (jit_object_open_impl): Likewise.
15494         (jit_symtab_open_impl): Likewise.
15495         (jit_block_open_impl): Likewise.
15496         (jit_frame_sniffer): Likewise.
15497         * linux-fork.c (add_fork): Likewise.
15498         * maint.c (make_command_stats_cleanup): Likewise.
15499         * objfiles.c (get_objfile_pspace_data): Likewise.
15500         * opencl-lang.c (struct lval_closure): Likewise.
15501         * osdata.c (osdata_start_osdata): Likewise.
15502         * progspace.c (new_address_space): Likewise.
15503         (add_program_space): Likewise.
15504         * remote-sim.c (get_sim_inferior_data): Likewise.
15505         * sh-tdep.c (sh_gdbarch_init): Likewise.
15506         * skip.c (Ignore): Likewise.
15507         (skip_delete_command): Likewise.
15508         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15509         (library_list_start_library): Likewise.
15510         (solib_aix_current_sos): Likewise.
15511         * solib-darwin.c (get_darwin_info): Likewise.
15512         (darwin_current_sos): Likewise.
15513         * solib-dsbt.c (get_dsbt_info): Likewise.
15514         * solib-ia64-hpux.c (new_so_list): Likewise.
15515         (ia64_hpux_get_solib_linkage_addr): Likewise.
15516         * solib-spu.c (append_ocl_sos): Likewise.
15517         (spu_current_sos): Likewise.
15518         * solib-svr4.c (get_svr4_info): Likewise.
15519         (svr4_keep_data_in_core): Likewise.
15520         (library_list_start_library): Likewise.
15521         (svr4_default_sos): Likewise.
15522         (svr4_read_so_list): Likewise.
15523         * solib-target.c (library_list_start_library): Likewise.
15524         (solib_target_current_sos): Likewise.
15525         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15526         * symfile-debug.c (install_symfile_debug_logging): Likewise.
15527         * symfile.c (default_symfile_segments): Likewise.
15528         * target-descriptions.c (tdesc_data_init): Likewise.
15529         (tdesc_create_reg): Likewise.
15530         (struct tdesc_type *): Likewise.
15531         (tdesc_create_vector): Likewise.
15532         (tdesc_set_struct_size): Likewise.
15533         (struct tdesc_type *): Likewise.
15534         (tdesc_free_feature): Likewise.
15535         (tdesc_create_feature): Likewise.
15536         * windows-nat.c (windows_add_thread): Likewise.
15537         (windows_make_so): Likewise.
15538         * xml-support.c (gdb_xml_body_text): Likewise.
15539         (gdb_xml_create_parser_and_cleanup): Likewise.
15540         (xml_process_xincludes): Likewise.
15541         * xml-syscall.c (allocate_syscalls_info): Likewise.
15542         (syscall_create_syscall_desc): Likewise.
15543
15544 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
15545
15546         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15547         function, with code from i386_stap_parse_special_token.
15548         (i386_stap_parse_special_token_three_arg_disp): Likewise.
15549         (i386_stap_parse_special_token): Move code to the two functions
15550         above; simplify it.
15551
15552 2014-01-09  Pedro Alves  <palves@redhat.com>
15553             Hui Zhu  <hui@codesourcery.com>
15554
15555         PR gdb/16101
15556         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15557         bp_err_string.  Don't mark the location shlib_disabled if the
15558         error thrown wasn't a generic or memory error.  Catch errors
15559         thrown while inserting breakpoints in overlayed code.  Output
15560         error message of software breakpoints.
15561         * remote.c (remote_insert_breakpoint): If this breakpoint has
15562         target-side commands but this stub doesn't support Z0 packets,
15563         throw NOT_SUPPORTED_ERROR error.
15564         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15565         * target.h (target_insert_breakpoint): Extend comment.
15566         (target_insert_hw_breakpoint): Add comment.
15567
15568 2014-01-08  Pedro Alves  <palves@redhat.com>
15569
15570         * remote.c (remote_add_thread): Add threads silently if starting
15571         up.
15572         (remote_notice_new_inferior): If in all-stop, and starting up,
15573         don't call notice_new_inferior.
15574         (get_current_thread): New function, factored out from ...
15575         (add_current_inferior_and_thread): ... this.  Adjust.
15576         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
15577         found any thread, then select the remote's current thread as GDB's
15578         current thread too.
15579
15580 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
15581
15582         * NEWS: Create a new section for the next release branch.
15583         Rename the section of the current branch, now that it has
15584         been cut.
15585
15586 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
15587
15588         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15589         * version.in: Bump version to 7.7.50.DATE-cvs.
15590
15591 2014-01-08  Yao Qi  <yao@codesourcery.com>
15592
15593         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15594         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
15595         (spu_xfer_partial): Cast 'buf' to 'const char *'.
15596
15597 2014-01-08  Yao Qi  <yao@codesourcery.com>
15598
15599         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15600         return value of bfd_get_filename to symbol_file_add_from_bfd.
15601
15602 2014-01-08  Pierre Muller  <muller@sourceware.org>
15603
15604         Fix PR16201.
15605         * coff-pe-read.c (struct read_pe_section_data): Add index field.
15606         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15607         to prim_record_mininal_symbol_and_info.
15608         (add_pe_forwarded_sym): Use known section number of forwarded symbol
15609         in call to prim_record_minimal_symbol_and_info.
15610         (read_pe_exported_syms): Set index field of section_data.
15611
15612 2014-01-07  Andrew Pinski  <apinski@cavium.com>
15613
15614         * features/aarch64-core.xml (cpsr): Change to be 64bit.
15615         * features/aarch64.c: Regenerate.
15616
15617 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
15618
15619         * target.c (return_null): Define.
15620         (update_current_target): Use it instead of return_zero for
15621         functions that return a pointer.
15622
15623 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
15624
15625         * source.c (add_path): Fix check for duplicated paths in the previously
15626         included paths.
15627
15628 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
15629
15630         * ada-lang.c: Remove duplicated include statements.
15631         * alphabsd-nat.c: Ditto.
15632         * amd64-darwin-tdep.c: Ditto.
15633         * amd64fbsd-nat.c: Ditto.
15634         * auto-load.c: Ditto.
15635         * ax-gdb.c: Ditto.
15636         * breakpoint.c: Ditto.
15637         * dbxread.c: Ditto.
15638         * fork-child.c: Ditto.
15639         * gdb_usleep.c: Ditto.
15640         * i386-darwin-tdep.c: Ditto.
15641         * i386fbsd-nat.c: Ditto.
15642         * infcmd.c: Ditto.
15643         * inferior.c: Ditto.
15644         * jv-lang.c: Ditto.
15645         * linux-nat.c: Ditto.
15646         * linux-tdep.c: Ditto.
15647         * m68kbsd-nat.c: Ditto.
15648         * m68klinux-nat.c: Ditto.
15649         * microblaze-tdep.c: Ditto.
15650         * mips-linux-tdep.c: Ditto.
15651         * mn10300-tdep.c: Ditto.
15652         * nto-tdep.c: Ditto.
15653         * opencl-lang.c: Ditto.
15654         * osdata.c: Ditto.
15655         * printcmd.c: Ditto.
15656         * regcache.c: Ditto.
15657         * remote-m32r-sdi.c: Ditto.
15658         * remote.c: Ditto.
15659         * symfile.c: Ditto.
15660         * symtab.c: Ditto.
15661         * tilegx-linux-nat.c: Ditto.
15662         * tilegx-tdep.c: Ditto.
15663         * tracepoint.c: Ditto.
15664         * valops.c: Ditto.
15665         * vaxbsd-nat.c: Ditto.
15666         * windows-nat.c: Ditto.
15667         * xtensa-tdep.c: Ditto.
15668
15669 2014-01-07  Yao Qi  <yao@codesourcery.com>
15670
15671         * spu-linux-nat.c (_initialize_spu_nat): Declare.
15672
15673 2014-01-07  Yao Qi  <yao@codesourcery.com>
15674             Joel Brobecker  <brobecker@adacore.com>
15675
15676         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15677         (pdc_write_regs): Likewise.
15678         (fetch_regs_kernel_thread): Likewise.
15679         (store_regs_kernel_thread): Likewise.
15680
15681 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15682
15683         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15684         tagged type objects to their actual type.
15685
15686 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15687
15688         * ada-valprint.c (print_field_values): Add "language" parameter.
15689         Update calls to print_field_values and print_variant_part.
15690         Pass new parameter "language" in call to val_print instead
15691         of "current_language".  Replace call to ada_val_print by call
15692         to val_print.
15693         (print_variant_part): Add "language" parameter.
15694         (ada_val_print_struct_union): Update call to print_field_values.
15695
15696 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15697
15698         * ada-valprint.c (ui_memcpy): Delete.
15699         (ada_print_floating): Update documentation.  Add empty line
15700         between between function documentation and implementation.
15701         Delete variable "buffer".  Use ui_file_xstrdup in place of
15702         ui_file_put.  Minor adjustments following this change.
15703
15704 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15705
15706         * ada-valprint.c (ada_val_print_string): New function,
15707         extracted from ada_val_print_array.
15708         (ada_val_print_array): Replace extracted code by call
15709         to ada_val_print_string followed by a return.  Move
15710         "else" branch to the function's top block.
15711
15712 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15713
15714         * ada-valprint.c (ada_val_print_array): Move implementation
15715         down.  Rename parameter "offset" and "val" into "offset_aligned"
15716         and "original_value" respectively.  Add parameter "offset".
15717
15718 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15719
15720         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15721         re-organizing the code. Change the "???" message printed
15722         when target type is a TYPE_CODE_UNDEF into
15723         "<ref to undefined type>".
15724
15725 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15726
15727         * ada-valprint.c (print_record): Delete, implementation inlined...
15728         (ada_val_print_struct_union): ... here.  Remove call to
15729         ada_check_typedef in inlined implementation.
15730
15731 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15732
15733         * ada-valprint.c (ada_val_print_gnat_array): New function,
15734         extracted from ada_val_print_1;
15735         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15736         (ada_val_print_flt, ada_val_print_struct_union)
15737         (ada_val_print_ref): Likewise.
15738         (ada_val_print_1): Delete variables i and elttype.
15739         Replace extracted-out code by call to corresponding
15740         new functions.
15741
15742 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15743
15744         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15745
15746 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15747
15748         * ada-valprint.c (ada_val_print_1): Replace calls to
15749         ada_val_print_1 by calls to val_print.
15750
15751 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15752
15753         * ada-valprint.c (ada_val_print_1): Add parameter "language".
15754         Update calls to self accordingly.  Replace calls to c_val_print
15755         by calls to val_print.
15756
15757 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15758
15759         * ada-valprint.c (print_record): Delete declaration.
15760         (adjust_type_signedness, ada_val_print_1): Likewise.
15761         (ada_val_print): Move function implementation down.
15762         (print_variant_part, print_field_values, print_record):
15763         Move function implementation up.
15764
15765 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15766
15767         * python/py-type.c (typy_get_name): New function.
15768         (type_object_getset): Add entry for attribute "name".
15769         * NEWS: Add entry mentioning this new attribute.
15770
15771 2014-01-07  Yao Qi  <yao@codesourcery.com>
15772
15773         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15774         statement.
15775
15776 2014-01-07  Yao Qi  <yao@codesourcery.com>
15777
15778         * gnu-nat.c (info_port_rights): Add qualifier const to
15779         argument args.
15780
15781 2014-01-07  Yao Qi  <yao@codesourcery.com>
15782
15783         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15784
15785 2014-01-07  Yao Qi  <yao@codesourcery.com>
15786
15787         * gnu-nat.c (make_inf) Update declaration.
15788         (make_inf): Make it static.
15789         (inf_set_traced): Likewise.
15790         (inf_port_to_thread, inf_task_died_status): Likewise.
15791
15792 2014-01-07  Yao Qi  <yao@codesourcery.com>
15793
15794         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15795
15796 2014-01-07  Yao Qi  <yao@codesourcery.com>
15797
15798         * gnu-nat.c (_initialize_gnu_nat): Declare.
15799
15800 2014-01-07  Yao Qi  <yao@codesourcery.com>
15801
15802         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15803         'enum bfd_endian'.
15804         (struct gdbarch_info) <byte_order>: Change type to
15805         'enum bfd_endian'.
15806         <byte_order_for_code>: Likewise.
15807         * gdbarch.c, gdbarch.h: Regenerated.
15808
15809 2014-01-06  Sasha Smundak  <asmundak@google.com>
15810
15811         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15812
15813 2014-01-06  Tom Tromey  <tromey@redhat.com>
15814
15815         * doublest.c (convert_doublest_to_floatformat): Use const, not
15816         CONST.
15817         * somread.c (som_symtab_read): Likewise.
15818
15819 2014-01-07  Hui Zhu  <hui@codesourcery.com>
15820
15821         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15822         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15823         (gdb_bfd_fopen): Ditto.
15824         (gdb_bfd_openr): Ditto.
15825         (gdb_bfd_openw): Ditto.
15826         (gdb_bfd_openr_iovec): Ditto.
15827         (gdb_bfd_fdopenr): Ditto.
15828         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15829         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15830         with xstrdup.
15831         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15832         with xstrdup.
15833         * symfile-mem.c (symbol_file_add_from_memory): Removed
15834         gdb_bfd_stash_filename.
15835
15836 2014-01-03  Doug Evans  <dje@google.com>
15837
15838         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15839         output.
15840
15841 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
15842
15843         Update year range in copyright notice of all files.
15844
15845 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
15846
15847         * top.c (print_gdb_version): Set copyright year to 2014.
15848
15849 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
15850
15851         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15852
15853 For older changes see ChangeLog-2013.
15854 \f
15855 Local Variables:
15856 mode: change-log
15857 left-margin: 8
15858 fill-column: 74
15859 version-control: never
15860 coding: utf-8
15861 End: