8c9a8d8bef4f092d03e11a96b4102dae983b00a6
[external/binutils.git] / gdb / ChangeLog
1 2014-08-19  Tom Tromey  <tromey@redhat.com>
2             Gary Benson  <gbenson@redhat.com>
3
4         * common/errors.h: New file.
5         * common/errors.c: Likewise.
6         * Makefile.in (SFILES): Add common/errors.c.
7         (HFILES_NO_SRCDIR): Add common/errors.h.
8         (COMMON_OBS): Add errors.o.
9         (errors.o): New rule.
10         * common/common-defs.h: Include errors.h.
11         * utils.h (perror_with_name, error, verror, warning, vwarning):
12         Don't declare.
13         * common/common-utils.h: (malloc_failure, internal_error):
14         Likewise.
15
16 2014-08-19  Gary Benson  <gbenson@redhat.com>
17
18         * utils.c (internal_vproblem): Always print the message.
19
20 2014-08-18  Doug Evans  <dje@google.com>
21
22         * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
23
24 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
25
26         * ada-typeprint.c (type_is_full_subrange_of_target_type):
27         Return 0 if TYPE is dynamic.
28         (print_range): Add handling of dynamic ranges.
29
30 2014-08-18  Keven Boell  <keven.boell@intel.com>
31             Joel Brobecker  <brobecker@adacore.com>
32
33         * gdbtypes.h (struct main_type): Add field "data_location".
34         (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
35         (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
36         * gdbtypes.c (is_dynamic_type): Return 1 if the type has
37         a dynamic data location.
38         (resolve_dynamic_type): Add DW_AT_data_location handling.
39         (copy_recursive, copy_type): Copy the data_location information
40         when present.
41         * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
42         * value.c (value_from_contents_and_address): Add
43         DW_AT_data_location handling.
44
45 2014-08-18  Keven Boell  <keven.boell@intel.com>
46             Joel Brobecker  <brobecker@adacore.com>
47
48         * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
49         field "get_object_address".
50         * dwarf2expr.c (execute_stack_op): Add handling for
51         DW_OP_push_object_address.
52         * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
53         * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
54         (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
55         (dwarf_expr_get_obj_addr): New function.
56         (dwarf_expr_ctx_funcs): Add get_object_address field.
57         (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
58         (dwarf2_locexpr_baton_eval): Add parameter "addr".  Use it.
59         (dwarf2_evaluate_property): Add parameter "address".  Use it.
60         (needs_get_obj_addr): New function.
61         (needs_frame_ctx_funcs): Add get_object_address field.
62         (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
63         * gdbtypes.c (resolve_dynamic_range): Add "addr" field.  Use it.
64         (resolve_dynamic_array): Likewise.
65
66 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
67
68         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
69         When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
70         fixed value for records and unions for which some GNAT encodings
71         are present.
72
73 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
74
75         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
76         rewrite to avoid "else if" and "else" constructs.  Should be
77         a no-op in practice.
78
79 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
80
81         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
82         of lexical block.
83
84 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
85
86         PR c++/17132
87         * eval.c: Update all calls to find_overload_match.
88         * valarith.c: Likewise.
89         (value_user_defined_cpp_op, value_user_defined_op): New
90         argument NOSIDE.  Update all callers.
91         * valops.c (find_overload_match): New argument NOSIDE.
92         * value.h (find_overload_match): Update signature.
93
94 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
95
96         * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
97         'items' methods instead of 'iteritems' method on dictionaries.
98
99 2014-08-15  Doug Evans  <dje@google.com>
100
101         * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
102         closer to use.
103
104 2014-08-15  Doug Evans  <dje@google.com>
105
106         * dwarf2read.c (dwarf_decode_lines_1): Add comment.
107
108 2014-08-15  Doug Evans  <dje@google.com>
109
110         * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
111
112 2014-08-15  Doug Evans  <dje@google.com>
113
114         * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
115         unused.
116
117 2014-08-15  Eli Zaretskii  <eliz@gnu.org>
118
119         * dcache.h: Include target.h, to avoid compile time warnings.
120
121 2014-08-15  Joel Brobecker  <brobecker@adacore.com>
122
123         * gdbarch.sh: #include "frame.h" in gdbarch.h.  Delete "struct
124         frame_info" partial declaration.
125         * gdbarch.h: Regenerate.
126
127 2014-08-15  Yao Qi  <yao@codesourcery.com>
128
129         * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
130         Add parameter 'decode_for_pst_p'.  Callers update.
131
132 2014-08-13  Yao Qi  <yao@codesourcery.com>
133
134         PR build/17104
135         * configure.ac: Use local variable 'pos'.
136         * configure: Regenerated.
137
138 2014-08-11  Doug Evans  <dje@google.com>
139
140         * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
141         message, it is redundant with "Reading symbols from ..." message.
142
143 2014-08-10  Doug Evans  <xdje42@gmail.com>
144
145         * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
146
147 2014-08-09  Yao Qi  <yao@codesourcery.com>
148
149         PR remote/9053
150         * remote.c (remote_xfer_partial): Remove dead code.
151
152 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
153
154         * ia64-linux-tdep.c: Include "regset.h".
155         (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
156         (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
157         (ia64_linux_supply_fpregset): New function.
158         (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
159         (ia64_linux_regset_from_core_section): New function.
160         (ia64_linux_init_abi): Set regset_from_core_section gdbarch
161         method.
162
163 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
164
165         * m68klinux-tdep.c: Include "regset.h".
166         (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
167         (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
168         (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
169         (m68k_linux_regset_from_core_section): New function.
170         (m68k_linux_init_abi): Set regset_from_core_section gdbarch
171         method.
172
173 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
174
175         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
176         function.  Move logic to...
177         (tilegx_linux_regmap): ... this new register map.
178         (tilegx_linux_regset): Refer to register map, replace supply
179         method by regcache_supply_regset, and add collect method.
180         * tilegx-tdep.h (enum tilegx_regnum): New enum value
181         TILEGX_FIRST_EASY_REGNUM.
182
183 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
184
185         * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
186         that calls regcache_supply_regset and handles the EPC register
187         separately.  Move main logic to...
188         (score7_linux_gregmap): ... this new register map.
189         (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
190         (score7_linux_gregset): Refer to register map.  Add collect method.
191         (score7_linux_regset_from_core_section): Replace
192         sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
193         * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
194         (struct regset): Delete unused forward declaraction.
195         (struct pt_regs): Delete structure definition.
196         (elf_gregset_t): Delete typedef.
197
198 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
199
200         * nios2-linux-tdep.c (nios2_collect_gregset): New function.
201         (nios2_core_regset): Add collect method.
202
203 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
204
205         * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
206         platform-independent and don't write to read-only input buffer.
207         (m32r_linux_collect_gregset): New function.
208         (m32r_linux_gregset): Add collect method.
209
210 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
211
212         * hppa-linux-tdep.c (greg_map): Rename to...
213         (hppa_linux_gregmap): ... this.  Also convert to
214         regcache_map_entry format.
215         (hppa_linux_supply_regset): Delete function.
216         (hppa_linux_supply_fpregset): Delete function.  Move logic to...
217         (hppa_linux_fpregmap): ... this new register map.
218         (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
219         register map, replace supply method by regcache_supply_regset, and
220         add collect method regcache_collect_regset.
221
222 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
223
224         * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
225         (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
226         (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
227         (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
228         (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
229         (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
230         (frv_linux_supply_gregset): Replace main logic by call to
231         regcache_supply_regset, but keep clearing gr32-gr63.
232         (frv_linux_supply_fpregset): Delete function.
233         (frv_linux_gregset): Refer to appropriate register map and add
234         regcache_collect_regset as the collect method.
235         (frv_linux_fpregset): Likewise.  Also exchange the supply method
236         by regcache_supply_regset.
237
238 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
239
240         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
241         by call to alpha_supply_int_regs.
242         (alpha_linux_collect_gregset): New function.
243         (alpha_linux_supply_fpregset): Replace logic by call to
244         alpha_supply_fp_regs.
245         (alpha_linux_collect_fpregset): New function.
246         (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
247
248 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
249
250         * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
251         by call to regcache_collect_regset.
252         (supply_gregset, supply_fpregset): Call regcache_supply_regset
253         instead of aarch64_linux_supply_gregset/_fpregset.
254         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
255         (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
256         header file instead.
257         (aarch64_linux_supply_gregset, supply_gregset_from_core)
258         (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
259         functions.  Move logic to ...
260         (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
261         register maps.
262         (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
263         refer to new register maps, replace *_regset_from_core by
264         regcache_supply_regset, and also use regcache_collect_regset.
265         * aarch64-linux-tdep.h: Include "regset.h".
266         (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
267         Delete prototypes.
268         (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
269         macros, moved from C source file.
270         (aarch64_linux_gregset, aarch64_linux_fpregset): New global
271         variable declarations.
272
273 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
274
275         * s390-linux-nat.c: Include "regset.h".
276         (regmap_gregset): Delete macro.
277         (s390_64_regmap_gregset): New register map for
278         regcache_supply/_collect_regset.
279         (s390_64_gregset): New regset.
280         (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
281         (regmap_fpregset): Delete macro.
282         (s390_native_supply, s390_native_collect): Delete functions.
283         (supply_gregset, fill_gregset): Replace s390-specific regmap
284         handling by a call to regcache_supply/_collect_regset.
285         (supply_fpregset, fill_fpregset): Call regcache_supply/
286         _collect_regset instead of s390_native_supply/_collect.
287         (fetch_regset, store_regset): Likewise.  Also change the last
288         parameter to a regset instead of a regmap.
289         (s390_linux_fetch_inferior_registers)
290         (390_linux_store_inferior_registers): Adjust last parameter in
291         calls to fetch_regset and store_regset.
292         * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
293         (s390_gregmap): ... this.  Also make static const and convert to
294         regcache_map_entry format.
295         (s390x_regmap_gregset): Delete.
296         (s390_regmap_fpregset): Rename to...
297         (s390_fpregmap): ... this.  Make static const and convert to
298         regcache_map_entry format.
299         (s390_regmap_upper, s390_regmap_last_break)
300         (s390x_regmap_last_break, s390_regmap_system_call)
301         (s390_regmap_tdb): Likewise.
302         (s390_supply_regset, s390_collect_regset): Remove functions.
303         (s390_supply_tdb_regset): Call regcache_supply_regset instead of
304         s390_supply_regset.
305         (s390_gregset, s390_fpregset, s390_upper_regset)
306         (s390_last_break_regset, s390x_last_break_regset)
307         (s390_system_call_regset, s390_tdb_regset): Make global and
308         replace s390_supply/_collect_regset by regcache_supply/
309         _collect_regset.
310         (s390x_gregset): Delete.
311         (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
312         * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
313         (s390_regmap_fpregset, s390_regmap_last_break)
314         (s390x_regmap_last_break, s390_regmap_system_call)
315         (s390_regmap_tdb): Delete global variable declarations.
316         (s390_gregset, s390_fpregset, s390_last_break_regset)
317         (s390x_last_break_regset, s390_system_call_regset)
318         (s390_tdb_regset): New global variable declarations.
319
320 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
321
322         * regcache.c: Include "regset.h".
323         (regcache_transfer_regset): New local function.
324         (regcache_supply_regset, regcache_collect_regset): New functions.
325         * regcache.h (struct regcache_map_entry): New structure.
326         (REGCACHE_MAP_SKIP): New enum value.
327         (regcache_supply_regset, regcache_collect_regset): New prototypes.
328
329 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
330
331         * regset.h (struct regset): Rename 'descr' field to 'regmap'.
332         * ppc-linux-tdep.c (ppc_linux_supply_gregset)
333         (ppc_linux_collect_gregset ): Likewise.
334         * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
335         (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
336         (ppc_collect_vrregset): Likewise.
337         * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
338         Likewise.
339
340 2014-08-07  Yao Qi  <yao@codesourcery.com>
341
342         * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
343         * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
344         * remote.c (remote_read_bytes): Likewise.
345
346 2014-08-07  Yao Qi  <yao@codesourcery.com>
347
348         * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
349
350 2014-08-07  Yao Qi  <yao@codesourcery.com>
351
352         PR remote/17230
353         * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
354         TARGET_XFER_OK instead of 0.
355
356 2014-08-07  Gary Benson  <gbenson@redhat.com>
357
358         * common/common-defs.h: Include errno.h.
359         * defs.h: Do not include errno.h.
360         * ada-typeprint.c: Likewise.
361         * c-typeprint.c: Likewise.
362         * core-regset.c: Likewise.
363         * corefile.c: Likewise.
364         * corelow.c: Likewise.
365         * event-loop.c: Likewise.
366         * f-typeprint.c: Likewise.
367         * gnu-nat.c: Likewise.
368         * go32-nat.c: Likewise.
369         * i386gnu-nat.c: Likewise.
370         * m2-typeprint.c: Likewise.
371         * nat/linux-btrace.c: Likewise.
372         * p-typeprint.c: Likewise.
373         * procfs.c: Likewise.
374         * remote-sim.c: Likewise.
375         * rs6000-nat.c: Likewise.
376         * target.c: Likewise.
377         * typeprint.c: Likewise.
378         * ui-file.c: Likewise.
379         * valops.c: Likewise.
380         * valprint.c: Likewise.
381
382 2014-08-07  Gary Benson  <gbenson@redhat.com>
383
384         * common/common-defs.h: Include string.h.
385         * aarch64-tdep.c: Do not include string.h.
386         * ada-exp.y: Likewise.
387         * ada-lang.c: Likewise.
388         * ada-lex.l: Likewise.
389         * ada-typeprint.c: Likewise.
390         * ada-valprint.c: Likewise.
391         * aix-thread.c: Likewise.
392         * alpha-linux-tdep.c: Likewise.
393         * alpha-mdebug-tdep.c: Likewise.
394         * alpha-nat.c: Likewise.
395         * alpha-osf1-tdep.c: Likewise.
396         * alpha-tdep.c: Likewise.
397         * alphanbsd-tdep.c: Likewise.
398         * amd64-dicos-tdep.c: Likewise.
399         * amd64-linux-tdep.c: Likewise.
400         * amd64-nat.c: Likewise.
401         * amd64-sol2-tdep.c: Likewise.
402         * amd64fbsd-tdep.c: Likewise.
403         * amd64obsd-tdep.c: Likewise.
404         * arch-utils.c: Likewise.
405         * arm-linux-nat.c: Likewise.
406         * arm-linux-tdep.c: Likewise.
407         * arm-tdep.c: Likewise.
408         * arm-wince-tdep.c: Likewise.
409         * armbsd-tdep.c: Likewise.
410         * armnbsd-nat.c: Likewise.
411         * armnbsd-tdep.c: Likewise.
412         * armobsd-tdep.c: Likewise.
413         * avr-tdep.c: Likewise.
414         * ax-gdb.c: Likewise.
415         * ax-general.c: Likewise.
416         * bcache.c: Likewise.
417         * bfin-tdep.c: Likewise.
418         * breakpoint.c: Likewise.
419         * build-id.c: Likewise.
420         * buildsym.c: Likewise.
421         * c-exp.y: Likewise.
422         * c-lang.c: Likewise.
423         * c-typeprint.c: Likewise.
424         * c-valprint.c: Likewise.
425         * charset.c: Likewise.
426         * cli-out.c: Likewise.
427         * cli/cli-cmds.c: Likewise.
428         * cli/cli-decode.c: Likewise.
429         * cli/cli-dump.c: Likewise.
430         * cli/cli-interp.c: Likewise.
431         * cli/cli-logging.c: Likewise.
432         * cli/cli-script.c: Likewise.
433         * cli/cli-setshow.c: Likewise.
434         * cli/cli-utils.c: Likewise.
435         * coffread.c: Likewise.
436         * common/agent.c: Likewise.
437         * common/buffer.c: Likewise.
438         * common/buffer.h: Likewise.
439         * common/common-utils.c: Likewise.
440         * common/filestuff.c: Likewise.
441         * common/filestuff.c: Likewise.
442         * common/format.c: Likewise.
443         * common/print-utils.c: Likewise.
444         * common/rsp-low.c: Likewise.
445         * common/signals.c: Likewise.
446         * common/vec.h: Likewise.
447         * common/xml-utils.c: Likewise.
448         * core-regset.c: Likewise.
449         * corefile.c: Likewise.
450         * corelow.c: Likewise.
451         * cp-abi.c: Likewise.
452         * cp-name-parser.y: Likewise.
453         * cp-support.c: Likewise.
454         * cp-valprint.c: Likewise.
455         * cris-tdep.c: Likewise.
456         * d-exp.y: Likewise.
457         * darwin-nat.c: Likewise.
458         * dbxread.c: Likewise.
459         * dcache.c: Likewise.
460         * demangle.c: Likewise.
461         * dicos-tdep.c: Likewise.
462         * disasm.c: Likewise.
463         * doublest.c: Likewise.
464         * dsrec.c: Likewise.
465         * dummy-frame.c: Likewise.
466         * dwarf2-frame.c: Likewise.
467         * dwarf2loc.c: Likewise.
468         * dwarf2read.c: Likewise.
469         * elfread.c: Likewise.
470         * environ.c: Likewise.
471         * eval.c: Likewise.
472         * event-loop.c: Likewise.
473         * exceptions.c: Likewise.
474         * exec.c: Likewise.
475         * expprint.c: Likewise.
476         * f-exp.y: Likewise.
477         * f-lang.c: Likewise.
478         * f-typeprint.c: Likewise.
479         * f-valprint.c: Likewise.
480         * fbsd-nat.c: Likewise.
481         * findcmd.c: Likewise.
482         * findvar.c: Likewise.
483         * fork-child.c: Likewise.
484         * frame.c: Likewise.
485         * frv-linux-tdep.c: Likewise.
486         * frv-tdep.c: Likewise.
487         * gdb.c: Likewise.
488         * gdb_bfd.c: Likewise.
489         * gdbarch.c: Likewise.
490         * gdbarch.sh: Likewise.
491         * gdbtypes.c: Likewise.
492         * gnu-nat.c: Likewise.
493         * gnu-v2-abi.c: Likewise.
494         * gnu-v3-abi.c: Likewise.
495         * go-exp.y: Likewise.
496         * go-lang.c: Likewise.
497         * go32-nat.c: Likewise.
498         * guile/guile.c: Likewise.
499         * guile/scm-auto-load.c: Likewise.
500         * hppa-hpux-tdep.c: Likewise.
501         * hppa-linux-nat.c: Likewise.
502         * hppanbsd-tdep.c: Likewise.
503         * hppaobsd-tdep.c: Likewise.
504         * i386-cygwin-tdep.c: Likewise.
505         * i386-dicos-tdep.c: Likewise.
506         * i386-linux-tdep.c: Likewise.
507         * i386-nto-tdep.c: Likewise.
508         * i386-sol2-tdep.c: Likewise.
509         * i386-tdep.c: Likewise.
510         * i386bsd-tdep.c: Likewise.
511         * i386gnu-nat.c: Likewise.
512         * i386nbsd-tdep.c: Likewise.
513         * i386obsd-tdep.c: Likewise.
514         * i387-tdep.c: Likewise.
515         * ia64-libunwind-tdep.c: Likewise.
516         * ia64-linux-nat.c: Likewise.
517         * inf-child.c: Likewise.
518         * inf-ptrace.c: Likewise.
519         * inf-ttrace.c: Likewise.
520         * infcall.c: Likewise.
521         * infcmd.c: Likewise.
522         * inflow.c: Likewise.
523         * infrun.c: Likewise.
524         * interps.c: Likewise.
525         * iq2000-tdep.c: Likewise.
526         * irix5-nat.c: Likewise.
527         * jv-exp.y: Likewise.
528         * jv-lang.c: Likewise.
529         * jv-typeprint.c: Likewise.
530         * jv-valprint.c: Likewise.
531         * language.c: Likewise.
532         * linux-fork.c: Likewise.
533         * linux-nat.c: Likewise.
534         * lm32-tdep.c: Likewise.
535         * m2-exp.y: Likewise.
536         * m2-typeprint.c: Likewise.
537         * m32c-tdep.c: Likewise.
538         * m32r-linux-nat.c: Likewise.
539         * m32r-linux-tdep.c: Likewise.
540         * m32r-rom.c: Likewise.
541         * m32r-tdep.c: Likewise.
542         * m68hc11-tdep.c: Likewise.
543         * m68k-tdep.c: Likewise.
544         * m68kbsd-tdep.c: Likewise.
545         * m68klinux-nat.c: Likewise.
546         * m68klinux-tdep.c: Likewise.
547         * m88k-tdep.c: Likewise.
548         * machoread.c: Likewise.
549         * macrocmd.c: Likewise.
550         * main.c: Likewise.
551         * mdebugread.c: Likewise.
552         * mem-break.c: Likewise.
553         * memattr.c: Likewise.
554         * memory-map.c: Likewise.
555         * mep-tdep.c: Likewise.
556         * mi/mi-cmd-break.c: Likewise.
557         * mi/mi-cmd-disas.c: Likewise.
558         * mi/mi-cmd-env.c: Likewise.
559         * mi/mi-cmd-stack.c: Likewise.
560         * mi/mi-cmd-var.c: Likewise.
561         * mi/mi-cmds.c: Likewise.
562         * mi/mi-console.c: Likewise.
563         * mi/mi-getopt.c: Likewise.
564         * mi/mi-interp.c: Likewise.
565         * mi/mi-main.c: Likewise.
566         * mi/mi-parse.c: Likewise.
567         * microblaze-rom.c: Likewise.
568         * microblaze-tdep.c: Likewise.
569         * mingw-hdep.c: Likewise.
570         * minidebug.c: Likewise.
571         * minsyms.c: Likewise.
572         * mips-irix-tdep.c: Likewise.
573         * mips-linux-tdep.c: Likewise.
574         * mips-tdep.c: Likewise.
575         * mips64obsd-tdep.c: Likewise.
576         * mipsnbsd-tdep.c: Likewise.
577         * mipsread.c: Likewise.
578         * mn10300-linux-tdep.c: Likewise.
579         * mn10300-tdep.c: Likewise.
580         * monitor.c: Likewise.
581         * moxie-tdep.c: Likewise.
582         * mt-tdep.c: Likewise.
583         * nat/linux-btrace.c: Likewise.
584         * nat/linux-osdata.c: Likewise.
585         * nat/linux-procfs.c: Likewise.
586         * nat/linux-ptrace.c: Likewise.
587         * nat/linux-waitpid.c: Likewise.
588         * nbsd-tdep.c: Likewise.
589         * nios2-linux-tdep.c: Likewise.
590         * nto-procfs.c: Likewise.
591         * nto-tdep.c: Likewise.
592         * objc-lang.c: Likewise.
593         * objfiles.c: Likewise.
594         * opencl-lang.c: Likewise.
595         * osabi.c: Likewise.
596         * osdata.c: Likewise.
597         * p-exp.y: Likewise.
598         * p-lang.c: Likewise.
599         * p-typeprint.c: Likewise.
600         * parse.c: Likewise.
601         * posix-hdep.c: Likewise.
602         * ppc-linux-nat.c: Likewise.
603         * ppc-sysv-tdep.c: Likewise.
604         * ppcfbsd-tdep.c: Likewise.
605         * ppcnbsd-tdep.c: Likewise.
606         * ppcobsd-tdep.c: Likewise.
607         * printcmd.c: Likewise.
608         * procfs.c: Likewise.
609         * prologue-value.c: Likewise.
610         * python/py-auto-load.c: Likewise.
611         * python/py-gdb-readline.c: Likewise.
612         * ravenscar-thread.c: Likewise.
613         * regcache.c: Likewise.
614         * registry.c: Likewise.
615         * remote-fileio.c: Likewise.
616         * remote-m32r-sdi.c: Likewise.
617         * remote-mips.c: Likewise.
618         * remote-notif.c: Likewise.
619         * remote-sim.c: Likewise.
620         * remote.c: Likewise.
621         * reverse.c: Likewise.
622         * rs6000-aix-tdep.c: Likewise.
623         * ser-base.c: Likewise.
624         * ser-go32.c: Likewise.
625         * ser-mingw.c: Likewise.
626         * ser-pipe.c: Likewise.
627         * ser-tcp.c: Likewise.
628         * ser-unix.c: Likewise.
629         * serial.c: Likewise.
630         * sh-tdep.c: Likewise.
631         * sh64-tdep.c: Likewise.
632         * shnbsd-tdep.c: Likewise.
633         * skip.c: Likewise.
634         * sol-thread.c: Likewise.
635         * solib-dsbt.c: Likewise.
636         * solib-frv.c: Likewise.
637         * solib-osf.c: Likewise.
638         * solib-som.c: Likewise.
639         * solib-spu.c: Likewise.
640         * solib-target.c: Likewise.
641         * solib.c: Likewise.
642         * somread.c: Likewise.
643         * source.c: Likewise.
644         * sparc-nat.c: Likewise.
645         * sparc-sol2-tdep.c: Likewise.
646         * sparc-tdep.c: Likewise.
647         * sparc64-tdep.c: Likewise.
648         * sparc64fbsd-tdep.c: Likewise.
649         * sparc64nbsd-tdep.c: Likewise.
650         * sparcnbsd-tdep.c: Likewise.
651         * spu-linux-nat.c: Likewise.
652         * spu-multiarch.c: Likewise.
653         * spu-tdep.c: Likewise.
654         * stabsread.c: Likewise.
655         * stack.c: Likewise.
656         * std-regs.c: Likewise.
657         * symfile.c: Likewise.
658         * symmisc.c: Likewise.
659         * symtab.c: Likewise.
660         * target.c: Likewise.
661         * thread.c: Likewise.
662         * tilegx-linux-nat.c: Likewise.
663         * tilegx-tdep.c: Likewise.
664         * top.c: Likewise.
665         * tracepoint.c: Likewise.
666         * tui/tui-command.c: Likewise.
667         * tui/tui-data.c: Likewise.
668         * tui/tui-disasm.c: Likewise.
669         * tui/tui-file.c: Likewise.
670         * tui/tui-layout.c: Likewise.
671         * tui/tui-out.c: Likewise.
672         * tui/tui-regs.c: Likewise.
673         * tui/tui-source.c: Likewise.
674         * tui/tui-stack.c: Likewise.
675         * tui/tui-win.c: Likewise.
676         * tui/tui-windata.c: Likewise.
677         * tui/tui-winsource.c: Likewise.
678         * typeprint.c: Likewise.
679         * ui-file.c: Likewise.
680         * ui-out.c: Likewise.
681         * user-regs.c: Likewise.
682         * utils.c: Likewise.
683         * v850-tdep.c: Likewise.
684         * valarith.c: Likewise.
685         * valops.c: Likewise.
686         * valprint.c: Likewise.
687         * value.c: Likewise.
688         * varobj.c: Likewise.
689         * vax-tdep.c: Likewise.
690         * vaxnbsd-tdep.c: Likewise.
691         * vaxobsd-tdep.c: Likewise.
692         * windows-nat.c: Likewise.
693         * xcoffread.c: Likewise.
694         * xml-support.c: Likewise.
695         * xstormy16-tdep.c: Likewise.
696         * xtensa-linux-nat.c: Likewise.
697
698 2014-08-07  Gary Benson  <gbenson@redhat.com>
699
700         * common/common-defs.h: Include gdb_assert.h.
701         * aarch64-tdep.c: Do not include gdb_assert.h.
702         * addrmap.c: Likewise.
703         * aix-thread.c: Likewise.
704         * alpha-linux-tdep.c: Likewise.
705         * alpha-mdebug-tdep.c: Likewise.
706         * alphanbsd-tdep.c: Likewise.
707         * amd64-nat.c: Likewise.
708         * amd64-tdep.c: Likewise.
709         * amd64bsd-nat.c: Likewise.
710         * amd64fbsd-nat.c: Likewise.
711         * amd64fbsd-tdep.c: Likewise.
712         * amd64nbsd-nat.c: Likewise.
713         * amd64nbsd-tdep.c: Likewise.
714         * amd64obsd-nat.c: Likewise.
715         * amd64obsd-tdep.c: Likewise.
716         * arch-utils.c: Likewise.
717         * arm-tdep.c: Likewise.
718         * armbsd-tdep.c: Likewise.
719         * auxv.c: Likewise.
720         * bcache.c: Likewise.
721         * bfin-tdep.c: Likewise.
722         * blockframe.c: Likewise.
723         * breakpoint.c: Likewise.
724         * bsd-kvm.c: Likewise.
725         * bsd-uthread.c: Likewise.
726         * buildsym.c: Likewise.
727         * c-exp.y: Likewise.
728         * c-lang.c: Likewise.
729         * charset.c: Likewise.
730         * cleanups.c: Likewise.
731         * cli-out.c: Likewise.
732         * cli/cli-decode.c: Likewise.
733         * cli/cli-dump.c: Likewise.
734         * cli/cli-logging.c: Likewise.
735         * cli/cli-script.c: Likewise.
736         * cli/cli-utils.c: Likewise.
737         * coffread.c: Likewise.
738         * common/common-utils.c: Likewise.
739         * common/queue.h: Likewise.
740         * common/signals.c: Likewise.
741         * common/vec.h: Likewise.
742         * complaints.c: Likewise.
743         * completer.c: Likewise.
744         * corelow.c: Likewise.
745         * cp-abi.c: Likewise.
746         * cp-name-parser.y: Likewise.
747         * cp-namespace.c: Likewise.
748         * cp-support.c: Likewise.
749         * cris-tdep.c: Likewise.
750         * dbxread.c: Likewise.
751         * dictionary.c: Likewise.
752         * doublest.c: Likewise.
753         * dsrec.c: Likewise.
754         * dummy-frame.c: Likewise.
755         * dwarf2-frame-tailcall.c: Likewise.
756         * dwarf2-frame.c: Likewise.
757         * dwarf2expr.c: Likewise.
758         * dwarf2loc.c: Likewise.
759         * dwarf2read.c: Likewise.
760         * eval.c: Likewise.
761         * event-loop.c: Likewise.
762         * exceptions.c: Likewise.
763         * expprint.c: Likewise.
764         * f-valprint.c: Likewise.
765         * fbsd-nat.c: Likewise.
766         * findvar.c: Likewise.
767         * frame-unwind.c: Likewise.
768         * frame.c: Likewise.
769         * frv-tdep.c: Likewise.
770         * gcore.c: Likewise.
771         * gdb-dlfcn.c: Likewise.
772         * gdb_bfd.c: Likewise.
773         * gdbarch.c: Likewise.
774         * gdbarch.sh: Likewise.
775         * gdbtypes.c: Likewise.
776         * gnu-nat.c: Likewise.
777         * gnu-v3-abi.c: Likewise.
778         * go-lang.c: Likewise.
779         * guile/scm-exception.c: Likewise.
780         * guile/scm-gsmob.c: Likewise.
781         * guile/scm-lazy-string.c: Likewise.
782         * guile/scm-math.c: Likewise.
783         * guile/scm-pretty-print.c: Likewise.
784         * guile/scm-safe-call.c: Likewise.
785         * guile/scm-utils.c: Likewise.
786         * guile/scm-value.c: Likewise.
787         * h8300-tdep.c: Likewise.
788         * hppa-hpux-nat.c: Likewise.
789         * hppa-tdep.c: Likewise.
790         * hppanbsd-tdep.c: Likewise.
791         * hppaobsd-tdep.c: Likewise.
792         * i386-darwin-nat.c: Likewise.
793         * i386-darwin-tdep.c: Likewise.
794         * i386-nto-tdep.c: Likewise.
795         * i386-tdep.c: Likewise.
796         * i386bsd-nat.c: Likewise.
797         * i386fbsd-tdep.c: Likewise.
798         * i386gnu-nat.c: Likewise.
799         * i386nbsd-tdep.c: Likewise.
800         * i386obsd-tdep.c: Likewise.
801         * i387-tdep.c: Likewise.
802         * ia64-libunwind-tdep.c: Likewise.
803         * ia64-tdep.c: Likewise.
804         * inf-ptrace.c: Likewise.
805         * inf-ttrace.c: Likewise.
806         * infcall.c: Likewise.
807         * infcmd.c: Likewise.
808         * infrun.c: Likewise.
809         * inline-frame.c: Likewise.
810         * interps.c: Likewise.
811         * jv-lang.c: Likewise.
812         * jv-typeprint.c: Likewise.
813         * linux-fork.c: Likewise.
814         * linux-nat.c: Likewise.
815         * linux-thread-db.c: Likewise.
816         * m32c-tdep.c: Likewise.
817         * m32r-linux-nat.c: Likewise.
818         * m32r-tdep.c: Likewise.
819         * m68k-tdep.c: Likewise.
820         * m68kbsd-nat.c: Likewise.
821         * m68kbsd-tdep.c: Likewise.
822         * m88k-tdep.c: Likewise.
823         * machoread.c: Likewise.
824         * macroexp.c: Likewise.
825         * macrotab.c: Likewise.
826         * maint.c: Likewise.
827         * mdebugread.c: Likewise.
828         * memory-map.c: Likewise.
829         * mep-tdep.c: Likewise.
830         * mi/mi-common.c: Likewise.
831         * microblaze-tdep.c: Likewise.
832         * mingw-hdep.c: Likewise.
833         * mips-linux-nat.c: Likewise.
834         * mips-linux-tdep.c: Likewise.
835         * mips-tdep.c: Likewise.
836         * mips64obsd-tdep.c: Likewise.
837         * mipsnbsd-tdep.c: Likewise.
838         * mn10300-linux-tdep.c: Likewise.
839         * mn10300-tdep.c: Likewise.
840         * moxie-tdep.c: Likewise.
841         * mt-tdep.c: Likewise.
842         * nat/linux-btrace.c: Likewise.
843         * nat/linux-osdata.c: Likewise.
844         * nat/linux-ptrace.c: Likewise.
845         * nat/mips-linux-watch.c: Likewise.
846         * nios2-linux-tdep.c: Likewise.
847         * nios2-tdep.c: Likewise.
848         * objc-lang.c: Likewise.
849         * objfiles.c: Likewise.
850         * obsd-nat.c: Likewise.
851         * opencl-lang.c: Likewise.
852         * osabi.c: Likewise.
853         * parse.c: Likewise.
854         * ppc-linux-nat.c: Likewise.
855         * ppc-sysv-tdep.c: Likewise.
856         * ppcfbsd-nat.c: Likewise.
857         * ppcfbsd-tdep.c: Likewise.
858         * ppcnbsd-nat.c: Likewise.
859         * ppcnbsd-tdep.c: Likewise.
860         * ppcobsd-nat.c: Likewise.
861         * ppcobsd-tdep.c: Likewise.
862         * printcmd.c: Likewise.
863         * procfs.c: Likewise.
864         * prologue-value.c: Likewise.
865         * psymtab.c: Likewise.
866         * python/py-lazy-string.c: Likewise.
867         * python/py-value.c: Likewise.
868         * regcache.c: Likewise.
869         * reggroups.c: Likewise.
870         * registry.c: Likewise.
871         * remote-sim.c: Likewise.
872         * remote.c: Likewise.
873         * rs6000-aix-tdep.c: Likewise.
874         * rs6000-tdep.c: Likewise.
875         * s390-linux-tdep.c: Likewise.
876         * score-tdep.c: Likewise.
877         * ser-base.c: Likewise.
878         * ser-mingw.c: Likewise.
879         * sh-tdep.c: Likewise.
880         * sh64-tdep.c: Likewise.
881         * solib-darwin.c: Likewise.
882         * solib-spu.c: Likewise.
883         * solib-svr4.c: Likewise.
884         * source.c: Likewise.
885         * sparc-nat.c: Likewise.
886         * sparc-sol2-tdep.c: Likewise.
887         * sparc-tdep.c: Likewise.
888         * sparc64-sol2-tdep.c: Likewise.
889         * sparc64-tdep.c: Likewise.
890         * sparc64fbsd-tdep.c: Likewise.
891         * sparc64nbsd-tdep.c: Likewise.
892         * sparc64obsd-tdep.c: Likewise.
893         * sparcnbsd-tdep.c: Likewise.
894         * sparcobsd-tdep.c: Likewise.
895         * spu-multiarch.c: Likewise.
896         * spu-tdep.c: Likewise.
897         * stabsread.c: Likewise.
898         * stack.c: Likewise.
899         * symfile.c: Likewise.
900         * symtab.c: Likewise.
901         * target-descriptions.c: Likewise.
902         * target-memory.c: Likewise.
903         * target.c: Likewise.
904         * tic6x-linux-tdep.c: Likewise.
905         * tic6x-tdep.c: Likewise.
906         * tilegx-linux-nat.c: Likewise.
907         * tilegx-tdep.c: Likewise.
908         * top.c: Likewise.
909         * tramp-frame.c: Likewise.
910         * tui/tui-out.c: Likewise.
911         * tui/tui-winsource.c: Likewise.
912         * ui-out.c: Likewise.
913         * user-regs.c: Likewise.
914         * utils.c: Likewise.
915         * v850-tdep.c: Likewise.
916         * valops.c: Likewise.
917         * value.c: Likewise.
918         * varobj.c: Likewise.
919         * vax-nat.c: Likewise.
920         * xml-syscall.c: Likewise.
921         * xml-tdesc.c: Likewise.
922         * xstormy16-tdep.c: Likewise.
923         * xtensa-linux-nat.c: Likewise.
924         * xtensa-tdep.c: Likewise.
925
926 2014-08-07  Gary Benson  <gbenson@redhat.com>
927
928         * common/common-defs.h: Include common-utils.h.
929         * defs.h: Do not include common-utils.h.
930         * common/gdb_assert.h: Likewise.
931         * darwin-nat.h: Likewise.
932         * nat/linux-btrace.c: Likewise.
933         * target/waitstatus.h: Likewise.
934
935 2014-08-07  Gary Benson  <gbenson@redhat.com>
936
937         * common/common-defs.h: Include ptid.h.
938         * defs.h: Do not include ptid.h.
939         * inferior.h: Likewise.
940         * infrun.h: Likewise.
941         * nat/linux-btrace.h: Likewise.
942         * nat/linux-osdata.h: Likewise.
943         * target/waitstatus.h: Likewise.
944
945 2014-08-07  Gary Benson  <gbenson@redhat.com>
946
947         * common/common-defs.h: Include gdb_locale.h.
948         * defs.h: Do not include gdb_locale.h.
949
950 2014-08-07  Gary Benson  <gbenson@redhat.com>
951
952         * common/common-defs.h: Include gdb/signals.h.
953         * defs.h: Do not include gdb/signals.h.
954
955 2014-08-07  Gary Benson  <gbenson@redhat.com>
956
957         * common/common-defs.h: Include pathmax.h.
958         * defs.h: Do not include pathmax.h.
959
960 2014-08-07  Gary Benson  <gbenson@redhat.com>
961
962         * common/common-defs.h: Include libiberty.h.
963         * defs.h: Do not include libiberty.h.
964         * common/queue.h: Likewise.
965         * cp-name-parser.y: Likewise.
966         * mi/mi-cmd-catch.c: Likewise.
967         * python/python.c: Likewise.
968
969 2014-08-07  Gary Benson  <gbenson@redhat.com>
970
971         * common/common-defs.h: Include ansidecl.h.
972         * defs.h: Do not include ansidecl.h.
973         * common/buffer.h: Likewise.
974         * common/common-utils.h: Likewise.
975
976 2014-08-07  Gary Benson  <gbenson@redhat.com>
977
978         * common/common-defs.h: Include stddef.h.
979         * defs.h: Do not include stddef.h.
980         * common/common-utils.h: Likewise.
981         * amd64fbsd-nat.c: Likewise.
982         * bcache.c: Likewise.
983         * charset.c: Likewise.
984         * common/buffer.h: Likewise.
985         * common/vec.h: Likewise.
986         * i386bsd-nat.c: Likewise.
987         * nat/linux-btrace.h: Likewise.
988         * ppcfbsd-nat.c: Likewise.
989         * ppcnbsd-tdep.h: Likewise.
990         * ppcobsd-nat.c: Likewise.
991         * ppcobsd-tdep.h: Likewise.
992         * python/py-gdb-readline.c: Likewise.
993
994 2014-08-07  Gary Benson  <gbenson@redhat.com>
995
996         * common/common-defs.h: Include stdarg.h.
997         * defs.h: Do not include stdarg.h.
998         * ada-lang.c: Likewise.
999         * common/common-utils.h: Likewise.
1000         * guile/scm-string.c: Likewise.
1001         * guile/scm-utils.c: Likewise.
1002         * m32c-tdep.c: Likewise.
1003
1004 2014-08-07  Gary Benson  <gbenson@redhat.com>
1005
1006         * common/common-defs.h: Include stdlib.h.
1007         * defs.h: Do not include stdlib.h.
1008         * addrmap.c: Likewise.
1009         * bcache.c: Likewise.
1010         * common/buffer.c: Likewise.
1011         * common/common-utils.c: Likewise.
1012         * cp-name-parser.y: Likewise.
1013         * go32-nat.c: Likewise.
1014         * mn10300-linux-tdep.c: Likewise.
1015         * nat/linux-osdata.c: Likewise.
1016         * tui/tui.c: Likewise.
1017         * windows-nat.c: Likewise.
1018
1019 2014-08-07  Gary Benson  <gbenson@redhat.com>
1020
1021         * common/common-defs.h: Include stdio.h.
1022         * defs.h: Do not include stdio.h.
1023         * ada-lang.c: Likewise.
1024         * common/buffer.c: Likewise.
1025         * common/common-utils.c: Likewise.
1026         * cp-name-parser.y: Likewise.
1027         * gnu-nat.c: Likewise.
1028         * go32-nat.c: Likewise.
1029         * i386gnu-nat.c: Likewise.
1030         * proc-api.c: Likewise.
1031         * proc-events.c: Likewise.
1032         * proc-flags.c: Likewise.
1033         * proc-why.c: Likewise.
1034         * python/python-internal.h: Likewise.
1035         * target-memory.c: Likewise.
1036         * tui/tui-io.c: Likewise.
1037         * tui/tui.c: Likewise.
1038
1039 2014-08-06  Simon Marchi  <simon.marchi@ericsson.com>
1040
1041         * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1042         (scan_dyntag_auxv): Same.
1043
1044 2014-08-06  Yao Qi  <yao@codesourcery.com>
1045
1046         * amd64-linux-nat.c: Remove duplicated include
1047         "x86-linux-nat.h".
1048         * i386-linux-nat.c: Likewise.
1049
1050 2014-08-06  Yao Qi  <yao@codesourcery.com>
1051
1052         * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1053         operand" with "Special opcode" in comments.
1054
1055 2014-08-05  Gary Benson  <gbenson@redhat.com>
1056
1057         * interps.c (initialize_interps): Remove prototype.
1058         (interpreter_initialized): Remove static global.
1059         (interp_add): Do not call initialize_interps.
1060         (initialize_interps): Remove function.
1061
1062 2014-08-05  Gary Benson  <gbenson@redhat.com>
1063
1064         * utils.c (vwarning): Remove spurious va_end.
1065
1066 2014-08-05  Alan Modra  <amodra@gmail.com>
1067
1068         * charset.c (convert_between_encodings): Cast result of obstack_base.
1069         * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1070         * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1071         (read_unwind_info): Use size_t for some locals.
1072         * jit.c (finalize_symtab): Likewise.
1073         * utils.c (hashtab_obstack_allocate): Likewise.
1074         * symmisc.c (print_objfile_statistics): Update format strings.
1075
1076 2014-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
1077
1078         * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1079         (Changes in GDB 7.8): ... here.
1080
1081 2014-08-04  Tom Tromey  <tromey@redhat.com>
1082
1083         * target.c (set_targetdebug): New function.
1084         (initialize_targets): Pass set_targetdebug when creating "set
1085         debug target".
1086
1087 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
1088
1089         * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1090         if detecting a variable-sized field that is not the last field.
1091         Fix struct type length computation.
1092
1093 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
1094
1095         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1096         Add debug trace.
1097
1098 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
1099
1100         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1101         Remove "+ 8" offset in computation of CHAIN_VMA.
1102
1103 2014-07-31  Doug Evans  <dje@google.com>
1104
1105         * inflow.c (child_terminal_inferior): Add comment.
1106         (child_terminal_ours_for_output): Add comment.
1107         (child_terminal_ours): Add comment.
1108         * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1109         (linux_nat_terminal_ours): Add comment.
1110
1111 2014-07-31  Gary Benson  <gbenson@redhat.com>
1112
1113         * common/btrace-common.h: Do not include defs.h or server.h.
1114         * nat/mips-linux-watch.h: Likewise.
1115         * gdb-dlfcn.h: Do not include defs.h.
1116         * tracefile.h: Likewise.
1117
1118 2014-07-30  Roland McGrath  <mcgrathr@google.com>
1119
1120         * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1121
1122 2014-07-30  Tom Tromey  <tromey@redhat.com>
1123
1124         * bsd-kvm.c (bsd_kvm_open): Constify.
1125         * corelow.c (core_open): Constify.
1126         * ctf.c (ctf_open): Constify.
1127         * dbug-rom.c (dbug_open): Constify.
1128         * exec.c (exec_open): Constify.
1129         * m32r-rom.c (m32r_open, mon2000_open): Constify.
1130         * microblaze-rom.c (picobug_open): Constify.
1131         * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1132         Constify.
1133         * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1134         * record-btrace.c (record_btrace_open): Constify.
1135         * record-full.c (record_full_core_open_1, record_full_open_1)
1136         (record_full_open): Constify.
1137         * remote-m32r-sdi.c (m32r_open): Constify.
1138         * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1139         (rockhopper_open, lsi_open): Constify.
1140         * remote-sim.c (gdbsim_open): Constify.
1141         * remote.c (remote_open, extended_remote_open, remote_open_1):
1142         Constify.
1143         * target.h (struct target_ops) <to_open>: Make "arg" const.
1144         * tracefile-tfile.c (tfile_open): Constify.
1145
1146 2014-07-30  Tom Tromey  <tromey@redhat.com>
1147
1148         * breakpoint.c (map_breakpoint_numbers): Update.
1149         * cli/cli-utils.c (get_number_trailer): Make "pp" const.  Update.
1150         (get_number_const): New function.
1151         (get_number): Rewrite using get_number_const.
1152         (init_number_or_range): Make "string" const.
1153         (number_is_in_list): Make "list" const.
1154         * cli/cli-utils.h (get_number_const): Declare.
1155         (struct get_number_or_range_state) <string, end_ptr>: Now const.
1156         (init_number_or_range, number_is_in_list): Update.
1157         * printcmd.c (map_display_numbers): Update.
1158         * value.c (value_from_history_ref): Constify.
1159         * value.h (value_from_history_ref): Update.
1160
1161 2014-07-30  Tom Tromey  <tromey@redhat.com>
1162
1163         * corefile.c (hook_type, call_extra_exec_file_hooks)
1164         (specify_exec_file_hook): Constify.
1165         * exec.c (exec_file_attach): Make "filename" const.
1166         * gdbcore.h (deprecated_exec_file_display_hook)
1167         (specify_exec_file_hook, exec_file_attach): Constify.
1168         * main.c (captured_main): Use catch_command_errors_const.
1169
1170 2014-07-30  Tom Tromey  <tromey@redhat.com>
1171
1172         * target.c (open_target): New function.
1173         (add_target_with_completer, add_deprecated_target_alias): Use
1174         set_cmd_sfunc, set_cmd_context.
1175         (debug_to_open): Remove.
1176         (setup_target_debug): Update.
1177
1178 2014-07-30  Yao Qi  <yao@codesourcery.com>
1179
1180         * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1181         comments.
1182         * parse.c (exp_iterate): Update comments.
1183
1184 2014-07-30  Gary Benson  <gbenson@redhat.com>
1185
1186         * common/common-defs.h: New file.
1187         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1188         * defs.h: Include common-defs.h.
1189         Do not include config.h or build-gnulib/config.h.
1190
1191 2014-07-30  Gary Benson  <gbenson@redhat.com>
1192
1193         * common/common-utils.h: Do not include config.h.
1194         * nat/linux-btrace.h: Likewise.
1195
1196 2014-07-30  Gary Benson  <gbenson@redhat.com>
1197
1198         * btrace.c: Include defs.h.
1199         * common/ptid.c: Include defs.h or server.h as appropriate.
1200         * nat/mips-linux-watch.c: Likewise.
1201
1202 2014-07-29  Tom Tromey  <tromey@redhat.com>
1203
1204         * target.c (target_is_pushed): Simplify.
1205
1206 2014-07-29  Joel Brobecker  <brobecker@adacore.com>
1207
1208         GDB 7.8 released.
1209
1210 2014-07-29  Yao Qi  <yao@codesourcery.com>
1211
1212         PR gdb/17206
1213         * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1214
1215 2014-07-28  Doug Evans  <xdje42@gmail.com>
1216
1217         PR guile/17203
1218         * guile/scm-param.c (pascm_parameter_defined_p): New function.
1219         (gdbscm_register_parameter_x): Call it.  Raise error for pre-existing
1220         parameters.
1221
1222 2014-07-28  Will Newton  <will.newton@linaro.org>
1223
1224         * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1225         (THUMB2_SET_R7_SIGRETURN2): Likewise.
1226         (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1227         (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1228         (THUMB2_EABI_SYSCALL): Likewise.
1229         (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1230         struct tramp_frame.
1231         (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1232         (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1233
1234 2014-07-27  Doug Evans  <xdje42@gmail.com>
1235
1236         * guile/scm-param.c (pascm_print_param_smob): Fix output.
1237
1238 2014-07-27  Doug Evans  <xdje42@gmail.com>
1239
1240         * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1241
1242 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
1243             Doug Evans  <xdje42@gmail.com>
1244
1245         PR guile/17146
1246         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1247         (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1248         * configure.ac: Try to use guild to compile an scm file, if it fails
1249         then disable guile support.
1250         * configure: Regenerate.
1251         * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1252         GUILE_FILE_LIST.
1253         (GUILE_COMPILED_FILES): New variable.
1254         (GUILE_FILES) Update.
1255         (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1256         (stamp-guile): Compile scm files.
1257         * guile/guile.c (boot_guile_support): New function.
1258         (standard_throw_args_p): New function.
1259         (print_standard_throw_error, print_throw_error): New functions.
1260         (handle_boot_error): New function.
1261         (initialize_scheme_side): Rewrite to call boot_guile_support.
1262         * guile/lib/gdb/boot.scm: Update %load-compiled-path.  Load gdb.go.
1263         * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1264
1265 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
1266             Doug Evans  <xdje42@gmail.com>
1267
1268         PR guile/17146
1269         * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1270         * guile/lib/gdb/support.scm: New file.
1271         * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1272         * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1273         All uses updated.
1274         * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1275         All uses updated.
1276         (%assert-type): Ditto, and renamed to assert-type.
1277         (%exception-print-style): Delete.
1278
1279 2014-07-26  Doug Evans  <xdje42@gmail.com>
1280
1281         PR build/17105
1282         * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1283         * configure: Regenerate.
1284         * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1285         PYTHON_FILES.
1286         (PYTHON_FILES): New variable.
1287         (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1288         (GUILE_FILES): New variable.
1289         (stamp-python, install-python, uninstall-python): Handle empty
1290         file list.
1291         (stamp-guile, install-guile, uninstall-guile): Ditto.
1292
1293 2014-07-26  Doug Evans  <xdje42@gmail.com>
1294
1295         PR guile/17177
1296         * guile/lib/gdb.scm (pretty-printers): Export.
1297         (set-pretty-printers!): Export.
1298         * guile/lib/gdb/printing.scm (gdb module): Update.
1299         (prepend-pretty-printer!, append-pretty-printer!): Update.
1300         * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1301         (pretty_printer_list_var): Delete.
1302         (pretty_printer_list): New static global.
1303         (gdbscm_pretty_printers): New function.
1304         (gdbscm_set_pretty_printers_x): New function.
1305         (ppscm_find_pretty_printer_from_gdb): Update.
1306         (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1307         (gdbscm_initialize_pretty_printers): Update.
1308
1309 2014-07-26  Doug Evans  <xdje42@gmail.com>
1310
1311         PR 17185
1312         * configure.ac: Add check for header gc/gc.h.
1313         Add check for function setenv.
1314         * configure: Regenerate.
1315         * config.in: Regenerate.
1316         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1317
1318 2014-07-25  Maciej W. Rozycki  <macro@codesourcery.com>
1319
1320         * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1321         variation in gdbarch matching.
1322
1323 2014-07-25  Tom Tromey  <tromey@redhat.com>
1324
1325         * exec.c (using_exec_ops): Remove.
1326         (exec_close_1): Update.  Remove extraneous block, reindent.
1327         (add_target_sections): Use target_is_pushed.
1328
1329 2014-07-25  Pedro Alves  <palves@redhat.com>
1330
1331         * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1332         * monitor.c (monitor_create_inferior): Likewise.
1333         * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1334         * remote-sim.c (gdbsim_create_inferior): Likewise.
1335         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1336         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1337         * windows-nat.c (do_initial_windows_stuff): Likewise.
1338
1339 2014-07-25  Pedro Alves  <palves@redhat.com>
1340
1341         * NEWS: Mention signal passing and "signal" command changes.
1342         * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1343         comment.
1344         * breakpoint.c (until_break_command): Adjust clear_proceed_status
1345         call.
1346         * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1347         * infcmd.c (proceed_thread_callback, continue_1, step_once)
1348         (jump_command): Adjust clear_proceed_status call.
1349         (signal_command): Warn if other thread that are resumed have
1350         signals that will be delivered.  Adjust clear_proceed_status call.
1351         (until_next_command, finish_command)
1352         (proceed_after_attach_callback, attach_command_post_wait)
1353         (attach_command): Adjust clear_proceed_status call.
1354         * infrun.c (proceed_after_vfork_done): Likewise.
1355         (proceed_after_attach_callback): Adjust comment.
1356         (clear_proceed_status_thread): Clear stop_signal if not in pass
1357         state.
1358         (clear_proceed_status_callback): Delete.
1359         (clear_proceed_status): New 'step' parameter.  Only clear the
1360         proceed status of threads the command being prepared is about to
1361         resume.
1362         (proceed): If passed in an explicit signal, override stop_signal
1363         with it.  Don't pass the last stop signal to the thread we're
1364         resuming.
1365         (init_wait_for_inferior): Adjust clear_proceed_status call.
1366         (switch_back_to_stepped_thread): Clear the signal if it should not
1367         be passed.
1368         * infrun.h (clear_proceed_status): New 'step' parameter.
1369         (user_visible_resume_ptid): Add comment.
1370         * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1371         signal is in pass state.
1372         * remote.c (append_pending_thread_resumptions): Likewise.
1373         * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1374
1375 2014-07-25  Tom Tromey  <tromey@redhat.com>
1376
1377         * target.h (target_stopped_data_address)
1378         (target_watchpoint_addr_within_range): Use "->", not ".".  Fix
1379         parentheses.
1380
1381 2014-07-25  Pierre Langlois  <pierre.langlois@embecosm.com>
1382
1383         * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1384         comments.
1385         (avr_pointer_to_address): Likewise.
1386
1387 2014-07-24  Tom Tromey  <tromey@redhat.com>
1388
1389         * monitor.c (compile_pattern): Update.
1390         * target.h (struct target_ops) <to_shortname, to_longname,
1391         to_doc>: Now const.
1392
1393 2014-07-24  Tom Tromey  <tromey@redhat.com>
1394
1395         * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1396         (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1397         (add_info_alias, add_com): Make "doc" const.
1398         (print_doc_line): Make "str" const.
1399         (delete_cmd): Update.
1400         * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1401         (print_doc_line): Update.
1402         * cli/cli-script.c (document_command): Update.
1403         * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1404         (add_com, add_info, add_info_alias): Update.
1405         * guile/scm-cmd.c (cmdscm_destroyer): Update.
1406         * python/py-cmd.c (cmdpy_destroyer): Update.
1407
1408 2014-07-24  Tom Tromey  <tromey@redhat.com>
1409
1410         * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1411         (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1412         (help_cmd_list): Constify.
1413         (lookup_cmd): Update.
1414         * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1415         const.
1416         (help_cmd_list, apropos_cmd): Update.
1417         * cli/cli-script.c (show_user): Update.
1418         * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1419         * cli/cli-setshow.h (cmd_show_list): Update.
1420         * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1421         (cmd_show_list): Update.
1422         * guile/scm-cmd.c (cmdscm_destroyer): Update.
1423         * python/py-cmd.c (cmdpy_destroyer): Update.
1424
1425 2014-07-24  Tom Tromey  <tromey@redhat.com>
1426
1427         * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1428         * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1429         const.
1430         * command.h (deprecate_cmd): Update.
1431         * maint.c (maintenance_do_deprecate): Add casts.
1432
1433 2014-07-24  Tom Tromey  <tromey@redhat.com>
1434
1435         * cli/cli-decode.c (help_cmd): Make parameter "const".
1436         * cli/cli-decode.h (help_cmd): Update.
1437
1438 2014-07-24  Tom Tromey  <tromey@redhat.com>
1439
1440         * stack.c (up_silently_base, down_silently_base): Make argument
1441         const.
1442
1443 2014-07-24  Tom Tromey  <tromey@redhat.com>
1444
1445         * solib.c (solib_add): Make "pattern" const.
1446         * solib.h (solib_add): Update.
1447
1448 2014-07-24  Tom Tromey  <tromey@redhat.com>
1449
1450         * remote.c (remote_serial_open, print_packet, putpkt)
1451         (putpkt_binary): Constify.
1452         * remote.h (putpkt): Update.
1453
1454 2014-07-24  Tom Tromey  <tromey@redhat.com>
1455
1456         * monitor.c (monitor_open): Make "args" const.
1457         * monitor.h (monitor_open): Update.
1458
1459 2014-07-24  Tom Tromey  <tromey@redhat.com>
1460
1461         * maint.c (match_bfd_flags): Make "string" const.
1462         (print_bfd_section_info): Remove casts.
1463         (print_objfile_section_info): Make "string" const.
1464
1465 2014-07-24  Tom Tromey  <tromey@redhat.com>
1466
1467         * inf-child.c (inf_child_open_target): Make "arg" const.
1468         * inf-child.h (inf_child_open_target): Update.
1469
1470 2014-07-24  Tom Tromey  <tromey@redhat.com>
1471
1472         * environ.c (unset_in_environ): Make "var" const.
1473         * environ.h (unset_in_environ): Update.
1474
1475 2014-07-24  Tom Tromey  <tromey@redhat.com>
1476
1477         * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1478         Make "cmd" const.
1479         (scan_filename_with_cleanup): Likewise.
1480         (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1481         Make arguments const.
1482         (restore_command): Update.
1483
1484 2014-07-24  Pedro Alves  <palves@redhat.com>
1485
1486         * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1487
1488 2014-07-24  Tom Tromey  <tromey@redhat.com>
1489             Gary Benson  <gbenson@redhat.com>
1490
1491         * nat/linux-ptrace.c (additional_flags): New global.
1492         (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1493         additional_flags; don't check GDBSERVER.
1494         (linux_ptrace_set_additional_flags): New function.
1495         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1496         Declare.
1497         * linux-nat.c (_initialize_linux_nat): Call
1498         linux_ptrace_set_additional_flags.
1499
1500 2014-07-24  Tom Tromey  <tromey@redhat.com>
1501
1502         * make-target-delegates (munge_type, write_debugmethod): New
1503         functions.
1504         (debug_names): New global.
1505         ($TARGET_DEBUG_PRINTER): New global.
1506         (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1507         name.
1508         Write debug methods.  Generate init_debug_target.
1509         * target-debug.h: New file.
1510         * target-delegates.c: Rebuild.
1511         * target.c: Include target-debug.h.
1512         (debug_target): Hoist definition.
1513         (target_kill, target_get_section_table, target_memory_map)
1514         (target_flash_erase, target_flash_done, target_detach)
1515         (target_disconnect, target_wait, target_resume)
1516         (target_pass_signals, target_program_signals, target_follow_fork)
1517         (target_mourn_inferior, target_search_memory)
1518         (target_thread_address_space, target_close)
1519         (target_find_new_threads, target_core_of_thread)
1520         (target_verify_memory, target_insert_mask_watchpoint)
1521         (target_remove_mask_watchpoint): Remove targetdebug code.
1522         (debug_to_post_attach, debug_to_prepare_to_store)
1523         (debug_to_files_info, debug_to_insert_breakpoint)
1524         (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1525         (debug_to_region_ok_for_hw_watchpoint)
1526         (debug_to_can_accel_watchpoint_condition)
1527         (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1528         (debug_to_watchpoint_addr_within_range)
1529         (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1530         (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1531         (debug_to_terminal_init, debug_to_terminal_inferior)
1532         (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1533         (debug_to_terminal_save_ours, debug_to_terminal_info)
1534         (debug_to_load, debug_to_post_startup_inferior)
1535         (debug_to_insert_fork_catchpoint)
1536         (debug_to_remove_fork_catchpoint)
1537         (debug_to_insert_vfork_catchpoint)
1538         (debug_to_remove_vfork_catchpoint)
1539         (debug_to_insert_exec_catchpoint)
1540         (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1541         (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1542         (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1543         (setup_target_debug): Call init_debug_target.
1544         * target.h (TARGET_DEBUG_PRINTER): New macro.
1545         (struct target_ops) <to_resume, to_wait, to_pass_signals,
1546         to_program_signals>: Use TARGET_DEBUG_PRINTER.
1547
1548 2014-07-24  Gary Benson  <gbenson@redhat.com>
1549
1550         * exceptions.h (throw_vfatal): Renamed to...
1551         (throw_vquit): New declaration.
1552         (throw_quit): Likewise.
1553         * exceptions.c (throw_vfatal): Renamed to...
1554         (throw_vquit): New function.
1555         (throw_quit): Likewise.
1556         (throw_error): Call throw_verror rather than throw_it.
1557         * utils.h (vfatal): Removed.
1558         (fatal): Likewise.
1559         * utils.c (vfatal): Removed.
1560         (fatal): Likewise.
1561         (internal_verror): Replaced call to fatal with call to throw_quit.
1562         (quit): Replaced calls to fatal with calls to throw_quit.
1563
1564 2014-07-23  Ajit Agarwal <ajitkum@xilinx.com>
1565
1566         * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1567         target_read_code.
1568
1569 2014-07-23  Chen Gang <gang.chen.5i5j@gmail.com>
1570
1571         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1572         less than zero in conditional expression.
1573
1574 2014-07-23  Tom Tromey  <tromey@redhat.com>
1575
1576         * make-target-delegates ($ARGS_PART): Match trailing close paren.
1577         ($INTRO_PART): Don't match whitespace.
1578         ($METHOD_TRAILER): Move earlier.  Remove trailing semicolon and
1579         argument matching.
1580         ($METHOD): Add $METHOD_TRAILER.
1581         (trim): Rewrite.
1582         (scan_target_h): New sub.
1583         Change main loop not to collect state.
1584         * target-delegates.c: Rebuild.
1585
1586 2014-07-23  Gary Benson  <gbenson@redhat.com>
1587
1588         * cp-support.c (gdb_demangle): Fix build on systems without
1589         sigaltstack.
1590
1591 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
1592
1593         * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1594         for reference entry value target data value.
1595
1596 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
1597
1598         * stack.c (read_frame_arg): Verify value_optimized_out before calling
1599         value_available_contents_eq.
1600
1601 2014-07-22  Pedro Alves  <palves@redhat.com>
1602
1603         * value.c (allocate_optimized_out_value): Don't mark value as
1604         non-lazy.
1605
1606 2014-07-22  Jiong Wang  <jiong.wang@arm.com>
1607
1608         * MAINTAINERS (Write After Approval): Update my email address.
1609
1610 2014-07-20  Doug Evans  <dje@google.com>
1611
1612         PR server/17147
1613         * remote.c (putpkt_binary): Add text to error message.
1614
1615 2014-07-20  Yao Qi  <yao@codesourcery.com>
1616
1617         * eval.c: Remove "Chill" from comments.
1618         * gdbtypes.h: Likewise.
1619         * symtab.h: Likewise.
1620
1621 2014-07-20  Yao Qi  <yao@codesourcery.com>
1622
1623         * std-operator.def: Update comments to TERNOP_SLICE.
1624
1625 2014-07-20  Yao Qi  <yao@codesourcery.com>
1626
1627         * std-operator.def: Remove BINOP_RANGE.
1628         * breakpoint.c (watchpoint_exp_is_const): Update.
1629         * expprint.c (dump_subexp_body_standard): Likewise.
1630         * eval.c (init_array_element): Remove dead code.
1631         (evaluate_subexp_standard): Likewise.
1632
1633 2014-07-20  Yao Qi  <yao@codesourcery.com>
1634
1635         * std-operator.def: Remove BINOP_IN.
1636         * breakpoint.c (watchpoint_exp_is_const): Update.
1637         * eval.c (evaluate_subexp_standard): Likewise.
1638         * expprint.c (dump_subexp_body_standard): Likewise.
1639
1640 2014-07-19  Ajit Agarwal  <ajitkum@xilinx.com>
1641
1642         * microblaze-tdep.c (microblaze_register_names): Add
1643         the rshr and rslr register names.
1644         (microblaze_gdbarch_init): Use of tdesc_has_registers.
1645         Use of tdesc_find_feature. Use of tdesc_data_alloc.
1646         Use of tdesc_numbered_register. Use of
1647         microblaze_register_g_packet_guesses. Use of
1648         tdesc_use_registers. Use of set_gdbarch_register_type.
1649         (microblaze_register_g_packet_guesses): New.
1650         * microblaze-tdep.h (microblaze_reg_num): Add
1651         field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1652         MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1653         (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1654         * features/microblaze-core.xml: New file.
1655         * features/microblaze-stack-protect.xml: New file.
1656         * features/microblaze-with-stack-protect.c: New file.
1657         * features/microblaze-with-stack-protect.xml: New file.
1658         * features/microblaze.xml: New file.
1659         * features/microblaze.c: New file.
1660         * features/Makefile (microblaze-with-stack-protect): Add
1661         microblaze-with-stack-protect microblaze and microblaze-expedite.
1662         * regformats/microblaze-with-stack-protect.dat: New file.
1663         * regformats/microblaze.dat: New file.
1664         * doc/gdb.texinfo (MicroBlaze Features): Added.
1665
1666 2014-07-18  Tom Tromey  <tromey@redhat.com>
1667
1668         * exec.c (exec_ops): Now static.
1669         * exec.h (exec_ops): Don't declare.
1670
1671 2014-07-18  Tom Tromey  <tromey@redhat.com>
1672
1673         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1674         to find_target_beneath.
1675         * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1676         find_target_beneath.
1677         (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1678
1679 2014-07-18  Tom Tromey  <tromey@redhat.com>
1680
1681         PR gdb/17130:
1682         * utils.c (quit): Use target_supports_terminal_ours.
1683         * target.h (target_supports_terminal_ours): Declare.
1684         * target.c (target_supports_delete_record): Don't check
1685         to_delete_record against NULL.
1686         (target_supports_terminal_ours): New function.
1687
1688 2014-07-18  Tom Tromey  <tromey@redhat.com>
1689
1690         PR gdb/17130:
1691         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1692         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1693         (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1694         * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1695         * windows-nat.c (windows_xfer_partial): Always delegate.
1696         * record-btrace.c (record_btrace_xfer_partial): Simplify
1697         delegation.
1698         (record_btrace_fetch_registers, record_btrace_store_registers)
1699         (record_btrace_prepare_to_store, record_btrace_resume)
1700         (record_btrace_wait, record_btrace_find_new_threads)
1701         (record_btrace_thread_alive): Likewise.
1702         * procfs.c (procfs_xfer_partial): Always delegate.
1703         * corelow.c (core_xfer_partial): Always delegate.
1704         * sol-thread.c (sol_find_new_threads): Simplify delegation.
1705
1706 2014-07-18  Tom Tromey  <tromey@redhat.com>
1707
1708         * exec.c (exec_make_note_section): Move earlier.
1709
1710 2014-07-17  Doug Evans  <dje@google.com>
1711
1712         PR gdb/17170
1713         * maint.c (count_symtabs_and_blocks): Handle NULL
1714         current_program_space.
1715         (report_command_stats): Check global enabled flag in addition to
1716         recorded enabled flag.
1717         (make_command_stats_cleanup): Handle msg_type == 0, startup.
1718
1719 2014-07-16  Pedro Alves  <palves@redhat.com>
1720
1721         * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1722
1723 2014-07-16  Tom Tromey  <tromey@redhat.com>
1724
1725         * target.h (struct target_ops) <to_delete_record>: Reformat
1726         comment.
1727
1728 2014-07-16  Tom Tromey  <tromey@redhat.com>
1729
1730         * target-delegates.c: Rebuild.
1731
1732 2014-07-15  Pierre Langlois  <pierre.langlois@embecosm.com>
1733
1734         * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1735         (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1736         (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1737         (avr_pointer_to_address): Likewise.
1738         (avr_address_class_type_flags): New function.
1739         (avr_address_class_type_flags_to_name): Likewise.
1740         (avr_address_class_name_to_type_flags): Likewise.
1741         (avr_gdbarch_init): Set address_class_type_flags,
1742         address_class_type_flags_to_name and
1743         address_class_name_to_type_flags.
1744
1745 2014-07-15  Pedro Alves  <palves@redhat.com>
1746
1747         * linux-nat.c (kill_callback): Save errno and work with saved
1748         copy.
1749
1750 2014-07-15  Simon Marchi  <simon.marchi@ericsson.com>
1751
1752         * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
1753
1754 2014-07-14  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
1755
1756         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
1757         breakpoint support correctly.
1758
1759 2014-07-14  Pedro Alves  <palves@redhat.com>
1760
1761         * utils.c (prompt_for_continue): Call target_terminal_ours.
1762
1763 2014-07-14  Pedro Alves  <palves@redhat.com>
1764
1765         * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
1766         catch_errors.  Don't re-enable stdin or notify observers where,
1767         and rethrow error.
1768         (fetch_inferior_event_wrapper): Delete.
1769
1770 2014-07-14  Pedro Alves  <palves@redhat.com>
1771
1772         PR gdb/17072
1773         * top.c: Include "inf-loop.h".
1774         (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
1775         field.
1776         (gdb_readline_wrapper_cleanup): Make the target async again, if it
1777         was async before.
1778         (gdb_readline_wrapper): Store whether the target is async, and
1779         make it sync.
1780
1781 2014-07-14  Pedro Alves  <palves@redhat.com>
1782
1783         PR gdb/17072
1784         * top.c (gdb_readline_wrapper_line): Tweak comment.
1785         (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
1786         the input handler callback.
1787
1788 2014-07-14  Pedro Alves  <palves@redhat.com>
1789
1790         PR gdb/17072
1791         * main.c: Include event-top.h.
1792         (handle_command_errors): New function.
1793         (catch_command_errors, catch_command_errors_const): Use it.
1794
1795 2014-07-14  Pedro Alves  <palves@redhat.com>
1796
1797         * exceptions.c (catch_command_errors, catch_command_errors_const):
1798         Moved to main.c.
1799         * exceptions.h (catch_command_errors_ftype)
1800         (catch_command_errors_const_ftype): Moved to main.c.
1801         (catch_command_errors, catch_command_errors_const): Delete
1802         declarations.
1803         * main.c (catch_command_errors_ftype)
1804         (catch_command_errors_const_ftype): Moved here from exceptions.h.
1805         (catch_command_errors, catch_command_errors_const)): Moved here
1806         from exceptions.c and make static.
1807
1808 2014-07-14  Pedro Alves  <palves@redhat.com>
1809
1810         * exceptions.c (print_any_exception): Delete.
1811         (catch_exceptions_with_msg): Use exception_print instead of
1812         print_any_exception.
1813         (catch_errors): Use exception_fprintf instead of
1814         print_any_exception.
1815         (catch_command_errors, catch_command_errors_const): Use
1816         exception_print instead of print_any_exception.
1817
1818 2014-07-14  Pedro Alves  <palves@redhat.com>
1819
1820         * infcall.c (run_inferior_call): Set 'sync_execution' while
1821         running the inferior call.
1822
1823 2014-07-14  Pedro Alves  <palves@redhat.com>
1824
1825         * value.c (value_contents_equal): Delete function.
1826         * value.h (value_contents_equal): Delete declaration.
1827
1828 2014-07-14  Tom Tromey  <tromey@redhat.com>
1829
1830         PR exp/17106:
1831         * gdbtypes.c (is_dynamic_type_internal): New function, from
1832         is_dynamic_type.
1833         (is_dynamic_type): Rewrite.
1834         (resolve_dynamic_union): Use resolve_dynamic_type_internal.
1835         (resolve_dynamic_struct): Likewise.
1836         (resolve_dynamic_type_internal): New function, from
1837         resolve_dynamic_type.
1838         (resolve_dynamic_type): Rewrite.
1839
1840 2014-07-14  Tom Tromey  <tromey@redhat.com>
1841
1842         * target.c (target_require_runnable): Also check record_stratum.
1843         Update comment.
1844
1845 2014-07-11  Yao Qi  <yao@codesourcery.com>
1846
1847         * arm-tdep.c (thumb_analyze_prologue): Break the loop if
1848         thumb_instruction_restores_sp return true.
1849
1850 2014-07-11  Yao Qi  <yao@codesourcery.com>
1851
1852         * arm-tdep.c (thumb_instruction_restores_sp): New function.
1853         (thumb_in_function_epilogue_p): Call
1854         thumb_instruction_restores_sp.
1855
1856 2014-07-11  Yao Qi  <yao@codesourcery.com>
1857
1858         * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
1859         'add sp, #imm'.
1860         (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
1861
1862 2014-07-11  Gary Benson  <gbenson@redhat.com>
1863
1864         * amd64-linux-nat.c (gdbcore.h): Remove include.
1865         (regset.h): Likewise.
1866         (nat/linux-btrace.h): Likewise.
1867         (btrace.h): Likewise.
1868         (gdb_assert.h): Likewise.
1869         (string.h): Likewise.
1870         (sys/uio.h): Likewise.
1871         (sys/debugreg.h): Likewise.
1872         (sys/syscall.h): Likewise.
1873         (sys/procfs.h): Likewise.
1874         (sys/user.h): Likewise.
1875         (asm/ptrace.h): Likewise.
1876         (i386-nat.h): Likewise.
1877         * i386-linux-nat.c (i386-nat.h): Likewise.
1878         (regset.h): Likewise.
1879         (target.h): Likewise.
1880         (linux-nat.h): Likewise.
1881         (nat/linux-btrace.h): Likewise.
1882         (btrace.h): Likewise.
1883         (gdb_assert.h): Likewise.
1884         (string.h): Likewise.
1885         (sys/uio.h): Likewise.
1886         (sys/user.h): Likewise.
1887         (sys/procfs.h): Likewise.
1888         (sys/reg.h): Likewise.
1889         (sys/debugreg.h): Likewise.
1890         (ORIG_EAX): Remove definition.
1891
1892 2014-07-11  Gary Benson  <gbenson@redhat.com>
1893
1894         * i386-linux-nat.h: New file.
1895         * x86-linux-nat.h: Likewise.
1896         * x86-linux-nat.c: Likewise.
1897         * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
1898         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
1899         * config/i386/linux64.mh (NATDEPFILES): Likewise.
1900         * amd64-linux-nat.c (x86-linux-nat.h): New include.
1901         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1902         (PTRACE_SETREGSET): Likewise.
1903         (arch_lwp_info): Now in x86-linux-nat.c.
1904         (have_ptrace_getregset): Now in x86-linux-nat.h.
1905         (x86_linux_dr_get): Now in x86-linux-nat.c.
1906         (x86_linux_dr_set): Likewise.
1907         (x86_linux_dr_get_addr): Likewise.
1908         (x86_linux_dr_get_control): Likewise.
1909         (x86_linux_dr_get_status): Likewise.
1910         (update_debug_registers_callback): Likewise.
1911         (x86_linux_dr_set_control): Likewise.
1912         (x86_linux_dr_set_addr): Likewise.
1913         (x86_linux_prepare_to_resume): Likewise.
1914         (x86_linux_new_thread): Likewise.
1915         (x86_linux_new_fork): Likewise.
1916         (x86_linux_get_thread_area): Likewise.
1917         (super_post_startup_inferior): Likewise.
1918         (x86_linux_child_post_startup_inferior): Likewise.
1919         (AMD64_LINUX_USER64_CS): Likewise.
1920         (AMD64_LINUX_X32_DS): Likewise.
1921         (x86_linux_read_description): Likewise.
1922         (x86_linux_enable_btrace): Likewise.
1923         (x86_linux_disable_btrace): Likewise.
1924         (x86_linux_teardown_btrace): Likewise.
1925         (x86_linux_read_btrace): Likewise.
1926         (x86_linux_create_target): Likewise.
1927         (x86_linux_add_target): Likewise.
1928         * i386-linux-nat.c (x86-linux-nat.h): New include.
1929         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1930         (PTRACE_SETREGSET): Likewise.
1931         (arch_lwp_info): Now in x86-linux-nat.c.
1932         (have_ptrace_getregset): Now in x86-linux-nat.h.
1933         (x86_linux_dr_get): Now in x86-linux-nat.c.
1934         (x86_linux_dr_set): Likewise.
1935         (x86_linux_dr_get_addr): Likewise.
1936         (x86_linux_dr_get_control): Likewise.
1937         (x86_linux_dr_get_status): Likewise.
1938         (update_debug_registers_callback): Likewise.
1939         (x86_linux_dr_set_control): Likewise.
1940         (x86_linux_dr_set_addr): Likewise.
1941         (x86_linux_prepare_to_resume): Likewise.
1942         (x86_linux_new_thread): Likewise.
1943         (x86_linux_new_fork): Likewise.
1944         (x86_linux_get_thread_area): Likewise.
1945         (super_post_startup_inferior): Likewise.
1946         (x86_linux_child_post_startup_inferior): Likewise.
1947         (AMD64_LINUX_USER64_CS): Likewise.
1948         (AMD64_LINUX_X32_DS): Likewise.
1949         (x86_linux_read_description): Likewise.
1950         (x86_linux_enable_btrace): Likewise.
1951         (x86_linux_disable_btrace): Likewise.
1952         (x86_linux_teardown_btrace): Likewise.
1953         (x86_linux_read_btrace): Likewise.
1954         (x86_linux_create_target): Likewise.
1955         (x86_linux_add_target): Likewise.
1956
1957 2014-07-11  Gary Benson  <gbenson@redhat.com>
1958
1959         * amd64-linux-nat.c: Comment and whitespace changes.
1960         * i386-linux-nat.c: Comment and whitespace changes.
1961
1962 2014-07-11  Gary Benson  <gbenson@redhat.com>
1963
1964         * amd64-linux-nat.c (x86_linux_create_target): New function.
1965         (x86_linux_add_target): Likewise.
1966         (_initialize_amd64_linux_nat): Delegate to the above new functions.
1967         * i386-linux-nat.c (x86_linux_create_target): New function.
1968         (x86_linux_add_target): Likewise.
1969         (_initialize_i386_linux_nat): Delegate to the above new functions.
1970
1971 2014-07-11  Gary Benson  <gbenson@redhat.com>
1972
1973         * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
1974         (ps_get_thread_area): Delegate to the above in 32-bit mode.
1975         * i386-linux-nat.c (x86_linux_get_thread_area): New function.
1976         (ps_get_thread_area): Delegate to the above.
1977
1978 2014-07-11  Gary Benson  <gbenson@redhat.com>
1979
1980         * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
1981         x86_linux_read_description.  All uses updated.  amd64-specific
1982         code conditionalized.  Conditionalized i386-specific code added.
1983         Redundant cast removed.
1984         * i386-linux-nat.c (i386_linux_read_description): Renamed to
1985         x86_linux_read_description.  All uses updated.  i386-specific
1986         code conditionalized.  Conditionalized amd64-specific code added.
1987         One sizeof replaced with the actual type it is describing.
1988
1989 2014-07-11  Gary Benson  <gbenson@redhat.com>
1990
1991         * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
1992         x86_linux_dr_get.  All uses updated.
1993         (amd64_linux_dr_set): Renamed to
1994         x86_linux_dr_set.  All uses updated.
1995         (amd64_linux_dr_get_addr): Renamed to
1996         x86_linux_dr_get_addr.  All uses updated.
1997         (amd64_linux_dr_get_control): Renamed to
1998         x86_linux_dr_get_control.  All uses updated.
1999         (amd64_linux_dr_get_status): Renamed to
2000         x86_linux_dr_get_status.  All uses updated.
2001         (amd64_linux_dr_set_control): Renamed to
2002         x86_linux_dr_set_control.  All uses updated.
2003         (amd64_linux_dr_set_addr): Renamed to
2004         x86_linux_dr_set_addr.  All uses updated.
2005         (amd64_linux_prepare_to_resume): Renamed to
2006         x86_linux_prepare_to_resume.  All uses updated.
2007         (amd64_linux_new_thread): Renamed to
2008         x86_linux_new_thread.  All uses updated.
2009         (amd64_linux_new_fork): Renamed to
2010         x86_linux_new_fork.  All uses updated.
2011         (amd64_linux_child_post_startup_inferior): Renamed to
2012         x86_linux_child_post_startup_inferior.  All uses updated.
2013         (amd64_linux_enable_btrace): Renamed to
2014         x86_linux_enable_btrace.  All uses updated.
2015         (amd64_linux_disable_btrace): Renamed to
2016         x86_linux_disable_btrace.  All uses updated.
2017         (amd64_linux_teardown_btrace): Renamed to
2018         x86_linux_teardown_btrace.  All uses updated.
2019         (amd64_linux_read_btrace): Renamed to
2020         x86_linux_read_btrace.  All uses updated.
2021         * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2022         x86_linux_dr_get.  All uses updated.
2023         (i386_linux_dr_set): Renamed to
2024         x86_linux_dr_set.  All uses updated.
2025         (i386_linux_dr_get_addr): Renamed to
2026         x86_linux_dr_get_addr.  All uses updated.
2027         (i386_linux_dr_get_control): Renamed to
2028         x86_linux_dr_get_control.  All uses updated.
2029         (i386_linux_dr_get_status): Renamed to
2030         x86_linux_dr_get_status.  All uses updated.
2031         (i386_linux_dr_set_control): Renamed to
2032         x86_linux_dr_set_control.  All uses updated.
2033         (i386_linux_dr_set_addr): Renamed to
2034         x86_linux_dr_set_addr.  All uses updated.
2035         (i386_linux_prepare_to_resume): Renamed to
2036         x86_linux_prepare_to_resume.  All uses updated.
2037         (i386_linux_new_thread): Renamed to
2038         x86_linux_new_thread.  All uses updated.
2039         (i386_linux_new_fork): Renamed to
2040         x86_linux_new_fork.  All uses updated.
2041         (i386_linux_child_post_startup_inferior): Renamed to
2042         x86_linux_child_post_startup_inferior.  All uses updated.
2043         (i386_linux_enable_btrace): Renamed to
2044         x86_linux_enable_btrace.  All uses updated.
2045         (i386_linux_disable_btrace): Renamed to
2046         x86_linux_disable_btrace.  All uses updated.
2047         (i386_linux_teardown_btrace): Renamed to
2048         x86_linux_teardown_btrace.  All uses updated.
2049         (i386_linux_read_btrace): Renamed to
2050         x86_linux_read_btrace.  All uses updated.
2051
2052 2014-07-11  Adrian Sendroiu  <adrian.sendroiu@freescale.com>
2053
2054         * remote.c (extended_remote_post_attach): New function.
2055         (init_extended_remote_ops): Install it as to_post_attach method.
2056
2057 2014-07-09  Pedro Alves  <palves@redhat.com>
2058
2059         * infcmd.c (attach_command_post_wait): Don't call
2060         target_terminal_inferior here.
2061         (attach_command): Call it here instead.
2062
2063 2014-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
2064
2065         * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2066         field.
2067         * c-varobj.c (c_is_path_expr_parent): New function, moved core
2068         from varobj.c, with additional checks.
2069         (c_varobj_ops): Fill in is_path_expr_parent field.
2070         (cplus_varobj_ops): Fill in is_path_expr_parent field.
2071         * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2072         field.
2073         * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2074         ops method.
2075         (varobj_default_is_path_expr_parent): New function.
2076         * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2077         (varobj_default_is_path_expr_parent): Declare new function.
2078
2079 2014-07-08  Markus Metzger  <markus.t.metzger@intel.com>
2080
2081         * infcmd.c (finish_backward): Turn internal error into normal error.
2082
2083 2014-07-07  Pedro Alves  <palves@redhat.com>
2084
2085         PR gdb/17096
2086         * remote.c (async_handle_remote_sigint)
2087         (async_handle_remote_sigint_twice): Call
2088         gdb_call_async_signal_handler instead of
2089         mark_async_signal_handler.
2090
2091 2014-07-07  Tom Tromey  <tromey@redhat.com>
2092
2093         * target-delegates.c: Rebuild.
2094         * target.c (target_info_record): Remove.
2095         * record.c (info_record_command): Unconditionally call
2096         to_info_record.
2097         * target.h (struct target_ops) <to_info_record>: Use
2098         TARGET_DEFAULT_IGNORE.
2099         (target_info_record): Remove.
2100
2101 2014-07-07  Tom Tromey  <tromey@redhat.com>
2102
2103         * target.h (struct target_ops) <to_get_thread_local_address>: Use
2104         TARGET_DEFAULT_NORETURN.
2105         * target.c (generic_tls_error): New function.
2106         (target_translate_tls_address): Don't search target stack.
2107         * target-delegates.c: Rebuild.
2108         * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2109         stack.
2110         * linux-thread-db.c (thread_db_get_thread_local_address):
2111         Unconditionally call beneath target.
2112
2113 2014-07-03  Marc Khouzam  <marc.khouzam@ericsson.com>
2114
2115         * cli/cli-logging.c (pop_output_files): Assign targerr to
2116         gdb_stdtargerr.
2117
2118 2014-07-03  Andrew Burgess  <andrew.burgess@embecosm.com>
2119
2120         * MAINTAINERS (Write After Approval): Update my email address.
2121
2122 2014-07-02  Gary Benson  <gbenson@redhat.com>
2123
2124         * proc-service.c (ps_xfer_memory): Update comment.
2125         (ps_pstop): Remove unused function.
2126         (ps_pcontinue): Likewise.
2127         (ps_lstop): Likewise.
2128         (ps_lcontinue): Likewise.
2129         (ps_lgetxregsize): Likewise.
2130         (ps_lgetxregs): Likewise.
2131         (ps_lsetxregs): Likewise.
2132         (ps_plog): Likewise.
2133         (ps_ptread): Likewise.
2134         (ps_ptwrite): Likewise.
2135
2136 2014-07-01  Mark Wielaard  <mjw@redhat.com>
2137
2138         * dwarf2read.c (add_array_cv_type): New function.
2139         (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2140         (read_tag_volatile_type): Likewise.
2141
2142 2014-07-01  Tom Tromey  <tromey@redhat.com>
2143
2144         * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2145         * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2146         * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2147         (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2148         * command.h (cmd_cfunc_ftype): Move earlier.
2149         (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2150         (add_com, add_info): Use cmd_cfunc_ftype.
2151
2152 2014-06-30  Tom Tromey  <tromey@redhat.com>
2153
2154         * symtab.c (operator_chars): Make parameters and return type
2155         const.
2156         (file_matches): Make "files" const.
2157         (struct search_symbols_data) <files>: Now const.
2158         (search_symbols): Make "regexp" and "files" parameters const.
2159         Update.
2160         (symtab_symbol_info): Remove cast.
2161         (rbreak_command): Update.
2162         * symtab.h (search_symbols): Update.
2163
2164 2014-06-27  Yao Qi  <yao@codesourcery.com>
2165
2166         * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2167         Change parameter type to 'struct thread_info *'.  Caller
2168         updated.
2169         * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2170         Update declaration.
2171         * dummy-frame.c (struct dummy_frame_id): New.
2172         (dummy_frame_id_eq): New function.
2173         (struct dummy_frame) <id>: Change its type to 'struct
2174         dummy_frame_id'.
2175         (dummy_frame_push): Add parameter ptid and save it in
2176         dummy_frame_id.
2177         (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2178         inferior_ptid.
2179         (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2180         to inferior_ptid.
2181         (lookup_dummy_frame): Change parameter type to 'struct
2182         dummy_frame_id *'.  Callers updated.  Call dummy_frame_id_eq
2183         instead of frame_id_eq.
2184         (dummy_frame_pop): Add parameter ptid.  Callers updated.
2185         Update comments.  Compose dummy_frame_id and pass it to
2186         lookup_dummy_frame.
2187         (dummy_frame_discard): Add parameter ptid.
2188         (dummy_frame_sniffer): Compose dummy_frame_id and call
2189         dummy_frame_id_eq instead of frame_id_eq.
2190         (fprint_dummy_frames): Print ptid.
2191         * dummy-frame.h: Remove comments.
2192         (dummy_frame_push): Add ptid in declaration.
2193         (dummy_frame_pop, dummy_frame_discard): Likewise.
2194
2195 2014-06-26  Tom Tromey  <tromey@redhat.com>
2196
2197         * cli/cli-cmds.c (error_no_arg): Make "why" const.
2198         * command.h (error_no_arg): Update.
2199
2200 2014-06-26  Tom Tromey  <tromey@redhat.com>
2201
2202         * cli/cli-setshow.c (do_set_command): Make "arg" const.
2203         (do_show_command): Make "arg" const.
2204         * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2205
2206 2014-06-26  Tom Tromey  <tromey@redhat.com>
2207
2208         * record-full.c (record_full_get_bookmark): Make "args" const.
2209         (record_full_goto_bookmark): Make "raw_bookmark" const.
2210         * record.c (record_goto): New function.
2211         (cmd_record_goto): Use it.  Now static.
2212         * record.h (record_goto): Declare.
2213         (cmd_record_goto): Remove declaration.
2214         * target-delegates.c: Rebuild.
2215         * target.h (struct target_ops) <to_get_bookmark,
2216         to_goto_bookmark>: Make parameter const.
2217
2218 2014-06-26  Tom Tromey  <tromey@redhat.com>
2219
2220         * defs.h (generic_load): Update.
2221         * m32r-rom.c (m32r_load_gen): Make "filename" const.
2222         * monitor.c (monitor_load): Make "args" const.
2223         * remote-m32r-sdi.c (m32r_load): Make "args" const.
2224         * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2225         const.
2226         (mips_load): Make "file" const.
2227         * remote-sim.c (gdbsim_load): Make "args" const.
2228         * remote.c (remote_load): Make "name" const.
2229         * symfile.c (generic_load): Make "args" const.
2230         * target-delegates.c: Rebuild.
2231         * target.c (target_load): Make "arg" const.
2232         (debug_to_load): Make "args" const.
2233         * target.h (struct target_ops) <to_load>: Make parameter const.
2234         (target_load): Update.
2235
2236 2014-06-26  Tom Tromey  <tromey@redhat.com>
2237
2238         PR symtab/16902:
2239         * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2240         (dwarf2_physname, read_partial_die)
2241         (guess_partial_die_structure_name, fixup_partial_die)
2242         (guess_full_die_structure_name, anonymous_struct_prefix)
2243         (dwarf2_name): Use per-BFD obstack.
2244
2245 2014-06-26  Yao Qi  <yao@codesourcery.com>
2246
2247         * dummy-frame.c (dummy_frame_sniffer): Move local variables
2248         dummyframe and this_id into inner block below.
2249
2250 2014-06-26  Yao Qi  <yao@codesourcery.com>
2251
2252         * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2253         with "signal_pass[0]" in the initialization of signal_pass.
2254
2255 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
2256
2257         * record-btrace.c (record_btrace_generating_corefile)
2258         (record_btrace_prepare_to_generate_core)
2259         (record_btrace_done_generating_core): New.
2260         (record_btrace_xfer_partial, record_btrace_fetch_registers)
2261         (record_btrace_store_registers, record_btrace_prepare_to_store):
2262         Forward request when generating a core file.
2263         (record_btrace_open): Set record_btrace_generating_corefile to zero.
2264         (init_record_btrace_ops): Set to_prepare_to_generate_core and
2265         to_done_generating_core.
2266
2267 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
2268
2269         * target.h (target_ops) <to_prepare_to_generate_core>
2270         <to_done_generating_core>: New.
2271         (target_prepare_to_generate_core, target_done_generating_core): New.
2272         * target.c (target_prepare_to_generate_core)
2273         (target_done_generating_core): New.
2274         * target-delegates.c: Regenerate.
2275         * gcore.c: (write_gcore_file): Rename to ...
2276         (write_gcore_file_1): ...this.
2277         (write_gcore_file): Call target_prepare_to_generate_core
2278         and target_done_generating_core.
2279
2280 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
2281
2282         * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2283         * gcore.c (write_gcore_file): Free memory returned from
2284         make_corefile_notes.
2285         * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2286         * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2287
2288 2014-06-24  Yao Qi  <yao@codesourcery.com>
2289
2290         * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2291         (arm_linux_init_abi): Set skip_trampoline_code with
2292         gdbarch_skip_trampoline_code instead of
2293         find_solib_trampoline_target.
2294
2295 2014-06-24  Yao Qi  <yao@codesourcery.com>
2296
2297         * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2298         arm_skip_bx_reg returns non-zero.
2299
2300 2014-06-24  Yao Qi  <yao@codesourcery.com>
2301
2302         * arm-tdep.c (arm_skip_bx_reg): New function.
2303         (arm_skip_stub): Call arm_skip_bx_reg.
2304
2305 2014-06-23  Don Breazeal  <donb@codesourcery.com>
2306
2307         * MAINTAINERS: Add myself as write-after-approval maintainer.
2308
2309 2014-06-23  Pedro Alves  <palves@redhat.com>
2310
2311         * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2312         DR_CONTROL before setting DR0..DR3.
2313         * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2314         * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2315         bits of DR_CONTROL related to the debug register slot being
2316         disabled.  If all slots are vacant, clear local slowdown as well,
2317         and assert DR_CONTROL is 0.
2318
2319 2014-06-23  Siva Chandra Reddy  <sivachandra@google.com>
2320
2321         * python/lib/gdb/command/xmethods.py
2322         (get_method_matchers_in_loci):  Lookup xmethod matchers in the
2323         current progspace only if the string "progspace" matches LOCUS_RE.
2324
2325 2014-06-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
2326
2327         Fix --with-system-readline with readline-6.3 patch 5.
2328         * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2329         (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2330         types.
2331
2332 2014-06-20  Tom Tromey  <tromey@redhat.com>
2333
2334         * dwarf2read.c (dw2_get_real_path): Use correct type in
2335         OBSTACK_CALLOC.
2336         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2337
2338 2014-06-20  Gary Benson  <gbenson@redhat.com>
2339
2340         * common/gdb_thread_db.h: Moved to nat.  All includes updated.
2341         * common/glibc_thread_db.h: Likewise.
2342         * common/i386-cpuid.h: Likewise.
2343         * common/i386-gcc-cpuid.h: Likewise.
2344         * common/linux-btrace.h: Likewise.
2345         * common/linux-osdata.h: Likewise.
2346         * common/linux-procfs.h: Likewise.
2347         * common/linux-ptrace.h: Likewise.
2348         * common/mips-linux-watch.h: Likewise.
2349         * common/linux-btrace.c: Moved to nat.
2350         * common/linux-osdata.c: Likewise.
2351         * common/linux-procfs.c: Likewise.
2352         * common/linux-ptrace.c: Likewise.
2353         * common/mips-linux-watch.c: Likewise.
2354         * nat/gdb_thread_db.h: Moved from common.
2355         * nat/glibc_thread_db.h: Likewise.
2356         * nat/i386-cpuid.h: Likewise.
2357         * nat/i386-gcc-cpuid.h: Likewise.
2358         * nat/linux-btrace.c: Likewise.
2359         * nat/linux-btrace.h: Likewise.
2360         * nat/linux-osdata.c: Likewise.
2361         * nat/linux-osdata.h: Likewise.
2362         * nat/linux-procfs.c: Likewise.
2363         * nat/linux-procfs.h: Likewise.
2364         * nat/linux-ptrace.c: Likewise.
2365         * nat/linux-ptrace.h: Likewise.
2366         * nat/mips-linux-watch.c: Likewise.
2367         * nat/mips-linux-watch.h: Likewise.
2368         * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2369         (object file files): Reordered.
2370         * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2371         of glibc_thread_db.h.
2372
2373 2014-06-20  Gary Benson  <gbenson@redhat.com>
2374
2375         * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2376         (i386_dr_low_type): Moved to nat/i386-dregs.h.
2377         (i386_dr_low): Likewise.
2378         (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2379         (i386_dr_low_set_addr): Likewise.
2380         (i386_dr_low_get_addr): Likewise.
2381         (i386_dr_low_can_set_control): Likewise.
2382         (i386_dr_low_set_control): Likewise.
2383         (i386_dr_low_get_control): Likewise.
2384         (i386_dr_low_get_status): Likewise.
2385         (i386_get_debug_register_length): Likewise.
2386         * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2387         (i386_dr_low): Likewise.
2388         * nat/i386-dregs.c (i386-low.h): Remove include.
2389         (i386-nat.h): Likewise.
2390         (nat/i386-dregs.h): New include.
2391         (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2392         (i386_dr_low_set_addr): Likewise.
2393         (i386_dr_low_get_addr): Likewise.
2394         (i386_dr_low_can_set_control): Likewise.
2395         (i386_dr_low_set_control): Likewise.
2396         (i386_dr_low_get_control): Likewise.
2397         (i386_dr_low_get_status): Likewise.
2398         (i386_get_debug_register_length): Likewise.
2399         (debug_hw_points): Likewise.
2400
2401 2014-06-19  Iain Buclaw  <ibuclaw@gdcproject.org>
2402
2403         * Makefile.in (SFILES): Add d-exp.y.
2404         (YYFILES): Add d-exp.c.
2405         (YYOBJ): Add d-exp.o.
2406         (local-maintainer-clean): Delete d-exp.c.
2407         * d-exp.y: New file.
2408         * d-lang.h (d_parse): New declaration.
2409         (d_error): New declaration.
2410         * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2411         Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2412         PREC_ORDER operators.
2413         (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2414
2415 2014-06-19  Yao Qi  <yao@codesourcery.com>
2416
2417         * gdbthread.h (any_running): Remove the declaration.
2418         * thread.c (any_running): Remove.
2419
2420 2014-06-19  Yao Qi  <yao@codesourcery.com>
2421
2422         * gdbthread.h (struct thread_info) <state>: Change its type to
2423         'enum thread_state'.  Update comments.
2424
2425 2014-06-19  Pedro Alves  <palves@redhat.com>
2426
2427         * gdbthread.h (ALL_THREADS): Delete.
2428         (ALL_NON_EXITED_THREADS): New macro.
2429         * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2430         instead of ALL_THREADS.
2431         * infrun.c (find_thread_needs_step_over)
2432         (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2433         instead of ALL_THREADS.
2434         * record-btrace.c (record_btrace_open)
2435         (record_btrace_stop_recording, record_btrace_close)
2436         (record_btrace_is_replaying, record_btrace_resume)
2437         (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2438         * remote.c (append_pending_thread_resumptions): Likewise.
2439         * thread.c (thread_apply_all_command): Likewise.
2440
2441 2014-06-19  Gary Benson  <gbenson@redhat.com>
2442
2443         * i386-nat.c (i386_stopped_by_watchpoint):
2444         Use i386_dr_stopped_by_watchpoint.
2445         (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2446         (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2447
2448 2014-06-19  Gary Benson  <gbenson@redhat.com>
2449
2450         * nat/i386-dregs.c: New file.
2451         * Makefile.in (i386-dregs.o): New rule.
2452         * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2453         * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2454         * config/i386/darwin.mh (NATDEPFILES): Likewise.
2455         * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2456         * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2457         * config/i386/go32.mh (NATDEPFILES): Likewise.
2458         * config/i386/linux.mh (NATDEPFILES): Likewise.
2459         * config/i386/linux64.mh (NATDEPFILES): Likewise.
2460         * config/i386/mingw.mh (NATDEPFILES): Likewise.
2461         * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2462         * i386-nat.h (debug_hw_points): New declaration.
2463         * i386-nat.c (breakpoint.h): Remove include.
2464         (command.h): Likewise.
2465         (target.h): Likewise.
2466         (gdb_assert.h): Likewise.
2467         (debug_hw_points): Made nonstatic.
2468         (debug_printf): Now in i386-dregs.c.
2469         (TARGET_HAS_DR_LEN_8): Likewise.
2470         (DR_CONTROL_SHIFT): Likewise.
2471         (DR_CONTROL_SIZE): Likewise.
2472         (DR_RW_EXECUTE): Likewise.
2473         (DR_RW_WRITE): Likewise.
2474         (DR_RW_READ): Likewise.
2475         (DR_RW_IORW): Likewise.
2476         (DR_LEN_1): Likewise.
2477         (DR_LEN_2): Likewise.
2478         (DR_LEN_4): Likewise.
2479         (DR_LEN_8): Likewise.
2480         (DR_LOCAL_ENABLE_SHIFT): Likewise.
2481         (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2482         (DR_ENABLE_SIZE): Likewise.
2483         (DR_LOCAL_SLOWDOWN): Likewise.
2484         (DR_GLOBAL_SLOWDOWN): Likewise.
2485         (DR_CONTROL_RESERVED): Likewise.
2486         (I386_DR_CONTROL_MASK): Likewise.
2487         (I386_DR_VACANT): Likewise.
2488         (I386_DR_LOCAL_ENABLE): Likewise.
2489         (I386_DR_GLOBAL_ENABLE): Likewise.
2490         (I386_DR_DISABLE): Likewise.
2491         (I386_DR_SET_RW_LEN): Likewise.
2492         (I386_DR_GET_RW_LEN): Likewise.
2493         (I386_DR_WATCH_HIT): Likewise.
2494         (i386_wp_op_t): Likewise.
2495         (i386_show_dr): Likewise.
2496         (i386_length_and_rw_bits): Likewise.
2497         (i386_insert_aligned_watchpoint): Likewise.
2498         (i386_remove_aligned_watchpoint): Likewise.
2499         (i386_handle_nonaligned_watchpoint): Likewise.
2500         (i386_update_inferior_debug_regs): Likewise.
2501         (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2502         (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2503         (i386_region_ok_for_watchpoint):
2504         Use i386_dr_region_ok_for_watchpoint.
2505         (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2506
2507 2014-06-19  Gary Benson  <gbenson@redhat.com>
2508
2509         * i386-nat.c (i386_insert_hw_breakpoint): Use
2510         i386_insert_watchpoint.
2511         (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2512
2513 2014-06-19  Gary Benson  <gbenson@redhat.com>
2514
2515         * i386-nat.c (i386_dr_show): Renamed to
2516         i386_show_dr and made static.  All uses updated.
2517         (i386_dr_length_and_rw_bits): Renamed to
2518         i386_length_and_rw_bits and made static.
2519         All uses updated.
2520         (i386_dr_insert_aligned_watchpoint): Renamed to
2521         i386_insert_aligned_watchpoint and made static.
2522         All uses updated.
2523         (i386_dr_remove_aligned_watchpoint): Renamed to
2524         i386_remove_aligned_watchpoint and made static.
2525         All uses updated.
2526         (i386_dr_update_inferior_debug_regs): Renamed to
2527         i386_update_inferior_debug_regs and made static.
2528         All uses updated.
2529         * nat/i386-dregs.h (i386_dr_show): Removed.
2530         (i386_dr_length_and_rw_bits): Likewise.
2531         (i386_dr_insert_aligned_watchpoint): Likewise.
2532         (i386_dr_remove_aligned_watchpoint): Likewise.
2533         (i386_dr_update_inferior_debug_regs): Likewise.
2534
2535 2014-06-19  Gary Benson  <gbenson@redhat.com>
2536
2537         * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2538         * configure: Regenerate.
2539         * config.in: Likewise.
2540         * main.c (signal.h): New include.
2541         (setup_alternate_signal_stack): New function.
2542         (captured_main): Call the above.
2543         * cp-support.c (signal.h): New include.
2544         (catch_demangler_crashes): New flag.
2545         (SIGJMP_BUF): New define.
2546         (SIGSETJMP): Likewise.
2547         (SIGLONGJMP): Likewise.
2548         (gdb_demangle_jmp_buf): New static global.
2549         (gdb_demangle_attempt_core_dump): Likewise.
2550         (gdb_demangle_signal_handler): New function.
2551         (gdb_demangle): If catch_demangler_crashes is set, install the
2552         above signal handler before calling bfd_demangle, and restore
2553         the original signal handler afterwards.  Display the offending
2554         symbol and call demangler_warning the first time a segmentation
2555         fault is caught.
2556         (_initialize_cp_support): New maint set/show command.
2557
2558 2014-06-19  Gary Benson  <gbenson@redhat.com>
2559
2560         * utils.h (resource_limit_kind): New enum.
2561         (can_dump_core): New declaration.
2562         (warn_cant_dump_core): Likewise.
2563         (dump_core): Likewise.
2564         * utils.c (dump_core): Made nonstatic.  Added new
2565         parameter "limit_kind".
2566         (can_dump_core): Made nonstatic. Moved printing code to...
2567         (warn_cant_dump_core): New function.
2568         (can_dump_core_warn): Likewise.
2569         (internal_vproblem): Replace calls to can_dump_core with
2570         calls to can_dump_core_warn.  Supply new argument to each.
2571
2572 2014-06-19  Gary Benson  <gbenson@redhat.com>
2573
2574         * utils.h (demangler_vwarning): New declaration.
2575         (demangler_warning): Likewise.
2576         * utils.c (struct internal_problem)
2577         <user_settable_should_quit>: New field.
2578         <user_settable_should_dump_core>: Likewise
2579         (internal_error_problem): Add values for above new fields.
2580         (internal_warning_problem): Likewise.
2581         (demangler_warning_problem): New static global.
2582         (demangler_vwarning): New function.
2583         (demangler_warning): Likewise.
2584         (add_internal_problem_command): Selectively add commands.
2585         (_initialize_utils): New internal problem command.
2586         * maint.c (maintenance_demangler_warning): New function.
2587         (_initialize_maint_cmds): New command.
2588
2589 2014-06-18  Tom Tromey  <tromey@redhat.com>
2590
2591         * f-valprint.c (info_common_command_for_block): Update.
2592         * symtab.h (struct general_symbol_info) <common_block>: Now
2593         const.
2594
2595 2014-06-18  Tom Tromey  <tromey@redhat.com>
2596
2597         * symtab.h (struct symtab) <blockvector>: Now const.
2598         * ada-lang.c (ada_add_global_exceptions): Update.
2599         * buildsym.c (augment_type_symtab): Update.
2600         * dwarf2read.c (dw2_lookup_symbol): Update.
2601         * jit.c (finalize_symtab): Update.
2602         * jv-lang.c (add_class_symtab_symbol): Update.
2603         * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2604         Update.
2605         * objfiles.c (objfile_relocate1): Update.
2606         * psymtab.c (lookup_symbol_aux_psymtabs)
2607         (maintenance_check_psymtabs): Update.
2608         * python/py-symtab.c (stpy_global_block, stpy_static_block):
2609         Update.
2610         * spu-tdep.c (spu_catch_start): Update.
2611         * symmisc.c (dump_symtab_1): Update.
2612         * symtab.c (lookup_global_symbol_from_objfile)
2613         (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2614         (basic_lookup_transparent_type_quick)
2615         (basic_lookup_transparent_type, find_pc_sect_symtab)
2616         (find_pc_sect_line, search_symbols): Update.
2617         * block.c (find_block_in_blockvector): Make "bl" const.
2618         (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2619         const.
2620         (blockvector_contains_pc): Make "bv" const.
2621         (block_for_pc_sect): Update.
2622         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2623         (blockvector_contains_pc): Update.
2624         * breakpoint.c (resolve_sal_pc): Update.
2625         * inline-frame.c (block_starting_point_at): Update.
2626
2627 2014-06-18  Tom Tromey  <tromey@redhat.com>
2628
2629         * completer.c (complete_line): Make "line_buffer" const.
2630         * completer.h (complete_line): Update.
2631
2632 2014-06-18  Tom Tromey  <tromey@redhat.com>
2633
2634         * symtab.c (add_macro_name): Remove unneeded cast.
2635
2636 2014-06-18  Tom Tromey  <tromey@redhat.com>
2637
2638         * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2639         * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2640
2641 2014-06-18  Tom Tromey  <tromey@redhat.com>
2642
2643         * probe.c (info_probes_for_ops): Make "arg" const.
2644         * probe.h (info_probes_for_ops): Update.
2645
2646 2014-06-18  Tom Tromey  <tromey@redhat.com>
2647
2648         * varobj.c (varobj_create): Update.
2649         * valops.c (value_of_this): Update.
2650         * tracepoint.c (add_local_symbols, scope_info): Update.
2651         * symtab.h (struct general_symbol_info) <block>: Now const.
2652         * symtab.c (skip_prologue_sal)
2653         (default_make_symbol_completion_list_break_on)
2654         (skip_prologue_using_sal): Update.
2655         * stack.h (iterate_over_block_locals)
2656         (iterate_over_block_local_vars): Update.
2657         * stack.c (print_frame_args): Update.
2658         (iterate_over_block_locals, iterate_over_block_local_vars): Make
2659         parameter const.
2660         (get_selected_block): Make return type const.
2661         * python/py-frame.c (frapy_block): Update.
2662         * python/py-block.c (gdbpy_block_for_pc): Update.
2663         * p-exp.y (%union) <bval>: Now const.
2664         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2665         * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2666         * m2-exp.y (%union) <bval>: Now const.
2667         * linespec.c (get_current_search_block): Make return type const.
2668         (create_sals_line_offset, find_label_symbols): Update.
2669         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2670         Update.
2671         (block_starting_point_at): Make "block" const.
2672         * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2673         (check_exception_resume): Update.
2674         * guile/scm-frame.c (gdbscm_frame_block): Update.
2675         * guile/scm-block.c (gdbscm_lookup_block): Update.
2676         * frame.h (get_frame_block): Update.
2677         (get_selected_block): Make return type const.
2678         * frame.c (frame_id_inner): Update.
2679         * f-valprint.c (info_common_command_for_block)
2680         (info_common_command): Update.
2681         * dwarf2loc.c (dwarf2_find_location_expression)
2682         (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2683         (locexpr_describe_location_piece): Update.
2684         * c-exp.y (%union) <bval>: Now const.
2685         * breakpoint.c (resolve_sal_pc): Update.
2686         * blockframe.c (get_frame_block):Make return type const.
2687         (get_pc_function_start, get_frame_function, find_pc_sect_function)
2688         (block_innermost_frame): Update.
2689         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2690         (block_for_pc, block_for_pc_sect): Update.
2691         * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2692         'pblock' const.
2693         (block_for_pc_sect, block_for_pc): Make return type const.
2694         * ax-gdb.c (gen_expr): Update.
2695         * alpha-mdebug-tdep.c (find_proc_desc): Update.
2696         * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2697         (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2698         (ada_read_var_value): Update.
2699         * ada-exp.y (struct name_info) <block>: Now const.
2700         (%union): Likewise.
2701         (block_lookup): Constify.
2702
2703 2014-06-18  Gary Benson  <gbenson@redhat.com>
2704
2705         * nat/i386-dregs.h: New file.
2706         * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2707         * i386-nat.h (i386-dregs.h): New include.
2708         (DR_FIRSTADDR): Now in i386-dregs.h.
2709         (DR_LASTADDR): Likewise.
2710         (DR_NADDR): Likewise.
2711         (DR_STATUS): Likewise.
2712         (DR_CONTROL): Likewise.
2713         (i386_debug_reg_state): Likewise.
2714         * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2715
2716 2014-06-18  Don Breazeal  <donb@codesourcery.com>
2717
2718         * breakpoint.c (set_longjmp_breakpoint): Call
2719         momentary_breakpoint_from_master with additional argument.
2720         (set_longjmp_breakpoint_for_call_dummy): Call
2721         momentary_breakpoint_from_master with additional argument.
2722         (set_std_terminate_breakpoint): Call
2723         momentary_breakpoint_from_master with additional argument.
2724         (momentary_breakpoint_from_master): Add argument to function
2725         definition and use it to initialize structure member flag.
2726         (clone_momentary_breakpoint): Call
2727         momentary_breakpoint_from_master with additional argument.
2728         * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2729         member flags set in momentary_breakpoint_from_master.
2730
2731 2014-06-18  Gary Benson  <gbenson@redhat.com>
2732
2733         * i386-nat.c (i386_show_dr): Renamed to
2734         i386_dr_show and made nonstatic.  All uses updated.
2735         (i386_length_and_rw_bits): Renamed to
2736         i386_dr_length_and_rw_bits and made nonstatic.
2737         All uses updated.
2738         (i386_insert_aligned_watchpoint): Renamed to
2739         i386_dr_insert_aligned_watchpoint and made nonstatic.
2740         All uses updated.
2741         (i386_remove_aligned_watchpoint): Renamed to
2742         i386_dr_remove_aligned_watchpoint and made nonstatic.
2743         All uses updated.
2744         (i386_update_inferior_debug_regs): Renamed to
2745         i386_dr_update_inferior_debug_regs and made nonstatic.
2746         All uses updated.
2747
2748 2014-06-18  Gary Benson  <gbenson@redhat.com>
2749
2750         * i386-nat.c (i386_dr_low_can_set_addr): New macro.
2751         (i386_dr_low_can_set_control): Likewise.
2752         (i386_dr_low_set_addr): Likewise.
2753         (i386_dr_low_set_control): Likewise.
2754         (i386_dr_low_get_addr): Likewise.
2755         (i386_dr_low_get_status): Likewise.
2756         (i386_dr_low_get_control): Likewise.
2757         (i386_insert_aligned_watchpoint): Use new macros.
2758         (i386_update_inferior_debug_regs): Likewise.
2759         (i386_stopped_data_address): Likewise.
2760
2761 2014-06-18  Gary Benson  <gbenson@redhat.com>
2762
2763         * i386-nat.c (i386_update_inferior_debug_regs) <state>:
2764         New parameter.  All uses updated.
2765
2766 2014-06-18  Gary Benson  <gbenson@redhat.com>
2767
2768         * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
2769         All uses updated.
2770
2771 2014-06-18  Gary Benson  <gbenson@redhat.com>
2772
2773         * i386-nat.c (debug_printf): New macro.
2774         (i386_get_debug_register_length): Likewise.
2775         (TARGET_HAS_DR_LEN_8): Use above macro.
2776         (i386_show_dr): Use debug_printf instead of puts_unfiltered
2777         and printf_unfiltered.  Use phex to format values.
2778
2779 2014-06-18  Gary Benson  <gbenson@redhat.com>
2780
2781         * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
2782         Make const.
2783
2784 2014-06-18  Gary Benson  <gbenson@redhat.com>
2785
2786         * i386-nat.c: Comment changes.
2787
2788 2014-06-18  Gary Benson  <gbenson@redhat.com>
2789
2790         * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
2791
2792 2014-06-18  Gary Benson  <gbenson@redhat.com>
2793
2794         * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
2795         (i386_insert_aligned_watchpoint): Likewise.
2796         (i386_remove_aligned_watchpoint): Likewise.
2797         (i386_handle_nonaligned_watchpoint): Likewise.
2798
2799 2014-06-18  Gary Benson  <gbenson@redhat.com>
2800
2801         * i386-nat.c: Whitespace changes.
2802
2803 2014-06-17  Samuel Bronson  <naesten@gmail.com>
2804
2805         * MAINTAINERS: Update Roland McGrath's email address.
2806         Thanks to Sergio Durigan Junior for pointing out that he left
2807         Red Hat a while ago, and giving me a current address.
2808
2809 2014-06-17  Tom Tromey  <tromey@redhat.com>
2810
2811         * utils.h (savestring): Remove declaration.
2812
2813 2014-06-17  Tom Tromey  <tromey@redhat.com>
2814
2815         * remote.c (extended_remote_run): Use make_cleanup_freeargv.
2816
2817 2014-06-16  Keith Seitz  <keiths@redhat.com>
2818
2819         PR mi/15863
2820         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
2821         to update the varobj if inferior_ptid is null_ptid.
2822
2823 2014-06-16  Tom Tromey  <tromey@redhat.com>
2824
2825         * target.h (struct target_ops) <to_info_proc>: Make parameter
2826         const.
2827         (target_info_proc): Update.
2828         * target.c (target_info_proc): Make "args" const.
2829         * procfs.c (procfs_info_proc): Update.
2830         * linux-tdep.c (linux_info_proc): Update.
2831         (linux_core_info_proc_mappings): Make "args" const.
2832         (linux_core_info_proc): Update.
2833         * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
2834         * gdbarch.c: Rebuild.
2835         * gdbarch.h: Rebuild.
2836         * corelow.c (core_info_proc): Update.
2837
2838 2014-06-16  Tom Tromey  <tromey@redhat.com>
2839
2840         * target.h (struct target_ops) <to_disconnect>: Make parameter
2841         const.
2842         (target_disconnect): Update.
2843         * target.c (target_disconnect): Make "args" const.
2844         * target-delegates.c: Rebuild.
2845         * remote.c (remote_disconnect): Update.
2846         * record.h (record_disconnect): Update.
2847         * record.c (record_disconnect): Update.
2848         * inf-child.c (inf_child_disconnect): Update.
2849
2850 2014-06-16  Tom Tromey  <tromey@redhat.com>
2851
2852         * target.h (struct target_ops) <to_rcmd>: Make "command" const.
2853         * target.c (debug_to_rcmd, default_rcmd): Update.
2854         * target-delegates.c: Rebuild.
2855         * remote.c (remote_rcmd): Update.
2856         * monitor.c (monitor_rcmd): Update.
2857
2858 2014-06-16  Pedro Alves  <palves@redhat.com>
2859
2860         * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
2861         (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
2862         have OBJF_SHARED set.
2863         * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
2864         (shared_objfile_contains_address_p): ... this.  Check OBJF_SHARED
2865         instead of OBJF_USERLOADED.
2866         * objfiles.h (OBJF_SHARED): Update comment.
2867         (userloaded_objfile_contains_address_p): Rename to ...
2868         (shared_objfile_contains_address_p): ... this, and update
2869         comments.
2870         * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
2871         new objfile.
2872         (remove_symbol_file_command): Skip objfiles that don't have
2873         OBJF_SHARED set.
2874
2875 2014-06-16  Tom Tromey  <tromey@redhat.com>
2876
2877         * minsyms.h (prim_record_minimal_symbol)
2878         (prim_record_minimal_symbol_and_info): Update comments.
2879
2880 2014-06-14  Eli Zaretskii  <eliz@gnu.org>
2881
2882         * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
2883         or --without-guile, according to how GDB was built.
2884
2885 2014-06-13  Tom Tromey  <tromey@redhat.com>
2886
2887         * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
2888         to help_list.
2889         * guile/guile.c (info_guile_command): Pass all_commands, not -1,
2890         to help_list.
2891         * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
2892         help_list.
2893         * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
2894         help_list.Pass all_commands, not -1, to help_list.
2895         * cli/cli-dump.c (dump_command, append_command)
2896         (srec_dump_command, ihex_dump_command, tekhex_dump_command)
2897         (binary_dump_command, binary_append_command): Pass all_commands,
2898         not -1, to help_list.
2899         * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
2900         -1, to help_list.
2901         * valprint.c (set_print, set_print_raw): Pass all_commands, not
2902         -1, to help_list.
2903         * typeprint.c (set_print_type): Pass all_commands, not -1, to
2904         help_list.
2905         * top.c (set_history): Pass all_commands, not -1, to help_list.
2906         * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
2907         all_commands, not -1, to help_list.
2908         * symfile.c (overlay_command): Pass all_commands, not -1, to
2909         help_list.
2910         * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
2911         help_list.
2912         * serial.c (serial_set_cmd): Pass all_commands, not -1, to
2913         help_list.
2914         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
2915         -1, to help_list.
2916         * remote.c (remote_command, set_remote_cmd): Pass all_commands,
2917         not -1, to help_list.
2918         * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
2919         not -1, to help_list.
2920         * maint.c (maintenance_command, maintenance_info_command)
2921         (maintenance_print_command, maintenance_set_cmd): Pass
2922         all_commands, not -1, to help_list.
2923         * macrocmd.c (macro_command): Pass all_commands, not -1, to
2924         help_list.
2925         * language.c (set_check): Pass all_commands, not -1, to help_list.
2926         * infcmd.c (unset_command): Pass all_commands, not -1, to
2927         help_list.
2928         * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
2929         help_list.
2930         * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
2931         help_list.
2932         * dcache.c (set_dcache_command): Pass all_commands, not -1, to
2933         help_list.
2934         * breakpoint.c (save_command): Pass all_commands, not -1, to
2935         help_list.
2936         * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
2937         all_commands, not -1, to help_list.
2938
2939 2014-06-12  Pierre Langlois  <pierre.langlois@embecosm.com>
2940
2941         * regcache.c (struct register_to_invalidate): New structure.
2942         (do_register_invalidate, make_cleanup_regcache_invalidate): New
2943         functions.
2944         (regcache_raw_write): Call make_cleanup_regcache_invalidate.
2945
2946 2014-06-12  Yao Qi  <yao@codesourcery.com>
2947
2948         * varobj.c (varobj_get_num_children): Call
2949         varobj_is_dynamic_p.
2950         (varobj_list_children): Likewise.
2951         (varobj_update): Likewise.  Update comments.
2952
2953 2014-06-12  Yao Qi  <yao@codesourcery.com>
2954
2955         * varobj.c (varobj_pretty_printed_p): Rename to ...
2956         (varobj_is_dynamic_p): ... this.  New function.
2957         * varobj.h (varobj_pretty_printed_p): Remove declaration.
2958         (varobj_is_dynamic_p): Declare.
2959         * mi/mi-cmd-var.c (print_varobj): All callers updated.
2960         (mi_print_value_p, varobj_update_one): Likewise.
2961
2962 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
2963             Yao Qi  <yao@codesourcery.com>
2964
2965         * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
2966         (varobj_get_iterator): Wrap up code for pretty-printer by
2967         "#if HAVE_PYTHON" and "#endif".
2968         (update_dynamic_varobj_children): Likewise.
2969
2970 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
2971             Yao Qi  <yao@codesourcery.com>
2972
2973         * python/py-varobj.c (py_varobj_iter_next): Return NULL if
2974         gdb_python_initialized is false.  Move some code from varobj.c.
2975         * varobj-iter.h (struct varobj_item): Moved from varobj.c.
2976         * varobj.c: Move "varobj-iter.h" inclusion earlier.
2977         (struct varobj_item): Moved to varobj-iter.h".
2978         (varobj_clear_saved_item): New function.
2979         (update_dynamic_varobj_children): Move python-related code to
2980         py-varobj.c.
2981         (free_variable): Call varobj_clear_saved_item and
2982         varobj_iter_delete.
2983
2984 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
2985             Yao Qi  <yao@codesourcery.com>
2986
2987         * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
2988         (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
2989         (HFILES_NO_SRCDIR): Add "varobj-iter.h".
2990         (py-varobj.o): New rule.
2991         * python/py-varobj.c: New file.
2992         * python/python-internal.h (py_varobj_get_iterator): Declare.
2993         * varobj-iter.h: New file.
2994         * varobj.c: Include "varobj-iter.h"
2995         (struct varobj) <child_iter>: Change its type from "PyObject *"
2996         to "struct varobj_iter *".
2997         <saved_item>: Likewise.
2998         [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
2999         [HAVE_PYTHON] (varobj_get_iterator): New function.
3000         (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3001         python-specific code to python/py-varobj.c.
3002         (install_visualizer): Call varobj_iter_delete instead of
3003         Py_XDECREF.
3004         * varobj.h (varobj_ensure_python_env): Declare.
3005
3006 2014-06-12  Yao Qi  <yao@codesourcery.com>
3007
3008         * varobj.c (struct varobj_item): New structure.
3009         (create_child_with_value): Update declaration.
3010         (varobj_add_child): Replace arguments 'name' and 'value' with
3011         'item'.  All callers updated.
3012         (install_dynamic_child): Likewise.
3013         (update_dynamic_varobj_children): Likewise.
3014         (varobj_add_child): Likewise.
3015         (create_child_with_value): Likewise.
3016
3017 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
3018
3019         * NEWS: Create a new section for the next release branch.
3020         Rename the section of the current branch, now that it has
3021         been cut.
3022
3023 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
3024
3025         GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3026         * version.in: Bump version to 7.8.50.DATE-cvs.
3027
3028 2014-06-11  Pedro Alves  <palves@redhat.com>
3029
3030         PR remote/17028
3031         * ser-mingw.c (net_windows_socket_check_pending): New function.
3032         (net_windows_select_thread): Ignore spurious wakeups.  Use
3033         net_windows_socket_check_pending.
3034         (net_windows_wait_handle): Check for pending events with
3035         ioctlsocket, through net_windows_socket_check_pending, instead of
3036         checking the socket's event.
3037
3038 2014-06-10  Siva Chandra Reddy  <sivachandra@google.com>
3039
3040         * python/python-internal.h (gdb_PyObject_GetAttrString)
3041         (gdb_PyObject_HasAttrString): New inline function definitions.
3042         * py-value.c (get_field_flag): Remove the now unnecessary cast to
3043         char * of the second argument to PyObject_GetAttrString.
3044
3045 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
3046
3047         * serial.c (serial_write): Fix index of character to be printed
3048         in call to serial_logchar when serial debug traces are enabled.
3049
3050 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
3051
3052         * gdbtypes (resolve_dynamic_range): Add function description.
3053
3054 2014-06-09  Pedro Alves  <palves@redhat.com>
3055
3056         * linux-nat.c (linux_child_follow_fork): Initialize status with
3057         W_STOPCODE (0) instead of 0.  Remove shodowing 'status' local from
3058         inner block.  Only pass the signal to PTRACE_DETACH if in pass
3059         state.
3060
3061 2014-06-09  Gary Benson  <gbenson@redhat.com>
3062
3063         * common/signals.c (gdb_signal_from_host): Reorder to separate
3064         the always-available ANSI-standard signals from the signals that
3065         require checking.
3066         (do_gdb_signal_to_host): Likewise.
3067         * proc-events.c (signal_table): Likewise.
3068
3069 2014-06-08  Hui Zhu  <hui@codesourcery.com>
3070
3071         * common/linux-ptrace.c (linux_disable_event_reporting): New
3072         function.
3073         * common/linux-ptrace.h (linux_disable_event_reporting): New
3074         declaration.
3075         * linux-nat.c (linux_child_follow_fork): Do a single step before
3076         detach.
3077
3078 2014-06-07  Keith Seitz  <keiths@redhat.com>
3079
3080         Revert:
3081         PR c++/16253
3082         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3083         from symbol_matches_domain in symtab.c. All local callers
3084         of symbol_matches_domain updated.
3085         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3086         search STRUCT_DOMAIN.
3087         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3088         independently.  standard_lookup will do that automatically.
3089         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3090         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3091         (cp_lookup_symbol_in_namespace): Likewise.
3092         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3093         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3094         may return a STRUCT_DOMAIN match.
3095         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3096         * cp-support.c: Include language.h.
3097         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3098         VAR_DOMAIN.
3099         * psymtab.c (match_partial_symbol): Compare the requested
3100         domain with the symbol's domain directly.
3101         (lookup_partial_symbol): Likewise.
3102         * symtab.c (lookup_symbol_in_language): Explain when/why
3103         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3104         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3105         appropriate languages.
3106         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3107         and moved to ada-lang.c
3108         (lookup_block_symbol): Explain that this function only returns
3109         symbol matching the requested DOMAIN.
3110         Compare the requested domain with the symbol's domain directly.
3111         (iterate_over_symbols): Compare the requested domain with the
3112         symbol's domain directly.
3113         * symtab.h (symbol_matches_domain): Remove.
3114
3115 2014-06-06  Doug Evans  <xdje42@gmail.com>
3116
3117         * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3118         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3119         (gdbscm_guile_version_is_at_least): Declare.
3120         (gdbscm_scm_string_to_int): Declare.
3121         * guile/guile.c (gdbscm_guile_major_version): New global.
3122         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3123         (guile_datadir): New static global.
3124         (gdbscm_guile_data_directory): New function.
3125         (initialize_scheme_side): Update.
3126         (misc_guile_functions): Add guile-data-directory.
3127         (initialize_gdb_module): Fetch guile version number.
3128         * guile/lib/gdb.scm: Remove call to add-to-load-path.
3129         * guile/lib/gdb/init.scm (%initialize!): Ditto.
3130         * guile/lib/gdb/boot.scm: Use guile-data-directory.
3131         * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3132         comments.
3133         * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3134         * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3135         * guile/scm-value.c (gdbscm_value_to_string): Only call
3136         scm_port_conversion_strategy if Guile version >= 2.0.6.
3137
3138 2014-06-06  Mingjie Xing  <mingjie.xing@gmail.com>
3139
3140         * main.c (print_gdb_help): Add -q and --silent.
3141
3142 2014-06-06  Gary Benson  <gbenson@redhat.com>
3143
3144         * common/signals.c: Remove preprocessor conditionals for
3145         always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3146         SIGSEGV and SIGTERM.
3147         * proc-events.c: Likewise.
3148
3149 2014-06-06  Markus Metzger  <markus.t.metzger@intel.com>
3150
3151         * symfile.c (symfile_free_objfile): Remove restriction to
3152         OBJF_USERLOADED.
3153         * symfile-mem.c (symbol_file_add_from_memory): Call
3154         add_target_sections_of_objfile.
3155
3156 2014-06-05  Ludovic Courtès  <ludo@gnu.org>
3157
3158         * guile/scm-value.c (gdbscm_history_append_x): Use
3159         'vlscm_get_value_smob_arg_unsafe' instead of
3160         'vlscm_scm_to_value'.
3161
3162 2014-06-05  Simon Marchi  <simon.marchi@ericsson.com>
3163
3164         PR mi/15806
3165         * utils.c (printchar): Don't escape at all if quoter is NUL.
3166         Update function documentation to clarify effect of parameter
3167         QUOTER.
3168         * remote.c (escape_buffer): Pass '\\' as the quoter to
3169         fputstrn_unfiltered.
3170         * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3171         generate the output.
3172         (mi_solib_unloaded): Same.
3173
3174 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
3175
3176         * development.sh: Delete.
3177         * Makefile.in (config.status): Adjust dependency on development.sh.
3178         * configure.ac: Adjust development.sh source call.
3179         * configure: Regenerate.
3180
3181 2014-06-04  Doug Evans  <xdje42@gmail.com>
3182
3183         * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3184         is_scheme_bkpt, spec.
3185         (bpscm_make_breakpoint_smob): Initialize new members.
3186         (gdbscm_create_breakpoint_x): Split into two ...
3187         (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3188         (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3189         (scheme_function breakpoint_functions): Update.
3190         * guile/lib/gdb.scm: Delete create-breakpoint!.  Rename
3191         breakpoint-delete! to delete-breakpoint!.  Add make-breakpoint,
3192         register-breakpoint!.
3193
3194 2014-06-04  Joel Brobecker  <brobecker@adacorer.com>
3195
3196         PR server/17023
3197         * mem-break.c (z_type_supported): Return zero if
3198         THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3199
3200 2014-06-04  Tom Tromey  <tromey@redhat.com>
3201
3202         * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3203         value_from_contents_and_address_unresolved.
3204         (ada_template_to_fixed_record_type_1): Likewise.
3205         (ada_which_variant_applies): Likewise.
3206         * value.h (value_from_contents_and_address_unresolved): Declare.
3207         * value.c (value_from_contents_and_address_unresolved): New
3208         function.
3209         * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3210         <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3211         (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3212
3213 2014-06-04  Tom Tromey  <tromey@redhat.com>
3214
3215         * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3216
3217 2014-06-04  Tom Tromey  <tromey@redhat.com>
3218
3219         * procfs.c (procfs_attach): Make "args" const.
3220         * windows-nat.c (windows_attach): Make "args" const.
3221         * nto-procfs.c (procfs_attach): Make "args" const.
3222         * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3223         * go32-nat.c (go32_attach): Make "args" const.
3224         * gnu-nat.c (gnu_attach): Make "args" const.
3225         * darwin-nat.c (darwin_attach): Make "args" const.
3226         * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3227         * linux-nat.c (linux_nat_attach): Make "args" const.
3228         * remote.c (extended_remote_attach_1, extended_remote_attach):
3229         Make "args" const.
3230         * target.h (struct target_ops) <to_attach>: Make "args" const.
3231         (find_default_attach): Likewise.
3232         * utils.c (parse_pid_to_attach): Make "args" const.
3233         * utils.h (parse_pid_to_attach): Update.
3234
3235 2014-06-04  Tom Tromey  <tromey@redhat.com>
3236
3237         * target-delegates.c: Rebuild.
3238         * target.c (default_thread_address_space): New function.
3239         (target_thread_address_space): Simplify.
3240         * target.h (struct target_ops) <to_thread_address_space>: Add
3241         TARGET_DEFAULT_FUNC.
3242
3243 2014-06-04  Doug Evans  <xdje42@gmail.com>
3244
3245         * guile/scm-type.c (type_smob): Remove duplicate typedef.
3246
3247 2014-06-04  Markus Metzger  <markus.t.metzger@intel.com>
3248
3249         * record-btrace.c: Include event-loop.h and inf-loop.h.
3250         (record_btrace_resume_exec_dir)
3251         (record_btrace_async_inferior_event_handler)
3252         (record_btrace_handle_async_inferior_event): New.
3253         (record_btrace_open): Create async event handler.
3254         (record_btrace_close): Delete async event handler.
3255         (record_btrace_resume): Set record_btrace_resume_exec_dir,
3256         Mark async event handler.
3257         (record_btrace_execution_direction): New.
3258         (init_record_btrace_ops): Initialize to_execution_direction.
3259
3260 2014-06-03  Doug Evans  <xdje42@gmail.com>
3261
3262         * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3263         (gdbscm_make_parameter): Ditto.
3264
3265 2014-06-03  Doug Evans  <dje@google.com>
3266
3267         * exec.c (exec_close_1): Call clear_section_table instead of
3268         resize_section_table.
3269         (clear_section_table): New function.
3270         (resize_section_table): Make static.  Rename arg num_added to
3271         adjustment.
3272         * exec.h (clear_section_table): Declare.
3273         (resize_section_table): Delete.
3274         * progspace.c (release_program_space): Call clear_section_table
3275         instead of resize_section_table.
3276
3277 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
3278
3279         * NEWS (Python Scripting): Add entry about the new xmethods
3280         feature.
3281
3282 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
3283
3284         * python/py-xmethods.c: New file.
3285         * python/py-objfile.c (objfile_object): New field 'xmethods'.
3286         (objfpy_dealloc): XDECREF on the new xmethods field.
3287         (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3288         field.
3289         (objfpy_get_xmethods): New function.
3290         (objfile_getset): New entry 'xmethods'.
3291         * python/py-progspace.c (pspace_object): New field 'xmethods'.
3292         (pspy_dealloc): XDECREF on the new xmethods field.
3293         (pspy_new, pspace_to_pspace_object): Initialize xmethods
3294         field.
3295         (pspy_get_xmethods): New function.
3296         (pspace_getset): New entry 'xmethods'.
3297         * python/python-internal.h: Add declarations for new functions.
3298         * python/python.c (_initialize_python): Invoke
3299         gdbpy_initialize_xmethods.
3300         * python/lib/gdb/__init__.py (xmethods): New
3301         attribute.
3302         * python/lib/gdb/xmethod.py: New file.
3303         * python/lib/gdb/command/xmethods.py: New file.
3304
3305 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
3306
3307         * eval.c (evaluate_subexp_standard): Call the xmethod if the
3308         best match method returned by find_overload_match is an xmethod.
3309         * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3310         the best matching operator returned by find_overload_match is an
3311         xmethod.
3312         * valops.c: #include "extension.h".
3313         (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3314         Return void.  The list of matching source methods is returned in
3315         "fn_list" and a vector of matching debug method workers is
3316         returned in "xm_worker_vec".  Update all callers.
3317         (value_find_oload_method_list): Likewise.
3318         (find_oload_champ): Add "xm_worker_vec" parameter.  If it is
3319         non-NULL, then the index of the best matching method in this
3320         vector is returned.  Update all callers.
3321         (find_overload_match): Include xmethods while performing overload
3322         resolution.
3323
3324 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
3325
3326         * defs.h (enum lval_type): New enumerator "lval_xcallable".
3327         * extension-priv.h (struct extension_language_ops): Add the
3328         xmethod interface.
3329         * extension.c (new_xmethod_worker, clone_xmethod_worker,
3330         get_matching_xmethod_workers, get_xmethod_argtypes,
3331         invoke_xmethod, free_xmethod_worker,
3332         free_xmethod_worker_vec): New functions.
3333         * extension.h: #include "common/vec.h".
3334         New function declarations.
3335         (struct xmethod_worker): New struct.
3336         (VEC (xmethod_worker_ptr)): New vector type.
3337         (xmethod_worker_ptr): New typedef.
3338         (xmethod_worker_vec): Likewise.
3339         * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3340         builtin_type.
3341         * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3342         (struct builtin_type): New field "xmethod".
3343         * valarith.c (value_ptradd): Assert that the value argument is not
3344         lval_xcallable.
3345         * valops.c (value_must_coerce_to_target): Return 0 for
3346         lval_xcallable values.
3347         * value.c (struct value): New field XM_WORKER in the field
3348         LOCATION.
3349         (value_address, value_raw_address): Return 0 for lval_xcallable
3350         values.
3351         (set_value_address): Assert that the value is not an
3352         lval_xcallable.
3353         (value_free): Free the associated xmethod worker when freeing
3354         lval_xcallable values.
3355         (set_value_component_location): Assert that the WHOLE value is not
3356         lval_xcallable.
3357         (value_of_xmethod, call_xmethod): New functions.
3358         * value.h: Declare "struct xmethod_worker".
3359         Declare new functions value_of_xmethod, call_xmethod.
3360
3361 2014-06-03  Joel Brobecker  <brobecker@adacore.com>
3362             Pedro Alves  <palves@redhat.com>
3363
3364         PR breakpoints/17000
3365         * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3366         New function, extracted from software_breakpoint_inserted_here_p.
3367         (software_breakpoint_inserted_here_p): Replace factored out code
3368         by call to find_non_raw_software_breakpoint_inserted_here.
3369         (bp_target_info_copy_insertion_state): New function.
3370         (bkpt_insert_location): Handle the case of a single-step
3371         breakpoint already inserted at the same address.
3372         (bkpt_remove_location): Handle the case of a single-step
3373         breakpoint still inserted at the same address.
3374         (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3375         breakpoint already inserted at the same address.
3376         (deprecated_remove_raw_breakpoint): Handle the case of a
3377         non-raw breakpoint still inserted at the same address.
3378         (find_single_step_breakpoint): New function, extracted from
3379         single_step_breakpoint_inserted_here_p.
3380         (find_single_step_breakpoint): New function,
3381         factored out from single_step_breakpoint_inserted_here_p.
3382         (single_step_breakpoint_inserted_here_p): Reimplement.
3383
3384 2014-06-03  Brad Mouring  <bmouring@ni.com>  (tiny patch)
3385
3386         Pushed by Joel Brobecker  <brobecker@adacore.com>
3387         * source.c (show_substitute_path_command): Fix display of matching
3388         substitution rules.
3389
3390 2014-06-03  Gary Benson  <gbenson@redhat.com>
3391
3392         * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3393
3394 2014-06-02  Doug Evans  <xdje42@gmail.com>
3395
3396         Add parameter support for Guile.
3397         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3398         (SUBDIR_GUILE_SRCS): Add scm-param.c.
3399         (scm-param.o): New rule.
3400         * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3401         (gdbscm_misc_error): Declare.
3402         (gdbscm_canonicalize_command_name): Declare.
3403         (gdbscm_scm_to_host_string): Declare.
3404         (gdbscm_scm_from_host_string): Declare.
3405         (gdbscm_initialize_parameters): Declare.
3406         * guile/guile.c (initialize_gdb_module): Call
3407         gdbscm_initialize_parameters.
3408         * guile/lib/gdb.scm: Export parameter symbols.
3409         * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3410         cmdscm_canonicalize_name and made public.  All callers updated.
3411         * guile/scm-exception.c (gdbscm_misc_error): New function.
3412         * guile/scm-param.c: New file.
3413         * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3414         (gdbscm_scm_to_host_string): New function.
3415         (gdbscm_scm_from_host_string): New function.
3416         * scm-utils.c (gdbscm_gc_dup_argv): New function.
3417
3418 2014-06-02  Doug Evans  <xdje42@gmail.com>
3419
3420         Add command support for Guile.
3421         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3422         (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3423         (scm-cmd.o): New rule.
3424         * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3425         (gdbscm_user_error_p): Declare.
3426         (gdbscm_parse_command_name): Declare.
3427         (gdbscm_valid_command_class_p): Declare.
3428         (gdbscm_initialize_commands): Declare.
3429         * guile/guile.c (initialize_gdb_module): Call
3430         gdbscm_initialize_commands.
3431         * guile/lib/gdb.scm: Export command symbols.
3432         * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3433         (throw-user-error): New function.
3434         * guile/scm-cmd.c: New file.
3435         * guile/scm-exception.c (user_error_symbol): New static global.
3436         (gdbscm_user_error_p): New function.
3437         (gdbscm_initialize_exceptions): Set user_error_symbol.
3438         * scm-utils.c (gdbscm_gc_xstrdup): New function.
3439
3440 2014-06-02  Phil Muldoon  <pmuldoon@redhat.com>
3441
3442         * top.c (command_loop): Handle comments here...
3443         (command_line_input): ... not here.
3444
3445 2014-06-02  Doug Evans  <xdje42@gmail.com>
3446
3447         Add progspace support for Guile.
3448         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3449         (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3450         (scm-progspace.o): New rule.
3451         * guile/guile-internal.h (pspace_smob): New typedef.
3452         (psscm_pspace_smob_pretty_printers): Declare.
3453         (psscm_pspace_smob_from_pspace): Declare.
3454         (psscm_scm_from_pspace): Declare.
3455         * guile/guile.c (initialize_gdb_module): Call
3456         gdbscm_initialize_pspaces.
3457         * guile/lib/gdb.scm: Export progspace symbols.
3458         * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3459         support.
3460         (append-pretty-printer!): Ditto.
3461         * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3462         Implement.
3463         * guile/scm-progspace.c: New file.
3464
3465 2014-06-03  Alan Modra  <amodra@gmail.com>
3466
3467         * ppc64-tdep.c (ppc64_standard_linkage8): New.
3468         (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3469
3470 2014-06-02  Doug Evans  <dje@google.com>
3471
3472         Add support for skeletonless type units.
3473         * dwarf2read.c (struct dwarf2_per_objfile): New member
3474         n_allocated_type_units.
3475         (struct dwarf2_per_objfile) <tu_stats>: New member
3476         nr_all_type_units_reallocs.
3477         (create_signatured_type_table_from_index): Initialize
3478         n_allocated_type_units
3479         (create_all_type_units): Ditto.
3480         (add_type_unit): Move up in file.  New arg slot.
3481         All callers updated.  Increase space for all_type_units more
3482         efficiently.
3483         (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3484         (lookup_dwo_signatured_type): Handle skeletonless TUs.
3485         (lookup_dwp_signatured_type): Ditto.
3486         (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3487         All callers updated.
3488         (build_type_psymtabs_1): Leave type_unit_groups as
3489         NULL if no TUs present.
3490         (print_tu_stats): New function.
3491         (process_skeletonless_type_unit): New function.
3492         (process_dwo_file_for_skeletonless_type_units): New
3493         function.
3494         (process_skeletonless_type_units): New function.
3495         (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3496         Call print tu_stats if debugging enabled.
3497
3498 2014-06-02  Pedro Alves  <palves@redhat.com>
3499
3500         * breakpoint.c (build_target_command_list): Don't build a command
3501         list if we have any duplicate location that isn't a dprintf.
3502
3503 2014-06-02  Pedro Alves  <palves@redhat.com>
3504
3505         * breakpoint.c (dprintf_breakpoint_hit): New function.
3506         (initialize_breakpoint_ops): Install it as dprintf's
3507         breakpoint_hit method.
3508
3509 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
3510
3511         * source.c (substitute_path_rule_matches): Simplify using
3512         filename_ncmp instead of FILENAME_CMP.
3513
3514 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
3515
3516         * source.c (substitute_path_rule_matches): Remove trailing spaces.
3517
3518 2014-06-01  Ludovic Courtès  <ludo@gnu.org>
3519
3520         * configure.ac: When Guile is available, check for the
3521         availability of 'scm_new_smob'.
3522         * configure, config.h.in: Regenerate.
3523         * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3524         function.
3525
3526 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
3527
3528         * frame.c (struct frame_info): Add stop_string field.
3529         (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3530         (get_prev_frame_always): Old content moved into
3531         get_prev_frame_always_1.  Call get_prev_frame_always_1 inside
3532         TRY_CATCH, handle MEMORY_ERROR exceptions.
3533         (frame_stop_reason_string): New function definition.
3534         * frame.h (unwind_stop_reason_to_string): Extend comment to
3535         mention frame_stop_reason_string.
3536         (frame_stop_reason_string): New function declaration.
3537         * stack.c (frame_info): Switch to frame_stop_reason_string.
3538         (backtrace_command_1): Switch to frame_stop_reason_string.
3539         * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3540         (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3541         * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3542
3543 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
3544
3545         * frame.c (frame_stop_reason_string): Rename to ...
3546         (unwind_stop_reason_to_string): this.
3547         * frame.h (frame_stop_reason_string): Rename to ...
3548         (unwind_stop_reason_to_string): this.
3549         * stack.c (frame_info): Update call to frame_stop_reason_string.
3550         (backtrace_command_1): Likewise.
3551         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3552         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3553
3554 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
3555
3556         * frame.c (remove_prev_frame): New function.
3557         (get_prev_frame_if_no_cycle): Create / discard cleanup using
3558         remove_prev_frame.
3559
3560 2014-05-29  Pedro Alves  <palves@redhat.com>
3561
3562         * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3563         and make it const.  When a single-step decays to a continue,
3564         clear 'step', not 'hw_step'.  Pass whether the caller wanted
3565         to step to user_visible_resume_ptid, not what we ask the
3566         target to do.
3567
3568 2014-05-29  Pedro Alves  <palves@redhat.com>
3569
3570         * infrun.c (process_event_stop_test, handle_step_into_function)
3571         (handle_step_into_function_backward): Adjust.
3572         Don't set the even thread's stop_step and call stop_waiting before
3573         calling end_stepping_range.  Instead do that ...
3574         (end_stepping_range): ... here.  Take an ecs pointer parameter.
3575
3576 2014-05-29  Pedro Alves  <palves@redhat.com>
3577
3578         * infrun.c (stop_stepping): Rename to ...
3579         (stop_waiting): ... this.
3580         (proceed): Update comment.
3581         (process_event_stop_test, handle_inferior_event)
3582         (handle_signal_stop, handle_step_into_function)
3583         (handle_step_into_function_backward): Update.
3584
3585 2014-05-29  Pedro Alves  <palves@redhat.com>
3586
3587         * infcall.c (run_inferior_call): Don't check whether the current
3588         thread is running after the proceed call.
3589
3590 2014-05-29  Pedro Alves  <palves@redhat.com>
3591             Tom Tromey  <tromey@redhat.com>
3592
3593         * NEWS: Mention "maint set target-async", "set mi-async", and that
3594         background execution commands are now always available.
3595         * target.h (target_async_permitted): Update comment.
3596         * target.c (target_async_permitted, target_async_permitted_1):
3597         Default to 1.
3598         (set_target_async_command): Rename to ...
3599         (maint_set_target_async_command): ... this.
3600         (show_target_async_command): Rename to ...
3601         (maint_show_target_async_command): ... this.
3602         (_initialize_target): Adjust.
3603         * infcmd.c (prepare_execution_command): Make extern.
3604         * inferior.h (prepare_execution_command): Declare.
3605         * infrun.c (set_observer_mode): Leave target async alone.
3606         * mi/mi-interp.c (mi_interpreter_init): Install
3607         mi_on_sync_execution_done as sync_execution_done observer.
3608         (mi_on_sync_execution_done): New function.
3609         (mi_execute_command_input_handler): Don't print the prompt if we
3610         just started a synchronous command with an async target.
3611         (mi_on_resume): Check sync_execution before printing prompt.
3612         * mi/mi-main.h (mi_async_p): Declare.
3613         * mi/mi-main.c: Include gdbcmd.h.
3614         (mi_async_p): New function.
3615         (mi_async, mi_async_1): New globals.
3616         (set_mi_async_command, show_mi_async_command, mi_async): New
3617         functions.
3618         (exec_continue): Call prepare_execution_command.
3619         (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3620         (mi_execute_async_cli_command): Use mi_async_p.
3621         (_initialize_mi_main): Install "set mi-async".  Make
3622         "target-async" a deprecated alias.
3623
3624 2014-05-29  Pedro Alves  <palves@redhat.com>
3625
3626         * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3627         (_initialize_cli_interp): Adjust.
3628         * event-loop.c: Include "observer.h".
3629         (start_event_loop): Notify 'command_error' observers instead of
3630         calling display_gdb_prompt.  Remove FIXME comment.
3631         * event-top.c (display_gdb_prompt): Remove call into the
3632         interpreters.
3633         * inf-loop.c: Include "observer.h".
3634         (inferior_event_handler): Notify 'command_error' observers instead
3635         of calling display_gdb_prompt.
3636         * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3637         observers instead of calling display_gdb_prompt.
3638         * interps.c (interp_set): Don't call display_gdb_prompt.
3639         (current_interp_display_prompt_p): Delete.
3640         * interps.h (interp_prompt_p): Delete declaration.
3641         (interp_prompt_p_ftype): Delete.
3642         (struct interp_procs) <prompt_proc_p>: Delete field.
3643         (current_interp_display_prompt_p): Delete declaration.
3644         * mi-interp.c (mi_interpreter_prompt_p): Delete.
3645         (_initialize_mi_interp): Adjust.
3646         * tui-interp.c (tui_init): Install 'sync_execution_done' and
3647         'command_error' observers.
3648         (tui_on_sync_execution_done, tui_on_command_error): New
3649         functions.
3650         (tui_display_prompt_p): Delete.
3651         (_initialize_tui_interp): Adjust.
3652
3653 2014-05-29  Pedro Alves  <palves@redhat.com>
3654
3655         PR gdb/13860
3656         * cli/cli-interp.c: Include infrun.h and observer.h.
3657         (cli_uiout, cli_interp): New globals.
3658         (cli_on_signal_received, cli_on_end_stepping_range)
3659         (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3660         functions.
3661         (cli_interpreter_init): Install them as 'end_stepping_range',
3662         'signal_received' 'signal_exited', 'exited' and 'no_history'
3663         observers.
3664         (_initialize_cli_interp): Remove cli_interp local.
3665         * infrun.c (handle_inferior_event): Call the several stop reason
3666         observers instead of printing the stop reason directly.
3667         (end_stepping_range): New function.
3668         (print_end_stepping_range_reason, print_signal_exited_reason)
3669         (print_exited_reason, print_signal_received_reason)
3670         (print_no_history_reason): Make static, and add an uiout
3671         parameter.  Print to that instead of to CURRENT_UIOUT.
3672         * infrun.h (print_end_stepping_range_reason)
3673         (print_signal_exited_reason, print_exited_reason)
3674         (print_signal_received_reason print_no_history_reason): New
3675         declarations.
3676         * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3677         'mi_uiout'.
3678         <cli_uiout>: New field.
3679         * mi/mi-interp.c (mi_interpreter_init): Adjust.  Create the new
3680         uiout for CLI output.  Install 'signal_received',
3681         'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3682         observers.
3683         (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3684         (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3685         (mi_on_no_history): New functions.
3686         (ui_out_free_cleanup): Delete function.
3687         (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3688         instead use the one already stored in the MI interpreter data.
3689         (mi_ui_out): Adjust.
3690         * tui/tui-interp.c: Include infrun.h and observer.h.
3691         (tui_interp): New global.
3692         (tui_on_signal_received, tui_on_end_stepping_range)
3693         (tui_on_signal_exited, tui_on_exited)
3694         (tui_on_no_history): New functions.
3695         (tui_init): Install them as 'end_stepping_range',
3696         'signal_received' 'signal_exited', 'exited' and 'no_history'
3697         observers.
3698         (_initialize_tui_interp): Delete tui_interp local.
3699
3700 2014-05-29  Pedro Alves  <palves@redhat.com>
3701
3702         PR gdb/15713
3703         * linux-nat.c (linux_nat_resume_callback): Rename the second
3704         parameter to 'except'.  Skip LP if it points to EXCEPT.
3705         (linux_nat_resume): Don't mark the event lwp as not stopped
3706         before resuming sibling lwps.  Instead ask
3707         linux_nat_resume_callback to skip the event lwp.  Mark it as not
3708         stopped after actually resuming it.
3709         (linux_handle_syscall_trap): Mark the lwp as not stopped after
3710         resuming it.
3711         (wait_lwp): Mark the lwp as stopped here.
3712         (stop_wait_callback): Mark the lwp as not stopped right after
3713         resuming it.  Don't mark lwps as stopped here.
3714         (linux_nat_filter_event): Mark the lwp as stopped earlier.
3715         (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3716
3717 2014-05-29  Pedro Alves  <palves@redhat.com>
3718
3719         PR PR15693
3720         * infrun.c (resume): Determine how much to resume depending on
3721         whether the caller wanted a step, not whether we can hardware step
3722         the target.  Mark all threads that we intend to run as running,
3723         unless we're calling an inferior function.
3724         (normal_stop): If the thread is running an infcall, don't finish
3725         thread state.
3726         * target.c (target_resume): Don't mark threads as running here.
3727
3728 2014-05-28  Joel Brobecker  <brobecker@adacore.com>
3729
3730         * serial.c (_initialize_serial): Remove support for
3731         the "set remotebaud" and "show remotebaud" commands.
3732         * NEWS: Add entry documenting the removal of that command.
3733
3734 2014-05-28  Yao Qi  <yao@codesourcery.com>
3735
3736         * charset.c: Fix typo in comments.
3737
3738 2014-05-27  Gary Benson  <gbenson@redhat.com>
3739
3740         * utils.c (internal_vproblem): Prompt for a bug report.
3741
3742 2014-05-26  Andy Wingo  <wingo@igalia.com>
3743
3744         * guile/scm-arch.c (arscm_mark_arch_smob):
3745         * guile/scm-block.c (bkscm_mark_block_smob)
3746         (bkscm_mark_block_syms_progress_smob):
3747         * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
3748         * guile/scm-exception.c (exscm_mark_exception_smob):
3749         * guile/scm-frame.c (frscm_mark_frame_smob):
3750         * guile/scm-iterator.c (itscm_mark_iterator_smob):
3751         * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
3752         * guile/scm-objfile.c (ofscm_mark_objfile_smob):
3753         * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
3754         (ppscm_mark_pretty_printer_worker_smob):
3755         * guile/scm-symbol.c (syscm_mark_symbol_smob):
3756         * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
3757         * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
3758         * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
3759         mark functions.
3760         * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
3761         function.
3762
3763 2014-05-26  Andy Wingo  <wingo@igalia.com>
3764             Doug Evans  <xdje42@gmail.com>
3765
3766         * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
3767         empty_base_class.  All uses updated.
3768         (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
3769         (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
3770         Adapt all callers.
3771         * guile/scm-gsmob.c (gdbscm_mark_gsmob)
3772         (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
3773         (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
3774         (gdbscm_gsmob_has_property_p, add_property_name)
3775         (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
3776         * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
3777         (gdb-object-has-property?, gdb-object-properties): Remove.
3778         (gdb-object-kind): Renamed from gsmob-kind.
3779
3780 2014-05-26  Andy Wingo  <wingo@igalia.com>
3781
3782         * configure.ac (try_guile_versions): Allow building with guile 2.2.
3783         * configure: Regenerate.
3784
3785 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
3786
3787         * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
3788
3789 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
3790
3791         * record-btrace.c (record_btrace_allow_memory_access): Remove.
3792         (replay_memory_access_read_only, replay_memory_access_read_write)
3793         (replay_memory_access_types, replay_memory_access)
3794         (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
3795         (cmd_set_record_btrace, cmd_show_record_btrace)
3796         (cmd_show_replay_memory_access): New.
3797         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
3798         (record_btrace_remove_breakpoint): Replace
3799         record_btrace_allow_memory_access with replay_memory_access.
3800         (_initialize_record_btrace): Add commands.
3801         * NEWS: Announce it.
3802
3803 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3804
3805         * aarch64-linux-nat.c (asm/ptrace.h): Include.
3806
3807 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3808
3809         * MAINTAINERS (Write After Approval): Move self back from
3810         paper trail.
3811
3812 2014-05-22  Pedro Alves  <palves@redhat.com>
3813
3814         * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
3815         (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
3816         (disable_randomization, enum exec_direction_kind)
3817         (execution_direction, stop_registers, start_remote)
3818         (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
3819         (wait_for_inferior, normal_stop, get_last_target_status)
3820         (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
3821         (insert_step_resume_breakpoint_at_sal)
3822         (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
3823         (set_step_info, print_stop_event, signal_stop_state)
3824         (signal_print_state, signal_pass_state, signal_stop_update)
3825         (signal_print_update, signal_pass_update)
3826         (update_signals_program_target, clear_exit_convenience_vars)
3827         (displaced_step_dump_bytes, update_observer_mode)
3828         (signal_catch_update, gdb_signal_from_command): Move
3829         declarations ...
3830         * infrun.h: ... to this new file.
3831         * amd64-tdep.c: Include infrun.h.
3832         * annotate.c: Include infrun.h.
3833         * arch-utils.c: Include infrun.h.
3834         * arm-linux-tdep.c: Include infrun.h.
3835         * arm-tdep.c: Include infrun.h.
3836         * break-catch-sig.c: Include infrun.h.
3837         * breakpoint.c: Include infrun.h.
3838         * common/agent.c: Include infrun.h instead of inferior.h.
3839         * corelow.c: Include infrun.h.
3840         * event-top.c: Include infrun.h.
3841         * go32-nat.c: Include infrun.h.
3842         * i386-tdep.c: Include infrun.h.
3843         * inf-loop.c: Include infrun.h.
3844         * infcall.c: Include infrun.h.
3845         * infcmd.c: Include infrun.h.
3846         * infrun.c: Include infrun.h.
3847         * linux-fork.c: Include infrun.h.
3848         * linux-nat.c: Include infrun.h.
3849         * linux-thread-db.c: Include infrun.h.
3850         * monitor.c: Include infrun.h.
3851         * nto-tdep.c: Include infrun.h.
3852         * procfs.c: Include infrun.h.
3853         * record-btrace.c: Include infrun.h.
3854         * record-full.c: Include infrun.h.
3855         * remote-m32r-sdi.c: Include infrun.h.
3856         * remote-mips.c: Include infrun.h.
3857         * remote-notif.c: Include infrun.h.
3858         * remote-sim.c: Include infrun.h.
3859         * remote.c: Include infrun.h.
3860         * reverse.c: Include infrun.h.
3861         * rs6000-tdep.c: Include infrun.h.
3862         * s390-linux-tdep.c: Include infrun.h.
3863         * solib-irix.c: Include infrun.h.
3864         * solib-osf.c: Include infrun.h.
3865         * solib-svr4.c: Include infrun.h.
3866         * target.c: Include infrun.h.
3867         * top.c: Include infrun.h.
3868         * windows-nat.c: Include infrun.h.
3869         * mi/mi-interp.c: Include infrun.h.
3870         * mi/mi-main.c: Include infrun.h.
3871         * python/py-threadevent.c: Include infrun.h.
3872
3873 2014-05-22  Pedro Alves  <palves@redhat.com>
3874
3875         * infrun.c (handle_inferior_event): Store the exit code for
3876         --return-child-result here, instead of ...
3877         (print_exited_reason): ... here.
3878
3879 2014-05-21  Pedro Alves  <palves@redhat.com>
3880
3881         PR gdb/13860
3882         * gdbthread.h (struct thread_control_state): New field
3883         `command_interp'.
3884         * infrun.c (follow_fork): Copy the new thread control field to the
3885         child fork thread.
3886         (clear_proceed_status_thread): Clear the new thread control field.
3887         (proceed): Set the new thread control field.
3888         * interps.h (command_interp): Declare.
3889         * interps.c (command_interpreter): New global.
3890         (command_interp): New function.
3891         (interp_exec): Set `command_interpreter' while here.
3892         * cli-out.c (cli_uiout_dtor): New function.
3893         (cli_ui_out_impl): Install it.
3894         * mi/mi-interp.c: Include cli-out.h.
3895         (mi_cmd_interpreter_exec): Add comment.
3896         (restore_current_uiout_cleanup): New function.
3897         (ui_out_free_cleanup): New function.
3898         (mi_on_normal_stop): If finishing an execution command started by
3899         a CLI command, or any kind of breakpoint-like event triggered,
3900         print the stop event to the output (CLI) stream.
3901         * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
3902
3903 2014-05-21  Pedro Alves  <palves@redhat.com>
3904
3905         * cli/cli-cmds.c (list_command): Handle the first "list" after the
3906         current source line having changed.
3907         * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
3908         * infrun.c (normal_stop): Adjust call to
3909         set_current_sal_from_frame.
3910         * source.c (clear_lines_listed_range): New function.
3911         (set_current_source_symtab_and_line, identify_source_line): Clear
3912         the lines listed range.
3913         (line_info): Handle the first "info line" after the current source
3914         line having changed.
3915         * stack.c (print_stack_frame): Remove center handling.
3916         (set_current_sal_from_frame): Remove 'center' parameter.  Don't
3917         center sal.line.
3918
3919 2014-05-21  Pedro Alves  <palves@redhat.com>
3920
3921         * inf-child.c (inf_child_mourn_inferior): New function.
3922         * inf-child.h (inf_child_mourn_inferior): New declaration.
3923         * darwin-nat.c (darwin_mourn_inferior): Use
3924         inf_child_mourn_inferior.
3925         * gnu-nat.c (gnu_mourn_inferior): Likewise.
3926         * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
3927         * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
3928         * nto-procfs.c (procfs_mourn_inferior): Likewise.
3929         * windows-nat.c (windows_mourn_inferior): Likewise.
3930
3931 2014-05-21  Doug Evans  <xdje42@gmail.com>
3932
3933         * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
3934
3935 2014-05-21  Doug Evans  <xdje42@gmail.com>
3936
3937         * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
3938         (gdbscm_out_of_range_error): Ditto.
3939         (gdbscm_memory_error): Ditto.
3940         * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
3941         * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
3942         (gdbscm_out_of_range_error): Update.
3943         (gdbscm_memory_error): Update.
3944         (gdbscm_scm_to_target_string_unsafe): Delete.
3945
3946 2014-05-21  Pedro Alves  <palves@redhat.com>
3947
3948         * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
3949         globals.
3950         (inf_child_open_target): New function.
3951         (inf_child_open): Use inf_child_open_target to push the target
3952         instead of erroring out.
3953         (inf_child_disconnect, inf_child_close)
3954         (inf_child_maybe_unpush_target): New functions.
3955         (inf_child_target): Install inf_child_disconnect and
3956         inf_child_close.  Store a pointer to the returned object.
3957         * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
3958         declarations.
3959         * target.c (auto_connect_native_target): New global.
3960         (show_default_run_target): New function.
3961         (find_default_run_target): Return NULL if automatically connecting
3962         to the native target is disabled.
3963         (_initialize_target): Install set/show auto-connect-native-target.
3964         * NEWS: Mention "set auto-connect-native-target", and "target
3965         native".
3966         * linux-nat.c (super_close): New global.
3967         (linux_nat_close): Call super_close.
3968         (linux_nat_add_target): Store a pointer to the base class's
3969         to_close method.
3970         * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
3971         inf_child_maybe_unpush.
3972         * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
3973         already pushed.
3974         (inf_ttrace_mourn_inferior): Only unpush the target after mourning
3975         the inferior.  Use inf_child_maybe_unpush_target.
3976         (inf_ttrace_attach): Don't push the target if it is already
3977         pushed.
3978         (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
3979         * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
3980         after mourning the inferior.  Use inf_child_maybe_unpush_target.
3981         (darwin_attach_pid): Don't push the target if it is already
3982         pushed.
3983         * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
3984         mourning the inferior.  Use inf_child_maybe_unpush_target.
3985         (gnu_detach): Use inf_child_maybe_unpush_target.
3986         * go32-nat.c (go32_create_inferior): Don't push the target if it
3987         is already pushed.
3988         (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
3989         * nto-procfs.c (procfs_is_nto_target): Adjust comment.
3990         (procfs_open): Rename to ...
3991         (procfs_open_1): ... this.  Add target_ops parameter.  Adjust
3992         comments.  Can target_preopen before changing node.  Call
3993         inf_child_open_target to push the target explicitly.
3994         (procfs_attach): Don't push the target if it is already pushed.
3995         (procfs_detach): Use inf_child_maybe_unpush_target.
3996         (procfs_create_inferior): Don't push the target if it is already
3997         pushed.
3998         (nto_native_ops): New global.
3999         (procfs_open): Reimplement.
4000         (procfs_native_open): New function.
4001         (init_procfs_targets): Install procfs_native_open as to_open of
4002         "target native".  Store a pointer to the "native" target in
4003         nto_native_ops.
4004         * procfs.c (procfs_attach): Don't push the target if it is already
4005         pushed.
4006         (procfs_detach): Use inf_child_maybe_unpush_target.
4007         (procfs_mourn_inferior): Only unpush the target after mourning the
4008         inferior.  Use inf_child_maybe_unpush_target.
4009         (procfs_init_inferior): Don't push the target if it is already
4010         pushed.
4011         * windows-nat.c (do_initial_windows_stuff): Don't push the target
4012         if it is already pushed.
4013
4014 2014-05-21  Pedro Alves  <palves@redhat.com>
4015
4016         * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4017         and "procfs" targets are now called "native" instead.
4018
4019 2014-05-21  Pedro Alves  <palves@redhat.com>
4020
4021         * go32-nat.c (go32_open): Delete.
4022         (go32_target): Don't override the to_open method.
4023
4024 2014-05-21  Pedro Alves  <palves@redhat.com>
4025
4026         * nto-procfs.c (procfs_can_run): New function.
4027         (nto_procfs_ops): New global.
4028         (init_procfs_targets): New, based on procfs_target.  Install
4029         "target native" in addition to "target procfs".
4030         (_initialize_procfs): Call init_procfs_targets instead of adding
4031         the target here.
4032
4033 2014-05-21  Pedro Alves  <palves@redhat.com>
4034
4035         * windows-nat.c (windows_target): Don't override to_shortname,
4036         to_longname or to_doc.
4037
4038 2014-05-21  Pedro Alves  <palves@redhat.com>
4039
4040         * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4041         to_doc.
4042
4043 2014-05-21  Pedro Alves  <palves@redhat.com>
4044
4045         * darwin-nat.c (_initialize_darwin_inferior): Don't override
4046         to_shortname, to_longname or to_doc.
4047
4048 2014-05-21  Pedro Alves  <palves@redhat.com>
4049
4050         * go32-nat.c (go32_target): Don't override to_shortname,
4051         to_longname or to_doc.
4052
4053 2014-05-21  Pedro Alves  <palves@redhat.com>
4054
4055         * inf-child.c (inf_child_open): Remove mention of "child".
4056         (inf_child_target): Rename target to "native" instead of "child".
4057
4058 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4059
4060         * Makefile.in (SFILES): Delete "regset.c".
4061         (COMMON_OBS): Delete "regset.o".
4062         * regset.c: Remove.
4063         * regset.h (regset_alloc): Delete prototype.
4064
4065 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4066
4067         * sparc-linux-tdep.c (sparc32_linux_gregset)
4068         (sparc32_linux_fpregset): New static regset structures.
4069         (sparc32_linux_init_abi): Drop dynamic regset allocations.
4070         * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4071         'fpregset' fields.
4072         * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4073         (sparc64_linux_fpregset): New static regset structures.
4074         (sparc64_linux_init_abi): Drop dynamic regset allocations.
4075         * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4076         New static regset structures.
4077         (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4078         * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4079         New static regset structures.
4080         (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4081         * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4082         New static regset structures.
4083         (sparc64obsd_init_abi): Drop dynamic regset allocations.
4084         * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4085         New static regset structures.
4086         (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4087
4088 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4089
4090         * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4091         (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4092         register maps ("regmaps") from "*regset" to "*regmap".  Do this
4093         for all regmap types and variables.
4094         * sparc-linux-tdep.c (sparc32_linux_step_trap)
4095         (sparc32_linux_supply_core_gregset)
4096         (sparc32_linux_collect_core_gregset)
4097         (sparc32_linux_supply_core_fpregset)
4098         (sparc32_linux_collect_core_fpregset): Likewise.
4099         * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4100         (sparc_gregmap, sparc_fpregmap): ... these.
4101         (sparc_supply_gregset, sparc_collect_gregset)
4102         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4103         (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4104         (_initialize_sparc_nat): Rename regmaps.
4105         * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4106         (sparc_gregmap, sparc_fpregmap): ... these.
4107         (sparc_supply_gregset, sparc_collect_gregset)
4108         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4109         * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4110         Rename macros to...
4111         (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4112         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4113         Likewise.
4114         * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4115         Rename to...
4116         (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4117         * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4118         (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4119         regmaps.
4120         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4121         (sparc32_bsd_fpregset): Rename to...
4122         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4123         (sparc32_bsd_fpregmap): ... these.
4124         * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4125         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4126         (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4127         (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4128         (struct sparc_gregmap, struct sparc_fpregmap)
4129         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4130         (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4131         (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4132         (sparc32_supply_regset, sparc32_collect_gregset)
4133         (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4134         prototypes.
4135         * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4136         (sparc64_linux_ptrace_gregmap): ... this.
4137         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4138         (_initialize_sparc64_linux_nat): Rename regmaps.
4139         * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4140         (sparc64_linux_core_gregmap): ... this.
4141         (sparc64_linux_supply_core_gregset)
4142         (sparc64_linux_collect_core_gregset)
4143         (sparc64_linux_supply_core_fpregset)
4144         (sparc64_linux_collect_core_fpregset): Rename regmaps.
4145         * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4146         (sparc64_sol2_fpregset): Rename to...
4147         (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4148         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4149         (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4150         regmaps.
4151         * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4152         (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4153         (sparc64_bsd_fpregset): Rename to...
4154         (struct sparc_gregmap, sparc64_sol2_gregmap)
4155         (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4156         (sparc64_bsd_fpregmap): ... these.
4157         (sparc64_supply_gregset, sparc64_collect_gregset)
4158         (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4159         prototypes.
4160         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4161         * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4162         (sparc64fbsd_gregmap): ... this.
4163         (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4164         (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4165         Rename regmaps.
4166         * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4167         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4168         (sparc64nbsd_collect_fpregset): Likewise.
4169         * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4170         (sparc64nbsd_gregmap): ... this.
4171         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4172         regmaps.
4173         * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4174         * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4175         (sparc64obsd_gregmap): ... this.
4176         (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4177         regmaps.
4178         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4179         * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4180         (sparc32nbsd_gregmap): ... this.
4181         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4182         regmaps.
4183
4184 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4185
4186         * score-tdep.c (score7_linux_gregset): New static regset
4187         structure.
4188         (score7_linux_regset_from_core_section): Remove dynamic regset
4189         allocation.
4190         (score_gdbarch_init): Drop allocation of tdep structure.
4191         * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4192
4193 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4194
4195         * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4196         regset structures.
4197         (am33_regset_from_core_section): Remove dynamic regset
4198         allocations.
4199
4200 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4201
4202         * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4203         (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4204         structures.
4205         (mips_linux_regset_from_core_section): Remove dynamic regset
4206         allocations.
4207         * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4208         'gregset64', 'fpregset', and 'fpregset64'.
4209         * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4210         deleted tdep fields.
4211
4212 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4213
4214         * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4215         regset structures.
4216         (amd64_regset_from_core_section): Remove dynamic regset
4217         allocations.
4218         * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4219         structure.
4220         (amd64obsd_regset_from_core_section): Remove dynamic regset
4221         allocation.
4222         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4223         Likewise.
4224         * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4225         x86-common regset supply function.
4226         * i386-tdep.c (i386_collect_gregset): Make static.
4227         (i386_gregset): New global regset structure.
4228         (i386_fpregset, i386_xstateregset): New static regset structures.
4229         (i386_regset_from_core_section): Remove dynamic regset
4230         allocations.
4231         (i386_gdbarch_init): Remove initialization of tdep fields
4232         'gregset', 'fpregset', and 'xstateregset'.
4233         * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4234         'fpregset', and 'xstateregset'.
4235         (i386_collect_gregset): Remove prototype.
4236         (i386_gregset): New declaration.
4237         * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4238         structure.
4239         (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4240         allocation.
4241
4242 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4243
4244         * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4245         (arm_linux_vfpregset): New static regset structures.
4246         (arm_linux_regset_from_core_section): Remove dynamic allocation of
4247         regset structures.
4248         * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4249         and 'vfpregset' fields.
4250
4251 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4252
4253         * aarch64-linux-tdep.c (aarch64_linux_gregset)
4254         (aarch64_linux_fpregset): New static regset structures.
4255         (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4256         of regset structures.
4257         * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4258         'fpregset' fields.
4259
4260 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4261
4262         * regset.h (struct regset): Remove gdbarch field.
4263         * regset.c (regset_alloc): Drop initialization of gdbarch field.
4264         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4265         * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4266         Likewise.
4267         * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4268         (ppc32_linux_fpregset, ppc32_linux_vrregset)
4269         (ppc32_linux_vsxregset): Likewise.
4270         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4271         via the regcache instead of the regset.
4272         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4273         (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4274         * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4275         * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4276         Likewise.
4277
4278 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4279
4280         * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4281         Constify structures.
4282         * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4283         (alphanbsd_aout_gregset): Likewise.
4284         * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4285         * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4286         Likewise.
4287         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4288         * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4289         Likewise.
4290         * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4291         * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4292         * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4293         * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4294         * m88k-tdep.c (m88k_gregset): Likewise.
4295         * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4296         * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4297         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4298         * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4299         * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4300         * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4301         * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4302         * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4303         * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4304         Likewise.
4305         * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4306         * sh-tdep.h (sh_corefile_gregset): Likewise.
4307         * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4308         * vax-tdep.c (vax_gregset): Likewise.
4309
4310 2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
4311
4312         Fix TLS access for -static -pthread.
4313         * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4314         (try_thread_db_load_1): Initialize it.
4315         (thread_db_get_thread_local_address): Call it if LM is zero.
4316         * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4317         * target.h (struct target_ops) (to_get_thread_local_address): Add
4318         load_module_addr comment.
4319
4320 2014-05-21  Pedro Alves  <palves@redhat.com>
4321
4322         * dcache.c (dcache_read_memory_partial): If reading the cache line
4323         fails, fallback to reading just the memory the caller wanted.
4324
4325 2014-05-20  Doug Evans  <dje@google.com>
4326
4327         * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4328         instead of get_current_arch.
4329
4330 2014-05-20  Pedro Alves  <palves@redhat.com>
4331
4332         * NEWS: Mention that compare-sections now works with all targets.
4333
4334         * remote.c (PACKET_qCRC): New enum value.
4335         (remote_verify_memory): Don't send qCRC if the target has no
4336         execution.  Use packet_support/packet_ok.  If the target doesn't
4337         support the qCRC packet, fallback to a deep memory copy.
4338         (compare_sections_command): Say "target image" instead of "remote
4339         executable".
4340         (_initialize_remote): Add PACKET_qCRC to the list of config
4341         packets that have no associated command.  Extend comment.
4342         * target.c (simple_verify_memory, default_verify_memory): New
4343         function.
4344         * target.h (struct target_ops) <to_verify_memory>: Default to
4345         default_verify_memory.
4346         (simple_verify_memory): New declaration.
4347         * target-delegates.c: Regenerate.
4348
4349 2014-05-20  Markus Metzger  <markus.t.metzger@intel.com>
4350
4351         * record-btrace.c (record_btrace_step_thread): Check for empty history.
4352
4353 2014-05-20  Hui Zhu  <hui@codesourcery.com>
4354             Yao Qi  <yao@codesourcery.com>
4355
4356         PR backtrace/16558
4357         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4358         and change address of sp and pc.
4359
4360 2014-05-19  Tom Tromey  <tromey@redhat.com>
4361
4362         * gdbtypes.c (rank_function): Use XNEWVEC.
4363         * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4364
4365 2014-05-19  Doug Evans  <dje@google.com>
4366
4367         * dwarf2read.c (build_type_psymtabs_1): Renamed from
4368         build_type_unit_groups and moved closer to only caller.  Remove
4369         arguments.  All references updated.  Remove outdated .gdb_index
4370         comment.
4371         (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4372         build_type_psymtabs_1.
4373
4374 2014-05-19  Doug Evans  <dje@google.com>
4375
4376         * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4377         n_type_unit_groups, all_type_unit_groups.  All uses removed.
4378         (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4379         (dw2_get_cutu): Renamed from dw2_get_cu.  All callers updated.
4380         (dw2_get_cu): Renamed from dw2_get_primary_cu.  All callers updated.
4381         (add_type_unit_group_to_table): Delete.
4382
4383 2014-05-19  Doug Evans  <dje@google.com>
4384
4385         * eval.c (evaluate_subexp_standard): Add some comments.
4386
4387 2014-05-17  Doug Evans  <xdje42@gmail.com>
4388
4389         * progspace.c (remove_program_space): Delete, unused.
4390         * progspace.h (remove_program_space): Ditto.
4391
4392 2014-05-17  Doug Evans  <xdje42@gmail.com>
4393
4394         * inferior.c (prune_inferiors): Fix comment.
4395         (remove_inferior_command): Call prune_program_spaces.
4396
4397 2014-05-16  Doug Evans  <dje@google.com>
4398
4399         New command line option -D.
4400         * NEWS: Mention it.
4401         * main.c (set_gdb_data_directory): New function.
4402         (captured_main): Recognize -D.  Flag error for --data-directory "".
4403         Call set_gdb_data_directory.
4404         (print_gdb_help): Print --data-directory, -D.
4405         * main.h (set_gdb_data_directory): Declare.
4406         * top.c (staged_gdb_datadir): New static global.
4407         (set_gdb_datadir): Call set_gdb_data_directory
4408         (show_gdb_datadir): New function.
4409         (init_main): Update init of data-directory parameter.
4410
4411 2014-05-16  Gregory Fong  <gregory.0xf0@gmail.com>
4412
4413         Import the "dirfd" gnulib module.
4414         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4415         * gnulib/aclocal.m4: Update.
4416         * gnulib/config.in: Update.
4417         * gnulib/configure: Update.
4418         * gnulib/import/Makefile.am: Update.
4419         * gnulib/import/Makefile.in: Update.
4420         * gnulib/import/dirfd.c: New.
4421         * gnulib/import/m4/dirfd.m4: New.
4422         * gnulib/import/m4/gnulib-cache.m4: Update.
4423         * gnulib/import/m4/gnulib-comp.m4: Update.
4424
4425 2014-05-16  Pierre Muller  <muller@sourceware.org>
4426             Yao Qi  <yao@codesourcery.com>
4427
4428         * valprint.c (print_wchar): Move the code on checking whether
4429         W is a printable wide char to the default branch of switch
4430         statement below.  Call wchar_printable instead of gdb_iswprint.
4431
4432 2014-05-16  Taimoor Mirza  <tmirza@codesourcery.com>
4433
4434         * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4435         ldr.w and ldrd instructions.
4436
4437 2014-05-15  Doug Evans  <dje@google.com>
4438
4439         * dwarf2read.c (read_structure_type): Delete outdated comments.
4440
4441 2014-05-14  Tom Tromey  <tromey@redhat.com>
4442
4443         * macrocmd.c (print_macro_definition): Reindent.
4444
4445 2014-05-13  Doug Evans  <xdje42@gmail.com>
4446
4447         * python/py-cmd.c (cmdpy_completer): Add comment.
4448         (completers): Make const.
4449
4450 2014-05-13  Simon Marchi  <simon.marchi@ericsson.com>
4451
4452         * infrun.c (resume): Remove should_resume (unused).  Move up
4453         declaration of resume_ptid.
4454
4455 2014-05-13  Tom Tromey  <tromey@redhat.com>
4456
4457         * language.h (unop_type_check): Remove.
4458         (binop_type_check): Don't declare.
4459
4460 2014-05-13  Andreas Arnez  <arnez@vnet.linux.ibm.com>
4461
4462         * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4463         call to regcache_raw_collect.
4464
4465 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
4466
4467         * mi/mi-console.c (mi_console_raw_packet): Use the value from
4468         mi_console->quote as the quoting character.
4469
4470 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
4471
4472         * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4473
4474 2014-04-29  Tom Tromey  <tromey@redhat.com>
4475
4476         * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4477         "show debug varobj".
4478
4479 2014-05-07  Kyle McMartin  <kyle@redhat.com>
4480
4481         Pushed by Joel Brobecker  <brobecker@adacore.com>.
4482         * aarch64-tdep.c (aarch64_software_single_step): New function.
4483         (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4484         with aarch64_software_single_step.
4485
4486 2014-05-05  Joel Brobecker  <brobecker@adacore.com>
4487
4488         GDB 7.7.1 released.
4489
4490 2014-05-05  Keith Seitz  <keiths@redhat.com>
4491
4492         * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4493         variable or history value is successfully parsed.
4494
4495 2014-05-05  Yao Qi  <yao@codesourcery.com>
4496             Pedro Alves  <palves@redhat.com>
4497
4498         * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4499         address of blocks that intersects the requested range.  Trim
4500         LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4501         sections.
4502         * ctf.c (ctf_xfer_partial): Likewise.
4503
4504 2014-05-05  Yao Qi  <yao@codesourcery.com>
4505
4506         * printcmd.c (display_command): Remove the check to
4507         target_has_execution.
4508
4509 2014-05-03  Mark Kettenis  <kettenis@gnu.org>
4510
4511         * ppcobsd-nat.c: Include "obsd-nat.h".
4512         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4513         add_target.
4514         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4515
4516 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
4517
4518         * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4519         and 16-bit signed and unsigned arguments.  Update comment.
4520         (stap_parse_probe_arguments): Extend code to handle such
4521         arguments.  Use warning instead of complaint to notify about
4522         unrecognized bitness.
4523
4524 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
4525
4526         PR breakpoints/16889
4527         * stap-probe.c (stap_parse_probe_arguments): Simplify
4528         check for non-prefixed probes (i.e., probes whose
4529         arguments do not start with "N@").  Always set the
4530         argument type to a sane value.
4531
4532 2014-05-01  David Taylor  <dtaylor@emc.com>
4533
4534         * remote.c (compare_sections_command): Add -r option to compare
4535         all loadable read-only sections.
4536
4537 2014-04-30  Siva Chandra Reddy  <sivachandra@google.com>
4538
4539         * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4540         dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4541         Update all callers.
4542         * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4543         * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4544         Remove unused CORE_ADDR argument.  Update all callers.
4545
4546 2014-04-29  Pedro Alves  <palves@redhat.com>
4547
4548         * remote.c (struct packet_config) <detect>: Extend comment.
4549         (add_packet_config_cmd): Don't set the config's detect or support
4550         fields here.
4551         (init_all_packet_configs): Also initialize the config's 'detect'
4552         field.
4553         (reset_all_packet_configs_support): New function.
4554         (remote_open_1): Call reset_all_packet_configs_support instead of
4555         init_all_packet_configs.
4556         (_initialize_remote): Initialize all packet configs.  Assert that
4557         all packets have an associated command, except a few known
4558         outliers.
4559
4560 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
4561
4562         * dwarf2read.c (read_subrange_type): Handle dynamic
4563         DW_AT_lower_bound attributes.
4564
4565 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
4566
4567         * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4568         dynamic bounds before computing its upper bound.
4569         (ada_discrete_type_low_bound): Same as above with the lower bound.
4570
4571 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
4572
4573         * dwarf2read.c (is_dynamic_type): Return true for dynamic
4574         range types.  Adjust the array handling implementation to
4575         take advantage of this change.
4576         (resolve_dynamic_range): New function, mostly extracted from
4577         resolve_dynamic_bounds.
4578         (resolve_dynamic_array): New function, mostly extracted from
4579         resolve_dynamic_bounds.
4580         (resolve_dynamic_bounds): Delete.
4581         (resolve_dynamic_type): Reimplement.  Add handling of
4582         TYPE_CODE_RANGE types.
4583
4584 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
4585
4586         * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4587         handling of parallel ___XA types.
4588
4589 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
4590
4591         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4592         unnecessary second call to static_unwrap_type.
4593
4594 2014-04-27  Hui Zhu  <hui@codesourcery.com>
4595
4596         * stack.c (print_frame_info): Call do_gdb_disassembly with
4597         DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4598
4599 2014-04-26  Doug Evans  <xdje42@gmail.com>
4600
4601         * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4602
4603 2014-04-25  Pedro Alves  <palves@redhat.com>
4604
4605         PR server/16255
4606         * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4607         (linux_ptrace_attach_fail_reason): ... this.  Remove "warning: "
4608         and newline from built string.
4609         * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4610         (linux_ptrace_attach_fail_reason): ... this.
4611         * linux-nat.c (linux_nat_attach): Adjust to use
4612         linux_ptrace_attach_fail_reason.
4613
4614 2014-04-25  Pedro Alves  <palves@redhat.com>
4615
4616         * remote.c (struct remote_state): Remove multi_process_aware,
4617         non_stop_aware, cond_tracepoints, cond_breakpoints,
4618         breakpoint_commands, fast_tracepoints, static_tracepoints,
4619         install_in_trace, disconnected_tracing,
4620         enable_disable_tracepoints, string_tracing, and
4621         augmented_libraries_svr4_read fields.
4622         (remote_multi_process_p): Move further below in the file.
4623         (struct packet_config): Add comments.
4624         (update_packet_config): Delete function.
4625         (show_packet_config_cmd): Use packet_config_support.
4626         (add_packet_config_cmd): Use NULL as set callback.
4627         (packet_ok): "set remote foo-packet"-style commands no longer
4628         change config->supported -- adjust.
4629         (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4630         (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4631         (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4632         (PACKET_QNonStop, PACKET_multiprocess_feature)
4633         (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4634         (PACKET_DisconnectedTracing_feature)
4635         (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4636         (set_remote_protocol_packet_cmd): Delete function.
4637         (packet_config_support, packet_support): New functions.
4638         (set_remote_protocol_Z_packet_cmd): Don't call
4639         update_packet_config.
4640         (remote_query_attached, remote_pass_signals)
4641         (remote_program_signals, remote_threads_info)
4642         (remote_threads_extra_info, remote_start_remote): Use
4643         packet_support.
4644         (remote_start_remote): Use packet_config_support and
4645         packet_support.
4646         (init_all_packet_configs): Set all packets to unknown support,
4647         instead of calling update_packet_config.
4648         (remote_check_symbols): Use packet_support.
4649         (remote_supported_packet): Unconditionally set the packet config's
4650         support status.
4651         (remote_multi_process_feature, remote_non_stop_feature)
4652         (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4653         (remote_breakpoint_commands_feature)
4654         (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4655         (remote_install_in_trace_feature)
4656         (remote_disconnected_tracing_feature)
4657         (remote_enable_disable_tracepoint_feature)
4658         (remote_string_tracing_feature)
4659         (remote_augmented_libraries_svr4_read_feature): Delete functions.
4660         (remote_protocol_features): Adjust to use remote_supported_packet
4661         for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4662         "ConditionalTracepoints", "ConditionalBreakpoints",
4663         "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4664         "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4665         "EnableDisableTracepoints", and "tracenz".
4666         (remote_query_supported): Use packet_support.
4667         (remote_open_1): Adjust.
4668         (extended_remote_attach_1): Use packet_support.  Switch on the
4669         result of packet_ok instead of checking whether the packet ended
4670         up disabled.
4671         (remote_vcont_resume): Use packet_support.
4672         (remote_resume, remote_stop_ns, fetch_register_using_p)
4673         (remote_prepare_to_store, store_register_using_P)
4674         (check_binary_download, remote_write_bytes): Use packet_support.
4675         (remote_vkill): Use packet_support.  Switch on the result of
4676         packet_ok instead of checking whether the packet ended up
4677         disabled.
4678         (extended_remote_supports_disable_randomization): Use
4679         packet_support.
4680         (extended_remote_run): Switch on the result of packet_ok instead
4681         of checking whether the packet ended up disabled.
4682         (remote_insert_breakpoint, remote_remove_breakpoint)
4683         (remote_insert_watchpoint, remote_remove_watchpoint)
4684         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4685         packet_support.
4686         (remote_search_memory): Use packet_config_support.
4687         (remote_get_thread_local_address, remote_get_tib_address)
4688         (remote_hostio_send_command, remote_can_execute_reverse): Use
4689         packet_support.
4690         (remote_supports_cond_tracepoints)
4691         (remote_supports_cond_breakpoints)
4692         (remote_supports_fast_tracepoints)
4693         (remote_supports_static_tracepoints)
4694         (remote_supports_install_in_trace)
4695         (remote_supports_enable_disable_tracepoint)
4696         (remote_supports_string_tracing)
4697         (remote_can_run_breakpoint_commands): Rewrite, checking whether
4698         the packet config says the feature is enabled or disabled.
4699         (remote_download_tracepoint, remote_trace_set_readonly_regions)
4700         (remote_get_trace_status): Use packet_support.
4701         (remote_set_disconnected_tracing): Adjust to check whether the
4702         feature is enabled with packet_support.
4703         (remote_set_trace_buffer_size, remote_use_agent)
4704         (remote_can_use_agent, remote_supports_btrace): Use
4705         packet_support.
4706         (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4707         Use packet_config_support.
4708         (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4709         the packet config says the feature is enabled or disabled.
4710         (set_range_stepping): Use packet_support.
4711
4712 2014-04-25  Tom Tromey  <tromey@redhat.com>
4713
4714         * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4715         argument.
4716
4717 2014-04-24  Sanimir Agovic  <sanimir.agovic@intel.com>
4718
4719         * NEWS: Mention support for C99 variable length arrays.
4720
4721 2014-04-24  Joel Brobecker  <brobecker@adacore.com>
4722
4723         * ada-lang.c (standard_exc): Expand introductory comment.
4724
4725 2014-04-24  Michael Sturm  <michael.sturm@mintel.com>
4726             Walfred Tedeschi  <walfred.tedeschi@intel.com>
4727
4728         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4729         AVX512 registers.
4730         (amd64_linux_read_description): Add code to handle AVX512 xstate
4731         mask and return respective tdesc.
4732         * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4733         and features/i386/x32-avx512-linux.c.
4734         (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4735         (amd64_linux_core_read_description): Add code to handle AVX512
4736         xstate mask and return respective tdesc.
4737         (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4738         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4739         calculation.
4740         (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4741         (tdesc_amd64_avx512_linux): New prototype.
4742         (tdesc_x32_avx512_linux): Likewise.
4743         * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4744         features/i386/x32-avx512.c.
4745         (amd64_ymm_avx512_names): New register names for pseudo
4746         registers YMM16-31.
4747         (amd64_ymmh_avx512_names): New register names for raw registers
4748         YMMH16-31.
4749         (amd64_k_names): New register names for K registers.
4750         (amd64_zmmh_names): New register names for ZMM raw registers.
4751         (amd64_zmm_names): New registers names for ZMM pseudo registers.
4752         (amd64_xmm_avx512_names): New register names for XMM16-31
4753         registers.
4754         (amd64_pseudo_register_name): Add code to return AVX512 pseudo
4755         registers.
4756         (amd64_init_abi): Add code to intitialize AVX512 tdep variables
4757         if feature is present.
4758         (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
4759         * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
4760         (AMD64_NUM_REGS): Adjust to new number of registers.
4761         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
4762         registers supplied via XSTATE by AVX512 registers.
4763         (i386_linux_read_description): Add case for AVX512.
4764         * i386-linux-tdep.c: Include i386-avx512-linux.c.
4765         (i386_linux_gregset_reg_offset): Add AVX512 registers.
4766         (i386_linux_core_read_description): Add case for AVX512.
4767         (i386_linux_init_abi): Install supported register note section
4768         for AVX512.
4769         (_initialize_i386_linux_tdep): Add call to tdesc init function for
4770         AVX512.
4771         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
4772         registers to be number of zmm7h + 1.
4773         (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
4774         * i386-tdep.c: Include features/i386/i386-avx512.c.
4775         (i386_zmm_names): Add ZMM pseudo register names array.
4776         (i386_zmmh_names): Add ZMM raw register names array.
4777         (i386_k_names): Add K raw register names array.
4778         (num_lower_zmm_regs): Add constant for the number of lower ZMM
4779         registers. AVX512 has 16 more ZMM registers than there are YMM
4780         registers.
4781         (i386_zmmh_regnum_p): Add function to look up register number of
4782         ZMM raw registers.
4783         (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
4784         (i386_k_regnum_p): Likewise for K raw registers.
4785         (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
4786         registers added by AVX512.
4787         (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
4788         registers added by AVX512.
4789         (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
4790         added by AVX512.
4791         (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
4792         (i386_pseudo_register_name): Add ZMM pseudo registers.
4793         (i386_zmm_type): Construct and return vector registers type for ZMM
4794         registers.
4795         (i386_pseudo_register_type): Return appropriate type for YMM16-31,
4796         ZMM0-31 pseudo registers and K registers.
4797         (i386_pseudo_register_read_into_value): Add code to read K, ZMM
4798         and YMM16-31 registers from register cache.
4799         (i386_pseudo_register_write): Add code to write  K, ZMM and
4800         YMM16-31 registers.
4801         (i386_register_reggroup_p): Add code to include/exclude AVX512
4802         registers in/from respective register groups.
4803         (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
4804         registers if feature is present in xcr0.
4805         (i386_gdbarch_init): Add code to initialize AVX512 feature
4806         variables in tdep structure, wire in pseudo registers and call
4807         initialize_tdesc_i386_avx512.
4808         * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
4809         variables.
4810         (i386_regnum): Add AVX512 registers.
4811         (I386_SSE_NUM_REGS): New define for number of SSE registers.
4812         (I386_AVX_NUM_REGS): Likewise for AVX registers.
4813         (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
4814         (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
4815         512 bits wide.
4816         (i386_xmm_avx512_regnum_p): New prototype for register look up.
4817         (i386_ymm_avx512_regnum_p): Likewise.
4818         (i386_k_regnum_p): Likewise.
4819         (i386_zmm_regnum_p): Likewise.
4820         (i386_zmmh_regnum_p): Likewise.
4821         * i387-tdep.c : Update year in copyright notice.
4822         (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
4823         XSAVE buffer.
4824         (XSAVE_YMM_AVX512_ADDR): New macro.
4825         (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
4826         XSAVE buffer.
4827         (XSAVE_XMM_AVX512_ADDR): New macro.
4828         (xsave_avx512_k_offset): New table for K register offsets in
4829         XSAVE buffer.
4830         (XSAVE_AVX512_K_ADDR): New macro.
4831         (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
4832         in XSAVE buffer.
4833         (XSAVE_AVX512_ZMM_H_ADDR): New macro.
4834         (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
4835         buffer.
4836         (i387_collect_xsave): Add code to collect AVX512 registers from
4837         XSAVE buffer.
4838         * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
4839         of XMM16-31 registers.
4840         (I387_NUM_K_REGS): New define for number of K registers.
4841         (I387_K0_REGNUM): New define for K0 register number.
4842         (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
4843         (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
4844         (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
4845         registers.
4846         (I387_YMM16H_REGNUM): New define for YMM16H register number.
4847         (I387_XMM16_REGNUM): New define for XMM16 register number.
4848         (I387_YMM0_REGNUM): New define for YMM0 register number.
4849         (I387_KEND_REGNUM): New define for last K register number.
4850         (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
4851         (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
4852         number.
4853         (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
4854         number.
4855         * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
4856         size.
4857         * features/Makefile: Add AVX512 related files.
4858         * features/i386/32bit-avx512.xml: New file.
4859         * features/i386/64bit-avx512.xml: Likewise.
4860         * features/i386/amd64-avx512-linux.c: Likewise.
4861         * features/i386/amd64-avx512-linux.xml: Likewise.
4862         * features/i386/amd64-avx512.c: Likewise.
4863         * features/i386/amd64-avx512.xml: Likewise.
4864         * features/i386/i386-avx512-linux.c: Likewise.
4865         * features/i386/i386-avx512-linux.xml: Likewise.
4866         * features/i386/i386-avx512.c: Likewise.
4867         * features/i386/i386-avx512.xml: Likewise.
4868         * features/i386/x32-avx512-linux.c: Likewise.
4869         * features/i386/x32-avx512-linux.xml: Likewise.
4870         * features/i386/x32-avx512.c: Likewise.
4871         * features/i386/x32-avx512.xml: Likewise.
4872         * regformats/i386/amd64-avx512-linux.dat: New file.
4873         * regformats/i386/amd64-avx512.dat: Likewise.
4874         * regformats/i386/i386-avx512-linux.dat: Likewise.
4875         * regformats/i386/i386-avx512.dat: Likewise.
4876         * regformats/i386/x32-avx512-linux.dat: Likewise.
4877         * regformats/i386/x32-avx512.dat: Likewise.
4878         * NEWS: Add note about new support for AVX512.
4879
4880
4881 2014-04-23  Pedro Alves  <palves@redhat.com>
4882
4883         * breakpoint.c (insert_bp_location): Tolerate errors if the
4884         breakpoint is set in a user-loaded objfile.
4885         (remove_breakpoint_1): Likewise.  Also tolerate errors if the
4886         location is marked shlib_disabled.  If the breakpoint is set in a
4887         user-loaded objfile is a GDB-side memory breakpoint, validate it
4888         before uninsertion.  (disable_breakpoints_in_freed_objfile): Skip
4889         non-OBJF_USERLOADED objfiles.  Don't clear the location's inserted
4890         flag.
4891         * mem-break.c (memory_validate_breakpoint): New function.
4892         * objfiles.c (userloaded_objfile_contains_address_p): New
4893         function.
4894         * objfiles.h (userloaded_objfile_contains_address_p): Declare.
4895         * target.h (memory_validate_breakpoint): New declaration.
4896
4897 2014-04-23  Pedro Alves  <palves@redhat.com>
4898
4899         * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
4900         the breakpoint is set in a shared library, only suppress
4901         errors for software breakpoints, not hardware breakpoints.
4902
4903 2014-04-22  Pedro Alves  <palves@redhat.com>
4904
4905         * infrun.c (schedlock_applies): New function, factored out from
4906         find_thread_needs_step_over.
4907         (find_thread_needs_step_over): Use it.
4908         (switch_back_to_stepped_thread): Always clear trap_expected if the
4909         step over is finished.  Return early if scheduler locking applies.
4910         Look for the stepping thread and a potential step-over thread with
4911         a single loop.
4912         (currently_stepping_or_nexting_callback): Delete.
4913
4914 2014-04-22  Nick Clifton  <nickc@redhat.com>
4915
4916         * NEWS: Mention that ARM sim now supports tracing.
4917
4918 2014-04-22  Yao Qi  <yao@codesourcery.com>
4919
4920         * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
4921         to ...
4922         * tracefile.c (tracefile_fetch_registers): ... it.  New
4923         function.
4924         * tracefile.h (tracefile_fetch_registers): Declare.
4925         * ctf.c (ctf_fetch_registers): Remove the bottom.  Call
4926         tracefile_fetch_registers.
4927
4928 2014-04-19  Eli Zaretskii  <eliz@gnu.org>
4929
4930         PR gdb/14018
4931         * windows-nat.c (thread_rec): Don't display a warning when
4932         SuspendThread fails with ERROR_ACCESS_DENIED.  If SuspendThread
4933         fails for any reason, set th->suspended to -1, so that we don't
4934         try to resume such a thread.  Also, don't return NULL in these
4935         cases, to avoid completely ruin the session due to "PC register is
4936         not available" error.
4937         (do_windows_fetch_inferior_registers): Check errors in
4938         GetThreadContext call.
4939         (windows_continue): Accept an additional argument KILLED; if not
4940         zero, ignore errors in the SetThreadContext call, since the
4941         inferior was killed and is shutting down.
4942         (windows_resume, get_windows_debug_event)
4943         (windows_create_inferior, windows_mourn_inferior)
4944         (windows_kill_inferior): All callers of windows_continue changed
4945         to adjust to its new calling sequence.
4946
4947 2014-04-19  Yao Qi  <yao@codesourcery.com>
4948
4949         * ctf.c (ctf_open): Call post_create_inferior.
4950
4951 2014-04-19  Yao Qi  <yao@codesourcery.com>
4952
4953         * ctf.c (handle_id): New static variable.
4954         (ctf_open_dir): Get handle_id from bt_context_add_trace return
4955         value.  Get the declaration of event "register" and get length
4956         of field "contents".
4957
4958 2014-04-19  Yao Qi  <yao@codesourcery.com>
4959
4960         * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
4961
4962 2014-04-18  Siva Chandra Reddy  <sivachandra@google.com>
4963
4964         * valops.c (oload_method_static): Remove unnecessary argument
4965         METHOD.  Update all callers.
4966
4967 2014-04-18  Pedro alves  <palves@redhat.com>
4968             Tom Tromey  <tromey@redhat.com>
4969
4970         PR backtrace/15558
4971         * frame.c (get_prev_frame_1): Rename to ...
4972         (get_prev_frame_always): ... this, and make extern.  Adjust.
4973         (skip_artificial_frames): Use get_prev_frame_always.
4974         (frame_unwind_caller_id, frame_pop, get_prev_frame)
4975         (get_frame_unwind_stop_reason): Adjust to rename.
4976         * frame.h (get_prev_frame_always): Declare.
4977         * inline-frame.c: Include frame.h.
4978         (inline_frame_this_id): Use get_prev_frame_always.
4979
4980 2014-04-18  Tristan Gingold  <gingold@adacore.com>
4981
4982         * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
4983         code by using bfd_mach_o_get_base_address.
4984
4985 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
4986
4987         * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
4988         (spu_ax_pseudo_register_collect): New function.
4989         (spu_ax_pseudo_register_push_stack): Likewise.
4990         (spu_dwarf_reg_to_regnum): Likewise.
4991         (spu_gdbarch_init): Install them.  Append DWARF unwinders.
4992
4993 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
4994
4995         * gdbarch.sh (value_from_register): Make class "m" instead of "f".
4996         Replace FRAME argument with FRAME_ID.
4997         * gdbarch.c, gdbarch.h: Regenerate.
4998         * findvar.c (default_value_from_register): Add GDBARCH argument;
4999         replace FRAME by FRAME_ID.  No longer call get_frame_id.
5000         (value_from_register): Update call to gdbarch_value_from_register.
5001         * value.h (default_value_from_register): Update prototype.
5002         * s390-linux-tdep.c (s390_value_from_register): Update interface
5003         and call to default_value_from_register.
5004         * spu-tdep.c (spu_value_from_register): Likewise.
5005
5006         * findvar.c (address_from_register): Remove TYPE argument.
5007         Do not call value_from_register; use gdbarch_value_from_register
5008         with null_frame_id instead.
5009         * value.h (address_from_register): Update prototype.
5010         * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5011         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5012         address_from_register interface change.
5013
5014 2014-04-17  Yao Qi  <yao@codesourcery.com>
5015
5016         * gdbtypes.h: Update comments to link to types and macros'
5017         definitions.
5018
5019 2014-04-16  Siva Chandra Reddy  <sivachandra@google.com>
5020
5021         * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5022
5023 2014-04-16  Keith Seitz  <keiths@redhat.com>
5024
5025         PR gdb/15827
5026         * dwarf2read.c (skip_one_die): Check that all relative-offset
5027         sibling DIEs fall within range of the current reader's buffer.
5028         (read_partial_die): Likewise.
5029
5030 2014-04-16  Keith Seitz  <keiths@redhat.com>
5031
5032         PR c++/16597
5033         * cp-namespace.c (lookup_symbol_file): If the type name of
5034         `this' is NULL, return immediately.
5035
5036 2014-04-14  Keith Seitz  <keiths@redhat.com>
5037
5038         PR c++/16253
5039         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5040         from symbol_matches_domain in symtab.c. All local callers
5041         of symbol_matches_domain updated.
5042         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5043         search STRUCT_DOMAIN.
5044         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5045         independently.  standard_lookup will do that automatically.
5046         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5047         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5048         (cp_lookup_symbol_in_namespace): Likewise.
5049         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5050         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5051         may return a STRUCT_DOMAIN match.
5052         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5053         * cp-support.c: Include language.h.
5054         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5055         VAR_DOMAIN.
5056         * psymtab.c (match_partial_symbol): Compare the requested
5057         domain with the symbol's domain directly.
5058         (lookup_partial_symbol): Likewise.
5059         * symtab.c (lookup_symbol_in_language): Explain when/why
5060         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5061         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5062         appropriate languages.
5063         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5064         and moved to ada-lang.c
5065         (lookup_block_symbol): Explain that this function only returns
5066         symbol matching the requested DOMAIN.
5067         Compare the requested domain with the symbol's domain directly.
5068         (iterate_over_symbols): Compare the requested domain with the
5069         symbol's domain directly.
5070         * symtab.h (symbol_matches_domain): Remove.
5071
5072 2014-04-14  Tom Tromey  <tromey@redhat.com>
5073
5074         PR c++/15246:
5075         * c-exp.y (type_aggregate_p): New function.
5076         (qualified_name, classify_inner_name): Use it.
5077         * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5078         and TYPE_TARGET_TYPE of an enum type.
5079         * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5080         an enum type.
5081         (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5082         handle TYPE_DECLARED_CLASS.
5083         * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5084         types.
5085         * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5086         * valops.c (enum_constant_from_type): New function.
5087         (value_aggregate_elt): Use it.
5088         * cp-namespace.c (cp_lookup_nested_symbol): Handle
5089         TYPE_CODE_ENUM.
5090
5091 2014-04-14  Tom Tromey  <tromey@redhat.com>
5092
5093         * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5094         (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5095         const.
5096         * value.h (value_aggregate_elt): Update.
5097
5098 2014-04-14  Tom Tromey  <tromey@redhat.com>
5099
5100         * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5101
5102 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
5103
5104         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5105         (evaluate_subexp_standard): Pass noside argument.
5106         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5107         if noside equals EVAL_NORMAL. If the subscript yields a vla type
5108         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5109         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5110         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5111
5112 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
5113
5114         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5115         points to a constant blob.
5116
5117 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
5118
5119         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5120         property and store it as the high bound and flag the range accordingly.
5121         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5122         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5123         * gdbtypes.h (enum range_flags): New enum.
5124         (struct range_bounds): Add flags member.
5125
5126 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
5127
5128         * c-typeprint.c (c_type_print_varspec_suffix): Added
5129         check for not yet resolved high bound. If unresolved, print
5130         "variable length" string to the console instead of random
5131         length.
5132
5133 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
5134
5135         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5136         value.
5137         (ada_template_to_fixed_record_type_1): Likewise.
5138         (ada_to_fixed_type_1): Likewise.
5139         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5140         (cp_print_value): Likewise.
5141         * d-valprint.c (dynamic_array_type): Likewise.
5142         * findvar.c (address_of_variable): Likewise.
5143         * jv-valprint.c (java_value_print): Likewise.
5144         * valops.c (value_ind): Likewise.
5145         * value.c (coerce_ref): Likewise.
5146
5147 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
5148
5149         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5150         value and retrieve the dynamic type size.
5151
5152 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
5153
5154         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5155         passed to sizeof is dynamic evaluate the argument to compute the length.
5156
5157 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
5158             Joel Brobecker  <brobecker@adacore.com>
5159
5160         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5161         (dwarf2_evaluate_property): New function.
5162         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5163         * dwarf2read.c (attr_to_dynamic_prop): New function.
5164         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5165         attribute.
5166         * gdbtypes.c: Include dwarf2loc.h.
5167         (is_dynamic_type): New function.
5168         (resolve_dynamic_type): New function.
5169         (resolve_dynamic_bounds): New function.
5170         (get_type_length): New function.
5171         (check_typedef): Use get_type_length to compute type length.
5172         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5173         (TYPE_LOW_BOUND_KIND): New macro.
5174         (is_dynamic_type): New function prototype.
5175         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5176         to resolve dynamic properties of the type. Update comment.
5177         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5178
5179 2014-04-14  Richard Henderson  <rth@redhat.com>
5180
5181         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5182
5183 2014-04-12  Siva Chandra Reddy  <sivachandra@google.com>
5184             Doug Evans  <xdje42@gmail.com>
5185
5186         * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5187         dereference TYPE_CODE_REF values.
5188
5189 2014-04-11  Joel Brobecker  <brobecker@adacore.com>
5190
5191         Revert the following changes due to regressions:
5192
5193         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5194         (dwarf2_evaluate_property): New function.
5195         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5196         * dwarf2read.c (attr_to_dynamic_prop): New function.
5197         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5198         attribute.
5199         * gdbtypes.c: Include dwarf2loc.h.
5200         (is_dynamic_type): New function.
5201         (resolve_dynamic_type): New function.
5202         (resolve_dynamic_bounds): New function.
5203         (get_type_length): New function.
5204         (check_typedef): Use get_type_length to compute type length.
5205         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5206         (TYPE_LOW_BOUND_KIND): New macro.
5207         (is_dynamic_type): New function prototype.
5208         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5209         to resolve dynamic properties of the type. Update comment.
5210         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5211
5212         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5213         passed to sizeof is dynamic evaluate the argument to compute the length.
5214
5215         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5216         value and retrieve the dynamic type size.
5217
5218         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5219         (ada_template_to_fixed_record_type_1): Likewise.
5220         (ada_to_fixed_type_1): Likewise.
5221         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5222         (cp_print_value): Likewise.
5223         * d-valprint.c (dynamic_array_type): Likewise.
5224         * eval.c (evaluate_subexp_with_coercion): Likewise.
5225         * findvar.c (address_of_variable): Likewise.
5226         * jv-valprint.c (java_value_print): Likewise.
5227         * valops.c (value_ind): Likewise.
5228         * value.c (coerce_ref): Likewise.
5229
5230         * c-typeprint.c (c_type_print_varspec_suffix): Added
5231         check for not yet resolved high bound. If unresolved, print
5232         "variable length" string to the console instead of random
5233         length.
5234
5235         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5236         property and store it as the high bound and flag the range accordingly.
5237         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5238         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5239         * gdbtypes.h (enum range_flags): New enum.
5240         (struct range_bounds): Add flags member.
5241
5242         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5243         points to a constant blob.
5244
5245         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5246         (evaluate_subexp_standard): Pass noside argument.
5247         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5248         if noside equals EVAL_NORMAL. If the subscript yields a vla type
5249         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5250         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5251         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5252
5253 2014-04-11  Keith Seitz  <keiths@redhat.com>
5254
5255         PR c++/16675
5256         * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5257         * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5258         reference types.
5259
5260 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5261
5262         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5263         (evaluate_subexp_standard): Pass noside argument.
5264         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5265         if noside equals EVAL_NORMAL. If the subscript yields a vla type
5266         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5267         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5268         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5269
5270 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5271
5272         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5273         points to a constant blob.
5274
5275 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5276
5277         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5278         property and store it as the high bound and flag the range accordingly.
5279         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5280         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5281         * gdbtypes.h (enum range_flags): New enum.
5282         (struct range_bounds): Add flags member.
5283
5284 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5285
5286         * c-typeprint.c (c_type_print_varspec_suffix): Added
5287         check for not yet resolved high bound. If unresolved, print
5288         "variable length" string to the console instead of random
5289         length.
5290
5291 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5292
5293         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5294         (ada_template_to_fixed_record_type_1): Likewise.
5295         (ada_to_fixed_type_1): Likewise.
5296         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5297         (cp_print_value): Likewise.
5298         * d-valprint.c (dynamic_array_type): Likewise.
5299         * eval.c (evaluate_subexp_with_coercion): Likewise.
5300         * findvar.c (address_of_variable): Likewise.
5301         * jv-valprint.c (java_value_print): Likewise.
5302         * valops.c (value_ind): Likewise.
5303         * value.c (coerce_ref): Likewise.
5304
5305 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5306
5307         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5308         value and retrieve the dynamic type size.
5309
5310 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5311
5312         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5313         passed to sizeof is dynamic evaluate the argument to compute the length.
5314
5315 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5316
5317         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5318         (dwarf2_evaluate_property): New function.
5319         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5320         * dwarf2read.c (attr_to_dynamic_prop): New function.
5321         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5322         attribute.
5323         * gdbtypes.c: Include dwarf2loc.h.
5324         (is_dynamic_type): New function.
5325         (resolve_dynamic_type): New function.
5326         (resolve_dynamic_bounds): New function.
5327         (get_type_length): New function.
5328         (check_typedef): Use get_type_length to compute type length.
5329         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5330         (TYPE_LOW_BOUND_KIND): New macro.
5331         (is_dynamic_type): New function prototype.
5332         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5333         to resolve dynamic properties of the type. Update comment.
5334         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5335
5336 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5337
5338         * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5339         declaring high/low bounds and change uses accordingly. Call
5340         create_range_type instead of create_static_range_type.
5341         * gdbtypes.c (create_range_type): New function.
5342         (create_range_type): Convert bounds into struct bound_prop and pass
5343         them to create_range_type.
5344         * gdbtypes.h (struct bound_prop): New struct.
5345         (create_range_type): New function prototype.
5346         (struct range_bounds): Use struct bound_prop instead of LONGEST for
5347         high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5348         (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5349         part of the bound.
5350         * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5351
5352 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5353
5354         * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5355         * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5356         * ada-lang.c: All uses of create_range_type updated.
5357         * coffread.c: All uses of create_range_type updated.
5358         * dwarf2read.c: All uses of create_range_type updated.
5359         * f-exp.y: All uses of create_range_type updated.
5360         * m2-valprint.c: All uses of create_range_type updated.
5361         * mdebugread.c: All uses of create_range_type updated.
5362         * stabsread.c: All uses of create_range_type updated.
5363         * valops.c: All uses of create_range_type updated.
5364         * valprint.c: All uses of create_range_type updated.
5365
5366 2014-04-10  Pedro Alves  <palves@redhat.com>
5367
5368         * breakpoint.c (single_step_breakpoints)
5369         (single_step_gdbarch): Move up in the file.
5370         (one_breakpoint_xfer_memory): New function, factored out from ...
5371         (breakpoint_xfer_memory): ... here.  Also process single-step
5372         breakpoints.
5373
5374 2014-04-09  Tristan Gingold  <gingold@adacore.com>
5375
5376         * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5377         comments.
5378         (darwin_decode_exception_message): Free port only after use.
5379
5380 2014-04-08  Pierre Langlois  <pierre.langlois@embecosm.com>
5381
5382         * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5383         (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5384         when setting the size of call_length.
5385
5386 2014-04-07  Siva Chandra Reddy  <sivachandra@google.com>
5387
5388         * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5389         dereference TYPE_CODE_REF values.
5390
5391 2014-04-07  Joel Brobecker  <brobecker@adacore.com>
5392
5393         * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5394         end of warning message.
5395
5396 2014-04-03  Doug Evans  <dje@google.com>
5397
5398         * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5399         of stub_comp_unit_die, stub_comp_dir is non-NULL.
5400
5401 2014-04-02  Alan Modra  <amodra@gmail.com>
5402
5403         * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5404         Pass to bfd_elf_bfd_from_remote_memory.  Adjust all callers.
5405         (struct symbol_file_add_from_memory_args): Add size field.
5406         (find_vdso_size): New function.
5407         (add_vsyscall_page): Attempt to find vdso size.
5408
5409 2014-04-01  Doug Evans  <dje@google.com>
5410
5411         * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5412
5413 2014-04-01  Tristan Gingold  <gingold@adacore.com>
5414
5415         * darwin-nat.c (darwin_encode_reply): Add prototype.
5416         (darwin_decode_exception_message): Reply to unknown inferiors.
5417         (darwin_decode_message): Handle message by id.  Ignore message
5418         to unknown inferior.
5419         (darwin_wait): Discard unknown messages, add debug trace.
5420
5421 2014-03-31  Doug Evans  <dje@google.com>
5422
5423         * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5424         comp_dir_string.
5425
5426 2014-03-31  Doug Evans  <dje@google.com>
5427
5428         New option "set print symbol-loading".
5429         * NEWS: Mention it.
5430         * solib.c (solib_read_symbols): Only print symbol loading messages
5431         if requested.
5432         (solib_add): If symbol loading is in "brief" mode, notify user
5433         symbols are being loaded.
5434         (reload_shared_libraries_1): Ditto.
5435         * symfile.c (print_symbol_loading_off): New static global.
5436         (print_symbol_loading_brief): New static global.
5437         (print_symbol_loading_full): New static global.
5438         (print_symbol_loading_enums): New static global.
5439         (print_symbol_loading): New static global.
5440         (print_symbol_loading_p): New function.
5441         (symbol_file_add_with_addrs): Only print symbol loading messages
5442         if requested.
5443         (_initialize_symfile): Register "print symbol-loading" set/show
5444         command.
5445         * symfile.h (print_symbol_loading_p): Declare.
5446
5447 2014-03-30  Doug Evans  <xdje42@gmail.com>
5448
5449         * infrun.c (set_last_target_status): New function.
5450         (handle_inferior_event): Call it.
5451
5452 2014-03-30  Doug Evans  <xdje42@gmail.com>
5453
5454         * inferior.h (enum stop_kind): Improve comment.
5455
5456 2014-03-28  Joel Brobecker  <brobecker@adacore.com>
5457
5458         * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5459         a reference, strip the reference layer before calling
5460         the lang_ops value_has_mutated callback.
5461
5462 2014-03-27  Sergio Durigan Junior  <sergiodj@redhat.com>
5463
5464         Remove some globals from our parser.
5465         * language.c (unk_lang_parser): Add "struct parser_state"
5466         argument.
5467         * language.h (struct language_defn) <la_parser>: Likewise.
5468         * parse.c (expout, expout_size, expout_ptr): Remove variables.
5469         (initialize_expout): Add "struct parser_state" argument.
5470         Rewrite function to use the parser state.
5471         (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5472         write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5473         write_exp_elt_longcst, write_exp_elt_dblcst,
5474         write_exp_elt_decfloatcst, write_exp_elt_type,
5475         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5476         write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5477         write_dollar_variable): Likewise.
5478         (parse_exp_in_context_1): Use parser state.
5479         (insert_type_address_space): Add "struct parser_state" argument.
5480         Use parser state.
5481         (increase_expout_size): New function.
5482         * parser-defs.h: Forward declare "struct language_defn" and
5483         "struct parser_state".
5484         (expout, expout_size, expout_ptr): Remove extern declarations.
5485         (parse_gdbarch, parse_language): Rewrite macro declarations to
5486         accept the parser state.
5487         (struct parser_state): New struct.
5488         (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5489         write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5490         write_exp_elt_decfloatcst, write_exp_elt_type,
5491         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5492         write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5493         write_exp_msymbol, write_dollar_variable,
5494         mark_struct_expression, insert_type_address_space): Add "struct
5495         parser_state" argument.
5496         (increase_expout_size): New function.
5497         * utils.c (do_clear_parser_state): New function.
5498         (make_cleanup_clear_parser_state): Likewise.
5499         * utils.h (make_cleanup_clear_parser_state): New function
5500         prototype.
5501         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5502         Update calls to write_exp* in order to pass the parser state.
5503         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5504         * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5505         (i386_stap_parse_special_token_three_arg_disp): Likewise.
5506         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5507         * stap-probe.c (stap_parse_register_operand): Likewise.
5508         (stap_parse_single_operand): Likewise.
5509         (stap_parse_argument_1): Likewise.
5510         (stap_parse_argument): Use parser state.
5511         * stap-probe.h: Include "parser-defs.h".
5512         (struct stap_parse_info) <pstate>: New field.
5513         * c-exp.y (parse_type): Rewrite to use parser state.
5514         (yyparse): Redefine to c_parse_internal.
5515         (pstate): New global variable.
5516         (parse_number): Add "struct parser_state" argument.
5517         (write_destructor_name): Likewise.
5518         (type_exp): Update calls to write_exp* and similars in order to
5519         use parser state.
5520         (exp1, exp, variable, qualified_name, space_identifier,
5521         typename, typebase): Likewise.
5522         (write_destructor_name, parse_number, lex_one_token,
5523         classify_name, classify_inner_name, c_parse): Add "struct
5524         parser_state" argument.  Update function to use parser state.
5525         * c-lang.h: Forward declare "struct parser_state".
5526         (c_parse): Add "struct parser_state" argument.
5527         * ada-exp.y (parse_type): Rewrite macro to use parser state.
5528         (yyparse): Redefine macro to ada_parse_internal.
5529         (pstate): New variable.
5530         (write_int, write_object_renaming, write_var_or_type,
5531         write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5532         type_int, type_long, type_long_long, type_float, type_double,
5533         type_long_double, type_char, type_boolean, type_system_address):
5534         Add "struct parser_state" argument.
5535         (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5536         or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5537         var_or_type, aggregate, aggregate_component_list,
5538         positional_list, others, component_group,
5539         component_associations): Update calls to write_exp* and similar
5540         functions in order to use parser state.
5541         (ada_parse, write_var_from_sym, write_int,
5542         write_exp_op_with_string, write_object_renaming,
5543         find_primitive_type, write_selectors, write_ambiguous_var,
5544         write_var_or_type, write_name_assoc, type_int, type_long,
5545         type_long_long, type_float, type_double, type_long_double,
5546         type_char, type_boolean, type_system_address): Add "struct
5547         parser_state" argument.  Adjust function to use parser state.
5548         * ada-lang.c (parse): Likewise.
5549         * ada-lang.h: Forward declare "struct parser_state".
5550         (ada_parse): Add "struct parser_state" argument.
5551         * ada-lex.l (processInt, processReal): Likewise.  Adjust all
5552         calls to both functions.
5553         * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5554         parser state.
5555         (yyparse): Redefine macro to f_parse_internal.
5556         (pstate): New variable.
5557         (parse_number): Add "struct parser_state" argument.
5558         (type_exp, exp, subrange, typebase): Update calls to write_exp*
5559         and similars in order to use parser state.
5560         (parse_number): Adjust code to use parser state.
5561         (yylex): Likewise.
5562         (f_parse): New function.
5563         * f-lang.h: Forward declare "struct parser_state".
5564         (f_parse): Add "struct parser_state" argument.
5565         * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5566         parser state.
5567         (yyparse): Redefine macro for java_parse_internal.
5568         (pstate): New variable.
5569         (push_expression_name, push_expression_name, insert_exp): Add
5570         "struct parser_state" argument.
5571         (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5572         FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5573         FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5574         PostIncrementExpression, PostDecrementExpression,
5575         UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5576         UnaryExpressionNotPlusMinus, CastExpression,
5577         MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5578         RelationalExpression, EqualityExpression, AndExpression,
5579         ExclusiveOrExpression, InclusiveOrExpression,
5580         ConditionalAndExpression, ConditionalOrExpression,
5581         ConditionalExpression, Assignment, LeftHandSide): Update
5582         calls to write_exp* and similars in order to use parser state.
5583         (parse_number): Ajust code to use parser state.
5584         (yylex): Likewise.
5585         (java_parse): New function.
5586         (push_variable): Add "struct parser_state" argument.  Adjust
5587         code to user parser state.
5588         (push_fieldnames, push_qualified_expression_name,
5589         push_expression_name, insert_exp): Likewise.
5590         * jv-lang.h: Forward declare "struct parser_state".
5591         (java_parse): Add "struct parser_state" argument.
5592         * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5593         parser state.
5594         (yyparse): Redefine macro to m2_parse_internal.
5595         (pstate): New variable.
5596         (type_exp, exp, fblock, variable, type): Update calls to
5597         write_exp* and similars to use parser state.
5598         (yylex): Likewise.
5599         (m2_parse): New function.
5600         * m2-lang.h: Forward declare "struct parser_state".
5601         (m2_parse): Add "struct parser_state" argument.
5602         * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5603         * objc-lang.h: Forward declare "struct parser_state".
5604         (end_msglist): Add "struct parser_state" argument.
5605         * p-exp.y (parse_type): Rewrite macro to use parser state.
5606         (yyparse): Redefine macro to pascal_parse_internal.
5607         (pstate): New variable.
5608         (parse_number): Add "struct parser_state" argument.
5609         (type_exp, exp1, exp, qualified_name, variable): Update calls to
5610         write_exp* and similars in order to use parser state.
5611         (parse_number, yylex): Adjust code to use parser state.
5612         (pascal_parse): New function.
5613         * p-lang.h: Forward declare "struct parser_state".
5614         (pascal_parse): Add "struct parser_state" argument.
5615         * go-exp.y (parse_type): Rewrite macro to use parser state.
5616         (yyparse): Redefine macro to go_parse_internal.
5617         (pstate): New variable.
5618         (parse_number): Add "struct parser_state" argument.
5619         (type_exp, exp1, exp, variable, type): Update calls to
5620         write_exp* and similars in order to use parser state.
5621         (parse_number, lex_one_token, classify_name, yylex): Adjust code
5622         to use parser state.
5623         (go_parse): Likewise.
5624         * go-lang.h: Forward declare "struct parser_state".
5625         (go_parse): Add "struct parser_state" argument.
5626
5627 2014-03-27  Doug Evans  <dje@google.com>
5628
5629         * dwarf2read.c (read_str_index): Delete arg cu.  All callers updated.
5630
5631 2014-03-27  Doug Evans  <dje@google.com>
5632
5633         * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5634         Remove argument abbrev_section.  All callers updated.
5635
5636 2014-03-27  Doug Evans  <dje@google.com>
5637
5638         * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5639         addr_base, ranges_base.
5640
5641 2014-03-26  Keith Seitz  <keiths@redhat.com>
5642
5643         * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5644         types, not VAR_DOMAIN.
5645
5646 2014-03-25  Sandra Loosemore  <sandra@codesourcery.com>
5647
5648         * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5649         "ra" registers.
5650         * features/nios2-linux.c: Regenerated.
5651         * features/nios2.c: Regenerated.
5652
5653 2014-03-25  Pedro Alves  <palves@redhat.com>
5654
5655         * cli/cli-script.c (script_from_file): Force the interpreter to
5656         sync mode.
5657
5658 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
5659
5660         * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5661         small stack allocation.
5662
5663 2014-03-24  Tristan Gingold  <gingold@adacore.com>
5664
5665         * darwin-nat.c (exc_server): Remove unused prototype.
5666         (darwin_dump_message): Correctly display data on x86_64.
5667         (darwin_encode_reply): Fix style.
5668         Add comments and fix indentation.
5669
5670 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
5671
5672         * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5673
5674 2014-03-22  Doug Evans  <xdje42@gmail.com>
5675
5676         * infcmd.c: Whitespace fixes.
5677         (interrupt_command): Merge two function comments into one.
5678
5679 2014-03-22  Doug Evans  <xdje42@gmail.com>
5680
5681         * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5682         All uses updated.
5683
5684 2014-03-22  Yao Qi  <yao@codesourcery.com>
5685
5686         * remote.c (target_read_live_memory): Remove.
5687         (memory_xfer_live_readonly_partial): Rename it to
5688         remote_xfer_live_readonly_partial.  Remove argument 'object'.
5689         All callers updated.  Call remote_read_bytes_1
5690         instead of target_read_live_memory.
5691         * tracepoint.c (set_traceframe_number): Remove.
5692         (make_cleanup_restore_traceframe_number): Likewise .
5693         * tracepoint.h (set_traceframe_number): Remove declaration.
5694         (make_cleanup_restore_traceframe_number): Likewise.
5695
5696 2014-03-22  Yao Qi  <yao@codesourcery.com>
5697
5698         * remote.c (remote_read_bytes): Move code on reading from the
5699         remote stub to ...
5700         (remote_read_bytes_1): ... here.  New function.
5701
5702 2014-03-22  Yao Qi  <yao@codesourcery.com>
5703
5704         * ctf.c (ctf_xfer_partial): Check the return value of
5705         exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5706         return TARGET_XFER_UNAVAILABLE.
5707         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5708         * target.c (target_read_live_memory): Move it to remote.c.
5709         (memory_xfer_live_readonly_partial): Likewise.
5710         (memory_xfer_partial_1): Move some code to remote_read_bytes.
5711         * remote.c (target_read_live_memory): Moved from target.c.
5712         (memory_xfer_live_readonly_partial): Likewise.
5713         (remote_read_bytes): Factored out from
5714         memory_xfer_partial_1.
5715
5716 2014-03-21  Daniel Gutson  <daniel.gutson@tallertechnologies.com>
5717
5718         * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5719         NULL pointer.
5720
5721 2014-03-21  Pedro Alves  <palves@redhat.com>
5722
5723         * infrun.c (normal_stop): Extend comment.
5724
5725 2014-03-21  Hui Zhu  <hui@codesourcery.com>
5726             Pedro Alves  <palves@redhat.com>
5727
5728         * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5729         static buffer.
5730         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5731         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5732         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5733
5734 2014-03-20  Maciej W. Rozycki  <macro@codesourcery.com>
5735
5736         * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5737         `z' formatted output modifier.
5738
5739 2014-03-20  Tom Tromey  <tromey@redhat.com>
5740             Sergio Durigan Junior  <sergiodj@redhat.com>
5741
5742         * probe.c (parse_probes): Turn assert into an ordinary error.
5743         * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5744         exceptions when parsing probes.  Rearrange the code for clarity.
5745
5746 2014-03-20  Tom Tromey  <tromey@redhat.com>
5747
5748         PR gdb/14135
5749         * top.c (execute_command): Only dispatch events if the command
5750         started the target.
5751
5752 2014-03-20  Tom Tromey  <tromey@redhat.com>
5753
5754         PR cli/15718
5755         * infcall.c: Include event-top.h.
5756         (run_inferior_call): Call async_disable_stdin if needed.
5757
5758 2014-03-20  Pedro Alves  <palves@redhat.com>
5759
5760         * infrun.c (prepare_to_proceed): Delete.
5761         (thread_still_needs_step_over): New function.
5762         (find_thread_needs_step_over): New function.
5763         (proceed): If the current thread needs a step-over, set its
5764         steping_over_breakpoint flag.  Adjust to use
5765         find_thread_needs_step_over instead of prepare_to_proceed.
5766         (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
5767         BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
5768         breakpoint.
5769         (switch_back_to_stepped_thread): Step over breakpoints of all
5770         threads not the stepping thread, before switching back to the
5771         stepping thread.
5772
5773 2014-03-20  Pedro Alves  <palves@redhat.com>
5774
5775         * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
5776         extern.
5777         * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
5778         * infrun.c (saved_singlestep_ptid)
5779         (stepping_past_singlestep_breakpoint): Delete.
5780         (resume): Remove stepping_past_singlestep_breakpoint handling.
5781         (proceed): Store the prev_pc of the stepping thread too.
5782         (init_wait_for_inferior): Adjust.  Clear singlestep_ptid and
5783         singlestep_pc.
5784         (enum infwait_states): Delete infwait_thread_hop_state.
5785         (struct execution_control_state) <hit_singlestep_breakpoint>: New
5786         field.
5787         (handle_inferior_event): Adjust.
5788         (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
5789         handling and the thread-hop code.  Before removing single-step
5790         breakpoints, check whether the thread hit a single-step breakpoint
5791         of another thread.  If it did, the trap is not a random signal.
5792         (switch_back_to_stepped_thread): If the event thread hit a
5793         single-step breakpoint, unblock it before switching to the
5794         stepping thread.  Handle the case of the stepped thread having
5795         advanced already.
5796         (keep_going): Handle the case of the current thread moving past a
5797         single-step breakpoint.
5798
5799 2014-03-20  Pedro Alves  <palves@redhat.com>
5800
5801         PR breakpoints/7143
5802         * breakpoint.c (should_be_inserted): Don't insert breakpoints that
5803         are being stepped over.
5804         (breakpoint_address_match): Make extern.
5805         * breakpoint.h (breakpoint_address_match): New declaration.
5806         * inferior.h (stepping_past_instruction_at): New declaration.
5807         * infrun.c (struct step_over_info): New type.
5808         (step_over_info): New global.
5809         (set_step_over_info, clear_step_over_info)
5810         (stepping_past_instruction_at): New functions.
5811         (handle_inferior_event): Clear the step-over info when
5812         trap_expected is cleared.
5813         (resume): Remove now stale comment.
5814         (clear_proceed_status): Clear step-over info.
5815         (proceed): Adjust step-over handling to set or clear the step-over
5816         info instead of removing all breakpoints.
5817         (handle_signal_stop): When setting up a thread-hop, don't remove
5818         breakpoints here.
5819         (stop_stepping): Clear step-over info.
5820         (keep_going): Adjust step-over handling to set or clear step-over
5821         info and then always inserting breakpoints, instead of removing
5822         all breakpoints when stepping over one.
5823
5824 2014-03-20  Pedro Alves  <palves@redhat.com>
5825
5826         * infrun.c (previous_inferior_ptid): Adjust comment.
5827         (deferred_step_ptid): Delete.
5828         (infrun_thread_ptid_changed, prepare_to_proceed)
5829         (init_wait_for_inferior): Adjust.
5830         (handle_signal_stop): Delete deferred_step_ptid handling.
5831
5832 2014-03-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
5833
5834         PR gdb/15358
5835         * defs.h (sync_quit_force_run): New declaration.
5836         (QUIT): Check also SYNC_QUIT_FORCE_RUN.
5837         * event-top.c (async_sigterm_handler): New declaration.
5838         (async_sigterm_token): New variable.
5839         (async_init_signals): Create also async_sigterm_token.
5840         (async_sigterm_handler): New function.
5841         (sync_quit_force_run): New variable.
5842         (handle_sigterm): Replace quit_force call by other calls.
5843         * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
5844
5845 2014-03-18  Maciej W. Rozycki  <macro@codesourcery.com>
5846
5847         * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
5848         offset into SPE pseudo registers.
5849
5850 2014-03-18  Pedro Alves  <palves@redhat.com>
5851
5852         PR gdb/13860
5853         * inferior.h (print_stop_event): Declare.
5854         * infrun.c (print_stop_event): New, factored out from ...
5855         (normal_stop): ... this.
5856         * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
5857         of bpstat_print/print_stack_frame.
5858
5859 2014-03-17  Tom Tromey  <tromey@redhat.com>
5860
5861         * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
5862
5863 2014-03-17  Pierre-Marie de Rodat  <derodat@adacore.com>
5864
5865         * ada-lang.c (decode_constrained_packed_array): Perform a
5866         minimal coercion for reference with coerce_ref instead of
5867         ada_coerce_ref.
5868
5869 2014-03-17  Tristan Gingold  <gingold@adacore.com>
5870
5871         * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
5872         (darwin_solib_create_inferior_hook): Emit a warning if version
5873         is unhandled.
5874
5875 2014-03-16  Ulrich Weigand  <uweigand@de.ibm.com>
5876
5877         * python/py-value.c (get_field_flag): Cast flag_name argument to
5878         PyObject_GetAttrString to support Python 2.4.
5879
5880 2014-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
5881
5882         * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
5883         (Global Maintainers): Remove Jan Kratochvil.
5884
5885 2014-03-14  Pedro Alves  <palves@redhat.com>
5886
5887         * inferior.h (terminal_ours_for_output): Rename to ...
5888         (child_terminal_ours_for_output): ... this.
5889         (terminal_save_ours): Rename to ...
5890         (child_terminal_save_ours): ... this.
5891         (terminal_ours): Rename to ...
5892         (child_terminal_ours): ... this.
5893         (terminal_inferior): Rename to ...
5894         (child_terminal_inferior): ... this.
5895         (terminal_init_inferior): Rename to ...
5896         (child_terminal_init_inferior): ... this.
5897         (terminal_init_inferior_with_pgrp): Rename to ...
5898         (child_terminal_init_inferior_with_pgrp): ... this.
5899         * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
5900         (child_terminal_init_with_pgrp): ... this.
5901         (terminal_save_ours): Rename to ...
5902         (child_terminal_save_ours): ... this.
5903         (terminal_init_inferior): Rename to ...
5904         (child_terminal_init): ... this.  Adjust.
5905         (terminal_inferior): Rename to ...
5906         (child_terminal_inferior): ... this.
5907         (terminal_ours_for_output): Rename to ...
5908         (child_terminal_ours_for_output): ... this.  Adjust.
5909         (terminal_ours): Rename to ...
5910         (child_terminal_ours): ... this.
5911         (terminal_ours_1): Rename to ...
5912         (child_terminal_ours_1): ... this.  Adjust.
5913         * linux-nat.c (linux_nat_terminal_inferior): Adjust.
5914         * windows-nat.c (do_initial_windows_stuff): Adjust.
5915         * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
5916         (gnu_terminal_init): ... this.  Adjust.
5917         (gnu_target): Adjust.
5918         * inf-child.c (inf_child_target): Adjust.
5919
5920 2014-03-13  Doug Evans  <xdje42@gmail.com>
5921
5922         PR guile/16612
5923         * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
5924         new eq?-hashtab.
5925
5926 2014-03-13  Doug Evans  <xdje42@gmail.com>
5927
5928         * value.c (record_latest_value): Call release_value_or_incref
5929         instead of release_value.
5930
5931 2014-03-13  Pedro Alves  <palves@redhat.com>
5932
5933         * procfs.c (procfs_target): Don't override to_shortname,
5934         to_longname or to_doc.
5935
5936 2014-03-13  Pedro Alves  <palves@redhat.com>
5937
5938         * inf-child.c (inf_child_open, inf_child_target): Don't mention
5939         Unix in user visible strings.
5940
5941 2014-03-12  Stan Shebs  <stan@codesourcery.com>
5942
5943         * gdbtypes.h: Annotate comments for Doxygen, add a page
5944         block comment with some general info.
5945
5946 2014-03-12  Pedro Alves  <palves@redhat.com>
5947
5948         * infcmd.c (prepare_execution_command): New function, factored out
5949         from several execution commands.
5950         (run_command_1, continue_command, step_1, jump_command)
5951         (signal_command, until_command, advance_command, finish_command)
5952         (attach_command): Use prepare_execution_command.
5953
5954 2014-03-12  Omair Javaid  <omair.javaid@linaro.org>
5955
5956         * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
5957         (MAX_BPTS): Define.
5958         (MAX_WPTS): Define.
5959         (struct arm_linux_thread_points): Removed.
5960         (struct arm_linux_process_info): New.
5961         (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
5962         (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
5963         (arm_linux_find_breakpoints_by_tid): Removed.
5964         (struct arch_lwp_info): New.
5965         (arm_linux_find_process_pid): New functions.
5966         (arm_linux_add_process): New functions.
5967         (arm_linux_process_info_get): New functions.
5968         (arm_linux_forget_process): New function.
5969         (arm_linux_get_debug_reg_state): New function.
5970         (struct update_registers_data): New.
5971         (update_registers_callback): New function.
5972         (arm_linux_insert_hw_breakpoint1): Updated.
5973         (arm_linux_remove_hw_breakpoint1): Updated.
5974         (arm_linux_insert_hw_breakpoint): Updated.
5975         (arm_linux_remove_hw_breakpoint): Updated.
5976         (arm_linux_insert_watchpoint): Updated.
5977         (arm_linux_remove_watchpoint): Updated.
5978         (arm_linux_new_thread): Updated.
5979         (arm_linux_prepare_to_resume): New function.
5980         (arm_linux_new_fork): New function.
5981         (_initialize_arm_linux_nat): Updated.
5982
5983 2014-03-12  Pedro Alves  <palves@redhat.com>
5984
5985         * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
5986
5987 2014-03-12  Tom Tromey  <tromey@redhat.com>
5988
5989         * inf-child.c (return_zero): New function.
5990         (inf_child_target): Set to_can_async_p, to_supports_non_stop.
5991         * aix-thread.c (aix_thread_inferior_created): New function.
5992         (aix_thread_attach): Remove.
5993         (init_aix_thread_ops): Don't set to_attach.
5994         (_initialize_aix_thread): Register inferior_created observer.
5995         * corelow.c (init_core_ops): Don't set to_attach or
5996         to_create_inferior.
5997         * exec.c (init_exec_ops): Don't set to_attach or
5998         to_create_inferior.
5999         * infcmd.c (run_command_1): Use find_run_target.  Make direct
6000         target calls.
6001         (attach_command): Use find_attach_target.  Make direct target
6002         calls.
6003         * record-btrace.c (init_record_btrace_ops): Don't set
6004         to_create_inferior.
6005         * record-full.c (record_full_can_async_p, record_full_is_async_p):
6006         Remove.
6007         (init_record_full_ops, init_record_full_core_ops): Update.  Don't
6008         set to_create_inferior.
6009         * target.c (complete_target_initialization): Add assertion.
6010         (target_create_inferior): Remove.
6011         (find_default_attach, find_default_create_inferior): Remove.
6012         (find_attach_target, find_run_target): New functions.
6013         (find_default_is_async_p, find_default_can_async_p)
6014         (target_supports_non_stop, target_attach): Remove.
6015         (init_dummy_target): Don't set to_create_inferior or
6016         to_supports_non_stop.
6017         * target.h (struct target_ops) <to_attach>: Add comment.  Remove
6018         TARGET_DEFAULT_FUNC.
6019         <to_create_inferior>: Add comment.
6020         <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6021         TARGET_DEFAULT_RETURN.
6022         <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6023         (find_attach_target, find_run_target): Declare.
6024         (target_create_inferior): Remove.
6025         (target_has_execution_1): Update comment.
6026         (target_supports_non_stop): Remove.
6027         * target-delegates.c: Rebuild.
6028
6029 2014-03-12  Pedro Alves  <palves@redhat.com>
6030
6031         * inf-child.h: Update comment to not mention Unix.
6032
6033 2014-03-12  Pedro Alves  <palves@redhat.com>
6034
6035         * inf-child.c: Update top comment to not mention Unix.  Add
6036         generic comment describing how this target is meant to be used.
6037         (inf_child_post_attach, inf_child_post_startup_inferior)
6038         (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6039         Unix in comment.
6040
6041 2014-03-12  Pedro Alves  <palves@redhat.com>
6042
6043         * nto-procfs.c: Include inf-child.h.
6044         (procfs_ops): Delete global.
6045         (procfs_can_run): Delete method.
6046         (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6047         target pointer instead of referencing procfs_ops.
6048         (procfs_prepare_to_store): Delete.
6049         (init_procfs_ops): Delete function.
6050         (procfs_target): New function, based on init_procfs_ops, but
6051         inherit inf_child_target.
6052         (_initialize_procfs): Use procfs_target.
6053
6054 2014-03-12  Pedro Alves  <palves@redhat.com>
6055
6056         * windows-nat.c: Include inf-child.h.
6057         (windows_ops): Delete global.
6058         (windows_open, windows_prepare_to_store, windows_can_run): Delete
6059         methods.
6060         (init_windows_ops): Delete function.
6061         (windows_target): New function, based on init_windows_ops, but
6062         inherit inf_child_target.
6063         (_initialize_windows_nat): Use windows_target.  Install x86
6064         specific target methods here.
6065
6066 2014-03-10  Doug Evans  <xdje42@gmail.com>
6067
6068         * guile/guile.c (call_initialize_gdb_module): New function.
6069         (initialize_guile): Replace call to scm_init_guile with call to
6070         scm_with_guile.
6071
6072 2014-03-10  Joel Brobecker  <brobecker@adacore.com>
6073
6074         * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6075         in call to TYPE_CODE macro.
6076
6077 2014-03-10  Jerome Guitton  <guitton@adacore.com>
6078
6079         * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6080         Resolve tagged types to full view.
6081
6082 2014-03-10  Hui Zhu  <hui@codesourcery.com>
6083
6084         * target.h (target_insert_breakpoint): Remove "hardware" from its
6085         comments.
6086
6087 2014-03-07  Doug Evans  <dje@google.com>
6088
6089         * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6090
6091 2014-03-07  Doug Evans  <dje@google.com>
6092
6093         * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6094         Remove unused local comp_dir_attr.  Assert exactly one of
6095         stub_comp_unit_die, stub_comp_dir is non-NULL.
6096
6097 2014-03-07  Joel Brobecker  <brobecker@adacore.com>
6098
6099         * target.h (complete_target_initialization, add_target):
6100         Add comment.
6101
6102 2014-03-07  Pedro Alves  <palves@redhat.com>
6103
6104         * go32-nat.c: Include inf-child.h.
6105         (go32_ops): Delete global.
6106         (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6107         Delete methods.
6108         (go32_create_inferior): Push the passed in target pointer instead
6109         of referencing go32_ops.
6110         (init_go32_ops): Delete function.  Moved parts to _initialize_go32_nat.
6111         (go32_target): New function, based on init_go32_ops, but inherit
6112         inf_child_target.
6113         (_initialize_go32_nat): Use go32_target.  Move parts of
6114         init_go32_ops here.
6115
6116 2014-03-06  Joel Brobecker  <brobecker@adacore.com>
6117
6118         * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6119         (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6120         SYMBOL_VALUE_ADDRESS.
6121         (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6122
6123 2014-03-06  Yao Qi  <yao@codesourcery.com>
6124
6125         * breakpoint.c (get_tracepoint_by_number): Remove argument
6126         optional_p.  All callers updated.  Adjust comments.  Update
6127         output message.
6128         * breakpoint.h (get_tracepoint_by_number): Update declaration.
6129
6130 2014-03-06  Yao Qi  <yao@codesourcery.com>
6131
6132         * reverse.c (goto_bookmark_command): Add local 'p'.  Emit error
6133         early if get_number returns zero.  Use 'p' instead of 'args'.
6134
6135 2014-03-06  Yao Qi  <yao@codesourcery.com>
6136
6137         * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6138         message.
6139
6140 2014-03-06  Yao Qi  <yao@codesourcery.com>
6141
6142         PR breakpoints/16508
6143         * tracepoint.c (check_trace_running): New function.
6144         (trace_find_command): Move code to check_trace_running and
6145         call check_trace_running.
6146         (trace_find_pc_command): Likewise.
6147         (trace_find_tracepoint_command): Likewise.
6148         (trace_find_line_command): Likewise.
6149         (trace_find_range_command): Likewise.
6150         * tracepoint.h (check_trace_running): Likewise.
6151         * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6152
6153 2014-03-06  Yao Qi  <yao@codesourcery.com>
6154
6155         * target.h (struct target_ops) <to_traceframe_info>: Use
6156         TARGET_DEFAULT_NORETURN (tcomplain ()).
6157         * target-delegates.c: Regenerated.
6158
6159 2014-03-05  Pedro Alves  <palves@redhat.com>
6160
6161         PR gdb/16575
6162         * dcache.c (dcache_poke_byte): Constify ptr parameter.  Return
6163         void.  Update comment.
6164         (dcache_xfer_memory): Delete.
6165         (dcache_read_memory_partial): New, based on the read bits of
6166         dcache_xfer_memory.
6167         (dcache_update): Add status parameter.  Use ULONGEST for len, and
6168         adjust.  Discard cache lines if the reason for the update was
6169         error.
6170         * dcache.h (dcache_xfer_memory): Delete declaration.
6171         (dcache_read_memory_partial): New declaration.
6172         (dcache_update): Update prototype.
6173         * target.c (raw_memory_xfer_partial): Update the dcache here.
6174         (memory_xfer_partial_1): Don't handle dcache writes here.
6175
6176 2014-03-05  Mike Frysinger  <vapier@gentoo.org>
6177
6178         * remote-sim.c (gdbsim_load): Add const to prog.
6179
6180 2014-03-03  Tom Tromey  <tromey@redhat.com>
6181
6182         * elfread.c (probe_key): Change to bfd_data.
6183         (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6184         now per-BFD, not per-objfile.
6185         * stap-probe.c (stap_probe_destroy): Update comment.
6186         (handle_stap_probe): Allocate on the per-BFD obstack.
6187
6188 2014-03-03  Tom Tromey  <tromey@redhat.com>
6189
6190         * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6191         * breakpoint.c (create_longjmp_master_breakpoint): Use
6192         get_probe_address.
6193         (add_location_to_breakpoint, bkpt_probe_insert_location)
6194         (bkpt_probe_remove_location): Update.
6195         * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6196         * elfread.c (elf_symfile_relocate_probe): Remove.
6197         (elf_probe_fns): Update.
6198         (insert_exception_resume_breakpoint): Change type of "probe"
6199         parameter to bound_probe.
6200         (check_exception_resume): Update.
6201         * objfiles.c (objfile_relocate1): Don't relocate probes.
6202         * probe.c (bound_probe_s): New typedef.
6203         (parse_probes): Use get_probe_address.  Set sal's objfile.
6204         (find_probe_by_pc): Return a bound_probe.
6205         (collect_probes): Return a VEC(bound_probe_s).
6206         (compare_probes): Update.
6207         (gen_ui_out_table_header_info): Change type of "probes"
6208         parameter.  Update.
6209         (info_probes_for_ops): Update.
6210         (get_probe_address): New function.
6211         (probe_safe_evaluate_at_pc): Update.
6212         * probe.h (struct probe_ops) <get_probe_address>: New field.
6213         <set_semaphore, clear_semaphore>: Add objfile parameter.
6214         (struct probe) <objfile>: Remove field.
6215         <arch>: New field.
6216         <address>: Update comment.
6217         (struct bound_probe): New.
6218         (find_probe_by_pc): Return a bound_probe.
6219         (get_probe_address): Declare.
6220         * solib-svr4.c (struct probe_and_action) <address>: New field.
6221         (hash_probe_and_action, equal_probe_and_action): Update.
6222         (register_solib_event_probe): Add address parameter.
6223         (solib_event_probe_at): Update.
6224         (svr4_create_probe_breakpoints): Add objfile parameter.  Use
6225         get_probe_address.
6226         * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6227         (stap_get_probe_address): New function.
6228         (stap_can_evaluate_probe_arguments, compute_probe_arg)
6229         (compile_probe_arg): Update.
6230         (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6231         address.
6232         (handle_stap_probe): Don't relocate the probe.
6233         (stap_relocate): Remove.
6234         (stap_gen_info_probes_table_values): Update.
6235         (stap_probe_ops): Remove stap_relocate.
6236         * symfile-debug.c (debug_sym_relocate_probe): Remove.
6237         (debug_sym_probe_fns): Update.
6238         * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6239         * symtab.c (init_sal): Use memset.
6240         * symtab.h (struct symtab_and_line) <objfile>: New field.
6241         * tracepoint.c (start_tracing, stop_tracing): Update.
6242
6243 2014-03-03  Tom Tromey  <tromey@redhat.com>
6244
6245         * probe.h (parse_probes, find_probe_by_pc)
6246         (find_probes_in_objfile): Fix comments.
6247
6248 2014-03-02  Doug Evans  <xdje42@gmail.com>
6249
6250         * infrun.c (handle_signal_stop): Replace test for
6251         TARGET_WAITKIND_STOPPED with an assert.
6252
6253 2014-03-02  Doug Evans  <xdje42@gmail.com>
6254
6255         * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6256
6257 2014-03-02  Doug Evans  <xdje42@gmail.com>
6258
6259         * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6260
6261 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
6262
6263         * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6264
6265 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
6266
6267         * i386obsd-nat.c: Include "obsd-nat.h".
6268         (_initialize_i386obsd_nat): Call obsd_add_target instead of
6269         add_target.
6270         * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6271
6272 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
6273
6274         * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6275
6276 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
6277
6278         * mips64obsd-nat.c: Include "obsd-nath".
6279         (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6280         add_target
6281         * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6282
6283 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
6284
6285         * amd64obsd-nat.c: Include "obsd-nat,h.
6286         (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6287         add_target.
6288         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6289
6290 2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
6291
6292         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6293         (find_overload_match): Update call to find_oload_champ.
6294         (find_oload_champ_namespace_loop): Likewise
6295
6296 2014-02-28  Mark Kettenis  <kettenis@gnu.org>
6297
6298         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6299
6300         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6301         * config/sparc/obsd64.mh: New file.
6302         * sparc64obsd-nat.c: New file.
6303
6304         * obsd-nat.h: New file.
6305         * obsd-nat.c: New file.
6306         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6307         (ALLDEPFILES): Add obsd-nat.c.
6308
6309 2014-02-28  Tom Tromey  <tromey@redhat.com>
6310
6311         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
6312         * cli-out.h (cli_ui_out_impl): Now const.
6313         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
6314         * ui-out.c (struct ui_out) <impl>: Now const.
6315         (default_ui_out_impl): Now const.
6316         (ui_out_new): Make 'impl' parameter const.
6317         * ui-out.h (ui_out_new): Update.
6318
6319 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
6320
6321         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6322
6323 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
6324
6325         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6326
6327 2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
6328
6329         Additional PR 8882 fix.
6330         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6331
6332 2014-02-27  Pedro Alves  <palves@redhat.com>
6333
6334         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6335         isn't set.
6336
6337 2014-02-27  Pedro Alves  <palves@redhat.com>
6338
6339         PR 12702
6340         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6341         * nat/linux-waitpid.c: Include string.h.
6342         (status_to_str): Moved here and made extern.
6343         * nat/linux-waitpid.h (status_to_str): New declaration.
6344
6345 2014-02-27  Hui Zhu  <hui@codesourcery.com>
6346
6347         PR 12702
6348         * infrun.c (ptid_match): Move ...
6349         * common/ptid.c (ptid_match): ... here.
6350         * inferior.h (ptid_match): Move ...
6351         * common/ptid.h (ptid_match): ... here.
6352
6353 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
6354
6355         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6356         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6357         gdb_target_obs.
6358
6359 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
6360
6361         * obsd-tdep.c (obsd_auxv_parse): New function.
6362         (obsd_init_abi): Set auxv_parse.
6363
6364         * gdbarch.sh (auxv_parse): New.
6365         * gdbarch.h: Regenerated.
6366         * gdbarch.c: Regenerated.
6367         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6368
6369 2014-02-26  Ludovic Courtès  <ludo@gnu.org>
6370
6371         * guile/scm-value.c (gdbscm_history_append_x): New function.
6372         (value_functions): Add it.
6373
6374 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
6375
6376         * dwarf2read.c (attr_value_as_address): New function.
6377         (dwarf2_find_base_address, read_call_site_scope): Use
6378         attr_value_as_address in place of DW_ADDR.
6379         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6380         the low and high addresses.  Slight rework of the handling
6381         of the high pc being a constant form, and limit it to
6382         DWARF verson 4 or higher.
6383         (dwarf2_record_block_ranges): Likewise.
6384         (read_partial_die): Likewise.
6385         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6386
6387 2014-02-26  Tom Tromey  <tromey@redhat.com>
6388
6389         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6390
6391 2014-02-26  Tom Tromey  <tromey@redhat.com>
6392
6393         * elfread.c (elf_read_minimal_symbols): Return early if
6394         minimal symbols have already been read.  Add "ei" parameter.
6395         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6396         * minsyms.c (prim_record_minimal_symbol_full): Update.
6397         * objfiles.h (struct objstats) <n_minsyms>: Move...
6398         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6399         * symmisc.c (print_objfile_statistics): Update.
6400
6401 2014-02-26  Tom Tromey  <tromey@redhat.com>
6402
6403         * elfread.c (elf_read_minimal_symbols): New function, from
6404         elf_symfile_read.
6405         (elf_symfile_read): Call it.
6406
6407 2014-02-26  Tom Tromey  <tromey@redhat.com>
6408
6409         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6410         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6411         (lookup_minimal_symbol_solib_trampoline)
6412         (lookup_minimal_symbol_by_pc_section_1)
6413         (lookup_minimal_symbol_and_objfile): Update.
6414         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6415         Don't allocate a minimal symbol if minsyms have already been read.
6416         (build_minimal_symbol_hash_tables): Update.
6417         (install_minimal_symbols): Do nothing if minsyms already read.
6418         Use the per-BFD obstack.
6419         (terminate_minimal_symbol_table): Use the per-BFD obstack.
6420         * objfiles.c (allocate_objfile): Call
6421         terminate_minimal_symbol_table later.
6422         (have_minimal_symbols): Update.
6423         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6424         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6425         Move from struct objfile.
6426         <minsyms_read>: New field.
6427         (struct objfile) <msymbols, minimal_symbol_count,
6428         msymbol_hash, msymbol_demangled_hash>: Move.
6429         (ALL_OBJFILE_MSYMBOLS): Update.
6430         * symfile.c (read_symbols): Set minsyms_read.
6431         (reread_symbols): Update.
6432         * symmisc.c (dump_objfile, dump_msymbols): Update.
6433
6434 2014-02-26  Tom Tromey  <tromey@redhat.com>
6435
6436         * minsyms.c (msymbols_sort): Remove.
6437         * minsyms.h (msymbols_sort): Remove.
6438         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6439         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6440         * elfread.c (elf_symtab_read): Don't add section offsets.
6441         * xcoffread.c (record_minimal_symbol): Don't add section offset
6442         to minimal symbol address.
6443         * somread.c (text_offset, data_offset): Remove.
6444         (som_symtab_read): Don't add section offsets to minimal symbol
6445         addresses.
6446         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6447         Don't add section offsets to minimal symbols.
6448         * coffread.c (coff_symtab_read): Don't add section offsets
6449         to minimal symbol addresses.
6450         * machoread.c (macho_symtab_add_minsym): Don't add section offset
6451         to minimal symbol addresses.
6452         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6453         section offset to minimal symbol addresses.
6454         * mdebugread.c (parse_partial_symbols): Don't add section
6455         offset to minimal symbol addresses.
6456         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6457         offset to minimal symbol addresses.
6458
6459 2014-02-26  Tom Tromey  <tromey@redhat.com>
6460
6461         * ada-lang.c (ada_main_name): Update.
6462         (ada_add_standard_exceptions): Update.
6463         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6464         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6465         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6466         * auxv.c (ld_so_xfer_auxv): Update.
6467         * avr-tdep.c (avr_scan_prologue): Update.
6468         * ax-gdb.c (gen_var_ref): Update.
6469         * blockframe.c (get_pc_function_start)
6470         (find_pc_partial_function_gnu_ifunc): Update.
6471         * breakpoint.c (create_overlay_event_breakpoint)
6472         (create_longjmp_master_breakpoint)
6473         (create_std_terminate_master_breakpoint)
6474         (create_exception_master_breakpoint): Update.
6475         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6476         * c-valprint.c (c_val_print): Update.
6477         * coff-pe-read.c (add_pe_forwarded_sym): Update.
6478         * common/agent.c (agent_look_up_symbols): Update.
6479         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6480         * dwarf2loc.c (call_site_to_target_addr): Update.
6481         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6482         * elfread.c (elf_gnu_ifunc_record_cache)
6483         (elf_gnu_ifunc_resolve_by_got): Update.
6484         * findvar.c (default_read_var_value): Update.
6485         * frame.c (inside_main_func): Update.
6486         * frv-tdep.c (frv_frame_this_id): Update.
6487         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6488         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6489         Update.
6490         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6491         (hppa_hpux_find_dummy_bpaddr): Update.
6492         * hppa-tdep.c (hppa_symbol_address): Update.
6493         * infcmd.c (until_next_command): Update.
6494         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6495         Update.
6496         * linespec.c (minsym_found, add_minsym): Update.
6497         * linux-nat.c (get_signo): Update.
6498         * linux-thread-db.c (inferior_has_bug): Update.
6499         * m32c-tdep.c (m32c_return_value)
6500         (m32c_m16c_address_to_pointer): Update.
6501         * m32r-tdep.c (m32r_frame_this_id): Update.
6502         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6503         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6504         * maint.c (maintenance_translate_address): Update.
6505         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6506         (frob_address): New function.
6507         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6508         frob_address.  Rename parameter to "pc_in".
6509         (compare_minimal_symbols, compact_minimal_symbols): Use raw
6510         addresses.
6511         (find_solib_trampoline_target, minimal_symbol_upper_bound):
6512         Update.
6513         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6514         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6515         * objc-lang.c (find_objc_msgsend): Update.
6516         * objfiles.c (objfile_relocate1): Update.
6517         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6518         * p-valprint.c (pascal_val_print): Update.
6519         * parse.c (write_exp_msymbol): Update.
6520         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6521         (ppc_elfv2_skip_entrypoint): Update.
6522         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6523         * printcmd.c (build_address_symbolic, msym_info)
6524         (address_info): Update.
6525         * proc-service.c (ps_pglobal_lookup): Update.
6526         * psymtab.c (find_pc_sect_psymtab_closer)
6527         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6528         Change msymbol parameter to bound_minimal_symbol.
6529         * ravenscar-thread.c (get_running_thread_id): Update.
6530         * remote.c (remote_check_symbols): Update.
6531         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6532         address.
6533         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6534         * solib-dsbt.c (lm_base): Update.
6535         * solib-frv.c (lm_base, main_got): Update.
6536         * solib-irix.c (locate_base): Update.
6537         * solib-som.c (som_solib_create_inferior_hook)
6538         (link_map_start): Update.
6539         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6540         * solib-svr4.c (elf_locate_base, enable_break): Update.
6541         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6542         (flush_ea_cache): Update.
6543         * stabsread.c (define_symbol, scan_file_globals): Update.
6544         * stack.c (find_frame_funname): Update.
6545         * symfile-debug.c (debug_qf_expand_symtabs_matching)
6546         (debug_qf_find_pc_sect_symtab): Update.
6547         * symfile.c (simple_read_overlay_table)
6548         (simple_overlay_update): Update.
6549         * symfile.h (struct quick_symbol_functions)
6550         <find_pc_sect_symtab>: Change type of msymbol to
6551         bound_minimal_symbol.
6552         * symmisc.c (dump_msymbols): Update.
6553         * symtab.c (find_pc_sect_symtab_via_partial)
6554         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6555         (search_symbols, print_msymbol_info): Update.
6556         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6557         (MSYMBOL_VALUE_ADDRESS): Redefine.
6558         (BMSYMBOL_VALUE_ADDRESS): New macro.
6559         * tracepoint.c (scope_info): Update.
6560         * tui/tui-disasm.c (tui_find_disassembly_address)
6561         (tui_get_begin_asm_address): Update.
6562         * valops.c (find_function_in_inferior): Update.
6563         * value.c (value_static_field, value_fn_field): Update.
6564
6565 2014-02-26  Tom Tromey  <tromey@redhat.com>
6566
6567         * ada-lang.c (ada_update_initial_language): Update.
6568         (ada_main_name, ada_has_this_exception_support): Update.
6569         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6570         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6571         * arm-tdep.c (arm_skip_stub): Update.
6572         * auxv.c (ld_so_xfer_auxv): Update.
6573         * avr-tdep.c (avr_scan_prologue): Update.
6574         * ax-gdb.c (gen_var_ref): Update.
6575         * breakpoint.c (struct breakpoint_objfile_data)
6576         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6577         type to bound_minimal_symbol.
6578         (create_overlay_event_breakpoint)
6579         (create_longjmp_master_breakpoint)
6580         (create_std_terminate_master_breakpoint)
6581         (create_exception_master_breakpoint): Update.
6582         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6583         * c-exp.y (classify_name): Update.
6584         * coffread.c (coff_symfile_read): Update.
6585         * common/agent.c (agent_look_up_symbols): Update.
6586         * d-lang.c (d_main_name): Update.
6587         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6588         * dec-thread.c (enable_dec_thread): Update.
6589         * dwarf2loc.c (call_site_to_target_addr): Update.
6590         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6591         * eval.c (evaluate_subexp_standard): Update.
6592         * findvar.c (struct minsym_lookup_data) <result>: Change type
6593         to bound_minimal_symbol.
6594         <objfile>: Remove.
6595         (minsym_lookup_iterator_cb, default_read_var_value): Update.
6596         * frame.c (inside_main_func): Update.
6597         * frv-tdep.c (frv_frame_this_id): Update.
6598         * gcore.c (call_target_sbrk): Update.
6599         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6600         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6601         Update.
6602         * go-lang.c (go_main_name): Update.
6603         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6604         (hppa_hpux_find_import_stub_for_addr): Update.
6605         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6606         Update.  Change return type.
6607         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6608         type.
6609         * jit.c (jit_breakpoint_re_set_internal): Update.
6610         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6611         Update.
6612         * linux-nat.c (get_signo): Update.
6613         * linux-thread-db.c (inferior_has_bug): Update
6614         * m32c-tdep.c (m32c_return_value)
6615         (m32c_m16c_address_to_pointer): Update.
6616         * m32r-tdep.c (m32r_frame_this_id): Update.
6617         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6618         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6619         * minsyms.c (lookup_minimal_symbol_internal): Rename to
6620         lookup_minimal_symbol.  Change return type.
6621         (lookup_minimal_symbol): Remove.
6622         (lookup_bound_minimal_symbol): Update.
6623         (lookup_minimal_symbol_text): Change return type.
6624         (lookup_minimal_symbol_solib_trampoline): Change return type.
6625         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6626         (lookup_minimal_symbol_solib_trampoline): Change return type.
6627         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6628         * objc-lang.c (lookup_objc_class, lookup_child_selector)
6629         (value_nsstring, find_imps): Update.
6630         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6631         * p-lang.c (pascal_main_name): Update.
6632         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6633         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6634         * proc-service.c (ps_pglobal_lookup): Update.
6635         * ravenscar-thread.c (get_running_thread_msymbol): Change
6636         return type.
6637         (has_ravenscar_runtime, get_running_thread_id): Update.
6638         * remote.c (remote_check_symbols): Update.
6639         * sol-thread.c (ps_pglobal_lookup): Update.
6640         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6641         * solib-dsbt.c (lm_base): Update.
6642         * solib-frv.c (lm_base, frv_relocate_section_addresses):
6643         Update.
6644         * solib-irix.c (locate_base): Update.
6645         * solib-som.c (som_solib_create_inferior_hook)
6646         (som_solib_desire_dynamic_linker_symbols, link_map_start):
6647         Update.
6648         * solib-spu.c (spu_enable_break): Update.
6649         * solib-svr4.c (elf_locate_base, enable_break): Update.
6650         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6651         (flush_ea_cache): Update.
6652         * stabsread.c (define_symbol): Update.
6653         * symfile.c (simple_read_overlay_table): Update.
6654         * symtab.c (find_pc_sect_line): Update.
6655         * tracepoint.c (scope_info): Update.
6656         * tui-disasm.c (tui_get_begin_asm_address): Update.
6657         * value.c (value_static_field): Update.
6658
6659 2014-02-26  Tom Tromey  <tromey@redhat.com>
6660
6661         * minsyms.c (prim_record_minimal_symbol_full): Use
6662         SET_MSYMBOL_VALUE_ADDRESS.
6663         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6664         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6665         SET_MSYMBOL_VALUE_ADDRESS.
6666         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6667         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6668
6669 2014-02-26  Tom Tromey  <tromey@redhat.com>
6670
6671         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6672         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6673         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6674         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6675         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6676         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6677         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6678         * ada-lang.c (ada_main_name): Update.
6679         (ada_lookup_simple_minsym): Update.
6680         (ada_make_symbol_completion_list): Update.
6681         (ada_add_standard_exceptions): Update.
6682         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6683         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6684         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6685         * arm-tdep.c (skip_prologue_function): Update.
6686         (arm_skip_stack_protector, arm_skip_stub): Update.
6687         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6688         (arm_wince_skip_main_prologue): Update.
6689         * auxv.c (ld_so_xfer_auxv): Update.
6690         * avr-tdep.c (avr_scan_prologue): Update.
6691         * ax-gdb.c (gen_var_ref): Update.
6692         * block.c (call_site_for_pc): Update.
6693         * blockframe.c (get_pc_function_start): Update.
6694         (find_pc_partial_function_gnu_ifunc): Update.
6695         * breakpoint.c (create_overlay_event_breakpoint): Update.
6696         (create_longjmp_master_breakpoint): Update.
6697         (create_std_terminate_master_breakpoint): Update.
6698         (create_exception_master_breakpoint): Update.
6699         (resolve_sal_pc): Update.
6700         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6701         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6702         Update.
6703         * c-valprint.c (c_val_print): Update.
6704         * coff-pe-read.c (add_pe_forwarded_sym): Update.
6705         * coffread.c (coff_symfile_read): Update.
6706         * common/agent.c (agent_look_up_symbols): Update.
6707         * dbxread.c (find_stab_function_addr): Update.
6708         (end_psymtab): Update.
6709         * dwarf2loc.c (call_site_to_target_addr): Update.
6710         (func_verify_no_selftailcall): Update.
6711         (tailcall_dump): Update.
6712         (call_site_find_chain_1): Update.
6713         (dwarf_expr_reg_to_entry_parameter): Update.
6714         * elfread.c (elf_gnu_ifunc_record_cache): Update.
6715         (elf_gnu_ifunc_resolve_by_got): Update.
6716         * f-valprint.c (info_common_command): Update.
6717         * findvar.c (read_var_value): Update.
6718         * frame.c (get_prev_frame_1): Update.
6719         (inside_main_func): Update.
6720         * frv-tdep.c (frv_skip_main_prologue): Update.
6721         (frv_frame_this_id): Update.
6722         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6723         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6724         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6725         (gnuv3_skip_trampoline): Update.
6726         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6727         (hppa64_hpux_in_solib_call_trampoline): Update.
6728         (hppa_hpux_skip_trampoline_code): Update.
6729         (hppa64_hpux_search_dummy_call_sequence): Update.
6730         (hppa_hpux_find_import_stub_for_addr): Update.
6731         (hppa_hpux_find_dummy_bpaddr): Update.
6732         * hppa-tdep.c (hppa_symbol_address)
6733         (hppa_lookup_stub_minimal_symbol): Update.
6734         * i386-tdep.c (i386_skip_main_prologue): Update.
6735         (i386_pe_skip_trampoline_code): Update.
6736         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6737         * infcall.c (get_function_name): Update.
6738         * infcmd.c (until_next_command): Update.
6739         * jit.c (jit_breakpoint_re_set_internal): Update.
6740         (jit_inferior_init): Update.
6741         * linespec.c (minsym_found): Update.
6742         (add_minsym): Update.
6743         * linux-fork.c (info_checkpoints_command): Update.
6744         * linux-nat.c (get_signo): Update.
6745         * linux-thread-db.c (inferior_has_bug): Update.
6746         * m32c-tdep.c (m32c_return_value): Update.
6747         (m32c_m16c_address_to_pointer): Update.
6748         (m32c_m16c_pointer_to_address): Update.
6749         * m32r-tdep.c (m32r_frame_this_id): Update.
6750         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6751         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6752         * maint.c (maintenance_translate_address): Update.
6753         * minsyms.c (add_minsym_to_hash_table): Update.
6754         (add_minsym_to_demangled_hash_table): Update.
6755         (msymbol_objfile): Update.
6756         (lookup_minimal_symbol): Update.
6757         (iterate_over_minimal_symbols): Update.
6758         (lookup_minimal_symbol_text): Update.
6759         (lookup_minimal_symbol_by_pc_name): Update.
6760         (lookup_minimal_symbol_solib_trampoline): Update.
6761         (lookup_minimal_symbol_by_pc_section_1): Update.
6762         (lookup_minimal_symbol_and_objfile): Update.
6763         (prim_record_minimal_symbol_full): Update.
6764         (compare_minimal_symbols): Update.
6765         (compact_minimal_symbols): Update.
6766         (build_minimal_symbol_hash_tables): Update.
6767         (install_minimal_symbols): Update.
6768         (terminate_minimal_symbol_table): Update.
6769         (find_solib_trampoline_target): Update.
6770         (minimal_symbol_upper_bound): Update.
6771         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6772         * mips-tdep.c (mips_stub_frame_sniffer): Update.
6773         (mips_skip_pic_trampoline_code): Update.
6774         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
6775         * objc-lang.c (selectors_info): Update.
6776         (classes_info): Update.
6777         (find_methods): Update.
6778         (find_imps): Update.
6779         (find_objc_msgsend): Update.
6780         * objfiles.c (objfile_relocate1): Update.
6781         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
6782         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6783         * p-valprint.c (pascal_val_print): Update.
6784         * parse.c (write_exp_msymbol): Update.
6785         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
6786         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
6787         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6788         * printcmd.c (build_address_symbolic): Update.
6789         (sym_info): Update.
6790         (address_info): Update.
6791         * proc-service.c (ps_pglobal_lookup): Update.
6792         * psymtab.c (find_pc_sect_psymtab_closer): Update.
6793         (find_pc_sect_psymtab): Update.
6794         * python/py-framefilter.c (py_print_frame): Update.
6795         * ravenscar-thread.c (get_running_thread_id): Update.
6796         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
6797         Update.
6798         * remote.c (remote_check_symbols): Update.
6799         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
6800         (rs6000_skip_trampoline_code): Update.
6801         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
6802         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6803         * solib-dsbt.c (lm_base): Update.
6804         * solib-frv.c (lm_base): Update.
6805         (main_got): Update.
6806         * solib-irix.c (locate_base): Update.
6807         * solib-som.c (som_solib_create_inferior_hook): Update.
6808         (som_solib_desire_dynamic_linker_symbols): Update.
6809         (link_map_start): Update.
6810         * solib-spu.c (spu_enable_break): Update.
6811         (ocl_enable_break): Update.
6812         * solib-svr4.c (elf_locate_base): Update.
6813         (enable_break): Update.
6814         * spu-tdep.c (spu_get_overlay_table): Update.
6815         (spu_catch_start): Update.
6816         (flush_ea_cache): Update.
6817         * stabsread.c (define_symbol): Update.
6818         (scan_file_globals): Update.
6819         * stack.c (find_frame_funname): Update.
6820         (frame_info): Update.
6821         * symfile.c (simple_read_overlay_table): Update.
6822         (simple_overlay_update): Update.
6823         * symmisc.c (dump_msymbols): Update.
6824         * symtab.c (fixup_section): Update.
6825         (find_pc_sect_line): Update.
6826         (skip_prologue_sal): Update.
6827         (search_symbols): Update.
6828         (print_msymbol_info): Update.
6829         (rbreak_command): Update.
6830         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
6831         (completion_list_objc_symbol): Update.
6832         (default_make_symbol_completion_list_break_on): Update.
6833         * tracepoint.c (scope_info): Update.
6834         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
6835         (tui_get_begin_asm_address): Update.
6836         * valops.c (find_function_in_inferior): Update.
6837         * value.c (value_static_field): Update.
6838         (value_fn_field): Update.
6839
6840 2014-02-26  Tom Tromey  <tromey@redhat.com>
6841
6842         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
6843         bound minimal symbols.  Move code that knows about minsym
6844         table layout...
6845         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
6846         function.
6847         * minsyms.h (minimal_symbol_upper_bound): Declare.
6848         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
6849         minimal_symbol_upper_bound.
6850
6851 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
6852
6853         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
6854         Use the type's name if its basic type does not have a tag.
6855
6856 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
6857
6858         * dwarf2read.c (read_subrange_type): Add comment.
6859
6860 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
6861
6862         * dwarf2read.c (update_enumeration_type_from_children): New
6863         function, mostly extracted from process_structure_scope.
6864         (read_enumeration_type): Call update_enumeration_type_from_children.
6865         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
6866         and flag_flag_enum fields.
6867
6868 2014-02-26  Pedro Alves  <palves@redhat.com>
6869
6870         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
6871         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
6872         to_xfer_partial method.
6873
6874 2014-02-26  Pedro Alves  <palves@redhat.com>
6875
6876         * target.c (complete_target_initialization): Don't install
6877         default_xfer_partial as to_xfer_partial hook.
6878         (nomemory): Delete.
6879         (update_current_target): Don't INHERIT nor de_fault
6880         deprecated_xfer_memory.  Delete de_fault macro.
6881         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
6882         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
6883         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
6884         field.
6885
6886 2014-02-26  Pedro Alves  <palves@redhat.com>
6887
6888         * go32-nat.c (my_write_child): New function.
6889         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
6890         (go32_xfer_partial): New function.
6891         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
6892         Instead install a to_xfer_partial hook.
6893
6894 2014-02-26  Pedro Alves  <palves@redhat.com>
6895
6896         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
6897         to_xfer_partial helper.  Rewrite.
6898         (procfs_xfer_partial): New function.
6899         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
6900         Install a to_xfer_partial hook.
6901
6902 2014-02-26  Pedro Alves  <palves@redhat.com>
6903
6904         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
6905         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
6906         (m32r_xfer_partial): New function.
6907         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
6908         Install a to_xfer_partial hook.
6909
6910 2014-02-26  Pedro Alves  <palves@redhat.com>
6911
6912         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
6913         helper.
6914         (mips_xfer_partial): New function.
6915         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
6916         hook.  Install a to_xfer_partial hook.
6917
6918 2014-02-26  Joel Brobecker  <brobecker@adacore.com>
6919
6920         * gdbtypes.h (create_array_type_with_stride): Add declaration.
6921         * gdbtypes.c (create_array_type_with_stride): New function,
6922         renaming create_array_type, but with an added parameter
6923         called "bit_stride".
6924         (create_array_type): Re-implement using
6925         create_array_type_with_stride.
6926         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
6927         and DW_AT_bit_stride attributes.
6928
6929 2014-02-26  Pedro Alves  <palves@redhat.com>
6930
6931         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
6932         task-specific breakpoints.
6933
6934 2014-02-25  Pedro Alves  <palves@redhat.com>
6935
6936         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
6937         handling of object == TARGET_OBJECT_UNWIND_TABLE.
6938
6939 2014-02-25  Stan Shebs  <stan@codesourcery.com>
6940
6941         * defs.h: Annotate comments for Doxygen.
6942
6943 2014-02-25  Tom Tromey  <tromey@redhat.com>
6944
6945         * target.h (target_ignore): Don't declare.
6946         * target.c (target_ignore): Remove.
6947
6948 2014-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
6949
6950         PR gdb/16626
6951         * auto-load.c (auto_load_objfile_script_1): Change filename to
6952         debugfile.
6953
6954 2014-02-25  Joel Brobecker  <brobecker@adacore.com>
6955
6956         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
6957         documentation.  Adjust prototype to match the target_ops
6958         to_xfer_partial method.  Adjust implementation accordingly.
6959
6960 2014-02-25  Hui Zhu  <hui@codesourcery.com>
6961
6962         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
6963         to_traceframe_info.
6964
6965 2014-02-25  Kevin Buettner  <kevinb@redhat.com>
6966
6967         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6968         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
6969         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
6970         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
6971         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
6972         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
6973         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
6974         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
6975         New constants.
6976         (rl78_register_type): Use a data pointer type for SP and
6977         new pseudo registers mentioned above.  Use a 16 bit integer
6978         type for all other register pairs.
6979         (rl78_register_name, rl78_g10_register_name): Update for
6980         new pseudo registers.
6981         (rl78_pseudo_register_read): Likewise.
6982         (rl78_pseudo_register_write): Likewise.
6983         (rl78_dwarf_reg_to_regnum): Return register numbers representing
6984         to the newly added pseudo registers.
6985
6986 2014-02-24  Doug Evans  <dje@google.com>
6987
6988         * value.c (record_latest_value): Fix comment.
6989         * printcmd.c (print_command_1): Remove code to handle -1 return from
6990         record_latest_value.
6991
6992 2014-02-24  Pedro Alves  <palves@redhat.com>
6993
6994         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
6995         deprecated_xfer_memory hook.
6996         (procfs_xfer_partial): Call procfs_xfer_memory instead
6997         of the deprecated_xfer_memory target hook.
6998         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
6999         helper.
7000
7001 2014-02-24  Yuanhui Zhang  <asmwarrior@gmail.com>
7002
7003         * windows-nat.c (windows_xfer_shared_libraries): Return
7004         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7005         requested object is TARGET_OBJECT_LIBRARIES.
7006
7007 2014-02-24  Yao Qi  <yao@codesourcery.com>
7008
7009         * target.h (enum target_xfer_status)
7010         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7011         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7012         explicitly.  New.
7013         * corefile.c (memory_error_message): User updated.
7014         * exec.c (section_table_read_available_memory): Likewise.
7015         * record-btrace.c (record_btrace_xfer_partial): Likewise.
7016         * target.c (target_xfer_status_to_string): Likewise.
7017         (raw_memory_xfer_partial): Likewise.
7018         (memory_xfer_partial_1, target_xfer_partial): Likewise.
7019         * valops.c (read_value_memory): Likewise.
7020         * exec.h: Update comments.
7021
7022 2014-02-24  Yao Qi  <yao@codesourcery.com>
7023
7024         * target.c (target_xfer_status_to_string): Rename argument err
7025         to status.
7026         * target.h (target_xfer_status_to_string): Update declaration.
7027         Replace target_xfer_error_to_string with
7028         target_xfer_status_to_string in comment.
7029
7030 2014-02-24  Yao Qi  <yao@codesourcery.com>
7031
7032         * mips-linux-nat.c (super_close): Update its type.
7033         (mips_linux_close): Pass 'self' to super_close.
7034
7035 2014-02-24  Yao Qi  <yao@codesourcery.com>
7036
7037         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7038         * corefile.c (read_memory): Adjusted.
7039         * target.c (target_write_with_progress): Adjusted.
7040
7041 2014-02-23  Yao Qi  <yao@codesourcery.com>
7042
7043         Revert two patches:
7044
7045         2013-10-25  Yao Qi  <yao@codesourcery.com>
7046
7047         * remote.c (remote_traceframe_info): Return early if
7048         traceframe is not selected.
7049
7050         2013-07-19  Yao Qi  <yao@codesourcery.com>
7051
7052         * target.c (update_current_target): Change the default action
7053         of 'to_traceframe_info' from tcomplain to return_zero.
7054         * target.h (struct target_ops) <to_traceframe_info>: Add more
7055         comments.
7056
7057 2014-02-23  Yao Qi  <yao@codesourcery.com>
7058
7059         * valops.c (read_value_memory): Rewrite it.  Call
7060         target_xfer_partial in a loop.
7061         * exec.h (section_table_available_memory): Remove declaration.
7062         Move comments to ...
7063         * exec.c (section_table_available_memory): ... here.  Make it
7064         static.
7065
7066 2014-02-23  Yao Qi  <yao@codesourcery.com>
7067
7068         * exec.c (section_table_read_available_memory): New function.
7069         * exec.h (section_table_read_available_memory): Declare.
7070         * ctf.c (ctf_xfer_partial): Call
7071         section_table_read_available_memory.
7072         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7073
7074 2014-02-23  Yao Qi  <yao@codesourcery.com>
7075
7076         * ctf.c (ctf_xfer_partial): Move code to ...
7077         * exec.c (exec_read_partial_read_only): ... it.  New function.
7078         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7079         * tracefile.c: Include "exec.h".
7080         * exec.h (exec_read_partial_read_only): Declare.
7081
7082 2014-02-23  Yao Qi  <yao@codesourcery.com>
7083
7084         * tracefile-tfile.c (tfile_has_all_memory): Remove.
7085         (tfile_has_memory): Remove.
7086         (init_tfile_ops): Don't set fields to_has_all_memory and
7087         to_has_memory of tfile_ops.
7088         * tracefile.c (tracefile_has_all_memory): New function.
7089         (tracefile_has_memory): New function.
7090         (init_tracefile_ops): Initialize fields to_has_all_memory and
7091         to_has_memory of 'ops'.
7092
7093 2014-02-23  Yao Qi  <yao@codesourcery.com>
7094
7095         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7096         (ctf_thread_alive, ctf_get_trace_status): Remove.
7097         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
7098         init_tracefile_ops.
7099         * tracefile-tfile.c (tfile_get_trace_status): Remove.
7100         (tfile_has_stack, tfile_has_registers): Remove.
7101         (tfile_thread_alive): Remove.
7102         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
7103         init_tracefile_ops.
7104         * tracefile.c (tracefile_has_stack): New function.
7105         (tracefile_has_registers): New function.
7106         (tracefile_thread_alive): New function.
7107         (tracefile_get_trace_status): New function.
7108         (init_tracefile_ops): New function.
7109         * tracefile.h (init_tracefile_ops): Declare.
7110
7111 2014-02-23  Yao Qi  <yao@codesourcery.com>
7112
7113         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7114         (O_LARGEFILE): Likewise.
7115         (tfile_ops): Likewise.
7116         (TRACE_HEADER_SIZE): Likewise.
7117         (trace_fd, trace_frames_offset, cur_offset): Likewise.
7118         (cur_data_size): Likewise.
7119         (tfile_read, tfile_open, tfile_interp_line): Likewise.
7120         (tfile_close, tfile_files_info): Likewise.
7121         (tfile_get_trace_status): Likewise.
7122         (tfile_get_tracepoint_status): Likewise.
7123         (tfile_get_traceframe_address): Likewise.
7124         (tfile_trace_find, match_blocktype): Likewise.
7125         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7126         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7127         (tfile_get_trace_state_variable_value): Likewise.
7128         (tfile_has_all_memory, tfile_has_memory): Likewise.
7129         (tfile_has_stack, tfile_has_registers): Likewise.
7130         (tfile_thread_alive, build_traceframe_info): Likewise.
7131         (tfile_traceframe_info, init_tfile_ops): Likewise.
7132         (_initialize_tracepoint): Don't call init_tfile_ops
7133         and add_target_with_completer.
7134         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7135         exec.h, completer.h and filenames.h.
7136         (_initialize_tracefile_tfile): New function.
7137
7138 2014-02-23  Yao Qi  <yao@codesourcery.com>
7139
7140         * Makefile.in (REMOTE_OBS): Append tracefile.o and
7141         tracefile-tfile.o.
7142         (HFILES_NO_SRCDIR): Add tracefile.h.
7143         * ctf.c: Include "tracefile.h".
7144         * tracefile.h: New file.
7145         * tracefile.c: New file
7146         * tracefile-tfile.c: New file.
7147         * tracepoint.c: Include "tracefile.h".
7148         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7149         (stop_reason_names): Add const.
7150         (trace_file_writer_xfree): Move it to tracefile.c.
7151         (trace_save, trace_save_command, trace_save_tfile): Likewise.
7152         (trace_save_ctf): Likewise.
7153         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7154         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7155         (tfile_write_header, tfile_write_regblock_type): Likewise.
7156         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7157         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7158         (tfile_write_raw_data, tfile_end): Likewise.
7159         (tfile_trace_file_writer_new): Likewise.
7160         (free_uploaded_tp): Make it extern.
7161         (free_uploaded_tsv): Make it extern.
7162         (_initialize_tracepoint): Move code to register command 'tsave'
7163         to tracefile.c.
7164         * tracepoint.h (stop_reason_names): Declare.
7165         (struct trace_frame_write_ops): Move it to tracefile.h.
7166         (struct trace_file_write_ops): Likewise.
7167         (struct trace_file_writer): Likewise.
7168         (free_uploaded_tsvs, free_uploaded_tps): Declare.
7169
7170 2014-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
7171
7172         PR gdb/16594
7173         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7174         process name.
7175         (get_cores_used_by_process): New parameter num_cores, use it.
7176         (linux_xfer_osdata_processes): Pass num_cores to it.
7177         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7178         process name.
7179
7180 2014-02-21  Andreas Arnez  <arnez@vnet.linux.ibm.com>
7181
7182         * target.c (memory_xfer_partial): Fix length arg in call to
7183         breakpoint_xfer_memory.
7184
7185 2014-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
7186
7187         PR tdep/16397
7188         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7189         number comes after the + or - signs.  Adjust length of register
7190         name to be extracted.
7191
7192 2014-02-20  Tom Tromey  <tromey@redhat.com>
7193
7194         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7195         (ada_varobj_ops): Mark "extern".
7196
7197 2014-02-20  Tom Tromey  <tromey@redhat.com>
7198
7199         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7200
7201 2014-02-20  Doug Evans  <xdje42@gmail.com>
7202
7203         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7204         All callers updated.
7205         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7206         All callers updated.
7207         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7208         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7209
7210 2014-02-20  lin zuojian  <manjian2006@gmail.com>
7211             Joel Brobecker  <brobecker@adacore.com>
7212             Doug Evans  <xdje42@gmail.com>
7213
7214         PR symtab/16581
7215         * dwarf2read.c (struct die_info): New member in_process.
7216         (reset_die_in_process): New function.
7217         (process_die): Set it at the start, reset when returning.
7218         (inherit_abstract_dies): Only call process_die if origin_child_die
7219         not already being processed.
7220
7221 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
7222
7223         * windows-nat.c (handle_unload_dll): Add function documentation.
7224         (do_initial_windows_stuff): Add comment explaining why we wait
7225         until after inferior initialization has finished before
7226         processing all DLLs.
7227
7228 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
7229
7230         * windows-nat.c (get_module_name): Delete.
7231         (windows_get_exec_module_filename): New function, mostly
7232         inspired from get_module_name.
7233         (windows_pid_to_exec_file): Replace call to get_module_name
7234         by call to windows_get_exec_module_filename.
7235
7236 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
7237
7238         * windows-nat.c (handle_load_dll): Rewrite this function's
7239         introductory comment.  Remove code using get_module_name
7240         to get the DLL's name.
7241
7242 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
7243
7244         * windows-nat.c (get_windows_debug_event): Ignore
7245         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7246         if windows_initialization_done == 0.
7247         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7248         Adjust implementation to always load all DLLs.
7249         (do_initial_windows_stuff): Replace call to
7250         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7251
7252 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
7253
7254         * windows-nat.c (_initialize_windows_nat): Deprecate the
7255         "dll-symbols" command.  Turn the "add-shared-symbol-files"
7256         and "assf" aliases into commands, and deprecate them as well.
7257         * NEWS: Add entry explaining that "dll-symbols" and its two
7258         aliases are now deprecated.
7259
7260 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
7261
7262         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7263         new-line in debug string.  Remove trailing spaces.
7264
7265 2014-02-19  Stan Shebs  <stan@codesourcery.com>
7266
7267         * darwin-nat.c (darwin_xfer_partial): Fix return type.
7268
7269 2014-02-19  Siva Chandra Reddy  <sivachandra@google.com>
7270
7271         * NEWS: Add entry for the new feature
7272         * python/py-value.c (valpy_binop): Call value_x_binop for struct
7273         and class values.
7274
7275 2014-02-19  Stan Shebs  <stan@codesourcery.com>
7276
7277         * MAINTAINERS: List Yao Qi as nios2 maintainer.
7278
7279 2014-02-19  Pedro Alves  <palves@redhat.com>
7280
7281         * common/ptid.h (struct ptid): Mention that process_stratum
7282         targets should prefer ptid.lwp.
7283
7284 2014-02-19  Pedro Alves  <palves@redhat.com>
7285
7286         * remote.c (remote_thread_alive, write_ptid, read_ptid)
7287         (read_ptid, remote_newthread_step, remote_threads_extra_info)
7288         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7289         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7290         store remote thread ids rather than ptid.tid.
7291         (_initialize_remote): Adjust.
7292
7293 2014-02-19  Tom Tromey  <tromey@redhat.com>
7294
7295         * target.c (target_get_unwinder): Rewrite.
7296         (target_get_tailcall_unwinder): Rewrite.
7297         * record-btrace.c (record_btrace_to_get_unwinder): New function.
7298         (record_btrace_to_get_tailcall_unwinder): New function.
7299         (init_record_btrace_ops): Update.
7300         * target.h (struct target_ops) <to_get_unwinder,
7301         to_get_tailcall_unwinder>: Now function pointers.  Use
7302         TARGET_DEFAULT_RETURN.
7303
7304 2014-02-19  Tom Tromey  <tromey@redhat.com>
7305
7306         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7307         argument.
7308         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7309
7310 2014-02-19  Tom Tromey  <tromey@redhat.com>
7311
7312         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7313         directly.
7314         * target-delegates.c: Rebuild.
7315         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7316         TARGET_DEFAULT_FUNC.
7317         * target.c (default_target_decr_pc_after_break): Rename from
7318         forward_target_decr_pc_after_break.  Simplify.
7319         (target_decr_pc_after_break): Rely on delegation.
7320
7321 2014-02-19  Tom Tromey  <tromey@redhat.com>
7322
7323         * target.c (update_current_target): Do not INHERIT to_doc or
7324         to_magic.  Do not de_fault to_open or to_close.
7325
7326 2014-02-19  Tom Tromey  <tromey@redhat.com>
7327
7328         * gcore.h (objfile_find_memory_regions): Declare.
7329         * gcore.c (objfile_find_memory_regions): No longer static.  Add
7330         "self" argument.
7331         (_initialize_gcore): Don't call exec_set_find_memory_regions.
7332         * exec.c: Include gcore.h.
7333         (exec_set_find_memory_regions): Remove.
7334         (exec_find_memory_regions): Remove.
7335         (exec_do_find_memory_regions): Remove.
7336         (init_exec_ops): Update.
7337         * defs.h (exec_set_find_memory_regions): Remove.
7338
7339 2014-02-19  Tom Tromey  <tromey@redhat.com>
7340
7341         * target-delegates.c: Rebuild.
7342         * target.h (struct target_ops) <to_extra_thread_info,
7343         to_thread_name, to_pid_to_exec_file, to_get_section_table,
7344         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7345         not 0, in TARGET_DEFAULT_RETURN.
7346
7347 2014-02-19  Tom Tromey  <tromey@redhat.com>
7348
7349         * target.c (complete_target_initialization): Remove casts.  Use
7350         return_zero_has_execution.
7351         (return_zero): Add "ignore" argument.
7352         (return_zero_has_execution): New function.
7353         (init_dummy_target): Remove casts.  Use
7354         return_zero_has_execution.
7355
7356 2014-02-19  Tom Tromey  <tromey@redhat.com>
7357
7358         * target.c (update_current_target): Update comments.  Do not
7359         INHERIT to_stratum.
7360
7361 2014-02-19  Tom Tromey  <tromey@redhat.com>
7362
7363         * arm-linux-nat.c (arm_linux_read_description): Delegate when
7364         needed.
7365         * corelow.c (core_read_description): Delegate when needed.
7366         * remote.c (remote_read_description): Delegate when needed.
7367         * target-delegates.c: Rebuild.
7368         * target.c (target_read_description): Rewrite.
7369         * target.h (struct target_ops) <to_read_description>: Update
7370         comment.  Use TARGET_DEFAULT_RETURN.
7371
7372 2014-02-19  Tom Tromey  <tromey@redhat.com>
7373
7374         * target-delegates.c: Rebuild.
7375         * target.c (update_current_target): Don't inherit or default
7376         to_can_run.
7377         (find_default_run_target): Check against delegate_can_run.
7378         * target.h (struct target_ops) <to_can_run>: Use
7379         TARGET_DEFAULT_RETURN.
7380
7381 2014-02-19  Tom Tromey  <tromey@redhat.com>
7382
7383         * target-delegates.c: Rebuild.
7384         * target.c (target_disconnect): Unconditionally delegate.
7385         * target.h (struct target_ops) <to_disconnect>: Use
7386         TARGET_DEFAULT_NORETURN.
7387
7388 2014-02-19  Tom Tromey  <tromey@redhat.com>
7389
7390         * record.c (record_stop): Unconditionally delegate.
7391         * target-delegates.c: Rebuild.
7392         * target.c (target_stop_recording): Unconditionally delegate.
7393         * target.h (struct target_ops) <to_stop_recording>: Use
7394         TARGET_DEFAULT_IGNORE.
7395
7396 2014-02-19  Tom Tromey  <tromey@redhat.com>
7397
7398         * target-delegates.c: Rebuild.
7399         * target.c (target_enable_btrace): Unconditionally delegate.
7400         * target.h (struct target_ops) <to_enable_btrace>: Use
7401         TARGET_DEFAULT_NORETURN.
7402
7403 2014-02-19  Tom Tromey  <tromey@redhat.com>
7404
7405         * target-delegates.c: Rebuild.
7406         * target.c (target_read_btrace): Unconditionally delegate.
7407         * target.h (struct target_ops) <to_read_btrace>: Use
7408         TARGET_DEFAULT_NORETURN.
7409
7410 2014-02-19  Tom Tromey  <tromey@redhat.com>
7411
7412         * target-delegates.c: Rebuild.
7413         * target.c (target_teardown_btrace): Unconditionally delegate.
7414         * target.h (struct target_ops) <to_teardown_btrace>: Use
7415         TARGET_DEFAULT_NORETURN.
7416
7417 2014-02-19  Tom Tromey  <tromey@redhat.com>
7418
7419         * target-delegates.c: Rebuild.
7420         * target.c (target_disable_btrace): Unconditionally delegate.
7421         * target.h (struct target_ops) <to_disable_btrace>: Use
7422         TARGET_DEFAULT_NORETURN.
7423
7424 2014-02-19  Tom Tromey  <tromey@redhat.com>
7425
7426         * target-delegates.c: Rebuild.
7427         * target.c (default_search_memory): New function.
7428         (simple_search_memory): Update comment.
7429         (target_search_memory): Unconditionally delegate.
7430         * target.h (struct target_ops) <to_search_memory>: Use
7431         TARGET_DEFAULT_FUNC.
7432
7433 2014-02-19  Tom Tromey  <tromey@redhat.com>
7434
7435         * auxv.c (default_auxv_parse): No longer static.
7436         (target_auxv_parse): Unconditionally delegate.
7437         * auxv.h (default_auxv_parse): Declare.
7438         * target-delegates.c: Rebuild.
7439         * target.c: Include auxv.h.
7440         * target.h (struct target_ops) <to_auxv_parse>: Use
7441         TARGET_DEFAULT_FUNC.
7442
7443 2014-02-19  Tom Tromey  <tromey@redhat.com>
7444
7445         * target-delegates.c: Rebuild.
7446         * target.c (target_memory_map): Unconditionally delegate.
7447         * target.h (struct target_ops) <to_memory_map>: Use
7448         TARGET_DEFAULT_RETURN.
7449
7450 2014-02-19  Tom Tromey  <tromey@redhat.com>
7451
7452         * target-delegates.c: Rebuild.
7453         * target.c (target_thread_alive): Unconditionally delegate.
7454         * target.h (struct target_ops) <to_thread_alive>: Use
7455         TARGET_DEFAULT_RETURN.
7456
7457 2014-02-19  Tom Tromey  <tromey@redhat.com>
7458
7459         * target-delegates.c: Rebuild.
7460         * target.c (target_save_record): Unconditionally delegate.
7461         * target.h (struct target_ops) <to_save_record>: Use
7462         TARGET_DEFAULT_NORETURN.
7463
7464 2014-02-19  Tom Tromey  <tromey@redhat.com>
7465
7466         * target-delegates.c: Rebuild.
7467         * target.c (target_delete_record): Unconditionally delegate.
7468         * target.h (struct target_ops) <to_delete_record>: Use
7469         TARGET_DEFAULT_NORETURN.
7470
7471 2014-02-19  Tom Tromey  <tromey@redhat.com>
7472
7473         * target-delegates.c: Rebuild.
7474         * target.c (target_record_is_replaying): Unconditionally
7475         delegate.
7476         * target.h (struct target_ops) <to_record_is_replaying>: Use
7477         TARGET_DEFAULT_RETURN.
7478
7479 2014-02-19  Tom Tromey  <tromey@redhat.com>
7480
7481         * target-delegates.c: Rebuild.
7482         * target.c (target_goto_record_begin): Unconditionally delegate.
7483         * target.h (struct target_ops) <to_goto_record_begin>: Use
7484         TARGET_DEFAULT_NORETURN.
7485
7486 2014-02-19  Tom Tromey  <tromey@redhat.com>
7487
7488         * target-delegates.c: Rebuild.
7489         * target.c (target_goto_record_end): Unconditionally delegate.
7490         * target.h (struct target_ops) <to_goto_record_end>: Use
7491         TARGET_DEFAULT_NORETURN.
7492
7493 2014-02-19  Tom Tromey  <tromey@redhat.com>
7494
7495         * target-delegates.c: Rebuild.
7496         * target.c (target_goto_record): Unconditionally delegate.
7497         * target.h (struct target_ops) <to_goto_record>: Use
7498         TARGET_DEFAULT_NORETURN.
7499
7500 2014-02-19  Tom Tromey  <tromey@redhat.com>
7501
7502         * target-delegates.c: Rebuild.
7503         * target.c (target_insn_history): Unconditionally delegate.
7504         * target.h (struct target_ops) <to_insn_history>: Use
7505         TARGET_DEFAULT_NORETURN.
7506
7507 2014-02-19  Tom Tromey  <tromey@redhat.com>
7508
7509         * target-delegates.c: Rebuild.
7510         * target.c (target_insn_history_from): Unconditionally delegate.
7511         * target.h (struct target_ops) <to_insn_history_from>: Use
7512         TARGET_DEFAULT_NORETURN.
7513
7514 2014-02-19  Tom Tromey  <tromey@redhat.com>
7515
7516         * target-delegates.c: Rebuild.
7517         * target.c (target_insn_history_range): Unconditionally delegate.
7518         * target.h (struct target_ops) <to_insn_history_range>: Use
7519         TARGET_DEFAULT_NORETURN.
7520
7521 2014-02-19  Tom Tromey  <tromey@redhat.com>
7522
7523         * target-delegates.c: Rebuild.
7524         * target.c (target_call_history): Unconditionally delegate.
7525         * target.h (struct target_ops) <to_call_history>: Use
7526         TARGET_DEFAULT_NORETURN.
7527
7528 2014-02-19  Tom Tromey  <tromey@redhat.com>
7529
7530         * target-delegates.c: Rebuild.
7531         * target.c (target_call_history_from): Unconditionally delegate.
7532         * target.h (struct target_ops) <to_call_history_from>: Use
7533         TARGET_DEFAULT_NORETURN.
7534
7535 2014-02-19  Tom Tromey  <tromey@redhat.com>
7536
7537         * target-delegates.c: Rebuild.
7538         * target.c (target_call_history_range): Unconditionally delegate.
7539         * target.h (struct target_ops) <to_call_history_range>: Use
7540         TARGET_DEFAULT_NORETURN.
7541
7542 2014-02-19  Tom Tromey  <tromey@redhat.com>
7543
7544         * target-delegates.c: Rebuild.
7545         * target.c (target_verify_memory): Unconditionally delegate.
7546         * target.h (struct target_ops) <to_verify_memory>: Use
7547         TARGET_DEFAULT_NORETURN.
7548
7549 2014-02-19  Tom Tromey  <tromey@redhat.com>
7550
7551         * target-delegates.c: Rebuild.
7552         * target.c (target_core_of_thread): Unconditionally delegate.
7553         * target.h (struct target_ops) <to_core_of_thread>: Use
7554         TARGET_DEFAULT_RETURN.
7555
7556 2014-02-19  Tom Tromey  <tromey@redhat.com>
7557
7558         * target-delegates.c: Rebuild.
7559         * target.c (target_flash_done): Unconditionally delegate.
7560         * target.h (struct target_ops) <to_flash_done>: Use
7561         TARGET_DEFAULT_NORETURN.
7562
7563 2014-02-19  Tom Tromey  <tromey@redhat.com>
7564
7565         * target-delegates.c: Rebuild.
7566         * target.c (target_flash_erase): Unconditionally delegate.
7567         * target.h (struct target_ops) <to_flash_erase>: Use
7568         TARGET_DEFAULT_NORETURN.
7569
7570 2014-02-19  Tom Tromey  <tromey@redhat.com>
7571
7572         * target-delegates.c: Rebuild.
7573         * target.c (target_get_section_table): Unconditionally delegate.
7574         * target.h (struct target_ops) <to_get_section_table>: Use
7575         TARGET_DEFAULT_RETURN.
7576
7577 2014-02-19  Tom Tromey  <tromey@redhat.com>
7578
7579         * target-delegates.c: Rebuild.
7580         * target.c (target_pid_to_str): Unconditionally delegate.
7581         (init_dummy_target): Don't initialize to_pid_to_str.
7582         (default_pid_to_str): Rename from dummy_pid_to_str.
7583         * target.h (struct target_ops) <to_pid_to_str>: Use
7584         TARGET_DEFAULT_FUNC.
7585
7586 2014-02-19  Tom Tromey  <tromey@redhat.com>
7587
7588         * target-delegates.c: Rebuild.
7589         * target.c (target_find_new_threads): Unconditionally delegate.
7590         * target.h (struct target_ops) <to_find_new_threads>: Use
7591         TARGET_DEFAULT_RETURN.
7592
7593 2014-02-19  Tom Tromey  <tromey@redhat.com>
7594
7595         * target-delegates.c: Rebuild.
7596         * target.c (target_program_signals): Unconditionally delegate.
7597         * target.h (struct target_ops) <to_program_signals>: Use
7598         TARGET_DEFAULT_IGNORE.
7599
7600 2014-02-19  Tom Tromey  <tromey@redhat.com>
7601
7602         * target-delegates.c: Rebuild.
7603         * target.c (target_pass_signals): Unconditionally delegate.
7604         * target.h (struct target_ops) <to_pass_signals>: Use
7605         TARGET_DEFAULT_IGNORE.
7606
7607 2014-02-19  Tom Tromey  <tromey@redhat.com>
7608
7609         * target-delegates.c: Rebuild.
7610         * target.c (default_mourn_inferior): New function.
7611         (target_mourn_inferior): Unconditionally delegate.
7612         * target.h (struct target_ops) <to_mourn_inferior>: Use
7613         TARGET_DEFAULT_FUNC.
7614
7615 2014-02-19  Tom Tromey  <tromey@redhat.com>
7616
7617         * target-delegates.c: Rebuild.
7618         * target.c (default_follow_fork): New function.
7619         (target_follow_fork): Unconditionally delegate.
7620         * target.h (struct target_ops) <to_follow_fork>: Use
7621         TARGET_DEFAULT_FUNC.
7622
7623 2014-02-19  Tom Tromey  <tromey@redhat.com>
7624
7625         * target-delegates.c: Rebuild.
7626         * target.c (target_kill): Unconditionally delegate.
7627         * target.h (struct target_ops) <to_kill>: Use
7628         TARGET_DEFAULT_NORETURN.
7629
7630 2014-02-19  Tom Tromey  <tromey@redhat.com>
7631
7632         * target-delegates.c: Rebuild.
7633         * target.c (target_masked_watch_num_registers): Unconditionally
7634         delegate.
7635         * target.h (struct target_ops) <to_masked_watch_num_registers>:
7636         Use TARGET_DEFAULT_RETURN.
7637
7638 2014-02-19  Tom Tromey  <tromey@redhat.com>
7639
7640         * target-delegates.c: Rebuild.
7641         * target.c (target_remove_mask_watchpoint): Unconditionally
7642         delegate.
7643         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7644         TARGET_DEFAULT_RETURN.
7645
7646 2014-02-19  Tom Tromey  <tromey@redhat.com>
7647
7648         * target-delegates.c: Rebuild.
7649         * target.c (target_insert_mask_watchpoint): Unconditionally
7650         delegate.
7651         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7652         TARGET_DEFAULT_RETURN.
7653
7654 2014-02-19  Tom Tromey  <tromey@redhat.com>
7655
7656         * target-delegates.c: Rebuild.
7657         * target.c (target_ranged_break_num_registers): Unconditionally
7658         delegate.
7659         * target.h (struct target_ops) <to_ranged_break_num_registers>:
7660         Use TARGET_DEFAULT_RETURN.
7661
7662 2014-02-19  Tom Tromey  <tromey@redhat.com>
7663
7664         * target-delegates.c: Rebuild.
7665         * target.c (target_fetch_registers): Unconditionally delegate.
7666         * target.h (struct target_ops) <to_fetch_registers>: Use
7667         TARGET_DEFAULT_NORETURN.
7668
7669 2014-02-19  Tom Tromey  <tromey@redhat.com>
7670
7671         * target-delegates.c: Rebuild.
7672         * target.c (update_current_target): Don't inherit or default
7673         to_stop.
7674         * target.h (struct target_ops) <to_stop>: Use
7675         TARGET_DEFAULT_IGNORE.
7676
7677 2014-02-19  Tom Tromey  <tromey@redhat.com>
7678
7679         * target-delegates.c: Rebuild.
7680         * target.c (update_current_target): Don't inherit or default
7681         to_can_run_breakpoint_commands.
7682         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7683         Use TARGET_DEFAULT_RETURN.
7684
7685 2014-02-19  Tom Tromey  <tromey@redhat.com>
7686
7687         * target-delegates.c: Rebuild.
7688         * target.c (update_current_target): Don't inherit or default
7689         to_supports_evaluation_of_breakpoint_conditions.
7690         * target.h (struct target_ops)
7691         <to_supports_evaluation_of_breakpoint_conditions>: Use
7692         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_augmented_libraries_svr4_read.
7699         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7700         Use TARGET_DEFAULT_RETURN.
7701
7702 2014-02-19  Tom Tromey  <tromey@redhat.com>
7703
7704         * target-delegates.c: Rebuild.
7705         * target.c (update_current_target): Don't inherit or default
7706         to_can_use_agent.
7707         * target.h (struct target_ops) <to_can_use_agent>: Use
7708         TARGET_DEFAULT_RETURN.
7709
7710 2014-02-19  Tom Tromey  <tromey@redhat.com>
7711
7712         * target-delegates.c: Rebuild.
7713         * target.c (update_current_target): Don't inherit or default
7714         to_use_agent.
7715         * target.h (struct target_ops) <to_use_agent>: Use
7716         TARGET_DEFAULT_NORETURN.
7717
7718 2014-02-19  Tom Tromey  <tromey@redhat.com>
7719
7720         * target-delegates.c: Rebuild.
7721         * target.c (update_current_target): Don't inherit or default
7722         to_traceframe_info.
7723         (return_null): Remove.
7724         * target.h (struct target_ops) <to_traceframe_info>: Use
7725         TARGET_DEFAULT_RETURN.
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_static_tracepoint_markers_by_strid.
7732         * target.h (struct target_ops)
7733         <to_static_tracepoint_markers_by_strid>: Use
7734         TARGET_DEFAULT_NORETURN.
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_marker_at.
7741         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7742         Use TARGET_DEFAULT_RETURN.
7743
7744 2014-02-19  Tom Tromey  <tromey@redhat.com>
7745
7746         * target-delegates.c: Rebuild.
7747         * target.c (update_current_target): Don't inherit or default
7748         to_set_permissions.
7749         * target.h (struct target_ops) <to_set_permissions>: Use
7750         TARGET_DEFAULT_IGNORE.
7751
7752 2014-02-19  Tom Tromey  <tromey@redhat.com>
7753
7754         * target-delegates.c: Rebuild.
7755         * target.c (update_current_target): Don't inherit or default
7756         to_get_tib_address.
7757         * target.h (struct target_ops) <to_get_tib_address>: Use
7758         TARGET_DEFAULT_NORETURN.
7759
7760 2014-02-19  Tom Tromey  <tromey@redhat.com>
7761
7762         * target-delegates.c: Rebuild.
7763         * target.c (update_current_target): Don't inherit or default
7764         to_set_trace_notes.
7765         * target.h (struct target_ops) <to_set_trace_notes>: Use
7766         TARGET_DEFAULT_RETURN.
7767
7768 2014-02-19  Tom Tromey  <tromey@redhat.com>
7769
7770         * target-delegates.c: Rebuild.
7771         * target.c (update_current_target): Don't initialize
7772         to_set_trace_buffer_size.
7773         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
7774         TARGET_DEFAULT_IGNORE.
7775
7776 2014-02-19  Tom Tromey  <tromey@redhat.com>
7777
7778         * target-delegates.c: Rebuild.
7779         * target.c (update_current_target): Don't inherit or default
7780         to_set_circular_trace_buffer.
7781         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
7782         TARGET_DEFAULT_IGNORE.
7783
7784 2014-02-19  Tom Tromey  <tromey@redhat.com>
7785
7786         * target-delegates.c: Rebuild.
7787         * target.c (update_current_target): Don't inherit or default
7788         to_set_disconnected_tracing.
7789         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
7790         TARGET_DEFAULT_IGNORE.
7791
7792 2014-02-19  Tom Tromey  <tromey@redhat.com>
7793
7794         * target-delegates.c: Rebuild.
7795         * target.c (update_current_target): Don't inherit or default
7796         to_get_min_fast_tracepoint_insn_len.
7797         (return_minus_one): Remove.
7798         * target.h (struct target_ops)
7799         <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
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_raw_trace_data.
7806         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
7807         TARGET_DEFAULT_NORETURN.
7808
7809 2014-02-19  Tom Tromey  <tromey@redhat.com>
7810
7811         * target-delegates.c: Rebuild.
7812         * target.c (update_current_target): Don't inherit or default
7813         to_upload_trace_state_variables.
7814         * target.h (struct target_ops) <to_upload_trace_state_variables>:
7815         Use TARGET_DEFAULT_RETURN.
7816
7817 2014-02-19  Tom Tromey  <tromey@redhat.com>
7818
7819         * target-delegates.c: Rebuild.
7820         * target.c (update_current_target): Don't inherit or default
7821         to_upload_tracepoints.
7822         * target.h (struct target_ops) <to_upload_tracepoints>: Use
7823         TARGET_DEFAULT_RETURN.
7824
7825 2014-02-19  Tom Tromey  <tromey@redhat.com>
7826
7827         * target-delegates.c: Rebuild.
7828         * target.c (update_current_target): Don't inherit or default
7829         to_save_trace_data.
7830         * target.h (struct target_ops) <to_save_trace_data>: Use
7831         TARGET_DEFAULT_NORETURN.
7832
7833 2014-02-19  Tom Tromey  <tromey@redhat.com>
7834
7835         * target-delegates.c: Rebuild.
7836         * target.c (update_current_target): Don't inherit or default
7837         to_get_trace_state_variable_value.
7838         * target.h (struct target_ops)
7839         <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
7840
7841 2014-02-19  Tom Tromey  <tromey@redhat.com>
7842
7843         * target-delegates.c: Rebuild.
7844         * target.c (update_current_target): Don't inherit or default
7845         to_trace_find.
7846         * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
7847
7848 2014-02-19  Tom Tromey  <tromey@redhat.com>
7849
7850         * target-delegates.c: Rebuild.
7851         * target.c (update_current_target): Don't inherit or default
7852         to_trace_stop.
7853         * target.h (struct target_ops) <to_trace_stop>: Use
7854         TARGET_DEFAULT_NORETURN.
7855
7856 2014-02-19  Tom Tromey  <tromey@redhat.com>
7857
7858         * target-delegates.c: Rebuild.
7859         * target.c (update_current_target): Don't inherit or default
7860         to_get_tracepoint_status.
7861         * target.h (struct target_ops) <to_get_tracepoint_status>: Use
7862         TARGET_DEFAULT_NORETURN.
7863
7864 2014-02-19  Tom Tromey  <tromey@redhat.com>
7865
7866         * target-delegates.c: Rebuild.
7867         * target.c (update_current_target): Don't inherit or default
7868         to_get_trace_status.
7869         * target.h (struct target_ops) <to_get_trace_status>: Use
7870         TARGET_DEFAULT_RETURN.
7871
7872 2014-02-19  Tom Tromey  <tromey@redhat.com>
7873
7874         * target-delegates.c: Rebuild.
7875         * target.c (update_current_target): Don't inherit or default
7876         to_trace_start.
7877         * target.h (struct target_ops) <to_trace_start>: Use
7878         TARGET_DEFAULT_NORETURN.
7879
7880 2014-02-19  Tom Tromey  <tromey@redhat.com>
7881
7882         * target-delegates.c: Rebuild.
7883         * target.c (update_current_target): Don't inherit or default
7884         to_trace_set_readonly_regions.
7885         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7886         Use TARGET_DEFAULT_NORETURN.
7887
7888 2014-02-19  Tom Tromey  <tromey@redhat.com>
7889
7890         * target-delegates.c: Rebuild.
7891         * target.c (update_current_target): Don't inherit or default
7892         to_disable_tracepoint.
7893         * target.h (struct target_ops) <to_disable_tracepoint>: Use
7894         TARGET_DEFAULT_NORETURN.
7895
7896 2014-02-19  Tom Tromey  <tromey@redhat.com>
7897
7898         * target-delegates.c: Rebuild.
7899         * target.c (update_current_target): Don't inherit or default
7900         to_enable_tracepoint.
7901         * target.h (struct target_ops) <to_enable_tracepoint>: Use
7902         TARGET_DEFAULT_NORETURN.
7903
7904 2014-02-19  Tom Tromey  <tromey@redhat.com>
7905
7906         * target-delegates.c: Rebuild.
7907         * target.c (update_current_target): Don't inherit or default
7908         to_download_trace_state_variable.
7909         * target.h (struct target_ops) <to_download_trace_state_variable>:
7910         Use TARGET_DEFAULT_NORETURN.
7911
7912 2014-02-19  Tom Tromey  <tromey@redhat.com>
7913
7914         * target-delegates.c: Rebuild.
7915         * target.c (update_current_target): Don't inherit or default
7916         to_can_download_tracepoint.
7917         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
7918         TARGET_DEFAULT_RETURN.
7919
7920 2014-02-19  Tom Tromey  <tromey@redhat.com>
7921
7922         * target-delegates.c: Rebuild.
7923         * target.c (update_current_target): Don't inherit or default
7924         to_download_tracepoint.
7925         * target.h (struct target_ops) <to_download_tracepoint>: Use
7926         TARGET_DEFAULT_NORETURN.
7927
7928 2014-02-19  Tom Tromey  <tromey@redhat.com>
7929
7930         * target-delegates.c: Rebuild.
7931         * target.c (update_current_target): Don't inherit or default
7932         to_trace_init.
7933         * target.h (struct target_ops) <to_trace_init>: Use
7934         TARGET_DEFAULT_RETURN.
7935
7936 2014-02-19  Tom Tromey  <tromey@redhat.com>
7937
7938         * target-delegates.c: Rebuild.
7939         * target.c (update_current_target): Don't inherit or default
7940         to_supports_string_tracing.
7941         * target.h (struct target_ops) <to_supports_string_tracing>: Use
7942         TARGET_DEFAULT_RETURN.
7943
7944 2014-02-19  Tom Tromey  <tromey@redhat.com>
7945
7946         * target-delegates.c: Rebuild.
7947         * target.c (update_current_target): Don't inherit or default
7948         to_supports_enable_disable_tracepoint.
7949         * target.h (struct target_ops)
7950         <to_supports_enable_disable_tracepoint>: 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_multi_process.
7958         * target.h (struct target_ops) <to_supports_multi_process>: Use
7959         TARGET_DEFAULT_RETURN.
7960
7961 2014-02-19  Tom Tromey  <tromey@redhat.com>
7962
7963         * target-delegates.c: Rebuild.
7964         * target.c (update_current_target): Don't inherit or default
7965         to_get_ada_task_ptid.
7966         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
7967         TARGET_DEFAULT_FUNC.
7968
7969 2014-02-19  Tom Tromey  <tromey@redhat.com>
7970
7971         * target-delegates.c: Rebuild.
7972         * target.c (update_current_target): Don't inherit or default
7973         to_thread_architecture.
7974         * target.h (struct target_ops) <to_thread_architecture>: Use
7975         TARGET_DEFAULT_FUNC.
7976
7977 2014-02-19  Tom Tromey  <tromey@redhat.com>
7978
7979         * target-delegates.c: Rebuild.
7980         * target.c (update_current_target): Don't inherit or default
7981         to_execution_direction.
7982         * target.h (struct target_ops) <to_execution_direction>: Use
7983         TARGET_DEFAULT_FUNC.
7984
7985 2014-02-19  Tom Tromey  <tromey@redhat.com>
7986
7987         * target-delegates.c: Rebuild.
7988         * target.c (update_current_target): Don't inherit or default
7989         to_can_execute_reverse.
7990         * target.h (struct target_ops) <to_can_execute_reverse>: Use
7991         TARGET_DEFAULT_RETURN.
7992         (target_can_execute_reverse): Unconditionally delegate.
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_goto_bookmark.
7999         (dummy_goto_bookmark): Remove.
8000         (init_dummy_target): Don't inherit or default to_goto_bookmark.
8001         * target.h (struct target_ops) <to_goto_bookmark>: Use
8002         TARGET_DEFAULT_NORETURN.
8003
8004 2014-02-19  Tom Tromey  <tromey@redhat.com>
8005
8006         * target-delegates.c: Rebuild.
8007         * target.c (update_current_target): Don't inherit or default
8008         to_get_bookmark.
8009         (dummy_get_bookmark): Remove.
8010         (init_dummy_target): Don't inherit or default to_get_bookmark.
8011         * target.h (struct target_ops) <to_get_bookmark>: Use
8012         TARGET_DEFAULT_NORETURN
8013
8014 2014-02-19  Tom Tromey  <tromey@redhat.com>
8015
8016         * target-delegates.c: Rebuild.
8017         * target.c (update_current_target): Don't inherit or default
8018         to_make_corefile_notes.
8019         (init_dummy_target): Don't initialize to_make_corefile_notes.
8020         * target.h (struct target_ops) <to_make_corefile_notes>: Use
8021         TARGET_DEFAULT_FUNC.
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_find_memory_regions.
8028         (init_dummy_target): Don't initialize to_find_memory_regions.
8029         * target.h (struct target_ops) <to_find_memory_regions>: 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_log_command.
8037         * target.h (struct target_ops) <to_log_command>: Use
8038         TARGET_DEFAULT_IGNORE.
8039         (target_log_command): Unconditionally delegate.
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_pid_to_exec_file.
8046         * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8047         TARGET_DEFAULT_RETURN.
8048
8049 2014-02-19  Tom Tromey  <tromey@redhat.com>
8050
8051         * target-delegates.c: Rebuild.
8052         * target.c (update_current_target): Don't inherit or default
8053         to_thread_name.
8054         (target_thread_name): Unconditionally delegate.
8055         * target.h (struct target_ops) <to_thread_name>: 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_extra_thread_info.
8063         * target.h (struct target_ops) <to_extra_thread_info>: Use
8064         TARGET_DEFAULT_RETURN.
8065
8066 2014-02-19  Tom Tromey  <tromey@redhat.com>
8067
8068         * target-delegates.c: Rebuild.
8069         * target.c (update_current_target): Don't inherit or default
8070         to_has_exited.
8071         * target.h (struct target_ops) <to_has_exited>: Use
8072         TARGET_DEFAULT_RETURN..
8073
8074 2014-02-19  Tom Tromey  <tromey@redhat.com>
8075
8076         * target-delegates.c: Rebuild.
8077         * target.c (update_current_target): Don't inherit or default
8078         to_set_syscall_catchpoint.
8079         (return_one): Remove.
8080         * target.h (struct target_ops) <to_set_syscall_catchpoint>: 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_insert_exec_catchpoint.
8088         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8089         TARGET_DEFAULT_RETURN.
8090
8091 2014-01-08  Tom Tromey  <tromey@redhat.com>
8092
8093         * target-delegates.c: Rebuild.
8094         * target.c (update_current_target): Don't inherit or default
8095         to_insert_exec_catchpoint.
8096         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8097         TARGET_DEFAULT_RETURN.
8098
8099 2014-02-19  Tom Tromey  <tromey@redhat.com>
8100
8101         * target-delegates.c: Rebuild.
8102         * target.c (update_current_target): Don't inherit or default
8103         to_remove_vfork_catchpoint.
8104         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8105         TARGET_DEFAULT_RETURN.
8106
8107 2014-02-19  Tom Tromey  <tromey@redhat.com>
8108
8109         * target-delegates.c: Rebuild.
8110         * target.c (update_current_target): Don't inherit or default
8111         to_insert_vfork_catchpoint.
8112         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8113         TARGET_DEFAULT_RETURN.
8114
8115 2014-02-19  Tom Tromey  <tromey@redhat.com>
8116
8117         * target-delegates.c: Rebuild.
8118         * target.c (update_current_target): Don't inherit or default
8119         to_remove_fork_catchpoint.
8120         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8121         TARGET_DEFAULT_RETURN.
8122
8123 2014-02-19  Tom Tromey  <tromey@redhat.com>
8124
8125         * target-delegates.c: Rebuild.
8126         * target.c (update_current_target): Don't inherit or default
8127         to_insert_fork_catchpoint.
8128         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8129         TARGET_DEFAULT_RETURN.
8130
8131 2014-02-19  Tom Tromey  <tromey@redhat.com>
8132
8133         * target-delegates.c: Rebuild.
8134         * target.c (update_current_target): Don't inherit or default
8135         to_post_startup_inferior.
8136         * target.h (struct target_ops) <to_post_startup_inferior>: Use
8137         TARGET_DEFAULT_IGNORE.
8138
8139 2014-02-19  Tom Tromey  <tromey@redhat.com>
8140
8141         * target-delegates.c: Rebuild.
8142         * target.c (update_current_target): Don't inherit or default
8143         to_load.
8144         * target.h (struct target_ops) <to_load>: Use
8145         TARGET_DEFAULT_NORETURN.
8146
8147 2014-02-19  Tom Tromey  <tromey@redhat.com>
8148
8149         * target-delegates.c: Rebuild.
8150         * target.c (update_current_target): Don't inherit or default
8151         to_terminal_info.
8152         * target.h (struct target_ops) <to_terminal_info>: Use
8153         TARGET_DEFAULT_FUNC.
8154
8155 2014-02-19  Tom Tromey  <tromey@redhat.com>
8156
8157         * target-delegates.c: Rebuild.
8158         * target.c (update_current_target): Don't inherit or default
8159         to_terminal_save_ours.
8160         * target.h (struct target_ops) <to_terminal_save_ours>: Use
8161         TARGET_DEFAULT_IGNORE.
8162
8163 2014-02-19  Tom Tromey  <tromey@redhat.com>
8164
8165         * target-delegates.c: Rebuild.
8166         * target.c (update_current_target): Don't inherit or default
8167         to_terminal_ours.
8168         * target.h (struct target_ops) <to_terminal_ours>: Use
8169         TARGET_DEFAULT_IGNORE.
8170
8171 2014-02-19  Tom Tromey  <tromey@redhat.com>
8172
8173         * target-delegates.c: Rebuild.
8174         * target.c (update_current_target): Don't inherit or default
8175         to_terminal_ours_for_output.
8176         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8177         TARGET_DEFAULT_IGNORE.
8178
8179 2014-02-19  Tom Tromey  <tromey@redhat.com>
8180
8181         * target-delegates.c: Rebuild.
8182         * target.c (update_current_target): Don't inherit or default
8183         to_terminal_inferior.
8184         * target.h (struct target_ops) <to_terminal_inferior>: Use
8185         TARGET_DEFAULT_IGNORE.
8186
8187 2014-02-19  Tom Tromey  <tromey@redhat.com>
8188
8189         * target-delegates.c: Rebuild.
8190         * target.c (update_current_target): Don't inherit or default
8191         to_terminal_init.
8192         * target.h (struct target_ops) <to_terminal_init>: Use
8193         TARGET_DEFAULT_IGNORE.
8194
8195 2014-02-19  Tom Tromey  <tromey@redhat.com>
8196
8197         * target-delegates.c: Rebuild.
8198         * target.c (update_current_target): Don't inherit or default
8199         to_can_accel_watchpoint_condition.
8200         * target.h (struct target_ops)
8201         <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8202
8203 2014-02-19  Tom Tromey  <tromey@redhat.com>
8204
8205         * target-delegates.c: Rebuild.
8206         * target.c (update_current_target): Don't inherit or default
8207         to_region_ok_for_hw_watchpoint.
8208         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8209         Use TARGET_DEFAULT_FUNC.
8210
8211 2014-02-19  Tom Tromey  <tromey@redhat.com>
8212
8213         * target-delegates.c: Rebuild.
8214         * target.c (update_current_target): Don't inherit or default
8215         to_watchpoint_addr_within_range.
8216         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8217         Use TARGET_DEFAULT_FUNC.
8218
8219 2014-02-19  Tom Tromey  <tromey@redhat.com>
8220
8221         * target-delegates.c: Rebuild.
8222         * target.c (update_current_target): Don't inherit or default
8223         to_remove_watchpoint.
8224         * target.h (struct target_ops) <to_remove_watchpoint>: Use
8225         TARGET_DEFAULT_NORETURN.
8226
8227 2014-02-19  Tom Tromey  <tromey@redhat.com>
8228
8229         * target-delegates.c: Rebuild.
8230         * target.c (update_current_target): Don't inherit or default
8231         to_insert_watchpoint.
8232         * target.h (struct target_ops) <to_insert_watchpoint>: Use
8233         TARGET_DEFAULT_RETURN.
8234
8235 2014-02-19  Tom Tromey  <tromey@redhat.com>
8236
8237         * target-delegates.c: Rebuild.
8238         * target.c (update_current_target): Don't inherit or default
8239         to_remove_hw_breakpoint.
8240         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8241         TARGET_DEFAULT_RETURN.
8242
8243 2014-02-19  Tom Tromey  <tromey@redhat.com>
8244
8245         * target-delegates.c: Rebuild.
8246         * target.c (update_current_target): Don't inherit or default
8247         to_insert_hw_breakpoint.
8248         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8249         TARGET_DEFAULT_RETURN.
8250
8251 2014-02-19  Tom Tromey  <tromey@redhat.com>
8252
8253         * target-delegates.c: Rebuild.
8254         * target.c (update_current_target): Don't inherit or default
8255         to_can_use_hw_breakpoint.
8256         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8257         TARGET_DEFAULT_RETURN.
8258
8259 2014-02-19  Tom Tromey  <tromey@redhat.com>
8260
8261         * target-delegates.c: Rebuild.
8262         * target.c (update_current_target): Don't inherit or default
8263         to_files_info.
8264         * target.h (struct target_ops) <to_files_info>: Use
8265         TARGET_DEFAULT_IGNORE.
8266
8267 2014-02-19  Tom Tromey  <tromey@redhat.com>
8268
8269         * target-delegates.c: Rebuild.
8270         * target.c (update_current_target): Don't inherit or default
8271         to_store.
8272         * target.h (struct target_ops) <to_store>: Use
8273         TARGET_DEFAULT_NORETURN.
8274
8275 2014-02-19  Tom Tromey  <tromey@redhat.com>
8276
8277         * target-delegates.c: Rebuild.
8278         * target.c (update_current_target): Don't inherit or default
8279         to_post_attach.
8280         * target.h (struct target_ops) <to_post_attach>: Use
8281         TARGET_DEFAULT_IGNORE.
8282
8283 2014-02-19  Tom Tromey  <tromey@redhat.com>
8284
8285         * target-delegates.c: Rebuild.
8286         * target.c (update_current_target): Don't inherit or default
8287         to_rcmd.
8288         (default_rcmd): New function.
8289         (do_monitor_command): Unconditionally delegate.
8290         * target.h (struct target_ops) <to_rmcd>: Use
8291         TARGET_DEFAULT_FUNC.
8292
8293 2014-02-19  Tom Tromey  <tromey@redhat.com>
8294
8295         * target-delegates.c: Rebuild.
8296         * target.c (init_dummy_target): Don't initialize to_attach.
8297         (target_attach): Unconditionally delegate.
8298         * target.h (struct target_ops) <to_attach>: Use
8299         TARGET_DEFAULT_FUNC.
8300
8301 2014-02-19  Tom Tromey  <tromey@redhat.com>
8302
8303         * target-delegates.c: Rebuild.
8304         * target.c (target_detach): Unconditionally delegate.
8305         (init_dummy_target): Don't initialize to_detach.
8306         * target.h (struct target_ops) <to_detach>: Use
8307         TARGET_DEFAULT_IGNORE.
8308
8309 2014-02-19  Tom Tromey  <tromey@redhat.com>
8310
8311         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8312         Add argument.
8313         (target_augmented_libraries_svr4_read): Add argument.
8314         * target.c (update_current_target): Update.
8315         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8316         argument.
8317
8318 2014-02-19  Tom Tromey  <tromey@redhat.com>
8319
8320         * target.h (struct target_ops) <to_call_history_range>: Add
8321         argument.
8322         * target.c (target_call_history_range): Add argument.
8323         * record-btrace.c (record_btrace_call_history_range): Add 'self'
8324         argument.
8325         (record_btrace_call_history_from): Update.
8326
8327 2014-02-19  Tom Tromey  <tromey@redhat.com>
8328
8329         * target.h (struct target_ops) <to_call_history_from>: Add
8330         argument.
8331         * target.c (target_call_history_from): Add argument.
8332         * record-btrace.c (record_btrace_call_history_from): Add 'self'
8333         argument.
8334
8335 2014-02-19  Tom Tromey  <tromey@redhat.com>
8336
8337         * target.h (struct target_ops) <to_call_history>: Add argument.
8338         * target.c (target_call_history): Add argument.
8339         * record-btrace.c (record_btrace_call_history): Add 'self'
8340         argument.
8341
8342 2014-02-19  Tom Tromey  <tromey@redhat.com>
8343
8344         * target.h (struct target_ops) <to_insn_history_range>: Add
8345         argument.
8346         * target.c (target_insn_history_range): Add argument.
8347         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8348         argument.
8349         (record_btrace_insn_history_from): Update.
8350
8351 2014-02-19  Tom Tromey  <tromey@redhat.com>
8352
8353         * target.h (struct target_ops) <to_insn_history_from>: Add
8354         argument.
8355         * target.c (target_insn_history_from): Add argument.
8356         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8357         argument.
8358
8359 2014-02-19  Tom Tromey  <tromey@redhat.com>
8360
8361         * target.h (struct target_ops) <to_insn_history>: Add argument.
8362         * target.c (target_insn_history): Add argument.
8363         * record-btrace.c (record_btrace_insn_history): Add 'self'
8364         argument.
8365
8366 2014-02-19  Tom Tromey  <tromey@redhat.com>
8367
8368         * target.h (struct target_ops) <to_goto_record>: Add argument.
8369         * target.c (target_goto_record): Add argument.
8370         * record-full.c (record_full_goto): Add 'self' argument.
8371         * record-btrace.c (record_btrace_goto): Add 'self' argument.
8372
8373 2014-02-19  Tom Tromey  <tromey@redhat.com>
8374
8375         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8376         * target.c (target_goto_record_end): Add argument.
8377         * record-full.c (record_full_goto_end): Add 'self' argument.
8378         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8379
8380 2014-02-19  Tom Tromey  <tromey@redhat.com>
8381
8382         * target.h (struct target_ops) <to_goto_record_begin>: Add
8383         argument.
8384         * target.c (target_goto_record_begin): Add argument.
8385         * record-full.c (record_full_goto_begin): Add 'self' argument.
8386         * record-btrace.c (record_btrace_goto_begin): Add 'self'
8387         argument.
8388
8389 2014-02-19  Tom Tromey  <tromey@redhat.com>
8390
8391         * target.h (struct target_ops) <to_record_is_replaying>: Add
8392         argument.
8393         * target.c (target_record_is_replaying): Add argument.
8394         * record-full.c (record_full_is_replaying): Add 'self' argument.
8395         * record-btrace.c (record_btrace_is_replaying): Add 'self'
8396         argument.
8397         (record_btrace_xfer_partial, record_btrace_store_registers)
8398         (record_btrace_prepare_to_store, record_btrace_resume)
8399         (record_btrace_wait, record_btrace_decr_pc_after_break)
8400         (record_btrace_find_new_threads, record_btrace_thread_alive):
8401         Update.
8402
8403 2014-02-19  Tom Tromey  <tromey@redhat.com>
8404
8405         * target.h (struct target_ops) <to_delete_record>: Add argument.
8406         * target.c (target_delete_record): Add argument.
8407         * record-full.c (record_full_delete): Add 'self' argument.
8408
8409 2014-02-19  Tom Tromey  <tromey@redhat.com>
8410
8411         * target.h (struct target_ops) <to_save_record>: Add argument.
8412         * target.c (target_save_record): Add argument.
8413         * record-full.c (record_full_save): Add 'self' argument.
8414         (record_full_save): Add 'self' argument.
8415
8416 2014-02-19  Tom Tromey  <tromey@redhat.com>
8417
8418         * target.h (struct target_ops) <to_info_record>: Add argument.
8419         * target.c (target_info_record): Add argument.
8420         * record.c (info_record_command): Add argument.
8421         * record-full.c (record_full_info): Add 'self' argument.
8422         * record-btrace.c (record_btrace_info): Add 'self' argument.
8423
8424 2014-02-19  Tom Tromey  <tromey@redhat.com>
8425
8426         * target.h (struct target_ops) <to_stop_recording>: Add argument.
8427         * target.c (target_stop_recording): Add argument.
8428         * record.c (record_stop): Add argument.
8429         * record-btrace.c (record_btrace_stop_recording): Add 'self'
8430         argument.
8431
8432 2014-02-19  Tom Tromey  <tromey@redhat.com>
8433
8434         * target.h (struct target_ops) <to_read_btrace>: Add argument.
8435         * target.c (struct target_ops) <to_read_btrace>: Add argument.
8436         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8437         argument.
8438         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8439         (_initialize_amd64_linux_nat): Use it.
8440         * i386-linux-nat.c (i386_linux_read_btrace): New function.
8441         (_initialize_i386_linux_nat): Use it.
8442
8443 2014-02-19  Tom Tromey  <tromey@redhat.com>
8444
8445         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8446         * target.c (target_teardown_btrace): Add argument.
8447         * remote.c (remote_teardown_btrace): Add 'self' argument.
8448         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8449         argument.
8450         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8451         argument.
8452
8453 2014-02-19  Tom Tromey  <tromey@redhat.com>
8454
8455         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8456         * target.c (target_disable_btrace): Add argument.
8457         * remote.c (remote_disable_btrace): Add 'self' argument.
8458         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8459         argument.
8460         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8461         argument.
8462
8463 2014-02-19  Tom Tromey  <tromey@redhat.com>
8464
8465         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8466         * target.c (target_enable_btrace): Add argument.
8467         * remote.c (remote_enable_btrace): Add 'self' argument.
8468         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8469         argument.
8470         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8471         argument.
8472
8473 2014-02-19  Tom Tromey  <tromey@redhat.com>
8474
8475         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8476         (target_can_use_agent): Add argument.
8477         * target.c (update_current_target): Update.
8478         * remote.c (remote_can_use_agent): Add 'self' argument.
8479         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8480
8481 2014-02-19  Tom Tromey  <tromey@redhat.com>
8482
8483         * target.h (struct target_ops) <to_use_agent>: Add argument.
8484         (target_use_agent): Add argument.
8485         * target.c (update_current_target): Update.
8486         * remote.c (remote_use_agent): Add 'self' argument.
8487         * inf-child.c (inf_child_use_agent): Add 'self' argument.
8488
8489 2014-02-19  Tom Tromey  <tromey@redhat.com>
8490
8491         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8492         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8493         (target_traceframe_info): Add argument.
8494         * target.c (update_current_target): Update.
8495         * remote.c (remote_traceframe_info): Add 'self' argument.
8496         * ctf.c (ctf_traceframe_info): Add 'self' argument.
8497
8498 2014-02-19  Tom Tromey  <tromey@redhat.com>
8499
8500         * target.h (target_static_tracepoint_markers_by_strid): Add
8501         argument.
8502         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8503         'self' argument.
8504         * target.c (update_current_target): Update.
8505         * remote.c (struct target_ops)
8506         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8507         * linux-nat.c (struct target_ops)
8508         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8509
8510 2014-02-19  Tom Tromey  <tromey@redhat.com>
8511
8512         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8513         Add argument.
8514         (target_static_tracepoint_marker_at): Add argument.
8515         * target.c (update_current_target): Update.
8516         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8517         argument.
8518
8519 2014-02-19  Tom Tromey  <tromey@redhat.com>
8520
8521         * target.h (struct target_ops) <to_set_permissions>: Add argument.
8522         (target_set_permissions): Add argument.
8523         * target.c (update_current_target): Update.
8524         * remote.c (remote_set_permissions): Add 'self' argument.
8525         (remote_start_remote): Update.
8526
8527 2014-02-19  Tom Tromey  <tromey@redhat.com>
8528
8529         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8530         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8531         (target_get_tib_address): Add argument.
8532         * target.c (update_current_target): Update.
8533         * remote.c (remote_get_tib_address): Add 'self' argument.
8534
8535 2014-02-19  Tom Tromey  <tromey@redhat.com>
8536
8537         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8538         (target_set_trace_notes): Add argument.
8539         * target.c (update_current_target): Update.
8540         * remote.c (remote_set_trace_notes): Add 'self' argument.
8541
8542 2014-02-19  Tom Tromey  <tromey@redhat.com>
8543
8544         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8545         argument.
8546         (target_set_trace_buffer_size): Add argument.
8547         * target.c (update_current_target): Update.
8548         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8549
8550 2014-02-19  Tom Tromey  <tromey@redhat.com>
8551
8552         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8553         argument.
8554         (target_set_circular_trace_buffer): Add argument.
8555         * target.c (update_current_target): Update.
8556         * remote.c (remote_set_circular_trace_buffer): Add 'self'
8557         argument.
8558
8559 2014-02-19  Tom Tromey  <tromey@redhat.com>
8560
8561         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8562         argument.
8563         (target_set_disconnected_tracing): Add argument.
8564         * target.c (update_current_target): Update.
8565         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8566
8567 2014-02-19  Tom Tromey  <tromey@redhat.com>
8568
8569         * target.h (struct target_ops)
8570         <to_get_min_fast_tracepoint_insn_len>: Add argument.
8571         (target_get_min_fast_tracepoint_insn_len): Add argument.
8572         * target.c (update_current_target): Update.
8573         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8574         argument.
8575
8576 2014-02-19  Tom Tromey  <tromey@redhat.com>
8577
8578         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8579         argument.
8580         (target_get_raw_trace_data): Add argument.
8581         * target.c (update_current_target): Update.
8582         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8583
8584 2014-02-19  Tom Tromey  <tromey@redhat.com>
8585
8586         * target.h (struct target_ops) <to_upload_trace_state_variables>:
8587         Add argument.
8588         (target_upload_trace_state_variables): Add argument.
8589         * target.c (update_current_target): Update.
8590         * remote.c (remote_upload_trace_state_variables): Add 'self'
8591         argument.
8592         (remote_start_remote): Update.
8593
8594 2014-02-19  Tom Tromey  <tromey@redhat.com>
8595
8596         * target.h (struct target_ops) <to_upload_tracepoints>: Add
8597         argument.
8598         (target_upload_tracepoints): Add argument.
8599         * target.c (update_current_target): Update.
8600         * remote.c (remote_upload_tracepoints): Add 'self' argument.
8601         (remote_start_remote): Update.
8602
8603 2014-02-19  Tom Tromey  <tromey@redhat.com>
8604
8605         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8606         (target_save_trace_data): Add argument.
8607         * target.c (update_current_target): Update.
8608         * remote.c (remote_save_trace_data): Add 'self' argument.
8609
8610 2014-02-19  Tom Tromey  <tromey@redhat.com>
8611
8612         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8613         argument.
8614         * target.h (struct target_ops)
8615         <to_get_trace_state_variable_value>: Add argument.
8616         (target_get_trace_state_variable_value): Add argument.
8617         * target.c (update_current_target): Update.
8618         * remote.c (remote_get_trace_state_variable_value): Add 'self'
8619         argument.
8620         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8621
8622 2014-02-19  Tom Tromey  <tromey@redhat.com>
8623
8624         * tracepoint.c (tfile_trace_find): Add 'self' argument.
8625         * target.h (struct target_ops) <to_trace_find>: Add argument.
8626         (target_trace_find): Add argument.
8627         * target.c (update_current_target): Update.
8628         * remote.c (remote_trace_find): Add 'self' argument.
8629         * ctf.c (ctf_trace_find): Add 'self' argument.
8630
8631 2014-02-19  Tom Tromey  <tromey@redhat.com>
8632
8633         * target.h (struct target_ops) <to_trace_stop>: Add argument.
8634         (target_trace_stop): Add argument.
8635         * target.c (update_current_target): Update.
8636         * remote.c (remote_trace_stop): Add 'self' argument.
8637
8638 2014-02-19  Tom Tromey  <tromey@redhat.com>
8639
8640         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8641         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8642         argument.
8643         (target_get_tracepoint_status): Add argument.
8644         * target.c (update_current_target): Update.
8645         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8646
8647 2014-02-19  Tom Tromey  <tromey@redhat.com>
8648
8649         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8650         * target.h (struct target_ops) <to_get_trace_status>: Add
8651         argument.
8652         (target_get_trace_status): Add argument.
8653         * target.c (update_current_target): Update.
8654         * remote.c (remote_get_trace_status): Add 'self' argument.
8655         (remote_start_remote, remote_can_download_tracepoint): Update.
8656         * ctf.c (ctf_get_trace_status): Add 'self' argument.
8657
8658 2014-02-19  Tom Tromey  <tromey@redhat.com>
8659
8660         * target.h (struct target_ops) <to_trace_start>: Add argument.
8661         (target_trace_start): Add argument.
8662         * target.c (update_current_target): Update.
8663         * remote.c (remote_trace_start): Add 'self' argument.
8664
8665 2014-02-19  Tom Tromey  <tromey@redhat.com>
8666
8667         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8668         Add argument.
8669         (target_trace_set_readonly_regions): Add argument.
8670         * target.c (update_current_target): Update.
8671         * remote.c (remote_trace_set_readonly_regions): Add 'self'
8672         argument.
8673
8674 2014-02-19  Tom Tromey  <tromey@redhat.com>
8675
8676         * target.h (struct target_ops) <to_disable_tracepoint>: Add
8677         argument.
8678         (target_disable_tracepoint): Add argument.
8679         * target.c (update_current_target): Update.
8680         * remote.c (remote_disable_tracepoint): Add 'self' argument.
8681
8682 2014-02-19  Tom Tromey  <tromey@redhat.com>
8683
8684         * target.h (struct target_ops) <to_enable_tracepoint>: Add
8685         argument.
8686         (target_enable_tracepoint): Add argument.
8687         * target.c (update_current_target): Update.
8688         * remote.c (remote_enable_tracepoint): Add 'self' argument.
8689
8690 2014-02-19  Tom Tromey  <tromey@redhat.com>
8691
8692         * target.h (struct target_ops) <to_download_trace_state_variable>:
8693         Add argument.
8694         (target_download_trace_state_variable): Add argument.
8695         * target.c (update_current_target): Update.
8696         * remote.c (remote_download_trace_state_variable): Add 'self'
8697         argument.
8698
8699 2014-02-19  Tom Tromey  <tromey@redhat.com>
8700
8701         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8702         argument.
8703         (target_can_download_tracepoint): Add argument.
8704         * target.c (update_current_target): Update.
8705         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8706
8707 2014-02-19  Tom Tromey  <tromey@redhat.com>
8708
8709         * target.h (struct target_ops) <to_download_tracepoint>: Add
8710         argument.
8711         (target_download_tracepoint): Add argument.
8712         * target.c (update_current_target): Update.
8713         * remote.c (remote_download_tracepoint): Add 'self' argument.
8714
8715 2014-02-19  Tom Tromey  <tromey@redhat.com>
8716
8717         * target.h (struct target_ops) <to_trace_init>: Add argument.
8718         (target_trace_init): Add argument.
8719         * target.c (update_current_target): Update.
8720         * remote.c (remote_trace_init): Add 'self' argument.
8721
8722 2014-02-19  Tom Tromey  <tromey@redhat.com>
8723
8724         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8725         * target.c (target_fileio_readlink): Add argument.
8726         * remote.c (remote_hostio_readlink): Add 'self' argument.
8727         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8728
8729 2014-02-19  Tom Tromey  <tromey@redhat.com>
8730
8731         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8732         * target.c (target_fileio_unlink): Add argument.
8733         * remote.c (remote_hostio_unlink): Add 'self' argument.
8734         (remote_file_delete): Update.
8735         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8736
8737 2014-02-19  Tom Tromey  <tromey@redhat.com>
8738
8739         * target.h (struct target_ops) <to_fileio_close>: Add argument.
8740         * target.c (target_fileio_close): Add argument.
8741         * remote.c (remote_hostio_close): Add 'self' argument.
8742         (remote_hostio_close_cleanup): Update.
8743         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8744         Update.
8745         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
8746
8747 2014-02-19  Tom Tromey  <tromey@redhat.com>
8748
8749         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
8750         * target.c (target_fileio_pread): Add argument.
8751         * remote.c (remote_hostio_pread): Add 'self' argument.
8752         (remote_bfd_iovec_pread, remote_file_get): Update.
8753         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
8754
8755 2014-02-19  Tom Tromey  <tromey@redhat.com>
8756
8757         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
8758         * target.c (target_fileio_pwrite): Add argument.
8759         * remote.c (remote_hostio_pwrite): Add 'self' argument.
8760         (remote_file_put): Update.
8761         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
8762
8763 2014-02-19  Tom Tromey  <tromey@redhat.com>
8764
8765         * target.h (struct target_ops) <to_fileio_open>: Add argument.
8766         * target.c (target_fileio_open): Add argument.
8767         * remote.c (remote_hostio_open): Add 'self' argument.
8768         (remote_bfd_iovec_open): Add 'self' argument.
8769         (remote_file_put): Add 'self' argument.
8770         (remote_file_get): Add 'self' argument.
8771         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
8772
8773 2014-02-19  Tom Tromey  <tromey@redhat.com>
8774
8775         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8776         Add argument.
8777         (target_can_run_breakpoint_commands): Add argument.
8778         * target.c (update_current_target): Update.
8779         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
8780         argument.
8781         (remote_insert_breakpoint): Add 'self' argument.
8782         (remote_insert_hw_breakpoint): Add 'self' argument.
8783         (remote_can_run_breakpoint_commands): Add 'self' argument.
8784
8785 2014-02-19  Tom Tromey  <tromey@redhat.com>
8786
8787         * target.h (struct target_ops)
8788         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
8789         (target_supports_evaluation_of_breakpoint_conditions): Add
8790         argument.
8791         * target.c (update_current_target): Update.
8792         * remote.c (remote_supports_cond_breakpoints): Add 'self'
8793         argument.
8794         (remote_insert_breakpoint): Add 'self' argument.
8795         (remote_insert_hw_breakpoint): Add 'self' argument.
8796         (remote_supports_cond_breakpoints): Add 'self' argument.
8797
8798 2014-02-19  Tom Tromey  <tromey@redhat.com>
8799
8800         * target.h (struct target_ops) <to_supports_string_tracing>: Add
8801         argument.
8802         (target_supports_string_tracing): Add argument.
8803         * target.c (update_current_target): Update.
8804         * remote.c (remote_supports_string_tracing): Add 'self' argument.
8805
8806 2014-02-19  Tom Tromey  <tromey@redhat.com>
8807
8808         * target.h (struct target_ops)
8809         <to_supports_disable_randomization>: Add argument.
8810         * target.c (find_default_supports_disable_randomization): Add
8811         argument.
8812         (target_supports_disable_randomization): Add argument.
8813         (find_default_supports_disable_randomization): Add 'self'
8814         argument.
8815         * remote.c (extended_remote_supports_disable_randomization): Add
8816         'self' argument.
8817         (remote_supports_disable_randomization): Add 'self' argument.
8818         (extended_remote_create_inferior): Update.
8819         * linux-nat.c (linux_nat_supports_disable_randomization): Add
8820         'self' argument.
8821
8822 2014-02-19  Tom Tromey  <tromey@redhat.com>
8823
8824         * target.h (struct target_ops)
8825         <to_supports_enable_disable_tracepoint>: Add argument.
8826         (target_supports_enable_disable_tracepoint): Add argument.
8827         * target.c (update_current_target): Update.
8828         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
8829         argument.
8830
8831 2014-02-19  Tom Tromey  <tromey@redhat.com>
8832
8833         * target.h (struct target_ops) <to_supports_multi_process>: Add
8834         argument.
8835         (target_supports_multi_process): Add argument.
8836         * target.c (update_current_target): Update.
8837         * remote.c (remote_supports_multi_process): Add 'self' argument.
8838         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
8839         argument.
8840         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
8841         argument.
8842
8843 2014-02-19  Tom Tromey  <tromey@redhat.com>
8844
8845         * target.h (struct target_ops) <to_execution_direction>: Add
8846         argument.
8847         (target_execution_direction): Add argument.
8848         * target.c (default_execution_direction): Add 'self' argument.
8849         * record-full.c (record_full_execution_direction): Add 'self'
8850         argument.
8851
8852 2014-02-19  Tom Tromey  <tromey@redhat.com>
8853
8854         * target.h (struct target_ops) <to_can_execute_reverse>: Add
8855         argument.
8856         (target_can_execute_reverse): Add argument.
8857         * remote.c (remote_can_execute_reverse): Add 'self' argument.
8858         * record-full.c (record_full_can_execute_reverse): Add 'self'
8859         argument.
8860         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
8861         argument.
8862
8863 2014-02-19  Tom Tromey  <tromey@redhat.com>
8864
8865         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
8866         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
8867         argument.
8868         (target_get_ada_task_ptid): Add argument.
8869         * target.c (update_current_target): Update.
8870         (default_get_ada_task_ptid): Add 'self' argument.
8871         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
8872         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
8873         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
8874         argument.
8875         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
8876         argument.
8877         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
8878         argument.
8879         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
8880         argument.
8881         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
8882         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
8883         argument.
8884
8885 2014-02-19  Tom Tromey  <tromey@redhat.com>
8886
8887         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
8888         (target_goto_bookmark): Add argument.
8889         * target.c (dummy_goto_bookmark): Add 'self' argument.
8890         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
8891
8892 2014-02-19  Tom Tromey  <tromey@redhat.com>
8893
8894         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
8895         (target_get_bookmark): Add argument.
8896         * target.c (dummy_get_bookmark): Add 'self' argument.
8897         * record-full.c (record_full_get_bookmark): Add 'self' argument.
8898
8899 2014-02-19  Tom Tromey  <tromey@redhat.com>
8900
8901         * target.h (struct target_ops) <to_make_corefile_notes>: Add
8902         argument.
8903         (target_make_corefile_notes): Add argument.
8904         * target.c (dummy_make_corefile_notes): Add 'self' argument.
8905         * procfs.c (procfs_make_note_section): Add 'self' argument.
8906         (procfs_make_note_section): Add 'self' argument.
8907         (procfs_make_note_section): Add 'self' argument.
8908         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
8909         argument.
8910         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
8911         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
8912         * exec.c (exec_make_note_section): Add 'self' argument.
8913         (exec_make_note_section): Add 'self' argument.
8914
8915 2014-02-19  Tom Tromey  <tromey@redhat.com>
8916
8917         * target.h (struct target_ops) <to_find_memory_regions>: Add
8918         argument.
8919         (target_find_memory_regions): Add argument.
8920         * target.c (dummy_find_memory_regions): Add 'self' argument.
8921         * procfs.c (proc_find_memory_regions): Add 'self' argument.
8922         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
8923         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
8924         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
8925         * exec. (exec_do_find_memory_regions): New global.
8926         (exec_set_find_memory_regions): Rewrite.
8927         (exec_find_memory_regions): New function.
8928         (init_exec_ops): Use exec_find_memory_regions.
8929
8930 2014-02-19  Tom Tromey  <tromey@redhat.com>
8931
8932         * target.h (struct target_ops) <to_supports_non_stop>: Add
8933         argument.
8934         * target.c (find_default_supports_non_stop): Add argument.
8935         (target_supports_non_stop): Add argument.
8936         (find_default_supports_non_stop): Add 'self' argument.
8937         * remote.c (remote_supports_non_stop): Add 'self' argument.
8938         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
8939
8940 2014-02-19  Tom Tromey  <tromey@redhat.com>
8941
8942         * target.h (struct target_ops) <to_log_command>: Add argument.
8943         (target_log_command): Add argument.
8944         * serial.h (serial_log_command): Add 'self' argument.
8945         * serial.c (serial_log_command): Add 'self' argument.
8946
8947 2014-02-19  Tom Tromey  <tromey@redhat.com>
8948
8949         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
8950         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
8951         argument.
8952         (target_pid_to_exec_file): Add argument.
8953         * target.c (debug_to_pid_to_exec_file): Add argument.
8954         (update_current_target): Update.
8955         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
8956         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
8957         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
8958         (linux_handle_extended_wait): Update.
8959         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
8960         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
8961         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
8962         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
8963
8964 2014-02-19  Tom Tromey  <tromey@redhat.com>
8965
8966         * target.h (struct target_ops) <to_rcmd>: Add argument.
8967         (target_rcmd): Add argument.
8968         * target.c (debug_to_rcmd): Add argument.
8969         (update_current_target, do_monitor_command): Update.
8970         * remote.c (remote_rcmd): Add 'self' argument.
8971         * monitor.c (monitor_rcmd): Add 'self' argument.
8972
8973 2014-02-19  Tom Tromey  <tromey@redhat.com>
8974
8975         * windows-nat.c (windows_stop): Add 'self' argument.
8976         * target.h (struct target_ops) <to_stop>: Add argument.
8977         * target.c (target_stop): Add argument.
8978         (debug_to_stop): Add argument.
8979         (update_current_target): Update.
8980         * remote.c (remote_stop): Add 'self' argument.
8981         * remote-sim.c (gdbsim_stop): Add 'self' argument.
8982         (gdbsim_cntrl_c): Update.
8983         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
8984         * procfs.c (procfs_stop): Add 'self' argument.
8985         * nto-procfs.c (procfs_stop): Add 'self' argument.
8986         * monitor.c (monitor_stop): Add 'self' argument.
8987         (monitor_open): Update.
8988         * linux-nat.c (linux_nat_stop): Add argument.
8989         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
8990         * gnu-nat.c (gnu_stop): Add 'self' argument.
8991         * darwin-nat.c (darwin_stop): Add 'self' argument.
8992
8993 2014-02-19  Tom Tromey  <tromey@redhat.com>
8994
8995         * target.h (struct target_ops) <to_thread_name>: Add argument.
8996         * target.c (target_thread_name): Add argument.
8997         (update_current_target): Update.
8998         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
8999
9000 2014-02-19  Tom Tromey  <tromey@redhat.com>
9001
9002         * target.h (struct target_ops) <to_extra_thread_info>: Add
9003         argument.
9004         (target_extra_thread_info): Add argument.
9005         * target.c (update_current_target): Update.
9006         * remote.c (remote_threads_extra_info): Add 'self' argument.
9007         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9008         argument.
9009         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9010         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9011         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9012         argument.
9013         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9014         argument.
9015         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9016         argument.
9017         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9018         argument.
9019
9020 2014-02-19  Tom Tromey  <tromey@redhat.com>
9021
9022         * target.h (struct target_ops) <to_program_signals>: Add argument.
9023         * target.c (target_program_signals): Add argument.
9024         * remote.c (remote_program_signals): Add 'self' argument.
9025
9026 2014-02-19  Tom Tromey  <tromey@redhat.com>
9027
9028         * target.h (struct target_ops) <to_pass_signals>: Add argument.
9029         * target.c (target_pass_signals): Add argument.
9030         * remote.c (remote_pass_signals): Add 'self' argument.
9031         (remote_start_remote): Update.
9032         * procfs.c (procfs_pass_signals): Add 'self' argument.
9033         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9034         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9035         (linux_nat_create_inferior, linux_nat_attach): Update.
9036
9037 2014-02-19  Tom Tromey  <tromey@redhat.com>
9038
9039         * windows-nat.c (windows_can_run): Add 'self' argument.
9040         * target.h (struct target_ops) <to_can_run>: Add argument.
9041         (target_can_run): Add argument.
9042         * target.c (debug_to_can_run): Add argument.
9043         (update_current_target): Update.
9044         * nto-procfs.c (procfs_can_run): Add 'self' argument.
9045         * inf-child.c (inf_child_can_run): Add 'self' argument.
9046         * go32-nat.c (go32_can_run): Add 'self' argument.
9047
9048 2014-02-19  Tom Tromey  <tromey@redhat.com>
9049
9050         * target.h (struct target_ops) <to_has_exited>: Add argument.
9051         (target_has_exited): Add argument.
9052         * target.c (debug_to_has_exited): Add argument.
9053         (update_current_target): Update.
9054
9055 2014-02-19  Tom Tromey  <tromey@redhat.com>
9056
9057         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9058         argument.
9059         (target_set_syscall_catchpoint): Add argument.
9060         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9061         argument.
9062         * target.c (update_current_target): Update.
9063
9064 2014-02-19  Tom Tromey  <tromey@redhat.com>
9065
9066         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9067         argument.
9068         (target_remove_exec_catchpoint): Add argument.
9069         * target.c (debug_to_remove_exec_catchpoint): Add argument.
9070         (update_current_target): Update.
9071         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9072         argument.
9073
9074 2014-02-19  Tom Tromey  <tromey@redhat.com>
9075
9076         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9077         argument.
9078         (target_insert_exec_catchpoint): Add argument.
9079         * target.c (debug_to_insert_exec_catchpoint): Add argument.
9080         (update_current_target): Update.
9081         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9082         argument.
9083
9084 2014-02-19  Tom Tromey  <tromey@redhat.com>
9085
9086         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9087         argument.
9088         (target_remove_vfork_catchpoint): Add argument.
9089         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9090         (update_current_target): Update.
9091         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9092         argument.
9093
9094 2014-02-19  Tom Tromey  <tromey@redhat.com>
9095
9096         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9097         argument.
9098         (target_insert_vfork_catchpoint): Add argument.
9099         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9100         (update_current_target): Update.
9101         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9102         argument.
9103
9104 2014-02-19  Tom Tromey  <tromey@redhat.com>
9105
9106         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9107         argument.
9108         (target_remove_fork_catchpoint): Add argument.
9109         * target.c (debug_to_remove_fork_catchpoint): Add argument.
9110         (update_current_target): Update.
9111         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9112         argument.
9113
9114 2014-02-19  Tom Tromey  <tromey@redhat.com>
9115
9116         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9117         argument.
9118         (target_insert_fork_catchpoint): Add argument.
9119         * target.c (debug_to_insert_fork_catchpoint): Add argument.
9120         (update_current_target): Update.
9121         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9122         argument.
9123
9124 2014-02-19  Tom Tromey  <tromey@redhat.com>
9125
9126         * target.h (struct target_ops) <to_post_startup_inferior>: Add
9127         argument.
9128         (target_post_startup_inferior): Add argument.
9129         * target.c (debug_to_post_startup_inferior): Add argument.
9130         (update_current_target): Update.
9131         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9132         argument.
9133         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9134         argument.
9135         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9136         argument.
9137         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9138         argument.
9139         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9140         'self' argument.
9141         (super_post_startup_inferior): Likewise.
9142         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9143         'self' argument.
9144         (super_post_startup_inferior): Likewise.
9145         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9146         Add 'self' argument.
9147         (super_post_startup_inferior): Likewise.
9148
9149 2014-02-19  Tom Tromey  <tromey@redhat.com>
9150
9151         * target.h (struct target_ops) <to_load>: Add argument.
9152         * target.c (target_load): Add argument.
9153         (debug_to_load): Add argument.
9154         (update_current_target): Update.
9155         * remote.c (remote_load): Add 'self' argument.
9156         * remote-sim.c (gdbsim_load): Add 'self' argument.
9157         * remote-mips.c (mips_load): Add 'self' argument.
9158         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9159         * monitor.c (monitor_load): Add 'self' argument.
9160         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9161
9162 2014-02-19  Tom Tromey  <tromey@redhat.com>
9163
9164         * target.h (struct target_ops) <to_terminal_info>: Add argument.
9165         (target_terminal_info): Add argument.
9166         * target.c (debug_to_terminal_info): Add argument.
9167         (default_terminal_info): Likewise.
9168         * inflow.c (child_terminal_info): Add 'self' argument.
9169         * inferior.h (child_terminal_info): Add 'self' argument.
9170         * go32-nat.c (go32_terminal_info): Add 'self' argument.
9171
9172 2014-02-19  Tom Tromey  <tromey@redhat.com>
9173
9174         * target.h (struct target_ops) <to_terminal_save_ours>: Add
9175         argument.
9176         (target_terminal_save_ours): Add argument.
9177         * target.c (debug_to_terminal_save_ours): Add argument.
9178         (update_current_target): Update.
9179         * inflow.c (terminal_save_ours): Add 'self' argument.
9180         * inferior.h (terminal_save_ours): Add 'self' argument.
9181
9182 2014-02-19  Tom Tromey  <tromey@redhat.com>
9183
9184         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9185         (target_terminal_ours): Add argument.
9186         * target.c (debug_to_terminal_ours): Add argument.
9187         (update_current_target): Update.
9188         * remote.c (remote_terminal_ours): Add 'self' argument.
9189         (remote_close): Update.
9190         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9191         * inflow.c (terminal_ours): Add 'self' argument.
9192         * inferior.h (terminal_ours): Add 'self' argument.
9193         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9194
9195 2014-02-19  Pedro Alves  <palves@redhat.com>
9196             Tom Tromey  <tromey@redhat.com>
9197
9198         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9199         argument.
9200         (target_terminal_ours_for_output): Add argument.
9201         * target.c (debug_to_terminal_ours_for_output): Add argument.
9202         (update_current_target): Update.
9203         * inflow.c (terminal_ours_for_output): Add 'self' argument.
9204         * inferior.h (terminal_ours_for_output): Add 'self' argument.
9205         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9206
9207 2014-02-19  Tom Tromey  <tromey@redhat.com>
9208
9209         * target.h (struct target_ops) <to_terminal_inferior>: Add
9210         argument.
9211         * target.c (target_terminal_inferior): Add argument.
9212         (update_current_target): Update.
9213         * remote.c (remote_terminal_inferior): Add 'self' argument.
9214         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9215         * inflow.c (terminal_inferior): Add 'self' argument.
9216         * inferior.h (terminal_inferior): Add 'self' argument.
9217         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9218         (go32_terminal_inferior): Add 'self' argument.
9219
9220 2014-02-19  Tom Tromey  <tromey@redhat.com>
9221
9222         * target.h (struct target_ops) <to_terminal_init>: Add argument.
9223         (target_terminal_init): Add argument.
9224         * target.c (debug_to_terminal_init): Add argument.
9225         (update_current_target): Update.
9226         * inflow.c (terminal_init_inferior): Add 'self' argument.
9227         * inferior.h (terminal_init_inferior): Add 'self' argument.
9228         * go32-nat.c (go32_terminal_init): Add 'self' argument.
9229         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9230
9231 2014-02-19  Tom Tromey  <tromey@redhat.com>
9232
9233         * target.h (struct target_ops)
9234         <to_can_accel_watchpoint_condition>: Add argument.
9235         (target_can_accel_watchpoint_condition): Add argument.
9236         * target.c (debug_to_can_accel_watchpoint_condition): Add
9237         argument.
9238         (update_current_target): Update.
9239         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9240         'self' argument.
9241
9242 2014-02-19  Tom Tromey  <tromey@redhat.com>
9243
9244         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9245         Add argument.
9246         (target_region_ok_for_hw_watchpoint): Add argument.
9247         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9248         (default_region_ok_for_hw_watchpoint): Add argument.
9249         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9250         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9251         argument.
9252         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9253         argument.
9254         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9255         argument.
9256         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9257         'self' argument.
9258         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9259         'self' argument.
9260         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9261         'self' argument.
9262         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9263         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9264         'self' argument.
9265         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9266         Add 'self' argument.
9267
9268 2014-02-19  Tom Tromey  <tromey@redhat.com>
9269
9270         * target.h (struct target_ops) <to_insert_watchpoint>: Add
9271         argument.
9272         (target_insert_watchpoint): Add argument.
9273         * target.c (debug_to_insert_watchpoint): Add argument.
9274         (update_current_target): Update.
9275         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9276         * remote.c (remote_insert_watchpoint): Add 'self' argument.
9277         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9278         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9279         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9280         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9281         argument.
9282         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9283         (procfs_insert_hw_watchpoint): Add 'self' argument.
9284         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9285         argument.
9286         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9287         argument.
9288         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9289         argument.
9290         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9291         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9292         argument.
9293         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9294         'self' argument.
9295
9296 2014-02-19  Tom Tromey  <tromey@redhat.com>
9297
9298         * target.h (struct target_ops) <to_remove_watchpoint>: Add
9299         argument.
9300         (target_remove_watchpoint): Add argument.
9301         * target.c (debug_to_remove_watchpoint): Add argument.
9302         (update_current_target): Update.
9303         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9304         * remote.c (remote_remove_watchpoint): Add 'self' argument.
9305         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9306         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9307         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9308         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9309         argument.
9310         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9311         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9312         argument.
9313         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9314         argument.
9315         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9316         argument.
9317         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9318         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9319         argument.
9320         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9321         'self' argument.
9322
9323 2014-02-19  Tom Tromey  <tromey@redhat.com>
9324
9325         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9326         argument.
9327         (target_remove_hw_breakpoint): Add argument.
9328         * target.c (debug_to_remove_hw_breakpoint): Add argument.
9329         (update_current_target): Update.
9330         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9331         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9332         argument.
9333         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9334         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9335         argument.
9336         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9337         'self' argument.
9338
9339 2014-02-19  Tom Tromey  <tromey@redhat.com>
9340
9341         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9342         argument.
9343         (target_insert_hw_breakpoint): Add argument.
9344         * target.c (debug_to_insert_hw_breakpoint): Add argument.
9345         (update_current_target): Update.
9346         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9347         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9348         argument.
9349         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9350         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9351         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9352         argument.
9353         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9354         'self' argument.
9355
9356 2014-02-19  Tom Tromey  <tromey@redhat.com>
9357
9358         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9359         argument.
9360         (target_can_use_hardware_watchpoint): Add argument.
9361         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9362         (update_current_target): Update.
9363         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9364         argument.
9365         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9366         argument.
9367         * remote.c (remote_check_watch_resources): Add 'self' argument.
9368         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9369         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9370         argument.
9371         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9372         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9373         argument.
9374         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9375         argument.
9376         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9377         argument.
9378         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9379         argument.
9380         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9381         argument.
9382         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9383         argument.
9384         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9385         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9386         argument.
9387         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9388         'self' argument.
9389
9390 2014-02-19  Tom Tromey  <tromey@redhat.com>
9391
9392         * target.h (struct target_ops) <to_post_attach>: Add argument.
9393         (target_post_attach): Add argument.
9394         * target.c (debug_to_post_attach): Add argument.
9395         (update_current_target): Update.
9396         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9397         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9398         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9399         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9400         * inf-child.c (inf_child_post_attach): Add 'self' argument.
9401
9402 2014-02-19  Tom Tromey  <tromey@redhat.com>
9403
9404         * windows-nat.c (windows_close): Add 'self' argument.
9405         * tracepoint.c (tfile_close): Add 'self' argument.
9406         * target.h (struct target_ops) <to_close>: Add argument.
9407         * target.c (target_close): Add argument.
9408         (update_current_target): Update.
9409         * remote.c (remote_close): Add 'self' argument.
9410         * remote-sim.c (gdbsim_close): Add 'self' argument.
9411         * remote-mips.c (mips_close): Add 'self' argument.
9412         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9413         * record-full.c (record_full_close): Add 'self' argument.
9414         * record-btrace.c (record_btrace_close): Add 'self' argument.
9415         * monitor.h (monitor_close): Add 'self' argument.
9416         * monitor.c (monitor_close): Add 'self' argument.
9417         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9418         * linux-nat.c (linux_nat_close): Add argument.
9419         * go32-nat.c (go32_close): Add 'self' argument.
9420         * exec.c (exec_close_1): Add 'self' argument.
9421         * ctf.c (ctf_close): Add 'self' argument.
9422         * corelow.c (core_close): Add 'self' argument.
9423         (core_close_cleanup): Update.
9424         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9425         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9426
9427 2014-02-19  Tom Tromey  <tromey@redhat.com>
9428
9429         * remote.c (remote_load): New function.
9430         (init_remote_ops): Use it.
9431
9432 2014-02-19  Tom Tromey  <tromey@redhat.com>
9433
9434         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9435         argument.
9436         * common/linux-btrace.h (linux_supports_btrace): Update.
9437         * remote.c (remote_supports_btrace): Add "self" argument.
9438         * target-delegates.c: Rebuild.
9439         * target.c (target_supports_btrace): Remove.
9440         * target.h (struct target_ops) <to_supports_btrace>: Add
9441         target_ops argument.
9442         (target_supports_btrace): New define.
9443
9444 2014-02-19  Tom Tromey  <tromey@redhat.com>
9445
9446         * record-full.c (record_full_beneath_to_resume_ops)
9447         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9448         (record_full_beneath_to_wait)
9449         (record_full_beneath_to_store_registers_ops)
9450         (record_full_beneath_to_store_registers)
9451         (record_full_beneath_to_xfer_partial_ops)
9452         (record_full_beneath_to_xfer_partial)
9453         (record_full_beneath_to_insert_breakpoint_ops)
9454         (record_full_beneath_to_insert_breakpoint)
9455         (record_full_beneath_to_remove_breakpoint_ops)
9456         (record_full_beneath_to_remove_breakpoint)
9457         (record_full_beneath_to_stopped_by_watchpoint)
9458         (record_full_beneath_to_stopped_data_address)
9459         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9460         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9461         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9462         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9463         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9464         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9465         (tmp_to_stopped_data_address, tmp_to_async): Remove.
9466         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
9467         (record_full_resume, record_full_wait_1)
9468         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9469         (record_full_store_registers, record_full_xfer_partial)
9470         (record_full_insert_breakpoint, record_full_remove_breakpoint)
9471         (record_full_async, record_full_core_xfer_partial): Use target
9472         delegation.
9473         * target-delegates.c: Rebuild.
9474         * target.c (current_xfer_partial): Remove.
9475         (update_current_target): Do not INHERIT or de_fault
9476         to_insert_breakpoint, to_remove_breakpoint,
9477         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9478         to_is_async_p, to_async.  Do not set to_xfer_partial field.
9479         (default_xfer_partial): Simplify.
9480         (current_xfer_partial): Remove.
9481         (target_wait, target_resume): Simplify.
9482         (find_default_can_async_p, find_default_is_async_p): Update.
9483         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9484         to_xfer_partial, to_stopped_by_watchpoint,
9485         to_stopped_data_address.
9486         (target_store_registers): Simplify.
9487         (forward_target_remove_breakpoint)
9488         (forward_target_insert_breakpoint): Remove.
9489         (target_remove_breakpoint, target_insert_breakpoint)
9490         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9491         * target.h (struct target_ops) <to_resume, to_wait,
9492         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9493         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9494         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9495         markup.
9496         (forward_target_remove_breakpoint)
9497         (forward_target_insert_breakpoint): Remove.
9498         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9499         directly.
9500         (record_btrace_insert_breakpoint): Delegate directly.
9501
9502 2014-02-19  Tom Tromey  <tromey@redhat.com>
9503
9504         PR build/7701:
9505         * target-delegates.c: New file.
9506         * target.c: Include target-delegates.c.
9507         (init_dummy_target): Call install_dummy_methods.
9508         (complete_target_initialization): Call install_delegators.
9509         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9510         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9511         * make-target-delegates: New file.
9512
9513 2014-02-19  Tom Tromey  <tromey@redhat.com>
9514
9515         * record.c (find_record_target): Use find_target_at.
9516         * target.c (find_target_at): New function.
9517         * target.h (find_target_at): Declare.
9518
9519 2014-02-19  Tom Tromey  <tromey@redhat.com>
9520
9521         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9522         Add 'ops' argument.
9523         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9524         'ops' argument.
9525         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9526         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9527         'ops' argument.
9528         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9529         argument.
9530         * linux-nat.c (save_sigtrap): Update.
9531         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9532         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9533         (linux_nat_close): Update.
9534         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9535         argument.
9536         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9537         argument.
9538         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9539         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9540         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9541         (tmp_to_async): Add 'ops' argument.
9542         (record_full_stopped_by_watchpoint, record_full_async)
9543         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9544         argument.
9545         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9546         (m32r_stopped_by_watchpoint): Add 'ops' argument.
9547         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9548         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9549         (remote_is_async_p, remote_async): Add 'ops' argument.
9550         (remote_stopped_data_address): Update.
9551         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9552         * target.c (update_current_target)
9553         (find_default_can_async_p, find_default_is_async_p): Update.
9554         (init_dummy_target): Update.
9555         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9556         * target.h (struct target_ops) <to_stopped_by_watchpoint,
9557         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9558         (target_can_async_p, target_is_async_p, target_async)
9559         (target_stopped_by_watchpoint): Update.
9560
9561 2014-02-19  Yao Qi  <yao@codesourcery.com>
9562
9563         PR gdb/16220
9564         * gdbarch.sh: Remove startup_gdbarch.
9565         * gdbarch.c: Regenerated.
9566         * gdbarch.h: Likewise.
9567
9568 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
9569
9570         * rl78-tdep.c (rl78_g10_register_name): New function.
9571         (rl78_return_value): Add g10 support.
9572         (rl78_gdbarch_init): Register rl78_g10_register_name for the
9573         g10.
9574
9575 2014-02-17  Doug Evans  <xdje42@gmail.com>
9576
9577         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9578         (SUBDIR_GUILE_SRCS): Ditto.
9579         (scm-gsmob.o): Ditto.
9580
9581 2014-02-17  Yao Qi  <yao@codesourcery.com>
9582
9583         * gnu-nat.c (ILL_RPC): Declare defined function.
9584
9585 2014-02-17  Yao Qi  <yao@codesourcery.com>
9586
9587         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9588         mach_msg_type_number_t.
9589         (gnu_write_inferior): Likewise.
9590
9591 2014-02-17  Yao Qi  <yao@codesourcery.com>
9592
9593         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9594         in format string.
9595         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9596         (inf_validate_procs, inf_signal): Likewise.
9597         (S_exception_raise_request): Likewise.
9598         (do_mach_notify_dead_name): Likewise.
9599         (steal_exc_port): Likewise.
9600         (gnu_read_inferior): Change 'copy_count''s type to
9601         mach_msg_type_number_t.
9602         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
9603         format string.
9604
9605 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
9606
9607         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9608         flag.  Adjust all users; in particular...
9609         (gnu_wait): ..., don't decrement its value in here...
9610         (gnu_create_inferior): ..., and instead set the flag in here,
9611         around the startup_inferior call, and call that one with
9612         START_INFERIOR_TRAPS_EXPECTED.
9613
9614         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9615         (ILL_RPC): ... new macro.
9616         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9617         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9618         (do_mach_notify_send_once, S_proc_setmsgport_reply)
9619         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9620         functions with ILL_RPC macro.
9621         (S_proc_pid2task_reply, S_proc_task2pid_reply)
9622         (S_proc_task2proc_reply, S_proc_proc2task_reply)
9623         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9624         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9625         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9626         (S_proc_getlogin_reply, S_proc_getsid_reply)
9627         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9628         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9629         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9630         (S_proc_getnports_reply, S_proc_is_important_reply)
9631         (S_proc_get_code_reply): New stub functions, generated with
9632         ILL_RPC macro.
9633
9634         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9635         collected the type check structures.
9636
9637         * reply_mig_hack.awk: Don't expect to see the auto keyword.
9638
9639 2014-02-14  Doug Evans  <dje@google.com>
9640
9641         * target.c (target_write_partial): Fix result type.
9642
9643 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
9644
9645         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9646         the proper offsets to access fpregset_t.
9647
9648 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
9649
9650         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9651         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9652         * h8300-tdep.c (setmachinelist): Remove global.
9653         * hppa-tdep.c (hppa_sigtramp): Remove global.
9654         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9655         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9656         * ravenscar-thread.c (update_target_observer): Remove global.
9657         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9658
9659 2014-02-12  Tom Tromey  <tromey@redhat.com>
9660
9661         * common/rsp-low.c: Update comments.
9662         * common/rsp-low.h: Update comments.
9663
9664 2014-02-12  Tom Tromey  <tromey@redhat.com>
9665
9666         * common/rsp-low.c (convert_ascii_to_int): Remove.
9667         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9668
9669 2014-02-12  Tom Tromey  <tromey@redhat.com>
9670
9671         * common/rsp-low.h (unhexify): Don't declare.
9672         * common/rsp-low.c (unhexify): Remove.
9673
9674 2014-02-12  Tom Tromey  <tromey@redhat.com>
9675
9676         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9677         * common/rsp-low.c (convert_int_to_ascii): Remove.
9678
9679 2014-02-12  Tom Tromey  <tromey@redhat.com>
9680
9681         * common/rsp-low.h (hexify): Don't declare.
9682         * common/rsp-low.c (hexify): Remove.
9683
9684 2014-02-12  Tom Tromey  <tromey@redhat.com>
9685
9686         * common/rsp-low.c (hexify): Never take strlen of argument.
9687
9688 2014-02-12  Tom Tromey  <tromey@redhat.com>
9689
9690         * common/rsp-low.c (bin2hex): Never take strlen of argument.
9691         * remote.c (extended_remote_run, remote_rcmd)
9692         (remote_download_trace_state_variable, remote_save_trace_data)
9693         (remote_set_trace_notes): Update.
9694         * tracepoint.c (encode_source_string, tfile_write_status)
9695         (tfile_write_uploaded_tsv): Update.
9696
9697 2014-02-12  Tom Tromey  <tromey@redhat.com>
9698
9699         * tracepoint.c: Include rsp-low.h.
9700         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9701         * remote.c: Include rsp-low.h.
9702         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9703         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9704         (remote_unescape_input): Move to common/rsp-low.c.
9705         * common/rsp-low.h: New file.
9706         * common/rsp-low.c: New file.
9707         * Makefile.in (SFILES): Add common/rsp-low.c.
9708         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9709         (COMMON_OBS): Add rsp-low.o.
9710         (rsp-low.o): New target.
9711
9712 2014-02-12  Tom Tromey  <tromey@redhat.com>
9713
9714         * utils.h: Include print-utils.h.
9715         (host_address_to_string, plongest, pulongest, phex, phex_nz)
9716         (int_string, core_addr_to_string, core_addr_to_string_nz)
9717         (hex_string, hex_string_custom): Don't declare.
9718         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9719         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9720         (hex_string_custom, int_string, core_addr_to_string)
9721         (core_addr_to_string_nz, host_address_to_string): Move to
9722         common/print-utils.c.
9723         * common/print-utils.h: New file.
9724         * common/print-utils.c: New file
9725         * Makefile.in (SFILES): Add common/print-utils.c.
9726         (HFILES_NO_SRCDIR): Add common/print-utils.h.
9727         (COMMON_OBS): Add print-utils.o.
9728         (print-utils.o): New target.
9729
9730 2014-02-12  Tom Tromey  <tromey@redhat.com>
9731
9732         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9733
9734 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
9735
9736         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9737
9738 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
9739
9740         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9741         if a PT_IO ptrace request returns sucessfully but indicates that 0
9742         bytes were transferred.
9743
9744 2014-02-12  Pedro Alves  <palves@redhat.com>
9745             Kevin Buettner <kevinb@redhat.com>
9746
9747         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
9748         TYPE_INSTANCE_FLAG_CODE_SPACE.
9749
9750 2014-02-12  Pedro Alves  <palves@redhat.com>
9751
9752         * h8300-tdep.c (pseudo_from_raw_register)
9753         (raw_from_pseudo_register): New functions.
9754         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
9755         them.
9756
9757 2014-02-12  Pedro Alves  <palves@redhat.com>
9758
9759         * h8300-tdep.c (h8300_register_sim_regno): New function.
9760         (h8300_gdbarch_init): Install h8300_register_sim_regno as
9761         gdbarch_register_sim_regno hook.
9762
9763 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
9764
9765         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
9766
9767 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
9768
9769         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
9770
9771 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
9772
9773         * obsd-tdep.h (obsd_init_abi): New prototype.
9774         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
9775         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
9776         (obsd_init_abi): New functions.
9777         * i386obsd-tdep.c: Include "obsd-tdep.h".
9778         (i386obsd_init_abi): Call obsd_init_abi.
9779         * amd64obsd-tdep.c: Include "obsd-tdep.h".
9780         (amd64obsd_init_abi): Call obsd_init_abi.
9781         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
9782         obsd-tdep.c to gdb_target_obs.
9783
9784 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
9785
9786         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
9787         double float arguments to 16-byte in the argument slots.
9788
9789 2014-02-11  Doug Evans  <xdje42@gmail.com>
9790
9791         * configure.ac: Don't crash if pkg-config is not found and guile
9792         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
9793         in guile checks.
9794         * configure: Regenerate.
9795
9796 2014-02-11  Yao Qi  <yao@codesourcery.com>
9797
9798         * aix-thread.c (aix_thread_xfer_partial): Update comments.
9799         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
9800         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9801         * gnu-nat.c (gnu_xfer_memory): Likewise.
9802         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
9803         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9804         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9805         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9806
9807 2014-02-11  Yao Qi  <yao@codesourcery.com>
9808
9809         * target.h (enum target_xfer_error): Rename to ...
9810         (enum target_xfer_status): ... it.  New.  All users updated.
9811         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
9812         New.
9813         (TARGET_XFER_STATUS_ERROR_P): New macro.
9814         (target_xfer_error_to_string): Remove declaration.
9815         (target_xfer_status_to_string): Declare.
9816         (target_xfer_partial_ftype): Adjust it.
9817         (struct target_ops) <to_xfer_partial>: Return
9818         target_xfer_status.  Add argument xfered_len.  Update
9819         comments.
9820         * target.c (target_xfer_error_to_string): Rename to ...
9821         (target_xfer_status_to_string): ... it.  New.  All callers
9822         updated.
9823         (target_read_live_memory): Likewise.  Call target_xfer_partial
9824         instead of target_read.
9825         (memory_xfer_live_readonly_partial): Return
9826         target_xfer_status.  Add argument xfered_len.
9827         (raw_memory_xfer_partial): Likewise.
9828         (memory_xfer_partial_1): Likewise.
9829         (memory_xfer_partial): Likewise.
9830         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
9831         properly.  Update debug message.
9832         (default_xfer_partial, current_xfer_partial): Likewise.
9833         (target_write_partial): Likewise.
9834         (target_read_partial): Likewise.  All callers updated.
9835         (read_whatever_is_readable): Likewise.
9836         (target_write_with_progress): Likewise.
9837         (target_read_alloc_1): Likewise.
9838
9839         * aix-thread.c (aix_thread_xfer_partial): Likewise.
9840         * auxv.c (procfs_xfer_auxv): Likewise.
9841         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
9842         * bfd-target.c (target_bfd_xfer_partial): Likewise.
9843         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9844         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
9845         * corefile.c (read_memory): Adjust.
9846         * corelow.c (core_xfer_partial): Likewise.
9847         * ctf.c (ctf_xfer_partial): Likewise.
9848         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
9849         updated.
9850         (darwin_xfer_partial): Likewise.
9851         * exec.c (section_table_xfer_memory_partial): Likewise.  All
9852         callers updated.
9853         (exec_xfer_partial): Likewise.
9854         * exec.h (section_table_xfer_memory_partial): Update
9855         declaration.
9856         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
9857         negative.
9858         (gnu_xfer_partial): Likewise.
9859         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
9860         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
9861         (ia64_hpux_xfer_solib_got): Likewise.
9862         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
9863         type of 'partial_len' to ULONGEST.
9864         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9865         * linux-nat.c (linux_xfer_siginfo ): Likewise.
9866         (linux_nat_xfer_partial): Likewise.
9867         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
9868         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
9869         * monitor.c (monitor_xfer_memory): Likewise.
9870         (monitor_xfer_partial): Likewise.
9871         * procfs.c (procfs_xfer_partial): Likewise.
9872         * record-btrace.c (record_btrace_xfer_partial): Likewise.
9873         * record-full.c (record_full_xfer_partial): Likewise.
9874         (record_full_core_xfer_partial): Likewise.
9875         * remote-sim.c (gdbsim_xfer_memory): Likewise.
9876         (gdbsim_xfer_partial): Likewise.
9877         * remote.c (remote_write_bytes_aux): Likewise.  All callers
9878         updated.
9879         (remote_write_bytes, remote_read_bytes): Likewise.  All
9880         callers updated.
9881         (remote_flash_erase): Likewise.  All callers updated.
9882         (remote_write_qxfer): Likewise.  All callers updated.
9883         (remote_read_qxfer): Likewise.  All callers updated.
9884         (remote_xfer_partial): Likewise.
9885         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9886         (rs6000_xfer_shared_libraries): Likewise.
9887         * sol-thread.c (sol_thread_xfer_partial): Likewise.
9888         (sol_thread_xfer_partial): Likewise.
9889         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9890         (sparc_xfer_partial): Likewise.
9891         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
9892         updated.
9893         (spu_xfer_partial): Likewise.
9894         * spu-multiarch.c (spu_xfer_partial): Likewise.
9895         * tracepoint.c (tfile_xfer_partial): Likewise.
9896         * windows-nat.c (windows_xfer_memory): Likewise.
9897         (windows_xfer_shared_libraries): Likewise.
9898         (windows_xfer_partial): Likewise.
9899         * valprint.c: Replace 'target_xfer_error' with
9900         'target_xfer_status' in comments.
9901
9902 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
9903
9904         Checked in by Joel Brobecker <brobecker@adacore.com>.
9905         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
9906
9907 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
9908
9909         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
9910         function parameters.
9911
9912 2014-02-10  Will Newton  <will.newton@linaro.org>
9913
9914         * elfread.c (elf_rel_plt_read): Look for a .got section if
9915         looking up .got.plt fails.
9916         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
9917         on address passed to elf_gnu_ifunc_record_cache.
9918         (elf_gnu_ifunc_resolve_addr): Likewise.
9919         (elf_gnu_ifunc_resolver_return_stop): Likewise.
9920
9921 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
9922
9923         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
9924         (X_RETTURN): New macro.
9925         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
9926
9927         * sparc64-tdep.c (sparc64_init_abi): Hook
9928         sparc_in_function_epilogue_p.
9929
9930 2014-02-10  Gary Benson  <gbenson@redhat.com>
9931
9932         * symfile-debug.c (debug_qf_expand_symtabs_matching):
9933         Rename name_matcher to symbol_matcher.
9934
9935 2014-02-10  Gary Benson  <gbenson@redhat.com>
9936
9937         * symfile-debug.c (debug_qf_expand_symtabs_matching):
9938         Use expand_symtabs_file_matcher_ftype and
9939         expand_symtabs_symbol_matcher_ftype.
9940
9941 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
9942
9943         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
9944         (struct ada_symbol_cache): New.
9945         (ada_free_symbol_cache): Forward declare.
9946         (struct ada_pspace_data): New.
9947         (ada_pspace_data_handle): New static global.
9948         (get_ada_pspace_data, ada_pspace_data_cleanup)
9949         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
9950         (cache_space, cache): Delete, now folded inside struct
9951         ada_pspace_data.
9952         (ada_get_symbol_cache): New function.
9953         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
9954         implementation.
9955         (_initialize_ada_language): Remove initialization of cache_space.
9956         Move call to observer_attach_inferior_exit up, grouping it
9957         with the other observer registrations inside this function.
9958         Rename command to be more general.  Add call to
9959         register_program_space_data_with_cleanup.
9960
9961 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
9962
9963         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
9964         ada_new_objfile_observer.
9965         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
9966         (_initialize_tasks): Update uses of ada_new_objfile_observer
9967         and ada_tasks_normal_stop_observer.
9968
9969 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
9970
9971         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
9972         returned by the 'Length attribute to integer.
9973
9974 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
9975
9976         * ada-lang.c (_initialize_ada_language): Initialize
9977         cache_space obstack.
9978
9979 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
9980
9981         * ada-lang.c (HASH_SIZE): New macro.
9982         (struct cache_entry): New type.
9983         (cache_space, cache): New static globals.
9984         (ada_clear_symbol_cache, find_entry): New functions.
9985         (lookup_cached_symbol, cache_symbol): Implement.
9986         (ada_new_objfile_observer, ada_free_objfile_observer): New.
9987         (_initialize_ada_language): Attach ada_new_objfile_observer
9988         and ada_free_objfile_observer.
9989
9990 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
9991
9992         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
9993         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
9994         struct block * parameter.
9995         (ada_lookup_symbol_list_worker): Constify local variable "block".
9996         Remove cast which is no longer necessary.
9997
9998 2014-02-10  Doug Evans  <xdje42@gmail.com>
9999
10000         Add Guile as an extension language.
10001         * NEWS: Mention Guile scripting.
10002         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10003         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10004         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10005         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10006         (CLIBS): Add GUILE_LIBS.
10007         (install-guile): New rule.
10008         (guile.o): New rule.
10009         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10010         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10011         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10012         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10013         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10014         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10015         (scm-type.o, scm-utils.o, scm-value.o): New rules.
10016         * configure.ac: New option --with-guile.
10017         * configure: Regenerate.
10018         * config.in: Regenerate.
10019         * auto-load.c: Remove #include "python/python.h".  Add #include
10020         "gdb/section-scripts.h".
10021         (source_section_scripts): Handle Guile scripts.
10022         (_initialize_auto_load): Add name of Guile objfile script to
10023         scripts-directory help text.
10024         * breakpoint.c (condition_command): Tweak comment to include Scheme.
10025         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10026         (struct breakpoint): New member scm_bp_object.
10027         * defs.h (enum command_control_type): New value guile_control.
10028         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
10029         "extension.h".
10030         (show_user): Update comment.
10031         (_initialize_cli_cmds): Update help text for "show user".  Update help
10032         text for max-user-call-depth.
10033         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
10034         "extension.h".
10035         (multi_line_command_p): Add guile_control.
10036         (print_command_lines): Handle guile_control.
10037         (execute_control_command, recurse_read_control_structure): Ditto.
10038         (process_next_line): Recognize "guile" commands.
10039         * disasm.c (gdb_disassemble_info): Make non-static.
10040         * disasm.h: #include "dis-asm.h".
10041         (struct gdbarch): Add forward decl.
10042         (gdb_disassemble_info): Declare.
10043         * extension.c: #include "guile/guile.h".
10044         (extension_languages): Add guile.
10045         (get_ext_lang_defn): Handle EXT_LANG_GDB.
10046         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10047         * gdbtypes.c (get_unsigned_type_max): New function.
10048         (get_signed_type_minmax): New function.
10049         * gdbtypes.h (get_unsigned_type_max): Declare.
10050         (get_signed_type_minmax): Declare.
10051         * guile/README: New file.
10052         * guile/guile-internal.h: New file.
10053         * guile/guile.c: New file.
10054         * guile/guile.h: New file.
10055         * guile/scm-arch.c: New file.
10056         * guile/scm-auto-load.c: New file.
10057         * guile/scm-block.c: New file.
10058         * guile/scm-breakpoint.c: New file.
10059         * guile/scm-disasm.c: New file.
10060         * guile/scm-exception.c: New file.
10061         * guile/scm-frame.c: New file.
10062         * guile/scm-gsmob.c: New file.
10063         * guile/scm-iterator.c: New file.
10064         * guile/scm-lazy-string.c: New file.
10065         * guile/scm-math.c: New file.
10066         * guile/scm-objfile.c: New file.
10067         * guile/scm-ports.c: New file.
10068         * guile/scm-pretty-print.c: New file.
10069         * guile/scm-safe-call.c: New file.
10070         * guile/scm-string.c: New file.
10071         * guile/scm-symbol.c: New file.
10072         * guile/scm-symtab.c: New file.
10073         * guile/scm-type.c: New file.
10074         * guile/scm-utils.c: New file.
10075         * guile/scm-value.c: New file.
10076         * guile/lib/gdb.scm: New file.
10077         * guile/lib/gdb/boot.scm: New file.
10078         * guile/lib/gdb/experimental.scm: New file.
10079         * guile/lib/gdb/init.scm: New file.
10080         * guile/lib/gdb/iterator.scm: New file.
10081         * guile/lib/gdb/printing.scm: New file.
10082         * guile/lib/gdb/types.scm: New file.
10083         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10084         (VPATH): Add $(GUILE_SRCDIR).
10085         (GUILE_DIR): New variable.
10086         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10087         (all): Add stamp-guile dependency.
10088         (stamp-guile): New rule.
10089         (clean-guile, install-guile, uninstall-guile): New rules.
10090         (install-only): Add install-guile dependency.
10091         (uninstall): Add uninstall-guile dependency.
10092         (clean): Add clean-guile dependency.
10093
10094 2014-02-09  Doug Evans  <xdje42@gmail.com>
10095
10096         Revert this patch (which I approved, mea culpa).
10097
10098         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
10099
10100         * Makefile.in (all-lib): Remove.
10101         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10102
10103 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
10104
10105         Fix Python stack corruption.
10106         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10107         gdb_py_longest.
10108
10109 2014-02-08  Mark Kettenis  <kettenis@gnu.org>
10110
10111         * Makefile.in (all-lib): Remove.
10112         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10113
10114 2014-02-07  Doug Evans  <dje@google.com>
10115
10116         * extension-priv.h (extension_language_script_ops): Add comment.
10117         (extension_language_ops): Add comment.
10118         (active_ext_lang_state): Fix typo in comment.
10119
10120 2014-02-07  Pedro Alves  <palves@redhat.com>
10121
10122         PR breakpoints/16292
10123         * infrun.c (handle_signal_stop) <signal arrives while stepping
10124         over a breakpoint>: Switch back to the stepping thread.
10125
10126 2014-02-07  Yao Qi  <yao@codesourcery.com>
10127
10128         * target.c (target_xfer_partial): Return zero if LEN is zero.
10129
10130 2014-02-07  Yao Qi  <yao@codesourcery.com>
10131
10132         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10133         (ld_so_xfer_auxv): Likewise.
10134         * bfd-target.c (target_bfd_xfer_partial): Likewise.
10135         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10136         * corelow.c (core_xfer_partial): Likewise.
10137         * ctf.c (ctf_xfer_partial): Likewise.
10138         * darwin-nat.c (darwin_read_dyld_info): Likewise.
10139         (darwin_xfer_partial): Likewise.
10140         * exec.c (exec_xfer_partial): Likewise.
10141         * gnu-nat.c (gnu_xfer_partial): Likewise.
10142         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10143         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10144         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10145         * linux-nat.c (linux_xfer_siginfo): Likewise.
10146         (linux_proc_xfer_spu): Likewise.
10147         * procfs.c (procfs_xfer_partial): Likewise.
10148         * record-full.c (record_full_xfer_partial): Likewise.
10149         (record_full_core_xfer_partial): Likewise.
10150         * remote-sim.c (gdbsim_xfer_partial): Likewise.
10151         * remote.c (remote_write_qxfer): Likewise.
10152         (remote_write_qxfer, remote_read_qxfer): Likewise.
10153         (remote_xfer_partial): Likewise.
10154         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10155         (rs6000_xfer_shared_libraries): Likewise.
10156         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10157         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10158         (spu_xfer_partial): Likewise.
10159         * target.c (memory_xfer_partial_1): Likewise.
10160         * tracepoint.c (tfile_xfer_partial): Likewise.
10161         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10162         (windows_xfer_partial): Likewise.
10163
10164 2014-02-07  Yao Qi  <yao@codesourcery.com>
10165
10166         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
10167         comments.
10168         (core_xfer_shared_libraries_aix): Likewise.
10169         * gdbarch.c, gdbarch.h: Regenerated.
10170         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10171         ULONGEST.  Change 'len_avail' type to ULONGEST.
10172         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10173         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10174         declaration.
10175         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10176
10177 2014-02-07  Yao Qi  <yao@codesourcery.com>
10178
10179         * corefile.c (memory_error): Get 'exception' from ERR and pass
10180         'exception' to throw_error.
10181
10182 2014-02-06  Doug Evans  <xdje42@gmail.com>
10183
10184         * configure.ac (libpython checking): Remove all but python.o from
10185         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
10186         * configure: Regenerate.
10187
10188         * Makefile.in (SFILES): Add extension.c.
10189         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10190         (COMMON_OBS): Add extension.o.
10191         * extension.h: New file.
10192         * extension-priv.h: New file.
10193         * extension.c: New file.
10194
10195         * python/python-internal.h: #include "extension.h".
10196         (gdbpy_auto_load_enabled): Declare.
10197         (gdbpy_apply_val_pretty_printer): Declare.
10198         (gdbpy_apply_frame_filter): Declare.
10199         (gdbpy_preserve_values): Declare.
10200         (gdbpy_breakpoint_cond_says_stop): Declare.
10201         (gdbpy_breakpoint_has_cond): Declare.
10202         (void source_python_script_for_objfile): Delete.
10203         * python/python.c: #include "extension-priv.h".
10204         Delete inclusion of "observer.h".
10205         (extension_language_python): Moved here and renamed from
10206         script_language_python in py-auto-load.c.
10207         Redefined to be of type extension_language_defn.
10208         (python_extension_script_ops): New global.
10209         (python_extension_ops): New global.
10210         (struct python_env): New member previous_active.
10211         (restore_python_env): Call restore_active_ext_lang.
10212         (ensure_python_env): Call set_active_ext_lang.
10213         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10214         New arg extlang.
10215         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10216         New arg extlang.
10217         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10218         New arg extlang.
10219         (gdbpy_eval_from_control_command): Renamed from
10220         eval_python_from_control_command, made static.  New arg extlang.
10221         (gdbpy_source_script) Renamed from source_python_script, made static.
10222         New arg extlang.
10223         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
10224         result to int.  New arg extlang.
10225         (gdbpy_source_objfile_script): Renamed from
10226         source_python_script_for_objfile, made static.  New arg extlang.
10227         (gdbpy_start_type_printers): Renamed from start_type_printers, made
10228         static.  New args extlang, extlang_printers.  Change result type to
10229         "void".
10230         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10231         static.  New arg extlang.  Rename arg printers to extlang_printers
10232         and change type to ext_lang_type_printers *.
10233         (gdbpy_free_type_printers): Renamed from free_type_printers, made
10234         static.  Replace argument arg with extlang, extlang_printers.
10235         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10236         (!HAVE_PYTHON, source_python_script): Delete.
10237         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10238         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10239         (!HAVE_PYTHON, start_type_printers): Delete.
10240         (!HAVE_PYTHON, apply_type_printers): Delete.
10241         (!HAVE_PYTHON, free_type_printers): Delete.
10242         (_initialize_python): Delete call to observer_attach_before_prompt.
10243         (finalize_python): Set/restore active extension language.
10244         (gdbpy_finish_initialization) Renamed from
10245         finish_python_initialization, made static.  New arg extlang.
10246         (gdbpy_initialized): New function.
10247         * python/python.h: #include "extension.h".  Delete #include
10248         "value.h", "mi/mi-cmds.h".
10249         (extension_language_python): Declare.
10250         (GDBPY_AUTO_FILE_NAME): Delete.
10251         (enum py_bt_status): Moved to extension.h and renamed to
10252         ext_lang_bt_status.
10253         (enum frame_filter_flags): Moved to extension.h.
10254         (enum py_frame_args): Moved to extension.h and renamed to
10255         ext_lang_frame_args.
10256         (finish_python_initialization): Delete.
10257         (eval_python_from_control_command): Delete.
10258         (source_python_script): Delete.
10259         (apply_val_pretty_printer): Delete.
10260         (apply_frame_filter): Delete.
10261         (preserve_python_values): Delete.
10262         (gdbpy_script_language_defn): Delete.
10263         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10264         (start_type_printers, apply_type_printers, free_type_printers): Delete.
10265
10266         * auto-load.c: #include "extension.h".
10267         (GDB_AUTO_FILE_NAME): Delete.
10268         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
10269         (script_language_gdb): Delete, moved to extension.c and renamed to
10270         extension_language_gdb.
10271         (source_gdb_script_for_objfile): Delete.
10272         (auto_load_pspace_info): New member unsupported_script_warning_printed.
10273         (loaded_script): Change type of language member to
10274         struct extension_language_defn *.
10275         (init_loaded_scripts_info): Initialize
10276         unsupported_script_warning_printed.
10277         (maybe_add_script): Make static.  Change type of language arg to
10278         struct extension_language_defn *.
10279         (clear_section_scripts): Reset unsupported_script_warning_printed.
10280         (auto_load_objfile_script_1): Rewrite to use extension language API.
10281         (auto_load_objfile_script): Make public.  Remove support-compiled-in
10282         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10283         (source_section_scripts): Rewrite to use extension language API.
10284         (load_auto_scripts_for_objfile): Rewrite to use
10285         auto_load_scripts_for_objfile.
10286         (collect_matching_scripts_data): Change type of language member to
10287         struct extension_language_defn *.
10288         (auto_load_info_scripts): Change type of language arg to
10289         struct extension_language_defn *.
10290         (unsupported_script_warning_print): New function.
10291         (script_not_found_warning_print): Make static.
10292         (_initialize_auto_load): Rewrite construction of scripts-directory
10293         help.
10294         * auto-load.h (struct objfile): Add forward decl.
10295         (struct script_language): Delete.
10296         (struct auto_load_pspace_info): Add forward decl.
10297         (struct extension_language_defn): Add forward decl.
10298         (maybe_add_script): Delete.
10299         (auto_load_objfile_script): Declare.
10300         (script_not_found_warning_print): Delete.
10301         (auto_load_info_scripts): Update prototype.
10302         (auto_load_gdb_scripts_enabled): Declare.
10303         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10304         auto_load_python_scripts_enabled and made public.
10305         (script_language_python): Delete, moved to python.c.
10306         (gdbpy_script_language_defn): Delete.
10307         (info_auto_load_python_scripts): Update to use
10308         extension_language_python.
10309
10310         * breakpoint.c (condition_command): Replace call to
10311         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10312         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10313         with call to breakpoint_ext_lang_cond_says_stop.
10314         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10315         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
10316         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10317         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10318         New arg slang.
10319         (local_setattro): Print name of extension language with existing
10320         stop condition.
10321
10322         * valprint.c (val_print, value_print): Update to call
10323         apply_ext_lang_val_pretty_printer.
10324         * cp-valprint.c (cp_print_value): Update call to
10325         apply_ext_lang_val_pretty_printer.
10326         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10327         (gdbpy_apply_val_pretty_printer): Renamed from
10328         apply_val_pretty_printer.  New arg extlang.
10329         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10330
10331         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10332         extension language API.
10333         * cli/cli-script.c (execute_control_command): Update to call
10334         eval_ext_lang_from_control_command.
10335
10336         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10337         enum ext_lang_bt_status values.  Update call to
10338         apply_ext_lang_frame_filter.
10339         (mi_cmd_stack_list_locals): Ditto.
10340         (mi_cmd_stack_list_args): Ditto.
10341         (mi_cmd_stack_list_variables): Ditto.
10342         * mi/mi-main.c: Delete #include "python/python-internal.h".
10343         Add #include "extension.h".
10344         (mi_cmd_list_features): Replace reference to python internal variable
10345         gdb_python_initialized with call to ext_lang_initialized_p.
10346
10347         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10348         Update to use enum ext_lang_frame_args.  Update to call
10349         apply_ext_lang_frame_filter.
10350         * python/py-framefilter.c (extract_sym): Update to use enum
10351         ext_lang_bt_status.
10352         (extract_value, py_print_type, py_print_value): Ditto.
10353         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10354         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10355         (py_print_frame): Ditto.
10356         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10357         New arg extlang.  Update to use enum ext_lang_bt_status.
10358
10359         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10360         finish_python_initialization.  Replace with call to
10361         finish_ext_lang_initialization.
10362
10363         * typeprint.c (do_free_global_table): Update to call
10364         free_ext_lang_type_printers.
10365         (create_global_typedef_table): Update to call
10366         start_ext_lang_type_printers.
10367         (find_global_typedef): Update to call apply_ext_lang_type_printers.
10368         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10369         (type_print_options): Change type of global_printers from "void *"
10370         to "struct ext_lang_type_printers *".
10371
10372         * value.c (preserve_values): Update to call preserve_ext_lang_values.
10373         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10374         (gdbpy_preserve_values): Renamed from preserve_python_values.
10375         New arg extlang.
10376         (!HAVE_PYTHON, preserve_python_values): Delete.
10377
10378         * utils.c (quit_flag): Delete, moved to extension.c.
10379         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10380         extension.c.
10381
10382         * eval.c: Delete #include "python/python.h".
10383         * main.c: Delete #include "python/python.h".
10384
10385         * defs.h: Update comment.
10386
10387 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
10388
10389         GDB 7.7 released.
10390
10391 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
10392
10393         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10394         defined.
10395
10396 2014-02-05  Yao Qi  <yao@codesourcery.com>
10397
10398         * remote.c (remote_pass_signals): Remove local 'buf' and use
10399         rs->buf.
10400         (remote_program_signals): Likewise.
10401
10402 2014-02-05  Yao Qi  <yao@codesourcery.com>
10403
10404         * ctf.c: Include "inferior.h" and "gdbthread.h".
10405         (CTF_PID): A new macro.
10406         (ctf_open): Call inferior_appeared and add_thread_silent.
10407         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10408         (ctf_thread_alive): New function.
10409         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10410
10411 2014-02-05  Yao Qi  <yao@codesourcery.com>
10412
10413         Revert this patch:
10414
10415         2013-05-24  Yao Qi  <yao@codesourcery.com>
10416
10417         * tracepoint.c (TFILE_PID): Remove.
10418         (tfile_open): Don't add thread and inferior.
10419         (tfile_close): Don't set 'inferior_ptid'.  Don't call
10420         exit_inferior_silent.
10421         (tfile_thread_alive): Remove.
10422         (init_tfile_ops): Don't set field 'to_thread_alive' of
10423         tfile_ops.
10424
10425 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
10426
10427         * remote.c (remote_start_remote): Call remote_check_symbols even
10428         if only symbol-file (not file) has been given.
10429
10430 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10431
10432         * gdbarch.sh (skip_entrypoint): New callback.
10433         * gdbarch.c, gdbarch.h: Regenerate.
10434         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10435         * infrun.c (fill_in_stop_func): Likewise.
10436         * ppc-linux-tdep.c: Include "elf/ppc64.h".
10437         (ppc_elfv2_elf_make_msymbol_special): New function.
10438         (ppc_elfv2_skip_entrypoint): Likewise.
10439         (ppc_linux_init_abi): Install them for ELFv2.
10440
10441 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10442
10443         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10444         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10445         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10446         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
10447         structures returned in GPRs.
10448
10449 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10450
10451         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10452         offset to the stack parameter list for the ELFv2 ABI.
10453
10454 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10455
10456         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10457         set_gdbarch_convert_from_func_ptr_addr and
10458         set_gdbarch_elf_make_msymbol_special for ELFv1.
10459         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10460         function descriptors on ELFv1.
10461         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
10462         set up r12 at function entry.
10463
10464 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10465
10466         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10467         (struct gdbarch_tdep): New member elf_abi.
10468
10469         * rs6000-tdep.c: Include "elf/ppc64.h".
10470         (rs6000_gdbarch_init): Detect ELF ABI version.
10471
10472 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10473
10474         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10475         within a register pair holding a DFP 128-bit value on little-endian.
10476         (ppc64_sysv_abi_return_value_base): Likewise.
10477         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10478         (dfp_pseudo_register_write): Likewise.
10479
10480 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10481
10482         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10483         offset on little-endian when passing _Decimal32.
10484         (ppc64_sysv_abi_return_value_base): Likewise for return values.
10485
10486 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10487
10488         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10489         of the overlapped FP register within the VSX register on little-
10490         endian platforms.
10491         (efpr_pseudo_register_write): Likewise.
10492
10493 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10494
10495         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10496         offset on little-endian when passing small structures.
10497
10498 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10499
10500         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10501         (struct ppc64_sysv_argpos): New data structure.
10502         (ppc64_sysv_abi_push_float): Remove.
10503         (ppc64_sysv_abi_push_val): New function.
10504         (ppc64_sysv_abi_push_integer): Likewise.
10505         (ppc64_sysv_abi_push_freg): Likewise.
10506         (ppc64_sysv_abi_push_vreg): Likewise.
10507         (ppc64_sysv_abi_push_param): Likewise.
10508         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10509         (ppc64_sysv_abi_return_value_base): New function.
10510         (ppc64_sysv_abi_return_value): Refactor to use it.
10511
10512 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10513
10514         * NEWS: Document new target powerpc64le-*-linux*.
10515
10516 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
10517
10518         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10519         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10520         core dumps.
10521         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10522         register set used in ELF core dumps.  Add floating-point register set.
10523
10524 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
10525
10526         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
10527         dwarf2_to_gdb[] table using symbolic constants.  Adjust
10528         penultimate entry from number representing the PC register
10529         to symbolic constant representing the MDR register.  Add
10530         constant for the PC register to the end of the table.
10531
10532 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
10533
10534         * bsd-kvm.c: Include <sys/param.h>
10535
10536 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
10537
10538         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10539
10540 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
10541
10542         * ada-lang.h (clear_ada_sym_cache): Delete.
10543
10544 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
10545
10546         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10547
10548 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
10549
10550         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10551           the sigreturn register save area only if the syscall is
10552           sigreturn.
10553
10554 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
10555
10556         * valops.c (value_slice): Minor reformatting.
10557
10558 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
10559
10560         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10561
10562 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
10563
10564         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10565         New static globals.
10566         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10567         (ada_ignore_descriptive_types_p): New static global.
10568         (find_parallel_type_by_descriptive_type): Return immediately
10569         if ada_ignore_descriptive_types_p is set.
10570         (_initialize_ada_language): Register new commands "maintenance
10571         set ada", "maintenance show ada", "maintenance set ada
10572         ignore-descriptive-types" and "maintenance show ada
10573         ignore-descriptive-types".
10574         * NEWS: Add entry for new "maint ada set/show
10575         ignore-descriptive-types" commands.
10576
10577 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
10578
10579         * record-btrace.c (record_btrace_close): Call btrace_teardown
10580         for all threads.
10581
10582 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
10583
10584         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10585         "ui-out.h".
10586
10587 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
10588
10589         * ada-typeprint (type_is_full_subrange_of_target_type):
10590         New function.
10591         (print_range): Add parameter bounds_prefered_p.  If not set,
10592         try printing range types using the name of their base type.
10593         (print_range_type): Add parameter bounds_prefered_p.
10594         Use it in call to print_range.
10595         (print_array_type, ada_print_type): Update calls to print_range
10596         and print_range_type.
10597
10598 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
10599
10600         * ada-typeprint.c (print_array_type, print_choices, print_range)
10601         (print_range_bound, print_dynamic_range_bound, print_range_type):
10602         Remove declaration.
10603
10604 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
10605
10606         * ada-typeprint.c (print_range): Add missing empty line
10607         after local declaration.
10608
10609 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
10610
10611         * ada-valprint.c (print_optional_low_bound): Get index_type's
10612         target type for as long as it is a TYPE_CODE_RANGE.
10613
10614 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
10615
10616         * procfs.c (procfs_make_note_section): Remove assertion and
10617         associated comment.
10618
10619 2014-01-24  Yao Qi  <yao@codesourcery.com>
10620
10621         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10622         * corelow.c (get_core_siginfo): Likewise.
10623
10624 2014-01-24  Yao Qi  <yao@codesourcery.com>
10625
10626         * remote.c (remote_write_bytes_aux): Change type of 'len' to
10627         ULONGEST.  Don't check 'len' is negative.
10628         (remote_write_bytes):  Change type of 'len' to ULONGEST.
10629
10630 2014-01-23  Tom Tromey  <tromey@redhat.com>
10631
10632         PR python/16485:
10633         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10634         Handle exception from frame.block.
10635         (FrameVars.fetch_frame_locals): Likewise.
10636
10637 2014-01-23  Tom Tromey  <tromey@redhat.com>
10638
10639         PR python/16487:
10640         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10641         on a NULL pointer.  Move "goto error" to correct place.
10642
10643 2014-01-23  Tom Tromey  <tromey@redhat.com>
10644
10645         PR python/16491:
10646         * python/py-framefilter.c (apply_frame_filter): Call
10647         ensure_python_env after computing gdbarch.
10648
10649 2014-01-23  Yao Qi  <yao@codesourcery.com>
10650
10651         * target.c (raw_memory_xfer_partial): Change argument type
10652         from void * to gdb_byte *.
10653         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10654
10655 2014-01-22  Doug Evans  <dje@google.com>
10656
10657         New gdbserver option --debug-format=timestamp.
10658         * NEWS: Mention it.
10659
10660 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
10661
10662         * syscalls/s390x-linux.xml: New file.
10663         * syscalls/s390-linux.xml: New file.
10664         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10665         (XML_SYSCALL_FILENAME_S390X): Likewise.
10666         (op_svc): New enum value for SVC opcode.
10667         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10668         (s390_linux_get_syscall_number): New function.
10669         (s390_gdbarch_init): Register '*get_syscall_number' and the
10670         syscall xml file name.
10671         * data-directory/Makefile.in (SYSCALLS_FILES): Add
10672         "s390-linux.xml" and "s390x-linux.xml".
10673         * NEWS: Announce new feature.
10674
10675 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
10676
10677         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10678
10679 2014-01-22  Pedro Alves  <palves@redhat.com>
10680
10681         * xtensa-config.c: Include defs.h.
10682
10683 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
10684
10685         * common/common-utils.h: Add "ARI:" comment beside __func__
10686         reference.
10687
10688 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
10689
10690         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10691         documentation a bit.
10692
10693 2014-01-21  Roland McGrath  <mcgrathr@google.com>
10694
10695         * configure.ac: Call AM_PROG_INSTALL_STRIP.
10696         * configure: Regenerate.
10697         * aclocal.m4: Regenerate.
10698         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10699         New substituted variables.
10700         (install-strip): New target.
10701         (INSTALL_SCRIPT): New substituted variable.
10702         (FLAGS_TO_PASS): Add it.
10703         (install-only): Use $(INSTALL_SCRIPT) rather than
10704         $(INSTALL_PROGRAM) for gcore.
10705
10706 2014-01-20  Tom Tromey  <tromey@redhat.com>
10707
10708         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10709         together.
10710
10711 2014-01-20  Tom Tromey  <tromey@redhat.com>
10712
10713         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10714         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10715         (deprecated_cmd_warning, complete_on_cmdlist): Update.
10716         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10717         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10718         (struct cmd_list_element) <flags>: Remove.
10719         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10720         doc_allocated>: New fields.
10721         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10722         bitfields.
10723         * maint.c (maintenance_do_deprecate): Update.
10724         * top.c (execute_command): Update.
10725
10726 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
10727
10728         * xtensa-linux-nat.c: Include asm/ptrace.h.
10729
10730 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
10731
10732         * Makefile.in (SFILES): Add d-support.c.
10733         (COMMON_OBS): Add d-support.o.
10734         * d-lang.h (d_parse_symbol): Add comment, now defined in
10735         d-support.c.
10736         * d-lang.c (parse_call_convention)
10737         (parse_attributes, parse_function_types)
10738         (parse_function_args, parse_type, parse_identifier)
10739         (call_convention_p, d_parse_symbol): Move functions to ...
10740         * d-support.c: ... New file.
10741
10742 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
10743
10744         * d-lang.h (d_parse_symbol): Add declaration.
10745         * d-lang.c (extract_identifiers)
10746         (extract_type_info): Remove functions.
10747         (parse_call_convention, parse_attributes)
10748         (parse_function_types, parse_function_args)
10749         (parse_type, parse_identifier, call_convention_p)
10750         (d_parse_symbol): New functions.
10751         (d_demangle): Use d_parse_symbol to demangle D symbols.
10752
10753 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
10754
10755         * d-lang.h (struct builtin_d_type): New data type.
10756         (builtin_d_type): Add declaration.
10757         * d-lang.c (d_language_arch_info, build_d_types)
10758         (builtin_d_type): New functions.
10759         (enum d_primitive_types): New data type.
10760         (d_language_defn): Change c_language_arch_info to
10761         d_language_arch_info.
10762         (d_type_data): New static variable.
10763         (_initialize_d_language): Initialize d_type_data.
10764
10765 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
10766
10767         * d-lang.h (d_main_name): Add declaration.
10768         * d-lang.c (d_main_name): New function.
10769         * symtab.c (find_main_name): Add call to d_main_name.
10770
10771 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
10772
10773         * d-lang.c (d_language_defn): Change macro_expansion_c to
10774         macro_expansion_no.
10775
10776 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
10777
10778         * MAINTAINERS: Add myself as a write-after-approval maintainer.
10779
10780 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
10781
10782         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
10783         gdb_exception" declaration.
10784         * remote.c (getpkt_or_notif_sane): Likewise.
10785
10786 2014-01-17  Doug Evans  <dje@google.com>
10787
10788         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
10789         function, contents of dirnames_to_char_ptr_vec_append moved here.
10790         (delim_string_to_char_ptr_vec): New function.
10791         (dirnames_to_char_ptr_vec_append): Rewrite.
10792         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
10793
10794 2014-01-17  Doug Evans  <dje@google.com>
10795
10796         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
10797         and moved here ...
10798         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
10799         #include "common-utils.h".
10800         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
10801         * common/vec.h (VEC_ASSERT_PASS): Update.
10802         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
10803         (MACH_CHECK_ERROR): Update.
10804
10805 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
10806
10807         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
10808         comments.
10809         * gdbarch.h: Regenerate.
10810
10811 2014-01-16  Tom Tromey  <tromey@redhat.com>
10812
10813         * value.c (struct value) <regnum>: Move earlier.
10814
10815 2014-01-16  Tom Tromey  <tromey@redhat.com>
10816
10817         * remote.c (extended_remote_create_inferior): Rename from
10818         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
10819         old implementation.
10820
10821 2014-01-16  Pedro Alves  <palves@redhat.com>
10822
10823         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
10824         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
10825         the backchain.
10826
10827 2014-01-16  Doug Evans  <dje@google.com>
10828
10829         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
10830
10831 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
10832
10833         * btrace.h (btrace_thread_flag): New.
10834         (struct btrace_thread_info) <flags>: New.
10835         * record-btrace.c (record_btrace_resume_thread)
10836         (record_btrace_find_thread_to_move, btrace_step_no_history)
10837         (btrace_step_stopped, record_btrace_start_replaying)
10838         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
10839         (record_btrace_find_resume_thread): New.
10840         (record_btrace_resume, record_btrace_wait): Extend.
10841         (record_btrace_can_execute_reverse): New.
10842         (record_btrace_open): Fail in non-stop mode.
10843         (record_btrace_set_replay): Split into this, ...
10844         (record_btrace_stop_replaying): ... this, ...
10845         (record_btrace_clear_histories): ... and this.
10846         (init_record_btrace_ops): Init to_can_execute_reverse.
10847         * NEWS: Announce it.
10848
10849 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
10850
10851         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
10852         (forward_target_decr_pc_after_break)
10853         (target_decr_pc_after_break): New.
10854         * target.c (forward_target_decr_pc_after_break)
10855         (target_decr_pc_after_break): New.
10856         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
10857         instead of gdbarch_decr_pc_after_break.
10858         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10859         instead of gdbarch_decr_pc_after_break.
10860         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
10861         instead of gdbarch_decr_pc_after_break.
10862         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
10863         instead of gdbarch_decr_pc_after_break.
10864         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
10865         instead of gdbarch_decr_pc_after_break.
10866         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
10867         instead of gdbarch_decr_pc_after_break.
10868
10869 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
10870
10871         * btrace.c: Include regcache.h.
10872         (btrace_add_pc): New.
10873         (btrace_enable): Call btrace_add_pc.
10874         (btrace_is_empty): New.
10875         * btrace.h (btrace_is_empty): New.
10876         * record-btrace.c (require_btrace, record_btrace_info): Call
10877         btrace_is_empty.
10878
10879 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
10880
10881         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
10882         Support delta reads.
10883         (linux_disable_btrace): Change return type.
10884         * common/linux-btrace.h (linux_read_btrace): Change parameters
10885         and return type to allow error reporting.  Update users.
10886         (linux_disable_btrace): Change return type.  Update users.
10887         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
10888         New.
10889         (btrace_error): New.
10890         (btrace_block) <begin>: Comment on BEGIN == 0.
10891         * btrace.c (btrace_compute_ftrace): Start from the end of
10892         the current trace.
10893         (btrace_stitch_trace, btrace_clear_history): New.
10894         (btrace_fetch): Read delta trace, return if replaying.
10895         (btrace_clear): Move clear history code to btrace_clear_history.
10896         (parse_xml_btrace): Throw an error if parsing failed.
10897         * target.h (struct target_ops) <to_read_btrace>: Change parameters
10898         and return type to allow error reporting.
10899         (target_read_btrace): Change parameters and return type to allow
10900         error reporting.
10901         * target.c (target_read_btrace): Update.
10902         * remote.c (remote_read_btrace): Support delta reads.  Pass
10903         errors on.
10904         * NEWS: Announce it.
10905
10906 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
10907
10908         * record.h (record_btrace_frame_unwind)
10909         (record_btrace_tailcall_frame_unwind): New declarations.
10910         * dwarf2-frame: Include record.h
10911         (dwarf2_frame_cfa): Throw an error for btrace frames.
10912         * record-btrace.c: Include hashtab.h.
10913         (btrace_get_bfun_name): New.
10914         (btrace_call_history): Call btrace_get_bfun_name.
10915         (struct btrace_frame_cache): New.
10916         (bfcache): New.
10917         (bfcache_hash, bfcache_eq, bfcache_new): New.
10918         (btrace_get_frame_function): New.
10919         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
10920         (record_btrace_frame_this_id): Compute own id.
10921         (record_btrace_frame_prev_register): Provide PC, throw_error
10922         for all other registers.
10923         (record_btrace_frame_sniffer): Detect btrace frames.
10924         (record_btrace_tailcall_frame_sniffer): New.
10925         (record_btrace_frame_dealloc_cache): New.
10926         (record_btrace_frame_unwind): Add new functions.
10927         (record_btrace_tailcall_frame_unwind): New.
10928         (_initialize_record_btrace): Allocate cache.
10929         * btrace.c (btrace_clear): Call reinit_frame_cache.
10930         * NEWS: Announce it.
10931
10932 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
10933
10934         * record-btrace.c (record_btrace_set_replay)
10935         (record_btrace_goto_begin, record_btrace_goto_end)
10936         (record_btrace_goto): New.
10937         (init_record_btrace_ops): Initialize them.
10938         * NEWS: Announce it.
10939
10940 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
10941
10942         * record-btrace.c (record_btrace_find_new_threads)
10943         (record_btrace_thread_alive): New.
10944         (init_record_btrace_ops): Initialize to_find_new_threads and
10945         to_thread_alive.
10946
10947 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
10948
10949         * record-btrace.c (record_btrace_resume): New.
10950         (record_btrace_wait): New.
10951         (init_record_btrace_ops): Initialize to_wait and to_resume.
10952
10953 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
10954
10955         * record-btrace.c (record_btrace_xfer_partial)
10956         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
10957         (record_btrace_allow_memory_access): New.
10958         (init_record_btrace_ops): Initialize new methods.
10959         * target.c (raw_memory_xfer_partial): Bail out if target reports
10960         that this memory is not available.
10961
10962 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
10963
10964         * target.h (target_ops) <to_insert_breakpoint>
10965         <to_remove_breakpoint>: Add target_ops parameter.
10966         (forward_target_insert_breakpoint): New.
10967         (forward_target_remove_breakpoint): New.
10968         (memory_remove_breakpoint, memory_insert_breakpoint):
10969         Add target_ops parameter.
10970         * target.c (target_insert_breakpoint): Split into this and ...
10971         (forward_target_insert_breakpoint): ... this.
10972         (target_remove_breakpoint): Split into this and ...
10973         (forward_target_remove_breakpoint): ... this.
10974         (debug_to_insert_breakpoint): Add target_ops parameter.
10975         Call forward_target_insert_breakpoint.
10976         (debug_to_remove_breakpoint): Add target_ops parameter.
10977         Call forward_target_remove_breakpoint.
10978         (update_current_target): Do not inherit or default to_insert_breakpoint
10979         and to_remove_breakpoint.
10980         * corelow.c (ignore): Add target_ops parameter.
10981         * exec.c (ignore): Add target_ops parameter.
10982         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
10983         Add target_ops parameter.
10984         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
10985         Add target_ops parameter.
10986         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
10987         Add target_ops parameter.
10988         * record-full.c (record_full_beneath_to_insert_breakpoint)
10989         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
10990         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
10991         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
10992         (record_full_core_remove_breakpoint): Add target_ops parameter.
10993         Update users.
10994         (record_full_beneath_to_insert_breakpoint_ops)
10995         (record_full_beneath_to_remove_breakpoint_ops)
10996         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
10997         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
10998         tmp_to_remove_breakpoint_ops,
10999         record_full_beneath_to_insert_breakpoint_ops, and
11000         record_full_beneath_to_remove_breakpoint_ops.
11001         * remote-m32r-sdi.c (m32r_insert_breakpoint)
11002         (m32r_remove_breakpoint): Add target_ops parameter.
11003         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11004         Add target_ops parameter.
11005         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11006         Add target_ops parameter.
11007
11008 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11009             Markus Metzger  <markus.t.metzger@intel.com>
11010
11011         * record-btrace.c: Include frame-unwind.h.
11012         (record_btrace_frame_unwind_stop_reason)
11013         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11014         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11015         New.
11016         (init_record_btrace_ops): Install it.
11017
11018 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11019
11020         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11021         get_prev_frame_1.
11022
11023 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11024
11025         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11026         earlier.
11027
11028 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11029
11030         * frame-unwind.c: Include target.h.
11031         (frame_unwind_try_unwinder): New function with code from ...
11032         (frame_unwind_find_by_frame): ... here.  New variable
11033         unwinder_from_target, call also target_get_unwinder)
11034         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11035         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11036         * target.h (struct target_ops): New fields to_get_unwinder and
11037         to_get_tailcall_unwinder.
11038         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11039
11040 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11041
11042         * record-btrace.c (record_btrace_fetch_registers)
11043         (record_btrace_store_registers)
11044         (record_btrace_to_prepare_to_store): New.
11045         (init_record_btrace_ops): Add the above.
11046
11047 2014-01-16  Tom Tromey  <tromey@redhat.com>
11048
11049         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11050         * target.h (struct target_ops) <to_prepare_to_store>: Add
11051         argument.
11052         (target_prepare_to_store): Add argument.
11053         * target.c (debug_to_prepare_to_store): Add argument.
11054         (update_current_target): Update.
11055         * remote.c (remote_prepare_to_store): Add 'self' argument.
11056         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11057         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11058         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11059         * record-full.c (record_full_core_prepare_to_store): Add 'self'
11060         argument.
11061         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11062         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11063         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11064         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11065         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11066
11067 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11068
11069         * btrace.h (replay) <replay>: New.
11070         (btrace_is_replaying): New.
11071         * btrace.c (btrace_clear): Free replay iterator.
11072         (btrace_is_replaying): New.
11073         * record-btrace.c (record_btrace_is_replaying): New.
11074         (record_btrace_info): Print insn number if replaying.
11075         (record_btrace_insn_history): Start at replay position.
11076         (record_btrace_call_history): Start at replay position.
11077         (init_record_btrace_ops): Init to_record_is_replaying.
11078
11079 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11080
11081         * record-btrace.c (record_btrace_insn_history_range): Include
11082         end.
11083         (record_btrace_insn_history_from): Adjust range.
11084         (record_btrace_call_history_range): Include
11085         end.
11086         (record_btrace_call_history_from): Adjust range.
11087         * NEWS: Announce changes.
11088
11089 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11090
11091         * record.h (enum record_print_flag)
11092         <record_print_indent_calls>: New.
11093         * record.c (get_call_history_modifiers): Recognize /c modifier.
11094         (_initialize_record): Document /c modifier.
11095         * record-btrace.c (btrace_call_history): Add btinfo parameter.
11096         Reorder fields.  Optionally indent the function name.  Update
11097         all users.
11098         * NEWS: Announce changes.
11099
11100 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11101
11102         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11103
11104 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11105
11106         * btrace.c (ftrace_new_function): Start counting at one.
11107         * record-btrace.c (record_btrace_info): Adjust number of calls
11108         and insns.
11109         * NEWS: Announce it.
11110
11111 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11112
11113         * record-btrace.c (btrace_call_history_insn_range): Print
11114         insn range as [begin, end].
11115
11116 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11117
11118         * btrace.h (struct btrace_func_link): New.
11119         (enum btrace_function_flag): New.
11120         (struct btrace_inst): Rename to ...
11121         (struct btrace_insn): ...this. Update all users.
11122         (struct btrace_func) <ibegin, iend>: Remove.
11123         (struct btrace_func_link): New.
11124         (struct btrace_func): Rename to ...
11125         (struct btrace_function): ...this. Update all users.
11126         (struct btrace_function) <segment, flow, up, insn, insn_offset)
11127         (number, level, flags>: New.
11128         (struct btrace_insn_iterator): Rename to ...
11129         (struct btrace_insn_history): ...this.
11130         Update all users.
11131         (struct btrace_insn_iterator, btrace_call_iterator): New.
11132         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11133         (struct btrace_target_info) <begin, end, level>
11134         <insn_history, call_history>: New.
11135         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11136         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11137         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11138         (btrace_call_number, btrace_call_begin, btrace_call_end)
11139         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11140         (btrace_find_function_by_number, btrace_set_insn_history)
11141         (btrace_set_call_history): New.
11142         * btrace.c (btrace_init_insn_iterator)
11143         (btrace_init_func_iterator, compute_itrace): Remove.
11144         (ftrace_print_function_name, ftrace_print_filename)
11145         (ftrace_skip_file): Change
11146         parameter to const.
11147         (ftrace_init_func): Remove.
11148         (ftrace_debug): Use new btrace_function fields.
11149         (ftrace_function_switched): Also consider gaining and
11150         losing symbol information).
11151         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11152         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11153         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11154         New.
11155         (ftrace_new_function): Move. Remove debug print.
11156         (ftrace_update_lines, ftrace_update_insns): New.
11157         (ftrace_update_function): Check for call, ret, and jump.
11158         (compute_ftrace): Renamed to ...
11159         (btrace_compute_ftrace): ...this. Rewritten to compute call
11160         stack.
11161         (btrace_fetch, btrace_clear): Updated.
11162         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11163         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11164         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11165         (btrace_call_number, btrace_call_begin, btrace_call_end)
11166         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11167         (btrace_find_function_by_number, btrace_set_insn_history)
11168         (btrace_set_call_history): New.
11169         * record-btrace.c (require_btrace): Use new btrace thread
11170         info fields.
11171         (record_btrace_info, btrace_insn_history)
11172         (record_btrace_insn_history, record_btrace_insn_history_range):
11173         Use new btrace thread info fields and new iterator.
11174         (btrace_func_history_src_line): Rename to ...
11175         (btrace_call_history_src_line): ...this. Use new btrace
11176         thread info fields.
11177         (btrace_func_history): Rename to ...
11178         (btrace_call_history): ...this. Use new btrace thread info
11179         fields and new iterator.
11180         (record_btrace_call_history, record_btrace_call_history_range):
11181         Use new btrace thread info fields and new iterator.
11182
11183 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11184
11185         * frame.h (frame_id_build_unavailable_stack_special): New.
11186         * frame.c (frame_id_build_unavailable_stack_special): New.
11187
11188 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11189
11190         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11191         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11192         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11193         to gdbarch.
11194         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11195         (i386_insn_is_jump, i386_jmp_p): New.
11196         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11197         insn_is_jump to gdbarch.
11198         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11199         * gdbarch.h: Regenerated.
11200         * gdbarch.c: Regenerated.
11201         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11202         (default_insn_is_jump): New.
11203         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11204         (default_insn_is_jump): New.
11205
11206 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11207
11208         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11209         Change to ...
11210         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
11211         (btrace_read_type) <btrace_read_new>: Change to ...
11212         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
11213
11214 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11215
11216         * common/linux-btrace.c (linux_read_btrace): Free trace from
11217         previous iteration.
11218
11219 2014-01-15  Doug Evans  <dje@google.com>
11220
11221         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11222         uint32_t.
11223
11224 2014-01-15  Tom Tromey  <tromey@redhat.com>
11225
11226         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11227         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11228         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11229         (set_objfile_main_name): New function.
11230         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11231         language_of_main>: New fields.
11232         (set_objfile_main_name): Declare.
11233         * symtab.c (find_main_name): Loop over objfiles to find the main
11234         name and language.
11235         (set_main_name): Now static.
11236         (get_main_info): Add comment.
11237         * symtab.h (set_main_name): Don't declare.
11238
11239 2014-01-15  Tom Tromey  <tromey@redhat.com>
11240
11241         * symtab.c (main_progspace_key): New global.
11242         (struct main_info): New.
11243         (name_of_main, language_of_main): Remove.
11244         (get_main_info, main_info_cleanup): New function.
11245         (set_main_name, main_name, main_language): Use get_main_info.
11246         (_initialize_symtab): Initialize main_progspace_key.
11247
11248 2014-01-15  Tom Tromey  <tromey@redhat.com>
11249
11250         * dbxread.c (process_one_symbol): Update.
11251         * dwarf2read.c (read_partial_die): Update.
11252         * symfile.c (set_initial_language): Call main_language.
11253         * symtab.c (language_of_main): Now static.
11254         (set_main_name): Add 'lang' parameter.
11255         (find_main_name): Update.
11256         (main_language): New function.
11257         (symtab_observer_executable_changed): Update.
11258         * symtab.h (set_main_name): Update.
11259         (language_of_main): Remove.
11260         (main_language): Declare.
11261
11262 2014-01-15  Tom Tromey  <tromey@redhat.com>
11263
11264         * symfile.c (init_entry_point_info): Use new "initialized" field.
11265         Update.
11266         * objfiles.h (struct entry_point) <initialized>: New field.
11267         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11268         (struct objfile) <ei>: ...here.  Remove.
11269         * objfiles.c (entry_point_address_query): Update.
11270
11271 2014-01-15  Tom Tromey  <tromey@redhat.com>
11272
11273         * objfiles.c (entry_point_address_query): Relocate entry point
11274         address.
11275         (objfile_relocate1): Do not relocate entry point address.
11276         * objfiles.h (struct entry_info) <entry_point>: Update comment.
11277         <the_bfd_section_index>: New field.
11278         * symfile.c (init_entry_point_info): Find the entry point's
11279         section.
11280
11281 2014-01-15  Tom Tromey  <tromey@redhat.com>
11282
11283         * solib-frv.c (enable_break): Use entry_point_address_query.
11284
11285 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
11286
11287         * NEWS: Add note on improved process record-replay on
11288         arm*-linux* targets.
11289
11290 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
11291
11292         * arm-tdep.c (enum arm_record_result): New enum.
11293         (arm_record_unsupported_insn): New function.
11294         (arm_record_coproc_data_proc): Removed.
11295         (thumb2_record_ld_st_multiple): New function.
11296         (thumb2_record_ld_st_dual_ex_tbb): New function.
11297         (thumb2_record_data_proc_sreg_mimm): New function.
11298         (thumb2_record_ps_dest_generic): New function.
11299         (thumb2_record_branch_misc_cntrl): New function.
11300         (thumb2_record_str_single_data): New function.
11301         (thumb2_record_ld_mem_hints): New function.
11302         (thumb2_record_ld_word): New function.
11303         (thumb2_record_lmul_lmla_div): New function.
11304         (thumb2_record_decode_insn_handler): New function.
11305         (decode_insn): Add thumb32 instruction handlers.
11306
11307 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
11308
11309         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11310         (struct arm_linux_record_tdep): Declare.
11311         (arm_canonicalize_syscall): New function.
11312         (arm_all_but_pc_registers_record): New function.
11313         (arm_linux_syscall_record): New function.
11314         (arm_linux_init_abi): Add syscall recording constructs.
11315         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11316         decoding.  (arm_record_coproc_data_proc): Update arm syscall
11317         decoding.
11318         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11319         <arm_syscall_record>: New field.
11320         * configure.tgt (arm*-*-linux*): Add linux-record.o to
11321         gdb_target_obs.
11322
11323 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
11324
11325         * arm-tdep.c (thumb_record_misc): Update to use sp as base
11326         register for push instruction recording.
11327
11328 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
11329
11330         * arm-tdep.c (thumb_record_misc): Update to correct logical
11331         error while recording ldm, ldmia and pop instructions.
11332
11333 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
11334
11335         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11336
11337 2014-01-15  Pedro Alves  <palves@redhat.com>
11338
11339         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11340         (go32_resume, go32_fetch_registers, store_register)
11341         (go32_store_registers, go32_prepare_to_store)
11342         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11343         (go32_create_inferior, go32_can_run, go32_terminal_init)
11344         (go32_terminal_inferior, go32_terminal_ours): Delete forward
11345         declarations.
11346
11347 2014-01-15  Tom Tromey  <tromey@redhat.com>
11348
11349         * target.h (async_callback_ftype): New typedef.
11350         (struct target_ops) <to_async>: Use it.
11351
11352 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
11353
11354         * python/py-value.c (get_field_type): Remove unnecessary curly
11355         braces for single-statement if block.
11356
11357 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
11358
11359         * python/py-type.c (convert_field): Add missing empty line
11360         after declarations.
11361
11362 2014-01-14  Doug Evans  <dje@google.com>
11363
11364         * symfile.h (expand_symtabs_matching): Renamed from
11365         expand_partial_symbol_names.  Update prototype.
11366         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11367         * symfile.c (expand_symtabs_matching): Renamed from
11368         expand_partial_symbol_names.  New args file_matcher, kind.
11369         Rename arg fun to symbol_matcher.
11370         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11371         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11372         ada_expand_partial_symbol_name.
11373         (ada_make_symbol_completion_list): Update to call
11374         expand_symtabs_matching.
11375         (ada_add_global_exceptions): Call expand_symtabs_matching.
11376         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11377         call map_symbol_filenames.
11378         * symtab.c (sources_info): Update to call map_symbol_filenames.
11379         (search_symbols): Call expand_symtabs_matching.
11380         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11381         (default_make_symbol_completion_list_break_on): Update to call
11382         expand_symtabs_matching.
11383         (make_source_files_completion_list): Update to call
11384         map_symbol_filenames.
11385
11386 2014-01-14  Doug Evans  <dje@google.com>
11387
11388         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11389         (expand_symtabs_symbol_matcher_ftype): New typedef.
11390         (quick_symbol_functions.expand_symtabs_matching): Update to use.
11391         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11392         * symfile.c (expand_partial_symbol_names): Update to use
11393         expand_symtabs_symbol_matcher_ftype.
11394         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11395         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11396         Arg name_matcher renamed to symbol_matcher.
11397         * psymtab.c (recursively_search_psymtabs): Update to use
11398         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
11399         sym_matcher.
11400         (expand_symtabs_matching_via_partial): Update to use
11401         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11402         Arg name_matcher renamed to symbol_matcher.
11403
11404 2014-01-14  Doug Evans  <dje@google.com>
11405
11406         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11407         (map_partial_symbol_filenames): Ditto.
11408         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11409         (map_partial_symbol_filenames): Ditto.
11410         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11411         (map_partial_symbol_filenames): Ditto.
11412         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11413         (map_partial_symbol_filenames): Ditto.
11414         * symtab.c: Delete #include "psymtab.h".
11415
11416 2014-01-14  Pedro Alves  <palves@redhat.com>
11417             Tom Tromey  <tromey@redhat.com>
11418
11419         * infrun.c (use_displaced_stepping): Use find_record_target
11420         instead of RECORD_IS_USED.
11421         (adjust_pc_after_break): Use record_full_is_used instead of
11422         RECORD_IS_USED.
11423         * record-btrace.c (record_btrace_open): Call record_preopen
11424         instead of checking RECORD_IS_USED.
11425         * record-full.c (record_full_shortname)
11426         (record_full_core_shortname): New globals.
11427         (record_full_is_used): New function.
11428         (find_full_open): Call record_preopen instead of checking
11429         RECORD_IS_USED.
11430         (init_record_full_ops): Set the target's shortname to
11431         record_full_shortname.
11432         (init_record_full_core_ops): Set the target's shortname to
11433         record_full_core_shortname.
11434         * record-full.h (record_full_is_used): Declare.
11435         * record.c (find_record_target): Make extern.
11436         (record_preopen): New function.
11437         * record.h (RECORD_IS_USED): Delete macro.
11438         (find_record_target, record_preopen): Declare functions.
11439
11440 2014-01-14  Yao Qi  <yao@codesourcery.com>
11441
11442         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11443         'len''s type to ULONGEST.
11444         (core_xfer_shared_libraries_aix): Likewise.
11445         * gdbarch.c, gdbarch.h: Regenerated.
11446         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11447         Change type of 'len' to ULONGEST.
11448         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11449         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11450
11451 2014-01-14  Yao Qi  <yao@codesourcery.com>
11452
11453         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11454         type of 'len' to ULONGEST.
11455         (linux_xfer_osdata_processgroups): Likewise.
11456         (linux_xfer_osdata_threads): Likewise.
11457         (linux_xfer_osdata_fds): Likewise.
11458         (linux_xfer_osdata_isockets): Likewise.
11459         (linux_xfer_osdata_shm): Likewise.
11460         (linux_xfer_osdata_sem): Likewise.
11461         (linux_xfer_osdata_msg): Likewise.
11462         (linux_common_xfer_osdata): Likewise.
11463         (struct osdata_type) <getter>: Likewise.
11464         * common/linux-osdata.h (linux_common_xfer_osdata): Update
11465         the declaration.
11466
11467 2014-01-14  Yao Qi  <yao@codesourcery.com>
11468
11469         * target.h (target_xfer_partial_ftype): Update.
11470         (struct target_ops) <to_xfer_partial>: Change 'len' type to
11471         ULONGEST.
11472         * aix-thread.c (aix_thread_xfer_partial): Change type of
11473         argument 'len' to ULONGEST.
11474         * auxv.c (procfs_xfer_auxv): Likewise.
11475         (ld_so_xfer_auxv): Likewise.
11476         (memory_xfer_auxv): Likewise.
11477         * bfd-target.c (target_bfd_xfer_partial): Likewise.
11478         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11479         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11480         * corelow.c (core_xfer_partial): Likewise.
11481         * ctf.c (ctf_xfer_partial): Likewise.
11482         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
11483         '%u'.
11484         (darwin_read_dyld_info): Likewise.
11485         (darwin_xfer_partial): Likewise.
11486         * exec.c (section_table_xfer_memory_partial): Likewise.
11487         (exec_xfer_partial): Likewise.
11488         * exec.h (section_table_xfer_memory_partial): Update
11489         declaration.
11490         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
11491         instead of plongest.
11492         (gnu_xfer_partial): Likewise.
11493         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11494         (ia64_hpux_xfer_solib_got): Likewise.
11495         (ia64_hpux_xfer_partial): Likewise.
11496         * ia64-linux-nat.c (ia64_linux_xfer_partial):
11497         * inf-ptrace.c (inf_ptrace_xfer_partial):
11498         * inf-ttrace.c (inf_ttrace_xfer_partial):
11499         * linux-nat.c (linux_xfer_siginfo): Likewise.
11500         (linux_nat_xfer_partial): Likewise.
11501         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11502         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11503         * monitor.c (monitor_xfer_memory): Likewise.
11504         (monitor_xfer_partial): Likewise.
11505         * procfs.c (procfs_xfer_partial): Likewise.
11506         * record-full.c (record_full_xfer_partial): Likewise.
11507         (record_full_core_xfer_partial): Likewise.
11508         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
11509         instead of plongest.
11510         (gdbsim_xfer_partial): Likewise.
11511         * remote.c (remote_xfer_partial): Likewise.
11512         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11513         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11514         declaration.
11515         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11516         (rs6000_xfer_shared_libraries): Likewise.
11517         * sol-thread.c (sol_thread_xfer_partial): Likewise.
11518         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11519         (sparc_xfer_partial): Likewise.
11520         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11521         (spu_xfer_partial): Likewise.
11522         * spu-multiarch.c (spu_xfer_partial): Likewise.
11523         * target.c (target_read_live_memory): Likewise.
11524         (memory_xfer_live_readonly_partial): Likewise.
11525         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11526         (target_xfer_partial, default_xfer_partial): Likewise.
11527         (current_xfer_partial): Likewise.
11528         * tracepoint.c (tfile_xfer_partial): Likewise.
11529         * windows-nat.c (windows_xfer_memory): Likewise.  Call
11530         pulongest instead of plongest.
11531         (windows_xfer_partial): Likewise.
11532         (windows_xfer_shared_libraries): Likewise.
11533
11534 2014-01-14  Yao Qi  <yao@codesourcery.com>
11535
11536         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11537         target_xfer_partial_ftype.
11538
11539 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
11540
11541         PR python/15464
11542         PR python/16113
11543         * valops.c (value_struct_elt_bitpos): New function
11544         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11545         object to 'None' if the field name is an empty string ("").
11546         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11547         attribute to look for a field when 'name' is 'None'.
11548         (get_field_type): New function
11549
11550 2014-01-13  Doug Evans  <dje@google.com>
11551
11552         PR symtab/16426
11553         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11554         (try_open_dwop_file): Ditto.
11555         * gdb_bfd.c: #include "vec.h".
11556         (bfdp): New typedef.
11557         (struct gdb_bfd_data): New member included_bfds.
11558         (gdb_bfd_unref): Unref all included bfds.
11559         (gdb_bfd_record_inclusion): New function.
11560         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11561
11562 2014-01-13  Tom Tromey  <tromey@redhat.com>
11563
11564         * gdbcore.h (deprecated_core_resize_section_table): Remove.
11565
11566 2014-01-13  Tom Tromey  <tromey@redhat.com>
11567
11568         * defs.h (use_windows): Remove.
11569         * gdb.c (main): Update.
11570         * main.c (captured_main, gdb_main): Update.
11571         * main.h (struct captured_main_args) <use_windows>: Remove.
11572         * top.c (use_windows): Remove.
11573
11574 2014-01-13  Tom Tromey  <tromey@redhat.com>
11575
11576         * defs.h (deprecated_flush_hook): Remove.
11577
11578 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
11579
11580         PR threads/16216
11581         * linux-thread-db.c (try_thread_db_load): Add parameter
11582         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
11583         (try_thread_db_load_from_pdir_1): Move it there from here.
11584         (try_thread_db_load_from_sdir): Update caller.
11585         (try_thread_db_load_from_dir): Move it there from here.
11586
11587 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
11588
11589         * regformats/regdat.sh: Always rewrite the register file.
11590
11591 2014-01-13  Pedro Alves  <palves@redhat.com>
11592
11593         * Makefile.in (CHECK_HEADERS): New variable.
11594         (check-headers:): New rule.
11595
11596 2014-01-13  Tom Tromey  <tromey@redhat.com>
11597
11598         * cli/cli-setshow.c (do_set_command): Update.
11599         * defs.h (deprecated_set_hook): Remove.
11600         * top.c (deprecated_set_hook): Remove.
11601
11602 2014-01-13  Pedro Alves  <palves@redhat.com>
11603
11604         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11605         the tracepoint if the PC is a pseudo-register.
11606
11607 2014-01-13  Tom Tromey  <tromey@redhat.com>
11608
11609         * defs.h (XCALLOC): Remove.
11610         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11611         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11612         * dwarf2loc.c (allocate_piece_closure): Likewise.
11613         * elfread.c (elf_symfile_segments): Likewise.
11614         (elf_symfile_segments): Likewise.
11615         * gdbtypes.c (copy_type_recursive): Likewise.
11616         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11617         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11618         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11619         XCALLOC.
11620         * mt-tdep.c (mt_gdbarch_init): Likewise.
11621         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11622         XCALLOC.
11623         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11624         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11625         * registry.c (registry_alloc_data): Likewise.
11626         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11627         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11628         * serial.c (serial_fdopen_ops): Likewise.
11629         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11630         XCALLOC.
11631         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11632         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11633         not XCALLOC.
11634
11635 2014-01-13  Tom Tromey  <tromey@redhat.com>
11636
11637         * defs.h (XMALLOC): Remove.
11638         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11639         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11640         * cli-out.c (struct ui_out *): Likewise.
11641         * cli/cli-dump.c (add_dump_command): Likewise.
11642         (add_dump_command): Likewise.
11643         * complaints.c (get_complaints): Likewise.
11644         (find_complaint): Likewise.
11645         * dwarf2-frame.c (execute_cfa_program): Likewise.
11646         * dwarf2read.c (abbrev_table_read_table): Likewise.
11647         * gdbarch.sh: Likewise.
11648         * gdbarch.c: Rebuild.
11649         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11650         * interps.c (interp_new): Likewise.
11651         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11652         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11653         * mi/mi-console.c (mi_console_file_new): Likewise.
11654         * mi/mi-interp.c (mi_interpreter_init): Likewise.
11655         * mi/mi-out.c (mi_out_new): Likewise.
11656         * mi/mi-parse.c (mi_parse): Likewise.
11657         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11658         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11659         * observer.c (xalloc_observer_list_node): Likewise.
11660         * regcache.c (regcache_xmalloc_1): Likewise.
11661         * reggroups.c (reggroup_new): Likewise.
11662         (_initialize_reggroup): Likewise.
11663         * registry.c (register_data_with_cleanup): Likewise.
11664         * remote.c (remote_notif_stop_alloc_reply): Likewise.
11665         * ser-base.c (serial_ttystate): Likewise.
11666         * ser-mingw.c (make_pipe_state): Likewise.
11667         * ser-pipe.c (pipe_open): Likewise.
11668         * serial.c (serial_open): Likewise.
11669         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11670         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11671         (tui_alloc_win_info): Likewise.
11672         (tui_add_content_elements): Likewise.
11673         * tui/tui-file.c (tui_file_new): Likewise.
11674         * tui/tui-out.c (tui_out_new): Likewise.
11675         * ui-file.c (mem_file_new): Likewise.
11676         * ui-out.c (push_level): Likewise.
11677         (make_cleanup_ui_out_end): Likewise.
11678         (append_header_to_list): Likewise.
11679         (ui_out_new): Likewise.
11680         * user-regs.c (user_reg_add_builtin): Likewise.
11681
11682 2014-01-13  Tom Tromey  <tromey@redhat.com>
11683
11684         * defs.h (XZALLOC): Remove.
11685         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11686         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11687         (get_ada_tasks_inferior_data): Likewise.
11688         * auto-load.c (get_auto_load_pspace_data): Likewise.
11689         * auxv.c (get_auxv_inferior_data): Likewise.
11690         * bfd-target.c (target_bfd_reopen): Likewise.
11691         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11692         (deprecated_insert_raw_breakpoint): Likewise.
11693         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11694         * corelow.c (core_open): Likewise.
11695         * darwin-nat.c (darwin_check_new_threads): Likewise.
11696         (darwin_attach_pid): Likewise.
11697         * dummy-frame.c (dummy_frame_push): Likewise.
11698         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11699         * dwarf2loc.c (allocate_piece_closure): Likewise.
11700         * elfread.c (elf_symfile_segments): Likewise.
11701         * eval.c (ptrmath_type_p): Likewise.
11702         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11703         * gdbtypes.c (alloc_type_arch): Likewise.
11704         (alloc_type_instance): Likewise.
11705         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11706         * inf-child.c (inf_child_can_use_agent): Likewise.
11707         * inflow.c (get_inflow_inferior_data): Likewise.
11708         * infrun.c (save_infcall_suspend_state): Likewise.
11709         * jit.c (jit_reader_load): Likewise.
11710         (get_jit_objfile_data): Likewise.
11711         (get_jit_program_space_data): Likewise.
11712         (jit_object_open_impl): Likewise.
11713         (jit_symtab_open_impl): Likewise.
11714         (jit_block_open_impl): Likewise.
11715         (jit_frame_sniffer): Likewise.
11716         * linux-fork.c (add_fork): Likewise.
11717         * maint.c (make_command_stats_cleanup): Likewise.
11718         * objfiles.c (get_objfile_pspace_data): Likewise.
11719         * opencl-lang.c (struct lval_closure): Likewise.
11720         * osdata.c (osdata_start_osdata): Likewise.
11721         * progspace.c (new_address_space): Likewise.
11722         (add_program_space): Likewise.
11723         * remote-sim.c (get_sim_inferior_data): Likewise.
11724         * sh-tdep.c (sh_gdbarch_init): Likewise.
11725         * skip.c (Ignore): Likewise.
11726         (skip_delete_command): Likewise.
11727         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11728         (library_list_start_library): Likewise.
11729         (solib_aix_current_sos): Likewise.
11730         * solib-darwin.c (get_darwin_info): Likewise.
11731         (darwin_current_sos): Likewise.
11732         * solib-dsbt.c (get_dsbt_info): Likewise.
11733         * solib-ia64-hpux.c (new_so_list): Likewise.
11734         (ia64_hpux_get_solib_linkage_addr): Likewise.
11735         * solib-spu.c (append_ocl_sos): Likewise.
11736         (spu_current_sos): Likewise.
11737         * solib-svr4.c (get_svr4_info): Likewise.
11738         (svr4_keep_data_in_core): Likewise.
11739         (library_list_start_library): Likewise.
11740         (svr4_default_sos): Likewise.
11741         (svr4_read_so_list): Likewise.
11742         * solib-target.c (library_list_start_library): Likewise.
11743         (solib_target_current_sos): Likewise.
11744         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11745         * symfile-debug.c (install_symfile_debug_logging): Likewise.
11746         * symfile.c (default_symfile_segments): Likewise.
11747         * target-descriptions.c (tdesc_data_init): Likewise.
11748         (tdesc_create_reg): Likewise.
11749         (struct tdesc_type *): Likewise.
11750         (tdesc_create_vector): Likewise.
11751         (tdesc_set_struct_size): Likewise.
11752         (struct tdesc_type *): Likewise.
11753         (tdesc_free_feature): Likewise.
11754         (tdesc_create_feature): Likewise.
11755         * windows-nat.c (windows_add_thread): Likewise.
11756         (windows_make_so): Likewise.
11757         * xml-support.c (gdb_xml_body_text): Likewise.
11758         (gdb_xml_create_parser_and_cleanup): Likewise.
11759         (xml_process_xincludes): Likewise.
11760         * xml-syscall.c (allocate_syscalls_info): Likewise.
11761         (syscall_create_syscall_desc): Likewise.
11762
11763 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
11764
11765         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
11766         function, with code from i386_stap_parse_special_token.
11767         (i386_stap_parse_special_token_three_arg_disp): Likewise.
11768         (i386_stap_parse_special_token): Move code to the two functions
11769         above; simplify it.
11770
11771 2014-01-09  Pedro Alves  <palves@redhat.com>
11772             Hui Zhu  <hui@codesourcery.com>
11773
11774         PR gdb/16101
11775         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
11776         bp_err_string.  Don't mark the location shlib_disabled if the
11777         error thrown wasn't a generic or memory error.  Catch errors
11778         thrown while inserting breakpoints in overlayed code.  Output
11779         error message of software breakpoints.
11780         * remote.c (remote_insert_breakpoint): If this breakpoint has
11781         target-side commands but this stub doesn't support Z0 packets,
11782         throw NOT_SUPPORTED_ERROR error.
11783         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
11784         * target.h (target_insert_breakpoint): Extend comment.
11785         (target_insert_hw_breakpoint): Add comment.
11786
11787 2014-01-08  Pedro Alves  <palves@redhat.com>
11788
11789         * remote.c (remote_add_thread): Add threads silently if starting
11790         up.
11791         (remote_notice_new_inferior): If in all-stop, and starting up,
11792         don't call notice_new_inferior.
11793         (get_current_thread): New function, factored out from ...
11794         (add_current_inferior_and_thread): ... this.  Adjust.
11795         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
11796         found any thread, then select the remote's current thread as GDB's
11797         current thread too.
11798
11799 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
11800
11801         * NEWS: Create a new section for the next release branch.
11802         Rename the section of the current branch, now that it has
11803         been cut.
11804
11805 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
11806
11807         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
11808         * version.in: Bump version to 7.7.50.DATE-cvs.
11809
11810 2014-01-08  Yao Qi  <yao@codesourcery.com>
11811
11812         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
11813         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
11814         (spu_xfer_partial): Cast 'buf' to 'const char *'.
11815
11816 2014-01-08  Yao Qi  <yao@codesourcery.com>
11817
11818         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
11819         return value of bfd_get_filename to symbol_file_add_from_bfd.
11820
11821 2014-01-08  Pierre Muller  <muller@sourceware.org>
11822
11823         Fix PR16201.
11824         * coff-pe-read.c (struct read_pe_section_data): Add index field.
11825         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
11826         to prim_record_mininal_symbol_and_info.
11827         (add_pe_forwarded_sym): Use known section number of forwarded symbol
11828         in call to prim_record_minimal_symbol_and_info.
11829         (read_pe_exported_syms): Set index field of section_data.
11830
11831 2014-01-07  Andrew Pinski  <apinski@cavium.com>
11832
11833         * features/aarch64-core.xml (cpsr): Change to be 64bit.
11834         * features/aarch64.c: Regenerate.
11835
11836 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
11837
11838         * target.c (return_null): Define.
11839         (update_current_target): Use it instead of return_zero for
11840         functions that return a pointer.
11841
11842 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
11843
11844         * source.c (add_path): Fix check for duplicated paths in the previously
11845         included paths.
11846
11847 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
11848
11849         * ada-lang.c: Remove duplicated include statements.
11850         * alphabsd-nat.c: Ditto.
11851         * amd64-darwin-tdep.c: Ditto.
11852         * amd64fbsd-nat.c: Ditto.
11853         * auto-load.c: Ditto.
11854         * ax-gdb.c: Ditto.
11855         * breakpoint.c: Ditto.
11856         * dbxread.c: Ditto.
11857         * fork-child.c: Ditto.
11858         * gdb_usleep.c: Ditto.
11859         * i386-darwin-tdep.c: Ditto.
11860         * i386fbsd-nat.c: Ditto.
11861         * infcmd.c: Ditto.
11862         * inferior.c: Ditto.
11863         * jv-lang.c: Ditto.
11864         * linux-nat.c: Ditto.
11865         * linux-tdep.c: Ditto.
11866         * m68kbsd-nat.c: Ditto.
11867         * m68klinux-nat.c: Ditto.
11868         * microblaze-tdep.c: Ditto.
11869         * mips-linux-tdep.c: Ditto.
11870         * mn10300-tdep.c: Ditto.
11871         * nto-tdep.c: Ditto.
11872         * opencl-lang.c: Ditto.
11873         * osdata.c: Ditto.
11874         * printcmd.c: Ditto.
11875         * regcache.c: Ditto.
11876         * remote-m32r-sdi.c: Ditto.
11877         * remote.c: Ditto.
11878         * symfile.c: Ditto.
11879         * symtab.c: Ditto.
11880         * tilegx-linux-nat.c: Ditto.
11881         * tilegx-tdep.c: Ditto.
11882         * tracepoint.c: Ditto.
11883         * valops.c: Ditto.
11884         * vaxbsd-nat.c: Ditto.
11885         * windows-nat.c: Ditto.
11886         * xtensa-tdep.c: Ditto.
11887
11888 2014-01-07  Yao Qi  <yao@codesourcery.com>
11889
11890         * spu-linux-nat.c (_initialize_spu_nat): Declare.
11891
11892 2014-01-07  Yao Qi  <yao@codesourcery.com>
11893             Joel Brobecker  <brobecker@adacore.com>
11894
11895         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
11896         (pdc_write_regs): Likewise.
11897         (fetch_regs_kernel_thread): Likewise.
11898         (store_regs_kernel_thread): Likewise.
11899
11900 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
11901
11902         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
11903         tagged type objects to their actual type.
11904
11905 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
11906
11907         * ada-valprint.c (print_field_values): Add "language" parameter.
11908         Update calls to print_field_values and print_variant_part.
11909         Pass new parameter "language" in call to val_print instead
11910         of "current_language".  Replace call to ada_val_print by call
11911         to val_print.
11912         (print_variant_part): Add "language" parameter.
11913         (ada_val_print_struct_union): Update call to print_field_values.
11914
11915 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
11916
11917         * ada-valprint.c (ui_memcpy): Delete.
11918         (ada_print_floating): Update documentation.  Add empty line
11919         between between function documentation and implementation.
11920         Delete variable "buffer".  Use ui_file_xstrdup in place of
11921         ui_file_put.  Minor adjustments following this change.
11922
11923 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
11924
11925         * ada-valprint.c (ada_val_print_string): New function,
11926         extracted from ada_val_print_array.
11927         (ada_val_print_array): Replace extracted code by call
11928         to ada_val_print_string followed by a return.  Move
11929         "else" branch to the function's top block.
11930
11931 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
11932
11933         * ada-valprint.c (ada_val_print_array): Move implementation
11934         down.  Rename parameter "offset" and "val" into "offset_aligned"
11935         and "original_value" respectively.  Add parameter "offset".
11936
11937 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
11938
11939         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
11940         re-organizing the code. Change the "???" message printed
11941         when target type is a TYPE_CODE_UNDEF into
11942         "<ref to undefined type>".
11943
11944 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
11945
11946         * ada-valprint.c (print_record): Delete, implementation inlined...
11947         (ada_val_print_struct_union): ... here.  Remove call to
11948         ada_check_typedef in inlined implementation.
11949
11950 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
11951
11952         * ada-valprint.c (ada_val_print_gnat_array): New function,
11953         extracted from ada_val_print_1;
11954         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
11955         (ada_val_print_flt, ada_val_print_struct_union)
11956         (ada_val_print_ref): Likewise.
11957         (ada_val_print_1): Delete variables i and elttype.
11958         Replace extracted-out code by call to corresponding
11959         new functions.
11960
11961 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
11962
11963         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
11964
11965 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
11966
11967         * ada-valprint.c (ada_val_print_1): Replace calls to
11968         ada_val_print_1 by calls to val_print.
11969
11970 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
11971
11972         * ada-valprint.c (ada_val_print_1): Add parameter "language".
11973         Update calls to self accordingly.  Replace calls to c_val_print
11974         by calls to val_print.
11975
11976 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
11977
11978         * ada-valprint.c (print_record): Delete declaration.
11979         (adjust_type_signedness, ada_val_print_1): Likewise.
11980         (ada_val_print): Move function implementation down.
11981         (print_variant_part, print_field_values, print_record):
11982         Move function implementation up.
11983
11984 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
11985
11986         * python/py-type.c (typy_get_name): New function.
11987         (type_object_getset): Add entry for attribute "name".
11988         * NEWS: Add entry mentioning this new attribute.
11989
11990 2014-01-07  Yao Qi  <yao@codesourcery.com>
11991
11992         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
11993         statement.
11994
11995 2014-01-07  Yao Qi  <yao@codesourcery.com>
11996
11997         * gnu-nat.c (info_port_rights): Add qualifier const to
11998         argument args.
11999
12000 2014-01-07  Yao Qi  <yao@codesourcery.com>
12001
12002         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12003
12004 2014-01-07  Yao Qi  <yao@codesourcery.com>
12005
12006         * gnu-nat.c (make_inf) Update declaration.
12007         (make_inf): Make it static.
12008         (inf_set_traced): Likewise.
12009         (inf_port_to_thread, inf_task_died_status): Likewise.
12010
12011 2014-01-07  Yao Qi  <yao@codesourcery.com>
12012
12013         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12014
12015 2014-01-07  Yao Qi  <yao@codesourcery.com>
12016
12017         * gnu-nat.c (_initialize_gnu_nat): Declare.
12018
12019 2014-01-07  Yao Qi  <yao@codesourcery.com>
12020
12021         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12022         'enum bfd_endian'.
12023         (struct gdbarch_info) <byte_order>: Change type to
12024         'enum bfd_endian'.
12025         <byte_order_for_code>: Likewise.
12026         * gdbarch.c, gdbarch.h: Regenerated.
12027
12028 2014-01-06  Sasha Smundak  <asmundak@google.com>
12029
12030         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12031
12032 2014-01-06  Tom Tromey  <tromey@redhat.com>
12033
12034         * doublest.c (convert_doublest_to_floatformat): Use const, not
12035         CONST.
12036         * somread.c (som_symtab_read): Likewise.
12037
12038 2014-01-07  Hui Zhu  <hui@codesourcery.com>
12039
12040         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12041         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12042         (gdb_bfd_fopen): Ditto.
12043         (gdb_bfd_openr): Ditto.
12044         (gdb_bfd_openw): Ditto.
12045         (gdb_bfd_openr_iovec): Ditto.
12046         (gdb_bfd_fdopenr): Ditto.
12047         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12048         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12049         with xstrdup.
12050         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12051         with xstrdup.
12052         * symfile-mem.c (symbol_file_add_from_memory): Removed
12053         gdb_bfd_stash_filename.
12054
12055 2014-01-03  Doug Evans  <dje@google.com>
12056
12057         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12058         output.
12059
12060 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
12061
12062         Update year range in copyright notice of all files.
12063
12064 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
12065
12066         * top.c (print_gdb_version): Set copyright year to 2014.
12067
12068 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
12069
12070         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12071
12072 For older changes see ChangeLog-2013.
12073 \f
12074 Local Variables:
12075 mode: change-log
12076 left-margin: 8
12077 fill-column: 74
12078 version-control: never
12079 coding: utf-8
12080 End: