Fix make_cleanup_dtor signature to match declaration
[external/binutils.git] / gdb / ChangeLog
1 2014-12-03  Simon Marchi  <simon.marchi@ericsson.com>
2
3         * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
4         type.
5
6 2014-12-02  Doug Evans  <dje@google.com>
7
8         * symtab.c (symbol_init_cplus_specific): Delete.
9         (symbol_set_demangled_name): Remove special c++ support.
10         (symbol_get_demangled_name, symbol_set_language): Ditto.
11         * symtab.h (struct cplus_specific): Delete.
12         (struct general_symbol_info) <language_specific>: Remove
13         cplus_specific.
14
15 2014-12-02  Doug Evans  <dje@google.com>
16
17         PR symtab/17602
18         * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
19
20 2014-12-02  Doug Evans  <dje@google.com>
21
22         PR symtab/17591
23         * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
24         to strip parameters.
25
26 2014-12-02  Doug Evans  <dje@google.com>
27
28         * dwarf2read.c (peek_die_abbrev): Improve error message text.
29
30 2014-12-02  Doug Evans  <dje@google.com>
31
32         * valops.c (do_search_struct_field): Remove remnant of Chill support.
33         Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
34
35 2014-12-02  Simon Marchi  <simon.marchi@ericsson.com>
36
37         * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
38
39 2014-12-02  Nick Bull  <nicholaspbull@gmail.com>
40
41         * NEWS: Mention new Python events.
42         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
43         (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
44         (py-infevents.o): New rule.
45         * doc/observer.texi (inferior_call_pre, inferior_call_post)
46         (memory_changed, register_changed): New observers.
47         * infcall.c (call_function_by_hand): Notify observer before and
48         after inferior call.
49         * python/py-event.h (inferior_call_kind): New enum.
50         (emit_inferior_call_event): New prototype.
51         (emit_register_changed_event): New prototype.
52         (emit_memory_changed_event): New prototype.
53         * python/py-events.h (events_object): New registries
54         inferior_call, memory_changed and register_changed.
55         * python/py-evts.c (gdbpy_initialize_py_events): Add the
56         inferior_call, memory_changed and register_changed registries.
57         * python/py-infevents.c: New.
58         * python/py-inferior.c (python_on_inferior_call_pre)
59         (python_on_inferior_call_post, python_on_register_change)
60         (python_on_memory_change): New functions.
61         (gdbpy_initialize_inferior): Attach python handler to new
62         observers.
63         * python/py-infthread.c(gdbpy_create_ptid_object): New.
64         (thpy_get_ptid) Use gdbpy_create_ptid_object.
65         * python/python-internal.h:
66         (gdbpy_create_ptid_object)
67         (gdbpy_initialize_inferior_call_pre_event)
68         (gdbpy_initialize_inferior_call_post_event)
69         (gdbpy_initialize_register_changed_event)
70         (gdbpy_initialize_memory_changed_event): New prototypes.
71         * python/python.c (_initialize_python): Initialize new events.
72         * valops.c (value_assign): Notify register_changed observer.
73
74 2014-12-02  Doug Evans  <dje@google.com>
75
76         * python/py-infthread.c: Whitespace fixes.
77
78 2014-12-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
79
80         * features/Makefile (s390-te-linux64-expedite): Replace
81         non-existant r14 and r15 by r14l and r15l, respectively.
82         * regformats/s390-te-linux64.dat: Regenerate.
83
84 2014-12-01  Simon Marchi  <simon.marchi@ericsson.com>
85
86         * objfiles.c (allocate_objfile): Remove duplicate comment.
87
88 2014-12-01  Ulrich Weigand  <uweigand@de.ibm.com>
89
90         * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
91         * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
92         (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
93         (supply_gregset, supply_fpregset): Remove.
94         * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
95         (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
96         and sizeof_gregset.
97
98 2014-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
99
100         Add add-auto-load-scripts-directory.
101         * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
102         * auto-load.c (add_auto_load_dir): New function.
103         (_initialize_auto_load): Install it.
104
105 2014-11-30  Martin Galvan  <martin.galvan@tallertechnologies.com>  (tiny patch, obvious)
106
107         Pushed by Joel Brobecker  <brobecker@adacore.com>.
108         * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
109
110 2014-11-29  Siva Chandra Reddy  <sivachandra@google.com>
111
112         * eval.c (evaluate_subexp): Check that the thread stack temporaries
113         are not already enabled before enabling them.
114
115 2014-11-29  Yao Qi  <yao@codesourcery.com>
116
117         * arm-tdep.c (arm_analyze_prologue): Move local variables
118         'framereg' and 'framesize' to inner block.  Move code to
119         inner block too.
120
121 2014-11-28  Siva Chandra Reddy  <sivachandra@google.com>
122
123         * eval.c: Include gdbthread.h.
124         (evaluate_subexp): Enable thread stack temporaries before
125         evaluating a complete expression and clean them up after the
126         evaluation is complete.
127         * gdbthread.h: Include common/vec.h.
128         (value_ptr): New typedef.
129         (VEC (value_ptr)): New vector type.
130         (value_vec): New typedef.
131         (struct thread_info): Add new fields stack_temporaries_enabled
132         and stack_temporaries.
133         (enable_thread_stack_temporaries)
134         (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
135         (get_last_thread_stack_temporary)
136         (value_in_thread_stack_temporaries): Declare.
137         * gdbtypes.c (class_or_union_p): New function.
138         * gdbtypes.h (class_or_union_p): Declare.
139         * infcall.c (call_function_by_hand): Store return values of class
140         type as temporaries on stack.
141         * thread.c (enable_thread_stack_temporaries): New function.
142         (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
143         (get_last_thread_stack_temporary): Likewise.
144         (value_in_thread_stack_temporaries): Likewise.
145         * value.c (value_force_lval): New function.
146         * value.h (value_force_lval): Declare.
147
148 2014-11-28  Pierre Muller  <muller@sourceware.org>
149
150         Pushed by Joel Brobecker  <brobecker@adacore.com>.
151         * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
152         registers.
153
154 2014-11-28  Ulrich Weigand  <uweigand@de.ibm.com>
155
156         * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
157         * config/sparc/linux.mh (NATDEPFILES): Likewise.
158         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
159         * m68klinux-nat.c (fetch_core_registers): Remove.
160         (linux_elf_core_fns): Remove.
161         (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
162
163 2014-11-28  Joel Brobecker  <brobecker@adacore.com>
164
165         * utils.c (gdb_realpath): Rework comment about handling on
166         Windows.
167
168 2014-11-28  Yao Qi  <yao@codesourcery.com>
169
170         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
171         rename.
172         * gnulib/aclocal.m4: Re-generated.
173         * gnulib/config.in: Re-generated.
174         * gnulib/configure: Re-generated.
175         * gnulib/import/Makefile.am: Re-generated.
176         * gnulib/import/Makefile.in: Re-generated.
177         * gnulib/import/m4/gnulib-cache.m4: Re-generated.
178         * gnulib/import/m4/gnulib-comp.m4: Re-generated.
179         * import/basename-lgpl.c: New file.
180         * import/dirname-lgpl.c: New file.
181         * import/dirname.h: New file.
182         * import/m4/dirname.m4: New file.
183         * import/m4/malloc.m4: New file.
184         * import/m4/rename.m4: New file.
185         * import/m4/rmdir.m4: New file.
186         * import/m4/stdio_h.m4: New file.
187         * import/malloc.c: New file.
188         * import/rename.c: New file.
189         * import/rmdir.c: New file.
190         * import/same-inode.h: New file.
191         * import/stdio.c: New file.
192         * import/stdio.in.h: New file.
193         * import/stripslash.c: New file.
194
195 2014-11-28  Yao Qi  <yao@codesourcery.com>
196
197         * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
198         and realpath.
199         * config.in: Re-generated.
200         * configure: Re-generated.
201         * utils.c (gdb_realpath): Remove code calling realpath,
202         canonicalize_file_name and pathconf.
203         [!_WIN32]: Call canonicalize_file_name.
204
205 2014-11-28  Yao Qi  <yao@codesourcery.com>
206
207         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
208         canonicalize-lgpl.
209         * aclocal.m4: Re-generated.
210         * config.in: Re-generated.
211         * configure: Re-generated.
212         * import/Makefile.am: Re-generated.
213         * import/Makefile.in: Re-generated.
214         * import/m4/gnulib-cache.m4: Re-generated.
215         * import/m4/gnulib-comp.m4: Re-generated.
216         * import/canonicalize-lgpl.c: New file.
217         * import/extra/snippet/_Noreturn.h: New file.
218         * import/m4/canonicalize.m4: New file.
219         * import/m4/double-slash-root.m4: New file.
220         * import/m4/eealloc.m4: New file.
221         * import/m4/malloca.m4: New file.
222         * import/m4/nocrash.m4: New file.
223         * import/m4/stdlib_h.m4: New file.
224         * import/malloca.c: New file.
225         * import/malloca.h: New file.
226         * import/malloca.valgrind: New file.
227
228 2014-11-28  Yao Qi  <yao@codesourcery.com>
229
230         * configure.ac (AC_CHECK_FUNCS): Remove lstat.
231         * config.in, configure: Regenerate.
232         * symfile.c (find_separate_debug_file_by_debuglink): Remove
233         code checking HAVE_LSTAT is defined.
234
235 2014-11-28  Yao Qi  <yao@codesourcery.com>
236
237         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
238         lstat.
239         * gnulib/aclocal.m4: Re-generated.
240         * gnulib/config.in: Re-generated.
241         * gnulib/configure: Re-generated.
242         * gnulib/import/Makefile.am: Re-generated.
243         * gnulib/import/Makefile.in: Re-generated.
244         * gnulib/import/m4/gnulib-cache.m4: Re-generated.
245         * gnulib/import/m4/gnulib-comp.m4: Re-generated.
246         * gnulib/import/lstat.c: New file.
247         * gnulib/import/m4/lstat.m4: New file.
248
249 2014-11-28  Yao Qi  <yao@codesourcery.com>
250
251         * configure.ac (AC_CHECK_FUNCS): Remove readlink.
252         * config.in, configure: Re-generate.
253         * inf-child.c (inf_child_fileio_readlink): Don't check
254         HAVE_READLINK is defined.
255
256 2014-11-28  Yao Qi  <yao@codesourcery.com>
257
258         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
259         * gnulib/aclocal.m4: Re-generated.
260         * gnulib/config.in: Likewise.
261         * gnulib/configure: Likewise.
262         * gnulib/import/Makefile.am: Likewise.
263         * gnulib/import/Makefile.in: Likewise.
264         * gnulib/import/m4/gnulib-cache.m4: Likewise.
265         * gnulib/import/m4/gnulib-comp.m4: Likewise.
266         * gnulib/import/dosname.h: New file
267         * gnulib/import/m4/largefile.m4: New file.
268         * gnulib/import/m4/readlink.m4: New file.
269         * gnulib/import/m4/stat.m4: New file.
270         * gnulib/import/readlink.c: New file.
271         * gnulib/import/stat.c: New file.
272
273 2014-11-26  Mark Wielaard  <mjw@redhat.com>
274
275         * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
276         DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
277
278 2014-11-25  Sandra Loosemore  <sandra@codesourcery.com>
279
280         * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
281         that there can be only one stack adjustment in the prologue
282         with tests to detect specific disallowed stack adjustments.
283
284 2014-11-25  Sandra Loosemore  <sandra@codesourcery.com>
285
286         * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
287         adjustments.
288
289 2014-11-25  Sandra Loosemore  <sandra@codesourcery.com>
290
291         * nios2-tdep.c (nios2_fetch_insn): Move up in file.  Disassemble
292         the instruction as well as reading it from memory.
293         (nios2_match_add): New.
294         (nios2_match_sub): New.
295         (nios2_match_addi): New.
296         (nios2_match_orhi): New.
297         (nios2_match_stw): New.
298         (nios2_match_ldw): New.
299         (nios2_match_rdctl): New.
300         (enum branch_condition): New.
301         (nios2_match_branch): New.
302         (nios2_match_jmpi): New.
303         (nios2_match_calli): New.
304         (nios2_match_jmpr): New.
305         (nios2_match_callr): New.
306         (nios2_match_break): New.
307         (nios2_match_trap): New.
308         (nios2_in_epilogue_p): Rewrite to use new functions.
309         (nios2_analyze_prologue): Likewise.
310         (nios2_skip_prologue): Delete unused local limit_pc.
311         (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
312         (nios2_get_next_pc): Rewrite to use new functions.
313
314 2014-11-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
315
316         * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
317
318 2014-11-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
319
320         Pushed by Joel Brobecker  <brobecker@adacore.com>
321         * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
322         elements pi_len by the size of the elements before calling
323         vm_deallocate.
324         (inf_validate_task_sc): Likewise, and properly deallocate the
325         noise array.
326
327 2014-11-23  Doug Evans  <xdje42@gmail.com>
328
329         * gdbtypes.c (print_args): Renamed from print_arg_types.  Print arg
330         number and name if present.  All callers updated.
331         (dump_fn_fieldlists): Fix indentation of args.
332
333 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
334
335         * MAINTAINERS (Write After Approval): Add myself.
336
337 2014-11-23  Joel Brobecker  <brobecker@adacore.com>
338
339         * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
340         to a bp_call_dummy breakpoint type.
341
342 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
343
344         * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
345         registering the signal handler.
346
347 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
348
349         * event-top.h (call_stdin_event_handler_again_p): Declare.
350         * event-top.c (call_stdin_event_handler_again_p): Define.
351         (stdin_event_handler): Use it.
352         * tui/tui-io.c (tui_getc): Prepare to call the stdin event
353         handler again if there is pending input following a
354         start sequence.
355
356 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
357
358         Pushed by Joel Brobecker  <brobecker@adacore.com>
359         * linux-fork.c (checkpoint_command): Print index of new
360         checkpoint in response message.
361
362 2014-11-23  Yao Qi  <yao@codesourcery.com>
363
364         * valprint.c (read_string): Move local variables 'found_nul',
365         'chunksize' and 'limit' to inner scope.  Update comments.
366
367 2014-11-22  Doug Evans  <xdje42@gmail.com>
368
369         * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
370         function comment.
371         (search_symbols): Fix comments and whitespace.
372
373 2014-11-22  Doug Evans  <xdje42@gmail.com>
374
375         * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
376
377 2014-11-21  Doug Evans  <dje@google.com>
378
379         * psymtab.c (psymtab_search_name): Fix whitespace.
380
381 2014-11-21  Yao Qi  <yao@codesourcery.com>
382
383         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
384         errno.
385         * gnulib/import/Makefile.am: Re-generated.
386         * gnulib/import/Makefile.in: Likewise.
387         * gnulib/import/m4/gnulib-cache.m4: Likewise.
388
389 2014-11-21  Yao Qi  <yao@codesourcery.com>
390
391         * gdb_wchar.h: Include wchar.h and wctype.h.
392         [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
393         include wchar.h and wctype.h.
394         Don't check HAVE_WCHAR_H.
395
396 2014-11-21  Yao Qi  <yao@codesourcery.com>
397
398         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
399         and wctype-h.
400         * gnulib/import/Makefile.am: Re-generated.
401         * gnulib/import/Makefile.in: Likewise.
402         * gnulib/import/m4/gnulib-cache.m4: Likewise.
403
404 2014-11-21  Yao Qi  <yao@codesourcery.com>
405
406         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
407         memchr.
408         * gnulib/import/Makefile.am: Re-generated.
409         * gnulib/import/Makefile.in: Likewise.
410         * gnulib/import/m4/gnulib-cache.m4: Likewise.
411
412 2014-11-21  Yao Qi  <yao@codesourcery.com>
413
414         * common/common-defs.h: Include alloca.h
415         * configure.ac: Don't invoke AC_FUNC_ALLOCA.
416         * configure: Re-generated.
417         * defs.h: Remove code handling alloca.
418         * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
419         or not.
420
421 2014-11-21  Yao Qi  <yao@codesourcery.com>
422
423         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
424         alloca.
425         * gnulib/import/Makefile.am: Re-generated.
426         * gnulib/import/Makefile.in: Likewise..
427         * gnulib/import/m4/gnulib-cache.m4: Likewise.
428
429 2014-11-21  Yao Qi  <yao@codesourcery.com>
430
431         * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
432         alphabetical order.
433
434 2014-11-21  Joel Brobecker  <brobecker@adacore.com>
435
436         * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
437         flag_unsigned if HIGH_BOUND is constant and negative.
438
439 2014-11-20  Sergio Durigan Junior  <sergiodj@redhat.com>
440
441         PR breakpoints/10737
442         * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
443         modifier from "struct gdbarch" when compiling without Expat (XML)
444         support.
445         (get_syscall_by_number): Likewise.
446         (get_syscall_by_name): Likewise.
447         (get_syscall_names): Likewise.
448
449 2014-11-20  Sergio Durigan Junior  <sergiodj@redhat.com>
450
451         PR breakpoints/10737
452         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
453         set_xml_syscall_file_name to provide gdbarch.
454         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
455         * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
456         * breakpoint.c (print_it_catch_syscall): Adjust call to
457         get_syscall_by_number to provide gdbarch.
458         (print_one_catch_syscall): Likewise.
459         (print_mention_catch_syscall): Likewise.
460         (print_recreate_catch_syscall): Likewise.
461         (catch_syscall_split_args): Adjust calls to get_syscall_by_number
462         and get_syscall_by_name to provide gdbarch.
463         (catch_syscall_completer): Adjust call to get_syscall_names to
464         provide gdbarch.
465         * gdbarch.c: Regenerate.
466         * gdbarch.h: Likewise.
467         * gdbarch.sh: Forward declare "struct syscalls_info".
468         (xml_syscall_file): New variable.
469         (syscalls_info): Likewise.
470         * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
471         set_xml_syscall_file_name to provide gdbarch.
472         * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
473         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
474         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
475         * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
476         * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
477         * xml-syscall.c: Include gdbarch.h.
478         (set_xml_syscall_file_name): Accept gdbarch parameter.
479         (get_syscall_by_number): Likewise.
480         (get_syscall_by_name): Likewise.
481         (get_syscall_names): Likewise.
482         (my_gdb_datadir): Delete global variable.
483         (struct syscalls_info) <my_gdb_datadir>: New variable.
484         (struct syscalls_info) <sysinfo>: Rename variable to
485         "syscalls_info".
486         (sysinfo): Delete global variable.
487         (have_initialized_sysinfo): Likewise.
488         (xml_syscall_file): Likewise.
489         (sysinfo_free_syscalls_desc): Rename to...
490         (syscalls_info_free_syscalls_desc): ... this.
491         (free_syscalls_info): Rename "sysinfo" to "syscalls_info".  Adjust
492         code to the new layout of "struct syscalls_info".
493         (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
494         "syscalls_info".
495         (syscall_create_syscall_desc): Likewise.
496         (syscall_start_syscall): Likewise.
497         (syscall_parse_xml): Likewise.
498         (xml_init_syscalls_info): Likewise.  Drop "const" from return value.
499         (init_sysinfo): Rename to...
500         (init_syscalls_info): ...this.  Add gdbarch as a parameter.
501         Adjust function to deal with gdbarch.
502         (xml_get_syscall_number): Delete parameter sysinfo.  Accept
503         gdbarch as a parameter.  Adjust code.
504         (xml_get_syscall_name): Likewise.
505         (xml_list_of_syscalls): Likewise.
506         (set_xml_syscall_file_name): Accept gdbarch as parameter.
507         (get_syscall_by_number): Likewise.
508         (get_syscall_by_name): Likewise.
509         (get_syscall_names): Likewise.
510         * xml-syscall.h (set_xml_syscall_file_name): Likewise.
511         (get_syscall_by_number): Likewise.
512         (get_syscall_by_name): Likewise.
513         (get_syscall_names): Likewise.
514
515 2014-11-20  Doug Evans  <xdje42@gmail.com>
516
517         Split struct symtab into two: struct symtab and compunit_symtab.
518         * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
519         * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
520         to "struct compunit_symtab *".  All callers updated.
521         (set_block_compunit_symtab): Renamed from set_block_symtab.  Change
522         "struct symtab *" argument to "struct compunit_symtab *".
523         All callers updated.
524         (get_block_compunit_symtab): Renamed from get_block_symtab.  Change
525         result to "struct compunit_symtab *".  All callers updated.
526         (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
527         Change result to "struct compunit_symtab *".  All callers updated.
528         * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
529         hange type to "struct compunit_symtab *".  All uses updated.
530         (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
531         Change type to "struct compunit_symtab *".  All uses updated.
532         * buildsym.c (struct buildsym_compunit): New struct.
533         (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
534         (buildsym_compunit): New static global.
535         (finish_block_internal): Update to fetch objfile from
536         buildsym_compunit.
537         (make_blockvector): Delete objfile argument.
538         (start_subfile): Rewrite to use buildsym_compunit.  Don't initialize
539         debugformat, producer.
540         (start_buildsym_compunit): New function.
541         (free_buildsym_compunit): Renamed from free_subfiles_list.
542         All callers updated.
543         (patch_subfile_names): Rewrite to use buildsym_compunit.
544         (get_compunit_symtab): New function.
545         (get_macro_table): Delete argument comp_dir.  All callers updated.
546         (start_symtab): Change result to "struct compunit_symtab *".
547         All callers updated.  Create the subfile of the main source file.
548         (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
549         (reset_symtab_globals): Update.
550         (end_symtab_get_static_block): Update to use buildsym_compunit.
551         (end_symtab_without_blockvector): Rewrite.
552         (end_symtab_with_blockvector): Change result to
553         "struct compunit_symtab *".  All callers updated.
554         Update to use buildsym_compunit.  Don't set symtab->dirname,
555         instead set it in the compunit.
556         Explicitly make sure main symtab is first in its list.
557         Set debugformat, producer, blockvector, block_line_section, and
558         macrotable in the compunit.
559         (end_symtab_from_static_block): Change result to
560         "struct compunit_symtab *".  All callers updated.
561         (end_symtab, end_expandable_symtab): Ditto.
562         (set_missing_symtab): Change symtab argument to
563         "struct compunit_symtab *".  All callers updated.
564         (augment_type_symtab): Ditto.
565         (record_debugformat): Update to use buildsym_compunit.
566         (record_producer): Update to use buildsym_compunit.
567         * buildsym.h (struct subfile) <dirname>: Delete.
568         <producer, debugformat>: Delete.
569         <buildsym_compunit>: New member.
570         (get_compunit_symtab): Declare.
571         * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
572         from primary_symtab.  Change type to "struct compunit_symtab *".
573         All uses updated.
574         (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
575         All callers updated.
576         (dwarf_decode_macros): Delete comp_dir argument.  All callers updated.
577         (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
578         symtab.  Change type to "struct compunit_symtab *".  All uses updated.
579         (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
580         All callers updated.
581         (dw2_find_last_source_symtab): Ditto.
582         (dw2_lookup_symbol): Ditto.
583         (recursively_find_pc_sect_compunit_symtab): Renamed from
584         recursively_find_pc_sect_symtab.  Change result to
585         "struct compunit_symtab *".  All callers updated.
586         (dw2_find_pc_sect_compunit_symtab): Renamed from
587         dw2_find_pc_sect_symtab.  Change result to
588         "struct compunit_symtab *".  All callers updated.
589         (get_compunit_symtab): Renamed from get_symtab.  Change result to
590         "struct compunit_symtab *".  All callers updated.
591         (recursively_compute_inclusions): Change type of immediate_parent
592         argument to "struct compunit_symtab *".  All callers updated.
593         (compute_compunit_symtab_includes): Renamed from
594         compute_symtab_includes.  All callers updated.  Rewrite to compute
595         includes of compunit_symtabs and not symtabs.
596         (process_full_comp_unit): Update to work with struct compunit_symtab.
597         (process_full_type_unit): Ditto.
598         (dwarf_decode_lines_1): Delete argument comp_dir.  All callers updated.
599         (dwarf_decode_lines): Remove special case handling of main subfile.
600         (macro_start_file): Delete argument comp_dir.  All callers updated.
601         (dwarf_decode_macro_bytes): Ditto.
602         * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
603         use struct compunit_symtab.
604         * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
605         * jit.c (finalize_symtab): Build compunit_symtab.
606         * jv-lang.c (get_java_class_symtab): Change result to
607         "struct compunit_symtab *".  All callers updated.
608         * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
609         * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
610         comp_dir.  Change type to "struct compunit_symtab *".
611         All uses updated.
612         (new_macro_table): Change comp_dir argument to cust,
613         "struct compunit_symtab *".  All callers updated.
614         * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
615         nr_primary_symtabs.  All uses updated.
616         (count_symtabs_and_blocks): Update to handle compunits.
617         (report_command_stats): Update output, "primary symtabs" renamed to
618         "compunits".
619         * mdebugread.c (new_symtab): Change result to
620         "struct compunit_symtab *".  All callers updated.
621         (parse_procedure): Change type of search_symtab argument to
622         "struct compunit_symtab *".  All callers updated.
623         * objfiles.c (objfile_relocate1): Loop over blockvectors in a
624         separate loop.
625         * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
626         symtabs.  Change type to "struct compunit_symtab *".  All uses updated.
627         (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
628         All uses updated.
629         (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
630         All uses updated.
631         (ALL_FILETABS): Renamed from ALL_SYMTABS.  All uses updated.
632         (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS.  All uses updated.
633         * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
634         symtab.  Change type to "struct compunit_symtab *".  All uses updated.
635         * psymtab.c (psymtab_to_symtab): Change result type to
636         "struct compunit_symtab *".  All callers updated.
637         (find_pc_sect_compunit_symtab_from_partial): Renamed from
638         find_pc_sect_symtab_from_partial.  Change result type to
639         "struct compunit_symtab *".  All callers updated.
640         (lookup_symbol_aux_psymtabs): Change result type to
641         "struct compunit_symtab *".  All callers updated.
642         (find_last_source_symtab_from_partial): Ditto.
643         * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
644         * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
645         and macro_table from compunit.
646         * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
647         type to "struct compunit_symtab *".  All callers updated.
648         (debug_qf_lookup_symbol): Ditto.
649         (debug_qf_find_pc_sect_compunit_symtab): Renamed from
650         debug_qf_find_pc_sect_symtab, change result type to
651         "struct compunit_symtab *".  All callers updated.
652         * symfile.c (allocate_symtab): Delete objfile argument.
653         New argument cust.
654         (allocate_compunit_symtab): New function.
655         (add_compunit_symtab_to_objfile): New function.
656         * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
657         Change result type to "struct compunit_symtab *".  All uses updated.
658         <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
659         Change result type to "struct compunit_symtab *".  All uses updated.
660         * symmisc.c (print_objfile_statistics): Compute blockvector count in
661         separate loop.
662         (dump_symtab_1): Update test for primary source symtab.
663         (maintenance_info_symtabs): Update to handle compunit symtabs.
664         (maintenance_check_symtabs): Ditto.
665         * symtab.c (set_primary_symtab): Delete.
666         (compunit_primary_filetab): New function.
667         (compunit_language): New function.
668         (iterate_over_some_symtabs): Change type of arguments "first",
669         "after_last" to "struct compunit_symtab *".  All callers updated.
670         Update to loop over symtabs in each compunit.
671         (error_in_psymtab_expansion): Rename symtab argument to cust,
672         and change type to "struct compunit_symtab *".  All callers updated.
673         (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
674         Change result type to "struct compunit_symtab *".  All callers updated.
675         (find_pc_compunit_symtab): Renamed from find_pc_symtab.
676         Change result type to "struct compunit_symtab *".  All callers updated.
677         (find_pc_sect_line): Only loop over symtabs within selected compunit
678         instead of all symtabs in the objfile.
679         * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
680         <compunit_symtab> New member.
681         <block_line_section>: Moved to compunit_symtab.
682         <locations_valid>: Ditto.
683         <epilogue_unwind_valid>: Ditto.
684         <macro_table>: Ditto.
685         <dirname>: Ditto.
686         <debugformat>: Ditto.
687         <producer>: Ditto.
688         <objfile>: Ditto.
689         <call_site_htab>: Ditto.
690         <includes>: Ditto.
691         <user>: Ditto.
692         <primary>: Delete
693         (SYMTAB_COMPUNIT): New macro.
694         (SYMTAB_BLOCKVECTOR): Update definition.
695         (SYMTAB_OBJFILE): Update definition.
696         (SYMTAB_DIRNAME): Update definition.
697         (struct compunit_symtab): New type.  Common members among all source
698         symtabs within a compilation unit moved here.  All uses updated.
699         (COMPUNIT_OBJFILE): New macro.
700         (COMPUNIT_FILETABS): New macro.
701         (COMPUNIT_DEBUGFORMAT): New macro.
702         (COMPUNIT_PRODUCER): New macro.
703         (COMPUNIT_DIRNAME): New macro.
704         (COMPUNIT_BLOCKVECTOR): New macro.
705         (COMPUNIT_BLOCK_LINE_SECTION): New macro.
706         (COMPUNIT_LOCATIONS_VALID): New macro.
707         (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
708         (COMPUNIT_CALL_SITE_HTAB): New macro.
709         (COMPUNIT_MACRO_TABLE): New macro.
710         (ALL_COMPUNIT_FILETABS): New macro.
711         (compunit_symtab_ptr): New typedef.
712         (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
713
714 2014-11-20  Joel Brobecker  <brobecker@adacore.com>
715
716         * ada-lang.c (ada_is_redundant_range_encoding): Return 0
717         if the TYPE_CODE of range_type's base type does not match
718         the TYPE_CODE of encoding_type's base type.
719
720 2014-11-19  Joel Brobecker  <brobecker@adacore.com>
721
722         * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
723         it starts with '<'.
724
725 2014-11-19  Joel Brobecker  <brobecker@adacore.com>
726
727         * ada-lang.c (ada_is_redundant_range_encoding): New function.
728         (ada_is_redundant_index_type_desc): New function.
729         (to_fixed_array_type): Ignore parallel XA type if redundant.
730
731 2014-11-19  Joel Brobecker  <brobecker@adacore.com>
732
733         * ada-lang.c (constrained_packed_array_type): Set the length
734         of the return array as if both bounds where zero if that
735         returned array's index type is dynamic.
736
737 2014-11-19  Yao Qi  <yao@codesourcery.com>
738
739         * config/i386/go32.mh (CC): Remove.
740
741 2014-11-18  Doug Evans  <xdje42@gmail.com>
742
743         * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR.  All uses
744         updated.
745
746 2014-11-18  Doug Evans  <xdje42@gmail.com>
747
748         * buildsym.c (buildsym_objfile): New static global.
749         (buildsym_comp_dir): New static global.
750         (finish_block_internal): Delete arg objfile.  All callers updated.
751         (finish_block): Delete arg objfile.  All callers updated.
752         (start_subfile): Delete arg dirname.  All callers updated.
753         (patch_subfile_names): Update buildsym_comp_dir.
754         (get_macro_table): Delete arg objfile.  All callers updated.
755         (start_symtab): New arg objfile.  All callers updated.
756         Rename arg dirname to comp_dir.
757         (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
758         (end_symtab_get_static_block): Delete arg objfile.  All callers
759         updated.
760         (end_symtab_without_blockvector): Ditto.
761         (end_symtab_with_blockvector): Ditto.
762         (end_symtab_from_static_block): Ditto.
763         (end_symtab): Ditto.
764         (end_expandable_symtab): Ditto.
765         (augment_type_symtab): Ditto.
766         * coffread.c (coff_start_symtab): New arg objfile.  All callers
767         updated.
768
769 2014-11-18  Doug Evans  <xdje42@gmail.com>
770
771         * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE.  All uses
772         updated.
773
774 2014-11-18  Doug Evans  <xdje42@gmail.com>
775
776         * symtab.h (SYMTAB_DIRNAME): New macro.  All uses of member
777         symtab.dirname updated to use it.
778
779 2014-11-18  Doug Evans  <xdje42@gmail.com>
780
781         * symtab.h (SYMTAB_OBJFILE): New macro.  All uses of member
782         symtab.objfile updated to use it.
783
784 2014-11-18  Doug Evans  <xdje42@gmail.com>
785
786         * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
787
788 2014-11-18  Doug Evans  <xdje42@gmail.com>
789
790         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
791         SYMBOL_OBJFILE.
792         * findvar.c (default_read_var_value): Ditto.
793         * jv-lang.c (add_class_symtab_symbol): Ditto.
794         * parse.c (operator_check_standard): Ditto.
795         * printcmd.c (address_info): Ditto.
796         * symtab.c (fixup_symbol_section): Ditto.
797         (skip_prologue_sal): Ditto.
798         * tracepoint.c (scope_info): Ditto.
799         * valops.c (find_function_in_inferior): Ditto.
800         * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
801         * python/py-symbol.c (set_symbol): Ditto.
802
803 2014-11-18  Doug Evans  <xdje42@gmail.com>
804
805         * buildsym.c (main_subfile): New static global.
806         (free_subfiles_list): New function.
807         (start_symtab): Set main_subfile.
808         (restart_symtab): Replace init of subfiles, current_subfile with
809         call to free_subfiles_list.
810         (watch_main_source_file_lossage): Use main_subfile.
811         (reset_symtab_globals): Replace init of current_subfile with call
812         to free_subfiles_list.
813         (end_symtab_without_blockvector, end_symtab_with_blockvector): New
814         functions, split out from ...
815         (end_symtab_from_static_block): ... here.  Rewrite to call them.
816
817 2014-11-18  Doug Evans  <xdje42@gmail.com>
818
819         The result of symtab expansion is always a primary symtab.
820         * dwarf2read.c (dw2_instantiate_symtab): Add assert.
821         (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
822         * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
823         (psymtab_to_symtab): Add comment and assert.
824         (map_matching_symbols_psymtab): Remove unnecessary test for
825         non-primary symtab.
826
827 2014-11-15  Doug Evans  <xdje42@gmail.com>
828
829         PR symtab/17559
830         * symtab.c (find_pc_line_symtab): New function.
831         * symtab.h (find_pc_line_symtab): Declare.
832         * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
833         find_pc_symtab.
834         * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
835         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
836         * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
837         * tui/tui-win.c (make_visible_with_new_height): Ditto.
838         * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
839         (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
840
841 2014-11-15  Doug Evans  <xdje42@gmail.com>
842
843         * symtab.c (expand_symtab_containing_pc): Renamed from
844         find_pc_sect_symtab_via_partial.  All callers updated.
845
846 2014-11-15  Yao Qi  <yao@codesourcery.com>
847
848         * go32-nat.c (go32_create_inferior): Add missing parenthesis.
849
850 2014-11-14  Joel Brobecker  <brobecker@adacore.com>
851
852         * common/common-defs.h: Move <stdarg.h> #include ahead of
853         <stdio.h> #include.
854
855 2014-11-14  Pedro Alves  <palves@redhat.com>
856
857         * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
858         [!PHONY_ICONV] (gdb_iconv): New function.
859         [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
860
861 2014-11-13  Doug Evans  <dje@google.com>
862
863         PR symtab/17591
864         * dwarf2read.c (find_slot_in_mapped_hash): Handle
865         "(anonymous namespace)".
866
867 2014-11-13  Doug Evans  <dje@google.com>
868
869         * dwarf2read.c (update_enumeration_type_from_children): Avoid
870         infinite loop.
871
872 2014-11-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
873
874         * NEWS (maint set target-async): Fix typo.
875
876 2014-11-12  Pedro Alves  <palves@redhat.com>
877
878         * infrun.c (enum infwait_states, infwait_state): Delete.
879
880 2014-11-12  Pedro Alves  <palves@redhat.com>
881
882         * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
883         Rewrite stepping over a permanent breakpoint.
884         (thread_still_needs_step_over, proceed): Don't set
885         stepping_over_breakpoint for permanent breakpoints.
886         (handle_signal_stop): Don't clear stepped_breakpoint.  Also pull
887         single-step breakpoints out of the target on hardware step
888         targets.
889         (process_event_stop_test): If stepping a permanent breakpoint
890         doesn't hit the step-resume breakpoint, delete the step-resume
891         breakpoint.
892         (switch_back_to_stepped_thread): Also check if the stepped thread
893         has advanced already on hardware step targets.
894         (currently_stepping): Return true if the thread stepped a
895         breakpoint.
896
897 2014-11-12  Pedro Alves  <palves@redhat.com>
898
899         Mark locations as permanent, not the whole breakpoint.
900         * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
901         (mark_breakpoints_out): Don't mark permanent breakpoints as
902         uninserted.
903         (breakpoint_init_inferior): Use mark_breakpoints_out.
904         (breakpoint_here_p): Adjust.
905         (bpstat_stop_status, describe_other_breakpoints): Remove handling
906         of permanent breakpoints.
907         (make_breakpoint_permanent): Mark each location as permanent,
908         instead of marking the breakpoint.
909         (add_location_to_breakpoint): If the location is permanent, mark
910         it as such, and as inserted.
911         (init_breakpoint_sal): Don't make the breakpoint permanent here.
912         (bp_location_compare, update_global_location_list): Adjust.
913         (update_breakpoint_locations): Don't make the breakpoint permanent
914         here.
915         (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
916         breakpoints.
917         * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
918         (struct bp_location) <permanent>: New field.
919         * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
920         reference to bp_permanent.
921
922 2014-11-12  Pedro Alves  <palves@redhat.com>
923
924         * arch-utils.c (default_skip_permanent_breakpoint): New function.
925         * arch-utils.h (default_skip_permanent_breakpoint): New
926         declaration.
927         * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
928         Install default_skip_permanent_breakpoint as default method.
929         * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
930         (i386_gdbarch_init): Don't install it.
931         * infrun.c (resume): Assume there's always a
932         gdbarch_skip_permanent_breakpoint implementation.
933         * gdbarch.h, gdbarch.c: Regenerate.
934
935 2014-11-11  Daniel Colascione  <dancol@dancol.org>
936
937         Warn about cross-PID-namespace debugging.
938         * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
939         * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
940         * linux-thread-db.c (check_pid_namespace_match): New function.
941         (thread_db_inferior_created): Call it.
942
943 2014-11-10  Doug Evans  <xdje42@gmail.com>
944
945         * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
946         (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
947
948 2014-11-10  Doug Evans  <xdje42@gmail.com>
949
950         * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
951
952 2014-11-10  Doug Evans  <xdje42@gmail.com>
953
954         PR symtab/17564
955         * symtab.c (lookup_symbol_in_all_objfiles): Delete.
956         (lookup_static_symbol): Move definition to new location and rewrite.
957         (lookup_symbol_in_objfile): New function.
958         (lookup_symbol_global_iterator_cb): Call it.
959
960 2014-11-10  Ulrich Weigand  <uweigand@de.ibm.com>
961
962         * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
963
964 2014-11-07  Pedro Alves  <palves@redhat.com>
965
966         * infrun.c (process_event_stop_test) <subroutine check>: Don't
967         check if we did a "nexti" inside a prologue.
968         * symtab.c (in_prologue): Delete function.
969         * symtab.h (in_prologue): Delete declaration.
970
971 2014-11-06  Doug Evans  <xdje42@gmail.com>
972
973         * symtab.h (lookup_global_symbol): Improve function comment.
974
975 2014-11-06  Doug Evans  <xdje42@gmail.com>
976
977         * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
978         All callers updated.
979         * symtab.h (lookup_global_symbol): Update decl.
980         (lookup_static_symbol): Move decl to better location.
981
982 2014-11-06  Doug Evans  <xdje42@gmail.com>
983
984         * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
985
986 2014-11-06  Doug Evans  <xdje42@gmail.com>
987
988         * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
989         All callers updated.
990         (lookup_symbol_in_all_objfiles): Renamed from
991         lookup_symbol_aux_symtabs.  All callers updated.
992         (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
993         All callers updated.
994         (lookup_symbol_in_objfile_symtabs): Renamed from
995         lookup_symbol_aux_objfile.  All callers updated.
996
997 2014-11-06  Doug Evans  <xdje42@gmail.com>
998
999         * symtab.c (lookup_symbol_in_block): Renamed from
1000         lookup_symbol_aux_block.  All callers updated.
1001
1002 2014-11-06  Doug Evans  <xdje42@gmail.com>
1003
1004         * symtab.c (lookup_static_symbol): Renamed from
1005         lookup_static_symbol_aux.  All callers updated.
1006         (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1007         All callers updated.
1008
1009 2014-11-06  Doug Evans  <xdje42@gmail.com>
1010
1011         * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1012         * block.c (block_lookup_symbol): Use it.
1013         * cp-support.c (make_symbol_overload_list_block): Use it.
1014         * symtab.c (iterate_over_symbols): Use it.
1015
1016 2014-11-06  Doug Evans  <xdje42@gmail.com>
1017
1018         * symtab.c (lookup_block_symbol): Moved to ...
1019         * block.c (block_lookup_symbol):  ... here and renamed.
1020         All callers updated.
1021         * block.h (block_lookup_symbol): Declare.
1022         * symtab.h (lookup_block_symbol): Delete.
1023
1024 2014-11-06  Doug Evans  <xdje42@gmail.com>
1025
1026         * ada-lang.c (ada_make_symbol_completion_list): Use
1027         ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1028         * symtab.c (lookup_objfile_from_block): Ditto.
1029
1030 2014-11-06  Doug Evans  <xdje42@gmail.com>
1031
1032         * gdbtypes.h (TYPE_CODE_CLASS): Delete.  All uses changed to use
1033         TYPE_CODE_STRUCT.
1034
1035 2014-11-06  Doug Evans  <xdje42@gmail.com>
1036
1037         * objfiles.c (get_objfile_arch): Constify.
1038         * objfiles.h (get_objfile_arch): Update prototype.
1039         * solib.c (solib_global_lookup): Fetch arch from objfile,
1040         not target_gdbarch.
1041
1042 2014-11-06  Sandra Loosemore  <sandra@codesourcery.com>
1043
1044         * nios2-tdep.c (wild_insn): Delete.
1045         (profiler_insn, irqentry_insn): Delete.
1046         (nios2_match_sequence): Delete.
1047         (nios2_analyze_prologue): Update comments.  Remove matching
1048         of obsolete profiler_insn and irqentry_insn sequences.
1049
1050 2014-11-05  Alan Modra  <amodra@gmail.com>
1051
1052         * charset.c (convert_between_encodings): Shrink obstack using
1053         obstack_blank_fast.
1054         * minsyms.c (install_minimal_symbols): Likewise.
1055         * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1056         to char* before doing pointer arithmetic.
1057
1058 2014-11-04  Simon Marchi  <simon.marchi@ericsson.com>
1059
1060         * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1061
1062 2014-11-04  Pedro Alves  <palves@redhat.com>
1063
1064         * breakpoint.c (breakpoint_thread_match): Delete function.
1065         * breakpoint.h (breakpoint_thread_match): Delete declaration.
1066
1067 2014-11-03  Siva Chandra Reddy  <sivachandra@google.com>
1068
1069         PR c++/17494
1070         * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1071         the method args also under EVAL_SKIP when evaluating method
1072         calls under EVAL_SKIP.
1073
1074 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
1075
1076         * dwarf2loc.c (read_pieced_value): Do big endian
1077         processing only if gdb_regnum is not -1.
1078         (write_pieced_value): Ditto.
1079
1080 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
1081
1082         * arm-linux-tdep.c (arm_linux_init_abi): Use
1083         info.byte_order_for_code to choose endianity of breakpoint
1084         instructions snippets.
1085
1086 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
1087
1088         * arm-tdep.c (extract_arm_insn): Use
1089         gdbarch_byte_order_for_code to read arm instruction.
1090
1091 2014-11-02  Doug Evans  <xdje42@gmail.com>
1092
1093         * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1094
1095 2014-11-02  Doug Evans  <xdje42@gmail.com>
1096
1097         * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1098         main_subfile before returning.
1099
1100 2014-10-31  Doug Evans  <xdje42@gmail.com>
1101
1102         * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1103         (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1104
1105 2014-10-31  Doug Evans  <xdje42@gmail.com>
1106
1107         * valops.c (value_cast_pointers): Fix whitespace.
1108         (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1109         Ditto.
1110
1111 2014-10-30  Doug Evans  <dje@google.com>
1112
1113         * NEWS: Mention ability add attributes to gdb.Objfile and
1114         gdb.Progspace objects.
1115         * python/py-objfile.c (objfile_object): New member dict.
1116         (objfpy_dealloc): Py_XDECREF dict.
1117         (objfpy_initialize): Initialize dict.
1118         (objfile_getset): Add __dict__.
1119         (objfile_object_type): Set tp_dictoffset member.
1120         * python/py-progspace.c (progspace_object): New member dict.
1121         (pspy_dealloc): Py_XDECREF dict.
1122         (pspy_initialize): Initialize dict.
1123         (pspace_getset): Add __dict__.
1124         (pspace_object_type): Set tp_dictoffset member.
1125
1126 2014-10-30  Yao Qi  <yao@codesourcery.com>
1127
1128         * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1129         replace '\\' with '\\\\'.
1130
1131 2014-10-29  Joel Brobecker  <brobecker@adacore.com>
1132
1133         GDB 7.8.1 released.
1134
1135 2014-10-29  Pedro Alves  <palves@redhat.com>
1136
1137         PR gdb/17408
1138         * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1139         instead of assuming a thread with a stepping range is always
1140         stepping.
1141
1142 2014-10-29  Pedro Alves  <palves@redhat.com>
1143
1144         PR python/17372
1145         * event-top.c (change_line_handler): Call
1146         gdb_rl_callback_handler_remove instead of
1147         rl_callback_handler_remove.
1148         (callback_handler_installed): New global.
1149         (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1150         (gdb_rl_callback_handler_reinstall): New functions.
1151         (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1152         gdb_rl_callback_handler_install instead of
1153         rl_callback_handler_remove and rl_callback_handler_install.
1154         (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1155         instead of rl_callback_handler_remove.
1156         * event-top.h (gdb_rl_callback_handler_remove)
1157         (gdb_rl_callback_handler_install)
1158         (gdb_rl_callback_handler_reinstall): New declarations.
1159         * infrun.c (reinstall_readline_callback_handler_cleanup): New
1160         cleanup function.
1161         (fetch_inferior_event): Install it.
1162         * top.c (gdb_readline_wrapper_line) Call
1163         gdb_rl_callback_handler_remove instead of
1164         rl_callback_handler_remove.
1165         (gdb_readline_wrapper_cleanup): Don't call
1166         rl_callback_handler_install.
1167
1168 2014-10-29  Pedro Alves  <palves@redhat.com>
1169
1170         * event-top.c (command_line_handler): Clear the first byte of
1171         linebuffer, when it is first allocated.
1172
1173 2014-10-29  Pedro Alves  <palves@redhat.com>
1174
1175         * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1176         TRY_CATCH.
1177
1178 2014-10-29  Pedro Alves  <palves@redhat.com>
1179
1180         PR tui/16138
1181         PR tui/17519
1182         * tui/tui-interp.c (tui_is_toplevel): Delete global.
1183         (tui_allowed_p): Delete function.
1184         * tui/tui.c: Include "interps.h".
1185         (tui_enable): Don't use tui_allowed_p.  Error out here with
1186         detailed error messages if the TUI is the top level interpreter,
1187         or if output is not a terminal.  Use newterm instead of initscr,
1188         and error out if initializing the terminal fails.  Also error out if
1189         the terminal doesn't support cursor addressing.
1190         * tui/tui.h (tui_allowed_p): Delete declaration.
1191
1192 2014-10-29  Joel Brobecker  <brobecker@adacore.com>
1193
1194         * arm-tdep.c (arm_skip_stack_protector): Return early if
1195         address loaded by first "ldr" instruction does not have
1196         a corresponding minimal symbol.  Update comment.
1197
1198 2014-10-29  Yao Qi  <yao@codesourcery.com>
1199
1200         * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1201         loaded address correctly of ldr instruction.
1202
1203 2014-10-28  Pedro Alves  <palves@redhat.com>
1204
1205         PR gdb/12623
1206         * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1207         field.
1208         * infrun.c (resume) <stepping breakpoint instruction>: Set the
1209         thread's stepped_breakpoint field.  Skip if reverse debugging.
1210         Add comment.
1211         (init_thread_stepping_state, handle_signal_stop): Clear the
1212         thread's stepped_breakpoint field.
1213
1214 2014-10-27  Pedro Alves  <palves@redhat.com>
1215
1216         * remote.c (remote_thread_alive): New, factored out from ...
1217         (remote_thread_alive): ... this.
1218         (remote_update_thread_list): Bail out before deleting threads if
1219         the target returned an empty list, and, the current thread has a
1220         magic/fake ptid.
1221
1222 2014-10-27  Pedro Alves  <palves@redhat.com>
1223
1224         * infrun.c (handle_signal_stop): Also skip handlers when a random
1225         signal arrives while handling a "stepi" or a "nexti".  Set the
1226         thread's 'step_after_step_resume_breakpoint' flag.
1227
1228 2014-10-27  Luis Machado  <lgustavo@codesourcery.com>
1229
1230         * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1231         (arm_record_ld_st_imm_offset): Reimplement to cover all
1232         load/store cases for ARM opcode 010.
1233         (arm_record_ld_st_multiple): Reimplement to cover all
1234         load/store cases for ARM opcode 100.
1235
1236 2014-10-26  Doug Evans  <xdje42@gmail.com>
1237
1238         * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1239
1240 2014-10-26  Doug Evans  <xdje42@gmail.com>
1241
1242         * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1243         parameter "kind" to "block_index".
1244         * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1245         "block_index".
1246         (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1247
1248 2014-10-26  Doug Evans  <xdje42@gmail.com>
1249
1250         * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1251
1252 2014-10-26  Doug Evans  <xdje42@gmail.com>
1253
1254         * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1255         obstack_alloc.
1256
1257 2014-10-26  Doug Evans  <xdje42@gmail.com>
1258
1259         * parser-defs.h (block_found): Move decl from here ...
1260         * symtab.h (block_found): ... to here.
1261
1262 2014-10-26  Doug Evans  <xdje42@gmail.com>
1263
1264         * symtab.h (struct field_of_this_result): Fix typo in comment.
1265         (lookup_symbol_in_language): Move function comment here.
1266         (lookup_symbol): Improve function comment.
1267         (basic_lookup_symbol_nonlocal): Ditto.
1268         (lookup_symbol_static, lookup_symbol_global): Ditto.
1269         (lookup_symbol_aux_block): Ditto.
1270         (lookup_language_this): Add function comment.
1271         (lookup_static_symbol_aux): Explicitly mark as extern.  Improve
1272         function comment.
1273         (lookup_block_symbol): Improve function comment.
1274         (lookup_struct): Fix capitalization in function comment.
1275         (lookup_transparent_type): Add function comment.
1276         (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1277         Improve function comment.
1278         (lookup_objfile_from_block): Add function comment.
1279         * symtab.c (lookup_symbol_in_language): Update function comment.
1280         (lookup_symbol, lookup_language_this): Ditto.
1281         (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1282         (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1283         (basic_lookup_symbol_nonlocal): Ditto.
1284         (lookup_symbol_static, lookup_symbol_global): Ditto.
1285         (lookup_transparent_type, lookup_block_symbol): Ditto.
1286
1287 2014-10-25  Doug Evans  <xdje42@gmail.com>
1288
1289         * symtab.c (types_info): Delete forward decl.
1290         (functions_info, variables_info, sources_info): Ditto.
1291         (_initialize_symtab): Rewrite forward decl to use
1292         initialize_file_ftype.
1293
1294 2014-10-25  Doug Evans  <xdje42@gmail.com>
1295
1296         * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1297
1298 2014-10-25  Doug Evans  <xdje42@gmail.com>
1299
1300         * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1301         of local var child_die.
1302
1303 2014-10-24  Don Breazeal  <donb@codesourcery.com>
1304
1305         * infrun.c (follow_fork_inferior): Update fork message printing
1306         to use target_terminal_ours_for_output instead of
1307         target_terminal_ours, to use _() for all format strings, to print
1308         "vfork" instead of "fork" for vforks, and to add a detach message.
1309         (handle_vfork_child_exec_or_exit): Update message printing to use
1310         target_terminal_ours_for_output instead of target_terminal_ours, to
1311         use _() for all format strings, and to fix some formatting.
1312
1313 2014-10-24  Pedro Alves  <palves@redhat.com>
1314
1315         * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1316         * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1317         * config/vax/vax.mh: Delete.
1318         * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1319         obsolete configurations section.
1320         * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1321         * vax-nat.c: Delete file.
1322
1323 2014-10-24  Pedro Alves  <palves@redhat.com>
1324
1325         * NEWS (Removed targets): Add OS/arch column.
1326
1327 2014-10-24  Siva Chandra Reddy  <sivachandra@google.com>
1328
1329         * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1330         on the arg type of a constructor only if it is of reference type.
1331
1332 2014-10-23  Sandra Loosemore  <sandra@codesourcery.com>
1333
1334         * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1335         accessors and constants from nios2 opcodes update.
1336         (nios2_get_next_pc): Likewise.
1337
1338 2014-10-19  Doug Evans  <xdje42@gmail.com>
1339
1340         * gdbthread.h (set_running): Fix comment.
1341         (set_executing, finish_thread_state): Fix comment.
1342
1343 2014-10-18  Doug Evans  <xdje42@gmail.com>
1344
1345         * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1346
1347 2014-10-17  Doug Evans  <dje@google.com>
1348
1349         * NEWS: Mention new event gdb.clear_objfiles.
1350         * python/py-event.h (emit_clear_objfiles_event): Clear
1351         * python/py-events.h (events_object): New member clear_objfiles.
1352         * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1353         event.
1354         * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1355         emit clear_objfiles event.
1356         * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1357         function.
1358         (emit_clear_objfiles_event): New function.
1359         (clear_objfiles): New event.
1360         * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1361         Declare.
1362         * python/python.c (_initialize_python): Call
1363         gdbpy_initialize_clear_objfiles_event.
1364
1365 2014-10-17  Doug Evans  <dje@google.com>
1366
1367         * NEWS: Mention new gdb.Objfile.progspace attribute.
1368         * python/py-objfile.c (objfpy_get_progspace): New function.
1369         (objfile_getset): New entry for "progspace".
1370
1371 2014-10-17  Pedro Alves  <palves@redhat.com>
1372
1373         PR gdb/17471
1374         * infcmd.c (strip_bg_char): Change prototype and rewrite.  Now
1375         returns a copy of the input.
1376         (run_command_1, continue_command, step_1, jump_command)
1377         (signal_command, until_command, advance_command, finish_command)
1378         (attach_command): Adjust and install a cleanup to free the
1379         stripped args.
1380
1381 2014-10-17  Pedro Alves  <palves@redhat.com>
1382
1383         PR gdb/17300
1384         * infcmd.c (continue_1): If continuing all threads in the
1385         foreground, make sure the inferior's terminal settings are put in
1386         effect.
1387
1388 2014-10-17  Pedro Alves  <palves@redhat.com>
1389
1390         PR gdb/17472
1391         * annotate.c (annotate_breakpoints_invalid): Use
1392         target_terminal_our_for_output instead of target_terminal_ours.
1393         Give back the terminal to the target.
1394         (annotate_frames_invalid): Likewise.
1395
1396 2014-10-17  Pedro Alves  <palves@redhat.com>
1397
1398         * target.c (enum terminal_state): New enum.
1399         (terminal_state): New global.
1400         (target_terminal_init): New function.
1401         (target_terminal_inferior): Skip if inferior already owns the
1402         terminal.
1403         (target_terminal_ours, target_terminal_ours_for_output): New
1404         functions.
1405         * target.h (target_terminal_init): Convert to function prototype.
1406         (target_terminal_ours_for_output): Convert to function prototype
1407         and tweak comment.
1408         (target_terminal_ours): Convert to function prototype and tweak
1409         comment.
1410         * windows-nat.c (do_initial_windows_stuff): Call
1411         target_terminal_init instead of child_terminal_init_with_pgrp.
1412
1413 2014-10-17  Pedro Alves  <palves@redhat.com>
1414
1415         * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1416         (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1417         (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1418         solib-osf.c.
1419         * NEWS: Mention that support for alpha*-*-osf* has been removed.
1420         * ada-lang.h [__alpha__ && __osf__]
1421         (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1422         * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1423         * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1424         GDB_OSABI_OSF1.
1425         * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1426         files.
1427         * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1428         (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1429         * configure: Regenerate.
1430         * configure.ac: Remove references to osf.
1431         * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1432         section.  Remove all other references to osf.
1433         * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1434         Remove all other references to osf.
1435         * dec-thread.c: Delete file.
1436         * defs.h (GDB_OSABI_OSF1): Delete.
1437         * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1438         defined.
1439         * osabi.c (gdb_osabi_names): Delete "OSF/1".
1440         * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1441         Delete code.
1442         (unconditionally_kill_inferior)
1443         [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1444         * solib-osf.c: Delete file.
1445
1446 2014-10-17  Pedro Alves  <palves@redhat.com>
1447
1448         * remote.c (clear_threads_listing_context): Move higher up, out of
1449         the HAVE_LIBEXPAT guard.
1450
1451 2014-10-16  Tristan Gingold  <gingold@adacore.com>
1452
1453         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1454         (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1455         on amd64.
1456
1457 2014-10-15  Pedro Alves  <palves@redhat.com>
1458
1459         * dec-thread.c (dec_thread_count_gdb_threads)
1460         (dec_thread_add_gdb_thread): Delete.
1461         (dec_thread_update_thread_list): Delete.
1462         (dec_thread_find_new_threads): Rename to ...
1463         (dec_thread_update_thread_list): ... this.  Delete GDB-size
1464         threads that are no longer found in dec_thread_list.
1465         (resync_thread_list): Delete.
1466         (dec_thread_wait): Call dec_thread_update_thread_list instead of
1467         resync_thread_list.
1468
1469 2014-10-15  Pedro Alves  <palves@redhat.com>
1470
1471         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1472         * remote.c (remote_update_thread_list): Skip calling prune_threads
1473         if any thread listing method is supported, and instead walk over
1474         the set of remote threads listed, deleting those that are not
1475         found in GDB's thread list.
1476
1477 2014-10-15  Pedro Alves  <palves@redhat.com>
1478
1479         * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1480         * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1481         (bsd_uthread_update_thread_list): ... this.  Call prune_threads.
1482         (bsd_uthread_target): Adjust.
1483         * corelow.c (core_open): Adjust.
1484         * dec-thread.c (dec_thread_find_new_threads): Update comment.
1485         (dec_thread_update_thread_list): New function.
1486         (init_dec_thread_ops): Adjust.
1487         * gdbthread.h (prune_threads): New declaration.
1488         * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1489         (thread_db_update_thread_list): ... this.  Call prune_threads.
1490         (init_thread_db_ops): Adjust.
1491         * nto-procfs.c (procfs_find_new_threads): Rename to ...
1492         (procfs_update_thread_list): ... this.  Call prune_threads.
1493         (procfs_attach, procfs_create_inferior, init_procfs_targets):
1494         Adjust.
1495         * obsd-nat.c (obsd_find_new_threads): Rename to ...
1496         (obsd_update_thread_list): ... this.  Call prune_threads.
1497         (obsd_add_target): Adjust.
1498         * procfs.c (procfs_target): Adjust.
1499         (procfs_notice_thread): Update comment.
1500         (procfs_find_new_threads): Rename to ...
1501         (procfs_update_thread_list): ... this.  Call prune_threads.
1502         * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1503         comment.
1504         (ravenscar_wait): Adjust.
1505         (ravenscar_find_new_threads): Rename to ...
1506         (ravenscar_update_thread_list): ... this.  Call prune_threads.
1507         (init_ravenscar_thread_ops): Adjust.
1508         * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1509         (record_btrace_update_thread_list): ... this.  Adjust comment.
1510         (init_record_btrace_ops): Adjust.
1511         * remote.c (remote_threads_info): Rename to ...
1512         (remote_update_thread_list): ... this.  Call prune_threads.
1513         (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1514         Adjust.
1515         * sol-thread.c (check_for_thread_db): Adjust.
1516         (sol_find_new_threads_callback): Rename to ...
1517         (sol_update_thread_list_callback): ... this.
1518         (sol_find_new_threads): Rename to ...
1519         (sol_update_thread_list): ... this.  Call prune_threads.  Adjust.
1520         (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1521         * target-delegates.c: Regenerate.
1522         * target.c (target_find_new_threads): Rename to ...
1523         (target_update_thread_list): ... this.
1524         * target.h (struct target_ops): Rename to_find_new_threads field
1525         to to_update_thread_list.
1526         (target_find_new_threads): Rename to ...
1527         (target_update_thread_list): ... this.
1528         * thread.c (prune_threads): Make extern.
1529         (update_thread_list): Adjust.
1530
1531 2014-10-15  Pedro Alves  <palves@redhat.com>
1532
1533         * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1534         Add describing comment.  Return -1 if the qL packet is not
1535         supported.
1536         (struct thread_item, thread_item_t): Move higher up in
1537         the file.  Add comments.
1538         (struct threads_parsing_context): Move higher up in
1539         the file, add comments, and remote to ...
1540         (struct threads_listing_context): ... this.
1541         (remote_newthread_step): Don't add the thread to GDB's thread
1542         database here.  Instead push it to the thread_listing_context
1543         list.
1544         (remote_find_new_threads): Rename to ...
1545         (remote_get_threads_with_ql): ... this.  Add target_ops and
1546         targets_listing_context parameters.  Pass down context.
1547         (start_thread): Adjust.
1548         (clear_threads_parsing_context): Rename to ...
1549         (clear_threads_listing_context): ... this.
1550         (remote_get_threads_with_qxfer): New, with parts salvaged from old
1551         remote_threads_info.
1552         (remote_get_threads_with_qthreadinfo): Ditto.
1553         (remote_threads_info): Reimplement.
1554
1555 2014-10-15  Pedro Alves  <palves@redhat.com>
1556
1557         * infrun.c (resume): Don't force displaced-stepping for all
1558         single-steps on software single-stepping archs.
1559
1560 2014-10-15  Pedro Alves  <palves@redhat.com>
1561
1562         * breakpoint.c (single_step_breakpoints): Delete global.
1563         (insert_single_step_breakpoint): Adjust to store the breakpoint
1564         pointer in the current thread.
1565         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1566         (cancel_single_step_breakpoints): Delete functions.
1567         (breakpoint_has_location_inserted_here): Make extern.
1568         (single_step_breakpoint_inserted_here_p): Adjust to walk the
1569         breakpoint list.
1570         * breakpoint.h (breakpoint_has_location_inserted_here): New
1571         declaration.
1572         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1573         (cancel_single_step_breakpoints): Remove declarations.
1574         * gdbthread.h (struct thread_control_state)
1575         <single_step_breakpoints>: New field.
1576         (delete_single_step_breakpoints)
1577         (thread_has_single_step_breakpoints_set)
1578         (thread_has_single_step_breakpoint_here): New declarations.
1579         * infrun.c (follow_exec): Also clear the single-step breakpoints.
1580         (singlestep_breakpoints_inserted_p, singlestep_ptid)
1581         (singlestep_pc): Delete globals.
1582         (infrun_thread_ptid_changed): Remove references to removed
1583         globals.
1584         (resume_cleanups): Delete the current thread's single-step
1585         breakpoints.
1586         (maybe_software_singlestep): Remove references to removed globals.
1587         (resume): Adjust to use thread_has_single_step_breakpoints_set and
1588         delete_single_step_breakpoints.
1589         (init_wait_for_inferior): Remove references to removed globals.
1590         (delete_thread_infrun_breakpoints): Delete the thread's
1591         single-step breakpoints too.
1592         (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1593         single-step breakpoints here.
1594         (delete_stopped_threads_single_step_breakpoints): New function.
1595         (adjust_pc_after_break): Adjust to use
1596         thread_has_single_step_breakpoints_set.
1597         (handle_inferior_event): Remove references to removed globals.
1598         Use delete_stopped_threads_single_step_breakpoints.
1599         (handle_signal_stop): Adjust to per-thread single-step
1600         breakpoints.  Swap test order to do cheaper tests first.
1601         (switch_back_to_stepped_thread): Extend debug output.  Remove
1602         references to removed globals.
1603         * record-full.c (record_full_wait_1): Adjust to per-thread
1604         single-step breakpoints.
1605         * thread.c (delete_single_step_breakpoints)
1606         (thread_has_single_step_breakpoints_set)
1607         (thread_has_single_step_breakpoint_here): New functions.
1608         (clear_thread_inferior_resources): Also delete the thread's
1609         single-step breakpoints.
1610
1611 2014-10-15  Pedro Alves  <palves@redhat.com>
1612
1613         * thread.c (delete_thread_breakpoint): New function.
1614         (delete_step_resume_breakpoint)
1615         (delete_exception_resume_breakpoint): Use it.
1616         (delete_at_next_stop): New function.
1617         (clear_thread_inferior_resources): Use delete_at_next_stop.
1618
1619 2014-10-15  Pedro Alves  <palves@redhat.com>
1620
1621         * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1622         (breakpoint_inserted_here_p): ... here.  Remove special case for
1623         software single-step breakpoints.
1624         (find_non_raw_software_breakpoint_inserted_here): Inline ...
1625         (software_breakpoint_inserted_here_p): ... here.  Remove special
1626         case for software single-step breakpoints.
1627         (bp_target_info_copy_insertion_state)
1628         (deprecated_insert_raw_breakpoint)
1629         (deprecated_remove_raw_breakpoint): Delete functions.
1630         * breakpoint.h (deprecated_insert_raw_breakpoint)
1631         (deprecated_remove_raw_breakpoint): Remove declarations.
1632
1633 2014-10-15  Pedro Alves  <palves@redhat.com>
1634
1635         PR breakpoints/9649
1636         * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1637         Delete array globals.
1638         (single_step_breakpoints): New global.
1639         (breakpoint_xfer_memory): Remove special handling for single-step
1640         breakpoints.
1641         (update_breakpoints_after_exec): Delete bp_single_step
1642         breakpoints.
1643         (detach_breakpoints): Remove special handling for single-step
1644         breakpoints.
1645         (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1646         (bpstat_stop_status): Add comment.
1647         (bpstat_what, bptype_string, print_one_breakpoint_location)
1648         (adjust_breakpoint_address, init_bp_location): Handle
1649         bp_single_step.
1650         (new_single_step_breakpoint): New function.
1651         (set_momentary_breakpoint, bkpt_remove_location): Remove special
1652         handling for single-step breakpoints.
1653         (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1654         (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1655         Rewrite.
1656         (detach_single_step_breakpoints, find_single_step_breakpoint):
1657         Delete functions.
1658         (breakpoint_has_location_inserted_here): New function.
1659         (single_step_breakpoint_inserted_here_p): Rewrite.
1660         * breakpoint.h: Remove FIXME.
1661         (enum bptype) <bp_single_step>: New enum value.
1662         (insert_single_step_breakpoint): Update comment.
1663         * infrun.c (resume_cleanups)
1664         (delete_step_thread_step_resume_breakpoint): Remove single-step
1665         breakpoints.
1666         (fetch_inferior_event): Install a cleanup that removes infrun
1667         breakpoints.
1668         (switch_back_to_stepped_thread) <expect thread advanced also>:
1669         Clear step-over info.
1670
1671 2014-10-15  Pedro Alves  <palves@redhat.com>
1672
1673         * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1674         (delete_thread_infrun_breakpoints): New function, with parts
1675         salvaged from delete_step_resume_breakpoint_callback.
1676         (delete_step_thread_step_resume_breakpoint): Delete.
1677         (for_each_just_stopped_thread_callback_func): New typedef.
1678         (for_each_just_stopped_thread): New function.
1679         (delete_just_stopped_threads_infrun_breakpoints): New function.
1680         (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1681         (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1682         ... this.  Adjust.
1683         (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1684
1685 2014-10-15  Pedro Alves  <palves@redhat.com>
1686
1687         * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1688         trying to step past a non-steppable watchpoint.
1689         * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1690         field.
1691         * infrun.c (struct step_over_info): Add new field
1692         'nonsteppable_watchpoint_p' and adjust comments.
1693         (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1694         Adjust.
1695         (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1696         (stepping_past_nonsteppable_watchpoint): New function.
1697         (step_over_info_valid_p): Also return true if stepping past a
1698         nonsteppable watchpoint.
1699         (proceed): Adjust call to set_step_over_info.  Remove reference to
1700         init_infwait_state.
1701         (init_wait_for_inferior): Remove reference to init_infwait_state.
1702         (waiton_ptid): Delete global.
1703         (struct execution_control_state)
1704         <stepped_after_stopped_by_watchpoint>: Delete field.
1705         (wait_for_inferior, fetch_inferior_event): Always pass
1706         minus_one_ptid to target_wait.
1707         (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1708         field.
1709         (init_infwait_state): Delete function.
1710         (handle_inferior_event): Remove infwait_state handling.
1711         (handle_signal_stop) <watchpoints handling>: Adjust after
1712         stepped_after_stopped_by_watchpoint removal.  Don't remove
1713         breakpoints here nor set infwait_state.  Set the thread's
1714         stepping_over_watchpoint flag, and call keep_going instead.
1715         (keep_going): Handle stepping_over_watchpoint.  Adjust
1716         set_step_over_info calls.
1717         * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1718         function.
1719
1720 2014-10-15  Pedro Alves  <palves@redhat.com>
1721
1722         * infrun.c (step_over_info_valid_p): New function.
1723         (resume): Use step_over_info_valid_p instead of checking the
1724         threads's trap_expected flag.
1725
1726 2014-10-15  Doug Evans  <dje@google.com>
1727             Walfred Tedeschi  <walfred.tedeschi@intel.com>
1728
1729         PR python/17364
1730         * python/lib/gdb/__init__.py (packages): Add "printer".
1731         * python/lib/gdb/command/bound_registers.py: Moved to ...
1732         * python/lib/gdb/printer/bound_registers.py: ... here.
1733         Add printer to global set of builtin printers.  Rename printer from
1734         "bound" to "mpx_bound128".
1735         * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1736         registered as global "builtin" printer.
1737         (add_builtin_pretty_printer): New function.
1738         * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1739         gdb/printer/__init__.py.
1740
1741 2014-10-15  Iain Buclaw  <ibuclaw@gdcproject.org>
1742
1743         * Makefile.in (SFILES): Remove d-support.c.
1744         (COMMON_OBS): Remove d-support.o.
1745         * d-lang.h (d_parse_symbol): Remove declaration.
1746         * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1747         * d-support.c: Remove file.
1748
1749 2014-10-15  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1750
1751         * gdb/infrun.c (process_event_stop_test): Apply
1752         gdbarch_addr_bits_remove to longjmp resume address.
1753
1754 2014-10-15  Pedro Alves  <palves@redhat.com>
1755
1756         * regformats/microblaze.dat: Delete file.
1757
1758 2014-10-15  Ajit Agarwal  <ajitkum@xilinx.com>
1759
1760         * features/Makefile (microblaze-expedite): Replace pc with rpc.
1761         * regformats/microblaze-with-stack-protect.dat: Regenerate.
1762
1763 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
1764
1765         * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1766         as non-trivial.
1767
1768 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
1769
1770         PR c++/13403
1771         PR c++/15154
1772         * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1773         with qualified args.
1774
1775 2014-10-14  Joel Brobecker  <brobecker@adacore.com>
1776
1777         * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1778         of the case where the second operand is a pointer.
1779         <BINOP_SUB>: Likewise.
1780
1781 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
1782
1783         * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1784         only if it is not NULL.
1785         (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1786         * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1787         (struct probe_ops) <clear_semaphore>: Likewise.
1788         * tracepoint.c (start_tracing): Call set_semaphore only if it is
1789         not NULL.
1790         (stop_tracing): Likewise, for clear_semaphore.
1791
1792 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
1793
1794         * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1795         using language_c, instead of current_language.
1796
1797 2014-10-13  Doug Evans  <dje@google.com>
1798
1799         * python/py-objfile.c (objfpy_initialize): New function.
1800         (objfpy_new, objfile_to_objfile_object): Call it.
1801         * python/py-progspace.c (pspy_initialize): New function.
1802         (pspy_new, pspace_to_pspace_object): Call it.
1803
1804 2014-10-13  Miroslav Franc  <mfranc@redhat.com>
1805             Jan Kratochvil  <jan.kratochvil@redhat.com>
1806
1807         Fix "save breakpoints" for "catch" command.
1808         * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1809         newline.
1810
1811 2014-10-12  Miroslav Franc  <mfranc@redhat.com>
1812
1813         Fix "save breakpoints" for "disable $bpnum" command.
1814         * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1815
1816 2014-10-10  Pedro Alves  <palves@redhat.com>
1817
1818         * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1819         (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1820         (HFILES_NO_SRCDIR): Remove solib-irix.h.
1821         * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1822         and been removed.
1823         * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1824         * configure.ac: Remove references to IRIX.
1825         * configure.host: Add *-*-irix* to the obsolete hosts section.
1826         Remove all other references to irix.
1827         * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1828         Delete files.
1829
1830 2014-10-10  Ajit Agarwal  <ajitkum@xilinx.com>
1831
1832         * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1833         isn't valid, release the tdesc arch data and return NULL.
1834
1835 2014-10-10  Pedro Alves  <palves@redhat.com>
1836
1837         * linux-tdep.c: Include observer.h.
1838         (linux_inferior_data): New global.
1839         (struct linux_info): New structure.
1840         (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1841         (get_linux_inferior_data): New functions.
1842         (linux_vsyscall_range): Rename to ...
1843         (linux_vsyscall_range_raw): ... this.
1844         (linux_vsyscall_range): New function; handles caching.
1845         (_initialize_linux_tdep): Register linux_inferior_data.  Install
1846         inferior_exit and inferior_appeared observers.
1847
1848 2014-10-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
1849             Pedro Alves  <palves@redhat.com>
1850
1851         PR symtab/14466
1852         * solib-svr4.c (svr4_read_so_list): Rename to ...
1853         (svr4_current_sos_1): ... this and change the function comment.
1854         (svr4_current_sos): New function.
1855
1856 2014-10-10  Pedro Alves  <palves@redhat.com>
1857
1858         * arch-utils.c (default_vsyscall_range): New function.
1859         * arch-utils.h (default_vsyscall_range): New declaration.
1860         * gdbarch.sh (vsyscall_range): New hook.
1861         * gdbarch.h, gdbarch.c: Regenerate.
1862         * linux-tdep.c (linux_vsyscall_range): New function.
1863         (linux_init_abi): Install linux_vsyscall_range as
1864         vsyscall_range gdbarch hook.
1865         * memrange.c (address_in_mem_range): New function.
1866         * memrange.h (address_in_mem_range): New declaration.
1867         * symfile-mem.c (find_vdso_size): Delete function.
1868         (add_vsyscall_page): Use gdbarch_vsyscall_range.
1869
1870 2014-10-10  Pedro Alves  <palves@redhat.com>
1871
1872         * infrun.c (normal_stop): Fix typo in comment.
1873
1874 2014-10-09  Sergio Durigan Junior  <sergiodj@redhat.com>
1875
1876         PR tdep/9390
1877         * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1878         typo when using logical AND to determine instruction type.
1879
1880 2014-10-09  Yao Qi  <yao@codesourcery.com>
1881
1882         * infrun.c (handle_signal_stop): Remove local variable
1883         'printed'.
1884
1885 2014-10-08  Stan Shebs  <stan@codesourcery.com>
1886
1887         * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1888
1889 2014-10-08  Gary Benson  <gbenson@redhat.com>
1890
1891         * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1892
1893 2014-10-08  Gary Benson  <gbenson@redhat.com>
1894
1895         * common/common-defs.h: Include common-exceptions.h.
1896         * exceptions.h: Do not include common-exceptions.h.
1897
1898 2014-10-08  Gary Benson  <gbenson@redhat.com>
1899
1900         * common/common-defs.h: Include cleanups.h.
1901         * common/common-exceptions.c: Do not include cleanups.h.
1902         * utils.h: Likewise.
1903
1904 2014-10-08  Gary Benson  <gbenson@redhat.com>
1905
1906         * ada-lang.c: Do not include exceptions.h.
1907         * ada-valprint.c: Likewise.
1908         * amd64-tdep.c: Likewise.
1909         * auto-load.c: Likewise.
1910         * block.c: Likewise.
1911         * break-catch-throw.c: Likewise.
1912         * breakpoint.c: Likewise.
1913         * btrace.c: Likewise.
1914         * c-lang.c: Likewise.
1915         * cli/cli-cmds.c: Likewise.
1916         * cli/cli-interp.c: Likewise.
1917         * cli/cli-script.c: Likewise.
1918         * completer.c: Likewise.
1919         * corefile.c: Likewise.
1920         * corelow.c: Likewise.
1921         * cp-abi.c: Likewise.
1922         * cp-support.c: Likewise.
1923         * cp-valprint.c: Likewise.
1924         * darwin-nat.c: Likewise.
1925         * dwarf2-frame-tailcall.c: Likewise.
1926         * dwarf2-frame.c: Likewise.
1927         * dwarf2loc.c: Likewise.
1928         * dwarf2read.c: Likewise.
1929         * eval.c: Likewise.
1930         * event-loop.c: Likewise.
1931         * event-top.c: Likewise.
1932         * f-valprint.c: Likewise.
1933         * frame-unwind.c: Likewise.
1934         * frame.c: Likewise.
1935         * gdbtypes.c: Likewise.
1936         * gnu-v2-abi.c: Likewise.
1937         * gnu-v3-abi.c: Likewise.
1938         * guile/scm-auto-load.c: Likewise.
1939         * guile/scm-breakpoint.c: Likewise.
1940         * guile/scm-cmd.c: Likewise.
1941         * guile/scm-frame.c: Likewise.
1942         * guile/scm-lazy-string.c: Likewise.
1943         * guile/scm-param.c: Likewise.
1944         * guile/scm-symbol.c: Likewise.
1945         * guile/scm-type.c: Likewise.
1946         * hppa-hpux-tdep.c: Likewise.
1947         * i386-tdep.c: Likewise.
1948         * inf-loop.c: Likewise.
1949         * infcall.c: Likewise.
1950         * infcmd.c: Likewise.
1951         * infrun.c: Likewise.
1952         * interps.c: Likewise.
1953         * interps.h: Likewise.
1954         * jit.c: Likewise.
1955         * linespec.c: Likewise.
1956         * linux-nat.c: Likewise.
1957         * linux-thread-db.c: Likewise.
1958         * m32r-rom.c: Likewise.
1959         * main.c: Likewise.
1960         * memory-map.c: Likewise.
1961         * mi/mi-cmd-break.c: Likewise.
1962         * mi/mi-cmd-stack.c: Likewise.
1963         * mi/mi-interp.c: Likewise.
1964         * mi/mi-main.c: Likewise.
1965         * monitor.c: Likewise.
1966         * nto-procfs.c: Likewise.
1967         * objc-lang.c: Likewise.
1968         * p-valprint.c: Likewise.
1969         * parse.c: Likewise.
1970         * ppc-linux-tdep.c: Likewise.
1971         * printcmd.c: Likewise.
1972         * probe.c: Likewise.
1973         * python/py-auto-load.c: Likewise.
1974         * python/py-breakpoint.c: Likewise.
1975         * python/py-cmd.c: Likewise.
1976         * python/py-finishbreakpoint.c: Likewise.
1977         * python/py-frame.c: Likewise.
1978         * python/py-framefilter.c: Likewise.
1979         * python/py-function.c: Likewise.
1980         * python/py-gdb-readline.c: Likewise.
1981         * python/py-inferior.c: Likewise.
1982         * python/py-infthread.c: Likewise.
1983         * python/py-lazy-string.c: Likewise.
1984         * python/py-linetable.c: Likewise.
1985         * python/py-param.c: Likewise.
1986         * python/py-prettyprint.c: Likewise.
1987         * python/py-symbol.c: Likewise.
1988         * python/py-type.c: Likewise.
1989         * python/py-value.c: Likewise.
1990         * python/python-internal.h: Likewise.
1991         * python/python.c: Likewise.
1992         * record-btrace.c: Likewise.
1993         * record-full.c: Likewise.
1994         * regcache.c: Likewise.
1995         * remote-fileio.c: Likewise.
1996         * remote-mips.c: Likewise.
1997         * remote.c: Likewise.
1998         * rs6000-aix-tdep.c: Likewise.
1999         * rs6000-nat.c: Likewise.
2000         * skip.c: Likewise.
2001         * solib-darwin.c: Likewise.
2002         * solib-dsbt.c: Likewise.
2003         * solib-frv.c: Likewise.
2004         * solib-ia64-hpux.c: Likewise.
2005         * solib-spu.c: Likewise.
2006         * solib-svr4.c: Likewise.
2007         * solib.c: Likewise.
2008         * spu-tdep.c: Likewise.
2009         * stack.c: Likewise.
2010         * stap-probe.c: Likewise.
2011         * symfile-mem.c: Likewise.
2012         * symmisc.c: Likewise.
2013         * target.c: Likewise.
2014         * thread.c: Likewise.
2015         * top.c: Likewise.
2016         * tracepoint.c: Likewise.
2017         * tui/tui-interp.c: Likewise.
2018         * typeprint.c: Likewise.
2019         * utils.c: Likewise.
2020         * valarith.c: Likewise.
2021         * valops.c: Likewise.
2022         * valprint.c: Likewise.
2023         * value.c: Likewise.
2024         * varobj.c: Likewise.
2025         * windows-nat.c: Likewise.
2026         * xml-support.c: Likewise.
2027
2028 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
2029
2030         * mips-tdep.c (add_offset_16): Rewrite to implement what the
2031         name implies.
2032         (extended_mips16_next_pc): Update accordingly.
2033
2034 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
2035
2036         * mips-tdep.c (mips16_instruction_is_compact_branch): New
2037         function.
2038         (micromips_instruction_is_compact_branch): Likewise.
2039         (mips16_scan_prologue): Terminate scanning upon seeing a branch
2040         or a compact jump, reaching a jump delay slot, or seeing a
2041         second non-prologue instruction.
2042         (micromips_scan_prologue): Also terminate scanning upon seeing a
2043         compact branch or jump, or reaching a branch or jump delay slot.
2044         (mips32_scan_prologue): Terminate scanning upon reaching a branch
2045         or jump delay slot, or seeing a second non-prologue instruction.
2046         (mips32_instruction_has_delay_slot): Retain instruction
2047         examination code only, update arguments accordingly and move
2048         instruction fetch pieces to...
2049         (mips32_insn_at_pc_has_delay_slot): ... this new function.
2050         (micromips_instruction_has_delay_slot): Likewise and to...
2051         (micromips_insn_at_pc_has_delay_slot): ... this new function.
2052         (mips16_instruction_has_delay_slot): Likewise and to...
2053         (mips16_insn_at_pc_has_delay_slot): ... this new function.
2054         (mips_single_step_through_delay): Update accordingly.
2055         (mips_adjust_breakpoint_address): Likewise.
2056
2057 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
2058
2059         * mips-tdep.c (micromips_instruction_has_delay_slot): When
2060         !mustbe32 also return 1 for 32-bit instructions.
2061         (mips16_instruction_has_delay_slot): Likewise.  Add an
2062         explanatory comment.
2063
2064 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
2065
2066         * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2067         symbols special.
2068
2069 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
2070
2071         * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2072         update comments.
2073         * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2074         for the breakpoint's address.  Don't preinitialize `placed_size'.
2075         (insert_bp_location): Set `reqstd_address' rather than
2076         `placed_address'.
2077         (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2078         (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2079         address.
2080         (bkpt_remove_location): Likewise.
2081         (deprecated_insert_raw_breakpoint): Likewise.
2082         (deprecated_remove_raw_breakpoint): Likewise.
2083         (find_single_step_breakpoint): Likewise.
2084         * mem-break.c (default_memory_insert_breakpoint): Use
2085         `reqstd_address' for the breakpoint's address.  Don't set
2086         `placed_address' or `placed_size' if breakpoint contents couldn't
2087         have been determined.
2088         * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2089         the breakpoint's address.
2090         (remote_insert_hw_breakpoint): Likewise.  Don't set
2091         `placed_address' or `placed_size' if breakpoint couldn't have been
2092         set.
2093         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2094         `reqstd_address' for the breakpoint's address.
2095         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2096         * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2097         * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2098         * microblaze-linux-tdep.c
2099         (microblaze_linux_memory_remove_breakpoint): Likewise.
2100         * monitor.c (monitor_insert_breakpoint): Likewise.
2101         * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2102         (procfs_insert_hw_breakpoint): Likewise.
2103         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2104         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2105         * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2106         * remote-mips.c (mips_insert_breakpoint): Likewise.
2107         * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2108
2109 2014-10-03  Luis Machado  <lgustavo@codesourcery.com>
2110
2111         * valops.c (value_assign): Check for bit field assignments
2112         before calling architecture-specific register value
2113         conversion functions.
2114
2115 2014-10-03  Pierre Muller  <muller@sourceware.org>
2116
2117         * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2118
2119 2014-10-02  Pedro Alves  <palves@redhat.com>
2120
2121         * breakpoint.c (breakpoints_should_be_inserted_now): Use
2122         threads_are_executing.
2123         * breakpoint.h (breakpoints_should_be_inserted_now): Add
2124         describing comment.
2125         * gdbthread.h (threads_are_executing): Declare.
2126         (handle_signal_stop) <random signals>: Don't print about the
2127         signal here if stopping.
2128         (end_stepping_range): Don't notify observers here.
2129         (normal_stop): Update the thread list.  If stopped by a random
2130         signal or a stepping range ended, notify observers.
2131         * thread.c (threads_executing): New global.
2132         (init_thread_list): Clear 'threads_executing'.
2133         (set_executing): Set or clear 'threads_executing'.
2134         (threads_are_executing): New function.
2135         (update_threads_executing): New function.
2136         (update_thread_list): Use it.
2137
2138 2014-10-02  Pedro Alves  <palves@redhat.com>
2139
2140         PR breakpoints/17431
2141         * breakpoint.c (update_breakpoints_after_exec): Don't create
2142         overlay, longjmp, std terminate nor exception breakpoints here.
2143
2144 2014-10-02  Pedro Alves  <palves@redhat.com>
2145
2146         * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2147         Adjust comments.
2148         * inferior.c (find_inferior_for_program_space): Give preference to
2149         the current inferior.
2150         * inferior.h (find_inferior_for_program_space): Update comment.
2151         * progspace.c (switch_to_program_space_and_thread): Prefer the
2152         current inferior if it's bound to the program space requested.  If
2153         the inferior found doesn't have a PID yet, don't bother looking up
2154         a thread.
2155         * progspace.h (switch_to_program_space_and_thread): Adjust
2156         comment.
2157         * thread.c (any_thread_of_process, any_live_thread_of_process):
2158         Give preference to the current thread.
2159
2160 2014-10-01  Pedro Alves  <palves@redhat.com>
2161
2162         * breakpoint.c (insert_bp_location): Error out if inserting a
2163         software breakpoint at a read-only address.
2164         * target.c (memory_xfer_check_region): New function, factored out
2165         from ...
2166         (memory_xfer_partial_1): ... this.  Make the 'reg_len' local a
2167         ULONGEST.
2168         (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2169         against the memory region attributes.
2170
2171 2014-10-01  Simon Marchi  <simon.marchi@ericsson.com>
2172
2173         * NEWS: Announce new exit-code field in -list-thread-groups
2174         output.
2175         * inferior.c (exit_inferior_1): Don't clear exit code.
2176         (inferior_appeared): Clear exit code.
2177         * mi/mi-main.c (print_one_inferior): Add printing of the exit
2178         code.
2179
2180 2014-10-01  Pedro Alves  <palves@redhat.com>
2181
2182         * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2183         GENERATED" along with emacs/vi read-only markers.
2184         * regformats/aarch64.dat: Regenerate.
2185         * regformats/arm-with-iwmmxt.dat: Regenerate.
2186         * regformats/arm-with-neon.dat: Regenerate.
2187         * regformats/arm-with-vfpv2.dat: Regenerate.
2188         * regformats/arm-with-vfpv3.dat: Regenerate.
2189         * regformats/i386/amd64-avx-linux.dat: Regenerate.
2190         * regformats/i386/amd64-avx.dat: Regenerate.
2191         * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2192         * regformats/i386/amd64-avx512.dat: Regenerate.
2193         * regformats/i386/amd64-linux.dat: Regenerate.
2194         * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2195         * regformats/i386/amd64-mpx.dat: Regenerate.
2196         * regformats/i386/amd64.dat: Regenerate.
2197         * regformats/i386/i386-avx-linux.dat: Regenerate.
2198         * regformats/i386/i386-avx.dat: Regenerate.
2199         * regformats/i386/i386-avx512-linux.dat: Regenerate.
2200         * regformats/i386/i386-avx512.dat: Regenerate.
2201         * regformats/i386/i386-linux.dat: Regenerate.
2202         * regformats/i386/i386-mmx-linux.dat: Regenerate.
2203         * regformats/i386/i386-mmx.dat: Regenerate.
2204         * regformats/i386/i386-mpx-linux.dat: Regenerate.
2205         * regformats/i386/i386-mpx.dat: Regenerate.
2206         * regformats/i386/i386.dat: Regenerate.
2207         * regformats/i386/x32-avx-linux.dat: Regenerate.
2208         * regformats/i386/x32-avx.dat: Regenerate.
2209         * regformats/i386/x32-avx512-linux.dat: Regenerate.
2210         * regformats/i386/x32-avx512.dat: Regenerate.
2211         * regformats/i386/x32-linux.dat: Regenerate.
2212         * regformats/i386/x32.dat: Regenerate.
2213         * regformats/microblaze-with-stack-protect.dat: Regenerate.
2214         * regformats/mips-dsp-linux.dat: Regenerate.
2215         * regformats/mips-linux.dat: Regenerate.
2216         * regformats/mips64-dsp-linux.dat: Regenerate.
2217         * regformats/mips64-linux.dat: Regenerate.
2218         * regformats/nios2-linux.dat: Regenerate.
2219         * regformats/rs6000/powerpc-32.dat: Regenerate.
2220         * regformats/rs6000/powerpc-32l.dat: Regenerate.
2221         * regformats/rs6000/powerpc-64l.dat: Regenerate.
2222         * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2223         * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2224         * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2225         * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2226         * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2227         * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2228         * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2229         * regformats/s390-linux32.dat: Regenerate.
2230         * regformats/s390-linux32v1.dat: Regenerate.
2231         * regformats/s390-linux32v2.dat: Regenerate.
2232         * regformats/s390-linux64.dat: Regenerate.
2233         * regformats/s390-linux64v1.dat: Regenerate.
2234         * regformats/s390-linux64v2.dat: Regenerate.
2235         * regformats/s390-te-linux64.dat: Regenerate.
2236         * regformats/s390x-linux64.dat: Regenerate.
2237         * regformats/s390x-linux64v1.dat: Regenerate.
2238         * regformats/s390x-linux64v2.dat: Regenerate.
2239         * regformats/s390x-te-linux64.dat: Regenerate.
2240         * regformats/tic6x-c62x-linux.dat: Regenerate.
2241         * regformats/tic6x-c62x.dat: Regenerate.
2242         * regformats/tic6x-c64x-linux.dat: Regenerate.
2243         * regformats/tic6x-c64x.dat: Regenerate.
2244         * regformats/tic6x-c64xp-linux.dat: Regenerate.
2245         * regformats/tic6x-c64xp.dat: Regenerate.
2246
2247 2014-10-01  Pedro Alves  <palves@redhat.com>
2248
2249         * features/Makefile: Update comments.
2250         (XMLTOC): List all xml files we build C files from.
2251         (clean-cfiles): New rule.
2252
2253 2014-10-01  Pedro Alves  <palves@redhat.com>
2254
2255         * features/i386/amd64-avx512-linux.c: Regenerate.
2256         * features/i386/amd64-avx512.c: Regenerate.
2257         * features/i386/x32-avx512-linux.c: Regenerate.
2258         * features/i386/x32-avx512.c: Regenerate.
2259
2260 2014-10-01  Pedro Alves  <palves@redhat.com>
2261
2262         * features/Makefile (WHICH): Remove arm-with-m,
2263         arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2264
2265 2014-10-01  Pedro Alves  <palves@redhat.com>
2266
2267         * features/Makefile (clean): New rule.
2268
2269 2014-10-01  Pedro Alves  <palves@redhat.com>
2270
2271         * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2272         (zmm14h): Add missing end quotes.
2273
2274 2014-10-01  Pedro Alves  <palves@redhat.com>
2275
2276         * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2277         * features/aarch64.c: Regenerate.
2278
2279 2014-09-30  Don Breazeal  <donb@codesourcery.com>
2280
2281         * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2282         code so as to work with follow_fork_inferior.
2283         * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2284         (inf_ttrace_create_inferior): Remove reference to
2285         inf_ttrace_vfork_ppid.
2286         (inf_ttrace_attach): Ditto.
2287         (inf_ttrace_detach): Ditto.
2288         (inf_ttrace_kill): Use current_inferior instead of
2289         inf_ttrace_vfork_ppid.
2290         (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2291         TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2292         inferior away from the parent.
2293         * infrun.c (follow_fork): Call follow_fork_inferior instead of
2294         target_follow_fork.
2295         (follow_fork_inferior): New function.
2296         (follow_inferior_reset_breakpoints): Make function static.
2297         * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2298         * linux-nat.c (linux_child_follow_fork): Move target-independent
2299         code to infrun.c:follow_fork_inferior.
2300
2301 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2302
2303         * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2304         * gdbarch.c: Regenerate.
2305         * gdbarch.h: Likewise.
2306         * corelow.c (sniff_core_bfd): Drop presence check for deleted
2307         gdbarch method 'regset_from_core_section'.
2308         (get_core_register_section): Remove handling for the case that
2309         regset == NULL and regset_from_core_section is defined.
2310         (get_core_registers): Drop check for deleted method.
2311         * procfs.c (procfs_do_thread_registers): Adjust comment.
2312
2313 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2314
2315         * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2316         (linux_nat_make_corefile_notes): Remove.
2317         (linux_target_install_ops): Do not set target method
2318         'make_corefile_notes'.
2319         * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2320         Remove field.
2321         (linux_corefile_thread_callback): Instead of args->collect, call
2322         linux_collect_thread_registers.
2323         (linux_make_corefile_notes): Remove 'collect' parameter.  Return
2324         NULL unless there is a regset iterator.
2325         (linux_make_corefile_notes_1): Remove.
2326         (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2327         by linux_make_corefile_notes.
2328         * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2329
2330 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2331
2332         * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2333         (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2334         Remove.
2335         * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2336
2337 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2338
2339         * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2340         (xtensa_iterate_over_regset_sections): New.
2341         (xtensa_gdbarch_init): Adjust gdbarch initialization.
2342
2343 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2344
2345         * vax-tdep.c (vax_regset_from_core_section): Remove.
2346         (vax_iterate_over_regset_sections): New.
2347         (vax_gdbarch_init): Adjust gdbarch initialization.
2348
2349 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2350
2351         * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2352         (tilegx_regset_from_core_section): Remove.
2353         (tilegx_iterate_over_regset_sections): New.
2354         (tilegx_linux_init_abi): Adjust gdbarch initialization.
2355
2356 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2357
2358         * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2359         (sparc_iterate_over_regset_sections): New.
2360         (sparc32_gdbarch_init): Adjust gdbarch initialization.
2361         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2362         targets.
2363         * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2364         (sparc64fbsd_init_abi): Call fbsd_init_abi.
2365         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2366         target method 'make_corefile_notes'.
2367
2368 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2369
2370         * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2371         'sizeof_gregset' and 'sizeof_fpregset'.
2372         * sh-tdep.c (sh_regset_from_core_section): Remove.
2373         (sh_iterate_over_regset_sections): New.
2374         (sh_gdbarch_init): Adjust gdbarch initialization.
2375         * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2376         sizeof_fpregset.
2377         * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2378         'sizeof_gregset'.
2379
2380 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2381
2382         * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2383         (score7_linux_iterate_over_regset_sections): New.
2384         (score_gdbarch_init): Adjust gdbarch initialization.
2385
2386 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2387
2388         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2389         FreeBSD targets.
2390         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2391         method 'make_corefile_notes'.
2392         * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2393         (ppcfbsd_regset_from_core_section): Remove.
2394         (ppcfbsd_iterate_over_regset_sections): New.
2395         (ppcfbsd_init_abi): Call fbsd_init_abi.  Adjust gdbarch
2396         initialization.
2397         * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2398         (ppcnbsd_iterate_over_regset_sections): New.
2399         (ppcnbsd_init_abi): Adjust.
2400         * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2401         (ppcobsd_iterate_over_regset_sections): New.
2402         (ppcobsd_init_abi): Adjust.
2403         * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2404         (rs6000_aix_iterate_over_regset_sections): New.
2405         (rs6000_aix_init_osabi): Adjust.
2406
2407 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2408
2409         * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2410         (nios2_regset_from_core_section): Remove.
2411         (nios2_iterate_over_regset_sections): New.
2412         (nios2_linux_init_abi): Adjust gdbarch initialization.
2413
2414 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2415
2416         * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2417         (am33_iterate_over_regset_sections): New.
2418         (am33_linux_init_osabi): Adjust gdbarch initialization.
2419
2420 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2421
2422         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2423         (mips_linux_iterate_over_regset_sections): New.
2424         (mips_linux_init_abi): Adjust gdbarch initialization.
2425         * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2426         (mips64obsd_iterate_over_regset_sections): New.
2427         (mips64obsd_init_abi): Adjust.
2428         * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2429         (mipsnbsd_iterate_over_regset_sections): New.
2430         (mipsnbsd_init_abi): Adjust.
2431
2432 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2433
2434         * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2435         (m88k_iterate_over_regset_sections): New.
2436         (m88k_gdbarch_init): Adjust gdbarch initialization.
2437
2438 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2439
2440         * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2441         (ia64_linux_iterate_over_regset_sections): New.
2442         (ia64_linux_init_abi): Adjust gdbarch initialization.
2443
2444 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2445
2446         * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2447         (m68kbsd_iterate_over_regset_sections): New.
2448         (m68kbsd_init_abi): Adjust gdbarch initialization.
2449         * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2450         (m68k_linux_iterate_over_regset_sections): New.
2451         (m68k_linux_init_abi): Adjust gdbarch initialization.
2452
2453 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2454
2455         * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2456         (m32r_linux_regset_from_core_section): Remove.
2457         (m32r_linux_iterate_over_regset_sections): New.
2458         (m32r_linux_init_abi): Adjust gdbarch initialization.
2459
2460 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2461
2462         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2463         (amd64obsd_iterate_over_regset_sections): New.
2464         (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2465         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2466         Remove.
2467         (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset.  Drop
2468         regset_from_core_section initialization.
2469         * i386-tdep.c (i386_regset_from_core_section): Remove.
2470         (i386_iterate_over_regset_sections): New.
2471         (i386_gdbarch_init): Adjust gdbarch initialization.
2472         * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2473         (i386_iterate_over_regset_sections): New prototype.
2474         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2475         Remove.
2476         (i386obsd_aout_iterate_over_regset_sections): New.
2477         (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2478         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2479         targets.
2480         * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2481         (amd64fbsd_init_abi): Call fbsd_init_abi.
2482         * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2483         (i386fbsd4_init_abi): Call fbsd_init_abi.
2484         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2485         target method 'make_corefile_notes'.
2486         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2487
2488 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2489
2490         * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2491         (hppa_hpux_iterate_over_regset_sections): New.
2492         (hppa_hpux_init_abi): Adjust gdbarch initialization.
2493         * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2494         (hppa_linux_iterate_over_regset_sections): New.
2495         (hppa_linux_init_abi): Adjust.
2496         * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2497         (hppanbsd_iterate_over_regset_sections): New.
2498         (hppanbsd_init_abi): Adjust.
2499         * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2500         (hppaobsd_iterate_over_regset_sections): New.
2501         (hppaobsd_init_abi): Adjust.
2502
2503 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2504
2505         * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2506         (frv_linux_iterate_over_regset_sections): New.
2507         (frv_linux_init_abi): Adjust gdbarch initialization.
2508
2509 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2510
2511         * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2512         (armbsd_iterate_over_regset_sections): New prototype.
2513         * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2514         (armbsd_iterate_over_regset_sections): New.
2515         * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2516         initialization.
2517
2518 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2519
2520         * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2521         (alpha_linux_iterate_over_regset_sections): New.
2522         (alpha_linux_init_abi): Adjust gdbarch initialization.
2523         * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2524         prototype.
2525         (alphanbsd_iterate_over_regset_sections): New prototype.
2526
2527 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2528
2529         * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2530         Remove.
2531         (aarch64_linux_iterate_over_regset_sections): New.
2532         (aarch64_linux_init_abi): Adjust gdbarch initialization.
2533
2534 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2535
2536         * fbsd-tdep.c: New file.
2537         * fbsd-tdep.h: New file.
2538         * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2539         (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2540         (ALLDEPFILES): Add fbsd-tdep.c.
2541
2542 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2543
2544         * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2545         parameter.
2546         * gdbarch.h: Regenerate.
2547         * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2548         iterator.
2549         (get_core_register_section): Add parameter 'regset' and use it, if
2550         set.  Add parameter 'min_size' and verify the bfd section size
2551         against it.
2552         (get_core_registers_cb): Add parameter 'regset' and pass it to
2553         get_core_register section.  For the "standard" register sections
2554         ".reg" and ".reg2", set an appropriate default for human_name.
2555         (get_core_registers): Don't abort when the gdbarch has an iterator
2556         but no regset_from_core_section.  Add NULL/0 for parameters
2557         'regset'/'min_size' in calls to get_core_register_section.
2558         * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2559         'regset' and use it instead of calling the
2560         regset_from_core_section gdbarch method.
2561         * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2562         * i386-tdep.c (i386_supply_xstateregset)
2563         (i386_collect_xstateregset, i386_xstateregset): Moved to
2564         i386-linux-tdep.c.
2565         (i386_regset_from_core_section): Drop handling for .reg-xfp and
2566         .reg-xstate.
2567         (i386_gdbarch_init): Set tdep field 'fpregset'.  Enable generic
2568         core file support only if the regset iterator hasn't been set.
2569         * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2570         (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2571         Moved from i386-tdep.c and renamed to *_linux*.
2572         (i386_linux_iterate_over_regset_sections): Add regset parameter to
2573         each callback invocation.  Allow any .reg-xstate size when reading
2574         from a core file.
2575         * amd64-tdep.c (amd64_supply_xstateregset)
2576         (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2577         amd64-linux-tdep.c.
2578         (amd64_regset_from_core_section): Remove.
2579         (amd64_init_abi): Set new tdep field 'fpregset'.  No longer
2580         install an amd64-specific regset_from_core_section gdbarch method.
2581         * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2582         (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2583         Moved from amd64-tdep.c and renamed to *_linux*.
2584         (amd64_linux_iterate_over_regset_sections): Add regset parameter
2585         to each callback invocation.  Allow any .reg-xstate size when
2586         reading from a core file.
2587         * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2588         (arm_linux_iterate_over_regset_sections): Add regset parameter to
2589         each callback invocation.
2590         (arm_linux_init_abi): No longer set the regset_from_core_section
2591         gdbarch method.
2592         * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2593         (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2594         each callback invocation.
2595         (ppc_linux_init_abi): No longer set the regset_from_core_section
2596         gdbarch method.
2597         * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2598         gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2599         (s390_regset_from_core_section): Remove.
2600         (s390_iterate_over_regset_sections): Add regset parameter to each
2601         callback invocation.
2602         (s390_gdbarch_init): No longer set the regset_from_core_section
2603         gdbarch method.  Drop initialization of deleted tdep fields.
2604
2605 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2606
2607         * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2608         (amd64_linux_iterate_over_regset_sections): New.
2609         (amd64_linux_init_abi_common): Don't install the regset section
2610         list, but the new iterator in gdbarch.
2611         * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2612         (arm_linux_vfp_regset_sections): Remove.  Move combined logic...
2613         (arm_linux_iterate_over_regset_sections): ...here.  New function.
2614         (arm_linux_init_abi): Set iterator instead of section list.
2615         * corelow.c (get_core_registers_cb): New function, logic moved
2616         from...
2617         (get_core_registers): ...loop body here.  Use new iterator method
2618         instead of walking through the regset section list.
2619         * gdbarch.sh: Remove 'core_regset_sections'.  New method
2620         'iterate_over_regset_sections'.  New typedef
2621         'iterate_over_regset_sections_cb'.
2622         * gdbarch.c: Regenerate.
2623         * gdbarch.h: Likewise.
2624         * i386-linux-tdep.c (i386_linux_regset_sections)
2625         (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2626         Remove.
2627         (i386_linux_iterate_over_regset_sections): New.
2628         (i386_linux_init_abi): Don't choose a regset section list, but
2629         install new iterator in gdbarch.
2630         * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2631         (linux_collect_regset_section_cb): New function, logic moved
2632         from...
2633         (linux_collect_thread_registers): ...loop body here.  Use iterator
2634         method instead of walking through list.
2635         (linux_make_corefile_notes_1): Check for presence of iterator
2636         method instead of regset section list.
2637         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2638         (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2639         (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2640         (ppc64_linux_fp_regset_sections): Remove.  Move combined logic...
2641         (ppc_linux_iterate_over_regset_sections): ...here.  New function.
2642         (ppc_linux_init_abi): Don't choose from above regset section
2643         lists, but install new iterator in gdbarch.
2644         * regset.h (struct core_regset_section): Remove.
2645         * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2646         have_linux_v1, have_linux_v2, and have_tdb.
2647         (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2648         (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2649         (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2650         (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2651         (s390x_linux64v2_regset_sections): Remove.  Move combined logic...
2652         (s390_iterate_over_regset_sections): ...here.  New function.  Use
2653         new tdep fields.
2654         (s390_gdbarch_init): Set new tdep fields.  Don't choose from above
2655         regset section lists, but install new iterator.
2656
2657 2014-09-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
2658
2659         * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2660
2661 2014-09-26  Simon Marchi  <simon.marchi@ericsson.com>
2662
2663         * progspace.c (print_program_space): Don't prune program spaces
2664         before printing them.
2665
2666 2014-09-25  Pedro Alves  <palves@redhat.com>
2667
2668         * infrun.c (user_visible_resume_ptid): Don't check
2669         singlestep_breakpoints_inserted_p.
2670
2671 2014-09-25  Pedro Alves  <palves@redhat.com>
2672
2673         * breakpoint.c (should_be_inserted): Add debug output.
2674
2675 2014-09-25  Pedro Alves  <palves@redhat.com>
2676
2677         * infrun.c (stepping_past_instruction_at)
2678         (clear_exit_convenience_vars): Point at infrun.h instead of
2679         inferior.h.
2680         (handle_signal_stop): Fix typo.
2681
2682 2014-09-24  Yao Qi  <yao@codesourcery.com>
2683
2684         * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2685         bitmask.
2686
2687 2014-09-22  Gary Benson  <gbenson@redhat.com>
2688
2689         * target.c (target_stop): Updated comment.
2690
2691 2014-09-22  Gary Benson  <gbenson@redhat.com>
2692
2693         * target/target.h (target_stop_ptid): Renamed as...
2694         (target_stop_and_wait): New function.  Updated comment.
2695         All uses updated.
2696         (target_continue_ptid): Renamed as...
2697         (target_continue_no_signal): New function.  Updated comment.
2698         All uses updated.
2699
2700 2014-09-22  Pedro Alves  <palves@redhat.com>
2701
2702         * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2703         and "auto" merged.
2704         * breakpoint.c (enum ugll_insert_mode): New enum.
2705         (always_inserted_mode): Now a plain boolean.
2706         (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2707         (breakpoints_always_inserted_mode): Delete.
2708         (breakpoints_should_be_inserted_now): New function.
2709         (insert_breakpoints): Pass UGLL_INSERT to
2710         update_global_location_list instead of calling
2711         insert_breakpoint_locations manually.
2712         (create_solib_event_breakpoint_1): New, factored out from ...
2713         (create_solib_event_breakpoint): ... this.
2714         (create_and_insert_solib_event_breakpoint): Use
2715         create_solib_event_breakpoint_1 instead of calling
2716         insert_breakpoint_locations manually.
2717         (update_global_location_list): Change parameter type from boolean
2718         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
2719         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2720         (update_global_location_list_nothrow): Change parameter type from
2721         boolean to enum ugll_insert_mode.
2722         (_initialize_breakpoint): "breakpoint always-inserted" option is
2723         now a boolean command.  Update help text.
2724         * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2725         (breakpoints_should_be_inserted_now): New declaration.
2726         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2727         Remove breakpoints_always_inserted_mode check.
2728         (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2729         * remote.c (remote_start_remote): Likewise.
2730
2731 2014-09-22  Pedro Alves  <palves@redhat.com>
2732
2733         * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2734         (insert_breakpoints): Don't call insert_breakpoint_locations here.
2735         Instead, pass UGLL_INSERT to update_global_location_list.
2736         (update_global_location_list): Change parameter type from boolean
2737         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
2738         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2739         (create_solib_event_breakpoint_1): New, factored out from ...
2740         (create_solib_event_breakpoint): ... this.
2741         (create_and_insert_solib_event_breakpoint): Use
2742         create_solib_event_breakpoint_1 instead of calling
2743         insert_breakpoint_locations manually.
2744         (update_global_location_list): Handle UGLL_INSERT.
2745
2746 2014-09-22  Pedro Alves  <palves@redhat.com>
2747
2748         * breakpoint.c (enum ugll_insert_mode): New enum.
2749         (update_global_location_list)
2750         (update_global_location_list_nothrow): Change parameter type from
2751         boolean to enum ugll_insert_mode.  All callers adjusted.
2752
2753 2014-09-19  Joel Brobecker  <brobecker@adacore.com>
2754
2755         * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2756         SystemTap support in GDB.
2757
2758 2014-09-19  Don Breazeal  <donb@codesourcery.com>
2759
2760         * linux-nat.c (linux_handle_extended_wait): Call
2761         linux_ptrace_get_extended_event.
2762         (wait_lwp): Call linux_is_extended_waitstatus.
2763         (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2764         and linux_is_extended_waitstatus.
2765         * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2766         linux_ptrace_get_extended_event.
2767         (linux_ptrace_get_extended_event): New function.
2768         (linux_is_extended_waitstatus): New function.
2769         * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2770         (linux_is_extended_waitstatus): New declarations.
2771
2772 2014-09-19  Yao Qi  <yao@codesourcery.com>
2773
2774         * dwarf2read.c (dwarf_decode_lines): Update declaration.
2775         (handle_DW_AT_stmt_list): Add argument 'lowpc'.  Update
2776         comments.  Callers update.
2777         (dwarf_decode_lines): Likewise.
2778         (dwarf_decode_lines_1): Add argument 'lowpc'.  Update
2779         comments.  Skip the line table if  'lowpc' is greater than
2780         'address'.  Don't check
2781         dwarf2_per_objfile->has_section_at_zero.
2782
2783 2014-09-18  Doug Evans  <dje@google.com>
2784
2785         * NEWS: Mention new "producer" attribute of gdb.Symtab.
2786         * python/py-symtab.c (stpy_get_producer): New function.
2787         (symtab_object_getset): Add "producer" attribute.
2788
2789 2014-09-17  Ulrich Weigand  <uweigand@de.ibm.com>
2790
2791         PR gdb/17384
2792         * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2793         (do_captured_read_memory_integer): Remove.
2794         (safe_read_memory_integer): Use target_read_memory directly instead
2795         of catching errors in do_captured_read_memory_integer.
2796
2797 2014-09-16  Maciej W. Rozycki  <macro@codesourcery.com>
2798
2799         * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2800         not gdb/doc.
2801
2802 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
2803
2804         * objc-lang.c (find_implementation_from_class): Remove dead code.
2805
2806 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
2807
2808         PR cli/7233
2809         * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2810         "fprintf_unfiltered (gdb_stdlog...)".
2811
2812 2014-09-16  Patrick Palka  <patrick@parcs.ath.cx>
2813
2814         PR breakpoints/12526
2815         * breakpoint.h (struct watchpoint): New fields val_bitpos and
2816         val_bitsize.
2817         * breakpoint.c (watch_command_1): Use these fields to retain
2818         bitfield information.
2819         (extract_bitfield_from_watchpoint_value): New function.
2820         (watchpoint_check): Use it.
2821         (update_watchpoint): Use it.  Optimize the address and length of a
2822         HW watchpoint pointing to a bitfield.
2823         * value.h (unpack_value_bitfield): New prototype.
2824         * value.c (unpack_value_bitfield): Make extern.
2825
2826 2014-09-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2827
2828         * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2829         x86-dregs.o.
2830         * gnu-nat.c (inf_threads): New function.
2831         * gnu-nat.h (inf_threads_ftype): New typedef.
2832         (inf_threads): New declaration.
2833         * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2834         [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2835         (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2836         (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2837         (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2838         (i386_gnu_dr_get_control): New functions.
2839         (reg_addr): New structure.
2840         (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2841         i386 debugging register hooks.
2842         * NEWS: Mention this.
2843
2844 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
2845
2846         * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2847         vector data transfer instructions.
2848         (arm_record_coproc_data_proc): Updated.
2849
2850 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
2851
2852         * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2853         arm_record_exreg_ld_st_insn.
2854         (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2855         load/store insns.
2856
2857 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
2858
2859         * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2860         (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2861         processing instructions.
2862
2863 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
2864
2865         * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2866         for advance SIMD struct ld/st insn.
2867         (thumb2_record_decode_insn_handler): Replace stub handler with
2868         thumb2_record_asimd_struct_ld_st.
2869
2870 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
2871
2872         * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2873         for asimd, vfp and coprocessor insns.
2874         (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2875         and coprocessor insns.
2876         (thumb2_record_coproc_insn): New function.
2877         (thumb2_record_decode_insn_handler): Update coprocessor insns record
2878         handlers.
2879         (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2880         opcode 110 insns.
2881
2882 2014-09-13  Doug Evans  <xdje42@gmail.com>
2883
2884         * NEWS: Mention new "queue-signal" command.
2885         * infcmd.c (queue_signal_command): New function.
2886         (_initialize_infcmd): Add new queue-signal command.
2887
2888 2014-09-13  Doug Evans  <xdje42@gmail.com>
2889
2890         * linux-nat.c (wait_lwp): Add debugging printf.
2891         (linux_nat_wait_1): Ditto.
2892
2893 2014-09-12  Pedro Alves  <palves@redhat.com>
2894
2895         * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2896         (create_and_insert_solib_event_breakpoint): New functions.
2897         * breakpoint.h (create_and_insert_solib_event_breakpoint)
2898         (remove_solib_event_breakpoints_at_next_stop): New declarations.
2899         * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2900         (remove_dbx_link_breakpoint): Delete function.
2901         (insert_dbx_link_bpt_in_file): Use
2902         create_and_insert_solib_event_breakpoint instead of
2903         deprecated_insert_raw_breakpoint.
2904         (procfs_wait): Don't check whether we hit __dbx_link here.
2905         (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2906         here.
2907         * solib-irix.c (base_breakpoint): Delete global.
2908         (disable_break): Delete function.
2909         (enable_break): Use create_solib_event_breakpoint
2910         instead of deprecated_insert_raw_breakpoint.
2911         (irix_solib_handle_event): New function.
2912         (irix_solib_create_inferior_hook): Don't run the target or disable
2913         the mapping-complete breakpoint here.
2914         (_initialize_irix_solib): Install irix_solib_handle_event as
2915         so_ops->handle_event hook.
2916
2917 2014-09-12  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
2918             Ulrich Weigand  <uweigand@de.ibm.com>
2919
2920         PR tdep/17379
2921         * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2922         instead of read_memory_unsigned_integer.
2923
2924 2014-09-12  Gary Benson  <gbenson@redhat.com>
2925
2926         * nat/linux-waitpid.c: Include common-defs.h.
2927         [GDBSERVER]: Add FIXME comment.
2928         [!GDBSERVER]: Don't include defs.h or signal.h.
2929         (linux_debug) [!GDBSERVER]: Remove empty block.
2930
2931 2014-09-12  Gary Benson  <gbenson@redhat.com>
2932
2933         * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2934         Don't include defs.h or server.h.
2935
2936 2014-09-12  Gary Benson  <gbenson@redhat.com>
2937
2938         * nat/linux-btrace.c: Include common-defs.h.
2939         Don't include defs.h, server.h or gdbthread.h.
2940         * nat/linux-btrace.h (struct target_ops): New forward declaration.
2941
2942 2014-09-12  Gary Benson  <gbenson@redhat.com>
2943
2944         * common/agent.c: Include common-defs.h.
2945         Don't include defs.h or server.h.
2946         * common/buffer.c: Likewise.
2947         * common/common-debug.c: Likewise.
2948         * common/common-utils.c: Likewise.
2949         * common/errors.c: Likewise.
2950         * common/filestuff.c: Likewise.
2951         * common/format.c: Likewise.
2952         * common/gdb_vecs.c: Likewise.
2953         * common/print-utils.c: Likewise.
2954         * common/ptid.c: Likewise.
2955         * common/rsp-low.c: Likewise.
2956         * common/signals.c: Likewise.
2957         * common/vec.c: Likewise.
2958         * common/xml-utils.c: Likewise.
2959         * nat/linux-osdata.c: Likewise.
2960         * nat/linux-procfs.c: Likewise.
2961         * nat/linux-ptrace.c: Likewise.
2962         * nat/mips-linux-watch.c: Likewise.
2963         * target/waitstatus.c: Likewise.
2964
2965 2014-09-12  Tom Tromey  <tromey@redhat.com>
2966             Gary Benson  <gbenson@redhat.com>
2967
2968         * common/common-regcache.h: New file.
2969         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2970         * regcache.h: Include common-regcache.h.
2971         (regcache_read_pc): Don't declare.
2972         * regcache.c (get_thread_regcache_for_ptid): New function.
2973         * nat/linux-btrace.c: Don't include regcache.h.
2974         Include common-regcache.h.
2975         (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2976
2977 2014-09-11  Thomas Schwinge  <thomas@codesourcery.com>
2978
2979         * regcache.h (struct regset): Declare.
2980
2981 2014-09-11  Pedro Alves  <palves@redhat.com>
2982
2983         PR gdb/17347
2984         * main.c: Include "infrun.h".
2985         (catch_command_errors, catch_command_errors_const): Wait for the
2986         foreground command to complete.
2987         * top.c (maybe_wait_sync_command_done): New function, factored out
2988         from ...
2989         (maybe_wait_sync_command_done): ... here.
2990         * top.h (maybe_wait_sync_command_done): New declaration.
2991
2992 2014-09-11  Tom Tromey  <tromey@redhat.com>
2993             Gary Benson  <gbenson@redhat.com>
2994
2995         * common/symbol.h: New file.
2996         * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2997         * minsyms.c (find_minimal_symbol_address): New function.
2998         * common/agent.c: Include common/symbol.h.
2999         [!GDBSERVER]: Don't include objfiles.h.
3000         (agent_look_up_symbols): Use find_minimal_symbol_address.
3001
3002 2014-09-11  Gary Benson  <gbenson@redhat.com>
3003
3004         * target/target.h (target_stop_ptid, target_continue_ptid):
3005         Declare.
3006         * target.c (target_stop_ptid, target_continue_ptid): New
3007         functions.
3008         * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3009         (agent_run_command): Always use target_stop_ptid and
3010         target_continue_ptid.
3011
3012 2014-09-11  Tom Tromey  <tromey@redhat.com>
3013             Gary Benson  <gbenson@redhat.com>
3014
3015         * target/target.h: New file.
3016         * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3017         * target.h: Include target/target.h.
3018         (target_read_memory, target_write_memory): Don't declare.
3019         * target.c (target_read_uint32): New function.
3020         * common/agent.c: Include target/target.h.
3021         [!GDBSERVER]: Don't include target.h.
3022         (helper_thread_id): Type changed to uint32_t.
3023         (agent_get_helper_thread_id): Use target_read_uint32.
3024         (agent_run_command): Always use target_read_memory and
3025         target_write_memory.
3026         (agent_capability): Type changed to uint32_t.
3027         (agent_capability_check): Use target_read_uint32.
3028
3029 2014-09-11  Gary Benson  <gbenson@redhat.com>
3030
3031         * common/common-debug.h (show_debug_regs): Declare.
3032         * common/common-debug.c (show_debug_regs): Define.
3033         * aarch64-linux-nat.c (debug_hw_points): Don't define.  Replace
3034         all uses with show_debug_regs.  Replace all uses that considered
3035         debug_hw_points as a multi-value integer with straight boolean
3036         uses.
3037         * x86-nat.c (debug_hw_points): Don't define.  Replace all uses
3038         with show_debug_regs.
3039         * nat/x86-dregs.c (debug_hw_points): Don't declare.  Replace
3040         all uses with show_debug_regs.
3041         * mips-linux-nat.c (maint_show_dr): Don't define.  Replace all
3042         uses with show_debug_regs.
3043
3044 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
3045
3046         * findvar.c (address_from_register): Handle targets requiring
3047         a special conversion routine even for plain pointer types.
3048
3049 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
3050
3051         * rs6000-nat.c (exec_one_dummy_insn): Remove.
3052         (store_register): Do not call exec_one_dummy_insn.
3053
3054 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
3055
3056         * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3057         dereference it first.  Use value_enclosing_type instead of
3058         value_type.
3059         (ada_array_length): Likewise.
3060
3061 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
3062
3063         * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3064         Adjust function implementation and documentation accordingly.
3065         (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3066         NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3067         Update call to ada_value_ptr_subscript.
3068
3069 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
3070
3071         * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3072         instead of VAL's type.
3073
3074 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
3075
3076         * amd64-linux-nat.c: Add <sys/uio.h> #include.
3077
3078 2014-09-09  Doug Evans  <xdje42@gmail.com>
3079
3080         PR guile/17367
3081         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3082         last parameter to pkg-config, not first.
3083         * configure.ac: Pass --with-guile provided pkg-config path to
3084         GDB_GUILE_PROGRAM_NAMES.
3085         * configure: Regenerate.
3086
3087 2014-09-09  Gabriel Krisman Bertazi  <gabriel@krisman.be>
3088
3089         * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3090         Bertazi".
3091
3092 2014-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
3093
3094         * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3095         Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3096         the list of sections determining GDB_OSABI_IRIX.
3097
3098 2014-09-09  James Hogan  <james.hogan@imgtec.com>
3099
3100         * MAINTAINERS (Write After Approval): Add "James Hogan".
3101
3102 2014-09-09  James Hogan  <james.hogan@imgtec.com>
3103
3104         * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3105
3106 2014-09-09  Joel Brobecker  <brobecker@adacore.com>
3107
3108         * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3109
3110 2014-09-08  Doug Evans  <xdje42@gmail.com>
3111
3112         PR 17247
3113         * guile.c: #include <signal.h>.
3114         (_initialize_guile): Block SIGCHLD while initializing Guile.
3115
3116         Replaces the following, which is reverted.
3117
3118         2014-07-26  Doug Evans  <xdje42@gmail.com>
3119
3120         PR 17185
3121         * configure.ac: Add check for header gc/gc.h.
3122         Add check for function setenv.
3123         * configure: Regenerate.
3124         * config.in: Regenerate.
3125         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3126
3127 2014-09-08  Doug Evans  <xdje42@gmail.com>
3128
3129         * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3130         with named constant.  Fix style of pointer comparison.
3131         * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3132
3133 2014-09-07  Gabriel Krisman Bertazi  <gabriel@krisman.be>
3134
3135         PR gdb/17035
3136         * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3137         decide whether we display the command on "show user".
3138         * cli/cli-script.c (show_user_1): Only verify cmdlines after
3139         printing command name.
3140         * cli/cli-decode.h (cli_user_command_p): Declare new function.
3141         * cli/cli-decode.c (cli_user_command_p): Create helper function
3142         to verify whether cmd_list_element is a user-defined command.
3143
3144 2014-09-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3145
3146         PR python/17355
3147         * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3148         Fix goto out of TRY_CATCH.
3149
3150 2014-09-06  Doug Evans  <xdje42@gmail.com>
3151             Tom Tromey  <tromey@redhat.com>
3152
3153         PR 15276
3154         * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3155         $_any_caller_matches.
3156         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3157         * python/lib/gdb/function/caller_is.py: New file.
3158
3159 2014-09-06  Doug Evans  <xdje42@gmail.com>
3160
3161         * infcmd.c (program_info): Fix typo.
3162
3163 2014-09-05  Sergio Durigan Junior  <sergiodj@redhat.com>
3164
3165         PR gdb/17235
3166         * stap-probe.c (stap_parse_single_operand): Delete unused variable
3167         'number'.  New variable 'has_digit'.  Rewrite code to deal with
3168         subexpressions on SDT probes.
3169
3170 2014-09-04  Pedro Alves  <palves@redhat.com>
3171
3172         * c-exp.y (parse_number): Skip handling base-switching prefixes if
3173         the input is only one character long.
3174
3175 2014-09-04  Sergio Durigan Junior  <sergiodj@redhat.com>
3176
3177         PR fortran/17237
3178         * f-valprint.c (f_val_print): Specify the correct print option to
3179         use when printing integer values.
3180
3181 2014-09-04  Gary Benson  <gbenson@redhat.com>
3182
3183         * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3184         Remove code to cope with LWPs wrapped as PIDs.
3185         Add assertions to ensure no wrapped LWPs are passed.
3186
3187 2014-09-04  Pedro Alves  <palves@redhat.com>
3188
3189         * value.c (value_ranges_copy_adjusted): New function, factored out
3190         from ...
3191         (value_contents_copy_raw): ... here.
3192         (unpack_value_bits_as_long_1): Rename back to ...
3193         (unpack_bits_as_long): ... this.  Remove 'original_value' and
3194         'result' parameters.  Change return type to LONGEST.
3195         (unpack_value_bits_as_long): Delete.
3196         (unpack_value_field_as_long_1): Delete.
3197         (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3198         (unpack_value_bitfield): New function.
3199         (value_field_bitfield): Reimplement using unpack_value_bitfield.
3200         (value_fetch_lazy): Use unpack_value_bitfield.
3201         * value.h (unpack_value_bits_as_long): Delete declaration.
3202
3203 2014-09-03  Sasha Smundak  <asmundak@google.com>
3204
3205         * python/py-frame.c (frapy_read_register): New function.
3206
3207 2014-09-03  James Hogan  <james.hogan@imgtec.com>
3208
3209         * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3210         prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3211
3212 2014-09-03  Sergio Durigan Junior  <sergiodj@redhat.com>
3213
3214         PR python/16699
3215         * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3216         function.
3217         (add_cmd): Set "completer_handle_brkchars" to NULL.
3218         * cli/cli-decode.h (struct cmd_list_element)
3219         <completer_handle_brkchars>: New field.
3220         * command.h (completer_ftype_void): New typedef.
3221         (set_cmd_completer_handle_brkchars): New prototype.
3222         * completer.c (set_gdb_completion_word_break_characters): New
3223         function.
3224         (complete_line_internal): Call "completer_handle_brkchars"
3225         callback from command.
3226         * completer.h: Include "command.h".
3227         (set_gdb_completion_word_break_characters): New prototype.
3228         * python/py-cmd.c (cmdpy_completer_helper): New function.
3229         (cmdpy_completer_handle_brkchars): New function.
3230         (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3231         (cmdpy_init): Set completer_handle_brkchars to
3232         cmdpy_completer_handle_brkchars.
3233
3234 2014-09-03  Gary Benson  <gbenson@redhat.com>
3235
3236         * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3237         (ALL_DEBUG_ADDRESS_REGISTERS): New macro.  All uses updated.
3238         Loop conditions changed to equivalent form.
3239         (struct x86_debug_reg_state): Updated dr_ref_count comment.
3240         * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3241         ALL_DEBUG_ADDRESS_REGISTERS.
3242
3243 2014-09-03  Joel Brobecker  <brobecker@adacore.com>
3244
3245         * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3246         description fix.
3247
3248 2014-09-02  Doug Evans  <dje@google.com>
3249
3250         * typeprint.c (find_global_typedef): Fix comment.
3251
3252 2014-09-02  Gary Benson  <gbenson@redhat.com>
3253
3254         * i386-nat.h: Renamed as...
3255         * x86-nat.h: New file.  All type, function and variable name
3256         prefixes changed from "i386_" to "x86_".  All references updated.
3257         * i386-nat.c: Renamed as...
3258         * x86-nat.c: New file.  All type, function and variable name
3259         prefixes changed from "i386_" to "x86_".  All references updated.
3260         * common/i386-xstate.h: Renamed as...
3261         * common/x86-xstate.h: New file.  All type, function and variable
3262         name prefixes changed from "i386_" to "x86_".  All references
3263         updated.
3264         * nat/i386-cpuid.h: Renamed as...
3265         * nat/x86-cpuid.h: New file.  All type, function and variable name
3266         prefixes changed from "i386_" to "x86_".  All references updated.
3267         * nat/i386-gcc-cpuid.h: Renamed as...
3268         * nat/x86-gcc-cpuid.h: New file.  All type, function and variable
3269         name prefixes changed from "i386_" to "x86_".  All references
3270         updated.
3271         * nat/i386-dregs.h: Renamed as...
3272         * nat/x86-dregs.h: New file.  All type, function and variable name
3273         prefixes changed from "i386_" to "x86_".  All references updated.
3274         * nat/i386-dregs.c: Renamed as...
3275         * nat/x86-dregs.c: New file.  All type, function and variable name
3276         prefixes changed from "i386_" to "x86_".  All references updated.
3277
3278 2014-09-01  Maciej W. Rozycki  <macro@codesourcery.com>
3279
3280         * varobj.c (_initialize_varobj): Move to the end of file.
3281
3282 2014-08-29  Gary Benson  <gbenson@redhat.com>
3283
3284         * common/common-exceptions.h: New file.
3285         * common/common-exceptions.c: Likewise.
3286         * Makefile.in (SFILES): Add common/common-exceptions.c.
3287         (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3288         (COMMON_OBS): Add common-exceptions.o.
3289         (common-exceptions.o): New rule.
3290         * exceptions.h (common-exceptions.h): Include.
3291         (gdb_setjmp.h): Do not include.
3292         (return_reason): Moved to common-exceptions.h.
3293         (enum return_reason): Likewise.
3294         (RETURN_MASK): Likewise.
3295         (typedef return_mask): Likewise.
3296         (enum errors): Likewise.
3297         (struct gdb_exception): Likewise.
3298         (exceptions_state_mc_init): Likewise.
3299         (exceptions_state_mc_action_iter): Likewise.
3300         (exceptions_state_mc_action_iter_1): Likewise.
3301         (TRY_CATCH): Likewise.
3302         (throw_exception): Likewise.
3303         (throw_verror): Likewise.
3304         (throw_vquit): Likewise.
3305         (throw_error): Likewise.
3306         (throw_quit): Likewise.
3307         * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3308         (enum catcher_action): Likewise.
3309         (struct catcher): Likewise.
3310         (current_catcher): Likewise.
3311         (catcher_list_size): Likewise.
3312         (exceptions_state_mc_init): Likewise.
3313         (catcher_pop): Likewise.
3314         (exceptions_state_mc): Likewise.
3315         (exceptions_state_mc_action_iter): Likewise.
3316         (exceptions_state_mc_action_iter_1): Likewise.
3317         (throw_exception): Likewise.
3318         (exception_messages): Likewise.
3319         (exception_messages_size): Likewise.
3320         (throw_it): Likewise.
3321         (throw_verror): Likewise.
3322         (throw_vquit): Likewise.
3323         (throw_error): Likewise.
3324         (throw_quit): Likewise.
3325         (prepare_to_throw_exception): New function.
3326
3327 2014-08-29  Gary Benson  <gbenson@redhat.com>
3328
3329         * common/gdb_setjmp.h: New file.
3330         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3331         * configure.ac: Move sigsetjmp check...
3332         * common/common.m4: ...here.
3333         * configure: Regenerate.
3334         * cp-support.c (SIGJMP_BUF): Delete.
3335         (SIGSETJMP): Likewise.
3336         (SIGLONGJMP): Likewise.
3337         * exceptions.h (gdb_setjmp.h): Include.
3338         (setjmp.h): Do not include.
3339         (EXCEPTIONS_SIGJMP_BUF): Delete.
3340         (EXCEPTIONS_SIGSETJMP): Likewise.
3341         (EXCEPTIONS_SIGLONGJMP): Likewise.
3342         Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3343         from gdb_setjmp.h.
3344         * exceptions.c: Likewise.
3345
3346 2014-08-29  Gary Benson  <gbenson@redhat.com>
3347
3348         * cleanups.h: Moved to...
3349         * common/cleanups.h: New file.
3350         * cleanups.c: Moved to...
3351         * common/cleanups.c: New file.  Include common-defs.h and
3352         cleanups.h.  Do not include defs.h.
3353         * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3354         (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3355         (cleanups.o): New rule.
3356
3357 2014-08-29  Gary Benson  <gbenson@redhat.com>
3358
3359         * common/errors.h (internal_warning): New declaration.
3360         (internal_vwarning): Likewise.
3361         * common/errors.c (internal_warning): New function.
3362         * utils.h (internal_warning): Don't declare.
3363         (internal_vwarning): Likewise.
3364         * utils.c (internal_warning): Removed.
3365
3366 2014-08-29  Gary Benson  <gbenson@redhat.com>
3367
3368         * main.c (captured_main): Use warning during startup.
3369         Prefix startup warning messages with command name.
3370
3371 2014-08-29  Gary Benson  <gbenson@redhat.com>
3372
3373         * main.c (captured_main): Handle usage errors with error.
3374
3375 2014-08-29  Gary Benson  <gbenson@redhat.com>
3376
3377         * go32-nat.c (go32_create_inferior): Replace a fprintf/
3378         exit pair with a call to error.  Wrap the message with _().
3379
3380 2014-08-29  Gary Benson  <gbenson@redhat.com>
3381
3382         * main.c (captured_main): Replace a fprintf/exit
3383         pair with a call to error.  Wrap the message with _().
3384
3385 2014-08-29  Gary Benson  <gbenson@redhat.com>
3386
3387         * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3388         pairs with calls to error.  Wrap the message with _().
3389
3390 2014-08-29  Gary Benson  <gbenson@redhat.com>
3391
3392         * utils.c (vwarning): Protect calls to target_terminal_ours
3393         and wrap_here.
3394
3395 2014-08-29  Gary Benson  <gbenson@redhat.com>
3396
3397         * exceptions.c (print_flush): Protect calls to
3398         target_terminal_ours and wrap_here.
3399
3400 2014-08-29  Gary Benson  <gbenson@redhat.com>
3401
3402         * utils.h (filtered_printing_initialized): New declaration.
3403         * utils.c (abort_with_message): New function.
3404         (internal_vproblem): Use abort_with_message for first level
3405         recursive internal problems, and if gdb_stderr is not set up.
3406         Protect calls to target_terminal_ours, begin_line and query.
3407
3408 2014-08-28  Doug Evans  <dje@google.com>
3409
3410         * symtab.c (in_prologue): Move definition to better spot.
3411         (skip_prologue_using_sal): Ditto.
3412
3413 2014-08-28  Doug Evans  <dje@google.com>
3414
3415         * symtab.c (find_function_start_sal): Move definition to better spot.
3416
3417 2014-08-28  Yao Qi  <yao@codesourcery.com>
3418
3419         * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3420         found_stack_adjust in forward scan.  Remove condition check
3421         on found_stack_adjust which is always true.  Indent the code.
3422
3423 2014-08-28  Yao Qi  <yao@codesourcery.com>
3424
3425         * dwarf2read.c (dwarf_decode_lines): Update declaration.
3426         (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3427         (dwarf_decode_lines): Remove argument
3428         want_line_info.  Remove condition check on want_line_info.
3429         Callers update.
3430
3431 2014-08-27  Doug Evans  <dje@google.com>
3432
3433         * dwarf2read.c (dwarf_record_line): Fix typo.
3434
3435 2014-08-27  Patrick Palka  <patrick@parcs.ath.cx>
3436
3437         * target.h (struct target_ops::to_terminal_save_ours): Remove
3438         declaration.
3439         (target_terminal_save_ours): Remove macro.
3440         * target-delegates.c: Regenerate.
3441         * inf-child.c (inf_child_target): Don't set the nonexistent
3442         field to_terminal_save_ours.
3443         * inferior.h (child_terminal_save_ours): Remove declaration.
3444         * terminal.h (gdb_save_tty_state): New declaration.
3445         * inflow.c (child_terminal_save_ours): Rename to ...
3446         (gdb_save_tty_state): ... this.
3447         * tui/tui.c: Include terminal.h.
3448         (tui_enable): Use gdb_save_tty_state instead of
3449         target_terminal_save_ours.
3450         (tui_disable): Likewise.
3451
3452 2014-08-25  Doug Evans  <dje@google.com>
3453
3454         * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3455         Pass NULL instead of 0 for context pointer.
3456
3457 2014-08-25  Yao Qi  <yao@codesourcery.com>
3458
3459         * dwarf2read.c: Fix grammatical error.
3460
3461 2014-08-24  Yao Qi  <yao@codesourcery.com>
3462
3463         * dwarf2read.c (scan_partial_symbols):  Update comments.
3464         Rename argument 'need_pc' with 'set_addrmap'.
3465         (add_partial_namespace): Rename argument 'need_pc' with
3466         'set_addrmap'.
3467         (add_partial_module): Likewise.
3468         (add_partial_subprogram): Likewise.  Update comments.
3469         (dwarf2_name): Fix typo.
3470
3471 2014-08-22  Doug Evans  <dje@google.com>
3472
3473         PR 17276
3474         * dwarf2read.c (dwarf_record_line_p): New function.
3475         (dwarf_decode_lines_1): Ignore subsequent line number entries
3476         for the same line if any entry had a non-zero discriminator.
3477
3478 2014-08-22  Doug Evans  <dje@google.com>
3479
3480         * buildsym.h (record_line_ftype): New typedef.
3481         (record_line): Use it.
3482         * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3483         (dwarf_decode_lines_1): Call them.
3484
3485 2014-08-22  Yao Qi  <yao@codesourcery.com>
3486
3487         * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3488         (ctf_end): Remove code.
3489
3490 2014-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
3491
3492         * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3493         (linux_make_corefile_notes): call update_thread_list, protected against
3494         exceptions.
3495
3496 2014-08-21  Pedro Alves  <palves@redhat.com>
3497
3498         * infcmd.c (attach_command): Remove comment.
3499
3500 2014-08-21  Bin Cheng  <bin.cheng@arm.com>
3501
3502         * aarch64-linux-nat.c (dr_changed_t): Change the type from
3503         unsigned LONGEST to ULONGEST.
3504
3505 2014-08-20  Pedro Alves  <palves@redhat.com>
3506
3507         * Makefile.in (check-read1): New rule.
3508
3509 2014-08-20  Joel Brobecker  <brobecker@adacore.com>
3510
3511         * value.c (value_from_contents_and_address): Strip resolved_type's
3512         typedef layers before checking its TYPE_DATA_LOCATION.
3513
3514 2014-08-20  Pedro Alves  <palves@redhat.com>
3515
3516         * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3517
3518 2014-08-20  Yao Qi  <yao@codesourcery.com>
3519
3520         * amd64-tdep.c (amd64_classify): Add a blank line after the
3521         example.  Move "*/" to a new line.
3522         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3523         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3524         * dwarf2read.c (psymtab_include_file_name): Likewise.
3525
3526 2014-08-19  Andrew Burgess  <aburgess@broadcom.com>
3527             Pedro Alves  <palves@redhat.com>
3528
3529         PR symtab/14604
3530         PR symtab/14605
3531         * ada-lang.c (coerce_unspec_val_to_type): Use
3532         value_contents_copy_raw.
3533         * ada-valprint.c (val_print_packed_array_elements): Adjust.
3534         * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3535         * cp-valprint.c (cp_print_value_fields): Let the common printing
3536         code handle optimized out values.
3537         (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3538         * d-valprint.c (dynamic_array_type): Use
3539         value_bits_any_optimized_out.
3540         * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3541         check_any_valid fields.
3542         (check_pieced_value_bits): Delete and inline ...
3543         (check_pieced_synthetic_pointer): ... here.
3544         (check_pieced_value_validity): Delete.
3545         (check_pieced_value_invalid): Delete.
3546         (pieced_value_funcs): Remove check_validity and check_any_valid
3547         fields.
3548         (read_pieced_value): Use mark_value_bits_optimized_out.
3549         (write_pieced_value): Switch to use
3550         mark_value_bytes_optimized_out.
3551         (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3552         of assuming the whole value is optimized out.
3553         * findvar.c (read_frame_register_value): Remove special handling
3554         of optimized out registers.
3555         (value_from_register): Use mark_value_bytes_optimized_out.
3556         * frame-unwind.c (frame_unwind_got_optimized): Use
3557         mark_value_bytes_optimized_out.
3558         * jv-valprint.c (java_value_print): Adjust.
3559         (java_print_value_fields): Let the common printing code handle
3560         optimized out values.
3561         * mips-tdep.c (mips_print_register): Remove special handling of
3562         optimized out registers.
3563         * opencl-lang.c (lval_func_check_validity): Delete.
3564         (lval_func_check_any_valid): Delete.
3565         (opencl_value_funcs): Remove check_validity and check_any_valid
3566         fields.
3567         * p-valprint.c (pascal_object_print_value_fields): Let the common
3568         printing code handle optimized out values.
3569         * stack.c (read_frame_arg): Remove special handling of optimized
3570         out values.  Fetch both VAL and ENTRYVAL before comparing
3571         contents.  Adjust to value_available_contents_eq rename.
3572         * valprint.c (valprint_check_validity)
3573         (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3574         (val_print_array_elements): Adjust.
3575         * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3576         (value_bits_any_optimized_out): New function.
3577         (value_entirely_covered_by_range_vector): New function, factored
3578         out from value_entirely_unavailable.
3579         (value_entirely_unavailable): Reimplement.
3580         (value_entirely_optimized_out): New function.
3581         (insert_into_bit_range_vector): New function, factored out from
3582         mark_value_bits_unavailable.
3583         (mark_value_bits_unavailable): Reimplement.
3584         (struct ranges_and_idx): New struct.
3585         (find_first_range_overlap_and_match): New function, factored out
3586         from value_available_contents_bits_eq.
3587         (value_available_contents_bits_eq): Rename to ...
3588         (value_contents_bits_eq): ... this.  Check both unavailable
3589         contents and optimized out contents.
3590         (value_available_contents_eq): Rename to ...
3591         (value_contents_eq): ... this.
3592         (allocate_value_lazy): Remove reference to the old optimized_out
3593         boolean.
3594         (allocate_optimized_out_value): Use
3595         mark_value_bytes_optimized_out.
3596         (require_not_optimized_out): Adjust to check whether the
3597         optimized_out vec is empty.
3598         (ranges_copy_adjusted): New function, factored out from
3599         value_contents_copy_raw.
3600         (value_contents_copy_raw): Also copy the optimized out ranges.
3601         Assert the destination ranges aren't optimized out.
3602         (value_contents_copy): Update comment, remove call to
3603         require_not_optimized_out.
3604         (value_contents_equal): Adjust to check whether the optimized_out
3605         vec is empty.
3606         (set_value_optimized_out, value_optimized_out_const): Delete.
3607         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3608         New functions.
3609         (value_entirely_optimized_out, value_bits_valid): Delete.
3610         (value_copy): Take a VEC copy of the 'optimized_out' field.
3611         (value_primitive_field): Remove special handling of optimized out.
3612         (value_fetch_lazy): Assert that lazy values have no unavailable
3613         regions.  Use value_bits_any_optimized_out.  Remove some special
3614         handling for optimized out values.
3615         * value.h: Add intro comment about <optimized out> and
3616         <unavailable>.
3617         (struct lval_funcs): Remove check_validity and check_any_valid
3618         fields.
3619         (set_value_optimized_out, value_optimized_out_const): Remove.
3620         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3621         New declarations.
3622         (value_bits_any_optimized_out): New declaration.
3623         (value_bits_valid): Delete declaration.
3624         (value_available_contents_eq): Rename to ...
3625         (value_contents_eq): ... this, and extend comments.
3626
3627 2014-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
3628
3629         Fix -fsanitize=address on unreadable inferior strings.
3630         * valprint.c (val_print_string): Fix access before BUFFER.
3631
3632 2014-08-19  Simon Marchi  <simon.marchi@ericsson.com>
3633
3634         * target.c (target_struct_size): Remove.
3635         (target_struct_allocsize): Remove.
3636         (DEFAULT_ALLOCSIZE): Remove.
3637         (target_ops_p): New typedef.
3638         (DEF_VEC_P (target_ops_p)): New vector type.
3639         (target_structs): Change type to VEC (target_ops_p).
3640         (add_target_with_completer): Replace "push" code by VEC_safe_push.
3641         (find_default_run_target): Rewrite for loop following changes to
3642         target_structs.
3643
3644 2014-08-19  Joel Brobecker  <brobecker@adacore.com>
3645
3646         * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3647         Adjust code accordingly.  Adjust function description comment.
3648
3649 2014-08-19  Yao Qi  <yao@codesourcery.com>
3650
3651         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3652         types.
3653
3654 2014-08-19  Alan Modra  <amodra@gmail.com>
3655
3656         * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3657         * config.in: Regenerate.
3658         * configure: Regenerate.
3659
3660 2014-08-19  Tom Tromey  <tromey@redhat.com>
3661             Gary Benson  <gbenson@redhat.com>
3662
3663         * common/common-debug.h: New file.
3664         * common/common-debug.c: Likewise.
3665         * debug.c: Likewise.
3666         * Makefile.in (SFILES): Add common/common-debug.c.
3667         (HFILES_NO_SRCDIR): Add common/common-debug.h.
3668         (COMMON_OBS): Add common-debug.o and debug.o.
3669         (common-debug.o): New rule.
3670         * common/common-defs.h: Include common-debug.h.
3671         * common/agent.c (debug_agent_printf): New function.
3672         (DEBUG_AGENT): Redefine.
3673         * nat/i386-dregs.c (debug_printf): Undefine.
3674
3675 2014-08-19  Gary Benson  <gbenson@redhat.com>
3676
3677         * common/common-defs.h: Include print-utils.h.
3678         * utils.h: Do not include print-utils.h.
3679
3680 2014-08-19  Tom Tromey  <tromey@redhat.com>
3681             Gary Benson  <gbenson@redhat.com>
3682
3683         * common/common-types.h: New file.
3684         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3685         * common/common-defs.h: Include common-types.h.
3686         * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3687         (ULONGEST): Remove.
3688
3689 2014-08-19  Tom Tromey  <tromey@redhat.com>
3690             Gary Benson  <gbenson@redhat.com>
3691
3692         * common/errors.h: New file.
3693         * common/errors.c: Likewise.
3694         * Makefile.in (SFILES): Add common/errors.c.
3695         (HFILES_NO_SRCDIR): Add common/errors.h.
3696         (COMMON_OBS): Add errors.o.
3697         (errors.o): New rule.
3698         * common/common-defs.h: Include errors.h.
3699         * utils.h (perror_with_name, error, verror, warning, vwarning):
3700         Don't declare.
3701         * common/common-utils.h: (malloc_failure, internal_error):
3702         Likewise.
3703
3704 2014-08-19  Gary Benson  <gbenson@redhat.com>
3705
3706         * utils.c (internal_vproblem): Always print the message.
3707
3708 2014-08-18  Doug Evans  <dje@google.com>
3709
3710         * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3711
3712 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
3713
3714         * ada-typeprint.c (type_is_full_subrange_of_target_type):
3715         Return 0 if TYPE is dynamic.
3716         (print_range): Add handling of dynamic ranges.
3717
3718 2014-08-18  Keven Boell  <keven.boell@intel.com>
3719             Joel Brobecker  <brobecker@adacore.com>
3720
3721         * gdbtypes.h (struct main_type): Add field "data_location".
3722         (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3723         (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3724         * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3725         a dynamic data location.
3726         (resolve_dynamic_type): Add DW_AT_data_location handling.
3727         (copy_recursive, copy_type): Copy the data_location information
3728         when present.
3729         * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3730         * value.c (value_from_contents_and_address): Add
3731         DW_AT_data_location handling.
3732
3733 2014-08-18  Keven Boell  <keven.boell@intel.com>
3734             Joel Brobecker  <brobecker@adacore.com>
3735
3736         * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3737         field "get_object_address".
3738         * dwarf2expr.c (execute_stack_op): Add handling for
3739         DW_OP_push_object_address.
3740         * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3741         * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3742         (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3743         (dwarf_expr_get_obj_addr): New function.
3744         (dwarf_expr_ctx_funcs): Add get_object_address field.
3745         (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3746         (dwarf2_locexpr_baton_eval): Add parameter "addr".  Use it.
3747         (dwarf2_evaluate_property): Add parameter "address".  Use it.
3748         (needs_get_obj_addr): New function.
3749         (needs_frame_ctx_funcs): Add get_object_address field.
3750         (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3751         * gdbtypes.c (resolve_dynamic_range): Add "addr" field.  Use it.
3752         (resolve_dynamic_array): Likewise.
3753
3754 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
3755
3756         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3757         When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3758         fixed value for records and unions for which some GNAT encodings
3759         are present.
3760
3761 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
3762
3763         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3764         rewrite to avoid "else if" and "else" constructs.  Should be
3765         a no-op in practice.
3766
3767 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
3768
3769         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3770         of lexical block.
3771
3772 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
3773
3774         PR c++/17132
3775         * eval.c: Update all calls to find_overload_match.
3776         * valarith.c: Likewise.
3777         (value_user_defined_cpp_op, value_user_defined_op): New
3778         argument NOSIDE.  Update all callers.
3779         * valops.c (find_overload_match): New argument NOSIDE.
3780         * value.h (find_overload_match): Update signature.
3781
3782 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
3783
3784         * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3785         'items' methods instead of 'iteritems' method on dictionaries.
3786
3787 2014-08-15  Doug Evans  <dje@google.com>
3788
3789         * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3790         closer to use.
3791
3792 2014-08-15  Doug Evans  <dje@google.com>
3793
3794         * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3795
3796 2014-08-15  Doug Evans  <dje@google.com>
3797
3798         * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3799
3800 2014-08-15  Doug Evans  <dje@google.com>
3801
3802         * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3803         unused.
3804
3805 2014-08-15  Eli Zaretskii  <eliz@gnu.org>
3806
3807         * dcache.h: Include target.h, to avoid compile time warnings.
3808
3809 2014-08-15  Joel Brobecker  <brobecker@adacore.com>
3810
3811         * gdbarch.sh: #include "frame.h" in gdbarch.h.  Delete "struct
3812         frame_info" partial declaration.
3813         * gdbarch.h: Regenerate.
3814
3815 2014-08-15  Yao Qi  <yao@codesourcery.com>
3816
3817         * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3818         Add parameter 'decode_for_pst_p'.  Callers update.
3819
3820 2014-08-13  Yao Qi  <yao@codesourcery.com>
3821
3822         PR build/17104
3823         * configure.ac: Use local variable 'pos'.
3824         * configure: Regenerated.
3825
3826 2014-08-11  Doug Evans  <dje@google.com>
3827
3828         * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3829         message, it is redundant with "Reading symbols from ..." message.
3830
3831 2014-08-10  Doug Evans  <xdje42@gmail.com>
3832
3833         * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3834
3835 2014-08-09  Yao Qi  <yao@codesourcery.com>
3836
3837         PR remote/9053
3838         * remote.c (remote_xfer_partial): Remove dead code.
3839
3840 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3841
3842         * ia64-linux-tdep.c: Include "regset.h".
3843         (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3844         (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3845         (ia64_linux_supply_fpregset): New function.
3846         (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3847         (ia64_linux_regset_from_core_section): New function.
3848         (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3849         method.
3850
3851 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3852
3853         * m68klinux-tdep.c: Include "regset.h".
3854         (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3855         (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3856         (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3857         (m68k_linux_regset_from_core_section): New function.
3858         (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3859         method.
3860
3861 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3862
3863         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3864         function.  Move logic to...
3865         (tilegx_linux_regmap): ... this new register map.
3866         (tilegx_linux_regset): Refer to register map, replace supply
3867         method by regcache_supply_regset, and add collect method.
3868         * tilegx-tdep.h (enum tilegx_regnum): New enum value
3869         TILEGX_FIRST_EASY_REGNUM.
3870
3871 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3872
3873         * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3874         that calls regcache_supply_regset and handles the EPC register
3875         separately.  Move main logic to...
3876         (score7_linux_gregmap): ... this new register map.
3877         (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3878         (score7_linux_gregset): Refer to register map.  Add collect method.
3879         (score7_linux_regset_from_core_section): Replace
3880         sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3881         * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3882         (struct regset): Delete unused forward declaraction.
3883         (struct pt_regs): Delete structure definition.
3884         (elf_gregset_t): Delete typedef.
3885
3886 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3887
3888         * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3889         (nios2_core_regset): Add collect method.
3890
3891 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3892
3893         * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3894         platform-independent and don't write to read-only input buffer.
3895         (m32r_linux_collect_gregset): New function.
3896         (m32r_linux_gregset): Add collect method.
3897
3898 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3899
3900         * hppa-linux-tdep.c (greg_map): Rename to...
3901         (hppa_linux_gregmap): ... this.  Also convert to
3902         regcache_map_entry format.
3903         (hppa_linux_supply_regset): Delete function.
3904         (hppa_linux_supply_fpregset): Delete function.  Move logic to...
3905         (hppa_linux_fpregmap): ... this new register map.
3906         (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3907         register map, replace supply method by regcache_supply_regset, and
3908         add collect method regcache_collect_regset.
3909
3910 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3911
3912         * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3913         (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3914         (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3915         (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3916         (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3917         (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3918         (frv_linux_supply_gregset): Replace main logic by call to
3919         regcache_supply_regset, but keep clearing gr32-gr63.
3920         (frv_linux_supply_fpregset): Delete function.
3921         (frv_linux_gregset): Refer to appropriate register map and add
3922         regcache_collect_regset as the collect method.
3923         (frv_linux_fpregset): Likewise.  Also exchange the supply method
3924         by regcache_supply_regset.
3925
3926 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3927
3928         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3929         by call to alpha_supply_int_regs.
3930         (alpha_linux_collect_gregset): New function.
3931         (alpha_linux_supply_fpregset): Replace logic by call to
3932         alpha_supply_fp_regs.
3933         (alpha_linux_collect_fpregset): New function.
3934         (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3935
3936 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3937
3938         * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3939         by call to regcache_collect_regset.
3940         (supply_gregset, supply_fpregset): Call regcache_supply_regset
3941         instead of aarch64_linux_supply_gregset/_fpregset.
3942         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3943         (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3944         header file instead.
3945         (aarch64_linux_supply_gregset, supply_gregset_from_core)
3946         (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3947         functions.  Move logic to ...
3948         (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3949         register maps.
3950         (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3951         refer to new register maps, replace *_regset_from_core by
3952         regcache_supply_regset, and also use regcache_collect_regset.
3953         * aarch64-linux-tdep.h: Include "regset.h".
3954         (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3955         Delete prototypes.
3956         (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3957         macros, moved from C source file.
3958         (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3959         variable declarations.
3960
3961 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3962
3963         * s390-linux-nat.c: Include "regset.h".
3964         (regmap_gregset): Delete macro.
3965         (s390_64_regmap_gregset): New register map for
3966         regcache_supply/_collect_regset.
3967         (s390_64_gregset): New regset.
3968         (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3969         (regmap_fpregset): Delete macro.
3970         (s390_native_supply, s390_native_collect): Delete functions.
3971         (supply_gregset, fill_gregset): Replace s390-specific regmap
3972         handling by a call to regcache_supply/_collect_regset.
3973         (supply_fpregset, fill_fpregset): Call regcache_supply/
3974         _collect_regset instead of s390_native_supply/_collect.
3975         (fetch_regset, store_regset): Likewise.  Also change the last
3976         parameter to a regset instead of a regmap.
3977         (s390_linux_fetch_inferior_registers)
3978         (390_linux_store_inferior_registers): Adjust last parameter in
3979         calls to fetch_regset and store_regset.
3980         * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3981         (s390_gregmap): ... this.  Also make static const and convert to
3982         regcache_map_entry format.
3983         (s390x_regmap_gregset): Delete.
3984         (s390_regmap_fpregset): Rename to...
3985         (s390_fpregmap): ... this.  Make static const and convert to
3986         regcache_map_entry format.
3987         (s390_regmap_upper, s390_regmap_last_break)
3988         (s390x_regmap_last_break, s390_regmap_system_call)
3989         (s390_regmap_tdb): Likewise.
3990         (s390_supply_regset, s390_collect_regset): Remove functions.
3991         (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3992         s390_supply_regset.
3993         (s390_gregset, s390_fpregset, s390_upper_regset)
3994         (s390_last_break_regset, s390x_last_break_regset)
3995         (s390_system_call_regset, s390_tdb_regset): Make global and
3996         replace s390_supply/_collect_regset by regcache_supply/
3997         _collect_regset.
3998         (s390x_gregset): Delete.
3999         (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4000         * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4001         (s390_regmap_fpregset, s390_regmap_last_break)
4002         (s390x_regmap_last_break, s390_regmap_system_call)
4003         (s390_regmap_tdb): Delete global variable declarations.
4004         (s390_gregset, s390_fpregset, s390_last_break_regset)
4005         (s390x_last_break_regset, s390_system_call_regset)
4006         (s390_tdb_regset): New global variable declarations.
4007
4008 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4009
4010         * regcache.c: Include "regset.h".
4011         (regcache_transfer_regset): New local function.
4012         (regcache_supply_regset, regcache_collect_regset): New functions.
4013         * regcache.h (struct regcache_map_entry): New structure.
4014         (REGCACHE_MAP_SKIP): New enum value.
4015         (regcache_supply_regset, regcache_collect_regset): New prototypes.
4016
4017 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4018
4019         * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4020         * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4021         (ppc_linux_collect_gregset ): Likewise.
4022         * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4023         (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4024         (ppc_collect_vrregset): Likewise.
4025         * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4026         Likewise.
4027
4028 2014-08-07  Yao Qi  <yao@codesourcery.com>
4029
4030         * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4031         * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4032         * remote.c (remote_read_bytes): Likewise.
4033
4034 2014-08-07  Yao Qi  <yao@codesourcery.com>
4035
4036         * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4037
4038 2014-08-07  Yao Qi  <yao@codesourcery.com>
4039
4040         PR remote/17230
4041         * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4042         TARGET_XFER_OK instead of 0.
4043
4044 2014-08-07  Gary Benson  <gbenson@redhat.com>
4045
4046         * common/common-defs.h: Include errno.h.
4047         * defs.h: Do not include errno.h.
4048         * ada-typeprint.c: Likewise.
4049         * c-typeprint.c: Likewise.
4050         * core-regset.c: Likewise.
4051         * corefile.c: Likewise.
4052         * corelow.c: Likewise.
4053         * event-loop.c: Likewise.
4054         * f-typeprint.c: Likewise.
4055         * gnu-nat.c: Likewise.
4056         * go32-nat.c: Likewise.
4057         * i386gnu-nat.c: Likewise.
4058         * m2-typeprint.c: Likewise.
4059         * nat/linux-btrace.c: Likewise.
4060         * p-typeprint.c: Likewise.
4061         * procfs.c: Likewise.
4062         * remote-sim.c: Likewise.
4063         * rs6000-nat.c: Likewise.
4064         * target.c: Likewise.
4065         * typeprint.c: Likewise.
4066         * ui-file.c: Likewise.
4067         * valops.c: Likewise.
4068         * valprint.c: Likewise.
4069
4070 2014-08-07  Gary Benson  <gbenson@redhat.com>
4071
4072         * common/common-defs.h: Include string.h.
4073         * aarch64-tdep.c: Do not include string.h.
4074         * ada-exp.y: Likewise.
4075         * ada-lang.c: Likewise.
4076         * ada-lex.l: Likewise.
4077         * ada-typeprint.c: Likewise.
4078         * ada-valprint.c: Likewise.
4079         * aix-thread.c: Likewise.
4080         * alpha-linux-tdep.c: Likewise.
4081         * alpha-mdebug-tdep.c: Likewise.
4082         * alpha-nat.c: Likewise.
4083         * alpha-osf1-tdep.c: Likewise.
4084         * alpha-tdep.c: Likewise.
4085         * alphanbsd-tdep.c: Likewise.
4086         * amd64-dicos-tdep.c: Likewise.
4087         * amd64-linux-tdep.c: Likewise.
4088         * amd64-nat.c: Likewise.
4089         * amd64-sol2-tdep.c: Likewise.
4090         * amd64fbsd-tdep.c: Likewise.
4091         * amd64obsd-tdep.c: Likewise.
4092         * arch-utils.c: Likewise.
4093         * arm-linux-nat.c: Likewise.
4094         * arm-linux-tdep.c: Likewise.
4095         * arm-tdep.c: Likewise.
4096         * arm-wince-tdep.c: Likewise.
4097         * armbsd-tdep.c: Likewise.
4098         * armnbsd-nat.c: Likewise.
4099         * armnbsd-tdep.c: Likewise.
4100         * armobsd-tdep.c: Likewise.
4101         * avr-tdep.c: Likewise.
4102         * ax-gdb.c: Likewise.
4103         * ax-general.c: Likewise.
4104         * bcache.c: Likewise.
4105         * bfin-tdep.c: Likewise.
4106         * breakpoint.c: Likewise.
4107         * build-id.c: Likewise.
4108         * buildsym.c: Likewise.
4109         * c-exp.y: Likewise.
4110         * c-lang.c: Likewise.
4111         * c-typeprint.c: Likewise.
4112         * c-valprint.c: Likewise.
4113         * charset.c: Likewise.
4114         * cli-out.c: Likewise.
4115         * cli/cli-cmds.c: Likewise.
4116         * cli/cli-decode.c: Likewise.
4117         * cli/cli-dump.c: Likewise.
4118         * cli/cli-interp.c: Likewise.
4119         * cli/cli-logging.c: Likewise.
4120         * cli/cli-script.c: Likewise.
4121         * cli/cli-setshow.c: Likewise.
4122         * cli/cli-utils.c: Likewise.
4123         * coffread.c: Likewise.
4124         * common/agent.c: Likewise.
4125         * common/buffer.c: Likewise.
4126         * common/buffer.h: Likewise.
4127         * common/common-utils.c: Likewise.
4128         * common/filestuff.c: Likewise.
4129         * common/filestuff.c: Likewise.
4130         * common/format.c: Likewise.
4131         * common/print-utils.c: Likewise.
4132         * common/rsp-low.c: Likewise.
4133         * common/signals.c: Likewise.
4134         * common/vec.h: Likewise.
4135         * common/xml-utils.c: Likewise.
4136         * core-regset.c: Likewise.
4137         * corefile.c: Likewise.
4138         * corelow.c: Likewise.
4139         * cp-abi.c: Likewise.
4140         * cp-name-parser.y: Likewise.
4141         * cp-support.c: Likewise.
4142         * cp-valprint.c: Likewise.
4143         * cris-tdep.c: Likewise.
4144         * d-exp.y: Likewise.
4145         * darwin-nat.c: Likewise.
4146         * dbxread.c: Likewise.
4147         * dcache.c: Likewise.
4148         * demangle.c: Likewise.
4149         * dicos-tdep.c: Likewise.
4150         * disasm.c: Likewise.
4151         * doublest.c: Likewise.
4152         * dsrec.c: Likewise.
4153         * dummy-frame.c: Likewise.
4154         * dwarf2-frame.c: Likewise.
4155         * dwarf2loc.c: Likewise.
4156         * dwarf2read.c: Likewise.
4157         * elfread.c: Likewise.
4158         * environ.c: Likewise.
4159         * eval.c: Likewise.
4160         * event-loop.c: Likewise.
4161         * exceptions.c: Likewise.
4162         * exec.c: Likewise.
4163         * expprint.c: Likewise.
4164         * f-exp.y: Likewise.
4165         * f-lang.c: Likewise.
4166         * f-typeprint.c: Likewise.
4167         * f-valprint.c: Likewise.
4168         * fbsd-nat.c: Likewise.
4169         * findcmd.c: Likewise.
4170         * findvar.c: Likewise.
4171         * fork-child.c: Likewise.
4172         * frame.c: Likewise.
4173         * frv-linux-tdep.c: Likewise.
4174         * frv-tdep.c: Likewise.
4175         * gdb.c: Likewise.
4176         * gdb_bfd.c: Likewise.
4177         * gdbarch.c: Likewise.
4178         * gdbarch.sh: Likewise.
4179         * gdbtypes.c: Likewise.
4180         * gnu-nat.c: Likewise.
4181         * gnu-v2-abi.c: Likewise.
4182         * gnu-v3-abi.c: Likewise.
4183         * go-exp.y: Likewise.
4184         * go-lang.c: Likewise.
4185         * go32-nat.c: Likewise.
4186         * guile/guile.c: Likewise.
4187         * guile/scm-auto-load.c: Likewise.
4188         * hppa-hpux-tdep.c: Likewise.
4189         * hppa-linux-nat.c: Likewise.
4190         * hppanbsd-tdep.c: Likewise.
4191         * hppaobsd-tdep.c: Likewise.
4192         * i386-cygwin-tdep.c: Likewise.
4193         * i386-dicos-tdep.c: Likewise.
4194         * i386-linux-tdep.c: Likewise.
4195         * i386-nto-tdep.c: Likewise.
4196         * i386-sol2-tdep.c: Likewise.
4197         * i386-tdep.c: Likewise.
4198         * i386bsd-tdep.c: Likewise.
4199         * i386gnu-nat.c: Likewise.
4200         * i386nbsd-tdep.c: Likewise.
4201         * i386obsd-tdep.c: Likewise.
4202         * i387-tdep.c: Likewise.
4203         * ia64-libunwind-tdep.c: Likewise.
4204         * ia64-linux-nat.c: Likewise.
4205         * inf-child.c: Likewise.
4206         * inf-ptrace.c: Likewise.
4207         * inf-ttrace.c: Likewise.
4208         * infcall.c: Likewise.
4209         * infcmd.c: Likewise.
4210         * inflow.c: Likewise.
4211         * infrun.c: Likewise.
4212         * interps.c: Likewise.
4213         * iq2000-tdep.c: Likewise.
4214         * irix5-nat.c: Likewise.
4215         * jv-exp.y: Likewise.
4216         * jv-lang.c: Likewise.
4217         * jv-typeprint.c: Likewise.
4218         * jv-valprint.c: Likewise.
4219         * language.c: Likewise.
4220         * linux-fork.c: Likewise.
4221         * linux-nat.c: Likewise.
4222         * lm32-tdep.c: Likewise.
4223         * m2-exp.y: Likewise.
4224         * m2-typeprint.c: Likewise.
4225         * m32c-tdep.c: Likewise.
4226         * m32r-linux-nat.c: Likewise.
4227         * m32r-linux-tdep.c: Likewise.
4228         * m32r-rom.c: Likewise.
4229         * m32r-tdep.c: Likewise.
4230         * m68hc11-tdep.c: Likewise.
4231         * m68k-tdep.c: Likewise.
4232         * m68kbsd-tdep.c: Likewise.
4233         * m68klinux-nat.c: Likewise.
4234         * m68klinux-tdep.c: Likewise.
4235         * m88k-tdep.c: Likewise.
4236         * machoread.c: Likewise.
4237         * macrocmd.c: Likewise.
4238         * main.c: Likewise.
4239         * mdebugread.c: Likewise.
4240         * mem-break.c: Likewise.
4241         * memattr.c: Likewise.
4242         * memory-map.c: Likewise.
4243         * mep-tdep.c: Likewise.
4244         * mi/mi-cmd-break.c: Likewise.
4245         * mi/mi-cmd-disas.c: Likewise.
4246         * mi/mi-cmd-env.c: Likewise.
4247         * mi/mi-cmd-stack.c: Likewise.
4248         * mi/mi-cmd-var.c: Likewise.
4249         * mi/mi-cmds.c: Likewise.
4250         * mi/mi-console.c: Likewise.
4251         * mi/mi-getopt.c: Likewise.
4252         * mi/mi-interp.c: Likewise.
4253         * mi/mi-main.c: Likewise.
4254         * mi/mi-parse.c: Likewise.
4255         * microblaze-rom.c: Likewise.
4256         * microblaze-tdep.c: Likewise.
4257         * mingw-hdep.c: Likewise.
4258         * minidebug.c: Likewise.
4259         * minsyms.c: Likewise.
4260         * mips-irix-tdep.c: Likewise.
4261         * mips-linux-tdep.c: Likewise.
4262         * mips-tdep.c: Likewise.
4263         * mips64obsd-tdep.c: Likewise.
4264         * mipsnbsd-tdep.c: Likewise.
4265         * mipsread.c: Likewise.
4266         * mn10300-linux-tdep.c: Likewise.
4267         * mn10300-tdep.c: Likewise.
4268         * monitor.c: Likewise.
4269         * moxie-tdep.c: Likewise.
4270         * mt-tdep.c: Likewise.
4271         * nat/linux-btrace.c: Likewise.
4272         * nat/linux-osdata.c: Likewise.
4273         * nat/linux-procfs.c: Likewise.
4274         * nat/linux-ptrace.c: Likewise.
4275         * nat/linux-waitpid.c: Likewise.
4276         * nbsd-tdep.c: Likewise.
4277         * nios2-linux-tdep.c: Likewise.
4278         * nto-procfs.c: Likewise.
4279         * nto-tdep.c: Likewise.
4280         * objc-lang.c: Likewise.
4281         * objfiles.c: Likewise.
4282         * opencl-lang.c: Likewise.
4283         * osabi.c: Likewise.
4284         * osdata.c: Likewise.
4285         * p-exp.y: Likewise.
4286         * p-lang.c: Likewise.
4287         * p-typeprint.c: Likewise.
4288         * parse.c: Likewise.
4289         * posix-hdep.c: Likewise.
4290         * ppc-linux-nat.c: Likewise.
4291         * ppc-sysv-tdep.c: Likewise.
4292         * ppcfbsd-tdep.c: Likewise.
4293         * ppcnbsd-tdep.c: Likewise.
4294         * ppcobsd-tdep.c: Likewise.
4295         * printcmd.c: Likewise.
4296         * procfs.c: Likewise.
4297         * prologue-value.c: Likewise.
4298         * python/py-auto-load.c: Likewise.
4299         * python/py-gdb-readline.c: Likewise.
4300         * ravenscar-thread.c: Likewise.
4301         * regcache.c: Likewise.
4302         * registry.c: Likewise.
4303         * remote-fileio.c: Likewise.
4304         * remote-m32r-sdi.c: Likewise.
4305         * remote-mips.c: Likewise.
4306         * remote-notif.c: Likewise.
4307         * remote-sim.c: Likewise.
4308         * remote.c: Likewise.
4309         * reverse.c: Likewise.
4310         * rs6000-aix-tdep.c: Likewise.
4311         * ser-base.c: Likewise.
4312         * ser-go32.c: Likewise.
4313         * ser-mingw.c: Likewise.
4314         * ser-pipe.c: Likewise.
4315         * ser-tcp.c: Likewise.
4316         * ser-unix.c: Likewise.
4317         * serial.c: Likewise.
4318         * sh-tdep.c: Likewise.
4319         * sh64-tdep.c: Likewise.
4320         * shnbsd-tdep.c: Likewise.
4321         * skip.c: Likewise.
4322         * sol-thread.c: Likewise.
4323         * solib-dsbt.c: Likewise.
4324         * solib-frv.c: Likewise.
4325         * solib-osf.c: Likewise.
4326         * solib-som.c: Likewise.
4327         * solib-spu.c: Likewise.
4328         * solib-target.c: Likewise.
4329         * solib.c: Likewise.
4330         * somread.c: Likewise.
4331         * source.c: Likewise.
4332         * sparc-nat.c: Likewise.
4333         * sparc-sol2-tdep.c: Likewise.
4334         * sparc-tdep.c: Likewise.
4335         * sparc64-tdep.c: Likewise.
4336         * sparc64fbsd-tdep.c: Likewise.
4337         * sparc64nbsd-tdep.c: Likewise.
4338         * sparcnbsd-tdep.c: Likewise.
4339         * spu-linux-nat.c: Likewise.
4340         * spu-multiarch.c: Likewise.
4341         * spu-tdep.c: Likewise.
4342         * stabsread.c: Likewise.
4343         * stack.c: Likewise.
4344         * std-regs.c: Likewise.
4345         * symfile.c: Likewise.
4346         * symmisc.c: Likewise.
4347         * symtab.c: Likewise.
4348         * target.c: Likewise.
4349         * thread.c: Likewise.
4350         * tilegx-linux-nat.c: Likewise.
4351         * tilegx-tdep.c: Likewise.
4352         * top.c: Likewise.
4353         * tracepoint.c: Likewise.
4354         * tui/tui-command.c: Likewise.
4355         * tui/tui-data.c: Likewise.
4356         * tui/tui-disasm.c: Likewise.
4357         * tui/tui-file.c: Likewise.
4358         * tui/tui-layout.c: Likewise.
4359         * tui/tui-out.c: Likewise.
4360         * tui/tui-regs.c: Likewise.
4361         * tui/tui-source.c: Likewise.
4362         * tui/tui-stack.c: Likewise.
4363         * tui/tui-win.c: Likewise.
4364         * tui/tui-windata.c: Likewise.
4365         * tui/tui-winsource.c: Likewise.
4366         * typeprint.c: Likewise.
4367         * ui-file.c: Likewise.
4368         * ui-out.c: Likewise.
4369         * user-regs.c: Likewise.
4370         * utils.c: Likewise.
4371         * v850-tdep.c: Likewise.
4372         * valarith.c: Likewise.
4373         * valops.c: Likewise.
4374         * valprint.c: Likewise.
4375         * value.c: Likewise.
4376         * varobj.c: Likewise.
4377         * vax-tdep.c: Likewise.
4378         * vaxnbsd-tdep.c: Likewise.
4379         * vaxobsd-tdep.c: Likewise.
4380         * windows-nat.c: Likewise.
4381         * xcoffread.c: Likewise.
4382         * xml-support.c: Likewise.
4383         * xstormy16-tdep.c: Likewise.
4384         * xtensa-linux-nat.c: Likewise.
4385
4386 2014-08-07  Gary Benson  <gbenson@redhat.com>
4387
4388         * common/common-defs.h: Include gdb_assert.h.
4389         * aarch64-tdep.c: Do not include gdb_assert.h.
4390         * addrmap.c: Likewise.
4391         * aix-thread.c: Likewise.
4392         * alpha-linux-tdep.c: Likewise.
4393         * alpha-mdebug-tdep.c: Likewise.
4394         * alphanbsd-tdep.c: Likewise.
4395         * amd64-nat.c: Likewise.
4396         * amd64-tdep.c: Likewise.
4397         * amd64bsd-nat.c: Likewise.
4398         * amd64fbsd-nat.c: Likewise.
4399         * amd64fbsd-tdep.c: Likewise.
4400         * amd64nbsd-nat.c: Likewise.
4401         * amd64nbsd-tdep.c: Likewise.
4402         * amd64obsd-nat.c: Likewise.
4403         * amd64obsd-tdep.c: Likewise.
4404         * arch-utils.c: Likewise.
4405         * arm-tdep.c: Likewise.
4406         * armbsd-tdep.c: Likewise.
4407         * auxv.c: Likewise.
4408         * bcache.c: Likewise.
4409         * bfin-tdep.c: Likewise.
4410         * blockframe.c: Likewise.
4411         * breakpoint.c: Likewise.
4412         * bsd-kvm.c: Likewise.
4413         * bsd-uthread.c: Likewise.
4414         * buildsym.c: Likewise.
4415         * c-exp.y: Likewise.
4416         * c-lang.c: Likewise.
4417         * charset.c: Likewise.
4418         * cleanups.c: Likewise.
4419         * cli-out.c: Likewise.
4420         * cli/cli-decode.c: Likewise.
4421         * cli/cli-dump.c: Likewise.
4422         * cli/cli-logging.c: Likewise.
4423         * cli/cli-script.c: Likewise.
4424         * cli/cli-utils.c: Likewise.
4425         * coffread.c: Likewise.
4426         * common/common-utils.c: Likewise.
4427         * common/queue.h: Likewise.
4428         * common/signals.c: Likewise.
4429         * common/vec.h: Likewise.
4430         * complaints.c: Likewise.
4431         * completer.c: Likewise.
4432         * corelow.c: Likewise.
4433         * cp-abi.c: Likewise.
4434         * cp-name-parser.y: Likewise.
4435         * cp-namespace.c: Likewise.
4436         * cp-support.c: Likewise.
4437         * cris-tdep.c: Likewise.
4438         * dbxread.c: Likewise.
4439         * dictionary.c: Likewise.
4440         * doublest.c: Likewise.
4441         * dsrec.c: Likewise.
4442         * dummy-frame.c: Likewise.
4443         * dwarf2-frame-tailcall.c: Likewise.
4444         * dwarf2-frame.c: Likewise.
4445         * dwarf2expr.c: Likewise.
4446         * dwarf2loc.c: Likewise.
4447         * dwarf2read.c: Likewise.
4448         * eval.c: Likewise.
4449         * event-loop.c: Likewise.
4450         * exceptions.c: Likewise.
4451         * expprint.c: Likewise.
4452         * f-valprint.c: Likewise.
4453         * fbsd-nat.c: Likewise.
4454         * findvar.c: Likewise.
4455         * frame-unwind.c: Likewise.
4456         * frame.c: Likewise.
4457         * frv-tdep.c: Likewise.
4458         * gcore.c: Likewise.
4459         * gdb-dlfcn.c: Likewise.
4460         * gdb_bfd.c: Likewise.
4461         * gdbarch.c: Likewise.
4462         * gdbarch.sh: Likewise.
4463         * gdbtypes.c: Likewise.
4464         * gnu-nat.c: Likewise.
4465         * gnu-v3-abi.c: Likewise.
4466         * go-lang.c: Likewise.
4467         * guile/scm-exception.c: Likewise.
4468         * guile/scm-gsmob.c: Likewise.
4469         * guile/scm-lazy-string.c: Likewise.
4470         * guile/scm-math.c: Likewise.
4471         * guile/scm-pretty-print.c: Likewise.
4472         * guile/scm-safe-call.c: Likewise.
4473         * guile/scm-utils.c: Likewise.
4474         * guile/scm-value.c: Likewise.
4475         * h8300-tdep.c: Likewise.
4476         * hppa-hpux-nat.c: Likewise.
4477         * hppa-tdep.c: Likewise.
4478         * hppanbsd-tdep.c: Likewise.
4479         * hppaobsd-tdep.c: Likewise.
4480         * i386-darwin-nat.c: Likewise.
4481         * i386-darwin-tdep.c: Likewise.
4482         * i386-nto-tdep.c: Likewise.
4483         * i386-tdep.c: Likewise.
4484         * i386bsd-nat.c: Likewise.
4485         * i386fbsd-tdep.c: Likewise.
4486         * i386gnu-nat.c: Likewise.
4487         * i386nbsd-tdep.c: Likewise.
4488         * i386obsd-tdep.c: Likewise.
4489         * i387-tdep.c: Likewise.
4490         * ia64-libunwind-tdep.c: Likewise.
4491         * ia64-tdep.c: Likewise.
4492         * inf-ptrace.c: Likewise.
4493         * inf-ttrace.c: Likewise.
4494         * infcall.c: Likewise.
4495         * infcmd.c: Likewise.
4496         * infrun.c: Likewise.
4497         * inline-frame.c: Likewise.
4498         * interps.c: Likewise.
4499         * jv-lang.c: Likewise.
4500         * jv-typeprint.c: Likewise.
4501         * linux-fork.c: Likewise.
4502         * linux-nat.c: Likewise.
4503         * linux-thread-db.c: Likewise.
4504         * m32c-tdep.c: Likewise.
4505         * m32r-linux-nat.c: Likewise.
4506         * m32r-tdep.c: Likewise.
4507         * m68k-tdep.c: Likewise.
4508         * m68kbsd-nat.c: Likewise.
4509         * m68kbsd-tdep.c: Likewise.
4510         * m88k-tdep.c: Likewise.
4511         * machoread.c: Likewise.
4512         * macroexp.c: Likewise.
4513         * macrotab.c: Likewise.
4514         * maint.c: Likewise.
4515         * mdebugread.c: Likewise.
4516         * memory-map.c: Likewise.
4517         * mep-tdep.c: Likewise.
4518         * mi/mi-common.c: Likewise.
4519         * microblaze-tdep.c: Likewise.
4520         * mingw-hdep.c: Likewise.
4521         * mips-linux-nat.c: Likewise.
4522         * mips-linux-tdep.c: Likewise.
4523         * mips-tdep.c: Likewise.
4524         * mips64obsd-tdep.c: Likewise.
4525         * mipsnbsd-tdep.c: Likewise.
4526         * mn10300-linux-tdep.c: Likewise.
4527         * mn10300-tdep.c: Likewise.
4528         * moxie-tdep.c: Likewise.
4529         * mt-tdep.c: Likewise.
4530         * nat/linux-btrace.c: Likewise.
4531         * nat/linux-osdata.c: Likewise.
4532         * nat/linux-ptrace.c: Likewise.
4533         * nat/mips-linux-watch.c: Likewise.
4534         * nios2-linux-tdep.c: Likewise.
4535         * nios2-tdep.c: Likewise.
4536         * objc-lang.c: Likewise.
4537         * objfiles.c: Likewise.
4538         * obsd-nat.c: Likewise.
4539         * opencl-lang.c: Likewise.
4540         * osabi.c: Likewise.
4541         * parse.c: Likewise.
4542         * ppc-linux-nat.c: Likewise.
4543         * ppc-sysv-tdep.c: Likewise.
4544         * ppcfbsd-nat.c: Likewise.
4545         * ppcfbsd-tdep.c: Likewise.
4546         * ppcnbsd-nat.c: Likewise.
4547         * ppcnbsd-tdep.c: Likewise.
4548         * ppcobsd-nat.c: Likewise.
4549         * ppcobsd-tdep.c: Likewise.
4550         * printcmd.c: Likewise.
4551         * procfs.c: Likewise.
4552         * prologue-value.c: Likewise.
4553         * psymtab.c: Likewise.
4554         * python/py-lazy-string.c: Likewise.
4555         * python/py-value.c: Likewise.
4556         * regcache.c: Likewise.
4557         * reggroups.c: Likewise.
4558         * registry.c: Likewise.
4559         * remote-sim.c: Likewise.
4560         * remote.c: Likewise.
4561         * rs6000-aix-tdep.c: Likewise.
4562         * rs6000-tdep.c: Likewise.
4563         * s390-linux-tdep.c: Likewise.
4564         * score-tdep.c: Likewise.
4565         * ser-base.c: Likewise.
4566         * ser-mingw.c: Likewise.
4567         * sh-tdep.c: Likewise.
4568         * sh64-tdep.c: Likewise.
4569         * solib-darwin.c: Likewise.
4570         * solib-spu.c: Likewise.
4571         * solib-svr4.c: Likewise.
4572         * source.c: Likewise.
4573         * sparc-nat.c: Likewise.
4574         * sparc-sol2-tdep.c: Likewise.
4575         * sparc-tdep.c: Likewise.
4576         * sparc64-sol2-tdep.c: Likewise.
4577         * sparc64-tdep.c: Likewise.
4578         * sparc64fbsd-tdep.c: Likewise.
4579         * sparc64nbsd-tdep.c: Likewise.
4580         * sparc64obsd-tdep.c: Likewise.
4581         * sparcnbsd-tdep.c: Likewise.
4582         * sparcobsd-tdep.c: Likewise.
4583         * spu-multiarch.c: Likewise.
4584         * spu-tdep.c: Likewise.
4585         * stabsread.c: Likewise.
4586         * stack.c: Likewise.
4587         * symfile.c: Likewise.
4588         * symtab.c: Likewise.
4589         * target-descriptions.c: Likewise.
4590         * target-memory.c: Likewise.
4591         * target.c: Likewise.
4592         * tic6x-linux-tdep.c: Likewise.
4593         * tic6x-tdep.c: Likewise.
4594         * tilegx-linux-nat.c: Likewise.
4595         * tilegx-tdep.c: Likewise.
4596         * top.c: Likewise.
4597         * tramp-frame.c: Likewise.
4598         * tui/tui-out.c: Likewise.
4599         * tui/tui-winsource.c: Likewise.
4600         * ui-out.c: Likewise.
4601         * user-regs.c: Likewise.
4602         * utils.c: Likewise.
4603         * v850-tdep.c: Likewise.
4604         * valops.c: Likewise.
4605         * value.c: Likewise.
4606         * varobj.c: Likewise.
4607         * vax-nat.c: Likewise.
4608         * xml-syscall.c: Likewise.
4609         * xml-tdesc.c: Likewise.
4610         * xstormy16-tdep.c: Likewise.
4611         * xtensa-linux-nat.c: Likewise.
4612         * xtensa-tdep.c: Likewise.
4613
4614 2014-08-07  Gary Benson  <gbenson@redhat.com>
4615
4616         * common/common-defs.h: Include common-utils.h.
4617         * defs.h: Do not include common-utils.h.
4618         * common/gdb_assert.h: Likewise.
4619         * darwin-nat.h: Likewise.
4620         * nat/linux-btrace.c: Likewise.
4621         * target/waitstatus.h: Likewise.
4622
4623 2014-08-07  Gary Benson  <gbenson@redhat.com>
4624
4625         * common/common-defs.h: Include ptid.h.
4626         * defs.h: Do not include ptid.h.
4627         * inferior.h: Likewise.
4628         * infrun.h: Likewise.
4629         * nat/linux-btrace.h: Likewise.
4630         * nat/linux-osdata.h: Likewise.
4631         * target/waitstatus.h: Likewise.
4632
4633 2014-08-07  Gary Benson  <gbenson@redhat.com>
4634
4635         * common/common-defs.h: Include gdb_locale.h.
4636         * defs.h: Do not include gdb_locale.h.
4637
4638 2014-08-07  Gary Benson  <gbenson@redhat.com>
4639
4640         * common/common-defs.h: Include gdb/signals.h.
4641         * defs.h: Do not include gdb/signals.h.
4642
4643 2014-08-07  Gary Benson  <gbenson@redhat.com>
4644
4645         * common/common-defs.h: Include pathmax.h.
4646         * defs.h: Do not include pathmax.h.
4647
4648 2014-08-07  Gary Benson  <gbenson@redhat.com>
4649
4650         * common/common-defs.h: Include libiberty.h.
4651         * defs.h: Do not include libiberty.h.
4652         * common/queue.h: Likewise.
4653         * cp-name-parser.y: Likewise.
4654         * mi/mi-cmd-catch.c: Likewise.
4655         * python/python.c: Likewise.
4656
4657 2014-08-07  Gary Benson  <gbenson@redhat.com>
4658
4659         * common/common-defs.h: Include ansidecl.h.
4660         * defs.h: Do not include ansidecl.h.
4661         * common/buffer.h: Likewise.
4662         * common/common-utils.h: Likewise.
4663
4664 2014-08-07  Gary Benson  <gbenson@redhat.com>
4665
4666         * common/common-defs.h: Include stddef.h.
4667         * defs.h: Do not include stddef.h.
4668         * common/common-utils.h: Likewise.
4669         * amd64fbsd-nat.c: Likewise.
4670         * bcache.c: Likewise.
4671         * charset.c: Likewise.
4672         * common/buffer.h: Likewise.
4673         * common/vec.h: Likewise.
4674         * i386bsd-nat.c: Likewise.
4675         * nat/linux-btrace.h: Likewise.
4676         * ppcfbsd-nat.c: Likewise.
4677         * ppcnbsd-tdep.h: Likewise.
4678         * ppcobsd-nat.c: Likewise.
4679         * ppcobsd-tdep.h: Likewise.
4680         * python/py-gdb-readline.c: Likewise.
4681
4682 2014-08-07  Gary Benson  <gbenson@redhat.com>
4683
4684         * common/common-defs.h: Include stdarg.h.
4685         * defs.h: Do not include stdarg.h.
4686         * ada-lang.c: Likewise.
4687         * common/common-utils.h: Likewise.
4688         * guile/scm-string.c: Likewise.
4689         * guile/scm-utils.c: Likewise.
4690         * m32c-tdep.c: Likewise.
4691
4692 2014-08-07  Gary Benson  <gbenson@redhat.com>
4693
4694         * common/common-defs.h: Include stdlib.h.
4695         * defs.h: Do not include stdlib.h.
4696         * addrmap.c: Likewise.
4697         * bcache.c: Likewise.
4698         * common/buffer.c: Likewise.
4699         * common/common-utils.c: Likewise.
4700         * cp-name-parser.y: Likewise.
4701         * go32-nat.c: Likewise.
4702         * mn10300-linux-tdep.c: Likewise.
4703         * nat/linux-osdata.c: Likewise.
4704         * tui/tui.c: Likewise.
4705         * windows-nat.c: Likewise.
4706
4707 2014-08-07  Gary Benson  <gbenson@redhat.com>
4708
4709         * common/common-defs.h: Include stdio.h.
4710         * defs.h: Do not include stdio.h.
4711         * ada-lang.c: Likewise.
4712         * common/buffer.c: Likewise.
4713         * common/common-utils.c: Likewise.
4714         * cp-name-parser.y: Likewise.
4715         * gnu-nat.c: Likewise.
4716         * go32-nat.c: Likewise.
4717         * i386gnu-nat.c: Likewise.
4718         * proc-api.c: Likewise.
4719         * proc-events.c: Likewise.
4720         * proc-flags.c: Likewise.
4721         * proc-why.c: Likewise.
4722         * python/python-internal.h: Likewise.
4723         * target-memory.c: Likewise.
4724         * tui/tui-io.c: Likewise.
4725         * tui/tui.c: Likewise.
4726
4727 2014-08-06  Simon Marchi  <simon.marchi@ericsson.com>
4728
4729         * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4730         (scan_dyntag_auxv): Same.
4731
4732 2014-08-06  Yao Qi  <yao@codesourcery.com>
4733
4734         * amd64-linux-nat.c: Remove duplicated include
4735         "x86-linux-nat.h".
4736         * i386-linux-nat.c: Likewise.
4737
4738 2014-08-06  Yao Qi  <yao@codesourcery.com>
4739
4740         * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4741         operand" with "Special opcode" in comments.
4742
4743 2014-08-05  Gary Benson  <gbenson@redhat.com>
4744
4745         * interps.c (initialize_interps): Remove prototype.
4746         (interpreter_initialized): Remove static global.
4747         (interp_add): Do not call initialize_interps.
4748         (initialize_interps): Remove function.
4749
4750 2014-08-05  Gary Benson  <gbenson@redhat.com>
4751
4752         * utils.c (vwarning): Remove spurious va_end.
4753
4754 2014-08-05  Alan Modra  <amodra@gmail.com>
4755
4756         * charset.c (convert_between_encodings): Cast result of obstack_base.
4757         * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4758         * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4759         (read_unwind_info): Use size_t for some locals.
4760         * jit.c (finalize_symtab): Likewise.
4761         * utils.c (hashtab_obstack_allocate): Likewise.
4762         * symmisc.c (print_objfile_statistics): Update format strings.
4763
4764 2014-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4765
4766         * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4767         (Changes in GDB 7.8): ... here.
4768
4769 2014-08-04  Tom Tromey  <tromey@redhat.com>
4770
4771         * target.c (set_targetdebug): New function.
4772         (initialize_targets): Pass set_targetdebug when creating "set
4773         debug target".
4774
4775 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
4776
4777         * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4778         if detecting a variable-sized field that is not the last field.
4779         Fix struct type length computation.
4780
4781 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
4782
4783         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4784         Add debug trace.
4785
4786 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
4787
4788         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4789         Remove "+ 8" offset in computation of CHAIN_VMA.
4790
4791 2014-07-31  Doug Evans  <dje@google.com>
4792
4793         * inflow.c (child_terminal_inferior): Add comment.
4794         (child_terminal_ours_for_output): Add comment.
4795         (child_terminal_ours): Add comment.
4796         * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4797         (linux_nat_terminal_ours): Add comment.
4798
4799 2014-07-31  Gary Benson  <gbenson@redhat.com>
4800
4801         * common/btrace-common.h: Do not include defs.h or server.h.
4802         * nat/mips-linux-watch.h: Likewise.
4803         * gdb-dlfcn.h: Do not include defs.h.
4804         * tracefile.h: Likewise.
4805
4806 2014-07-30  Roland McGrath  <mcgrathr@google.com>
4807
4808         * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4809
4810 2014-07-30  Tom Tromey  <tromey@redhat.com>
4811
4812         * bsd-kvm.c (bsd_kvm_open): Constify.
4813         * corelow.c (core_open): Constify.
4814         * ctf.c (ctf_open): Constify.
4815         * dbug-rom.c (dbug_open): Constify.
4816         * exec.c (exec_open): Constify.
4817         * m32r-rom.c (m32r_open, mon2000_open): Constify.
4818         * microblaze-rom.c (picobug_open): Constify.
4819         * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4820         Constify.
4821         * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4822         * record-btrace.c (record_btrace_open): Constify.
4823         * record-full.c (record_full_core_open_1, record_full_open_1)
4824         (record_full_open): Constify.
4825         * remote-m32r-sdi.c (m32r_open): Constify.
4826         * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4827         (rockhopper_open, lsi_open): Constify.
4828         * remote-sim.c (gdbsim_open): Constify.
4829         * remote.c (remote_open, extended_remote_open, remote_open_1):
4830         Constify.
4831         * target.h (struct target_ops) <to_open>: Make "arg" const.
4832         * tracefile-tfile.c (tfile_open): Constify.
4833
4834 2014-07-30  Tom Tromey  <tromey@redhat.com>
4835
4836         * breakpoint.c (map_breakpoint_numbers): Update.
4837         * cli/cli-utils.c (get_number_trailer): Make "pp" const.  Update.
4838         (get_number_const): New function.
4839         (get_number): Rewrite using get_number_const.
4840         (init_number_or_range): Make "string" const.
4841         (number_is_in_list): Make "list" const.
4842         * cli/cli-utils.h (get_number_const): Declare.
4843         (struct get_number_or_range_state) <string, end_ptr>: Now const.
4844         (init_number_or_range, number_is_in_list): Update.
4845         * printcmd.c (map_display_numbers): Update.
4846         * value.c (value_from_history_ref): Constify.
4847         * value.h (value_from_history_ref): Update.
4848
4849 2014-07-30  Tom Tromey  <tromey@redhat.com>
4850
4851         * corefile.c (hook_type, call_extra_exec_file_hooks)
4852         (specify_exec_file_hook): Constify.
4853         * exec.c (exec_file_attach): Make "filename" const.
4854         * gdbcore.h (deprecated_exec_file_display_hook)
4855         (specify_exec_file_hook, exec_file_attach): Constify.
4856         * main.c (captured_main): Use catch_command_errors_const.
4857
4858 2014-07-30  Tom Tromey  <tromey@redhat.com>
4859
4860         * target.c (open_target): New function.
4861         (add_target_with_completer, add_deprecated_target_alias): Use
4862         set_cmd_sfunc, set_cmd_context.
4863         (debug_to_open): Remove.
4864         (setup_target_debug): Update.
4865
4866 2014-07-30  Yao Qi  <yao@codesourcery.com>
4867
4868         * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4869         comments.
4870         * parse.c (exp_iterate): Update comments.
4871
4872 2014-07-30  Gary Benson  <gbenson@redhat.com>
4873
4874         * common/common-defs.h: New file.
4875         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4876         * defs.h: Include common-defs.h.
4877         Do not include config.h or build-gnulib/config.h.
4878
4879 2014-07-30  Gary Benson  <gbenson@redhat.com>
4880
4881         * common/common-utils.h: Do not include config.h.
4882         * nat/linux-btrace.h: Likewise.
4883
4884 2014-07-30  Gary Benson  <gbenson@redhat.com>
4885
4886         * btrace.c: Include defs.h.
4887         * common/ptid.c: Include defs.h or server.h as appropriate.
4888         * nat/mips-linux-watch.c: Likewise.
4889
4890 2014-07-29  Tom Tromey  <tromey@redhat.com>
4891
4892         * target.c (target_is_pushed): Simplify.
4893
4894 2014-07-29  Joel Brobecker  <brobecker@adacore.com>
4895
4896         GDB 7.8 released.
4897
4898 2014-07-29  Yao Qi  <yao@codesourcery.com>
4899
4900         PR gdb/17206
4901         * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4902
4903 2014-07-28  Doug Evans  <xdje42@gmail.com>
4904
4905         PR guile/17203
4906         * guile/scm-param.c (pascm_parameter_defined_p): New function.
4907         (gdbscm_register_parameter_x): Call it.  Raise error for pre-existing
4908         parameters.
4909
4910 2014-07-28  Will Newton  <will.newton@linaro.org>
4911
4912         * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4913         (THUMB2_SET_R7_SIGRETURN2): Likewise.
4914         (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4915         (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4916         (THUMB2_EABI_SYSCALL): Likewise.
4917         (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4918         struct tramp_frame.
4919         (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4920         (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4921
4922 2014-07-27  Doug Evans  <xdje42@gmail.com>
4923
4924         * guile/scm-param.c (pascm_print_param_smob): Fix output.
4925
4926 2014-07-27  Doug Evans  <xdje42@gmail.com>
4927
4928         * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4929
4930 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
4931             Doug Evans  <xdje42@gmail.com>
4932
4933         PR guile/17146
4934         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4935         (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4936         * configure.ac: Try to use guild to compile an scm file, if it fails
4937         then disable guile support.
4938         * configure: Regenerate.
4939         * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4940         GUILE_FILE_LIST.
4941         (GUILE_COMPILED_FILES): New variable.
4942         (GUILE_FILES) Update.
4943         (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4944         (stamp-guile): Compile scm files.
4945         * guile/guile.c (boot_guile_support): New function.
4946         (standard_throw_args_p): New function.
4947         (print_standard_throw_error, print_throw_error): New functions.
4948         (handle_boot_error): New function.
4949         (initialize_scheme_side): Rewrite to call boot_guile_support.
4950         * guile/lib/gdb/boot.scm: Update %load-compiled-path.  Load gdb.go.
4951         * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4952
4953 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
4954             Doug Evans  <xdje42@gmail.com>
4955
4956         PR guile/17146
4957         * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4958         * guile/lib/gdb/support.scm: New file.
4959         * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4960         * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4961         All uses updated.
4962         * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4963         All uses updated.
4964         (%assert-type): Ditto, and renamed to assert-type.
4965         (%exception-print-style): Delete.
4966
4967 2014-07-26  Doug Evans  <xdje42@gmail.com>
4968
4969         PR build/17105
4970         * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4971         * configure: Regenerate.
4972         * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4973         PYTHON_FILES.
4974         (PYTHON_FILES): New variable.
4975         (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4976         (GUILE_FILES): New variable.
4977         (stamp-python, install-python, uninstall-python): Handle empty
4978         file list.
4979         (stamp-guile, install-guile, uninstall-guile): Ditto.
4980
4981 2014-07-26  Doug Evans  <xdje42@gmail.com>
4982
4983         PR guile/17177
4984         * guile/lib/gdb.scm (pretty-printers): Export.
4985         (set-pretty-printers!): Export.
4986         * guile/lib/gdb/printing.scm (gdb module): Update.
4987         (prepend-pretty-printer!, append-pretty-printer!): Update.
4988         * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4989         (pretty_printer_list_var): Delete.
4990         (pretty_printer_list): New static global.
4991         (gdbscm_pretty_printers): New function.
4992         (gdbscm_set_pretty_printers_x): New function.
4993         (ppscm_find_pretty_printer_from_gdb): Update.
4994         (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4995         (gdbscm_initialize_pretty_printers): Update.
4996
4997 2014-07-26  Doug Evans  <xdje42@gmail.com>
4998
4999         PR 17185
5000         * configure.ac: Add check for header gc/gc.h.
5001         Add check for function setenv.
5002         * configure: Regenerate.
5003         * config.in: Regenerate.
5004         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5005
5006 2014-07-25  Maciej W. Rozycki  <macro@codesourcery.com>
5007
5008         * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5009         variation in gdbarch matching.
5010
5011 2014-07-25  Tom Tromey  <tromey@redhat.com>
5012
5013         * exec.c (using_exec_ops): Remove.
5014         (exec_close_1): Update.  Remove extraneous block, reindent.
5015         (add_target_sections): Use target_is_pushed.
5016
5017 2014-07-25  Pedro Alves  <palves@redhat.com>
5018
5019         * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5020         * monitor.c (monitor_create_inferior): Likewise.
5021         * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5022         * remote-sim.c (gdbsim_create_inferior): Likewise.
5023         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5024         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5025         * windows-nat.c (do_initial_windows_stuff): Likewise.
5026
5027 2014-07-25  Pedro Alves  <palves@redhat.com>
5028
5029         * NEWS: Mention signal passing and "signal" command changes.
5030         * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5031         comment.
5032         * breakpoint.c (until_break_command): Adjust clear_proceed_status
5033         call.
5034         * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5035         * infcmd.c (proceed_thread_callback, continue_1, step_once)
5036         (jump_command): Adjust clear_proceed_status call.
5037         (signal_command): Warn if other thread that are resumed have
5038         signals that will be delivered.  Adjust clear_proceed_status call.
5039         (until_next_command, finish_command)
5040         (proceed_after_attach_callback, attach_command_post_wait)
5041         (attach_command): Adjust clear_proceed_status call.
5042         * infrun.c (proceed_after_vfork_done): Likewise.
5043         (proceed_after_attach_callback): Adjust comment.
5044         (clear_proceed_status_thread): Clear stop_signal if not in pass
5045         state.
5046         (clear_proceed_status_callback): Delete.
5047         (clear_proceed_status): New 'step' parameter.  Only clear the
5048         proceed status of threads the command being prepared is about to
5049         resume.
5050         (proceed): If passed in an explicit signal, override stop_signal
5051         with it.  Don't pass the last stop signal to the thread we're
5052         resuming.
5053         (init_wait_for_inferior): Adjust clear_proceed_status call.
5054         (switch_back_to_stepped_thread): Clear the signal if it should not
5055         be passed.
5056         * infrun.h (clear_proceed_status): New 'step' parameter.
5057         (user_visible_resume_ptid): Add comment.
5058         * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5059         signal is in pass state.
5060         * remote.c (append_pending_thread_resumptions): Likewise.
5061         * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5062
5063 2014-07-25  Tom Tromey  <tromey@redhat.com>
5064
5065         * target.h (target_stopped_data_address)
5066         (target_watchpoint_addr_within_range): Use "->", not ".".  Fix
5067         parentheses.
5068
5069 2014-07-25  Pierre Langlois  <pierre.langlois@embecosm.com>
5070
5071         * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5072         comments.
5073         (avr_pointer_to_address): Likewise.
5074
5075 2014-07-24  Tom Tromey  <tromey@redhat.com>
5076
5077         * monitor.c (compile_pattern): Update.
5078         * target.h (struct target_ops) <to_shortname, to_longname,
5079         to_doc>: Now const.
5080
5081 2014-07-24  Tom Tromey  <tromey@redhat.com>
5082
5083         * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5084         (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5085         (add_info_alias, add_com): Make "doc" const.
5086         (print_doc_line): Make "str" const.
5087         (delete_cmd): Update.
5088         * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5089         (print_doc_line): Update.
5090         * cli/cli-script.c (document_command): Update.
5091         * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5092         (add_com, add_info, add_info_alias): Update.
5093         * guile/scm-cmd.c (cmdscm_destroyer): Update.
5094         * python/py-cmd.c (cmdpy_destroyer): Update.
5095
5096 2014-07-24  Tom Tromey  <tromey@redhat.com>
5097
5098         * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5099         (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5100         (help_cmd_list): Constify.
5101         (lookup_cmd): Update.
5102         * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5103         const.
5104         (help_cmd_list, apropos_cmd): Update.
5105         * cli/cli-script.c (show_user): Update.
5106         * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5107         * cli/cli-setshow.h (cmd_show_list): Update.
5108         * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5109         (cmd_show_list): Update.
5110         * guile/scm-cmd.c (cmdscm_destroyer): Update.
5111         * python/py-cmd.c (cmdpy_destroyer): Update.
5112
5113 2014-07-24  Tom Tromey  <tromey@redhat.com>
5114
5115         * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5116         * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5117         const.
5118         * command.h (deprecate_cmd): Update.
5119         * maint.c (maintenance_do_deprecate): Add casts.
5120
5121 2014-07-24  Tom Tromey  <tromey@redhat.com>
5122
5123         * cli/cli-decode.c (help_cmd): Make parameter "const".
5124         * cli/cli-decode.h (help_cmd): Update.
5125
5126 2014-07-24  Tom Tromey  <tromey@redhat.com>
5127
5128         * stack.c (up_silently_base, down_silently_base): Make argument
5129         const.
5130
5131 2014-07-24  Tom Tromey  <tromey@redhat.com>
5132
5133         * solib.c (solib_add): Make "pattern" const.
5134         * solib.h (solib_add): Update.
5135
5136 2014-07-24  Tom Tromey  <tromey@redhat.com>
5137
5138         * remote.c (remote_serial_open, print_packet, putpkt)
5139         (putpkt_binary): Constify.
5140         * remote.h (putpkt): Update.
5141
5142 2014-07-24  Tom Tromey  <tromey@redhat.com>
5143
5144         * monitor.c (monitor_open): Make "args" const.
5145         * monitor.h (monitor_open): Update.
5146
5147 2014-07-24  Tom Tromey  <tromey@redhat.com>
5148
5149         * maint.c (match_bfd_flags): Make "string" const.
5150         (print_bfd_section_info): Remove casts.
5151         (print_objfile_section_info): Make "string" const.
5152
5153 2014-07-24  Tom Tromey  <tromey@redhat.com>
5154
5155         * inf-child.c (inf_child_open_target): Make "arg" const.
5156         * inf-child.h (inf_child_open_target): Update.
5157
5158 2014-07-24  Tom Tromey  <tromey@redhat.com>
5159
5160         * environ.c (unset_in_environ): Make "var" const.
5161         * environ.h (unset_in_environ): Update.
5162
5163 2014-07-24  Tom Tromey  <tromey@redhat.com>
5164
5165         * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5166         Make "cmd" const.
5167         (scan_filename_with_cleanup): Likewise.
5168         (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5169         Make arguments const.
5170         (restore_command): Update.
5171
5172 2014-07-24  Pedro Alves  <palves@redhat.com>
5173
5174         * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5175
5176 2014-07-24  Tom Tromey  <tromey@redhat.com>
5177             Gary Benson  <gbenson@redhat.com>
5178
5179         * nat/linux-ptrace.c (additional_flags): New global.
5180         (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5181         additional_flags; don't check GDBSERVER.
5182         (linux_ptrace_set_additional_flags): New function.
5183         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5184         Declare.
5185         * linux-nat.c (_initialize_linux_nat): Call
5186         linux_ptrace_set_additional_flags.
5187
5188 2014-07-24  Tom Tromey  <tromey@redhat.com>
5189
5190         * make-target-delegates (munge_type, write_debugmethod): New
5191         functions.
5192         (debug_names): New global.
5193         ($TARGET_DEBUG_PRINTER): New global.
5194         (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5195         name.
5196         Write debug methods.  Generate init_debug_target.
5197         * target-debug.h: New file.
5198         * target-delegates.c: Rebuild.
5199         * target.c: Include target-debug.h.
5200         (debug_target): Hoist definition.
5201         (target_kill, target_get_section_table, target_memory_map)
5202         (target_flash_erase, target_flash_done, target_detach)
5203         (target_disconnect, target_wait, target_resume)
5204         (target_pass_signals, target_program_signals, target_follow_fork)
5205         (target_mourn_inferior, target_search_memory)
5206         (target_thread_address_space, target_close)
5207         (target_find_new_threads, target_core_of_thread)
5208         (target_verify_memory, target_insert_mask_watchpoint)
5209         (target_remove_mask_watchpoint): Remove targetdebug code.
5210         (debug_to_post_attach, debug_to_prepare_to_store)
5211         (debug_to_files_info, debug_to_insert_breakpoint)
5212         (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5213         (debug_to_region_ok_for_hw_watchpoint)
5214         (debug_to_can_accel_watchpoint_condition)
5215         (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5216         (debug_to_watchpoint_addr_within_range)
5217         (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5218         (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5219         (debug_to_terminal_init, debug_to_terminal_inferior)
5220         (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5221         (debug_to_terminal_save_ours, debug_to_terminal_info)
5222         (debug_to_load, debug_to_post_startup_inferior)
5223         (debug_to_insert_fork_catchpoint)
5224         (debug_to_remove_fork_catchpoint)
5225         (debug_to_insert_vfork_catchpoint)
5226         (debug_to_remove_vfork_catchpoint)
5227         (debug_to_insert_exec_catchpoint)
5228         (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5229         (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5230         (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5231         (setup_target_debug): Call init_debug_target.
5232         * target.h (TARGET_DEBUG_PRINTER): New macro.
5233         (struct target_ops) <to_resume, to_wait, to_pass_signals,
5234         to_program_signals>: Use TARGET_DEBUG_PRINTER.
5235
5236 2014-07-24  Gary Benson  <gbenson@redhat.com>
5237
5238         * exceptions.h (throw_vfatal): Renamed to...
5239         (throw_vquit): New declaration.
5240         (throw_quit): Likewise.
5241         * exceptions.c (throw_vfatal): Renamed to...
5242         (throw_vquit): New function.
5243         (throw_quit): Likewise.
5244         (throw_error): Call throw_verror rather than throw_it.
5245         * utils.h (vfatal): Removed.
5246         (fatal): Likewise.
5247         * utils.c (vfatal): Removed.
5248         (fatal): Likewise.
5249         (internal_verror): Replaced call to fatal with call to throw_quit.
5250         (quit): Replaced calls to fatal with calls to throw_quit.
5251
5252 2014-07-23  Ajit Agarwal <ajitkum@xilinx.com>
5253
5254         * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5255         target_read_code.
5256
5257 2014-07-23  Chen Gang <gang.chen.5i5j@gmail.com>
5258
5259         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5260         less than zero in conditional expression.
5261
5262 2014-07-23  Tom Tromey  <tromey@redhat.com>
5263
5264         * make-target-delegates ($ARGS_PART): Match trailing close paren.
5265         ($INTRO_PART): Don't match whitespace.
5266         ($METHOD_TRAILER): Move earlier.  Remove trailing semicolon and
5267         argument matching.
5268         ($METHOD): Add $METHOD_TRAILER.
5269         (trim): Rewrite.
5270         (scan_target_h): New sub.
5271         Change main loop not to collect state.
5272         * target-delegates.c: Rebuild.
5273
5274 2014-07-23  Gary Benson  <gbenson@redhat.com>
5275
5276         * cp-support.c (gdb_demangle): Fix build on systems without
5277         sigaltstack.
5278
5279 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
5280
5281         * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5282         for reference entry value target data value.
5283
5284 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
5285
5286         * stack.c (read_frame_arg): Verify value_optimized_out before calling
5287         value_available_contents_eq.
5288
5289 2014-07-22  Pedro Alves  <palves@redhat.com>
5290
5291         * value.c (allocate_optimized_out_value): Don't mark value as
5292         non-lazy.
5293
5294 2014-07-22  Jiong Wang  <jiong.wang@arm.com>
5295
5296         * MAINTAINERS (Write After Approval): Update my email address.
5297
5298 2014-07-20  Doug Evans  <dje@google.com>
5299
5300         PR server/17147
5301         * remote.c (putpkt_binary): Add text to error message.
5302
5303 2014-07-20  Yao Qi  <yao@codesourcery.com>
5304
5305         * eval.c: Remove "Chill" from comments.
5306         * gdbtypes.h: Likewise.
5307         * symtab.h: Likewise.
5308
5309 2014-07-20  Yao Qi  <yao@codesourcery.com>
5310
5311         * std-operator.def: Update comments to TERNOP_SLICE.
5312
5313 2014-07-20  Yao Qi  <yao@codesourcery.com>
5314
5315         * std-operator.def: Remove BINOP_RANGE.
5316         * breakpoint.c (watchpoint_exp_is_const): Update.
5317         * expprint.c (dump_subexp_body_standard): Likewise.
5318         * eval.c (init_array_element): Remove dead code.
5319         (evaluate_subexp_standard): Likewise.
5320
5321 2014-07-20  Yao Qi  <yao@codesourcery.com>
5322
5323         * std-operator.def: Remove BINOP_IN.
5324         * breakpoint.c (watchpoint_exp_is_const): Update.
5325         * eval.c (evaluate_subexp_standard): Likewise.
5326         * expprint.c (dump_subexp_body_standard): Likewise.
5327
5328 2014-07-19  Ajit Agarwal  <ajitkum@xilinx.com>
5329
5330         * microblaze-tdep.c (microblaze_register_names): Add
5331         the rshr and rslr register names.
5332         (microblaze_gdbarch_init): Use of tdesc_has_registers.
5333         Use of tdesc_find_feature. Use of tdesc_data_alloc.
5334         Use of tdesc_numbered_register. Use of
5335         microblaze_register_g_packet_guesses. Use of
5336         tdesc_use_registers. Use of set_gdbarch_register_type.
5337         (microblaze_register_g_packet_guesses): New.
5338         * microblaze-tdep.h (microblaze_reg_num): Add
5339         field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5340         MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5341         (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5342         * features/microblaze-core.xml: New file.
5343         * features/microblaze-stack-protect.xml: New file.
5344         * features/microblaze-with-stack-protect.c: New file.
5345         * features/microblaze-with-stack-protect.xml: New file.
5346         * features/microblaze.xml: New file.
5347         * features/microblaze.c: New file.
5348         * features/Makefile (microblaze-with-stack-protect): Add
5349         microblaze-with-stack-protect microblaze and microblaze-expedite.
5350         * regformats/microblaze-with-stack-protect.dat: New file.
5351         * regformats/microblaze.dat: New file.
5352         * doc/gdb.texinfo (MicroBlaze Features): Added.
5353
5354 2014-07-18  Tom Tromey  <tromey@redhat.com>
5355
5356         * exec.c (exec_ops): Now static.
5357         * exec.h (exec_ops): Don't declare.
5358
5359 2014-07-18  Tom Tromey  <tromey@redhat.com>
5360
5361         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5362         to find_target_beneath.
5363         * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5364         find_target_beneath.
5365         (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5366
5367 2014-07-18  Tom Tromey  <tromey@redhat.com>
5368
5369         PR gdb/17130:
5370         * utils.c (quit): Use target_supports_terminal_ours.
5371         * target.h (target_supports_terminal_ours): Declare.
5372         * target.c (target_supports_delete_record): Don't check
5373         to_delete_record against NULL.
5374         (target_supports_terminal_ours): New function.
5375
5376 2014-07-18  Tom Tromey  <tromey@redhat.com>
5377
5378         PR gdb/17130:
5379         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5380         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5381         (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5382         * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5383         * windows-nat.c (windows_xfer_partial): Always delegate.
5384         * record-btrace.c (record_btrace_xfer_partial): Simplify
5385         delegation.
5386         (record_btrace_fetch_registers, record_btrace_store_registers)
5387         (record_btrace_prepare_to_store, record_btrace_resume)
5388         (record_btrace_wait, record_btrace_find_new_threads)
5389         (record_btrace_thread_alive): Likewise.
5390         * procfs.c (procfs_xfer_partial): Always delegate.
5391         * corelow.c (core_xfer_partial): Always delegate.
5392         * sol-thread.c (sol_find_new_threads): Simplify delegation.
5393
5394 2014-07-18  Tom Tromey  <tromey@redhat.com>
5395
5396         * exec.c (exec_make_note_section): Move earlier.
5397
5398 2014-07-17  Doug Evans  <dje@google.com>
5399
5400         PR gdb/17170
5401         * maint.c (count_symtabs_and_blocks): Handle NULL
5402         current_program_space.
5403         (report_command_stats): Check global enabled flag in addition to
5404         recorded enabled flag.
5405         (make_command_stats_cleanup): Handle msg_type == 0, startup.
5406
5407 2014-07-16  Pedro Alves  <palves@redhat.com>
5408
5409         * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5410
5411 2014-07-16  Tom Tromey  <tromey@redhat.com>
5412
5413         * target.h (struct target_ops) <to_delete_record>: Reformat
5414         comment.
5415
5416 2014-07-16  Tom Tromey  <tromey@redhat.com>
5417
5418         * target-delegates.c: Rebuild.
5419
5420 2014-07-15  Pierre Langlois  <pierre.langlois@embecosm.com>
5421
5422         * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5423         (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5424         (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5425         (avr_pointer_to_address): Likewise.
5426         (avr_address_class_type_flags): New function.
5427         (avr_address_class_type_flags_to_name): Likewise.
5428         (avr_address_class_name_to_type_flags): Likewise.
5429         (avr_gdbarch_init): Set address_class_type_flags,
5430         address_class_type_flags_to_name and
5431         address_class_name_to_type_flags.
5432
5433 2014-07-15  Pedro Alves  <palves@redhat.com>
5434
5435         * linux-nat.c (kill_callback): Save errno and work with saved
5436         copy.
5437
5438 2014-07-15  Simon Marchi  <simon.marchi@ericsson.com>
5439
5440         * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5441
5442 2014-07-14  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
5443
5444         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5445         breakpoint support correctly.
5446
5447 2014-07-14  Pedro Alves  <palves@redhat.com>
5448
5449         * utils.c (prompt_for_continue): Call target_terminal_ours.
5450
5451 2014-07-14  Pedro Alves  <palves@redhat.com>
5452
5453         * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5454         catch_errors.  Don't re-enable stdin or notify observers where,
5455         and rethrow error.
5456         (fetch_inferior_event_wrapper): Delete.
5457
5458 2014-07-14  Pedro Alves  <palves@redhat.com>
5459
5460         PR gdb/17072
5461         * top.c: Include "inf-loop.h".
5462         (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5463         field.
5464         (gdb_readline_wrapper_cleanup): Make the target async again, if it
5465         was async before.
5466         (gdb_readline_wrapper): Store whether the target is async, and
5467         make it sync.
5468
5469 2014-07-14  Pedro Alves  <palves@redhat.com>
5470
5471         PR gdb/17072
5472         * top.c (gdb_readline_wrapper_line): Tweak comment.
5473         (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5474         the input handler callback.
5475
5476 2014-07-14  Pedro Alves  <palves@redhat.com>
5477
5478         PR gdb/17072
5479         * main.c: Include event-top.h.
5480         (handle_command_errors): New function.
5481         (catch_command_errors, catch_command_errors_const): Use it.
5482
5483 2014-07-14  Pedro Alves  <palves@redhat.com>
5484
5485         * exceptions.c (catch_command_errors, catch_command_errors_const):
5486         Moved to main.c.
5487         * exceptions.h (catch_command_errors_ftype)
5488         (catch_command_errors_const_ftype): Moved to main.c.
5489         (catch_command_errors, catch_command_errors_const): Delete
5490         declarations.
5491         * main.c (catch_command_errors_ftype)
5492         (catch_command_errors_const_ftype): Moved here from exceptions.h.
5493         (catch_command_errors, catch_command_errors_const)): Moved here
5494         from exceptions.c and make static.
5495
5496 2014-07-14  Pedro Alves  <palves@redhat.com>
5497
5498         * exceptions.c (print_any_exception): Delete.
5499         (catch_exceptions_with_msg): Use exception_print instead of
5500         print_any_exception.
5501         (catch_errors): Use exception_fprintf instead of
5502         print_any_exception.
5503         (catch_command_errors, catch_command_errors_const): Use
5504         exception_print instead of print_any_exception.
5505
5506 2014-07-14  Pedro Alves  <palves@redhat.com>
5507
5508         * infcall.c (run_inferior_call): Set 'sync_execution' while
5509         running the inferior call.
5510
5511 2014-07-14  Pedro Alves  <palves@redhat.com>
5512
5513         * value.c (value_contents_equal): Delete function.
5514         * value.h (value_contents_equal): Delete declaration.
5515
5516 2014-07-14  Tom Tromey  <tromey@redhat.com>
5517
5518         PR exp/17106:
5519         * gdbtypes.c (is_dynamic_type_internal): New function, from
5520         is_dynamic_type.
5521         (is_dynamic_type): Rewrite.
5522         (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5523         (resolve_dynamic_struct): Likewise.
5524         (resolve_dynamic_type_internal): New function, from
5525         resolve_dynamic_type.
5526         (resolve_dynamic_type): Rewrite.
5527
5528 2014-07-14  Tom Tromey  <tromey@redhat.com>
5529
5530         * target.c (target_require_runnable): Also check record_stratum.
5531         Update comment.
5532
5533 2014-07-11  Yao Qi  <yao@codesourcery.com>
5534
5535         * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5536         thumb_instruction_restores_sp return true.
5537
5538 2014-07-11  Yao Qi  <yao@codesourcery.com>
5539
5540         * arm-tdep.c (thumb_instruction_restores_sp): New function.
5541         (thumb_in_function_epilogue_p): Call
5542         thumb_instruction_restores_sp.
5543
5544 2014-07-11  Yao Qi  <yao@codesourcery.com>
5545
5546         * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5547         'add sp, #imm'.
5548         (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5549
5550 2014-07-11  Gary Benson  <gbenson@redhat.com>
5551
5552         * amd64-linux-nat.c (gdbcore.h): Remove include.
5553         (regset.h): Likewise.
5554         (nat/linux-btrace.h): Likewise.
5555         (btrace.h): Likewise.
5556         (gdb_assert.h): Likewise.
5557         (string.h): Likewise.
5558         (sys/uio.h): Likewise.
5559         (sys/debugreg.h): Likewise.
5560         (sys/syscall.h): Likewise.
5561         (sys/procfs.h): Likewise.
5562         (sys/user.h): Likewise.
5563         (asm/ptrace.h): Likewise.
5564         (i386-nat.h): Likewise.
5565         * i386-linux-nat.c (i386-nat.h): Likewise.
5566         (regset.h): Likewise.
5567         (target.h): Likewise.
5568         (linux-nat.h): Likewise.
5569         (nat/linux-btrace.h): Likewise.
5570         (btrace.h): Likewise.
5571         (gdb_assert.h): Likewise.
5572         (string.h): Likewise.
5573         (sys/uio.h): Likewise.
5574         (sys/user.h): Likewise.
5575         (sys/procfs.h): Likewise.
5576         (sys/reg.h): Likewise.
5577         (sys/debugreg.h): Likewise.
5578         (ORIG_EAX): Remove definition.
5579
5580 2014-07-11  Gary Benson  <gbenson@redhat.com>
5581
5582         * i386-linux-nat.h: New file.
5583         * x86-linux-nat.h: Likewise.
5584         * x86-linux-nat.c: Likewise.
5585         * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5586         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5587         * config/i386/linux64.mh (NATDEPFILES): Likewise.
5588         * amd64-linux-nat.c (x86-linux-nat.h): New include.
5589         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5590         (PTRACE_SETREGSET): Likewise.
5591         (arch_lwp_info): Now in x86-linux-nat.c.
5592         (have_ptrace_getregset): Now in x86-linux-nat.h.
5593         (x86_linux_dr_get): Now in x86-linux-nat.c.
5594         (x86_linux_dr_set): Likewise.
5595         (x86_linux_dr_get_addr): Likewise.
5596         (x86_linux_dr_get_control): Likewise.
5597         (x86_linux_dr_get_status): Likewise.
5598         (update_debug_registers_callback): Likewise.
5599         (x86_linux_dr_set_control): Likewise.
5600         (x86_linux_dr_set_addr): Likewise.
5601         (x86_linux_prepare_to_resume): Likewise.
5602         (x86_linux_new_thread): Likewise.
5603         (x86_linux_new_fork): Likewise.
5604         (x86_linux_get_thread_area): Likewise.
5605         (super_post_startup_inferior): Likewise.
5606         (x86_linux_child_post_startup_inferior): Likewise.
5607         (AMD64_LINUX_USER64_CS): Likewise.
5608         (AMD64_LINUX_X32_DS): Likewise.
5609         (x86_linux_read_description): Likewise.
5610         (x86_linux_enable_btrace): Likewise.
5611         (x86_linux_disable_btrace): Likewise.
5612         (x86_linux_teardown_btrace): Likewise.
5613         (x86_linux_read_btrace): Likewise.
5614         (x86_linux_create_target): Likewise.
5615         (x86_linux_add_target): Likewise.
5616         * i386-linux-nat.c (x86-linux-nat.h): New include.
5617         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5618         (PTRACE_SETREGSET): Likewise.
5619         (arch_lwp_info): Now in x86-linux-nat.c.
5620         (have_ptrace_getregset): Now in x86-linux-nat.h.
5621         (x86_linux_dr_get): Now in x86-linux-nat.c.
5622         (x86_linux_dr_set): Likewise.
5623         (x86_linux_dr_get_addr): Likewise.
5624         (x86_linux_dr_get_control): Likewise.
5625         (x86_linux_dr_get_status): Likewise.
5626         (update_debug_registers_callback): Likewise.
5627         (x86_linux_dr_set_control): Likewise.
5628         (x86_linux_dr_set_addr): Likewise.
5629         (x86_linux_prepare_to_resume): Likewise.
5630         (x86_linux_new_thread): Likewise.
5631         (x86_linux_new_fork): Likewise.
5632         (x86_linux_get_thread_area): Likewise.
5633         (super_post_startup_inferior): Likewise.
5634         (x86_linux_child_post_startup_inferior): Likewise.
5635         (AMD64_LINUX_USER64_CS): Likewise.
5636         (AMD64_LINUX_X32_DS): Likewise.
5637         (x86_linux_read_description): Likewise.
5638         (x86_linux_enable_btrace): Likewise.
5639         (x86_linux_disable_btrace): Likewise.
5640         (x86_linux_teardown_btrace): Likewise.
5641         (x86_linux_read_btrace): Likewise.
5642         (x86_linux_create_target): Likewise.
5643         (x86_linux_add_target): Likewise.
5644
5645 2014-07-11  Gary Benson  <gbenson@redhat.com>
5646
5647         * amd64-linux-nat.c: Comment and whitespace changes.
5648         * i386-linux-nat.c: Comment and whitespace changes.
5649
5650 2014-07-11  Gary Benson  <gbenson@redhat.com>
5651
5652         * amd64-linux-nat.c (x86_linux_create_target): New function.
5653         (x86_linux_add_target): Likewise.
5654         (_initialize_amd64_linux_nat): Delegate to the above new functions.
5655         * i386-linux-nat.c (x86_linux_create_target): New function.
5656         (x86_linux_add_target): Likewise.
5657         (_initialize_i386_linux_nat): Delegate to the above new functions.
5658
5659 2014-07-11  Gary Benson  <gbenson@redhat.com>
5660
5661         * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5662         (ps_get_thread_area): Delegate to the above in 32-bit mode.
5663         * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5664         (ps_get_thread_area): Delegate to the above.
5665
5666 2014-07-11  Gary Benson  <gbenson@redhat.com>
5667
5668         * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5669         x86_linux_read_description.  All uses updated.  amd64-specific
5670         code conditionalized.  Conditionalized i386-specific code added.
5671         Redundant cast removed.
5672         * i386-linux-nat.c (i386_linux_read_description): Renamed to
5673         x86_linux_read_description.  All uses updated.  i386-specific
5674         code conditionalized.  Conditionalized amd64-specific code added.
5675         One sizeof replaced with the actual type it is describing.
5676
5677 2014-07-11  Gary Benson  <gbenson@redhat.com>
5678
5679         * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5680         x86_linux_dr_get.  All uses updated.
5681         (amd64_linux_dr_set): Renamed to
5682         x86_linux_dr_set.  All uses updated.
5683         (amd64_linux_dr_get_addr): Renamed to
5684         x86_linux_dr_get_addr.  All uses updated.
5685         (amd64_linux_dr_get_control): Renamed to
5686         x86_linux_dr_get_control.  All uses updated.
5687         (amd64_linux_dr_get_status): Renamed to
5688         x86_linux_dr_get_status.  All uses updated.
5689         (amd64_linux_dr_set_control): Renamed to
5690         x86_linux_dr_set_control.  All uses updated.
5691         (amd64_linux_dr_set_addr): Renamed to
5692         x86_linux_dr_set_addr.  All uses updated.
5693         (amd64_linux_prepare_to_resume): Renamed to
5694         x86_linux_prepare_to_resume.  All uses updated.
5695         (amd64_linux_new_thread): Renamed to
5696         x86_linux_new_thread.  All uses updated.
5697         (amd64_linux_new_fork): Renamed to
5698         x86_linux_new_fork.  All uses updated.
5699         (amd64_linux_child_post_startup_inferior): Renamed to
5700         x86_linux_child_post_startup_inferior.  All uses updated.
5701         (amd64_linux_enable_btrace): Renamed to
5702         x86_linux_enable_btrace.  All uses updated.
5703         (amd64_linux_disable_btrace): Renamed to
5704         x86_linux_disable_btrace.  All uses updated.
5705         (amd64_linux_teardown_btrace): Renamed to
5706         x86_linux_teardown_btrace.  All uses updated.
5707         (amd64_linux_read_btrace): Renamed to
5708         x86_linux_read_btrace.  All uses updated.
5709         * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5710         x86_linux_dr_get.  All uses updated.
5711         (i386_linux_dr_set): Renamed to
5712         x86_linux_dr_set.  All uses updated.
5713         (i386_linux_dr_get_addr): Renamed to
5714         x86_linux_dr_get_addr.  All uses updated.
5715         (i386_linux_dr_get_control): Renamed to
5716         x86_linux_dr_get_control.  All uses updated.
5717         (i386_linux_dr_get_status): Renamed to
5718         x86_linux_dr_get_status.  All uses updated.
5719         (i386_linux_dr_set_control): Renamed to
5720         x86_linux_dr_set_control.  All uses updated.
5721         (i386_linux_dr_set_addr): Renamed to
5722         x86_linux_dr_set_addr.  All uses updated.
5723         (i386_linux_prepare_to_resume): Renamed to
5724         x86_linux_prepare_to_resume.  All uses updated.
5725         (i386_linux_new_thread): Renamed to
5726         x86_linux_new_thread.  All uses updated.
5727         (i386_linux_new_fork): Renamed to
5728         x86_linux_new_fork.  All uses updated.
5729         (i386_linux_child_post_startup_inferior): Renamed to
5730         x86_linux_child_post_startup_inferior.  All uses updated.
5731         (i386_linux_enable_btrace): Renamed to
5732         x86_linux_enable_btrace.  All uses updated.
5733         (i386_linux_disable_btrace): Renamed to
5734         x86_linux_disable_btrace.  All uses updated.
5735         (i386_linux_teardown_btrace): Renamed to
5736         x86_linux_teardown_btrace.  All uses updated.
5737         (i386_linux_read_btrace): Renamed to
5738         x86_linux_read_btrace.  All uses updated.
5739
5740 2014-07-11  Adrian Sendroiu  <adrian.sendroiu@freescale.com>
5741
5742         * remote.c (extended_remote_post_attach): New function.
5743         (init_extended_remote_ops): Install it as to_post_attach method.
5744
5745 2014-07-09  Pedro Alves  <palves@redhat.com>
5746
5747         * infcmd.c (attach_command_post_wait): Don't call
5748         target_terminal_inferior here.
5749         (attach_command): Call it here instead.
5750
5751 2014-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
5752
5753         * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5754         field.
5755         * c-varobj.c (c_is_path_expr_parent): New function, moved core
5756         from varobj.c, with additional checks.
5757         (c_varobj_ops): Fill in is_path_expr_parent field.
5758         (cplus_varobj_ops): Fill in is_path_expr_parent field.
5759         * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5760         field.
5761         * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5762         ops method.
5763         (varobj_default_is_path_expr_parent): New function.
5764         * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5765         (varobj_default_is_path_expr_parent): Declare new function.
5766
5767 2014-07-08  Markus Metzger  <markus.t.metzger@intel.com>
5768
5769         * infcmd.c (finish_backward): Turn internal error into normal error.
5770
5771 2014-07-07  Pedro Alves  <palves@redhat.com>
5772
5773         PR gdb/17096
5774         * remote.c (async_handle_remote_sigint)
5775         (async_handle_remote_sigint_twice): Call
5776         gdb_call_async_signal_handler instead of
5777         mark_async_signal_handler.
5778
5779 2014-07-07  Tom Tromey  <tromey@redhat.com>
5780
5781         * target-delegates.c: Rebuild.
5782         * target.c (target_info_record): Remove.
5783         * record.c (info_record_command): Unconditionally call
5784         to_info_record.
5785         * target.h (struct target_ops) <to_info_record>: Use
5786         TARGET_DEFAULT_IGNORE.
5787         (target_info_record): Remove.
5788
5789 2014-07-07  Tom Tromey  <tromey@redhat.com>
5790
5791         * target.h (struct target_ops) <to_get_thread_local_address>: Use
5792         TARGET_DEFAULT_NORETURN.
5793         * target.c (generic_tls_error): New function.
5794         (target_translate_tls_address): Don't search target stack.
5795         * target-delegates.c: Rebuild.
5796         * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5797         stack.
5798         * linux-thread-db.c (thread_db_get_thread_local_address):
5799         Unconditionally call beneath target.
5800
5801 2014-07-03  Marc Khouzam  <marc.khouzam@ericsson.com>
5802
5803         * cli/cli-logging.c (pop_output_files): Assign targerr to
5804         gdb_stdtargerr.
5805
5806 2014-07-03  Andrew Burgess  <andrew.burgess@embecosm.com>
5807
5808         * MAINTAINERS (Write After Approval): Update my email address.
5809
5810 2014-07-02  Gary Benson  <gbenson@redhat.com>
5811
5812         * proc-service.c (ps_xfer_memory): Update comment.
5813         (ps_pstop): Remove unused function.
5814         (ps_pcontinue): Likewise.
5815         (ps_lstop): Likewise.
5816         (ps_lcontinue): Likewise.
5817         (ps_lgetxregsize): Likewise.
5818         (ps_lgetxregs): Likewise.
5819         (ps_lsetxregs): Likewise.
5820         (ps_plog): Likewise.
5821         (ps_ptread): Likewise.
5822         (ps_ptwrite): Likewise.
5823
5824 2014-07-01  Mark Wielaard  <mjw@redhat.com>
5825
5826         * dwarf2read.c (add_array_cv_type): New function.
5827         (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5828         (read_tag_volatile_type): Likewise.
5829
5830 2014-07-01  Tom Tromey  <tromey@redhat.com>
5831
5832         * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5833         * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5834         * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5835         (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5836         * command.h (cmd_cfunc_ftype): Move earlier.
5837         (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5838         (add_com, add_info): Use cmd_cfunc_ftype.
5839
5840 2014-06-30  Tom Tromey  <tromey@redhat.com>
5841
5842         * symtab.c (operator_chars): Make parameters and return type
5843         const.
5844         (file_matches): Make "files" const.
5845         (struct search_symbols_data) <files>: Now const.
5846         (search_symbols): Make "regexp" and "files" parameters const.
5847         Update.
5848         (symtab_symbol_info): Remove cast.
5849         (rbreak_command): Update.
5850         * symtab.h (search_symbols): Update.
5851
5852 2014-06-27  Yao Qi  <yao@codesourcery.com>
5853
5854         * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5855         Change parameter type to 'struct thread_info *'.  Caller
5856         updated.
5857         * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5858         Update declaration.
5859         * dummy-frame.c (struct dummy_frame_id): New.
5860         (dummy_frame_id_eq): New function.
5861         (struct dummy_frame) <id>: Change its type to 'struct
5862         dummy_frame_id'.
5863         (dummy_frame_push): Add parameter ptid and save it in
5864         dummy_frame_id.
5865         (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5866         inferior_ptid.
5867         (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5868         to inferior_ptid.
5869         (lookup_dummy_frame): Change parameter type to 'struct
5870         dummy_frame_id *'.  Callers updated.  Call dummy_frame_id_eq
5871         instead of frame_id_eq.
5872         (dummy_frame_pop): Add parameter ptid.  Callers updated.
5873         Update comments.  Compose dummy_frame_id and pass it to
5874         lookup_dummy_frame.
5875         (dummy_frame_discard): Add parameter ptid.
5876         (dummy_frame_sniffer): Compose dummy_frame_id and call
5877         dummy_frame_id_eq instead of frame_id_eq.
5878         (fprint_dummy_frames): Print ptid.
5879         * dummy-frame.h: Remove comments.
5880         (dummy_frame_push): Add ptid in declaration.
5881         (dummy_frame_pop, dummy_frame_discard): Likewise.
5882
5883 2014-06-26  Tom Tromey  <tromey@redhat.com>
5884
5885         * cli/cli-cmds.c (error_no_arg): Make "why" const.
5886         * command.h (error_no_arg): Update.
5887
5888 2014-06-26  Tom Tromey  <tromey@redhat.com>
5889
5890         * cli/cli-setshow.c (do_set_command): Make "arg" const.
5891         (do_show_command): Make "arg" const.
5892         * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5893
5894 2014-06-26  Tom Tromey  <tromey@redhat.com>
5895
5896         * record-full.c (record_full_get_bookmark): Make "args" const.
5897         (record_full_goto_bookmark): Make "raw_bookmark" const.
5898         * record.c (record_goto): New function.
5899         (cmd_record_goto): Use it.  Now static.
5900         * record.h (record_goto): Declare.
5901         (cmd_record_goto): Remove declaration.
5902         * target-delegates.c: Rebuild.
5903         * target.h (struct target_ops) <to_get_bookmark,
5904         to_goto_bookmark>: Make parameter const.
5905
5906 2014-06-26  Tom Tromey  <tromey@redhat.com>
5907
5908         * defs.h (generic_load): Update.
5909         * m32r-rom.c (m32r_load_gen): Make "filename" const.
5910         * monitor.c (monitor_load): Make "args" const.
5911         * remote-m32r-sdi.c (m32r_load): Make "args" const.
5912         * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5913         const.
5914         (mips_load): Make "file" const.
5915         * remote-sim.c (gdbsim_load): Make "args" const.
5916         * remote.c (remote_load): Make "name" const.
5917         * symfile.c (generic_load): Make "args" const.
5918         * target-delegates.c: Rebuild.
5919         * target.c (target_load): Make "arg" const.
5920         (debug_to_load): Make "args" const.
5921         * target.h (struct target_ops) <to_load>: Make parameter const.
5922         (target_load): Update.
5923
5924 2014-06-26  Tom Tromey  <tromey@redhat.com>
5925
5926         PR symtab/16902:
5927         * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5928         (dwarf2_physname, read_partial_die)
5929         (guess_partial_die_structure_name, fixup_partial_die)
5930         (guess_full_die_structure_name, anonymous_struct_prefix)
5931         (dwarf2_name): Use per-BFD obstack.
5932
5933 2014-06-26  Yao Qi  <yao@codesourcery.com>
5934
5935         * dummy-frame.c (dummy_frame_sniffer): Move local variables
5936         dummyframe and this_id into inner block below.
5937
5938 2014-06-26  Yao Qi  <yao@codesourcery.com>
5939
5940         * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5941         with "signal_pass[0]" in the initialization of signal_pass.
5942
5943 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
5944
5945         * record-btrace.c (record_btrace_generating_corefile)
5946         (record_btrace_prepare_to_generate_core)
5947         (record_btrace_done_generating_core): New.
5948         (record_btrace_xfer_partial, record_btrace_fetch_registers)
5949         (record_btrace_store_registers, record_btrace_prepare_to_store):
5950         Forward request when generating a core file.
5951         (record_btrace_open): Set record_btrace_generating_corefile to zero.
5952         (init_record_btrace_ops): Set to_prepare_to_generate_core and
5953         to_done_generating_core.
5954
5955 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
5956
5957         * target.h (target_ops) <to_prepare_to_generate_core>
5958         <to_done_generating_core>: New.
5959         (target_prepare_to_generate_core, target_done_generating_core): New.
5960         * target.c (target_prepare_to_generate_core)
5961         (target_done_generating_core): New.
5962         * target-delegates.c: Regenerate.
5963         * gcore.c: (write_gcore_file): Rename to ...
5964         (write_gcore_file_1): ...this.
5965         (write_gcore_file): Call target_prepare_to_generate_core
5966         and target_done_generating_core.
5967
5968 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
5969
5970         * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5971         * gcore.c (write_gcore_file): Free memory returned from
5972         make_corefile_notes.
5973         * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5974         * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5975
5976 2014-06-24  Yao Qi  <yao@codesourcery.com>
5977
5978         * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5979         (arm_linux_init_abi): Set skip_trampoline_code with
5980         gdbarch_skip_trampoline_code instead of
5981         find_solib_trampoline_target.
5982
5983 2014-06-24  Yao Qi  <yao@codesourcery.com>
5984
5985         * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5986         arm_skip_bx_reg returns non-zero.
5987
5988 2014-06-24  Yao Qi  <yao@codesourcery.com>
5989
5990         * arm-tdep.c (arm_skip_bx_reg): New function.
5991         (arm_skip_stub): Call arm_skip_bx_reg.
5992
5993 2014-06-23  Don Breazeal  <donb@codesourcery.com>
5994
5995         * MAINTAINERS: Add myself as write-after-approval maintainer.
5996
5997 2014-06-23  Pedro Alves  <palves@redhat.com>
5998
5999         * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6000         DR_CONTROL before setting DR0..DR3.
6001         * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6002         * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6003         bits of DR_CONTROL related to the debug register slot being
6004         disabled.  If all slots are vacant, clear local slowdown as well,
6005         and assert DR_CONTROL is 0.
6006
6007 2014-06-23  Siva Chandra Reddy  <sivachandra@google.com>
6008
6009         * python/lib/gdb/command/xmethods.py
6010         (get_method_matchers_in_loci):  Lookup xmethod matchers in the
6011         current progspace only if the string "progspace" matches LOCUS_RE.
6012
6013 2014-06-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6014
6015         Fix --with-system-readline with readline-6.3 patch 5.
6016         * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6017         (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6018         types.
6019
6020 2014-06-20  Tom Tromey  <tromey@redhat.com>
6021
6022         * dwarf2read.c (dw2_get_real_path): Use correct type in
6023         OBSTACK_CALLOC.
6024         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6025
6026 2014-06-20  Gary Benson  <gbenson@redhat.com>
6027
6028         * common/gdb_thread_db.h: Moved to nat.  All includes updated.
6029         * common/glibc_thread_db.h: Likewise.
6030         * common/i386-cpuid.h: Likewise.
6031         * common/i386-gcc-cpuid.h: Likewise.
6032         * common/linux-btrace.h: Likewise.
6033         * common/linux-osdata.h: Likewise.
6034         * common/linux-procfs.h: Likewise.
6035         * common/linux-ptrace.h: Likewise.
6036         * common/mips-linux-watch.h: Likewise.
6037         * common/linux-btrace.c: Moved to nat.
6038         * common/linux-osdata.c: Likewise.
6039         * common/linux-procfs.c: Likewise.
6040         * common/linux-ptrace.c: Likewise.
6041         * common/mips-linux-watch.c: Likewise.
6042         * nat/gdb_thread_db.h: Moved from common.
6043         * nat/glibc_thread_db.h: Likewise.
6044         * nat/i386-cpuid.h: Likewise.
6045         * nat/i386-gcc-cpuid.h: Likewise.
6046         * nat/linux-btrace.c: Likewise.
6047         * nat/linux-btrace.h: Likewise.
6048         * nat/linux-osdata.c: Likewise.
6049         * nat/linux-osdata.h: Likewise.
6050         * nat/linux-procfs.c: Likewise.
6051         * nat/linux-procfs.h: Likewise.
6052         * nat/linux-ptrace.c: Likewise.
6053         * nat/linux-ptrace.h: Likewise.
6054         * nat/mips-linux-watch.c: Likewise.
6055         * nat/mips-linux-watch.h: Likewise.
6056         * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6057         (object file files): Reordered.
6058         * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6059         of glibc_thread_db.h.
6060
6061 2014-06-20  Gary Benson  <gbenson@redhat.com>
6062
6063         * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6064         (i386_dr_low_type): Moved to nat/i386-dregs.h.
6065         (i386_dr_low): Likewise.
6066         (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6067         (i386_dr_low_set_addr): Likewise.
6068         (i386_dr_low_get_addr): Likewise.
6069         (i386_dr_low_can_set_control): Likewise.
6070         (i386_dr_low_set_control): Likewise.
6071         (i386_dr_low_get_control): Likewise.
6072         (i386_dr_low_get_status): Likewise.
6073         (i386_get_debug_register_length): Likewise.
6074         * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6075         (i386_dr_low): Likewise.
6076         * nat/i386-dregs.c (i386-low.h): Remove include.
6077         (i386-nat.h): Likewise.
6078         (nat/i386-dregs.h): New include.
6079         (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6080         (i386_dr_low_set_addr): Likewise.
6081         (i386_dr_low_get_addr): Likewise.
6082         (i386_dr_low_can_set_control): Likewise.
6083         (i386_dr_low_set_control): Likewise.
6084         (i386_dr_low_get_control): Likewise.
6085         (i386_dr_low_get_status): Likewise.
6086         (i386_get_debug_register_length): Likewise.
6087         (debug_hw_points): Likewise.
6088
6089 2014-06-19  Iain Buclaw  <ibuclaw@gdcproject.org>
6090
6091         * Makefile.in (SFILES): Add d-exp.y.
6092         (YYFILES): Add d-exp.c.
6093         (YYOBJ): Add d-exp.o.
6094         (local-maintainer-clean): Delete d-exp.c.
6095         * d-exp.y: New file.
6096         * d-lang.h (d_parse): New declaration.
6097         (d_error): New declaration.
6098         * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6099         Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6100         PREC_ORDER operators.
6101         (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6102
6103 2014-06-19  Yao Qi  <yao@codesourcery.com>
6104
6105         * gdbthread.h (any_running): Remove the declaration.
6106         * thread.c (any_running): Remove.
6107
6108 2014-06-19  Yao Qi  <yao@codesourcery.com>
6109
6110         * gdbthread.h (struct thread_info) <state>: Change its type to
6111         'enum thread_state'.  Update comments.
6112
6113 2014-06-19  Pedro Alves  <palves@redhat.com>
6114
6115         * gdbthread.h (ALL_THREADS): Delete.
6116         (ALL_NON_EXITED_THREADS): New macro.
6117         * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6118         instead of ALL_THREADS.
6119         * infrun.c (find_thread_needs_step_over)
6120         (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6121         instead of ALL_THREADS.
6122         * record-btrace.c (record_btrace_open)
6123         (record_btrace_stop_recording, record_btrace_close)
6124         (record_btrace_is_replaying, record_btrace_resume)
6125         (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6126         * remote.c (append_pending_thread_resumptions): Likewise.
6127         * thread.c (thread_apply_all_command): Likewise.
6128
6129 2014-06-19  Gary Benson  <gbenson@redhat.com>
6130
6131         * i386-nat.c (i386_stopped_by_watchpoint):
6132         Use i386_dr_stopped_by_watchpoint.
6133         (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6134         (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6135
6136 2014-06-19  Gary Benson  <gbenson@redhat.com>
6137
6138         * nat/i386-dregs.c: New file.
6139         * Makefile.in (i386-dregs.o): New rule.
6140         * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6141         * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6142         * config/i386/darwin.mh (NATDEPFILES): Likewise.
6143         * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6144         * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6145         * config/i386/go32.mh (NATDEPFILES): Likewise.
6146         * config/i386/linux.mh (NATDEPFILES): Likewise.
6147         * config/i386/linux64.mh (NATDEPFILES): Likewise.
6148         * config/i386/mingw.mh (NATDEPFILES): Likewise.
6149         * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6150         * i386-nat.h (debug_hw_points): New declaration.
6151         * i386-nat.c (breakpoint.h): Remove include.
6152         (command.h): Likewise.
6153         (target.h): Likewise.
6154         (gdb_assert.h): Likewise.
6155         (debug_hw_points): Made nonstatic.
6156         (debug_printf): Now in i386-dregs.c.
6157         (TARGET_HAS_DR_LEN_8): Likewise.
6158         (DR_CONTROL_SHIFT): Likewise.
6159         (DR_CONTROL_SIZE): Likewise.
6160         (DR_RW_EXECUTE): Likewise.
6161         (DR_RW_WRITE): Likewise.
6162         (DR_RW_READ): Likewise.
6163         (DR_RW_IORW): Likewise.
6164         (DR_LEN_1): Likewise.
6165         (DR_LEN_2): Likewise.
6166         (DR_LEN_4): Likewise.
6167         (DR_LEN_8): Likewise.
6168         (DR_LOCAL_ENABLE_SHIFT): Likewise.
6169         (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6170         (DR_ENABLE_SIZE): Likewise.
6171         (DR_LOCAL_SLOWDOWN): Likewise.
6172         (DR_GLOBAL_SLOWDOWN): Likewise.
6173         (DR_CONTROL_RESERVED): Likewise.
6174         (I386_DR_CONTROL_MASK): Likewise.
6175         (I386_DR_VACANT): Likewise.
6176         (I386_DR_LOCAL_ENABLE): Likewise.
6177         (I386_DR_GLOBAL_ENABLE): Likewise.
6178         (I386_DR_DISABLE): Likewise.
6179         (I386_DR_SET_RW_LEN): Likewise.
6180         (I386_DR_GET_RW_LEN): Likewise.
6181         (I386_DR_WATCH_HIT): Likewise.
6182         (i386_wp_op_t): Likewise.
6183         (i386_show_dr): Likewise.
6184         (i386_length_and_rw_bits): Likewise.
6185         (i386_insert_aligned_watchpoint): Likewise.
6186         (i386_remove_aligned_watchpoint): Likewise.
6187         (i386_handle_nonaligned_watchpoint): Likewise.
6188         (i386_update_inferior_debug_regs): Likewise.
6189         (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6190         (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6191         (i386_region_ok_for_watchpoint):
6192         Use i386_dr_region_ok_for_watchpoint.
6193         (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6194
6195 2014-06-19  Gary Benson  <gbenson@redhat.com>
6196
6197         * i386-nat.c (i386_insert_hw_breakpoint): Use
6198         i386_insert_watchpoint.
6199         (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6200
6201 2014-06-19  Gary Benson  <gbenson@redhat.com>
6202
6203         * i386-nat.c (i386_dr_show): Renamed to
6204         i386_show_dr and made static.  All uses updated.
6205         (i386_dr_length_and_rw_bits): Renamed to
6206         i386_length_and_rw_bits and made static.
6207         All uses updated.
6208         (i386_dr_insert_aligned_watchpoint): Renamed to
6209         i386_insert_aligned_watchpoint and made static.
6210         All uses updated.
6211         (i386_dr_remove_aligned_watchpoint): Renamed to
6212         i386_remove_aligned_watchpoint and made static.
6213         All uses updated.
6214         (i386_dr_update_inferior_debug_regs): Renamed to
6215         i386_update_inferior_debug_regs and made static.
6216         All uses updated.
6217         * nat/i386-dregs.h (i386_dr_show): Removed.
6218         (i386_dr_length_and_rw_bits): Likewise.
6219         (i386_dr_insert_aligned_watchpoint): Likewise.
6220         (i386_dr_remove_aligned_watchpoint): Likewise.
6221         (i386_dr_update_inferior_debug_regs): Likewise.
6222
6223 2014-06-19  Gary Benson  <gbenson@redhat.com>
6224
6225         * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6226         * configure: Regenerate.
6227         * config.in: Likewise.
6228         * main.c (signal.h): New include.
6229         (setup_alternate_signal_stack): New function.
6230         (captured_main): Call the above.
6231         * cp-support.c (signal.h): New include.
6232         (catch_demangler_crashes): New flag.
6233         (SIGJMP_BUF): New define.
6234         (SIGSETJMP): Likewise.
6235         (SIGLONGJMP): Likewise.
6236         (gdb_demangle_jmp_buf): New static global.
6237         (gdb_demangle_attempt_core_dump): Likewise.
6238         (gdb_demangle_signal_handler): New function.
6239         (gdb_demangle): If catch_demangler_crashes is set, install the
6240         above signal handler before calling bfd_demangle, and restore
6241         the original signal handler afterwards.  Display the offending
6242         symbol and call demangler_warning the first time a segmentation
6243         fault is caught.
6244         (_initialize_cp_support): New maint set/show command.
6245
6246 2014-06-19  Gary Benson  <gbenson@redhat.com>
6247
6248         * utils.h (resource_limit_kind): New enum.
6249         (can_dump_core): New declaration.
6250         (warn_cant_dump_core): Likewise.
6251         (dump_core): Likewise.
6252         * utils.c (dump_core): Made nonstatic.  Added new
6253         parameter "limit_kind".
6254         (can_dump_core): Made nonstatic. Moved printing code to...
6255         (warn_cant_dump_core): New function.
6256         (can_dump_core_warn): Likewise.
6257         (internal_vproblem): Replace calls to can_dump_core with
6258         calls to can_dump_core_warn.  Supply new argument to each.
6259
6260 2014-06-19  Gary Benson  <gbenson@redhat.com>
6261
6262         * utils.h (demangler_vwarning): New declaration.
6263         (demangler_warning): Likewise.
6264         * utils.c (struct internal_problem)
6265         <user_settable_should_quit>: New field.
6266         <user_settable_should_dump_core>: Likewise
6267         (internal_error_problem): Add values for above new fields.
6268         (internal_warning_problem): Likewise.
6269         (demangler_warning_problem): New static global.
6270         (demangler_vwarning): New function.
6271         (demangler_warning): Likewise.
6272         (add_internal_problem_command): Selectively add commands.
6273         (_initialize_utils): New internal problem command.
6274         * maint.c (maintenance_demangler_warning): New function.
6275         (_initialize_maint_cmds): New command.
6276
6277 2014-06-18  Tom Tromey  <tromey@redhat.com>
6278
6279         * f-valprint.c (info_common_command_for_block): Update.
6280         * symtab.h (struct general_symbol_info) <common_block>: Now
6281         const.
6282
6283 2014-06-18  Tom Tromey  <tromey@redhat.com>
6284
6285         * symtab.h (struct symtab) <blockvector>: Now const.
6286         * ada-lang.c (ada_add_global_exceptions): Update.
6287         * buildsym.c (augment_type_symtab): Update.
6288         * dwarf2read.c (dw2_lookup_symbol): Update.
6289         * jit.c (finalize_symtab): Update.
6290         * jv-lang.c (add_class_symtab_symbol): Update.
6291         * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6292         Update.
6293         * objfiles.c (objfile_relocate1): Update.
6294         * psymtab.c (lookup_symbol_aux_psymtabs)
6295         (maintenance_check_psymtabs): Update.
6296         * python/py-symtab.c (stpy_global_block, stpy_static_block):
6297         Update.
6298         * spu-tdep.c (spu_catch_start): Update.
6299         * symmisc.c (dump_symtab_1): Update.
6300         * symtab.c (lookup_global_symbol_from_objfile)
6301         (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6302         (basic_lookup_transparent_type_quick)
6303         (basic_lookup_transparent_type, find_pc_sect_symtab)
6304         (find_pc_sect_line, search_symbols): Update.
6305         * block.c (find_block_in_blockvector): Make "bl" const.
6306         (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6307         const.
6308         (blockvector_contains_pc): Make "bv" const.
6309         (block_for_pc_sect): Update.
6310         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6311         (blockvector_contains_pc): Update.
6312         * breakpoint.c (resolve_sal_pc): Update.
6313         * inline-frame.c (block_starting_point_at): Update.
6314
6315 2014-06-18  Tom Tromey  <tromey@redhat.com>
6316
6317         * completer.c (complete_line): Make "line_buffer" const.
6318         * completer.h (complete_line): Update.
6319
6320 2014-06-18  Tom Tromey  <tromey@redhat.com>
6321
6322         * symtab.c (add_macro_name): Remove unneeded cast.
6323
6324 2014-06-18  Tom Tromey  <tromey@redhat.com>
6325
6326         * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6327         * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6328
6329 2014-06-18  Tom Tromey  <tromey@redhat.com>
6330
6331         * probe.c (info_probes_for_ops): Make "arg" const.
6332         * probe.h (info_probes_for_ops): Update.
6333
6334 2014-06-18  Tom Tromey  <tromey@redhat.com>
6335
6336         * varobj.c (varobj_create): Update.
6337         * valops.c (value_of_this): Update.
6338         * tracepoint.c (add_local_symbols, scope_info): Update.
6339         * symtab.h (struct general_symbol_info) <block>: Now const.
6340         * symtab.c (skip_prologue_sal)
6341         (default_make_symbol_completion_list_break_on)
6342         (skip_prologue_using_sal): Update.
6343         * stack.h (iterate_over_block_locals)
6344         (iterate_over_block_local_vars): Update.
6345         * stack.c (print_frame_args): Update.
6346         (iterate_over_block_locals, iterate_over_block_local_vars): Make
6347         parameter const.
6348         (get_selected_block): Make return type const.
6349         * python/py-frame.c (frapy_block): Update.
6350         * python/py-block.c (gdbpy_block_for_pc): Update.
6351         * p-exp.y (%union) <bval>: Now const.
6352         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6353         * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6354         * m2-exp.y (%union) <bval>: Now const.
6355         * linespec.c (get_current_search_block): Make return type const.
6356         (create_sals_line_offset, find_label_symbols): Update.
6357         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6358         Update.
6359         (block_starting_point_at): Make "block" const.
6360         * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6361         (check_exception_resume): Update.
6362         * guile/scm-frame.c (gdbscm_frame_block): Update.
6363         * guile/scm-block.c (gdbscm_lookup_block): Update.
6364         * frame.h (get_frame_block): Update.
6365         (get_selected_block): Make return type const.
6366         * frame.c (frame_id_inner): Update.
6367         * f-valprint.c (info_common_command_for_block)
6368         (info_common_command): Update.
6369         * dwarf2loc.c (dwarf2_find_location_expression)
6370         (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6371         (locexpr_describe_location_piece): Update.
6372         * c-exp.y (%union) <bval>: Now const.
6373         * breakpoint.c (resolve_sal_pc): Update.
6374         * blockframe.c (get_frame_block):Make return type const.
6375         (get_pc_function_start, get_frame_function, find_pc_sect_function)
6376         (block_innermost_frame): Update.
6377         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6378         (block_for_pc, block_for_pc_sect): Update.
6379         * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6380         'pblock' const.
6381         (block_for_pc_sect, block_for_pc): Make return type const.
6382         * ax-gdb.c (gen_expr): Update.
6383         * alpha-mdebug-tdep.c (find_proc_desc): Update.
6384         * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6385         (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6386         (ada_read_var_value): Update.
6387         * ada-exp.y (struct name_info) <block>: Now const.
6388         (%union): Likewise.
6389         (block_lookup): Constify.
6390
6391 2014-06-18  Gary Benson  <gbenson@redhat.com>
6392
6393         * nat/i386-dregs.h: New file.
6394         * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6395         * i386-nat.h (i386-dregs.h): New include.
6396         (DR_FIRSTADDR): Now in i386-dregs.h.
6397         (DR_LASTADDR): Likewise.
6398         (DR_NADDR): Likewise.
6399         (DR_STATUS): Likewise.
6400         (DR_CONTROL): Likewise.
6401         (i386_debug_reg_state): Likewise.
6402         * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6403
6404 2014-06-18  Don Breazeal  <donb@codesourcery.com>
6405
6406         * breakpoint.c (set_longjmp_breakpoint): Call
6407         momentary_breakpoint_from_master with additional argument.
6408         (set_longjmp_breakpoint_for_call_dummy): Call
6409         momentary_breakpoint_from_master with additional argument.
6410         (set_std_terminate_breakpoint): Call
6411         momentary_breakpoint_from_master with additional argument.
6412         (momentary_breakpoint_from_master): Add argument to function
6413         definition and use it to initialize structure member flag.
6414         (clone_momentary_breakpoint): Call
6415         momentary_breakpoint_from_master with additional argument.
6416         * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6417         member flags set in momentary_breakpoint_from_master.
6418
6419 2014-06-18  Gary Benson  <gbenson@redhat.com>
6420
6421         * i386-nat.c (i386_show_dr): Renamed to
6422         i386_dr_show and made nonstatic.  All uses updated.
6423         (i386_length_and_rw_bits): Renamed to
6424         i386_dr_length_and_rw_bits and made nonstatic.
6425         All uses updated.
6426         (i386_insert_aligned_watchpoint): Renamed to
6427         i386_dr_insert_aligned_watchpoint and made nonstatic.
6428         All uses updated.
6429         (i386_remove_aligned_watchpoint): Renamed to
6430         i386_dr_remove_aligned_watchpoint and made nonstatic.
6431         All uses updated.
6432         (i386_update_inferior_debug_regs): Renamed to
6433         i386_dr_update_inferior_debug_regs and made nonstatic.
6434         All uses updated.
6435
6436 2014-06-18  Gary Benson  <gbenson@redhat.com>
6437
6438         * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6439         (i386_dr_low_can_set_control): Likewise.
6440         (i386_dr_low_set_addr): Likewise.
6441         (i386_dr_low_set_control): Likewise.
6442         (i386_dr_low_get_addr): Likewise.
6443         (i386_dr_low_get_status): Likewise.
6444         (i386_dr_low_get_control): Likewise.
6445         (i386_insert_aligned_watchpoint): Use new macros.
6446         (i386_update_inferior_debug_regs): Likewise.
6447         (i386_stopped_data_address): Likewise.
6448
6449 2014-06-18  Gary Benson  <gbenson@redhat.com>
6450
6451         * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6452         New parameter.  All uses updated.
6453
6454 2014-06-18  Gary Benson  <gbenson@redhat.com>
6455
6456         * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6457         All uses updated.
6458
6459 2014-06-18  Gary Benson  <gbenson@redhat.com>
6460
6461         * i386-nat.c (debug_printf): New macro.
6462         (i386_get_debug_register_length): Likewise.
6463         (TARGET_HAS_DR_LEN_8): Use above macro.
6464         (i386_show_dr): Use debug_printf instead of puts_unfiltered
6465         and printf_unfiltered.  Use phex to format values.
6466
6467 2014-06-18  Gary Benson  <gbenson@redhat.com>
6468
6469         * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6470         Make const.
6471
6472 2014-06-18  Gary Benson  <gbenson@redhat.com>
6473
6474         * i386-nat.c: Comment changes.
6475
6476 2014-06-18  Gary Benson  <gbenson@redhat.com>
6477
6478         * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6479
6480 2014-06-18  Gary Benson  <gbenson@redhat.com>
6481
6482         * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6483         (i386_insert_aligned_watchpoint): Likewise.
6484         (i386_remove_aligned_watchpoint): Likewise.
6485         (i386_handle_nonaligned_watchpoint): Likewise.
6486
6487 2014-06-18  Gary Benson  <gbenson@redhat.com>
6488
6489         * i386-nat.c: Whitespace changes.
6490
6491 2014-06-17  Samuel Bronson  <naesten@gmail.com>
6492
6493         * MAINTAINERS: Update Roland McGrath's email address.
6494         Thanks to Sergio Durigan Junior for pointing out that he left
6495         Red Hat a while ago, and giving me a current address.
6496
6497 2014-06-17  Tom Tromey  <tromey@redhat.com>
6498
6499         * utils.h (savestring): Remove declaration.
6500
6501 2014-06-17  Tom Tromey  <tromey@redhat.com>
6502
6503         * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6504
6505 2014-06-16  Keith Seitz  <keiths@redhat.com>
6506
6507         PR mi/15863
6508         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6509         to update the varobj if inferior_ptid is null_ptid.
6510
6511 2014-06-16  Tom Tromey  <tromey@redhat.com>
6512
6513         * target.h (struct target_ops) <to_info_proc>: Make parameter
6514         const.
6515         (target_info_proc): Update.
6516         * target.c (target_info_proc): Make "args" const.
6517         * procfs.c (procfs_info_proc): Update.
6518         * linux-tdep.c (linux_info_proc): Update.
6519         (linux_core_info_proc_mappings): Make "args" const.
6520         (linux_core_info_proc): Update.
6521         * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6522         * gdbarch.c: Rebuild.
6523         * gdbarch.h: Rebuild.
6524         * corelow.c (core_info_proc): Update.
6525
6526 2014-06-16  Tom Tromey  <tromey@redhat.com>
6527
6528         * target.h (struct target_ops) <to_disconnect>: Make parameter
6529         const.
6530         (target_disconnect): Update.
6531         * target.c (target_disconnect): Make "args" const.
6532         * target-delegates.c: Rebuild.
6533         * remote.c (remote_disconnect): Update.
6534         * record.h (record_disconnect): Update.
6535         * record.c (record_disconnect): Update.
6536         * inf-child.c (inf_child_disconnect): Update.
6537
6538 2014-06-16  Tom Tromey  <tromey@redhat.com>
6539
6540         * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6541         * target.c (debug_to_rcmd, default_rcmd): Update.
6542         * target-delegates.c: Rebuild.
6543         * remote.c (remote_rcmd): Update.
6544         * monitor.c (monitor_rcmd): Update.
6545
6546 2014-06-16  Pedro Alves  <palves@redhat.com>
6547
6548         * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6549         (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6550         have OBJF_SHARED set.
6551         * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6552         (shared_objfile_contains_address_p): ... this.  Check OBJF_SHARED
6553         instead of OBJF_USERLOADED.
6554         * objfiles.h (OBJF_SHARED): Update comment.
6555         (userloaded_objfile_contains_address_p): Rename to ...
6556         (shared_objfile_contains_address_p): ... this, and update
6557         comments.
6558         * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6559         new objfile.
6560         (remove_symbol_file_command): Skip objfiles that don't have
6561         OBJF_SHARED set.
6562
6563 2014-06-16  Tom Tromey  <tromey@redhat.com>
6564
6565         * minsyms.h (prim_record_minimal_symbol)
6566         (prim_record_minimal_symbol_and_info): Update comments.
6567
6568 2014-06-14  Eli Zaretskii  <eliz@gnu.org>
6569
6570         * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6571         or --without-guile, according to how GDB was built.
6572
6573 2014-06-13  Tom Tromey  <tromey@redhat.com>
6574
6575         * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6576         to help_list.
6577         * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6578         to help_list.
6579         * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6580         help_list.
6581         * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6582         help_list.Pass all_commands, not -1, to help_list.
6583         * cli/cli-dump.c (dump_command, append_command)
6584         (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6585         (binary_dump_command, binary_append_command): Pass all_commands,
6586         not -1, to help_list.
6587         * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6588         -1, to help_list.
6589         * valprint.c (set_print, set_print_raw): Pass all_commands, not
6590         -1, to help_list.
6591         * typeprint.c (set_print_type): Pass all_commands, not -1, to
6592         help_list.
6593         * top.c (set_history): Pass all_commands, not -1, to help_list.
6594         * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6595         all_commands, not -1, to help_list.
6596         * symfile.c (overlay_command): Pass all_commands, not -1, to
6597         help_list.
6598         * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6599         help_list.
6600         * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6601         help_list.
6602         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6603         -1, to help_list.
6604         * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6605         not -1, to help_list.
6606         * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6607         not -1, to help_list.
6608         * maint.c (maintenance_command, maintenance_info_command)
6609         (maintenance_print_command, maintenance_set_cmd): Pass
6610         all_commands, not -1, to help_list.
6611         * macrocmd.c (macro_command): Pass all_commands, not -1, to
6612         help_list.
6613         * language.c (set_check): Pass all_commands, not -1, to help_list.
6614         * infcmd.c (unset_command): Pass all_commands, not -1, to
6615         help_list.
6616         * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6617         help_list.
6618         * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6619         help_list.
6620         * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6621         help_list.
6622         * breakpoint.c (save_command): Pass all_commands, not -1, to
6623         help_list.
6624         * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6625         all_commands, not -1, to help_list.
6626
6627 2014-06-12  Pierre Langlois  <pierre.langlois@embecosm.com>
6628
6629         * regcache.c (struct register_to_invalidate): New structure.
6630         (do_register_invalidate, make_cleanup_regcache_invalidate): New
6631         functions.
6632         (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6633
6634 2014-06-12  Yao Qi  <yao@codesourcery.com>
6635
6636         * varobj.c (varobj_get_num_children): Call
6637         varobj_is_dynamic_p.
6638         (varobj_list_children): Likewise.
6639         (varobj_update): Likewise.  Update comments.
6640
6641 2014-06-12  Yao Qi  <yao@codesourcery.com>
6642
6643         * varobj.c (varobj_pretty_printed_p): Rename to ...
6644         (varobj_is_dynamic_p): ... this.  New function.
6645         * varobj.h (varobj_pretty_printed_p): Remove declaration.
6646         (varobj_is_dynamic_p): Declare.
6647         * mi/mi-cmd-var.c (print_varobj): All callers updated.
6648         (mi_print_value_p, varobj_update_one): Likewise.
6649
6650 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
6651             Yao Qi  <yao@codesourcery.com>
6652
6653         * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6654         (varobj_get_iterator): Wrap up code for pretty-printer by
6655         "#if HAVE_PYTHON" and "#endif".
6656         (update_dynamic_varobj_children): Likewise.
6657
6658 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
6659             Yao Qi  <yao@codesourcery.com>
6660
6661         * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6662         gdb_python_initialized is false.  Move some code from varobj.c.
6663         * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6664         * varobj.c: Move "varobj-iter.h" inclusion earlier.
6665         (struct varobj_item): Moved to varobj-iter.h".
6666         (varobj_clear_saved_item): New function.
6667         (update_dynamic_varobj_children): Move python-related code to
6668         py-varobj.c.
6669         (free_variable): Call varobj_clear_saved_item and
6670         varobj_iter_delete.
6671
6672 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
6673             Yao Qi  <yao@codesourcery.com>
6674
6675         * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6676         (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6677         (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6678         (py-varobj.o): New rule.
6679         * python/py-varobj.c: New file.
6680         * python/python-internal.h (py_varobj_get_iterator): Declare.
6681         * varobj-iter.h: New file.
6682         * varobj.c: Include "varobj-iter.h"
6683         (struct varobj) <child_iter>: Change its type from "PyObject *"
6684         to "struct varobj_iter *".
6685         <saved_item>: Likewise.
6686         [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6687         [HAVE_PYTHON] (varobj_get_iterator): New function.
6688         (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6689         python-specific code to python/py-varobj.c.
6690         (install_visualizer): Call varobj_iter_delete instead of
6691         Py_XDECREF.
6692         * varobj.h (varobj_ensure_python_env): Declare.
6693
6694 2014-06-12  Yao Qi  <yao@codesourcery.com>
6695
6696         * varobj.c (struct varobj_item): New structure.
6697         (create_child_with_value): Update declaration.
6698         (varobj_add_child): Replace arguments 'name' and 'value' with
6699         'item'.  All callers updated.
6700         (install_dynamic_child): Likewise.
6701         (update_dynamic_varobj_children): Likewise.
6702         (varobj_add_child): Likewise.
6703         (create_child_with_value): Likewise.
6704
6705 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
6706
6707         * NEWS: Create a new section for the next release branch.
6708         Rename the section of the current branch, now that it has
6709         been cut.
6710
6711 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
6712
6713         GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6714         * version.in: Bump version to 7.8.50.DATE-cvs.
6715
6716 2014-06-11  Pedro Alves  <palves@redhat.com>
6717
6718         PR remote/17028
6719         * ser-mingw.c (net_windows_socket_check_pending): New function.
6720         (net_windows_select_thread): Ignore spurious wakeups.  Use
6721         net_windows_socket_check_pending.
6722         (net_windows_wait_handle): Check for pending events with
6723         ioctlsocket, through net_windows_socket_check_pending, instead of
6724         checking the socket's event.
6725
6726 2014-06-10  Siva Chandra Reddy  <sivachandra@google.com>
6727
6728         * python/python-internal.h (gdb_PyObject_GetAttrString)
6729         (gdb_PyObject_HasAttrString): New inline function definitions.
6730         * py-value.c (get_field_flag): Remove the now unnecessary cast to
6731         char * of the second argument to PyObject_GetAttrString.
6732
6733 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
6734
6735         * serial.c (serial_write): Fix index of character to be printed
6736         in call to serial_logchar when serial debug traces are enabled.
6737
6738 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
6739
6740         * gdbtypes (resolve_dynamic_range): Add function description.
6741
6742 2014-06-09  Pedro Alves  <palves@redhat.com>
6743
6744         * linux-nat.c (linux_child_follow_fork): Initialize status with
6745         W_STOPCODE (0) instead of 0.  Remove shodowing 'status' local from
6746         inner block.  Only pass the signal to PTRACE_DETACH if in pass
6747         state.
6748
6749 2014-06-09  Gary Benson  <gbenson@redhat.com>
6750
6751         * common/signals.c (gdb_signal_from_host): Reorder to separate
6752         the always-available ANSI-standard signals from the signals that
6753         require checking.
6754         (do_gdb_signal_to_host): Likewise.
6755         * proc-events.c (signal_table): Likewise.
6756
6757 2014-06-08  Hui Zhu  <hui@codesourcery.com>
6758
6759         * common/linux-ptrace.c (linux_disable_event_reporting): New
6760         function.
6761         * common/linux-ptrace.h (linux_disable_event_reporting): New
6762         declaration.
6763         * linux-nat.c (linux_child_follow_fork): Do a single step before
6764         detach.
6765
6766 2014-06-07  Keith Seitz  <keiths@redhat.com>
6767
6768         Revert:
6769         PR c++/16253
6770         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6771         from symbol_matches_domain in symtab.c. All local callers
6772         of symbol_matches_domain updated.
6773         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6774         search STRUCT_DOMAIN.
6775         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6776         independently.  standard_lookup will do that automatically.
6777         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6778         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6779         (cp_lookup_symbol_in_namespace): Likewise.
6780         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6781         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6782         may return a STRUCT_DOMAIN match.
6783         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6784         * cp-support.c: Include language.h.
6785         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6786         VAR_DOMAIN.
6787         * psymtab.c (match_partial_symbol): Compare the requested
6788         domain with the symbol's domain directly.
6789         (lookup_partial_symbol): Likewise.
6790         * symtab.c (lookup_symbol_in_language): Explain when/why
6791         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6792         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6793         appropriate languages.
6794         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6795         and moved to ada-lang.c
6796         (lookup_block_symbol): Explain that this function only returns
6797         symbol matching the requested DOMAIN.
6798         Compare the requested domain with the symbol's domain directly.
6799         (iterate_over_symbols): Compare the requested domain with the
6800         symbol's domain directly.
6801         * symtab.h (symbol_matches_domain): Remove.
6802
6803 2014-06-06  Doug Evans  <xdje42@gmail.com>
6804
6805         * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6806         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6807         (gdbscm_guile_version_is_at_least): Declare.
6808         (gdbscm_scm_string_to_int): Declare.
6809         * guile/guile.c (gdbscm_guile_major_version): New global.
6810         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6811         (guile_datadir): New static global.
6812         (gdbscm_guile_data_directory): New function.
6813         (initialize_scheme_side): Update.
6814         (misc_guile_functions): Add guile-data-directory.
6815         (initialize_gdb_module): Fetch guile version number.
6816         * guile/lib/gdb.scm: Remove call to add-to-load-path.
6817         * guile/lib/gdb/init.scm (%initialize!): Ditto.
6818         * guile/lib/gdb/boot.scm: Use guile-data-directory.
6819         * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6820         comments.
6821         * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6822         * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6823         * guile/scm-value.c (gdbscm_value_to_string): Only call
6824         scm_port_conversion_strategy if Guile version >= 2.0.6.
6825
6826 2014-06-06  Mingjie Xing  <mingjie.xing@gmail.com>
6827
6828         * main.c (print_gdb_help): Add -q and --silent.
6829
6830 2014-06-06  Gary Benson  <gbenson@redhat.com>
6831
6832         * common/signals.c: Remove preprocessor conditionals for
6833         always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6834         SIGSEGV and SIGTERM.
6835         * proc-events.c: Likewise.
6836
6837 2014-06-06  Markus Metzger  <markus.t.metzger@intel.com>
6838
6839         * symfile.c (symfile_free_objfile): Remove restriction to
6840         OBJF_USERLOADED.
6841         * symfile-mem.c (symbol_file_add_from_memory): Call
6842         add_target_sections_of_objfile.
6843
6844 2014-06-05  Ludovic Courtès  <ludo@gnu.org>
6845
6846         * guile/scm-value.c (gdbscm_history_append_x): Use
6847         'vlscm_get_value_smob_arg_unsafe' instead of
6848         'vlscm_scm_to_value'.
6849
6850 2014-06-05  Simon Marchi  <simon.marchi@ericsson.com>
6851
6852         PR mi/15806
6853         * utils.c (printchar): Don't escape at all if quoter is NUL.
6854         Update function documentation to clarify effect of parameter
6855         QUOTER.
6856         * remote.c (escape_buffer): Pass '\\' as the quoter to
6857         fputstrn_unfiltered.
6858         * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6859         generate the output.
6860         (mi_solib_unloaded): Same.
6861
6862 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
6863
6864         * development.sh: Delete.
6865         * Makefile.in (config.status): Adjust dependency on development.sh.
6866         * configure.ac: Adjust development.sh source call.
6867         * configure: Regenerate.
6868
6869 2014-06-04  Doug Evans  <xdje42@gmail.com>
6870
6871         * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6872         is_scheme_bkpt, spec.
6873         (bpscm_make_breakpoint_smob): Initialize new members.
6874         (gdbscm_create_breakpoint_x): Split into two ...
6875         (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6876         (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6877         (scheme_function breakpoint_functions): Update.
6878         * guile/lib/gdb.scm: Delete create-breakpoint!.  Rename
6879         breakpoint-delete! to delete-breakpoint!.  Add make-breakpoint,
6880         register-breakpoint!.
6881
6882 2014-06-04  Joel Brobecker  <brobecker@adacorer.com>
6883
6884         PR server/17023
6885         * mem-break.c (z_type_supported): Return zero if
6886         THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6887
6888 2014-06-04  Tom Tromey  <tromey@redhat.com>
6889
6890         * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6891         value_from_contents_and_address_unresolved.
6892         (ada_template_to_fixed_record_type_1): Likewise.
6893         (ada_which_variant_applies): Likewise.
6894         * value.h (value_from_contents_and_address_unresolved): Declare.
6895         * value.c (value_from_contents_and_address_unresolved): New
6896         function.
6897         * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6898         <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6899         (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6900
6901 2014-06-04  Tom Tromey  <tromey@redhat.com>
6902
6903         * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6904
6905 2014-06-04  Tom Tromey  <tromey@redhat.com>
6906
6907         * procfs.c (procfs_attach): Make "args" const.
6908         * windows-nat.c (windows_attach): Make "args" const.
6909         * nto-procfs.c (procfs_attach): Make "args" const.
6910         * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6911         * go32-nat.c (go32_attach): Make "args" const.
6912         * gnu-nat.c (gnu_attach): Make "args" const.
6913         * darwin-nat.c (darwin_attach): Make "args" const.
6914         * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6915         * linux-nat.c (linux_nat_attach): Make "args" const.
6916         * remote.c (extended_remote_attach_1, extended_remote_attach):
6917         Make "args" const.
6918         * target.h (struct target_ops) <to_attach>: Make "args" const.
6919         (find_default_attach): Likewise.
6920         * utils.c (parse_pid_to_attach): Make "args" const.
6921         * utils.h (parse_pid_to_attach): Update.
6922
6923 2014-06-04  Tom Tromey  <tromey@redhat.com>
6924
6925         * target-delegates.c: Rebuild.
6926         * target.c (default_thread_address_space): New function.
6927         (target_thread_address_space): Simplify.
6928         * target.h (struct target_ops) <to_thread_address_space>: Add
6929         TARGET_DEFAULT_FUNC.
6930
6931 2014-06-04  Doug Evans  <xdje42@gmail.com>
6932
6933         * guile/scm-type.c (type_smob): Remove duplicate typedef.
6934
6935 2014-06-04  Markus Metzger  <markus.t.metzger@intel.com>
6936
6937         * record-btrace.c: Include event-loop.h and inf-loop.h.
6938         (record_btrace_resume_exec_dir)
6939         (record_btrace_async_inferior_event_handler)
6940         (record_btrace_handle_async_inferior_event): New.
6941         (record_btrace_open): Create async event handler.
6942         (record_btrace_close): Delete async event handler.
6943         (record_btrace_resume): Set record_btrace_resume_exec_dir,
6944         Mark async event handler.
6945         (record_btrace_execution_direction): New.
6946         (init_record_btrace_ops): Initialize to_execution_direction.
6947
6948 2014-06-03  Doug Evans  <xdje42@gmail.com>
6949
6950         * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6951         (gdbscm_make_parameter): Ditto.
6952
6953 2014-06-03  Doug Evans  <dje@google.com>
6954
6955         * exec.c (exec_close_1): Call clear_section_table instead of
6956         resize_section_table.
6957         (clear_section_table): New function.
6958         (resize_section_table): Make static.  Rename arg num_added to
6959         adjustment.
6960         * exec.h (clear_section_table): Declare.
6961         (resize_section_table): Delete.
6962         * progspace.c (release_program_space): Call clear_section_table
6963         instead of resize_section_table.
6964
6965 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
6966
6967         * NEWS (Python Scripting): Add entry about the new xmethods
6968         feature.
6969
6970 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
6971
6972         * python/py-xmethods.c: New file.
6973         * python/py-objfile.c (objfile_object): New field 'xmethods'.
6974         (objfpy_dealloc): XDECREF on the new xmethods field.
6975         (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6976         field.
6977         (objfpy_get_xmethods): New function.
6978         (objfile_getset): New entry 'xmethods'.
6979         * python/py-progspace.c (pspace_object): New field 'xmethods'.
6980         (pspy_dealloc): XDECREF on the new xmethods field.
6981         (pspy_new, pspace_to_pspace_object): Initialize xmethods
6982         field.
6983         (pspy_get_xmethods): New function.
6984         (pspace_getset): New entry 'xmethods'.
6985         * python/python-internal.h: Add declarations for new functions.
6986         * python/python.c (_initialize_python): Invoke
6987         gdbpy_initialize_xmethods.
6988         * python/lib/gdb/__init__.py (xmethods): New
6989         attribute.
6990         * python/lib/gdb/xmethod.py: New file.
6991         * python/lib/gdb/command/xmethods.py: New file.
6992
6993 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
6994
6995         * eval.c (evaluate_subexp_standard): Call the xmethod if the
6996         best match method returned by find_overload_match is an xmethod.
6997         * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6998         the best matching operator returned by find_overload_match is an
6999         xmethod.
7000         * valops.c: #include "extension.h".
7001         (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7002         Return void.  The list of matching source methods is returned in
7003         "fn_list" and a vector of matching debug method workers is
7004         returned in "xm_worker_vec".  Update all callers.
7005         (value_find_oload_method_list): Likewise.
7006         (find_oload_champ): Add "xm_worker_vec" parameter.  If it is
7007         non-NULL, then the index of the best matching method in this
7008         vector is returned.  Update all callers.
7009         (find_overload_match): Include xmethods while performing overload
7010         resolution.
7011
7012 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
7013
7014         * defs.h (enum lval_type): New enumerator "lval_xcallable".
7015         * extension-priv.h (struct extension_language_ops): Add the
7016         xmethod interface.
7017         * extension.c (new_xmethod_worker, clone_xmethod_worker,
7018         get_matching_xmethod_workers, get_xmethod_argtypes,
7019         invoke_xmethod, free_xmethod_worker,
7020         free_xmethod_worker_vec): New functions.
7021         * extension.h: #include "common/vec.h".
7022         New function declarations.
7023         (struct xmethod_worker): New struct.
7024         (VEC (xmethod_worker_ptr)): New vector type.
7025         (xmethod_worker_ptr): New typedef.
7026         (xmethod_worker_vec): Likewise.
7027         * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7028         builtin_type.
7029         * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7030         (struct builtin_type): New field "xmethod".
7031         * valarith.c (value_ptradd): Assert that the value argument is not
7032         lval_xcallable.
7033         * valops.c (value_must_coerce_to_target): Return 0 for
7034         lval_xcallable values.
7035         * value.c (struct value): New field XM_WORKER in the field
7036         LOCATION.
7037         (value_address, value_raw_address): Return 0 for lval_xcallable
7038         values.
7039         (set_value_address): Assert that the value is not an
7040         lval_xcallable.
7041         (value_free): Free the associated xmethod worker when freeing
7042         lval_xcallable values.
7043         (set_value_component_location): Assert that the WHOLE value is not
7044         lval_xcallable.
7045         (value_of_xmethod, call_xmethod): New functions.
7046         * value.h: Declare "struct xmethod_worker".
7047         Declare new functions value_of_xmethod, call_xmethod.
7048
7049 2014-06-03  Joel Brobecker  <brobecker@adacore.com>
7050             Pedro Alves  <palves@redhat.com>
7051
7052         PR breakpoints/17000
7053         * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7054         New function, extracted from software_breakpoint_inserted_here_p.
7055         (software_breakpoint_inserted_here_p): Replace factored out code
7056         by call to find_non_raw_software_breakpoint_inserted_here.
7057         (bp_target_info_copy_insertion_state): New function.
7058         (bkpt_insert_location): Handle the case of a single-step
7059         breakpoint already inserted at the same address.
7060         (bkpt_remove_location): Handle the case of a single-step
7061         breakpoint still inserted at the same address.
7062         (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7063         breakpoint already inserted at the same address.
7064         (deprecated_remove_raw_breakpoint): Handle the case of a
7065         non-raw breakpoint still inserted at the same address.
7066         (find_single_step_breakpoint): New function, extracted from
7067         single_step_breakpoint_inserted_here_p.
7068         (find_single_step_breakpoint): New function,
7069         factored out from single_step_breakpoint_inserted_here_p.
7070         (single_step_breakpoint_inserted_here_p): Reimplement.
7071
7072 2014-06-03  Brad Mouring  <bmouring@ni.com>  (tiny patch)
7073
7074         Pushed by Joel Brobecker  <brobecker@adacore.com>
7075         * source.c (show_substitute_path_command): Fix display of matching
7076         substitution rules.
7077
7078 2014-06-03  Gary Benson  <gbenson@redhat.com>
7079
7080         * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7081
7082 2014-06-02  Doug Evans  <xdje42@gmail.com>
7083
7084         Add parameter support for Guile.
7085         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7086         (SUBDIR_GUILE_SRCS): Add scm-param.c.
7087         (scm-param.o): New rule.
7088         * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7089         (gdbscm_misc_error): Declare.
7090         (gdbscm_canonicalize_command_name): Declare.
7091         (gdbscm_scm_to_host_string): Declare.
7092         (gdbscm_scm_from_host_string): Declare.
7093         (gdbscm_initialize_parameters): Declare.
7094         * guile/guile.c (initialize_gdb_module): Call
7095         gdbscm_initialize_parameters.
7096         * guile/lib/gdb.scm: Export parameter symbols.
7097         * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7098         cmdscm_canonicalize_name and made public.  All callers updated.
7099         * guile/scm-exception.c (gdbscm_misc_error): New function.
7100         * guile/scm-param.c: New file.
7101         * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7102         (gdbscm_scm_to_host_string): New function.
7103         (gdbscm_scm_from_host_string): New function.
7104         * scm-utils.c (gdbscm_gc_dup_argv): New function.
7105
7106 2014-06-02  Doug Evans  <xdje42@gmail.com>
7107
7108         Add command support for Guile.
7109         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7110         (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7111         (scm-cmd.o): New rule.
7112         * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7113         (gdbscm_user_error_p): Declare.
7114         (gdbscm_parse_command_name): Declare.
7115         (gdbscm_valid_command_class_p): Declare.
7116         (gdbscm_initialize_commands): Declare.
7117         * guile/guile.c (initialize_gdb_module): Call
7118         gdbscm_initialize_commands.
7119         * guile/lib/gdb.scm: Export command symbols.
7120         * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7121         (throw-user-error): New function.
7122         * guile/scm-cmd.c: New file.
7123         * guile/scm-exception.c (user_error_symbol): New static global.
7124         (gdbscm_user_error_p): New function.
7125         (gdbscm_initialize_exceptions): Set user_error_symbol.
7126         * scm-utils.c (gdbscm_gc_xstrdup): New function.
7127
7128 2014-06-02  Phil Muldoon  <pmuldoon@redhat.com>
7129
7130         * top.c (command_loop): Handle comments here...
7131         (command_line_input): ... not here.
7132
7133 2014-06-02  Doug Evans  <xdje42@gmail.com>
7134
7135         Add progspace support for Guile.
7136         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7137         (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7138         (scm-progspace.o): New rule.
7139         * guile/guile-internal.h (pspace_smob): New typedef.
7140         (psscm_pspace_smob_pretty_printers): Declare.
7141         (psscm_pspace_smob_from_pspace): Declare.
7142         (psscm_scm_from_pspace): Declare.
7143         * guile/guile.c (initialize_gdb_module): Call
7144         gdbscm_initialize_pspaces.
7145         * guile/lib/gdb.scm: Export progspace symbols.
7146         * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7147         support.
7148         (append-pretty-printer!): Ditto.
7149         * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7150         Implement.
7151         * guile/scm-progspace.c: New file.
7152
7153 2014-06-03  Alan Modra  <amodra@gmail.com>
7154
7155         * ppc64-tdep.c (ppc64_standard_linkage8): New.
7156         (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7157
7158 2014-06-02  Doug Evans  <dje@google.com>
7159
7160         Add support for skeletonless type units.
7161         * dwarf2read.c (struct dwarf2_per_objfile): New member
7162         n_allocated_type_units.
7163         (struct dwarf2_per_objfile) <tu_stats>: New member
7164         nr_all_type_units_reallocs.
7165         (create_signatured_type_table_from_index): Initialize
7166         n_allocated_type_units
7167         (create_all_type_units): Ditto.
7168         (add_type_unit): Move up in file.  New arg slot.
7169         All callers updated.  Increase space for all_type_units more
7170         efficiently.
7171         (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7172         (lookup_dwo_signatured_type): Handle skeletonless TUs.
7173         (lookup_dwp_signatured_type): Ditto.
7174         (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7175         All callers updated.
7176         (build_type_psymtabs_1): Leave type_unit_groups as
7177         NULL if no TUs present.
7178         (print_tu_stats): New function.
7179         (process_skeletonless_type_unit): New function.
7180         (process_dwo_file_for_skeletonless_type_units): New
7181         function.
7182         (process_skeletonless_type_units): New function.
7183         (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7184         Call print tu_stats if debugging enabled.
7185
7186 2014-06-02  Pedro Alves  <palves@redhat.com>
7187
7188         * breakpoint.c (build_target_command_list): Don't build a command
7189         list if we have any duplicate location that isn't a dprintf.
7190
7191 2014-06-02  Pedro Alves  <palves@redhat.com>
7192
7193         * breakpoint.c (dprintf_breakpoint_hit): New function.
7194         (initialize_breakpoint_ops): Install it as dprintf's
7195         breakpoint_hit method.
7196
7197 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
7198
7199         * source.c (substitute_path_rule_matches): Simplify using
7200         filename_ncmp instead of FILENAME_CMP.
7201
7202 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
7203
7204         * source.c (substitute_path_rule_matches): Remove trailing spaces.
7205
7206 2014-06-01  Ludovic Courtès  <ludo@gnu.org>
7207
7208         * configure.ac: When Guile is available, check for the
7209         availability of 'scm_new_smob'.
7210         * configure, config.h.in: Regenerate.
7211         * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7212         function.
7213
7214 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
7215
7216         * frame.c (struct frame_info): Add stop_string field.
7217         (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7218         (get_prev_frame_always): Old content moved into
7219         get_prev_frame_always_1.  Call get_prev_frame_always_1 inside
7220         TRY_CATCH, handle MEMORY_ERROR exceptions.
7221         (frame_stop_reason_string): New function definition.
7222         * frame.h (unwind_stop_reason_to_string): Extend comment to
7223         mention frame_stop_reason_string.
7224         (frame_stop_reason_string): New function declaration.
7225         * stack.c (frame_info): Switch to frame_stop_reason_string.
7226         (backtrace_command_1): Switch to frame_stop_reason_string.
7227         * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7228         (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7229         * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7230
7231 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
7232
7233         * frame.c (frame_stop_reason_string): Rename to ...
7234         (unwind_stop_reason_to_string): this.
7235         * frame.h (frame_stop_reason_string): Rename to ...
7236         (unwind_stop_reason_to_string): this.
7237         * stack.c (frame_info): Update call to frame_stop_reason_string.
7238         (backtrace_command_1): Likewise.
7239         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7240         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7241
7242 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
7243
7244         * frame.c (remove_prev_frame): New function.
7245         (get_prev_frame_if_no_cycle): Create / discard cleanup using
7246         remove_prev_frame.
7247
7248 2014-05-29  Pedro Alves  <palves@redhat.com>
7249
7250         * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7251         and make it const.  When a single-step decays to a continue,
7252         clear 'step', not 'hw_step'.  Pass whether the caller wanted
7253         to step to user_visible_resume_ptid, not what we ask the
7254         target to do.
7255
7256 2014-05-29  Pedro Alves  <palves@redhat.com>
7257
7258         * infrun.c (process_event_stop_test, handle_step_into_function)
7259         (handle_step_into_function_backward): Adjust.
7260         Don't set the even thread's stop_step and call stop_waiting before
7261         calling end_stepping_range.  Instead do that ...
7262         (end_stepping_range): ... here.  Take an ecs pointer parameter.
7263
7264 2014-05-29  Pedro Alves  <palves@redhat.com>
7265
7266         * infrun.c (stop_stepping): Rename to ...
7267         (stop_waiting): ... this.
7268         (proceed): Update comment.
7269         (process_event_stop_test, handle_inferior_event)
7270         (handle_signal_stop, handle_step_into_function)
7271         (handle_step_into_function_backward): Update.
7272
7273 2014-05-29  Pedro Alves  <palves@redhat.com>
7274
7275         * infcall.c (run_inferior_call): Don't check whether the current
7276         thread is running after the proceed call.
7277
7278 2014-05-29  Pedro Alves  <palves@redhat.com>
7279             Tom Tromey  <tromey@redhat.com>
7280
7281         * NEWS: Mention "maint set target-async", "set mi-async", and that
7282         background execution commands are now always available.
7283         * target.h (target_async_permitted): Update comment.
7284         * target.c (target_async_permitted, target_async_permitted_1):
7285         Default to 1.
7286         (set_target_async_command): Rename to ...
7287         (maint_set_target_async_command): ... this.
7288         (show_target_async_command): Rename to ...
7289         (maint_show_target_async_command): ... this.
7290         (_initialize_target): Adjust.
7291         * infcmd.c (prepare_execution_command): Make extern.
7292         * inferior.h (prepare_execution_command): Declare.
7293         * infrun.c (set_observer_mode): Leave target async alone.
7294         * mi/mi-interp.c (mi_interpreter_init): Install
7295         mi_on_sync_execution_done as sync_execution_done observer.
7296         (mi_on_sync_execution_done): New function.
7297         (mi_execute_command_input_handler): Don't print the prompt if we
7298         just started a synchronous command with an async target.
7299         (mi_on_resume): Check sync_execution before printing prompt.
7300         * mi/mi-main.h (mi_async_p): Declare.
7301         * mi/mi-main.c: Include gdbcmd.h.
7302         (mi_async_p): New function.
7303         (mi_async, mi_async_1): New globals.
7304         (set_mi_async_command, show_mi_async_command, mi_async): New
7305         functions.
7306         (exec_continue): Call prepare_execution_command.
7307         (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7308         (mi_execute_async_cli_command): Use mi_async_p.
7309         (_initialize_mi_main): Install "set mi-async".  Make
7310         "target-async" a deprecated alias.
7311
7312 2014-05-29  Pedro Alves  <palves@redhat.com>
7313
7314         * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7315         (_initialize_cli_interp): Adjust.
7316         * event-loop.c: Include "observer.h".
7317         (start_event_loop): Notify 'command_error' observers instead of
7318         calling display_gdb_prompt.  Remove FIXME comment.
7319         * event-top.c (display_gdb_prompt): Remove call into the
7320         interpreters.
7321         * inf-loop.c: Include "observer.h".
7322         (inferior_event_handler): Notify 'command_error' observers instead
7323         of calling display_gdb_prompt.
7324         * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7325         observers instead of calling display_gdb_prompt.
7326         * interps.c (interp_set): Don't call display_gdb_prompt.
7327         (current_interp_display_prompt_p): Delete.
7328         * interps.h (interp_prompt_p): Delete declaration.
7329         (interp_prompt_p_ftype): Delete.
7330         (struct interp_procs) <prompt_proc_p>: Delete field.
7331         (current_interp_display_prompt_p): Delete declaration.
7332         * mi-interp.c (mi_interpreter_prompt_p): Delete.
7333         (_initialize_mi_interp): Adjust.
7334         * tui-interp.c (tui_init): Install 'sync_execution_done' and
7335         'command_error' observers.
7336         (tui_on_sync_execution_done, tui_on_command_error): New
7337         functions.
7338         (tui_display_prompt_p): Delete.
7339         (_initialize_tui_interp): Adjust.
7340
7341 2014-05-29  Pedro Alves  <palves@redhat.com>
7342
7343         PR gdb/13860
7344         * cli/cli-interp.c: Include infrun.h and observer.h.
7345         (cli_uiout, cli_interp): New globals.
7346         (cli_on_signal_received, cli_on_end_stepping_range)
7347         (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7348         functions.
7349         (cli_interpreter_init): Install them as 'end_stepping_range',
7350         'signal_received' 'signal_exited', 'exited' and 'no_history'
7351         observers.
7352         (_initialize_cli_interp): Remove cli_interp local.
7353         * infrun.c (handle_inferior_event): Call the several stop reason
7354         observers instead of printing the stop reason directly.
7355         (end_stepping_range): New function.
7356         (print_end_stepping_range_reason, print_signal_exited_reason)
7357         (print_exited_reason, print_signal_received_reason)
7358         (print_no_history_reason): Make static, and add an uiout
7359         parameter.  Print to that instead of to CURRENT_UIOUT.
7360         * infrun.h (print_end_stepping_range_reason)
7361         (print_signal_exited_reason, print_exited_reason)
7362         (print_signal_received_reason print_no_history_reason): New
7363         declarations.
7364         * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7365         'mi_uiout'.
7366         <cli_uiout>: New field.
7367         * mi/mi-interp.c (mi_interpreter_init): Adjust.  Create the new
7368         uiout for CLI output.  Install 'signal_received',
7369         'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7370         observers.
7371         (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7372         (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7373         (mi_on_no_history): New functions.
7374         (ui_out_free_cleanup): Delete function.
7375         (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7376         instead use the one already stored in the MI interpreter data.
7377         (mi_ui_out): Adjust.
7378         * tui/tui-interp.c: Include infrun.h and observer.h.
7379         (tui_interp): New global.
7380         (tui_on_signal_received, tui_on_end_stepping_range)
7381         (tui_on_signal_exited, tui_on_exited)
7382         (tui_on_no_history): New functions.
7383         (tui_init): Install them as 'end_stepping_range',
7384         'signal_received' 'signal_exited', 'exited' and 'no_history'
7385         observers.
7386         (_initialize_tui_interp): Delete tui_interp local.
7387
7388 2014-05-29  Pedro Alves  <palves@redhat.com>
7389
7390         PR gdb/15713
7391         * linux-nat.c (linux_nat_resume_callback): Rename the second
7392         parameter to 'except'.  Skip LP if it points to EXCEPT.
7393         (linux_nat_resume): Don't mark the event lwp as not stopped
7394         before resuming sibling lwps.  Instead ask
7395         linux_nat_resume_callback to skip the event lwp.  Mark it as not
7396         stopped after actually resuming it.
7397         (linux_handle_syscall_trap): Mark the lwp as not stopped after
7398         resuming it.
7399         (wait_lwp): Mark the lwp as stopped here.
7400         (stop_wait_callback): Mark the lwp as not stopped right after
7401         resuming it.  Don't mark lwps as stopped here.
7402         (linux_nat_filter_event): Mark the lwp as stopped earlier.
7403         (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7404
7405 2014-05-29  Pedro Alves  <palves@redhat.com>
7406
7407         PR PR15693
7408         * infrun.c (resume): Determine how much to resume depending on
7409         whether the caller wanted a step, not whether we can hardware step
7410         the target.  Mark all threads that we intend to run as running,
7411         unless we're calling an inferior function.
7412         (normal_stop): If the thread is running an infcall, don't finish
7413         thread state.
7414         * target.c (target_resume): Don't mark threads as running here.
7415
7416 2014-05-28  Joel Brobecker  <brobecker@adacore.com>
7417
7418         * serial.c (_initialize_serial): Remove support for
7419         the "set remotebaud" and "show remotebaud" commands.
7420         * NEWS: Add entry documenting the removal of that command.
7421
7422 2014-05-28  Yao Qi  <yao@codesourcery.com>
7423
7424         * charset.c: Fix typo in comments.
7425
7426 2014-05-27  Gary Benson  <gbenson@redhat.com>
7427
7428         * utils.c (internal_vproblem): Prompt for a bug report.
7429
7430 2014-05-26  Andy Wingo  <wingo@igalia.com>
7431
7432         * guile/scm-arch.c (arscm_mark_arch_smob):
7433         * guile/scm-block.c (bkscm_mark_block_smob)
7434         (bkscm_mark_block_syms_progress_smob):
7435         * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7436         * guile/scm-exception.c (exscm_mark_exception_smob):
7437         * guile/scm-frame.c (frscm_mark_frame_smob):
7438         * guile/scm-iterator.c (itscm_mark_iterator_smob):
7439         * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7440         * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7441         * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7442         (ppscm_mark_pretty_printer_worker_smob):
7443         * guile/scm-symbol.c (syscm_mark_symbol_smob):
7444         * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7445         * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7446         * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7447         mark functions.
7448         * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7449         function.
7450
7451 2014-05-26  Andy Wingo  <wingo@igalia.com>
7452             Doug Evans  <xdje42@gmail.com>
7453
7454         * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7455         empty_base_class.  All uses updated.
7456         (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7457         (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7458         Adapt all callers.
7459         * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7460         (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7461         (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7462         (gdbscm_gsmob_has_property_p, add_property_name)
7463         (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7464         * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7465         (gdb-object-has-property?, gdb-object-properties): Remove.
7466         (gdb-object-kind): Renamed from gsmob-kind.
7467
7468 2014-05-26  Andy Wingo  <wingo@igalia.com>
7469
7470         * configure.ac (try_guile_versions): Allow building with guile 2.2.
7471         * configure: Regenerate.
7472
7473 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
7474
7475         * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7476
7477 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
7478
7479         * record-btrace.c (record_btrace_allow_memory_access): Remove.
7480         (replay_memory_access_read_only, replay_memory_access_read_write)
7481         (replay_memory_access_types, replay_memory_access)
7482         (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7483         (cmd_set_record_btrace, cmd_show_record_btrace)
7484         (cmd_show_replay_memory_access): New.
7485         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7486         (record_btrace_remove_breakpoint): Replace
7487         record_btrace_allow_memory_access with replay_memory_access.
7488         (_initialize_record_btrace): Add commands.
7489         * NEWS: Announce it.
7490
7491 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7492
7493         * aarch64-linux-nat.c (asm/ptrace.h): Include.
7494
7495 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7496
7497         * MAINTAINERS (Write After Approval): Move self back from
7498         paper trail.
7499
7500 2014-05-22  Pedro Alves  <palves@redhat.com>
7501
7502         * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7503         (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7504         (disable_randomization, enum exec_direction_kind)
7505         (execution_direction, stop_registers, start_remote)
7506         (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7507         (wait_for_inferior, normal_stop, get_last_target_status)
7508         (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7509         (insert_step_resume_breakpoint_at_sal)
7510         (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7511         (set_step_info, print_stop_event, signal_stop_state)
7512         (signal_print_state, signal_pass_state, signal_stop_update)
7513         (signal_print_update, signal_pass_update)
7514         (update_signals_program_target, clear_exit_convenience_vars)
7515         (displaced_step_dump_bytes, update_observer_mode)
7516         (signal_catch_update, gdb_signal_from_command): Move
7517         declarations ...
7518         * infrun.h: ... to this new file.
7519         * amd64-tdep.c: Include infrun.h.
7520         * annotate.c: Include infrun.h.
7521         * arch-utils.c: Include infrun.h.
7522         * arm-linux-tdep.c: Include infrun.h.
7523         * arm-tdep.c: Include infrun.h.
7524         * break-catch-sig.c: Include infrun.h.
7525         * breakpoint.c: Include infrun.h.
7526         * common/agent.c: Include infrun.h instead of inferior.h.
7527         * corelow.c: Include infrun.h.
7528         * event-top.c: Include infrun.h.
7529         * go32-nat.c: Include infrun.h.
7530         * i386-tdep.c: Include infrun.h.
7531         * inf-loop.c: Include infrun.h.
7532         * infcall.c: Include infrun.h.
7533         * infcmd.c: Include infrun.h.
7534         * infrun.c: Include infrun.h.
7535         * linux-fork.c: Include infrun.h.
7536         * linux-nat.c: Include infrun.h.
7537         * linux-thread-db.c: Include infrun.h.
7538         * monitor.c: Include infrun.h.
7539         * nto-tdep.c: Include infrun.h.
7540         * procfs.c: Include infrun.h.
7541         * record-btrace.c: Include infrun.h.
7542         * record-full.c: Include infrun.h.
7543         * remote-m32r-sdi.c: Include infrun.h.
7544         * remote-mips.c: Include infrun.h.
7545         * remote-notif.c: Include infrun.h.
7546         * remote-sim.c: Include infrun.h.
7547         * remote.c: Include infrun.h.
7548         * reverse.c: Include infrun.h.
7549         * rs6000-tdep.c: Include infrun.h.
7550         * s390-linux-tdep.c: Include infrun.h.
7551         * solib-irix.c: Include infrun.h.
7552         * solib-osf.c: Include infrun.h.
7553         * solib-svr4.c: Include infrun.h.
7554         * target.c: Include infrun.h.
7555         * top.c: Include infrun.h.
7556         * windows-nat.c: Include infrun.h.
7557         * mi/mi-interp.c: Include infrun.h.
7558         * mi/mi-main.c: Include infrun.h.
7559         * python/py-threadevent.c: Include infrun.h.
7560
7561 2014-05-22  Pedro Alves  <palves@redhat.com>
7562
7563         * infrun.c (handle_inferior_event): Store the exit code for
7564         --return-child-result here, instead of ...
7565         (print_exited_reason): ... here.
7566
7567 2014-05-21  Pedro Alves  <palves@redhat.com>
7568
7569         PR gdb/13860
7570         * gdbthread.h (struct thread_control_state): New field
7571         `command_interp'.
7572         * infrun.c (follow_fork): Copy the new thread control field to the
7573         child fork thread.
7574         (clear_proceed_status_thread): Clear the new thread control field.
7575         (proceed): Set the new thread control field.
7576         * interps.h (command_interp): Declare.
7577         * interps.c (command_interpreter): New global.
7578         (command_interp): New function.
7579         (interp_exec): Set `command_interpreter' while here.
7580         * cli-out.c (cli_uiout_dtor): New function.
7581         (cli_ui_out_impl): Install it.
7582         * mi/mi-interp.c: Include cli-out.h.
7583         (mi_cmd_interpreter_exec): Add comment.
7584         (restore_current_uiout_cleanup): New function.
7585         (ui_out_free_cleanup): New function.
7586         (mi_on_normal_stop): If finishing an execution command started by
7587         a CLI command, or any kind of breakpoint-like event triggered,
7588         print the stop event to the output (CLI) stream.
7589         * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7590
7591 2014-05-21  Pedro Alves  <palves@redhat.com>
7592
7593         * cli/cli-cmds.c (list_command): Handle the first "list" after the
7594         current source line having changed.
7595         * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7596         * infrun.c (normal_stop): Adjust call to
7597         set_current_sal_from_frame.
7598         * source.c (clear_lines_listed_range): New function.
7599         (set_current_source_symtab_and_line, identify_source_line): Clear
7600         the lines listed range.
7601         (line_info): Handle the first "info line" after the current source
7602         line having changed.
7603         * stack.c (print_stack_frame): Remove center handling.
7604         (set_current_sal_from_frame): Remove 'center' parameter.  Don't
7605         center sal.line.
7606
7607 2014-05-21  Pedro Alves  <palves@redhat.com>
7608
7609         * inf-child.c (inf_child_mourn_inferior): New function.
7610         * inf-child.h (inf_child_mourn_inferior): New declaration.
7611         * darwin-nat.c (darwin_mourn_inferior): Use
7612         inf_child_mourn_inferior.
7613         * gnu-nat.c (gnu_mourn_inferior): Likewise.
7614         * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7615         * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7616         * nto-procfs.c (procfs_mourn_inferior): Likewise.
7617         * windows-nat.c (windows_mourn_inferior): Likewise.
7618
7619 2014-05-21  Doug Evans  <xdje42@gmail.com>
7620
7621         * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7622
7623 2014-05-21  Doug Evans  <xdje42@gmail.com>
7624
7625         * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7626         (gdbscm_out_of_range_error): Ditto.
7627         (gdbscm_memory_error): Ditto.
7628         * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7629         * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7630         (gdbscm_out_of_range_error): Update.
7631         (gdbscm_memory_error): Update.
7632         (gdbscm_scm_to_target_string_unsafe): Delete.
7633
7634 2014-05-21  Pedro Alves  <palves@redhat.com>
7635
7636         * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7637         globals.
7638         (inf_child_open_target): New function.
7639         (inf_child_open): Use inf_child_open_target to push the target
7640         instead of erroring out.
7641         (inf_child_disconnect, inf_child_close)
7642         (inf_child_maybe_unpush_target): New functions.
7643         (inf_child_target): Install inf_child_disconnect and
7644         inf_child_close.  Store a pointer to the returned object.
7645         * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7646         declarations.
7647         * target.c (auto_connect_native_target): New global.
7648         (show_default_run_target): New function.
7649         (find_default_run_target): Return NULL if automatically connecting
7650         to the native target is disabled.
7651         (_initialize_target): Install set/show auto-connect-native-target.
7652         * NEWS: Mention "set auto-connect-native-target", and "target
7653         native".
7654         * linux-nat.c (super_close): New global.
7655         (linux_nat_close): Call super_close.
7656         (linux_nat_add_target): Store a pointer to the base class's
7657         to_close method.
7658         * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7659         inf_child_maybe_unpush.
7660         * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7661         already pushed.
7662         (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7663         the inferior.  Use inf_child_maybe_unpush_target.
7664         (inf_ttrace_attach): Don't push the target if it is already
7665         pushed.
7666         (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7667         * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7668         after mourning the inferior.  Use inf_child_maybe_unpush_target.
7669         (darwin_attach_pid): Don't push the target if it is already
7670         pushed.
7671         * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7672         mourning the inferior.  Use inf_child_maybe_unpush_target.
7673         (gnu_detach): Use inf_child_maybe_unpush_target.
7674         * go32-nat.c (go32_create_inferior): Don't push the target if it
7675         is already pushed.
7676         (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7677         * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7678         (procfs_open): Rename to ...
7679         (procfs_open_1): ... this.  Add target_ops parameter.  Adjust
7680         comments.  Can target_preopen before changing node.  Call
7681         inf_child_open_target to push the target explicitly.
7682         (procfs_attach): Don't push the target if it is already pushed.
7683         (procfs_detach): Use inf_child_maybe_unpush_target.
7684         (procfs_create_inferior): Don't push the target if it is already
7685         pushed.
7686         (nto_native_ops): New global.
7687         (procfs_open): Reimplement.
7688         (procfs_native_open): New function.
7689         (init_procfs_targets): Install procfs_native_open as to_open of
7690         "target native".  Store a pointer to the "native" target in
7691         nto_native_ops.
7692         * procfs.c (procfs_attach): Don't push the target if it is already
7693         pushed.
7694         (procfs_detach): Use inf_child_maybe_unpush_target.
7695         (procfs_mourn_inferior): Only unpush the target after mourning the
7696         inferior.  Use inf_child_maybe_unpush_target.
7697         (procfs_init_inferior): Don't push the target if it is already
7698         pushed.
7699         * windows-nat.c (do_initial_windows_stuff): Don't push the target
7700         if it is already pushed.
7701
7702 2014-05-21  Pedro Alves  <palves@redhat.com>
7703
7704         * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7705         and "procfs" targets are now called "native" instead.
7706
7707 2014-05-21  Pedro Alves  <palves@redhat.com>
7708
7709         * go32-nat.c (go32_open): Delete.
7710         (go32_target): Don't override the to_open method.
7711
7712 2014-05-21  Pedro Alves  <palves@redhat.com>
7713
7714         * nto-procfs.c (procfs_can_run): New function.
7715         (nto_procfs_ops): New global.
7716         (init_procfs_targets): New, based on procfs_target.  Install
7717         "target native" in addition to "target procfs".
7718         (_initialize_procfs): Call init_procfs_targets instead of adding
7719         the target here.
7720
7721 2014-05-21  Pedro Alves  <palves@redhat.com>
7722
7723         * windows-nat.c (windows_target): Don't override to_shortname,
7724         to_longname or to_doc.
7725
7726 2014-05-21  Pedro Alves  <palves@redhat.com>
7727
7728         * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7729         to_doc.
7730
7731 2014-05-21  Pedro Alves  <palves@redhat.com>
7732
7733         * darwin-nat.c (_initialize_darwin_inferior): Don't override
7734         to_shortname, to_longname or to_doc.
7735
7736 2014-05-21  Pedro Alves  <palves@redhat.com>
7737
7738         * go32-nat.c (go32_target): Don't override to_shortname,
7739         to_longname or to_doc.
7740
7741 2014-05-21  Pedro Alves  <palves@redhat.com>
7742
7743         * inf-child.c (inf_child_open): Remove mention of "child".
7744         (inf_child_target): Rename target to "native" instead of "child".
7745
7746 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7747
7748         * Makefile.in (SFILES): Delete "regset.c".
7749         (COMMON_OBS): Delete "regset.o".
7750         * regset.c: Remove.
7751         * regset.h (regset_alloc): Delete prototype.
7752
7753 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7754
7755         * sparc-linux-tdep.c (sparc32_linux_gregset)
7756         (sparc32_linux_fpregset): New static regset structures.
7757         (sparc32_linux_init_abi): Drop dynamic regset allocations.
7758         * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7759         'fpregset' fields.
7760         * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7761         (sparc64_linux_fpregset): New static regset structures.
7762         (sparc64_linux_init_abi): Drop dynamic regset allocations.
7763         * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7764         New static regset structures.
7765         (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7766         * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7767         New static regset structures.
7768         (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7769         * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7770         New static regset structures.
7771         (sparc64obsd_init_abi): Drop dynamic regset allocations.
7772         * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7773         New static regset structures.
7774         (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7775
7776 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7777
7778         * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7779         (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7780         register maps ("regmaps") from "*regset" to "*regmap".  Do this
7781         for all regmap types and variables.
7782         * sparc-linux-tdep.c (sparc32_linux_step_trap)
7783         (sparc32_linux_supply_core_gregset)
7784         (sparc32_linux_collect_core_gregset)
7785         (sparc32_linux_supply_core_fpregset)
7786         (sparc32_linux_collect_core_fpregset): Likewise.
7787         * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7788         (sparc_gregmap, sparc_fpregmap): ... these.
7789         (sparc_supply_gregset, sparc_collect_gregset)
7790         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7791         (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7792         (_initialize_sparc_nat): Rename regmaps.
7793         * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7794         (sparc_gregmap, sparc_fpregmap): ... these.
7795         (sparc_supply_gregset, sparc_collect_gregset)
7796         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7797         * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7798         Rename macros to...
7799         (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7800         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7801         Likewise.
7802         * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7803         Rename to...
7804         (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7805         * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7806         (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7807         regmaps.
7808         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7809         (sparc32_bsd_fpregset): Rename to...
7810         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7811         (sparc32_bsd_fpregmap): ... these.
7812         * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7813         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7814         (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7815         (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7816         (struct sparc_gregmap, struct sparc_fpregmap)
7817         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7818         (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7819         (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7820         (sparc32_supply_regset, sparc32_collect_gregset)
7821         (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7822         prototypes.
7823         * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7824         (sparc64_linux_ptrace_gregmap): ... this.
7825         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7826         (_initialize_sparc64_linux_nat): Rename regmaps.
7827         * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7828         (sparc64_linux_core_gregmap): ... this.
7829         (sparc64_linux_supply_core_gregset)
7830         (sparc64_linux_collect_core_gregset)
7831         (sparc64_linux_supply_core_fpregset)
7832         (sparc64_linux_collect_core_fpregset): Rename regmaps.
7833         * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7834         (sparc64_sol2_fpregset): Rename to...
7835         (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7836         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7837         (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7838         regmaps.
7839         * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7840         (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7841         (sparc64_bsd_fpregset): Rename to...
7842         (struct sparc_gregmap, sparc64_sol2_gregmap)
7843         (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7844         (sparc64_bsd_fpregmap): ... these.
7845         (sparc64_supply_gregset, sparc64_collect_gregset)
7846         (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7847         prototypes.
7848         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7849         * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7850         (sparc64fbsd_gregmap): ... this.
7851         (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7852         (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7853         Rename regmaps.
7854         * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7855         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7856         (sparc64nbsd_collect_fpregset): Likewise.
7857         * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7858         (sparc64nbsd_gregmap): ... this.
7859         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7860         regmaps.
7861         * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7862         * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7863         (sparc64obsd_gregmap): ... this.
7864         (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7865         regmaps.
7866         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7867         * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7868         (sparc32nbsd_gregmap): ... this.
7869         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7870         regmaps.
7871
7872 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7873
7874         * score-tdep.c (score7_linux_gregset): New static regset
7875         structure.
7876         (score7_linux_regset_from_core_section): Remove dynamic regset
7877         allocation.
7878         (score_gdbarch_init): Drop allocation of tdep structure.
7879         * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7880
7881 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7882
7883         * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7884         regset structures.
7885         (am33_regset_from_core_section): Remove dynamic regset
7886         allocations.
7887
7888 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7889
7890         * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7891         (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7892         structures.
7893         (mips_linux_regset_from_core_section): Remove dynamic regset
7894         allocations.
7895         * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7896         'gregset64', 'fpregset', and 'fpregset64'.
7897         * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7898         deleted tdep fields.
7899
7900 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7901
7902         * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7903         regset structures.
7904         (amd64_regset_from_core_section): Remove dynamic regset
7905         allocations.
7906         * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7907         structure.
7908         (amd64obsd_regset_from_core_section): Remove dynamic regset
7909         allocation.
7910         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7911         Likewise.
7912         * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7913         x86-common regset supply function.
7914         * i386-tdep.c (i386_collect_gregset): Make static.
7915         (i386_gregset): New global regset structure.
7916         (i386_fpregset, i386_xstateregset): New static regset structures.
7917         (i386_regset_from_core_section): Remove dynamic regset
7918         allocations.
7919         (i386_gdbarch_init): Remove initialization of tdep fields
7920         'gregset', 'fpregset', and 'xstateregset'.
7921         * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7922         'fpregset', and 'xstateregset'.
7923         (i386_collect_gregset): Remove prototype.
7924         (i386_gregset): New declaration.
7925         * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7926         structure.
7927         (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7928         allocation.
7929
7930 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7931
7932         * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7933         (arm_linux_vfpregset): New static regset structures.
7934         (arm_linux_regset_from_core_section): Remove dynamic allocation of
7935         regset structures.
7936         * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7937         and 'vfpregset' fields.
7938
7939 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7940
7941         * aarch64-linux-tdep.c (aarch64_linux_gregset)
7942         (aarch64_linux_fpregset): New static regset structures.
7943         (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7944         of regset structures.
7945         * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7946         'fpregset' fields.
7947
7948 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7949
7950         * regset.h (struct regset): Remove gdbarch field.
7951         * regset.c (regset_alloc): Drop initialization of gdbarch field.
7952         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7953         * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7954         Likewise.
7955         * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7956         (ppc32_linux_fpregset, ppc32_linux_vrregset)
7957         (ppc32_linux_vsxregset): Likewise.
7958         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7959         via the regcache instead of the regset.
7960         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7961         (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7962         * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7963         * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7964         Likewise.
7965
7966 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7967
7968         * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7969         Constify structures.
7970         * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7971         (alphanbsd_aout_gregset): Likewise.
7972         * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7973         * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7974         Likewise.
7975         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7976         * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7977         Likewise.
7978         * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7979         * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7980         * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7981         * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7982         * m88k-tdep.c (m88k_gregset): Likewise.
7983         * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7984         * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7985         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7986         * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7987         * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7988         * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7989         * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7990         * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7991         * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7992         Likewise.
7993         * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7994         * sh-tdep.h (sh_corefile_gregset): Likewise.
7995         * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7996         * vax-tdep.c (vax_gregset): Likewise.
7997
7998 2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
7999
8000         Fix TLS access for -static -pthread.
8001         * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8002         (try_thread_db_load_1): Initialize it.
8003         (thread_db_get_thread_local_address): Call it if LM is zero.
8004         * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8005         * target.h (struct target_ops) (to_get_thread_local_address): Add
8006         load_module_addr comment.
8007
8008 2014-05-21  Pedro Alves  <palves@redhat.com>
8009
8010         * dcache.c (dcache_read_memory_partial): If reading the cache line
8011         fails, fallback to reading just the memory the caller wanted.
8012
8013 2014-05-20  Doug Evans  <dje@google.com>
8014
8015         * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8016         instead of get_current_arch.
8017
8018 2014-05-20  Pedro Alves  <palves@redhat.com>
8019
8020         * NEWS: Mention that compare-sections now works with all targets.
8021
8022         * remote.c (PACKET_qCRC): New enum value.
8023         (remote_verify_memory): Don't send qCRC if the target has no
8024         execution.  Use packet_support/packet_ok.  If the target doesn't
8025         support the qCRC packet, fallback to a deep memory copy.
8026         (compare_sections_command): Say "target image" instead of "remote
8027         executable".
8028         (_initialize_remote): Add PACKET_qCRC to the list of config
8029         packets that have no associated command.  Extend comment.
8030         * target.c (simple_verify_memory, default_verify_memory): New
8031         function.
8032         * target.h (struct target_ops) <to_verify_memory>: Default to
8033         default_verify_memory.
8034         (simple_verify_memory): New declaration.
8035         * target-delegates.c: Regenerate.
8036
8037 2014-05-20  Markus Metzger  <markus.t.metzger@intel.com>
8038
8039         * record-btrace.c (record_btrace_step_thread): Check for empty history.
8040
8041 2014-05-20  Hui Zhu  <hui@codesourcery.com>
8042             Yao Qi  <yao@codesourcery.com>
8043
8044         PR backtrace/16558
8045         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8046         and change address of sp and pc.
8047
8048 2014-05-19  Tom Tromey  <tromey@redhat.com>
8049
8050         * gdbtypes.c (rank_function): Use XNEWVEC.
8051         * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8052
8053 2014-05-19  Doug Evans  <dje@google.com>
8054
8055         * dwarf2read.c (build_type_psymtabs_1): Renamed from
8056         build_type_unit_groups and moved closer to only caller.  Remove
8057         arguments.  All references updated.  Remove outdated .gdb_index
8058         comment.
8059         (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8060         build_type_psymtabs_1.
8061
8062 2014-05-19  Doug Evans  <dje@google.com>
8063
8064         * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8065         n_type_unit_groups, all_type_unit_groups.  All uses removed.
8066         (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8067         (dw2_get_cutu): Renamed from dw2_get_cu.  All callers updated.
8068         (dw2_get_cu): Renamed from dw2_get_primary_cu.  All callers updated.
8069         (add_type_unit_group_to_table): Delete.
8070
8071 2014-05-19  Doug Evans  <dje@google.com>
8072
8073         * eval.c (evaluate_subexp_standard): Add some comments.
8074
8075 2014-05-17  Doug Evans  <xdje42@gmail.com>
8076
8077         * progspace.c (remove_program_space): Delete, unused.
8078         * progspace.h (remove_program_space): Ditto.
8079
8080 2014-05-17  Doug Evans  <xdje42@gmail.com>
8081
8082         * inferior.c (prune_inferiors): Fix comment.
8083         (remove_inferior_command): Call prune_program_spaces.
8084
8085 2014-05-16  Doug Evans  <dje@google.com>
8086
8087         New command line option -D.
8088         * NEWS: Mention it.
8089         * main.c (set_gdb_data_directory): New function.
8090         (captured_main): Recognize -D.  Flag error for --data-directory "".
8091         Call set_gdb_data_directory.
8092         (print_gdb_help): Print --data-directory, -D.
8093         * main.h (set_gdb_data_directory): Declare.
8094         * top.c (staged_gdb_datadir): New static global.
8095         (set_gdb_datadir): Call set_gdb_data_directory
8096         (show_gdb_datadir): New function.
8097         (init_main): Update init of data-directory parameter.
8098
8099 2014-05-16  Gregory Fong  <gregory.0xf0@gmail.com>
8100
8101         Import the "dirfd" gnulib module.
8102         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8103         * gnulib/aclocal.m4: Update.
8104         * gnulib/config.in: Update.
8105         * gnulib/configure: Update.
8106         * gnulib/import/Makefile.am: Update.
8107         * gnulib/import/Makefile.in: Update.
8108         * gnulib/import/dirfd.c: New.
8109         * gnulib/import/m4/dirfd.m4: New.
8110         * gnulib/import/m4/gnulib-cache.m4: Update.
8111         * gnulib/import/m4/gnulib-comp.m4: Update.
8112
8113 2014-05-16  Pierre Muller  <muller@sourceware.org>
8114             Yao Qi  <yao@codesourcery.com>
8115
8116         * valprint.c (print_wchar): Move the code on checking whether
8117         W is a printable wide char to the default branch of switch
8118         statement below.  Call wchar_printable instead of gdb_iswprint.
8119
8120 2014-05-16  Taimoor Mirza  <tmirza@codesourcery.com>
8121
8122         * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8123         ldr.w and ldrd instructions.
8124
8125 2014-05-15  Doug Evans  <dje@google.com>
8126
8127         * dwarf2read.c (read_structure_type): Delete outdated comments.
8128
8129 2014-05-14  Tom Tromey  <tromey@redhat.com>
8130
8131         * macrocmd.c (print_macro_definition): Reindent.
8132
8133 2014-05-13  Doug Evans  <xdje42@gmail.com>
8134
8135         * python/py-cmd.c (cmdpy_completer): Add comment.
8136         (completers): Make const.
8137
8138 2014-05-13  Simon Marchi  <simon.marchi@ericsson.com>
8139
8140         * infrun.c (resume): Remove should_resume (unused).  Move up
8141         declaration of resume_ptid.
8142
8143 2014-05-13  Tom Tromey  <tromey@redhat.com>
8144
8145         * language.h (unop_type_check): Remove.
8146         (binop_type_check): Don't declare.
8147
8148 2014-05-13  Andreas Arnez  <arnez@vnet.linux.ibm.com>
8149
8150         * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8151         call to regcache_raw_collect.
8152
8153 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
8154
8155         * mi/mi-console.c (mi_console_raw_packet): Use the value from
8156         mi_console->quote as the quoting character.
8157
8158 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
8159
8160         * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8161
8162 2014-04-29  Tom Tromey  <tromey@redhat.com>
8163
8164         * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8165         "show debug varobj".
8166
8167 2014-05-07  Kyle McMartin  <kyle@redhat.com>
8168
8169         Pushed by Joel Brobecker  <brobecker@adacore.com>.
8170         * aarch64-tdep.c (aarch64_software_single_step): New function.
8171         (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8172         with aarch64_software_single_step.
8173
8174 2014-05-05  Joel Brobecker  <brobecker@adacore.com>
8175
8176         GDB 7.7.1 released.
8177
8178 2014-05-05  Keith Seitz  <keiths@redhat.com>
8179
8180         * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8181         variable or history value is successfully parsed.
8182
8183 2014-05-05  Yao Qi  <yao@codesourcery.com>
8184             Pedro Alves  <palves@redhat.com>
8185
8186         * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8187         address of blocks that intersects the requested range.  Trim
8188         LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8189         sections.
8190         * ctf.c (ctf_xfer_partial): Likewise.
8191
8192 2014-05-05  Yao Qi  <yao@codesourcery.com>
8193
8194         * printcmd.c (display_command): Remove the check to
8195         target_has_execution.
8196
8197 2014-05-03  Mark Kettenis  <kettenis@gnu.org>
8198
8199         * ppcobsd-nat.c: Include "obsd-nat.h".
8200         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8201         add_target.
8202         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8203
8204 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
8205
8206         * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8207         and 16-bit signed and unsigned arguments.  Update comment.
8208         (stap_parse_probe_arguments): Extend code to handle such
8209         arguments.  Use warning instead of complaint to notify about
8210         unrecognized bitness.
8211
8212 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
8213
8214         PR breakpoints/16889
8215         * stap-probe.c (stap_parse_probe_arguments): Simplify
8216         check for non-prefixed probes (i.e., probes whose
8217         arguments do not start with "N@").  Always set the
8218         argument type to a sane value.
8219
8220 2014-05-01  David Taylor  <dtaylor@emc.com>
8221
8222         * remote.c (compare_sections_command): Add -r option to compare
8223         all loadable read-only sections.
8224
8225 2014-04-30  Siva Chandra Reddy  <sivachandra@google.com>
8226
8227         * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8228         dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8229         Update all callers.
8230         * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8231         * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8232         Remove unused CORE_ADDR argument.  Update all callers.
8233
8234 2014-04-29  Pedro Alves  <palves@redhat.com>
8235
8236         * remote.c (struct packet_config) <detect>: Extend comment.
8237         (add_packet_config_cmd): Don't set the config's detect or support
8238         fields here.
8239         (init_all_packet_configs): Also initialize the config's 'detect'
8240         field.
8241         (reset_all_packet_configs_support): New function.
8242         (remote_open_1): Call reset_all_packet_configs_support instead of
8243         init_all_packet_configs.
8244         (_initialize_remote): Initialize all packet configs.  Assert that
8245         all packets have an associated command, except a few known
8246         outliers.
8247
8248 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8249
8250         * dwarf2read.c (read_subrange_type): Handle dynamic
8251         DW_AT_lower_bound attributes.
8252
8253 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8254
8255         * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8256         dynamic bounds before computing its upper bound.
8257         (ada_discrete_type_low_bound): Same as above with the lower bound.
8258
8259 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8260
8261         * dwarf2read.c (is_dynamic_type): Return true for dynamic
8262         range types.  Adjust the array handling implementation to
8263         take advantage of this change.
8264         (resolve_dynamic_range): New function, mostly extracted from
8265         resolve_dynamic_bounds.
8266         (resolve_dynamic_array): New function, mostly extracted from
8267         resolve_dynamic_bounds.
8268         (resolve_dynamic_bounds): Delete.
8269         (resolve_dynamic_type): Reimplement.  Add handling of
8270         TYPE_CODE_RANGE types.
8271
8272 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8273
8274         * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8275         handling of parallel ___XA types.
8276
8277 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8278
8279         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8280         unnecessary second call to static_unwrap_type.
8281
8282 2014-04-27  Hui Zhu  <hui@codesourcery.com>
8283
8284         * stack.c (print_frame_info): Call do_gdb_disassembly with
8285         DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8286
8287 2014-04-26  Doug Evans  <xdje42@gmail.com>
8288
8289         * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8290
8291 2014-04-25  Pedro Alves  <palves@redhat.com>
8292
8293         PR server/16255
8294         * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8295         (linux_ptrace_attach_fail_reason): ... this.  Remove "warning: "
8296         and newline from built string.
8297         * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8298         (linux_ptrace_attach_fail_reason): ... this.
8299         * linux-nat.c (linux_nat_attach): Adjust to use
8300         linux_ptrace_attach_fail_reason.
8301
8302 2014-04-25  Pedro Alves  <palves@redhat.com>
8303
8304         * remote.c (struct remote_state): Remove multi_process_aware,
8305         non_stop_aware, cond_tracepoints, cond_breakpoints,
8306         breakpoint_commands, fast_tracepoints, static_tracepoints,
8307         install_in_trace, disconnected_tracing,
8308         enable_disable_tracepoints, string_tracing, and
8309         augmented_libraries_svr4_read fields.
8310         (remote_multi_process_p): Move further below in the file.
8311         (struct packet_config): Add comments.
8312         (update_packet_config): Delete function.
8313         (show_packet_config_cmd): Use packet_config_support.
8314         (add_packet_config_cmd): Use NULL as set callback.
8315         (packet_ok): "set remote foo-packet"-style commands no longer
8316         change config->supported -- adjust.
8317         (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8318         (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8319         (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8320         (PACKET_QNonStop, PACKET_multiprocess_feature)
8321         (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8322         (PACKET_DisconnectedTracing_feature)
8323         (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8324         (set_remote_protocol_packet_cmd): Delete function.
8325         (packet_config_support, packet_support): New functions.
8326         (set_remote_protocol_Z_packet_cmd): Don't call
8327         update_packet_config.
8328         (remote_query_attached, remote_pass_signals)
8329         (remote_program_signals, remote_threads_info)
8330         (remote_threads_extra_info, remote_start_remote): Use
8331         packet_support.
8332         (remote_start_remote): Use packet_config_support and
8333         packet_support.
8334         (init_all_packet_configs): Set all packets to unknown support,
8335         instead of calling update_packet_config.
8336         (remote_check_symbols): Use packet_support.
8337         (remote_supported_packet): Unconditionally set the packet config's
8338         support status.
8339         (remote_multi_process_feature, remote_non_stop_feature)
8340         (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8341         (remote_breakpoint_commands_feature)
8342         (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8343         (remote_install_in_trace_feature)
8344         (remote_disconnected_tracing_feature)
8345         (remote_enable_disable_tracepoint_feature)
8346         (remote_string_tracing_feature)
8347         (remote_augmented_libraries_svr4_read_feature): Delete functions.
8348         (remote_protocol_features): Adjust to use remote_supported_packet
8349         for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8350         "ConditionalTracepoints", "ConditionalBreakpoints",
8351         "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8352         "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8353         "EnableDisableTracepoints", and "tracenz".
8354         (remote_query_supported): Use packet_support.
8355         (remote_open_1): Adjust.
8356         (extended_remote_attach_1): Use packet_support.  Switch on the
8357         result of packet_ok instead of checking whether the packet ended
8358         up disabled.
8359         (remote_vcont_resume): Use packet_support.
8360         (remote_resume, remote_stop_ns, fetch_register_using_p)
8361         (remote_prepare_to_store, store_register_using_P)
8362         (check_binary_download, remote_write_bytes): Use packet_support.
8363         (remote_vkill): Use packet_support.  Switch on the result of
8364         packet_ok instead of checking whether the packet ended up
8365         disabled.
8366         (extended_remote_supports_disable_randomization): Use
8367         packet_support.
8368         (extended_remote_run): Switch on the result of packet_ok instead
8369         of checking whether the packet ended up disabled.
8370         (remote_insert_breakpoint, remote_remove_breakpoint)
8371         (remote_insert_watchpoint, remote_remove_watchpoint)
8372         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8373         packet_support.
8374         (remote_search_memory): Use packet_config_support.
8375         (remote_get_thread_local_address, remote_get_tib_address)
8376         (remote_hostio_send_command, remote_can_execute_reverse): Use
8377         packet_support.
8378         (remote_supports_cond_tracepoints)
8379         (remote_supports_cond_breakpoints)
8380         (remote_supports_fast_tracepoints)
8381         (remote_supports_static_tracepoints)
8382         (remote_supports_install_in_trace)
8383         (remote_supports_enable_disable_tracepoint)
8384         (remote_supports_string_tracing)
8385         (remote_can_run_breakpoint_commands): Rewrite, checking whether
8386         the packet config says the feature is enabled or disabled.
8387         (remote_download_tracepoint, remote_trace_set_readonly_regions)
8388         (remote_get_trace_status): Use packet_support.
8389         (remote_set_disconnected_tracing): Adjust to check whether the
8390         feature is enabled with packet_support.
8391         (remote_set_trace_buffer_size, remote_use_agent)
8392         (remote_can_use_agent, remote_supports_btrace): Use
8393         packet_support.
8394         (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8395         Use packet_config_support.
8396         (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8397         the packet config says the feature is enabled or disabled.
8398         (set_range_stepping): Use packet_support.
8399
8400 2014-04-25  Tom Tromey  <tromey@redhat.com>
8401
8402         * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8403         argument.
8404
8405 2014-04-24  Sanimir Agovic  <sanimir.agovic@intel.com>
8406
8407         * NEWS: Mention support for C99 variable length arrays.
8408
8409 2014-04-24  Joel Brobecker  <brobecker@adacore.com>
8410
8411         * ada-lang.c (standard_exc): Expand introductory comment.
8412
8413 2014-04-24  Michael Sturm  <michael.sturm@mintel.com>
8414             Walfred Tedeschi  <walfred.tedeschi@intel.com>
8415
8416         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8417         AVX512 registers.
8418         (amd64_linux_read_description): Add code to handle AVX512 xstate
8419         mask and return respective tdesc.
8420         * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8421         and features/i386/x32-avx512-linux.c.
8422         (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8423         (amd64_linux_core_read_description): Add code to handle AVX512
8424         xstate mask and return respective tdesc.
8425         (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8426         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8427         calculation.
8428         (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8429         (tdesc_amd64_avx512_linux): New prototype.
8430         (tdesc_x32_avx512_linux): Likewise.
8431         * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8432         features/i386/x32-avx512.c.
8433         (amd64_ymm_avx512_names): New register names for pseudo
8434         registers YMM16-31.
8435         (amd64_ymmh_avx512_names): New register names for raw registers
8436         YMMH16-31.
8437         (amd64_k_names): New register names for K registers.
8438         (amd64_zmmh_names): New register names for ZMM raw registers.
8439         (amd64_zmm_names): New registers names for ZMM pseudo registers.
8440         (amd64_xmm_avx512_names): New register names for XMM16-31
8441         registers.
8442         (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8443         registers.
8444         (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8445         if feature is present.
8446         (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8447         * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8448         (AMD64_NUM_REGS): Adjust to new number of registers.
8449         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8450         registers supplied via XSTATE by AVX512 registers.
8451         (i386_linux_read_description): Add case for AVX512.
8452         * i386-linux-tdep.c: Include i386-avx512-linux.c.
8453         (i386_linux_gregset_reg_offset): Add AVX512 registers.
8454         (i386_linux_core_read_description): Add case for AVX512.
8455         (i386_linux_init_abi): Install supported register note section
8456         for AVX512.
8457         (_initialize_i386_linux_tdep): Add call to tdesc init function for
8458         AVX512.
8459         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8460         registers to be number of zmm7h + 1.
8461         (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8462         * i386-tdep.c: Include features/i386/i386-avx512.c.
8463         (i386_zmm_names): Add ZMM pseudo register names array.
8464         (i386_zmmh_names): Add ZMM raw register names array.
8465         (i386_k_names): Add K raw register names array.
8466         (num_lower_zmm_regs): Add constant for the number of lower ZMM
8467         registers. AVX512 has 16 more ZMM registers than there are YMM
8468         registers.
8469         (i386_zmmh_regnum_p): Add function to look up register number of
8470         ZMM raw registers.
8471         (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8472         (i386_k_regnum_p): Likewise for K raw registers.
8473         (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8474         registers added by AVX512.
8475         (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8476         registers added by AVX512.
8477         (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8478         added by AVX512.
8479         (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8480         (i386_pseudo_register_name): Add ZMM pseudo registers.
8481         (i386_zmm_type): Construct and return vector registers type for ZMM
8482         registers.
8483         (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8484         ZMM0-31 pseudo registers and K registers.
8485         (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8486         and YMM16-31 registers from register cache.
8487         (i386_pseudo_register_write): Add code to write  K, ZMM and
8488         YMM16-31 registers.
8489         (i386_register_reggroup_p): Add code to include/exclude AVX512
8490         registers in/from respective register groups.
8491         (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8492         registers if feature is present in xcr0.
8493         (i386_gdbarch_init): Add code to initialize AVX512 feature
8494         variables in tdep structure, wire in pseudo registers and call
8495         initialize_tdesc_i386_avx512.
8496         * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8497         variables.
8498         (i386_regnum): Add AVX512 registers.
8499         (I386_SSE_NUM_REGS): New define for number of SSE registers.
8500         (I386_AVX_NUM_REGS): Likewise for AVX registers.
8501         (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8502         (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8503         512 bits wide.
8504         (i386_xmm_avx512_regnum_p): New prototype for register look up.
8505         (i386_ymm_avx512_regnum_p): Likewise.
8506         (i386_k_regnum_p): Likewise.
8507         (i386_zmm_regnum_p): Likewise.
8508         (i386_zmmh_regnum_p): Likewise.
8509         * i387-tdep.c : Update year in copyright notice.
8510         (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8511         XSAVE buffer.
8512         (XSAVE_YMM_AVX512_ADDR): New macro.
8513         (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8514         XSAVE buffer.
8515         (XSAVE_XMM_AVX512_ADDR): New macro.
8516         (xsave_avx512_k_offset): New table for K register offsets in
8517         XSAVE buffer.
8518         (XSAVE_AVX512_K_ADDR): New macro.
8519         (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8520         in XSAVE buffer.
8521         (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8522         (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8523         buffer.
8524         (i387_collect_xsave): Add code to collect AVX512 registers from
8525         XSAVE buffer.
8526         * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8527         of XMM16-31 registers.
8528         (I387_NUM_K_REGS): New define for number of K registers.
8529         (I387_K0_REGNUM): New define for K0 register number.
8530         (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8531         (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8532         (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8533         registers.
8534         (I387_YMM16H_REGNUM): New define for YMM16H register number.
8535         (I387_XMM16_REGNUM): New define for XMM16 register number.
8536         (I387_YMM0_REGNUM): New define for YMM0 register number.
8537         (I387_KEND_REGNUM): New define for last K register number.
8538         (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8539         (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8540         number.
8541         (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8542         number.
8543         * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8544         size.
8545         * features/Makefile: Add AVX512 related files.
8546         * features/i386/32bit-avx512.xml: New file.
8547         * features/i386/64bit-avx512.xml: Likewise.
8548         * features/i386/amd64-avx512-linux.c: Likewise.
8549         * features/i386/amd64-avx512-linux.xml: Likewise.
8550         * features/i386/amd64-avx512.c: Likewise.
8551         * features/i386/amd64-avx512.xml: Likewise.
8552         * features/i386/i386-avx512-linux.c: Likewise.
8553         * features/i386/i386-avx512-linux.xml: Likewise.
8554         * features/i386/i386-avx512.c: Likewise.
8555         * features/i386/i386-avx512.xml: Likewise.
8556         * features/i386/x32-avx512-linux.c: Likewise.
8557         * features/i386/x32-avx512-linux.xml: Likewise.
8558         * features/i386/x32-avx512.c: Likewise.
8559         * features/i386/x32-avx512.xml: Likewise.
8560         * regformats/i386/amd64-avx512-linux.dat: New file.
8561         * regformats/i386/amd64-avx512.dat: Likewise.
8562         * regformats/i386/i386-avx512-linux.dat: Likewise.
8563         * regformats/i386/i386-avx512.dat: Likewise.
8564         * regformats/i386/x32-avx512-linux.dat: Likewise.
8565         * regformats/i386/x32-avx512.dat: Likewise.
8566         * NEWS: Add note about new support for AVX512.
8567
8568
8569 2014-04-23  Pedro Alves  <palves@redhat.com>
8570
8571         * breakpoint.c (insert_bp_location): Tolerate errors if the
8572         breakpoint is set in a user-loaded objfile.
8573         (remove_breakpoint_1): Likewise.  Also tolerate errors if the
8574         location is marked shlib_disabled.  If the breakpoint is set in a
8575         user-loaded objfile is a GDB-side memory breakpoint, validate it
8576         before uninsertion.  (disable_breakpoints_in_freed_objfile): Skip
8577         non-OBJF_USERLOADED objfiles.  Don't clear the location's inserted
8578         flag.
8579         * mem-break.c (memory_validate_breakpoint): New function.
8580         * objfiles.c (userloaded_objfile_contains_address_p): New
8581         function.
8582         * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8583         * target.h (memory_validate_breakpoint): New declaration.
8584
8585 2014-04-23  Pedro Alves  <palves@redhat.com>
8586
8587         * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8588         the breakpoint is set in a shared library, only suppress
8589         errors for software breakpoints, not hardware breakpoints.
8590
8591 2014-04-22  Pedro Alves  <palves@redhat.com>
8592
8593         * infrun.c (schedlock_applies): New function, factored out from
8594         find_thread_needs_step_over.
8595         (find_thread_needs_step_over): Use it.
8596         (switch_back_to_stepped_thread): Always clear trap_expected if the
8597         step over is finished.  Return early if scheduler locking applies.
8598         Look for the stepping thread and a potential step-over thread with
8599         a single loop.
8600         (currently_stepping_or_nexting_callback): Delete.
8601
8602 2014-04-22  Nick Clifton  <nickc@redhat.com>
8603
8604         * NEWS: Mention that ARM sim now supports tracing.
8605
8606 2014-04-22  Yao Qi  <yao@codesourcery.com>
8607
8608         * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8609         to ...
8610         * tracefile.c (tracefile_fetch_registers): ... it.  New
8611         function.
8612         * tracefile.h (tracefile_fetch_registers): Declare.
8613         * ctf.c (ctf_fetch_registers): Remove the bottom.  Call
8614         tracefile_fetch_registers.
8615
8616 2014-04-19  Eli Zaretskii  <eliz@gnu.org>
8617
8618         PR gdb/14018
8619         * windows-nat.c (thread_rec): Don't display a warning when
8620         SuspendThread fails with ERROR_ACCESS_DENIED.  If SuspendThread
8621         fails for any reason, set th->suspended to -1, so that we don't
8622         try to resume such a thread.  Also, don't return NULL in these
8623         cases, to avoid completely ruin the session due to "PC register is
8624         not available" error.
8625         (do_windows_fetch_inferior_registers): Check errors in
8626         GetThreadContext call.
8627         (windows_continue): Accept an additional argument KILLED; if not
8628         zero, ignore errors in the SetThreadContext call, since the
8629         inferior was killed and is shutting down.
8630         (windows_resume, get_windows_debug_event)
8631         (windows_create_inferior, windows_mourn_inferior)
8632         (windows_kill_inferior): All callers of windows_continue changed
8633         to adjust to its new calling sequence.
8634
8635 2014-04-19  Yao Qi  <yao@codesourcery.com>
8636
8637         * ctf.c (ctf_open): Call post_create_inferior.
8638
8639 2014-04-19  Yao Qi  <yao@codesourcery.com>
8640
8641         * ctf.c (handle_id): New static variable.
8642         (ctf_open_dir): Get handle_id from bt_context_add_trace return
8643         value.  Get the declaration of event "register" and get length
8644         of field "contents".
8645
8646 2014-04-19  Yao Qi  <yao@codesourcery.com>
8647
8648         * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8649
8650 2014-04-18  Siva Chandra Reddy  <sivachandra@google.com>
8651
8652         * valops.c (oload_method_static): Remove unnecessary argument
8653         METHOD.  Update all callers.
8654
8655 2014-04-18  Pedro alves  <palves@redhat.com>
8656             Tom Tromey  <tromey@redhat.com>
8657
8658         PR backtrace/15558
8659         * frame.c (get_prev_frame_1): Rename to ...
8660         (get_prev_frame_always): ... this, and make extern.  Adjust.
8661         (skip_artificial_frames): Use get_prev_frame_always.
8662         (frame_unwind_caller_id, frame_pop, get_prev_frame)
8663         (get_frame_unwind_stop_reason): Adjust to rename.
8664         * frame.h (get_prev_frame_always): Declare.
8665         * inline-frame.c: Include frame.h.
8666         (inline_frame_this_id): Use get_prev_frame_always.
8667
8668 2014-04-18  Tristan Gingold  <gingold@adacore.com>
8669
8670         * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8671         code by using bfd_mach_o_get_base_address.
8672
8673 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
8674
8675         * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8676         (spu_ax_pseudo_register_collect): New function.
8677         (spu_ax_pseudo_register_push_stack): Likewise.
8678         (spu_dwarf_reg_to_regnum): Likewise.
8679         (spu_gdbarch_init): Install them.  Append DWARF unwinders.
8680
8681 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
8682
8683         * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8684         Replace FRAME argument with FRAME_ID.
8685         * gdbarch.c, gdbarch.h: Regenerate.
8686         * findvar.c (default_value_from_register): Add GDBARCH argument;
8687         replace FRAME by FRAME_ID.  No longer call get_frame_id.
8688         (value_from_register): Update call to gdbarch_value_from_register.
8689         * value.h (default_value_from_register): Update prototype.
8690         * s390-linux-tdep.c (s390_value_from_register): Update interface
8691         and call to default_value_from_register.
8692         * spu-tdep.c (spu_value_from_register): Likewise.
8693
8694         * findvar.c (address_from_register): Remove TYPE argument.
8695         Do not call value_from_register; use gdbarch_value_from_register
8696         with null_frame_id instead.
8697         * value.h (address_from_register): Update prototype.
8698         * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8699         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8700         address_from_register interface change.
8701
8702 2014-04-17  Yao Qi  <yao@codesourcery.com>
8703
8704         * gdbtypes.h: Update comments to link to types and macros'
8705         definitions.
8706
8707 2014-04-16  Siva Chandra Reddy  <sivachandra@google.com>
8708
8709         * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8710
8711 2014-04-16  Keith Seitz  <keiths@redhat.com>
8712
8713         PR gdb/15827
8714         * dwarf2read.c (skip_one_die): Check that all relative-offset
8715         sibling DIEs fall within range of the current reader's buffer.
8716         (read_partial_die): Likewise.
8717
8718 2014-04-16  Keith Seitz  <keiths@redhat.com>
8719
8720         PR c++/16597
8721         * cp-namespace.c (lookup_symbol_file): If the type name of
8722         `this' is NULL, return immediately.
8723
8724 2014-04-14  Keith Seitz  <keiths@redhat.com>
8725
8726         PR c++/16253
8727         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8728         from symbol_matches_domain in symtab.c. All local callers
8729         of symbol_matches_domain updated.
8730         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8731         search STRUCT_DOMAIN.
8732         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8733         independently.  standard_lookup will do that automatically.
8734         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8735         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8736         (cp_lookup_symbol_in_namespace): Likewise.
8737         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8738         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8739         may return a STRUCT_DOMAIN match.
8740         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8741         * cp-support.c: Include language.h.
8742         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8743         VAR_DOMAIN.
8744         * psymtab.c (match_partial_symbol): Compare the requested
8745         domain with the symbol's domain directly.
8746         (lookup_partial_symbol): Likewise.
8747         * symtab.c (lookup_symbol_in_language): Explain when/why
8748         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8749         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8750         appropriate languages.
8751         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8752         and moved to ada-lang.c
8753         (lookup_block_symbol): Explain that this function only returns
8754         symbol matching the requested DOMAIN.
8755         Compare the requested domain with the symbol's domain directly.
8756         (iterate_over_symbols): Compare the requested domain with the
8757         symbol's domain directly.
8758         * symtab.h (symbol_matches_domain): Remove.
8759
8760 2014-04-14  Tom Tromey  <tromey@redhat.com>
8761
8762         PR c++/15246:
8763         * c-exp.y (type_aggregate_p): New function.
8764         (qualified_name, classify_inner_name): Use it.
8765         * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8766         and TYPE_TARGET_TYPE of an enum type.
8767         * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8768         an enum type.
8769         (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8770         handle TYPE_DECLARED_CLASS.
8771         * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8772         types.
8773         * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8774         * valops.c (enum_constant_from_type): New function.
8775         (value_aggregate_elt): Use it.
8776         * cp-namespace.c (cp_lookup_nested_symbol): Handle
8777         TYPE_CODE_ENUM.
8778
8779 2014-04-14  Tom Tromey  <tromey@redhat.com>
8780
8781         * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8782         (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8783         const.
8784         * value.h (value_aggregate_elt): Update.
8785
8786 2014-04-14  Tom Tromey  <tromey@redhat.com>
8787
8788         * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8789
8790 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8791
8792         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8793         (evaluate_subexp_standard): Pass noside argument.
8794         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8795         if noside equals EVAL_NORMAL. If the subscript yields a vla type
8796         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8797         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8798         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8799
8800 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8801
8802         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8803         points to a constant blob.
8804
8805 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8806
8807         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8808         property and store it as the high bound and flag the range accordingly.
8809         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8810         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8811         * gdbtypes.h (enum range_flags): New enum.
8812         (struct range_bounds): Add flags member.
8813
8814 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8815
8816         * c-typeprint.c (c_type_print_varspec_suffix): Added
8817         check for not yet resolved high bound. If unresolved, print
8818         "variable length" string to the console instead of random
8819         length.
8820
8821 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8822
8823         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8824         value.
8825         (ada_template_to_fixed_record_type_1): Likewise.
8826         (ada_to_fixed_type_1): Likewise.
8827         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8828         (cp_print_value): Likewise.
8829         * d-valprint.c (dynamic_array_type): Likewise.
8830         * findvar.c (address_of_variable): Likewise.
8831         * jv-valprint.c (java_value_print): Likewise.
8832         * valops.c (value_ind): Likewise.
8833         * value.c (coerce_ref): Likewise.
8834
8835 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8836
8837         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8838         value and retrieve the dynamic type size.
8839
8840 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8841
8842         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8843         passed to sizeof is dynamic evaluate the argument to compute the length.
8844
8845 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8846             Joel Brobecker  <brobecker@adacore.com>
8847
8848         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8849         (dwarf2_evaluate_property): New function.
8850         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8851         * dwarf2read.c (attr_to_dynamic_prop): New function.
8852         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8853         attribute.
8854         * gdbtypes.c: Include dwarf2loc.h.
8855         (is_dynamic_type): New function.
8856         (resolve_dynamic_type): New function.
8857         (resolve_dynamic_bounds): New function.
8858         (get_type_length): New function.
8859         (check_typedef): Use get_type_length to compute type length.
8860         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8861         (TYPE_LOW_BOUND_KIND): New macro.
8862         (is_dynamic_type): New function prototype.
8863         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8864         to resolve dynamic properties of the type. Update comment.
8865         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8866
8867 2014-04-14  Richard Henderson  <rth@redhat.com>
8868
8869         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8870
8871 2014-04-12  Siva Chandra Reddy  <sivachandra@google.com>
8872             Doug Evans  <xdje42@gmail.com>
8873
8874         * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8875         dereference TYPE_CODE_REF values.
8876
8877 2014-04-11  Joel Brobecker  <brobecker@adacore.com>
8878
8879         Revert the following changes due to regressions:
8880
8881         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8882         (dwarf2_evaluate_property): New function.
8883         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8884         * dwarf2read.c (attr_to_dynamic_prop): New function.
8885         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8886         attribute.
8887         * gdbtypes.c: Include dwarf2loc.h.
8888         (is_dynamic_type): New function.
8889         (resolve_dynamic_type): New function.
8890         (resolve_dynamic_bounds): New function.
8891         (get_type_length): New function.
8892         (check_typedef): Use get_type_length to compute type length.
8893         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8894         (TYPE_LOW_BOUND_KIND): New macro.
8895         (is_dynamic_type): New function prototype.
8896         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8897         to resolve dynamic properties of the type. Update comment.
8898         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8899
8900         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8901         passed to sizeof is dynamic evaluate the argument to compute the length.
8902
8903         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8904         value and retrieve the dynamic type size.
8905
8906         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8907         (ada_template_to_fixed_record_type_1): Likewise.
8908         (ada_to_fixed_type_1): Likewise.
8909         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8910         (cp_print_value): Likewise.
8911         * d-valprint.c (dynamic_array_type): Likewise.
8912         * eval.c (evaluate_subexp_with_coercion): Likewise.
8913         * findvar.c (address_of_variable): Likewise.
8914         * jv-valprint.c (java_value_print): Likewise.
8915         * valops.c (value_ind): Likewise.
8916         * value.c (coerce_ref): Likewise.
8917
8918         * c-typeprint.c (c_type_print_varspec_suffix): Added
8919         check for not yet resolved high bound. If unresolved, print
8920         "variable length" string to the console instead of random
8921         length.
8922
8923         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8924         property and store it as the high bound and flag the range accordingly.
8925         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8926         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8927         * gdbtypes.h (enum range_flags): New enum.
8928         (struct range_bounds): Add flags member.
8929
8930         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8931         points to a constant blob.
8932
8933         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8934         (evaluate_subexp_standard): Pass noside argument.
8935         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8936         if noside equals EVAL_NORMAL. If the subscript yields a vla type
8937         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8938         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8939         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8940
8941 2014-04-11  Keith Seitz  <keiths@redhat.com>
8942
8943         PR c++/16675
8944         * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8945         * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8946         reference types.
8947
8948 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8949
8950         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8951         (evaluate_subexp_standard): Pass noside argument.
8952         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8953         if noside equals EVAL_NORMAL. If the subscript yields a vla type
8954         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8955         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8956         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8957
8958 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8959
8960         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8961         points to a constant blob.
8962
8963 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8964
8965         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8966         property and store it as the high bound and flag the range accordingly.
8967         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8968         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8969         * gdbtypes.h (enum range_flags): New enum.
8970         (struct range_bounds): Add flags member.
8971
8972 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8973
8974         * c-typeprint.c (c_type_print_varspec_suffix): Added
8975         check for not yet resolved high bound. If unresolved, print
8976         "variable length" string to the console instead of random
8977         length.
8978
8979 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8980
8981         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8982         (ada_template_to_fixed_record_type_1): Likewise.
8983         (ada_to_fixed_type_1): Likewise.
8984         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8985         (cp_print_value): Likewise.
8986         * d-valprint.c (dynamic_array_type): Likewise.
8987         * eval.c (evaluate_subexp_with_coercion): Likewise.
8988         * findvar.c (address_of_variable): Likewise.
8989         * jv-valprint.c (java_value_print): Likewise.
8990         * valops.c (value_ind): Likewise.
8991         * value.c (coerce_ref): Likewise.
8992
8993 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8994
8995         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8996         value and retrieve the dynamic type size.
8997
8998 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8999
9000         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9001         passed to sizeof is dynamic evaluate the argument to compute the length.
9002
9003 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9004
9005         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9006         (dwarf2_evaluate_property): New function.
9007         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9008         * dwarf2read.c (attr_to_dynamic_prop): New function.
9009         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9010         attribute.
9011         * gdbtypes.c: Include dwarf2loc.h.
9012         (is_dynamic_type): New function.
9013         (resolve_dynamic_type): New function.
9014         (resolve_dynamic_bounds): New function.
9015         (get_type_length): New function.
9016         (check_typedef): Use get_type_length to compute type length.
9017         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9018         (TYPE_LOW_BOUND_KIND): New macro.
9019         (is_dynamic_type): New function prototype.
9020         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9021         to resolve dynamic properties of the type. Update comment.
9022         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9023
9024 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9025
9026         * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9027         declaring high/low bounds and change uses accordingly. Call
9028         create_range_type instead of create_static_range_type.
9029         * gdbtypes.c (create_range_type): New function.
9030         (create_range_type): Convert bounds into struct bound_prop and pass
9031         them to create_range_type.
9032         * gdbtypes.h (struct bound_prop): New struct.
9033         (create_range_type): New function prototype.
9034         (struct range_bounds): Use struct bound_prop instead of LONGEST for
9035         high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9036         (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9037         part of the bound.
9038         * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9039
9040 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9041
9042         * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9043         * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9044         * ada-lang.c: All uses of create_range_type updated.
9045         * coffread.c: All uses of create_range_type updated.
9046         * dwarf2read.c: All uses of create_range_type updated.
9047         * f-exp.y: All uses of create_range_type updated.
9048         * m2-valprint.c: All uses of create_range_type updated.
9049         * mdebugread.c: All uses of create_range_type updated.
9050         * stabsread.c: All uses of create_range_type updated.
9051         * valops.c: All uses of create_range_type updated.
9052         * valprint.c: All uses of create_range_type updated.
9053
9054 2014-04-10  Pedro Alves  <palves@redhat.com>
9055
9056         * breakpoint.c (single_step_breakpoints)
9057         (single_step_gdbarch): Move up in the file.
9058         (one_breakpoint_xfer_memory): New function, factored out from ...
9059         (breakpoint_xfer_memory): ... here.  Also process single-step
9060         breakpoints.
9061
9062 2014-04-09  Tristan Gingold  <gingold@adacore.com>
9063
9064         * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9065         comments.
9066         (darwin_decode_exception_message): Free port only after use.
9067
9068 2014-04-08  Pierre Langlois  <pierre.langlois@embecosm.com>
9069
9070         * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9071         (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9072         when setting the size of call_length.
9073
9074 2014-04-07  Siva Chandra Reddy  <sivachandra@google.com>
9075
9076         * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9077         dereference TYPE_CODE_REF values.
9078
9079 2014-04-07  Joel Brobecker  <brobecker@adacore.com>
9080
9081         * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9082         end of warning message.
9083
9084 2014-04-03  Doug Evans  <dje@google.com>
9085
9086         * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9087         of stub_comp_unit_die, stub_comp_dir is non-NULL.
9088
9089 2014-04-02  Alan Modra  <amodra@gmail.com>
9090
9091         * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9092         Pass to bfd_elf_bfd_from_remote_memory.  Adjust all callers.
9093         (struct symbol_file_add_from_memory_args): Add size field.
9094         (find_vdso_size): New function.
9095         (add_vsyscall_page): Attempt to find vdso size.
9096
9097 2014-04-01  Doug Evans  <dje@google.com>
9098
9099         * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9100
9101 2014-04-01  Tristan Gingold  <gingold@adacore.com>
9102
9103         * darwin-nat.c (darwin_encode_reply): Add prototype.
9104         (darwin_decode_exception_message): Reply to unknown inferiors.
9105         (darwin_decode_message): Handle message by id.  Ignore message
9106         to unknown inferior.
9107         (darwin_wait): Discard unknown messages, add debug trace.
9108
9109 2014-03-31  Doug Evans  <dje@google.com>
9110
9111         * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9112         comp_dir_string.
9113
9114 2014-03-31  Doug Evans  <dje@google.com>
9115
9116         New option "set print symbol-loading".
9117         * NEWS: Mention it.
9118         * solib.c (solib_read_symbols): Only print symbol loading messages
9119         if requested.
9120         (solib_add): If symbol loading is in "brief" mode, notify user
9121         symbols are being loaded.
9122         (reload_shared_libraries_1): Ditto.
9123         * symfile.c (print_symbol_loading_off): New static global.
9124         (print_symbol_loading_brief): New static global.
9125         (print_symbol_loading_full): New static global.
9126         (print_symbol_loading_enums): New static global.
9127         (print_symbol_loading): New static global.
9128         (print_symbol_loading_p): New function.
9129         (symbol_file_add_with_addrs): Only print symbol loading messages
9130         if requested.
9131         (_initialize_symfile): Register "print symbol-loading" set/show
9132         command.
9133         * symfile.h (print_symbol_loading_p): Declare.
9134
9135 2014-03-30  Doug Evans  <xdje42@gmail.com>
9136
9137         * infrun.c (set_last_target_status): New function.
9138         (handle_inferior_event): Call it.
9139
9140 2014-03-30  Doug Evans  <xdje42@gmail.com>
9141
9142         * inferior.h (enum stop_kind): Improve comment.
9143
9144 2014-03-28  Joel Brobecker  <brobecker@adacore.com>
9145
9146         * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9147         a reference, strip the reference layer before calling
9148         the lang_ops value_has_mutated callback.
9149
9150 2014-03-27  Sergio Durigan Junior  <sergiodj@redhat.com>
9151
9152         Remove some globals from our parser.
9153         * language.c (unk_lang_parser): Add "struct parser_state"
9154         argument.
9155         * language.h (struct language_defn) <la_parser>: Likewise.
9156         * parse.c (expout, expout_size, expout_ptr): Remove variables.
9157         (initialize_expout): Add "struct parser_state" argument.
9158         Rewrite function to use the parser state.
9159         (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9160         write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9161         write_exp_elt_longcst, write_exp_elt_dblcst,
9162         write_exp_elt_decfloatcst, write_exp_elt_type,
9163         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9164         write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9165         write_dollar_variable): Likewise.
9166         (parse_exp_in_context_1): Use parser state.
9167         (insert_type_address_space): Add "struct parser_state" argument.
9168         Use parser state.
9169         (increase_expout_size): New function.
9170         * parser-defs.h: Forward declare "struct language_defn" and
9171         "struct parser_state".
9172         (expout, expout_size, expout_ptr): Remove extern declarations.
9173         (parse_gdbarch, parse_language): Rewrite macro declarations to
9174         accept the parser state.
9175         (struct parser_state): New struct.
9176         (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9177         write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9178         write_exp_elt_decfloatcst, write_exp_elt_type,
9179         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9180         write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9181         write_exp_msymbol, write_dollar_variable,
9182         mark_struct_expression, insert_type_address_space): Add "struct
9183         parser_state" argument.
9184         (increase_expout_size): New function.
9185         * utils.c (do_clear_parser_state): New function.
9186         (make_cleanup_clear_parser_state): Likewise.
9187         * utils.h (make_cleanup_clear_parser_state): New function
9188         prototype.
9189         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9190         Update calls to write_exp* in order to pass the parser state.
9191         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9192         * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9193         (i386_stap_parse_special_token_three_arg_disp): Likewise.
9194         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9195         * stap-probe.c (stap_parse_register_operand): Likewise.
9196         (stap_parse_single_operand): Likewise.
9197         (stap_parse_argument_1): Likewise.
9198         (stap_parse_argument): Use parser state.
9199         * stap-probe.h: Include "parser-defs.h".
9200         (struct stap_parse_info) <pstate>: New field.
9201         * c-exp.y (parse_type): Rewrite to use parser state.
9202         (yyparse): Redefine to c_parse_internal.
9203         (pstate): New global variable.
9204         (parse_number): Add "struct parser_state" argument.
9205         (write_destructor_name): Likewise.
9206         (type_exp): Update calls to write_exp* and similars in order to
9207         use parser state.
9208         (exp1, exp, variable, qualified_name, space_identifier,
9209         typename, typebase): Likewise.
9210         (write_destructor_name, parse_number, lex_one_token,
9211         classify_name, classify_inner_name, c_parse): Add "struct
9212         parser_state" argument.  Update function to use parser state.
9213         * c-lang.h: Forward declare "struct parser_state".
9214         (c_parse): Add "struct parser_state" argument.
9215         * ada-exp.y (parse_type): Rewrite macro to use parser state.
9216         (yyparse): Redefine macro to ada_parse_internal.
9217         (pstate): New variable.
9218         (write_int, write_object_renaming, write_var_or_type,
9219         write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9220         type_int, type_long, type_long_long, type_float, type_double,
9221         type_long_double, type_char, type_boolean, type_system_address):
9222         Add "struct parser_state" argument.
9223         (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9224         or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9225         var_or_type, aggregate, aggregate_component_list,
9226         positional_list, others, component_group,
9227         component_associations): Update calls to write_exp* and similar
9228         functions in order to use parser state.
9229         (ada_parse, write_var_from_sym, write_int,
9230         write_exp_op_with_string, write_object_renaming,
9231         find_primitive_type, write_selectors, write_ambiguous_var,
9232         write_var_or_type, write_name_assoc, type_int, type_long,
9233         type_long_long, type_float, type_double, type_long_double,
9234         type_char, type_boolean, type_system_address): Add "struct
9235         parser_state" argument.  Adjust function to use parser state.
9236         * ada-lang.c (parse): Likewise.
9237         * ada-lang.h: Forward declare "struct parser_state".
9238         (ada_parse): Add "struct parser_state" argument.
9239         * ada-lex.l (processInt, processReal): Likewise.  Adjust all
9240         calls to both functions.
9241         * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9242         parser state.
9243         (yyparse): Redefine macro to f_parse_internal.
9244         (pstate): New variable.
9245         (parse_number): Add "struct parser_state" argument.
9246         (type_exp, exp, subrange, typebase): Update calls to write_exp*
9247         and similars in order to use parser state.
9248         (parse_number): Adjust code to use parser state.
9249         (yylex): Likewise.
9250         (f_parse): New function.
9251         * f-lang.h: Forward declare "struct parser_state".
9252         (f_parse): Add "struct parser_state" argument.
9253         * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9254         parser state.
9255         (yyparse): Redefine macro for java_parse_internal.
9256         (pstate): New variable.
9257         (push_expression_name, push_expression_name, insert_exp): Add
9258         "struct parser_state" argument.
9259         (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9260         FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9261         FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9262         PostIncrementExpression, PostDecrementExpression,
9263         UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9264         UnaryExpressionNotPlusMinus, CastExpression,
9265         MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9266         RelationalExpression, EqualityExpression, AndExpression,
9267         ExclusiveOrExpression, InclusiveOrExpression,
9268         ConditionalAndExpression, ConditionalOrExpression,
9269         ConditionalExpression, Assignment, LeftHandSide): Update
9270         calls to write_exp* and similars in order to use parser state.
9271         (parse_number): Ajust code to use parser state.
9272         (yylex): Likewise.
9273         (java_parse): New function.
9274         (push_variable): Add "struct parser_state" argument.  Adjust
9275         code to user parser state.
9276         (push_fieldnames, push_qualified_expression_name,
9277         push_expression_name, insert_exp): Likewise.
9278         * jv-lang.h: Forward declare "struct parser_state".
9279         (java_parse): Add "struct parser_state" argument.
9280         * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9281         parser state.
9282         (yyparse): Redefine macro to m2_parse_internal.
9283         (pstate): New variable.
9284         (type_exp, exp, fblock, variable, type): Update calls to
9285         write_exp* and similars to use parser state.
9286         (yylex): Likewise.
9287         (m2_parse): New function.
9288         * m2-lang.h: Forward declare "struct parser_state".
9289         (m2_parse): Add "struct parser_state" argument.
9290         * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9291         * objc-lang.h: Forward declare "struct parser_state".
9292         (end_msglist): Add "struct parser_state" argument.
9293         * p-exp.y (parse_type): Rewrite macro to use parser state.
9294         (yyparse): Redefine macro to pascal_parse_internal.
9295         (pstate): New variable.
9296         (parse_number): Add "struct parser_state" argument.
9297         (type_exp, exp1, exp, qualified_name, variable): Update calls to
9298         write_exp* and similars in order to use parser state.
9299         (parse_number, yylex): Adjust code to use parser state.
9300         (pascal_parse): New function.
9301         * p-lang.h: Forward declare "struct parser_state".
9302         (pascal_parse): Add "struct parser_state" argument.
9303         * go-exp.y (parse_type): Rewrite macro to use parser state.
9304         (yyparse): Redefine macro to go_parse_internal.
9305         (pstate): New variable.
9306         (parse_number): Add "struct parser_state" argument.
9307         (type_exp, exp1, exp, variable, type): Update calls to
9308         write_exp* and similars in order to use parser state.
9309         (parse_number, lex_one_token, classify_name, yylex): Adjust code
9310         to use parser state.
9311         (go_parse): Likewise.
9312         * go-lang.h: Forward declare "struct parser_state".
9313         (go_parse): Add "struct parser_state" argument.
9314
9315 2014-03-27  Doug Evans  <dje@google.com>
9316
9317         * dwarf2read.c (read_str_index): Delete arg cu.  All callers updated.
9318
9319 2014-03-27  Doug Evans  <dje@google.com>
9320
9321         * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9322         Remove argument abbrev_section.  All callers updated.
9323
9324 2014-03-27  Doug Evans  <dje@google.com>
9325
9326         * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9327         addr_base, ranges_base.
9328
9329 2014-03-26  Keith Seitz  <keiths@redhat.com>
9330
9331         * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9332         types, not VAR_DOMAIN.
9333
9334 2014-03-25  Sandra Loosemore  <sandra@codesourcery.com>
9335
9336         * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9337         "ra" registers.
9338         * features/nios2-linux.c: Regenerated.
9339         * features/nios2.c: Regenerated.
9340
9341 2014-03-25  Pedro Alves  <palves@redhat.com>
9342
9343         * cli/cli-script.c (script_from_file): Force the interpreter to
9344         sync mode.
9345
9346 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
9347
9348         * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9349         small stack allocation.
9350
9351 2014-03-24  Tristan Gingold  <gingold@adacore.com>
9352
9353         * darwin-nat.c (exc_server): Remove unused prototype.
9354         (darwin_dump_message): Correctly display data on x86_64.
9355         (darwin_encode_reply): Fix style.
9356         Add comments and fix indentation.
9357
9358 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
9359
9360         * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9361
9362 2014-03-22  Doug Evans  <xdje42@gmail.com>
9363
9364         * infcmd.c: Whitespace fixes.
9365         (interrupt_command): Merge two function comments into one.
9366
9367 2014-03-22  Doug Evans  <xdje42@gmail.com>
9368
9369         * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9370         All uses updated.
9371
9372 2014-03-22  Yao Qi  <yao@codesourcery.com>
9373
9374         * remote.c (target_read_live_memory): Remove.
9375         (memory_xfer_live_readonly_partial): Rename it to
9376         remote_xfer_live_readonly_partial.  Remove argument 'object'.
9377         All callers updated.  Call remote_read_bytes_1
9378         instead of target_read_live_memory.
9379         * tracepoint.c (set_traceframe_number): Remove.
9380         (make_cleanup_restore_traceframe_number): Likewise .
9381         * tracepoint.h (set_traceframe_number): Remove declaration.
9382         (make_cleanup_restore_traceframe_number): Likewise.
9383
9384 2014-03-22  Yao Qi  <yao@codesourcery.com>
9385
9386         * remote.c (remote_read_bytes): Move code on reading from the
9387         remote stub to ...
9388         (remote_read_bytes_1): ... here.  New function.
9389
9390 2014-03-22  Yao Qi  <yao@codesourcery.com>
9391
9392         * ctf.c (ctf_xfer_partial): Check the return value of
9393         exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9394         return TARGET_XFER_UNAVAILABLE.
9395         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9396         * target.c (target_read_live_memory): Move it to remote.c.
9397         (memory_xfer_live_readonly_partial): Likewise.
9398         (memory_xfer_partial_1): Move some code to remote_read_bytes.
9399         * remote.c (target_read_live_memory): Moved from target.c.
9400         (memory_xfer_live_readonly_partial): Likewise.
9401         (remote_read_bytes): Factored out from
9402         memory_xfer_partial_1.
9403
9404 2014-03-21  Daniel Gutson  <daniel.gutson@tallertechnologies.com>
9405
9406         * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9407         NULL pointer.
9408
9409 2014-03-21  Pedro Alves  <palves@redhat.com>
9410
9411         * infrun.c (normal_stop): Extend comment.
9412
9413 2014-03-21  Hui Zhu  <hui@codesourcery.com>
9414             Pedro Alves  <palves@redhat.com>
9415
9416         * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9417         static buffer.
9418         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9419         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9420         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9421
9422 2014-03-20  Maciej W. Rozycki  <macro@codesourcery.com>
9423
9424         * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9425         `z' formatted output modifier.
9426
9427 2014-03-20  Tom Tromey  <tromey@redhat.com>
9428             Sergio Durigan Junior  <sergiodj@redhat.com>
9429
9430         * probe.c (parse_probes): Turn assert into an ordinary error.
9431         * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9432         exceptions when parsing probes.  Rearrange the code for clarity.
9433
9434 2014-03-20  Tom Tromey  <tromey@redhat.com>
9435
9436         PR gdb/14135
9437         * top.c (execute_command): Only dispatch events if the command
9438         started the target.
9439
9440 2014-03-20  Tom Tromey  <tromey@redhat.com>
9441
9442         PR cli/15718
9443         * infcall.c: Include event-top.h.
9444         (run_inferior_call): Call async_disable_stdin if needed.
9445
9446 2014-03-20  Pedro Alves  <palves@redhat.com>
9447
9448         * infrun.c (prepare_to_proceed): Delete.
9449         (thread_still_needs_step_over): New function.
9450         (find_thread_needs_step_over): New function.
9451         (proceed): If the current thread needs a step-over, set its
9452         steping_over_breakpoint flag.  Adjust to use
9453         find_thread_needs_step_over instead of prepare_to_proceed.
9454         (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9455         BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9456         breakpoint.
9457         (switch_back_to_stepped_thread): Step over breakpoints of all
9458         threads not the stepping thread, before switching back to the
9459         stepping thread.
9460
9461 2014-03-20  Pedro Alves  <palves@redhat.com>
9462
9463         * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9464         extern.
9465         * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9466         * infrun.c (saved_singlestep_ptid)
9467         (stepping_past_singlestep_breakpoint): Delete.
9468         (resume): Remove stepping_past_singlestep_breakpoint handling.
9469         (proceed): Store the prev_pc of the stepping thread too.
9470         (init_wait_for_inferior): Adjust.  Clear singlestep_ptid and
9471         singlestep_pc.
9472         (enum infwait_states): Delete infwait_thread_hop_state.
9473         (struct execution_control_state) <hit_singlestep_breakpoint>: New
9474         field.
9475         (handle_inferior_event): Adjust.
9476         (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9477         handling and the thread-hop code.  Before removing single-step
9478         breakpoints, check whether the thread hit a single-step breakpoint
9479         of another thread.  If it did, the trap is not a random signal.
9480         (switch_back_to_stepped_thread): If the event thread hit a
9481         single-step breakpoint, unblock it before switching to the
9482         stepping thread.  Handle the case of the stepped thread having
9483         advanced already.
9484         (keep_going): Handle the case of the current thread moving past a
9485         single-step breakpoint.
9486
9487 2014-03-20  Pedro Alves  <palves@redhat.com>
9488
9489         PR breakpoints/7143
9490         * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9491         are being stepped over.
9492         (breakpoint_address_match): Make extern.
9493         * breakpoint.h (breakpoint_address_match): New declaration.
9494         * inferior.h (stepping_past_instruction_at): New declaration.
9495         * infrun.c (struct step_over_info): New type.
9496         (step_over_info): New global.
9497         (set_step_over_info, clear_step_over_info)
9498         (stepping_past_instruction_at): New functions.
9499         (handle_inferior_event): Clear the step-over info when
9500         trap_expected is cleared.
9501         (resume): Remove now stale comment.
9502         (clear_proceed_status): Clear step-over info.
9503         (proceed): Adjust step-over handling to set or clear the step-over
9504         info instead of removing all breakpoints.
9505         (handle_signal_stop): When setting up a thread-hop, don't remove
9506         breakpoints here.
9507         (stop_stepping): Clear step-over info.
9508         (keep_going): Adjust step-over handling to set or clear step-over
9509         info and then always inserting breakpoints, instead of removing
9510         all breakpoints when stepping over one.
9511
9512 2014-03-20  Pedro Alves  <palves@redhat.com>
9513
9514         * infrun.c (previous_inferior_ptid): Adjust comment.
9515         (deferred_step_ptid): Delete.
9516         (infrun_thread_ptid_changed, prepare_to_proceed)
9517         (init_wait_for_inferior): Adjust.
9518         (handle_signal_stop): Delete deferred_step_ptid handling.
9519
9520 2014-03-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
9521
9522         PR gdb/15358
9523         * defs.h (sync_quit_force_run): New declaration.
9524         (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9525         * event-top.c (async_sigterm_handler): New declaration.
9526         (async_sigterm_token): New variable.
9527         (async_init_signals): Create also async_sigterm_token.
9528         (async_sigterm_handler): New function.
9529         (sync_quit_force_run): New variable.
9530         (handle_sigterm): Replace quit_force call by other calls.
9531         * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9532
9533 2014-03-18  Maciej W. Rozycki  <macro@codesourcery.com>
9534
9535         * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9536         offset into SPE pseudo registers.
9537
9538 2014-03-18  Pedro Alves  <palves@redhat.com>
9539
9540         PR gdb/13860
9541         * inferior.h (print_stop_event): Declare.
9542         * infrun.c (print_stop_event): New, factored out from ...
9543         (normal_stop): ... this.
9544         * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9545         of bpstat_print/print_stack_frame.
9546
9547 2014-03-17  Tom Tromey  <tromey@redhat.com>
9548
9549         * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9550
9551 2014-03-17  Pierre-Marie de Rodat  <derodat@adacore.com>
9552
9553         * ada-lang.c (decode_constrained_packed_array): Perform a
9554         minimal coercion for reference with coerce_ref instead of
9555         ada_coerce_ref.
9556
9557 2014-03-17  Tristan Gingold  <gingold@adacore.com>
9558
9559         * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9560         (darwin_solib_create_inferior_hook): Emit a warning if version
9561         is unhandled.
9562
9563 2014-03-16  Ulrich Weigand  <uweigand@de.ibm.com>
9564
9565         * python/py-value.c (get_field_flag): Cast flag_name argument to
9566         PyObject_GetAttrString to support Python 2.4.
9567
9568 2014-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
9569
9570         * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9571         (Global Maintainers): Remove Jan Kratochvil.
9572
9573 2014-03-14  Pedro Alves  <palves@redhat.com>
9574
9575         * inferior.h (terminal_ours_for_output): Rename to ...
9576         (child_terminal_ours_for_output): ... this.
9577         (terminal_save_ours): Rename to ...
9578         (child_terminal_save_ours): ... this.
9579         (terminal_ours): Rename to ...
9580         (child_terminal_ours): ... this.
9581         (terminal_inferior): Rename to ...
9582         (child_terminal_inferior): ... this.
9583         (terminal_init_inferior): Rename to ...
9584         (child_terminal_init_inferior): ... this.
9585         (terminal_init_inferior_with_pgrp): Rename to ...
9586         (child_terminal_init_inferior_with_pgrp): ... this.
9587         * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9588         (child_terminal_init_with_pgrp): ... this.
9589         (terminal_save_ours): Rename to ...
9590         (child_terminal_save_ours): ... this.
9591         (terminal_init_inferior): Rename to ...
9592         (child_terminal_init): ... this.  Adjust.
9593         (terminal_inferior): Rename to ...
9594         (child_terminal_inferior): ... this.
9595         (terminal_ours_for_output): Rename to ...
9596         (child_terminal_ours_for_output): ... this.  Adjust.
9597         (terminal_ours): Rename to ...
9598         (child_terminal_ours): ... this.
9599         (terminal_ours_1): Rename to ...
9600         (child_terminal_ours_1): ... this.  Adjust.
9601         * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9602         * windows-nat.c (do_initial_windows_stuff): Adjust.
9603         * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9604         (gnu_terminal_init): ... this.  Adjust.
9605         (gnu_target): Adjust.
9606         * inf-child.c (inf_child_target): Adjust.
9607
9608 2014-03-13  Doug Evans  <xdje42@gmail.com>
9609
9610         PR guile/16612
9611         * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9612         new eq?-hashtab.
9613
9614 2014-03-13  Doug Evans  <xdje42@gmail.com>
9615
9616         * value.c (record_latest_value): Call release_value_or_incref
9617         instead of release_value.
9618
9619 2014-03-13  Pedro Alves  <palves@redhat.com>
9620
9621         * procfs.c (procfs_target): Don't override to_shortname,
9622         to_longname or to_doc.
9623
9624 2014-03-13  Pedro Alves  <palves@redhat.com>
9625
9626         * inf-child.c (inf_child_open, inf_child_target): Don't mention
9627         Unix in user visible strings.
9628
9629 2014-03-12  Stan Shebs  <stan@codesourcery.com>
9630
9631         * gdbtypes.h: Annotate comments for Doxygen, add a page
9632         block comment with some general info.
9633
9634 2014-03-12  Pedro Alves  <palves@redhat.com>
9635
9636         * infcmd.c (prepare_execution_command): New function, factored out
9637         from several execution commands.
9638         (run_command_1, continue_command, step_1, jump_command)
9639         (signal_command, until_command, advance_command, finish_command)
9640         (attach_command): Use prepare_execution_command.
9641
9642 2014-03-12  Omair Javaid  <omair.javaid@linaro.org>
9643
9644         * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9645         (MAX_BPTS): Define.
9646         (MAX_WPTS): Define.
9647         (struct arm_linux_thread_points): Removed.
9648         (struct arm_linux_process_info): New.
9649         (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9650         (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9651         (arm_linux_find_breakpoints_by_tid): Removed.
9652         (struct arch_lwp_info): New.
9653         (arm_linux_find_process_pid): New functions.
9654         (arm_linux_add_process): New functions.
9655         (arm_linux_process_info_get): New functions.
9656         (arm_linux_forget_process): New function.
9657         (arm_linux_get_debug_reg_state): New function.
9658         (struct update_registers_data): New.
9659         (update_registers_callback): New function.
9660         (arm_linux_insert_hw_breakpoint1): Updated.
9661         (arm_linux_remove_hw_breakpoint1): Updated.
9662         (arm_linux_insert_hw_breakpoint): Updated.
9663         (arm_linux_remove_hw_breakpoint): Updated.
9664         (arm_linux_insert_watchpoint): Updated.
9665         (arm_linux_remove_watchpoint): Updated.
9666         (arm_linux_new_thread): Updated.
9667         (arm_linux_prepare_to_resume): New function.
9668         (arm_linux_new_fork): New function.
9669         (_initialize_arm_linux_nat): Updated.
9670
9671 2014-03-12  Pedro Alves  <palves@redhat.com>
9672
9673         * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9674
9675 2014-03-12  Tom Tromey  <tromey@redhat.com>
9676
9677         * inf-child.c (return_zero): New function.
9678         (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9679         * aix-thread.c (aix_thread_inferior_created): New function.
9680         (aix_thread_attach): Remove.
9681         (init_aix_thread_ops): Don't set to_attach.
9682         (_initialize_aix_thread): Register inferior_created observer.
9683         * corelow.c (init_core_ops): Don't set to_attach or
9684         to_create_inferior.
9685         * exec.c (init_exec_ops): Don't set to_attach or
9686         to_create_inferior.
9687         * infcmd.c (run_command_1): Use find_run_target.  Make direct
9688         target calls.
9689         (attach_command): Use find_attach_target.  Make direct target
9690         calls.
9691         * record-btrace.c (init_record_btrace_ops): Don't set
9692         to_create_inferior.
9693         * record-full.c (record_full_can_async_p, record_full_is_async_p):
9694         Remove.
9695         (init_record_full_ops, init_record_full_core_ops): Update.  Don't
9696         set to_create_inferior.
9697         * target.c (complete_target_initialization): Add assertion.
9698         (target_create_inferior): Remove.
9699         (find_default_attach, find_default_create_inferior): Remove.
9700         (find_attach_target, find_run_target): New functions.
9701         (find_default_is_async_p, find_default_can_async_p)
9702         (target_supports_non_stop, target_attach): Remove.
9703         (init_dummy_target): Don't set to_create_inferior or
9704         to_supports_non_stop.
9705         * target.h (struct target_ops) <to_attach>: Add comment.  Remove
9706         TARGET_DEFAULT_FUNC.
9707         <to_create_inferior>: Add comment.
9708         <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9709         TARGET_DEFAULT_RETURN.
9710         <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9711         (find_attach_target, find_run_target): Declare.
9712         (target_create_inferior): Remove.
9713         (target_has_execution_1): Update comment.
9714         (target_supports_non_stop): Remove.
9715         * target-delegates.c: Rebuild.
9716
9717 2014-03-12  Pedro Alves  <palves@redhat.com>
9718
9719         * inf-child.h: Update comment to not mention Unix.
9720
9721 2014-03-12  Pedro Alves  <palves@redhat.com>
9722
9723         * inf-child.c: Update top comment to not mention Unix.  Add
9724         generic comment describing how this target is meant to be used.
9725         (inf_child_post_attach, inf_child_post_startup_inferior)
9726         (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9727         Unix in comment.
9728
9729 2014-03-12  Pedro Alves  <palves@redhat.com>
9730
9731         * nto-procfs.c: Include inf-child.h.
9732         (procfs_ops): Delete global.
9733         (procfs_can_run): Delete method.
9734         (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9735         target pointer instead of referencing procfs_ops.
9736         (procfs_prepare_to_store): Delete.
9737         (init_procfs_ops): Delete function.
9738         (procfs_target): New function, based on init_procfs_ops, but
9739         inherit inf_child_target.
9740         (_initialize_procfs): Use procfs_target.
9741
9742 2014-03-12  Pedro Alves  <palves@redhat.com>
9743
9744         * windows-nat.c: Include inf-child.h.
9745         (windows_ops): Delete global.
9746         (windows_open, windows_prepare_to_store, windows_can_run): Delete
9747         methods.
9748         (init_windows_ops): Delete function.
9749         (windows_target): New function, based on init_windows_ops, but
9750         inherit inf_child_target.
9751         (_initialize_windows_nat): Use windows_target.  Install x86
9752         specific target methods here.
9753
9754 2014-03-10  Doug Evans  <xdje42@gmail.com>
9755
9756         * guile/guile.c (call_initialize_gdb_module): New function.
9757         (initialize_guile): Replace call to scm_init_guile with call to
9758         scm_with_guile.
9759
9760 2014-03-10  Joel Brobecker  <brobecker@adacore.com>
9761
9762         * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9763         in call to TYPE_CODE macro.
9764
9765 2014-03-10  Jerome Guitton  <guitton@adacore.com>
9766
9767         * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9768         Resolve tagged types to full view.
9769
9770 2014-03-10  Hui Zhu  <hui@codesourcery.com>
9771
9772         * target.h (target_insert_breakpoint): Remove "hardware" from its
9773         comments.
9774
9775 2014-03-07  Doug Evans  <dje@google.com>
9776
9777         * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9778
9779 2014-03-07  Doug Evans  <dje@google.com>
9780
9781         * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9782         Remove unused local comp_dir_attr.  Assert exactly one of
9783         stub_comp_unit_die, stub_comp_dir is non-NULL.
9784
9785 2014-03-07  Joel Brobecker  <brobecker@adacore.com>
9786
9787         * target.h (complete_target_initialization, add_target):
9788         Add comment.
9789
9790 2014-03-07  Pedro Alves  <palves@redhat.com>
9791
9792         * go32-nat.c: Include inf-child.h.
9793         (go32_ops): Delete global.
9794         (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9795         Delete methods.
9796         (go32_create_inferior): Push the passed in target pointer instead
9797         of referencing go32_ops.
9798         (init_go32_ops): Delete function.  Moved parts to _initialize_go32_nat.
9799         (go32_target): New function, based on init_go32_ops, but inherit
9800         inf_child_target.
9801         (_initialize_go32_nat): Use go32_target.  Move parts of
9802         init_go32_ops here.
9803
9804 2014-03-06  Joel Brobecker  <brobecker@adacore.com>
9805
9806         * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9807         (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9808         SYMBOL_VALUE_ADDRESS.
9809         (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9810
9811 2014-03-06  Yao Qi  <yao@codesourcery.com>
9812
9813         * breakpoint.c (get_tracepoint_by_number): Remove argument
9814         optional_p.  All callers updated.  Adjust comments.  Update
9815         output message.
9816         * breakpoint.h (get_tracepoint_by_number): Update declaration.
9817
9818 2014-03-06  Yao Qi  <yao@codesourcery.com>
9819
9820         * reverse.c (goto_bookmark_command): Add local 'p'.  Emit error
9821         early if get_number returns zero.  Use 'p' instead of 'args'.
9822
9823 2014-03-06  Yao Qi  <yao@codesourcery.com>
9824
9825         * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9826         message.
9827
9828 2014-03-06  Yao Qi  <yao@codesourcery.com>
9829
9830         PR breakpoints/16508
9831         * tracepoint.c (check_trace_running): New function.
9832         (trace_find_command): Move code to check_trace_running and
9833         call check_trace_running.
9834         (trace_find_pc_command): Likewise.
9835         (trace_find_tracepoint_command): Likewise.
9836         (trace_find_line_command): Likewise.
9837         (trace_find_range_command): Likewise.
9838         * tracepoint.h (check_trace_running): Likewise.
9839         * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9840
9841 2014-03-06  Yao Qi  <yao@codesourcery.com>
9842
9843         * target.h (struct target_ops) <to_traceframe_info>: Use
9844         TARGET_DEFAULT_NORETURN (tcomplain ()).
9845         * target-delegates.c: Regenerated.
9846
9847 2014-03-05  Pedro Alves  <palves@redhat.com>
9848
9849         PR gdb/16575
9850         * dcache.c (dcache_poke_byte): Constify ptr parameter.  Return
9851         void.  Update comment.
9852         (dcache_xfer_memory): Delete.
9853         (dcache_read_memory_partial): New, based on the read bits of
9854         dcache_xfer_memory.
9855         (dcache_update): Add status parameter.  Use ULONGEST for len, and
9856         adjust.  Discard cache lines if the reason for the update was
9857         error.
9858         * dcache.h (dcache_xfer_memory): Delete declaration.
9859         (dcache_read_memory_partial): New declaration.
9860         (dcache_update): Update prototype.
9861         * target.c (raw_memory_xfer_partial): Update the dcache here.
9862         (memory_xfer_partial_1): Don't handle dcache writes here.
9863
9864 2014-03-05  Mike Frysinger  <vapier@gentoo.org>
9865
9866         * remote-sim.c (gdbsim_load): Add const to prog.
9867
9868 2014-03-03  Tom Tromey  <tromey@redhat.com>
9869
9870         * elfread.c (probe_key): Change to bfd_data.
9871         (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9872         now per-BFD, not per-objfile.
9873         * stap-probe.c (stap_probe_destroy): Update comment.
9874         (handle_stap_probe): Allocate on the per-BFD obstack.
9875
9876 2014-03-03  Tom Tromey  <tromey@redhat.com>
9877
9878         * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9879         * breakpoint.c (create_longjmp_master_breakpoint): Use
9880         get_probe_address.
9881         (add_location_to_breakpoint, bkpt_probe_insert_location)
9882         (bkpt_probe_remove_location): Update.
9883         * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9884         * elfread.c (elf_symfile_relocate_probe): Remove.
9885         (elf_probe_fns): Update.
9886         (insert_exception_resume_breakpoint): Change type of "probe"
9887         parameter to bound_probe.
9888         (check_exception_resume): Update.
9889         * objfiles.c (objfile_relocate1): Don't relocate probes.
9890         * probe.c (bound_probe_s): New typedef.
9891         (parse_probes): Use get_probe_address.  Set sal's objfile.
9892         (find_probe_by_pc): Return a bound_probe.
9893         (collect_probes): Return a VEC(bound_probe_s).
9894         (compare_probes): Update.
9895         (gen_ui_out_table_header_info): Change type of "probes"
9896         parameter.  Update.
9897         (info_probes_for_ops): Update.
9898         (get_probe_address): New function.
9899         (probe_safe_evaluate_at_pc): Update.
9900         * probe.h (struct probe_ops) <get_probe_address>: New field.
9901         <set_semaphore, clear_semaphore>: Add objfile parameter.
9902         (struct probe) <objfile>: Remove field.
9903         <arch>: New field.
9904         <address>: Update comment.
9905         (struct bound_probe): New.
9906         (find_probe_by_pc): Return a bound_probe.
9907         (get_probe_address): Declare.
9908         * solib-svr4.c (struct probe_and_action) <address>: New field.
9909         (hash_probe_and_action, equal_probe_and_action): Update.
9910         (register_solib_event_probe): Add address parameter.
9911         (solib_event_probe_at): Update.
9912         (svr4_create_probe_breakpoints): Add objfile parameter.  Use
9913         get_probe_address.
9914         * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9915         (stap_get_probe_address): New function.
9916         (stap_can_evaluate_probe_arguments, compute_probe_arg)
9917         (compile_probe_arg): Update.
9918         (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9919         address.
9920         (handle_stap_probe): Don't relocate the probe.
9921         (stap_relocate): Remove.
9922         (stap_gen_info_probes_table_values): Update.
9923         (stap_probe_ops): Remove stap_relocate.
9924         * symfile-debug.c (debug_sym_relocate_probe): Remove.
9925         (debug_sym_probe_fns): Update.
9926         * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9927         * symtab.c (init_sal): Use memset.
9928         * symtab.h (struct symtab_and_line) <objfile>: New field.
9929         * tracepoint.c (start_tracing, stop_tracing): Update.
9930
9931 2014-03-03  Tom Tromey  <tromey@redhat.com>
9932
9933         * probe.h (parse_probes, find_probe_by_pc)
9934         (find_probes_in_objfile): Fix comments.
9935
9936 2014-03-02  Doug Evans  <xdje42@gmail.com>
9937
9938         * infrun.c (handle_signal_stop): Replace test for
9939         TARGET_WAITKIND_STOPPED with an assert.
9940
9941 2014-03-02  Doug Evans  <xdje42@gmail.com>
9942
9943         * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9944
9945 2014-03-02  Doug Evans  <xdje42@gmail.com>
9946
9947         * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9948
9949 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
9950
9951         * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9952
9953 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
9954
9955         * i386obsd-nat.c: Include "obsd-nat.h".
9956         (_initialize_i386obsd_nat): Call obsd_add_target instead of
9957         add_target.
9958         * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9959
9960 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
9961
9962         * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9963
9964 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
9965
9966         * mips64obsd-nat.c: Include "obsd-nath".
9967         (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9968         add_target
9969         * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9970
9971 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
9972
9973         * amd64obsd-nat.c: Include "obsd-nat,h.
9974         (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9975         add_target.
9976         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9977
9978 2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
9979
9980         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9981         (find_overload_match): Update call to find_oload_champ.
9982         (find_oload_champ_namespace_loop): Likewise
9983
9984 2014-02-28  Mark Kettenis  <kettenis@gnu.org>
9985
9986         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9987
9988         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9989         * config/sparc/obsd64.mh: New file.
9990         * sparc64obsd-nat.c: New file.
9991
9992         * obsd-nat.h: New file.
9993         * obsd-nat.c: New file.
9994         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9995         (ALLDEPFILES): Add obsd-nat.c.
9996
9997 2014-02-28  Tom Tromey  <tromey@redhat.com>
9998
9999         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
10000         * cli-out.h (cli_ui_out_impl): Now const.
10001         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
10002         * ui-out.c (struct ui_out) <impl>: Now const.
10003         (default_ui_out_impl): Now const.
10004         (ui_out_new): Make 'impl' parameter const.
10005         * ui-out.h (ui_out_new): Update.
10006
10007 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
10008
10009         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10010
10011 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
10012
10013         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10014
10015 2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
10016
10017         Additional PR 8882 fix.
10018         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10019
10020 2014-02-27  Pedro Alves  <palves@redhat.com>
10021
10022         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10023         isn't set.
10024
10025 2014-02-27  Pedro Alves  <palves@redhat.com>
10026
10027         PR 12702
10028         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10029         * nat/linux-waitpid.c: Include string.h.
10030         (status_to_str): Moved here and made extern.
10031         * nat/linux-waitpid.h (status_to_str): New declaration.
10032
10033 2014-02-27  Hui Zhu  <hui@codesourcery.com>
10034
10035         PR 12702
10036         * infrun.c (ptid_match): Move ...
10037         * common/ptid.c (ptid_match): ... here.
10038         * inferior.h (ptid_match): Move ...
10039         * common/ptid.h (ptid_match): ... here.
10040
10041 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
10042
10043         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10044         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10045         gdb_target_obs.
10046
10047 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
10048
10049         * obsd-tdep.c (obsd_auxv_parse): New function.
10050         (obsd_init_abi): Set auxv_parse.
10051
10052         * gdbarch.sh (auxv_parse): New.
10053         * gdbarch.h: Regenerated.
10054         * gdbarch.c: Regenerated.
10055         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10056
10057 2014-02-26  Ludovic Courtès  <ludo@gnu.org>
10058
10059         * guile/scm-value.c (gdbscm_history_append_x): New function.
10060         (value_functions): Add it.
10061
10062 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
10063
10064         * dwarf2read.c (attr_value_as_address): New function.
10065         (dwarf2_find_base_address, read_call_site_scope): Use
10066         attr_value_as_address in place of DW_ADDR.
10067         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10068         the low and high addresses.  Slight rework of the handling
10069         of the high pc being a constant form, and limit it to
10070         DWARF verson 4 or higher.
10071         (dwarf2_record_block_ranges): Likewise.
10072         (read_partial_die): Likewise.
10073         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10074
10075 2014-02-26  Tom Tromey  <tromey@redhat.com>
10076
10077         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10078
10079 2014-02-26  Tom Tromey  <tromey@redhat.com>
10080
10081         * elfread.c (elf_read_minimal_symbols): Return early if
10082         minimal symbols have already been read.  Add "ei" parameter.
10083         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10084         * minsyms.c (prim_record_minimal_symbol_full): Update.
10085         * objfiles.h (struct objstats) <n_minsyms>: Move...
10086         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10087         * symmisc.c (print_objfile_statistics): Update.
10088
10089 2014-02-26  Tom Tromey  <tromey@redhat.com>
10090
10091         * elfread.c (elf_read_minimal_symbols): New function, from
10092         elf_symfile_read.
10093         (elf_symfile_read): Call it.
10094
10095 2014-02-26  Tom Tromey  <tromey@redhat.com>
10096
10097         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10098         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10099         (lookup_minimal_symbol_solib_trampoline)
10100         (lookup_minimal_symbol_by_pc_section_1)
10101         (lookup_minimal_symbol_and_objfile): Update.
10102         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10103         Don't allocate a minimal symbol if minsyms have already been read.
10104         (build_minimal_symbol_hash_tables): Update.
10105         (install_minimal_symbols): Do nothing if minsyms already read.
10106         Use the per-BFD obstack.
10107         (terminate_minimal_symbol_table): Use the per-BFD obstack.
10108         * objfiles.c (allocate_objfile): Call
10109         terminate_minimal_symbol_table later.
10110         (have_minimal_symbols): Update.
10111         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10112         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10113         Move from struct objfile.
10114         <minsyms_read>: New field.
10115         (struct objfile) <msymbols, minimal_symbol_count,
10116         msymbol_hash, msymbol_demangled_hash>: Move.
10117         (ALL_OBJFILE_MSYMBOLS): Update.
10118         * symfile.c (read_symbols): Set minsyms_read.
10119         (reread_symbols): Update.
10120         * symmisc.c (dump_objfile, dump_msymbols): Update.
10121
10122 2014-02-26  Tom Tromey  <tromey@redhat.com>
10123
10124         * minsyms.c (msymbols_sort): Remove.
10125         * minsyms.h (msymbols_sort): Remove.
10126         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10127         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10128         * elfread.c (elf_symtab_read): Don't add section offsets.
10129         * xcoffread.c (record_minimal_symbol): Don't add section offset
10130         to minimal symbol address.
10131         * somread.c (text_offset, data_offset): Remove.
10132         (som_symtab_read): Don't add section offsets to minimal symbol
10133         addresses.
10134         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10135         Don't add section offsets to minimal symbols.
10136         * coffread.c (coff_symtab_read): Don't add section offsets
10137         to minimal symbol addresses.
10138         * machoread.c (macho_symtab_add_minsym): Don't add section offset
10139         to minimal symbol addresses.
10140         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10141         section offset to minimal symbol addresses.
10142         * mdebugread.c (parse_partial_symbols): Don't add section
10143         offset to minimal symbol addresses.
10144         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10145         offset to minimal symbol addresses.
10146
10147 2014-02-26  Tom Tromey  <tromey@redhat.com>
10148
10149         * ada-lang.c (ada_main_name): Update.
10150         (ada_add_standard_exceptions): Update.
10151         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10152         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10153         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10154         * auxv.c (ld_so_xfer_auxv): Update.
10155         * avr-tdep.c (avr_scan_prologue): Update.
10156         * ax-gdb.c (gen_var_ref): Update.
10157         * blockframe.c (get_pc_function_start)
10158         (find_pc_partial_function_gnu_ifunc): Update.
10159         * breakpoint.c (create_overlay_event_breakpoint)
10160         (create_longjmp_master_breakpoint)
10161         (create_std_terminate_master_breakpoint)
10162         (create_exception_master_breakpoint): Update.
10163         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10164         * c-valprint.c (c_val_print): Update.
10165         * coff-pe-read.c (add_pe_forwarded_sym): Update.
10166         * common/agent.c (agent_look_up_symbols): Update.
10167         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10168         * dwarf2loc.c (call_site_to_target_addr): Update.
10169         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10170         * elfread.c (elf_gnu_ifunc_record_cache)
10171         (elf_gnu_ifunc_resolve_by_got): Update.
10172         * findvar.c (default_read_var_value): Update.
10173         * frame.c (inside_main_func): Update.
10174         * frv-tdep.c (frv_frame_this_id): Update.
10175         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10176         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10177         Update.
10178         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10179         (hppa_hpux_find_dummy_bpaddr): Update.
10180         * hppa-tdep.c (hppa_symbol_address): Update.
10181         * infcmd.c (until_next_command): Update.
10182         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10183         Update.
10184         * linespec.c (minsym_found, add_minsym): Update.
10185         * linux-nat.c (get_signo): Update.
10186         * linux-thread-db.c (inferior_has_bug): Update.
10187         * m32c-tdep.c (m32c_return_value)
10188         (m32c_m16c_address_to_pointer): Update.
10189         * m32r-tdep.c (m32r_frame_this_id): Update.
10190         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10191         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10192         * maint.c (maintenance_translate_address): Update.
10193         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10194         (frob_address): New function.
10195         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10196         frob_address.  Rename parameter to "pc_in".
10197         (compare_minimal_symbols, compact_minimal_symbols): Use raw
10198         addresses.
10199         (find_solib_trampoline_target, minimal_symbol_upper_bound):
10200         Update.
10201         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10202         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10203         * objc-lang.c (find_objc_msgsend): Update.
10204         * objfiles.c (objfile_relocate1): Update.
10205         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10206         * p-valprint.c (pascal_val_print): Update.
10207         * parse.c (write_exp_msymbol): Update.
10208         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10209         (ppc_elfv2_skip_entrypoint): Update.
10210         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10211         * printcmd.c (build_address_symbolic, msym_info)
10212         (address_info): Update.
10213         * proc-service.c (ps_pglobal_lookup): Update.
10214         * psymtab.c (find_pc_sect_psymtab_closer)
10215         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10216         Change msymbol parameter to bound_minimal_symbol.
10217         * ravenscar-thread.c (get_running_thread_id): Update.
10218         * remote.c (remote_check_symbols): Update.
10219         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10220         address.
10221         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10222         * solib-dsbt.c (lm_base): Update.
10223         * solib-frv.c (lm_base, main_got): Update.
10224         * solib-irix.c (locate_base): Update.
10225         * solib-som.c (som_solib_create_inferior_hook)
10226         (link_map_start): Update.
10227         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10228         * solib-svr4.c (elf_locate_base, enable_break): Update.
10229         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10230         (flush_ea_cache): Update.
10231         * stabsread.c (define_symbol, scan_file_globals): Update.
10232         * stack.c (find_frame_funname): Update.
10233         * symfile-debug.c (debug_qf_expand_symtabs_matching)
10234         (debug_qf_find_pc_sect_symtab): Update.
10235         * symfile.c (simple_read_overlay_table)
10236         (simple_overlay_update): Update.
10237         * symfile.h (struct quick_symbol_functions)
10238         <find_pc_sect_symtab>: Change type of msymbol to
10239         bound_minimal_symbol.
10240         * symmisc.c (dump_msymbols): Update.
10241         * symtab.c (find_pc_sect_symtab_via_partial)
10242         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10243         (search_symbols, print_msymbol_info): Update.
10244         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10245         (MSYMBOL_VALUE_ADDRESS): Redefine.
10246         (BMSYMBOL_VALUE_ADDRESS): New macro.
10247         * tracepoint.c (scope_info): Update.
10248         * tui/tui-disasm.c (tui_find_disassembly_address)
10249         (tui_get_begin_asm_address): Update.
10250         * valops.c (find_function_in_inferior): Update.
10251         * value.c (value_static_field, value_fn_field): Update.
10252
10253 2014-02-26  Tom Tromey  <tromey@redhat.com>
10254
10255         * ada-lang.c (ada_update_initial_language): Update.
10256         (ada_main_name, ada_has_this_exception_support): Update.
10257         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10258         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10259         * arm-tdep.c (arm_skip_stub): Update.
10260         * auxv.c (ld_so_xfer_auxv): Update.
10261         * avr-tdep.c (avr_scan_prologue): Update.
10262         * ax-gdb.c (gen_var_ref): Update.
10263         * breakpoint.c (struct breakpoint_objfile_data)
10264         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10265         type to bound_minimal_symbol.
10266         (create_overlay_event_breakpoint)
10267         (create_longjmp_master_breakpoint)
10268         (create_std_terminate_master_breakpoint)
10269         (create_exception_master_breakpoint): Update.
10270         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10271         * c-exp.y (classify_name): Update.
10272         * coffread.c (coff_symfile_read): Update.
10273         * common/agent.c (agent_look_up_symbols): Update.
10274         * d-lang.c (d_main_name): Update.
10275         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10276         * dec-thread.c (enable_dec_thread): Update.
10277         * dwarf2loc.c (call_site_to_target_addr): Update.
10278         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10279         * eval.c (evaluate_subexp_standard): Update.
10280         * findvar.c (struct minsym_lookup_data) <result>: Change type
10281         to bound_minimal_symbol.
10282         <objfile>: Remove.
10283         (minsym_lookup_iterator_cb, default_read_var_value): Update.
10284         * frame.c (inside_main_func): Update.
10285         * frv-tdep.c (frv_frame_this_id): Update.
10286         * gcore.c (call_target_sbrk): Update.
10287         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10288         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10289         Update.
10290         * go-lang.c (go_main_name): Update.
10291         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10292         (hppa_hpux_find_import_stub_for_addr): Update.
10293         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10294         Update.  Change return type.
10295         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10296         type.
10297         * jit.c (jit_breakpoint_re_set_internal): Update.
10298         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10299         Update.
10300         * linux-nat.c (get_signo): Update.
10301         * linux-thread-db.c (inferior_has_bug): Update
10302         * m32c-tdep.c (m32c_return_value)
10303         (m32c_m16c_address_to_pointer): Update.
10304         * m32r-tdep.c (m32r_frame_this_id): Update.
10305         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10306         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10307         * minsyms.c (lookup_minimal_symbol_internal): Rename to
10308         lookup_minimal_symbol.  Change return type.
10309         (lookup_minimal_symbol): Remove.
10310         (lookup_bound_minimal_symbol): Update.
10311         (lookup_minimal_symbol_text): Change return type.
10312         (lookup_minimal_symbol_solib_trampoline): Change return type.
10313         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10314         (lookup_minimal_symbol_solib_trampoline): Change return type.
10315         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10316         * objc-lang.c (lookup_objc_class, lookup_child_selector)
10317         (value_nsstring, find_imps): Update.
10318         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10319         * p-lang.c (pascal_main_name): Update.
10320         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10321         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10322         * proc-service.c (ps_pglobal_lookup): Update.
10323         * ravenscar-thread.c (get_running_thread_msymbol): Change
10324         return type.
10325         (has_ravenscar_runtime, get_running_thread_id): Update.
10326         * remote.c (remote_check_symbols): Update.
10327         * sol-thread.c (ps_pglobal_lookup): Update.
10328         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10329         * solib-dsbt.c (lm_base): Update.
10330         * solib-frv.c (lm_base, frv_relocate_section_addresses):
10331         Update.
10332         * solib-irix.c (locate_base): Update.
10333         * solib-som.c (som_solib_create_inferior_hook)
10334         (som_solib_desire_dynamic_linker_symbols, link_map_start):
10335         Update.
10336         * solib-spu.c (spu_enable_break): Update.
10337         * solib-svr4.c (elf_locate_base, enable_break): Update.
10338         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10339         (flush_ea_cache): Update.
10340         * stabsread.c (define_symbol): Update.
10341         * symfile.c (simple_read_overlay_table): Update.
10342         * symtab.c (find_pc_sect_line): Update.
10343         * tracepoint.c (scope_info): Update.
10344         * tui-disasm.c (tui_get_begin_asm_address): Update.
10345         * value.c (value_static_field): Update.
10346
10347 2014-02-26  Tom Tromey  <tromey@redhat.com>
10348
10349         * minsyms.c (prim_record_minimal_symbol_full): Use
10350         SET_MSYMBOL_VALUE_ADDRESS.
10351         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10352         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10353         SET_MSYMBOL_VALUE_ADDRESS.
10354         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10355         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10356
10357 2014-02-26  Tom Tromey  <tromey@redhat.com>
10358
10359         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10360         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10361         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10362         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10363         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10364         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10365         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10366         * ada-lang.c (ada_main_name): Update.
10367         (ada_lookup_simple_minsym): Update.
10368         (ada_make_symbol_completion_list): Update.
10369         (ada_add_standard_exceptions): Update.
10370         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10371         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10372         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10373         * arm-tdep.c (skip_prologue_function): Update.
10374         (arm_skip_stack_protector, arm_skip_stub): Update.
10375         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10376         (arm_wince_skip_main_prologue): Update.
10377         * auxv.c (ld_so_xfer_auxv): Update.
10378         * avr-tdep.c (avr_scan_prologue): Update.
10379         * ax-gdb.c (gen_var_ref): Update.
10380         * block.c (call_site_for_pc): Update.
10381         * blockframe.c (get_pc_function_start): Update.
10382         (find_pc_partial_function_gnu_ifunc): Update.
10383         * breakpoint.c (create_overlay_event_breakpoint): Update.
10384         (create_longjmp_master_breakpoint): Update.
10385         (create_std_terminate_master_breakpoint): Update.
10386         (create_exception_master_breakpoint): Update.
10387         (resolve_sal_pc): Update.
10388         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10389         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10390         Update.
10391         * c-valprint.c (c_val_print): Update.
10392         * coff-pe-read.c (add_pe_forwarded_sym): Update.
10393         * coffread.c (coff_symfile_read): Update.
10394         * common/agent.c (agent_look_up_symbols): Update.
10395         * dbxread.c (find_stab_function_addr): Update.
10396         (end_psymtab): Update.
10397         * dwarf2loc.c (call_site_to_target_addr): Update.
10398         (func_verify_no_selftailcall): Update.
10399         (tailcall_dump): Update.
10400         (call_site_find_chain_1): Update.
10401         (dwarf_expr_reg_to_entry_parameter): Update.
10402         * elfread.c (elf_gnu_ifunc_record_cache): Update.
10403         (elf_gnu_ifunc_resolve_by_got): Update.
10404         * f-valprint.c (info_common_command): Update.
10405         * findvar.c (read_var_value): Update.
10406         * frame.c (get_prev_frame_1): Update.
10407         (inside_main_func): Update.
10408         * frv-tdep.c (frv_skip_main_prologue): Update.
10409         (frv_frame_this_id): Update.
10410         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10411         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10412         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10413         (gnuv3_skip_trampoline): Update.
10414         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10415         (hppa64_hpux_in_solib_call_trampoline): Update.
10416         (hppa_hpux_skip_trampoline_code): Update.
10417         (hppa64_hpux_search_dummy_call_sequence): Update.
10418         (hppa_hpux_find_import_stub_for_addr): Update.
10419         (hppa_hpux_find_dummy_bpaddr): Update.
10420         * hppa-tdep.c (hppa_symbol_address)
10421         (hppa_lookup_stub_minimal_symbol): Update.
10422         * i386-tdep.c (i386_skip_main_prologue): Update.
10423         (i386_pe_skip_trampoline_code): Update.
10424         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10425         * infcall.c (get_function_name): Update.
10426         * infcmd.c (until_next_command): Update.
10427         * jit.c (jit_breakpoint_re_set_internal): Update.
10428         (jit_inferior_init): Update.
10429         * linespec.c (minsym_found): Update.
10430         (add_minsym): Update.
10431         * linux-fork.c (info_checkpoints_command): Update.
10432         * linux-nat.c (get_signo): Update.
10433         * linux-thread-db.c (inferior_has_bug): Update.
10434         * m32c-tdep.c (m32c_return_value): Update.
10435         (m32c_m16c_address_to_pointer): Update.
10436         (m32c_m16c_pointer_to_address): Update.
10437         * m32r-tdep.c (m32r_frame_this_id): Update.
10438         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10439         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10440         * maint.c (maintenance_translate_address): Update.
10441         * minsyms.c (add_minsym_to_hash_table): Update.
10442         (add_minsym_to_demangled_hash_table): Update.
10443         (msymbol_objfile): Update.
10444         (lookup_minimal_symbol): Update.
10445         (iterate_over_minimal_symbols): Update.
10446         (lookup_minimal_symbol_text): Update.
10447         (lookup_minimal_symbol_by_pc_name): Update.
10448         (lookup_minimal_symbol_solib_trampoline): Update.
10449         (lookup_minimal_symbol_by_pc_section_1): Update.
10450         (lookup_minimal_symbol_and_objfile): Update.
10451         (prim_record_minimal_symbol_full): Update.
10452         (compare_minimal_symbols): Update.
10453         (compact_minimal_symbols): Update.
10454         (build_minimal_symbol_hash_tables): Update.
10455         (install_minimal_symbols): Update.
10456         (terminate_minimal_symbol_table): Update.
10457         (find_solib_trampoline_target): Update.
10458         (minimal_symbol_upper_bound): Update.
10459         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10460         * mips-tdep.c (mips_stub_frame_sniffer): Update.
10461         (mips_skip_pic_trampoline_code): Update.
10462         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10463         * objc-lang.c (selectors_info): Update.
10464         (classes_info): Update.
10465         (find_methods): Update.
10466         (find_imps): Update.
10467         (find_objc_msgsend): Update.
10468         * objfiles.c (objfile_relocate1): Update.
10469         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10470         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10471         * p-valprint.c (pascal_val_print): Update.
10472         * parse.c (write_exp_msymbol): Update.
10473         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10474         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10475         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10476         * printcmd.c (build_address_symbolic): Update.
10477         (sym_info): Update.
10478         (address_info): Update.
10479         * proc-service.c (ps_pglobal_lookup): Update.
10480         * psymtab.c (find_pc_sect_psymtab_closer): Update.
10481         (find_pc_sect_psymtab): Update.
10482         * python/py-framefilter.c (py_print_frame): Update.
10483         * ravenscar-thread.c (get_running_thread_id): Update.
10484         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10485         Update.
10486         * remote.c (remote_check_symbols): Update.
10487         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10488         (rs6000_skip_trampoline_code): Update.
10489         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10490         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10491         * solib-dsbt.c (lm_base): Update.
10492         * solib-frv.c (lm_base): Update.
10493         (main_got): Update.
10494         * solib-irix.c (locate_base): Update.
10495         * solib-som.c (som_solib_create_inferior_hook): Update.
10496         (som_solib_desire_dynamic_linker_symbols): Update.
10497         (link_map_start): Update.
10498         * solib-spu.c (spu_enable_break): Update.
10499         (ocl_enable_break): Update.
10500         * solib-svr4.c (elf_locate_base): Update.
10501         (enable_break): Update.
10502         * spu-tdep.c (spu_get_overlay_table): Update.
10503         (spu_catch_start): Update.
10504         (flush_ea_cache): Update.
10505         * stabsread.c (define_symbol): Update.
10506         (scan_file_globals): Update.
10507         * stack.c (find_frame_funname): Update.
10508         (frame_info): Update.
10509         * symfile.c (simple_read_overlay_table): Update.
10510         (simple_overlay_update): Update.
10511         * symmisc.c (dump_msymbols): Update.
10512         * symtab.c (fixup_section): Update.
10513         (find_pc_sect_line): Update.
10514         (skip_prologue_sal): Update.
10515         (search_symbols): Update.
10516         (print_msymbol_info): Update.
10517         (rbreak_command): Update.
10518         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10519         (completion_list_objc_symbol): Update.
10520         (default_make_symbol_completion_list_break_on): Update.
10521         * tracepoint.c (scope_info): Update.
10522         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10523         (tui_get_begin_asm_address): Update.
10524         * valops.c (find_function_in_inferior): Update.
10525         * value.c (value_static_field): Update.
10526         (value_fn_field): Update.
10527
10528 2014-02-26  Tom Tromey  <tromey@redhat.com>
10529
10530         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10531         bound minimal symbols.  Move code that knows about minsym
10532         table layout...
10533         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
10534         function.
10535         * minsyms.h (minimal_symbol_upper_bound): Declare.
10536         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10537         minimal_symbol_upper_bound.
10538
10539 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
10540
10541         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10542         Use the type's name if its basic type does not have a tag.
10543
10544 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
10545
10546         * dwarf2read.c (read_subrange_type): Add comment.
10547
10548 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
10549
10550         * dwarf2read.c (update_enumeration_type_from_children): New
10551         function, mostly extracted from process_structure_scope.
10552         (read_enumeration_type): Call update_enumeration_type_from_children.
10553         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10554         and flag_flag_enum fields.
10555
10556 2014-02-26  Pedro Alves  <palves@redhat.com>
10557
10558         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10559         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10560         to_xfer_partial method.
10561
10562 2014-02-26  Pedro Alves  <palves@redhat.com>
10563
10564         * target.c (complete_target_initialization): Don't install
10565         default_xfer_partial as to_xfer_partial hook.
10566         (nomemory): Delete.
10567         (update_current_target): Don't INHERIT nor de_fault
10568         deprecated_xfer_memory.  Delete de_fault macro.
10569         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10570         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10571         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10572         field.
10573
10574 2014-02-26  Pedro Alves  <palves@redhat.com>
10575
10576         * go32-nat.c (my_write_child): New function.
10577         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10578         (go32_xfer_partial): New function.
10579         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10580         Instead install a to_xfer_partial hook.
10581
10582 2014-02-26  Pedro Alves  <palves@redhat.com>
10583
10584         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10585         to_xfer_partial helper.  Rewrite.
10586         (procfs_xfer_partial): New function.
10587         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10588         Install a to_xfer_partial hook.
10589
10590 2014-02-26  Pedro Alves  <palves@redhat.com>
10591
10592         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10593         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10594         (m32r_xfer_partial): New function.
10595         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10596         Install a to_xfer_partial hook.
10597
10598 2014-02-26  Pedro Alves  <palves@redhat.com>
10599
10600         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10601         helper.
10602         (mips_xfer_partial): New function.
10603         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10604         hook.  Install a to_xfer_partial hook.
10605
10606 2014-02-26  Joel Brobecker  <brobecker@adacore.com>
10607
10608         * gdbtypes.h (create_array_type_with_stride): Add declaration.
10609         * gdbtypes.c (create_array_type_with_stride): New function,
10610         renaming create_array_type, but with an added parameter
10611         called "bit_stride".
10612         (create_array_type): Re-implement using
10613         create_array_type_with_stride.
10614         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10615         and DW_AT_bit_stride attributes.
10616
10617 2014-02-26  Pedro Alves  <palves@redhat.com>
10618
10619         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10620         task-specific breakpoints.
10621
10622 2014-02-25  Pedro Alves  <palves@redhat.com>
10623
10624         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10625         handling of object == TARGET_OBJECT_UNWIND_TABLE.
10626
10627 2014-02-25  Stan Shebs  <stan@codesourcery.com>
10628
10629         * defs.h: Annotate comments for Doxygen.
10630
10631 2014-02-25  Tom Tromey  <tromey@redhat.com>
10632
10633         * target.h (target_ignore): Don't declare.
10634         * target.c (target_ignore): Remove.
10635
10636 2014-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
10637
10638         PR gdb/16626
10639         * auto-load.c (auto_load_objfile_script_1): Change filename to
10640         debugfile.
10641
10642 2014-02-25  Joel Brobecker  <brobecker@adacore.com>
10643
10644         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10645         documentation.  Adjust prototype to match the target_ops
10646         to_xfer_partial method.  Adjust implementation accordingly.
10647
10648 2014-02-25  Hui Zhu  <hui@codesourcery.com>
10649
10650         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10651         to_traceframe_info.
10652
10653 2014-02-25  Kevin Buettner  <kevinb@redhat.com>
10654
10655         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10656         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10657         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10658         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10659         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10660         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10661         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10662         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10663         New constants.
10664         (rl78_register_type): Use a data pointer type for SP and
10665         new pseudo registers mentioned above.  Use a 16 bit integer
10666         type for all other register pairs.
10667         (rl78_register_name, rl78_g10_register_name): Update for
10668         new pseudo registers.
10669         (rl78_pseudo_register_read): Likewise.
10670         (rl78_pseudo_register_write): Likewise.
10671         (rl78_dwarf_reg_to_regnum): Return register numbers representing
10672         to the newly added pseudo registers.
10673
10674 2014-02-24  Doug Evans  <dje@google.com>
10675
10676         * value.c (record_latest_value): Fix comment.
10677         * printcmd.c (print_command_1): Remove code to handle -1 return from
10678         record_latest_value.
10679
10680 2014-02-24  Pedro Alves  <palves@redhat.com>
10681
10682         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10683         deprecated_xfer_memory hook.
10684         (procfs_xfer_partial): Call procfs_xfer_memory instead
10685         of the deprecated_xfer_memory target hook.
10686         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10687         helper.
10688
10689 2014-02-24  Yuanhui Zhang  <asmwarrior@gmail.com>
10690
10691         * windows-nat.c (windows_xfer_shared_libraries): Return
10692         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10693         requested object is TARGET_OBJECT_LIBRARIES.
10694
10695 2014-02-24  Yao Qi  <yao@codesourcery.com>
10696
10697         * target.h (enum target_xfer_status)
10698         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10699         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10700         explicitly.  New.
10701         * corefile.c (memory_error_message): User updated.
10702         * exec.c (section_table_read_available_memory): Likewise.
10703         * record-btrace.c (record_btrace_xfer_partial): Likewise.
10704         * target.c (target_xfer_status_to_string): Likewise.
10705         (raw_memory_xfer_partial): Likewise.
10706         (memory_xfer_partial_1, target_xfer_partial): Likewise.
10707         * valops.c (read_value_memory): Likewise.
10708         * exec.h: Update comments.
10709
10710 2014-02-24  Yao Qi  <yao@codesourcery.com>
10711
10712         * target.c (target_xfer_status_to_string): Rename argument err
10713         to status.
10714         * target.h (target_xfer_status_to_string): Update declaration.
10715         Replace target_xfer_error_to_string with
10716         target_xfer_status_to_string in comment.
10717
10718 2014-02-24  Yao Qi  <yao@codesourcery.com>
10719
10720         * mips-linux-nat.c (super_close): Update its type.
10721         (mips_linux_close): Pass 'self' to super_close.
10722
10723 2014-02-24  Yao Qi  <yao@codesourcery.com>
10724
10725         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10726         * corefile.c (read_memory): Adjusted.
10727         * target.c (target_write_with_progress): Adjusted.
10728
10729 2014-02-23  Yao Qi  <yao@codesourcery.com>
10730
10731         Revert two patches:
10732
10733         2013-10-25  Yao Qi  <yao@codesourcery.com>
10734
10735         * remote.c (remote_traceframe_info): Return early if
10736         traceframe is not selected.
10737
10738         2013-07-19  Yao Qi  <yao@codesourcery.com>
10739
10740         * target.c (update_current_target): Change the default action
10741         of 'to_traceframe_info' from tcomplain to return_zero.
10742         * target.h (struct target_ops) <to_traceframe_info>: Add more
10743         comments.
10744
10745 2014-02-23  Yao Qi  <yao@codesourcery.com>
10746
10747         * valops.c (read_value_memory): Rewrite it.  Call
10748         target_xfer_partial in a loop.
10749         * exec.h (section_table_available_memory): Remove declaration.
10750         Move comments to ...
10751         * exec.c (section_table_available_memory): ... here.  Make it
10752         static.
10753
10754 2014-02-23  Yao Qi  <yao@codesourcery.com>
10755
10756         * exec.c (section_table_read_available_memory): New function.
10757         * exec.h (section_table_read_available_memory): Declare.
10758         * ctf.c (ctf_xfer_partial): Call
10759         section_table_read_available_memory.
10760         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10761
10762 2014-02-23  Yao Qi  <yao@codesourcery.com>
10763
10764         * ctf.c (ctf_xfer_partial): Move code to ...
10765         * exec.c (exec_read_partial_read_only): ... it.  New function.
10766         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10767         * tracefile.c: Include "exec.h".
10768         * exec.h (exec_read_partial_read_only): Declare.
10769
10770 2014-02-23  Yao Qi  <yao@codesourcery.com>
10771
10772         * tracefile-tfile.c (tfile_has_all_memory): Remove.
10773         (tfile_has_memory): Remove.
10774         (init_tfile_ops): Don't set fields to_has_all_memory and
10775         to_has_memory of tfile_ops.
10776         * tracefile.c (tracefile_has_all_memory): New function.
10777         (tracefile_has_memory): New function.
10778         (init_tracefile_ops): Initialize fields to_has_all_memory and
10779         to_has_memory of 'ops'.
10780
10781 2014-02-23  Yao Qi  <yao@codesourcery.com>
10782
10783         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10784         (ctf_thread_alive, ctf_get_trace_status): Remove.
10785         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
10786         init_tracefile_ops.
10787         * tracefile-tfile.c (tfile_get_trace_status): Remove.
10788         (tfile_has_stack, tfile_has_registers): Remove.
10789         (tfile_thread_alive): Remove.
10790         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
10791         init_tracefile_ops.
10792         * tracefile.c (tracefile_has_stack): New function.
10793         (tracefile_has_registers): New function.
10794         (tracefile_thread_alive): New function.
10795         (tracefile_get_trace_status): New function.
10796         (init_tracefile_ops): New function.
10797         * tracefile.h (init_tracefile_ops): Declare.
10798
10799 2014-02-23  Yao Qi  <yao@codesourcery.com>
10800
10801         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10802         (O_LARGEFILE): Likewise.
10803         (tfile_ops): Likewise.
10804         (TRACE_HEADER_SIZE): Likewise.
10805         (trace_fd, trace_frames_offset, cur_offset): Likewise.
10806         (cur_data_size): Likewise.
10807         (tfile_read, tfile_open, tfile_interp_line): Likewise.
10808         (tfile_close, tfile_files_info): Likewise.
10809         (tfile_get_trace_status): Likewise.
10810         (tfile_get_tracepoint_status): Likewise.
10811         (tfile_get_traceframe_address): Likewise.
10812         (tfile_trace_find, match_blocktype): Likewise.
10813         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10814         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10815         (tfile_get_trace_state_variable_value): Likewise.
10816         (tfile_has_all_memory, tfile_has_memory): Likewise.
10817         (tfile_has_stack, tfile_has_registers): Likewise.
10818         (tfile_thread_alive, build_traceframe_info): Likewise.
10819         (tfile_traceframe_info, init_tfile_ops): Likewise.
10820         (_initialize_tracepoint): Don't call init_tfile_ops
10821         and add_target_with_completer.
10822         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10823         exec.h, completer.h and filenames.h.
10824         (_initialize_tracefile_tfile): New function.
10825
10826 2014-02-23  Yao Qi  <yao@codesourcery.com>
10827
10828         * Makefile.in (REMOTE_OBS): Append tracefile.o and
10829         tracefile-tfile.o.
10830         (HFILES_NO_SRCDIR): Add tracefile.h.
10831         * ctf.c: Include "tracefile.h".
10832         * tracefile.h: New file.
10833         * tracefile.c: New file
10834         * tracefile-tfile.c: New file.
10835         * tracepoint.c: Include "tracefile.h".
10836         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10837         (stop_reason_names): Add const.
10838         (trace_file_writer_xfree): Move it to tracefile.c.
10839         (trace_save, trace_save_command, trace_save_tfile): Likewise.
10840         (trace_save_ctf): Likewise.
10841         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10842         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10843         (tfile_write_header, tfile_write_regblock_type): Likewise.
10844         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10845         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10846         (tfile_write_raw_data, tfile_end): Likewise.
10847         (tfile_trace_file_writer_new): Likewise.
10848         (free_uploaded_tp): Make it extern.
10849         (free_uploaded_tsv): Make it extern.
10850         (_initialize_tracepoint): Move code to register command 'tsave'
10851         to tracefile.c.
10852         * tracepoint.h (stop_reason_names): Declare.
10853         (struct trace_frame_write_ops): Move it to tracefile.h.
10854         (struct trace_file_write_ops): Likewise.
10855         (struct trace_file_writer): Likewise.
10856         (free_uploaded_tsvs, free_uploaded_tps): Declare.
10857
10858 2014-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
10859
10860         PR gdb/16594
10861         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10862         process name.
10863         (get_cores_used_by_process): New parameter num_cores, use it.
10864         (linux_xfer_osdata_processes): Pass num_cores to it.
10865         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10866         process name.
10867
10868 2014-02-21  Andreas Arnez  <arnez@vnet.linux.ibm.com>
10869
10870         * target.c (memory_xfer_partial): Fix length arg in call to
10871         breakpoint_xfer_memory.
10872
10873 2014-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
10874
10875         PR tdep/16397
10876         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10877         number comes after the + or - signs.  Adjust length of register
10878         name to be extracted.
10879
10880 2014-02-20  Tom Tromey  <tromey@redhat.com>
10881
10882         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10883         (ada_varobj_ops): Mark "extern".
10884
10885 2014-02-20  Tom Tromey  <tromey@redhat.com>
10886
10887         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10888
10889 2014-02-20  Doug Evans  <xdje42@gmail.com>
10890
10891         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10892         All callers updated.
10893         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10894         All callers updated.
10895         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10896         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10897
10898 2014-02-20  lin zuojian  <manjian2006@gmail.com>
10899             Joel Brobecker  <brobecker@adacore.com>
10900             Doug Evans  <xdje42@gmail.com>
10901
10902         PR symtab/16581
10903         * dwarf2read.c (struct die_info): New member in_process.
10904         (reset_die_in_process): New function.
10905         (process_die): Set it at the start, reset when returning.
10906         (inherit_abstract_dies): Only call process_die if origin_child_die
10907         not already being processed.
10908
10909 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
10910
10911         * windows-nat.c (handle_unload_dll): Add function documentation.
10912         (do_initial_windows_stuff): Add comment explaining why we wait
10913         until after inferior initialization has finished before
10914         processing all DLLs.
10915
10916 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
10917
10918         * windows-nat.c (get_module_name): Delete.
10919         (windows_get_exec_module_filename): New function, mostly
10920         inspired from get_module_name.
10921         (windows_pid_to_exec_file): Replace call to get_module_name
10922         by call to windows_get_exec_module_filename.
10923
10924 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
10925
10926         * windows-nat.c (handle_load_dll): Rewrite this function's
10927         introductory comment.  Remove code using get_module_name
10928         to get the DLL's name.
10929
10930 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
10931
10932         * windows-nat.c (get_windows_debug_event): Ignore
10933         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10934         if windows_initialization_done == 0.
10935         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10936         Adjust implementation to always load all DLLs.
10937         (do_initial_windows_stuff): Replace call to
10938         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10939
10940 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
10941
10942         * windows-nat.c (_initialize_windows_nat): Deprecate the
10943         "dll-symbols" command.  Turn the "add-shared-symbol-files"
10944         and "assf" aliases into commands, and deprecate them as well.
10945         * NEWS: Add entry explaining that "dll-symbols" and its two
10946         aliases are now deprecated.
10947
10948 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
10949
10950         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10951         new-line in debug string.  Remove trailing spaces.
10952
10953 2014-02-19  Stan Shebs  <stan@codesourcery.com>
10954
10955         * darwin-nat.c (darwin_xfer_partial): Fix return type.
10956
10957 2014-02-19  Siva Chandra Reddy  <sivachandra@google.com>
10958
10959         * NEWS: Add entry for the new feature
10960         * python/py-value.c (valpy_binop): Call value_x_binop for struct
10961         and class values.
10962
10963 2014-02-19  Stan Shebs  <stan@codesourcery.com>
10964
10965         * MAINTAINERS: List Yao Qi as nios2 maintainer.
10966
10967 2014-02-19  Pedro Alves  <palves@redhat.com>
10968
10969         * common/ptid.h (struct ptid): Mention that process_stratum
10970         targets should prefer ptid.lwp.
10971
10972 2014-02-19  Pedro Alves  <palves@redhat.com>
10973
10974         * remote.c (remote_thread_alive, write_ptid, read_ptid)
10975         (read_ptid, remote_newthread_step, remote_threads_extra_info)
10976         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10977         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10978         store remote thread ids rather than ptid.tid.
10979         (_initialize_remote): Adjust.
10980
10981 2014-02-19  Tom Tromey  <tromey@redhat.com>
10982
10983         * target.c (target_get_unwinder): Rewrite.
10984         (target_get_tailcall_unwinder): Rewrite.
10985         * record-btrace.c (record_btrace_to_get_unwinder): New function.
10986         (record_btrace_to_get_tailcall_unwinder): New function.
10987         (init_record_btrace_ops): Update.
10988         * target.h (struct target_ops) <to_get_unwinder,
10989         to_get_tailcall_unwinder>: Now function pointers.  Use
10990         TARGET_DEFAULT_RETURN.
10991
10992 2014-02-19  Tom Tromey  <tromey@redhat.com>
10993
10994         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10995         argument.
10996         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10997
10998 2014-02-19  Tom Tromey  <tromey@redhat.com>
10999
11000         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11001         directly.
11002         * target-delegates.c: Rebuild.
11003         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11004         TARGET_DEFAULT_FUNC.
11005         * target.c (default_target_decr_pc_after_break): Rename from
11006         forward_target_decr_pc_after_break.  Simplify.
11007         (target_decr_pc_after_break): Rely on delegation.
11008
11009 2014-02-19  Tom Tromey  <tromey@redhat.com>
11010
11011         * target.c (update_current_target): Do not INHERIT to_doc or
11012         to_magic.  Do not de_fault to_open or to_close.
11013
11014 2014-02-19  Tom Tromey  <tromey@redhat.com>
11015
11016         * gcore.h (objfile_find_memory_regions): Declare.
11017         * gcore.c (objfile_find_memory_regions): No longer static.  Add
11018         "self" argument.
11019         (_initialize_gcore): Don't call exec_set_find_memory_regions.
11020         * exec.c: Include gcore.h.
11021         (exec_set_find_memory_regions): Remove.
11022         (exec_find_memory_regions): Remove.
11023         (exec_do_find_memory_regions): Remove.
11024         (init_exec_ops): Update.
11025         * defs.h (exec_set_find_memory_regions): Remove.
11026
11027 2014-02-19  Tom Tromey  <tromey@redhat.com>
11028
11029         * target-delegates.c: Rebuild.
11030         * target.h (struct target_ops) <to_extra_thread_info,
11031         to_thread_name, to_pid_to_exec_file, to_get_section_table,
11032         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11033         not 0, in TARGET_DEFAULT_RETURN.
11034
11035 2014-02-19  Tom Tromey  <tromey@redhat.com>
11036
11037         * target.c (complete_target_initialization): Remove casts.  Use
11038         return_zero_has_execution.
11039         (return_zero): Add "ignore" argument.
11040         (return_zero_has_execution): New function.
11041         (init_dummy_target): Remove casts.  Use
11042         return_zero_has_execution.
11043
11044 2014-02-19  Tom Tromey  <tromey@redhat.com>
11045
11046         * target.c (update_current_target): Update comments.  Do not
11047         INHERIT to_stratum.
11048
11049 2014-02-19  Tom Tromey  <tromey@redhat.com>
11050
11051         * arm-linux-nat.c (arm_linux_read_description): Delegate when
11052         needed.
11053         * corelow.c (core_read_description): Delegate when needed.
11054         * remote.c (remote_read_description): Delegate when needed.
11055         * target-delegates.c: Rebuild.
11056         * target.c (target_read_description): Rewrite.
11057         * target.h (struct target_ops) <to_read_description>: Update
11058         comment.  Use TARGET_DEFAULT_RETURN.
11059
11060 2014-02-19  Tom Tromey  <tromey@redhat.com>
11061
11062         * target-delegates.c: Rebuild.
11063         * target.c (update_current_target): Don't inherit or default
11064         to_can_run.
11065         (find_default_run_target): Check against delegate_can_run.
11066         * target.h (struct target_ops) <to_can_run>: Use
11067         TARGET_DEFAULT_RETURN.
11068
11069 2014-02-19  Tom Tromey  <tromey@redhat.com>
11070
11071         * target-delegates.c: Rebuild.
11072         * target.c (target_disconnect): Unconditionally delegate.
11073         * target.h (struct target_ops) <to_disconnect>: Use
11074         TARGET_DEFAULT_NORETURN.
11075
11076 2014-02-19  Tom Tromey  <tromey@redhat.com>
11077
11078         * record.c (record_stop): Unconditionally delegate.
11079         * target-delegates.c: Rebuild.
11080         * target.c (target_stop_recording): Unconditionally delegate.
11081         * target.h (struct target_ops) <to_stop_recording>: Use
11082         TARGET_DEFAULT_IGNORE.
11083
11084 2014-02-19  Tom Tromey  <tromey@redhat.com>
11085
11086         * target-delegates.c: Rebuild.
11087         * target.c (target_enable_btrace): Unconditionally delegate.
11088         * target.h (struct target_ops) <to_enable_btrace>: Use
11089         TARGET_DEFAULT_NORETURN.
11090
11091 2014-02-19  Tom Tromey  <tromey@redhat.com>
11092
11093         * target-delegates.c: Rebuild.
11094         * target.c (target_read_btrace): Unconditionally delegate.
11095         * target.h (struct target_ops) <to_read_btrace>: Use
11096         TARGET_DEFAULT_NORETURN.
11097
11098 2014-02-19  Tom Tromey  <tromey@redhat.com>
11099
11100         * target-delegates.c: Rebuild.
11101         * target.c (target_teardown_btrace): Unconditionally delegate.
11102         * target.h (struct target_ops) <to_teardown_btrace>: Use
11103         TARGET_DEFAULT_NORETURN.
11104
11105 2014-02-19  Tom Tromey  <tromey@redhat.com>
11106
11107         * target-delegates.c: Rebuild.
11108         * target.c (target_disable_btrace): Unconditionally delegate.
11109         * target.h (struct target_ops) <to_disable_btrace>: Use
11110         TARGET_DEFAULT_NORETURN.
11111
11112 2014-02-19  Tom Tromey  <tromey@redhat.com>
11113
11114         * target-delegates.c: Rebuild.
11115         * target.c (default_search_memory): New function.
11116         (simple_search_memory): Update comment.
11117         (target_search_memory): Unconditionally delegate.
11118         * target.h (struct target_ops) <to_search_memory>: Use
11119         TARGET_DEFAULT_FUNC.
11120
11121 2014-02-19  Tom Tromey  <tromey@redhat.com>
11122
11123         * auxv.c (default_auxv_parse): No longer static.
11124         (target_auxv_parse): Unconditionally delegate.
11125         * auxv.h (default_auxv_parse): Declare.
11126         * target-delegates.c: Rebuild.
11127         * target.c: Include auxv.h.
11128         * target.h (struct target_ops) <to_auxv_parse>: Use
11129         TARGET_DEFAULT_FUNC.
11130
11131 2014-02-19  Tom Tromey  <tromey@redhat.com>
11132
11133         * target-delegates.c: Rebuild.
11134         * target.c (target_memory_map): Unconditionally delegate.
11135         * target.h (struct target_ops) <to_memory_map>: Use
11136         TARGET_DEFAULT_RETURN.
11137
11138 2014-02-19  Tom Tromey  <tromey@redhat.com>
11139
11140         * target-delegates.c: Rebuild.
11141         * target.c (target_thread_alive): Unconditionally delegate.
11142         * target.h (struct target_ops) <to_thread_alive>: Use
11143         TARGET_DEFAULT_RETURN.
11144
11145 2014-02-19  Tom Tromey  <tromey@redhat.com>
11146
11147         * target-delegates.c: Rebuild.
11148         * target.c (target_save_record): Unconditionally delegate.
11149         * target.h (struct target_ops) <to_save_record>: Use
11150         TARGET_DEFAULT_NORETURN.
11151
11152 2014-02-19  Tom Tromey  <tromey@redhat.com>
11153
11154         * target-delegates.c: Rebuild.
11155         * target.c (target_delete_record): Unconditionally delegate.
11156         * target.h (struct target_ops) <to_delete_record>: Use
11157         TARGET_DEFAULT_NORETURN.
11158
11159 2014-02-19  Tom Tromey  <tromey@redhat.com>
11160
11161         * target-delegates.c: Rebuild.
11162         * target.c (target_record_is_replaying): Unconditionally
11163         delegate.
11164         * target.h (struct target_ops) <to_record_is_replaying>: Use
11165         TARGET_DEFAULT_RETURN.
11166
11167 2014-02-19  Tom Tromey  <tromey@redhat.com>
11168
11169         * target-delegates.c: Rebuild.
11170         * target.c (target_goto_record_begin): Unconditionally delegate.
11171         * target.h (struct target_ops) <to_goto_record_begin>: Use
11172         TARGET_DEFAULT_NORETURN.
11173
11174 2014-02-19  Tom Tromey  <tromey@redhat.com>
11175
11176         * target-delegates.c: Rebuild.
11177         * target.c (target_goto_record_end): Unconditionally delegate.
11178         * target.h (struct target_ops) <to_goto_record_end>: Use
11179         TARGET_DEFAULT_NORETURN.
11180
11181 2014-02-19  Tom Tromey  <tromey@redhat.com>
11182
11183         * target-delegates.c: Rebuild.
11184         * target.c (target_goto_record): Unconditionally delegate.
11185         * target.h (struct target_ops) <to_goto_record>: Use
11186         TARGET_DEFAULT_NORETURN.
11187
11188 2014-02-19  Tom Tromey  <tromey@redhat.com>
11189
11190         * target-delegates.c: Rebuild.
11191         * target.c (target_insn_history): Unconditionally delegate.
11192         * target.h (struct target_ops) <to_insn_history>: Use
11193         TARGET_DEFAULT_NORETURN.
11194
11195 2014-02-19  Tom Tromey  <tromey@redhat.com>
11196
11197         * target-delegates.c: Rebuild.
11198         * target.c (target_insn_history_from): Unconditionally delegate.
11199         * target.h (struct target_ops) <to_insn_history_from>: Use
11200         TARGET_DEFAULT_NORETURN.
11201
11202 2014-02-19  Tom Tromey  <tromey@redhat.com>
11203
11204         * target-delegates.c: Rebuild.
11205         * target.c (target_insn_history_range): Unconditionally delegate.
11206         * target.h (struct target_ops) <to_insn_history_range>: Use
11207         TARGET_DEFAULT_NORETURN.
11208
11209 2014-02-19  Tom Tromey  <tromey@redhat.com>
11210
11211         * target-delegates.c: Rebuild.
11212         * target.c (target_call_history): Unconditionally delegate.
11213         * target.h (struct target_ops) <to_call_history>: Use
11214         TARGET_DEFAULT_NORETURN.
11215
11216 2014-02-19  Tom Tromey  <tromey@redhat.com>
11217
11218         * target-delegates.c: Rebuild.
11219         * target.c (target_call_history_from): Unconditionally delegate.
11220         * target.h (struct target_ops) <to_call_history_from>: Use
11221         TARGET_DEFAULT_NORETURN.
11222
11223 2014-02-19  Tom Tromey  <tromey@redhat.com>
11224
11225         * target-delegates.c: Rebuild.
11226         * target.c (target_call_history_range): Unconditionally delegate.
11227         * target.h (struct target_ops) <to_call_history_range>: Use
11228         TARGET_DEFAULT_NORETURN.
11229
11230 2014-02-19  Tom Tromey  <tromey@redhat.com>
11231
11232         * target-delegates.c: Rebuild.
11233         * target.c (target_verify_memory): Unconditionally delegate.
11234         * target.h (struct target_ops) <to_verify_memory>: Use
11235         TARGET_DEFAULT_NORETURN.
11236
11237 2014-02-19  Tom Tromey  <tromey@redhat.com>
11238
11239         * target-delegates.c: Rebuild.
11240         * target.c (target_core_of_thread): Unconditionally delegate.
11241         * target.h (struct target_ops) <to_core_of_thread>: Use
11242         TARGET_DEFAULT_RETURN.
11243
11244 2014-02-19  Tom Tromey  <tromey@redhat.com>
11245
11246         * target-delegates.c: Rebuild.
11247         * target.c (target_flash_done): Unconditionally delegate.
11248         * target.h (struct target_ops) <to_flash_done>: Use
11249         TARGET_DEFAULT_NORETURN.
11250
11251 2014-02-19  Tom Tromey  <tromey@redhat.com>
11252
11253         * target-delegates.c: Rebuild.
11254         * target.c (target_flash_erase): Unconditionally delegate.
11255         * target.h (struct target_ops) <to_flash_erase>: Use
11256         TARGET_DEFAULT_NORETURN.
11257
11258 2014-02-19  Tom Tromey  <tromey@redhat.com>
11259
11260         * target-delegates.c: Rebuild.
11261         * target.c (target_get_section_table): Unconditionally delegate.
11262         * target.h (struct target_ops) <to_get_section_table>: Use
11263         TARGET_DEFAULT_RETURN.
11264
11265 2014-02-19  Tom Tromey  <tromey@redhat.com>
11266
11267         * target-delegates.c: Rebuild.
11268         * target.c (target_pid_to_str): Unconditionally delegate.
11269         (init_dummy_target): Don't initialize to_pid_to_str.
11270         (default_pid_to_str): Rename from dummy_pid_to_str.
11271         * target.h (struct target_ops) <to_pid_to_str>: Use
11272         TARGET_DEFAULT_FUNC.
11273
11274 2014-02-19  Tom Tromey  <tromey@redhat.com>
11275
11276         * target-delegates.c: Rebuild.
11277         * target.c (target_find_new_threads): Unconditionally delegate.
11278         * target.h (struct target_ops) <to_find_new_threads>: Use
11279         TARGET_DEFAULT_RETURN.
11280
11281 2014-02-19  Tom Tromey  <tromey@redhat.com>
11282
11283         * target-delegates.c: Rebuild.
11284         * target.c (target_program_signals): Unconditionally delegate.
11285         * target.h (struct target_ops) <to_program_signals>: Use
11286         TARGET_DEFAULT_IGNORE.
11287
11288 2014-02-19  Tom Tromey  <tromey@redhat.com>
11289
11290         * target-delegates.c: Rebuild.
11291         * target.c (target_pass_signals): Unconditionally delegate.
11292         * target.h (struct target_ops) <to_pass_signals>: Use
11293         TARGET_DEFAULT_IGNORE.
11294
11295 2014-02-19  Tom Tromey  <tromey@redhat.com>
11296
11297         * target-delegates.c: Rebuild.
11298         * target.c (default_mourn_inferior): New function.
11299         (target_mourn_inferior): Unconditionally delegate.
11300         * target.h (struct target_ops) <to_mourn_inferior>: Use
11301         TARGET_DEFAULT_FUNC.
11302
11303 2014-02-19  Tom Tromey  <tromey@redhat.com>
11304
11305         * target-delegates.c: Rebuild.
11306         * target.c (default_follow_fork): New function.
11307         (target_follow_fork): Unconditionally delegate.
11308         * target.h (struct target_ops) <to_follow_fork>: Use
11309         TARGET_DEFAULT_FUNC.
11310
11311 2014-02-19  Tom Tromey  <tromey@redhat.com>
11312
11313         * target-delegates.c: Rebuild.
11314         * target.c (target_kill): Unconditionally delegate.
11315         * target.h (struct target_ops) <to_kill>: Use
11316         TARGET_DEFAULT_NORETURN.
11317
11318 2014-02-19  Tom Tromey  <tromey@redhat.com>
11319
11320         * target-delegates.c: Rebuild.
11321         * target.c (target_masked_watch_num_registers): Unconditionally
11322         delegate.
11323         * target.h (struct target_ops) <to_masked_watch_num_registers>:
11324         Use TARGET_DEFAULT_RETURN.
11325
11326 2014-02-19  Tom Tromey  <tromey@redhat.com>
11327
11328         * target-delegates.c: Rebuild.
11329         * target.c (target_remove_mask_watchpoint): Unconditionally
11330         delegate.
11331         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11332         TARGET_DEFAULT_RETURN.
11333
11334 2014-02-19  Tom Tromey  <tromey@redhat.com>
11335
11336         * target-delegates.c: Rebuild.
11337         * target.c (target_insert_mask_watchpoint): Unconditionally
11338         delegate.
11339         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11340         TARGET_DEFAULT_RETURN.
11341
11342 2014-02-19  Tom Tromey  <tromey@redhat.com>
11343
11344         * target-delegates.c: Rebuild.
11345         * target.c (target_ranged_break_num_registers): Unconditionally
11346         delegate.
11347         * target.h (struct target_ops) <to_ranged_break_num_registers>:
11348         Use TARGET_DEFAULT_RETURN.
11349
11350 2014-02-19  Tom Tromey  <tromey@redhat.com>
11351
11352         * target-delegates.c: Rebuild.
11353         * target.c (target_fetch_registers): Unconditionally delegate.
11354         * target.h (struct target_ops) <to_fetch_registers>: Use
11355         TARGET_DEFAULT_NORETURN.
11356
11357 2014-02-19  Tom Tromey  <tromey@redhat.com>
11358
11359         * target-delegates.c: Rebuild.
11360         * target.c (update_current_target): Don't inherit or default
11361         to_stop.
11362         * target.h (struct target_ops) <to_stop>: Use
11363         TARGET_DEFAULT_IGNORE.
11364
11365 2014-02-19  Tom Tromey  <tromey@redhat.com>
11366
11367         * target-delegates.c: Rebuild.
11368         * target.c (update_current_target): Don't inherit or default
11369         to_can_run_breakpoint_commands.
11370         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11371         Use TARGET_DEFAULT_RETURN.
11372
11373 2014-02-19  Tom Tromey  <tromey@redhat.com>
11374
11375         * target-delegates.c: Rebuild.
11376         * target.c (update_current_target): Don't inherit or default
11377         to_supports_evaluation_of_breakpoint_conditions.
11378         * target.h (struct target_ops)
11379         <to_supports_evaluation_of_breakpoint_conditions>: Use
11380         TARGET_DEFAULT_RETURN.
11381
11382 2014-02-19  Tom Tromey  <tromey@redhat.com>
11383
11384         * target-delegates.c: Rebuild.
11385         * target.c (update_current_target): Don't inherit or default
11386         to_augmented_libraries_svr4_read.
11387         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11388         Use TARGET_DEFAULT_RETURN.
11389
11390 2014-02-19  Tom Tromey  <tromey@redhat.com>
11391
11392         * target-delegates.c: Rebuild.
11393         * target.c (update_current_target): Don't inherit or default
11394         to_can_use_agent.
11395         * target.h (struct target_ops) <to_can_use_agent>: Use
11396         TARGET_DEFAULT_RETURN.
11397
11398 2014-02-19  Tom Tromey  <tromey@redhat.com>
11399
11400         * target-delegates.c: Rebuild.
11401         * target.c (update_current_target): Don't inherit or default
11402         to_use_agent.
11403         * target.h (struct target_ops) <to_use_agent>: Use
11404         TARGET_DEFAULT_NORETURN.
11405
11406 2014-02-19  Tom Tromey  <tromey@redhat.com>
11407
11408         * target-delegates.c: Rebuild.
11409         * target.c (update_current_target): Don't inherit or default
11410         to_traceframe_info.
11411         (return_null): Remove.
11412         * target.h (struct target_ops) <to_traceframe_info>: Use
11413         TARGET_DEFAULT_RETURN.
11414
11415 2014-02-19  Tom Tromey  <tromey@redhat.com>
11416
11417         * target-delegates.c: Rebuild.
11418         * target.c (update_current_target): Don't inherit or default
11419         to_static_tracepoint_markers_by_strid.
11420         * target.h (struct target_ops)
11421         <to_static_tracepoint_markers_by_strid>: Use
11422         TARGET_DEFAULT_NORETURN.
11423
11424 2014-02-19  Tom Tromey  <tromey@redhat.com>
11425
11426         * target-delegates.c: Rebuild.
11427         * target.c (update_current_target): Don't inherit or default
11428         to_static_tracepoint_marker_at.
11429         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11430         Use TARGET_DEFAULT_RETURN.
11431
11432 2014-02-19  Tom Tromey  <tromey@redhat.com>
11433
11434         * target-delegates.c: Rebuild.
11435         * target.c (update_current_target): Don't inherit or default
11436         to_set_permissions.
11437         * target.h (struct target_ops) <to_set_permissions>: Use
11438         TARGET_DEFAULT_IGNORE.
11439
11440 2014-02-19  Tom Tromey  <tromey@redhat.com>
11441
11442         * target-delegates.c: Rebuild.
11443         * target.c (update_current_target): Don't inherit or default
11444         to_get_tib_address.
11445         * target.h (struct target_ops) <to_get_tib_address>: Use
11446         TARGET_DEFAULT_NORETURN.
11447
11448 2014-02-19  Tom Tromey  <tromey@redhat.com>
11449
11450         * target-delegates.c: Rebuild.
11451         * target.c (update_current_target): Don't inherit or default
11452         to_set_trace_notes.
11453         * target.h (struct target_ops) <to_set_trace_notes>: Use
11454         TARGET_DEFAULT_RETURN.
11455
11456 2014-02-19  Tom Tromey  <tromey@redhat.com>
11457
11458         * target-delegates.c: Rebuild.
11459         * target.c (update_current_target): Don't initialize
11460         to_set_trace_buffer_size.
11461         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11462         TARGET_DEFAULT_IGNORE.
11463
11464 2014-02-19  Tom Tromey  <tromey@redhat.com>
11465
11466         * target-delegates.c: Rebuild.
11467         * target.c (update_current_target): Don't inherit or default
11468         to_set_circular_trace_buffer.
11469         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11470         TARGET_DEFAULT_IGNORE.
11471
11472 2014-02-19  Tom Tromey  <tromey@redhat.com>
11473
11474         * target-delegates.c: Rebuild.
11475         * target.c (update_current_target): Don't inherit or default
11476         to_set_disconnected_tracing.
11477         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11478         TARGET_DEFAULT_IGNORE.
11479
11480 2014-02-19  Tom Tromey  <tromey@redhat.com>
11481
11482         * target-delegates.c: Rebuild.
11483         * target.c (update_current_target): Don't inherit or default
11484         to_get_min_fast_tracepoint_insn_len.
11485         (return_minus_one): Remove.
11486         * target.h (struct target_ops)
11487         <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11488
11489 2014-02-19  Tom Tromey  <tromey@redhat.com>
11490
11491         * target-delegates.c: Rebuild.
11492         * target.c (update_current_target): Don't inherit or default
11493         to_get_raw_trace_data.
11494         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11495         TARGET_DEFAULT_NORETURN.
11496
11497 2014-02-19  Tom Tromey  <tromey@redhat.com>
11498
11499         * target-delegates.c: Rebuild.
11500         * target.c (update_current_target): Don't inherit or default
11501         to_upload_trace_state_variables.
11502         * target.h (struct target_ops) <to_upload_trace_state_variables>:
11503         Use TARGET_DEFAULT_RETURN.
11504
11505 2014-02-19  Tom Tromey  <tromey@redhat.com>
11506
11507         * target-delegates.c: Rebuild.
11508         * target.c (update_current_target): Don't inherit or default
11509         to_upload_tracepoints.
11510         * target.h (struct target_ops) <to_upload_tracepoints>: Use
11511         TARGET_DEFAULT_RETURN.
11512
11513 2014-02-19  Tom Tromey  <tromey@redhat.com>
11514
11515         * target-delegates.c: Rebuild.
11516         * target.c (update_current_target): Don't inherit or default
11517         to_save_trace_data.
11518         * target.h (struct target_ops) <to_save_trace_data>: Use
11519         TARGET_DEFAULT_NORETURN.
11520
11521 2014-02-19  Tom Tromey  <tromey@redhat.com>
11522
11523         * target-delegates.c: Rebuild.
11524         * target.c (update_current_target): Don't inherit or default
11525         to_get_trace_state_variable_value.
11526         * target.h (struct target_ops)
11527         <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11528
11529 2014-02-19  Tom Tromey  <tromey@redhat.com>
11530
11531         * target-delegates.c: Rebuild.
11532         * target.c (update_current_target): Don't inherit or default
11533         to_trace_find.
11534         * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11535
11536 2014-02-19  Tom Tromey  <tromey@redhat.com>
11537
11538         * target-delegates.c: Rebuild.
11539         * target.c (update_current_target): Don't inherit or default
11540         to_trace_stop.
11541         * target.h (struct target_ops) <to_trace_stop>: Use
11542         TARGET_DEFAULT_NORETURN.
11543
11544 2014-02-19  Tom Tromey  <tromey@redhat.com>
11545
11546         * target-delegates.c: Rebuild.
11547         * target.c (update_current_target): Don't inherit or default
11548         to_get_tracepoint_status.
11549         * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11550         TARGET_DEFAULT_NORETURN.
11551
11552 2014-02-19  Tom Tromey  <tromey@redhat.com>
11553
11554         * target-delegates.c: Rebuild.
11555         * target.c (update_current_target): Don't inherit or default
11556         to_get_trace_status.
11557         * target.h (struct target_ops) <to_get_trace_status>: Use
11558         TARGET_DEFAULT_RETURN.
11559
11560 2014-02-19  Tom Tromey  <tromey@redhat.com>
11561
11562         * target-delegates.c: Rebuild.
11563         * target.c (update_current_target): Don't inherit or default
11564         to_trace_start.
11565         * target.h (struct target_ops) <to_trace_start>: Use
11566         TARGET_DEFAULT_NORETURN.
11567
11568 2014-02-19  Tom Tromey  <tromey@redhat.com>
11569
11570         * target-delegates.c: Rebuild.
11571         * target.c (update_current_target): Don't inherit or default
11572         to_trace_set_readonly_regions.
11573         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11574         Use TARGET_DEFAULT_NORETURN.
11575
11576 2014-02-19  Tom Tromey  <tromey@redhat.com>
11577
11578         * target-delegates.c: Rebuild.
11579         * target.c (update_current_target): Don't inherit or default
11580         to_disable_tracepoint.
11581         * target.h (struct target_ops) <to_disable_tracepoint>: Use
11582         TARGET_DEFAULT_NORETURN.
11583
11584 2014-02-19  Tom Tromey  <tromey@redhat.com>
11585
11586         * target-delegates.c: Rebuild.
11587         * target.c (update_current_target): Don't inherit or default
11588         to_enable_tracepoint.
11589         * target.h (struct target_ops) <to_enable_tracepoint>: Use
11590         TARGET_DEFAULT_NORETURN.
11591
11592 2014-02-19  Tom Tromey  <tromey@redhat.com>
11593
11594         * target-delegates.c: Rebuild.
11595         * target.c (update_current_target): Don't inherit or default
11596         to_download_trace_state_variable.
11597         * target.h (struct target_ops) <to_download_trace_state_variable>:
11598         Use TARGET_DEFAULT_NORETURN.
11599
11600 2014-02-19  Tom Tromey  <tromey@redhat.com>
11601
11602         * target-delegates.c: Rebuild.
11603         * target.c (update_current_target): Don't inherit or default
11604         to_can_download_tracepoint.
11605         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11606         TARGET_DEFAULT_RETURN.
11607
11608 2014-02-19  Tom Tromey  <tromey@redhat.com>
11609
11610         * target-delegates.c: Rebuild.
11611         * target.c (update_current_target): Don't inherit or default
11612         to_download_tracepoint.
11613         * target.h (struct target_ops) <to_download_tracepoint>: Use
11614         TARGET_DEFAULT_NORETURN.
11615
11616 2014-02-19  Tom Tromey  <tromey@redhat.com>
11617
11618         * target-delegates.c: Rebuild.
11619         * target.c (update_current_target): Don't inherit or default
11620         to_trace_init.
11621         * target.h (struct target_ops) <to_trace_init>: Use
11622         TARGET_DEFAULT_RETURN.
11623
11624 2014-02-19  Tom Tromey  <tromey@redhat.com>
11625
11626         * target-delegates.c: Rebuild.
11627         * target.c (update_current_target): Don't inherit or default
11628         to_supports_string_tracing.
11629         * target.h (struct target_ops) <to_supports_string_tracing>: Use
11630         TARGET_DEFAULT_RETURN.
11631
11632 2014-02-19  Tom Tromey  <tromey@redhat.com>
11633
11634         * target-delegates.c: Rebuild.
11635         * target.c (update_current_target): Don't inherit or default
11636         to_supports_enable_disable_tracepoint.
11637         * target.h (struct target_ops)
11638         <to_supports_enable_disable_tracepoint>: Use
11639         TARGET_DEFAULT_RETURN.
11640
11641 2014-02-19  Tom Tromey  <tromey@redhat.com>
11642
11643         * target-delegates.c: Rebuild.
11644         * target.c (update_current_target): Don't inherit or default
11645         to_supports_multi_process.
11646         * target.h (struct target_ops) <to_supports_multi_process>: Use
11647         TARGET_DEFAULT_RETURN.
11648
11649 2014-02-19  Tom Tromey  <tromey@redhat.com>
11650
11651         * target-delegates.c: Rebuild.
11652         * target.c (update_current_target): Don't inherit or default
11653         to_get_ada_task_ptid.
11654         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11655         TARGET_DEFAULT_FUNC.
11656
11657 2014-02-19  Tom Tromey  <tromey@redhat.com>
11658
11659         * target-delegates.c: Rebuild.
11660         * target.c (update_current_target): Don't inherit or default
11661         to_thread_architecture.
11662         * target.h (struct target_ops) <to_thread_architecture>: Use
11663         TARGET_DEFAULT_FUNC.
11664
11665 2014-02-19  Tom Tromey  <tromey@redhat.com>
11666
11667         * target-delegates.c: Rebuild.
11668         * target.c (update_current_target): Don't inherit or default
11669         to_execution_direction.
11670         * target.h (struct target_ops) <to_execution_direction>: Use
11671         TARGET_DEFAULT_FUNC.
11672
11673 2014-02-19  Tom Tromey  <tromey@redhat.com>
11674
11675         * target-delegates.c: Rebuild.
11676         * target.c (update_current_target): Don't inherit or default
11677         to_can_execute_reverse.
11678         * target.h (struct target_ops) <to_can_execute_reverse>: Use
11679         TARGET_DEFAULT_RETURN.
11680         (target_can_execute_reverse): Unconditionally delegate.
11681
11682 2014-02-19  Tom Tromey  <tromey@redhat.com>
11683
11684         * target-delegates.c: Rebuild.
11685         * target.c (update_current_target): Don't inherit or default
11686         to_goto_bookmark.
11687         (dummy_goto_bookmark): Remove.
11688         (init_dummy_target): Don't inherit or default to_goto_bookmark.
11689         * target.h (struct target_ops) <to_goto_bookmark>: Use
11690         TARGET_DEFAULT_NORETURN.
11691
11692 2014-02-19  Tom Tromey  <tromey@redhat.com>
11693
11694         * target-delegates.c: Rebuild.
11695         * target.c (update_current_target): Don't inherit or default
11696         to_get_bookmark.
11697         (dummy_get_bookmark): Remove.
11698         (init_dummy_target): Don't inherit or default to_get_bookmark.
11699         * target.h (struct target_ops) <to_get_bookmark>: Use
11700         TARGET_DEFAULT_NORETURN
11701
11702 2014-02-19  Tom Tromey  <tromey@redhat.com>
11703
11704         * target-delegates.c: Rebuild.
11705         * target.c (update_current_target): Don't inherit or default
11706         to_make_corefile_notes.
11707         (init_dummy_target): Don't initialize to_make_corefile_notes.
11708         * target.h (struct target_ops) <to_make_corefile_notes>: Use
11709         TARGET_DEFAULT_FUNC.
11710
11711 2014-02-19  Tom Tromey  <tromey@redhat.com>
11712
11713         * target-delegates.c: Rebuild.
11714         * target.c (update_current_target): Don't inherit or default
11715         to_find_memory_regions.
11716         (init_dummy_target): Don't initialize to_find_memory_regions.
11717         * target.h (struct target_ops) <to_find_memory_regions>: Use
11718         TARGET_DEFAULT_FUNC.
11719
11720 2014-02-19  Tom Tromey  <tromey@redhat.com>
11721
11722         * target-delegates.c: Rebuild.
11723         * target.c (update_current_target): Don't inherit or default
11724         to_log_command.
11725         * target.h (struct target_ops) <to_log_command>: Use
11726         TARGET_DEFAULT_IGNORE.
11727         (target_log_command): Unconditionally delegate.
11728
11729 2014-02-19  Tom Tromey  <tromey@redhat.com>
11730
11731         * target-delegates.c: Rebuild.
11732         * target.c (update_current_target): Don't inherit or default
11733         to_pid_to_exec_file.
11734         * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11735         TARGET_DEFAULT_RETURN.
11736
11737 2014-02-19  Tom Tromey  <tromey@redhat.com>
11738
11739         * target-delegates.c: Rebuild.
11740         * target.c (update_current_target): Don't inherit or default
11741         to_thread_name.
11742         (target_thread_name): Unconditionally delegate.
11743         * target.h (struct target_ops) <to_thread_name>: Use
11744         TARGET_DEFAULT_RETURN.
11745
11746 2014-02-19  Tom Tromey  <tromey@redhat.com>
11747
11748         * target-delegates.c: Rebuild.
11749         * target.c (update_current_target): Don't inherit or default
11750         to_extra_thread_info.
11751         * target.h (struct target_ops) <to_extra_thread_info>: Use
11752         TARGET_DEFAULT_RETURN.
11753
11754 2014-02-19  Tom Tromey  <tromey@redhat.com>
11755
11756         * target-delegates.c: Rebuild.
11757         * target.c (update_current_target): Don't inherit or default
11758         to_has_exited.
11759         * target.h (struct target_ops) <to_has_exited>: Use
11760         TARGET_DEFAULT_RETURN..
11761
11762 2014-02-19  Tom Tromey  <tromey@redhat.com>
11763
11764         * target-delegates.c: Rebuild.
11765         * target.c (update_current_target): Don't inherit or default
11766         to_set_syscall_catchpoint.
11767         (return_one): Remove.
11768         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11769         TARGET_DEFAULT_RETURN.
11770
11771 2014-02-19  Tom Tromey  <tromey@redhat.com>
11772
11773         * target-delegates.c: Rebuild.
11774         * target.c (update_current_target): Don't inherit or default
11775         to_insert_exec_catchpoint.
11776         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11777         TARGET_DEFAULT_RETURN.
11778
11779 2014-01-08  Tom Tromey  <tromey@redhat.com>
11780
11781         * target-delegates.c: Rebuild.
11782         * target.c (update_current_target): Don't inherit or default
11783         to_insert_exec_catchpoint.
11784         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11785         TARGET_DEFAULT_RETURN.
11786
11787 2014-02-19  Tom Tromey  <tromey@redhat.com>
11788
11789         * target-delegates.c: Rebuild.
11790         * target.c (update_current_target): Don't inherit or default
11791         to_remove_vfork_catchpoint.
11792         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11793         TARGET_DEFAULT_RETURN.
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_insert_vfork_catchpoint.
11800         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11801         TARGET_DEFAULT_RETURN.
11802
11803 2014-02-19  Tom Tromey  <tromey@redhat.com>
11804
11805         * target-delegates.c: Rebuild.
11806         * target.c (update_current_target): Don't inherit or default
11807         to_remove_fork_catchpoint.
11808         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11809         TARGET_DEFAULT_RETURN.
11810
11811 2014-02-19  Tom Tromey  <tromey@redhat.com>
11812
11813         * target-delegates.c: Rebuild.
11814         * target.c (update_current_target): Don't inherit or default
11815         to_insert_fork_catchpoint.
11816         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11817         TARGET_DEFAULT_RETURN.
11818
11819 2014-02-19  Tom Tromey  <tromey@redhat.com>
11820
11821         * target-delegates.c: Rebuild.
11822         * target.c (update_current_target): Don't inherit or default
11823         to_post_startup_inferior.
11824         * target.h (struct target_ops) <to_post_startup_inferior>: Use
11825         TARGET_DEFAULT_IGNORE.
11826
11827 2014-02-19  Tom Tromey  <tromey@redhat.com>
11828
11829         * target-delegates.c: Rebuild.
11830         * target.c (update_current_target): Don't inherit or default
11831         to_load.
11832         * target.h (struct target_ops) <to_load>: Use
11833         TARGET_DEFAULT_NORETURN.
11834
11835 2014-02-19  Tom Tromey  <tromey@redhat.com>
11836
11837         * target-delegates.c: Rebuild.
11838         * target.c (update_current_target): Don't inherit or default
11839         to_terminal_info.
11840         * target.h (struct target_ops) <to_terminal_info>: Use
11841         TARGET_DEFAULT_FUNC.
11842
11843 2014-02-19  Tom Tromey  <tromey@redhat.com>
11844
11845         * target-delegates.c: Rebuild.
11846         * target.c (update_current_target): Don't inherit or default
11847         to_terminal_save_ours.
11848         * target.h (struct target_ops) <to_terminal_save_ours>: Use
11849         TARGET_DEFAULT_IGNORE.
11850
11851 2014-02-19  Tom Tromey  <tromey@redhat.com>
11852
11853         * target-delegates.c: Rebuild.
11854         * target.c (update_current_target): Don't inherit or default
11855         to_terminal_ours.
11856         * target.h (struct target_ops) <to_terminal_ours>: Use
11857         TARGET_DEFAULT_IGNORE.
11858
11859 2014-02-19  Tom Tromey  <tromey@redhat.com>
11860
11861         * target-delegates.c: Rebuild.
11862         * target.c (update_current_target): Don't inherit or default
11863         to_terminal_ours_for_output.
11864         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11865         TARGET_DEFAULT_IGNORE.
11866
11867 2014-02-19  Tom Tromey  <tromey@redhat.com>
11868
11869         * target-delegates.c: Rebuild.
11870         * target.c (update_current_target): Don't inherit or default
11871         to_terminal_inferior.
11872         * target.h (struct target_ops) <to_terminal_inferior>: Use
11873         TARGET_DEFAULT_IGNORE.
11874
11875 2014-02-19  Tom Tromey  <tromey@redhat.com>
11876
11877         * target-delegates.c: Rebuild.
11878         * target.c (update_current_target): Don't inherit or default
11879         to_terminal_init.
11880         * target.h (struct target_ops) <to_terminal_init>: Use
11881         TARGET_DEFAULT_IGNORE.
11882
11883 2014-02-19  Tom Tromey  <tromey@redhat.com>
11884
11885         * target-delegates.c: Rebuild.
11886         * target.c (update_current_target): Don't inherit or default
11887         to_can_accel_watchpoint_condition.
11888         * target.h (struct target_ops)
11889         <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11890
11891 2014-02-19  Tom Tromey  <tromey@redhat.com>
11892
11893         * target-delegates.c: Rebuild.
11894         * target.c (update_current_target): Don't inherit or default
11895         to_region_ok_for_hw_watchpoint.
11896         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11897         Use TARGET_DEFAULT_FUNC.
11898
11899 2014-02-19  Tom Tromey  <tromey@redhat.com>
11900
11901         * target-delegates.c: Rebuild.
11902         * target.c (update_current_target): Don't inherit or default
11903         to_watchpoint_addr_within_range.
11904         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11905         Use TARGET_DEFAULT_FUNC.
11906
11907 2014-02-19  Tom Tromey  <tromey@redhat.com>
11908
11909         * target-delegates.c: Rebuild.
11910         * target.c (update_current_target): Don't inherit or default
11911         to_remove_watchpoint.
11912         * target.h (struct target_ops) <to_remove_watchpoint>: Use
11913         TARGET_DEFAULT_NORETURN.
11914
11915 2014-02-19  Tom Tromey  <tromey@redhat.com>
11916
11917         * target-delegates.c: Rebuild.
11918         * target.c (update_current_target): Don't inherit or default
11919         to_insert_watchpoint.
11920         * target.h (struct target_ops) <to_insert_watchpoint>: Use
11921         TARGET_DEFAULT_RETURN.
11922
11923 2014-02-19  Tom Tromey  <tromey@redhat.com>
11924
11925         * target-delegates.c: Rebuild.
11926         * target.c (update_current_target): Don't inherit or default
11927         to_remove_hw_breakpoint.
11928         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11929         TARGET_DEFAULT_RETURN.
11930
11931 2014-02-19  Tom Tromey  <tromey@redhat.com>
11932
11933         * target-delegates.c: Rebuild.
11934         * target.c (update_current_target): Don't inherit or default
11935         to_insert_hw_breakpoint.
11936         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11937         TARGET_DEFAULT_RETURN.
11938
11939 2014-02-19  Tom Tromey  <tromey@redhat.com>
11940
11941         * target-delegates.c: Rebuild.
11942         * target.c (update_current_target): Don't inherit or default
11943         to_can_use_hw_breakpoint.
11944         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11945         TARGET_DEFAULT_RETURN.
11946
11947 2014-02-19  Tom Tromey  <tromey@redhat.com>
11948
11949         * target-delegates.c: Rebuild.
11950         * target.c (update_current_target): Don't inherit or default
11951         to_files_info.
11952         * target.h (struct target_ops) <to_files_info>: Use
11953         TARGET_DEFAULT_IGNORE.
11954
11955 2014-02-19  Tom Tromey  <tromey@redhat.com>
11956
11957         * target-delegates.c: Rebuild.
11958         * target.c (update_current_target): Don't inherit or default
11959         to_store.
11960         * target.h (struct target_ops) <to_store>: Use
11961         TARGET_DEFAULT_NORETURN.
11962
11963 2014-02-19  Tom Tromey  <tromey@redhat.com>
11964
11965         * target-delegates.c: Rebuild.
11966         * target.c (update_current_target): Don't inherit or default
11967         to_post_attach.
11968         * target.h (struct target_ops) <to_post_attach>: Use
11969         TARGET_DEFAULT_IGNORE.
11970
11971 2014-02-19  Tom Tromey  <tromey@redhat.com>
11972
11973         * target-delegates.c: Rebuild.
11974         * target.c (update_current_target): Don't inherit or default
11975         to_rcmd.
11976         (default_rcmd): New function.
11977         (do_monitor_command): Unconditionally delegate.
11978         * target.h (struct target_ops) <to_rmcd>: Use
11979         TARGET_DEFAULT_FUNC.
11980
11981 2014-02-19  Tom Tromey  <tromey@redhat.com>
11982
11983         * target-delegates.c: Rebuild.
11984         * target.c (init_dummy_target): Don't initialize to_attach.
11985         (target_attach): Unconditionally delegate.
11986         * target.h (struct target_ops) <to_attach>: Use
11987         TARGET_DEFAULT_FUNC.
11988
11989 2014-02-19  Tom Tromey  <tromey@redhat.com>
11990
11991         * target-delegates.c: Rebuild.
11992         * target.c (target_detach): Unconditionally delegate.
11993         (init_dummy_target): Don't initialize to_detach.
11994         * target.h (struct target_ops) <to_detach>: Use
11995         TARGET_DEFAULT_IGNORE.
11996
11997 2014-02-19  Tom Tromey  <tromey@redhat.com>
11998
11999         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12000         Add argument.
12001         (target_augmented_libraries_svr4_read): Add argument.
12002         * target.c (update_current_target): Update.
12003         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12004         argument.
12005
12006 2014-02-19  Tom Tromey  <tromey@redhat.com>
12007
12008         * target.h (struct target_ops) <to_call_history_range>: Add
12009         argument.
12010         * target.c (target_call_history_range): Add argument.
12011         * record-btrace.c (record_btrace_call_history_range): Add 'self'
12012         argument.
12013         (record_btrace_call_history_from): Update.
12014
12015 2014-02-19  Tom Tromey  <tromey@redhat.com>
12016
12017         * target.h (struct target_ops) <to_call_history_from>: Add
12018         argument.
12019         * target.c (target_call_history_from): Add argument.
12020         * record-btrace.c (record_btrace_call_history_from): Add 'self'
12021         argument.
12022
12023 2014-02-19  Tom Tromey  <tromey@redhat.com>
12024
12025         * target.h (struct target_ops) <to_call_history>: Add argument.
12026         * target.c (target_call_history): Add argument.
12027         * record-btrace.c (record_btrace_call_history): Add 'self'
12028         argument.
12029
12030 2014-02-19  Tom Tromey  <tromey@redhat.com>
12031
12032         * target.h (struct target_ops) <to_insn_history_range>: Add
12033         argument.
12034         * target.c (target_insn_history_range): Add argument.
12035         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12036         argument.
12037         (record_btrace_insn_history_from): Update.
12038
12039 2014-02-19  Tom Tromey  <tromey@redhat.com>
12040
12041         * target.h (struct target_ops) <to_insn_history_from>: Add
12042         argument.
12043         * target.c (target_insn_history_from): Add argument.
12044         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12045         argument.
12046
12047 2014-02-19  Tom Tromey  <tromey@redhat.com>
12048
12049         * target.h (struct target_ops) <to_insn_history>: Add argument.
12050         * target.c (target_insn_history): Add argument.
12051         * record-btrace.c (record_btrace_insn_history): Add 'self'
12052         argument.
12053
12054 2014-02-19  Tom Tromey  <tromey@redhat.com>
12055
12056         * target.h (struct target_ops) <to_goto_record>: Add argument.
12057         * target.c (target_goto_record): Add argument.
12058         * record-full.c (record_full_goto): Add 'self' argument.
12059         * record-btrace.c (record_btrace_goto): Add 'self' argument.
12060
12061 2014-02-19  Tom Tromey  <tromey@redhat.com>
12062
12063         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12064         * target.c (target_goto_record_end): Add argument.
12065         * record-full.c (record_full_goto_end): Add 'self' argument.
12066         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12067
12068 2014-02-19  Tom Tromey  <tromey@redhat.com>
12069
12070         * target.h (struct target_ops) <to_goto_record_begin>: Add
12071         argument.
12072         * target.c (target_goto_record_begin): Add argument.
12073         * record-full.c (record_full_goto_begin): Add 'self' argument.
12074         * record-btrace.c (record_btrace_goto_begin): Add 'self'
12075         argument.
12076
12077 2014-02-19  Tom Tromey  <tromey@redhat.com>
12078
12079         * target.h (struct target_ops) <to_record_is_replaying>: Add
12080         argument.
12081         * target.c (target_record_is_replaying): Add argument.
12082         * record-full.c (record_full_is_replaying): Add 'self' argument.
12083         * record-btrace.c (record_btrace_is_replaying): Add 'self'
12084         argument.
12085         (record_btrace_xfer_partial, record_btrace_store_registers)
12086         (record_btrace_prepare_to_store, record_btrace_resume)
12087         (record_btrace_wait, record_btrace_decr_pc_after_break)
12088         (record_btrace_find_new_threads, record_btrace_thread_alive):
12089         Update.
12090
12091 2014-02-19  Tom Tromey  <tromey@redhat.com>
12092
12093         * target.h (struct target_ops) <to_delete_record>: Add argument.
12094         * target.c (target_delete_record): Add argument.
12095         * record-full.c (record_full_delete): Add 'self' argument.
12096
12097 2014-02-19  Tom Tromey  <tromey@redhat.com>
12098
12099         * target.h (struct target_ops) <to_save_record>: Add argument.
12100         * target.c (target_save_record): Add argument.
12101         * record-full.c (record_full_save): Add 'self' argument.
12102         (record_full_save): Add 'self' argument.
12103
12104 2014-02-19  Tom Tromey  <tromey@redhat.com>
12105
12106         * target.h (struct target_ops) <to_info_record>: Add argument.
12107         * target.c (target_info_record): Add argument.
12108         * record.c (info_record_command): Add argument.
12109         * record-full.c (record_full_info): Add 'self' argument.
12110         * record-btrace.c (record_btrace_info): Add 'self' argument.
12111
12112 2014-02-19  Tom Tromey  <tromey@redhat.com>
12113
12114         * target.h (struct target_ops) <to_stop_recording>: Add argument.
12115         * target.c (target_stop_recording): Add argument.
12116         * record.c (record_stop): Add argument.
12117         * record-btrace.c (record_btrace_stop_recording): Add 'self'
12118         argument.
12119
12120 2014-02-19  Tom Tromey  <tromey@redhat.com>
12121
12122         * target.h (struct target_ops) <to_read_btrace>: Add argument.
12123         * target.c (struct target_ops) <to_read_btrace>: Add argument.
12124         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12125         argument.
12126         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12127         (_initialize_amd64_linux_nat): Use it.
12128         * i386-linux-nat.c (i386_linux_read_btrace): New function.
12129         (_initialize_i386_linux_nat): Use it.
12130
12131 2014-02-19  Tom Tromey  <tromey@redhat.com>
12132
12133         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12134         * target.c (target_teardown_btrace): Add argument.
12135         * remote.c (remote_teardown_btrace): Add 'self' argument.
12136         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12137         argument.
12138         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12139         argument.
12140
12141 2014-02-19  Tom Tromey  <tromey@redhat.com>
12142
12143         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12144         * target.c (target_disable_btrace): Add argument.
12145         * remote.c (remote_disable_btrace): Add 'self' argument.
12146         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12147         argument.
12148         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12149         argument.
12150
12151 2014-02-19  Tom Tromey  <tromey@redhat.com>
12152
12153         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12154         * target.c (target_enable_btrace): Add argument.
12155         * remote.c (remote_enable_btrace): Add 'self' argument.
12156         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12157         argument.
12158         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12159         argument.
12160
12161 2014-02-19  Tom Tromey  <tromey@redhat.com>
12162
12163         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12164         (target_can_use_agent): Add argument.
12165         * target.c (update_current_target): Update.
12166         * remote.c (remote_can_use_agent): Add 'self' argument.
12167         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12168
12169 2014-02-19  Tom Tromey  <tromey@redhat.com>
12170
12171         * target.h (struct target_ops) <to_use_agent>: Add argument.
12172         (target_use_agent): Add argument.
12173         * target.c (update_current_target): Update.
12174         * remote.c (remote_use_agent): Add 'self' argument.
12175         * inf-child.c (inf_child_use_agent): Add 'self' argument.
12176
12177 2014-02-19  Tom Tromey  <tromey@redhat.com>
12178
12179         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12180         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12181         (target_traceframe_info): Add argument.
12182         * target.c (update_current_target): Update.
12183         * remote.c (remote_traceframe_info): Add 'self' argument.
12184         * ctf.c (ctf_traceframe_info): Add 'self' argument.
12185
12186 2014-02-19  Tom Tromey  <tromey@redhat.com>
12187
12188         * target.h (target_static_tracepoint_markers_by_strid): Add
12189         argument.
12190         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12191         'self' argument.
12192         * target.c (update_current_target): Update.
12193         * remote.c (struct target_ops)
12194         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12195         * linux-nat.c (struct target_ops)
12196         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12197
12198 2014-02-19  Tom Tromey  <tromey@redhat.com>
12199
12200         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12201         Add argument.
12202         (target_static_tracepoint_marker_at): Add argument.
12203         * target.c (update_current_target): Update.
12204         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12205         argument.
12206
12207 2014-02-19  Tom Tromey  <tromey@redhat.com>
12208
12209         * target.h (struct target_ops) <to_set_permissions>: Add argument.
12210         (target_set_permissions): Add argument.
12211         * target.c (update_current_target): Update.
12212         * remote.c (remote_set_permissions): Add 'self' argument.
12213         (remote_start_remote): Update.
12214
12215 2014-02-19  Tom Tromey  <tromey@redhat.com>
12216
12217         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12218         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12219         (target_get_tib_address): Add argument.
12220         * target.c (update_current_target): Update.
12221         * remote.c (remote_get_tib_address): Add 'self' argument.
12222
12223 2014-02-19  Tom Tromey  <tromey@redhat.com>
12224
12225         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12226         (target_set_trace_notes): Add argument.
12227         * target.c (update_current_target): Update.
12228         * remote.c (remote_set_trace_notes): Add 'self' argument.
12229
12230 2014-02-19  Tom Tromey  <tromey@redhat.com>
12231
12232         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12233         argument.
12234         (target_set_trace_buffer_size): Add argument.
12235         * target.c (update_current_target): Update.
12236         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12237
12238 2014-02-19  Tom Tromey  <tromey@redhat.com>
12239
12240         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12241         argument.
12242         (target_set_circular_trace_buffer): Add argument.
12243         * target.c (update_current_target): Update.
12244         * remote.c (remote_set_circular_trace_buffer): Add 'self'
12245         argument.
12246
12247 2014-02-19  Tom Tromey  <tromey@redhat.com>
12248
12249         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12250         argument.
12251         (target_set_disconnected_tracing): Add argument.
12252         * target.c (update_current_target): Update.
12253         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12254
12255 2014-02-19  Tom Tromey  <tromey@redhat.com>
12256
12257         * target.h (struct target_ops)
12258         <to_get_min_fast_tracepoint_insn_len>: Add argument.
12259         (target_get_min_fast_tracepoint_insn_len): Add argument.
12260         * target.c (update_current_target): Update.
12261         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12262         argument.
12263
12264 2014-02-19  Tom Tromey  <tromey@redhat.com>
12265
12266         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12267         argument.
12268         (target_get_raw_trace_data): Add argument.
12269         * target.c (update_current_target): Update.
12270         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12271
12272 2014-02-19  Tom Tromey  <tromey@redhat.com>
12273
12274         * target.h (struct target_ops) <to_upload_trace_state_variables>:
12275         Add argument.
12276         (target_upload_trace_state_variables): Add argument.
12277         * target.c (update_current_target): Update.
12278         * remote.c (remote_upload_trace_state_variables): Add 'self'
12279         argument.
12280         (remote_start_remote): Update.
12281
12282 2014-02-19  Tom Tromey  <tromey@redhat.com>
12283
12284         * target.h (struct target_ops) <to_upload_tracepoints>: Add
12285         argument.
12286         (target_upload_tracepoints): Add argument.
12287         * target.c (update_current_target): Update.
12288         * remote.c (remote_upload_tracepoints): Add 'self' argument.
12289         (remote_start_remote): Update.
12290
12291 2014-02-19  Tom Tromey  <tromey@redhat.com>
12292
12293         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12294         (target_save_trace_data): Add argument.
12295         * target.c (update_current_target): Update.
12296         * remote.c (remote_save_trace_data): Add 'self' argument.
12297
12298 2014-02-19  Tom Tromey  <tromey@redhat.com>
12299
12300         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12301         argument.
12302         * target.h (struct target_ops)
12303         <to_get_trace_state_variable_value>: Add argument.
12304         (target_get_trace_state_variable_value): Add argument.
12305         * target.c (update_current_target): Update.
12306         * remote.c (remote_get_trace_state_variable_value): Add 'self'
12307         argument.
12308         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12309
12310 2014-02-19  Tom Tromey  <tromey@redhat.com>
12311
12312         * tracepoint.c (tfile_trace_find): Add 'self' argument.
12313         * target.h (struct target_ops) <to_trace_find>: Add argument.
12314         (target_trace_find): Add argument.
12315         * target.c (update_current_target): Update.
12316         * remote.c (remote_trace_find): Add 'self' argument.
12317         * ctf.c (ctf_trace_find): Add 'self' argument.
12318
12319 2014-02-19  Tom Tromey  <tromey@redhat.com>
12320
12321         * target.h (struct target_ops) <to_trace_stop>: Add argument.
12322         (target_trace_stop): Add argument.
12323         * target.c (update_current_target): Update.
12324         * remote.c (remote_trace_stop): Add 'self' argument.
12325
12326 2014-02-19  Tom Tromey  <tromey@redhat.com>
12327
12328         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12329         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12330         argument.
12331         (target_get_tracepoint_status): Add argument.
12332         * target.c (update_current_target): Update.
12333         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12334
12335 2014-02-19  Tom Tromey  <tromey@redhat.com>
12336
12337         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12338         * target.h (struct target_ops) <to_get_trace_status>: Add
12339         argument.
12340         (target_get_trace_status): Add argument.
12341         * target.c (update_current_target): Update.
12342         * remote.c (remote_get_trace_status): Add 'self' argument.
12343         (remote_start_remote, remote_can_download_tracepoint): Update.
12344         * ctf.c (ctf_get_trace_status): Add 'self' argument.
12345
12346 2014-02-19  Tom Tromey  <tromey@redhat.com>
12347
12348         * target.h (struct target_ops) <to_trace_start>: Add argument.
12349         (target_trace_start): Add argument.
12350         * target.c (update_current_target): Update.
12351         * remote.c (remote_trace_start): Add 'self' argument.
12352
12353 2014-02-19  Tom Tromey  <tromey@redhat.com>
12354
12355         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12356         Add argument.
12357         (target_trace_set_readonly_regions): Add argument.
12358         * target.c (update_current_target): Update.
12359         * remote.c (remote_trace_set_readonly_regions): Add 'self'
12360         argument.
12361
12362 2014-02-19  Tom Tromey  <tromey@redhat.com>
12363
12364         * target.h (struct target_ops) <to_disable_tracepoint>: Add
12365         argument.
12366         (target_disable_tracepoint): Add argument.
12367         * target.c (update_current_target): Update.
12368         * remote.c (remote_disable_tracepoint): Add 'self' argument.
12369
12370 2014-02-19  Tom Tromey  <tromey@redhat.com>
12371
12372         * target.h (struct target_ops) <to_enable_tracepoint>: Add
12373         argument.
12374         (target_enable_tracepoint): Add argument.
12375         * target.c (update_current_target): Update.
12376         * remote.c (remote_enable_tracepoint): Add 'self' argument.
12377
12378 2014-02-19  Tom Tromey  <tromey@redhat.com>
12379
12380         * target.h (struct target_ops) <to_download_trace_state_variable>:
12381         Add argument.
12382         (target_download_trace_state_variable): Add argument.
12383         * target.c (update_current_target): Update.
12384         * remote.c (remote_download_trace_state_variable): Add 'self'
12385         argument.
12386
12387 2014-02-19  Tom Tromey  <tromey@redhat.com>
12388
12389         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12390         argument.
12391         (target_can_download_tracepoint): Add argument.
12392         * target.c (update_current_target): Update.
12393         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12394
12395 2014-02-19  Tom Tromey  <tromey@redhat.com>
12396
12397         * target.h (struct target_ops) <to_download_tracepoint>: Add
12398         argument.
12399         (target_download_tracepoint): Add argument.
12400         * target.c (update_current_target): Update.
12401         * remote.c (remote_download_tracepoint): Add 'self' argument.
12402
12403 2014-02-19  Tom Tromey  <tromey@redhat.com>
12404
12405         * target.h (struct target_ops) <to_trace_init>: Add argument.
12406         (target_trace_init): Add argument.
12407         * target.c (update_current_target): Update.
12408         * remote.c (remote_trace_init): Add 'self' argument.
12409
12410 2014-02-19  Tom Tromey  <tromey@redhat.com>
12411
12412         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12413         * target.c (target_fileio_readlink): Add argument.
12414         * remote.c (remote_hostio_readlink): Add 'self' argument.
12415         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12416
12417 2014-02-19  Tom Tromey  <tromey@redhat.com>
12418
12419         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12420         * target.c (target_fileio_unlink): Add argument.
12421         * remote.c (remote_hostio_unlink): Add 'self' argument.
12422         (remote_file_delete): Update.
12423         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12424
12425 2014-02-19  Tom Tromey  <tromey@redhat.com>
12426
12427         * target.h (struct target_ops) <to_fileio_close>: Add argument.
12428         * target.c (target_fileio_close): Add argument.
12429         * remote.c (remote_hostio_close): Add 'self' argument.
12430         (remote_hostio_close_cleanup): Update.
12431         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12432         Update.
12433         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12434
12435 2014-02-19  Tom Tromey  <tromey@redhat.com>
12436
12437         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12438         * target.c (target_fileio_pread): Add argument.
12439         * remote.c (remote_hostio_pread): Add 'self' argument.
12440         (remote_bfd_iovec_pread, remote_file_get): Update.
12441         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12442
12443 2014-02-19  Tom Tromey  <tromey@redhat.com>
12444
12445         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12446         * target.c (target_fileio_pwrite): Add argument.
12447         * remote.c (remote_hostio_pwrite): Add 'self' argument.
12448         (remote_file_put): Update.
12449         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12450
12451 2014-02-19  Tom Tromey  <tromey@redhat.com>
12452
12453         * target.h (struct target_ops) <to_fileio_open>: Add argument.
12454         * target.c (target_fileio_open): Add argument.
12455         * remote.c (remote_hostio_open): Add 'self' argument.
12456         (remote_bfd_iovec_open): Add 'self' argument.
12457         (remote_file_put): Add 'self' argument.
12458         (remote_file_get): Add 'self' argument.
12459         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12460
12461 2014-02-19  Tom Tromey  <tromey@redhat.com>
12462
12463         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12464         Add argument.
12465         (target_can_run_breakpoint_commands): Add argument.
12466         * target.c (update_current_target): Update.
12467         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12468         argument.
12469         (remote_insert_breakpoint): Add 'self' argument.
12470         (remote_insert_hw_breakpoint): Add 'self' argument.
12471         (remote_can_run_breakpoint_commands): Add 'self' argument.
12472
12473 2014-02-19  Tom Tromey  <tromey@redhat.com>
12474
12475         * target.h (struct target_ops)
12476         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12477         (target_supports_evaluation_of_breakpoint_conditions): Add
12478         argument.
12479         * target.c (update_current_target): Update.
12480         * remote.c (remote_supports_cond_breakpoints): Add 'self'
12481         argument.
12482         (remote_insert_breakpoint): Add 'self' argument.
12483         (remote_insert_hw_breakpoint): Add 'self' argument.
12484         (remote_supports_cond_breakpoints): Add 'self' argument.
12485
12486 2014-02-19  Tom Tromey  <tromey@redhat.com>
12487
12488         * target.h (struct target_ops) <to_supports_string_tracing>: Add
12489         argument.
12490         (target_supports_string_tracing): Add argument.
12491         * target.c (update_current_target): Update.
12492         * remote.c (remote_supports_string_tracing): Add 'self' argument.
12493
12494 2014-02-19  Tom Tromey  <tromey@redhat.com>
12495
12496         * target.h (struct target_ops)
12497         <to_supports_disable_randomization>: Add argument.
12498         * target.c (find_default_supports_disable_randomization): Add
12499         argument.
12500         (target_supports_disable_randomization): Add argument.
12501         (find_default_supports_disable_randomization): Add 'self'
12502         argument.
12503         * remote.c (extended_remote_supports_disable_randomization): Add
12504         'self' argument.
12505         (remote_supports_disable_randomization): Add 'self' argument.
12506         (extended_remote_create_inferior): Update.
12507         * linux-nat.c (linux_nat_supports_disable_randomization): Add
12508         'self' argument.
12509
12510 2014-02-19  Tom Tromey  <tromey@redhat.com>
12511
12512         * target.h (struct target_ops)
12513         <to_supports_enable_disable_tracepoint>: Add argument.
12514         (target_supports_enable_disable_tracepoint): Add argument.
12515         * target.c (update_current_target): Update.
12516         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12517         argument.
12518
12519 2014-02-19  Tom Tromey  <tromey@redhat.com>
12520
12521         * target.h (struct target_ops) <to_supports_multi_process>: Add
12522         argument.
12523         (target_supports_multi_process): Add argument.
12524         * target.c (update_current_target): Update.
12525         * remote.c (remote_supports_multi_process): Add 'self' argument.
12526         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12527         argument.
12528         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12529         argument.
12530
12531 2014-02-19  Tom Tromey  <tromey@redhat.com>
12532
12533         * target.h (struct target_ops) <to_execution_direction>: Add
12534         argument.
12535         (target_execution_direction): Add argument.
12536         * target.c (default_execution_direction): Add 'self' argument.
12537         * record-full.c (record_full_execution_direction): Add 'self'
12538         argument.
12539
12540 2014-02-19  Tom Tromey  <tromey@redhat.com>
12541
12542         * target.h (struct target_ops) <to_can_execute_reverse>: Add
12543         argument.
12544         (target_can_execute_reverse): Add argument.
12545         * remote.c (remote_can_execute_reverse): Add 'self' argument.
12546         * record-full.c (record_full_can_execute_reverse): Add 'self'
12547         argument.
12548         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12549         argument.
12550
12551 2014-02-19  Tom Tromey  <tromey@redhat.com>
12552
12553         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12554         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12555         argument.
12556         (target_get_ada_task_ptid): Add argument.
12557         * target.c (update_current_target): Update.
12558         (default_get_ada_task_ptid): Add 'self' argument.
12559         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12560         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12561         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12562         argument.
12563         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12564         argument.
12565         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12566         argument.
12567         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12568         argument.
12569         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12570         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12571         argument.
12572
12573 2014-02-19  Tom Tromey  <tromey@redhat.com>
12574
12575         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12576         (target_goto_bookmark): Add argument.
12577         * target.c (dummy_goto_bookmark): Add 'self' argument.
12578         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12579
12580 2014-02-19  Tom Tromey  <tromey@redhat.com>
12581
12582         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12583         (target_get_bookmark): Add argument.
12584         * target.c (dummy_get_bookmark): Add 'self' argument.
12585         * record-full.c (record_full_get_bookmark): Add 'self' argument.
12586
12587 2014-02-19  Tom Tromey  <tromey@redhat.com>
12588
12589         * target.h (struct target_ops) <to_make_corefile_notes>: Add
12590         argument.
12591         (target_make_corefile_notes): Add argument.
12592         * target.c (dummy_make_corefile_notes): Add 'self' argument.
12593         * procfs.c (procfs_make_note_section): Add 'self' argument.
12594         (procfs_make_note_section): Add 'self' argument.
12595         (procfs_make_note_section): Add 'self' argument.
12596         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12597         argument.
12598         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12599         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12600         * exec.c (exec_make_note_section): Add 'self' argument.
12601         (exec_make_note_section): Add 'self' argument.
12602
12603 2014-02-19  Tom Tromey  <tromey@redhat.com>
12604
12605         * target.h (struct target_ops) <to_find_memory_regions>: Add
12606         argument.
12607         (target_find_memory_regions): Add argument.
12608         * target.c (dummy_find_memory_regions): Add 'self' argument.
12609         * procfs.c (proc_find_memory_regions): Add 'self' argument.
12610         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12611         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12612         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12613         * exec. (exec_do_find_memory_regions): New global.
12614         (exec_set_find_memory_regions): Rewrite.
12615         (exec_find_memory_regions): New function.
12616         (init_exec_ops): Use exec_find_memory_regions.
12617
12618 2014-02-19  Tom Tromey  <tromey@redhat.com>
12619
12620         * target.h (struct target_ops) <to_supports_non_stop>: Add
12621         argument.
12622         * target.c (find_default_supports_non_stop): Add argument.
12623         (target_supports_non_stop): Add argument.
12624         (find_default_supports_non_stop): Add 'self' argument.
12625         * remote.c (remote_supports_non_stop): Add 'self' argument.
12626         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12627
12628 2014-02-19  Tom Tromey  <tromey@redhat.com>
12629
12630         * target.h (struct target_ops) <to_log_command>: Add argument.
12631         (target_log_command): Add argument.
12632         * serial.h (serial_log_command): Add 'self' argument.
12633         * serial.c (serial_log_command): Add 'self' argument.
12634
12635 2014-02-19  Tom Tromey  <tromey@redhat.com>
12636
12637         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12638         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12639         argument.
12640         (target_pid_to_exec_file): Add argument.
12641         * target.c (debug_to_pid_to_exec_file): Add argument.
12642         (update_current_target): Update.
12643         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12644         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12645         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12646         (linux_handle_extended_wait): Update.
12647         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12648         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12649         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12650         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12651
12652 2014-02-19  Tom Tromey  <tromey@redhat.com>
12653
12654         * target.h (struct target_ops) <to_rcmd>: Add argument.
12655         (target_rcmd): Add argument.
12656         * target.c (debug_to_rcmd): Add argument.
12657         (update_current_target, do_monitor_command): Update.
12658         * remote.c (remote_rcmd): Add 'self' argument.
12659         * monitor.c (monitor_rcmd): Add 'self' argument.
12660
12661 2014-02-19  Tom Tromey  <tromey@redhat.com>
12662
12663         * windows-nat.c (windows_stop): Add 'self' argument.
12664         * target.h (struct target_ops) <to_stop>: Add argument.
12665         * target.c (target_stop): Add argument.
12666         (debug_to_stop): Add argument.
12667         (update_current_target): Update.
12668         * remote.c (remote_stop): Add 'self' argument.
12669         * remote-sim.c (gdbsim_stop): Add 'self' argument.
12670         (gdbsim_cntrl_c): Update.
12671         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12672         * procfs.c (procfs_stop): Add 'self' argument.
12673         * nto-procfs.c (procfs_stop): Add 'self' argument.
12674         * monitor.c (monitor_stop): Add 'self' argument.
12675         (monitor_open): Update.
12676         * linux-nat.c (linux_nat_stop): Add argument.
12677         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12678         * gnu-nat.c (gnu_stop): Add 'self' argument.
12679         * darwin-nat.c (darwin_stop): Add 'self' argument.
12680
12681 2014-02-19  Tom Tromey  <tromey@redhat.com>
12682
12683         * target.h (struct target_ops) <to_thread_name>: Add argument.
12684         * target.c (target_thread_name): Add argument.
12685         (update_current_target): Update.
12686         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12687
12688 2014-02-19  Tom Tromey  <tromey@redhat.com>
12689
12690         * target.h (struct target_ops) <to_extra_thread_info>: Add
12691         argument.
12692         (target_extra_thread_info): Add argument.
12693         * target.c (update_current_target): Update.
12694         * remote.c (remote_threads_extra_info): Add 'self' argument.
12695         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12696         argument.
12697         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12698         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12699         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12700         argument.
12701         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12702         argument.
12703         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12704         argument.
12705         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12706         argument.
12707
12708 2014-02-19  Tom Tromey  <tromey@redhat.com>
12709
12710         * target.h (struct target_ops) <to_program_signals>: Add argument.
12711         * target.c (target_program_signals): Add argument.
12712         * remote.c (remote_program_signals): Add 'self' argument.
12713
12714 2014-02-19  Tom Tromey  <tromey@redhat.com>
12715
12716         * target.h (struct target_ops) <to_pass_signals>: Add argument.
12717         * target.c (target_pass_signals): Add argument.
12718         * remote.c (remote_pass_signals): Add 'self' argument.
12719         (remote_start_remote): Update.
12720         * procfs.c (procfs_pass_signals): Add 'self' argument.
12721         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12722         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12723         (linux_nat_create_inferior, linux_nat_attach): Update.
12724
12725 2014-02-19  Tom Tromey  <tromey@redhat.com>
12726
12727         * windows-nat.c (windows_can_run): Add 'self' argument.
12728         * target.h (struct target_ops) <to_can_run>: Add argument.
12729         (target_can_run): Add argument.
12730         * target.c (debug_to_can_run): Add argument.
12731         (update_current_target): Update.
12732         * nto-procfs.c (procfs_can_run): Add 'self' argument.
12733         * inf-child.c (inf_child_can_run): Add 'self' argument.
12734         * go32-nat.c (go32_can_run): Add 'self' argument.
12735
12736 2014-02-19  Tom Tromey  <tromey@redhat.com>
12737
12738         * target.h (struct target_ops) <to_has_exited>: Add argument.
12739         (target_has_exited): Add argument.
12740         * target.c (debug_to_has_exited): Add argument.
12741         (update_current_target): Update.
12742
12743 2014-02-19  Tom Tromey  <tromey@redhat.com>
12744
12745         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12746         argument.
12747         (target_set_syscall_catchpoint): Add argument.
12748         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12749         argument.
12750         * target.c (update_current_target): Update.
12751
12752 2014-02-19  Tom Tromey  <tromey@redhat.com>
12753
12754         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12755         argument.
12756         (target_remove_exec_catchpoint): Add argument.
12757         * target.c (debug_to_remove_exec_catchpoint): Add argument.
12758         (update_current_target): Update.
12759         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12760         argument.
12761
12762 2014-02-19  Tom Tromey  <tromey@redhat.com>
12763
12764         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12765         argument.
12766         (target_insert_exec_catchpoint): Add argument.
12767         * target.c (debug_to_insert_exec_catchpoint): Add argument.
12768         (update_current_target): Update.
12769         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12770         argument.
12771
12772 2014-02-19  Tom Tromey  <tromey@redhat.com>
12773
12774         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12775         argument.
12776         (target_remove_vfork_catchpoint): Add argument.
12777         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12778         (update_current_target): Update.
12779         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12780         argument.
12781
12782 2014-02-19  Tom Tromey  <tromey@redhat.com>
12783
12784         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12785         argument.
12786         (target_insert_vfork_catchpoint): Add argument.
12787         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12788         (update_current_target): Update.
12789         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12790         argument.
12791
12792 2014-02-19  Tom Tromey  <tromey@redhat.com>
12793
12794         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12795         argument.
12796         (target_remove_fork_catchpoint): Add argument.
12797         * target.c (debug_to_remove_fork_catchpoint): Add argument.
12798         (update_current_target): Update.
12799         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12800         argument.
12801
12802 2014-02-19  Tom Tromey  <tromey@redhat.com>
12803
12804         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12805         argument.
12806         (target_insert_fork_catchpoint): Add argument.
12807         * target.c (debug_to_insert_fork_catchpoint): Add argument.
12808         (update_current_target): Update.
12809         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12810         argument.
12811
12812 2014-02-19  Tom Tromey  <tromey@redhat.com>
12813
12814         * target.h (struct target_ops) <to_post_startup_inferior>: Add
12815         argument.
12816         (target_post_startup_inferior): Add argument.
12817         * target.c (debug_to_post_startup_inferior): Add argument.
12818         (update_current_target): Update.
12819         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12820         argument.
12821         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12822         argument.
12823         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12824         argument.
12825         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12826         argument.
12827         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12828         'self' argument.
12829         (super_post_startup_inferior): Likewise.
12830         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12831         'self' argument.
12832         (super_post_startup_inferior): Likewise.
12833         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12834         Add 'self' argument.
12835         (super_post_startup_inferior): Likewise.
12836
12837 2014-02-19  Tom Tromey  <tromey@redhat.com>
12838
12839         * target.h (struct target_ops) <to_load>: Add argument.
12840         * target.c (target_load): Add argument.
12841         (debug_to_load): Add argument.
12842         (update_current_target): Update.
12843         * remote.c (remote_load): Add 'self' argument.
12844         * remote-sim.c (gdbsim_load): Add 'self' argument.
12845         * remote-mips.c (mips_load): Add 'self' argument.
12846         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12847         * monitor.c (monitor_load): Add 'self' argument.
12848         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12849
12850 2014-02-19  Tom Tromey  <tromey@redhat.com>
12851
12852         * target.h (struct target_ops) <to_terminal_info>: Add argument.
12853         (target_terminal_info): Add argument.
12854         * target.c (debug_to_terminal_info): Add argument.
12855         (default_terminal_info): Likewise.
12856         * inflow.c (child_terminal_info): Add 'self' argument.
12857         * inferior.h (child_terminal_info): Add 'self' argument.
12858         * go32-nat.c (go32_terminal_info): Add 'self' argument.
12859
12860 2014-02-19  Tom Tromey  <tromey@redhat.com>
12861
12862         * target.h (struct target_ops) <to_terminal_save_ours>: Add
12863         argument.
12864         (target_terminal_save_ours): Add argument.
12865         * target.c (debug_to_terminal_save_ours): Add argument.
12866         (update_current_target): Update.
12867         * inflow.c (terminal_save_ours): Add 'self' argument.
12868         * inferior.h (terminal_save_ours): Add 'self' argument.
12869
12870 2014-02-19  Tom Tromey  <tromey@redhat.com>
12871
12872         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12873         (target_terminal_ours): Add argument.
12874         * target.c (debug_to_terminal_ours): Add argument.
12875         (update_current_target): Update.
12876         * remote.c (remote_terminal_ours): Add 'self' argument.
12877         (remote_close): Update.
12878         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12879         * inflow.c (terminal_ours): Add 'self' argument.
12880         * inferior.h (terminal_ours): Add 'self' argument.
12881         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12882
12883 2014-02-19  Pedro Alves  <palves@redhat.com>
12884             Tom Tromey  <tromey@redhat.com>
12885
12886         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12887         argument.
12888         (target_terminal_ours_for_output): Add argument.
12889         * target.c (debug_to_terminal_ours_for_output): Add argument.
12890         (update_current_target): Update.
12891         * inflow.c (terminal_ours_for_output): Add 'self' argument.
12892         * inferior.h (terminal_ours_for_output): Add 'self' argument.
12893         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12894
12895 2014-02-19  Tom Tromey  <tromey@redhat.com>
12896
12897         * target.h (struct target_ops) <to_terminal_inferior>: Add
12898         argument.
12899         * target.c (target_terminal_inferior): Add argument.
12900         (update_current_target): Update.
12901         * remote.c (remote_terminal_inferior): Add 'self' argument.
12902         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12903         * inflow.c (terminal_inferior): Add 'self' argument.
12904         * inferior.h (terminal_inferior): Add 'self' argument.
12905         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12906         (go32_terminal_inferior): Add 'self' argument.
12907
12908 2014-02-19  Tom Tromey  <tromey@redhat.com>
12909
12910         * target.h (struct target_ops) <to_terminal_init>: Add argument.
12911         (target_terminal_init): Add argument.
12912         * target.c (debug_to_terminal_init): Add argument.
12913         (update_current_target): Update.
12914         * inflow.c (terminal_init_inferior): Add 'self' argument.
12915         * inferior.h (terminal_init_inferior): Add 'self' argument.
12916         * go32-nat.c (go32_terminal_init): Add 'self' argument.
12917         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12918
12919 2014-02-19  Tom Tromey  <tromey@redhat.com>
12920
12921         * target.h (struct target_ops)
12922         <to_can_accel_watchpoint_condition>: Add argument.
12923         (target_can_accel_watchpoint_condition): Add argument.
12924         * target.c (debug_to_can_accel_watchpoint_condition): Add
12925         argument.
12926         (update_current_target): Update.
12927         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12928         'self' argument.
12929
12930 2014-02-19  Tom Tromey  <tromey@redhat.com>
12931
12932         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12933         Add argument.
12934         (target_region_ok_for_hw_watchpoint): Add argument.
12935         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12936         (default_region_ok_for_hw_watchpoint): Add argument.
12937         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12938         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12939         argument.
12940         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12941         argument.
12942         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12943         argument.
12944         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12945         'self' argument.
12946         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12947         'self' argument.
12948         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12949         'self' argument.
12950         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12951         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12952         'self' argument.
12953         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12954         Add 'self' argument.
12955
12956 2014-02-19  Tom Tromey  <tromey@redhat.com>
12957
12958         * target.h (struct target_ops) <to_insert_watchpoint>: Add
12959         argument.
12960         (target_insert_watchpoint): Add argument.
12961         * target.c (debug_to_insert_watchpoint): Add argument.
12962         (update_current_target): Update.
12963         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12964         * remote.c (remote_insert_watchpoint): Add 'self' argument.
12965         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12966         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12967         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12968         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12969         argument.
12970         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12971         (procfs_insert_hw_watchpoint): Add 'self' argument.
12972         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12973         argument.
12974         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12975         argument.
12976         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12977         argument.
12978         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12979         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12980         argument.
12981         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12982         'self' argument.
12983
12984 2014-02-19  Tom Tromey  <tromey@redhat.com>
12985
12986         * target.h (struct target_ops) <to_remove_watchpoint>: Add
12987         argument.
12988         (target_remove_watchpoint): Add argument.
12989         * target.c (debug_to_remove_watchpoint): Add argument.
12990         (update_current_target): Update.
12991         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12992         * remote.c (remote_remove_watchpoint): Add 'self' argument.
12993         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12994         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12995         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12996         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12997         argument.
12998         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12999         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13000         argument.
13001         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13002         argument.
13003         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13004         argument.
13005         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13006         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13007         argument.
13008         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13009         'self' argument.
13010
13011 2014-02-19  Tom Tromey  <tromey@redhat.com>
13012
13013         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13014         argument.
13015         (target_remove_hw_breakpoint): Add argument.
13016         * target.c (debug_to_remove_hw_breakpoint): Add argument.
13017         (update_current_target): Update.
13018         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13019         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13020         argument.
13021         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13022         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13023         argument.
13024         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13025         'self' argument.
13026
13027 2014-02-19  Tom Tromey  <tromey@redhat.com>
13028
13029         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13030         argument.
13031         (target_insert_hw_breakpoint): Add argument.
13032         * target.c (debug_to_insert_hw_breakpoint): Add argument.
13033         (update_current_target): Update.
13034         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13035         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13036         argument.
13037         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13038         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13039         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13040         argument.
13041         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13042         'self' argument.
13043
13044 2014-02-19  Tom Tromey  <tromey@redhat.com>
13045
13046         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13047         argument.
13048         (target_can_use_hardware_watchpoint): Add argument.
13049         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13050         (update_current_target): Update.
13051         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13052         argument.
13053         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13054         argument.
13055         * remote.c (remote_check_watch_resources): Add 'self' argument.
13056         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13057         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13058         argument.
13059         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13060         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13061         argument.
13062         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13063         argument.
13064         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13065         argument.
13066         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13067         argument.
13068         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13069         argument.
13070         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13071         argument.
13072         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13073         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13074         argument.
13075         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13076         'self' argument.
13077
13078 2014-02-19  Tom Tromey  <tromey@redhat.com>
13079
13080         * target.h (struct target_ops) <to_post_attach>: Add argument.
13081         (target_post_attach): Add argument.
13082         * target.c (debug_to_post_attach): Add argument.
13083         (update_current_target): Update.
13084         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13085         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13086         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13087         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13088         * inf-child.c (inf_child_post_attach): Add 'self' argument.
13089
13090 2014-02-19  Tom Tromey  <tromey@redhat.com>
13091
13092         * windows-nat.c (windows_close): Add 'self' argument.
13093         * tracepoint.c (tfile_close): Add 'self' argument.
13094         * target.h (struct target_ops) <to_close>: Add argument.
13095         * target.c (target_close): Add argument.
13096         (update_current_target): Update.
13097         * remote.c (remote_close): Add 'self' argument.
13098         * remote-sim.c (gdbsim_close): Add 'self' argument.
13099         * remote-mips.c (mips_close): Add 'self' argument.
13100         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13101         * record-full.c (record_full_close): Add 'self' argument.
13102         * record-btrace.c (record_btrace_close): Add 'self' argument.
13103         * monitor.h (monitor_close): Add 'self' argument.
13104         * monitor.c (monitor_close): Add 'self' argument.
13105         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13106         * linux-nat.c (linux_nat_close): Add argument.
13107         * go32-nat.c (go32_close): Add 'self' argument.
13108         * exec.c (exec_close_1): Add 'self' argument.
13109         * ctf.c (ctf_close): Add 'self' argument.
13110         * corelow.c (core_close): Add 'self' argument.
13111         (core_close_cleanup): Update.
13112         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13113         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13114
13115 2014-02-19  Tom Tromey  <tromey@redhat.com>
13116
13117         * remote.c (remote_load): New function.
13118         (init_remote_ops): Use it.
13119
13120 2014-02-19  Tom Tromey  <tromey@redhat.com>
13121
13122         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13123         argument.
13124         * common/linux-btrace.h (linux_supports_btrace): Update.
13125         * remote.c (remote_supports_btrace): Add "self" argument.
13126         * target-delegates.c: Rebuild.
13127         * target.c (target_supports_btrace): Remove.
13128         * target.h (struct target_ops) <to_supports_btrace>: Add
13129         target_ops argument.
13130         (target_supports_btrace): New define.
13131
13132 2014-02-19  Tom Tromey  <tromey@redhat.com>
13133
13134         * record-full.c (record_full_beneath_to_resume_ops)
13135         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13136         (record_full_beneath_to_wait)
13137         (record_full_beneath_to_store_registers_ops)
13138         (record_full_beneath_to_store_registers)
13139         (record_full_beneath_to_xfer_partial_ops)
13140         (record_full_beneath_to_xfer_partial)
13141         (record_full_beneath_to_insert_breakpoint_ops)
13142         (record_full_beneath_to_insert_breakpoint)
13143         (record_full_beneath_to_remove_breakpoint_ops)
13144         (record_full_beneath_to_remove_breakpoint)
13145         (record_full_beneath_to_stopped_by_watchpoint)
13146         (record_full_beneath_to_stopped_data_address)
13147         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13148         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13149         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13150         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13151         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13152         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13153         (tmp_to_stopped_data_address, tmp_to_async): Remove.
13154         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
13155         (record_full_resume, record_full_wait_1)
13156         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13157         (record_full_store_registers, record_full_xfer_partial)
13158         (record_full_insert_breakpoint, record_full_remove_breakpoint)
13159         (record_full_async, record_full_core_xfer_partial): Use target
13160         delegation.
13161         * target-delegates.c: Rebuild.
13162         * target.c (current_xfer_partial): Remove.
13163         (update_current_target): Do not INHERIT or de_fault
13164         to_insert_breakpoint, to_remove_breakpoint,
13165         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13166         to_is_async_p, to_async.  Do not set to_xfer_partial field.
13167         (default_xfer_partial): Simplify.
13168         (current_xfer_partial): Remove.
13169         (target_wait, target_resume): Simplify.
13170         (find_default_can_async_p, find_default_is_async_p): Update.
13171         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13172         to_xfer_partial, to_stopped_by_watchpoint,
13173         to_stopped_data_address.
13174         (target_store_registers): Simplify.
13175         (forward_target_remove_breakpoint)
13176         (forward_target_insert_breakpoint): Remove.
13177         (target_remove_breakpoint, target_insert_breakpoint)
13178         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13179         * target.h (struct target_ops) <to_resume, to_wait,
13180         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13181         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13182         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13183         markup.
13184         (forward_target_remove_breakpoint)
13185         (forward_target_insert_breakpoint): Remove.
13186         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13187         directly.
13188         (record_btrace_insert_breakpoint): Delegate directly.
13189
13190 2014-02-19  Tom Tromey  <tromey@redhat.com>
13191
13192         PR build/7701:
13193         * target-delegates.c: New file.
13194         * target.c: Include target-delegates.c.
13195         (init_dummy_target): Call install_dummy_methods.
13196         (complete_target_initialization): Call install_delegators.
13197         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13198         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13199         * make-target-delegates: New file.
13200
13201 2014-02-19  Tom Tromey  <tromey@redhat.com>
13202
13203         * record.c (find_record_target): Use find_target_at.
13204         * target.c (find_target_at): New function.
13205         * target.h (find_target_at): Declare.
13206
13207 2014-02-19  Tom Tromey  <tromey@redhat.com>
13208
13209         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13210         Add 'ops' argument.
13211         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13212         'ops' argument.
13213         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13214         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13215         'ops' argument.
13216         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13217         argument.
13218         * linux-nat.c (save_sigtrap): Update.
13219         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13220         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13221         (linux_nat_close): Update.
13222         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13223         argument.
13224         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13225         argument.
13226         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13227         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13228         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13229         (tmp_to_async): Add 'ops' argument.
13230         (record_full_stopped_by_watchpoint, record_full_async)
13231         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13232         argument.
13233         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13234         (m32r_stopped_by_watchpoint): Add 'ops' argument.
13235         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13236         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13237         (remote_is_async_p, remote_async): Add 'ops' argument.
13238         (remote_stopped_data_address): Update.
13239         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13240         * target.c (update_current_target)
13241         (find_default_can_async_p, find_default_is_async_p): Update.
13242         (init_dummy_target): Update.
13243         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13244         * target.h (struct target_ops) <to_stopped_by_watchpoint,
13245         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13246         (target_can_async_p, target_is_async_p, target_async)
13247         (target_stopped_by_watchpoint): Update.
13248
13249 2014-02-19  Yao Qi  <yao@codesourcery.com>
13250
13251         PR gdb/16220
13252         * gdbarch.sh: Remove startup_gdbarch.
13253         * gdbarch.c: Regenerated.
13254         * gdbarch.h: Likewise.
13255
13256 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
13257
13258         * rl78-tdep.c (rl78_g10_register_name): New function.
13259         (rl78_return_value): Add g10 support.
13260         (rl78_gdbarch_init): Register rl78_g10_register_name for the
13261         g10.
13262
13263 2014-02-17  Doug Evans  <xdje42@gmail.com>
13264
13265         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13266         (SUBDIR_GUILE_SRCS): Ditto.
13267         (scm-gsmob.o): Ditto.
13268
13269 2014-02-17  Yao Qi  <yao@codesourcery.com>
13270
13271         * gnu-nat.c (ILL_RPC): Declare defined function.
13272
13273 2014-02-17  Yao Qi  <yao@codesourcery.com>
13274
13275         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13276         mach_msg_type_number_t.
13277         (gnu_write_inferior): Likewise.
13278
13279 2014-02-17  Yao Qi  <yao@codesourcery.com>
13280
13281         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13282         in format string.
13283         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13284         (inf_validate_procs, inf_signal): Likewise.
13285         (S_exception_raise_request): Likewise.
13286         (do_mach_notify_dead_name): Likewise.
13287         (steal_exc_port): Likewise.
13288         (gnu_read_inferior): Change 'copy_count''s type to
13289         mach_msg_type_number_t.
13290         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
13291         format string.
13292
13293 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
13294
13295         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13296         flag.  Adjust all users; in particular...
13297         (gnu_wait): ..., don't decrement its value in here...
13298         (gnu_create_inferior): ..., and instead set the flag in here,
13299         around the startup_inferior call, and call that one with
13300         START_INFERIOR_TRAPS_EXPECTED.
13301
13302         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13303         (ILL_RPC): ... new macro.
13304         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13305         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13306         (do_mach_notify_send_once, S_proc_setmsgport_reply)
13307         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13308         functions with ILL_RPC macro.
13309         (S_proc_pid2task_reply, S_proc_task2pid_reply)
13310         (S_proc_task2proc_reply, S_proc_proc2task_reply)
13311         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13312         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13313         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13314         (S_proc_getlogin_reply, S_proc_getsid_reply)
13315         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13316         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13317         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13318         (S_proc_getnports_reply, S_proc_is_important_reply)
13319         (S_proc_get_code_reply): New stub functions, generated with
13320         ILL_RPC macro.
13321
13322         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13323         collected the type check structures.
13324
13325         * reply_mig_hack.awk: Don't expect to see the auto keyword.
13326
13327 2014-02-14  Doug Evans  <dje@google.com>
13328
13329         * target.c (target_write_partial): Fix result type.
13330
13331 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
13332
13333         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13334         the proper offsets to access fpregset_t.
13335
13336 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
13337
13338         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13339         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13340         * h8300-tdep.c (setmachinelist): Remove global.
13341         * hppa-tdep.c (hppa_sigtramp): Remove global.
13342         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13343         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13344         * ravenscar-thread.c (update_target_observer): Remove global.
13345         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13346
13347 2014-02-12  Tom Tromey  <tromey@redhat.com>
13348
13349         * common/rsp-low.c: Update comments.
13350         * common/rsp-low.h: Update comments.
13351
13352 2014-02-12  Tom Tromey  <tromey@redhat.com>
13353
13354         * common/rsp-low.c (convert_ascii_to_int): Remove.
13355         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13356
13357 2014-02-12  Tom Tromey  <tromey@redhat.com>
13358
13359         * common/rsp-low.h (unhexify): Don't declare.
13360         * common/rsp-low.c (unhexify): Remove.
13361
13362 2014-02-12  Tom Tromey  <tromey@redhat.com>
13363
13364         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13365         * common/rsp-low.c (convert_int_to_ascii): Remove.
13366
13367 2014-02-12  Tom Tromey  <tromey@redhat.com>
13368
13369         * common/rsp-low.h (hexify): Don't declare.
13370         * common/rsp-low.c (hexify): Remove.
13371
13372 2014-02-12  Tom Tromey  <tromey@redhat.com>
13373
13374         * common/rsp-low.c (hexify): Never take strlen of argument.
13375
13376 2014-02-12  Tom Tromey  <tromey@redhat.com>
13377
13378         * common/rsp-low.c (bin2hex): Never take strlen of argument.
13379         * remote.c (extended_remote_run, remote_rcmd)
13380         (remote_download_trace_state_variable, remote_save_trace_data)
13381         (remote_set_trace_notes): Update.
13382         * tracepoint.c (encode_source_string, tfile_write_status)
13383         (tfile_write_uploaded_tsv): Update.
13384
13385 2014-02-12  Tom Tromey  <tromey@redhat.com>
13386
13387         * tracepoint.c: Include rsp-low.h.
13388         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13389         * remote.c: Include rsp-low.h.
13390         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13391         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13392         (remote_unescape_input): Move to common/rsp-low.c.
13393         * common/rsp-low.h: New file.
13394         * common/rsp-low.c: New file.
13395         * Makefile.in (SFILES): Add common/rsp-low.c.
13396         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13397         (COMMON_OBS): Add rsp-low.o.
13398         (rsp-low.o): New target.
13399
13400 2014-02-12  Tom Tromey  <tromey@redhat.com>
13401
13402         * utils.h: Include print-utils.h.
13403         (host_address_to_string, plongest, pulongest, phex, phex_nz)
13404         (int_string, core_addr_to_string, core_addr_to_string_nz)
13405         (hex_string, hex_string_custom): Don't declare.
13406         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13407         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13408         (hex_string_custom, int_string, core_addr_to_string)
13409         (core_addr_to_string_nz, host_address_to_string): Move to
13410         common/print-utils.c.
13411         * common/print-utils.h: New file.
13412         * common/print-utils.c: New file
13413         * Makefile.in (SFILES): Add common/print-utils.c.
13414         (HFILES_NO_SRCDIR): Add common/print-utils.h.
13415         (COMMON_OBS): Add print-utils.o.
13416         (print-utils.o): New target.
13417
13418 2014-02-12  Tom Tromey  <tromey@redhat.com>
13419
13420         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13421
13422 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
13423
13424         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13425
13426 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
13427
13428         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13429         if a PT_IO ptrace request returns sucessfully but indicates that 0
13430         bytes were transferred.
13431
13432 2014-02-12  Pedro Alves  <palves@redhat.com>
13433             Kevin Buettner <kevinb@redhat.com>
13434
13435         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13436         TYPE_INSTANCE_FLAG_CODE_SPACE.
13437
13438 2014-02-12  Pedro Alves  <palves@redhat.com>
13439
13440         * h8300-tdep.c (pseudo_from_raw_register)
13441         (raw_from_pseudo_register): New functions.
13442         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13443         them.
13444
13445 2014-02-12  Pedro Alves  <palves@redhat.com>
13446
13447         * h8300-tdep.c (h8300_register_sim_regno): New function.
13448         (h8300_gdbarch_init): Install h8300_register_sim_regno as
13449         gdbarch_register_sim_regno hook.
13450
13451 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
13452
13453         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13454
13455 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
13456
13457         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13458
13459 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
13460
13461         * obsd-tdep.h (obsd_init_abi): New prototype.
13462         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13463         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13464         (obsd_init_abi): New functions.
13465         * i386obsd-tdep.c: Include "obsd-tdep.h".
13466         (i386obsd_init_abi): Call obsd_init_abi.
13467         * amd64obsd-tdep.c: Include "obsd-tdep.h".
13468         (amd64obsd_init_abi): Call obsd_init_abi.
13469         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13470         obsd-tdep.c to gdb_target_obs.
13471
13472 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
13473
13474         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13475         double float arguments to 16-byte in the argument slots.
13476
13477 2014-02-11  Doug Evans  <xdje42@gmail.com>
13478
13479         * configure.ac: Don't crash if pkg-config is not found and guile
13480         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
13481         in guile checks.
13482         * configure: Regenerate.
13483
13484 2014-02-11  Yao Qi  <yao@codesourcery.com>
13485
13486         * aix-thread.c (aix_thread_xfer_partial): Update comments.
13487         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13488         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13489         * gnu-nat.c (gnu_xfer_memory): Likewise.
13490         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
13491         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13492         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13493         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13494
13495 2014-02-11  Yao Qi  <yao@codesourcery.com>
13496
13497         * target.h (enum target_xfer_error): Rename to ...
13498         (enum target_xfer_status): ... it.  New.  All users updated.
13499         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13500         New.
13501         (TARGET_XFER_STATUS_ERROR_P): New macro.
13502         (target_xfer_error_to_string): Remove declaration.
13503         (target_xfer_status_to_string): Declare.
13504         (target_xfer_partial_ftype): Adjust it.
13505         (struct target_ops) <to_xfer_partial>: Return
13506         target_xfer_status.  Add argument xfered_len.  Update
13507         comments.
13508         * target.c (target_xfer_error_to_string): Rename to ...
13509         (target_xfer_status_to_string): ... it.  New.  All callers
13510         updated.
13511         (target_read_live_memory): Likewise.  Call target_xfer_partial
13512         instead of target_read.
13513         (memory_xfer_live_readonly_partial): Return
13514         target_xfer_status.  Add argument xfered_len.
13515         (raw_memory_xfer_partial): Likewise.
13516         (memory_xfer_partial_1): Likewise.
13517         (memory_xfer_partial): Likewise.
13518         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
13519         properly.  Update debug message.
13520         (default_xfer_partial, current_xfer_partial): Likewise.
13521         (target_write_partial): Likewise.
13522         (target_read_partial): Likewise.  All callers updated.
13523         (read_whatever_is_readable): Likewise.
13524         (target_write_with_progress): Likewise.
13525         (target_read_alloc_1): Likewise.
13526
13527         * aix-thread.c (aix_thread_xfer_partial): Likewise.
13528         * auxv.c (procfs_xfer_auxv): Likewise.
13529         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13530         * bfd-target.c (target_bfd_xfer_partial): Likewise.
13531         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13532         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13533         * corefile.c (read_memory): Adjust.
13534         * corelow.c (core_xfer_partial): Likewise.
13535         * ctf.c (ctf_xfer_partial): Likewise.
13536         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
13537         updated.
13538         (darwin_xfer_partial): Likewise.
13539         * exec.c (section_table_xfer_memory_partial): Likewise.  All
13540         callers updated.
13541         (exec_xfer_partial): Likewise.
13542         * exec.h (section_table_xfer_memory_partial): Update
13543         declaration.
13544         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
13545         negative.
13546         (gnu_xfer_partial): Likewise.
13547         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13548         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13549         (ia64_hpux_xfer_solib_got): Likewise.
13550         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
13551         type of 'partial_len' to ULONGEST.
13552         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13553         * linux-nat.c (linux_xfer_siginfo ): Likewise.
13554         (linux_nat_xfer_partial): Likewise.
13555         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13556         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13557         * monitor.c (monitor_xfer_memory): Likewise.
13558         (monitor_xfer_partial): Likewise.
13559         * procfs.c (procfs_xfer_partial): Likewise.
13560         * record-btrace.c (record_btrace_xfer_partial): Likewise.
13561         * record-full.c (record_full_xfer_partial): Likewise.
13562         (record_full_core_xfer_partial): Likewise.
13563         * remote-sim.c (gdbsim_xfer_memory): Likewise.
13564         (gdbsim_xfer_partial): Likewise.
13565         * remote.c (remote_write_bytes_aux): Likewise.  All callers
13566         updated.
13567         (remote_write_bytes, remote_read_bytes): Likewise.  All
13568         callers updated.
13569         (remote_flash_erase): Likewise.  All callers updated.
13570         (remote_write_qxfer): Likewise.  All callers updated.
13571         (remote_read_qxfer): Likewise.  All callers updated.
13572         (remote_xfer_partial): Likewise.
13573         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13574         (rs6000_xfer_shared_libraries): Likewise.
13575         * sol-thread.c (sol_thread_xfer_partial): Likewise.
13576         (sol_thread_xfer_partial): Likewise.
13577         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13578         (sparc_xfer_partial): Likewise.
13579         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
13580         updated.
13581         (spu_xfer_partial): Likewise.
13582         * spu-multiarch.c (spu_xfer_partial): Likewise.
13583         * tracepoint.c (tfile_xfer_partial): Likewise.
13584         * windows-nat.c (windows_xfer_memory): Likewise.
13585         (windows_xfer_shared_libraries): Likewise.
13586         (windows_xfer_partial): Likewise.
13587         * valprint.c: Replace 'target_xfer_error' with
13588         'target_xfer_status' in comments.
13589
13590 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
13591
13592         Checked in by Joel Brobecker <brobecker@adacore.com>.
13593         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13594
13595 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
13596
13597         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13598         function parameters.
13599
13600 2014-02-10  Will Newton  <will.newton@linaro.org>
13601
13602         * elfread.c (elf_rel_plt_read): Look for a .got section if
13603         looking up .got.plt fails.
13604         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13605         on address passed to elf_gnu_ifunc_record_cache.
13606         (elf_gnu_ifunc_resolve_addr): Likewise.
13607         (elf_gnu_ifunc_resolver_return_stop): Likewise.
13608
13609 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
13610
13611         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13612         (X_RETTURN): New macro.
13613         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13614
13615         * sparc64-tdep.c (sparc64_init_abi): Hook
13616         sparc_in_function_epilogue_p.
13617
13618 2014-02-10  Gary Benson  <gbenson@redhat.com>
13619
13620         * symfile-debug.c (debug_qf_expand_symtabs_matching):
13621         Rename name_matcher to symbol_matcher.
13622
13623 2014-02-10  Gary Benson  <gbenson@redhat.com>
13624
13625         * symfile-debug.c (debug_qf_expand_symtabs_matching):
13626         Use expand_symtabs_file_matcher_ftype and
13627         expand_symtabs_symbol_matcher_ftype.
13628
13629 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13630
13631         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13632         (struct ada_symbol_cache): New.
13633         (ada_free_symbol_cache): Forward declare.
13634         (struct ada_pspace_data): New.
13635         (ada_pspace_data_handle): New static global.
13636         (get_ada_pspace_data, ada_pspace_data_cleanup)
13637         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13638         (cache_space, cache): Delete, now folded inside struct
13639         ada_pspace_data.
13640         (ada_get_symbol_cache): New function.
13641         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13642         implementation.
13643         (_initialize_ada_language): Remove initialization of cache_space.
13644         Move call to observer_attach_inferior_exit up, grouping it
13645         with the other observer registrations inside this function.
13646         Rename command to be more general.  Add call to
13647         register_program_space_data_with_cleanup.
13648
13649 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13650
13651         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13652         ada_new_objfile_observer.
13653         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13654         (_initialize_tasks): Update uses of ada_new_objfile_observer
13655         and ada_tasks_normal_stop_observer.
13656
13657 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13658
13659         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13660         returned by the 'Length attribute to integer.
13661
13662 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13663
13664         * ada-lang.c (_initialize_ada_language): Initialize
13665         cache_space obstack.
13666
13667 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13668
13669         * ada-lang.c (HASH_SIZE): New macro.
13670         (struct cache_entry): New type.
13671         (cache_space, cache): New static globals.
13672         (ada_clear_symbol_cache, find_entry): New functions.
13673         (lookup_cached_symbol, cache_symbol): Implement.
13674         (ada_new_objfile_observer, ada_free_objfile_observer): New.
13675         (_initialize_ada_language): Attach ada_new_objfile_observer
13676         and ada_free_objfile_observer.
13677
13678 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13679
13680         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13681         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13682         struct block * parameter.
13683         (ada_lookup_symbol_list_worker): Constify local variable "block".
13684         Remove cast which is no longer necessary.
13685
13686 2014-02-10  Doug Evans  <xdje42@gmail.com>
13687
13688         Add Guile as an extension language.
13689         * NEWS: Mention Guile scripting.
13690         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13691         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13692         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13693         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13694         (CLIBS): Add GUILE_LIBS.
13695         (install-guile): New rule.
13696         (guile.o): New rule.
13697         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13698         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13699         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13700         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13701         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13702         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13703         (scm-type.o, scm-utils.o, scm-value.o): New rules.
13704         * configure.ac: New option --with-guile.
13705         * configure: Regenerate.
13706         * config.in: Regenerate.
13707         * auto-load.c: Remove #include "python/python.h".  Add #include
13708         "gdb/section-scripts.h".
13709         (source_section_scripts): Handle Guile scripts.
13710         (_initialize_auto_load): Add name of Guile objfile script to
13711         scripts-directory help text.
13712         * breakpoint.c (condition_command): Tweak comment to include Scheme.
13713         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13714         (struct breakpoint): New member scm_bp_object.
13715         * defs.h (enum command_control_type): New value guile_control.
13716         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
13717         "extension.h".
13718         (show_user): Update comment.
13719         (_initialize_cli_cmds): Update help text for "show user".  Update help
13720         text for max-user-call-depth.
13721         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
13722         "extension.h".
13723         (multi_line_command_p): Add guile_control.
13724         (print_command_lines): Handle guile_control.
13725         (execute_control_command, recurse_read_control_structure): Ditto.
13726         (process_next_line): Recognize "guile" commands.
13727         * disasm.c (gdb_disassemble_info): Make non-static.
13728         * disasm.h: #include "dis-asm.h".
13729         (struct gdbarch): Add forward decl.
13730         (gdb_disassemble_info): Declare.
13731         * extension.c: #include "guile/guile.h".
13732         (extension_languages): Add guile.
13733         (get_ext_lang_defn): Handle EXT_LANG_GDB.
13734         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13735         * gdbtypes.c (get_unsigned_type_max): New function.
13736         (get_signed_type_minmax): New function.
13737         * gdbtypes.h (get_unsigned_type_max): Declare.
13738         (get_signed_type_minmax): Declare.
13739         * guile/README: New file.
13740         * guile/guile-internal.h: New file.
13741         * guile/guile.c: New file.
13742         * guile/guile.h: New file.
13743         * guile/scm-arch.c: New file.
13744         * guile/scm-auto-load.c: New file.
13745         * guile/scm-block.c: New file.
13746         * guile/scm-breakpoint.c: New file.
13747         * guile/scm-disasm.c: New file.
13748         * guile/scm-exception.c: New file.
13749         * guile/scm-frame.c: New file.
13750         * guile/scm-gsmob.c: New file.
13751         * guile/scm-iterator.c: New file.
13752         * guile/scm-lazy-string.c: New file.
13753         * guile/scm-math.c: New file.
13754         * guile/scm-objfile.c: New file.
13755         * guile/scm-ports.c: New file.
13756         * guile/scm-pretty-print.c: New file.
13757         * guile/scm-safe-call.c: New file.
13758         * guile/scm-string.c: New file.
13759         * guile/scm-symbol.c: New file.
13760         * guile/scm-symtab.c: New file.
13761         * guile/scm-type.c: New file.
13762         * guile/scm-utils.c: New file.
13763         * guile/scm-value.c: New file.
13764         * guile/lib/gdb.scm: New file.
13765         * guile/lib/gdb/boot.scm: New file.
13766         * guile/lib/gdb/experimental.scm: New file.
13767         * guile/lib/gdb/init.scm: New file.
13768         * guile/lib/gdb/iterator.scm: New file.
13769         * guile/lib/gdb/printing.scm: New file.
13770         * guile/lib/gdb/types.scm: New file.
13771         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13772         (VPATH): Add $(GUILE_SRCDIR).
13773         (GUILE_DIR): New variable.
13774         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13775         (all): Add stamp-guile dependency.
13776         (stamp-guile): New rule.
13777         (clean-guile, install-guile, uninstall-guile): New rules.
13778         (install-only): Add install-guile dependency.
13779         (uninstall): Add uninstall-guile dependency.
13780         (clean): Add clean-guile dependency.
13781
13782 2014-02-09  Doug Evans  <xdje42@gmail.com>
13783
13784         Revert this patch (which I approved, mea culpa).
13785
13786         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
13787
13788         * Makefile.in (all-lib): Remove.
13789         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13790
13791 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
13792
13793         Fix Python stack corruption.
13794         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13795         gdb_py_longest.
13796
13797 2014-02-08  Mark Kettenis  <kettenis@gnu.org>
13798
13799         * Makefile.in (all-lib): Remove.
13800         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13801
13802 2014-02-07  Doug Evans  <dje@google.com>
13803
13804         * extension-priv.h (extension_language_script_ops): Add comment.
13805         (extension_language_ops): Add comment.
13806         (active_ext_lang_state): Fix typo in comment.
13807
13808 2014-02-07  Pedro Alves  <palves@redhat.com>
13809
13810         PR breakpoints/16292
13811         * infrun.c (handle_signal_stop) <signal arrives while stepping
13812         over a breakpoint>: Switch back to the stepping thread.
13813
13814 2014-02-07  Yao Qi  <yao@codesourcery.com>
13815
13816         * target.c (target_xfer_partial): Return zero if LEN is zero.
13817
13818 2014-02-07  Yao Qi  <yao@codesourcery.com>
13819
13820         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13821         (ld_so_xfer_auxv): Likewise.
13822         * bfd-target.c (target_bfd_xfer_partial): Likewise.
13823         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13824         * corelow.c (core_xfer_partial): Likewise.
13825         * ctf.c (ctf_xfer_partial): Likewise.
13826         * darwin-nat.c (darwin_read_dyld_info): Likewise.
13827         (darwin_xfer_partial): Likewise.
13828         * exec.c (exec_xfer_partial): Likewise.
13829         * gnu-nat.c (gnu_xfer_partial): Likewise.
13830         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13831         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13832         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13833         * linux-nat.c (linux_xfer_siginfo): Likewise.
13834         (linux_proc_xfer_spu): Likewise.
13835         * procfs.c (procfs_xfer_partial): Likewise.
13836         * record-full.c (record_full_xfer_partial): Likewise.
13837         (record_full_core_xfer_partial): Likewise.
13838         * remote-sim.c (gdbsim_xfer_partial): Likewise.
13839         * remote.c (remote_write_qxfer): Likewise.
13840         (remote_write_qxfer, remote_read_qxfer): Likewise.
13841         (remote_xfer_partial): Likewise.
13842         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13843         (rs6000_xfer_shared_libraries): Likewise.
13844         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13845         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13846         (spu_xfer_partial): Likewise.
13847         * target.c (memory_xfer_partial_1): Likewise.
13848         * tracepoint.c (tfile_xfer_partial): Likewise.
13849         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13850         (windows_xfer_partial): Likewise.
13851
13852 2014-02-07  Yao Qi  <yao@codesourcery.com>
13853
13854         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
13855         comments.
13856         (core_xfer_shared_libraries_aix): Likewise.
13857         * gdbarch.c, gdbarch.h: Regenerated.
13858         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13859         ULONGEST.  Change 'len_avail' type to ULONGEST.
13860         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13861         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13862         declaration.
13863         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13864
13865 2014-02-07  Yao Qi  <yao@codesourcery.com>
13866
13867         * corefile.c (memory_error): Get 'exception' from ERR and pass
13868         'exception' to throw_error.
13869
13870 2014-02-06  Doug Evans  <xdje42@gmail.com>
13871
13872         * configure.ac (libpython checking): Remove all but python.o from
13873         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
13874         * configure: Regenerate.
13875
13876         * Makefile.in (SFILES): Add extension.c.
13877         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13878         (COMMON_OBS): Add extension.o.
13879         * extension.h: New file.
13880         * extension-priv.h: New file.
13881         * extension.c: New file.
13882
13883         * python/python-internal.h: #include "extension.h".
13884         (gdbpy_auto_load_enabled): Declare.
13885         (gdbpy_apply_val_pretty_printer): Declare.
13886         (gdbpy_apply_frame_filter): Declare.
13887         (gdbpy_preserve_values): Declare.
13888         (gdbpy_breakpoint_cond_says_stop): Declare.
13889         (gdbpy_breakpoint_has_cond): Declare.
13890         (void source_python_script_for_objfile): Delete.
13891         * python/python.c: #include "extension-priv.h".
13892         Delete inclusion of "observer.h".
13893         (extension_language_python): Moved here and renamed from
13894         script_language_python in py-auto-load.c.
13895         Redefined to be of type extension_language_defn.
13896         (python_extension_script_ops): New global.
13897         (python_extension_ops): New global.
13898         (struct python_env): New member previous_active.
13899         (restore_python_env): Call restore_active_ext_lang.
13900         (ensure_python_env): Call set_active_ext_lang.
13901         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13902         New arg extlang.
13903         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13904         New arg extlang.
13905         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13906         New arg extlang.
13907         (gdbpy_eval_from_control_command): Renamed from
13908         eval_python_from_control_command, made static.  New arg extlang.
13909         (gdbpy_source_script) Renamed from source_python_script, made static.
13910         New arg extlang.
13911         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
13912         result to int.  New arg extlang.
13913         (gdbpy_source_objfile_script): Renamed from
13914         source_python_script_for_objfile, made static.  New arg extlang.
13915         (gdbpy_start_type_printers): Renamed from start_type_printers, made
13916         static.  New args extlang, extlang_printers.  Change result type to
13917         "void".
13918         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13919         static.  New arg extlang.  Rename arg printers to extlang_printers
13920         and change type to ext_lang_type_printers *.
13921         (gdbpy_free_type_printers): Renamed from free_type_printers, made
13922         static.  Replace argument arg with extlang, extlang_printers.
13923         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13924         (!HAVE_PYTHON, source_python_script): Delete.
13925         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13926         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13927         (!HAVE_PYTHON, start_type_printers): Delete.
13928         (!HAVE_PYTHON, apply_type_printers): Delete.
13929         (!HAVE_PYTHON, free_type_printers): Delete.
13930         (_initialize_python): Delete call to observer_attach_before_prompt.
13931         (finalize_python): Set/restore active extension language.
13932         (gdbpy_finish_initialization) Renamed from
13933         finish_python_initialization, made static.  New arg extlang.
13934         (gdbpy_initialized): New function.
13935         * python/python.h: #include "extension.h".  Delete #include
13936         "value.h", "mi/mi-cmds.h".
13937         (extension_language_python): Declare.
13938         (GDBPY_AUTO_FILE_NAME): Delete.
13939         (enum py_bt_status): Moved to extension.h and renamed to
13940         ext_lang_bt_status.
13941         (enum frame_filter_flags): Moved to extension.h.
13942         (enum py_frame_args): Moved to extension.h and renamed to
13943         ext_lang_frame_args.
13944         (finish_python_initialization): Delete.
13945         (eval_python_from_control_command): Delete.
13946         (source_python_script): Delete.
13947         (apply_val_pretty_printer): Delete.
13948         (apply_frame_filter): Delete.
13949         (preserve_python_values): Delete.
13950         (gdbpy_script_language_defn): Delete.
13951         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13952         (start_type_printers, apply_type_printers, free_type_printers): Delete.
13953
13954         * auto-load.c: #include "extension.h".
13955         (GDB_AUTO_FILE_NAME): Delete.
13956         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
13957         (script_language_gdb): Delete, moved to extension.c and renamed to
13958         extension_language_gdb.
13959         (source_gdb_script_for_objfile): Delete.
13960         (auto_load_pspace_info): New member unsupported_script_warning_printed.
13961         (loaded_script): Change type of language member to
13962         struct extension_language_defn *.
13963         (init_loaded_scripts_info): Initialize
13964         unsupported_script_warning_printed.
13965         (maybe_add_script): Make static.  Change type of language arg to
13966         struct extension_language_defn *.
13967         (clear_section_scripts): Reset unsupported_script_warning_printed.
13968         (auto_load_objfile_script_1): Rewrite to use extension language API.
13969         (auto_load_objfile_script): Make public.  Remove support-compiled-in
13970         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13971         (source_section_scripts): Rewrite to use extension language API.
13972         (load_auto_scripts_for_objfile): Rewrite to use
13973         auto_load_scripts_for_objfile.
13974         (collect_matching_scripts_data): Change type of language member to
13975         struct extension_language_defn *.
13976         (auto_load_info_scripts): Change type of language arg to
13977         struct extension_language_defn *.
13978         (unsupported_script_warning_print): New function.
13979         (script_not_found_warning_print): Make static.
13980         (_initialize_auto_load): Rewrite construction of scripts-directory
13981         help.
13982         * auto-load.h (struct objfile): Add forward decl.
13983         (struct script_language): Delete.
13984         (struct auto_load_pspace_info): Add forward decl.
13985         (struct extension_language_defn): Add forward decl.
13986         (maybe_add_script): Delete.
13987         (auto_load_objfile_script): Declare.
13988         (script_not_found_warning_print): Delete.
13989         (auto_load_info_scripts): Update prototype.
13990         (auto_load_gdb_scripts_enabled): Declare.
13991         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13992         auto_load_python_scripts_enabled and made public.
13993         (script_language_python): Delete, moved to python.c.
13994         (gdbpy_script_language_defn): Delete.
13995         (info_auto_load_python_scripts): Update to use
13996         extension_language_python.
13997
13998         * breakpoint.c (condition_command): Replace call to
13999         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14000         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14001         with call to breakpoint_ext_lang_cond_says_stop.
14002         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14003         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
14004         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14005         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14006         New arg slang.
14007         (local_setattro): Print name of extension language with existing
14008         stop condition.
14009
14010         * valprint.c (val_print, value_print): Update to call
14011         apply_ext_lang_val_pretty_printer.
14012         * cp-valprint.c (cp_print_value): Update call to
14013         apply_ext_lang_val_pretty_printer.
14014         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14015         (gdbpy_apply_val_pretty_printer): Renamed from
14016         apply_val_pretty_printer.  New arg extlang.
14017         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14018
14019         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14020         extension language API.
14021         * cli/cli-script.c (execute_control_command): Update to call
14022         eval_ext_lang_from_control_command.
14023
14024         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14025         enum ext_lang_bt_status values.  Update call to
14026         apply_ext_lang_frame_filter.
14027         (mi_cmd_stack_list_locals): Ditto.
14028         (mi_cmd_stack_list_args): Ditto.
14029         (mi_cmd_stack_list_variables): Ditto.
14030         * mi/mi-main.c: Delete #include "python/python-internal.h".
14031         Add #include "extension.h".
14032         (mi_cmd_list_features): Replace reference to python internal variable
14033         gdb_python_initialized with call to ext_lang_initialized_p.
14034
14035         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14036         Update to use enum ext_lang_frame_args.  Update to call
14037         apply_ext_lang_frame_filter.
14038         * python/py-framefilter.c (extract_sym): Update to use enum
14039         ext_lang_bt_status.
14040         (extract_value, py_print_type, py_print_value): Ditto.
14041         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14042         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14043         (py_print_frame): Ditto.
14044         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14045         New arg extlang.  Update to use enum ext_lang_bt_status.
14046
14047         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14048         finish_python_initialization.  Replace with call to
14049         finish_ext_lang_initialization.
14050
14051         * typeprint.c (do_free_global_table): Update to call
14052         free_ext_lang_type_printers.
14053         (create_global_typedef_table): Update to call
14054         start_ext_lang_type_printers.
14055         (find_global_typedef): Update to call apply_ext_lang_type_printers.
14056         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14057         (type_print_options): Change type of global_printers from "void *"
14058         to "struct ext_lang_type_printers *".
14059
14060         * value.c (preserve_values): Update to call preserve_ext_lang_values.
14061         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14062         (gdbpy_preserve_values): Renamed from preserve_python_values.
14063         New arg extlang.
14064         (!HAVE_PYTHON, preserve_python_values): Delete.
14065
14066         * utils.c (quit_flag): Delete, moved to extension.c.
14067         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14068         extension.c.
14069
14070         * eval.c: Delete #include "python/python.h".
14071         * main.c: Delete #include "python/python.h".
14072
14073         * defs.h: Update comment.
14074
14075 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
14076
14077         GDB 7.7 released.
14078
14079 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
14080
14081         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14082         defined.
14083
14084 2014-02-05  Yao Qi  <yao@codesourcery.com>
14085
14086         * remote.c (remote_pass_signals): Remove local 'buf' and use
14087         rs->buf.
14088         (remote_program_signals): Likewise.
14089
14090 2014-02-05  Yao Qi  <yao@codesourcery.com>
14091
14092         * ctf.c: Include "inferior.h" and "gdbthread.h".
14093         (CTF_PID): A new macro.
14094         (ctf_open): Call inferior_appeared and add_thread_silent.
14095         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14096         (ctf_thread_alive): New function.
14097         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14098
14099 2014-02-05  Yao Qi  <yao@codesourcery.com>
14100
14101         Revert this patch:
14102
14103         2013-05-24  Yao Qi  <yao@codesourcery.com>
14104
14105         * tracepoint.c (TFILE_PID): Remove.
14106         (tfile_open): Don't add thread and inferior.
14107         (tfile_close): Don't set 'inferior_ptid'.  Don't call
14108         exit_inferior_silent.
14109         (tfile_thread_alive): Remove.
14110         (init_tfile_ops): Don't set field 'to_thread_alive' of
14111         tfile_ops.
14112
14113 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
14114
14115         * remote.c (remote_start_remote): Call remote_check_symbols even
14116         if only symbol-file (not file) has been given.
14117
14118 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14119
14120         * gdbarch.sh (skip_entrypoint): New callback.
14121         * gdbarch.c, gdbarch.h: Regenerate.
14122         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14123         * infrun.c (fill_in_stop_func): Likewise.
14124         * ppc-linux-tdep.c: Include "elf/ppc64.h".
14125         (ppc_elfv2_elf_make_msymbol_special): New function.
14126         (ppc_elfv2_skip_entrypoint): Likewise.
14127         (ppc_linux_init_abi): Install them for ELFv2.
14128
14129 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14130
14131         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14132         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14133         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14134         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
14135         structures returned in GPRs.
14136
14137 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14138
14139         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14140         offset to the stack parameter list for the ELFv2 ABI.
14141
14142 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14143
14144         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14145         set_gdbarch_convert_from_func_ptr_addr and
14146         set_gdbarch_elf_make_msymbol_special for ELFv1.
14147         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14148         function descriptors on ELFv1.
14149         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
14150         set up r12 at function entry.
14151
14152 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14153
14154         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14155         (struct gdbarch_tdep): New member elf_abi.
14156
14157         * rs6000-tdep.c: Include "elf/ppc64.h".
14158         (rs6000_gdbarch_init): Detect ELF ABI version.
14159
14160 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14161
14162         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14163         within a register pair holding a DFP 128-bit value on little-endian.
14164         (ppc64_sysv_abi_return_value_base): Likewise.
14165         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14166         (dfp_pseudo_register_write): Likewise.
14167
14168 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14169
14170         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14171         offset on little-endian when passing _Decimal32.
14172         (ppc64_sysv_abi_return_value_base): Likewise for return values.
14173
14174 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14175
14176         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14177         of the overlapped FP register within the VSX register on little-
14178         endian platforms.
14179         (efpr_pseudo_register_write): Likewise.
14180
14181 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14182
14183         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14184         offset on little-endian when passing small structures.
14185
14186 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14187
14188         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14189         (struct ppc64_sysv_argpos): New data structure.
14190         (ppc64_sysv_abi_push_float): Remove.
14191         (ppc64_sysv_abi_push_val): New function.
14192         (ppc64_sysv_abi_push_integer): Likewise.
14193         (ppc64_sysv_abi_push_freg): Likewise.
14194         (ppc64_sysv_abi_push_vreg): Likewise.
14195         (ppc64_sysv_abi_push_param): Likewise.
14196         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14197         (ppc64_sysv_abi_return_value_base): New function.
14198         (ppc64_sysv_abi_return_value): Refactor to use it.
14199
14200 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14201
14202         * NEWS: Document new target powerpc64le-*-linux*.
14203
14204 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
14205
14206         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14207         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14208         core dumps.
14209         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14210         register set used in ELF core dumps.  Add floating-point register set.
14211
14212 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
14213
14214         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14215         dwarf2_to_gdb[] table using symbolic constants.  Adjust
14216         penultimate entry from number representing the PC register
14217         to symbolic constant representing the MDR register.  Add
14218         constant for the PC register to the end of the table.
14219
14220 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
14221
14222         * bsd-kvm.c: Include <sys/param.h>
14223
14224 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
14225
14226         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14227
14228 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
14229
14230         * ada-lang.h (clear_ada_sym_cache): Delete.
14231
14232 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
14233
14234         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14235
14236 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
14237
14238         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14239           the sigreturn register save area only if the syscall is
14240           sigreturn.
14241
14242 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
14243
14244         * valops.c (value_slice): Minor reformatting.
14245
14246 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
14247
14248         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14249
14250 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
14251
14252         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14253         New static globals.
14254         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14255         (ada_ignore_descriptive_types_p): New static global.
14256         (find_parallel_type_by_descriptive_type): Return immediately
14257         if ada_ignore_descriptive_types_p is set.
14258         (_initialize_ada_language): Register new commands "maintenance
14259         set ada", "maintenance show ada", "maintenance set ada
14260         ignore-descriptive-types" and "maintenance show ada
14261         ignore-descriptive-types".
14262         * NEWS: Add entry for new "maint ada set/show
14263         ignore-descriptive-types" commands.
14264
14265 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
14266
14267         * record-btrace.c (record_btrace_close): Call btrace_teardown
14268         for all threads.
14269
14270 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14271
14272         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14273         "ui-out.h".
14274
14275 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14276
14277         * ada-typeprint (type_is_full_subrange_of_target_type):
14278         New function.
14279         (print_range): Add parameter bounds_prefered_p.  If not set,
14280         try printing range types using the name of their base type.
14281         (print_range_type): Add parameter bounds_prefered_p.
14282         Use it in call to print_range.
14283         (print_array_type, ada_print_type): Update calls to print_range
14284         and print_range_type.
14285
14286 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14287
14288         * ada-typeprint.c (print_array_type, print_choices, print_range)
14289         (print_range_bound, print_dynamic_range_bound, print_range_type):
14290         Remove declaration.
14291
14292 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14293
14294         * ada-typeprint.c (print_range): Add missing empty line
14295         after local declaration.
14296
14297 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14298
14299         * ada-valprint.c (print_optional_low_bound): Get index_type's
14300         target type for as long as it is a TYPE_CODE_RANGE.
14301
14302 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14303
14304         * procfs.c (procfs_make_note_section): Remove assertion and
14305         associated comment.
14306
14307 2014-01-24  Yao Qi  <yao@codesourcery.com>
14308
14309         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14310         * corelow.c (get_core_siginfo): Likewise.
14311
14312 2014-01-24  Yao Qi  <yao@codesourcery.com>
14313
14314         * remote.c (remote_write_bytes_aux): Change type of 'len' to
14315         ULONGEST.  Don't check 'len' is negative.
14316         (remote_write_bytes):  Change type of 'len' to ULONGEST.
14317
14318 2014-01-23  Tom Tromey  <tromey@redhat.com>
14319
14320         PR python/16485:
14321         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14322         Handle exception from frame.block.
14323         (FrameVars.fetch_frame_locals): Likewise.
14324
14325 2014-01-23  Tom Tromey  <tromey@redhat.com>
14326
14327         PR python/16487:
14328         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14329         on a NULL pointer.  Move "goto error" to correct place.
14330
14331 2014-01-23  Tom Tromey  <tromey@redhat.com>
14332
14333         PR python/16491:
14334         * python/py-framefilter.c (apply_frame_filter): Call
14335         ensure_python_env after computing gdbarch.
14336
14337 2014-01-23  Yao Qi  <yao@codesourcery.com>
14338
14339         * target.c (raw_memory_xfer_partial): Change argument type
14340         from void * to gdb_byte *.
14341         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14342
14343 2014-01-22  Doug Evans  <dje@google.com>
14344
14345         New gdbserver option --debug-format=timestamp.
14346         * NEWS: Mention it.
14347
14348 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
14349
14350         * syscalls/s390x-linux.xml: New file.
14351         * syscalls/s390-linux.xml: New file.
14352         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14353         (XML_SYSCALL_FILENAME_S390X): Likewise.
14354         (op_svc): New enum value for SVC opcode.
14355         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14356         (s390_linux_get_syscall_number): New function.
14357         (s390_gdbarch_init): Register '*get_syscall_number' and the
14358         syscall xml file name.
14359         * data-directory/Makefile.in (SYSCALLS_FILES): Add
14360         "s390-linux.xml" and "s390x-linux.xml".
14361         * NEWS: Announce new feature.
14362
14363 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
14364
14365         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14366
14367 2014-01-22  Pedro Alves  <palves@redhat.com>
14368
14369         * xtensa-config.c: Include defs.h.
14370
14371 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
14372
14373         * common/common-utils.h: Add "ARI:" comment beside __func__
14374         reference.
14375
14376 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
14377
14378         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14379         documentation a bit.
14380
14381 2014-01-21  Roland McGrath  <mcgrathr@google.com>
14382
14383         * configure.ac: Call AM_PROG_INSTALL_STRIP.
14384         * configure: Regenerate.
14385         * aclocal.m4: Regenerate.
14386         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14387         New substituted variables.
14388         (install-strip): New target.
14389         (INSTALL_SCRIPT): New substituted variable.
14390         (FLAGS_TO_PASS): Add it.
14391         (install-only): Use $(INSTALL_SCRIPT) rather than
14392         $(INSTALL_PROGRAM) for gcore.
14393
14394 2014-01-20  Tom Tromey  <tromey@redhat.com>
14395
14396         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14397         together.
14398
14399 2014-01-20  Tom Tromey  <tromey@redhat.com>
14400
14401         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14402         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14403         (deprecated_cmd_warning, complete_on_cmdlist): Update.
14404         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14405         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14406         (struct cmd_list_element) <flags>: Remove.
14407         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14408         doc_allocated>: New fields.
14409         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14410         bitfields.
14411         * maint.c (maintenance_do_deprecate): Update.
14412         * top.c (execute_command): Update.
14413
14414 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
14415
14416         * xtensa-linux-nat.c: Include asm/ptrace.h.
14417
14418 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14419
14420         * Makefile.in (SFILES): Add d-support.c.
14421         (COMMON_OBS): Add d-support.o.
14422         * d-lang.h (d_parse_symbol): Add comment, now defined in
14423         d-support.c.
14424         * d-lang.c (parse_call_convention)
14425         (parse_attributes, parse_function_types)
14426         (parse_function_args, parse_type, parse_identifier)
14427         (call_convention_p, d_parse_symbol): Move functions to ...
14428         * d-support.c: ... New file.
14429
14430 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14431
14432         * d-lang.h (d_parse_symbol): Add declaration.
14433         * d-lang.c (extract_identifiers)
14434         (extract_type_info): Remove functions.
14435         (parse_call_convention, parse_attributes)
14436         (parse_function_types, parse_function_args)
14437         (parse_type, parse_identifier, call_convention_p)
14438         (d_parse_symbol): New functions.
14439         (d_demangle): Use d_parse_symbol to demangle D symbols.
14440
14441 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14442
14443         * d-lang.h (struct builtin_d_type): New data type.
14444         (builtin_d_type): Add declaration.
14445         * d-lang.c (d_language_arch_info, build_d_types)
14446         (builtin_d_type): New functions.
14447         (enum d_primitive_types): New data type.
14448         (d_language_defn): Change c_language_arch_info to
14449         d_language_arch_info.
14450         (d_type_data): New static variable.
14451         (_initialize_d_language): Initialize d_type_data.
14452
14453 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14454
14455         * d-lang.h (d_main_name): Add declaration.
14456         * d-lang.c (d_main_name): New function.
14457         * symtab.c (find_main_name): Add call to d_main_name.
14458
14459 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14460
14461         * d-lang.c (d_language_defn): Change macro_expansion_c to
14462         macro_expansion_no.
14463
14464 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14465
14466         * MAINTAINERS: Add myself as a write-after-approval maintainer.
14467
14468 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
14469
14470         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14471         gdb_exception" declaration.
14472         * remote.c (getpkt_or_notif_sane): Likewise.
14473
14474 2014-01-17  Doug Evans  <dje@google.com>
14475
14476         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14477         function, contents of dirnames_to_char_ptr_vec_append moved here.
14478         (delim_string_to_char_ptr_vec): New function.
14479         (dirnames_to_char_ptr_vec_append): Rewrite.
14480         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14481
14482 2014-01-17  Doug Evans  <dje@google.com>
14483
14484         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14485         and moved here ...
14486         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14487         #include "common-utils.h".
14488         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14489         * common/vec.h (VEC_ASSERT_PASS): Update.
14490         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14491         (MACH_CHECK_ERROR): Update.
14492
14493 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
14494
14495         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14496         comments.
14497         * gdbarch.h: Regenerate.
14498
14499 2014-01-16  Tom Tromey  <tromey@redhat.com>
14500
14501         * value.c (struct value) <regnum>: Move earlier.
14502
14503 2014-01-16  Tom Tromey  <tromey@redhat.com>
14504
14505         * remote.c (extended_remote_create_inferior): Rename from
14506         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
14507         old implementation.
14508
14509 2014-01-16  Pedro Alves  <palves@redhat.com>
14510
14511         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14512         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14513         the backchain.
14514
14515 2014-01-16  Doug Evans  <dje@google.com>
14516
14517         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14518
14519 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14520
14521         * btrace.h (btrace_thread_flag): New.
14522         (struct btrace_thread_info) <flags>: New.
14523         * record-btrace.c (record_btrace_resume_thread)
14524         (record_btrace_find_thread_to_move, btrace_step_no_history)
14525         (btrace_step_stopped, record_btrace_start_replaying)
14526         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14527         (record_btrace_find_resume_thread): New.
14528         (record_btrace_resume, record_btrace_wait): Extend.
14529         (record_btrace_can_execute_reverse): New.
14530         (record_btrace_open): Fail in non-stop mode.
14531         (record_btrace_set_replay): Split into this, ...
14532         (record_btrace_stop_replaying): ... this, ...
14533         (record_btrace_clear_histories): ... and this.
14534         (init_record_btrace_ops): Init to_can_execute_reverse.
14535         * NEWS: Announce it.
14536
14537 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14538
14539         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14540         (forward_target_decr_pc_after_break)
14541         (target_decr_pc_after_break): New.
14542         * target.c (forward_target_decr_pc_after_break)
14543         (target_decr_pc_after_break): New.
14544         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14545         instead of gdbarch_decr_pc_after_break.
14546         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14547         instead of gdbarch_decr_pc_after_break.
14548         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14549         instead of gdbarch_decr_pc_after_break.
14550         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14551         instead of gdbarch_decr_pc_after_break.
14552         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14553         instead of gdbarch_decr_pc_after_break.
14554         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14555         instead of gdbarch_decr_pc_after_break.
14556
14557 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14558
14559         * btrace.c: Include regcache.h.
14560         (btrace_add_pc): New.
14561         (btrace_enable): Call btrace_add_pc.
14562         (btrace_is_empty): New.
14563         * btrace.h (btrace_is_empty): New.
14564         * record-btrace.c (require_btrace, record_btrace_info): Call
14565         btrace_is_empty.
14566
14567 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14568
14569         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14570         Support delta reads.
14571         (linux_disable_btrace): Change return type.
14572         * common/linux-btrace.h (linux_read_btrace): Change parameters
14573         and return type to allow error reporting.  Update users.
14574         (linux_disable_btrace): Change return type.  Update users.
14575         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14576         New.
14577         (btrace_error): New.
14578         (btrace_block) <begin>: Comment on BEGIN == 0.
14579         * btrace.c (btrace_compute_ftrace): Start from the end of
14580         the current trace.
14581         (btrace_stitch_trace, btrace_clear_history): New.
14582         (btrace_fetch): Read delta trace, return if replaying.
14583         (btrace_clear): Move clear history code to btrace_clear_history.
14584         (parse_xml_btrace): Throw an error if parsing failed.
14585         * target.h (struct target_ops) <to_read_btrace>: Change parameters
14586         and return type to allow error reporting.
14587         (target_read_btrace): Change parameters and return type to allow
14588         error reporting.
14589         * target.c (target_read_btrace): Update.
14590         * remote.c (remote_read_btrace): Support delta reads.  Pass
14591         errors on.
14592         * NEWS: Announce it.
14593
14594 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14595
14596         * record.h (record_btrace_frame_unwind)
14597         (record_btrace_tailcall_frame_unwind): New declarations.
14598         * dwarf2-frame: Include record.h
14599         (dwarf2_frame_cfa): Throw an error for btrace frames.
14600         * record-btrace.c: Include hashtab.h.
14601         (btrace_get_bfun_name): New.
14602         (btrace_call_history): Call btrace_get_bfun_name.
14603         (struct btrace_frame_cache): New.
14604         (bfcache): New.
14605         (bfcache_hash, bfcache_eq, bfcache_new): New.
14606         (btrace_get_frame_function): New.
14607         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14608         (record_btrace_frame_this_id): Compute own id.
14609         (record_btrace_frame_prev_register): Provide PC, throw_error
14610         for all other registers.
14611         (record_btrace_frame_sniffer): Detect btrace frames.
14612         (record_btrace_tailcall_frame_sniffer): New.
14613         (record_btrace_frame_dealloc_cache): New.
14614         (record_btrace_frame_unwind): Add new functions.
14615         (record_btrace_tailcall_frame_unwind): New.
14616         (_initialize_record_btrace): Allocate cache.
14617         * btrace.c (btrace_clear): Call reinit_frame_cache.
14618         * NEWS: Announce it.
14619
14620 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14621
14622         * record-btrace.c (record_btrace_set_replay)
14623         (record_btrace_goto_begin, record_btrace_goto_end)
14624         (record_btrace_goto): New.
14625         (init_record_btrace_ops): Initialize them.
14626         * NEWS: Announce it.
14627
14628 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14629
14630         * record-btrace.c (record_btrace_find_new_threads)
14631         (record_btrace_thread_alive): New.
14632         (init_record_btrace_ops): Initialize to_find_new_threads and
14633         to_thread_alive.
14634
14635 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14636
14637         * record-btrace.c (record_btrace_resume): New.
14638         (record_btrace_wait): New.
14639         (init_record_btrace_ops): Initialize to_wait and to_resume.
14640
14641 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14642
14643         * record-btrace.c (record_btrace_xfer_partial)
14644         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14645         (record_btrace_allow_memory_access): New.
14646         (init_record_btrace_ops): Initialize new methods.
14647         * target.c (raw_memory_xfer_partial): Bail out if target reports
14648         that this memory is not available.
14649
14650 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14651
14652         * target.h (target_ops) <to_insert_breakpoint>
14653         <to_remove_breakpoint>: Add target_ops parameter.
14654         (forward_target_insert_breakpoint): New.
14655         (forward_target_remove_breakpoint): New.
14656         (memory_remove_breakpoint, memory_insert_breakpoint):
14657         Add target_ops parameter.
14658         * target.c (target_insert_breakpoint): Split into this and ...
14659         (forward_target_insert_breakpoint): ... this.
14660         (target_remove_breakpoint): Split into this and ...
14661         (forward_target_remove_breakpoint): ... this.
14662         (debug_to_insert_breakpoint): Add target_ops parameter.
14663         Call forward_target_insert_breakpoint.
14664         (debug_to_remove_breakpoint): Add target_ops parameter.
14665         Call forward_target_remove_breakpoint.
14666         (update_current_target): Do not inherit or default to_insert_breakpoint
14667         and to_remove_breakpoint.
14668         * corelow.c (ignore): Add target_ops parameter.
14669         * exec.c (ignore): Add target_ops parameter.
14670         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14671         Add target_ops parameter.
14672         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14673         Add target_ops parameter.
14674         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14675         Add target_ops parameter.
14676         * record-full.c (record_full_beneath_to_insert_breakpoint)
14677         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14678         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14679         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14680         (record_full_core_remove_breakpoint): Add target_ops parameter.
14681         Update users.
14682         (record_full_beneath_to_insert_breakpoint_ops)
14683         (record_full_beneath_to_remove_breakpoint_ops)
14684         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14685         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14686         tmp_to_remove_breakpoint_ops,
14687         record_full_beneath_to_insert_breakpoint_ops, and
14688         record_full_beneath_to_remove_breakpoint_ops.
14689         * remote-m32r-sdi.c (m32r_insert_breakpoint)
14690         (m32r_remove_breakpoint): Add target_ops parameter.
14691         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14692         Add target_ops parameter.
14693         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14694         Add target_ops parameter.
14695
14696 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
14697             Markus Metzger  <markus.t.metzger@intel.com>
14698
14699         * record-btrace.c: Include frame-unwind.h.
14700         (record_btrace_frame_unwind_stop_reason)
14701         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14702         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14703         New.
14704         (init_record_btrace_ops): Install it.
14705
14706 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
14707
14708         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14709         get_prev_frame_1.
14710
14711 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
14712
14713         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14714         earlier.
14715
14716 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
14717
14718         * frame-unwind.c: Include target.h.
14719         (frame_unwind_try_unwinder): New function with code from ...
14720         (frame_unwind_find_by_frame): ... here.  New variable
14721         unwinder_from_target, call also target_get_unwinder)
14722         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14723         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14724         * target.h (struct target_ops): New fields to_get_unwinder and
14725         to_get_tailcall_unwinder.
14726         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14727
14728 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14729
14730         * record-btrace.c (record_btrace_fetch_registers)
14731         (record_btrace_store_registers)
14732         (record_btrace_to_prepare_to_store): New.
14733         (init_record_btrace_ops): Add the above.
14734
14735 2014-01-16  Tom Tromey  <tromey@redhat.com>
14736
14737         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14738         * target.h (struct target_ops) <to_prepare_to_store>: Add
14739         argument.
14740         (target_prepare_to_store): Add argument.
14741         * target.c (debug_to_prepare_to_store): Add argument.
14742         (update_current_target): Update.
14743         * remote.c (remote_prepare_to_store): Add 'self' argument.
14744         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14745         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14746         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14747         * record-full.c (record_full_core_prepare_to_store): Add 'self'
14748         argument.
14749         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14750         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14751         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14752         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14753         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14754
14755 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14756
14757         * btrace.h (replay) <replay>: New.
14758         (btrace_is_replaying): New.
14759         * btrace.c (btrace_clear): Free replay iterator.
14760         (btrace_is_replaying): New.
14761         * record-btrace.c (record_btrace_is_replaying): New.
14762         (record_btrace_info): Print insn number if replaying.
14763         (record_btrace_insn_history): Start at replay position.
14764         (record_btrace_call_history): Start at replay position.
14765         (init_record_btrace_ops): Init to_record_is_replaying.
14766
14767 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14768
14769         * record-btrace.c (record_btrace_insn_history_range): Include
14770         end.
14771         (record_btrace_insn_history_from): Adjust range.
14772         (record_btrace_call_history_range): Include
14773         end.
14774         (record_btrace_call_history_from): Adjust range.
14775         * NEWS: Announce changes.
14776
14777 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14778
14779         * record.h (enum record_print_flag)
14780         <record_print_indent_calls>: New.
14781         * record.c (get_call_history_modifiers): Recognize /c modifier.
14782         (_initialize_record): Document /c modifier.
14783         * record-btrace.c (btrace_call_history): Add btinfo parameter.
14784         Reorder fields.  Optionally indent the function name.  Update
14785         all users.
14786         * NEWS: Announce changes.
14787
14788 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14789
14790         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14791
14792 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14793
14794         * btrace.c (ftrace_new_function): Start counting at one.
14795         * record-btrace.c (record_btrace_info): Adjust number of calls
14796         and insns.
14797         * NEWS: Announce it.
14798
14799 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14800
14801         * record-btrace.c (btrace_call_history_insn_range): Print
14802         insn range as [begin, end].
14803
14804 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14805
14806         * btrace.h (struct btrace_func_link): New.
14807         (enum btrace_function_flag): New.
14808         (struct btrace_inst): Rename to ...
14809         (struct btrace_insn): ...this. Update all users.
14810         (struct btrace_func) <ibegin, iend>: Remove.
14811         (struct btrace_func_link): New.
14812         (struct btrace_func): Rename to ...
14813         (struct btrace_function): ...this. Update all users.
14814         (struct btrace_function) <segment, flow, up, insn, insn_offset)
14815         (number, level, flags>: New.
14816         (struct btrace_insn_iterator): Rename to ...
14817         (struct btrace_insn_history): ...this.
14818         Update all users.
14819         (struct btrace_insn_iterator, btrace_call_iterator): New.
14820         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14821         (struct btrace_target_info) <begin, end, level>
14822         <insn_history, call_history>: New.
14823         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14824         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14825         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14826         (btrace_call_number, btrace_call_begin, btrace_call_end)
14827         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14828         (btrace_find_function_by_number, btrace_set_insn_history)
14829         (btrace_set_call_history): New.
14830         * btrace.c (btrace_init_insn_iterator)
14831         (btrace_init_func_iterator, compute_itrace): Remove.
14832         (ftrace_print_function_name, ftrace_print_filename)
14833         (ftrace_skip_file): Change
14834         parameter to const.
14835         (ftrace_init_func): Remove.
14836         (ftrace_debug): Use new btrace_function fields.
14837         (ftrace_function_switched): Also consider gaining and
14838         losing symbol information).
14839         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14840         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14841         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14842         New.
14843         (ftrace_new_function): Move. Remove debug print.
14844         (ftrace_update_lines, ftrace_update_insns): New.
14845         (ftrace_update_function): Check for call, ret, and jump.
14846         (compute_ftrace): Renamed to ...
14847         (btrace_compute_ftrace): ...this. Rewritten to compute call
14848         stack.
14849         (btrace_fetch, btrace_clear): Updated.
14850         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14851         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14852         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14853         (btrace_call_number, btrace_call_begin, btrace_call_end)
14854         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14855         (btrace_find_function_by_number, btrace_set_insn_history)
14856         (btrace_set_call_history): New.
14857         * record-btrace.c (require_btrace): Use new btrace thread
14858         info fields.
14859         (record_btrace_info, btrace_insn_history)
14860         (record_btrace_insn_history, record_btrace_insn_history_range):
14861         Use new btrace thread info fields and new iterator.
14862         (btrace_func_history_src_line): Rename to ...
14863         (btrace_call_history_src_line): ...this. Use new btrace
14864         thread info fields.
14865         (btrace_func_history): Rename to ...
14866         (btrace_call_history): ...this. Use new btrace thread info
14867         fields and new iterator.
14868         (record_btrace_call_history, record_btrace_call_history_range):
14869         Use new btrace thread info fields and new iterator.
14870
14871 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14872
14873         * frame.h (frame_id_build_unavailable_stack_special): New.
14874         * frame.c (frame_id_build_unavailable_stack_special): New.
14875
14876 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14877
14878         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14879         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14880         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14881         to gdbarch.
14882         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14883         (i386_insn_is_jump, i386_jmp_p): New.
14884         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14885         insn_is_jump to gdbarch.
14886         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14887         * gdbarch.h: Regenerated.
14888         * gdbarch.c: Regenerated.
14889         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14890         (default_insn_is_jump): New.
14891         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14892         (default_insn_is_jump): New.
14893
14894 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14895
14896         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14897         Change to ...
14898         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
14899         (btrace_read_type) <btrace_read_new>: Change to ...
14900         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
14901
14902 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14903
14904         * common/linux-btrace.c (linux_read_btrace): Free trace from
14905         previous iteration.
14906
14907 2014-01-15  Doug Evans  <dje@google.com>
14908
14909         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14910         uint32_t.
14911
14912 2014-01-15  Tom Tromey  <tromey@redhat.com>
14913
14914         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14915         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14916         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14917         (set_objfile_main_name): New function.
14918         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14919         language_of_main>: New fields.
14920         (set_objfile_main_name): Declare.
14921         * symtab.c (find_main_name): Loop over objfiles to find the main
14922         name and language.
14923         (set_main_name): Now static.
14924         (get_main_info): Add comment.
14925         * symtab.h (set_main_name): Don't declare.
14926
14927 2014-01-15  Tom Tromey  <tromey@redhat.com>
14928
14929         * symtab.c (main_progspace_key): New global.
14930         (struct main_info): New.
14931         (name_of_main, language_of_main): Remove.
14932         (get_main_info, main_info_cleanup): New function.
14933         (set_main_name, main_name, main_language): Use get_main_info.
14934         (_initialize_symtab): Initialize main_progspace_key.
14935
14936 2014-01-15  Tom Tromey  <tromey@redhat.com>
14937
14938         * dbxread.c (process_one_symbol): Update.
14939         * dwarf2read.c (read_partial_die): Update.
14940         * symfile.c (set_initial_language): Call main_language.
14941         * symtab.c (language_of_main): Now static.
14942         (set_main_name): Add 'lang' parameter.
14943         (find_main_name): Update.
14944         (main_language): New function.
14945         (symtab_observer_executable_changed): Update.
14946         * symtab.h (set_main_name): Update.
14947         (language_of_main): Remove.
14948         (main_language): Declare.
14949
14950 2014-01-15  Tom Tromey  <tromey@redhat.com>
14951
14952         * symfile.c (init_entry_point_info): Use new "initialized" field.
14953         Update.
14954         * objfiles.h (struct entry_point) <initialized>: New field.
14955         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14956         (struct objfile) <ei>: ...here.  Remove.
14957         * objfiles.c (entry_point_address_query): Update.
14958
14959 2014-01-15  Tom Tromey  <tromey@redhat.com>
14960
14961         * objfiles.c (entry_point_address_query): Relocate entry point
14962         address.
14963         (objfile_relocate1): Do not relocate entry point address.
14964         * objfiles.h (struct entry_info) <entry_point>: Update comment.
14965         <the_bfd_section_index>: New field.
14966         * symfile.c (init_entry_point_info): Find the entry point's
14967         section.
14968
14969 2014-01-15  Tom Tromey  <tromey@redhat.com>
14970
14971         * solib-frv.c (enable_break): Use entry_point_address_query.
14972
14973 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14974
14975         * NEWS: Add note on improved process record-replay on
14976         arm*-linux* targets.
14977
14978 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14979
14980         * arm-tdep.c (enum arm_record_result): New enum.
14981         (arm_record_unsupported_insn): New function.
14982         (arm_record_coproc_data_proc): Removed.
14983         (thumb2_record_ld_st_multiple): New function.
14984         (thumb2_record_ld_st_dual_ex_tbb): New function.
14985         (thumb2_record_data_proc_sreg_mimm): New function.
14986         (thumb2_record_ps_dest_generic): New function.
14987         (thumb2_record_branch_misc_cntrl): New function.
14988         (thumb2_record_str_single_data): New function.
14989         (thumb2_record_ld_mem_hints): New function.
14990         (thumb2_record_ld_word): New function.
14991         (thumb2_record_lmul_lmla_div): New function.
14992         (thumb2_record_decode_insn_handler): New function.
14993         (decode_insn): Add thumb32 instruction handlers.
14994
14995 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14996
14997         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14998         (struct arm_linux_record_tdep): Declare.
14999         (arm_canonicalize_syscall): New function.
15000         (arm_all_but_pc_registers_record): New function.
15001         (arm_linux_syscall_record): New function.
15002         (arm_linux_init_abi): Add syscall recording constructs.
15003         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15004         decoding.  (arm_record_coproc_data_proc): Update arm syscall
15005         decoding.
15006         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15007         <arm_syscall_record>: New field.
15008         * configure.tgt (arm*-*-linux*): Add linux-record.o to
15009         gdb_target_obs.
15010
15011 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15012
15013         * arm-tdep.c (thumb_record_misc): Update to use sp as base
15014         register for push instruction recording.
15015
15016 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15017
15018         * arm-tdep.c (thumb_record_misc): Update to correct logical
15019         error while recording ldm, ldmia and pop instructions.
15020
15021 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15022
15023         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15024
15025 2014-01-15  Pedro Alves  <palves@redhat.com>
15026
15027         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15028         (go32_resume, go32_fetch_registers, store_register)
15029         (go32_store_registers, go32_prepare_to_store)
15030         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15031         (go32_create_inferior, go32_can_run, go32_terminal_init)
15032         (go32_terminal_inferior, go32_terminal_ours): Delete forward
15033         declarations.
15034
15035 2014-01-15  Tom Tromey  <tromey@redhat.com>
15036
15037         * target.h (async_callback_ftype): New typedef.
15038         (struct target_ops) <to_async>: Use it.
15039
15040 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
15041
15042         * python/py-value.c (get_field_type): Remove unnecessary curly
15043         braces for single-statement if block.
15044
15045 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
15046
15047         * python/py-type.c (convert_field): Add missing empty line
15048         after declarations.
15049
15050 2014-01-14  Doug Evans  <dje@google.com>
15051
15052         * symfile.h (expand_symtabs_matching): Renamed from
15053         expand_partial_symbol_names.  Update prototype.
15054         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15055         * symfile.c (expand_symtabs_matching): Renamed from
15056         expand_partial_symbol_names.  New args file_matcher, kind.
15057         Rename arg fun to symbol_matcher.
15058         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15059         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15060         ada_expand_partial_symbol_name.
15061         (ada_make_symbol_completion_list): Update to call
15062         expand_symtabs_matching.
15063         (ada_add_global_exceptions): Call expand_symtabs_matching.
15064         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15065         call map_symbol_filenames.
15066         * symtab.c (sources_info): Update to call map_symbol_filenames.
15067         (search_symbols): Call expand_symtabs_matching.
15068         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15069         (default_make_symbol_completion_list_break_on): Update to call
15070         expand_symtabs_matching.
15071         (make_source_files_completion_list): Update to call
15072         map_symbol_filenames.
15073
15074 2014-01-14  Doug Evans  <dje@google.com>
15075
15076         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15077         (expand_symtabs_symbol_matcher_ftype): New typedef.
15078         (quick_symbol_functions.expand_symtabs_matching): Update to use.
15079         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15080         * symfile.c (expand_partial_symbol_names): Update to use
15081         expand_symtabs_symbol_matcher_ftype.
15082         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15083         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15084         Arg name_matcher renamed to symbol_matcher.
15085         * psymtab.c (recursively_search_psymtabs): Update to use
15086         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
15087         sym_matcher.
15088         (expand_symtabs_matching_via_partial): Update to use
15089         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15090         Arg name_matcher renamed to symbol_matcher.
15091
15092 2014-01-14  Doug Evans  <dje@google.com>
15093
15094         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15095         (map_partial_symbol_filenames): Ditto.
15096         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15097         (map_partial_symbol_filenames): Ditto.
15098         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15099         (map_partial_symbol_filenames): Ditto.
15100         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15101         (map_partial_symbol_filenames): Ditto.
15102         * symtab.c: Delete #include "psymtab.h".
15103
15104 2014-01-14  Pedro Alves  <palves@redhat.com>
15105             Tom Tromey  <tromey@redhat.com>
15106
15107         * infrun.c (use_displaced_stepping): Use find_record_target
15108         instead of RECORD_IS_USED.
15109         (adjust_pc_after_break): Use record_full_is_used instead of
15110         RECORD_IS_USED.
15111         * record-btrace.c (record_btrace_open): Call record_preopen
15112         instead of checking RECORD_IS_USED.
15113         * record-full.c (record_full_shortname)
15114         (record_full_core_shortname): New globals.
15115         (record_full_is_used): New function.
15116         (find_full_open): Call record_preopen instead of checking
15117         RECORD_IS_USED.
15118         (init_record_full_ops): Set the target's shortname to
15119         record_full_shortname.
15120         (init_record_full_core_ops): Set the target's shortname to
15121         record_full_core_shortname.
15122         * record-full.h (record_full_is_used): Declare.
15123         * record.c (find_record_target): Make extern.
15124         (record_preopen): New function.
15125         * record.h (RECORD_IS_USED): Delete macro.
15126         (find_record_target, record_preopen): Declare functions.
15127
15128 2014-01-14  Yao Qi  <yao@codesourcery.com>
15129
15130         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15131         'len''s type to ULONGEST.
15132         (core_xfer_shared_libraries_aix): Likewise.
15133         * gdbarch.c, gdbarch.h: Regenerated.
15134         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15135         Change type of 'len' to ULONGEST.
15136         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15137         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15138
15139 2014-01-14  Yao Qi  <yao@codesourcery.com>
15140
15141         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15142         type of 'len' to ULONGEST.
15143         (linux_xfer_osdata_processgroups): Likewise.
15144         (linux_xfer_osdata_threads): Likewise.
15145         (linux_xfer_osdata_fds): Likewise.
15146         (linux_xfer_osdata_isockets): Likewise.
15147         (linux_xfer_osdata_shm): Likewise.
15148         (linux_xfer_osdata_sem): Likewise.
15149         (linux_xfer_osdata_msg): Likewise.
15150         (linux_common_xfer_osdata): Likewise.
15151         (struct osdata_type) <getter>: Likewise.
15152         * common/linux-osdata.h (linux_common_xfer_osdata): Update
15153         the declaration.
15154
15155 2014-01-14  Yao Qi  <yao@codesourcery.com>
15156
15157         * target.h (target_xfer_partial_ftype): Update.
15158         (struct target_ops) <to_xfer_partial>: Change 'len' type to
15159         ULONGEST.
15160         * aix-thread.c (aix_thread_xfer_partial): Change type of
15161         argument 'len' to ULONGEST.
15162         * auxv.c (procfs_xfer_auxv): Likewise.
15163         (ld_so_xfer_auxv): Likewise.
15164         (memory_xfer_auxv): Likewise.
15165         * bfd-target.c (target_bfd_xfer_partial): Likewise.
15166         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15167         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15168         * corelow.c (core_xfer_partial): Likewise.
15169         * ctf.c (ctf_xfer_partial): Likewise.
15170         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
15171         '%u'.
15172         (darwin_read_dyld_info): Likewise.
15173         (darwin_xfer_partial): Likewise.
15174         * exec.c (section_table_xfer_memory_partial): Likewise.
15175         (exec_xfer_partial): Likewise.
15176         * exec.h (section_table_xfer_memory_partial): Update
15177         declaration.
15178         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
15179         instead of plongest.
15180         (gnu_xfer_partial): Likewise.
15181         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15182         (ia64_hpux_xfer_solib_got): Likewise.
15183         (ia64_hpux_xfer_partial): Likewise.
15184         * ia64-linux-nat.c (ia64_linux_xfer_partial):
15185         * inf-ptrace.c (inf_ptrace_xfer_partial):
15186         * inf-ttrace.c (inf_ttrace_xfer_partial):
15187         * linux-nat.c (linux_xfer_siginfo): Likewise.
15188         (linux_nat_xfer_partial): Likewise.
15189         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15190         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15191         * monitor.c (monitor_xfer_memory): Likewise.
15192         (monitor_xfer_partial): Likewise.
15193         * procfs.c (procfs_xfer_partial): Likewise.
15194         * record-full.c (record_full_xfer_partial): Likewise.
15195         (record_full_core_xfer_partial): Likewise.
15196         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
15197         instead of plongest.
15198         (gdbsim_xfer_partial): Likewise.
15199         * remote.c (remote_xfer_partial): Likewise.
15200         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15201         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15202         declaration.
15203         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15204         (rs6000_xfer_shared_libraries): Likewise.
15205         * sol-thread.c (sol_thread_xfer_partial): Likewise.
15206         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15207         (sparc_xfer_partial): Likewise.
15208         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15209         (spu_xfer_partial): Likewise.
15210         * spu-multiarch.c (spu_xfer_partial): Likewise.
15211         * target.c (target_read_live_memory): Likewise.
15212         (memory_xfer_live_readonly_partial): Likewise.
15213         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15214         (target_xfer_partial, default_xfer_partial): Likewise.
15215         (current_xfer_partial): Likewise.
15216         * tracepoint.c (tfile_xfer_partial): Likewise.
15217         * windows-nat.c (windows_xfer_memory): Likewise.  Call
15218         pulongest instead of plongest.
15219         (windows_xfer_partial): Likewise.
15220         (windows_xfer_shared_libraries): Likewise.
15221
15222 2014-01-14  Yao Qi  <yao@codesourcery.com>
15223
15224         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15225         target_xfer_partial_ftype.
15226
15227 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
15228
15229         PR python/15464
15230         PR python/16113
15231         * valops.c (value_struct_elt_bitpos): New function
15232         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15233         object to 'None' if the field name is an empty string ("").
15234         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15235         attribute to look for a field when 'name' is 'None'.
15236         (get_field_type): New function
15237
15238 2014-01-13  Doug Evans  <dje@google.com>
15239
15240         PR symtab/16426
15241         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15242         (try_open_dwop_file): Ditto.
15243         * gdb_bfd.c: #include "vec.h".
15244         (bfdp): New typedef.
15245         (struct gdb_bfd_data): New member included_bfds.
15246         (gdb_bfd_unref): Unref all included bfds.
15247         (gdb_bfd_record_inclusion): New function.
15248         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15249
15250 2014-01-13  Tom Tromey  <tromey@redhat.com>
15251
15252         * gdbcore.h (deprecated_core_resize_section_table): Remove.
15253
15254 2014-01-13  Tom Tromey  <tromey@redhat.com>
15255
15256         * defs.h (use_windows): Remove.
15257         * gdb.c (main): Update.
15258         * main.c (captured_main, gdb_main): Update.
15259         * main.h (struct captured_main_args) <use_windows>: Remove.
15260         * top.c (use_windows): Remove.
15261
15262 2014-01-13  Tom Tromey  <tromey@redhat.com>
15263
15264         * defs.h (deprecated_flush_hook): Remove.
15265
15266 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
15267
15268         PR threads/16216
15269         * linux-thread-db.c (try_thread_db_load): Add parameter
15270         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
15271         (try_thread_db_load_from_pdir_1): Move it there from here.
15272         (try_thread_db_load_from_sdir): Update caller.
15273         (try_thread_db_load_from_dir): Move it there from here.
15274
15275 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
15276
15277         * regformats/regdat.sh: Always rewrite the register file.
15278
15279 2014-01-13  Pedro Alves  <palves@redhat.com>
15280
15281         * Makefile.in (CHECK_HEADERS): New variable.
15282         (check-headers:): New rule.
15283
15284 2014-01-13  Tom Tromey  <tromey@redhat.com>
15285
15286         * cli/cli-setshow.c (do_set_command): Update.
15287         * defs.h (deprecated_set_hook): Remove.
15288         * top.c (deprecated_set_hook): Remove.
15289
15290 2014-01-13  Pedro Alves  <palves@redhat.com>
15291
15292         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15293         the tracepoint if the PC is a pseudo-register.
15294
15295 2014-01-13  Tom Tromey  <tromey@redhat.com>
15296
15297         * defs.h (XCALLOC): Remove.
15298         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15299         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15300         * dwarf2loc.c (allocate_piece_closure): Likewise.
15301         * elfread.c (elf_symfile_segments): Likewise.
15302         (elf_symfile_segments): Likewise.
15303         * gdbtypes.c (copy_type_recursive): Likewise.
15304         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15305         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15306         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15307         XCALLOC.
15308         * mt-tdep.c (mt_gdbarch_init): Likewise.
15309         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15310         XCALLOC.
15311         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15312         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15313         * registry.c (registry_alloc_data): Likewise.
15314         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15315         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15316         * serial.c (serial_fdopen_ops): Likewise.
15317         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15318         XCALLOC.
15319         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15320         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15321         not XCALLOC.
15322
15323 2014-01-13  Tom Tromey  <tromey@redhat.com>
15324
15325         * defs.h (XMALLOC): Remove.
15326         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15327         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15328         * cli-out.c (struct ui_out *): Likewise.
15329         * cli/cli-dump.c (add_dump_command): Likewise.
15330         (add_dump_command): Likewise.
15331         * complaints.c (get_complaints): Likewise.
15332         (find_complaint): Likewise.
15333         * dwarf2-frame.c (execute_cfa_program): Likewise.
15334         * dwarf2read.c (abbrev_table_read_table): Likewise.
15335         * gdbarch.sh: Likewise.
15336         * gdbarch.c: Rebuild.
15337         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15338         * interps.c (interp_new): Likewise.
15339         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15340         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15341         * mi/mi-console.c (mi_console_file_new): Likewise.
15342         * mi/mi-interp.c (mi_interpreter_init): Likewise.
15343         * mi/mi-out.c (mi_out_new): Likewise.
15344         * mi/mi-parse.c (mi_parse): Likewise.
15345         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15346         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15347         * observer.c (xalloc_observer_list_node): Likewise.
15348         * regcache.c (regcache_xmalloc_1): Likewise.
15349         * reggroups.c (reggroup_new): Likewise.
15350         (_initialize_reggroup): Likewise.
15351         * registry.c (register_data_with_cleanup): Likewise.
15352         * remote.c (remote_notif_stop_alloc_reply): Likewise.
15353         * ser-base.c (serial_ttystate): Likewise.
15354         * ser-mingw.c (make_pipe_state): Likewise.
15355         * ser-pipe.c (pipe_open): Likewise.
15356         * serial.c (serial_open): Likewise.
15357         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15358         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15359         (tui_alloc_win_info): Likewise.
15360         (tui_add_content_elements): Likewise.
15361         * tui/tui-file.c (tui_file_new): Likewise.
15362         * tui/tui-out.c (tui_out_new): Likewise.
15363         * ui-file.c (mem_file_new): Likewise.
15364         * ui-out.c (push_level): Likewise.
15365         (make_cleanup_ui_out_end): Likewise.
15366         (append_header_to_list): Likewise.
15367         (ui_out_new): Likewise.
15368         * user-regs.c (user_reg_add_builtin): Likewise.
15369
15370 2014-01-13  Tom Tromey  <tromey@redhat.com>
15371
15372         * defs.h (XZALLOC): Remove.
15373         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15374         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15375         (get_ada_tasks_inferior_data): Likewise.
15376         * auto-load.c (get_auto_load_pspace_data): Likewise.
15377         * auxv.c (get_auxv_inferior_data): Likewise.
15378         * bfd-target.c (target_bfd_reopen): Likewise.
15379         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15380         (deprecated_insert_raw_breakpoint): Likewise.
15381         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15382         * corelow.c (core_open): Likewise.
15383         * darwin-nat.c (darwin_check_new_threads): Likewise.
15384         (darwin_attach_pid): Likewise.
15385         * dummy-frame.c (dummy_frame_push): Likewise.
15386         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15387         * dwarf2loc.c (allocate_piece_closure): Likewise.
15388         * elfread.c (elf_symfile_segments): Likewise.
15389         * eval.c (ptrmath_type_p): Likewise.
15390         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15391         * gdbtypes.c (alloc_type_arch): Likewise.
15392         (alloc_type_instance): Likewise.
15393         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15394         * inf-child.c (inf_child_can_use_agent): Likewise.
15395         * inflow.c (get_inflow_inferior_data): Likewise.
15396         * infrun.c (save_infcall_suspend_state): Likewise.
15397         * jit.c (jit_reader_load): Likewise.
15398         (get_jit_objfile_data): Likewise.
15399         (get_jit_program_space_data): Likewise.
15400         (jit_object_open_impl): Likewise.
15401         (jit_symtab_open_impl): Likewise.
15402         (jit_block_open_impl): Likewise.
15403         (jit_frame_sniffer): Likewise.
15404         * linux-fork.c (add_fork): Likewise.
15405         * maint.c (make_command_stats_cleanup): Likewise.
15406         * objfiles.c (get_objfile_pspace_data): Likewise.
15407         * opencl-lang.c (struct lval_closure): Likewise.
15408         * osdata.c (osdata_start_osdata): Likewise.
15409         * progspace.c (new_address_space): Likewise.
15410         (add_program_space): Likewise.
15411         * remote-sim.c (get_sim_inferior_data): Likewise.
15412         * sh-tdep.c (sh_gdbarch_init): Likewise.
15413         * skip.c (Ignore): Likewise.
15414         (skip_delete_command): Likewise.
15415         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15416         (library_list_start_library): Likewise.
15417         (solib_aix_current_sos): Likewise.
15418         * solib-darwin.c (get_darwin_info): Likewise.
15419         (darwin_current_sos): Likewise.
15420         * solib-dsbt.c (get_dsbt_info): Likewise.
15421         * solib-ia64-hpux.c (new_so_list): Likewise.
15422         (ia64_hpux_get_solib_linkage_addr): Likewise.
15423         * solib-spu.c (append_ocl_sos): Likewise.
15424         (spu_current_sos): Likewise.
15425         * solib-svr4.c (get_svr4_info): Likewise.
15426         (svr4_keep_data_in_core): Likewise.
15427         (library_list_start_library): Likewise.
15428         (svr4_default_sos): Likewise.
15429         (svr4_read_so_list): Likewise.
15430         * solib-target.c (library_list_start_library): Likewise.
15431         (solib_target_current_sos): Likewise.
15432         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15433         * symfile-debug.c (install_symfile_debug_logging): Likewise.
15434         * symfile.c (default_symfile_segments): Likewise.
15435         * target-descriptions.c (tdesc_data_init): Likewise.
15436         (tdesc_create_reg): Likewise.
15437         (struct tdesc_type *): Likewise.
15438         (tdesc_create_vector): Likewise.
15439         (tdesc_set_struct_size): Likewise.
15440         (struct tdesc_type *): Likewise.
15441         (tdesc_free_feature): Likewise.
15442         (tdesc_create_feature): Likewise.
15443         * windows-nat.c (windows_add_thread): Likewise.
15444         (windows_make_so): Likewise.
15445         * xml-support.c (gdb_xml_body_text): Likewise.
15446         (gdb_xml_create_parser_and_cleanup): Likewise.
15447         (xml_process_xincludes): Likewise.
15448         * xml-syscall.c (allocate_syscalls_info): Likewise.
15449         (syscall_create_syscall_desc): Likewise.
15450
15451 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
15452
15453         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15454         function, with code from i386_stap_parse_special_token.
15455         (i386_stap_parse_special_token_three_arg_disp): Likewise.
15456         (i386_stap_parse_special_token): Move code to the two functions
15457         above; simplify it.
15458
15459 2014-01-09  Pedro Alves  <palves@redhat.com>
15460             Hui Zhu  <hui@codesourcery.com>
15461
15462         PR gdb/16101
15463         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15464         bp_err_string.  Don't mark the location shlib_disabled if the
15465         error thrown wasn't a generic or memory error.  Catch errors
15466         thrown while inserting breakpoints in overlayed code.  Output
15467         error message of software breakpoints.
15468         * remote.c (remote_insert_breakpoint): If this breakpoint has
15469         target-side commands but this stub doesn't support Z0 packets,
15470         throw NOT_SUPPORTED_ERROR error.
15471         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15472         * target.h (target_insert_breakpoint): Extend comment.
15473         (target_insert_hw_breakpoint): Add comment.
15474
15475 2014-01-08  Pedro Alves  <palves@redhat.com>
15476
15477         * remote.c (remote_add_thread): Add threads silently if starting
15478         up.
15479         (remote_notice_new_inferior): If in all-stop, and starting up,
15480         don't call notice_new_inferior.
15481         (get_current_thread): New function, factored out from ...
15482         (add_current_inferior_and_thread): ... this.  Adjust.
15483         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
15484         found any thread, then select the remote's current thread as GDB's
15485         current thread too.
15486
15487 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
15488
15489         * NEWS: Create a new section for the next release branch.
15490         Rename the section of the current branch, now that it has
15491         been cut.
15492
15493 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
15494
15495         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15496         * version.in: Bump version to 7.7.50.DATE-cvs.
15497
15498 2014-01-08  Yao Qi  <yao@codesourcery.com>
15499
15500         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15501         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
15502         (spu_xfer_partial): Cast 'buf' to 'const char *'.
15503
15504 2014-01-08  Yao Qi  <yao@codesourcery.com>
15505
15506         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15507         return value of bfd_get_filename to symbol_file_add_from_bfd.
15508
15509 2014-01-08  Pierre Muller  <muller@sourceware.org>
15510
15511         Fix PR16201.
15512         * coff-pe-read.c (struct read_pe_section_data): Add index field.
15513         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15514         to prim_record_mininal_symbol_and_info.
15515         (add_pe_forwarded_sym): Use known section number of forwarded symbol
15516         in call to prim_record_minimal_symbol_and_info.
15517         (read_pe_exported_syms): Set index field of section_data.
15518
15519 2014-01-07  Andrew Pinski  <apinski@cavium.com>
15520
15521         * features/aarch64-core.xml (cpsr): Change to be 64bit.
15522         * features/aarch64.c: Regenerate.
15523
15524 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
15525
15526         * target.c (return_null): Define.
15527         (update_current_target): Use it instead of return_zero for
15528         functions that return a pointer.
15529
15530 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
15531
15532         * source.c (add_path): Fix check for duplicated paths in the previously
15533         included paths.
15534
15535 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
15536
15537         * ada-lang.c: Remove duplicated include statements.
15538         * alphabsd-nat.c: Ditto.
15539         * amd64-darwin-tdep.c: Ditto.
15540         * amd64fbsd-nat.c: Ditto.
15541         * auto-load.c: Ditto.
15542         * ax-gdb.c: Ditto.
15543         * breakpoint.c: Ditto.
15544         * dbxread.c: Ditto.
15545         * fork-child.c: Ditto.
15546         * gdb_usleep.c: Ditto.
15547         * i386-darwin-tdep.c: Ditto.
15548         * i386fbsd-nat.c: Ditto.
15549         * infcmd.c: Ditto.
15550         * inferior.c: Ditto.
15551         * jv-lang.c: Ditto.
15552         * linux-nat.c: Ditto.
15553         * linux-tdep.c: Ditto.
15554         * m68kbsd-nat.c: Ditto.
15555         * m68klinux-nat.c: Ditto.
15556         * microblaze-tdep.c: Ditto.
15557         * mips-linux-tdep.c: Ditto.
15558         * mn10300-tdep.c: Ditto.
15559         * nto-tdep.c: Ditto.
15560         * opencl-lang.c: Ditto.
15561         * osdata.c: Ditto.
15562         * printcmd.c: Ditto.
15563         * regcache.c: Ditto.
15564         * remote-m32r-sdi.c: Ditto.
15565         * remote.c: Ditto.
15566         * symfile.c: Ditto.
15567         * symtab.c: Ditto.
15568         * tilegx-linux-nat.c: Ditto.
15569         * tilegx-tdep.c: Ditto.
15570         * tracepoint.c: Ditto.
15571         * valops.c: Ditto.
15572         * vaxbsd-nat.c: Ditto.
15573         * windows-nat.c: Ditto.
15574         * xtensa-tdep.c: Ditto.
15575
15576 2014-01-07  Yao Qi  <yao@codesourcery.com>
15577
15578         * spu-linux-nat.c (_initialize_spu_nat): Declare.
15579
15580 2014-01-07  Yao Qi  <yao@codesourcery.com>
15581             Joel Brobecker  <brobecker@adacore.com>
15582
15583         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15584         (pdc_write_regs): Likewise.
15585         (fetch_regs_kernel_thread): Likewise.
15586         (store_regs_kernel_thread): Likewise.
15587
15588 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15589
15590         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15591         tagged type objects to their actual type.
15592
15593 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15594
15595         * ada-valprint.c (print_field_values): Add "language" parameter.
15596         Update calls to print_field_values and print_variant_part.
15597         Pass new parameter "language" in call to val_print instead
15598         of "current_language".  Replace call to ada_val_print by call
15599         to val_print.
15600         (print_variant_part): Add "language" parameter.
15601         (ada_val_print_struct_union): Update call to print_field_values.
15602
15603 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15604
15605         * ada-valprint.c (ui_memcpy): Delete.
15606         (ada_print_floating): Update documentation.  Add empty line
15607         between between function documentation and implementation.
15608         Delete variable "buffer".  Use ui_file_xstrdup in place of
15609         ui_file_put.  Minor adjustments following this change.
15610
15611 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15612
15613         * ada-valprint.c (ada_val_print_string): New function,
15614         extracted from ada_val_print_array.
15615         (ada_val_print_array): Replace extracted code by call
15616         to ada_val_print_string followed by a return.  Move
15617         "else" branch to the function's top block.
15618
15619 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15620
15621         * ada-valprint.c (ada_val_print_array): Move implementation
15622         down.  Rename parameter "offset" and "val" into "offset_aligned"
15623         and "original_value" respectively.  Add parameter "offset".
15624
15625 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15626
15627         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15628         re-organizing the code. Change the "???" message printed
15629         when target type is a TYPE_CODE_UNDEF into
15630         "<ref to undefined type>".
15631
15632 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15633
15634         * ada-valprint.c (print_record): Delete, implementation inlined...
15635         (ada_val_print_struct_union): ... here.  Remove call to
15636         ada_check_typedef in inlined implementation.
15637
15638 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15639
15640         * ada-valprint.c (ada_val_print_gnat_array): New function,
15641         extracted from ada_val_print_1;
15642         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15643         (ada_val_print_flt, ada_val_print_struct_union)
15644         (ada_val_print_ref): Likewise.
15645         (ada_val_print_1): Delete variables i and elttype.
15646         Replace extracted-out code by call to corresponding
15647         new functions.
15648
15649 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15650
15651         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15652
15653 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15654
15655         * ada-valprint.c (ada_val_print_1): Replace calls to
15656         ada_val_print_1 by calls to val_print.
15657
15658 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15659
15660         * ada-valprint.c (ada_val_print_1): Add parameter "language".
15661         Update calls to self accordingly.  Replace calls to c_val_print
15662         by calls to val_print.
15663
15664 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15665
15666         * ada-valprint.c (print_record): Delete declaration.
15667         (adjust_type_signedness, ada_val_print_1): Likewise.
15668         (ada_val_print): Move function implementation down.
15669         (print_variant_part, print_field_values, print_record):
15670         Move function implementation up.
15671
15672 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15673
15674         * python/py-type.c (typy_get_name): New function.
15675         (type_object_getset): Add entry for attribute "name".
15676         * NEWS: Add entry mentioning this new attribute.
15677
15678 2014-01-07  Yao Qi  <yao@codesourcery.com>
15679
15680         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15681         statement.
15682
15683 2014-01-07  Yao Qi  <yao@codesourcery.com>
15684
15685         * gnu-nat.c (info_port_rights): Add qualifier const to
15686         argument args.
15687
15688 2014-01-07  Yao Qi  <yao@codesourcery.com>
15689
15690         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15691
15692 2014-01-07  Yao Qi  <yao@codesourcery.com>
15693
15694         * gnu-nat.c (make_inf) Update declaration.
15695         (make_inf): Make it static.
15696         (inf_set_traced): Likewise.
15697         (inf_port_to_thread, inf_task_died_status): Likewise.
15698
15699 2014-01-07  Yao Qi  <yao@codesourcery.com>
15700
15701         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15702
15703 2014-01-07  Yao Qi  <yao@codesourcery.com>
15704
15705         * gnu-nat.c (_initialize_gnu_nat): Declare.
15706
15707 2014-01-07  Yao Qi  <yao@codesourcery.com>
15708
15709         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15710         'enum bfd_endian'.
15711         (struct gdbarch_info) <byte_order>: Change type to
15712         'enum bfd_endian'.
15713         <byte_order_for_code>: Likewise.
15714         * gdbarch.c, gdbarch.h: Regenerated.
15715
15716 2014-01-06  Sasha Smundak  <asmundak@google.com>
15717
15718         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15719
15720 2014-01-06  Tom Tromey  <tromey@redhat.com>
15721
15722         * doublest.c (convert_doublest_to_floatformat): Use const, not
15723         CONST.
15724         * somread.c (som_symtab_read): Likewise.
15725
15726 2014-01-07  Hui Zhu  <hui@codesourcery.com>
15727
15728         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15729         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15730         (gdb_bfd_fopen): Ditto.
15731         (gdb_bfd_openr): Ditto.
15732         (gdb_bfd_openw): Ditto.
15733         (gdb_bfd_openr_iovec): Ditto.
15734         (gdb_bfd_fdopenr): Ditto.
15735         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15736         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15737         with xstrdup.
15738         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15739         with xstrdup.
15740         * symfile-mem.c (symbol_file_add_from_memory): Removed
15741         gdb_bfd_stash_filename.
15742
15743 2014-01-03  Doug Evans  <dje@google.com>
15744
15745         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15746         output.
15747
15748 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
15749
15750         Update year range in copyright notice of all files.
15751
15752 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
15753
15754         * top.c (print_gdb_version): Set copyright year to 2014.
15755
15756 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
15757
15758         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15759
15760 For older changes see ChangeLog-2013.
15761 \f
15762 Local Variables:
15763 mode: change-log
15764 left-margin: 8
15765 fill-column: 74
15766 version-control: never
15767 coding: utf-8
15768 End: