Introduce common-types.h
[external/binutils.git] / gdb / ChangeLog
1 2014-08-19  Tom Tromey  <tromey@redhat.com>
2             Gary Benson  <gbenson@redhat.com>
3
4         * common/common-types.h: New file.
5         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
6         * common/common-defs.h: Include common-types.h.
7         * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
8         (ULONGEST): Remove.
9
10 2014-08-19  Tom Tromey  <tromey@redhat.com>
11             Gary Benson  <gbenson@redhat.com>
12
13         * common/errors.h: New file.
14         * common/errors.c: Likewise.
15         * Makefile.in (SFILES): Add common/errors.c.
16         (HFILES_NO_SRCDIR): Add common/errors.h.
17         (COMMON_OBS): Add errors.o.
18         (errors.o): New rule.
19         * common/common-defs.h: Include errors.h.
20         * utils.h (perror_with_name, error, verror, warning, vwarning):
21         Don't declare.
22         * common/common-utils.h: (malloc_failure, internal_error):
23         Likewise.
24
25 2014-08-19  Gary Benson  <gbenson@redhat.com>
26
27         * utils.c (internal_vproblem): Always print the message.
28
29 2014-08-18  Doug Evans  <dje@google.com>
30
31         * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
32
33 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
34
35         * ada-typeprint.c (type_is_full_subrange_of_target_type):
36         Return 0 if TYPE is dynamic.
37         (print_range): Add handling of dynamic ranges.
38
39 2014-08-18  Keven Boell  <keven.boell@intel.com>
40             Joel Brobecker  <brobecker@adacore.com>
41
42         * gdbtypes.h (struct main_type): Add field "data_location".
43         (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
44         (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
45         * gdbtypes.c (is_dynamic_type): Return 1 if the type has
46         a dynamic data location.
47         (resolve_dynamic_type): Add DW_AT_data_location handling.
48         (copy_recursive, copy_type): Copy the data_location information
49         when present.
50         * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
51         * value.c (value_from_contents_and_address): Add
52         DW_AT_data_location handling.
53
54 2014-08-18  Keven Boell  <keven.boell@intel.com>
55             Joel Brobecker  <brobecker@adacore.com>
56
57         * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
58         field "get_object_address".
59         * dwarf2expr.c (execute_stack_op): Add handling for
60         DW_OP_push_object_address.
61         * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
62         * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
63         (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
64         (dwarf_expr_get_obj_addr): New function.
65         (dwarf_expr_ctx_funcs): Add get_object_address field.
66         (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
67         (dwarf2_locexpr_baton_eval): Add parameter "addr".  Use it.
68         (dwarf2_evaluate_property): Add parameter "address".  Use it.
69         (needs_get_obj_addr): New function.
70         (needs_frame_ctx_funcs): Add get_object_address field.
71         (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
72         * gdbtypes.c (resolve_dynamic_range): Add "addr" field.  Use it.
73         (resolve_dynamic_array): Likewise.
74
75 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
76
77         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
78         When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
79         fixed value for records and unions for which some GNAT encodings
80         are present.
81
82 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
83
84         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
85         rewrite to avoid "else if" and "else" constructs.  Should be
86         a no-op in practice.
87
88 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
89
90         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
91         of lexical block.
92
93 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
94
95         PR c++/17132
96         * eval.c: Update all calls to find_overload_match.
97         * valarith.c: Likewise.
98         (value_user_defined_cpp_op, value_user_defined_op): New
99         argument NOSIDE.  Update all callers.
100         * valops.c (find_overload_match): New argument NOSIDE.
101         * value.h (find_overload_match): Update signature.
102
103 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
104
105         * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
106         'items' methods instead of 'iteritems' method on dictionaries.
107
108 2014-08-15  Doug Evans  <dje@google.com>
109
110         * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
111         closer to use.
112
113 2014-08-15  Doug Evans  <dje@google.com>
114
115         * dwarf2read.c (dwarf_decode_lines_1): Add comment.
116
117 2014-08-15  Doug Evans  <dje@google.com>
118
119         * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
120
121 2014-08-15  Doug Evans  <dje@google.com>
122
123         * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
124         unused.
125
126 2014-08-15  Eli Zaretskii  <eliz@gnu.org>
127
128         * dcache.h: Include target.h, to avoid compile time warnings.
129
130 2014-08-15  Joel Brobecker  <brobecker@adacore.com>
131
132         * gdbarch.sh: #include "frame.h" in gdbarch.h.  Delete "struct
133         frame_info" partial declaration.
134         * gdbarch.h: Regenerate.
135
136 2014-08-15  Yao Qi  <yao@codesourcery.com>
137
138         * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
139         Add parameter 'decode_for_pst_p'.  Callers update.
140
141 2014-08-13  Yao Qi  <yao@codesourcery.com>
142
143         PR build/17104
144         * configure.ac: Use local variable 'pos'.
145         * configure: Regenerated.
146
147 2014-08-11  Doug Evans  <dje@google.com>
148
149         * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
150         message, it is redundant with "Reading symbols from ..." message.
151
152 2014-08-10  Doug Evans  <xdje42@gmail.com>
153
154         * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
155
156 2014-08-09  Yao Qi  <yao@codesourcery.com>
157
158         PR remote/9053
159         * remote.c (remote_xfer_partial): Remove dead code.
160
161 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
162
163         * ia64-linux-tdep.c: Include "regset.h".
164         (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
165         (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
166         (ia64_linux_supply_fpregset): New function.
167         (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
168         (ia64_linux_regset_from_core_section): New function.
169         (ia64_linux_init_abi): Set regset_from_core_section gdbarch
170         method.
171
172 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
173
174         * m68klinux-tdep.c: Include "regset.h".
175         (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
176         (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
177         (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
178         (m68k_linux_regset_from_core_section): New function.
179         (m68k_linux_init_abi): Set regset_from_core_section gdbarch
180         method.
181
182 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
183
184         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
185         function.  Move logic to...
186         (tilegx_linux_regmap): ... this new register map.
187         (tilegx_linux_regset): Refer to register map, replace supply
188         method by regcache_supply_regset, and add collect method.
189         * tilegx-tdep.h (enum tilegx_regnum): New enum value
190         TILEGX_FIRST_EASY_REGNUM.
191
192 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
193
194         * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
195         that calls regcache_supply_regset and handles the EPC register
196         separately.  Move main logic to...
197         (score7_linux_gregmap): ... this new register map.
198         (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
199         (score7_linux_gregset): Refer to register map.  Add collect method.
200         (score7_linux_regset_from_core_section): Replace
201         sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
202         * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
203         (struct regset): Delete unused forward declaraction.
204         (struct pt_regs): Delete structure definition.
205         (elf_gregset_t): Delete typedef.
206
207 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
208
209         * nios2-linux-tdep.c (nios2_collect_gregset): New function.
210         (nios2_core_regset): Add collect method.
211
212 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
213
214         * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
215         platform-independent and don't write to read-only input buffer.
216         (m32r_linux_collect_gregset): New function.
217         (m32r_linux_gregset): Add collect method.
218
219 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
220
221         * hppa-linux-tdep.c (greg_map): Rename to...
222         (hppa_linux_gregmap): ... this.  Also convert to
223         regcache_map_entry format.
224         (hppa_linux_supply_regset): Delete function.
225         (hppa_linux_supply_fpregset): Delete function.  Move logic to...
226         (hppa_linux_fpregmap): ... this new register map.
227         (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
228         register map, replace supply method by regcache_supply_regset, and
229         add collect method regcache_collect_regset.
230
231 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
232
233         * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
234         (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
235         (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
236         (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
237         (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
238         (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
239         (frv_linux_supply_gregset): Replace main logic by call to
240         regcache_supply_regset, but keep clearing gr32-gr63.
241         (frv_linux_supply_fpregset): Delete function.
242         (frv_linux_gregset): Refer to appropriate register map and add
243         regcache_collect_regset as the collect method.
244         (frv_linux_fpregset): Likewise.  Also exchange the supply method
245         by regcache_supply_regset.
246
247 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
248
249         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
250         by call to alpha_supply_int_regs.
251         (alpha_linux_collect_gregset): New function.
252         (alpha_linux_supply_fpregset): Replace logic by call to
253         alpha_supply_fp_regs.
254         (alpha_linux_collect_fpregset): New function.
255         (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
256
257 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
258
259         * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
260         by call to regcache_collect_regset.
261         (supply_gregset, supply_fpregset): Call regcache_supply_regset
262         instead of aarch64_linux_supply_gregset/_fpregset.
263         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
264         (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
265         header file instead.
266         (aarch64_linux_supply_gregset, supply_gregset_from_core)
267         (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
268         functions.  Move logic to ...
269         (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
270         register maps.
271         (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
272         refer to new register maps, replace *_regset_from_core by
273         regcache_supply_regset, and also use regcache_collect_regset.
274         * aarch64-linux-tdep.h: Include "regset.h".
275         (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
276         Delete prototypes.
277         (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
278         macros, moved from C source file.
279         (aarch64_linux_gregset, aarch64_linux_fpregset): New global
280         variable declarations.
281
282 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
283
284         * s390-linux-nat.c: Include "regset.h".
285         (regmap_gregset): Delete macro.
286         (s390_64_regmap_gregset): New register map for
287         regcache_supply/_collect_regset.
288         (s390_64_gregset): New regset.
289         (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
290         (regmap_fpregset): Delete macro.
291         (s390_native_supply, s390_native_collect): Delete functions.
292         (supply_gregset, fill_gregset): Replace s390-specific regmap
293         handling by a call to regcache_supply/_collect_regset.
294         (supply_fpregset, fill_fpregset): Call regcache_supply/
295         _collect_regset instead of s390_native_supply/_collect.
296         (fetch_regset, store_regset): Likewise.  Also change the last
297         parameter to a regset instead of a regmap.
298         (s390_linux_fetch_inferior_registers)
299         (390_linux_store_inferior_registers): Adjust last parameter in
300         calls to fetch_regset and store_regset.
301         * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
302         (s390_gregmap): ... this.  Also make static const and convert to
303         regcache_map_entry format.
304         (s390x_regmap_gregset): Delete.
305         (s390_regmap_fpregset): Rename to...
306         (s390_fpregmap): ... this.  Make static const and convert to
307         regcache_map_entry format.
308         (s390_regmap_upper, s390_regmap_last_break)
309         (s390x_regmap_last_break, s390_regmap_system_call)
310         (s390_regmap_tdb): Likewise.
311         (s390_supply_regset, s390_collect_regset): Remove functions.
312         (s390_supply_tdb_regset): Call regcache_supply_regset instead of
313         s390_supply_regset.
314         (s390_gregset, s390_fpregset, s390_upper_regset)
315         (s390_last_break_regset, s390x_last_break_regset)
316         (s390_system_call_regset, s390_tdb_regset): Make global and
317         replace s390_supply/_collect_regset by regcache_supply/
318         _collect_regset.
319         (s390x_gregset): Delete.
320         (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
321         * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
322         (s390_regmap_fpregset, s390_regmap_last_break)
323         (s390x_regmap_last_break, s390_regmap_system_call)
324         (s390_regmap_tdb): Delete global variable declarations.
325         (s390_gregset, s390_fpregset, s390_last_break_regset)
326         (s390x_last_break_regset, s390_system_call_regset)
327         (s390_tdb_regset): New global variable declarations.
328
329 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
330
331         * regcache.c: Include "regset.h".
332         (regcache_transfer_regset): New local function.
333         (regcache_supply_regset, regcache_collect_regset): New functions.
334         * regcache.h (struct regcache_map_entry): New structure.
335         (REGCACHE_MAP_SKIP): New enum value.
336         (regcache_supply_regset, regcache_collect_regset): New prototypes.
337
338 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
339
340         * regset.h (struct regset): Rename 'descr' field to 'regmap'.
341         * ppc-linux-tdep.c (ppc_linux_supply_gregset)
342         (ppc_linux_collect_gregset ): Likewise.
343         * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
344         (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
345         (ppc_collect_vrregset): Likewise.
346         * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
347         Likewise.
348
349 2014-08-07  Yao Qi  <yao@codesourcery.com>
350
351         * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
352         * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
353         * remote.c (remote_read_bytes): Likewise.
354
355 2014-08-07  Yao Qi  <yao@codesourcery.com>
356
357         * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
358
359 2014-08-07  Yao Qi  <yao@codesourcery.com>
360
361         PR remote/17230
362         * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
363         TARGET_XFER_OK instead of 0.
364
365 2014-08-07  Gary Benson  <gbenson@redhat.com>
366
367         * common/common-defs.h: Include errno.h.
368         * defs.h: Do not include errno.h.
369         * ada-typeprint.c: Likewise.
370         * c-typeprint.c: Likewise.
371         * core-regset.c: Likewise.
372         * corefile.c: Likewise.
373         * corelow.c: Likewise.
374         * event-loop.c: Likewise.
375         * f-typeprint.c: Likewise.
376         * gnu-nat.c: Likewise.
377         * go32-nat.c: Likewise.
378         * i386gnu-nat.c: Likewise.
379         * m2-typeprint.c: Likewise.
380         * nat/linux-btrace.c: Likewise.
381         * p-typeprint.c: Likewise.
382         * procfs.c: Likewise.
383         * remote-sim.c: Likewise.
384         * rs6000-nat.c: Likewise.
385         * target.c: Likewise.
386         * typeprint.c: Likewise.
387         * ui-file.c: Likewise.
388         * valops.c: Likewise.
389         * valprint.c: Likewise.
390
391 2014-08-07  Gary Benson  <gbenson@redhat.com>
392
393         * common/common-defs.h: Include string.h.
394         * aarch64-tdep.c: Do not include string.h.
395         * ada-exp.y: Likewise.
396         * ada-lang.c: Likewise.
397         * ada-lex.l: Likewise.
398         * ada-typeprint.c: Likewise.
399         * ada-valprint.c: Likewise.
400         * aix-thread.c: Likewise.
401         * alpha-linux-tdep.c: Likewise.
402         * alpha-mdebug-tdep.c: Likewise.
403         * alpha-nat.c: Likewise.
404         * alpha-osf1-tdep.c: Likewise.
405         * alpha-tdep.c: Likewise.
406         * alphanbsd-tdep.c: Likewise.
407         * amd64-dicos-tdep.c: Likewise.
408         * amd64-linux-tdep.c: Likewise.
409         * amd64-nat.c: Likewise.
410         * amd64-sol2-tdep.c: Likewise.
411         * amd64fbsd-tdep.c: Likewise.
412         * amd64obsd-tdep.c: Likewise.
413         * arch-utils.c: Likewise.
414         * arm-linux-nat.c: Likewise.
415         * arm-linux-tdep.c: Likewise.
416         * arm-tdep.c: Likewise.
417         * arm-wince-tdep.c: Likewise.
418         * armbsd-tdep.c: Likewise.
419         * armnbsd-nat.c: Likewise.
420         * armnbsd-tdep.c: Likewise.
421         * armobsd-tdep.c: Likewise.
422         * avr-tdep.c: Likewise.
423         * ax-gdb.c: Likewise.
424         * ax-general.c: Likewise.
425         * bcache.c: Likewise.
426         * bfin-tdep.c: Likewise.
427         * breakpoint.c: Likewise.
428         * build-id.c: Likewise.
429         * buildsym.c: Likewise.
430         * c-exp.y: Likewise.
431         * c-lang.c: Likewise.
432         * c-typeprint.c: Likewise.
433         * c-valprint.c: Likewise.
434         * charset.c: Likewise.
435         * cli-out.c: Likewise.
436         * cli/cli-cmds.c: Likewise.
437         * cli/cli-decode.c: Likewise.
438         * cli/cli-dump.c: Likewise.
439         * cli/cli-interp.c: Likewise.
440         * cli/cli-logging.c: Likewise.
441         * cli/cli-script.c: Likewise.
442         * cli/cli-setshow.c: Likewise.
443         * cli/cli-utils.c: Likewise.
444         * coffread.c: Likewise.
445         * common/agent.c: Likewise.
446         * common/buffer.c: Likewise.
447         * common/buffer.h: Likewise.
448         * common/common-utils.c: Likewise.
449         * common/filestuff.c: Likewise.
450         * common/filestuff.c: Likewise.
451         * common/format.c: Likewise.
452         * common/print-utils.c: Likewise.
453         * common/rsp-low.c: Likewise.
454         * common/signals.c: Likewise.
455         * common/vec.h: Likewise.
456         * common/xml-utils.c: Likewise.
457         * core-regset.c: Likewise.
458         * corefile.c: Likewise.
459         * corelow.c: Likewise.
460         * cp-abi.c: Likewise.
461         * cp-name-parser.y: Likewise.
462         * cp-support.c: Likewise.
463         * cp-valprint.c: Likewise.
464         * cris-tdep.c: Likewise.
465         * d-exp.y: Likewise.
466         * darwin-nat.c: Likewise.
467         * dbxread.c: Likewise.
468         * dcache.c: Likewise.
469         * demangle.c: Likewise.
470         * dicos-tdep.c: Likewise.
471         * disasm.c: Likewise.
472         * doublest.c: Likewise.
473         * dsrec.c: Likewise.
474         * dummy-frame.c: Likewise.
475         * dwarf2-frame.c: Likewise.
476         * dwarf2loc.c: Likewise.
477         * dwarf2read.c: Likewise.
478         * elfread.c: Likewise.
479         * environ.c: Likewise.
480         * eval.c: Likewise.
481         * event-loop.c: Likewise.
482         * exceptions.c: Likewise.
483         * exec.c: Likewise.
484         * expprint.c: Likewise.
485         * f-exp.y: Likewise.
486         * f-lang.c: Likewise.
487         * f-typeprint.c: Likewise.
488         * f-valprint.c: Likewise.
489         * fbsd-nat.c: Likewise.
490         * findcmd.c: Likewise.
491         * findvar.c: Likewise.
492         * fork-child.c: Likewise.
493         * frame.c: Likewise.
494         * frv-linux-tdep.c: Likewise.
495         * frv-tdep.c: Likewise.
496         * gdb.c: Likewise.
497         * gdb_bfd.c: Likewise.
498         * gdbarch.c: Likewise.
499         * gdbarch.sh: Likewise.
500         * gdbtypes.c: Likewise.
501         * gnu-nat.c: Likewise.
502         * gnu-v2-abi.c: Likewise.
503         * gnu-v3-abi.c: Likewise.
504         * go-exp.y: Likewise.
505         * go-lang.c: Likewise.
506         * go32-nat.c: Likewise.
507         * guile/guile.c: Likewise.
508         * guile/scm-auto-load.c: Likewise.
509         * hppa-hpux-tdep.c: Likewise.
510         * hppa-linux-nat.c: Likewise.
511         * hppanbsd-tdep.c: Likewise.
512         * hppaobsd-tdep.c: Likewise.
513         * i386-cygwin-tdep.c: Likewise.
514         * i386-dicos-tdep.c: Likewise.
515         * i386-linux-tdep.c: Likewise.
516         * i386-nto-tdep.c: Likewise.
517         * i386-sol2-tdep.c: Likewise.
518         * i386-tdep.c: Likewise.
519         * i386bsd-tdep.c: Likewise.
520         * i386gnu-nat.c: Likewise.
521         * i386nbsd-tdep.c: Likewise.
522         * i386obsd-tdep.c: Likewise.
523         * i387-tdep.c: Likewise.
524         * ia64-libunwind-tdep.c: Likewise.
525         * ia64-linux-nat.c: Likewise.
526         * inf-child.c: Likewise.
527         * inf-ptrace.c: Likewise.
528         * inf-ttrace.c: Likewise.
529         * infcall.c: Likewise.
530         * infcmd.c: Likewise.
531         * inflow.c: Likewise.
532         * infrun.c: Likewise.
533         * interps.c: Likewise.
534         * iq2000-tdep.c: Likewise.
535         * irix5-nat.c: Likewise.
536         * jv-exp.y: Likewise.
537         * jv-lang.c: Likewise.
538         * jv-typeprint.c: Likewise.
539         * jv-valprint.c: Likewise.
540         * language.c: Likewise.
541         * linux-fork.c: Likewise.
542         * linux-nat.c: Likewise.
543         * lm32-tdep.c: Likewise.
544         * m2-exp.y: Likewise.
545         * m2-typeprint.c: Likewise.
546         * m32c-tdep.c: Likewise.
547         * m32r-linux-nat.c: Likewise.
548         * m32r-linux-tdep.c: Likewise.
549         * m32r-rom.c: Likewise.
550         * m32r-tdep.c: Likewise.
551         * m68hc11-tdep.c: Likewise.
552         * m68k-tdep.c: Likewise.
553         * m68kbsd-tdep.c: Likewise.
554         * m68klinux-nat.c: Likewise.
555         * m68klinux-tdep.c: Likewise.
556         * m88k-tdep.c: Likewise.
557         * machoread.c: Likewise.
558         * macrocmd.c: Likewise.
559         * main.c: Likewise.
560         * mdebugread.c: Likewise.
561         * mem-break.c: Likewise.
562         * memattr.c: Likewise.
563         * memory-map.c: Likewise.
564         * mep-tdep.c: Likewise.
565         * mi/mi-cmd-break.c: Likewise.
566         * mi/mi-cmd-disas.c: Likewise.
567         * mi/mi-cmd-env.c: Likewise.
568         * mi/mi-cmd-stack.c: Likewise.
569         * mi/mi-cmd-var.c: Likewise.
570         * mi/mi-cmds.c: Likewise.
571         * mi/mi-console.c: Likewise.
572         * mi/mi-getopt.c: Likewise.
573         * mi/mi-interp.c: Likewise.
574         * mi/mi-main.c: Likewise.
575         * mi/mi-parse.c: Likewise.
576         * microblaze-rom.c: Likewise.
577         * microblaze-tdep.c: Likewise.
578         * mingw-hdep.c: Likewise.
579         * minidebug.c: Likewise.
580         * minsyms.c: Likewise.
581         * mips-irix-tdep.c: Likewise.
582         * mips-linux-tdep.c: Likewise.
583         * mips-tdep.c: Likewise.
584         * mips64obsd-tdep.c: Likewise.
585         * mipsnbsd-tdep.c: Likewise.
586         * mipsread.c: Likewise.
587         * mn10300-linux-tdep.c: Likewise.
588         * mn10300-tdep.c: Likewise.
589         * monitor.c: Likewise.
590         * moxie-tdep.c: Likewise.
591         * mt-tdep.c: Likewise.
592         * nat/linux-btrace.c: Likewise.
593         * nat/linux-osdata.c: Likewise.
594         * nat/linux-procfs.c: Likewise.
595         * nat/linux-ptrace.c: Likewise.
596         * nat/linux-waitpid.c: Likewise.
597         * nbsd-tdep.c: Likewise.
598         * nios2-linux-tdep.c: Likewise.
599         * nto-procfs.c: Likewise.
600         * nto-tdep.c: Likewise.
601         * objc-lang.c: Likewise.
602         * objfiles.c: Likewise.
603         * opencl-lang.c: Likewise.
604         * osabi.c: Likewise.
605         * osdata.c: Likewise.
606         * p-exp.y: Likewise.
607         * p-lang.c: Likewise.
608         * p-typeprint.c: Likewise.
609         * parse.c: Likewise.
610         * posix-hdep.c: Likewise.
611         * ppc-linux-nat.c: Likewise.
612         * ppc-sysv-tdep.c: Likewise.
613         * ppcfbsd-tdep.c: Likewise.
614         * ppcnbsd-tdep.c: Likewise.
615         * ppcobsd-tdep.c: Likewise.
616         * printcmd.c: Likewise.
617         * procfs.c: Likewise.
618         * prologue-value.c: Likewise.
619         * python/py-auto-load.c: Likewise.
620         * python/py-gdb-readline.c: Likewise.
621         * ravenscar-thread.c: Likewise.
622         * regcache.c: Likewise.
623         * registry.c: Likewise.
624         * remote-fileio.c: Likewise.
625         * remote-m32r-sdi.c: Likewise.
626         * remote-mips.c: Likewise.
627         * remote-notif.c: Likewise.
628         * remote-sim.c: Likewise.
629         * remote.c: Likewise.
630         * reverse.c: Likewise.
631         * rs6000-aix-tdep.c: Likewise.
632         * ser-base.c: Likewise.
633         * ser-go32.c: Likewise.
634         * ser-mingw.c: Likewise.
635         * ser-pipe.c: Likewise.
636         * ser-tcp.c: Likewise.
637         * ser-unix.c: Likewise.
638         * serial.c: Likewise.
639         * sh-tdep.c: Likewise.
640         * sh64-tdep.c: Likewise.
641         * shnbsd-tdep.c: Likewise.
642         * skip.c: Likewise.
643         * sol-thread.c: Likewise.
644         * solib-dsbt.c: Likewise.
645         * solib-frv.c: Likewise.
646         * solib-osf.c: Likewise.
647         * solib-som.c: Likewise.
648         * solib-spu.c: Likewise.
649         * solib-target.c: Likewise.
650         * solib.c: Likewise.
651         * somread.c: Likewise.
652         * source.c: Likewise.
653         * sparc-nat.c: Likewise.
654         * sparc-sol2-tdep.c: Likewise.
655         * sparc-tdep.c: Likewise.
656         * sparc64-tdep.c: Likewise.
657         * sparc64fbsd-tdep.c: Likewise.
658         * sparc64nbsd-tdep.c: Likewise.
659         * sparcnbsd-tdep.c: Likewise.
660         * spu-linux-nat.c: Likewise.
661         * spu-multiarch.c: Likewise.
662         * spu-tdep.c: Likewise.
663         * stabsread.c: Likewise.
664         * stack.c: Likewise.
665         * std-regs.c: Likewise.
666         * symfile.c: Likewise.
667         * symmisc.c: Likewise.
668         * symtab.c: Likewise.
669         * target.c: Likewise.
670         * thread.c: Likewise.
671         * tilegx-linux-nat.c: Likewise.
672         * tilegx-tdep.c: Likewise.
673         * top.c: Likewise.
674         * tracepoint.c: Likewise.
675         * tui/tui-command.c: Likewise.
676         * tui/tui-data.c: Likewise.
677         * tui/tui-disasm.c: Likewise.
678         * tui/tui-file.c: Likewise.
679         * tui/tui-layout.c: Likewise.
680         * tui/tui-out.c: Likewise.
681         * tui/tui-regs.c: Likewise.
682         * tui/tui-source.c: Likewise.
683         * tui/tui-stack.c: Likewise.
684         * tui/tui-win.c: Likewise.
685         * tui/tui-windata.c: Likewise.
686         * tui/tui-winsource.c: Likewise.
687         * typeprint.c: Likewise.
688         * ui-file.c: Likewise.
689         * ui-out.c: Likewise.
690         * user-regs.c: Likewise.
691         * utils.c: Likewise.
692         * v850-tdep.c: Likewise.
693         * valarith.c: Likewise.
694         * valops.c: Likewise.
695         * valprint.c: Likewise.
696         * value.c: Likewise.
697         * varobj.c: Likewise.
698         * vax-tdep.c: Likewise.
699         * vaxnbsd-tdep.c: Likewise.
700         * vaxobsd-tdep.c: Likewise.
701         * windows-nat.c: Likewise.
702         * xcoffread.c: Likewise.
703         * xml-support.c: Likewise.
704         * xstormy16-tdep.c: Likewise.
705         * xtensa-linux-nat.c: Likewise.
706
707 2014-08-07  Gary Benson  <gbenson@redhat.com>
708
709         * common/common-defs.h: Include gdb_assert.h.
710         * aarch64-tdep.c: Do not include gdb_assert.h.
711         * addrmap.c: Likewise.
712         * aix-thread.c: Likewise.
713         * alpha-linux-tdep.c: Likewise.
714         * alpha-mdebug-tdep.c: Likewise.
715         * alphanbsd-tdep.c: Likewise.
716         * amd64-nat.c: Likewise.
717         * amd64-tdep.c: Likewise.
718         * amd64bsd-nat.c: Likewise.
719         * amd64fbsd-nat.c: Likewise.
720         * amd64fbsd-tdep.c: Likewise.
721         * amd64nbsd-nat.c: Likewise.
722         * amd64nbsd-tdep.c: Likewise.
723         * amd64obsd-nat.c: Likewise.
724         * amd64obsd-tdep.c: Likewise.
725         * arch-utils.c: Likewise.
726         * arm-tdep.c: Likewise.
727         * armbsd-tdep.c: Likewise.
728         * auxv.c: Likewise.
729         * bcache.c: Likewise.
730         * bfin-tdep.c: Likewise.
731         * blockframe.c: Likewise.
732         * breakpoint.c: Likewise.
733         * bsd-kvm.c: Likewise.
734         * bsd-uthread.c: Likewise.
735         * buildsym.c: Likewise.
736         * c-exp.y: Likewise.
737         * c-lang.c: Likewise.
738         * charset.c: Likewise.
739         * cleanups.c: Likewise.
740         * cli-out.c: Likewise.
741         * cli/cli-decode.c: Likewise.
742         * cli/cli-dump.c: Likewise.
743         * cli/cli-logging.c: Likewise.
744         * cli/cli-script.c: Likewise.
745         * cli/cli-utils.c: Likewise.
746         * coffread.c: Likewise.
747         * common/common-utils.c: Likewise.
748         * common/queue.h: Likewise.
749         * common/signals.c: Likewise.
750         * common/vec.h: Likewise.
751         * complaints.c: Likewise.
752         * completer.c: Likewise.
753         * corelow.c: Likewise.
754         * cp-abi.c: Likewise.
755         * cp-name-parser.y: Likewise.
756         * cp-namespace.c: Likewise.
757         * cp-support.c: Likewise.
758         * cris-tdep.c: Likewise.
759         * dbxread.c: Likewise.
760         * dictionary.c: Likewise.
761         * doublest.c: Likewise.
762         * dsrec.c: Likewise.
763         * dummy-frame.c: Likewise.
764         * dwarf2-frame-tailcall.c: Likewise.
765         * dwarf2-frame.c: Likewise.
766         * dwarf2expr.c: Likewise.
767         * dwarf2loc.c: Likewise.
768         * dwarf2read.c: Likewise.
769         * eval.c: Likewise.
770         * event-loop.c: Likewise.
771         * exceptions.c: Likewise.
772         * expprint.c: Likewise.
773         * f-valprint.c: Likewise.
774         * fbsd-nat.c: Likewise.
775         * findvar.c: Likewise.
776         * frame-unwind.c: Likewise.
777         * frame.c: Likewise.
778         * frv-tdep.c: Likewise.
779         * gcore.c: Likewise.
780         * gdb-dlfcn.c: Likewise.
781         * gdb_bfd.c: Likewise.
782         * gdbarch.c: Likewise.
783         * gdbarch.sh: Likewise.
784         * gdbtypes.c: Likewise.
785         * gnu-nat.c: Likewise.
786         * gnu-v3-abi.c: Likewise.
787         * go-lang.c: Likewise.
788         * guile/scm-exception.c: Likewise.
789         * guile/scm-gsmob.c: Likewise.
790         * guile/scm-lazy-string.c: Likewise.
791         * guile/scm-math.c: Likewise.
792         * guile/scm-pretty-print.c: Likewise.
793         * guile/scm-safe-call.c: Likewise.
794         * guile/scm-utils.c: Likewise.
795         * guile/scm-value.c: Likewise.
796         * h8300-tdep.c: Likewise.
797         * hppa-hpux-nat.c: Likewise.
798         * hppa-tdep.c: Likewise.
799         * hppanbsd-tdep.c: Likewise.
800         * hppaobsd-tdep.c: Likewise.
801         * i386-darwin-nat.c: Likewise.
802         * i386-darwin-tdep.c: Likewise.
803         * i386-nto-tdep.c: Likewise.
804         * i386-tdep.c: Likewise.
805         * i386bsd-nat.c: Likewise.
806         * i386fbsd-tdep.c: Likewise.
807         * i386gnu-nat.c: Likewise.
808         * i386nbsd-tdep.c: Likewise.
809         * i386obsd-tdep.c: Likewise.
810         * i387-tdep.c: Likewise.
811         * ia64-libunwind-tdep.c: Likewise.
812         * ia64-tdep.c: Likewise.
813         * inf-ptrace.c: Likewise.
814         * inf-ttrace.c: Likewise.
815         * infcall.c: Likewise.
816         * infcmd.c: Likewise.
817         * infrun.c: Likewise.
818         * inline-frame.c: Likewise.
819         * interps.c: Likewise.
820         * jv-lang.c: Likewise.
821         * jv-typeprint.c: Likewise.
822         * linux-fork.c: Likewise.
823         * linux-nat.c: Likewise.
824         * linux-thread-db.c: Likewise.
825         * m32c-tdep.c: Likewise.
826         * m32r-linux-nat.c: Likewise.
827         * m32r-tdep.c: Likewise.
828         * m68k-tdep.c: Likewise.
829         * m68kbsd-nat.c: Likewise.
830         * m68kbsd-tdep.c: Likewise.
831         * m88k-tdep.c: Likewise.
832         * machoread.c: Likewise.
833         * macroexp.c: Likewise.
834         * macrotab.c: Likewise.
835         * maint.c: Likewise.
836         * mdebugread.c: Likewise.
837         * memory-map.c: Likewise.
838         * mep-tdep.c: Likewise.
839         * mi/mi-common.c: Likewise.
840         * microblaze-tdep.c: Likewise.
841         * mingw-hdep.c: Likewise.
842         * mips-linux-nat.c: Likewise.
843         * mips-linux-tdep.c: Likewise.
844         * mips-tdep.c: Likewise.
845         * mips64obsd-tdep.c: Likewise.
846         * mipsnbsd-tdep.c: Likewise.
847         * mn10300-linux-tdep.c: Likewise.
848         * mn10300-tdep.c: Likewise.
849         * moxie-tdep.c: Likewise.
850         * mt-tdep.c: Likewise.
851         * nat/linux-btrace.c: Likewise.
852         * nat/linux-osdata.c: Likewise.
853         * nat/linux-ptrace.c: Likewise.
854         * nat/mips-linux-watch.c: Likewise.
855         * nios2-linux-tdep.c: Likewise.
856         * nios2-tdep.c: Likewise.
857         * objc-lang.c: Likewise.
858         * objfiles.c: Likewise.
859         * obsd-nat.c: Likewise.
860         * opencl-lang.c: Likewise.
861         * osabi.c: Likewise.
862         * parse.c: Likewise.
863         * ppc-linux-nat.c: Likewise.
864         * ppc-sysv-tdep.c: Likewise.
865         * ppcfbsd-nat.c: Likewise.
866         * ppcfbsd-tdep.c: Likewise.
867         * ppcnbsd-nat.c: Likewise.
868         * ppcnbsd-tdep.c: Likewise.
869         * ppcobsd-nat.c: Likewise.
870         * ppcobsd-tdep.c: Likewise.
871         * printcmd.c: Likewise.
872         * procfs.c: Likewise.
873         * prologue-value.c: Likewise.
874         * psymtab.c: Likewise.
875         * python/py-lazy-string.c: Likewise.
876         * python/py-value.c: Likewise.
877         * regcache.c: Likewise.
878         * reggroups.c: Likewise.
879         * registry.c: Likewise.
880         * remote-sim.c: Likewise.
881         * remote.c: Likewise.
882         * rs6000-aix-tdep.c: Likewise.
883         * rs6000-tdep.c: Likewise.
884         * s390-linux-tdep.c: Likewise.
885         * score-tdep.c: Likewise.
886         * ser-base.c: Likewise.
887         * ser-mingw.c: Likewise.
888         * sh-tdep.c: Likewise.
889         * sh64-tdep.c: Likewise.
890         * solib-darwin.c: Likewise.
891         * solib-spu.c: Likewise.
892         * solib-svr4.c: Likewise.
893         * source.c: Likewise.
894         * sparc-nat.c: Likewise.
895         * sparc-sol2-tdep.c: Likewise.
896         * sparc-tdep.c: Likewise.
897         * sparc64-sol2-tdep.c: Likewise.
898         * sparc64-tdep.c: Likewise.
899         * sparc64fbsd-tdep.c: Likewise.
900         * sparc64nbsd-tdep.c: Likewise.
901         * sparc64obsd-tdep.c: Likewise.
902         * sparcnbsd-tdep.c: Likewise.
903         * sparcobsd-tdep.c: Likewise.
904         * spu-multiarch.c: Likewise.
905         * spu-tdep.c: Likewise.
906         * stabsread.c: Likewise.
907         * stack.c: Likewise.
908         * symfile.c: Likewise.
909         * symtab.c: Likewise.
910         * target-descriptions.c: Likewise.
911         * target-memory.c: Likewise.
912         * target.c: Likewise.
913         * tic6x-linux-tdep.c: Likewise.
914         * tic6x-tdep.c: Likewise.
915         * tilegx-linux-nat.c: Likewise.
916         * tilegx-tdep.c: Likewise.
917         * top.c: Likewise.
918         * tramp-frame.c: Likewise.
919         * tui/tui-out.c: Likewise.
920         * tui/tui-winsource.c: Likewise.
921         * ui-out.c: Likewise.
922         * user-regs.c: Likewise.
923         * utils.c: Likewise.
924         * v850-tdep.c: Likewise.
925         * valops.c: Likewise.
926         * value.c: Likewise.
927         * varobj.c: Likewise.
928         * vax-nat.c: Likewise.
929         * xml-syscall.c: Likewise.
930         * xml-tdesc.c: Likewise.
931         * xstormy16-tdep.c: Likewise.
932         * xtensa-linux-nat.c: Likewise.
933         * xtensa-tdep.c: Likewise.
934
935 2014-08-07  Gary Benson  <gbenson@redhat.com>
936
937         * common/common-defs.h: Include common-utils.h.
938         * defs.h: Do not include common-utils.h.
939         * common/gdb_assert.h: Likewise.
940         * darwin-nat.h: Likewise.
941         * nat/linux-btrace.c: Likewise.
942         * target/waitstatus.h: Likewise.
943
944 2014-08-07  Gary Benson  <gbenson@redhat.com>
945
946         * common/common-defs.h: Include ptid.h.
947         * defs.h: Do not include ptid.h.
948         * inferior.h: Likewise.
949         * infrun.h: Likewise.
950         * nat/linux-btrace.h: Likewise.
951         * nat/linux-osdata.h: Likewise.
952         * target/waitstatus.h: Likewise.
953
954 2014-08-07  Gary Benson  <gbenson@redhat.com>
955
956         * common/common-defs.h: Include gdb_locale.h.
957         * defs.h: Do not include gdb_locale.h.
958
959 2014-08-07  Gary Benson  <gbenson@redhat.com>
960
961         * common/common-defs.h: Include gdb/signals.h.
962         * defs.h: Do not include gdb/signals.h.
963
964 2014-08-07  Gary Benson  <gbenson@redhat.com>
965
966         * common/common-defs.h: Include pathmax.h.
967         * defs.h: Do not include pathmax.h.
968
969 2014-08-07  Gary Benson  <gbenson@redhat.com>
970
971         * common/common-defs.h: Include libiberty.h.
972         * defs.h: Do not include libiberty.h.
973         * common/queue.h: Likewise.
974         * cp-name-parser.y: Likewise.
975         * mi/mi-cmd-catch.c: Likewise.
976         * python/python.c: Likewise.
977
978 2014-08-07  Gary Benson  <gbenson@redhat.com>
979
980         * common/common-defs.h: Include ansidecl.h.
981         * defs.h: Do not include ansidecl.h.
982         * common/buffer.h: Likewise.
983         * common/common-utils.h: Likewise.
984
985 2014-08-07  Gary Benson  <gbenson@redhat.com>
986
987         * common/common-defs.h: Include stddef.h.
988         * defs.h: Do not include stddef.h.
989         * common/common-utils.h: Likewise.
990         * amd64fbsd-nat.c: Likewise.
991         * bcache.c: Likewise.
992         * charset.c: Likewise.
993         * common/buffer.h: Likewise.
994         * common/vec.h: Likewise.
995         * i386bsd-nat.c: Likewise.
996         * nat/linux-btrace.h: Likewise.
997         * ppcfbsd-nat.c: Likewise.
998         * ppcnbsd-tdep.h: Likewise.
999         * ppcobsd-nat.c: Likewise.
1000         * ppcobsd-tdep.h: Likewise.
1001         * python/py-gdb-readline.c: Likewise.
1002
1003 2014-08-07  Gary Benson  <gbenson@redhat.com>
1004
1005         * common/common-defs.h: Include stdarg.h.
1006         * defs.h: Do not include stdarg.h.
1007         * ada-lang.c: Likewise.
1008         * common/common-utils.h: Likewise.
1009         * guile/scm-string.c: Likewise.
1010         * guile/scm-utils.c: Likewise.
1011         * m32c-tdep.c: Likewise.
1012
1013 2014-08-07  Gary Benson  <gbenson@redhat.com>
1014
1015         * common/common-defs.h: Include stdlib.h.
1016         * defs.h: Do not include stdlib.h.
1017         * addrmap.c: Likewise.
1018         * bcache.c: Likewise.
1019         * common/buffer.c: Likewise.
1020         * common/common-utils.c: Likewise.
1021         * cp-name-parser.y: Likewise.
1022         * go32-nat.c: Likewise.
1023         * mn10300-linux-tdep.c: Likewise.
1024         * nat/linux-osdata.c: Likewise.
1025         * tui/tui.c: Likewise.
1026         * windows-nat.c: Likewise.
1027
1028 2014-08-07  Gary Benson  <gbenson@redhat.com>
1029
1030         * common/common-defs.h: Include stdio.h.
1031         * defs.h: Do not include stdio.h.
1032         * ada-lang.c: Likewise.
1033         * common/buffer.c: Likewise.
1034         * common/common-utils.c: Likewise.
1035         * cp-name-parser.y: Likewise.
1036         * gnu-nat.c: Likewise.
1037         * go32-nat.c: Likewise.
1038         * i386gnu-nat.c: Likewise.
1039         * proc-api.c: Likewise.
1040         * proc-events.c: Likewise.
1041         * proc-flags.c: Likewise.
1042         * proc-why.c: Likewise.
1043         * python/python-internal.h: Likewise.
1044         * target-memory.c: Likewise.
1045         * tui/tui-io.c: Likewise.
1046         * tui/tui.c: Likewise.
1047
1048 2014-08-06  Simon Marchi  <simon.marchi@ericsson.com>
1049
1050         * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1051         (scan_dyntag_auxv): Same.
1052
1053 2014-08-06  Yao Qi  <yao@codesourcery.com>
1054
1055         * amd64-linux-nat.c: Remove duplicated include
1056         "x86-linux-nat.h".
1057         * i386-linux-nat.c: Likewise.
1058
1059 2014-08-06  Yao Qi  <yao@codesourcery.com>
1060
1061         * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1062         operand" with "Special opcode" in comments.
1063
1064 2014-08-05  Gary Benson  <gbenson@redhat.com>
1065
1066         * interps.c (initialize_interps): Remove prototype.
1067         (interpreter_initialized): Remove static global.
1068         (interp_add): Do not call initialize_interps.
1069         (initialize_interps): Remove function.
1070
1071 2014-08-05  Gary Benson  <gbenson@redhat.com>
1072
1073         * utils.c (vwarning): Remove spurious va_end.
1074
1075 2014-08-05  Alan Modra  <amodra@gmail.com>
1076
1077         * charset.c (convert_between_encodings): Cast result of obstack_base.
1078         * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1079         * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1080         (read_unwind_info): Use size_t for some locals.
1081         * jit.c (finalize_symtab): Likewise.
1082         * utils.c (hashtab_obstack_allocate): Likewise.
1083         * symmisc.c (print_objfile_statistics): Update format strings.
1084
1085 2014-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
1086
1087         * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1088         (Changes in GDB 7.8): ... here.
1089
1090 2014-08-04  Tom Tromey  <tromey@redhat.com>
1091
1092         * target.c (set_targetdebug): New function.
1093         (initialize_targets): Pass set_targetdebug when creating "set
1094         debug target".
1095
1096 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
1097
1098         * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1099         if detecting a variable-sized field that is not the last field.
1100         Fix struct type length computation.
1101
1102 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
1103
1104         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1105         Add debug trace.
1106
1107 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
1108
1109         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1110         Remove "+ 8" offset in computation of CHAIN_VMA.
1111
1112 2014-07-31  Doug Evans  <dje@google.com>
1113
1114         * inflow.c (child_terminal_inferior): Add comment.
1115         (child_terminal_ours_for_output): Add comment.
1116         (child_terminal_ours): Add comment.
1117         * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1118         (linux_nat_terminal_ours): Add comment.
1119
1120 2014-07-31  Gary Benson  <gbenson@redhat.com>
1121
1122         * common/btrace-common.h: Do not include defs.h or server.h.
1123         * nat/mips-linux-watch.h: Likewise.
1124         * gdb-dlfcn.h: Do not include defs.h.
1125         * tracefile.h: Likewise.
1126
1127 2014-07-30  Roland McGrath  <mcgrathr@google.com>
1128
1129         * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1130
1131 2014-07-30  Tom Tromey  <tromey@redhat.com>
1132
1133         * bsd-kvm.c (bsd_kvm_open): Constify.
1134         * corelow.c (core_open): Constify.
1135         * ctf.c (ctf_open): Constify.
1136         * dbug-rom.c (dbug_open): Constify.
1137         * exec.c (exec_open): Constify.
1138         * m32r-rom.c (m32r_open, mon2000_open): Constify.
1139         * microblaze-rom.c (picobug_open): Constify.
1140         * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1141         Constify.
1142         * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1143         * record-btrace.c (record_btrace_open): Constify.
1144         * record-full.c (record_full_core_open_1, record_full_open_1)
1145         (record_full_open): Constify.
1146         * remote-m32r-sdi.c (m32r_open): Constify.
1147         * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1148         (rockhopper_open, lsi_open): Constify.
1149         * remote-sim.c (gdbsim_open): Constify.
1150         * remote.c (remote_open, extended_remote_open, remote_open_1):
1151         Constify.
1152         * target.h (struct target_ops) <to_open>: Make "arg" const.
1153         * tracefile-tfile.c (tfile_open): Constify.
1154
1155 2014-07-30  Tom Tromey  <tromey@redhat.com>
1156
1157         * breakpoint.c (map_breakpoint_numbers): Update.
1158         * cli/cli-utils.c (get_number_trailer): Make "pp" const.  Update.
1159         (get_number_const): New function.
1160         (get_number): Rewrite using get_number_const.
1161         (init_number_or_range): Make "string" const.
1162         (number_is_in_list): Make "list" const.
1163         * cli/cli-utils.h (get_number_const): Declare.
1164         (struct get_number_or_range_state) <string, end_ptr>: Now const.
1165         (init_number_or_range, number_is_in_list): Update.
1166         * printcmd.c (map_display_numbers): Update.
1167         * value.c (value_from_history_ref): Constify.
1168         * value.h (value_from_history_ref): Update.
1169
1170 2014-07-30  Tom Tromey  <tromey@redhat.com>
1171
1172         * corefile.c (hook_type, call_extra_exec_file_hooks)
1173         (specify_exec_file_hook): Constify.
1174         * exec.c (exec_file_attach): Make "filename" const.
1175         * gdbcore.h (deprecated_exec_file_display_hook)
1176         (specify_exec_file_hook, exec_file_attach): Constify.
1177         * main.c (captured_main): Use catch_command_errors_const.
1178
1179 2014-07-30  Tom Tromey  <tromey@redhat.com>
1180
1181         * target.c (open_target): New function.
1182         (add_target_with_completer, add_deprecated_target_alias): Use
1183         set_cmd_sfunc, set_cmd_context.
1184         (debug_to_open): Remove.
1185         (setup_target_debug): Update.
1186
1187 2014-07-30  Yao Qi  <yao@codesourcery.com>
1188
1189         * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1190         comments.
1191         * parse.c (exp_iterate): Update comments.
1192
1193 2014-07-30  Gary Benson  <gbenson@redhat.com>
1194
1195         * common/common-defs.h: New file.
1196         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1197         * defs.h: Include common-defs.h.
1198         Do not include config.h or build-gnulib/config.h.
1199
1200 2014-07-30  Gary Benson  <gbenson@redhat.com>
1201
1202         * common/common-utils.h: Do not include config.h.
1203         * nat/linux-btrace.h: Likewise.
1204
1205 2014-07-30  Gary Benson  <gbenson@redhat.com>
1206
1207         * btrace.c: Include defs.h.
1208         * common/ptid.c: Include defs.h or server.h as appropriate.
1209         * nat/mips-linux-watch.c: Likewise.
1210
1211 2014-07-29  Tom Tromey  <tromey@redhat.com>
1212
1213         * target.c (target_is_pushed): Simplify.
1214
1215 2014-07-29  Joel Brobecker  <brobecker@adacore.com>
1216
1217         GDB 7.8 released.
1218
1219 2014-07-29  Yao Qi  <yao@codesourcery.com>
1220
1221         PR gdb/17206
1222         * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1223
1224 2014-07-28  Doug Evans  <xdje42@gmail.com>
1225
1226         PR guile/17203
1227         * guile/scm-param.c (pascm_parameter_defined_p): New function.
1228         (gdbscm_register_parameter_x): Call it.  Raise error for pre-existing
1229         parameters.
1230
1231 2014-07-28  Will Newton  <will.newton@linaro.org>
1232
1233         * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1234         (THUMB2_SET_R7_SIGRETURN2): Likewise.
1235         (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1236         (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1237         (THUMB2_EABI_SYSCALL): Likewise.
1238         (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1239         struct tramp_frame.
1240         (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1241         (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1242
1243 2014-07-27  Doug Evans  <xdje42@gmail.com>
1244
1245         * guile/scm-param.c (pascm_print_param_smob): Fix output.
1246
1247 2014-07-27  Doug Evans  <xdje42@gmail.com>
1248
1249         * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1250
1251 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
1252             Doug Evans  <xdje42@gmail.com>
1253
1254         PR guile/17146
1255         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1256         (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1257         * configure.ac: Try to use guild to compile an scm file, if it fails
1258         then disable guile support.
1259         * configure: Regenerate.
1260         * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1261         GUILE_FILE_LIST.
1262         (GUILE_COMPILED_FILES): New variable.
1263         (GUILE_FILES) Update.
1264         (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1265         (stamp-guile): Compile scm files.
1266         * guile/guile.c (boot_guile_support): New function.
1267         (standard_throw_args_p): New function.
1268         (print_standard_throw_error, print_throw_error): New functions.
1269         (handle_boot_error): New function.
1270         (initialize_scheme_side): Rewrite to call boot_guile_support.
1271         * guile/lib/gdb/boot.scm: Update %load-compiled-path.  Load gdb.go.
1272         * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1273
1274 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
1275             Doug Evans  <xdje42@gmail.com>
1276
1277         PR guile/17146
1278         * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1279         * guile/lib/gdb/support.scm: New file.
1280         * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1281         * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1282         All uses updated.
1283         * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1284         All uses updated.
1285         (%assert-type): Ditto, and renamed to assert-type.
1286         (%exception-print-style): Delete.
1287
1288 2014-07-26  Doug Evans  <xdje42@gmail.com>
1289
1290         PR build/17105
1291         * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1292         * configure: Regenerate.
1293         * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1294         PYTHON_FILES.
1295         (PYTHON_FILES): New variable.
1296         (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1297         (GUILE_FILES): New variable.
1298         (stamp-python, install-python, uninstall-python): Handle empty
1299         file list.
1300         (stamp-guile, install-guile, uninstall-guile): Ditto.
1301
1302 2014-07-26  Doug Evans  <xdje42@gmail.com>
1303
1304         PR guile/17177
1305         * guile/lib/gdb.scm (pretty-printers): Export.
1306         (set-pretty-printers!): Export.
1307         * guile/lib/gdb/printing.scm (gdb module): Update.
1308         (prepend-pretty-printer!, append-pretty-printer!): Update.
1309         * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1310         (pretty_printer_list_var): Delete.
1311         (pretty_printer_list): New static global.
1312         (gdbscm_pretty_printers): New function.
1313         (gdbscm_set_pretty_printers_x): New function.
1314         (ppscm_find_pretty_printer_from_gdb): Update.
1315         (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1316         (gdbscm_initialize_pretty_printers): Update.
1317
1318 2014-07-26  Doug Evans  <xdje42@gmail.com>
1319
1320         PR 17185
1321         * configure.ac: Add check for header gc/gc.h.
1322         Add check for function setenv.
1323         * configure: Regenerate.
1324         * config.in: Regenerate.
1325         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1326
1327 2014-07-25  Maciej W. Rozycki  <macro@codesourcery.com>
1328
1329         * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1330         variation in gdbarch matching.
1331
1332 2014-07-25  Tom Tromey  <tromey@redhat.com>
1333
1334         * exec.c (using_exec_ops): Remove.
1335         (exec_close_1): Update.  Remove extraneous block, reindent.
1336         (add_target_sections): Use target_is_pushed.
1337
1338 2014-07-25  Pedro Alves  <palves@redhat.com>
1339
1340         * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1341         * monitor.c (monitor_create_inferior): Likewise.
1342         * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1343         * remote-sim.c (gdbsim_create_inferior): Likewise.
1344         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1345         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1346         * windows-nat.c (do_initial_windows_stuff): Likewise.
1347
1348 2014-07-25  Pedro Alves  <palves@redhat.com>
1349
1350         * NEWS: Mention signal passing and "signal" command changes.
1351         * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1352         comment.
1353         * breakpoint.c (until_break_command): Adjust clear_proceed_status
1354         call.
1355         * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1356         * infcmd.c (proceed_thread_callback, continue_1, step_once)
1357         (jump_command): Adjust clear_proceed_status call.
1358         (signal_command): Warn if other thread that are resumed have
1359         signals that will be delivered.  Adjust clear_proceed_status call.
1360         (until_next_command, finish_command)
1361         (proceed_after_attach_callback, attach_command_post_wait)
1362         (attach_command): Adjust clear_proceed_status call.
1363         * infrun.c (proceed_after_vfork_done): Likewise.
1364         (proceed_after_attach_callback): Adjust comment.
1365         (clear_proceed_status_thread): Clear stop_signal if not in pass
1366         state.
1367         (clear_proceed_status_callback): Delete.
1368         (clear_proceed_status): New 'step' parameter.  Only clear the
1369         proceed status of threads the command being prepared is about to
1370         resume.
1371         (proceed): If passed in an explicit signal, override stop_signal
1372         with it.  Don't pass the last stop signal to the thread we're
1373         resuming.
1374         (init_wait_for_inferior): Adjust clear_proceed_status call.
1375         (switch_back_to_stepped_thread): Clear the signal if it should not
1376         be passed.
1377         * infrun.h (clear_proceed_status): New 'step' parameter.
1378         (user_visible_resume_ptid): Add comment.
1379         * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1380         signal is in pass state.
1381         * remote.c (append_pending_thread_resumptions): Likewise.
1382         * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1383
1384 2014-07-25  Tom Tromey  <tromey@redhat.com>
1385
1386         * target.h (target_stopped_data_address)
1387         (target_watchpoint_addr_within_range): Use "->", not ".".  Fix
1388         parentheses.
1389
1390 2014-07-25  Pierre Langlois  <pierre.langlois@embecosm.com>
1391
1392         * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1393         comments.
1394         (avr_pointer_to_address): Likewise.
1395
1396 2014-07-24  Tom Tromey  <tromey@redhat.com>
1397
1398         * monitor.c (compile_pattern): Update.
1399         * target.h (struct target_ops) <to_shortname, to_longname,
1400         to_doc>: Now const.
1401
1402 2014-07-24  Tom Tromey  <tromey@redhat.com>
1403
1404         * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1405         (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1406         (add_info_alias, add_com): Make "doc" const.
1407         (print_doc_line): Make "str" const.
1408         (delete_cmd): Update.
1409         * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1410         (print_doc_line): Update.
1411         * cli/cli-script.c (document_command): Update.
1412         * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1413         (add_com, add_info, add_info_alias): Update.
1414         * guile/scm-cmd.c (cmdscm_destroyer): Update.
1415         * python/py-cmd.c (cmdpy_destroyer): Update.
1416
1417 2014-07-24  Tom Tromey  <tromey@redhat.com>
1418
1419         * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1420         (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1421         (help_cmd_list): Constify.
1422         (lookup_cmd): Update.
1423         * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1424         const.
1425         (help_cmd_list, apropos_cmd): Update.
1426         * cli/cli-script.c (show_user): Update.
1427         * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1428         * cli/cli-setshow.h (cmd_show_list): Update.
1429         * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1430         (cmd_show_list): Update.
1431         * guile/scm-cmd.c (cmdscm_destroyer): Update.
1432         * python/py-cmd.c (cmdpy_destroyer): Update.
1433
1434 2014-07-24  Tom Tromey  <tromey@redhat.com>
1435
1436         * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1437         * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1438         const.
1439         * command.h (deprecate_cmd): Update.
1440         * maint.c (maintenance_do_deprecate): Add casts.
1441
1442 2014-07-24  Tom Tromey  <tromey@redhat.com>
1443
1444         * cli/cli-decode.c (help_cmd): Make parameter "const".
1445         * cli/cli-decode.h (help_cmd): Update.
1446
1447 2014-07-24  Tom Tromey  <tromey@redhat.com>
1448
1449         * stack.c (up_silently_base, down_silently_base): Make argument
1450         const.
1451
1452 2014-07-24  Tom Tromey  <tromey@redhat.com>
1453
1454         * solib.c (solib_add): Make "pattern" const.
1455         * solib.h (solib_add): Update.
1456
1457 2014-07-24  Tom Tromey  <tromey@redhat.com>
1458
1459         * remote.c (remote_serial_open, print_packet, putpkt)
1460         (putpkt_binary): Constify.
1461         * remote.h (putpkt): Update.
1462
1463 2014-07-24  Tom Tromey  <tromey@redhat.com>
1464
1465         * monitor.c (monitor_open): Make "args" const.
1466         * monitor.h (monitor_open): Update.
1467
1468 2014-07-24  Tom Tromey  <tromey@redhat.com>
1469
1470         * maint.c (match_bfd_flags): Make "string" const.
1471         (print_bfd_section_info): Remove casts.
1472         (print_objfile_section_info): Make "string" const.
1473
1474 2014-07-24  Tom Tromey  <tromey@redhat.com>
1475
1476         * inf-child.c (inf_child_open_target): Make "arg" const.
1477         * inf-child.h (inf_child_open_target): Update.
1478
1479 2014-07-24  Tom Tromey  <tromey@redhat.com>
1480
1481         * environ.c (unset_in_environ): Make "var" const.
1482         * environ.h (unset_in_environ): Update.
1483
1484 2014-07-24  Tom Tromey  <tromey@redhat.com>
1485
1486         * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1487         Make "cmd" const.
1488         (scan_filename_with_cleanup): Likewise.
1489         (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1490         Make arguments const.
1491         (restore_command): Update.
1492
1493 2014-07-24  Pedro Alves  <palves@redhat.com>
1494
1495         * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1496
1497 2014-07-24  Tom Tromey  <tromey@redhat.com>
1498             Gary Benson  <gbenson@redhat.com>
1499
1500         * nat/linux-ptrace.c (additional_flags): New global.
1501         (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1502         additional_flags; don't check GDBSERVER.
1503         (linux_ptrace_set_additional_flags): New function.
1504         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1505         Declare.
1506         * linux-nat.c (_initialize_linux_nat): Call
1507         linux_ptrace_set_additional_flags.
1508
1509 2014-07-24  Tom Tromey  <tromey@redhat.com>
1510
1511         * make-target-delegates (munge_type, write_debugmethod): New
1512         functions.
1513         (debug_names): New global.
1514         ($TARGET_DEBUG_PRINTER): New global.
1515         (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1516         name.
1517         Write debug methods.  Generate init_debug_target.
1518         * target-debug.h: New file.
1519         * target-delegates.c: Rebuild.
1520         * target.c: Include target-debug.h.
1521         (debug_target): Hoist definition.
1522         (target_kill, target_get_section_table, target_memory_map)
1523         (target_flash_erase, target_flash_done, target_detach)
1524         (target_disconnect, target_wait, target_resume)
1525         (target_pass_signals, target_program_signals, target_follow_fork)
1526         (target_mourn_inferior, target_search_memory)
1527         (target_thread_address_space, target_close)
1528         (target_find_new_threads, target_core_of_thread)
1529         (target_verify_memory, target_insert_mask_watchpoint)
1530         (target_remove_mask_watchpoint): Remove targetdebug code.
1531         (debug_to_post_attach, debug_to_prepare_to_store)
1532         (debug_to_files_info, debug_to_insert_breakpoint)
1533         (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1534         (debug_to_region_ok_for_hw_watchpoint)
1535         (debug_to_can_accel_watchpoint_condition)
1536         (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1537         (debug_to_watchpoint_addr_within_range)
1538         (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1539         (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1540         (debug_to_terminal_init, debug_to_terminal_inferior)
1541         (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1542         (debug_to_terminal_save_ours, debug_to_terminal_info)
1543         (debug_to_load, debug_to_post_startup_inferior)
1544         (debug_to_insert_fork_catchpoint)
1545         (debug_to_remove_fork_catchpoint)
1546         (debug_to_insert_vfork_catchpoint)
1547         (debug_to_remove_vfork_catchpoint)
1548         (debug_to_insert_exec_catchpoint)
1549         (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1550         (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1551         (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1552         (setup_target_debug): Call init_debug_target.
1553         * target.h (TARGET_DEBUG_PRINTER): New macro.
1554         (struct target_ops) <to_resume, to_wait, to_pass_signals,
1555         to_program_signals>: Use TARGET_DEBUG_PRINTER.
1556
1557 2014-07-24  Gary Benson  <gbenson@redhat.com>
1558
1559         * exceptions.h (throw_vfatal): Renamed to...
1560         (throw_vquit): New declaration.
1561         (throw_quit): Likewise.
1562         * exceptions.c (throw_vfatal): Renamed to...
1563         (throw_vquit): New function.
1564         (throw_quit): Likewise.
1565         (throw_error): Call throw_verror rather than throw_it.
1566         * utils.h (vfatal): Removed.
1567         (fatal): Likewise.
1568         * utils.c (vfatal): Removed.
1569         (fatal): Likewise.
1570         (internal_verror): Replaced call to fatal with call to throw_quit.
1571         (quit): Replaced calls to fatal with calls to throw_quit.
1572
1573 2014-07-23  Ajit Agarwal <ajitkum@xilinx.com>
1574
1575         * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1576         target_read_code.
1577
1578 2014-07-23  Chen Gang <gang.chen.5i5j@gmail.com>
1579
1580         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1581         less than zero in conditional expression.
1582
1583 2014-07-23  Tom Tromey  <tromey@redhat.com>
1584
1585         * make-target-delegates ($ARGS_PART): Match trailing close paren.
1586         ($INTRO_PART): Don't match whitespace.
1587         ($METHOD_TRAILER): Move earlier.  Remove trailing semicolon and
1588         argument matching.
1589         ($METHOD): Add $METHOD_TRAILER.
1590         (trim): Rewrite.
1591         (scan_target_h): New sub.
1592         Change main loop not to collect state.
1593         * target-delegates.c: Rebuild.
1594
1595 2014-07-23  Gary Benson  <gbenson@redhat.com>
1596
1597         * cp-support.c (gdb_demangle): Fix build on systems without
1598         sigaltstack.
1599
1600 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
1601
1602         * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1603         for reference entry value target data value.
1604
1605 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
1606
1607         * stack.c (read_frame_arg): Verify value_optimized_out before calling
1608         value_available_contents_eq.
1609
1610 2014-07-22  Pedro Alves  <palves@redhat.com>
1611
1612         * value.c (allocate_optimized_out_value): Don't mark value as
1613         non-lazy.
1614
1615 2014-07-22  Jiong Wang  <jiong.wang@arm.com>
1616
1617         * MAINTAINERS (Write After Approval): Update my email address.
1618
1619 2014-07-20  Doug Evans  <dje@google.com>
1620
1621         PR server/17147
1622         * remote.c (putpkt_binary): Add text to error message.
1623
1624 2014-07-20  Yao Qi  <yao@codesourcery.com>
1625
1626         * eval.c: Remove "Chill" from comments.
1627         * gdbtypes.h: Likewise.
1628         * symtab.h: Likewise.
1629
1630 2014-07-20  Yao Qi  <yao@codesourcery.com>
1631
1632         * std-operator.def: Update comments to TERNOP_SLICE.
1633
1634 2014-07-20  Yao Qi  <yao@codesourcery.com>
1635
1636         * std-operator.def: Remove BINOP_RANGE.
1637         * breakpoint.c (watchpoint_exp_is_const): Update.
1638         * expprint.c (dump_subexp_body_standard): Likewise.
1639         * eval.c (init_array_element): Remove dead code.
1640         (evaluate_subexp_standard): Likewise.
1641
1642 2014-07-20  Yao Qi  <yao@codesourcery.com>
1643
1644         * std-operator.def: Remove BINOP_IN.
1645         * breakpoint.c (watchpoint_exp_is_const): Update.
1646         * eval.c (evaluate_subexp_standard): Likewise.
1647         * expprint.c (dump_subexp_body_standard): Likewise.
1648
1649 2014-07-19  Ajit Agarwal  <ajitkum@xilinx.com>
1650
1651         * microblaze-tdep.c (microblaze_register_names): Add
1652         the rshr and rslr register names.
1653         (microblaze_gdbarch_init): Use of tdesc_has_registers.
1654         Use of tdesc_find_feature. Use of tdesc_data_alloc.
1655         Use of tdesc_numbered_register. Use of
1656         microblaze_register_g_packet_guesses. Use of
1657         tdesc_use_registers. Use of set_gdbarch_register_type.
1658         (microblaze_register_g_packet_guesses): New.
1659         * microblaze-tdep.h (microblaze_reg_num): Add
1660         field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1661         MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1662         (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1663         * features/microblaze-core.xml: New file.
1664         * features/microblaze-stack-protect.xml: New file.
1665         * features/microblaze-with-stack-protect.c: New file.
1666         * features/microblaze-with-stack-protect.xml: New file.
1667         * features/microblaze.xml: New file.
1668         * features/microblaze.c: New file.
1669         * features/Makefile (microblaze-with-stack-protect): Add
1670         microblaze-with-stack-protect microblaze and microblaze-expedite.
1671         * regformats/microblaze-with-stack-protect.dat: New file.
1672         * regformats/microblaze.dat: New file.
1673         * doc/gdb.texinfo (MicroBlaze Features): Added.
1674
1675 2014-07-18  Tom Tromey  <tromey@redhat.com>
1676
1677         * exec.c (exec_ops): Now static.
1678         * exec.h (exec_ops): Don't declare.
1679
1680 2014-07-18  Tom Tromey  <tromey@redhat.com>
1681
1682         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1683         to find_target_beneath.
1684         * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1685         find_target_beneath.
1686         (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1687
1688 2014-07-18  Tom Tromey  <tromey@redhat.com>
1689
1690         PR gdb/17130:
1691         * utils.c (quit): Use target_supports_terminal_ours.
1692         * target.h (target_supports_terminal_ours): Declare.
1693         * target.c (target_supports_delete_record): Don't check
1694         to_delete_record against NULL.
1695         (target_supports_terminal_ours): New function.
1696
1697 2014-07-18  Tom Tromey  <tromey@redhat.com>
1698
1699         PR gdb/17130:
1700         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1701         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1702         (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1703         * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1704         * windows-nat.c (windows_xfer_partial): Always delegate.
1705         * record-btrace.c (record_btrace_xfer_partial): Simplify
1706         delegation.
1707         (record_btrace_fetch_registers, record_btrace_store_registers)
1708         (record_btrace_prepare_to_store, record_btrace_resume)
1709         (record_btrace_wait, record_btrace_find_new_threads)
1710         (record_btrace_thread_alive): Likewise.
1711         * procfs.c (procfs_xfer_partial): Always delegate.
1712         * corelow.c (core_xfer_partial): Always delegate.
1713         * sol-thread.c (sol_find_new_threads): Simplify delegation.
1714
1715 2014-07-18  Tom Tromey  <tromey@redhat.com>
1716
1717         * exec.c (exec_make_note_section): Move earlier.
1718
1719 2014-07-17  Doug Evans  <dje@google.com>
1720
1721         PR gdb/17170
1722         * maint.c (count_symtabs_and_blocks): Handle NULL
1723         current_program_space.
1724         (report_command_stats): Check global enabled flag in addition to
1725         recorded enabled flag.
1726         (make_command_stats_cleanup): Handle msg_type == 0, startup.
1727
1728 2014-07-16  Pedro Alves  <palves@redhat.com>
1729
1730         * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1731
1732 2014-07-16  Tom Tromey  <tromey@redhat.com>
1733
1734         * target.h (struct target_ops) <to_delete_record>: Reformat
1735         comment.
1736
1737 2014-07-16  Tom Tromey  <tromey@redhat.com>
1738
1739         * target-delegates.c: Rebuild.
1740
1741 2014-07-15  Pierre Langlois  <pierre.langlois@embecosm.com>
1742
1743         * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1744         (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1745         (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1746         (avr_pointer_to_address): Likewise.
1747         (avr_address_class_type_flags): New function.
1748         (avr_address_class_type_flags_to_name): Likewise.
1749         (avr_address_class_name_to_type_flags): Likewise.
1750         (avr_gdbarch_init): Set address_class_type_flags,
1751         address_class_type_flags_to_name and
1752         address_class_name_to_type_flags.
1753
1754 2014-07-15  Pedro Alves  <palves@redhat.com>
1755
1756         * linux-nat.c (kill_callback): Save errno and work with saved
1757         copy.
1758
1759 2014-07-15  Simon Marchi  <simon.marchi@ericsson.com>
1760
1761         * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1762
1763 2014-07-14  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
1764
1765         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1766         breakpoint support correctly.
1767
1768 2014-07-14  Pedro Alves  <palves@redhat.com>
1769
1770         * utils.c (prompt_for_continue): Call target_terminal_ours.
1771
1772 2014-07-14  Pedro Alves  <palves@redhat.com>
1773
1774         * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
1775         catch_errors.  Don't re-enable stdin or notify observers where,
1776         and rethrow error.
1777         (fetch_inferior_event_wrapper): Delete.
1778
1779 2014-07-14  Pedro Alves  <palves@redhat.com>
1780
1781         PR gdb/17072
1782         * top.c: Include "inf-loop.h".
1783         (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
1784         field.
1785         (gdb_readline_wrapper_cleanup): Make the target async again, if it
1786         was async before.
1787         (gdb_readline_wrapper): Store whether the target is async, and
1788         make it sync.
1789
1790 2014-07-14  Pedro Alves  <palves@redhat.com>
1791
1792         PR gdb/17072
1793         * top.c (gdb_readline_wrapper_line): Tweak comment.
1794         (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
1795         the input handler callback.
1796
1797 2014-07-14  Pedro Alves  <palves@redhat.com>
1798
1799         PR gdb/17072
1800         * main.c: Include event-top.h.
1801         (handle_command_errors): New function.
1802         (catch_command_errors, catch_command_errors_const): Use it.
1803
1804 2014-07-14  Pedro Alves  <palves@redhat.com>
1805
1806         * exceptions.c (catch_command_errors, catch_command_errors_const):
1807         Moved to main.c.
1808         * exceptions.h (catch_command_errors_ftype)
1809         (catch_command_errors_const_ftype): Moved to main.c.
1810         (catch_command_errors, catch_command_errors_const): Delete
1811         declarations.
1812         * main.c (catch_command_errors_ftype)
1813         (catch_command_errors_const_ftype): Moved here from exceptions.h.
1814         (catch_command_errors, catch_command_errors_const)): Moved here
1815         from exceptions.c and make static.
1816
1817 2014-07-14  Pedro Alves  <palves@redhat.com>
1818
1819         * exceptions.c (print_any_exception): Delete.
1820         (catch_exceptions_with_msg): Use exception_print instead of
1821         print_any_exception.
1822         (catch_errors): Use exception_fprintf instead of
1823         print_any_exception.
1824         (catch_command_errors, catch_command_errors_const): Use
1825         exception_print instead of print_any_exception.
1826
1827 2014-07-14  Pedro Alves  <palves@redhat.com>
1828
1829         * infcall.c (run_inferior_call): Set 'sync_execution' while
1830         running the inferior call.
1831
1832 2014-07-14  Pedro Alves  <palves@redhat.com>
1833
1834         * value.c (value_contents_equal): Delete function.
1835         * value.h (value_contents_equal): Delete declaration.
1836
1837 2014-07-14  Tom Tromey  <tromey@redhat.com>
1838
1839         PR exp/17106:
1840         * gdbtypes.c (is_dynamic_type_internal): New function, from
1841         is_dynamic_type.
1842         (is_dynamic_type): Rewrite.
1843         (resolve_dynamic_union): Use resolve_dynamic_type_internal.
1844         (resolve_dynamic_struct): Likewise.
1845         (resolve_dynamic_type_internal): New function, from
1846         resolve_dynamic_type.
1847         (resolve_dynamic_type): Rewrite.
1848
1849 2014-07-14  Tom Tromey  <tromey@redhat.com>
1850
1851         * target.c (target_require_runnable): Also check record_stratum.
1852         Update comment.
1853
1854 2014-07-11  Yao Qi  <yao@codesourcery.com>
1855
1856         * arm-tdep.c (thumb_analyze_prologue): Break the loop if
1857         thumb_instruction_restores_sp return true.
1858
1859 2014-07-11  Yao Qi  <yao@codesourcery.com>
1860
1861         * arm-tdep.c (thumb_instruction_restores_sp): New function.
1862         (thumb_in_function_epilogue_p): Call
1863         thumb_instruction_restores_sp.
1864
1865 2014-07-11  Yao Qi  <yao@codesourcery.com>
1866
1867         * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
1868         'add sp, #imm'.
1869         (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
1870
1871 2014-07-11  Gary Benson  <gbenson@redhat.com>
1872
1873         * amd64-linux-nat.c (gdbcore.h): Remove include.
1874         (regset.h): Likewise.
1875         (nat/linux-btrace.h): Likewise.
1876         (btrace.h): Likewise.
1877         (gdb_assert.h): Likewise.
1878         (string.h): Likewise.
1879         (sys/uio.h): Likewise.
1880         (sys/debugreg.h): Likewise.
1881         (sys/syscall.h): Likewise.
1882         (sys/procfs.h): Likewise.
1883         (sys/user.h): Likewise.
1884         (asm/ptrace.h): Likewise.
1885         (i386-nat.h): Likewise.
1886         * i386-linux-nat.c (i386-nat.h): Likewise.
1887         (regset.h): Likewise.
1888         (target.h): Likewise.
1889         (linux-nat.h): Likewise.
1890         (nat/linux-btrace.h): Likewise.
1891         (btrace.h): Likewise.
1892         (gdb_assert.h): Likewise.
1893         (string.h): Likewise.
1894         (sys/uio.h): Likewise.
1895         (sys/user.h): Likewise.
1896         (sys/procfs.h): Likewise.
1897         (sys/reg.h): Likewise.
1898         (sys/debugreg.h): Likewise.
1899         (ORIG_EAX): Remove definition.
1900
1901 2014-07-11  Gary Benson  <gbenson@redhat.com>
1902
1903         * i386-linux-nat.h: New file.
1904         * x86-linux-nat.h: Likewise.
1905         * x86-linux-nat.c: Likewise.
1906         * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
1907         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
1908         * config/i386/linux64.mh (NATDEPFILES): Likewise.
1909         * amd64-linux-nat.c (x86-linux-nat.h): New include.
1910         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1911         (PTRACE_SETREGSET): Likewise.
1912         (arch_lwp_info): Now in x86-linux-nat.c.
1913         (have_ptrace_getregset): Now in x86-linux-nat.h.
1914         (x86_linux_dr_get): Now in x86-linux-nat.c.
1915         (x86_linux_dr_set): Likewise.
1916         (x86_linux_dr_get_addr): Likewise.
1917         (x86_linux_dr_get_control): Likewise.
1918         (x86_linux_dr_get_status): Likewise.
1919         (update_debug_registers_callback): Likewise.
1920         (x86_linux_dr_set_control): Likewise.
1921         (x86_linux_dr_set_addr): Likewise.
1922         (x86_linux_prepare_to_resume): Likewise.
1923         (x86_linux_new_thread): Likewise.
1924         (x86_linux_new_fork): Likewise.
1925         (x86_linux_get_thread_area): Likewise.
1926         (super_post_startup_inferior): Likewise.
1927         (x86_linux_child_post_startup_inferior): Likewise.
1928         (AMD64_LINUX_USER64_CS): Likewise.
1929         (AMD64_LINUX_X32_DS): Likewise.
1930         (x86_linux_read_description): Likewise.
1931         (x86_linux_enable_btrace): Likewise.
1932         (x86_linux_disable_btrace): Likewise.
1933         (x86_linux_teardown_btrace): Likewise.
1934         (x86_linux_read_btrace): Likewise.
1935         (x86_linux_create_target): Likewise.
1936         (x86_linux_add_target): Likewise.
1937         * i386-linux-nat.c (x86-linux-nat.h): New include.
1938         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1939         (PTRACE_SETREGSET): Likewise.
1940         (arch_lwp_info): Now in x86-linux-nat.c.
1941         (have_ptrace_getregset): Now in x86-linux-nat.h.
1942         (x86_linux_dr_get): Now in x86-linux-nat.c.
1943         (x86_linux_dr_set): Likewise.
1944         (x86_linux_dr_get_addr): Likewise.
1945         (x86_linux_dr_get_control): Likewise.
1946         (x86_linux_dr_get_status): Likewise.
1947         (update_debug_registers_callback): Likewise.
1948         (x86_linux_dr_set_control): Likewise.
1949         (x86_linux_dr_set_addr): Likewise.
1950         (x86_linux_prepare_to_resume): Likewise.
1951         (x86_linux_new_thread): Likewise.
1952         (x86_linux_new_fork): Likewise.
1953         (x86_linux_get_thread_area): Likewise.
1954         (super_post_startup_inferior): Likewise.
1955         (x86_linux_child_post_startup_inferior): Likewise.
1956         (AMD64_LINUX_USER64_CS): Likewise.
1957         (AMD64_LINUX_X32_DS): Likewise.
1958         (x86_linux_read_description): Likewise.
1959         (x86_linux_enable_btrace): Likewise.
1960         (x86_linux_disable_btrace): Likewise.
1961         (x86_linux_teardown_btrace): Likewise.
1962         (x86_linux_read_btrace): Likewise.
1963         (x86_linux_create_target): Likewise.
1964         (x86_linux_add_target): Likewise.
1965
1966 2014-07-11  Gary Benson  <gbenson@redhat.com>
1967
1968         * amd64-linux-nat.c: Comment and whitespace changes.
1969         * i386-linux-nat.c: Comment and whitespace changes.
1970
1971 2014-07-11  Gary Benson  <gbenson@redhat.com>
1972
1973         * amd64-linux-nat.c (x86_linux_create_target): New function.
1974         (x86_linux_add_target): Likewise.
1975         (_initialize_amd64_linux_nat): Delegate to the above new functions.
1976         * i386-linux-nat.c (x86_linux_create_target): New function.
1977         (x86_linux_add_target): Likewise.
1978         (_initialize_i386_linux_nat): Delegate to the above new functions.
1979
1980 2014-07-11  Gary Benson  <gbenson@redhat.com>
1981
1982         * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
1983         (ps_get_thread_area): Delegate to the above in 32-bit mode.
1984         * i386-linux-nat.c (x86_linux_get_thread_area): New function.
1985         (ps_get_thread_area): Delegate to the above.
1986
1987 2014-07-11  Gary Benson  <gbenson@redhat.com>
1988
1989         * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
1990         x86_linux_read_description.  All uses updated.  amd64-specific
1991         code conditionalized.  Conditionalized i386-specific code added.
1992         Redundant cast removed.
1993         * i386-linux-nat.c (i386_linux_read_description): Renamed to
1994         x86_linux_read_description.  All uses updated.  i386-specific
1995         code conditionalized.  Conditionalized amd64-specific code added.
1996         One sizeof replaced with the actual type it is describing.
1997
1998 2014-07-11  Gary Benson  <gbenson@redhat.com>
1999
2000         * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2001         x86_linux_dr_get.  All uses updated.
2002         (amd64_linux_dr_set): Renamed to
2003         x86_linux_dr_set.  All uses updated.
2004         (amd64_linux_dr_get_addr): Renamed to
2005         x86_linux_dr_get_addr.  All uses updated.
2006         (amd64_linux_dr_get_control): Renamed to
2007         x86_linux_dr_get_control.  All uses updated.
2008         (amd64_linux_dr_get_status): Renamed to
2009         x86_linux_dr_get_status.  All uses updated.
2010         (amd64_linux_dr_set_control): Renamed to
2011         x86_linux_dr_set_control.  All uses updated.
2012         (amd64_linux_dr_set_addr): Renamed to
2013         x86_linux_dr_set_addr.  All uses updated.
2014         (amd64_linux_prepare_to_resume): Renamed to
2015         x86_linux_prepare_to_resume.  All uses updated.
2016         (amd64_linux_new_thread): Renamed to
2017         x86_linux_new_thread.  All uses updated.
2018         (amd64_linux_new_fork): Renamed to
2019         x86_linux_new_fork.  All uses updated.
2020         (amd64_linux_child_post_startup_inferior): Renamed to
2021         x86_linux_child_post_startup_inferior.  All uses updated.
2022         (amd64_linux_enable_btrace): Renamed to
2023         x86_linux_enable_btrace.  All uses updated.
2024         (amd64_linux_disable_btrace): Renamed to
2025         x86_linux_disable_btrace.  All uses updated.
2026         (amd64_linux_teardown_btrace): Renamed to
2027         x86_linux_teardown_btrace.  All uses updated.
2028         (amd64_linux_read_btrace): Renamed to
2029         x86_linux_read_btrace.  All uses updated.
2030         * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2031         x86_linux_dr_get.  All uses updated.
2032         (i386_linux_dr_set): Renamed to
2033         x86_linux_dr_set.  All uses updated.
2034         (i386_linux_dr_get_addr): Renamed to
2035         x86_linux_dr_get_addr.  All uses updated.
2036         (i386_linux_dr_get_control): Renamed to
2037         x86_linux_dr_get_control.  All uses updated.
2038         (i386_linux_dr_get_status): Renamed to
2039         x86_linux_dr_get_status.  All uses updated.
2040         (i386_linux_dr_set_control): Renamed to
2041         x86_linux_dr_set_control.  All uses updated.
2042         (i386_linux_dr_set_addr): Renamed to
2043         x86_linux_dr_set_addr.  All uses updated.
2044         (i386_linux_prepare_to_resume): Renamed to
2045         x86_linux_prepare_to_resume.  All uses updated.
2046         (i386_linux_new_thread): Renamed to
2047         x86_linux_new_thread.  All uses updated.
2048         (i386_linux_new_fork): Renamed to
2049         x86_linux_new_fork.  All uses updated.
2050         (i386_linux_child_post_startup_inferior): Renamed to
2051         x86_linux_child_post_startup_inferior.  All uses updated.
2052         (i386_linux_enable_btrace): Renamed to
2053         x86_linux_enable_btrace.  All uses updated.
2054         (i386_linux_disable_btrace): Renamed to
2055         x86_linux_disable_btrace.  All uses updated.
2056         (i386_linux_teardown_btrace): Renamed to
2057         x86_linux_teardown_btrace.  All uses updated.
2058         (i386_linux_read_btrace): Renamed to
2059         x86_linux_read_btrace.  All uses updated.
2060
2061 2014-07-11  Adrian Sendroiu  <adrian.sendroiu@freescale.com>
2062
2063         * remote.c (extended_remote_post_attach): New function.
2064         (init_extended_remote_ops): Install it as to_post_attach method.
2065
2066 2014-07-09  Pedro Alves  <palves@redhat.com>
2067
2068         * infcmd.c (attach_command_post_wait): Don't call
2069         target_terminal_inferior here.
2070         (attach_command): Call it here instead.
2071
2072 2014-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
2073
2074         * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2075         field.
2076         * c-varobj.c (c_is_path_expr_parent): New function, moved core
2077         from varobj.c, with additional checks.
2078         (c_varobj_ops): Fill in is_path_expr_parent field.
2079         (cplus_varobj_ops): Fill in is_path_expr_parent field.
2080         * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2081         field.
2082         * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2083         ops method.
2084         (varobj_default_is_path_expr_parent): New function.
2085         * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2086         (varobj_default_is_path_expr_parent): Declare new function.
2087
2088 2014-07-08  Markus Metzger  <markus.t.metzger@intel.com>
2089
2090         * infcmd.c (finish_backward): Turn internal error into normal error.
2091
2092 2014-07-07  Pedro Alves  <palves@redhat.com>
2093
2094         PR gdb/17096
2095         * remote.c (async_handle_remote_sigint)
2096         (async_handle_remote_sigint_twice): Call
2097         gdb_call_async_signal_handler instead of
2098         mark_async_signal_handler.
2099
2100 2014-07-07  Tom Tromey  <tromey@redhat.com>
2101
2102         * target-delegates.c: Rebuild.
2103         * target.c (target_info_record): Remove.
2104         * record.c (info_record_command): Unconditionally call
2105         to_info_record.
2106         * target.h (struct target_ops) <to_info_record>: Use
2107         TARGET_DEFAULT_IGNORE.
2108         (target_info_record): Remove.
2109
2110 2014-07-07  Tom Tromey  <tromey@redhat.com>
2111
2112         * target.h (struct target_ops) <to_get_thread_local_address>: Use
2113         TARGET_DEFAULT_NORETURN.
2114         * target.c (generic_tls_error): New function.
2115         (target_translate_tls_address): Don't search target stack.
2116         * target-delegates.c: Rebuild.
2117         * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2118         stack.
2119         * linux-thread-db.c (thread_db_get_thread_local_address):
2120         Unconditionally call beneath target.
2121
2122 2014-07-03  Marc Khouzam  <marc.khouzam@ericsson.com>
2123
2124         * cli/cli-logging.c (pop_output_files): Assign targerr to
2125         gdb_stdtargerr.
2126
2127 2014-07-03  Andrew Burgess  <andrew.burgess@embecosm.com>
2128
2129         * MAINTAINERS (Write After Approval): Update my email address.
2130
2131 2014-07-02  Gary Benson  <gbenson@redhat.com>
2132
2133         * proc-service.c (ps_xfer_memory): Update comment.
2134         (ps_pstop): Remove unused function.
2135         (ps_pcontinue): Likewise.
2136         (ps_lstop): Likewise.
2137         (ps_lcontinue): Likewise.
2138         (ps_lgetxregsize): Likewise.
2139         (ps_lgetxregs): Likewise.
2140         (ps_lsetxregs): Likewise.
2141         (ps_plog): Likewise.
2142         (ps_ptread): Likewise.
2143         (ps_ptwrite): Likewise.
2144
2145 2014-07-01  Mark Wielaard  <mjw@redhat.com>
2146
2147         * dwarf2read.c (add_array_cv_type): New function.
2148         (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2149         (read_tag_volatile_type): Likewise.
2150
2151 2014-07-01  Tom Tromey  <tromey@redhat.com>
2152
2153         * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2154         * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2155         * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2156         (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2157         * command.h (cmd_cfunc_ftype): Move earlier.
2158         (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2159         (add_com, add_info): Use cmd_cfunc_ftype.
2160
2161 2014-06-30  Tom Tromey  <tromey@redhat.com>
2162
2163         * symtab.c (operator_chars): Make parameters and return type
2164         const.
2165         (file_matches): Make "files" const.
2166         (struct search_symbols_data) <files>: Now const.
2167         (search_symbols): Make "regexp" and "files" parameters const.
2168         Update.
2169         (symtab_symbol_info): Remove cast.
2170         (rbreak_command): Update.
2171         * symtab.h (search_symbols): Update.
2172
2173 2014-06-27  Yao Qi  <yao@codesourcery.com>
2174
2175         * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2176         Change parameter type to 'struct thread_info *'.  Caller
2177         updated.
2178         * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2179         Update declaration.
2180         * dummy-frame.c (struct dummy_frame_id): New.
2181         (dummy_frame_id_eq): New function.
2182         (struct dummy_frame) <id>: Change its type to 'struct
2183         dummy_frame_id'.
2184         (dummy_frame_push): Add parameter ptid and save it in
2185         dummy_frame_id.
2186         (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2187         inferior_ptid.
2188         (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2189         to inferior_ptid.
2190         (lookup_dummy_frame): Change parameter type to 'struct
2191         dummy_frame_id *'.  Callers updated.  Call dummy_frame_id_eq
2192         instead of frame_id_eq.
2193         (dummy_frame_pop): Add parameter ptid.  Callers updated.
2194         Update comments.  Compose dummy_frame_id and pass it to
2195         lookup_dummy_frame.
2196         (dummy_frame_discard): Add parameter ptid.
2197         (dummy_frame_sniffer): Compose dummy_frame_id and call
2198         dummy_frame_id_eq instead of frame_id_eq.
2199         (fprint_dummy_frames): Print ptid.
2200         * dummy-frame.h: Remove comments.
2201         (dummy_frame_push): Add ptid in declaration.
2202         (dummy_frame_pop, dummy_frame_discard): Likewise.
2203
2204 2014-06-26  Tom Tromey  <tromey@redhat.com>
2205
2206         * cli/cli-cmds.c (error_no_arg): Make "why" const.
2207         * command.h (error_no_arg): Update.
2208
2209 2014-06-26  Tom Tromey  <tromey@redhat.com>
2210
2211         * cli/cli-setshow.c (do_set_command): Make "arg" const.
2212         (do_show_command): Make "arg" const.
2213         * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2214
2215 2014-06-26  Tom Tromey  <tromey@redhat.com>
2216
2217         * record-full.c (record_full_get_bookmark): Make "args" const.
2218         (record_full_goto_bookmark): Make "raw_bookmark" const.
2219         * record.c (record_goto): New function.
2220         (cmd_record_goto): Use it.  Now static.
2221         * record.h (record_goto): Declare.
2222         (cmd_record_goto): Remove declaration.
2223         * target-delegates.c: Rebuild.
2224         * target.h (struct target_ops) <to_get_bookmark,
2225         to_goto_bookmark>: Make parameter const.
2226
2227 2014-06-26  Tom Tromey  <tromey@redhat.com>
2228
2229         * defs.h (generic_load): Update.
2230         * m32r-rom.c (m32r_load_gen): Make "filename" const.
2231         * monitor.c (monitor_load): Make "args" const.
2232         * remote-m32r-sdi.c (m32r_load): Make "args" const.
2233         * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2234         const.
2235         (mips_load): Make "file" const.
2236         * remote-sim.c (gdbsim_load): Make "args" const.
2237         * remote.c (remote_load): Make "name" const.
2238         * symfile.c (generic_load): Make "args" const.
2239         * target-delegates.c: Rebuild.
2240         * target.c (target_load): Make "arg" const.
2241         (debug_to_load): Make "args" const.
2242         * target.h (struct target_ops) <to_load>: Make parameter const.
2243         (target_load): Update.
2244
2245 2014-06-26  Tom Tromey  <tromey@redhat.com>
2246
2247         PR symtab/16902:
2248         * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2249         (dwarf2_physname, read_partial_die)
2250         (guess_partial_die_structure_name, fixup_partial_die)
2251         (guess_full_die_structure_name, anonymous_struct_prefix)
2252         (dwarf2_name): Use per-BFD obstack.
2253
2254 2014-06-26  Yao Qi  <yao@codesourcery.com>
2255
2256         * dummy-frame.c (dummy_frame_sniffer): Move local variables
2257         dummyframe and this_id into inner block below.
2258
2259 2014-06-26  Yao Qi  <yao@codesourcery.com>
2260
2261         * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2262         with "signal_pass[0]" in the initialization of signal_pass.
2263
2264 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
2265
2266         * record-btrace.c (record_btrace_generating_corefile)
2267         (record_btrace_prepare_to_generate_core)
2268         (record_btrace_done_generating_core): New.
2269         (record_btrace_xfer_partial, record_btrace_fetch_registers)
2270         (record_btrace_store_registers, record_btrace_prepare_to_store):
2271         Forward request when generating a core file.
2272         (record_btrace_open): Set record_btrace_generating_corefile to zero.
2273         (init_record_btrace_ops): Set to_prepare_to_generate_core and
2274         to_done_generating_core.
2275
2276 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
2277
2278         * target.h (target_ops) <to_prepare_to_generate_core>
2279         <to_done_generating_core>: New.
2280         (target_prepare_to_generate_core, target_done_generating_core): New.
2281         * target.c (target_prepare_to_generate_core)
2282         (target_done_generating_core): New.
2283         * target-delegates.c: Regenerate.
2284         * gcore.c: (write_gcore_file): Rename to ...
2285         (write_gcore_file_1): ...this.
2286         (write_gcore_file): Call target_prepare_to_generate_core
2287         and target_done_generating_core.
2288
2289 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
2290
2291         * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2292         * gcore.c (write_gcore_file): Free memory returned from
2293         make_corefile_notes.
2294         * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2295         * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2296
2297 2014-06-24  Yao Qi  <yao@codesourcery.com>
2298
2299         * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2300         (arm_linux_init_abi): Set skip_trampoline_code with
2301         gdbarch_skip_trampoline_code instead of
2302         find_solib_trampoline_target.
2303
2304 2014-06-24  Yao Qi  <yao@codesourcery.com>
2305
2306         * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2307         arm_skip_bx_reg returns non-zero.
2308
2309 2014-06-24  Yao Qi  <yao@codesourcery.com>
2310
2311         * arm-tdep.c (arm_skip_bx_reg): New function.
2312         (arm_skip_stub): Call arm_skip_bx_reg.
2313
2314 2014-06-23  Don Breazeal  <donb@codesourcery.com>
2315
2316         * MAINTAINERS: Add myself as write-after-approval maintainer.
2317
2318 2014-06-23  Pedro Alves  <palves@redhat.com>
2319
2320         * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2321         DR_CONTROL before setting DR0..DR3.
2322         * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2323         * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2324         bits of DR_CONTROL related to the debug register slot being
2325         disabled.  If all slots are vacant, clear local slowdown as well,
2326         and assert DR_CONTROL is 0.
2327
2328 2014-06-23  Siva Chandra Reddy  <sivachandra@google.com>
2329
2330         * python/lib/gdb/command/xmethods.py
2331         (get_method_matchers_in_loci):  Lookup xmethod matchers in the
2332         current progspace only if the string "progspace" matches LOCUS_RE.
2333
2334 2014-06-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
2335
2336         Fix --with-system-readline with readline-6.3 patch 5.
2337         * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2338         (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2339         types.
2340
2341 2014-06-20  Tom Tromey  <tromey@redhat.com>
2342
2343         * dwarf2read.c (dw2_get_real_path): Use correct type in
2344         OBSTACK_CALLOC.
2345         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2346
2347 2014-06-20  Gary Benson  <gbenson@redhat.com>
2348
2349         * common/gdb_thread_db.h: Moved to nat.  All includes updated.
2350         * common/glibc_thread_db.h: Likewise.
2351         * common/i386-cpuid.h: Likewise.
2352         * common/i386-gcc-cpuid.h: Likewise.
2353         * common/linux-btrace.h: Likewise.
2354         * common/linux-osdata.h: Likewise.
2355         * common/linux-procfs.h: Likewise.
2356         * common/linux-ptrace.h: Likewise.
2357         * common/mips-linux-watch.h: Likewise.
2358         * common/linux-btrace.c: Moved to nat.
2359         * common/linux-osdata.c: Likewise.
2360         * common/linux-procfs.c: Likewise.
2361         * common/linux-ptrace.c: Likewise.
2362         * common/mips-linux-watch.c: Likewise.
2363         * nat/gdb_thread_db.h: Moved from common.
2364         * nat/glibc_thread_db.h: Likewise.
2365         * nat/i386-cpuid.h: Likewise.
2366         * nat/i386-gcc-cpuid.h: Likewise.
2367         * nat/linux-btrace.c: Likewise.
2368         * nat/linux-btrace.h: Likewise.
2369         * nat/linux-osdata.c: Likewise.
2370         * nat/linux-osdata.h: Likewise.
2371         * nat/linux-procfs.c: Likewise.
2372         * nat/linux-procfs.h: Likewise.
2373         * nat/linux-ptrace.c: Likewise.
2374         * nat/linux-ptrace.h: Likewise.
2375         * nat/mips-linux-watch.c: Likewise.
2376         * nat/mips-linux-watch.h: Likewise.
2377         * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2378         (object file files): Reordered.
2379         * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2380         of glibc_thread_db.h.
2381
2382 2014-06-20  Gary Benson  <gbenson@redhat.com>
2383
2384         * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2385         (i386_dr_low_type): Moved to nat/i386-dregs.h.
2386         (i386_dr_low): Likewise.
2387         (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2388         (i386_dr_low_set_addr): Likewise.
2389         (i386_dr_low_get_addr): Likewise.
2390         (i386_dr_low_can_set_control): Likewise.
2391         (i386_dr_low_set_control): Likewise.
2392         (i386_dr_low_get_control): Likewise.
2393         (i386_dr_low_get_status): Likewise.
2394         (i386_get_debug_register_length): Likewise.
2395         * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2396         (i386_dr_low): Likewise.
2397         * nat/i386-dregs.c (i386-low.h): Remove include.
2398         (i386-nat.h): Likewise.
2399         (nat/i386-dregs.h): New include.
2400         (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2401         (i386_dr_low_set_addr): Likewise.
2402         (i386_dr_low_get_addr): Likewise.
2403         (i386_dr_low_can_set_control): Likewise.
2404         (i386_dr_low_set_control): Likewise.
2405         (i386_dr_low_get_control): Likewise.
2406         (i386_dr_low_get_status): Likewise.
2407         (i386_get_debug_register_length): Likewise.
2408         (debug_hw_points): Likewise.
2409
2410 2014-06-19  Iain Buclaw  <ibuclaw@gdcproject.org>
2411
2412         * Makefile.in (SFILES): Add d-exp.y.
2413         (YYFILES): Add d-exp.c.
2414         (YYOBJ): Add d-exp.o.
2415         (local-maintainer-clean): Delete d-exp.c.
2416         * d-exp.y: New file.
2417         * d-lang.h (d_parse): New declaration.
2418         (d_error): New declaration.
2419         * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2420         Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2421         PREC_ORDER operators.
2422         (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2423
2424 2014-06-19  Yao Qi  <yao@codesourcery.com>
2425
2426         * gdbthread.h (any_running): Remove the declaration.
2427         * thread.c (any_running): Remove.
2428
2429 2014-06-19  Yao Qi  <yao@codesourcery.com>
2430
2431         * gdbthread.h (struct thread_info) <state>: Change its type to
2432         'enum thread_state'.  Update comments.
2433
2434 2014-06-19  Pedro Alves  <palves@redhat.com>
2435
2436         * gdbthread.h (ALL_THREADS): Delete.
2437         (ALL_NON_EXITED_THREADS): New macro.
2438         * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2439         instead of ALL_THREADS.
2440         * infrun.c (find_thread_needs_step_over)
2441         (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2442         instead of ALL_THREADS.
2443         * record-btrace.c (record_btrace_open)
2444         (record_btrace_stop_recording, record_btrace_close)
2445         (record_btrace_is_replaying, record_btrace_resume)
2446         (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2447         * remote.c (append_pending_thread_resumptions): Likewise.
2448         * thread.c (thread_apply_all_command): Likewise.
2449
2450 2014-06-19  Gary Benson  <gbenson@redhat.com>
2451
2452         * i386-nat.c (i386_stopped_by_watchpoint):
2453         Use i386_dr_stopped_by_watchpoint.
2454         (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2455         (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2456
2457 2014-06-19  Gary Benson  <gbenson@redhat.com>
2458
2459         * nat/i386-dregs.c: New file.
2460         * Makefile.in (i386-dregs.o): New rule.
2461         * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2462         * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2463         * config/i386/darwin.mh (NATDEPFILES): Likewise.
2464         * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2465         * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2466         * config/i386/go32.mh (NATDEPFILES): Likewise.
2467         * config/i386/linux.mh (NATDEPFILES): Likewise.
2468         * config/i386/linux64.mh (NATDEPFILES): Likewise.
2469         * config/i386/mingw.mh (NATDEPFILES): Likewise.
2470         * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2471         * i386-nat.h (debug_hw_points): New declaration.
2472         * i386-nat.c (breakpoint.h): Remove include.
2473         (command.h): Likewise.
2474         (target.h): Likewise.
2475         (gdb_assert.h): Likewise.
2476         (debug_hw_points): Made nonstatic.
2477         (debug_printf): Now in i386-dregs.c.
2478         (TARGET_HAS_DR_LEN_8): Likewise.
2479         (DR_CONTROL_SHIFT): Likewise.
2480         (DR_CONTROL_SIZE): Likewise.
2481         (DR_RW_EXECUTE): Likewise.
2482         (DR_RW_WRITE): Likewise.
2483         (DR_RW_READ): Likewise.
2484         (DR_RW_IORW): Likewise.
2485         (DR_LEN_1): Likewise.
2486         (DR_LEN_2): Likewise.
2487         (DR_LEN_4): Likewise.
2488         (DR_LEN_8): Likewise.
2489         (DR_LOCAL_ENABLE_SHIFT): Likewise.
2490         (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2491         (DR_ENABLE_SIZE): Likewise.
2492         (DR_LOCAL_SLOWDOWN): Likewise.
2493         (DR_GLOBAL_SLOWDOWN): Likewise.
2494         (DR_CONTROL_RESERVED): Likewise.
2495         (I386_DR_CONTROL_MASK): Likewise.
2496         (I386_DR_VACANT): Likewise.
2497         (I386_DR_LOCAL_ENABLE): Likewise.
2498         (I386_DR_GLOBAL_ENABLE): Likewise.
2499         (I386_DR_DISABLE): Likewise.
2500         (I386_DR_SET_RW_LEN): Likewise.
2501         (I386_DR_GET_RW_LEN): Likewise.
2502         (I386_DR_WATCH_HIT): Likewise.
2503         (i386_wp_op_t): Likewise.
2504         (i386_show_dr): Likewise.
2505         (i386_length_and_rw_bits): Likewise.
2506         (i386_insert_aligned_watchpoint): Likewise.
2507         (i386_remove_aligned_watchpoint): Likewise.
2508         (i386_handle_nonaligned_watchpoint): Likewise.
2509         (i386_update_inferior_debug_regs): Likewise.
2510         (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2511         (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2512         (i386_region_ok_for_watchpoint):
2513         Use i386_dr_region_ok_for_watchpoint.
2514         (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2515
2516 2014-06-19  Gary Benson  <gbenson@redhat.com>
2517
2518         * i386-nat.c (i386_insert_hw_breakpoint): Use
2519         i386_insert_watchpoint.
2520         (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2521
2522 2014-06-19  Gary Benson  <gbenson@redhat.com>
2523
2524         * i386-nat.c (i386_dr_show): Renamed to
2525         i386_show_dr and made static.  All uses updated.
2526         (i386_dr_length_and_rw_bits): Renamed to
2527         i386_length_and_rw_bits and made static.
2528         All uses updated.
2529         (i386_dr_insert_aligned_watchpoint): Renamed to
2530         i386_insert_aligned_watchpoint and made static.
2531         All uses updated.
2532         (i386_dr_remove_aligned_watchpoint): Renamed to
2533         i386_remove_aligned_watchpoint and made static.
2534         All uses updated.
2535         (i386_dr_update_inferior_debug_regs): Renamed to
2536         i386_update_inferior_debug_regs and made static.
2537         All uses updated.
2538         * nat/i386-dregs.h (i386_dr_show): Removed.
2539         (i386_dr_length_and_rw_bits): Likewise.
2540         (i386_dr_insert_aligned_watchpoint): Likewise.
2541         (i386_dr_remove_aligned_watchpoint): Likewise.
2542         (i386_dr_update_inferior_debug_regs): Likewise.
2543
2544 2014-06-19  Gary Benson  <gbenson@redhat.com>
2545
2546         * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2547         * configure: Regenerate.
2548         * config.in: Likewise.
2549         * main.c (signal.h): New include.
2550         (setup_alternate_signal_stack): New function.
2551         (captured_main): Call the above.
2552         * cp-support.c (signal.h): New include.
2553         (catch_demangler_crashes): New flag.
2554         (SIGJMP_BUF): New define.
2555         (SIGSETJMP): Likewise.
2556         (SIGLONGJMP): Likewise.
2557         (gdb_demangle_jmp_buf): New static global.
2558         (gdb_demangle_attempt_core_dump): Likewise.
2559         (gdb_demangle_signal_handler): New function.
2560         (gdb_demangle): If catch_demangler_crashes is set, install the
2561         above signal handler before calling bfd_demangle, and restore
2562         the original signal handler afterwards.  Display the offending
2563         symbol and call demangler_warning the first time a segmentation
2564         fault is caught.
2565         (_initialize_cp_support): New maint set/show command.
2566
2567 2014-06-19  Gary Benson  <gbenson@redhat.com>
2568
2569         * utils.h (resource_limit_kind): New enum.
2570         (can_dump_core): New declaration.
2571         (warn_cant_dump_core): Likewise.
2572         (dump_core): Likewise.
2573         * utils.c (dump_core): Made nonstatic.  Added new
2574         parameter "limit_kind".
2575         (can_dump_core): Made nonstatic. Moved printing code to...
2576         (warn_cant_dump_core): New function.
2577         (can_dump_core_warn): Likewise.
2578         (internal_vproblem): Replace calls to can_dump_core with
2579         calls to can_dump_core_warn.  Supply new argument to each.
2580
2581 2014-06-19  Gary Benson  <gbenson@redhat.com>
2582
2583         * utils.h (demangler_vwarning): New declaration.
2584         (demangler_warning): Likewise.
2585         * utils.c (struct internal_problem)
2586         <user_settable_should_quit>: New field.
2587         <user_settable_should_dump_core>: Likewise
2588         (internal_error_problem): Add values for above new fields.
2589         (internal_warning_problem): Likewise.
2590         (demangler_warning_problem): New static global.
2591         (demangler_vwarning): New function.
2592         (demangler_warning): Likewise.
2593         (add_internal_problem_command): Selectively add commands.
2594         (_initialize_utils): New internal problem command.
2595         * maint.c (maintenance_demangler_warning): New function.
2596         (_initialize_maint_cmds): New command.
2597
2598 2014-06-18  Tom Tromey  <tromey@redhat.com>
2599
2600         * f-valprint.c (info_common_command_for_block): Update.
2601         * symtab.h (struct general_symbol_info) <common_block>: Now
2602         const.
2603
2604 2014-06-18  Tom Tromey  <tromey@redhat.com>
2605
2606         * symtab.h (struct symtab) <blockvector>: Now const.
2607         * ada-lang.c (ada_add_global_exceptions): Update.
2608         * buildsym.c (augment_type_symtab): Update.
2609         * dwarf2read.c (dw2_lookup_symbol): Update.
2610         * jit.c (finalize_symtab): Update.
2611         * jv-lang.c (add_class_symtab_symbol): Update.
2612         * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2613         Update.
2614         * objfiles.c (objfile_relocate1): Update.
2615         * psymtab.c (lookup_symbol_aux_psymtabs)
2616         (maintenance_check_psymtabs): Update.
2617         * python/py-symtab.c (stpy_global_block, stpy_static_block):
2618         Update.
2619         * spu-tdep.c (spu_catch_start): Update.
2620         * symmisc.c (dump_symtab_1): Update.
2621         * symtab.c (lookup_global_symbol_from_objfile)
2622         (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2623         (basic_lookup_transparent_type_quick)
2624         (basic_lookup_transparent_type, find_pc_sect_symtab)
2625         (find_pc_sect_line, search_symbols): Update.
2626         * block.c (find_block_in_blockvector): Make "bl" const.
2627         (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2628         const.
2629         (blockvector_contains_pc): Make "bv" const.
2630         (block_for_pc_sect): Update.
2631         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2632         (blockvector_contains_pc): Update.
2633         * breakpoint.c (resolve_sal_pc): Update.
2634         * inline-frame.c (block_starting_point_at): Update.
2635
2636 2014-06-18  Tom Tromey  <tromey@redhat.com>
2637
2638         * completer.c (complete_line): Make "line_buffer" const.
2639         * completer.h (complete_line): Update.
2640
2641 2014-06-18  Tom Tromey  <tromey@redhat.com>
2642
2643         * symtab.c (add_macro_name): Remove unneeded cast.
2644
2645 2014-06-18  Tom Tromey  <tromey@redhat.com>
2646
2647         * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2648         * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2649
2650 2014-06-18  Tom Tromey  <tromey@redhat.com>
2651
2652         * probe.c (info_probes_for_ops): Make "arg" const.
2653         * probe.h (info_probes_for_ops): Update.
2654
2655 2014-06-18  Tom Tromey  <tromey@redhat.com>
2656
2657         * varobj.c (varobj_create): Update.
2658         * valops.c (value_of_this): Update.
2659         * tracepoint.c (add_local_symbols, scope_info): Update.
2660         * symtab.h (struct general_symbol_info) <block>: Now const.
2661         * symtab.c (skip_prologue_sal)
2662         (default_make_symbol_completion_list_break_on)
2663         (skip_prologue_using_sal): Update.
2664         * stack.h (iterate_over_block_locals)
2665         (iterate_over_block_local_vars): Update.
2666         * stack.c (print_frame_args): Update.
2667         (iterate_over_block_locals, iterate_over_block_local_vars): Make
2668         parameter const.
2669         (get_selected_block): Make return type const.
2670         * python/py-frame.c (frapy_block): Update.
2671         * python/py-block.c (gdbpy_block_for_pc): Update.
2672         * p-exp.y (%union) <bval>: Now const.
2673         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2674         * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2675         * m2-exp.y (%union) <bval>: Now const.
2676         * linespec.c (get_current_search_block): Make return type const.
2677         (create_sals_line_offset, find_label_symbols): Update.
2678         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2679         Update.
2680         (block_starting_point_at): Make "block" const.
2681         * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2682         (check_exception_resume): Update.
2683         * guile/scm-frame.c (gdbscm_frame_block): Update.
2684         * guile/scm-block.c (gdbscm_lookup_block): Update.
2685         * frame.h (get_frame_block): Update.
2686         (get_selected_block): Make return type const.
2687         * frame.c (frame_id_inner): Update.
2688         * f-valprint.c (info_common_command_for_block)
2689         (info_common_command): Update.
2690         * dwarf2loc.c (dwarf2_find_location_expression)
2691         (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2692         (locexpr_describe_location_piece): Update.
2693         * c-exp.y (%union) <bval>: Now const.
2694         * breakpoint.c (resolve_sal_pc): Update.
2695         * blockframe.c (get_frame_block):Make return type const.
2696         (get_pc_function_start, get_frame_function, find_pc_sect_function)
2697         (block_innermost_frame): Update.
2698         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2699         (block_for_pc, block_for_pc_sect): Update.
2700         * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2701         'pblock' const.
2702         (block_for_pc_sect, block_for_pc): Make return type const.
2703         * ax-gdb.c (gen_expr): Update.
2704         * alpha-mdebug-tdep.c (find_proc_desc): Update.
2705         * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2706         (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2707         (ada_read_var_value): Update.
2708         * ada-exp.y (struct name_info) <block>: Now const.
2709         (%union): Likewise.
2710         (block_lookup): Constify.
2711
2712 2014-06-18  Gary Benson  <gbenson@redhat.com>
2713
2714         * nat/i386-dregs.h: New file.
2715         * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2716         * i386-nat.h (i386-dregs.h): New include.
2717         (DR_FIRSTADDR): Now in i386-dregs.h.
2718         (DR_LASTADDR): Likewise.
2719         (DR_NADDR): Likewise.
2720         (DR_STATUS): Likewise.
2721         (DR_CONTROL): Likewise.
2722         (i386_debug_reg_state): Likewise.
2723         * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2724
2725 2014-06-18  Don Breazeal  <donb@codesourcery.com>
2726
2727         * breakpoint.c (set_longjmp_breakpoint): Call
2728         momentary_breakpoint_from_master with additional argument.
2729         (set_longjmp_breakpoint_for_call_dummy): Call
2730         momentary_breakpoint_from_master with additional argument.
2731         (set_std_terminate_breakpoint): Call
2732         momentary_breakpoint_from_master with additional argument.
2733         (momentary_breakpoint_from_master): Add argument to function
2734         definition and use it to initialize structure member flag.
2735         (clone_momentary_breakpoint): Call
2736         momentary_breakpoint_from_master with additional argument.
2737         * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2738         member flags set in momentary_breakpoint_from_master.
2739
2740 2014-06-18  Gary Benson  <gbenson@redhat.com>
2741
2742         * i386-nat.c (i386_show_dr): Renamed to
2743         i386_dr_show and made nonstatic.  All uses updated.
2744         (i386_length_and_rw_bits): Renamed to
2745         i386_dr_length_and_rw_bits and made nonstatic.
2746         All uses updated.
2747         (i386_insert_aligned_watchpoint): Renamed to
2748         i386_dr_insert_aligned_watchpoint and made nonstatic.
2749         All uses updated.
2750         (i386_remove_aligned_watchpoint): Renamed to
2751         i386_dr_remove_aligned_watchpoint and made nonstatic.
2752         All uses updated.
2753         (i386_update_inferior_debug_regs): Renamed to
2754         i386_dr_update_inferior_debug_regs and made nonstatic.
2755         All uses updated.
2756
2757 2014-06-18  Gary Benson  <gbenson@redhat.com>
2758
2759         * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2760         (i386_dr_low_can_set_control): Likewise.
2761         (i386_dr_low_set_addr): Likewise.
2762         (i386_dr_low_set_control): Likewise.
2763         (i386_dr_low_get_addr): Likewise.
2764         (i386_dr_low_get_status): Likewise.
2765         (i386_dr_low_get_control): Likewise.
2766         (i386_insert_aligned_watchpoint): Use new macros.
2767         (i386_update_inferior_debug_regs): Likewise.
2768         (i386_stopped_data_address): Likewise.
2769
2770 2014-06-18  Gary Benson  <gbenson@redhat.com>
2771
2772         * i386-nat.c (i386_update_inferior_debug_regs) <state>:
2773         New parameter.  All uses updated.
2774
2775 2014-06-18  Gary Benson  <gbenson@redhat.com>
2776
2777         * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
2778         All uses updated.
2779
2780 2014-06-18  Gary Benson  <gbenson@redhat.com>
2781
2782         * i386-nat.c (debug_printf): New macro.
2783         (i386_get_debug_register_length): Likewise.
2784         (TARGET_HAS_DR_LEN_8): Use above macro.
2785         (i386_show_dr): Use debug_printf instead of puts_unfiltered
2786         and printf_unfiltered.  Use phex to format values.
2787
2788 2014-06-18  Gary Benson  <gbenson@redhat.com>
2789
2790         * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
2791         Make const.
2792
2793 2014-06-18  Gary Benson  <gbenson@redhat.com>
2794
2795         * i386-nat.c: Comment changes.
2796
2797 2014-06-18  Gary Benson  <gbenson@redhat.com>
2798
2799         * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
2800
2801 2014-06-18  Gary Benson  <gbenson@redhat.com>
2802
2803         * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
2804         (i386_insert_aligned_watchpoint): Likewise.
2805         (i386_remove_aligned_watchpoint): Likewise.
2806         (i386_handle_nonaligned_watchpoint): Likewise.
2807
2808 2014-06-18  Gary Benson  <gbenson@redhat.com>
2809
2810         * i386-nat.c: Whitespace changes.
2811
2812 2014-06-17  Samuel Bronson  <naesten@gmail.com>
2813
2814         * MAINTAINERS: Update Roland McGrath's email address.
2815         Thanks to Sergio Durigan Junior for pointing out that he left
2816         Red Hat a while ago, and giving me a current address.
2817
2818 2014-06-17  Tom Tromey  <tromey@redhat.com>
2819
2820         * utils.h (savestring): Remove declaration.
2821
2822 2014-06-17  Tom Tromey  <tromey@redhat.com>
2823
2824         * remote.c (extended_remote_run): Use make_cleanup_freeargv.
2825
2826 2014-06-16  Keith Seitz  <keiths@redhat.com>
2827
2828         PR mi/15863
2829         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
2830         to update the varobj if inferior_ptid is null_ptid.
2831
2832 2014-06-16  Tom Tromey  <tromey@redhat.com>
2833
2834         * target.h (struct target_ops) <to_info_proc>: Make parameter
2835         const.
2836         (target_info_proc): Update.
2837         * target.c (target_info_proc): Make "args" const.
2838         * procfs.c (procfs_info_proc): Update.
2839         * linux-tdep.c (linux_info_proc): Update.
2840         (linux_core_info_proc_mappings): Make "args" const.
2841         (linux_core_info_proc): Update.
2842         * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
2843         * gdbarch.c: Rebuild.
2844         * gdbarch.h: Rebuild.
2845         * corelow.c (core_info_proc): Update.
2846
2847 2014-06-16  Tom Tromey  <tromey@redhat.com>
2848
2849         * target.h (struct target_ops) <to_disconnect>: Make parameter
2850         const.
2851         (target_disconnect): Update.
2852         * target.c (target_disconnect): Make "args" const.
2853         * target-delegates.c: Rebuild.
2854         * remote.c (remote_disconnect): Update.
2855         * record.h (record_disconnect): Update.
2856         * record.c (record_disconnect): Update.
2857         * inf-child.c (inf_child_disconnect): Update.
2858
2859 2014-06-16  Tom Tromey  <tromey@redhat.com>
2860
2861         * target.h (struct target_ops) <to_rcmd>: Make "command" const.
2862         * target.c (debug_to_rcmd, default_rcmd): Update.
2863         * target-delegates.c: Rebuild.
2864         * remote.c (remote_rcmd): Update.
2865         * monitor.c (monitor_rcmd): Update.
2866
2867 2014-06-16  Pedro Alves  <palves@redhat.com>
2868
2869         * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
2870         (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
2871         have OBJF_SHARED set.
2872         * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
2873         (shared_objfile_contains_address_p): ... this.  Check OBJF_SHARED
2874         instead of OBJF_USERLOADED.
2875         * objfiles.h (OBJF_SHARED): Update comment.
2876         (userloaded_objfile_contains_address_p): Rename to ...
2877         (shared_objfile_contains_address_p): ... this, and update
2878         comments.
2879         * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
2880         new objfile.
2881         (remove_symbol_file_command): Skip objfiles that don't have
2882         OBJF_SHARED set.
2883
2884 2014-06-16  Tom Tromey  <tromey@redhat.com>
2885
2886         * minsyms.h (prim_record_minimal_symbol)
2887         (prim_record_minimal_symbol_and_info): Update comments.
2888
2889 2014-06-14  Eli Zaretskii  <eliz@gnu.org>
2890
2891         * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
2892         or --without-guile, according to how GDB was built.
2893
2894 2014-06-13  Tom Tromey  <tromey@redhat.com>
2895
2896         * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
2897         to help_list.
2898         * guile/guile.c (info_guile_command): Pass all_commands, not -1,
2899         to help_list.
2900         * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
2901         help_list.
2902         * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
2903         help_list.Pass all_commands, not -1, to help_list.
2904         * cli/cli-dump.c (dump_command, append_command)
2905         (srec_dump_command, ihex_dump_command, tekhex_dump_command)
2906         (binary_dump_command, binary_append_command): Pass all_commands,
2907         not -1, to help_list.
2908         * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
2909         -1, to help_list.
2910         * valprint.c (set_print, set_print_raw): Pass all_commands, not
2911         -1, to help_list.
2912         * typeprint.c (set_print_type): Pass all_commands, not -1, to
2913         help_list.
2914         * top.c (set_history): Pass all_commands, not -1, to help_list.
2915         * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
2916         all_commands, not -1, to help_list.
2917         * symfile.c (overlay_command): Pass all_commands, not -1, to
2918         help_list.
2919         * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
2920         help_list.
2921         * serial.c (serial_set_cmd): Pass all_commands, not -1, to
2922         help_list.
2923         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
2924         -1, to help_list.
2925         * remote.c (remote_command, set_remote_cmd): Pass all_commands,
2926         not -1, to help_list.
2927         * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
2928         not -1, to help_list.
2929         * maint.c (maintenance_command, maintenance_info_command)
2930         (maintenance_print_command, maintenance_set_cmd): Pass
2931         all_commands, not -1, to help_list.
2932         * macrocmd.c (macro_command): Pass all_commands, not -1, to
2933         help_list.
2934         * language.c (set_check): Pass all_commands, not -1, to help_list.
2935         * infcmd.c (unset_command): Pass all_commands, not -1, to
2936         help_list.
2937         * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
2938         help_list.
2939         * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
2940         help_list.
2941         * dcache.c (set_dcache_command): Pass all_commands, not -1, to
2942         help_list.
2943         * breakpoint.c (save_command): Pass all_commands, not -1, to
2944         help_list.
2945         * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
2946         all_commands, not -1, to help_list.
2947
2948 2014-06-12  Pierre Langlois  <pierre.langlois@embecosm.com>
2949
2950         * regcache.c (struct register_to_invalidate): New structure.
2951         (do_register_invalidate, make_cleanup_regcache_invalidate): New
2952         functions.
2953         (regcache_raw_write): Call make_cleanup_regcache_invalidate.
2954
2955 2014-06-12  Yao Qi  <yao@codesourcery.com>
2956
2957         * varobj.c (varobj_get_num_children): Call
2958         varobj_is_dynamic_p.
2959         (varobj_list_children): Likewise.
2960         (varobj_update): Likewise.  Update comments.
2961
2962 2014-06-12  Yao Qi  <yao@codesourcery.com>
2963
2964         * varobj.c (varobj_pretty_printed_p): Rename to ...
2965         (varobj_is_dynamic_p): ... this.  New function.
2966         * varobj.h (varobj_pretty_printed_p): Remove declaration.
2967         (varobj_is_dynamic_p): Declare.
2968         * mi/mi-cmd-var.c (print_varobj): All callers updated.
2969         (mi_print_value_p, varobj_update_one): Likewise.
2970
2971 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
2972             Yao Qi  <yao@codesourcery.com>
2973
2974         * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
2975         (varobj_get_iterator): Wrap up code for pretty-printer by
2976         "#if HAVE_PYTHON" and "#endif".
2977         (update_dynamic_varobj_children): Likewise.
2978
2979 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
2980             Yao Qi  <yao@codesourcery.com>
2981
2982         * python/py-varobj.c (py_varobj_iter_next): Return NULL if
2983         gdb_python_initialized is false.  Move some code from varobj.c.
2984         * varobj-iter.h (struct varobj_item): Moved from varobj.c.
2985         * varobj.c: Move "varobj-iter.h" inclusion earlier.
2986         (struct varobj_item): Moved to varobj-iter.h".
2987         (varobj_clear_saved_item): New function.
2988         (update_dynamic_varobj_children): Move python-related code to
2989         py-varobj.c.
2990         (free_variable): Call varobj_clear_saved_item and
2991         varobj_iter_delete.
2992
2993 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
2994             Yao Qi  <yao@codesourcery.com>
2995
2996         * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
2997         (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
2998         (HFILES_NO_SRCDIR): Add "varobj-iter.h".
2999         (py-varobj.o): New rule.
3000         * python/py-varobj.c: New file.
3001         * python/python-internal.h (py_varobj_get_iterator): Declare.
3002         * varobj-iter.h: New file.
3003         * varobj.c: Include "varobj-iter.h"
3004         (struct varobj) <child_iter>: Change its type from "PyObject *"
3005         to "struct varobj_iter *".
3006         <saved_item>: Likewise.
3007         [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3008         [HAVE_PYTHON] (varobj_get_iterator): New function.
3009         (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3010         python-specific code to python/py-varobj.c.
3011         (install_visualizer): Call varobj_iter_delete instead of
3012         Py_XDECREF.
3013         * varobj.h (varobj_ensure_python_env): Declare.
3014
3015 2014-06-12  Yao Qi  <yao@codesourcery.com>
3016
3017         * varobj.c (struct varobj_item): New structure.
3018         (create_child_with_value): Update declaration.
3019         (varobj_add_child): Replace arguments 'name' and 'value' with
3020         'item'.  All callers updated.
3021         (install_dynamic_child): Likewise.
3022         (update_dynamic_varobj_children): Likewise.
3023         (varobj_add_child): Likewise.
3024         (create_child_with_value): Likewise.
3025
3026 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
3027
3028         * NEWS: Create a new section for the next release branch.
3029         Rename the section of the current branch, now that it has
3030         been cut.
3031
3032 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
3033
3034         GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3035         * version.in: Bump version to 7.8.50.DATE-cvs.
3036
3037 2014-06-11  Pedro Alves  <palves@redhat.com>
3038
3039         PR remote/17028
3040         * ser-mingw.c (net_windows_socket_check_pending): New function.
3041         (net_windows_select_thread): Ignore spurious wakeups.  Use
3042         net_windows_socket_check_pending.
3043         (net_windows_wait_handle): Check for pending events with
3044         ioctlsocket, through net_windows_socket_check_pending, instead of
3045         checking the socket's event.
3046
3047 2014-06-10  Siva Chandra Reddy  <sivachandra@google.com>
3048
3049         * python/python-internal.h (gdb_PyObject_GetAttrString)
3050         (gdb_PyObject_HasAttrString): New inline function definitions.
3051         * py-value.c (get_field_flag): Remove the now unnecessary cast to
3052         char * of the second argument to PyObject_GetAttrString.
3053
3054 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
3055
3056         * serial.c (serial_write): Fix index of character to be printed
3057         in call to serial_logchar when serial debug traces are enabled.
3058
3059 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
3060
3061         * gdbtypes (resolve_dynamic_range): Add function description.
3062
3063 2014-06-09  Pedro Alves  <palves@redhat.com>
3064
3065         * linux-nat.c (linux_child_follow_fork): Initialize status with
3066         W_STOPCODE (0) instead of 0.  Remove shodowing 'status' local from
3067         inner block.  Only pass the signal to PTRACE_DETACH if in pass
3068         state.
3069
3070 2014-06-09  Gary Benson  <gbenson@redhat.com>
3071
3072         * common/signals.c (gdb_signal_from_host): Reorder to separate
3073         the always-available ANSI-standard signals from the signals that
3074         require checking.
3075         (do_gdb_signal_to_host): Likewise.
3076         * proc-events.c (signal_table): Likewise.
3077
3078 2014-06-08  Hui Zhu  <hui@codesourcery.com>
3079
3080         * common/linux-ptrace.c (linux_disable_event_reporting): New
3081         function.
3082         * common/linux-ptrace.h (linux_disable_event_reporting): New
3083         declaration.
3084         * linux-nat.c (linux_child_follow_fork): Do a single step before
3085         detach.
3086
3087 2014-06-07  Keith Seitz  <keiths@redhat.com>
3088
3089         Revert:
3090         PR c++/16253
3091         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3092         from symbol_matches_domain in symtab.c. All local callers
3093         of symbol_matches_domain updated.
3094         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3095         search STRUCT_DOMAIN.
3096         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3097         independently.  standard_lookup will do that automatically.
3098         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3099         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3100         (cp_lookup_symbol_in_namespace): Likewise.
3101         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3102         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3103         may return a STRUCT_DOMAIN match.
3104         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3105         * cp-support.c: Include language.h.
3106         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3107         VAR_DOMAIN.
3108         * psymtab.c (match_partial_symbol): Compare the requested
3109         domain with the symbol's domain directly.
3110         (lookup_partial_symbol): Likewise.
3111         * symtab.c (lookup_symbol_in_language): Explain when/why
3112         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3113         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3114         appropriate languages.
3115         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3116         and moved to ada-lang.c
3117         (lookup_block_symbol): Explain that this function only returns
3118         symbol matching the requested DOMAIN.
3119         Compare the requested domain with the symbol's domain directly.
3120         (iterate_over_symbols): Compare the requested domain with the
3121         symbol's domain directly.
3122         * symtab.h (symbol_matches_domain): Remove.
3123
3124 2014-06-06  Doug Evans  <xdje42@gmail.com>
3125
3126         * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3127         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3128         (gdbscm_guile_version_is_at_least): Declare.
3129         (gdbscm_scm_string_to_int): Declare.
3130         * guile/guile.c (gdbscm_guile_major_version): New global.
3131         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3132         (guile_datadir): New static global.
3133         (gdbscm_guile_data_directory): New function.
3134         (initialize_scheme_side): Update.
3135         (misc_guile_functions): Add guile-data-directory.
3136         (initialize_gdb_module): Fetch guile version number.
3137         * guile/lib/gdb.scm: Remove call to add-to-load-path.
3138         * guile/lib/gdb/init.scm (%initialize!): Ditto.
3139         * guile/lib/gdb/boot.scm: Use guile-data-directory.
3140         * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3141         comments.
3142         * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3143         * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3144         * guile/scm-value.c (gdbscm_value_to_string): Only call
3145         scm_port_conversion_strategy if Guile version >= 2.0.6.
3146
3147 2014-06-06  Mingjie Xing  <mingjie.xing@gmail.com>
3148
3149         * main.c (print_gdb_help): Add -q and --silent.
3150
3151 2014-06-06  Gary Benson  <gbenson@redhat.com>
3152
3153         * common/signals.c: Remove preprocessor conditionals for
3154         always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3155         SIGSEGV and SIGTERM.
3156         * proc-events.c: Likewise.
3157
3158 2014-06-06  Markus Metzger  <markus.t.metzger@intel.com>
3159
3160         * symfile.c (symfile_free_objfile): Remove restriction to
3161         OBJF_USERLOADED.
3162         * symfile-mem.c (symbol_file_add_from_memory): Call
3163         add_target_sections_of_objfile.
3164
3165 2014-06-05  Ludovic Courtès  <ludo@gnu.org>
3166
3167         * guile/scm-value.c (gdbscm_history_append_x): Use
3168         'vlscm_get_value_smob_arg_unsafe' instead of
3169         'vlscm_scm_to_value'.
3170
3171 2014-06-05  Simon Marchi  <simon.marchi@ericsson.com>
3172
3173         PR mi/15806
3174         * utils.c (printchar): Don't escape at all if quoter is NUL.
3175         Update function documentation to clarify effect of parameter
3176         QUOTER.
3177         * remote.c (escape_buffer): Pass '\\' as the quoter to
3178         fputstrn_unfiltered.
3179         * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3180         generate the output.
3181         (mi_solib_unloaded): Same.
3182
3183 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
3184
3185         * development.sh: Delete.
3186         * Makefile.in (config.status): Adjust dependency on development.sh.
3187         * configure.ac: Adjust development.sh source call.
3188         * configure: Regenerate.
3189
3190 2014-06-04  Doug Evans  <xdje42@gmail.com>
3191
3192         * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3193         is_scheme_bkpt, spec.
3194         (bpscm_make_breakpoint_smob): Initialize new members.
3195         (gdbscm_create_breakpoint_x): Split into two ...
3196         (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3197         (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3198         (scheme_function breakpoint_functions): Update.
3199         * guile/lib/gdb.scm: Delete create-breakpoint!.  Rename
3200         breakpoint-delete! to delete-breakpoint!.  Add make-breakpoint,
3201         register-breakpoint!.
3202
3203 2014-06-04  Joel Brobecker  <brobecker@adacorer.com>
3204
3205         PR server/17023
3206         * mem-break.c (z_type_supported): Return zero if
3207         THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3208
3209 2014-06-04  Tom Tromey  <tromey@redhat.com>
3210
3211         * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3212         value_from_contents_and_address_unresolved.
3213         (ada_template_to_fixed_record_type_1): Likewise.
3214         (ada_which_variant_applies): Likewise.
3215         * value.h (value_from_contents_and_address_unresolved): Declare.
3216         * value.c (value_from_contents_and_address_unresolved): New
3217         function.
3218         * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3219         <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3220         (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3221
3222 2014-06-04  Tom Tromey  <tromey@redhat.com>
3223
3224         * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3225
3226 2014-06-04  Tom Tromey  <tromey@redhat.com>
3227
3228         * procfs.c (procfs_attach): Make "args" const.
3229         * windows-nat.c (windows_attach): Make "args" const.
3230         * nto-procfs.c (procfs_attach): Make "args" const.
3231         * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3232         * go32-nat.c (go32_attach): Make "args" const.
3233         * gnu-nat.c (gnu_attach): Make "args" const.
3234         * darwin-nat.c (darwin_attach): Make "args" const.
3235         * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3236         * linux-nat.c (linux_nat_attach): Make "args" const.
3237         * remote.c (extended_remote_attach_1, extended_remote_attach):
3238         Make "args" const.
3239         * target.h (struct target_ops) <to_attach>: Make "args" const.
3240         (find_default_attach): Likewise.
3241         * utils.c (parse_pid_to_attach): Make "args" const.
3242         * utils.h (parse_pid_to_attach): Update.
3243
3244 2014-06-04  Tom Tromey  <tromey@redhat.com>
3245
3246         * target-delegates.c: Rebuild.
3247         * target.c (default_thread_address_space): New function.
3248         (target_thread_address_space): Simplify.
3249         * target.h (struct target_ops) <to_thread_address_space>: Add
3250         TARGET_DEFAULT_FUNC.
3251
3252 2014-06-04  Doug Evans  <xdje42@gmail.com>
3253
3254         * guile/scm-type.c (type_smob): Remove duplicate typedef.
3255
3256 2014-06-04  Markus Metzger  <markus.t.metzger@intel.com>
3257
3258         * record-btrace.c: Include event-loop.h and inf-loop.h.
3259         (record_btrace_resume_exec_dir)
3260         (record_btrace_async_inferior_event_handler)
3261         (record_btrace_handle_async_inferior_event): New.
3262         (record_btrace_open): Create async event handler.
3263         (record_btrace_close): Delete async event handler.
3264         (record_btrace_resume): Set record_btrace_resume_exec_dir,
3265         Mark async event handler.
3266         (record_btrace_execution_direction): New.
3267         (init_record_btrace_ops): Initialize to_execution_direction.
3268
3269 2014-06-03  Doug Evans  <xdje42@gmail.com>
3270
3271         * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3272         (gdbscm_make_parameter): Ditto.
3273
3274 2014-06-03  Doug Evans  <dje@google.com>
3275
3276         * exec.c (exec_close_1): Call clear_section_table instead of
3277         resize_section_table.
3278         (clear_section_table): New function.
3279         (resize_section_table): Make static.  Rename arg num_added to
3280         adjustment.
3281         * exec.h (clear_section_table): Declare.
3282         (resize_section_table): Delete.
3283         * progspace.c (release_program_space): Call clear_section_table
3284         instead of resize_section_table.
3285
3286 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
3287
3288         * NEWS (Python Scripting): Add entry about the new xmethods
3289         feature.
3290
3291 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
3292
3293         * python/py-xmethods.c: New file.
3294         * python/py-objfile.c (objfile_object): New field 'xmethods'.
3295         (objfpy_dealloc): XDECREF on the new xmethods field.
3296         (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3297         field.
3298         (objfpy_get_xmethods): New function.
3299         (objfile_getset): New entry 'xmethods'.
3300         * python/py-progspace.c (pspace_object): New field 'xmethods'.
3301         (pspy_dealloc): XDECREF on the new xmethods field.
3302         (pspy_new, pspace_to_pspace_object): Initialize xmethods
3303         field.
3304         (pspy_get_xmethods): New function.
3305         (pspace_getset): New entry 'xmethods'.
3306         * python/python-internal.h: Add declarations for new functions.
3307         * python/python.c (_initialize_python): Invoke
3308         gdbpy_initialize_xmethods.
3309         * python/lib/gdb/__init__.py (xmethods): New
3310         attribute.
3311         * python/lib/gdb/xmethod.py: New file.
3312         * python/lib/gdb/command/xmethods.py: New file.
3313
3314 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
3315
3316         * eval.c (evaluate_subexp_standard): Call the xmethod if the
3317         best match method returned by find_overload_match is an xmethod.
3318         * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3319         the best matching operator returned by find_overload_match is an
3320         xmethod.
3321         * valops.c: #include "extension.h".
3322         (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3323         Return void.  The list of matching source methods is returned in
3324         "fn_list" and a vector of matching debug method workers is
3325         returned in "xm_worker_vec".  Update all callers.
3326         (value_find_oload_method_list): Likewise.
3327         (find_oload_champ): Add "xm_worker_vec" parameter.  If it is
3328         non-NULL, then the index of the best matching method in this
3329         vector is returned.  Update all callers.
3330         (find_overload_match): Include xmethods while performing overload
3331         resolution.
3332
3333 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
3334
3335         * defs.h (enum lval_type): New enumerator "lval_xcallable".
3336         * extension-priv.h (struct extension_language_ops): Add the
3337         xmethod interface.
3338         * extension.c (new_xmethod_worker, clone_xmethod_worker,
3339         get_matching_xmethod_workers, get_xmethod_argtypes,
3340         invoke_xmethod, free_xmethod_worker,
3341         free_xmethod_worker_vec): New functions.
3342         * extension.h: #include "common/vec.h".
3343         New function declarations.
3344         (struct xmethod_worker): New struct.
3345         (VEC (xmethod_worker_ptr)): New vector type.
3346         (xmethod_worker_ptr): New typedef.
3347         (xmethod_worker_vec): Likewise.
3348         * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3349         builtin_type.
3350         * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3351         (struct builtin_type): New field "xmethod".
3352         * valarith.c (value_ptradd): Assert that the value argument is not
3353         lval_xcallable.
3354         * valops.c (value_must_coerce_to_target): Return 0 for
3355         lval_xcallable values.
3356         * value.c (struct value): New field XM_WORKER in the field
3357         LOCATION.
3358         (value_address, value_raw_address): Return 0 for lval_xcallable
3359         values.
3360         (set_value_address): Assert that the value is not an
3361         lval_xcallable.
3362         (value_free): Free the associated xmethod worker when freeing
3363         lval_xcallable values.
3364         (set_value_component_location): Assert that the WHOLE value is not
3365         lval_xcallable.
3366         (value_of_xmethod, call_xmethod): New functions.
3367         * value.h: Declare "struct xmethod_worker".
3368         Declare new functions value_of_xmethod, call_xmethod.
3369
3370 2014-06-03  Joel Brobecker  <brobecker@adacore.com>
3371             Pedro Alves  <palves@redhat.com>
3372
3373         PR breakpoints/17000
3374         * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3375         New function, extracted from software_breakpoint_inserted_here_p.
3376         (software_breakpoint_inserted_here_p): Replace factored out code
3377         by call to find_non_raw_software_breakpoint_inserted_here.
3378         (bp_target_info_copy_insertion_state): New function.
3379         (bkpt_insert_location): Handle the case of a single-step
3380         breakpoint already inserted at the same address.
3381         (bkpt_remove_location): Handle the case of a single-step
3382         breakpoint still inserted at the same address.
3383         (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3384         breakpoint already inserted at the same address.
3385         (deprecated_remove_raw_breakpoint): Handle the case of a
3386         non-raw breakpoint still inserted at the same address.
3387         (find_single_step_breakpoint): New function, extracted from
3388         single_step_breakpoint_inserted_here_p.
3389         (find_single_step_breakpoint): New function,
3390         factored out from single_step_breakpoint_inserted_here_p.
3391         (single_step_breakpoint_inserted_here_p): Reimplement.
3392
3393 2014-06-03  Brad Mouring  <bmouring@ni.com>  (tiny patch)
3394
3395         Pushed by Joel Brobecker  <brobecker@adacore.com>
3396         * source.c (show_substitute_path_command): Fix display of matching
3397         substitution rules.
3398
3399 2014-06-03  Gary Benson  <gbenson@redhat.com>
3400
3401         * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3402
3403 2014-06-02  Doug Evans  <xdje42@gmail.com>
3404
3405         Add parameter support for Guile.
3406         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3407         (SUBDIR_GUILE_SRCS): Add scm-param.c.
3408         (scm-param.o): New rule.
3409         * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3410         (gdbscm_misc_error): Declare.
3411         (gdbscm_canonicalize_command_name): Declare.
3412         (gdbscm_scm_to_host_string): Declare.
3413         (gdbscm_scm_from_host_string): Declare.
3414         (gdbscm_initialize_parameters): Declare.
3415         * guile/guile.c (initialize_gdb_module): Call
3416         gdbscm_initialize_parameters.
3417         * guile/lib/gdb.scm: Export parameter symbols.
3418         * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3419         cmdscm_canonicalize_name and made public.  All callers updated.
3420         * guile/scm-exception.c (gdbscm_misc_error): New function.
3421         * guile/scm-param.c: New file.
3422         * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3423         (gdbscm_scm_to_host_string): New function.
3424         (gdbscm_scm_from_host_string): New function.
3425         * scm-utils.c (gdbscm_gc_dup_argv): New function.
3426
3427 2014-06-02  Doug Evans  <xdje42@gmail.com>
3428
3429         Add command support for Guile.
3430         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3431         (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3432         (scm-cmd.o): New rule.
3433         * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3434         (gdbscm_user_error_p): Declare.
3435         (gdbscm_parse_command_name): Declare.
3436         (gdbscm_valid_command_class_p): Declare.
3437         (gdbscm_initialize_commands): Declare.
3438         * guile/guile.c (initialize_gdb_module): Call
3439         gdbscm_initialize_commands.
3440         * guile/lib/gdb.scm: Export command symbols.
3441         * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3442         (throw-user-error): New function.
3443         * guile/scm-cmd.c: New file.
3444         * guile/scm-exception.c (user_error_symbol): New static global.
3445         (gdbscm_user_error_p): New function.
3446         (gdbscm_initialize_exceptions): Set user_error_symbol.
3447         * scm-utils.c (gdbscm_gc_xstrdup): New function.
3448
3449 2014-06-02  Phil Muldoon  <pmuldoon@redhat.com>
3450
3451         * top.c (command_loop): Handle comments here...
3452         (command_line_input): ... not here.
3453
3454 2014-06-02  Doug Evans  <xdje42@gmail.com>
3455
3456         Add progspace support for Guile.
3457         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3458         (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3459         (scm-progspace.o): New rule.
3460         * guile/guile-internal.h (pspace_smob): New typedef.
3461         (psscm_pspace_smob_pretty_printers): Declare.
3462         (psscm_pspace_smob_from_pspace): Declare.
3463         (psscm_scm_from_pspace): Declare.
3464         * guile/guile.c (initialize_gdb_module): Call
3465         gdbscm_initialize_pspaces.
3466         * guile/lib/gdb.scm: Export progspace symbols.
3467         * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3468         support.
3469         (append-pretty-printer!): Ditto.
3470         * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3471         Implement.
3472         * guile/scm-progspace.c: New file.
3473
3474 2014-06-03  Alan Modra  <amodra@gmail.com>
3475
3476         * ppc64-tdep.c (ppc64_standard_linkage8): New.
3477         (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3478
3479 2014-06-02  Doug Evans  <dje@google.com>
3480
3481         Add support for skeletonless type units.
3482         * dwarf2read.c (struct dwarf2_per_objfile): New member
3483         n_allocated_type_units.
3484         (struct dwarf2_per_objfile) <tu_stats>: New member
3485         nr_all_type_units_reallocs.
3486         (create_signatured_type_table_from_index): Initialize
3487         n_allocated_type_units
3488         (create_all_type_units): Ditto.
3489         (add_type_unit): Move up in file.  New arg slot.
3490         All callers updated.  Increase space for all_type_units more
3491         efficiently.
3492         (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3493         (lookup_dwo_signatured_type): Handle skeletonless TUs.
3494         (lookup_dwp_signatured_type): Ditto.
3495         (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3496         All callers updated.
3497         (build_type_psymtabs_1): Leave type_unit_groups as
3498         NULL if no TUs present.
3499         (print_tu_stats): New function.
3500         (process_skeletonless_type_unit): New function.
3501         (process_dwo_file_for_skeletonless_type_units): New
3502         function.
3503         (process_skeletonless_type_units): New function.
3504         (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3505         Call print tu_stats if debugging enabled.
3506
3507 2014-06-02  Pedro Alves  <palves@redhat.com>
3508
3509         * breakpoint.c (build_target_command_list): Don't build a command
3510         list if we have any duplicate location that isn't a dprintf.
3511
3512 2014-06-02  Pedro Alves  <palves@redhat.com>
3513
3514         * breakpoint.c (dprintf_breakpoint_hit): New function.
3515         (initialize_breakpoint_ops): Install it as dprintf's
3516         breakpoint_hit method.
3517
3518 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
3519
3520         * source.c (substitute_path_rule_matches): Simplify using
3521         filename_ncmp instead of FILENAME_CMP.
3522
3523 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
3524
3525         * source.c (substitute_path_rule_matches): Remove trailing spaces.
3526
3527 2014-06-01  Ludovic Courtès  <ludo@gnu.org>
3528
3529         * configure.ac: When Guile is available, check for the
3530         availability of 'scm_new_smob'.
3531         * configure, config.h.in: Regenerate.
3532         * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3533         function.
3534
3535 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
3536
3537         * frame.c (struct frame_info): Add stop_string field.
3538         (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3539         (get_prev_frame_always): Old content moved into
3540         get_prev_frame_always_1.  Call get_prev_frame_always_1 inside
3541         TRY_CATCH, handle MEMORY_ERROR exceptions.
3542         (frame_stop_reason_string): New function definition.
3543         * frame.h (unwind_stop_reason_to_string): Extend comment to
3544         mention frame_stop_reason_string.
3545         (frame_stop_reason_string): New function declaration.
3546         * stack.c (frame_info): Switch to frame_stop_reason_string.
3547         (backtrace_command_1): Switch to frame_stop_reason_string.
3548         * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3549         (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3550         * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3551
3552 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
3553
3554         * frame.c (frame_stop_reason_string): Rename to ...
3555         (unwind_stop_reason_to_string): this.
3556         * frame.h (frame_stop_reason_string): Rename to ...
3557         (unwind_stop_reason_to_string): this.
3558         * stack.c (frame_info): Update call to frame_stop_reason_string.
3559         (backtrace_command_1): Likewise.
3560         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3561         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3562
3563 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
3564
3565         * frame.c (remove_prev_frame): New function.
3566         (get_prev_frame_if_no_cycle): Create / discard cleanup using
3567         remove_prev_frame.
3568
3569 2014-05-29  Pedro Alves  <palves@redhat.com>
3570
3571         * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3572         and make it const.  When a single-step decays to a continue,
3573         clear 'step', not 'hw_step'.  Pass whether the caller wanted
3574         to step to user_visible_resume_ptid, not what we ask the
3575         target to do.
3576
3577 2014-05-29  Pedro Alves  <palves@redhat.com>
3578
3579         * infrun.c (process_event_stop_test, handle_step_into_function)
3580         (handle_step_into_function_backward): Adjust.
3581         Don't set the even thread's stop_step and call stop_waiting before
3582         calling end_stepping_range.  Instead do that ...
3583         (end_stepping_range): ... here.  Take an ecs pointer parameter.
3584
3585 2014-05-29  Pedro Alves  <palves@redhat.com>
3586
3587         * infrun.c (stop_stepping): Rename to ...
3588         (stop_waiting): ... this.
3589         (proceed): Update comment.
3590         (process_event_stop_test, handle_inferior_event)
3591         (handle_signal_stop, handle_step_into_function)
3592         (handle_step_into_function_backward): Update.
3593
3594 2014-05-29  Pedro Alves  <palves@redhat.com>
3595
3596         * infcall.c (run_inferior_call): Don't check whether the current
3597         thread is running after the proceed call.
3598
3599 2014-05-29  Pedro Alves  <palves@redhat.com>
3600             Tom Tromey  <tromey@redhat.com>
3601
3602         * NEWS: Mention "maint set target-async", "set mi-async", and that
3603         background execution commands are now always available.
3604         * target.h (target_async_permitted): Update comment.
3605         * target.c (target_async_permitted, target_async_permitted_1):
3606         Default to 1.
3607         (set_target_async_command): Rename to ...
3608         (maint_set_target_async_command): ... this.
3609         (show_target_async_command): Rename to ...
3610         (maint_show_target_async_command): ... this.
3611         (_initialize_target): Adjust.
3612         * infcmd.c (prepare_execution_command): Make extern.
3613         * inferior.h (prepare_execution_command): Declare.
3614         * infrun.c (set_observer_mode): Leave target async alone.
3615         * mi/mi-interp.c (mi_interpreter_init): Install
3616         mi_on_sync_execution_done as sync_execution_done observer.
3617         (mi_on_sync_execution_done): New function.
3618         (mi_execute_command_input_handler): Don't print the prompt if we
3619         just started a synchronous command with an async target.
3620         (mi_on_resume): Check sync_execution before printing prompt.
3621         * mi/mi-main.h (mi_async_p): Declare.
3622         * mi/mi-main.c: Include gdbcmd.h.
3623         (mi_async_p): New function.
3624         (mi_async, mi_async_1): New globals.
3625         (set_mi_async_command, show_mi_async_command, mi_async): New
3626         functions.
3627         (exec_continue): Call prepare_execution_command.
3628         (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3629         (mi_execute_async_cli_command): Use mi_async_p.
3630         (_initialize_mi_main): Install "set mi-async".  Make
3631         "target-async" a deprecated alias.
3632
3633 2014-05-29  Pedro Alves  <palves@redhat.com>
3634
3635         * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3636         (_initialize_cli_interp): Adjust.
3637         * event-loop.c: Include "observer.h".
3638         (start_event_loop): Notify 'command_error' observers instead of
3639         calling display_gdb_prompt.  Remove FIXME comment.
3640         * event-top.c (display_gdb_prompt): Remove call into the
3641         interpreters.
3642         * inf-loop.c: Include "observer.h".
3643         (inferior_event_handler): Notify 'command_error' observers instead
3644         of calling display_gdb_prompt.
3645         * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3646         observers instead of calling display_gdb_prompt.
3647         * interps.c (interp_set): Don't call display_gdb_prompt.
3648         (current_interp_display_prompt_p): Delete.
3649         * interps.h (interp_prompt_p): Delete declaration.
3650         (interp_prompt_p_ftype): Delete.
3651         (struct interp_procs) <prompt_proc_p>: Delete field.
3652         (current_interp_display_prompt_p): Delete declaration.
3653         * mi-interp.c (mi_interpreter_prompt_p): Delete.
3654         (_initialize_mi_interp): Adjust.
3655         * tui-interp.c (tui_init): Install 'sync_execution_done' and
3656         'command_error' observers.
3657         (tui_on_sync_execution_done, tui_on_command_error): New
3658         functions.
3659         (tui_display_prompt_p): Delete.
3660         (_initialize_tui_interp): Adjust.
3661
3662 2014-05-29  Pedro Alves  <palves@redhat.com>
3663
3664         PR gdb/13860
3665         * cli/cli-interp.c: Include infrun.h and observer.h.
3666         (cli_uiout, cli_interp): New globals.
3667         (cli_on_signal_received, cli_on_end_stepping_range)
3668         (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3669         functions.
3670         (cli_interpreter_init): Install them as 'end_stepping_range',
3671         'signal_received' 'signal_exited', 'exited' and 'no_history'
3672         observers.
3673         (_initialize_cli_interp): Remove cli_interp local.
3674         * infrun.c (handle_inferior_event): Call the several stop reason
3675         observers instead of printing the stop reason directly.
3676         (end_stepping_range): New function.
3677         (print_end_stepping_range_reason, print_signal_exited_reason)
3678         (print_exited_reason, print_signal_received_reason)
3679         (print_no_history_reason): Make static, and add an uiout
3680         parameter.  Print to that instead of to CURRENT_UIOUT.
3681         * infrun.h (print_end_stepping_range_reason)
3682         (print_signal_exited_reason, print_exited_reason)
3683         (print_signal_received_reason print_no_history_reason): New
3684         declarations.
3685         * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3686         'mi_uiout'.
3687         <cli_uiout>: New field.
3688         * mi/mi-interp.c (mi_interpreter_init): Adjust.  Create the new
3689         uiout for CLI output.  Install 'signal_received',
3690         'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3691         observers.
3692         (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3693         (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3694         (mi_on_no_history): New functions.
3695         (ui_out_free_cleanup): Delete function.
3696         (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3697         instead use the one already stored in the MI interpreter data.
3698         (mi_ui_out): Adjust.
3699         * tui/tui-interp.c: Include infrun.h and observer.h.
3700         (tui_interp): New global.
3701         (tui_on_signal_received, tui_on_end_stepping_range)
3702         (tui_on_signal_exited, tui_on_exited)
3703         (tui_on_no_history): New functions.
3704         (tui_init): Install them as 'end_stepping_range',
3705         'signal_received' 'signal_exited', 'exited' and 'no_history'
3706         observers.
3707         (_initialize_tui_interp): Delete tui_interp local.
3708
3709 2014-05-29  Pedro Alves  <palves@redhat.com>
3710
3711         PR gdb/15713
3712         * linux-nat.c (linux_nat_resume_callback): Rename the second
3713         parameter to 'except'.  Skip LP if it points to EXCEPT.
3714         (linux_nat_resume): Don't mark the event lwp as not stopped
3715         before resuming sibling lwps.  Instead ask
3716         linux_nat_resume_callback to skip the event lwp.  Mark it as not
3717         stopped after actually resuming it.
3718         (linux_handle_syscall_trap): Mark the lwp as not stopped after
3719         resuming it.
3720         (wait_lwp): Mark the lwp as stopped here.
3721         (stop_wait_callback): Mark the lwp as not stopped right after
3722         resuming it.  Don't mark lwps as stopped here.
3723         (linux_nat_filter_event): Mark the lwp as stopped earlier.
3724         (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3725
3726 2014-05-29  Pedro Alves  <palves@redhat.com>
3727
3728         PR PR15693
3729         * infrun.c (resume): Determine how much to resume depending on
3730         whether the caller wanted a step, not whether we can hardware step
3731         the target.  Mark all threads that we intend to run as running,
3732         unless we're calling an inferior function.
3733         (normal_stop): If the thread is running an infcall, don't finish
3734         thread state.
3735         * target.c (target_resume): Don't mark threads as running here.
3736
3737 2014-05-28  Joel Brobecker  <brobecker@adacore.com>
3738
3739         * serial.c (_initialize_serial): Remove support for
3740         the "set remotebaud" and "show remotebaud" commands.
3741         * NEWS: Add entry documenting the removal of that command.
3742
3743 2014-05-28  Yao Qi  <yao@codesourcery.com>
3744
3745         * charset.c: Fix typo in comments.
3746
3747 2014-05-27  Gary Benson  <gbenson@redhat.com>
3748
3749         * utils.c (internal_vproblem): Prompt for a bug report.
3750
3751 2014-05-26  Andy Wingo  <wingo@igalia.com>
3752
3753         * guile/scm-arch.c (arscm_mark_arch_smob):
3754         * guile/scm-block.c (bkscm_mark_block_smob)
3755         (bkscm_mark_block_syms_progress_smob):
3756         * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3757         * guile/scm-exception.c (exscm_mark_exception_smob):
3758         * guile/scm-frame.c (frscm_mark_frame_smob):
3759         * guile/scm-iterator.c (itscm_mark_iterator_smob):
3760         * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3761         * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3762         * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3763         (ppscm_mark_pretty_printer_worker_smob):
3764         * guile/scm-symbol.c (syscm_mark_symbol_smob):
3765         * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3766         * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3767         * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3768         mark functions.
3769         * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3770         function.
3771
3772 2014-05-26  Andy Wingo  <wingo@igalia.com>
3773             Doug Evans  <xdje42@gmail.com>
3774
3775         * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
3776         empty_base_class.  All uses updated.
3777         (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
3778         (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
3779         Adapt all callers.
3780         * guile/scm-gsmob.c (gdbscm_mark_gsmob)
3781         (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
3782         (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
3783         (gdbscm_gsmob_has_property_p, add_property_name)
3784         (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
3785         * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
3786         (gdb-object-has-property?, gdb-object-properties): Remove.
3787         (gdb-object-kind): Renamed from gsmob-kind.
3788
3789 2014-05-26  Andy Wingo  <wingo@igalia.com>
3790
3791         * configure.ac (try_guile_versions): Allow building with guile 2.2.
3792         * configure: Regenerate.
3793
3794 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
3795
3796         * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
3797
3798 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
3799
3800         * record-btrace.c (record_btrace_allow_memory_access): Remove.
3801         (replay_memory_access_read_only, replay_memory_access_read_write)
3802         (replay_memory_access_types, replay_memory_access)
3803         (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
3804         (cmd_set_record_btrace, cmd_show_record_btrace)
3805         (cmd_show_replay_memory_access): New.
3806         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
3807         (record_btrace_remove_breakpoint): Replace
3808         record_btrace_allow_memory_access with replay_memory_access.
3809         (_initialize_record_btrace): Add commands.
3810         * NEWS: Announce it.
3811
3812 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3813
3814         * aarch64-linux-nat.c (asm/ptrace.h): Include.
3815
3816 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3817
3818         * MAINTAINERS (Write After Approval): Move self back from
3819         paper trail.
3820
3821 2014-05-22  Pedro Alves  <palves@redhat.com>
3822
3823         * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
3824         (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
3825         (disable_randomization, enum exec_direction_kind)
3826         (execution_direction, stop_registers, start_remote)
3827         (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
3828         (wait_for_inferior, normal_stop, get_last_target_status)
3829         (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
3830         (insert_step_resume_breakpoint_at_sal)
3831         (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
3832         (set_step_info, print_stop_event, signal_stop_state)
3833         (signal_print_state, signal_pass_state, signal_stop_update)
3834         (signal_print_update, signal_pass_update)
3835         (update_signals_program_target, clear_exit_convenience_vars)
3836         (displaced_step_dump_bytes, update_observer_mode)
3837         (signal_catch_update, gdb_signal_from_command): Move
3838         declarations ...
3839         * infrun.h: ... to this new file.
3840         * amd64-tdep.c: Include infrun.h.
3841         * annotate.c: Include infrun.h.
3842         * arch-utils.c: Include infrun.h.
3843         * arm-linux-tdep.c: Include infrun.h.
3844         * arm-tdep.c: Include infrun.h.
3845         * break-catch-sig.c: Include infrun.h.
3846         * breakpoint.c: Include infrun.h.
3847         * common/agent.c: Include infrun.h instead of inferior.h.
3848         * corelow.c: Include infrun.h.
3849         * event-top.c: Include infrun.h.
3850         * go32-nat.c: Include infrun.h.
3851         * i386-tdep.c: Include infrun.h.
3852         * inf-loop.c: Include infrun.h.
3853         * infcall.c: Include infrun.h.
3854         * infcmd.c: Include infrun.h.
3855         * infrun.c: Include infrun.h.
3856         * linux-fork.c: Include infrun.h.
3857         * linux-nat.c: Include infrun.h.
3858         * linux-thread-db.c: Include infrun.h.
3859         * monitor.c: Include infrun.h.
3860         * nto-tdep.c: Include infrun.h.
3861         * procfs.c: Include infrun.h.
3862         * record-btrace.c: Include infrun.h.
3863         * record-full.c: Include infrun.h.
3864         * remote-m32r-sdi.c: Include infrun.h.
3865         * remote-mips.c: Include infrun.h.
3866         * remote-notif.c: Include infrun.h.
3867         * remote-sim.c: Include infrun.h.
3868         * remote.c: Include infrun.h.
3869         * reverse.c: Include infrun.h.
3870         * rs6000-tdep.c: Include infrun.h.
3871         * s390-linux-tdep.c: Include infrun.h.
3872         * solib-irix.c: Include infrun.h.
3873         * solib-osf.c: Include infrun.h.
3874         * solib-svr4.c: Include infrun.h.
3875         * target.c: Include infrun.h.
3876         * top.c: Include infrun.h.
3877         * windows-nat.c: Include infrun.h.
3878         * mi/mi-interp.c: Include infrun.h.
3879         * mi/mi-main.c: Include infrun.h.
3880         * python/py-threadevent.c: Include infrun.h.
3881
3882 2014-05-22  Pedro Alves  <palves@redhat.com>
3883
3884         * infrun.c (handle_inferior_event): Store the exit code for
3885         --return-child-result here, instead of ...
3886         (print_exited_reason): ... here.
3887
3888 2014-05-21  Pedro Alves  <palves@redhat.com>
3889
3890         PR gdb/13860
3891         * gdbthread.h (struct thread_control_state): New field
3892         `command_interp'.
3893         * infrun.c (follow_fork): Copy the new thread control field to the
3894         child fork thread.
3895         (clear_proceed_status_thread): Clear the new thread control field.
3896         (proceed): Set the new thread control field.
3897         * interps.h (command_interp): Declare.
3898         * interps.c (command_interpreter): New global.
3899         (command_interp): New function.
3900         (interp_exec): Set `command_interpreter' while here.
3901         * cli-out.c (cli_uiout_dtor): New function.
3902         (cli_ui_out_impl): Install it.
3903         * mi/mi-interp.c: Include cli-out.h.
3904         (mi_cmd_interpreter_exec): Add comment.
3905         (restore_current_uiout_cleanup): New function.
3906         (ui_out_free_cleanup): New function.
3907         (mi_on_normal_stop): If finishing an execution command started by
3908         a CLI command, or any kind of breakpoint-like event triggered,
3909         print the stop event to the output (CLI) stream.
3910         * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
3911
3912 2014-05-21  Pedro Alves  <palves@redhat.com>
3913
3914         * cli/cli-cmds.c (list_command): Handle the first "list" after the
3915         current source line having changed.
3916         * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
3917         * infrun.c (normal_stop): Adjust call to
3918         set_current_sal_from_frame.
3919         * source.c (clear_lines_listed_range): New function.
3920         (set_current_source_symtab_and_line, identify_source_line): Clear
3921         the lines listed range.
3922         (line_info): Handle the first "info line" after the current source
3923         line having changed.
3924         * stack.c (print_stack_frame): Remove center handling.
3925         (set_current_sal_from_frame): Remove 'center' parameter.  Don't
3926         center sal.line.
3927
3928 2014-05-21  Pedro Alves  <palves@redhat.com>
3929
3930         * inf-child.c (inf_child_mourn_inferior): New function.
3931         * inf-child.h (inf_child_mourn_inferior): New declaration.
3932         * darwin-nat.c (darwin_mourn_inferior): Use
3933         inf_child_mourn_inferior.
3934         * gnu-nat.c (gnu_mourn_inferior): Likewise.
3935         * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
3936         * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
3937         * nto-procfs.c (procfs_mourn_inferior): Likewise.
3938         * windows-nat.c (windows_mourn_inferior): Likewise.
3939
3940 2014-05-21  Doug Evans  <xdje42@gmail.com>
3941
3942         * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
3943
3944 2014-05-21  Doug Evans  <xdje42@gmail.com>
3945
3946         * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
3947         (gdbscm_out_of_range_error): Ditto.
3948         (gdbscm_memory_error): Ditto.
3949         * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
3950         * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
3951         (gdbscm_out_of_range_error): Update.
3952         (gdbscm_memory_error): Update.
3953         (gdbscm_scm_to_target_string_unsafe): Delete.
3954
3955 2014-05-21  Pedro Alves  <palves@redhat.com>
3956
3957         * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
3958         globals.
3959         (inf_child_open_target): New function.
3960         (inf_child_open): Use inf_child_open_target to push the target
3961         instead of erroring out.
3962         (inf_child_disconnect, inf_child_close)
3963         (inf_child_maybe_unpush_target): New functions.
3964         (inf_child_target): Install inf_child_disconnect and
3965         inf_child_close.  Store a pointer to the returned object.
3966         * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
3967         declarations.
3968         * target.c (auto_connect_native_target): New global.
3969         (show_default_run_target): New function.
3970         (find_default_run_target): Return NULL if automatically connecting
3971         to the native target is disabled.
3972         (_initialize_target): Install set/show auto-connect-native-target.
3973         * NEWS: Mention "set auto-connect-native-target", and "target
3974         native".
3975         * linux-nat.c (super_close): New global.
3976         (linux_nat_close): Call super_close.
3977         (linux_nat_add_target): Store a pointer to the base class's
3978         to_close method.
3979         * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
3980         inf_child_maybe_unpush.
3981         * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
3982         already pushed.
3983         (inf_ttrace_mourn_inferior): Only unpush the target after mourning
3984         the inferior.  Use inf_child_maybe_unpush_target.
3985         (inf_ttrace_attach): Don't push the target if it is already
3986         pushed.
3987         (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
3988         * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
3989         after mourning the inferior.  Use inf_child_maybe_unpush_target.
3990         (darwin_attach_pid): Don't push the target if it is already
3991         pushed.
3992         * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
3993         mourning the inferior.  Use inf_child_maybe_unpush_target.
3994         (gnu_detach): Use inf_child_maybe_unpush_target.
3995         * go32-nat.c (go32_create_inferior): Don't push the target if it
3996         is already pushed.
3997         (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
3998         * nto-procfs.c (procfs_is_nto_target): Adjust comment.
3999         (procfs_open): Rename to ...
4000         (procfs_open_1): ... this.  Add target_ops parameter.  Adjust
4001         comments.  Can target_preopen before changing node.  Call
4002         inf_child_open_target to push the target explicitly.
4003         (procfs_attach): Don't push the target if it is already pushed.
4004         (procfs_detach): Use inf_child_maybe_unpush_target.
4005         (procfs_create_inferior): Don't push the target if it is already
4006         pushed.
4007         (nto_native_ops): New global.
4008         (procfs_open): Reimplement.
4009         (procfs_native_open): New function.
4010         (init_procfs_targets): Install procfs_native_open as to_open of
4011         "target native".  Store a pointer to the "native" target in
4012         nto_native_ops.
4013         * procfs.c (procfs_attach): Don't push the target if it is already
4014         pushed.
4015         (procfs_detach): Use inf_child_maybe_unpush_target.
4016         (procfs_mourn_inferior): Only unpush the target after mourning the
4017         inferior.  Use inf_child_maybe_unpush_target.
4018         (procfs_init_inferior): Don't push the target if it is already
4019         pushed.
4020         * windows-nat.c (do_initial_windows_stuff): Don't push the target
4021         if it is already pushed.
4022
4023 2014-05-21  Pedro Alves  <palves@redhat.com>
4024
4025         * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4026         and "procfs" targets are now called "native" instead.
4027
4028 2014-05-21  Pedro Alves  <palves@redhat.com>
4029
4030         * go32-nat.c (go32_open): Delete.
4031         (go32_target): Don't override the to_open method.
4032
4033 2014-05-21  Pedro Alves  <palves@redhat.com>
4034
4035         * nto-procfs.c (procfs_can_run): New function.
4036         (nto_procfs_ops): New global.
4037         (init_procfs_targets): New, based on procfs_target.  Install
4038         "target native" in addition to "target procfs".
4039         (_initialize_procfs): Call init_procfs_targets instead of adding
4040         the target here.
4041
4042 2014-05-21  Pedro Alves  <palves@redhat.com>
4043
4044         * windows-nat.c (windows_target): Don't override to_shortname,
4045         to_longname or to_doc.
4046
4047 2014-05-21  Pedro Alves  <palves@redhat.com>
4048
4049         * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4050         to_doc.
4051
4052 2014-05-21  Pedro Alves  <palves@redhat.com>
4053
4054         * darwin-nat.c (_initialize_darwin_inferior): Don't override
4055         to_shortname, to_longname or to_doc.
4056
4057 2014-05-21  Pedro Alves  <palves@redhat.com>
4058
4059         * go32-nat.c (go32_target): Don't override to_shortname,
4060         to_longname or to_doc.
4061
4062 2014-05-21  Pedro Alves  <palves@redhat.com>
4063
4064         * inf-child.c (inf_child_open): Remove mention of "child".
4065         (inf_child_target): Rename target to "native" instead of "child".
4066
4067 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4068
4069         * Makefile.in (SFILES): Delete "regset.c".
4070         (COMMON_OBS): Delete "regset.o".
4071         * regset.c: Remove.
4072         * regset.h (regset_alloc): Delete prototype.
4073
4074 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4075
4076         * sparc-linux-tdep.c (sparc32_linux_gregset)
4077         (sparc32_linux_fpregset): New static regset structures.
4078         (sparc32_linux_init_abi): Drop dynamic regset allocations.
4079         * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4080         'fpregset' fields.
4081         * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4082         (sparc64_linux_fpregset): New static regset structures.
4083         (sparc64_linux_init_abi): Drop dynamic regset allocations.
4084         * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4085         New static regset structures.
4086         (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4087         * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4088         New static regset structures.
4089         (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4090         * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4091         New static regset structures.
4092         (sparc64obsd_init_abi): Drop dynamic regset allocations.
4093         * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4094         New static regset structures.
4095         (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4096
4097 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4098
4099         * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4100         (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4101         register maps ("regmaps") from "*regset" to "*regmap".  Do this
4102         for all regmap types and variables.
4103         * sparc-linux-tdep.c (sparc32_linux_step_trap)
4104         (sparc32_linux_supply_core_gregset)
4105         (sparc32_linux_collect_core_gregset)
4106         (sparc32_linux_supply_core_fpregset)
4107         (sparc32_linux_collect_core_fpregset): Likewise.
4108         * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4109         (sparc_gregmap, sparc_fpregmap): ... these.
4110         (sparc_supply_gregset, sparc_collect_gregset)
4111         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4112         (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4113         (_initialize_sparc_nat): Rename regmaps.
4114         * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4115         (sparc_gregmap, sparc_fpregmap): ... these.
4116         (sparc_supply_gregset, sparc_collect_gregset)
4117         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4118         * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4119         Rename macros to...
4120         (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4121         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4122         Likewise.
4123         * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4124         Rename to...
4125         (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4126         * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4127         (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4128         regmaps.
4129         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4130         (sparc32_bsd_fpregset): Rename to...
4131         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4132         (sparc32_bsd_fpregmap): ... these.
4133         * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4134         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4135         (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4136         (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4137         (struct sparc_gregmap, struct sparc_fpregmap)
4138         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4139         (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4140         (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4141         (sparc32_supply_regset, sparc32_collect_gregset)
4142         (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4143         prototypes.
4144         * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4145         (sparc64_linux_ptrace_gregmap): ... this.
4146         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4147         (_initialize_sparc64_linux_nat): Rename regmaps.
4148         * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4149         (sparc64_linux_core_gregmap): ... this.
4150         (sparc64_linux_supply_core_gregset)
4151         (sparc64_linux_collect_core_gregset)
4152         (sparc64_linux_supply_core_fpregset)
4153         (sparc64_linux_collect_core_fpregset): Rename regmaps.
4154         * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4155         (sparc64_sol2_fpregset): Rename to...
4156         (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4157         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4158         (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4159         regmaps.
4160         * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4161         (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4162         (sparc64_bsd_fpregset): Rename to...
4163         (struct sparc_gregmap, sparc64_sol2_gregmap)
4164         (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4165         (sparc64_bsd_fpregmap): ... these.
4166         (sparc64_supply_gregset, sparc64_collect_gregset)
4167         (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4168         prototypes.
4169         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4170         * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4171         (sparc64fbsd_gregmap): ... this.
4172         (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4173         (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4174         Rename regmaps.
4175         * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4176         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4177         (sparc64nbsd_collect_fpregset): Likewise.
4178         * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4179         (sparc64nbsd_gregmap): ... this.
4180         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4181         regmaps.
4182         * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4183         * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4184         (sparc64obsd_gregmap): ... this.
4185         (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4186         regmaps.
4187         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4188         * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4189         (sparc32nbsd_gregmap): ... this.
4190         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4191         regmaps.
4192
4193 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4194
4195         * score-tdep.c (score7_linux_gregset): New static regset
4196         structure.
4197         (score7_linux_regset_from_core_section): Remove dynamic regset
4198         allocation.
4199         (score_gdbarch_init): Drop allocation of tdep structure.
4200         * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4201
4202 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4203
4204         * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4205         regset structures.
4206         (am33_regset_from_core_section): Remove dynamic regset
4207         allocations.
4208
4209 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4210
4211         * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4212         (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4213         structures.
4214         (mips_linux_regset_from_core_section): Remove dynamic regset
4215         allocations.
4216         * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4217         'gregset64', 'fpregset', and 'fpregset64'.
4218         * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4219         deleted tdep fields.
4220
4221 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4222
4223         * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4224         regset structures.
4225         (amd64_regset_from_core_section): Remove dynamic regset
4226         allocations.
4227         * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4228         structure.
4229         (amd64obsd_regset_from_core_section): Remove dynamic regset
4230         allocation.
4231         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4232         Likewise.
4233         * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4234         x86-common regset supply function.
4235         * i386-tdep.c (i386_collect_gregset): Make static.
4236         (i386_gregset): New global regset structure.
4237         (i386_fpregset, i386_xstateregset): New static regset structures.
4238         (i386_regset_from_core_section): Remove dynamic regset
4239         allocations.
4240         (i386_gdbarch_init): Remove initialization of tdep fields
4241         'gregset', 'fpregset', and 'xstateregset'.
4242         * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4243         'fpregset', and 'xstateregset'.
4244         (i386_collect_gregset): Remove prototype.
4245         (i386_gregset): New declaration.
4246         * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4247         structure.
4248         (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4249         allocation.
4250
4251 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4252
4253         * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4254         (arm_linux_vfpregset): New static regset structures.
4255         (arm_linux_regset_from_core_section): Remove dynamic allocation of
4256         regset structures.
4257         * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4258         and 'vfpregset' fields.
4259
4260 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4261
4262         * aarch64-linux-tdep.c (aarch64_linux_gregset)
4263         (aarch64_linux_fpregset): New static regset structures.
4264         (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4265         of regset structures.
4266         * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4267         'fpregset' fields.
4268
4269 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4270
4271         * regset.h (struct regset): Remove gdbarch field.
4272         * regset.c (regset_alloc): Drop initialization of gdbarch field.
4273         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4274         * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4275         Likewise.
4276         * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4277         (ppc32_linux_fpregset, ppc32_linux_vrregset)
4278         (ppc32_linux_vsxregset): Likewise.
4279         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4280         via the regcache instead of the regset.
4281         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4282         (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4283         * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4284         * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4285         Likewise.
4286
4287 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4288
4289         * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4290         Constify structures.
4291         * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4292         (alphanbsd_aout_gregset): Likewise.
4293         * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4294         * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4295         Likewise.
4296         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4297         * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4298         Likewise.
4299         * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4300         * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4301         * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4302         * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4303         * m88k-tdep.c (m88k_gregset): Likewise.
4304         * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4305         * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4306         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4307         * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4308         * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4309         * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4310         * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4311         * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4312         * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4313         Likewise.
4314         * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4315         * sh-tdep.h (sh_corefile_gregset): Likewise.
4316         * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4317         * vax-tdep.c (vax_gregset): Likewise.
4318
4319 2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
4320
4321         Fix TLS access for -static -pthread.
4322         * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4323         (try_thread_db_load_1): Initialize it.
4324         (thread_db_get_thread_local_address): Call it if LM is zero.
4325         * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4326         * target.h (struct target_ops) (to_get_thread_local_address): Add
4327         load_module_addr comment.
4328
4329 2014-05-21  Pedro Alves  <palves@redhat.com>
4330
4331         * dcache.c (dcache_read_memory_partial): If reading the cache line
4332         fails, fallback to reading just the memory the caller wanted.
4333
4334 2014-05-20  Doug Evans  <dje@google.com>
4335
4336         * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4337         instead of get_current_arch.
4338
4339 2014-05-20  Pedro Alves  <palves@redhat.com>
4340
4341         * NEWS: Mention that compare-sections now works with all targets.
4342
4343         * remote.c (PACKET_qCRC): New enum value.
4344         (remote_verify_memory): Don't send qCRC if the target has no
4345         execution.  Use packet_support/packet_ok.  If the target doesn't
4346         support the qCRC packet, fallback to a deep memory copy.
4347         (compare_sections_command): Say "target image" instead of "remote
4348         executable".
4349         (_initialize_remote): Add PACKET_qCRC to the list of config
4350         packets that have no associated command.  Extend comment.
4351         * target.c (simple_verify_memory, default_verify_memory): New
4352         function.
4353         * target.h (struct target_ops) <to_verify_memory>: Default to
4354         default_verify_memory.
4355         (simple_verify_memory): New declaration.
4356         * target-delegates.c: Regenerate.
4357
4358 2014-05-20  Markus Metzger  <markus.t.metzger@intel.com>
4359
4360         * record-btrace.c (record_btrace_step_thread): Check for empty history.
4361
4362 2014-05-20  Hui Zhu  <hui@codesourcery.com>
4363             Yao Qi  <yao@codesourcery.com>
4364
4365         PR backtrace/16558
4366         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4367         and change address of sp and pc.
4368
4369 2014-05-19  Tom Tromey  <tromey@redhat.com>
4370
4371         * gdbtypes.c (rank_function): Use XNEWVEC.
4372         * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4373
4374 2014-05-19  Doug Evans  <dje@google.com>
4375
4376         * dwarf2read.c (build_type_psymtabs_1): Renamed from
4377         build_type_unit_groups and moved closer to only caller.  Remove
4378         arguments.  All references updated.  Remove outdated .gdb_index
4379         comment.
4380         (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4381         build_type_psymtabs_1.
4382
4383 2014-05-19  Doug Evans  <dje@google.com>
4384
4385         * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4386         n_type_unit_groups, all_type_unit_groups.  All uses removed.
4387         (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4388         (dw2_get_cutu): Renamed from dw2_get_cu.  All callers updated.
4389         (dw2_get_cu): Renamed from dw2_get_primary_cu.  All callers updated.
4390         (add_type_unit_group_to_table): Delete.
4391
4392 2014-05-19  Doug Evans  <dje@google.com>
4393
4394         * eval.c (evaluate_subexp_standard): Add some comments.
4395
4396 2014-05-17  Doug Evans  <xdje42@gmail.com>
4397
4398         * progspace.c (remove_program_space): Delete, unused.
4399         * progspace.h (remove_program_space): Ditto.
4400
4401 2014-05-17  Doug Evans  <xdje42@gmail.com>
4402
4403         * inferior.c (prune_inferiors): Fix comment.
4404         (remove_inferior_command): Call prune_program_spaces.
4405
4406 2014-05-16  Doug Evans  <dje@google.com>
4407
4408         New command line option -D.
4409         * NEWS: Mention it.
4410         * main.c (set_gdb_data_directory): New function.
4411         (captured_main): Recognize -D.  Flag error for --data-directory "".
4412         Call set_gdb_data_directory.
4413         (print_gdb_help): Print --data-directory, -D.
4414         * main.h (set_gdb_data_directory): Declare.
4415         * top.c (staged_gdb_datadir): New static global.
4416         (set_gdb_datadir): Call set_gdb_data_directory
4417         (show_gdb_datadir): New function.
4418         (init_main): Update init of data-directory parameter.
4419
4420 2014-05-16  Gregory Fong  <gregory.0xf0@gmail.com>
4421
4422         Import the "dirfd" gnulib module.
4423         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4424         * gnulib/aclocal.m4: Update.
4425         * gnulib/config.in: Update.
4426         * gnulib/configure: Update.
4427         * gnulib/import/Makefile.am: Update.
4428         * gnulib/import/Makefile.in: Update.
4429         * gnulib/import/dirfd.c: New.
4430         * gnulib/import/m4/dirfd.m4: New.
4431         * gnulib/import/m4/gnulib-cache.m4: Update.
4432         * gnulib/import/m4/gnulib-comp.m4: Update.
4433
4434 2014-05-16  Pierre Muller  <muller@sourceware.org>
4435             Yao Qi  <yao@codesourcery.com>
4436
4437         * valprint.c (print_wchar): Move the code on checking whether
4438         W is a printable wide char to the default branch of switch
4439         statement below.  Call wchar_printable instead of gdb_iswprint.
4440
4441 2014-05-16  Taimoor Mirza  <tmirza@codesourcery.com>
4442
4443         * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4444         ldr.w and ldrd instructions.
4445
4446 2014-05-15  Doug Evans  <dje@google.com>
4447
4448         * dwarf2read.c (read_structure_type): Delete outdated comments.
4449
4450 2014-05-14  Tom Tromey  <tromey@redhat.com>
4451
4452         * macrocmd.c (print_macro_definition): Reindent.
4453
4454 2014-05-13  Doug Evans  <xdje42@gmail.com>
4455
4456         * python/py-cmd.c (cmdpy_completer): Add comment.
4457         (completers): Make const.
4458
4459 2014-05-13  Simon Marchi  <simon.marchi@ericsson.com>
4460
4461         * infrun.c (resume): Remove should_resume (unused).  Move up
4462         declaration of resume_ptid.
4463
4464 2014-05-13  Tom Tromey  <tromey@redhat.com>
4465
4466         * language.h (unop_type_check): Remove.
4467         (binop_type_check): Don't declare.
4468
4469 2014-05-13  Andreas Arnez  <arnez@vnet.linux.ibm.com>
4470
4471         * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4472         call to regcache_raw_collect.
4473
4474 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
4475
4476         * mi/mi-console.c (mi_console_raw_packet): Use the value from
4477         mi_console->quote as the quoting character.
4478
4479 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
4480
4481         * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4482
4483 2014-04-29  Tom Tromey  <tromey@redhat.com>
4484
4485         * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4486         "show debug varobj".
4487
4488 2014-05-07  Kyle McMartin  <kyle@redhat.com>
4489
4490         Pushed by Joel Brobecker  <brobecker@adacore.com>.
4491         * aarch64-tdep.c (aarch64_software_single_step): New function.
4492         (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4493         with aarch64_software_single_step.
4494
4495 2014-05-05  Joel Brobecker  <brobecker@adacore.com>
4496
4497         GDB 7.7.1 released.
4498
4499 2014-05-05  Keith Seitz  <keiths@redhat.com>
4500
4501         * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4502         variable or history value is successfully parsed.
4503
4504 2014-05-05  Yao Qi  <yao@codesourcery.com>
4505             Pedro Alves  <palves@redhat.com>
4506
4507         * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4508         address of blocks that intersects the requested range.  Trim
4509         LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4510         sections.
4511         * ctf.c (ctf_xfer_partial): Likewise.
4512
4513 2014-05-05  Yao Qi  <yao@codesourcery.com>
4514
4515         * printcmd.c (display_command): Remove the check to
4516         target_has_execution.
4517
4518 2014-05-03  Mark Kettenis  <kettenis@gnu.org>
4519
4520         * ppcobsd-nat.c: Include "obsd-nat.h".
4521         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4522         add_target.
4523         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4524
4525 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
4526
4527         * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4528         and 16-bit signed and unsigned arguments.  Update comment.
4529         (stap_parse_probe_arguments): Extend code to handle such
4530         arguments.  Use warning instead of complaint to notify about
4531         unrecognized bitness.
4532
4533 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
4534
4535         PR breakpoints/16889
4536         * stap-probe.c (stap_parse_probe_arguments): Simplify
4537         check for non-prefixed probes (i.e., probes whose
4538         arguments do not start with "N@").  Always set the
4539         argument type to a sane value.
4540
4541 2014-05-01  David Taylor  <dtaylor@emc.com>
4542
4543         * remote.c (compare_sections_command): Add -r option to compare
4544         all loadable read-only sections.
4545
4546 2014-04-30  Siva Chandra Reddy  <sivachandra@google.com>
4547
4548         * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4549         dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4550         Update all callers.
4551         * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4552         * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4553         Remove unused CORE_ADDR argument.  Update all callers.
4554
4555 2014-04-29  Pedro Alves  <palves@redhat.com>
4556
4557         * remote.c (struct packet_config) <detect>: Extend comment.
4558         (add_packet_config_cmd): Don't set the config's detect or support
4559         fields here.
4560         (init_all_packet_configs): Also initialize the config's 'detect'
4561         field.
4562         (reset_all_packet_configs_support): New function.
4563         (remote_open_1): Call reset_all_packet_configs_support instead of
4564         init_all_packet_configs.
4565         (_initialize_remote): Initialize all packet configs.  Assert that
4566         all packets have an associated command, except a few known
4567         outliers.
4568
4569 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
4570
4571         * dwarf2read.c (read_subrange_type): Handle dynamic
4572         DW_AT_lower_bound attributes.
4573
4574 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
4575
4576         * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4577         dynamic bounds before computing its upper bound.
4578         (ada_discrete_type_low_bound): Same as above with the lower bound.
4579
4580 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
4581
4582         * dwarf2read.c (is_dynamic_type): Return true for dynamic
4583         range types.  Adjust the array handling implementation to
4584         take advantage of this change.
4585         (resolve_dynamic_range): New function, mostly extracted from
4586         resolve_dynamic_bounds.
4587         (resolve_dynamic_array): New function, mostly extracted from
4588         resolve_dynamic_bounds.
4589         (resolve_dynamic_bounds): Delete.
4590         (resolve_dynamic_type): Reimplement.  Add handling of
4591         TYPE_CODE_RANGE types.
4592
4593 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
4594
4595         * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4596         handling of parallel ___XA types.
4597
4598 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
4599
4600         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4601         unnecessary second call to static_unwrap_type.
4602
4603 2014-04-27  Hui Zhu  <hui@codesourcery.com>
4604
4605         * stack.c (print_frame_info): Call do_gdb_disassembly with
4606         DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4607
4608 2014-04-26  Doug Evans  <xdje42@gmail.com>
4609
4610         * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4611
4612 2014-04-25  Pedro Alves  <palves@redhat.com>
4613
4614         PR server/16255
4615         * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4616         (linux_ptrace_attach_fail_reason): ... this.  Remove "warning: "
4617         and newline from built string.
4618         * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4619         (linux_ptrace_attach_fail_reason): ... this.
4620         * linux-nat.c (linux_nat_attach): Adjust to use
4621         linux_ptrace_attach_fail_reason.
4622
4623 2014-04-25  Pedro Alves  <palves@redhat.com>
4624
4625         * remote.c (struct remote_state): Remove multi_process_aware,
4626         non_stop_aware, cond_tracepoints, cond_breakpoints,
4627         breakpoint_commands, fast_tracepoints, static_tracepoints,
4628         install_in_trace, disconnected_tracing,
4629         enable_disable_tracepoints, string_tracing, and
4630         augmented_libraries_svr4_read fields.
4631         (remote_multi_process_p): Move further below in the file.
4632         (struct packet_config): Add comments.
4633         (update_packet_config): Delete function.
4634         (show_packet_config_cmd): Use packet_config_support.
4635         (add_packet_config_cmd): Use NULL as set callback.
4636         (packet_ok): "set remote foo-packet"-style commands no longer
4637         change config->supported -- adjust.
4638         (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4639         (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4640         (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4641         (PACKET_QNonStop, PACKET_multiprocess_feature)
4642         (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4643         (PACKET_DisconnectedTracing_feature)
4644         (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4645         (set_remote_protocol_packet_cmd): Delete function.
4646         (packet_config_support, packet_support): New functions.
4647         (set_remote_protocol_Z_packet_cmd): Don't call
4648         update_packet_config.
4649         (remote_query_attached, remote_pass_signals)
4650         (remote_program_signals, remote_threads_info)
4651         (remote_threads_extra_info, remote_start_remote): Use
4652         packet_support.
4653         (remote_start_remote): Use packet_config_support and
4654         packet_support.
4655         (init_all_packet_configs): Set all packets to unknown support,
4656         instead of calling update_packet_config.
4657         (remote_check_symbols): Use packet_support.
4658         (remote_supported_packet): Unconditionally set the packet config's
4659         support status.
4660         (remote_multi_process_feature, remote_non_stop_feature)
4661         (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4662         (remote_breakpoint_commands_feature)
4663         (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4664         (remote_install_in_trace_feature)
4665         (remote_disconnected_tracing_feature)
4666         (remote_enable_disable_tracepoint_feature)
4667         (remote_string_tracing_feature)
4668         (remote_augmented_libraries_svr4_read_feature): Delete functions.
4669         (remote_protocol_features): Adjust to use remote_supported_packet
4670         for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4671         "ConditionalTracepoints", "ConditionalBreakpoints",
4672         "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4673         "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4674         "EnableDisableTracepoints", and "tracenz".
4675         (remote_query_supported): Use packet_support.
4676         (remote_open_1): Adjust.
4677         (extended_remote_attach_1): Use packet_support.  Switch on the
4678         result of packet_ok instead of checking whether the packet ended
4679         up disabled.
4680         (remote_vcont_resume): Use packet_support.
4681         (remote_resume, remote_stop_ns, fetch_register_using_p)
4682         (remote_prepare_to_store, store_register_using_P)
4683         (check_binary_download, remote_write_bytes): Use packet_support.
4684         (remote_vkill): Use packet_support.  Switch on the result of
4685         packet_ok instead of checking whether the packet ended up
4686         disabled.
4687         (extended_remote_supports_disable_randomization): Use
4688         packet_support.
4689         (extended_remote_run): Switch on the result of packet_ok instead
4690         of checking whether the packet ended up disabled.
4691         (remote_insert_breakpoint, remote_remove_breakpoint)
4692         (remote_insert_watchpoint, remote_remove_watchpoint)
4693         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4694         packet_support.
4695         (remote_search_memory): Use packet_config_support.
4696         (remote_get_thread_local_address, remote_get_tib_address)
4697         (remote_hostio_send_command, remote_can_execute_reverse): Use
4698         packet_support.
4699         (remote_supports_cond_tracepoints)
4700         (remote_supports_cond_breakpoints)
4701         (remote_supports_fast_tracepoints)
4702         (remote_supports_static_tracepoints)
4703         (remote_supports_install_in_trace)
4704         (remote_supports_enable_disable_tracepoint)
4705         (remote_supports_string_tracing)
4706         (remote_can_run_breakpoint_commands): Rewrite, checking whether
4707         the packet config says the feature is enabled or disabled.
4708         (remote_download_tracepoint, remote_trace_set_readonly_regions)
4709         (remote_get_trace_status): Use packet_support.
4710         (remote_set_disconnected_tracing): Adjust to check whether the
4711         feature is enabled with packet_support.
4712         (remote_set_trace_buffer_size, remote_use_agent)
4713         (remote_can_use_agent, remote_supports_btrace): Use
4714         packet_support.
4715         (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4716         Use packet_config_support.
4717         (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4718         the packet config says the feature is enabled or disabled.
4719         (set_range_stepping): Use packet_support.
4720
4721 2014-04-25  Tom Tromey  <tromey@redhat.com>
4722
4723         * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4724         argument.
4725
4726 2014-04-24  Sanimir Agovic  <sanimir.agovic@intel.com>
4727
4728         * NEWS: Mention support for C99 variable length arrays.
4729
4730 2014-04-24  Joel Brobecker  <brobecker@adacore.com>
4731
4732         * ada-lang.c (standard_exc): Expand introductory comment.
4733
4734 2014-04-24  Michael Sturm  <michael.sturm@mintel.com>
4735             Walfred Tedeschi  <walfred.tedeschi@intel.com>
4736
4737         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4738         AVX512 registers.
4739         (amd64_linux_read_description): Add code to handle AVX512 xstate
4740         mask and return respective tdesc.
4741         * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4742         and features/i386/x32-avx512-linux.c.
4743         (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4744         (amd64_linux_core_read_description): Add code to handle AVX512
4745         xstate mask and return respective tdesc.
4746         (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4747         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4748         calculation.
4749         (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4750         (tdesc_amd64_avx512_linux): New prototype.
4751         (tdesc_x32_avx512_linux): Likewise.
4752         * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4753         features/i386/x32-avx512.c.
4754         (amd64_ymm_avx512_names): New register names for pseudo
4755         registers YMM16-31.
4756         (amd64_ymmh_avx512_names): New register names for raw registers
4757         YMMH16-31.
4758         (amd64_k_names): New register names for K registers.
4759         (amd64_zmmh_names): New register names for ZMM raw registers.
4760         (amd64_zmm_names): New registers names for ZMM pseudo registers.
4761         (amd64_xmm_avx512_names): New register names for XMM16-31
4762         registers.
4763         (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4764         registers.
4765         (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4766         if feature is present.
4767         (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4768         * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4769         (AMD64_NUM_REGS): Adjust to new number of registers.
4770         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4771         registers supplied via XSTATE by AVX512 registers.
4772         (i386_linux_read_description): Add case for AVX512.
4773         * i386-linux-tdep.c: Include i386-avx512-linux.c.
4774         (i386_linux_gregset_reg_offset): Add AVX512 registers.
4775         (i386_linux_core_read_description): Add case for AVX512.
4776         (i386_linux_init_abi): Install supported register note section
4777         for AVX512.
4778         (_initialize_i386_linux_tdep): Add call to tdesc init function for
4779         AVX512.
4780         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
4781         registers to be number of zmm7h + 1.
4782         (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
4783         * i386-tdep.c: Include features/i386/i386-avx512.c.
4784         (i386_zmm_names): Add ZMM pseudo register names array.
4785         (i386_zmmh_names): Add ZMM raw register names array.
4786         (i386_k_names): Add K raw register names array.
4787         (num_lower_zmm_regs): Add constant for the number of lower ZMM
4788         registers. AVX512 has 16 more ZMM registers than there are YMM
4789         registers.
4790         (i386_zmmh_regnum_p): Add function to look up register number of
4791         ZMM raw registers.
4792         (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
4793         (i386_k_regnum_p): Likewise for K raw registers.
4794         (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
4795         registers added by AVX512.
4796         (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
4797         registers added by AVX512.
4798         (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
4799         added by AVX512.
4800         (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
4801         (i386_pseudo_register_name): Add ZMM pseudo registers.
4802         (i386_zmm_type): Construct and return vector registers type for ZMM
4803         registers.
4804         (i386_pseudo_register_type): Return appropriate type for YMM16-31,
4805         ZMM0-31 pseudo registers and K registers.
4806         (i386_pseudo_register_read_into_value): Add code to read K, ZMM
4807         and YMM16-31 registers from register cache.
4808         (i386_pseudo_register_write): Add code to write  K, ZMM and
4809         YMM16-31 registers.
4810         (i386_register_reggroup_p): Add code to include/exclude AVX512
4811         registers in/from respective register groups.
4812         (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
4813         registers if feature is present in xcr0.
4814         (i386_gdbarch_init): Add code to initialize AVX512 feature
4815         variables in tdep structure, wire in pseudo registers and call
4816         initialize_tdesc_i386_avx512.
4817         * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
4818         variables.
4819         (i386_regnum): Add AVX512 registers.
4820         (I386_SSE_NUM_REGS): New define for number of SSE registers.
4821         (I386_AVX_NUM_REGS): Likewise for AVX registers.
4822         (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
4823         (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
4824         512 bits wide.
4825         (i386_xmm_avx512_regnum_p): New prototype for register look up.
4826         (i386_ymm_avx512_regnum_p): Likewise.
4827         (i386_k_regnum_p): Likewise.
4828         (i386_zmm_regnum_p): Likewise.
4829         (i386_zmmh_regnum_p): Likewise.
4830         * i387-tdep.c : Update year in copyright notice.
4831         (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
4832         XSAVE buffer.
4833         (XSAVE_YMM_AVX512_ADDR): New macro.
4834         (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
4835         XSAVE buffer.
4836         (XSAVE_XMM_AVX512_ADDR): New macro.
4837         (xsave_avx512_k_offset): New table for K register offsets in
4838         XSAVE buffer.
4839         (XSAVE_AVX512_K_ADDR): New macro.
4840         (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
4841         in XSAVE buffer.
4842         (XSAVE_AVX512_ZMM_H_ADDR): New macro.
4843         (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
4844         buffer.
4845         (i387_collect_xsave): Add code to collect AVX512 registers from
4846         XSAVE buffer.
4847         * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
4848         of XMM16-31 registers.
4849         (I387_NUM_K_REGS): New define for number of K registers.
4850         (I387_K0_REGNUM): New define for K0 register number.
4851         (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
4852         (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
4853         (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
4854         registers.
4855         (I387_YMM16H_REGNUM): New define for YMM16H register number.
4856         (I387_XMM16_REGNUM): New define for XMM16 register number.
4857         (I387_YMM0_REGNUM): New define for YMM0 register number.
4858         (I387_KEND_REGNUM): New define for last K register number.
4859         (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
4860         (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
4861         number.
4862         (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
4863         number.
4864         * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
4865         size.
4866         * features/Makefile: Add AVX512 related files.
4867         * features/i386/32bit-avx512.xml: New file.
4868         * features/i386/64bit-avx512.xml: Likewise.
4869         * features/i386/amd64-avx512-linux.c: Likewise.
4870         * features/i386/amd64-avx512-linux.xml: Likewise.
4871         * features/i386/amd64-avx512.c: Likewise.
4872         * features/i386/amd64-avx512.xml: Likewise.
4873         * features/i386/i386-avx512-linux.c: Likewise.
4874         * features/i386/i386-avx512-linux.xml: Likewise.
4875         * features/i386/i386-avx512.c: Likewise.
4876         * features/i386/i386-avx512.xml: Likewise.
4877         * features/i386/x32-avx512-linux.c: Likewise.
4878         * features/i386/x32-avx512-linux.xml: Likewise.
4879         * features/i386/x32-avx512.c: Likewise.
4880         * features/i386/x32-avx512.xml: Likewise.
4881         * regformats/i386/amd64-avx512-linux.dat: New file.
4882         * regformats/i386/amd64-avx512.dat: Likewise.
4883         * regformats/i386/i386-avx512-linux.dat: Likewise.
4884         * regformats/i386/i386-avx512.dat: Likewise.
4885         * regformats/i386/x32-avx512-linux.dat: Likewise.
4886         * regformats/i386/x32-avx512.dat: Likewise.
4887         * NEWS: Add note about new support for AVX512.
4888
4889
4890 2014-04-23  Pedro Alves  <palves@redhat.com>
4891
4892         * breakpoint.c (insert_bp_location): Tolerate errors if the
4893         breakpoint is set in a user-loaded objfile.
4894         (remove_breakpoint_1): Likewise.  Also tolerate errors if the
4895         location is marked shlib_disabled.  If the breakpoint is set in a
4896         user-loaded objfile is a GDB-side memory breakpoint, validate it
4897         before uninsertion.  (disable_breakpoints_in_freed_objfile): Skip
4898         non-OBJF_USERLOADED objfiles.  Don't clear the location's inserted
4899         flag.
4900         * mem-break.c (memory_validate_breakpoint): New function.
4901         * objfiles.c (userloaded_objfile_contains_address_p): New
4902         function.
4903         * objfiles.h (userloaded_objfile_contains_address_p): Declare.
4904         * target.h (memory_validate_breakpoint): New declaration.
4905
4906 2014-04-23  Pedro Alves  <palves@redhat.com>
4907
4908         * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
4909         the breakpoint is set in a shared library, only suppress
4910         errors for software breakpoints, not hardware breakpoints.
4911
4912 2014-04-22  Pedro Alves  <palves@redhat.com>
4913
4914         * infrun.c (schedlock_applies): New function, factored out from
4915         find_thread_needs_step_over.
4916         (find_thread_needs_step_over): Use it.
4917         (switch_back_to_stepped_thread): Always clear trap_expected if the
4918         step over is finished.  Return early if scheduler locking applies.
4919         Look for the stepping thread and a potential step-over thread with
4920         a single loop.
4921         (currently_stepping_or_nexting_callback): Delete.
4922
4923 2014-04-22  Nick Clifton  <nickc@redhat.com>
4924
4925         * NEWS: Mention that ARM sim now supports tracing.
4926
4927 2014-04-22  Yao Qi  <yao@codesourcery.com>
4928
4929         * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
4930         to ...
4931         * tracefile.c (tracefile_fetch_registers): ... it.  New
4932         function.
4933         * tracefile.h (tracefile_fetch_registers): Declare.
4934         * ctf.c (ctf_fetch_registers): Remove the bottom.  Call
4935         tracefile_fetch_registers.
4936
4937 2014-04-19  Eli Zaretskii  <eliz@gnu.org>
4938
4939         PR gdb/14018
4940         * windows-nat.c (thread_rec): Don't display a warning when
4941         SuspendThread fails with ERROR_ACCESS_DENIED.  If SuspendThread
4942         fails for any reason, set th->suspended to -1, so that we don't
4943         try to resume such a thread.  Also, don't return NULL in these
4944         cases, to avoid completely ruin the session due to "PC register is
4945         not available" error.
4946         (do_windows_fetch_inferior_registers): Check errors in
4947         GetThreadContext call.
4948         (windows_continue): Accept an additional argument KILLED; if not
4949         zero, ignore errors in the SetThreadContext call, since the
4950         inferior was killed and is shutting down.
4951         (windows_resume, get_windows_debug_event)
4952         (windows_create_inferior, windows_mourn_inferior)
4953         (windows_kill_inferior): All callers of windows_continue changed
4954         to adjust to its new calling sequence.
4955
4956 2014-04-19  Yao Qi  <yao@codesourcery.com>
4957
4958         * ctf.c (ctf_open): Call post_create_inferior.
4959
4960 2014-04-19  Yao Qi  <yao@codesourcery.com>
4961
4962         * ctf.c (handle_id): New static variable.
4963         (ctf_open_dir): Get handle_id from bt_context_add_trace return
4964         value.  Get the declaration of event "register" and get length
4965         of field "contents".
4966
4967 2014-04-19  Yao Qi  <yao@codesourcery.com>
4968
4969         * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
4970
4971 2014-04-18  Siva Chandra Reddy  <sivachandra@google.com>
4972
4973         * valops.c (oload_method_static): Remove unnecessary argument
4974         METHOD.  Update all callers.
4975
4976 2014-04-18  Pedro alves  <palves@redhat.com>
4977             Tom Tromey  <tromey@redhat.com>
4978
4979         PR backtrace/15558
4980         * frame.c (get_prev_frame_1): Rename to ...
4981         (get_prev_frame_always): ... this, and make extern.  Adjust.
4982         (skip_artificial_frames): Use get_prev_frame_always.
4983         (frame_unwind_caller_id, frame_pop, get_prev_frame)
4984         (get_frame_unwind_stop_reason): Adjust to rename.
4985         * frame.h (get_prev_frame_always): Declare.
4986         * inline-frame.c: Include frame.h.
4987         (inline_frame_this_id): Use get_prev_frame_always.
4988
4989 2014-04-18  Tristan Gingold  <gingold@adacore.com>
4990
4991         * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
4992         code by using bfd_mach_o_get_base_address.
4993
4994 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
4995
4996         * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
4997         (spu_ax_pseudo_register_collect): New function.
4998         (spu_ax_pseudo_register_push_stack): Likewise.
4999         (spu_dwarf_reg_to_regnum): Likewise.
5000         (spu_gdbarch_init): Install them.  Append DWARF unwinders.
5001
5002 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
5003
5004         * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5005         Replace FRAME argument with FRAME_ID.
5006         * gdbarch.c, gdbarch.h: Regenerate.
5007         * findvar.c (default_value_from_register): Add GDBARCH argument;
5008         replace FRAME by FRAME_ID.  No longer call get_frame_id.
5009         (value_from_register): Update call to gdbarch_value_from_register.
5010         * value.h (default_value_from_register): Update prototype.
5011         * s390-linux-tdep.c (s390_value_from_register): Update interface
5012         and call to default_value_from_register.
5013         * spu-tdep.c (spu_value_from_register): Likewise.
5014
5015         * findvar.c (address_from_register): Remove TYPE argument.
5016         Do not call value_from_register; use gdbarch_value_from_register
5017         with null_frame_id instead.
5018         * value.h (address_from_register): Update prototype.
5019         * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5020         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5021         address_from_register interface change.
5022
5023 2014-04-17  Yao Qi  <yao@codesourcery.com>
5024
5025         * gdbtypes.h: Update comments to link to types and macros'
5026         definitions.
5027
5028 2014-04-16  Siva Chandra Reddy  <sivachandra@google.com>
5029
5030         * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5031
5032 2014-04-16  Keith Seitz  <keiths@redhat.com>
5033
5034         PR gdb/15827
5035         * dwarf2read.c (skip_one_die): Check that all relative-offset
5036         sibling DIEs fall within range of the current reader's buffer.
5037         (read_partial_die): Likewise.
5038
5039 2014-04-16  Keith Seitz  <keiths@redhat.com>
5040
5041         PR c++/16597
5042         * cp-namespace.c (lookup_symbol_file): If the type name of
5043         `this' is NULL, return immediately.
5044
5045 2014-04-14  Keith Seitz  <keiths@redhat.com>
5046
5047         PR c++/16253
5048         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5049         from symbol_matches_domain in symtab.c. All local callers
5050         of symbol_matches_domain updated.
5051         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5052         search STRUCT_DOMAIN.
5053         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5054         independently.  standard_lookup will do that automatically.
5055         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5056         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5057         (cp_lookup_symbol_in_namespace): Likewise.
5058         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5059         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5060         may return a STRUCT_DOMAIN match.
5061         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5062         * cp-support.c: Include language.h.
5063         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5064         VAR_DOMAIN.
5065         * psymtab.c (match_partial_symbol): Compare the requested
5066         domain with the symbol's domain directly.
5067         (lookup_partial_symbol): Likewise.
5068         * symtab.c (lookup_symbol_in_language): Explain when/why
5069         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5070         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5071         appropriate languages.
5072         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5073         and moved to ada-lang.c
5074         (lookup_block_symbol): Explain that this function only returns
5075         symbol matching the requested DOMAIN.
5076         Compare the requested domain with the symbol's domain directly.
5077         (iterate_over_symbols): Compare the requested domain with the
5078         symbol's domain directly.
5079         * symtab.h (symbol_matches_domain): Remove.
5080
5081 2014-04-14  Tom Tromey  <tromey@redhat.com>
5082
5083         PR c++/15246:
5084         * c-exp.y (type_aggregate_p): New function.
5085         (qualified_name, classify_inner_name): Use it.
5086         * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5087         and TYPE_TARGET_TYPE of an enum type.
5088         * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5089         an enum type.
5090         (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5091         handle TYPE_DECLARED_CLASS.
5092         * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5093         types.
5094         * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5095         * valops.c (enum_constant_from_type): New function.
5096         (value_aggregate_elt): Use it.
5097         * cp-namespace.c (cp_lookup_nested_symbol): Handle
5098         TYPE_CODE_ENUM.
5099
5100 2014-04-14  Tom Tromey  <tromey@redhat.com>
5101
5102         * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5103         (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5104         const.
5105         * value.h (value_aggregate_elt): Update.
5106
5107 2014-04-14  Tom Tromey  <tromey@redhat.com>
5108
5109         * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5110
5111 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
5112
5113         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5114         (evaluate_subexp_standard): Pass noside argument.
5115         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5116         if noside equals EVAL_NORMAL. If the subscript yields a vla type
5117         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5118         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5119         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5120
5121 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
5122
5123         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5124         points to a constant blob.
5125
5126 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
5127
5128         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5129         property and store it as the high bound and flag the range accordingly.
5130         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5131         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5132         * gdbtypes.h (enum range_flags): New enum.
5133         (struct range_bounds): Add flags member.
5134
5135 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
5136
5137         * c-typeprint.c (c_type_print_varspec_suffix): Added
5138         check for not yet resolved high bound. If unresolved, print
5139         "variable length" string to the console instead of random
5140         length.
5141
5142 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
5143
5144         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5145         value.
5146         (ada_template_to_fixed_record_type_1): Likewise.
5147         (ada_to_fixed_type_1): Likewise.
5148         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5149         (cp_print_value): Likewise.
5150         * d-valprint.c (dynamic_array_type): Likewise.
5151         * findvar.c (address_of_variable): Likewise.
5152         * jv-valprint.c (java_value_print): Likewise.
5153         * valops.c (value_ind): Likewise.
5154         * value.c (coerce_ref): Likewise.
5155
5156 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
5157
5158         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5159         value and retrieve the dynamic type size.
5160
5161 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
5162
5163         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5164         passed to sizeof is dynamic evaluate the argument to compute the length.
5165
5166 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
5167             Joel Brobecker  <brobecker@adacore.com>
5168
5169         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5170         (dwarf2_evaluate_property): New function.
5171         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5172         * dwarf2read.c (attr_to_dynamic_prop): New function.
5173         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5174         attribute.
5175         * gdbtypes.c: Include dwarf2loc.h.
5176         (is_dynamic_type): New function.
5177         (resolve_dynamic_type): New function.
5178         (resolve_dynamic_bounds): New function.
5179         (get_type_length): New function.
5180         (check_typedef): Use get_type_length to compute type length.
5181         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5182         (TYPE_LOW_BOUND_KIND): New macro.
5183         (is_dynamic_type): New function prototype.
5184         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5185         to resolve dynamic properties of the type. Update comment.
5186         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5187
5188 2014-04-14  Richard Henderson  <rth@redhat.com>
5189
5190         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5191
5192 2014-04-12  Siva Chandra Reddy  <sivachandra@google.com>
5193             Doug Evans  <xdje42@gmail.com>
5194
5195         * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5196         dereference TYPE_CODE_REF values.
5197
5198 2014-04-11  Joel Brobecker  <brobecker@adacore.com>
5199
5200         Revert the following changes due to regressions:
5201
5202         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5203         (dwarf2_evaluate_property): New function.
5204         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5205         * dwarf2read.c (attr_to_dynamic_prop): New function.
5206         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5207         attribute.
5208         * gdbtypes.c: Include dwarf2loc.h.
5209         (is_dynamic_type): New function.
5210         (resolve_dynamic_type): New function.
5211         (resolve_dynamic_bounds): New function.
5212         (get_type_length): New function.
5213         (check_typedef): Use get_type_length to compute type length.
5214         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5215         (TYPE_LOW_BOUND_KIND): New macro.
5216         (is_dynamic_type): New function prototype.
5217         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5218         to resolve dynamic properties of the type. Update comment.
5219         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5220
5221         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5222         passed to sizeof is dynamic evaluate the argument to compute the length.
5223
5224         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5225         value and retrieve the dynamic type size.
5226
5227         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5228         (ada_template_to_fixed_record_type_1): Likewise.
5229         (ada_to_fixed_type_1): Likewise.
5230         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5231         (cp_print_value): Likewise.
5232         * d-valprint.c (dynamic_array_type): Likewise.
5233         * eval.c (evaluate_subexp_with_coercion): Likewise.
5234         * findvar.c (address_of_variable): Likewise.
5235         * jv-valprint.c (java_value_print): Likewise.
5236         * valops.c (value_ind): Likewise.
5237         * value.c (coerce_ref): Likewise.
5238
5239         * c-typeprint.c (c_type_print_varspec_suffix): Added
5240         check for not yet resolved high bound. If unresolved, print
5241         "variable length" string to the console instead of random
5242         length.
5243
5244         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5245         property and store it as the high bound and flag the range accordingly.
5246         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5247         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5248         * gdbtypes.h (enum range_flags): New enum.
5249         (struct range_bounds): Add flags member.
5250
5251         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5252         points to a constant blob.
5253
5254         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5255         (evaluate_subexp_standard): Pass noside argument.
5256         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5257         if noside equals EVAL_NORMAL. If the subscript yields a vla type
5258         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5259         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5260         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5261
5262 2014-04-11  Keith Seitz  <keiths@redhat.com>
5263
5264         PR c++/16675
5265         * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5266         * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5267         reference types.
5268
5269 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5270
5271         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5272         (evaluate_subexp_standard): Pass noside argument.
5273         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5274         if noside equals EVAL_NORMAL. If the subscript yields a vla type
5275         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5276         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5277         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5278
5279 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5280
5281         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5282         points to a constant blob.
5283
5284 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5285
5286         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5287         property and store it as the high bound and flag the range accordingly.
5288         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5289         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5290         * gdbtypes.h (enum range_flags): New enum.
5291         (struct range_bounds): Add flags member.
5292
5293 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5294
5295         * c-typeprint.c (c_type_print_varspec_suffix): Added
5296         check for not yet resolved high bound. If unresolved, print
5297         "variable length" string to the console instead of random
5298         length.
5299
5300 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5301
5302         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5303         (ada_template_to_fixed_record_type_1): Likewise.
5304         (ada_to_fixed_type_1): Likewise.
5305         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5306         (cp_print_value): Likewise.
5307         * d-valprint.c (dynamic_array_type): Likewise.
5308         * eval.c (evaluate_subexp_with_coercion): Likewise.
5309         * findvar.c (address_of_variable): Likewise.
5310         * jv-valprint.c (java_value_print): Likewise.
5311         * valops.c (value_ind): Likewise.
5312         * value.c (coerce_ref): Likewise.
5313
5314 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5315
5316         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5317         value and retrieve the dynamic type size.
5318
5319 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5320
5321         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5322         passed to sizeof is dynamic evaluate the argument to compute the length.
5323
5324 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5325
5326         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5327         (dwarf2_evaluate_property): New function.
5328         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5329         * dwarf2read.c (attr_to_dynamic_prop): New function.
5330         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5331         attribute.
5332         * gdbtypes.c: Include dwarf2loc.h.
5333         (is_dynamic_type): New function.
5334         (resolve_dynamic_type): New function.
5335         (resolve_dynamic_bounds): New function.
5336         (get_type_length): New function.
5337         (check_typedef): Use get_type_length to compute type length.
5338         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5339         (TYPE_LOW_BOUND_KIND): New macro.
5340         (is_dynamic_type): New function prototype.
5341         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5342         to resolve dynamic properties of the type. Update comment.
5343         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5344
5345 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5346
5347         * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5348         declaring high/low bounds and change uses accordingly. Call
5349         create_range_type instead of create_static_range_type.
5350         * gdbtypes.c (create_range_type): New function.
5351         (create_range_type): Convert bounds into struct bound_prop and pass
5352         them to create_range_type.
5353         * gdbtypes.h (struct bound_prop): New struct.
5354         (create_range_type): New function prototype.
5355         (struct range_bounds): Use struct bound_prop instead of LONGEST for
5356         high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5357         (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5358         part of the bound.
5359         * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5360
5361 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5362
5363         * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5364         * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5365         * ada-lang.c: All uses of create_range_type updated.
5366         * coffread.c: All uses of create_range_type updated.
5367         * dwarf2read.c: All uses of create_range_type updated.
5368         * f-exp.y: All uses of create_range_type updated.
5369         * m2-valprint.c: All uses of create_range_type updated.
5370         * mdebugread.c: All uses of create_range_type updated.
5371         * stabsread.c: All uses of create_range_type updated.
5372         * valops.c: All uses of create_range_type updated.
5373         * valprint.c: All uses of create_range_type updated.
5374
5375 2014-04-10  Pedro Alves  <palves@redhat.com>
5376
5377         * breakpoint.c (single_step_breakpoints)
5378         (single_step_gdbarch): Move up in the file.
5379         (one_breakpoint_xfer_memory): New function, factored out from ...
5380         (breakpoint_xfer_memory): ... here.  Also process single-step
5381         breakpoints.
5382
5383 2014-04-09  Tristan Gingold  <gingold@adacore.com>
5384
5385         * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5386         comments.
5387         (darwin_decode_exception_message): Free port only after use.
5388
5389 2014-04-08  Pierre Langlois  <pierre.langlois@embecosm.com>
5390
5391         * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5392         (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5393         when setting the size of call_length.
5394
5395 2014-04-07  Siva Chandra Reddy  <sivachandra@google.com>
5396
5397         * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5398         dereference TYPE_CODE_REF values.
5399
5400 2014-04-07  Joel Brobecker  <brobecker@adacore.com>
5401
5402         * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5403         end of warning message.
5404
5405 2014-04-03  Doug Evans  <dje@google.com>
5406
5407         * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5408         of stub_comp_unit_die, stub_comp_dir is non-NULL.
5409
5410 2014-04-02  Alan Modra  <amodra@gmail.com>
5411
5412         * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5413         Pass to bfd_elf_bfd_from_remote_memory.  Adjust all callers.
5414         (struct symbol_file_add_from_memory_args): Add size field.
5415         (find_vdso_size): New function.
5416         (add_vsyscall_page): Attempt to find vdso size.
5417
5418 2014-04-01  Doug Evans  <dje@google.com>
5419
5420         * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5421
5422 2014-04-01  Tristan Gingold  <gingold@adacore.com>
5423
5424         * darwin-nat.c (darwin_encode_reply): Add prototype.
5425         (darwin_decode_exception_message): Reply to unknown inferiors.
5426         (darwin_decode_message): Handle message by id.  Ignore message
5427         to unknown inferior.
5428         (darwin_wait): Discard unknown messages, add debug trace.
5429
5430 2014-03-31  Doug Evans  <dje@google.com>
5431
5432         * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5433         comp_dir_string.
5434
5435 2014-03-31  Doug Evans  <dje@google.com>
5436
5437         New option "set print symbol-loading".
5438         * NEWS: Mention it.
5439         * solib.c (solib_read_symbols): Only print symbol loading messages
5440         if requested.
5441         (solib_add): If symbol loading is in "brief" mode, notify user
5442         symbols are being loaded.
5443         (reload_shared_libraries_1): Ditto.
5444         * symfile.c (print_symbol_loading_off): New static global.
5445         (print_symbol_loading_brief): New static global.
5446         (print_symbol_loading_full): New static global.
5447         (print_symbol_loading_enums): New static global.
5448         (print_symbol_loading): New static global.
5449         (print_symbol_loading_p): New function.
5450         (symbol_file_add_with_addrs): Only print symbol loading messages
5451         if requested.
5452         (_initialize_symfile): Register "print symbol-loading" set/show
5453         command.
5454         * symfile.h (print_symbol_loading_p): Declare.
5455
5456 2014-03-30  Doug Evans  <xdje42@gmail.com>
5457
5458         * infrun.c (set_last_target_status): New function.
5459         (handle_inferior_event): Call it.
5460
5461 2014-03-30  Doug Evans  <xdje42@gmail.com>
5462
5463         * inferior.h (enum stop_kind): Improve comment.
5464
5465 2014-03-28  Joel Brobecker  <brobecker@adacore.com>
5466
5467         * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5468         a reference, strip the reference layer before calling
5469         the lang_ops value_has_mutated callback.
5470
5471 2014-03-27  Sergio Durigan Junior  <sergiodj@redhat.com>
5472
5473         Remove some globals from our parser.
5474         * language.c (unk_lang_parser): Add "struct parser_state"
5475         argument.
5476         * language.h (struct language_defn) <la_parser>: Likewise.
5477         * parse.c (expout, expout_size, expout_ptr): Remove variables.
5478         (initialize_expout): Add "struct parser_state" argument.
5479         Rewrite function to use the parser state.
5480         (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5481         write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5482         write_exp_elt_longcst, write_exp_elt_dblcst,
5483         write_exp_elt_decfloatcst, write_exp_elt_type,
5484         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5485         write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5486         write_dollar_variable): Likewise.
5487         (parse_exp_in_context_1): Use parser state.
5488         (insert_type_address_space): Add "struct parser_state" argument.
5489         Use parser state.
5490         (increase_expout_size): New function.
5491         * parser-defs.h: Forward declare "struct language_defn" and
5492         "struct parser_state".
5493         (expout, expout_size, expout_ptr): Remove extern declarations.
5494         (parse_gdbarch, parse_language): Rewrite macro declarations to
5495         accept the parser state.
5496         (struct parser_state): New struct.
5497         (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5498         write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5499         write_exp_elt_decfloatcst, write_exp_elt_type,
5500         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5501         write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5502         write_exp_msymbol, write_dollar_variable,
5503         mark_struct_expression, insert_type_address_space): Add "struct
5504         parser_state" argument.
5505         (increase_expout_size): New function.
5506         * utils.c (do_clear_parser_state): New function.
5507         (make_cleanup_clear_parser_state): Likewise.
5508         * utils.h (make_cleanup_clear_parser_state): New function
5509         prototype.
5510         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5511         Update calls to write_exp* in order to pass the parser state.
5512         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5513         * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5514         (i386_stap_parse_special_token_three_arg_disp): Likewise.
5515         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5516         * stap-probe.c (stap_parse_register_operand): Likewise.
5517         (stap_parse_single_operand): Likewise.
5518         (stap_parse_argument_1): Likewise.
5519         (stap_parse_argument): Use parser state.
5520         * stap-probe.h: Include "parser-defs.h".
5521         (struct stap_parse_info) <pstate>: New field.
5522         * c-exp.y (parse_type): Rewrite to use parser state.
5523         (yyparse): Redefine to c_parse_internal.
5524         (pstate): New global variable.
5525         (parse_number): Add "struct parser_state" argument.
5526         (write_destructor_name): Likewise.
5527         (type_exp): Update calls to write_exp* and similars in order to
5528         use parser state.
5529         (exp1, exp, variable, qualified_name, space_identifier,
5530         typename, typebase): Likewise.
5531         (write_destructor_name, parse_number, lex_one_token,
5532         classify_name, classify_inner_name, c_parse): Add "struct
5533         parser_state" argument.  Update function to use parser state.
5534         * c-lang.h: Forward declare "struct parser_state".
5535         (c_parse): Add "struct parser_state" argument.
5536         * ada-exp.y (parse_type): Rewrite macro to use parser state.
5537         (yyparse): Redefine macro to ada_parse_internal.
5538         (pstate): New variable.
5539         (write_int, write_object_renaming, write_var_or_type,
5540         write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5541         type_int, type_long, type_long_long, type_float, type_double,
5542         type_long_double, type_char, type_boolean, type_system_address):
5543         Add "struct parser_state" argument.
5544         (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5545         or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5546         var_or_type, aggregate, aggregate_component_list,
5547         positional_list, others, component_group,
5548         component_associations): Update calls to write_exp* and similar
5549         functions in order to use parser state.
5550         (ada_parse, write_var_from_sym, write_int,
5551         write_exp_op_with_string, write_object_renaming,
5552         find_primitive_type, write_selectors, write_ambiguous_var,
5553         write_var_or_type, write_name_assoc, type_int, type_long,
5554         type_long_long, type_float, type_double, type_long_double,
5555         type_char, type_boolean, type_system_address): Add "struct
5556         parser_state" argument.  Adjust function to use parser state.
5557         * ada-lang.c (parse): Likewise.
5558         * ada-lang.h: Forward declare "struct parser_state".
5559         (ada_parse): Add "struct parser_state" argument.
5560         * ada-lex.l (processInt, processReal): Likewise.  Adjust all
5561         calls to both functions.
5562         * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5563         parser state.
5564         (yyparse): Redefine macro to f_parse_internal.
5565         (pstate): New variable.
5566         (parse_number): Add "struct parser_state" argument.
5567         (type_exp, exp, subrange, typebase): Update calls to write_exp*
5568         and similars in order to use parser state.
5569         (parse_number): Adjust code to use parser state.
5570         (yylex): Likewise.
5571         (f_parse): New function.
5572         * f-lang.h: Forward declare "struct parser_state".
5573         (f_parse): Add "struct parser_state" argument.
5574         * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5575         parser state.
5576         (yyparse): Redefine macro for java_parse_internal.
5577         (pstate): New variable.
5578         (push_expression_name, push_expression_name, insert_exp): Add
5579         "struct parser_state" argument.
5580         (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5581         FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5582         FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5583         PostIncrementExpression, PostDecrementExpression,
5584         UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5585         UnaryExpressionNotPlusMinus, CastExpression,
5586         MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5587         RelationalExpression, EqualityExpression, AndExpression,
5588         ExclusiveOrExpression, InclusiveOrExpression,
5589         ConditionalAndExpression, ConditionalOrExpression,
5590         ConditionalExpression, Assignment, LeftHandSide): Update
5591         calls to write_exp* and similars in order to use parser state.
5592         (parse_number): Ajust code to use parser state.
5593         (yylex): Likewise.
5594         (java_parse): New function.
5595         (push_variable): Add "struct parser_state" argument.  Adjust
5596         code to user parser state.
5597         (push_fieldnames, push_qualified_expression_name,
5598         push_expression_name, insert_exp): Likewise.
5599         * jv-lang.h: Forward declare "struct parser_state".
5600         (java_parse): Add "struct parser_state" argument.
5601         * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5602         parser state.
5603         (yyparse): Redefine macro to m2_parse_internal.
5604         (pstate): New variable.
5605         (type_exp, exp, fblock, variable, type): Update calls to
5606         write_exp* and similars to use parser state.
5607         (yylex): Likewise.
5608         (m2_parse): New function.
5609         * m2-lang.h: Forward declare "struct parser_state".
5610         (m2_parse): Add "struct parser_state" argument.
5611         * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5612         * objc-lang.h: Forward declare "struct parser_state".
5613         (end_msglist): Add "struct parser_state" argument.
5614         * p-exp.y (parse_type): Rewrite macro to use parser state.
5615         (yyparse): Redefine macro to pascal_parse_internal.
5616         (pstate): New variable.
5617         (parse_number): Add "struct parser_state" argument.
5618         (type_exp, exp1, exp, qualified_name, variable): Update calls to
5619         write_exp* and similars in order to use parser state.
5620         (parse_number, yylex): Adjust code to use parser state.
5621         (pascal_parse): New function.
5622         * p-lang.h: Forward declare "struct parser_state".
5623         (pascal_parse): Add "struct parser_state" argument.
5624         * go-exp.y (parse_type): Rewrite macro to use parser state.
5625         (yyparse): Redefine macro to go_parse_internal.
5626         (pstate): New variable.
5627         (parse_number): Add "struct parser_state" argument.
5628         (type_exp, exp1, exp, variable, type): Update calls to
5629         write_exp* and similars in order to use parser state.
5630         (parse_number, lex_one_token, classify_name, yylex): Adjust code
5631         to use parser state.
5632         (go_parse): Likewise.
5633         * go-lang.h: Forward declare "struct parser_state".
5634         (go_parse): Add "struct parser_state" argument.
5635
5636 2014-03-27  Doug Evans  <dje@google.com>
5637
5638         * dwarf2read.c (read_str_index): Delete arg cu.  All callers updated.
5639
5640 2014-03-27  Doug Evans  <dje@google.com>
5641
5642         * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5643         Remove argument abbrev_section.  All callers updated.
5644
5645 2014-03-27  Doug Evans  <dje@google.com>
5646
5647         * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5648         addr_base, ranges_base.
5649
5650 2014-03-26  Keith Seitz  <keiths@redhat.com>
5651
5652         * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5653         types, not VAR_DOMAIN.
5654
5655 2014-03-25  Sandra Loosemore  <sandra@codesourcery.com>
5656
5657         * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5658         "ra" registers.
5659         * features/nios2-linux.c: Regenerated.
5660         * features/nios2.c: Regenerated.
5661
5662 2014-03-25  Pedro Alves  <palves@redhat.com>
5663
5664         * cli/cli-script.c (script_from_file): Force the interpreter to
5665         sync mode.
5666
5667 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
5668
5669         * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5670         small stack allocation.
5671
5672 2014-03-24  Tristan Gingold  <gingold@adacore.com>
5673
5674         * darwin-nat.c (exc_server): Remove unused prototype.
5675         (darwin_dump_message): Correctly display data on x86_64.
5676         (darwin_encode_reply): Fix style.
5677         Add comments and fix indentation.
5678
5679 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
5680
5681         * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5682
5683 2014-03-22  Doug Evans  <xdje42@gmail.com>
5684
5685         * infcmd.c: Whitespace fixes.
5686         (interrupt_command): Merge two function comments into one.
5687
5688 2014-03-22  Doug Evans  <xdje42@gmail.com>
5689
5690         * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5691         All uses updated.
5692
5693 2014-03-22  Yao Qi  <yao@codesourcery.com>
5694
5695         * remote.c (target_read_live_memory): Remove.
5696         (memory_xfer_live_readonly_partial): Rename it to
5697         remote_xfer_live_readonly_partial.  Remove argument 'object'.
5698         All callers updated.  Call remote_read_bytes_1
5699         instead of target_read_live_memory.
5700         * tracepoint.c (set_traceframe_number): Remove.
5701         (make_cleanup_restore_traceframe_number): Likewise .
5702         * tracepoint.h (set_traceframe_number): Remove declaration.
5703         (make_cleanup_restore_traceframe_number): Likewise.
5704
5705 2014-03-22  Yao Qi  <yao@codesourcery.com>
5706
5707         * remote.c (remote_read_bytes): Move code on reading from the
5708         remote stub to ...
5709         (remote_read_bytes_1): ... here.  New function.
5710
5711 2014-03-22  Yao Qi  <yao@codesourcery.com>
5712
5713         * ctf.c (ctf_xfer_partial): Check the return value of
5714         exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5715         return TARGET_XFER_UNAVAILABLE.
5716         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5717         * target.c (target_read_live_memory): Move it to remote.c.
5718         (memory_xfer_live_readonly_partial): Likewise.
5719         (memory_xfer_partial_1): Move some code to remote_read_bytes.
5720         * remote.c (target_read_live_memory): Moved from target.c.
5721         (memory_xfer_live_readonly_partial): Likewise.
5722         (remote_read_bytes): Factored out from
5723         memory_xfer_partial_1.
5724
5725 2014-03-21  Daniel Gutson  <daniel.gutson@tallertechnologies.com>
5726
5727         * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5728         NULL pointer.
5729
5730 2014-03-21  Pedro Alves  <palves@redhat.com>
5731
5732         * infrun.c (normal_stop): Extend comment.
5733
5734 2014-03-21  Hui Zhu  <hui@codesourcery.com>
5735             Pedro Alves  <palves@redhat.com>
5736
5737         * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5738         static buffer.
5739         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5740         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5741         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5742
5743 2014-03-20  Maciej W. Rozycki  <macro@codesourcery.com>
5744
5745         * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5746         `z' formatted output modifier.
5747
5748 2014-03-20  Tom Tromey  <tromey@redhat.com>
5749             Sergio Durigan Junior  <sergiodj@redhat.com>
5750
5751         * probe.c (parse_probes): Turn assert into an ordinary error.
5752         * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5753         exceptions when parsing probes.  Rearrange the code for clarity.
5754
5755 2014-03-20  Tom Tromey  <tromey@redhat.com>
5756
5757         PR gdb/14135
5758         * top.c (execute_command): Only dispatch events if the command
5759         started the target.
5760
5761 2014-03-20  Tom Tromey  <tromey@redhat.com>
5762
5763         PR cli/15718
5764         * infcall.c: Include event-top.h.
5765         (run_inferior_call): Call async_disable_stdin if needed.
5766
5767 2014-03-20  Pedro Alves  <palves@redhat.com>
5768
5769         * infrun.c (prepare_to_proceed): Delete.
5770         (thread_still_needs_step_over): New function.
5771         (find_thread_needs_step_over): New function.
5772         (proceed): If the current thread needs a step-over, set its
5773         steping_over_breakpoint flag.  Adjust to use
5774         find_thread_needs_step_over instead of prepare_to_proceed.
5775         (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
5776         BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
5777         breakpoint.
5778         (switch_back_to_stepped_thread): Step over breakpoints of all
5779         threads not the stepping thread, before switching back to the
5780         stepping thread.
5781
5782 2014-03-20  Pedro Alves  <palves@redhat.com>
5783
5784         * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
5785         extern.
5786         * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
5787         * infrun.c (saved_singlestep_ptid)
5788         (stepping_past_singlestep_breakpoint): Delete.
5789         (resume): Remove stepping_past_singlestep_breakpoint handling.
5790         (proceed): Store the prev_pc of the stepping thread too.
5791         (init_wait_for_inferior): Adjust.  Clear singlestep_ptid and
5792         singlestep_pc.
5793         (enum infwait_states): Delete infwait_thread_hop_state.
5794         (struct execution_control_state) <hit_singlestep_breakpoint>: New
5795         field.
5796         (handle_inferior_event): Adjust.
5797         (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
5798         handling and the thread-hop code.  Before removing single-step
5799         breakpoints, check whether the thread hit a single-step breakpoint
5800         of another thread.  If it did, the trap is not a random signal.
5801         (switch_back_to_stepped_thread): If the event thread hit a
5802         single-step breakpoint, unblock it before switching to the
5803         stepping thread.  Handle the case of the stepped thread having
5804         advanced already.
5805         (keep_going): Handle the case of the current thread moving past a
5806         single-step breakpoint.
5807
5808 2014-03-20  Pedro Alves  <palves@redhat.com>
5809
5810         PR breakpoints/7143
5811         * breakpoint.c (should_be_inserted): Don't insert breakpoints that
5812         are being stepped over.
5813         (breakpoint_address_match): Make extern.
5814         * breakpoint.h (breakpoint_address_match): New declaration.
5815         * inferior.h (stepping_past_instruction_at): New declaration.
5816         * infrun.c (struct step_over_info): New type.
5817         (step_over_info): New global.
5818         (set_step_over_info, clear_step_over_info)
5819         (stepping_past_instruction_at): New functions.
5820         (handle_inferior_event): Clear the step-over info when
5821         trap_expected is cleared.
5822         (resume): Remove now stale comment.
5823         (clear_proceed_status): Clear step-over info.
5824         (proceed): Adjust step-over handling to set or clear the step-over
5825         info instead of removing all breakpoints.
5826         (handle_signal_stop): When setting up a thread-hop, don't remove
5827         breakpoints here.
5828         (stop_stepping): Clear step-over info.
5829         (keep_going): Adjust step-over handling to set or clear step-over
5830         info and then always inserting breakpoints, instead of removing
5831         all breakpoints when stepping over one.
5832
5833 2014-03-20  Pedro Alves  <palves@redhat.com>
5834
5835         * infrun.c (previous_inferior_ptid): Adjust comment.
5836         (deferred_step_ptid): Delete.
5837         (infrun_thread_ptid_changed, prepare_to_proceed)
5838         (init_wait_for_inferior): Adjust.
5839         (handle_signal_stop): Delete deferred_step_ptid handling.
5840
5841 2014-03-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
5842
5843         PR gdb/15358
5844         * defs.h (sync_quit_force_run): New declaration.
5845         (QUIT): Check also SYNC_QUIT_FORCE_RUN.
5846         * event-top.c (async_sigterm_handler): New declaration.
5847         (async_sigterm_token): New variable.
5848         (async_init_signals): Create also async_sigterm_token.
5849         (async_sigterm_handler): New function.
5850         (sync_quit_force_run): New variable.
5851         (handle_sigterm): Replace quit_force call by other calls.
5852         * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
5853
5854 2014-03-18  Maciej W. Rozycki  <macro@codesourcery.com>
5855
5856         * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
5857         offset into SPE pseudo registers.
5858
5859 2014-03-18  Pedro Alves  <palves@redhat.com>
5860
5861         PR gdb/13860
5862         * inferior.h (print_stop_event): Declare.
5863         * infrun.c (print_stop_event): New, factored out from ...
5864         (normal_stop): ... this.
5865         * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
5866         of bpstat_print/print_stack_frame.
5867
5868 2014-03-17  Tom Tromey  <tromey@redhat.com>
5869
5870         * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
5871
5872 2014-03-17  Pierre-Marie de Rodat  <derodat@adacore.com>
5873
5874         * ada-lang.c (decode_constrained_packed_array): Perform a
5875         minimal coercion for reference with coerce_ref instead of
5876         ada_coerce_ref.
5877
5878 2014-03-17  Tristan Gingold  <gingold@adacore.com>
5879
5880         * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
5881         (darwin_solib_create_inferior_hook): Emit a warning if version
5882         is unhandled.
5883
5884 2014-03-16  Ulrich Weigand  <uweigand@de.ibm.com>
5885
5886         * python/py-value.c (get_field_flag): Cast flag_name argument to
5887         PyObject_GetAttrString to support Python 2.4.
5888
5889 2014-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
5890
5891         * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
5892         (Global Maintainers): Remove Jan Kratochvil.
5893
5894 2014-03-14  Pedro Alves  <palves@redhat.com>
5895
5896         * inferior.h (terminal_ours_for_output): Rename to ...
5897         (child_terminal_ours_for_output): ... this.
5898         (terminal_save_ours): Rename to ...
5899         (child_terminal_save_ours): ... this.
5900         (terminal_ours): Rename to ...
5901         (child_terminal_ours): ... this.
5902         (terminal_inferior): Rename to ...
5903         (child_terminal_inferior): ... this.
5904         (terminal_init_inferior): Rename to ...
5905         (child_terminal_init_inferior): ... this.
5906         (terminal_init_inferior_with_pgrp): Rename to ...
5907         (child_terminal_init_inferior_with_pgrp): ... this.
5908         * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
5909         (child_terminal_init_with_pgrp): ... this.
5910         (terminal_save_ours): Rename to ...
5911         (child_terminal_save_ours): ... this.
5912         (terminal_init_inferior): Rename to ...
5913         (child_terminal_init): ... this.  Adjust.
5914         (terminal_inferior): Rename to ...
5915         (child_terminal_inferior): ... this.
5916         (terminal_ours_for_output): Rename to ...
5917         (child_terminal_ours_for_output): ... this.  Adjust.
5918         (terminal_ours): Rename to ...
5919         (child_terminal_ours): ... this.
5920         (terminal_ours_1): Rename to ...
5921         (child_terminal_ours_1): ... this.  Adjust.
5922         * linux-nat.c (linux_nat_terminal_inferior): Adjust.
5923         * windows-nat.c (do_initial_windows_stuff): Adjust.
5924         * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
5925         (gnu_terminal_init): ... this.  Adjust.
5926         (gnu_target): Adjust.
5927         * inf-child.c (inf_child_target): Adjust.
5928
5929 2014-03-13  Doug Evans  <xdje42@gmail.com>
5930
5931         PR guile/16612
5932         * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
5933         new eq?-hashtab.
5934
5935 2014-03-13  Doug Evans  <xdje42@gmail.com>
5936
5937         * value.c (record_latest_value): Call release_value_or_incref
5938         instead of release_value.
5939
5940 2014-03-13  Pedro Alves  <palves@redhat.com>
5941
5942         * procfs.c (procfs_target): Don't override to_shortname,
5943         to_longname or to_doc.
5944
5945 2014-03-13  Pedro Alves  <palves@redhat.com>
5946
5947         * inf-child.c (inf_child_open, inf_child_target): Don't mention
5948         Unix in user visible strings.
5949
5950 2014-03-12  Stan Shebs  <stan@codesourcery.com>
5951
5952         * gdbtypes.h: Annotate comments for Doxygen, add a page
5953         block comment with some general info.
5954
5955 2014-03-12  Pedro Alves  <palves@redhat.com>
5956
5957         * infcmd.c (prepare_execution_command): New function, factored out
5958         from several execution commands.
5959         (run_command_1, continue_command, step_1, jump_command)
5960         (signal_command, until_command, advance_command, finish_command)
5961         (attach_command): Use prepare_execution_command.
5962
5963 2014-03-12  Omair Javaid  <omair.javaid@linaro.org>
5964
5965         * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
5966         (MAX_BPTS): Define.
5967         (MAX_WPTS): Define.
5968         (struct arm_linux_thread_points): Removed.
5969         (struct arm_linux_process_info): New.
5970         (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
5971         (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
5972         (arm_linux_find_breakpoints_by_tid): Removed.
5973         (struct arch_lwp_info): New.
5974         (arm_linux_find_process_pid): New functions.
5975         (arm_linux_add_process): New functions.
5976         (arm_linux_process_info_get): New functions.
5977         (arm_linux_forget_process): New function.
5978         (arm_linux_get_debug_reg_state): New function.
5979         (struct update_registers_data): New.
5980         (update_registers_callback): New function.
5981         (arm_linux_insert_hw_breakpoint1): Updated.
5982         (arm_linux_remove_hw_breakpoint1): Updated.
5983         (arm_linux_insert_hw_breakpoint): Updated.
5984         (arm_linux_remove_hw_breakpoint): Updated.
5985         (arm_linux_insert_watchpoint): Updated.
5986         (arm_linux_remove_watchpoint): Updated.
5987         (arm_linux_new_thread): Updated.
5988         (arm_linux_prepare_to_resume): New function.
5989         (arm_linux_new_fork): New function.
5990         (_initialize_arm_linux_nat): Updated.
5991
5992 2014-03-12  Pedro Alves  <palves@redhat.com>
5993
5994         * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
5995
5996 2014-03-12  Tom Tromey  <tromey@redhat.com>
5997
5998         * inf-child.c (return_zero): New function.
5999         (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6000         * aix-thread.c (aix_thread_inferior_created): New function.
6001         (aix_thread_attach): Remove.
6002         (init_aix_thread_ops): Don't set to_attach.
6003         (_initialize_aix_thread): Register inferior_created observer.
6004         * corelow.c (init_core_ops): Don't set to_attach or
6005         to_create_inferior.
6006         * exec.c (init_exec_ops): Don't set to_attach or
6007         to_create_inferior.
6008         * infcmd.c (run_command_1): Use find_run_target.  Make direct
6009         target calls.
6010         (attach_command): Use find_attach_target.  Make direct target
6011         calls.
6012         * record-btrace.c (init_record_btrace_ops): Don't set
6013         to_create_inferior.
6014         * record-full.c (record_full_can_async_p, record_full_is_async_p):
6015         Remove.
6016         (init_record_full_ops, init_record_full_core_ops): Update.  Don't
6017         set to_create_inferior.
6018         * target.c (complete_target_initialization): Add assertion.
6019         (target_create_inferior): Remove.
6020         (find_default_attach, find_default_create_inferior): Remove.
6021         (find_attach_target, find_run_target): New functions.
6022         (find_default_is_async_p, find_default_can_async_p)
6023         (target_supports_non_stop, target_attach): Remove.
6024         (init_dummy_target): Don't set to_create_inferior or
6025         to_supports_non_stop.
6026         * target.h (struct target_ops) <to_attach>: Add comment.  Remove
6027         TARGET_DEFAULT_FUNC.
6028         <to_create_inferior>: Add comment.
6029         <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6030         TARGET_DEFAULT_RETURN.
6031         <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6032         (find_attach_target, find_run_target): Declare.
6033         (target_create_inferior): Remove.
6034         (target_has_execution_1): Update comment.
6035         (target_supports_non_stop): Remove.
6036         * target-delegates.c: Rebuild.
6037
6038 2014-03-12  Pedro Alves  <palves@redhat.com>
6039
6040         * inf-child.h: Update comment to not mention Unix.
6041
6042 2014-03-12  Pedro Alves  <palves@redhat.com>
6043
6044         * inf-child.c: Update top comment to not mention Unix.  Add
6045         generic comment describing how this target is meant to be used.
6046         (inf_child_post_attach, inf_child_post_startup_inferior)
6047         (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6048         Unix in comment.
6049
6050 2014-03-12  Pedro Alves  <palves@redhat.com>
6051
6052         * nto-procfs.c: Include inf-child.h.
6053         (procfs_ops): Delete global.
6054         (procfs_can_run): Delete method.
6055         (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6056         target pointer instead of referencing procfs_ops.
6057         (procfs_prepare_to_store): Delete.
6058         (init_procfs_ops): Delete function.
6059         (procfs_target): New function, based on init_procfs_ops, but
6060         inherit inf_child_target.
6061         (_initialize_procfs): Use procfs_target.
6062
6063 2014-03-12  Pedro Alves  <palves@redhat.com>
6064
6065         * windows-nat.c: Include inf-child.h.
6066         (windows_ops): Delete global.
6067         (windows_open, windows_prepare_to_store, windows_can_run): Delete
6068         methods.
6069         (init_windows_ops): Delete function.
6070         (windows_target): New function, based on init_windows_ops, but
6071         inherit inf_child_target.
6072         (_initialize_windows_nat): Use windows_target.  Install x86
6073         specific target methods here.
6074
6075 2014-03-10  Doug Evans  <xdje42@gmail.com>
6076
6077         * guile/guile.c (call_initialize_gdb_module): New function.
6078         (initialize_guile): Replace call to scm_init_guile with call to
6079         scm_with_guile.
6080
6081 2014-03-10  Joel Brobecker  <brobecker@adacore.com>
6082
6083         * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6084         in call to TYPE_CODE macro.
6085
6086 2014-03-10  Jerome Guitton  <guitton@adacore.com>
6087
6088         * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6089         Resolve tagged types to full view.
6090
6091 2014-03-10  Hui Zhu  <hui@codesourcery.com>
6092
6093         * target.h (target_insert_breakpoint): Remove "hardware" from its
6094         comments.
6095
6096 2014-03-07  Doug Evans  <dje@google.com>
6097
6098         * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6099
6100 2014-03-07  Doug Evans  <dje@google.com>
6101
6102         * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6103         Remove unused local comp_dir_attr.  Assert exactly one of
6104         stub_comp_unit_die, stub_comp_dir is non-NULL.
6105
6106 2014-03-07  Joel Brobecker  <brobecker@adacore.com>
6107
6108         * target.h (complete_target_initialization, add_target):
6109         Add comment.
6110
6111 2014-03-07  Pedro Alves  <palves@redhat.com>
6112
6113         * go32-nat.c: Include inf-child.h.
6114         (go32_ops): Delete global.
6115         (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6116         Delete methods.
6117         (go32_create_inferior): Push the passed in target pointer instead
6118         of referencing go32_ops.
6119         (init_go32_ops): Delete function.  Moved parts to _initialize_go32_nat.
6120         (go32_target): New function, based on init_go32_ops, but inherit
6121         inf_child_target.
6122         (_initialize_go32_nat): Use go32_target.  Move parts of
6123         init_go32_ops here.
6124
6125 2014-03-06  Joel Brobecker  <brobecker@adacore.com>
6126
6127         * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6128         (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6129         SYMBOL_VALUE_ADDRESS.
6130         (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6131
6132 2014-03-06  Yao Qi  <yao@codesourcery.com>
6133
6134         * breakpoint.c (get_tracepoint_by_number): Remove argument
6135         optional_p.  All callers updated.  Adjust comments.  Update
6136         output message.
6137         * breakpoint.h (get_tracepoint_by_number): Update declaration.
6138
6139 2014-03-06  Yao Qi  <yao@codesourcery.com>
6140
6141         * reverse.c (goto_bookmark_command): Add local 'p'.  Emit error
6142         early if get_number returns zero.  Use 'p' instead of 'args'.
6143
6144 2014-03-06  Yao Qi  <yao@codesourcery.com>
6145
6146         * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6147         message.
6148
6149 2014-03-06  Yao Qi  <yao@codesourcery.com>
6150
6151         PR breakpoints/16508
6152         * tracepoint.c (check_trace_running): New function.
6153         (trace_find_command): Move code to check_trace_running and
6154         call check_trace_running.
6155         (trace_find_pc_command): Likewise.
6156         (trace_find_tracepoint_command): Likewise.
6157         (trace_find_line_command): Likewise.
6158         (trace_find_range_command): Likewise.
6159         * tracepoint.h (check_trace_running): Likewise.
6160         * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6161
6162 2014-03-06  Yao Qi  <yao@codesourcery.com>
6163
6164         * target.h (struct target_ops) <to_traceframe_info>: Use
6165         TARGET_DEFAULT_NORETURN (tcomplain ()).
6166         * target-delegates.c: Regenerated.
6167
6168 2014-03-05  Pedro Alves  <palves@redhat.com>
6169
6170         PR gdb/16575
6171         * dcache.c (dcache_poke_byte): Constify ptr parameter.  Return
6172         void.  Update comment.
6173         (dcache_xfer_memory): Delete.
6174         (dcache_read_memory_partial): New, based on the read bits of
6175         dcache_xfer_memory.
6176         (dcache_update): Add status parameter.  Use ULONGEST for len, and
6177         adjust.  Discard cache lines if the reason for the update was
6178         error.
6179         * dcache.h (dcache_xfer_memory): Delete declaration.
6180         (dcache_read_memory_partial): New declaration.
6181         (dcache_update): Update prototype.
6182         * target.c (raw_memory_xfer_partial): Update the dcache here.
6183         (memory_xfer_partial_1): Don't handle dcache writes here.
6184
6185 2014-03-05  Mike Frysinger  <vapier@gentoo.org>
6186
6187         * remote-sim.c (gdbsim_load): Add const to prog.
6188
6189 2014-03-03  Tom Tromey  <tromey@redhat.com>
6190
6191         * elfread.c (probe_key): Change to bfd_data.
6192         (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6193         now per-BFD, not per-objfile.
6194         * stap-probe.c (stap_probe_destroy): Update comment.
6195         (handle_stap_probe): Allocate on the per-BFD obstack.
6196
6197 2014-03-03  Tom Tromey  <tromey@redhat.com>
6198
6199         * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6200         * breakpoint.c (create_longjmp_master_breakpoint): Use
6201         get_probe_address.
6202         (add_location_to_breakpoint, bkpt_probe_insert_location)
6203         (bkpt_probe_remove_location): Update.
6204         * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6205         * elfread.c (elf_symfile_relocate_probe): Remove.
6206         (elf_probe_fns): Update.
6207         (insert_exception_resume_breakpoint): Change type of "probe"
6208         parameter to bound_probe.
6209         (check_exception_resume): Update.
6210         * objfiles.c (objfile_relocate1): Don't relocate probes.
6211         * probe.c (bound_probe_s): New typedef.
6212         (parse_probes): Use get_probe_address.  Set sal's objfile.
6213         (find_probe_by_pc): Return a bound_probe.
6214         (collect_probes): Return a VEC(bound_probe_s).
6215         (compare_probes): Update.
6216         (gen_ui_out_table_header_info): Change type of "probes"
6217         parameter.  Update.
6218         (info_probes_for_ops): Update.
6219         (get_probe_address): New function.
6220         (probe_safe_evaluate_at_pc): Update.
6221         * probe.h (struct probe_ops) <get_probe_address>: New field.
6222         <set_semaphore, clear_semaphore>: Add objfile parameter.
6223         (struct probe) <objfile>: Remove field.
6224         <arch>: New field.
6225         <address>: Update comment.
6226         (struct bound_probe): New.
6227         (find_probe_by_pc): Return a bound_probe.
6228         (get_probe_address): Declare.
6229         * solib-svr4.c (struct probe_and_action) <address>: New field.
6230         (hash_probe_and_action, equal_probe_and_action): Update.
6231         (register_solib_event_probe): Add address parameter.
6232         (solib_event_probe_at): Update.
6233         (svr4_create_probe_breakpoints): Add objfile parameter.  Use
6234         get_probe_address.
6235         * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6236         (stap_get_probe_address): New function.
6237         (stap_can_evaluate_probe_arguments, compute_probe_arg)
6238         (compile_probe_arg): Update.
6239         (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6240         address.
6241         (handle_stap_probe): Don't relocate the probe.
6242         (stap_relocate): Remove.
6243         (stap_gen_info_probes_table_values): Update.
6244         (stap_probe_ops): Remove stap_relocate.
6245         * symfile-debug.c (debug_sym_relocate_probe): Remove.
6246         (debug_sym_probe_fns): Update.
6247         * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6248         * symtab.c (init_sal): Use memset.
6249         * symtab.h (struct symtab_and_line) <objfile>: New field.
6250         * tracepoint.c (start_tracing, stop_tracing): Update.
6251
6252 2014-03-03  Tom Tromey  <tromey@redhat.com>
6253
6254         * probe.h (parse_probes, find_probe_by_pc)
6255         (find_probes_in_objfile): Fix comments.
6256
6257 2014-03-02  Doug Evans  <xdje42@gmail.com>
6258
6259         * infrun.c (handle_signal_stop): Replace test for
6260         TARGET_WAITKIND_STOPPED with an assert.
6261
6262 2014-03-02  Doug Evans  <xdje42@gmail.com>
6263
6264         * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6265
6266 2014-03-02  Doug Evans  <xdje42@gmail.com>
6267
6268         * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6269
6270 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
6271
6272         * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6273
6274 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
6275
6276         * i386obsd-nat.c: Include "obsd-nat.h".
6277         (_initialize_i386obsd_nat): Call obsd_add_target instead of
6278         add_target.
6279         * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6280
6281 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
6282
6283         * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6284
6285 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
6286
6287         * mips64obsd-nat.c: Include "obsd-nath".
6288         (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6289         add_target
6290         * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6291
6292 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
6293
6294         * amd64obsd-nat.c: Include "obsd-nat,h.
6295         (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6296         add_target.
6297         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6298
6299 2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
6300
6301         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6302         (find_overload_match): Update call to find_oload_champ.
6303         (find_oload_champ_namespace_loop): Likewise
6304
6305 2014-02-28  Mark Kettenis  <kettenis@gnu.org>
6306
6307         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6308
6309         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6310         * config/sparc/obsd64.mh: New file.
6311         * sparc64obsd-nat.c: New file.
6312
6313         * obsd-nat.h: New file.
6314         * obsd-nat.c: New file.
6315         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6316         (ALLDEPFILES): Add obsd-nat.c.
6317
6318 2014-02-28  Tom Tromey  <tromey@redhat.com>
6319
6320         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
6321         * cli-out.h (cli_ui_out_impl): Now const.
6322         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
6323         * ui-out.c (struct ui_out) <impl>: Now const.
6324         (default_ui_out_impl): Now const.
6325         (ui_out_new): Make 'impl' parameter const.
6326         * ui-out.h (ui_out_new): Update.
6327
6328 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
6329
6330         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6331
6332 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
6333
6334         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6335
6336 2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
6337
6338         Additional PR 8882 fix.
6339         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6340
6341 2014-02-27  Pedro Alves  <palves@redhat.com>
6342
6343         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6344         isn't set.
6345
6346 2014-02-27  Pedro Alves  <palves@redhat.com>
6347
6348         PR 12702
6349         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6350         * nat/linux-waitpid.c: Include string.h.
6351         (status_to_str): Moved here and made extern.
6352         * nat/linux-waitpid.h (status_to_str): New declaration.
6353
6354 2014-02-27  Hui Zhu  <hui@codesourcery.com>
6355
6356         PR 12702
6357         * infrun.c (ptid_match): Move ...
6358         * common/ptid.c (ptid_match): ... here.
6359         * inferior.h (ptid_match): Move ...
6360         * common/ptid.h (ptid_match): ... here.
6361
6362 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
6363
6364         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6365         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6366         gdb_target_obs.
6367
6368 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
6369
6370         * obsd-tdep.c (obsd_auxv_parse): New function.
6371         (obsd_init_abi): Set auxv_parse.
6372
6373         * gdbarch.sh (auxv_parse): New.
6374         * gdbarch.h: Regenerated.
6375         * gdbarch.c: Regenerated.
6376         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6377
6378 2014-02-26  Ludovic Courtès  <ludo@gnu.org>
6379
6380         * guile/scm-value.c (gdbscm_history_append_x): New function.
6381         (value_functions): Add it.
6382
6383 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
6384
6385         * dwarf2read.c (attr_value_as_address): New function.
6386         (dwarf2_find_base_address, read_call_site_scope): Use
6387         attr_value_as_address in place of DW_ADDR.
6388         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6389         the low and high addresses.  Slight rework of the handling
6390         of the high pc being a constant form, and limit it to
6391         DWARF verson 4 or higher.
6392         (dwarf2_record_block_ranges): Likewise.
6393         (read_partial_die): Likewise.
6394         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6395
6396 2014-02-26  Tom Tromey  <tromey@redhat.com>
6397
6398         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6399
6400 2014-02-26  Tom Tromey  <tromey@redhat.com>
6401
6402         * elfread.c (elf_read_minimal_symbols): Return early if
6403         minimal symbols have already been read.  Add "ei" parameter.
6404         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6405         * minsyms.c (prim_record_minimal_symbol_full): Update.
6406         * objfiles.h (struct objstats) <n_minsyms>: Move...
6407         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6408         * symmisc.c (print_objfile_statistics): Update.
6409
6410 2014-02-26  Tom Tromey  <tromey@redhat.com>
6411
6412         * elfread.c (elf_read_minimal_symbols): New function, from
6413         elf_symfile_read.
6414         (elf_symfile_read): Call it.
6415
6416 2014-02-26  Tom Tromey  <tromey@redhat.com>
6417
6418         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6419         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6420         (lookup_minimal_symbol_solib_trampoline)
6421         (lookup_minimal_symbol_by_pc_section_1)
6422         (lookup_minimal_symbol_and_objfile): Update.
6423         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6424         Don't allocate a minimal symbol if minsyms have already been read.
6425         (build_minimal_symbol_hash_tables): Update.
6426         (install_minimal_symbols): Do nothing if minsyms already read.
6427         Use the per-BFD obstack.
6428         (terminate_minimal_symbol_table): Use the per-BFD obstack.
6429         * objfiles.c (allocate_objfile): Call
6430         terminate_minimal_symbol_table later.
6431         (have_minimal_symbols): Update.
6432         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6433         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6434         Move from struct objfile.
6435         <minsyms_read>: New field.
6436         (struct objfile) <msymbols, minimal_symbol_count,
6437         msymbol_hash, msymbol_demangled_hash>: Move.
6438         (ALL_OBJFILE_MSYMBOLS): Update.
6439         * symfile.c (read_symbols): Set minsyms_read.
6440         (reread_symbols): Update.
6441         * symmisc.c (dump_objfile, dump_msymbols): Update.
6442
6443 2014-02-26  Tom Tromey  <tromey@redhat.com>
6444
6445         * minsyms.c (msymbols_sort): Remove.
6446         * minsyms.h (msymbols_sort): Remove.
6447         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6448         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6449         * elfread.c (elf_symtab_read): Don't add section offsets.
6450         * xcoffread.c (record_minimal_symbol): Don't add section offset
6451         to minimal symbol address.
6452         * somread.c (text_offset, data_offset): Remove.
6453         (som_symtab_read): Don't add section offsets to minimal symbol
6454         addresses.
6455         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6456         Don't add section offsets to minimal symbols.
6457         * coffread.c (coff_symtab_read): Don't add section offsets
6458         to minimal symbol addresses.
6459         * machoread.c (macho_symtab_add_minsym): Don't add section offset
6460         to minimal symbol addresses.
6461         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6462         section offset to minimal symbol addresses.
6463         * mdebugread.c (parse_partial_symbols): Don't add section
6464         offset to minimal symbol addresses.
6465         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6466         offset to minimal symbol addresses.
6467
6468 2014-02-26  Tom Tromey  <tromey@redhat.com>
6469
6470         * ada-lang.c (ada_main_name): Update.
6471         (ada_add_standard_exceptions): Update.
6472         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6473         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6474         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6475         * auxv.c (ld_so_xfer_auxv): Update.
6476         * avr-tdep.c (avr_scan_prologue): Update.
6477         * ax-gdb.c (gen_var_ref): Update.
6478         * blockframe.c (get_pc_function_start)
6479         (find_pc_partial_function_gnu_ifunc): Update.
6480         * breakpoint.c (create_overlay_event_breakpoint)
6481         (create_longjmp_master_breakpoint)
6482         (create_std_terminate_master_breakpoint)
6483         (create_exception_master_breakpoint): Update.
6484         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6485         * c-valprint.c (c_val_print): Update.
6486         * coff-pe-read.c (add_pe_forwarded_sym): Update.
6487         * common/agent.c (agent_look_up_symbols): Update.
6488         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6489         * dwarf2loc.c (call_site_to_target_addr): Update.
6490         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6491         * elfread.c (elf_gnu_ifunc_record_cache)
6492         (elf_gnu_ifunc_resolve_by_got): Update.
6493         * findvar.c (default_read_var_value): Update.
6494         * frame.c (inside_main_func): Update.
6495         * frv-tdep.c (frv_frame_this_id): Update.
6496         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6497         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6498         Update.
6499         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6500         (hppa_hpux_find_dummy_bpaddr): Update.
6501         * hppa-tdep.c (hppa_symbol_address): Update.
6502         * infcmd.c (until_next_command): Update.
6503         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6504         Update.
6505         * linespec.c (minsym_found, add_minsym): Update.
6506         * linux-nat.c (get_signo): Update.
6507         * linux-thread-db.c (inferior_has_bug): Update.
6508         * m32c-tdep.c (m32c_return_value)
6509         (m32c_m16c_address_to_pointer): Update.
6510         * m32r-tdep.c (m32r_frame_this_id): Update.
6511         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6512         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6513         * maint.c (maintenance_translate_address): Update.
6514         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6515         (frob_address): New function.
6516         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6517         frob_address.  Rename parameter to "pc_in".
6518         (compare_minimal_symbols, compact_minimal_symbols): Use raw
6519         addresses.
6520         (find_solib_trampoline_target, minimal_symbol_upper_bound):
6521         Update.
6522         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6523         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6524         * objc-lang.c (find_objc_msgsend): Update.
6525         * objfiles.c (objfile_relocate1): Update.
6526         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6527         * p-valprint.c (pascal_val_print): Update.
6528         * parse.c (write_exp_msymbol): Update.
6529         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6530         (ppc_elfv2_skip_entrypoint): Update.
6531         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6532         * printcmd.c (build_address_symbolic, msym_info)
6533         (address_info): Update.
6534         * proc-service.c (ps_pglobal_lookup): Update.
6535         * psymtab.c (find_pc_sect_psymtab_closer)
6536         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6537         Change msymbol parameter to bound_minimal_symbol.
6538         * ravenscar-thread.c (get_running_thread_id): Update.
6539         * remote.c (remote_check_symbols): Update.
6540         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6541         address.
6542         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6543         * solib-dsbt.c (lm_base): Update.
6544         * solib-frv.c (lm_base, main_got): Update.
6545         * solib-irix.c (locate_base): Update.
6546         * solib-som.c (som_solib_create_inferior_hook)
6547         (link_map_start): Update.
6548         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6549         * solib-svr4.c (elf_locate_base, enable_break): Update.
6550         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6551         (flush_ea_cache): Update.
6552         * stabsread.c (define_symbol, scan_file_globals): Update.
6553         * stack.c (find_frame_funname): Update.
6554         * symfile-debug.c (debug_qf_expand_symtabs_matching)
6555         (debug_qf_find_pc_sect_symtab): Update.
6556         * symfile.c (simple_read_overlay_table)
6557         (simple_overlay_update): Update.
6558         * symfile.h (struct quick_symbol_functions)
6559         <find_pc_sect_symtab>: Change type of msymbol to
6560         bound_minimal_symbol.
6561         * symmisc.c (dump_msymbols): Update.
6562         * symtab.c (find_pc_sect_symtab_via_partial)
6563         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6564         (search_symbols, print_msymbol_info): Update.
6565         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6566         (MSYMBOL_VALUE_ADDRESS): Redefine.
6567         (BMSYMBOL_VALUE_ADDRESS): New macro.
6568         * tracepoint.c (scope_info): Update.
6569         * tui/tui-disasm.c (tui_find_disassembly_address)
6570         (tui_get_begin_asm_address): Update.
6571         * valops.c (find_function_in_inferior): Update.
6572         * value.c (value_static_field, value_fn_field): Update.
6573
6574 2014-02-26  Tom Tromey  <tromey@redhat.com>
6575
6576         * ada-lang.c (ada_update_initial_language): Update.
6577         (ada_main_name, ada_has_this_exception_support): Update.
6578         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6579         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6580         * arm-tdep.c (arm_skip_stub): Update.
6581         * auxv.c (ld_so_xfer_auxv): Update.
6582         * avr-tdep.c (avr_scan_prologue): Update.
6583         * ax-gdb.c (gen_var_ref): Update.
6584         * breakpoint.c (struct breakpoint_objfile_data)
6585         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6586         type to bound_minimal_symbol.
6587         (create_overlay_event_breakpoint)
6588         (create_longjmp_master_breakpoint)
6589         (create_std_terminate_master_breakpoint)
6590         (create_exception_master_breakpoint): Update.
6591         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6592         * c-exp.y (classify_name): Update.
6593         * coffread.c (coff_symfile_read): Update.
6594         * common/agent.c (agent_look_up_symbols): Update.
6595         * d-lang.c (d_main_name): Update.
6596         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6597         * dec-thread.c (enable_dec_thread): Update.
6598         * dwarf2loc.c (call_site_to_target_addr): Update.
6599         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6600         * eval.c (evaluate_subexp_standard): Update.
6601         * findvar.c (struct minsym_lookup_data) <result>: Change type
6602         to bound_minimal_symbol.
6603         <objfile>: Remove.
6604         (minsym_lookup_iterator_cb, default_read_var_value): Update.
6605         * frame.c (inside_main_func): Update.
6606         * frv-tdep.c (frv_frame_this_id): Update.
6607         * gcore.c (call_target_sbrk): Update.
6608         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6609         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6610         Update.
6611         * go-lang.c (go_main_name): Update.
6612         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6613         (hppa_hpux_find_import_stub_for_addr): Update.
6614         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6615         Update.  Change return type.
6616         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6617         type.
6618         * jit.c (jit_breakpoint_re_set_internal): Update.
6619         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6620         Update.
6621         * linux-nat.c (get_signo): Update.
6622         * linux-thread-db.c (inferior_has_bug): Update
6623         * m32c-tdep.c (m32c_return_value)
6624         (m32c_m16c_address_to_pointer): Update.
6625         * m32r-tdep.c (m32r_frame_this_id): Update.
6626         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6627         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6628         * minsyms.c (lookup_minimal_symbol_internal): Rename to
6629         lookup_minimal_symbol.  Change return type.
6630         (lookup_minimal_symbol): Remove.
6631         (lookup_bound_minimal_symbol): Update.
6632         (lookup_minimal_symbol_text): Change return type.
6633         (lookup_minimal_symbol_solib_trampoline): Change return type.
6634         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6635         (lookup_minimal_symbol_solib_trampoline): Change return type.
6636         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6637         * objc-lang.c (lookup_objc_class, lookup_child_selector)
6638         (value_nsstring, find_imps): Update.
6639         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6640         * p-lang.c (pascal_main_name): Update.
6641         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6642         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6643         * proc-service.c (ps_pglobal_lookup): Update.
6644         * ravenscar-thread.c (get_running_thread_msymbol): Change
6645         return type.
6646         (has_ravenscar_runtime, get_running_thread_id): Update.
6647         * remote.c (remote_check_symbols): Update.
6648         * sol-thread.c (ps_pglobal_lookup): Update.
6649         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6650         * solib-dsbt.c (lm_base): Update.
6651         * solib-frv.c (lm_base, frv_relocate_section_addresses):
6652         Update.
6653         * solib-irix.c (locate_base): Update.
6654         * solib-som.c (som_solib_create_inferior_hook)
6655         (som_solib_desire_dynamic_linker_symbols, link_map_start):
6656         Update.
6657         * solib-spu.c (spu_enable_break): Update.
6658         * solib-svr4.c (elf_locate_base, enable_break): Update.
6659         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6660         (flush_ea_cache): Update.
6661         * stabsread.c (define_symbol): Update.
6662         * symfile.c (simple_read_overlay_table): Update.
6663         * symtab.c (find_pc_sect_line): Update.
6664         * tracepoint.c (scope_info): Update.
6665         * tui-disasm.c (tui_get_begin_asm_address): Update.
6666         * value.c (value_static_field): Update.
6667
6668 2014-02-26  Tom Tromey  <tromey@redhat.com>
6669
6670         * minsyms.c (prim_record_minimal_symbol_full): Use
6671         SET_MSYMBOL_VALUE_ADDRESS.
6672         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6673         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6674         SET_MSYMBOL_VALUE_ADDRESS.
6675         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6676         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6677
6678 2014-02-26  Tom Tromey  <tromey@redhat.com>
6679
6680         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6681         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6682         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6683         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6684         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6685         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6686         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6687         * ada-lang.c (ada_main_name): Update.
6688         (ada_lookup_simple_minsym): Update.
6689         (ada_make_symbol_completion_list): Update.
6690         (ada_add_standard_exceptions): Update.
6691         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6692         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6693         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6694         * arm-tdep.c (skip_prologue_function): Update.
6695         (arm_skip_stack_protector, arm_skip_stub): Update.
6696         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6697         (arm_wince_skip_main_prologue): Update.
6698         * auxv.c (ld_so_xfer_auxv): Update.
6699         * avr-tdep.c (avr_scan_prologue): Update.
6700         * ax-gdb.c (gen_var_ref): Update.
6701         * block.c (call_site_for_pc): Update.
6702         * blockframe.c (get_pc_function_start): Update.
6703         (find_pc_partial_function_gnu_ifunc): Update.
6704         * breakpoint.c (create_overlay_event_breakpoint): Update.
6705         (create_longjmp_master_breakpoint): Update.
6706         (create_std_terminate_master_breakpoint): Update.
6707         (create_exception_master_breakpoint): Update.
6708         (resolve_sal_pc): Update.
6709         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6710         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6711         Update.
6712         * c-valprint.c (c_val_print): Update.
6713         * coff-pe-read.c (add_pe_forwarded_sym): Update.
6714         * coffread.c (coff_symfile_read): Update.
6715         * common/agent.c (agent_look_up_symbols): Update.
6716         * dbxread.c (find_stab_function_addr): Update.
6717         (end_psymtab): Update.
6718         * dwarf2loc.c (call_site_to_target_addr): Update.
6719         (func_verify_no_selftailcall): Update.
6720         (tailcall_dump): Update.
6721         (call_site_find_chain_1): Update.
6722         (dwarf_expr_reg_to_entry_parameter): Update.
6723         * elfread.c (elf_gnu_ifunc_record_cache): Update.
6724         (elf_gnu_ifunc_resolve_by_got): Update.
6725         * f-valprint.c (info_common_command): Update.
6726         * findvar.c (read_var_value): Update.
6727         * frame.c (get_prev_frame_1): Update.
6728         (inside_main_func): Update.
6729         * frv-tdep.c (frv_skip_main_prologue): Update.
6730         (frv_frame_this_id): Update.
6731         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6732         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6733         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6734         (gnuv3_skip_trampoline): Update.
6735         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6736         (hppa64_hpux_in_solib_call_trampoline): Update.
6737         (hppa_hpux_skip_trampoline_code): Update.
6738         (hppa64_hpux_search_dummy_call_sequence): Update.
6739         (hppa_hpux_find_import_stub_for_addr): Update.
6740         (hppa_hpux_find_dummy_bpaddr): Update.
6741         * hppa-tdep.c (hppa_symbol_address)
6742         (hppa_lookup_stub_minimal_symbol): Update.
6743         * i386-tdep.c (i386_skip_main_prologue): Update.
6744         (i386_pe_skip_trampoline_code): Update.
6745         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6746         * infcall.c (get_function_name): Update.
6747         * infcmd.c (until_next_command): Update.
6748         * jit.c (jit_breakpoint_re_set_internal): Update.
6749         (jit_inferior_init): Update.
6750         * linespec.c (minsym_found): Update.
6751         (add_minsym): Update.
6752         * linux-fork.c (info_checkpoints_command): Update.
6753         * linux-nat.c (get_signo): Update.
6754         * linux-thread-db.c (inferior_has_bug): Update.
6755         * m32c-tdep.c (m32c_return_value): Update.
6756         (m32c_m16c_address_to_pointer): Update.
6757         (m32c_m16c_pointer_to_address): Update.
6758         * m32r-tdep.c (m32r_frame_this_id): Update.
6759         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6760         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6761         * maint.c (maintenance_translate_address): Update.
6762         * minsyms.c (add_minsym_to_hash_table): Update.
6763         (add_minsym_to_demangled_hash_table): Update.
6764         (msymbol_objfile): Update.
6765         (lookup_minimal_symbol): Update.
6766         (iterate_over_minimal_symbols): Update.
6767         (lookup_minimal_symbol_text): Update.
6768         (lookup_minimal_symbol_by_pc_name): Update.
6769         (lookup_minimal_symbol_solib_trampoline): Update.
6770         (lookup_minimal_symbol_by_pc_section_1): Update.
6771         (lookup_minimal_symbol_and_objfile): Update.
6772         (prim_record_minimal_symbol_full): Update.
6773         (compare_minimal_symbols): Update.
6774         (compact_minimal_symbols): Update.
6775         (build_minimal_symbol_hash_tables): Update.
6776         (install_minimal_symbols): Update.
6777         (terminate_minimal_symbol_table): Update.
6778         (find_solib_trampoline_target): Update.
6779         (minimal_symbol_upper_bound): Update.
6780         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6781         * mips-tdep.c (mips_stub_frame_sniffer): Update.
6782         (mips_skip_pic_trampoline_code): Update.
6783         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
6784         * objc-lang.c (selectors_info): Update.
6785         (classes_info): Update.
6786         (find_methods): Update.
6787         (find_imps): Update.
6788         (find_objc_msgsend): Update.
6789         * objfiles.c (objfile_relocate1): Update.
6790         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
6791         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6792         * p-valprint.c (pascal_val_print): Update.
6793         * parse.c (write_exp_msymbol): Update.
6794         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
6795         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
6796         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6797         * printcmd.c (build_address_symbolic): Update.
6798         (sym_info): Update.
6799         (address_info): Update.
6800         * proc-service.c (ps_pglobal_lookup): Update.
6801         * psymtab.c (find_pc_sect_psymtab_closer): Update.
6802         (find_pc_sect_psymtab): Update.
6803         * python/py-framefilter.c (py_print_frame): Update.
6804         * ravenscar-thread.c (get_running_thread_id): Update.
6805         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
6806         Update.
6807         * remote.c (remote_check_symbols): Update.
6808         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
6809         (rs6000_skip_trampoline_code): Update.
6810         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
6811         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6812         * solib-dsbt.c (lm_base): Update.
6813         * solib-frv.c (lm_base): Update.
6814         (main_got): Update.
6815         * solib-irix.c (locate_base): Update.
6816         * solib-som.c (som_solib_create_inferior_hook): Update.
6817         (som_solib_desire_dynamic_linker_symbols): Update.
6818         (link_map_start): Update.
6819         * solib-spu.c (spu_enable_break): Update.
6820         (ocl_enable_break): Update.
6821         * solib-svr4.c (elf_locate_base): Update.
6822         (enable_break): Update.
6823         * spu-tdep.c (spu_get_overlay_table): Update.
6824         (spu_catch_start): Update.
6825         (flush_ea_cache): Update.
6826         * stabsread.c (define_symbol): Update.
6827         (scan_file_globals): Update.
6828         * stack.c (find_frame_funname): Update.
6829         (frame_info): Update.
6830         * symfile.c (simple_read_overlay_table): Update.
6831         (simple_overlay_update): Update.
6832         * symmisc.c (dump_msymbols): Update.
6833         * symtab.c (fixup_section): Update.
6834         (find_pc_sect_line): Update.
6835         (skip_prologue_sal): Update.
6836         (search_symbols): Update.
6837         (print_msymbol_info): Update.
6838         (rbreak_command): Update.
6839         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
6840         (completion_list_objc_symbol): Update.
6841         (default_make_symbol_completion_list_break_on): Update.
6842         * tracepoint.c (scope_info): Update.
6843         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
6844         (tui_get_begin_asm_address): Update.
6845         * valops.c (find_function_in_inferior): Update.
6846         * value.c (value_static_field): Update.
6847         (value_fn_field): Update.
6848
6849 2014-02-26  Tom Tromey  <tromey@redhat.com>
6850
6851         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
6852         bound minimal symbols.  Move code that knows about minsym
6853         table layout...
6854         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
6855         function.
6856         * minsyms.h (minimal_symbol_upper_bound): Declare.
6857         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
6858         minimal_symbol_upper_bound.
6859
6860 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
6861
6862         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
6863         Use the type's name if its basic type does not have a tag.
6864
6865 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
6866
6867         * dwarf2read.c (read_subrange_type): Add comment.
6868
6869 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
6870
6871         * dwarf2read.c (update_enumeration_type_from_children): New
6872         function, mostly extracted from process_structure_scope.
6873         (read_enumeration_type): Call update_enumeration_type_from_children.
6874         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
6875         and flag_flag_enum fields.
6876
6877 2014-02-26  Pedro Alves  <palves@redhat.com>
6878
6879         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
6880         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
6881         to_xfer_partial method.
6882
6883 2014-02-26  Pedro Alves  <palves@redhat.com>
6884
6885         * target.c (complete_target_initialization): Don't install
6886         default_xfer_partial as to_xfer_partial hook.
6887         (nomemory): Delete.
6888         (update_current_target): Don't INHERIT nor de_fault
6889         deprecated_xfer_memory.  Delete de_fault macro.
6890         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
6891         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
6892         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
6893         field.
6894
6895 2014-02-26  Pedro Alves  <palves@redhat.com>
6896
6897         * go32-nat.c (my_write_child): New function.
6898         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
6899         (go32_xfer_partial): New function.
6900         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
6901         Instead install a to_xfer_partial hook.
6902
6903 2014-02-26  Pedro Alves  <palves@redhat.com>
6904
6905         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
6906         to_xfer_partial helper.  Rewrite.
6907         (procfs_xfer_partial): New function.
6908         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
6909         Install a to_xfer_partial hook.
6910
6911 2014-02-26  Pedro Alves  <palves@redhat.com>
6912
6913         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
6914         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
6915         (m32r_xfer_partial): New function.
6916         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
6917         Install a to_xfer_partial hook.
6918
6919 2014-02-26  Pedro Alves  <palves@redhat.com>
6920
6921         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
6922         helper.
6923         (mips_xfer_partial): New function.
6924         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
6925         hook.  Install a to_xfer_partial hook.
6926
6927 2014-02-26  Joel Brobecker  <brobecker@adacore.com>
6928
6929         * gdbtypes.h (create_array_type_with_stride): Add declaration.
6930         * gdbtypes.c (create_array_type_with_stride): New function,
6931         renaming create_array_type, but with an added parameter
6932         called "bit_stride".
6933         (create_array_type): Re-implement using
6934         create_array_type_with_stride.
6935         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
6936         and DW_AT_bit_stride attributes.
6937
6938 2014-02-26  Pedro Alves  <palves@redhat.com>
6939
6940         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
6941         task-specific breakpoints.
6942
6943 2014-02-25  Pedro Alves  <palves@redhat.com>
6944
6945         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
6946         handling of object == TARGET_OBJECT_UNWIND_TABLE.
6947
6948 2014-02-25  Stan Shebs  <stan@codesourcery.com>
6949
6950         * defs.h: Annotate comments for Doxygen.
6951
6952 2014-02-25  Tom Tromey  <tromey@redhat.com>
6953
6954         * target.h (target_ignore): Don't declare.
6955         * target.c (target_ignore): Remove.
6956
6957 2014-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
6958
6959         PR gdb/16626
6960         * auto-load.c (auto_load_objfile_script_1): Change filename to
6961         debugfile.
6962
6963 2014-02-25  Joel Brobecker  <brobecker@adacore.com>
6964
6965         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
6966         documentation.  Adjust prototype to match the target_ops
6967         to_xfer_partial method.  Adjust implementation accordingly.
6968
6969 2014-02-25  Hui Zhu  <hui@codesourcery.com>
6970
6971         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
6972         to_traceframe_info.
6973
6974 2014-02-25  Kevin Buettner  <kevinb@redhat.com>
6975
6976         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6977         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
6978         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
6979         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
6980         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
6981         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
6982         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
6983         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
6984         New constants.
6985         (rl78_register_type): Use a data pointer type for SP and
6986         new pseudo registers mentioned above.  Use a 16 bit integer
6987         type for all other register pairs.
6988         (rl78_register_name, rl78_g10_register_name): Update for
6989         new pseudo registers.
6990         (rl78_pseudo_register_read): Likewise.
6991         (rl78_pseudo_register_write): Likewise.
6992         (rl78_dwarf_reg_to_regnum): Return register numbers representing
6993         to the newly added pseudo registers.
6994
6995 2014-02-24  Doug Evans  <dje@google.com>
6996
6997         * value.c (record_latest_value): Fix comment.
6998         * printcmd.c (print_command_1): Remove code to handle -1 return from
6999         record_latest_value.
7000
7001 2014-02-24  Pedro Alves  <palves@redhat.com>
7002
7003         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7004         deprecated_xfer_memory hook.
7005         (procfs_xfer_partial): Call procfs_xfer_memory instead
7006         of the deprecated_xfer_memory target hook.
7007         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7008         helper.
7009
7010 2014-02-24  Yuanhui Zhang  <asmwarrior@gmail.com>
7011
7012         * windows-nat.c (windows_xfer_shared_libraries): Return
7013         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7014         requested object is TARGET_OBJECT_LIBRARIES.
7015
7016 2014-02-24  Yao Qi  <yao@codesourcery.com>
7017
7018         * target.h (enum target_xfer_status)
7019         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7020         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7021         explicitly.  New.
7022         * corefile.c (memory_error_message): User updated.
7023         * exec.c (section_table_read_available_memory): Likewise.
7024         * record-btrace.c (record_btrace_xfer_partial): Likewise.
7025         * target.c (target_xfer_status_to_string): Likewise.
7026         (raw_memory_xfer_partial): Likewise.
7027         (memory_xfer_partial_1, target_xfer_partial): Likewise.
7028         * valops.c (read_value_memory): Likewise.
7029         * exec.h: Update comments.
7030
7031 2014-02-24  Yao Qi  <yao@codesourcery.com>
7032
7033         * target.c (target_xfer_status_to_string): Rename argument err
7034         to status.
7035         * target.h (target_xfer_status_to_string): Update declaration.
7036         Replace target_xfer_error_to_string with
7037         target_xfer_status_to_string in comment.
7038
7039 2014-02-24  Yao Qi  <yao@codesourcery.com>
7040
7041         * mips-linux-nat.c (super_close): Update its type.
7042         (mips_linux_close): Pass 'self' to super_close.
7043
7044 2014-02-24  Yao Qi  <yao@codesourcery.com>
7045
7046         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7047         * corefile.c (read_memory): Adjusted.
7048         * target.c (target_write_with_progress): Adjusted.
7049
7050 2014-02-23  Yao Qi  <yao@codesourcery.com>
7051
7052         Revert two patches:
7053
7054         2013-10-25  Yao Qi  <yao@codesourcery.com>
7055
7056         * remote.c (remote_traceframe_info): Return early if
7057         traceframe is not selected.
7058
7059         2013-07-19  Yao Qi  <yao@codesourcery.com>
7060
7061         * target.c (update_current_target): Change the default action
7062         of 'to_traceframe_info' from tcomplain to return_zero.
7063         * target.h (struct target_ops) <to_traceframe_info>: Add more
7064         comments.
7065
7066 2014-02-23  Yao Qi  <yao@codesourcery.com>
7067
7068         * valops.c (read_value_memory): Rewrite it.  Call
7069         target_xfer_partial in a loop.
7070         * exec.h (section_table_available_memory): Remove declaration.
7071         Move comments to ...
7072         * exec.c (section_table_available_memory): ... here.  Make it
7073         static.
7074
7075 2014-02-23  Yao Qi  <yao@codesourcery.com>
7076
7077         * exec.c (section_table_read_available_memory): New function.
7078         * exec.h (section_table_read_available_memory): Declare.
7079         * ctf.c (ctf_xfer_partial): Call
7080         section_table_read_available_memory.
7081         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7082
7083 2014-02-23  Yao Qi  <yao@codesourcery.com>
7084
7085         * ctf.c (ctf_xfer_partial): Move code to ...
7086         * exec.c (exec_read_partial_read_only): ... it.  New function.
7087         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7088         * tracefile.c: Include "exec.h".
7089         * exec.h (exec_read_partial_read_only): Declare.
7090
7091 2014-02-23  Yao Qi  <yao@codesourcery.com>
7092
7093         * tracefile-tfile.c (tfile_has_all_memory): Remove.
7094         (tfile_has_memory): Remove.
7095         (init_tfile_ops): Don't set fields to_has_all_memory and
7096         to_has_memory of tfile_ops.
7097         * tracefile.c (tracefile_has_all_memory): New function.
7098         (tracefile_has_memory): New function.
7099         (init_tracefile_ops): Initialize fields to_has_all_memory and
7100         to_has_memory of 'ops'.
7101
7102 2014-02-23  Yao Qi  <yao@codesourcery.com>
7103
7104         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7105         (ctf_thread_alive, ctf_get_trace_status): Remove.
7106         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
7107         init_tracefile_ops.
7108         * tracefile-tfile.c (tfile_get_trace_status): Remove.
7109         (tfile_has_stack, tfile_has_registers): Remove.
7110         (tfile_thread_alive): Remove.
7111         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
7112         init_tracefile_ops.
7113         * tracefile.c (tracefile_has_stack): New function.
7114         (tracefile_has_registers): New function.
7115         (tracefile_thread_alive): New function.
7116         (tracefile_get_trace_status): New function.
7117         (init_tracefile_ops): New function.
7118         * tracefile.h (init_tracefile_ops): Declare.
7119
7120 2014-02-23  Yao Qi  <yao@codesourcery.com>
7121
7122         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7123         (O_LARGEFILE): Likewise.
7124         (tfile_ops): Likewise.
7125         (TRACE_HEADER_SIZE): Likewise.
7126         (trace_fd, trace_frames_offset, cur_offset): Likewise.
7127         (cur_data_size): Likewise.
7128         (tfile_read, tfile_open, tfile_interp_line): Likewise.
7129         (tfile_close, tfile_files_info): Likewise.
7130         (tfile_get_trace_status): Likewise.
7131         (tfile_get_tracepoint_status): Likewise.
7132         (tfile_get_traceframe_address): Likewise.
7133         (tfile_trace_find, match_blocktype): Likewise.
7134         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7135         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7136         (tfile_get_trace_state_variable_value): Likewise.
7137         (tfile_has_all_memory, tfile_has_memory): Likewise.
7138         (tfile_has_stack, tfile_has_registers): Likewise.
7139         (tfile_thread_alive, build_traceframe_info): Likewise.
7140         (tfile_traceframe_info, init_tfile_ops): Likewise.
7141         (_initialize_tracepoint): Don't call init_tfile_ops
7142         and add_target_with_completer.
7143         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7144         exec.h, completer.h and filenames.h.
7145         (_initialize_tracefile_tfile): New function.
7146
7147 2014-02-23  Yao Qi  <yao@codesourcery.com>
7148
7149         * Makefile.in (REMOTE_OBS): Append tracefile.o and
7150         tracefile-tfile.o.
7151         (HFILES_NO_SRCDIR): Add tracefile.h.
7152         * ctf.c: Include "tracefile.h".
7153         * tracefile.h: New file.
7154         * tracefile.c: New file
7155         * tracefile-tfile.c: New file.
7156         * tracepoint.c: Include "tracefile.h".
7157         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7158         (stop_reason_names): Add const.
7159         (trace_file_writer_xfree): Move it to tracefile.c.
7160         (trace_save, trace_save_command, trace_save_tfile): Likewise.
7161         (trace_save_ctf): Likewise.
7162         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7163         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7164         (tfile_write_header, tfile_write_regblock_type): Likewise.
7165         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7166         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7167         (tfile_write_raw_data, tfile_end): Likewise.
7168         (tfile_trace_file_writer_new): Likewise.
7169         (free_uploaded_tp): Make it extern.
7170         (free_uploaded_tsv): Make it extern.
7171         (_initialize_tracepoint): Move code to register command 'tsave'
7172         to tracefile.c.
7173         * tracepoint.h (stop_reason_names): Declare.
7174         (struct trace_frame_write_ops): Move it to tracefile.h.
7175         (struct trace_file_write_ops): Likewise.
7176         (struct trace_file_writer): Likewise.
7177         (free_uploaded_tsvs, free_uploaded_tps): Declare.
7178
7179 2014-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
7180
7181         PR gdb/16594
7182         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7183         process name.
7184         (get_cores_used_by_process): New parameter num_cores, use it.
7185         (linux_xfer_osdata_processes): Pass num_cores to it.
7186         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7187         process name.
7188
7189 2014-02-21  Andreas Arnez  <arnez@vnet.linux.ibm.com>
7190
7191         * target.c (memory_xfer_partial): Fix length arg in call to
7192         breakpoint_xfer_memory.
7193
7194 2014-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
7195
7196         PR tdep/16397
7197         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7198         number comes after the + or - signs.  Adjust length of register
7199         name to be extracted.
7200
7201 2014-02-20  Tom Tromey  <tromey@redhat.com>
7202
7203         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7204         (ada_varobj_ops): Mark "extern".
7205
7206 2014-02-20  Tom Tromey  <tromey@redhat.com>
7207
7208         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7209
7210 2014-02-20  Doug Evans  <xdje42@gmail.com>
7211
7212         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7213         All callers updated.
7214         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7215         All callers updated.
7216         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7217         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7218
7219 2014-02-20  lin zuojian  <manjian2006@gmail.com>
7220             Joel Brobecker  <brobecker@adacore.com>
7221             Doug Evans  <xdje42@gmail.com>
7222
7223         PR symtab/16581
7224         * dwarf2read.c (struct die_info): New member in_process.
7225         (reset_die_in_process): New function.
7226         (process_die): Set it at the start, reset when returning.
7227         (inherit_abstract_dies): Only call process_die if origin_child_die
7228         not already being processed.
7229
7230 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
7231
7232         * windows-nat.c (handle_unload_dll): Add function documentation.
7233         (do_initial_windows_stuff): Add comment explaining why we wait
7234         until after inferior initialization has finished before
7235         processing all DLLs.
7236
7237 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
7238
7239         * windows-nat.c (get_module_name): Delete.
7240         (windows_get_exec_module_filename): New function, mostly
7241         inspired from get_module_name.
7242         (windows_pid_to_exec_file): Replace call to get_module_name
7243         by call to windows_get_exec_module_filename.
7244
7245 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
7246
7247         * windows-nat.c (handle_load_dll): Rewrite this function's
7248         introductory comment.  Remove code using get_module_name
7249         to get the DLL's name.
7250
7251 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
7252
7253         * windows-nat.c (get_windows_debug_event): Ignore
7254         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7255         if windows_initialization_done == 0.
7256         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7257         Adjust implementation to always load all DLLs.
7258         (do_initial_windows_stuff): Replace call to
7259         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7260
7261 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
7262
7263         * windows-nat.c (_initialize_windows_nat): Deprecate the
7264         "dll-symbols" command.  Turn the "add-shared-symbol-files"
7265         and "assf" aliases into commands, and deprecate them as well.
7266         * NEWS: Add entry explaining that "dll-symbols" and its two
7267         aliases are now deprecated.
7268
7269 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
7270
7271         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7272         new-line in debug string.  Remove trailing spaces.
7273
7274 2014-02-19  Stan Shebs  <stan@codesourcery.com>
7275
7276         * darwin-nat.c (darwin_xfer_partial): Fix return type.
7277
7278 2014-02-19  Siva Chandra Reddy  <sivachandra@google.com>
7279
7280         * NEWS: Add entry for the new feature
7281         * python/py-value.c (valpy_binop): Call value_x_binop for struct
7282         and class values.
7283
7284 2014-02-19  Stan Shebs  <stan@codesourcery.com>
7285
7286         * MAINTAINERS: List Yao Qi as nios2 maintainer.
7287
7288 2014-02-19  Pedro Alves  <palves@redhat.com>
7289
7290         * common/ptid.h (struct ptid): Mention that process_stratum
7291         targets should prefer ptid.lwp.
7292
7293 2014-02-19  Pedro Alves  <palves@redhat.com>
7294
7295         * remote.c (remote_thread_alive, write_ptid, read_ptid)
7296         (read_ptid, remote_newthread_step, remote_threads_extra_info)
7297         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7298         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7299         store remote thread ids rather than ptid.tid.
7300         (_initialize_remote): Adjust.
7301
7302 2014-02-19  Tom Tromey  <tromey@redhat.com>
7303
7304         * target.c (target_get_unwinder): Rewrite.
7305         (target_get_tailcall_unwinder): Rewrite.
7306         * record-btrace.c (record_btrace_to_get_unwinder): New function.
7307         (record_btrace_to_get_tailcall_unwinder): New function.
7308         (init_record_btrace_ops): Update.
7309         * target.h (struct target_ops) <to_get_unwinder,
7310         to_get_tailcall_unwinder>: Now function pointers.  Use
7311         TARGET_DEFAULT_RETURN.
7312
7313 2014-02-19  Tom Tromey  <tromey@redhat.com>
7314
7315         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7316         argument.
7317         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7318
7319 2014-02-19  Tom Tromey  <tromey@redhat.com>
7320
7321         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7322         directly.
7323         * target-delegates.c: Rebuild.
7324         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7325         TARGET_DEFAULT_FUNC.
7326         * target.c (default_target_decr_pc_after_break): Rename from
7327         forward_target_decr_pc_after_break.  Simplify.
7328         (target_decr_pc_after_break): Rely on delegation.
7329
7330 2014-02-19  Tom Tromey  <tromey@redhat.com>
7331
7332         * target.c (update_current_target): Do not INHERIT to_doc or
7333         to_magic.  Do not de_fault to_open or to_close.
7334
7335 2014-02-19  Tom Tromey  <tromey@redhat.com>
7336
7337         * gcore.h (objfile_find_memory_regions): Declare.
7338         * gcore.c (objfile_find_memory_regions): No longer static.  Add
7339         "self" argument.
7340         (_initialize_gcore): Don't call exec_set_find_memory_regions.
7341         * exec.c: Include gcore.h.
7342         (exec_set_find_memory_regions): Remove.
7343         (exec_find_memory_regions): Remove.
7344         (exec_do_find_memory_regions): Remove.
7345         (init_exec_ops): Update.
7346         * defs.h (exec_set_find_memory_regions): Remove.
7347
7348 2014-02-19  Tom Tromey  <tromey@redhat.com>
7349
7350         * target-delegates.c: Rebuild.
7351         * target.h (struct target_ops) <to_extra_thread_info,
7352         to_thread_name, to_pid_to_exec_file, to_get_section_table,
7353         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7354         not 0, in TARGET_DEFAULT_RETURN.
7355
7356 2014-02-19  Tom Tromey  <tromey@redhat.com>
7357
7358         * target.c (complete_target_initialization): Remove casts.  Use
7359         return_zero_has_execution.
7360         (return_zero): Add "ignore" argument.
7361         (return_zero_has_execution): New function.
7362         (init_dummy_target): Remove casts.  Use
7363         return_zero_has_execution.
7364
7365 2014-02-19  Tom Tromey  <tromey@redhat.com>
7366
7367         * target.c (update_current_target): Update comments.  Do not
7368         INHERIT to_stratum.
7369
7370 2014-02-19  Tom Tromey  <tromey@redhat.com>
7371
7372         * arm-linux-nat.c (arm_linux_read_description): Delegate when
7373         needed.
7374         * corelow.c (core_read_description): Delegate when needed.
7375         * remote.c (remote_read_description): Delegate when needed.
7376         * target-delegates.c: Rebuild.
7377         * target.c (target_read_description): Rewrite.
7378         * target.h (struct target_ops) <to_read_description>: Update
7379         comment.  Use TARGET_DEFAULT_RETURN.
7380
7381 2014-02-19  Tom Tromey  <tromey@redhat.com>
7382
7383         * target-delegates.c: Rebuild.
7384         * target.c (update_current_target): Don't inherit or default
7385         to_can_run.
7386         (find_default_run_target): Check against delegate_can_run.
7387         * target.h (struct target_ops) <to_can_run>: Use
7388         TARGET_DEFAULT_RETURN.
7389
7390 2014-02-19  Tom Tromey  <tromey@redhat.com>
7391
7392         * target-delegates.c: Rebuild.
7393         * target.c (target_disconnect): Unconditionally delegate.
7394         * target.h (struct target_ops) <to_disconnect>: Use
7395         TARGET_DEFAULT_NORETURN.
7396
7397 2014-02-19  Tom Tromey  <tromey@redhat.com>
7398
7399         * record.c (record_stop): Unconditionally delegate.
7400         * target-delegates.c: Rebuild.
7401         * target.c (target_stop_recording): Unconditionally delegate.
7402         * target.h (struct target_ops) <to_stop_recording>: Use
7403         TARGET_DEFAULT_IGNORE.
7404
7405 2014-02-19  Tom Tromey  <tromey@redhat.com>
7406
7407         * target-delegates.c: Rebuild.
7408         * target.c (target_enable_btrace): Unconditionally delegate.
7409         * target.h (struct target_ops) <to_enable_btrace>: Use
7410         TARGET_DEFAULT_NORETURN.
7411
7412 2014-02-19  Tom Tromey  <tromey@redhat.com>
7413
7414         * target-delegates.c: Rebuild.
7415         * target.c (target_read_btrace): Unconditionally delegate.
7416         * target.h (struct target_ops) <to_read_btrace>: Use
7417         TARGET_DEFAULT_NORETURN.
7418
7419 2014-02-19  Tom Tromey  <tromey@redhat.com>
7420
7421         * target-delegates.c: Rebuild.
7422         * target.c (target_teardown_btrace): Unconditionally delegate.
7423         * target.h (struct target_ops) <to_teardown_btrace>: Use
7424         TARGET_DEFAULT_NORETURN.
7425
7426 2014-02-19  Tom Tromey  <tromey@redhat.com>
7427
7428         * target-delegates.c: Rebuild.
7429         * target.c (target_disable_btrace): Unconditionally delegate.
7430         * target.h (struct target_ops) <to_disable_btrace>: Use
7431         TARGET_DEFAULT_NORETURN.
7432
7433 2014-02-19  Tom Tromey  <tromey@redhat.com>
7434
7435         * target-delegates.c: Rebuild.
7436         * target.c (default_search_memory): New function.
7437         (simple_search_memory): Update comment.
7438         (target_search_memory): Unconditionally delegate.
7439         * target.h (struct target_ops) <to_search_memory>: Use
7440         TARGET_DEFAULT_FUNC.
7441
7442 2014-02-19  Tom Tromey  <tromey@redhat.com>
7443
7444         * auxv.c (default_auxv_parse): No longer static.
7445         (target_auxv_parse): Unconditionally delegate.
7446         * auxv.h (default_auxv_parse): Declare.
7447         * target-delegates.c: Rebuild.
7448         * target.c: Include auxv.h.
7449         * target.h (struct target_ops) <to_auxv_parse>: Use
7450         TARGET_DEFAULT_FUNC.
7451
7452 2014-02-19  Tom Tromey  <tromey@redhat.com>
7453
7454         * target-delegates.c: Rebuild.
7455         * target.c (target_memory_map): Unconditionally delegate.
7456         * target.h (struct target_ops) <to_memory_map>: Use
7457         TARGET_DEFAULT_RETURN.
7458
7459 2014-02-19  Tom Tromey  <tromey@redhat.com>
7460
7461         * target-delegates.c: Rebuild.
7462         * target.c (target_thread_alive): Unconditionally delegate.
7463         * target.h (struct target_ops) <to_thread_alive>: Use
7464         TARGET_DEFAULT_RETURN.
7465
7466 2014-02-19  Tom Tromey  <tromey@redhat.com>
7467
7468         * target-delegates.c: Rebuild.
7469         * target.c (target_save_record): Unconditionally delegate.
7470         * target.h (struct target_ops) <to_save_record>: Use
7471         TARGET_DEFAULT_NORETURN.
7472
7473 2014-02-19  Tom Tromey  <tromey@redhat.com>
7474
7475         * target-delegates.c: Rebuild.
7476         * target.c (target_delete_record): Unconditionally delegate.
7477         * target.h (struct target_ops) <to_delete_record>: Use
7478         TARGET_DEFAULT_NORETURN.
7479
7480 2014-02-19  Tom Tromey  <tromey@redhat.com>
7481
7482         * target-delegates.c: Rebuild.
7483         * target.c (target_record_is_replaying): Unconditionally
7484         delegate.
7485         * target.h (struct target_ops) <to_record_is_replaying>: Use
7486         TARGET_DEFAULT_RETURN.
7487
7488 2014-02-19  Tom Tromey  <tromey@redhat.com>
7489
7490         * target-delegates.c: Rebuild.
7491         * target.c (target_goto_record_begin): Unconditionally delegate.
7492         * target.h (struct target_ops) <to_goto_record_begin>: Use
7493         TARGET_DEFAULT_NORETURN.
7494
7495 2014-02-19  Tom Tromey  <tromey@redhat.com>
7496
7497         * target-delegates.c: Rebuild.
7498         * target.c (target_goto_record_end): Unconditionally delegate.
7499         * target.h (struct target_ops) <to_goto_record_end>: Use
7500         TARGET_DEFAULT_NORETURN.
7501
7502 2014-02-19  Tom Tromey  <tromey@redhat.com>
7503
7504         * target-delegates.c: Rebuild.
7505         * target.c (target_goto_record): Unconditionally delegate.
7506         * target.h (struct target_ops) <to_goto_record>: Use
7507         TARGET_DEFAULT_NORETURN.
7508
7509 2014-02-19  Tom Tromey  <tromey@redhat.com>
7510
7511         * target-delegates.c: Rebuild.
7512         * target.c (target_insn_history): Unconditionally delegate.
7513         * target.h (struct target_ops) <to_insn_history>: Use
7514         TARGET_DEFAULT_NORETURN.
7515
7516 2014-02-19  Tom Tromey  <tromey@redhat.com>
7517
7518         * target-delegates.c: Rebuild.
7519         * target.c (target_insn_history_from): Unconditionally delegate.
7520         * target.h (struct target_ops) <to_insn_history_from>: Use
7521         TARGET_DEFAULT_NORETURN.
7522
7523 2014-02-19  Tom Tromey  <tromey@redhat.com>
7524
7525         * target-delegates.c: Rebuild.
7526         * target.c (target_insn_history_range): Unconditionally delegate.
7527         * target.h (struct target_ops) <to_insn_history_range>: Use
7528         TARGET_DEFAULT_NORETURN.
7529
7530 2014-02-19  Tom Tromey  <tromey@redhat.com>
7531
7532         * target-delegates.c: Rebuild.
7533         * target.c (target_call_history): Unconditionally delegate.
7534         * target.h (struct target_ops) <to_call_history>: Use
7535         TARGET_DEFAULT_NORETURN.
7536
7537 2014-02-19  Tom Tromey  <tromey@redhat.com>
7538
7539         * target-delegates.c: Rebuild.
7540         * target.c (target_call_history_from): Unconditionally delegate.
7541         * target.h (struct target_ops) <to_call_history_from>: Use
7542         TARGET_DEFAULT_NORETURN.
7543
7544 2014-02-19  Tom Tromey  <tromey@redhat.com>
7545
7546         * target-delegates.c: Rebuild.
7547         * target.c (target_call_history_range): Unconditionally delegate.
7548         * target.h (struct target_ops) <to_call_history_range>: Use
7549         TARGET_DEFAULT_NORETURN.
7550
7551 2014-02-19  Tom Tromey  <tromey@redhat.com>
7552
7553         * target-delegates.c: Rebuild.
7554         * target.c (target_verify_memory): Unconditionally delegate.
7555         * target.h (struct target_ops) <to_verify_memory>: Use
7556         TARGET_DEFAULT_NORETURN.
7557
7558 2014-02-19  Tom Tromey  <tromey@redhat.com>
7559
7560         * target-delegates.c: Rebuild.
7561         * target.c (target_core_of_thread): Unconditionally delegate.
7562         * target.h (struct target_ops) <to_core_of_thread>: Use
7563         TARGET_DEFAULT_RETURN.
7564
7565 2014-02-19  Tom Tromey  <tromey@redhat.com>
7566
7567         * target-delegates.c: Rebuild.
7568         * target.c (target_flash_done): Unconditionally delegate.
7569         * target.h (struct target_ops) <to_flash_done>: Use
7570         TARGET_DEFAULT_NORETURN.
7571
7572 2014-02-19  Tom Tromey  <tromey@redhat.com>
7573
7574         * target-delegates.c: Rebuild.
7575         * target.c (target_flash_erase): Unconditionally delegate.
7576         * target.h (struct target_ops) <to_flash_erase>: Use
7577         TARGET_DEFAULT_NORETURN.
7578
7579 2014-02-19  Tom Tromey  <tromey@redhat.com>
7580
7581         * target-delegates.c: Rebuild.
7582         * target.c (target_get_section_table): Unconditionally delegate.
7583         * target.h (struct target_ops) <to_get_section_table>: Use
7584         TARGET_DEFAULT_RETURN.
7585
7586 2014-02-19  Tom Tromey  <tromey@redhat.com>
7587
7588         * target-delegates.c: Rebuild.
7589         * target.c (target_pid_to_str): Unconditionally delegate.
7590         (init_dummy_target): Don't initialize to_pid_to_str.
7591         (default_pid_to_str): Rename from dummy_pid_to_str.
7592         * target.h (struct target_ops) <to_pid_to_str>: Use
7593         TARGET_DEFAULT_FUNC.
7594
7595 2014-02-19  Tom Tromey  <tromey@redhat.com>
7596
7597         * target-delegates.c: Rebuild.
7598         * target.c (target_find_new_threads): Unconditionally delegate.
7599         * target.h (struct target_ops) <to_find_new_threads>: Use
7600         TARGET_DEFAULT_RETURN.
7601
7602 2014-02-19  Tom Tromey  <tromey@redhat.com>
7603
7604         * target-delegates.c: Rebuild.
7605         * target.c (target_program_signals): Unconditionally delegate.
7606         * target.h (struct target_ops) <to_program_signals>: Use
7607         TARGET_DEFAULT_IGNORE.
7608
7609 2014-02-19  Tom Tromey  <tromey@redhat.com>
7610
7611         * target-delegates.c: Rebuild.
7612         * target.c (target_pass_signals): Unconditionally delegate.
7613         * target.h (struct target_ops) <to_pass_signals>: Use
7614         TARGET_DEFAULT_IGNORE.
7615
7616 2014-02-19  Tom Tromey  <tromey@redhat.com>
7617
7618         * target-delegates.c: Rebuild.
7619         * target.c (default_mourn_inferior): New function.
7620         (target_mourn_inferior): Unconditionally delegate.
7621         * target.h (struct target_ops) <to_mourn_inferior>: Use
7622         TARGET_DEFAULT_FUNC.
7623
7624 2014-02-19  Tom Tromey  <tromey@redhat.com>
7625
7626         * target-delegates.c: Rebuild.
7627         * target.c (default_follow_fork): New function.
7628         (target_follow_fork): Unconditionally delegate.
7629         * target.h (struct target_ops) <to_follow_fork>: Use
7630         TARGET_DEFAULT_FUNC.
7631
7632 2014-02-19  Tom Tromey  <tromey@redhat.com>
7633
7634         * target-delegates.c: Rebuild.
7635         * target.c (target_kill): Unconditionally delegate.
7636         * target.h (struct target_ops) <to_kill>: Use
7637         TARGET_DEFAULT_NORETURN.
7638
7639 2014-02-19  Tom Tromey  <tromey@redhat.com>
7640
7641         * target-delegates.c: Rebuild.
7642         * target.c (target_masked_watch_num_registers): Unconditionally
7643         delegate.
7644         * target.h (struct target_ops) <to_masked_watch_num_registers>:
7645         Use TARGET_DEFAULT_RETURN.
7646
7647 2014-02-19  Tom Tromey  <tromey@redhat.com>
7648
7649         * target-delegates.c: Rebuild.
7650         * target.c (target_remove_mask_watchpoint): Unconditionally
7651         delegate.
7652         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7653         TARGET_DEFAULT_RETURN.
7654
7655 2014-02-19  Tom Tromey  <tromey@redhat.com>
7656
7657         * target-delegates.c: Rebuild.
7658         * target.c (target_insert_mask_watchpoint): Unconditionally
7659         delegate.
7660         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7661         TARGET_DEFAULT_RETURN.
7662
7663 2014-02-19  Tom Tromey  <tromey@redhat.com>
7664
7665         * target-delegates.c: Rebuild.
7666         * target.c (target_ranged_break_num_registers): Unconditionally
7667         delegate.
7668         * target.h (struct target_ops) <to_ranged_break_num_registers>:
7669         Use TARGET_DEFAULT_RETURN.
7670
7671 2014-02-19  Tom Tromey  <tromey@redhat.com>
7672
7673         * target-delegates.c: Rebuild.
7674         * target.c (target_fetch_registers): Unconditionally delegate.
7675         * target.h (struct target_ops) <to_fetch_registers>: Use
7676         TARGET_DEFAULT_NORETURN.
7677
7678 2014-02-19  Tom Tromey  <tromey@redhat.com>
7679
7680         * target-delegates.c: Rebuild.
7681         * target.c (update_current_target): Don't inherit or default
7682         to_stop.
7683         * target.h (struct target_ops) <to_stop>: Use
7684         TARGET_DEFAULT_IGNORE.
7685
7686 2014-02-19  Tom Tromey  <tromey@redhat.com>
7687
7688         * target-delegates.c: Rebuild.
7689         * target.c (update_current_target): Don't inherit or default
7690         to_can_run_breakpoint_commands.
7691         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7692         Use TARGET_DEFAULT_RETURN.
7693
7694 2014-02-19  Tom Tromey  <tromey@redhat.com>
7695
7696         * target-delegates.c: Rebuild.
7697         * target.c (update_current_target): Don't inherit or default
7698         to_supports_evaluation_of_breakpoint_conditions.
7699         * target.h (struct target_ops)
7700         <to_supports_evaluation_of_breakpoint_conditions>: Use
7701         TARGET_DEFAULT_RETURN.
7702
7703 2014-02-19  Tom Tromey  <tromey@redhat.com>
7704
7705         * target-delegates.c: Rebuild.
7706         * target.c (update_current_target): Don't inherit or default
7707         to_augmented_libraries_svr4_read.
7708         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7709         Use TARGET_DEFAULT_RETURN.
7710
7711 2014-02-19  Tom Tromey  <tromey@redhat.com>
7712
7713         * target-delegates.c: Rebuild.
7714         * target.c (update_current_target): Don't inherit or default
7715         to_can_use_agent.
7716         * target.h (struct target_ops) <to_can_use_agent>: Use
7717         TARGET_DEFAULT_RETURN.
7718
7719 2014-02-19  Tom Tromey  <tromey@redhat.com>
7720
7721         * target-delegates.c: Rebuild.
7722         * target.c (update_current_target): Don't inherit or default
7723         to_use_agent.
7724         * target.h (struct target_ops) <to_use_agent>: Use
7725         TARGET_DEFAULT_NORETURN.
7726
7727 2014-02-19  Tom Tromey  <tromey@redhat.com>
7728
7729         * target-delegates.c: Rebuild.
7730         * target.c (update_current_target): Don't inherit or default
7731         to_traceframe_info.
7732         (return_null): Remove.
7733         * target.h (struct target_ops) <to_traceframe_info>: Use
7734         TARGET_DEFAULT_RETURN.
7735
7736 2014-02-19  Tom Tromey  <tromey@redhat.com>
7737
7738         * target-delegates.c: Rebuild.
7739         * target.c (update_current_target): Don't inherit or default
7740         to_static_tracepoint_markers_by_strid.
7741         * target.h (struct target_ops)
7742         <to_static_tracepoint_markers_by_strid>: Use
7743         TARGET_DEFAULT_NORETURN.
7744
7745 2014-02-19  Tom Tromey  <tromey@redhat.com>
7746
7747         * target-delegates.c: Rebuild.
7748         * target.c (update_current_target): Don't inherit or default
7749         to_static_tracepoint_marker_at.
7750         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7751         Use TARGET_DEFAULT_RETURN.
7752
7753 2014-02-19  Tom Tromey  <tromey@redhat.com>
7754
7755         * target-delegates.c: Rebuild.
7756         * target.c (update_current_target): Don't inherit or default
7757         to_set_permissions.
7758         * target.h (struct target_ops) <to_set_permissions>: Use
7759         TARGET_DEFAULT_IGNORE.
7760
7761 2014-02-19  Tom Tromey  <tromey@redhat.com>
7762
7763         * target-delegates.c: Rebuild.
7764         * target.c (update_current_target): Don't inherit or default
7765         to_get_tib_address.
7766         * target.h (struct target_ops) <to_get_tib_address>: Use
7767         TARGET_DEFAULT_NORETURN.
7768
7769 2014-02-19  Tom Tromey  <tromey@redhat.com>
7770
7771         * target-delegates.c: Rebuild.
7772         * target.c (update_current_target): Don't inherit or default
7773         to_set_trace_notes.
7774         * target.h (struct target_ops) <to_set_trace_notes>: Use
7775         TARGET_DEFAULT_RETURN.
7776
7777 2014-02-19  Tom Tromey  <tromey@redhat.com>
7778
7779         * target-delegates.c: Rebuild.
7780         * target.c (update_current_target): Don't initialize
7781         to_set_trace_buffer_size.
7782         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
7783         TARGET_DEFAULT_IGNORE.
7784
7785 2014-02-19  Tom Tromey  <tromey@redhat.com>
7786
7787         * target-delegates.c: Rebuild.
7788         * target.c (update_current_target): Don't inherit or default
7789         to_set_circular_trace_buffer.
7790         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
7791         TARGET_DEFAULT_IGNORE.
7792
7793 2014-02-19  Tom Tromey  <tromey@redhat.com>
7794
7795         * target-delegates.c: Rebuild.
7796         * target.c (update_current_target): Don't inherit or default
7797         to_set_disconnected_tracing.
7798         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
7799         TARGET_DEFAULT_IGNORE.
7800
7801 2014-02-19  Tom Tromey  <tromey@redhat.com>
7802
7803         * target-delegates.c: Rebuild.
7804         * target.c (update_current_target): Don't inherit or default
7805         to_get_min_fast_tracepoint_insn_len.
7806         (return_minus_one): Remove.
7807         * target.h (struct target_ops)
7808         <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
7809
7810 2014-02-19  Tom Tromey  <tromey@redhat.com>
7811
7812         * target-delegates.c: Rebuild.
7813         * target.c (update_current_target): Don't inherit or default
7814         to_get_raw_trace_data.
7815         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
7816         TARGET_DEFAULT_NORETURN.
7817
7818 2014-02-19  Tom Tromey  <tromey@redhat.com>
7819
7820         * target-delegates.c: Rebuild.
7821         * target.c (update_current_target): Don't inherit or default
7822         to_upload_trace_state_variables.
7823         * target.h (struct target_ops) <to_upload_trace_state_variables>:
7824         Use TARGET_DEFAULT_RETURN.
7825
7826 2014-02-19  Tom Tromey  <tromey@redhat.com>
7827
7828         * target-delegates.c: Rebuild.
7829         * target.c (update_current_target): Don't inherit or default
7830         to_upload_tracepoints.
7831         * target.h (struct target_ops) <to_upload_tracepoints>: Use
7832         TARGET_DEFAULT_RETURN.
7833
7834 2014-02-19  Tom Tromey  <tromey@redhat.com>
7835
7836         * target-delegates.c: Rebuild.
7837         * target.c (update_current_target): Don't inherit or default
7838         to_save_trace_data.
7839         * target.h (struct target_ops) <to_save_trace_data>: Use
7840         TARGET_DEFAULT_NORETURN.
7841
7842 2014-02-19  Tom Tromey  <tromey@redhat.com>
7843
7844         * target-delegates.c: Rebuild.
7845         * target.c (update_current_target): Don't inherit or default
7846         to_get_trace_state_variable_value.
7847         * target.h (struct target_ops)
7848         <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
7849
7850 2014-02-19  Tom Tromey  <tromey@redhat.com>
7851
7852         * target-delegates.c: Rebuild.
7853         * target.c (update_current_target): Don't inherit or default
7854         to_trace_find.
7855         * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
7856
7857 2014-02-19  Tom Tromey  <tromey@redhat.com>
7858
7859         * target-delegates.c: Rebuild.
7860         * target.c (update_current_target): Don't inherit or default
7861         to_trace_stop.
7862         * target.h (struct target_ops) <to_trace_stop>: Use
7863         TARGET_DEFAULT_NORETURN.
7864
7865 2014-02-19  Tom Tromey  <tromey@redhat.com>
7866
7867         * target-delegates.c: Rebuild.
7868         * target.c (update_current_target): Don't inherit or default
7869         to_get_tracepoint_status.
7870         * target.h (struct target_ops) <to_get_tracepoint_status>: Use
7871         TARGET_DEFAULT_NORETURN.
7872
7873 2014-02-19  Tom Tromey  <tromey@redhat.com>
7874
7875         * target-delegates.c: Rebuild.
7876         * target.c (update_current_target): Don't inherit or default
7877         to_get_trace_status.
7878         * target.h (struct target_ops) <to_get_trace_status>: Use
7879         TARGET_DEFAULT_RETURN.
7880
7881 2014-02-19  Tom Tromey  <tromey@redhat.com>
7882
7883         * target-delegates.c: Rebuild.
7884         * target.c (update_current_target): Don't inherit or default
7885         to_trace_start.
7886         * target.h (struct target_ops) <to_trace_start>: Use
7887         TARGET_DEFAULT_NORETURN.
7888
7889 2014-02-19  Tom Tromey  <tromey@redhat.com>
7890
7891         * target-delegates.c: Rebuild.
7892         * target.c (update_current_target): Don't inherit or default
7893         to_trace_set_readonly_regions.
7894         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7895         Use TARGET_DEFAULT_NORETURN.
7896
7897 2014-02-19  Tom Tromey  <tromey@redhat.com>
7898
7899         * target-delegates.c: Rebuild.
7900         * target.c (update_current_target): Don't inherit or default
7901         to_disable_tracepoint.
7902         * target.h (struct target_ops) <to_disable_tracepoint>: Use
7903         TARGET_DEFAULT_NORETURN.
7904
7905 2014-02-19  Tom Tromey  <tromey@redhat.com>
7906
7907         * target-delegates.c: Rebuild.
7908         * target.c (update_current_target): Don't inherit or default
7909         to_enable_tracepoint.
7910         * target.h (struct target_ops) <to_enable_tracepoint>: Use
7911         TARGET_DEFAULT_NORETURN.
7912
7913 2014-02-19  Tom Tromey  <tromey@redhat.com>
7914
7915         * target-delegates.c: Rebuild.
7916         * target.c (update_current_target): Don't inherit or default
7917         to_download_trace_state_variable.
7918         * target.h (struct target_ops) <to_download_trace_state_variable>:
7919         Use TARGET_DEFAULT_NORETURN.
7920
7921 2014-02-19  Tom Tromey  <tromey@redhat.com>
7922
7923         * target-delegates.c: Rebuild.
7924         * target.c (update_current_target): Don't inherit or default
7925         to_can_download_tracepoint.
7926         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
7927         TARGET_DEFAULT_RETURN.
7928
7929 2014-02-19  Tom Tromey  <tromey@redhat.com>
7930
7931         * target-delegates.c: Rebuild.
7932         * target.c (update_current_target): Don't inherit or default
7933         to_download_tracepoint.
7934         * target.h (struct target_ops) <to_download_tracepoint>: Use
7935         TARGET_DEFAULT_NORETURN.
7936
7937 2014-02-19  Tom Tromey  <tromey@redhat.com>
7938
7939         * target-delegates.c: Rebuild.
7940         * target.c (update_current_target): Don't inherit or default
7941         to_trace_init.
7942         * target.h (struct target_ops) <to_trace_init>: Use
7943         TARGET_DEFAULT_RETURN.
7944
7945 2014-02-19  Tom Tromey  <tromey@redhat.com>
7946
7947         * target-delegates.c: Rebuild.
7948         * target.c (update_current_target): Don't inherit or default
7949         to_supports_string_tracing.
7950         * target.h (struct target_ops) <to_supports_string_tracing>: Use
7951         TARGET_DEFAULT_RETURN.
7952
7953 2014-02-19  Tom Tromey  <tromey@redhat.com>
7954
7955         * target-delegates.c: Rebuild.
7956         * target.c (update_current_target): Don't inherit or default
7957         to_supports_enable_disable_tracepoint.
7958         * target.h (struct target_ops)
7959         <to_supports_enable_disable_tracepoint>: Use
7960         TARGET_DEFAULT_RETURN.
7961
7962 2014-02-19  Tom Tromey  <tromey@redhat.com>
7963
7964         * target-delegates.c: Rebuild.
7965         * target.c (update_current_target): Don't inherit or default
7966         to_supports_multi_process.
7967         * target.h (struct target_ops) <to_supports_multi_process>: Use
7968         TARGET_DEFAULT_RETURN.
7969
7970 2014-02-19  Tom Tromey  <tromey@redhat.com>
7971
7972         * target-delegates.c: Rebuild.
7973         * target.c (update_current_target): Don't inherit or default
7974         to_get_ada_task_ptid.
7975         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
7976         TARGET_DEFAULT_FUNC.
7977
7978 2014-02-19  Tom Tromey  <tromey@redhat.com>
7979
7980         * target-delegates.c: Rebuild.
7981         * target.c (update_current_target): Don't inherit or default
7982         to_thread_architecture.
7983         * target.h (struct target_ops) <to_thread_architecture>: Use
7984         TARGET_DEFAULT_FUNC.
7985
7986 2014-02-19  Tom Tromey  <tromey@redhat.com>
7987
7988         * target-delegates.c: Rebuild.
7989         * target.c (update_current_target): Don't inherit or default
7990         to_execution_direction.
7991         * target.h (struct target_ops) <to_execution_direction>: Use
7992         TARGET_DEFAULT_FUNC.
7993
7994 2014-02-19  Tom Tromey  <tromey@redhat.com>
7995
7996         * target-delegates.c: Rebuild.
7997         * target.c (update_current_target): Don't inherit or default
7998         to_can_execute_reverse.
7999         * target.h (struct target_ops) <to_can_execute_reverse>: Use
8000         TARGET_DEFAULT_RETURN.
8001         (target_can_execute_reverse): Unconditionally delegate.
8002
8003 2014-02-19  Tom Tromey  <tromey@redhat.com>
8004
8005         * target-delegates.c: Rebuild.
8006         * target.c (update_current_target): Don't inherit or default
8007         to_goto_bookmark.
8008         (dummy_goto_bookmark): Remove.
8009         (init_dummy_target): Don't inherit or default to_goto_bookmark.
8010         * target.h (struct target_ops) <to_goto_bookmark>: Use
8011         TARGET_DEFAULT_NORETURN.
8012
8013 2014-02-19  Tom Tromey  <tromey@redhat.com>
8014
8015         * target-delegates.c: Rebuild.
8016         * target.c (update_current_target): Don't inherit or default
8017         to_get_bookmark.
8018         (dummy_get_bookmark): Remove.
8019         (init_dummy_target): Don't inherit or default to_get_bookmark.
8020         * target.h (struct target_ops) <to_get_bookmark>: Use
8021         TARGET_DEFAULT_NORETURN
8022
8023 2014-02-19  Tom Tromey  <tromey@redhat.com>
8024
8025         * target-delegates.c: Rebuild.
8026         * target.c (update_current_target): Don't inherit or default
8027         to_make_corefile_notes.
8028         (init_dummy_target): Don't initialize to_make_corefile_notes.
8029         * target.h (struct target_ops) <to_make_corefile_notes>: Use
8030         TARGET_DEFAULT_FUNC.
8031
8032 2014-02-19  Tom Tromey  <tromey@redhat.com>
8033
8034         * target-delegates.c: Rebuild.
8035         * target.c (update_current_target): Don't inherit or default
8036         to_find_memory_regions.
8037         (init_dummy_target): Don't initialize to_find_memory_regions.
8038         * target.h (struct target_ops) <to_find_memory_regions>: Use
8039         TARGET_DEFAULT_FUNC.
8040
8041 2014-02-19  Tom Tromey  <tromey@redhat.com>
8042
8043         * target-delegates.c: Rebuild.
8044         * target.c (update_current_target): Don't inherit or default
8045         to_log_command.
8046         * target.h (struct target_ops) <to_log_command>: Use
8047         TARGET_DEFAULT_IGNORE.
8048         (target_log_command): Unconditionally delegate.
8049
8050 2014-02-19  Tom Tromey  <tromey@redhat.com>
8051
8052         * target-delegates.c: Rebuild.
8053         * target.c (update_current_target): Don't inherit or default
8054         to_pid_to_exec_file.
8055         * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8056         TARGET_DEFAULT_RETURN.
8057
8058 2014-02-19  Tom Tromey  <tromey@redhat.com>
8059
8060         * target-delegates.c: Rebuild.
8061         * target.c (update_current_target): Don't inherit or default
8062         to_thread_name.
8063         (target_thread_name): Unconditionally delegate.
8064         * target.h (struct target_ops) <to_thread_name>: Use
8065         TARGET_DEFAULT_RETURN.
8066
8067 2014-02-19  Tom Tromey  <tromey@redhat.com>
8068
8069         * target-delegates.c: Rebuild.
8070         * target.c (update_current_target): Don't inherit or default
8071         to_extra_thread_info.
8072         * target.h (struct target_ops) <to_extra_thread_info>: Use
8073         TARGET_DEFAULT_RETURN.
8074
8075 2014-02-19  Tom Tromey  <tromey@redhat.com>
8076
8077         * target-delegates.c: Rebuild.
8078         * target.c (update_current_target): Don't inherit or default
8079         to_has_exited.
8080         * target.h (struct target_ops) <to_has_exited>: Use
8081         TARGET_DEFAULT_RETURN..
8082
8083 2014-02-19  Tom Tromey  <tromey@redhat.com>
8084
8085         * target-delegates.c: Rebuild.
8086         * target.c (update_current_target): Don't inherit or default
8087         to_set_syscall_catchpoint.
8088         (return_one): Remove.
8089         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8090         TARGET_DEFAULT_RETURN.
8091
8092 2014-02-19  Tom Tromey  <tromey@redhat.com>
8093
8094         * target-delegates.c: Rebuild.
8095         * target.c (update_current_target): Don't inherit or default
8096         to_insert_exec_catchpoint.
8097         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8098         TARGET_DEFAULT_RETURN.
8099
8100 2014-01-08  Tom Tromey  <tromey@redhat.com>
8101
8102         * target-delegates.c: Rebuild.
8103         * target.c (update_current_target): Don't inherit or default
8104         to_insert_exec_catchpoint.
8105         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8106         TARGET_DEFAULT_RETURN.
8107
8108 2014-02-19  Tom Tromey  <tromey@redhat.com>
8109
8110         * target-delegates.c: Rebuild.
8111         * target.c (update_current_target): Don't inherit or default
8112         to_remove_vfork_catchpoint.
8113         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8114         TARGET_DEFAULT_RETURN.
8115
8116 2014-02-19  Tom Tromey  <tromey@redhat.com>
8117
8118         * target-delegates.c: Rebuild.
8119         * target.c (update_current_target): Don't inherit or default
8120         to_insert_vfork_catchpoint.
8121         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8122         TARGET_DEFAULT_RETURN.
8123
8124 2014-02-19  Tom Tromey  <tromey@redhat.com>
8125
8126         * target-delegates.c: Rebuild.
8127         * target.c (update_current_target): Don't inherit or default
8128         to_remove_fork_catchpoint.
8129         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8130         TARGET_DEFAULT_RETURN.
8131
8132 2014-02-19  Tom Tromey  <tromey@redhat.com>
8133
8134         * target-delegates.c: Rebuild.
8135         * target.c (update_current_target): Don't inherit or default
8136         to_insert_fork_catchpoint.
8137         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8138         TARGET_DEFAULT_RETURN.
8139
8140 2014-02-19  Tom Tromey  <tromey@redhat.com>
8141
8142         * target-delegates.c: Rebuild.
8143         * target.c (update_current_target): Don't inherit or default
8144         to_post_startup_inferior.
8145         * target.h (struct target_ops) <to_post_startup_inferior>: Use
8146         TARGET_DEFAULT_IGNORE.
8147
8148 2014-02-19  Tom Tromey  <tromey@redhat.com>
8149
8150         * target-delegates.c: Rebuild.
8151         * target.c (update_current_target): Don't inherit or default
8152         to_load.
8153         * target.h (struct target_ops) <to_load>: Use
8154         TARGET_DEFAULT_NORETURN.
8155
8156 2014-02-19  Tom Tromey  <tromey@redhat.com>
8157
8158         * target-delegates.c: Rebuild.
8159         * target.c (update_current_target): Don't inherit or default
8160         to_terminal_info.
8161         * target.h (struct target_ops) <to_terminal_info>: Use
8162         TARGET_DEFAULT_FUNC.
8163
8164 2014-02-19  Tom Tromey  <tromey@redhat.com>
8165
8166         * target-delegates.c: Rebuild.
8167         * target.c (update_current_target): Don't inherit or default
8168         to_terminal_save_ours.
8169         * target.h (struct target_ops) <to_terminal_save_ours>: Use
8170         TARGET_DEFAULT_IGNORE.
8171
8172 2014-02-19  Tom Tromey  <tromey@redhat.com>
8173
8174         * target-delegates.c: Rebuild.
8175         * target.c (update_current_target): Don't inherit or default
8176         to_terminal_ours.
8177         * target.h (struct target_ops) <to_terminal_ours>: Use
8178         TARGET_DEFAULT_IGNORE.
8179
8180 2014-02-19  Tom Tromey  <tromey@redhat.com>
8181
8182         * target-delegates.c: Rebuild.
8183         * target.c (update_current_target): Don't inherit or default
8184         to_terminal_ours_for_output.
8185         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8186         TARGET_DEFAULT_IGNORE.
8187
8188 2014-02-19  Tom Tromey  <tromey@redhat.com>
8189
8190         * target-delegates.c: Rebuild.
8191         * target.c (update_current_target): Don't inherit or default
8192         to_terminal_inferior.
8193         * target.h (struct target_ops) <to_terminal_inferior>: Use
8194         TARGET_DEFAULT_IGNORE.
8195
8196 2014-02-19  Tom Tromey  <tromey@redhat.com>
8197
8198         * target-delegates.c: Rebuild.
8199         * target.c (update_current_target): Don't inherit or default
8200         to_terminal_init.
8201         * target.h (struct target_ops) <to_terminal_init>: Use
8202         TARGET_DEFAULT_IGNORE.
8203
8204 2014-02-19  Tom Tromey  <tromey@redhat.com>
8205
8206         * target-delegates.c: Rebuild.
8207         * target.c (update_current_target): Don't inherit or default
8208         to_can_accel_watchpoint_condition.
8209         * target.h (struct target_ops)
8210         <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8211
8212 2014-02-19  Tom Tromey  <tromey@redhat.com>
8213
8214         * target-delegates.c: Rebuild.
8215         * target.c (update_current_target): Don't inherit or default
8216         to_region_ok_for_hw_watchpoint.
8217         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8218         Use TARGET_DEFAULT_FUNC.
8219
8220 2014-02-19  Tom Tromey  <tromey@redhat.com>
8221
8222         * target-delegates.c: Rebuild.
8223         * target.c (update_current_target): Don't inherit or default
8224         to_watchpoint_addr_within_range.
8225         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8226         Use TARGET_DEFAULT_FUNC.
8227
8228 2014-02-19  Tom Tromey  <tromey@redhat.com>
8229
8230         * target-delegates.c: Rebuild.
8231         * target.c (update_current_target): Don't inherit or default
8232         to_remove_watchpoint.
8233         * target.h (struct target_ops) <to_remove_watchpoint>: Use
8234         TARGET_DEFAULT_NORETURN.
8235
8236 2014-02-19  Tom Tromey  <tromey@redhat.com>
8237
8238         * target-delegates.c: Rebuild.
8239         * target.c (update_current_target): Don't inherit or default
8240         to_insert_watchpoint.
8241         * target.h (struct target_ops) <to_insert_watchpoint>: Use
8242         TARGET_DEFAULT_RETURN.
8243
8244 2014-02-19  Tom Tromey  <tromey@redhat.com>
8245
8246         * target-delegates.c: Rebuild.
8247         * target.c (update_current_target): Don't inherit or default
8248         to_remove_hw_breakpoint.
8249         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8250         TARGET_DEFAULT_RETURN.
8251
8252 2014-02-19  Tom Tromey  <tromey@redhat.com>
8253
8254         * target-delegates.c: Rebuild.
8255         * target.c (update_current_target): Don't inherit or default
8256         to_insert_hw_breakpoint.
8257         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8258         TARGET_DEFAULT_RETURN.
8259
8260 2014-02-19  Tom Tromey  <tromey@redhat.com>
8261
8262         * target-delegates.c: Rebuild.
8263         * target.c (update_current_target): Don't inherit or default
8264         to_can_use_hw_breakpoint.
8265         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8266         TARGET_DEFAULT_RETURN.
8267
8268 2014-02-19  Tom Tromey  <tromey@redhat.com>
8269
8270         * target-delegates.c: Rebuild.
8271         * target.c (update_current_target): Don't inherit or default
8272         to_files_info.
8273         * target.h (struct target_ops) <to_files_info>: Use
8274         TARGET_DEFAULT_IGNORE.
8275
8276 2014-02-19  Tom Tromey  <tromey@redhat.com>
8277
8278         * target-delegates.c: Rebuild.
8279         * target.c (update_current_target): Don't inherit or default
8280         to_store.
8281         * target.h (struct target_ops) <to_store>: Use
8282         TARGET_DEFAULT_NORETURN.
8283
8284 2014-02-19  Tom Tromey  <tromey@redhat.com>
8285
8286         * target-delegates.c: Rebuild.
8287         * target.c (update_current_target): Don't inherit or default
8288         to_post_attach.
8289         * target.h (struct target_ops) <to_post_attach>: Use
8290         TARGET_DEFAULT_IGNORE.
8291
8292 2014-02-19  Tom Tromey  <tromey@redhat.com>
8293
8294         * target-delegates.c: Rebuild.
8295         * target.c (update_current_target): Don't inherit or default
8296         to_rcmd.
8297         (default_rcmd): New function.
8298         (do_monitor_command): Unconditionally delegate.
8299         * target.h (struct target_ops) <to_rmcd>: Use
8300         TARGET_DEFAULT_FUNC.
8301
8302 2014-02-19  Tom Tromey  <tromey@redhat.com>
8303
8304         * target-delegates.c: Rebuild.
8305         * target.c (init_dummy_target): Don't initialize to_attach.
8306         (target_attach): Unconditionally delegate.
8307         * target.h (struct target_ops) <to_attach>: Use
8308         TARGET_DEFAULT_FUNC.
8309
8310 2014-02-19  Tom Tromey  <tromey@redhat.com>
8311
8312         * target-delegates.c: Rebuild.
8313         * target.c (target_detach): Unconditionally delegate.
8314         (init_dummy_target): Don't initialize to_detach.
8315         * target.h (struct target_ops) <to_detach>: Use
8316         TARGET_DEFAULT_IGNORE.
8317
8318 2014-02-19  Tom Tromey  <tromey@redhat.com>
8319
8320         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8321         Add argument.
8322         (target_augmented_libraries_svr4_read): Add argument.
8323         * target.c (update_current_target): Update.
8324         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8325         argument.
8326
8327 2014-02-19  Tom Tromey  <tromey@redhat.com>
8328
8329         * target.h (struct target_ops) <to_call_history_range>: Add
8330         argument.
8331         * target.c (target_call_history_range): Add argument.
8332         * record-btrace.c (record_btrace_call_history_range): Add 'self'
8333         argument.
8334         (record_btrace_call_history_from): Update.
8335
8336 2014-02-19  Tom Tromey  <tromey@redhat.com>
8337
8338         * target.h (struct target_ops) <to_call_history_from>: Add
8339         argument.
8340         * target.c (target_call_history_from): Add argument.
8341         * record-btrace.c (record_btrace_call_history_from): Add 'self'
8342         argument.
8343
8344 2014-02-19  Tom Tromey  <tromey@redhat.com>
8345
8346         * target.h (struct target_ops) <to_call_history>: Add argument.
8347         * target.c (target_call_history): Add argument.
8348         * record-btrace.c (record_btrace_call_history): Add 'self'
8349         argument.
8350
8351 2014-02-19  Tom Tromey  <tromey@redhat.com>
8352
8353         * target.h (struct target_ops) <to_insn_history_range>: Add
8354         argument.
8355         * target.c (target_insn_history_range): Add argument.
8356         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8357         argument.
8358         (record_btrace_insn_history_from): Update.
8359
8360 2014-02-19  Tom Tromey  <tromey@redhat.com>
8361
8362         * target.h (struct target_ops) <to_insn_history_from>: Add
8363         argument.
8364         * target.c (target_insn_history_from): Add argument.
8365         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8366         argument.
8367
8368 2014-02-19  Tom Tromey  <tromey@redhat.com>
8369
8370         * target.h (struct target_ops) <to_insn_history>: Add argument.
8371         * target.c (target_insn_history): Add argument.
8372         * record-btrace.c (record_btrace_insn_history): Add 'self'
8373         argument.
8374
8375 2014-02-19  Tom Tromey  <tromey@redhat.com>
8376
8377         * target.h (struct target_ops) <to_goto_record>: Add argument.
8378         * target.c (target_goto_record): Add argument.
8379         * record-full.c (record_full_goto): Add 'self' argument.
8380         * record-btrace.c (record_btrace_goto): Add 'self' argument.
8381
8382 2014-02-19  Tom Tromey  <tromey@redhat.com>
8383
8384         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8385         * target.c (target_goto_record_end): Add argument.
8386         * record-full.c (record_full_goto_end): Add 'self' argument.
8387         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8388
8389 2014-02-19  Tom Tromey  <tromey@redhat.com>
8390
8391         * target.h (struct target_ops) <to_goto_record_begin>: Add
8392         argument.
8393         * target.c (target_goto_record_begin): Add argument.
8394         * record-full.c (record_full_goto_begin): Add 'self' argument.
8395         * record-btrace.c (record_btrace_goto_begin): Add 'self'
8396         argument.
8397
8398 2014-02-19  Tom Tromey  <tromey@redhat.com>
8399
8400         * target.h (struct target_ops) <to_record_is_replaying>: Add
8401         argument.
8402         * target.c (target_record_is_replaying): Add argument.
8403         * record-full.c (record_full_is_replaying): Add 'self' argument.
8404         * record-btrace.c (record_btrace_is_replaying): Add 'self'
8405         argument.
8406         (record_btrace_xfer_partial, record_btrace_store_registers)
8407         (record_btrace_prepare_to_store, record_btrace_resume)
8408         (record_btrace_wait, record_btrace_decr_pc_after_break)
8409         (record_btrace_find_new_threads, record_btrace_thread_alive):
8410         Update.
8411
8412 2014-02-19  Tom Tromey  <tromey@redhat.com>
8413
8414         * target.h (struct target_ops) <to_delete_record>: Add argument.
8415         * target.c (target_delete_record): Add argument.
8416         * record-full.c (record_full_delete): Add 'self' argument.
8417
8418 2014-02-19  Tom Tromey  <tromey@redhat.com>
8419
8420         * target.h (struct target_ops) <to_save_record>: Add argument.
8421         * target.c (target_save_record): Add argument.
8422         * record-full.c (record_full_save): Add 'self' argument.
8423         (record_full_save): Add 'self' argument.
8424
8425 2014-02-19  Tom Tromey  <tromey@redhat.com>
8426
8427         * target.h (struct target_ops) <to_info_record>: Add argument.
8428         * target.c (target_info_record): Add argument.
8429         * record.c (info_record_command): Add argument.
8430         * record-full.c (record_full_info): Add 'self' argument.
8431         * record-btrace.c (record_btrace_info): Add 'self' argument.
8432
8433 2014-02-19  Tom Tromey  <tromey@redhat.com>
8434
8435         * target.h (struct target_ops) <to_stop_recording>: Add argument.
8436         * target.c (target_stop_recording): Add argument.
8437         * record.c (record_stop): Add argument.
8438         * record-btrace.c (record_btrace_stop_recording): Add 'self'
8439         argument.
8440
8441 2014-02-19  Tom Tromey  <tromey@redhat.com>
8442
8443         * target.h (struct target_ops) <to_read_btrace>: Add argument.
8444         * target.c (struct target_ops) <to_read_btrace>: Add argument.
8445         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8446         argument.
8447         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8448         (_initialize_amd64_linux_nat): Use it.
8449         * i386-linux-nat.c (i386_linux_read_btrace): New function.
8450         (_initialize_i386_linux_nat): Use it.
8451
8452 2014-02-19  Tom Tromey  <tromey@redhat.com>
8453
8454         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8455         * target.c (target_teardown_btrace): Add argument.
8456         * remote.c (remote_teardown_btrace): Add 'self' argument.
8457         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8458         argument.
8459         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8460         argument.
8461
8462 2014-02-19  Tom Tromey  <tromey@redhat.com>
8463
8464         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8465         * target.c (target_disable_btrace): Add argument.
8466         * remote.c (remote_disable_btrace): Add 'self' argument.
8467         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8468         argument.
8469         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8470         argument.
8471
8472 2014-02-19  Tom Tromey  <tromey@redhat.com>
8473
8474         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8475         * target.c (target_enable_btrace): Add argument.
8476         * remote.c (remote_enable_btrace): Add 'self' argument.
8477         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8478         argument.
8479         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8480         argument.
8481
8482 2014-02-19  Tom Tromey  <tromey@redhat.com>
8483
8484         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8485         (target_can_use_agent): Add argument.
8486         * target.c (update_current_target): Update.
8487         * remote.c (remote_can_use_agent): Add 'self' argument.
8488         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8489
8490 2014-02-19  Tom Tromey  <tromey@redhat.com>
8491
8492         * target.h (struct target_ops) <to_use_agent>: Add argument.
8493         (target_use_agent): Add argument.
8494         * target.c (update_current_target): Update.
8495         * remote.c (remote_use_agent): Add 'self' argument.
8496         * inf-child.c (inf_child_use_agent): Add 'self' argument.
8497
8498 2014-02-19  Tom Tromey  <tromey@redhat.com>
8499
8500         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8501         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8502         (target_traceframe_info): Add argument.
8503         * target.c (update_current_target): Update.
8504         * remote.c (remote_traceframe_info): Add 'self' argument.
8505         * ctf.c (ctf_traceframe_info): Add 'self' argument.
8506
8507 2014-02-19  Tom Tromey  <tromey@redhat.com>
8508
8509         * target.h (target_static_tracepoint_markers_by_strid): Add
8510         argument.
8511         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8512         'self' argument.
8513         * target.c (update_current_target): Update.
8514         * remote.c (struct target_ops)
8515         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8516         * linux-nat.c (struct target_ops)
8517         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8518
8519 2014-02-19  Tom Tromey  <tromey@redhat.com>
8520
8521         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8522         Add argument.
8523         (target_static_tracepoint_marker_at): Add argument.
8524         * target.c (update_current_target): Update.
8525         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8526         argument.
8527
8528 2014-02-19  Tom Tromey  <tromey@redhat.com>
8529
8530         * target.h (struct target_ops) <to_set_permissions>: Add argument.
8531         (target_set_permissions): Add argument.
8532         * target.c (update_current_target): Update.
8533         * remote.c (remote_set_permissions): Add 'self' argument.
8534         (remote_start_remote): Update.
8535
8536 2014-02-19  Tom Tromey  <tromey@redhat.com>
8537
8538         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8539         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8540         (target_get_tib_address): Add argument.
8541         * target.c (update_current_target): Update.
8542         * remote.c (remote_get_tib_address): Add 'self' argument.
8543
8544 2014-02-19  Tom Tromey  <tromey@redhat.com>
8545
8546         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8547         (target_set_trace_notes): Add argument.
8548         * target.c (update_current_target): Update.
8549         * remote.c (remote_set_trace_notes): Add 'self' argument.
8550
8551 2014-02-19  Tom Tromey  <tromey@redhat.com>
8552
8553         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8554         argument.
8555         (target_set_trace_buffer_size): Add argument.
8556         * target.c (update_current_target): Update.
8557         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8558
8559 2014-02-19  Tom Tromey  <tromey@redhat.com>
8560
8561         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8562         argument.
8563         (target_set_circular_trace_buffer): Add argument.
8564         * target.c (update_current_target): Update.
8565         * remote.c (remote_set_circular_trace_buffer): Add 'self'
8566         argument.
8567
8568 2014-02-19  Tom Tromey  <tromey@redhat.com>
8569
8570         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8571         argument.
8572         (target_set_disconnected_tracing): Add argument.
8573         * target.c (update_current_target): Update.
8574         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8575
8576 2014-02-19  Tom Tromey  <tromey@redhat.com>
8577
8578         * target.h (struct target_ops)
8579         <to_get_min_fast_tracepoint_insn_len>: Add argument.
8580         (target_get_min_fast_tracepoint_insn_len): Add argument.
8581         * target.c (update_current_target): Update.
8582         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8583         argument.
8584
8585 2014-02-19  Tom Tromey  <tromey@redhat.com>
8586
8587         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8588         argument.
8589         (target_get_raw_trace_data): Add argument.
8590         * target.c (update_current_target): Update.
8591         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8592
8593 2014-02-19  Tom Tromey  <tromey@redhat.com>
8594
8595         * target.h (struct target_ops) <to_upload_trace_state_variables>:
8596         Add argument.
8597         (target_upload_trace_state_variables): Add argument.
8598         * target.c (update_current_target): Update.
8599         * remote.c (remote_upload_trace_state_variables): Add 'self'
8600         argument.
8601         (remote_start_remote): Update.
8602
8603 2014-02-19  Tom Tromey  <tromey@redhat.com>
8604
8605         * target.h (struct target_ops) <to_upload_tracepoints>: Add
8606         argument.
8607         (target_upload_tracepoints): Add argument.
8608         * target.c (update_current_target): Update.
8609         * remote.c (remote_upload_tracepoints): Add 'self' argument.
8610         (remote_start_remote): Update.
8611
8612 2014-02-19  Tom Tromey  <tromey@redhat.com>
8613
8614         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8615         (target_save_trace_data): Add argument.
8616         * target.c (update_current_target): Update.
8617         * remote.c (remote_save_trace_data): Add 'self' argument.
8618
8619 2014-02-19  Tom Tromey  <tromey@redhat.com>
8620
8621         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8622         argument.
8623         * target.h (struct target_ops)
8624         <to_get_trace_state_variable_value>: Add argument.
8625         (target_get_trace_state_variable_value): Add argument.
8626         * target.c (update_current_target): Update.
8627         * remote.c (remote_get_trace_state_variable_value): Add 'self'
8628         argument.
8629         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8630
8631 2014-02-19  Tom Tromey  <tromey@redhat.com>
8632
8633         * tracepoint.c (tfile_trace_find): Add 'self' argument.
8634         * target.h (struct target_ops) <to_trace_find>: Add argument.
8635         (target_trace_find): Add argument.
8636         * target.c (update_current_target): Update.
8637         * remote.c (remote_trace_find): Add 'self' argument.
8638         * ctf.c (ctf_trace_find): Add 'self' argument.
8639
8640 2014-02-19  Tom Tromey  <tromey@redhat.com>
8641
8642         * target.h (struct target_ops) <to_trace_stop>: Add argument.
8643         (target_trace_stop): Add argument.
8644         * target.c (update_current_target): Update.
8645         * remote.c (remote_trace_stop): Add 'self' argument.
8646
8647 2014-02-19  Tom Tromey  <tromey@redhat.com>
8648
8649         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8650         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8651         argument.
8652         (target_get_tracepoint_status): Add argument.
8653         * target.c (update_current_target): Update.
8654         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8655
8656 2014-02-19  Tom Tromey  <tromey@redhat.com>
8657
8658         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8659         * target.h (struct target_ops) <to_get_trace_status>: Add
8660         argument.
8661         (target_get_trace_status): Add argument.
8662         * target.c (update_current_target): Update.
8663         * remote.c (remote_get_trace_status): Add 'self' argument.
8664         (remote_start_remote, remote_can_download_tracepoint): Update.
8665         * ctf.c (ctf_get_trace_status): Add 'self' argument.
8666
8667 2014-02-19  Tom Tromey  <tromey@redhat.com>
8668
8669         * target.h (struct target_ops) <to_trace_start>: Add argument.
8670         (target_trace_start): Add argument.
8671         * target.c (update_current_target): Update.
8672         * remote.c (remote_trace_start): Add 'self' argument.
8673
8674 2014-02-19  Tom Tromey  <tromey@redhat.com>
8675
8676         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8677         Add argument.
8678         (target_trace_set_readonly_regions): Add argument.
8679         * target.c (update_current_target): Update.
8680         * remote.c (remote_trace_set_readonly_regions): Add 'self'
8681         argument.
8682
8683 2014-02-19  Tom Tromey  <tromey@redhat.com>
8684
8685         * target.h (struct target_ops) <to_disable_tracepoint>: Add
8686         argument.
8687         (target_disable_tracepoint): Add argument.
8688         * target.c (update_current_target): Update.
8689         * remote.c (remote_disable_tracepoint): Add 'self' argument.
8690
8691 2014-02-19  Tom Tromey  <tromey@redhat.com>
8692
8693         * target.h (struct target_ops) <to_enable_tracepoint>: Add
8694         argument.
8695         (target_enable_tracepoint): Add argument.
8696         * target.c (update_current_target): Update.
8697         * remote.c (remote_enable_tracepoint): Add 'self' argument.
8698
8699 2014-02-19  Tom Tromey  <tromey@redhat.com>
8700
8701         * target.h (struct target_ops) <to_download_trace_state_variable>:
8702         Add argument.
8703         (target_download_trace_state_variable): Add argument.
8704         * target.c (update_current_target): Update.
8705         * remote.c (remote_download_trace_state_variable): Add 'self'
8706         argument.
8707
8708 2014-02-19  Tom Tromey  <tromey@redhat.com>
8709
8710         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8711         argument.
8712         (target_can_download_tracepoint): Add argument.
8713         * target.c (update_current_target): Update.
8714         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8715
8716 2014-02-19  Tom Tromey  <tromey@redhat.com>
8717
8718         * target.h (struct target_ops) <to_download_tracepoint>: Add
8719         argument.
8720         (target_download_tracepoint): Add argument.
8721         * target.c (update_current_target): Update.
8722         * remote.c (remote_download_tracepoint): Add 'self' argument.
8723
8724 2014-02-19  Tom Tromey  <tromey@redhat.com>
8725
8726         * target.h (struct target_ops) <to_trace_init>: Add argument.
8727         (target_trace_init): Add argument.
8728         * target.c (update_current_target): Update.
8729         * remote.c (remote_trace_init): Add 'self' argument.
8730
8731 2014-02-19  Tom Tromey  <tromey@redhat.com>
8732
8733         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8734         * target.c (target_fileio_readlink): Add argument.
8735         * remote.c (remote_hostio_readlink): Add 'self' argument.
8736         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8737
8738 2014-02-19  Tom Tromey  <tromey@redhat.com>
8739
8740         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8741         * target.c (target_fileio_unlink): Add argument.
8742         * remote.c (remote_hostio_unlink): Add 'self' argument.
8743         (remote_file_delete): Update.
8744         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8745
8746 2014-02-19  Tom Tromey  <tromey@redhat.com>
8747
8748         * target.h (struct target_ops) <to_fileio_close>: Add argument.
8749         * target.c (target_fileio_close): Add argument.
8750         * remote.c (remote_hostio_close): Add 'self' argument.
8751         (remote_hostio_close_cleanup): Update.
8752         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8753         Update.
8754         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8755
8756 2014-02-19  Tom Tromey  <tromey@redhat.com>
8757
8758         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8759         * target.c (target_fileio_pread): Add argument.
8760         * remote.c (remote_hostio_pread): Add 'self' argument.
8761         (remote_bfd_iovec_pread, remote_file_get): Update.
8762         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8763
8764 2014-02-19  Tom Tromey  <tromey@redhat.com>
8765
8766         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8767         * target.c (target_fileio_pwrite): Add argument.
8768         * remote.c (remote_hostio_pwrite): Add 'self' argument.
8769         (remote_file_put): Update.
8770         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8771
8772 2014-02-19  Tom Tromey  <tromey@redhat.com>
8773
8774         * target.h (struct target_ops) <to_fileio_open>: Add argument.
8775         * target.c (target_fileio_open): Add argument.
8776         * remote.c (remote_hostio_open): Add 'self' argument.
8777         (remote_bfd_iovec_open): Add 'self' argument.
8778         (remote_file_put): Add 'self' argument.
8779         (remote_file_get): Add 'self' argument.
8780         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
8781
8782 2014-02-19  Tom Tromey  <tromey@redhat.com>
8783
8784         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8785         Add argument.
8786         (target_can_run_breakpoint_commands): Add argument.
8787         * target.c (update_current_target): Update.
8788         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
8789         argument.
8790         (remote_insert_breakpoint): Add 'self' argument.
8791         (remote_insert_hw_breakpoint): Add 'self' argument.
8792         (remote_can_run_breakpoint_commands): Add 'self' argument.
8793
8794 2014-02-19  Tom Tromey  <tromey@redhat.com>
8795
8796         * target.h (struct target_ops)
8797         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
8798         (target_supports_evaluation_of_breakpoint_conditions): Add
8799         argument.
8800         * target.c (update_current_target): Update.
8801         * remote.c (remote_supports_cond_breakpoints): Add 'self'
8802         argument.
8803         (remote_insert_breakpoint): Add 'self' argument.
8804         (remote_insert_hw_breakpoint): Add 'self' argument.
8805         (remote_supports_cond_breakpoints): Add 'self' argument.
8806
8807 2014-02-19  Tom Tromey  <tromey@redhat.com>
8808
8809         * target.h (struct target_ops) <to_supports_string_tracing>: Add
8810         argument.
8811         (target_supports_string_tracing): Add argument.
8812         * target.c (update_current_target): Update.
8813         * remote.c (remote_supports_string_tracing): Add 'self' argument.
8814
8815 2014-02-19  Tom Tromey  <tromey@redhat.com>
8816
8817         * target.h (struct target_ops)
8818         <to_supports_disable_randomization>: Add argument.
8819         * target.c (find_default_supports_disable_randomization): Add
8820         argument.
8821         (target_supports_disable_randomization): Add argument.
8822         (find_default_supports_disable_randomization): Add 'self'
8823         argument.
8824         * remote.c (extended_remote_supports_disable_randomization): Add
8825         'self' argument.
8826         (remote_supports_disable_randomization): Add 'self' argument.
8827         (extended_remote_create_inferior): Update.
8828         * linux-nat.c (linux_nat_supports_disable_randomization): Add
8829         'self' argument.
8830
8831 2014-02-19  Tom Tromey  <tromey@redhat.com>
8832
8833         * target.h (struct target_ops)
8834         <to_supports_enable_disable_tracepoint>: Add argument.
8835         (target_supports_enable_disable_tracepoint): Add argument.
8836         * target.c (update_current_target): Update.
8837         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
8838         argument.
8839
8840 2014-02-19  Tom Tromey  <tromey@redhat.com>
8841
8842         * target.h (struct target_ops) <to_supports_multi_process>: Add
8843         argument.
8844         (target_supports_multi_process): Add argument.
8845         * target.c (update_current_target): Update.
8846         * remote.c (remote_supports_multi_process): Add 'self' argument.
8847         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
8848         argument.
8849         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
8850         argument.
8851
8852 2014-02-19  Tom Tromey  <tromey@redhat.com>
8853
8854         * target.h (struct target_ops) <to_execution_direction>: Add
8855         argument.
8856         (target_execution_direction): Add argument.
8857         * target.c (default_execution_direction): Add 'self' argument.
8858         * record-full.c (record_full_execution_direction): Add 'self'
8859         argument.
8860
8861 2014-02-19  Tom Tromey  <tromey@redhat.com>
8862
8863         * target.h (struct target_ops) <to_can_execute_reverse>: Add
8864         argument.
8865         (target_can_execute_reverse): Add argument.
8866         * remote.c (remote_can_execute_reverse): Add 'self' argument.
8867         * record-full.c (record_full_can_execute_reverse): Add 'self'
8868         argument.
8869         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
8870         argument.
8871
8872 2014-02-19  Tom Tromey  <tromey@redhat.com>
8873
8874         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
8875         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
8876         argument.
8877         (target_get_ada_task_ptid): Add argument.
8878         * target.c (update_current_target): Update.
8879         (default_get_ada_task_ptid): Add 'self' argument.
8880         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
8881         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
8882         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
8883         argument.
8884         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
8885         argument.
8886         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
8887         argument.
8888         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
8889         argument.
8890         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
8891         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
8892         argument.
8893
8894 2014-02-19  Tom Tromey  <tromey@redhat.com>
8895
8896         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
8897         (target_goto_bookmark): Add argument.
8898         * target.c (dummy_goto_bookmark): Add 'self' argument.
8899         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
8900
8901 2014-02-19  Tom Tromey  <tromey@redhat.com>
8902
8903         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
8904         (target_get_bookmark): Add argument.
8905         * target.c (dummy_get_bookmark): Add 'self' argument.
8906         * record-full.c (record_full_get_bookmark): Add 'self' argument.
8907
8908 2014-02-19  Tom Tromey  <tromey@redhat.com>
8909
8910         * target.h (struct target_ops) <to_make_corefile_notes>: Add
8911         argument.
8912         (target_make_corefile_notes): Add argument.
8913         * target.c (dummy_make_corefile_notes): Add 'self' argument.
8914         * procfs.c (procfs_make_note_section): Add 'self' argument.
8915         (procfs_make_note_section): Add 'self' argument.
8916         (procfs_make_note_section): Add 'self' argument.
8917         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
8918         argument.
8919         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
8920         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
8921         * exec.c (exec_make_note_section): Add 'self' argument.
8922         (exec_make_note_section): Add 'self' argument.
8923
8924 2014-02-19  Tom Tromey  <tromey@redhat.com>
8925
8926         * target.h (struct target_ops) <to_find_memory_regions>: Add
8927         argument.
8928         (target_find_memory_regions): Add argument.
8929         * target.c (dummy_find_memory_regions): Add 'self' argument.
8930         * procfs.c (proc_find_memory_regions): Add 'self' argument.
8931         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
8932         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
8933         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
8934         * exec. (exec_do_find_memory_regions): New global.
8935         (exec_set_find_memory_regions): Rewrite.
8936         (exec_find_memory_regions): New function.
8937         (init_exec_ops): Use exec_find_memory_regions.
8938
8939 2014-02-19  Tom Tromey  <tromey@redhat.com>
8940
8941         * target.h (struct target_ops) <to_supports_non_stop>: Add
8942         argument.
8943         * target.c (find_default_supports_non_stop): Add argument.
8944         (target_supports_non_stop): Add argument.
8945         (find_default_supports_non_stop): Add 'self' argument.
8946         * remote.c (remote_supports_non_stop): Add 'self' argument.
8947         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
8948
8949 2014-02-19  Tom Tromey  <tromey@redhat.com>
8950
8951         * target.h (struct target_ops) <to_log_command>: Add argument.
8952         (target_log_command): Add argument.
8953         * serial.h (serial_log_command): Add 'self' argument.
8954         * serial.c (serial_log_command): Add 'self' argument.
8955
8956 2014-02-19  Tom Tromey  <tromey@redhat.com>
8957
8958         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
8959         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
8960         argument.
8961         (target_pid_to_exec_file): Add argument.
8962         * target.c (debug_to_pid_to_exec_file): Add argument.
8963         (update_current_target): Update.
8964         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
8965         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
8966         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
8967         (linux_handle_extended_wait): Update.
8968         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
8969         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
8970         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
8971         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
8972
8973 2014-02-19  Tom Tromey  <tromey@redhat.com>
8974
8975         * target.h (struct target_ops) <to_rcmd>: Add argument.
8976         (target_rcmd): Add argument.
8977         * target.c (debug_to_rcmd): Add argument.
8978         (update_current_target, do_monitor_command): Update.
8979         * remote.c (remote_rcmd): Add 'self' argument.
8980         * monitor.c (monitor_rcmd): Add 'self' argument.
8981
8982 2014-02-19  Tom Tromey  <tromey@redhat.com>
8983
8984         * windows-nat.c (windows_stop): Add 'self' argument.
8985         * target.h (struct target_ops) <to_stop>: Add argument.
8986         * target.c (target_stop): Add argument.
8987         (debug_to_stop): Add argument.
8988         (update_current_target): Update.
8989         * remote.c (remote_stop): Add 'self' argument.
8990         * remote-sim.c (gdbsim_stop): Add 'self' argument.
8991         (gdbsim_cntrl_c): Update.
8992         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
8993         * procfs.c (procfs_stop): Add 'self' argument.
8994         * nto-procfs.c (procfs_stop): Add 'self' argument.
8995         * monitor.c (monitor_stop): Add 'self' argument.
8996         (monitor_open): Update.
8997         * linux-nat.c (linux_nat_stop): Add argument.
8998         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
8999         * gnu-nat.c (gnu_stop): Add 'self' argument.
9000         * darwin-nat.c (darwin_stop): Add 'self' argument.
9001
9002 2014-02-19  Tom Tromey  <tromey@redhat.com>
9003
9004         * target.h (struct target_ops) <to_thread_name>: Add argument.
9005         * target.c (target_thread_name): Add argument.
9006         (update_current_target): Update.
9007         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9008
9009 2014-02-19  Tom Tromey  <tromey@redhat.com>
9010
9011         * target.h (struct target_ops) <to_extra_thread_info>: Add
9012         argument.
9013         (target_extra_thread_info): Add argument.
9014         * target.c (update_current_target): Update.
9015         * remote.c (remote_threads_extra_info): Add 'self' argument.
9016         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9017         argument.
9018         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9019         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9020         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9021         argument.
9022         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9023         argument.
9024         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9025         argument.
9026         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9027         argument.
9028
9029 2014-02-19  Tom Tromey  <tromey@redhat.com>
9030
9031         * target.h (struct target_ops) <to_program_signals>: Add argument.
9032         * target.c (target_program_signals): Add argument.
9033         * remote.c (remote_program_signals): Add 'self' argument.
9034
9035 2014-02-19  Tom Tromey  <tromey@redhat.com>
9036
9037         * target.h (struct target_ops) <to_pass_signals>: Add argument.
9038         * target.c (target_pass_signals): Add argument.
9039         * remote.c (remote_pass_signals): Add 'self' argument.
9040         (remote_start_remote): Update.
9041         * procfs.c (procfs_pass_signals): Add 'self' argument.
9042         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9043         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9044         (linux_nat_create_inferior, linux_nat_attach): Update.
9045
9046 2014-02-19  Tom Tromey  <tromey@redhat.com>
9047
9048         * windows-nat.c (windows_can_run): Add 'self' argument.
9049         * target.h (struct target_ops) <to_can_run>: Add argument.
9050         (target_can_run): Add argument.
9051         * target.c (debug_to_can_run): Add argument.
9052         (update_current_target): Update.
9053         * nto-procfs.c (procfs_can_run): Add 'self' argument.
9054         * inf-child.c (inf_child_can_run): Add 'self' argument.
9055         * go32-nat.c (go32_can_run): Add 'self' argument.
9056
9057 2014-02-19  Tom Tromey  <tromey@redhat.com>
9058
9059         * target.h (struct target_ops) <to_has_exited>: Add argument.
9060         (target_has_exited): Add argument.
9061         * target.c (debug_to_has_exited): Add argument.
9062         (update_current_target): Update.
9063
9064 2014-02-19  Tom Tromey  <tromey@redhat.com>
9065
9066         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9067         argument.
9068         (target_set_syscall_catchpoint): Add argument.
9069         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9070         argument.
9071         * target.c (update_current_target): Update.
9072
9073 2014-02-19  Tom Tromey  <tromey@redhat.com>
9074
9075         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9076         argument.
9077         (target_remove_exec_catchpoint): Add argument.
9078         * target.c (debug_to_remove_exec_catchpoint): Add argument.
9079         (update_current_target): Update.
9080         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9081         argument.
9082
9083 2014-02-19  Tom Tromey  <tromey@redhat.com>
9084
9085         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9086         argument.
9087         (target_insert_exec_catchpoint): Add argument.
9088         * target.c (debug_to_insert_exec_catchpoint): Add argument.
9089         (update_current_target): Update.
9090         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9091         argument.
9092
9093 2014-02-19  Tom Tromey  <tromey@redhat.com>
9094
9095         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9096         argument.
9097         (target_remove_vfork_catchpoint): Add argument.
9098         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9099         (update_current_target): Update.
9100         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9101         argument.
9102
9103 2014-02-19  Tom Tromey  <tromey@redhat.com>
9104
9105         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9106         argument.
9107         (target_insert_vfork_catchpoint): Add argument.
9108         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9109         (update_current_target): Update.
9110         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9111         argument.
9112
9113 2014-02-19  Tom Tromey  <tromey@redhat.com>
9114
9115         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9116         argument.
9117         (target_remove_fork_catchpoint): Add argument.
9118         * target.c (debug_to_remove_fork_catchpoint): Add argument.
9119         (update_current_target): Update.
9120         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9121         argument.
9122
9123 2014-02-19  Tom Tromey  <tromey@redhat.com>
9124
9125         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9126         argument.
9127         (target_insert_fork_catchpoint): Add argument.
9128         * target.c (debug_to_insert_fork_catchpoint): Add argument.
9129         (update_current_target): Update.
9130         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9131         argument.
9132
9133 2014-02-19  Tom Tromey  <tromey@redhat.com>
9134
9135         * target.h (struct target_ops) <to_post_startup_inferior>: Add
9136         argument.
9137         (target_post_startup_inferior): Add argument.
9138         * target.c (debug_to_post_startup_inferior): Add argument.
9139         (update_current_target): Update.
9140         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9141         argument.
9142         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9143         argument.
9144         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9145         argument.
9146         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9147         argument.
9148         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9149         'self' argument.
9150         (super_post_startup_inferior): Likewise.
9151         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9152         'self' argument.
9153         (super_post_startup_inferior): Likewise.
9154         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9155         Add 'self' argument.
9156         (super_post_startup_inferior): Likewise.
9157
9158 2014-02-19  Tom Tromey  <tromey@redhat.com>
9159
9160         * target.h (struct target_ops) <to_load>: Add argument.
9161         * target.c (target_load): Add argument.
9162         (debug_to_load): Add argument.
9163         (update_current_target): Update.
9164         * remote.c (remote_load): Add 'self' argument.
9165         * remote-sim.c (gdbsim_load): Add 'self' argument.
9166         * remote-mips.c (mips_load): Add 'self' argument.
9167         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9168         * monitor.c (monitor_load): Add 'self' argument.
9169         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9170
9171 2014-02-19  Tom Tromey  <tromey@redhat.com>
9172
9173         * target.h (struct target_ops) <to_terminal_info>: Add argument.
9174         (target_terminal_info): Add argument.
9175         * target.c (debug_to_terminal_info): Add argument.
9176         (default_terminal_info): Likewise.
9177         * inflow.c (child_terminal_info): Add 'self' argument.
9178         * inferior.h (child_terminal_info): Add 'self' argument.
9179         * go32-nat.c (go32_terminal_info): Add 'self' argument.
9180
9181 2014-02-19  Tom Tromey  <tromey@redhat.com>
9182
9183         * target.h (struct target_ops) <to_terminal_save_ours>: Add
9184         argument.
9185         (target_terminal_save_ours): Add argument.
9186         * target.c (debug_to_terminal_save_ours): Add argument.
9187         (update_current_target): Update.
9188         * inflow.c (terminal_save_ours): Add 'self' argument.
9189         * inferior.h (terminal_save_ours): Add 'self' argument.
9190
9191 2014-02-19  Tom Tromey  <tromey@redhat.com>
9192
9193         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9194         (target_terminal_ours): Add argument.
9195         * target.c (debug_to_terminal_ours): Add argument.
9196         (update_current_target): Update.
9197         * remote.c (remote_terminal_ours): Add 'self' argument.
9198         (remote_close): Update.
9199         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9200         * inflow.c (terminal_ours): Add 'self' argument.
9201         * inferior.h (terminal_ours): Add 'self' argument.
9202         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9203
9204 2014-02-19  Pedro Alves  <palves@redhat.com>
9205             Tom Tromey  <tromey@redhat.com>
9206
9207         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9208         argument.
9209         (target_terminal_ours_for_output): Add argument.
9210         * target.c (debug_to_terminal_ours_for_output): Add argument.
9211         (update_current_target): Update.
9212         * inflow.c (terminal_ours_for_output): Add 'self' argument.
9213         * inferior.h (terminal_ours_for_output): Add 'self' argument.
9214         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9215
9216 2014-02-19  Tom Tromey  <tromey@redhat.com>
9217
9218         * target.h (struct target_ops) <to_terminal_inferior>: Add
9219         argument.
9220         * target.c (target_terminal_inferior): Add argument.
9221         (update_current_target): Update.
9222         * remote.c (remote_terminal_inferior): Add 'self' argument.
9223         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9224         * inflow.c (terminal_inferior): Add 'self' argument.
9225         * inferior.h (terminal_inferior): Add 'self' argument.
9226         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9227         (go32_terminal_inferior): Add 'self' argument.
9228
9229 2014-02-19  Tom Tromey  <tromey@redhat.com>
9230
9231         * target.h (struct target_ops) <to_terminal_init>: Add argument.
9232         (target_terminal_init): Add argument.
9233         * target.c (debug_to_terminal_init): Add argument.
9234         (update_current_target): Update.
9235         * inflow.c (terminal_init_inferior): Add 'self' argument.
9236         * inferior.h (terminal_init_inferior): Add 'self' argument.
9237         * go32-nat.c (go32_terminal_init): Add 'self' argument.
9238         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9239
9240 2014-02-19  Tom Tromey  <tromey@redhat.com>
9241
9242         * target.h (struct target_ops)
9243         <to_can_accel_watchpoint_condition>: Add argument.
9244         (target_can_accel_watchpoint_condition): Add argument.
9245         * target.c (debug_to_can_accel_watchpoint_condition): Add
9246         argument.
9247         (update_current_target): Update.
9248         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9249         'self' argument.
9250
9251 2014-02-19  Tom Tromey  <tromey@redhat.com>
9252
9253         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9254         Add argument.
9255         (target_region_ok_for_hw_watchpoint): Add argument.
9256         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9257         (default_region_ok_for_hw_watchpoint): Add argument.
9258         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9259         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9260         argument.
9261         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9262         argument.
9263         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9264         argument.
9265         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9266         'self' argument.
9267         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9268         'self' argument.
9269         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9270         'self' argument.
9271         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9272         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9273         'self' argument.
9274         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9275         Add 'self' argument.
9276
9277 2014-02-19  Tom Tromey  <tromey@redhat.com>
9278
9279         * target.h (struct target_ops) <to_insert_watchpoint>: Add
9280         argument.
9281         (target_insert_watchpoint): Add argument.
9282         * target.c (debug_to_insert_watchpoint): Add argument.
9283         (update_current_target): Update.
9284         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9285         * remote.c (remote_insert_watchpoint): Add 'self' argument.
9286         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9287         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9288         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9289         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9290         argument.
9291         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9292         (procfs_insert_hw_watchpoint): Add 'self' argument.
9293         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9294         argument.
9295         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9296         argument.
9297         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9298         argument.
9299         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9300         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9301         argument.
9302         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9303         'self' argument.
9304
9305 2014-02-19  Tom Tromey  <tromey@redhat.com>
9306
9307         * target.h (struct target_ops) <to_remove_watchpoint>: Add
9308         argument.
9309         (target_remove_watchpoint): Add argument.
9310         * target.c (debug_to_remove_watchpoint): Add argument.
9311         (update_current_target): Update.
9312         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9313         * remote.c (remote_remove_watchpoint): Add 'self' argument.
9314         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9315         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9316         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9317         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9318         argument.
9319         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9320         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9321         argument.
9322         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9323         argument.
9324         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9325         argument.
9326         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9327         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9328         argument.
9329         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9330         'self' argument.
9331
9332 2014-02-19  Tom Tromey  <tromey@redhat.com>
9333
9334         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9335         argument.
9336         (target_remove_hw_breakpoint): Add argument.
9337         * target.c (debug_to_remove_hw_breakpoint): Add argument.
9338         (update_current_target): Update.
9339         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9340         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9341         argument.
9342         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9343         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9344         argument.
9345         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9346         'self' argument.
9347
9348 2014-02-19  Tom Tromey  <tromey@redhat.com>
9349
9350         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9351         argument.
9352         (target_insert_hw_breakpoint): Add argument.
9353         * target.c (debug_to_insert_hw_breakpoint): Add argument.
9354         (update_current_target): Update.
9355         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9356         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9357         argument.
9358         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9359         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9360         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9361         argument.
9362         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9363         'self' argument.
9364
9365 2014-02-19  Tom Tromey  <tromey@redhat.com>
9366
9367         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9368         argument.
9369         (target_can_use_hardware_watchpoint): Add argument.
9370         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9371         (update_current_target): Update.
9372         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9373         argument.
9374         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9375         argument.
9376         * remote.c (remote_check_watch_resources): Add 'self' argument.
9377         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9378         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9379         argument.
9380         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9381         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9382         argument.
9383         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9384         argument.
9385         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9386         argument.
9387         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9388         argument.
9389         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9390         argument.
9391         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9392         argument.
9393         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9394         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9395         argument.
9396         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9397         'self' argument.
9398
9399 2014-02-19  Tom Tromey  <tromey@redhat.com>
9400
9401         * target.h (struct target_ops) <to_post_attach>: Add argument.
9402         (target_post_attach): Add argument.
9403         * target.c (debug_to_post_attach): Add argument.
9404         (update_current_target): Update.
9405         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9406         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9407         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9408         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9409         * inf-child.c (inf_child_post_attach): Add 'self' argument.
9410
9411 2014-02-19  Tom Tromey  <tromey@redhat.com>
9412
9413         * windows-nat.c (windows_close): Add 'self' argument.
9414         * tracepoint.c (tfile_close): Add 'self' argument.
9415         * target.h (struct target_ops) <to_close>: Add argument.
9416         * target.c (target_close): Add argument.
9417         (update_current_target): Update.
9418         * remote.c (remote_close): Add 'self' argument.
9419         * remote-sim.c (gdbsim_close): Add 'self' argument.
9420         * remote-mips.c (mips_close): Add 'self' argument.
9421         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9422         * record-full.c (record_full_close): Add 'self' argument.
9423         * record-btrace.c (record_btrace_close): Add 'self' argument.
9424         * monitor.h (monitor_close): Add 'self' argument.
9425         * monitor.c (monitor_close): Add 'self' argument.
9426         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9427         * linux-nat.c (linux_nat_close): Add argument.
9428         * go32-nat.c (go32_close): Add 'self' argument.
9429         * exec.c (exec_close_1): Add 'self' argument.
9430         * ctf.c (ctf_close): Add 'self' argument.
9431         * corelow.c (core_close): Add 'self' argument.
9432         (core_close_cleanup): Update.
9433         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9434         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9435
9436 2014-02-19  Tom Tromey  <tromey@redhat.com>
9437
9438         * remote.c (remote_load): New function.
9439         (init_remote_ops): Use it.
9440
9441 2014-02-19  Tom Tromey  <tromey@redhat.com>
9442
9443         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9444         argument.
9445         * common/linux-btrace.h (linux_supports_btrace): Update.
9446         * remote.c (remote_supports_btrace): Add "self" argument.
9447         * target-delegates.c: Rebuild.
9448         * target.c (target_supports_btrace): Remove.
9449         * target.h (struct target_ops) <to_supports_btrace>: Add
9450         target_ops argument.
9451         (target_supports_btrace): New define.
9452
9453 2014-02-19  Tom Tromey  <tromey@redhat.com>
9454
9455         * record-full.c (record_full_beneath_to_resume_ops)
9456         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9457         (record_full_beneath_to_wait)
9458         (record_full_beneath_to_store_registers_ops)
9459         (record_full_beneath_to_store_registers)
9460         (record_full_beneath_to_xfer_partial_ops)
9461         (record_full_beneath_to_xfer_partial)
9462         (record_full_beneath_to_insert_breakpoint_ops)
9463         (record_full_beneath_to_insert_breakpoint)
9464         (record_full_beneath_to_remove_breakpoint_ops)
9465         (record_full_beneath_to_remove_breakpoint)
9466         (record_full_beneath_to_stopped_by_watchpoint)
9467         (record_full_beneath_to_stopped_data_address)
9468         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9469         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9470         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9471         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9472         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9473         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9474         (tmp_to_stopped_data_address, tmp_to_async): Remove.
9475         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
9476         (record_full_resume, record_full_wait_1)
9477         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9478         (record_full_store_registers, record_full_xfer_partial)
9479         (record_full_insert_breakpoint, record_full_remove_breakpoint)
9480         (record_full_async, record_full_core_xfer_partial): Use target
9481         delegation.
9482         * target-delegates.c: Rebuild.
9483         * target.c (current_xfer_partial): Remove.
9484         (update_current_target): Do not INHERIT or de_fault
9485         to_insert_breakpoint, to_remove_breakpoint,
9486         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9487         to_is_async_p, to_async.  Do not set to_xfer_partial field.
9488         (default_xfer_partial): Simplify.
9489         (current_xfer_partial): Remove.
9490         (target_wait, target_resume): Simplify.
9491         (find_default_can_async_p, find_default_is_async_p): Update.
9492         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9493         to_xfer_partial, to_stopped_by_watchpoint,
9494         to_stopped_data_address.
9495         (target_store_registers): Simplify.
9496         (forward_target_remove_breakpoint)
9497         (forward_target_insert_breakpoint): Remove.
9498         (target_remove_breakpoint, target_insert_breakpoint)
9499         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9500         * target.h (struct target_ops) <to_resume, to_wait,
9501         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9502         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9503         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9504         markup.
9505         (forward_target_remove_breakpoint)
9506         (forward_target_insert_breakpoint): Remove.
9507         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9508         directly.
9509         (record_btrace_insert_breakpoint): Delegate directly.
9510
9511 2014-02-19  Tom Tromey  <tromey@redhat.com>
9512
9513         PR build/7701:
9514         * target-delegates.c: New file.
9515         * target.c: Include target-delegates.c.
9516         (init_dummy_target): Call install_dummy_methods.
9517         (complete_target_initialization): Call install_delegators.
9518         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9519         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9520         * make-target-delegates: New file.
9521
9522 2014-02-19  Tom Tromey  <tromey@redhat.com>
9523
9524         * record.c (find_record_target): Use find_target_at.
9525         * target.c (find_target_at): New function.
9526         * target.h (find_target_at): Declare.
9527
9528 2014-02-19  Tom Tromey  <tromey@redhat.com>
9529
9530         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9531         Add 'ops' argument.
9532         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9533         'ops' argument.
9534         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9535         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9536         'ops' argument.
9537         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9538         argument.
9539         * linux-nat.c (save_sigtrap): Update.
9540         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9541         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9542         (linux_nat_close): Update.
9543         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9544         argument.
9545         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9546         argument.
9547         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9548         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9549         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9550         (tmp_to_async): Add 'ops' argument.
9551         (record_full_stopped_by_watchpoint, record_full_async)
9552         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9553         argument.
9554         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9555         (m32r_stopped_by_watchpoint): Add 'ops' argument.
9556         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9557         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9558         (remote_is_async_p, remote_async): Add 'ops' argument.
9559         (remote_stopped_data_address): Update.
9560         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9561         * target.c (update_current_target)
9562         (find_default_can_async_p, find_default_is_async_p): Update.
9563         (init_dummy_target): Update.
9564         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9565         * target.h (struct target_ops) <to_stopped_by_watchpoint,
9566         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9567         (target_can_async_p, target_is_async_p, target_async)
9568         (target_stopped_by_watchpoint): Update.
9569
9570 2014-02-19  Yao Qi  <yao@codesourcery.com>
9571
9572         PR gdb/16220
9573         * gdbarch.sh: Remove startup_gdbarch.
9574         * gdbarch.c: Regenerated.
9575         * gdbarch.h: Likewise.
9576
9577 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
9578
9579         * rl78-tdep.c (rl78_g10_register_name): New function.
9580         (rl78_return_value): Add g10 support.
9581         (rl78_gdbarch_init): Register rl78_g10_register_name for the
9582         g10.
9583
9584 2014-02-17  Doug Evans  <xdje42@gmail.com>
9585
9586         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9587         (SUBDIR_GUILE_SRCS): Ditto.
9588         (scm-gsmob.o): Ditto.
9589
9590 2014-02-17  Yao Qi  <yao@codesourcery.com>
9591
9592         * gnu-nat.c (ILL_RPC): Declare defined function.
9593
9594 2014-02-17  Yao Qi  <yao@codesourcery.com>
9595
9596         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9597         mach_msg_type_number_t.
9598         (gnu_write_inferior): Likewise.
9599
9600 2014-02-17  Yao Qi  <yao@codesourcery.com>
9601
9602         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9603         in format string.
9604         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9605         (inf_validate_procs, inf_signal): Likewise.
9606         (S_exception_raise_request): Likewise.
9607         (do_mach_notify_dead_name): Likewise.
9608         (steal_exc_port): Likewise.
9609         (gnu_read_inferior): Change 'copy_count''s type to
9610         mach_msg_type_number_t.
9611         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
9612         format string.
9613
9614 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
9615
9616         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9617         flag.  Adjust all users; in particular...
9618         (gnu_wait): ..., don't decrement its value in here...
9619         (gnu_create_inferior): ..., and instead set the flag in here,
9620         around the startup_inferior call, and call that one with
9621         START_INFERIOR_TRAPS_EXPECTED.
9622
9623         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9624         (ILL_RPC): ... new macro.
9625         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9626         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9627         (do_mach_notify_send_once, S_proc_setmsgport_reply)
9628         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9629         functions with ILL_RPC macro.
9630         (S_proc_pid2task_reply, S_proc_task2pid_reply)
9631         (S_proc_task2proc_reply, S_proc_proc2task_reply)
9632         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9633         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9634         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9635         (S_proc_getlogin_reply, S_proc_getsid_reply)
9636         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9637         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9638         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9639         (S_proc_getnports_reply, S_proc_is_important_reply)
9640         (S_proc_get_code_reply): New stub functions, generated with
9641         ILL_RPC macro.
9642
9643         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9644         collected the type check structures.
9645
9646         * reply_mig_hack.awk: Don't expect to see the auto keyword.
9647
9648 2014-02-14  Doug Evans  <dje@google.com>
9649
9650         * target.c (target_write_partial): Fix result type.
9651
9652 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
9653
9654         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9655         the proper offsets to access fpregset_t.
9656
9657 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
9658
9659         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9660         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9661         * h8300-tdep.c (setmachinelist): Remove global.
9662         * hppa-tdep.c (hppa_sigtramp): Remove global.
9663         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9664         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9665         * ravenscar-thread.c (update_target_observer): Remove global.
9666         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9667
9668 2014-02-12  Tom Tromey  <tromey@redhat.com>
9669
9670         * common/rsp-low.c: Update comments.
9671         * common/rsp-low.h: Update comments.
9672
9673 2014-02-12  Tom Tromey  <tromey@redhat.com>
9674
9675         * common/rsp-low.c (convert_ascii_to_int): Remove.
9676         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9677
9678 2014-02-12  Tom Tromey  <tromey@redhat.com>
9679
9680         * common/rsp-low.h (unhexify): Don't declare.
9681         * common/rsp-low.c (unhexify): Remove.
9682
9683 2014-02-12  Tom Tromey  <tromey@redhat.com>
9684
9685         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9686         * common/rsp-low.c (convert_int_to_ascii): Remove.
9687
9688 2014-02-12  Tom Tromey  <tromey@redhat.com>
9689
9690         * common/rsp-low.h (hexify): Don't declare.
9691         * common/rsp-low.c (hexify): Remove.
9692
9693 2014-02-12  Tom Tromey  <tromey@redhat.com>
9694
9695         * common/rsp-low.c (hexify): Never take strlen of argument.
9696
9697 2014-02-12  Tom Tromey  <tromey@redhat.com>
9698
9699         * common/rsp-low.c (bin2hex): Never take strlen of argument.
9700         * remote.c (extended_remote_run, remote_rcmd)
9701         (remote_download_trace_state_variable, remote_save_trace_data)
9702         (remote_set_trace_notes): Update.
9703         * tracepoint.c (encode_source_string, tfile_write_status)
9704         (tfile_write_uploaded_tsv): Update.
9705
9706 2014-02-12  Tom Tromey  <tromey@redhat.com>
9707
9708         * tracepoint.c: Include rsp-low.h.
9709         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9710         * remote.c: Include rsp-low.h.
9711         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9712         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9713         (remote_unescape_input): Move to common/rsp-low.c.
9714         * common/rsp-low.h: New file.
9715         * common/rsp-low.c: New file.
9716         * Makefile.in (SFILES): Add common/rsp-low.c.
9717         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9718         (COMMON_OBS): Add rsp-low.o.
9719         (rsp-low.o): New target.
9720
9721 2014-02-12  Tom Tromey  <tromey@redhat.com>
9722
9723         * utils.h: Include print-utils.h.
9724         (host_address_to_string, plongest, pulongest, phex, phex_nz)
9725         (int_string, core_addr_to_string, core_addr_to_string_nz)
9726         (hex_string, hex_string_custom): Don't declare.
9727         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9728         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9729         (hex_string_custom, int_string, core_addr_to_string)
9730         (core_addr_to_string_nz, host_address_to_string): Move to
9731         common/print-utils.c.
9732         * common/print-utils.h: New file.
9733         * common/print-utils.c: New file
9734         * Makefile.in (SFILES): Add common/print-utils.c.
9735         (HFILES_NO_SRCDIR): Add common/print-utils.h.
9736         (COMMON_OBS): Add print-utils.o.
9737         (print-utils.o): New target.
9738
9739 2014-02-12  Tom Tromey  <tromey@redhat.com>
9740
9741         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9742
9743 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
9744
9745         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9746
9747 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
9748
9749         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9750         if a PT_IO ptrace request returns sucessfully but indicates that 0
9751         bytes were transferred.
9752
9753 2014-02-12  Pedro Alves  <palves@redhat.com>
9754             Kevin Buettner <kevinb@redhat.com>
9755
9756         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9757         TYPE_INSTANCE_FLAG_CODE_SPACE.
9758
9759 2014-02-12  Pedro Alves  <palves@redhat.com>
9760
9761         * h8300-tdep.c (pseudo_from_raw_register)
9762         (raw_from_pseudo_register): New functions.
9763         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9764         them.
9765
9766 2014-02-12  Pedro Alves  <palves@redhat.com>
9767
9768         * h8300-tdep.c (h8300_register_sim_regno): New function.
9769         (h8300_gdbarch_init): Install h8300_register_sim_regno as
9770         gdbarch_register_sim_regno hook.
9771
9772 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
9773
9774         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
9775
9776 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
9777
9778         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
9779
9780 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
9781
9782         * obsd-tdep.h (obsd_init_abi): New prototype.
9783         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
9784         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
9785         (obsd_init_abi): New functions.
9786         * i386obsd-tdep.c: Include "obsd-tdep.h".
9787         (i386obsd_init_abi): Call obsd_init_abi.
9788         * amd64obsd-tdep.c: Include "obsd-tdep.h".
9789         (amd64obsd_init_abi): Call obsd_init_abi.
9790         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
9791         obsd-tdep.c to gdb_target_obs.
9792
9793 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
9794
9795         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
9796         double float arguments to 16-byte in the argument slots.
9797
9798 2014-02-11  Doug Evans  <xdje42@gmail.com>
9799
9800         * configure.ac: Don't crash if pkg-config is not found and guile
9801         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
9802         in guile checks.
9803         * configure: Regenerate.
9804
9805 2014-02-11  Yao Qi  <yao@codesourcery.com>
9806
9807         * aix-thread.c (aix_thread_xfer_partial): Update comments.
9808         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
9809         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9810         * gnu-nat.c (gnu_xfer_memory): Likewise.
9811         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
9812         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9813         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9814         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9815
9816 2014-02-11  Yao Qi  <yao@codesourcery.com>
9817
9818         * target.h (enum target_xfer_error): Rename to ...
9819         (enum target_xfer_status): ... it.  New.  All users updated.
9820         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
9821         New.
9822         (TARGET_XFER_STATUS_ERROR_P): New macro.
9823         (target_xfer_error_to_string): Remove declaration.
9824         (target_xfer_status_to_string): Declare.
9825         (target_xfer_partial_ftype): Adjust it.
9826         (struct target_ops) <to_xfer_partial>: Return
9827         target_xfer_status.  Add argument xfered_len.  Update
9828         comments.
9829         * target.c (target_xfer_error_to_string): Rename to ...
9830         (target_xfer_status_to_string): ... it.  New.  All callers
9831         updated.
9832         (target_read_live_memory): Likewise.  Call target_xfer_partial
9833         instead of target_read.
9834         (memory_xfer_live_readonly_partial): Return
9835         target_xfer_status.  Add argument xfered_len.
9836         (raw_memory_xfer_partial): Likewise.
9837         (memory_xfer_partial_1): Likewise.
9838         (memory_xfer_partial): Likewise.
9839         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
9840         properly.  Update debug message.
9841         (default_xfer_partial, current_xfer_partial): Likewise.
9842         (target_write_partial): Likewise.
9843         (target_read_partial): Likewise.  All callers updated.
9844         (read_whatever_is_readable): Likewise.
9845         (target_write_with_progress): Likewise.
9846         (target_read_alloc_1): Likewise.
9847
9848         * aix-thread.c (aix_thread_xfer_partial): Likewise.
9849         * auxv.c (procfs_xfer_auxv): Likewise.
9850         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
9851         * bfd-target.c (target_bfd_xfer_partial): Likewise.
9852         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9853         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
9854         * corefile.c (read_memory): Adjust.
9855         * corelow.c (core_xfer_partial): Likewise.
9856         * ctf.c (ctf_xfer_partial): Likewise.
9857         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
9858         updated.
9859         (darwin_xfer_partial): Likewise.
9860         * exec.c (section_table_xfer_memory_partial): Likewise.  All
9861         callers updated.
9862         (exec_xfer_partial): Likewise.
9863         * exec.h (section_table_xfer_memory_partial): Update
9864         declaration.
9865         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
9866         negative.
9867         (gnu_xfer_partial): Likewise.
9868         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
9869         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
9870         (ia64_hpux_xfer_solib_got): Likewise.
9871         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
9872         type of 'partial_len' to ULONGEST.
9873         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9874         * linux-nat.c (linux_xfer_siginfo ): Likewise.
9875         (linux_nat_xfer_partial): Likewise.
9876         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
9877         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
9878         * monitor.c (monitor_xfer_memory): Likewise.
9879         (monitor_xfer_partial): Likewise.
9880         * procfs.c (procfs_xfer_partial): Likewise.
9881         * record-btrace.c (record_btrace_xfer_partial): Likewise.
9882         * record-full.c (record_full_xfer_partial): Likewise.
9883         (record_full_core_xfer_partial): Likewise.
9884         * remote-sim.c (gdbsim_xfer_memory): Likewise.
9885         (gdbsim_xfer_partial): Likewise.
9886         * remote.c (remote_write_bytes_aux): Likewise.  All callers
9887         updated.
9888         (remote_write_bytes, remote_read_bytes): Likewise.  All
9889         callers updated.
9890         (remote_flash_erase): Likewise.  All callers updated.
9891         (remote_write_qxfer): Likewise.  All callers updated.
9892         (remote_read_qxfer): Likewise.  All callers updated.
9893         (remote_xfer_partial): Likewise.
9894         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9895         (rs6000_xfer_shared_libraries): Likewise.
9896         * sol-thread.c (sol_thread_xfer_partial): Likewise.
9897         (sol_thread_xfer_partial): Likewise.
9898         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9899         (sparc_xfer_partial): Likewise.
9900         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
9901         updated.
9902         (spu_xfer_partial): Likewise.
9903         * spu-multiarch.c (spu_xfer_partial): Likewise.
9904         * tracepoint.c (tfile_xfer_partial): Likewise.
9905         * windows-nat.c (windows_xfer_memory): Likewise.
9906         (windows_xfer_shared_libraries): Likewise.
9907         (windows_xfer_partial): Likewise.
9908         * valprint.c: Replace 'target_xfer_error' with
9909         'target_xfer_status' in comments.
9910
9911 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
9912
9913         Checked in by Joel Brobecker <brobecker@adacore.com>.
9914         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
9915
9916 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
9917
9918         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
9919         function parameters.
9920
9921 2014-02-10  Will Newton  <will.newton@linaro.org>
9922
9923         * elfread.c (elf_rel_plt_read): Look for a .got section if
9924         looking up .got.plt fails.
9925         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
9926         on address passed to elf_gnu_ifunc_record_cache.
9927         (elf_gnu_ifunc_resolve_addr): Likewise.
9928         (elf_gnu_ifunc_resolver_return_stop): Likewise.
9929
9930 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
9931
9932         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
9933         (X_RETTURN): New macro.
9934         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
9935
9936         * sparc64-tdep.c (sparc64_init_abi): Hook
9937         sparc_in_function_epilogue_p.
9938
9939 2014-02-10  Gary Benson  <gbenson@redhat.com>
9940
9941         * symfile-debug.c (debug_qf_expand_symtabs_matching):
9942         Rename name_matcher to symbol_matcher.
9943
9944 2014-02-10  Gary Benson  <gbenson@redhat.com>
9945
9946         * symfile-debug.c (debug_qf_expand_symtabs_matching):
9947         Use expand_symtabs_file_matcher_ftype and
9948         expand_symtabs_symbol_matcher_ftype.
9949
9950 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
9951
9952         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
9953         (struct ada_symbol_cache): New.
9954         (ada_free_symbol_cache): Forward declare.
9955         (struct ada_pspace_data): New.
9956         (ada_pspace_data_handle): New static global.
9957         (get_ada_pspace_data, ada_pspace_data_cleanup)
9958         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
9959         (cache_space, cache): Delete, now folded inside struct
9960         ada_pspace_data.
9961         (ada_get_symbol_cache): New function.
9962         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
9963         implementation.
9964         (_initialize_ada_language): Remove initialization of cache_space.
9965         Move call to observer_attach_inferior_exit up, grouping it
9966         with the other observer registrations inside this function.
9967         Rename command to be more general.  Add call to
9968         register_program_space_data_with_cleanup.
9969
9970 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
9971
9972         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
9973         ada_new_objfile_observer.
9974         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
9975         (_initialize_tasks): Update uses of ada_new_objfile_observer
9976         and ada_tasks_normal_stop_observer.
9977
9978 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
9979
9980         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
9981         returned by the 'Length attribute to integer.
9982
9983 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
9984
9985         * ada-lang.c (_initialize_ada_language): Initialize
9986         cache_space obstack.
9987
9988 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
9989
9990         * ada-lang.c (HASH_SIZE): New macro.
9991         (struct cache_entry): New type.
9992         (cache_space, cache): New static globals.
9993         (ada_clear_symbol_cache, find_entry): New functions.
9994         (lookup_cached_symbol, cache_symbol): Implement.
9995         (ada_new_objfile_observer, ada_free_objfile_observer): New.
9996         (_initialize_ada_language): Attach ada_new_objfile_observer
9997         and ada_free_objfile_observer.
9998
9999 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
10000
10001         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10002         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10003         struct block * parameter.
10004         (ada_lookup_symbol_list_worker): Constify local variable "block".
10005         Remove cast which is no longer necessary.
10006
10007 2014-02-10  Doug Evans  <xdje42@gmail.com>
10008
10009         Add Guile as an extension language.
10010         * NEWS: Mention Guile scripting.
10011         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10012         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10013         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10014         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10015         (CLIBS): Add GUILE_LIBS.
10016         (install-guile): New rule.
10017         (guile.o): New rule.
10018         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10019         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10020         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10021         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10022         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10023         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10024         (scm-type.o, scm-utils.o, scm-value.o): New rules.
10025         * configure.ac: New option --with-guile.
10026         * configure: Regenerate.
10027         * config.in: Regenerate.
10028         * auto-load.c: Remove #include "python/python.h".  Add #include
10029         "gdb/section-scripts.h".
10030         (source_section_scripts): Handle Guile scripts.
10031         (_initialize_auto_load): Add name of Guile objfile script to
10032         scripts-directory help text.
10033         * breakpoint.c (condition_command): Tweak comment to include Scheme.
10034         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10035         (struct breakpoint): New member scm_bp_object.
10036         * defs.h (enum command_control_type): New value guile_control.
10037         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
10038         "extension.h".
10039         (show_user): Update comment.
10040         (_initialize_cli_cmds): Update help text for "show user".  Update help
10041         text for max-user-call-depth.
10042         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
10043         "extension.h".
10044         (multi_line_command_p): Add guile_control.
10045         (print_command_lines): Handle guile_control.
10046         (execute_control_command, recurse_read_control_structure): Ditto.
10047         (process_next_line): Recognize "guile" commands.
10048         * disasm.c (gdb_disassemble_info): Make non-static.
10049         * disasm.h: #include "dis-asm.h".
10050         (struct gdbarch): Add forward decl.
10051         (gdb_disassemble_info): Declare.
10052         * extension.c: #include "guile/guile.h".
10053         (extension_languages): Add guile.
10054         (get_ext_lang_defn): Handle EXT_LANG_GDB.
10055         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10056         * gdbtypes.c (get_unsigned_type_max): New function.
10057         (get_signed_type_minmax): New function.
10058         * gdbtypes.h (get_unsigned_type_max): Declare.
10059         (get_signed_type_minmax): Declare.
10060         * guile/README: New file.
10061         * guile/guile-internal.h: New file.
10062         * guile/guile.c: New file.
10063         * guile/guile.h: New file.
10064         * guile/scm-arch.c: New file.
10065         * guile/scm-auto-load.c: New file.
10066         * guile/scm-block.c: New file.
10067         * guile/scm-breakpoint.c: New file.
10068         * guile/scm-disasm.c: New file.
10069         * guile/scm-exception.c: New file.
10070         * guile/scm-frame.c: New file.
10071         * guile/scm-gsmob.c: New file.
10072         * guile/scm-iterator.c: New file.
10073         * guile/scm-lazy-string.c: New file.
10074         * guile/scm-math.c: New file.
10075         * guile/scm-objfile.c: New file.
10076         * guile/scm-ports.c: New file.
10077         * guile/scm-pretty-print.c: New file.
10078         * guile/scm-safe-call.c: New file.
10079         * guile/scm-string.c: New file.
10080         * guile/scm-symbol.c: New file.
10081         * guile/scm-symtab.c: New file.
10082         * guile/scm-type.c: New file.
10083         * guile/scm-utils.c: New file.
10084         * guile/scm-value.c: New file.
10085         * guile/lib/gdb.scm: New file.
10086         * guile/lib/gdb/boot.scm: New file.
10087         * guile/lib/gdb/experimental.scm: New file.
10088         * guile/lib/gdb/init.scm: New file.
10089         * guile/lib/gdb/iterator.scm: New file.
10090         * guile/lib/gdb/printing.scm: New file.
10091         * guile/lib/gdb/types.scm: New file.
10092         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10093         (VPATH): Add $(GUILE_SRCDIR).
10094         (GUILE_DIR): New variable.
10095         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10096         (all): Add stamp-guile dependency.
10097         (stamp-guile): New rule.
10098         (clean-guile, install-guile, uninstall-guile): New rules.
10099         (install-only): Add install-guile dependency.
10100         (uninstall): Add uninstall-guile dependency.
10101         (clean): Add clean-guile dependency.
10102
10103 2014-02-09  Doug Evans  <xdje42@gmail.com>
10104
10105         Revert this patch (which I approved, mea culpa).
10106
10107         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
10108
10109         * Makefile.in (all-lib): Remove.
10110         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10111
10112 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
10113
10114         Fix Python stack corruption.
10115         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10116         gdb_py_longest.
10117
10118 2014-02-08  Mark Kettenis  <kettenis@gnu.org>
10119
10120         * Makefile.in (all-lib): Remove.
10121         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10122
10123 2014-02-07  Doug Evans  <dje@google.com>
10124
10125         * extension-priv.h (extension_language_script_ops): Add comment.
10126         (extension_language_ops): Add comment.
10127         (active_ext_lang_state): Fix typo in comment.
10128
10129 2014-02-07  Pedro Alves  <palves@redhat.com>
10130
10131         PR breakpoints/16292
10132         * infrun.c (handle_signal_stop) <signal arrives while stepping
10133         over a breakpoint>: Switch back to the stepping thread.
10134
10135 2014-02-07  Yao Qi  <yao@codesourcery.com>
10136
10137         * target.c (target_xfer_partial): Return zero if LEN is zero.
10138
10139 2014-02-07  Yao Qi  <yao@codesourcery.com>
10140
10141         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10142         (ld_so_xfer_auxv): Likewise.
10143         * bfd-target.c (target_bfd_xfer_partial): Likewise.
10144         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10145         * corelow.c (core_xfer_partial): Likewise.
10146         * ctf.c (ctf_xfer_partial): Likewise.
10147         * darwin-nat.c (darwin_read_dyld_info): Likewise.
10148         (darwin_xfer_partial): Likewise.
10149         * exec.c (exec_xfer_partial): Likewise.
10150         * gnu-nat.c (gnu_xfer_partial): Likewise.
10151         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10152         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10153         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10154         * linux-nat.c (linux_xfer_siginfo): Likewise.
10155         (linux_proc_xfer_spu): Likewise.
10156         * procfs.c (procfs_xfer_partial): Likewise.
10157         * record-full.c (record_full_xfer_partial): Likewise.
10158         (record_full_core_xfer_partial): Likewise.
10159         * remote-sim.c (gdbsim_xfer_partial): Likewise.
10160         * remote.c (remote_write_qxfer): Likewise.
10161         (remote_write_qxfer, remote_read_qxfer): Likewise.
10162         (remote_xfer_partial): Likewise.
10163         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10164         (rs6000_xfer_shared_libraries): Likewise.
10165         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10166         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10167         (spu_xfer_partial): Likewise.
10168         * target.c (memory_xfer_partial_1): Likewise.
10169         * tracepoint.c (tfile_xfer_partial): Likewise.
10170         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10171         (windows_xfer_partial): Likewise.
10172
10173 2014-02-07  Yao Qi  <yao@codesourcery.com>
10174
10175         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
10176         comments.
10177         (core_xfer_shared_libraries_aix): Likewise.
10178         * gdbarch.c, gdbarch.h: Regenerated.
10179         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10180         ULONGEST.  Change 'len_avail' type to ULONGEST.
10181         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10182         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10183         declaration.
10184         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10185
10186 2014-02-07  Yao Qi  <yao@codesourcery.com>
10187
10188         * corefile.c (memory_error): Get 'exception' from ERR and pass
10189         'exception' to throw_error.
10190
10191 2014-02-06  Doug Evans  <xdje42@gmail.com>
10192
10193         * configure.ac (libpython checking): Remove all but python.o from
10194         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
10195         * configure: Regenerate.
10196
10197         * Makefile.in (SFILES): Add extension.c.
10198         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10199         (COMMON_OBS): Add extension.o.
10200         * extension.h: New file.
10201         * extension-priv.h: New file.
10202         * extension.c: New file.
10203
10204         * python/python-internal.h: #include "extension.h".
10205         (gdbpy_auto_load_enabled): Declare.
10206         (gdbpy_apply_val_pretty_printer): Declare.
10207         (gdbpy_apply_frame_filter): Declare.
10208         (gdbpy_preserve_values): Declare.
10209         (gdbpy_breakpoint_cond_says_stop): Declare.
10210         (gdbpy_breakpoint_has_cond): Declare.
10211         (void source_python_script_for_objfile): Delete.
10212         * python/python.c: #include "extension-priv.h".
10213         Delete inclusion of "observer.h".
10214         (extension_language_python): Moved here and renamed from
10215         script_language_python in py-auto-load.c.
10216         Redefined to be of type extension_language_defn.
10217         (python_extension_script_ops): New global.
10218         (python_extension_ops): New global.
10219         (struct python_env): New member previous_active.
10220         (restore_python_env): Call restore_active_ext_lang.
10221         (ensure_python_env): Call set_active_ext_lang.
10222         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10223         New arg extlang.
10224         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10225         New arg extlang.
10226         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10227         New arg extlang.
10228         (gdbpy_eval_from_control_command): Renamed from
10229         eval_python_from_control_command, made static.  New arg extlang.
10230         (gdbpy_source_script) Renamed from source_python_script, made static.
10231         New arg extlang.
10232         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
10233         result to int.  New arg extlang.
10234         (gdbpy_source_objfile_script): Renamed from
10235         source_python_script_for_objfile, made static.  New arg extlang.
10236         (gdbpy_start_type_printers): Renamed from start_type_printers, made
10237         static.  New args extlang, extlang_printers.  Change result type to
10238         "void".
10239         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10240         static.  New arg extlang.  Rename arg printers to extlang_printers
10241         and change type to ext_lang_type_printers *.
10242         (gdbpy_free_type_printers): Renamed from free_type_printers, made
10243         static.  Replace argument arg with extlang, extlang_printers.
10244         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10245         (!HAVE_PYTHON, source_python_script): Delete.
10246         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10247         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10248         (!HAVE_PYTHON, start_type_printers): Delete.
10249         (!HAVE_PYTHON, apply_type_printers): Delete.
10250         (!HAVE_PYTHON, free_type_printers): Delete.
10251         (_initialize_python): Delete call to observer_attach_before_prompt.
10252         (finalize_python): Set/restore active extension language.
10253         (gdbpy_finish_initialization) Renamed from
10254         finish_python_initialization, made static.  New arg extlang.
10255         (gdbpy_initialized): New function.
10256         * python/python.h: #include "extension.h".  Delete #include
10257         "value.h", "mi/mi-cmds.h".
10258         (extension_language_python): Declare.
10259         (GDBPY_AUTO_FILE_NAME): Delete.
10260         (enum py_bt_status): Moved to extension.h and renamed to
10261         ext_lang_bt_status.
10262         (enum frame_filter_flags): Moved to extension.h.
10263         (enum py_frame_args): Moved to extension.h and renamed to
10264         ext_lang_frame_args.
10265         (finish_python_initialization): Delete.
10266         (eval_python_from_control_command): Delete.
10267         (source_python_script): Delete.
10268         (apply_val_pretty_printer): Delete.
10269         (apply_frame_filter): Delete.
10270         (preserve_python_values): Delete.
10271         (gdbpy_script_language_defn): Delete.
10272         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10273         (start_type_printers, apply_type_printers, free_type_printers): Delete.
10274
10275         * auto-load.c: #include "extension.h".
10276         (GDB_AUTO_FILE_NAME): Delete.
10277         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
10278         (script_language_gdb): Delete, moved to extension.c and renamed to
10279         extension_language_gdb.
10280         (source_gdb_script_for_objfile): Delete.
10281         (auto_load_pspace_info): New member unsupported_script_warning_printed.
10282         (loaded_script): Change type of language member to
10283         struct extension_language_defn *.
10284         (init_loaded_scripts_info): Initialize
10285         unsupported_script_warning_printed.
10286         (maybe_add_script): Make static.  Change type of language arg to
10287         struct extension_language_defn *.
10288         (clear_section_scripts): Reset unsupported_script_warning_printed.
10289         (auto_load_objfile_script_1): Rewrite to use extension language API.
10290         (auto_load_objfile_script): Make public.  Remove support-compiled-in
10291         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10292         (source_section_scripts): Rewrite to use extension language API.
10293         (load_auto_scripts_for_objfile): Rewrite to use
10294         auto_load_scripts_for_objfile.
10295         (collect_matching_scripts_data): Change type of language member to
10296         struct extension_language_defn *.
10297         (auto_load_info_scripts): Change type of language arg to
10298         struct extension_language_defn *.
10299         (unsupported_script_warning_print): New function.
10300         (script_not_found_warning_print): Make static.
10301         (_initialize_auto_load): Rewrite construction of scripts-directory
10302         help.
10303         * auto-load.h (struct objfile): Add forward decl.
10304         (struct script_language): Delete.
10305         (struct auto_load_pspace_info): Add forward decl.
10306         (struct extension_language_defn): Add forward decl.
10307         (maybe_add_script): Delete.
10308         (auto_load_objfile_script): Declare.
10309         (script_not_found_warning_print): Delete.
10310         (auto_load_info_scripts): Update prototype.
10311         (auto_load_gdb_scripts_enabled): Declare.
10312         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10313         auto_load_python_scripts_enabled and made public.
10314         (script_language_python): Delete, moved to python.c.
10315         (gdbpy_script_language_defn): Delete.
10316         (info_auto_load_python_scripts): Update to use
10317         extension_language_python.
10318
10319         * breakpoint.c (condition_command): Replace call to
10320         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10321         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10322         with call to breakpoint_ext_lang_cond_says_stop.
10323         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10324         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
10325         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10326         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10327         New arg slang.
10328         (local_setattro): Print name of extension language with existing
10329         stop condition.
10330
10331         * valprint.c (val_print, value_print): Update to call
10332         apply_ext_lang_val_pretty_printer.
10333         * cp-valprint.c (cp_print_value): Update call to
10334         apply_ext_lang_val_pretty_printer.
10335         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10336         (gdbpy_apply_val_pretty_printer): Renamed from
10337         apply_val_pretty_printer.  New arg extlang.
10338         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10339
10340         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10341         extension language API.
10342         * cli/cli-script.c (execute_control_command): Update to call
10343         eval_ext_lang_from_control_command.
10344
10345         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10346         enum ext_lang_bt_status values.  Update call to
10347         apply_ext_lang_frame_filter.
10348         (mi_cmd_stack_list_locals): Ditto.
10349         (mi_cmd_stack_list_args): Ditto.
10350         (mi_cmd_stack_list_variables): Ditto.
10351         * mi/mi-main.c: Delete #include "python/python-internal.h".
10352         Add #include "extension.h".
10353         (mi_cmd_list_features): Replace reference to python internal variable
10354         gdb_python_initialized with call to ext_lang_initialized_p.
10355
10356         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10357         Update to use enum ext_lang_frame_args.  Update to call
10358         apply_ext_lang_frame_filter.
10359         * python/py-framefilter.c (extract_sym): Update to use enum
10360         ext_lang_bt_status.
10361         (extract_value, py_print_type, py_print_value): Ditto.
10362         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10363         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10364         (py_print_frame): Ditto.
10365         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10366         New arg extlang.  Update to use enum ext_lang_bt_status.
10367
10368         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10369         finish_python_initialization.  Replace with call to
10370         finish_ext_lang_initialization.
10371
10372         * typeprint.c (do_free_global_table): Update to call
10373         free_ext_lang_type_printers.
10374         (create_global_typedef_table): Update to call
10375         start_ext_lang_type_printers.
10376         (find_global_typedef): Update to call apply_ext_lang_type_printers.
10377         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10378         (type_print_options): Change type of global_printers from "void *"
10379         to "struct ext_lang_type_printers *".
10380
10381         * value.c (preserve_values): Update to call preserve_ext_lang_values.
10382         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10383         (gdbpy_preserve_values): Renamed from preserve_python_values.
10384         New arg extlang.
10385         (!HAVE_PYTHON, preserve_python_values): Delete.
10386
10387         * utils.c (quit_flag): Delete, moved to extension.c.
10388         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10389         extension.c.
10390
10391         * eval.c: Delete #include "python/python.h".
10392         * main.c: Delete #include "python/python.h".
10393
10394         * defs.h: Update comment.
10395
10396 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
10397
10398         GDB 7.7 released.
10399
10400 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
10401
10402         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10403         defined.
10404
10405 2014-02-05  Yao Qi  <yao@codesourcery.com>
10406
10407         * remote.c (remote_pass_signals): Remove local 'buf' and use
10408         rs->buf.
10409         (remote_program_signals): Likewise.
10410
10411 2014-02-05  Yao Qi  <yao@codesourcery.com>
10412
10413         * ctf.c: Include "inferior.h" and "gdbthread.h".
10414         (CTF_PID): A new macro.
10415         (ctf_open): Call inferior_appeared and add_thread_silent.
10416         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10417         (ctf_thread_alive): New function.
10418         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10419
10420 2014-02-05  Yao Qi  <yao@codesourcery.com>
10421
10422         Revert this patch:
10423
10424         2013-05-24  Yao Qi  <yao@codesourcery.com>
10425
10426         * tracepoint.c (TFILE_PID): Remove.
10427         (tfile_open): Don't add thread and inferior.
10428         (tfile_close): Don't set 'inferior_ptid'.  Don't call
10429         exit_inferior_silent.
10430         (tfile_thread_alive): Remove.
10431         (init_tfile_ops): Don't set field 'to_thread_alive' of
10432         tfile_ops.
10433
10434 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
10435
10436         * remote.c (remote_start_remote): Call remote_check_symbols even
10437         if only symbol-file (not file) has been given.
10438
10439 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10440
10441         * gdbarch.sh (skip_entrypoint): New callback.
10442         * gdbarch.c, gdbarch.h: Regenerate.
10443         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10444         * infrun.c (fill_in_stop_func): Likewise.
10445         * ppc-linux-tdep.c: Include "elf/ppc64.h".
10446         (ppc_elfv2_elf_make_msymbol_special): New function.
10447         (ppc_elfv2_skip_entrypoint): Likewise.
10448         (ppc_linux_init_abi): Install them for ELFv2.
10449
10450 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10451
10452         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10453         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10454         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10455         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
10456         structures returned in GPRs.
10457
10458 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10459
10460         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10461         offset to the stack parameter list for the ELFv2 ABI.
10462
10463 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10464
10465         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10466         set_gdbarch_convert_from_func_ptr_addr and
10467         set_gdbarch_elf_make_msymbol_special for ELFv1.
10468         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10469         function descriptors on ELFv1.
10470         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
10471         set up r12 at function entry.
10472
10473 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10474
10475         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10476         (struct gdbarch_tdep): New member elf_abi.
10477
10478         * rs6000-tdep.c: Include "elf/ppc64.h".
10479         (rs6000_gdbarch_init): Detect ELF ABI version.
10480
10481 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10482
10483         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10484         within a register pair holding a DFP 128-bit value on little-endian.
10485         (ppc64_sysv_abi_return_value_base): Likewise.
10486         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10487         (dfp_pseudo_register_write): Likewise.
10488
10489 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10490
10491         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10492         offset on little-endian when passing _Decimal32.
10493         (ppc64_sysv_abi_return_value_base): Likewise for return values.
10494
10495 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10496
10497         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10498         of the overlapped FP register within the VSX register on little-
10499         endian platforms.
10500         (efpr_pseudo_register_write): Likewise.
10501
10502 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10503
10504         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10505         offset on little-endian when passing small structures.
10506
10507 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10508
10509         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10510         (struct ppc64_sysv_argpos): New data structure.
10511         (ppc64_sysv_abi_push_float): Remove.
10512         (ppc64_sysv_abi_push_val): New function.
10513         (ppc64_sysv_abi_push_integer): Likewise.
10514         (ppc64_sysv_abi_push_freg): Likewise.
10515         (ppc64_sysv_abi_push_vreg): Likewise.
10516         (ppc64_sysv_abi_push_param): Likewise.
10517         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10518         (ppc64_sysv_abi_return_value_base): New function.
10519         (ppc64_sysv_abi_return_value): Refactor to use it.
10520
10521 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10522
10523         * NEWS: Document new target powerpc64le-*-linux*.
10524
10525 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
10526
10527         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10528         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10529         core dumps.
10530         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10531         register set used in ELF core dumps.  Add floating-point register set.
10532
10533 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
10534
10535         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
10536         dwarf2_to_gdb[] table using symbolic constants.  Adjust
10537         penultimate entry from number representing the PC register
10538         to symbolic constant representing the MDR register.  Add
10539         constant for the PC register to the end of the table.
10540
10541 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
10542
10543         * bsd-kvm.c: Include <sys/param.h>
10544
10545 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
10546
10547         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10548
10549 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
10550
10551         * ada-lang.h (clear_ada_sym_cache): Delete.
10552
10553 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
10554
10555         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10556
10557 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
10558
10559         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10560           the sigreturn register save area only if the syscall is
10561           sigreturn.
10562
10563 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
10564
10565         * valops.c (value_slice): Minor reformatting.
10566
10567 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
10568
10569         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10570
10571 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
10572
10573         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10574         New static globals.
10575         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10576         (ada_ignore_descriptive_types_p): New static global.
10577         (find_parallel_type_by_descriptive_type): Return immediately
10578         if ada_ignore_descriptive_types_p is set.
10579         (_initialize_ada_language): Register new commands "maintenance
10580         set ada", "maintenance show ada", "maintenance set ada
10581         ignore-descriptive-types" and "maintenance show ada
10582         ignore-descriptive-types".
10583         * NEWS: Add entry for new "maint ada set/show
10584         ignore-descriptive-types" commands.
10585
10586 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
10587
10588         * record-btrace.c (record_btrace_close): Call btrace_teardown
10589         for all threads.
10590
10591 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
10592
10593         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10594         "ui-out.h".
10595
10596 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
10597
10598         * ada-typeprint (type_is_full_subrange_of_target_type):
10599         New function.
10600         (print_range): Add parameter bounds_prefered_p.  If not set,
10601         try printing range types using the name of their base type.
10602         (print_range_type): Add parameter bounds_prefered_p.
10603         Use it in call to print_range.
10604         (print_array_type, ada_print_type): Update calls to print_range
10605         and print_range_type.
10606
10607 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
10608
10609         * ada-typeprint.c (print_array_type, print_choices, print_range)
10610         (print_range_bound, print_dynamic_range_bound, print_range_type):
10611         Remove declaration.
10612
10613 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
10614
10615         * ada-typeprint.c (print_range): Add missing empty line
10616         after local declaration.
10617
10618 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
10619
10620         * ada-valprint.c (print_optional_low_bound): Get index_type's
10621         target type for as long as it is a TYPE_CODE_RANGE.
10622
10623 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
10624
10625         * procfs.c (procfs_make_note_section): Remove assertion and
10626         associated comment.
10627
10628 2014-01-24  Yao Qi  <yao@codesourcery.com>
10629
10630         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10631         * corelow.c (get_core_siginfo): Likewise.
10632
10633 2014-01-24  Yao Qi  <yao@codesourcery.com>
10634
10635         * remote.c (remote_write_bytes_aux): Change type of 'len' to
10636         ULONGEST.  Don't check 'len' is negative.
10637         (remote_write_bytes):  Change type of 'len' to ULONGEST.
10638
10639 2014-01-23  Tom Tromey  <tromey@redhat.com>
10640
10641         PR python/16485:
10642         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10643         Handle exception from frame.block.
10644         (FrameVars.fetch_frame_locals): Likewise.
10645
10646 2014-01-23  Tom Tromey  <tromey@redhat.com>
10647
10648         PR python/16487:
10649         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10650         on a NULL pointer.  Move "goto error" to correct place.
10651
10652 2014-01-23  Tom Tromey  <tromey@redhat.com>
10653
10654         PR python/16491:
10655         * python/py-framefilter.c (apply_frame_filter): Call
10656         ensure_python_env after computing gdbarch.
10657
10658 2014-01-23  Yao Qi  <yao@codesourcery.com>
10659
10660         * target.c (raw_memory_xfer_partial): Change argument type
10661         from void * to gdb_byte *.
10662         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10663
10664 2014-01-22  Doug Evans  <dje@google.com>
10665
10666         New gdbserver option --debug-format=timestamp.
10667         * NEWS: Mention it.
10668
10669 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
10670
10671         * syscalls/s390x-linux.xml: New file.
10672         * syscalls/s390-linux.xml: New file.
10673         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10674         (XML_SYSCALL_FILENAME_S390X): Likewise.
10675         (op_svc): New enum value for SVC opcode.
10676         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10677         (s390_linux_get_syscall_number): New function.
10678         (s390_gdbarch_init): Register '*get_syscall_number' and the
10679         syscall xml file name.
10680         * data-directory/Makefile.in (SYSCALLS_FILES): Add
10681         "s390-linux.xml" and "s390x-linux.xml".
10682         * NEWS: Announce new feature.
10683
10684 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
10685
10686         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10687
10688 2014-01-22  Pedro Alves  <palves@redhat.com>
10689
10690         * xtensa-config.c: Include defs.h.
10691
10692 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
10693
10694         * common/common-utils.h: Add "ARI:" comment beside __func__
10695         reference.
10696
10697 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
10698
10699         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10700         documentation a bit.
10701
10702 2014-01-21  Roland McGrath  <mcgrathr@google.com>
10703
10704         * configure.ac: Call AM_PROG_INSTALL_STRIP.
10705         * configure: Regenerate.
10706         * aclocal.m4: Regenerate.
10707         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10708         New substituted variables.
10709         (install-strip): New target.
10710         (INSTALL_SCRIPT): New substituted variable.
10711         (FLAGS_TO_PASS): Add it.
10712         (install-only): Use $(INSTALL_SCRIPT) rather than
10713         $(INSTALL_PROGRAM) for gcore.
10714
10715 2014-01-20  Tom Tromey  <tromey@redhat.com>
10716
10717         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10718         together.
10719
10720 2014-01-20  Tom Tromey  <tromey@redhat.com>
10721
10722         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10723         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10724         (deprecated_cmd_warning, complete_on_cmdlist): Update.
10725         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10726         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10727         (struct cmd_list_element) <flags>: Remove.
10728         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10729         doc_allocated>: New fields.
10730         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10731         bitfields.
10732         * maint.c (maintenance_do_deprecate): Update.
10733         * top.c (execute_command): Update.
10734
10735 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
10736
10737         * xtensa-linux-nat.c: Include asm/ptrace.h.
10738
10739 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
10740
10741         * Makefile.in (SFILES): Add d-support.c.
10742         (COMMON_OBS): Add d-support.o.
10743         * d-lang.h (d_parse_symbol): Add comment, now defined in
10744         d-support.c.
10745         * d-lang.c (parse_call_convention)
10746         (parse_attributes, parse_function_types)
10747         (parse_function_args, parse_type, parse_identifier)
10748         (call_convention_p, d_parse_symbol): Move functions to ...
10749         * d-support.c: ... New file.
10750
10751 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
10752
10753         * d-lang.h (d_parse_symbol): Add declaration.
10754         * d-lang.c (extract_identifiers)
10755         (extract_type_info): Remove functions.
10756         (parse_call_convention, parse_attributes)
10757         (parse_function_types, parse_function_args)
10758         (parse_type, parse_identifier, call_convention_p)
10759         (d_parse_symbol): New functions.
10760         (d_demangle): Use d_parse_symbol to demangle D symbols.
10761
10762 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
10763
10764         * d-lang.h (struct builtin_d_type): New data type.
10765         (builtin_d_type): Add declaration.
10766         * d-lang.c (d_language_arch_info, build_d_types)
10767         (builtin_d_type): New functions.
10768         (enum d_primitive_types): New data type.
10769         (d_language_defn): Change c_language_arch_info to
10770         d_language_arch_info.
10771         (d_type_data): New static variable.
10772         (_initialize_d_language): Initialize d_type_data.
10773
10774 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
10775
10776         * d-lang.h (d_main_name): Add declaration.
10777         * d-lang.c (d_main_name): New function.
10778         * symtab.c (find_main_name): Add call to d_main_name.
10779
10780 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
10781
10782         * d-lang.c (d_language_defn): Change macro_expansion_c to
10783         macro_expansion_no.
10784
10785 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
10786
10787         * MAINTAINERS: Add myself as a write-after-approval maintainer.
10788
10789 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
10790
10791         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
10792         gdb_exception" declaration.
10793         * remote.c (getpkt_or_notif_sane): Likewise.
10794
10795 2014-01-17  Doug Evans  <dje@google.com>
10796
10797         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
10798         function, contents of dirnames_to_char_ptr_vec_append moved here.
10799         (delim_string_to_char_ptr_vec): New function.
10800         (dirnames_to_char_ptr_vec_append): Rewrite.
10801         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
10802
10803 2014-01-17  Doug Evans  <dje@google.com>
10804
10805         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
10806         and moved here ...
10807         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
10808         #include "common-utils.h".
10809         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
10810         * common/vec.h (VEC_ASSERT_PASS): Update.
10811         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
10812         (MACH_CHECK_ERROR): Update.
10813
10814 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
10815
10816         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
10817         comments.
10818         * gdbarch.h: Regenerate.
10819
10820 2014-01-16  Tom Tromey  <tromey@redhat.com>
10821
10822         * value.c (struct value) <regnum>: Move earlier.
10823
10824 2014-01-16  Tom Tromey  <tromey@redhat.com>
10825
10826         * remote.c (extended_remote_create_inferior): Rename from
10827         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
10828         old implementation.
10829
10830 2014-01-16  Pedro Alves  <palves@redhat.com>
10831
10832         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
10833         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
10834         the backchain.
10835
10836 2014-01-16  Doug Evans  <dje@google.com>
10837
10838         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
10839
10840 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
10841
10842         * btrace.h (btrace_thread_flag): New.
10843         (struct btrace_thread_info) <flags>: New.
10844         * record-btrace.c (record_btrace_resume_thread)
10845         (record_btrace_find_thread_to_move, btrace_step_no_history)
10846         (btrace_step_stopped, record_btrace_start_replaying)
10847         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
10848         (record_btrace_find_resume_thread): New.
10849         (record_btrace_resume, record_btrace_wait): Extend.
10850         (record_btrace_can_execute_reverse): New.
10851         (record_btrace_open): Fail in non-stop mode.
10852         (record_btrace_set_replay): Split into this, ...
10853         (record_btrace_stop_replaying): ... this, ...
10854         (record_btrace_clear_histories): ... and this.
10855         (init_record_btrace_ops): Init to_can_execute_reverse.
10856         * NEWS: Announce it.
10857
10858 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
10859
10860         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
10861         (forward_target_decr_pc_after_break)
10862         (target_decr_pc_after_break): New.
10863         * target.c (forward_target_decr_pc_after_break)
10864         (target_decr_pc_after_break): New.
10865         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
10866         instead of gdbarch_decr_pc_after_break.
10867         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10868         instead of gdbarch_decr_pc_after_break.
10869         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
10870         instead of gdbarch_decr_pc_after_break.
10871         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10872         instead of gdbarch_decr_pc_after_break.
10873         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
10874         instead of gdbarch_decr_pc_after_break.
10875         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
10876         instead of gdbarch_decr_pc_after_break.
10877
10878 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
10879
10880         * btrace.c: Include regcache.h.
10881         (btrace_add_pc): New.
10882         (btrace_enable): Call btrace_add_pc.
10883         (btrace_is_empty): New.
10884         * btrace.h (btrace_is_empty): New.
10885         * record-btrace.c (require_btrace, record_btrace_info): Call
10886         btrace_is_empty.
10887
10888 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
10889
10890         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
10891         Support delta reads.
10892         (linux_disable_btrace): Change return type.
10893         * common/linux-btrace.h (linux_read_btrace): Change parameters
10894         and return type to allow error reporting.  Update users.
10895         (linux_disable_btrace): Change return type.  Update users.
10896         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
10897         New.
10898         (btrace_error): New.
10899         (btrace_block) <begin>: Comment on BEGIN == 0.
10900         * btrace.c (btrace_compute_ftrace): Start from the end of
10901         the current trace.
10902         (btrace_stitch_trace, btrace_clear_history): New.
10903         (btrace_fetch): Read delta trace, return if replaying.
10904         (btrace_clear): Move clear history code to btrace_clear_history.
10905         (parse_xml_btrace): Throw an error if parsing failed.
10906         * target.h (struct target_ops) <to_read_btrace>: Change parameters
10907         and return type to allow error reporting.
10908         (target_read_btrace): Change parameters and return type to allow
10909         error reporting.
10910         * target.c (target_read_btrace): Update.
10911         * remote.c (remote_read_btrace): Support delta reads.  Pass
10912         errors on.
10913         * NEWS: Announce it.
10914
10915 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
10916
10917         * record.h (record_btrace_frame_unwind)
10918         (record_btrace_tailcall_frame_unwind): New declarations.
10919         * dwarf2-frame: Include record.h
10920         (dwarf2_frame_cfa): Throw an error for btrace frames.
10921         * record-btrace.c: Include hashtab.h.
10922         (btrace_get_bfun_name): New.
10923         (btrace_call_history): Call btrace_get_bfun_name.
10924         (struct btrace_frame_cache): New.
10925         (bfcache): New.
10926         (bfcache_hash, bfcache_eq, bfcache_new): New.
10927         (btrace_get_frame_function): New.
10928         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
10929         (record_btrace_frame_this_id): Compute own id.
10930         (record_btrace_frame_prev_register): Provide PC, throw_error
10931         for all other registers.
10932         (record_btrace_frame_sniffer): Detect btrace frames.
10933         (record_btrace_tailcall_frame_sniffer): New.
10934         (record_btrace_frame_dealloc_cache): New.
10935         (record_btrace_frame_unwind): Add new functions.
10936         (record_btrace_tailcall_frame_unwind): New.
10937         (_initialize_record_btrace): Allocate cache.
10938         * btrace.c (btrace_clear): Call reinit_frame_cache.
10939         * NEWS: Announce it.
10940
10941 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
10942
10943         * record-btrace.c (record_btrace_set_replay)
10944         (record_btrace_goto_begin, record_btrace_goto_end)
10945         (record_btrace_goto): New.
10946         (init_record_btrace_ops): Initialize them.
10947         * NEWS: Announce it.
10948
10949 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
10950
10951         * record-btrace.c (record_btrace_find_new_threads)
10952         (record_btrace_thread_alive): New.
10953         (init_record_btrace_ops): Initialize to_find_new_threads and
10954         to_thread_alive.
10955
10956 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
10957
10958         * record-btrace.c (record_btrace_resume): New.
10959         (record_btrace_wait): New.
10960         (init_record_btrace_ops): Initialize to_wait and to_resume.
10961
10962 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
10963
10964         * record-btrace.c (record_btrace_xfer_partial)
10965         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
10966         (record_btrace_allow_memory_access): New.
10967         (init_record_btrace_ops): Initialize new methods.
10968         * target.c (raw_memory_xfer_partial): Bail out if target reports
10969         that this memory is not available.
10970
10971 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
10972
10973         * target.h (target_ops) <to_insert_breakpoint>
10974         <to_remove_breakpoint>: Add target_ops parameter.
10975         (forward_target_insert_breakpoint): New.
10976         (forward_target_remove_breakpoint): New.
10977         (memory_remove_breakpoint, memory_insert_breakpoint):
10978         Add target_ops parameter.
10979         * target.c (target_insert_breakpoint): Split into this and ...
10980         (forward_target_insert_breakpoint): ... this.
10981         (target_remove_breakpoint): Split into this and ...
10982         (forward_target_remove_breakpoint): ... this.
10983         (debug_to_insert_breakpoint): Add target_ops parameter.
10984         Call forward_target_insert_breakpoint.
10985         (debug_to_remove_breakpoint): Add target_ops parameter.
10986         Call forward_target_remove_breakpoint.
10987         (update_current_target): Do not inherit or default to_insert_breakpoint
10988         and to_remove_breakpoint.
10989         * corelow.c (ignore): Add target_ops parameter.
10990         * exec.c (ignore): Add target_ops parameter.
10991         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
10992         Add target_ops parameter.
10993         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
10994         Add target_ops parameter.
10995         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
10996         Add target_ops parameter.
10997         * record-full.c (record_full_beneath_to_insert_breakpoint)
10998         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
10999         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11000         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11001         (record_full_core_remove_breakpoint): Add target_ops parameter.
11002         Update users.
11003         (record_full_beneath_to_insert_breakpoint_ops)
11004         (record_full_beneath_to_remove_breakpoint_ops)
11005         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11006         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11007         tmp_to_remove_breakpoint_ops,
11008         record_full_beneath_to_insert_breakpoint_ops, and
11009         record_full_beneath_to_remove_breakpoint_ops.
11010         * remote-m32r-sdi.c (m32r_insert_breakpoint)
11011         (m32r_remove_breakpoint): Add target_ops parameter.
11012         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11013         Add target_ops parameter.
11014         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11015         Add target_ops parameter.
11016
11017 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11018             Markus Metzger  <markus.t.metzger@intel.com>
11019
11020         * record-btrace.c: Include frame-unwind.h.
11021         (record_btrace_frame_unwind_stop_reason)
11022         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11023         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11024         New.
11025         (init_record_btrace_ops): Install it.
11026
11027 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11028
11029         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11030         get_prev_frame_1.
11031
11032 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11033
11034         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11035         earlier.
11036
11037 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11038
11039         * frame-unwind.c: Include target.h.
11040         (frame_unwind_try_unwinder): New function with code from ...
11041         (frame_unwind_find_by_frame): ... here.  New variable
11042         unwinder_from_target, call also target_get_unwinder)
11043         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11044         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11045         * target.h (struct target_ops): New fields to_get_unwinder and
11046         to_get_tailcall_unwinder.
11047         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11048
11049 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11050
11051         * record-btrace.c (record_btrace_fetch_registers)
11052         (record_btrace_store_registers)
11053         (record_btrace_to_prepare_to_store): New.
11054         (init_record_btrace_ops): Add the above.
11055
11056 2014-01-16  Tom Tromey  <tromey@redhat.com>
11057
11058         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11059         * target.h (struct target_ops) <to_prepare_to_store>: Add
11060         argument.
11061         (target_prepare_to_store): Add argument.
11062         * target.c (debug_to_prepare_to_store): Add argument.
11063         (update_current_target): Update.
11064         * remote.c (remote_prepare_to_store): Add 'self' argument.
11065         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11066         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11067         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11068         * record-full.c (record_full_core_prepare_to_store): Add 'self'
11069         argument.
11070         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11071         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11072         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11073         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11074         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11075
11076 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11077
11078         * btrace.h (replay) <replay>: New.
11079         (btrace_is_replaying): New.
11080         * btrace.c (btrace_clear): Free replay iterator.
11081         (btrace_is_replaying): New.
11082         * record-btrace.c (record_btrace_is_replaying): New.
11083         (record_btrace_info): Print insn number if replaying.
11084         (record_btrace_insn_history): Start at replay position.
11085         (record_btrace_call_history): Start at replay position.
11086         (init_record_btrace_ops): Init to_record_is_replaying.
11087
11088 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11089
11090         * record-btrace.c (record_btrace_insn_history_range): Include
11091         end.
11092         (record_btrace_insn_history_from): Adjust range.
11093         (record_btrace_call_history_range): Include
11094         end.
11095         (record_btrace_call_history_from): Adjust range.
11096         * NEWS: Announce changes.
11097
11098 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11099
11100         * record.h (enum record_print_flag)
11101         <record_print_indent_calls>: New.
11102         * record.c (get_call_history_modifiers): Recognize /c modifier.
11103         (_initialize_record): Document /c modifier.
11104         * record-btrace.c (btrace_call_history): Add btinfo parameter.
11105         Reorder fields.  Optionally indent the function name.  Update
11106         all users.
11107         * NEWS: Announce changes.
11108
11109 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11110
11111         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11112
11113 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11114
11115         * btrace.c (ftrace_new_function): Start counting at one.
11116         * record-btrace.c (record_btrace_info): Adjust number of calls
11117         and insns.
11118         * NEWS: Announce it.
11119
11120 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11121
11122         * record-btrace.c (btrace_call_history_insn_range): Print
11123         insn range as [begin, end].
11124
11125 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11126
11127         * btrace.h (struct btrace_func_link): New.
11128         (enum btrace_function_flag): New.
11129         (struct btrace_inst): Rename to ...
11130         (struct btrace_insn): ...this. Update all users.
11131         (struct btrace_func) <ibegin, iend>: Remove.
11132         (struct btrace_func_link): New.
11133         (struct btrace_func): Rename to ...
11134         (struct btrace_function): ...this. Update all users.
11135         (struct btrace_function) <segment, flow, up, insn, insn_offset)
11136         (number, level, flags>: New.
11137         (struct btrace_insn_iterator): Rename to ...
11138         (struct btrace_insn_history): ...this.
11139         Update all users.
11140         (struct btrace_insn_iterator, btrace_call_iterator): New.
11141         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11142         (struct btrace_target_info) <begin, end, level>
11143         <insn_history, call_history>: New.
11144         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11145         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11146         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11147         (btrace_call_number, btrace_call_begin, btrace_call_end)
11148         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11149         (btrace_find_function_by_number, btrace_set_insn_history)
11150         (btrace_set_call_history): New.
11151         * btrace.c (btrace_init_insn_iterator)
11152         (btrace_init_func_iterator, compute_itrace): Remove.
11153         (ftrace_print_function_name, ftrace_print_filename)
11154         (ftrace_skip_file): Change
11155         parameter to const.
11156         (ftrace_init_func): Remove.
11157         (ftrace_debug): Use new btrace_function fields.
11158         (ftrace_function_switched): Also consider gaining and
11159         losing symbol information).
11160         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11161         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11162         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11163         New.
11164         (ftrace_new_function): Move. Remove debug print.
11165         (ftrace_update_lines, ftrace_update_insns): New.
11166         (ftrace_update_function): Check for call, ret, and jump.
11167         (compute_ftrace): Renamed to ...
11168         (btrace_compute_ftrace): ...this. Rewritten to compute call
11169         stack.
11170         (btrace_fetch, btrace_clear): Updated.
11171         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11172         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11173         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11174         (btrace_call_number, btrace_call_begin, btrace_call_end)
11175         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11176         (btrace_find_function_by_number, btrace_set_insn_history)
11177         (btrace_set_call_history): New.
11178         * record-btrace.c (require_btrace): Use new btrace thread
11179         info fields.
11180         (record_btrace_info, btrace_insn_history)
11181         (record_btrace_insn_history, record_btrace_insn_history_range):
11182         Use new btrace thread info fields and new iterator.
11183         (btrace_func_history_src_line): Rename to ...
11184         (btrace_call_history_src_line): ...this. Use new btrace
11185         thread info fields.
11186         (btrace_func_history): Rename to ...
11187         (btrace_call_history): ...this. Use new btrace thread info
11188         fields and new iterator.
11189         (record_btrace_call_history, record_btrace_call_history_range):
11190         Use new btrace thread info fields and new iterator.
11191
11192 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11193
11194         * frame.h (frame_id_build_unavailable_stack_special): New.
11195         * frame.c (frame_id_build_unavailable_stack_special): New.
11196
11197 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11198
11199         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11200         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11201         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11202         to gdbarch.
11203         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11204         (i386_insn_is_jump, i386_jmp_p): New.
11205         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11206         insn_is_jump to gdbarch.
11207         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11208         * gdbarch.h: Regenerated.
11209         * gdbarch.c: Regenerated.
11210         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11211         (default_insn_is_jump): New.
11212         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11213         (default_insn_is_jump): New.
11214
11215 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11216
11217         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11218         Change to ...
11219         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
11220         (btrace_read_type) <btrace_read_new>: Change to ...
11221         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
11222
11223 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11224
11225         * common/linux-btrace.c (linux_read_btrace): Free trace from
11226         previous iteration.
11227
11228 2014-01-15  Doug Evans  <dje@google.com>
11229
11230         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11231         uint32_t.
11232
11233 2014-01-15  Tom Tromey  <tromey@redhat.com>
11234
11235         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11236         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11237         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11238         (set_objfile_main_name): New function.
11239         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11240         language_of_main>: New fields.
11241         (set_objfile_main_name): Declare.
11242         * symtab.c (find_main_name): Loop over objfiles to find the main
11243         name and language.
11244         (set_main_name): Now static.
11245         (get_main_info): Add comment.
11246         * symtab.h (set_main_name): Don't declare.
11247
11248 2014-01-15  Tom Tromey  <tromey@redhat.com>
11249
11250         * symtab.c (main_progspace_key): New global.
11251         (struct main_info): New.
11252         (name_of_main, language_of_main): Remove.
11253         (get_main_info, main_info_cleanup): New function.
11254         (set_main_name, main_name, main_language): Use get_main_info.
11255         (_initialize_symtab): Initialize main_progspace_key.
11256
11257 2014-01-15  Tom Tromey  <tromey@redhat.com>
11258
11259         * dbxread.c (process_one_symbol): Update.
11260         * dwarf2read.c (read_partial_die): Update.
11261         * symfile.c (set_initial_language): Call main_language.
11262         * symtab.c (language_of_main): Now static.
11263         (set_main_name): Add 'lang' parameter.
11264         (find_main_name): Update.
11265         (main_language): New function.
11266         (symtab_observer_executable_changed): Update.
11267         * symtab.h (set_main_name): Update.
11268         (language_of_main): Remove.
11269         (main_language): Declare.
11270
11271 2014-01-15  Tom Tromey  <tromey@redhat.com>
11272
11273         * symfile.c (init_entry_point_info): Use new "initialized" field.
11274         Update.
11275         * objfiles.h (struct entry_point) <initialized>: New field.
11276         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11277         (struct objfile) <ei>: ...here.  Remove.
11278         * objfiles.c (entry_point_address_query): Update.
11279
11280 2014-01-15  Tom Tromey  <tromey@redhat.com>
11281
11282         * objfiles.c (entry_point_address_query): Relocate entry point
11283         address.
11284         (objfile_relocate1): Do not relocate entry point address.
11285         * objfiles.h (struct entry_info) <entry_point>: Update comment.
11286         <the_bfd_section_index>: New field.
11287         * symfile.c (init_entry_point_info): Find the entry point's
11288         section.
11289
11290 2014-01-15  Tom Tromey  <tromey@redhat.com>
11291
11292         * solib-frv.c (enable_break): Use entry_point_address_query.
11293
11294 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
11295
11296         * NEWS: Add note on improved process record-replay on
11297         arm*-linux* targets.
11298
11299 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
11300
11301         * arm-tdep.c (enum arm_record_result): New enum.
11302         (arm_record_unsupported_insn): New function.
11303         (arm_record_coproc_data_proc): Removed.
11304         (thumb2_record_ld_st_multiple): New function.
11305         (thumb2_record_ld_st_dual_ex_tbb): New function.
11306         (thumb2_record_data_proc_sreg_mimm): New function.
11307         (thumb2_record_ps_dest_generic): New function.
11308         (thumb2_record_branch_misc_cntrl): New function.
11309         (thumb2_record_str_single_data): New function.
11310         (thumb2_record_ld_mem_hints): New function.
11311         (thumb2_record_ld_word): New function.
11312         (thumb2_record_lmul_lmla_div): New function.
11313         (thumb2_record_decode_insn_handler): New function.
11314         (decode_insn): Add thumb32 instruction handlers.
11315
11316 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
11317
11318         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11319         (struct arm_linux_record_tdep): Declare.
11320         (arm_canonicalize_syscall): New function.
11321         (arm_all_but_pc_registers_record): New function.
11322         (arm_linux_syscall_record): New function.
11323         (arm_linux_init_abi): Add syscall recording constructs.
11324         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11325         decoding.  (arm_record_coproc_data_proc): Update arm syscall
11326         decoding.
11327         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11328         <arm_syscall_record>: New field.
11329         * configure.tgt (arm*-*-linux*): Add linux-record.o to
11330         gdb_target_obs.
11331
11332 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
11333
11334         * arm-tdep.c (thumb_record_misc): Update to use sp as base
11335         register for push instruction recording.
11336
11337 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
11338
11339         * arm-tdep.c (thumb_record_misc): Update to correct logical
11340         error while recording ldm, ldmia and pop instructions.
11341
11342 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
11343
11344         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11345
11346 2014-01-15  Pedro Alves  <palves@redhat.com>
11347
11348         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11349         (go32_resume, go32_fetch_registers, store_register)
11350         (go32_store_registers, go32_prepare_to_store)
11351         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11352         (go32_create_inferior, go32_can_run, go32_terminal_init)
11353         (go32_terminal_inferior, go32_terminal_ours): Delete forward
11354         declarations.
11355
11356 2014-01-15  Tom Tromey  <tromey@redhat.com>
11357
11358         * target.h (async_callback_ftype): New typedef.
11359         (struct target_ops) <to_async>: Use it.
11360
11361 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
11362
11363         * python/py-value.c (get_field_type): Remove unnecessary curly
11364         braces for single-statement if block.
11365
11366 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
11367
11368         * python/py-type.c (convert_field): Add missing empty line
11369         after declarations.
11370
11371 2014-01-14  Doug Evans  <dje@google.com>
11372
11373         * symfile.h (expand_symtabs_matching): Renamed from
11374         expand_partial_symbol_names.  Update prototype.
11375         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11376         * symfile.c (expand_symtabs_matching): Renamed from
11377         expand_partial_symbol_names.  New args file_matcher, kind.
11378         Rename arg fun to symbol_matcher.
11379         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11380         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11381         ada_expand_partial_symbol_name.
11382         (ada_make_symbol_completion_list): Update to call
11383         expand_symtabs_matching.
11384         (ada_add_global_exceptions): Call expand_symtabs_matching.
11385         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11386         call map_symbol_filenames.
11387         * symtab.c (sources_info): Update to call map_symbol_filenames.
11388         (search_symbols): Call expand_symtabs_matching.
11389         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11390         (default_make_symbol_completion_list_break_on): Update to call
11391         expand_symtabs_matching.
11392         (make_source_files_completion_list): Update to call
11393         map_symbol_filenames.
11394
11395 2014-01-14  Doug Evans  <dje@google.com>
11396
11397         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11398         (expand_symtabs_symbol_matcher_ftype): New typedef.
11399         (quick_symbol_functions.expand_symtabs_matching): Update to use.
11400         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11401         * symfile.c (expand_partial_symbol_names): Update to use
11402         expand_symtabs_symbol_matcher_ftype.
11403         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11404         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11405         Arg name_matcher renamed to symbol_matcher.
11406         * psymtab.c (recursively_search_psymtabs): Update to use
11407         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
11408         sym_matcher.
11409         (expand_symtabs_matching_via_partial): Update to use
11410         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11411         Arg name_matcher renamed to symbol_matcher.
11412
11413 2014-01-14  Doug Evans  <dje@google.com>
11414
11415         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11416         (map_partial_symbol_filenames): Ditto.
11417         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11418         (map_partial_symbol_filenames): Ditto.
11419         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11420         (map_partial_symbol_filenames): Ditto.
11421         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11422         (map_partial_symbol_filenames): Ditto.
11423         * symtab.c: Delete #include "psymtab.h".
11424
11425 2014-01-14  Pedro Alves  <palves@redhat.com>
11426             Tom Tromey  <tromey@redhat.com>
11427
11428         * infrun.c (use_displaced_stepping): Use find_record_target
11429         instead of RECORD_IS_USED.
11430         (adjust_pc_after_break): Use record_full_is_used instead of
11431         RECORD_IS_USED.
11432         * record-btrace.c (record_btrace_open): Call record_preopen
11433         instead of checking RECORD_IS_USED.
11434         * record-full.c (record_full_shortname)
11435         (record_full_core_shortname): New globals.
11436         (record_full_is_used): New function.
11437         (find_full_open): Call record_preopen instead of checking
11438         RECORD_IS_USED.
11439         (init_record_full_ops): Set the target's shortname to
11440         record_full_shortname.
11441         (init_record_full_core_ops): Set the target's shortname to
11442         record_full_core_shortname.
11443         * record-full.h (record_full_is_used): Declare.
11444         * record.c (find_record_target): Make extern.
11445         (record_preopen): New function.
11446         * record.h (RECORD_IS_USED): Delete macro.
11447         (find_record_target, record_preopen): Declare functions.
11448
11449 2014-01-14  Yao Qi  <yao@codesourcery.com>
11450
11451         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11452         'len''s type to ULONGEST.
11453         (core_xfer_shared_libraries_aix): Likewise.
11454         * gdbarch.c, gdbarch.h: Regenerated.
11455         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11456         Change type of 'len' to ULONGEST.
11457         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11458         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11459
11460 2014-01-14  Yao Qi  <yao@codesourcery.com>
11461
11462         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11463         type of 'len' to ULONGEST.
11464         (linux_xfer_osdata_processgroups): Likewise.
11465         (linux_xfer_osdata_threads): Likewise.
11466         (linux_xfer_osdata_fds): Likewise.
11467         (linux_xfer_osdata_isockets): Likewise.
11468         (linux_xfer_osdata_shm): Likewise.
11469         (linux_xfer_osdata_sem): Likewise.
11470         (linux_xfer_osdata_msg): Likewise.
11471         (linux_common_xfer_osdata): Likewise.
11472         (struct osdata_type) <getter>: Likewise.
11473         * common/linux-osdata.h (linux_common_xfer_osdata): Update
11474         the declaration.
11475
11476 2014-01-14  Yao Qi  <yao@codesourcery.com>
11477
11478         * target.h (target_xfer_partial_ftype): Update.
11479         (struct target_ops) <to_xfer_partial>: Change 'len' type to
11480         ULONGEST.
11481         * aix-thread.c (aix_thread_xfer_partial): Change type of
11482         argument 'len' to ULONGEST.
11483         * auxv.c (procfs_xfer_auxv): Likewise.
11484         (ld_so_xfer_auxv): Likewise.
11485         (memory_xfer_auxv): Likewise.
11486         * bfd-target.c (target_bfd_xfer_partial): Likewise.
11487         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11488         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11489         * corelow.c (core_xfer_partial): Likewise.
11490         * ctf.c (ctf_xfer_partial): Likewise.
11491         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
11492         '%u'.
11493         (darwin_read_dyld_info): Likewise.
11494         (darwin_xfer_partial): Likewise.
11495         * exec.c (section_table_xfer_memory_partial): Likewise.
11496         (exec_xfer_partial): Likewise.
11497         * exec.h (section_table_xfer_memory_partial): Update
11498         declaration.
11499         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
11500         instead of plongest.
11501         (gnu_xfer_partial): Likewise.
11502         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11503         (ia64_hpux_xfer_solib_got): Likewise.
11504         (ia64_hpux_xfer_partial): Likewise.
11505         * ia64-linux-nat.c (ia64_linux_xfer_partial):
11506         * inf-ptrace.c (inf_ptrace_xfer_partial):
11507         * inf-ttrace.c (inf_ttrace_xfer_partial):
11508         * linux-nat.c (linux_xfer_siginfo): Likewise.
11509         (linux_nat_xfer_partial): Likewise.
11510         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11511         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11512         * monitor.c (monitor_xfer_memory): Likewise.
11513         (monitor_xfer_partial): Likewise.
11514         * procfs.c (procfs_xfer_partial): Likewise.
11515         * record-full.c (record_full_xfer_partial): Likewise.
11516         (record_full_core_xfer_partial): Likewise.
11517         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
11518         instead of plongest.
11519         (gdbsim_xfer_partial): Likewise.
11520         * remote.c (remote_xfer_partial): Likewise.
11521         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11522         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11523         declaration.
11524         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11525         (rs6000_xfer_shared_libraries): Likewise.
11526         * sol-thread.c (sol_thread_xfer_partial): Likewise.
11527         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11528         (sparc_xfer_partial): Likewise.
11529         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11530         (spu_xfer_partial): Likewise.
11531         * spu-multiarch.c (spu_xfer_partial): Likewise.
11532         * target.c (target_read_live_memory): Likewise.
11533         (memory_xfer_live_readonly_partial): Likewise.
11534         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11535         (target_xfer_partial, default_xfer_partial): Likewise.
11536         (current_xfer_partial): Likewise.
11537         * tracepoint.c (tfile_xfer_partial): Likewise.
11538         * windows-nat.c (windows_xfer_memory): Likewise.  Call
11539         pulongest instead of plongest.
11540         (windows_xfer_partial): Likewise.
11541         (windows_xfer_shared_libraries): Likewise.
11542
11543 2014-01-14  Yao Qi  <yao@codesourcery.com>
11544
11545         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11546         target_xfer_partial_ftype.
11547
11548 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
11549
11550         PR python/15464
11551         PR python/16113
11552         * valops.c (value_struct_elt_bitpos): New function
11553         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11554         object to 'None' if the field name is an empty string ("").
11555         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11556         attribute to look for a field when 'name' is 'None'.
11557         (get_field_type): New function
11558
11559 2014-01-13  Doug Evans  <dje@google.com>
11560
11561         PR symtab/16426
11562         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11563         (try_open_dwop_file): Ditto.
11564         * gdb_bfd.c: #include "vec.h".
11565         (bfdp): New typedef.
11566         (struct gdb_bfd_data): New member included_bfds.
11567         (gdb_bfd_unref): Unref all included bfds.
11568         (gdb_bfd_record_inclusion): New function.
11569         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11570
11571 2014-01-13  Tom Tromey  <tromey@redhat.com>
11572
11573         * gdbcore.h (deprecated_core_resize_section_table): Remove.
11574
11575 2014-01-13  Tom Tromey  <tromey@redhat.com>
11576
11577         * defs.h (use_windows): Remove.
11578         * gdb.c (main): Update.
11579         * main.c (captured_main, gdb_main): Update.
11580         * main.h (struct captured_main_args) <use_windows>: Remove.
11581         * top.c (use_windows): Remove.
11582
11583 2014-01-13  Tom Tromey  <tromey@redhat.com>
11584
11585         * defs.h (deprecated_flush_hook): Remove.
11586
11587 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
11588
11589         PR threads/16216
11590         * linux-thread-db.c (try_thread_db_load): Add parameter
11591         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
11592         (try_thread_db_load_from_pdir_1): Move it there from here.
11593         (try_thread_db_load_from_sdir): Update caller.
11594         (try_thread_db_load_from_dir): Move it there from here.
11595
11596 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
11597
11598         * regformats/regdat.sh: Always rewrite the register file.
11599
11600 2014-01-13  Pedro Alves  <palves@redhat.com>
11601
11602         * Makefile.in (CHECK_HEADERS): New variable.
11603         (check-headers:): New rule.
11604
11605 2014-01-13  Tom Tromey  <tromey@redhat.com>
11606
11607         * cli/cli-setshow.c (do_set_command): Update.
11608         * defs.h (deprecated_set_hook): Remove.
11609         * top.c (deprecated_set_hook): Remove.
11610
11611 2014-01-13  Pedro Alves  <palves@redhat.com>
11612
11613         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11614         the tracepoint if the PC is a pseudo-register.
11615
11616 2014-01-13  Tom Tromey  <tromey@redhat.com>
11617
11618         * defs.h (XCALLOC): Remove.
11619         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11620         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11621         * dwarf2loc.c (allocate_piece_closure): Likewise.
11622         * elfread.c (elf_symfile_segments): Likewise.
11623         (elf_symfile_segments): Likewise.
11624         * gdbtypes.c (copy_type_recursive): Likewise.
11625         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11626         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11627         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11628         XCALLOC.
11629         * mt-tdep.c (mt_gdbarch_init): Likewise.
11630         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11631         XCALLOC.
11632         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11633         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11634         * registry.c (registry_alloc_data): Likewise.
11635         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11636         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11637         * serial.c (serial_fdopen_ops): Likewise.
11638         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11639         XCALLOC.
11640         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11641         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11642         not XCALLOC.
11643
11644 2014-01-13  Tom Tromey  <tromey@redhat.com>
11645
11646         * defs.h (XMALLOC): Remove.
11647         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11648         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11649         * cli-out.c (struct ui_out *): Likewise.
11650         * cli/cli-dump.c (add_dump_command): Likewise.
11651         (add_dump_command): Likewise.
11652         * complaints.c (get_complaints): Likewise.
11653         (find_complaint): Likewise.
11654         * dwarf2-frame.c (execute_cfa_program): Likewise.
11655         * dwarf2read.c (abbrev_table_read_table): Likewise.
11656         * gdbarch.sh: Likewise.
11657         * gdbarch.c: Rebuild.
11658         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11659         * interps.c (interp_new): Likewise.
11660         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11661         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11662         * mi/mi-console.c (mi_console_file_new): Likewise.
11663         * mi/mi-interp.c (mi_interpreter_init): Likewise.
11664         * mi/mi-out.c (mi_out_new): Likewise.
11665         * mi/mi-parse.c (mi_parse): Likewise.
11666         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11667         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11668         * observer.c (xalloc_observer_list_node): Likewise.
11669         * regcache.c (regcache_xmalloc_1): Likewise.
11670         * reggroups.c (reggroup_new): Likewise.
11671         (_initialize_reggroup): Likewise.
11672         * registry.c (register_data_with_cleanup): Likewise.
11673         * remote.c (remote_notif_stop_alloc_reply): Likewise.
11674         * ser-base.c (serial_ttystate): Likewise.
11675         * ser-mingw.c (make_pipe_state): Likewise.
11676         * ser-pipe.c (pipe_open): Likewise.
11677         * serial.c (serial_open): Likewise.
11678         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11679         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11680         (tui_alloc_win_info): Likewise.
11681         (tui_add_content_elements): Likewise.
11682         * tui/tui-file.c (tui_file_new): Likewise.
11683         * tui/tui-out.c (tui_out_new): Likewise.
11684         * ui-file.c (mem_file_new): Likewise.
11685         * ui-out.c (push_level): Likewise.
11686         (make_cleanup_ui_out_end): Likewise.
11687         (append_header_to_list): Likewise.
11688         (ui_out_new): Likewise.
11689         * user-regs.c (user_reg_add_builtin): Likewise.
11690
11691 2014-01-13  Tom Tromey  <tromey@redhat.com>
11692
11693         * defs.h (XZALLOC): Remove.
11694         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11695         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11696         (get_ada_tasks_inferior_data): Likewise.
11697         * auto-load.c (get_auto_load_pspace_data): Likewise.
11698         * auxv.c (get_auxv_inferior_data): Likewise.
11699         * bfd-target.c (target_bfd_reopen): Likewise.
11700         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11701         (deprecated_insert_raw_breakpoint): Likewise.
11702         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11703         * corelow.c (core_open): Likewise.
11704         * darwin-nat.c (darwin_check_new_threads): Likewise.
11705         (darwin_attach_pid): Likewise.
11706         * dummy-frame.c (dummy_frame_push): Likewise.
11707         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11708         * dwarf2loc.c (allocate_piece_closure): Likewise.
11709         * elfread.c (elf_symfile_segments): Likewise.
11710         * eval.c (ptrmath_type_p): Likewise.
11711         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11712         * gdbtypes.c (alloc_type_arch): Likewise.
11713         (alloc_type_instance): Likewise.
11714         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11715         * inf-child.c (inf_child_can_use_agent): Likewise.
11716         * inflow.c (get_inflow_inferior_data): Likewise.
11717         * infrun.c (save_infcall_suspend_state): Likewise.
11718         * jit.c (jit_reader_load): Likewise.
11719         (get_jit_objfile_data): Likewise.
11720         (get_jit_program_space_data): Likewise.
11721         (jit_object_open_impl): Likewise.
11722         (jit_symtab_open_impl): Likewise.
11723         (jit_block_open_impl): Likewise.
11724         (jit_frame_sniffer): Likewise.
11725         * linux-fork.c (add_fork): Likewise.
11726         * maint.c (make_command_stats_cleanup): Likewise.
11727         * objfiles.c (get_objfile_pspace_data): Likewise.
11728         * opencl-lang.c (struct lval_closure): Likewise.
11729         * osdata.c (osdata_start_osdata): Likewise.
11730         * progspace.c (new_address_space): Likewise.
11731         (add_program_space): Likewise.
11732         * remote-sim.c (get_sim_inferior_data): Likewise.
11733         * sh-tdep.c (sh_gdbarch_init): Likewise.
11734         * skip.c (Ignore): Likewise.
11735         (skip_delete_command): Likewise.
11736         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11737         (library_list_start_library): Likewise.
11738         (solib_aix_current_sos): Likewise.
11739         * solib-darwin.c (get_darwin_info): Likewise.
11740         (darwin_current_sos): Likewise.
11741         * solib-dsbt.c (get_dsbt_info): Likewise.
11742         * solib-ia64-hpux.c (new_so_list): Likewise.
11743         (ia64_hpux_get_solib_linkage_addr): Likewise.
11744         * solib-spu.c (append_ocl_sos): Likewise.
11745         (spu_current_sos): Likewise.
11746         * solib-svr4.c (get_svr4_info): Likewise.
11747         (svr4_keep_data_in_core): Likewise.
11748         (library_list_start_library): Likewise.
11749         (svr4_default_sos): Likewise.
11750         (svr4_read_so_list): Likewise.
11751         * solib-target.c (library_list_start_library): Likewise.
11752         (solib_target_current_sos): Likewise.
11753         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11754         * symfile-debug.c (install_symfile_debug_logging): Likewise.
11755         * symfile.c (default_symfile_segments): Likewise.
11756         * target-descriptions.c (tdesc_data_init): Likewise.
11757         (tdesc_create_reg): Likewise.
11758         (struct tdesc_type *): Likewise.
11759         (tdesc_create_vector): Likewise.
11760         (tdesc_set_struct_size): Likewise.
11761         (struct tdesc_type *): Likewise.
11762         (tdesc_free_feature): Likewise.
11763         (tdesc_create_feature): Likewise.
11764         * windows-nat.c (windows_add_thread): Likewise.
11765         (windows_make_so): Likewise.
11766         * xml-support.c (gdb_xml_body_text): Likewise.
11767         (gdb_xml_create_parser_and_cleanup): Likewise.
11768         (xml_process_xincludes): Likewise.
11769         * xml-syscall.c (allocate_syscalls_info): Likewise.
11770         (syscall_create_syscall_desc): Likewise.
11771
11772 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
11773
11774         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
11775         function, with code from i386_stap_parse_special_token.
11776         (i386_stap_parse_special_token_three_arg_disp): Likewise.
11777         (i386_stap_parse_special_token): Move code to the two functions
11778         above; simplify it.
11779
11780 2014-01-09  Pedro Alves  <palves@redhat.com>
11781             Hui Zhu  <hui@codesourcery.com>
11782
11783         PR gdb/16101
11784         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
11785         bp_err_string.  Don't mark the location shlib_disabled if the
11786         error thrown wasn't a generic or memory error.  Catch errors
11787         thrown while inserting breakpoints in overlayed code.  Output
11788         error message of software breakpoints.
11789         * remote.c (remote_insert_breakpoint): If this breakpoint has
11790         target-side commands but this stub doesn't support Z0 packets,
11791         throw NOT_SUPPORTED_ERROR error.
11792         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
11793         * target.h (target_insert_breakpoint): Extend comment.
11794         (target_insert_hw_breakpoint): Add comment.
11795
11796 2014-01-08  Pedro Alves  <palves@redhat.com>
11797
11798         * remote.c (remote_add_thread): Add threads silently if starting
11799         up.
11800         (remote_notice_new_inferior): If in all-stop, and starting up,
11801         don't call notice_new_inferior.
11802         (get_current_thread): New function, factored out from ...
11803         (add_current_inferior_and_thread): ... this.  Adjust.
11804         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
11805         found any thread, then select the remote's current thread as GDB's
11806         current thread too.
11807
11808 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
11809
11810         * NEWS: Create a new section for the next release branch.
11811         Rename the section of the current branch, now that it has
11812         been cut.
11813
11814 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
11815
11816         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
11817         * version.in: Bump version to 7.7.50.DATE-cvs.
11818
11819 2014-01-08  Yao Qi  <yao@codesourcery.com>
11820
11821         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
11822         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
11823         (spu_xfer_partial): Cast 'buf' to 'const char *'.
11824
11825 2014-01-08  Yao Qi  <yao@codesourcery.com>
11826
11827         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
11828         return value of bfd_get_filename to symbol_file_add_from_bfd.
11829
11830 2014-01-08  Pierre Muller  <muller@sourceware.org>
11831
11832         Fix PR16201.
11833         * coff-pe-read.c (struct read_pe_section_data): Add index field.
11834         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
11835         to prim_record_mininal_symbol_and_info.
11836         (add_pe_forwarded_sym): Use known section number of forwarded symbol
11837         in call to prim_record_minimal_symbol_and_info.
11838         (read_pe_exported_syms): Set index field of section_data.
11839
11840 2014-01-07  Andrew Pinski  <apinski@cavium.com>
11841
11842         * features/aarch64-core.xml (cpsr): Change to be 64bit.
11843         * features/aarch64.c: Regenerate.
11844
11845 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
11846
11847         * target.c (return_null): Define.
11848         (update_current_target): Use it instead of return_zero for
11849         functions that return a pointer.
11850
11851 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
11852
11853         * source.c (add_path): Fix check for duplicated paths in the previously
11854         included paths.
11855
11856 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
11857
11858         * ada-lang.c: Remove duplicated include statements.
11859         * alphabsd-nat.c: Ditto.
11860         * amd64-darwin-tdep.c: Ditto.
11861         * amd64fbsd-nat.c: Ditto.
11862         * auto-load.c: Ditto.
11863         * ax-gdb.c: Ditto.
11864         * breakpoint.c: Ditto.
11865         * dbxread.c: Ditto.
11866         * fork-child.c: Ditto.
11867         * gdb_usleep.c: Ditto.
11868         * i386-darwin-tdep.c: Ditto.
11869         * i386fbsd-nat.c: Ditto.
11870         * infcmd.c: Ditto.
11871         * inferior.c: Ditto.
11872         * jv-lang.c: Ditto.
11873         * linux-nat.c: Ditto.
11874         * linux-tdep.c: Ditto.
11875         * m68kbsd-nat.c: Ditto.
11876         * m68klinux-nat.c: Ditto.
11877         * microblaze-tdep.c: Ditto.
11878         * mips-linux-tdep.c: Ditto.
11879         * mn10300-tdep.c: Ditto.
11880         * nto-tdep.c: Ditto.
11881         * opencl-lang.c: Ditto.
11882         * osdata.c: Ditto.
11883         * printcmd.c: Ditto.
11884         * regcache.c: Ditto.
11885         * remote-m32r-sdi.c: Ditto.
11886         * remote.c: Ditto.
11887         * symfile.c: Ditto.
11888         * symtab.c: Ditto.
11889         * tilegx-linux-nat.c: Ditto.
11890         * tilegx-tdep.c: Ditto.
11891         * tracepoint.c: Ditto.
11892         * valops.c: Ditto.
11893         * vaxbsd-nat.c: Ditto.
11894         * windows-nat.c: Ditto.
11895         * xtensa-tdep.c: Ditto.
11896
11897 2014-01-07  Yao Qi  <yao@codesourcery.com>
11898
11899         * spu-linux-nat.c (_initialize_spu_nat): Declare.
11900
11901 2014-01-07  Yao Qi  <yao@codesourcery.com>
11902             Joel Brobecker  <brobecker@adacore.com>
11903
11904         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
11905         (pdc_write_regs): Likewise.
11906         (fetch_regs_kernel_thread): Likewise.
11907         (store_regs_kernel_thread): Likewise.
11908
11909 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
11910
11911         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
11912         tagged type objects to their actual type.
11913
11914 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
11915
11916         * ada-valprint.c (print_field_values): Add "language" parameter.
11917         Update calls to print_field_values and print_variant_part.
11918         Pass new parameter "language" in call to val_print instead
11919         of "current_language".  Replace call to ada_val_print by call
11920         to val_print.
11921         (print_variant_part): Add "language" parameter.
11922         (ada_val_print_struct_union): Update call to print_field_values.
11923
11924 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
11925
11926         * ada-valprint.c (ui_memcpy): Delete.
11927         (ada_print_floating): Update documentation.  Add empty line
11928         between between function documentation and implementation.
11929         Delete variable "buffer".  Use ui_file_xstrdup in place of
11930         ui_file_put.  Minor adjustments following this change.
11931
11932 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
11933
11934         * ada-valprint.c (ada_val_print_string): New function,
11935         extracted from ada_val_print_array.
11936         (ada_val_print_array): Replace extracted code by call
11937         to ada_val_print_string followed by a return.  Move
11938         "else" branch to the function's top block.
11939
11940 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
11941
11942         * ada-valprint.c (ada_val_print_array): Move implementation
11943         down.  Rename parameter "offset" and "val" into "offset_aligned"
11944         and "original_value" respectively.  Add parameter "offset".
11945
11946 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
11947
11948         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
11949         re-organizing the code. Change the "???" message printed
11950         when target type is a TYPE_CODE_UNDEF into
11951         "<ref to undefined type>".
11952
11953 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
11954
11955         * ada-valprint.c (print_record): Delete, implementation inlined...
11956         (ada_val_print_struct_union): ... here.  Remove call to
11957         ada_check_typedef in inlined implementation.
11958
11959 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
11960
11961         * ada-valprint.c (ada_val_print_gnat_array): New function,
11962         extracted from ada_val_print_1;
11963         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
11964         (ada_val_print_flt, ada_val_print_struct_union)
11965         (ada_val_print_ref): Likewise.
11966         (ada_val_print_1): Delete variables i and elttype.
11967         Replace extracted-out code by call to corresponding
11968         new functions.
11969
11970 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
11971
11972         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
11973
11974 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
11975
11976         * ada-valprint.c (ada_val_print_1): Replace calls to
11977         ada_val_print_1 by calls to val_print.
11978
11979 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
11980
11981         * ada-valprint.c (ada_val_print_1): Add parameter "language".
11982         Update calls to self accordingly.  Replace calls to c_val_print
11983         by calls to val_print.
11984
11985 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
11986
11987         * ada-valprint.c (print_record): Delete declaration.
11988         (adjust_type_signedness, ada_val_print_1): Likewise.
11989         (ada_val_print): Move function implementation down.
11990         (print_variant_part, print_field_values, print_record):
11991         Move function implementation up.
11992
11993 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
11994
11995         * python/py-type.c (typy_get_name): New function.
11996         (type_object_getset): Add entry for attribute "name".
11997         * NEWS: Add entry mentioning this new attribute.
11998
11999 2014-01-07  Yao Qi  <yao@codesourcery.com>
12000
12001         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12002         statement.
12003
12004 2014-01-07  Yao Qi  <yao@codesourcery.com>
12005
12006         * gnu-nat.c (info_port_rights): Add qualifier const to
12007         argument args.
12008
12009 2014-01-07  Yao Qi  <yao@codesourcery.com>
12010
12011         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12012
12013 2014-01-07  Yao Qi  <yao@codesourcery.com>
12014
12015         * gnu-nat.c (make_inf) Update declaration.
12016         (make_inf): Make it static.
12017         (inf_set_traced): Likewise.
12018         (inf_port_to_thread, inf_task_died_status): Likewise.
12019
12020 2014-01-07  Yao Qi  <yao@codesourcery.com>
12021
12022         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12023
12024 2014-01-07  Yao Qi  <yao@codesourcery.com>
12025
12026         * gnu-nat.c (_initialize_gnu_nat): Declare.
12027
12028 2014-01-07  Yao Qi  <yao@codesourcery.com>
12029
12030         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12031         'enum bfd_endian'.
12032         (struct gdbarch_info) <byte_order>: Change type to
12033         'enum bfd_endian'.
12034         <byte_order_for_code>: Likewise.
12035         * gdbarch.c, gdbarch.h: Regenerated.
12036
12037 2014-01-06  Sasha Smundak  <asmundak@google.com>
12038
12039         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12040
12041 2014-01-06  Tom Tromey  <tromey@redhat.com>
12042
12043         * doublest.c (convert_doublest_to_floatformat): Use const, not
12044         CONST.
12045         * somread.c (som_symtab_read): Likewise.
12046
12047 2014-01-07  Hui Zhu  <hui@codesourcery.com>
12048
12049         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12050         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12051         (gdb_bfd_fopen): Ditto.
12052         (gdb_bfd_openr): Ditto.
12053         (gdb_bfd_openw): Ditto.
12054         (gdb_bfd_openr_iovec): Ditto.
12055         (gdb_bfd_fdopenr): Ditto.
12056         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12057         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12058         with xstrdup.
12059         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12060         with xstrdup.
12061         * symfile-mem.c (symbol_file_add_from_memory): Removed
12062         gdb_bfd_stash_filename.
12063
12064 2014-01-03  Doug Evans  <dje@google.com>
12065
12066         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12067         output.
12068
12069 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
12070
12071         Update year range in copyright notice of all files.
12072
12073 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
12074
12075         * top.c (print_gdb_version): Set copyright year to 2014.
12076
12077 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
12078
12079         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12080
12081 For older changes see ChangeLog-2013.
12082 \f
12083 Local Variables:
12084 mode: change-log
12085 left-margin: 8
12086 fill-column: 74
12087 version-control: never
12088 coding: utf-8
12089 End: