Adding last commit's ChangeLog entry.
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2014-08-27  Patrick Palka  <patrick@parcs.ath.cx>
2
3         * target.h (struct target_ops::to_terminal_save_ours): Remove
4         declaration.
5         (target_terminal_save_ours): Remove macro.
6         * target-delegates.c: Regenerate.
7         * inf-child.c (inf_child_target): Don't set the nonexistent
8         field to_terminal_save_ours.
9         * inferior.h (child_terminal_save_ours): Remove declaration.
10         * terminal.h (gdb_save_tty_state): New declaration.
11         * inflow.c (child_terminal_save_ours): Rename to ...
12         (gdb_save_tty_state): ... this.
13         * tui/tui.c: Include terminal.h.
14         (tui_enable): Use gdb_save_tty_state instead of
15         target_terminal_save_ours.
16         (tui_disable): Likewise.
17
18 2014-08-25  Doug Evans  <dje@google.com>
19
20         * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
21         Pass NULL instead of 0 for context pointer.
22
23 2014-08-25  Yao Qi  <yao@codesourcery.com>
24
25         * dwarf2read.c: Fix grammatical error.
26
27 2014-08-24  Yao Qi  <yao@codesourcery.com>
28
29         * dwarf2read.c (scan_partial_symbols):  Update comments.
30         Rename argument 'need_pc' with 'set_addrmap'.
31         (add_partial_namespace): Rename argument 'need_pc' with
32         'set_addrmap'.
33         (add_partial_module): Likewise.
34         (add_partial_subprogram): Likewise.  Update comments.
35         (dwarf2_name): Fix typo.
36
37 2014-08-22  Doug Evans  <dje@google.com>
38
39         PR 17276
40         * dwarf2read.c (dwarf_record_line_p): New function.
41         (dwarf_decode_lines_1): Ignore subsequent line number entries
42         for the same line if any entry had a non-zero discriminator.
43
44 2014-08-22  Doug Evans  <dje@google.com>
45
46         * buildsym.h (record_line_ftype): New typedef.
47         (record_line): Use it.
48         * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
49         (dwarf_decode_lines_1): Call them.
50
51 2014-08-22  Yao Qi  <yao@codesourcery.com>
52
53         * ctf.c (CTF_FILE_MIN_SIZE): Remove.
54         (ctf_end): Remove code.
55
56 2014-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
57
58         * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
59         (linux_make_corefile_notes): call update_thread_list, protected against
60         exceptions.
61
62 2014-08-21  Pedro Alves  <palves@redhat.com>
63
64         * infcmd.c (attach_command): Remove comment.
65
66 2014-08-21  Bin Cheng  <bin.cheng@arm.com>
67
68         * aarch64-linux-nat.c (dr_changed_t): Change the type from
69         unsigned LONGEST to ULONGEST.
70
71 2014-08-20  Pedro Alves  <palves@redhat.com>
72
73         * Makefile.in (check-read1): New rule.
74
75 2014-08-20  Joel Brobecker  <brobecker@adacore.com>
76
77         * value.c (value_from_contents_and_address): Strip resolved_type's
78         typedef layers before checking its TYPE_DATA_LOCATION.
79
80 2014-08-20  Pedro Alves  <palves@redhat.com>
81
82         * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
83
84 2014-08-20  Yao Qi  <yao@codesourcery.com>
85
86         * amd64-tdep.c (amd64_classify): Add a blank line after the
87         example.  Move "*/" to a new line.
88         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
89         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
90         * dwarf2read.c (psymtab_include_file_name): Likewise.
91
92 2014-08-19  Andrew Burgess  <aburgess@broadcom.com>
93             Pedro Alves  <palves@redhat.com>
94
95         PR symtab/14604
96         PR symtab/14605
97         * ada-lang.c (coerce_unspec_val_to_type): Use
98         value_contents_copy_raw.
99         * ada-valprint.c (val_print_packed_array_elements): Adjust.
100         * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
101         * cp-valprint.c (cp_print_value_fields): Let the common printing
102         code handle optimized out values.
103         (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
104         * d-valprint.c (dynamic_array_type): Use
105         value_bits_any_optimized_out.
106         * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
107         check_any_valid fields.
108         (check_pieced_value_bits): Delete and inline ...
109         (check_pieced_synthetic_pointer): ... here.
110         (check_pieced_value_validity): Delete.
111         (check_pieced_value_invalid): Delete.
112         (pieced_value_funcs): Remove check_validity and check_any_valid
113         fields.
114         (read_pieced_value): Use mark_value_bits_optimized_out.
115         (write_pieced_value): Switch to use
116         mark_value_bytes_optimized_out.
117         (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
118         of assuming the whole value is optimized out.
119         * findvar.c (read_frame_register_value): Remove special handling
120         of optimized out registers.
121         (value_from_register): Use mark_value_bytes_optimized_out.
122         * frame-unwind.c (frame_unwind_got_optimized): Use
123         mark_value_bytes_optimized_out.
124         * jv-valprint.c (java_value_print): Adjust.
125         (java_print_value_fields): Let the common printing code handle
126         optimized out values.
127         * mips-tdep.c (mips_print_register): Remove special handling of
128         optimized out registers.
129         * opencl-lang.c (lval_func_check_validity): Delete.
130         (lval_func_check_any_valid): Delete.
131         (opencl_value_funcs): Remove check_validity and check_any_valid
132         fields.
133         * p-valprint.c (pascal_object_print_value_fields): Let the common
134         printing code handle optimized out values.
135         * stack.c (read_frame_arg): Remove special handling of optimized
136         out values.  Fetch both VAL and ENTRYVAL before comparing
137         contents.  Adjust to value_available_contents_eq rename.
138         * valprint.c (valprint_check_validity)
139         (val_print_scalar_formatted): Use value_bits_any_optimized_out.
140         (val_print_array_elements): Adjust.
141         * value.c (struct value) <optimized_out>: Now a VEC(range_s).
142         (value_bits_any_optimized_out): New function.
143         (value_entirely_covered_by_range_vector): New function, factored
144         out from value_entirely_unavailable.
145         (value_entirely_unavailable): Reimplement.
146         (value_entirely_optimized_out): New function.
147         (insert_into_bit_range_vector): New function, factored out from
148         mark_value_bits_unavailable.
149         (mark_value_bits_unavailable): Reimplement.
150         (struct ranges_and_idx): New struct.
151         (find_first_range_overlap_and_match): New function, factored out
152         from value_available_contents_bits_eq.
153         (value_available_contents_bits_eq): Rename to ...
154         (value_contents_bits_eq): ... this.  Check both unavailable
155         contents and optimized out contents.
156         (value_available_contents_eq): Rename to ...
157         (value_contents_eq): ... this.
158         (allocate_value_lazy): Remove reference to the old optimized_out
159         boolean.
160         (allocate_optimized_out_value): Use
161         mark_value_bytes_optimized_out.
162         (require_not_optimized_out): Adjust to check whether the
163         optimized_out vec is empty.
164         (ranges_copy_adjusted): New function, factored out from
165         value_contents_copy_raw.
166         (value_contents_copy_raw): Also copy the optimized out ranges.
167         Assert the destination ranges aren't optimized out.
168         (value_contents_copy): Update comment, remove call to
169         require_not_optimized_out.
170         (value_contents_equal): Adjust to check whether the optimized_out
171         vec is empty.
172         (set_value_optimized_out, value_optimized_out_const): Delete.
173         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
174         New functions.
175         (value_entirely_optimized_out, value_bits_valid): Delete.
176         (value_copy): Take a VEC copy of the 'optimized_out' field.
177         (value_primitive_field): Remove special handling of optimized out.
178         (value_fetch_lazy): Assert that lazy values have no unavailable
179         regions.  Use value_bits_any_optimized_out.  Remove some special
180         handling for optimized out values.
181         * value.h: Add intro comment about <optimized out> and
182         <unavailable>.
183         (struct lval_funcs): Remove check_validity and check_any_valid
184         fields.
185         (set_value_optimized_out, value_optimized_out_const): Remove.
186         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
187         New declarations.
188         (value_bits_any_optimized_out): New declaration.
189         (value_bits_valid): Delete declaration.
190         (value_available_contents_eq): Rename to ...
191         (value_contents_eq): ... this, and extend comments.
192
193 2014-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
194
195         Fix -fsanitize=address on unreadable inferior strings.
196         * valprint.c (val_print_string): Fix access before BUFFER.
197
198 2014-08-19  Simon Marchi  <simon.marchi@ericsson.com>
199
200         * target.c (target_struct_size): Remove.
201         (target_struct_allocsize): Remove.
202         (DEFAULT_ALLOCSIZE): Remove.
203         (target_ops_p): New typedef.
204         (DEF_VEC_P (target_ops_p)): New vector type.
205         (target_structs): Change type to VEC (target_ops_p).
206         (add_target_with_completer): Replace "push" code by VEC_safe_push.
207         (find_default_run_target): Rewrite for loop following changes to
208         target_structs.
209
210 2014-08-19  Joel Brobecker  <brobecker@adacore.com>
211
212         * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
213         Adjust code accordingly.  Adjust function description comment.
214
215 2014-08-19  Yao Qi  <yao@codesourcery.com>
216
217         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
218         types.
219
220 2014-08-19  Alan Modra  <amodra@gmail.com>
221
222         * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
223         * config.in: Regenerate.
224         * configure: Regenerate.
225
226 2014-08-19  Tom Tromey  <tromey@redhat.com>
227             Gary Benson  <gbenson@redhat.com>
228
229         * common/common-debug.h: New file.
230         * common/common-debug.c: Likewise.
231         * debug.c: Likewise.
232         * Makefile.in (SFILES): Add common/common-debug.c.
233         (HFILES_NO_SRCDIR): Add common/common-debug.h.
234         (COMMON_OBS): Add common-debug.o and debug.o.
235         (common-debug.o): New rule.
236         * common/common-defs.h: Include common-debug.h.
237         * common/agent.c (debug_agent_printf): New function.
238         (DEBUG_AGENT): Redefine.
239         * nat/i386-dregs.c (debug_printf): Undefine.
240
241 2014-08-19  Gary Benson  <gbenson@redhat.com>
242
243         * common/common-defs.h: Include print-utils.h.
244         * utils.h: Do not include print-utils.h.
245
246 2014-08-19  Tom Tromey  <tromey@redhat.com>
247             Gary Benson  <gbenson@redhat.com>
248
249         * common/common-types.h: New file.
250         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
251         * common/common-defs.h: Include common-types.h.
252         * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
253         (ULONGEST): Remove.
254
255 2014-08-19  Tom Tromey  <tromey@redhat.com>
256             Gary Benson  <gbenson@redhat.com>
257
258         * common/errors.h: New file.
259         * common/errors.c: Likewise.
260         * Makefile.in (SFILES): Add common/errors.c.
261         (HFILES_NO_SRCDIR): Add common/errors.h.
262         (COMMON_OBS): Add errors.o.
263         (errors.o): New rule.
264         * common/common-defs.h: Include errors.h.
265         * utils.h (perror_with_name, error, verror, warning, vwarning):
266         Don't declare.
267         * common/common-utils.h: (malloc_failure, internal_error):
268         Likewise.
269
270 2014-08-19  Gary Benson  <gbenson@redhat.com>
271
272         * utils.c (internal_vproblem): Always print the message.
273
274 2014-08-18  Doug Evans  <dje@google.com>
275
276         * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
277
278 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
279
280         * ada-typeprint.c (type_is_full_subrange_of_target_type):
281         Return 0 if TYPE is dynamic.
282         (print_range): Add handling of dynamic ranges.
283
284 2014-08-18  Keven Boell  <keven.boell@intel.com>
285             Joel Brobecker  <brobecker@adacore.com>
286
287         * gdbtypes.h (struct main_type): Add field "data_location".
288         (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
289         (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
290         * gdbtypes.c (is_dynamic_type): Return 1 if the type has
291         a dynamic data location.
292         (resolve_dynamic_type): Add DW_AT_data_location handling.
293         (copy_recursive, copy_type): Copy the data_location information
294         when present.
295         * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
296         * value.c (value_from_contents_and_address): Add
297         DW_AT_data_location handling.
298
299 2014-08-18  Keven Boell  <keven.boell@intel.com>
300             Joel Brobecker  <brobecker@adacore.com>
301
302         * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
303         field "get_object_address".
304         * dwarf2expr.c (execute_stack_op): Add handling for
305         DW_OP_push_object_address.
306         * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
307         * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
308         (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
309         (dwarf_expr_get_obj_addr): New function.
310         (dwarf_expr_ctx_funcs): Add get_object_address field.
311         (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
312         (dwarf2_locexpr_baton_eval): Add parameter "addr".  Use it.
313         (dwarf2_evaluate_property): Add parameter "address".  Use it.
314         (needs_get_obj_addr): New function.
315         (needs_frame_ctx_funcs): Add get_object_address field.
316         (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
317         * gdbtypes.c (resolve_dynamic_range): Add "addr" field.  Use it.
318         (resolve_dynamic_array): Likewise.
319
320 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
321
322         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
323         When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
324         fixed value for records and unions for which some GNAT encodings
325         are present.
326
327 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
328
329         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
330         rewrite to avoid "else if" and "else" constructs.  Should be
331         a no-op in practice.
332
333 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
334
335         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
336         of lexical block.
337
338 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
339
340         PR c++/17132
341         * eval.c: Update all calls to find_overload_match.
342         * valarith.c: Likewise.
343         (value_user_defined_cpp_op, value_user_defined_op): New
344         argument NOSIDE.  Update all callers.
345         * valops.c (find_overload_match): New argument NOSIDE.
346         * value.h (find_overload_match): Update signature.
347
348 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
349
350         * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
351         'items' methods instead of 'iteritems' method on dictionaries.
352
353 2014-08-15  Doug Evans  <dje@google.com>
354
355         * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
356         closer to use.
357
358 2014-08-15  Doug Evans  <dje@google.com>
359
360         * dwarf2read.c (dwarf_decode_lines_1): Add comment.
361
362 2014-08-15  Doug Evans  <dje@google.com>
363
364         * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
365
366 2014-08-15  Doug Evans  <dje@google.com>
367
368         * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
369         unused.
370
371 2014-08-15  Eli Zaretskii  <eliz@gnu.org>
372
373         * dcache.h: Include target.h, to avoid compile time warnings.
374
375 2014-08-15  Joel Brobecker  <brobecker@adacore.com>
376
377         * gdbarch.sh: #include "frame.h" in gdbarch.h.  Delete "struct
378         frame_info" partial declaration.
379         * gdbarch.h: Regenerate.
380
381 2014-08-15  Yao Qi  <yao@codesourcery.com>
382
383         * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
384         Add parameter 'decode_for_pst_p'.  Callers update.
385
386 2014-08-13  Yao Qi  <yao@codesourcery.com>
387
388         PR build/17104
389         * configure.ac: Use local variable 'pos'.
390         * configure: Regenerated.
391
392 2014-08-11  Doug Evans  <dje@google.com>
393
394         * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
395         message, it is redundant with "Reading symbols from ..." message.
396
397 2014-08-10  Doug Evans  <xdje42@gmail.com>
398
399         * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
400
401 2014-08-09  Yao Qi  <yao@codesourcery.com>
402
403         PR remote/9053
404         * remote.c (remote_xfer_partial): Remove dead code.
405
406 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
407
408         * ia64-linux-tdep.c: Include "regset.h".
409         (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
410         (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
411         (ia64_linux_supply_fpregset): New function.
412         (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
413         (ia64_linux_regset_from_core_section): New function.
414         (ia64_linux_init_abi): Set regset_from_core_section gdbarch
415         method.
416
417 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
418
419         * m68klinux-tdep.c: Include "regset.h".
420         (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
421         (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
422         (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
423         (m68k_linux_regset_from_core_section): New function.
424         (m68k_linux_init_abi): Set regset_from_core_section gdbarch
425         method.
426
427 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
428
429         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
430         function.  Move logic to...
431         (tilegx_linux_regmap): ... this new register map.
432         (tilegx_linux_regset): Refer to register map, replace supply
433         method by regcache_supply_regset, and add collect method.
434         * tilegx-tdep.h (enum tilegx_regnum): New enum value
435         TILEGX_FIRST_EASY_REGNUM.
436
437 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
438
439         * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
440         that calls regcache_supply_regset and handles the EPC register
441         separately.  Move main logic to...
442         (score7_linux_gregmap): ... this new register map.
443         (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
444         (score7_linux_gregset): Refer to register map.  Add collect method.
445         (score7_linux_regset_from_core_section): Replace
446         sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
447         * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
448         (struct regset): Delete unused forward declaraction.
449         (struct pt_regs): Delete structure definition.
450         (elf_gregset_t): Delete typedef.
451
452 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
453
454         * nios2-linux-tdep.c (nios2_collect_gregset): New function.
455         (nios2_core_regset): Add collect method.
456
457 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
458
459         * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
460         platform-independent and don't write to read-only input buffer.
461         (m32r_linux_collect_gregset): New function.
462         (m32r_linux_gregset): Add collect method.
463
464 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
465
466         * hppa-linux-tdep.c (greg_map): Rename to...
467         (hppa_linux_gregmap): ... this.  Also convert to
468         regcache_map_entry format.
469         (hppa_linux_supply_regset): Delete function.
470         (hppa_linux_supply_fpregset): Delete function.  Move logic to...
471         (hppa_linux_fpregmap): ... this new register map.
472         (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
473         register map, replace supply method by regcache_supply_regset, and
474         add collect method regcache_collect_regset.
475
476 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
477
478         * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
479         (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
480         (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
481         (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
482         (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
483         (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
484         (frv_linux_supply_gregset): Replace main logic by call to
485         regcache_supply_regset, but keep clearing gr32-gr63.
486         (frv_linux_supply_fpregset): Delete function.
487         (frv_linux_gregset): Refer to appropriate register map and add
488         regcache_collect_regset as the collect method.
489         (frv_linux_fpregset): Likewise.  Also exchange the supply method
490         by regcache_supply_regset.
491
492 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
493
494         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
495         by call to alpha_supply_int_regs.
496         (alpha_linux_collect_gregset): New function.
497         (alpha_linux_supply_fpregset): Replace logic by call to
498         alpha_supply_fp_regs.
499         (alpha_linux_collect_fpregset): New function.
500         (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
501
502 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
503
504         * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
505         by call to regcache_collect_regset.
506         (supply_gregset, supply_fpregset): Call regcache_supply_regset
507         instead of aarch64_linux_supply_gregset/_fpregset.
508         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
509         (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
510         header file instead.
511         (aarch64_linux_supply_gregset, supply_gregset_from_core)
512         (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
513         functions.  Move logic to ...
514         (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
515         register maps.
516         (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
517         refer to new register maps, replace *_regset_from_core by
518         regcache_supply_regset, and also use regcache_collect_regset.
519         * aarch64-linux-tdep.h: Include "regset.h".
520         (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
521         Delete prototypes.
522         (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
523         macros, moved from C source file.
524         (aarch64_linux_gregset, aarch64_linux_fpregset): New global
525         variable declarations.
526
527 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
528
529         * s390-linux-nat.c: Include "regset.h".
530         (regmap_gregset): Delete macro.
531         (s390_64_regmap_gregset): New register map for
532         regcache_supply/_collect_regset.
533         (s390_64_gregset): New regset.
534         (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
535         (regmap_fpregset): Delete macro.
536         (s390_native_supply, s390_native_collect): Delete functions.
537         (supply_gregset, fill_gregset): Replace s390-specific regmap
538         handling by a call to regcache_supply/_collect_regset.
539         (supply_fpregset, fill_fpregset): Call regcache_supply/
540         _collect_regset instead of s390_native_supply/_collect.
541         (fetch_regset, store_regset): Likewise.  Also change the last
542         parameter to a regset instead of a regmap.
543         (s390_linux_fetch_inferior_registers)
544         (390_linux_store_inferior_registers): Adjust last parameter in
545         calls to fetch_regset and store_regset.
546         * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
547         (s390_gregmap): ... this.  Also make static const and convert to
548         regcache_map_entry format.
549         (s390x_regmap_gregset): Delete.
550         (s390_regmap_fpregset): Rename to...
551         (s390_fpregmap): ... this.  Make static const and convert to
552         regcache_map_entry format.
553         (s390_regmap_upper, s390_regmap_last_break)
554         (s390x_regmap_last_break, s390_regmap_system_call)
555         (s390_regmap_tdb): Likewise.
556         (s390_supply_regset, s390_collect_regset): Remove functions.
557         (s390_supply_tdb_regset): Call regcache_supply_regset instead of
558         s390_supply_regset.
559         (s390_gregset, s390_fpregset, s390_upper_regset)
560         (s390_last_break_regset, s390x_last_break_regset)
561         (s390_system_call_regset, s390_tdb_regset): Make global and
562         replace s390_supply/_collect_regset by regcache_supply/
563         _collect_regset.
564         (s390x_gregset): Delete.
565         (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
566         * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
567         (s390_regmap_fpregset, s390_regmap_last_break)
568         (s390x_regmap_last_break, s390_regmap_system_call)
569         (s390_regmap_tdb): Delete global variable declarations.
570         (s390_gregset, s390_fpregset, s390_last_break_regset)
571         (s390x_last_break_regset, s390_system_call_regset)
572         (s390_tdb_regset): New global variable declarations.
573
574 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
575
576         * regcache.c: Include "regset.h".
577         (regcache_transfer_regset): New local function.
578         (regcache_supply_regset, regcache_collect_regset): New functions.
579         * regcache.h (struct regcache_map_entry): New structure.
580         (REGCACHE_MAP_SKIP): New enum value.
581         (regcache_supply_regset, regcache_collect_regset): New prototypes.
582
583 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
584
585         * regset.h (struct regset): Rename 'descr' field to 'regmap'.
586         * ppc-linux-tdep.c (ppc_linux_supply_gregset)
587         (ppc_linux_collect_gregset ): Likewise.
588         * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
589         (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
590         (ppc_collect_vrregset): Likewise.
591         * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
592         Likewise.
593
594 2014-08-07  Yao Qi  <yao@codesourcery.com>
595
596         * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
597         * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
598         * remote.c (remote_read_bytes): Likewise.
599
600 2014-08-07  Yao Qi  <yao@codesourcery.com>
601
602         * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
603
604 2014-08-07  Yao Qi  <yao@codesourcery.com>
605
606         PR remote/17230
607         * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
608         TARGET_XFER_OK instead of 0.
609
610 2014-08-07  Gary Benson  <gbenson@redhat.com>
611
612         * common/common-defs.h: Include errno.h.
613         * defs.h: Do not include errno.h.
614         * ada-typeprint.c: Likewise.
615         * c-typeprint.c: Likewise.
616         * core-regset.c: Likewise.
617         * corefile.c: Likewise.
618         * corelow.c: Likewise.
619         * event-loop.c: Likewise.
620         * f-typeprint.c: Likewise.
621         * gnu-nat.c: Likewise.
622         * go32-nat.c: Likewise.
623         * i386gnu-nat.c: Likewise.
624         * m2-typeprint.c: Likewise.
625         * nat/linux-btrace.c: Likewise.
626         * p-typeprint.c: Likewise.
627         * procfs.c: Likewise.
628         * remote-sim.c: Likewise.
629         * rs6000-nat.c: Likewise.
630         * target.c: Likewise.
631         * typeprint.c: Likewise.
632         * ui-file.c: Likewise.
633         * valops.c: Likewise.
634         * valprint.c: Likewise.
635
636 2014-08-07  Gary Benson  <gbenson@redhat.com>
637
638         * common/common-defs.h: Include string.h.
639         * aarch64-tdep.c: Do not include string.h.
640         * ada-exp.y: Likewise.
641         * ada-lang.c: Likewise.
642         * ada-lex.l: Likewise.
643         * ada-typeprint.c: Likewise.
644         * ada-valprint.c: Likewise.
645         * aix-thread.c: Likewise.
646         * alpha-linux-tdep.c: Likewise.
647         * alpha-mdebug-tdep.c: Likewise.
648         * alpha-nat.c: Likewise.
649         * alpha-osf1-tdep.c: Likewise.
650         * alpha-tdep.c: Likewise.
651         * alphanbsd-tdep.c: Likewise.
652         * amd64-dicos-tdep.c: Likewise.
653         * amd64-linux-tdep.c: Likewise.
654         * amd64-nat.c: Likewise.
655         * amd64-sol2-tdep.c: Likewise.
656         * amd64fbsd-tdep.c: Likewise.
657         * amd64obsd-tdep.c: Likewise.
658         * arch-utils.c: Likewise.
659         * arm-linux-nat.c: Likewise.
660         * arm-linux-tdep.c: Likewise.
661         * arm-tdep.c: Likewise.
662         * arm-wince-tdep.c: Likewise.
663         * armbsd-tdep.c: Likewise.
664         * armnbsd-nat.c: Likewise.
665         * armnbsd-tdep.c: Likewise.
666         * armobsd-tdep.c: Likewise.
667         * avr-tdep.c: Likewise.
668         * ax-gdb.c: Likewise.
669         * ax-general.c: Likewise.
670         * bcache.c: Likewise.
671         * bfin-tdep.c: Likewise.
672         * breakpoint.c: Likewise.
673         * build-id.c: Likewise.
674         * buildsym.c: Likewise.
675         * c-exp.y: Likewise.
676         * c-lang.c: Likewise.
677         * c-typeprint.c: Likewise.
678         * c-valprint.c: Likewise.
679         * charset.c: Likewise.
680         * cli-out.c: Likewise.
681         * cli/cli-cmds.c: Likewise.
682         * cli/cli-decode.c: Likewise.
683         * cli/cli-dump.c: Likewise.
684         * cli/cli-interp.c: Likewise.
685         * cli/cli-logging.c: Likewise.
686         * cli/cli-script.c: Likewise.
687         * cli/cli-setshow.c: Likewise.
688         * cli/cli-utils.c: Likewise.
689         * coffread.c: Likewise.
690         * common/agent.c: Likewise.
691         * common/buffer.c: Likewise.
692         * common/buffer.h: Likewise.
693         * common/common-utils.c: Likewise.
694         * common/filestuff.c: Likewise.
695         * common/filestuff.c: Likewise.
696         * common/format.c: Likewise.
697         * common/print-utils.c: Likewise.
698         * common/rsp-low.c: Likewise.
699         * common/signals.c: Likewise.
700         * common/vec.h: Likewise.
701         * common/xml-utils.c: Likewise.
702         * core-regset.c: Likewise.
703         * corefile.c: Likewise.
704         * corelow.c: Likewise.
705         * cp-abi.c: Likewise.
706         * cp-name-parser.y: Likewise.
707         * cp-support.c: Likewise.
708         * cp-valprint.c: Likewise.
709         * cris-tdep.c: Likewise.
710         * d-exp.y: Likewise.
711         * darwin-nat.c: Likewise.
712         * dbxread.c: Likewise.
713         * dcache.c: Likewise.
714         * demangle.c: Likewise.
715         * dicos-tdep.c: Likewise.
716         * disasm.c: Likewise.
717         * doublest.c: Likewise.
718         * dsrec.c: Likewise.
719         * dummy-frame.c: Likewise.
720         * dwarf2-frame.c: Likewise.
721         * dwarf2loc.c: Likewise.
722         * dwarf2read.c: Likewise.
723         * elfread.c: Likewise.
724         * environ.c: Likewise.
725         * eval.c: Likewise.
726         * event-loop.c: Likewise.
727         * exceptions.c: Likewise.
728         * exec.c: Likewise.
729         * expprint.c: Likewise.
730         * f-exp.y: Likewise.
731         * f-lang.c: Likewise.
732         * f-typeprint.c: Likewise.
733         * f-valprint.c: Likewise.
734         * fbsd-nat.c: Likewise.
735         * findcmd.c: Likewise.
736         * findvar.c: Likewise.
737         * fork-child.c: Likewise.
738         * frame.c: Likewise.
739         * frv-linux-tdep.c: Likewise.
740         * frv-tdep.c: Likewise.
741         * gdb.c: Likewise.
742         * gdb_bfd.c: Likewise.
743         * gdbarch.c: Likewise.
744         * gdbarch.sh: Likewise.
745         * gdbtypes.c: Likewise.
746         * gnu-nat.c: Likewise.
747         * gnu-v2-abi.c: Likewise.
748         * gnu-v3-abi.c: Likewise.
749         * go-exp.y: Likewise.
750         * go-lang.c: Likewise.
751         * go32-nat.c: Likewise.
752         * guile/guile.c: Likewise.
753         * guile/scm-auto-load.c: Likewise.
754         * hppa-hpux-tdep.c: Likewise.
755         * hppa-linux-nat.c: Likewise.
756         * hppanbsd-tdep.c: Likewise.
757         * hppaobsd-tdep.c: Likewise.
758         * i386-cygwin-tdep.c: Likewise.
759         * i386-dicos-tdep.c: Likewise.
760         * i386-linux-tdep.c: Likewise.
761         * i386-nto-tdep.c: Likewise.
762         * i386-sol2-tdep.c: Likewise.
763         * i386-tdep.c: Likewise.
764         * i386bsd-tdep.c: Likewise.
765         * i386gnu-nat.c: Likewise.
766         * i386nbsd-tdep.c: Likewise.
767         * i386obsd-tdep.c: Likewise.
768         * i387-tdep.c: Likewise.
769         * ia64-libunwind-tdep.c: Likewise.
770         * ia64-linux-nat.c: Likewise.
771         * inf-child.c: Likewise.
772         * inf-ptrace.c: Likewise.
773         * inf-ttrace.c: Likewise.
774         * infcall.c: Likewise.
775         * infcmd.c: Likewise.
776         * inflow.c: Likewise.
777         * infrun.c: Likewise.
778         * interps.c: Likewise.
779         * iq2000-tdep.c: Likewise.
780         * irix5-nat.c: Likewise.
781         * jv-exp.y: Likewise.
782         * jv-lang.c: Likewise.
783         * jv-typeprint.c: Likewise.
784         * jv-valprint.c: Likewise.
785         * language.c: Likewise.
786         * linux-fork.c: Likewise.
787         * linux-nat.c: Likewise.
788         * lm32-tdep.c: Likewise.
789         * m2-exp.y: Likewise.
790         * m2-typeprint.c: Likewise.
791         * m32c-tdep.c: Likewise.
792         * m32r-linux-nat.c: Likewise.
793         * m32r-linux-tdep.c: Likewise.
794         * m32r-rom.c: Likewise.
795         * m32r-tdep.c: Likewise.
796         * m68hc11-tdep.c: Likewise.
797         * m68k-tdep.c: Likewise.
798         * m68kbsd-tdep.c: Likewise.
799         * m68klinux-nat.c: Likewise.
800         * m68klinux-tdep.c: Likewise.
801         * m88k-tdep.c: Likewise.
802         * machoread.c: Likewise.
803         * macrocmd.c: Likewise.
804         * main.c: Likewise.
805         * mdebugread.c: Likewise.
806         * mem-break.c: Likewise.
807         * memattr.c: Likewise.
808         * memory-map.c: Likewise.
809         * mep-tdep.c: Likewise.
810         * mi/mi-cmd-break.c: Likewise.
811         * mi/mi-cmd-disas.c: Likewise.
812         * mi/mi-cmd-env.c: Likewise.
813         * mi/mi-cmd-stack.c: Likewise.
814         * mi/mi-cmd-var.c: Likewise.
815         * mi/mi-cmds.c: Likewise.
816         * mi/mi-console.c: Likewise.
817         * mi/mi-getopt.c: Likewise.
818         * mi/mi-interp.c: Likewise.
819         * mi/mi-main.c: Likewise.
820         * mi/mi-parse.c: Likewise.
821         * microblaze-rom.c: Likewise.
822         * microblaze-tdep.c: Likewise.
823         * mingw-hdep.c: Likewise.
824         * minidebug.c: Likewise.
825         * minsyms.c: Likewise.
826         * mips-irix-tdep.c: Likewise.
827         * mips-linux-tdep.c: Likewise.
828         * mips-tdep.c: Likewise.
829         * mips64obsd-tdep.c: Likewise.
830         * mipsnbsd-tdep.c: Likewise.
831         * mipsread.c: Likewise.
832         * mn10300-linux-tdep.c: Likewise.
833         * mn10300-tdep.c: Likewise.
834         * monitor.c: Likewise.
835         * moxie-tdep.c: Likewise.
836         * mt-tdep.c: Likewise.
837         * nat/linux-btrace.c: Likewise.
838         * nat/linux-osdata.c: Likewise.
839         * nat/linux-procfs.c: Likewise.
840         * nat/linux-ptrace.c: Likewise.
841         * nat/linux-waitpid.c: Likewise.
842         * nbsd-tdep.c: Likewise.
843         * nios2-linux-tdep.c: Likewise.
844         * nto-procfs.c: Likewise.
845         * nto-tdep.c: Likewise.
846         * objc-lang.c: Likewise.
847         * objfiles.c: Likewise.
848         * opencl-lang.c: Likewise.
849         * osabi.c: Likewise.
850         * osdata.c: Likewise.
851         * p-exp.y: Likewise.
852         * p-lang.c: Likewise.
853         * p-typeprint.c: Likewise.
854         * parse.c: Likewise.
855         * posix-hdep.c: Likewise.
856         * ppc-linux-nat.c: Likewise.
857         * ppc-sysv-tdep.c: Likewise.
858         * ppcfbsd-tdep.c: Likewise.
859         * ppcnbsd-tdep.c: Likewise.
860         * ppcobsd-tdep.c: Likewise.
861         * printcmd.c: Likewise.
862         * procfs.c: Likewise.
863         * prologue-value.c: Likewise.
864         * python/py-auto-load.c: Likewise.
865         * python/py-gdb-readline.c: Likewise.
866         * ravenscar-thread.c: Likewise.
867         * regcache.c: Likewise.
868         * registry.c: Likewise.
869         * remote-fileio.c: Likewise.
870         * remote-m32r-sdi.c: Likewise.
871         * remote-mips.c: Likewise.
872         * remote-notif.c: Likewise.
873         * remote-sim.c: Likewise.
874         * remote.c: Likewise.
875         * reverse.c: Likewise.
876         * rs6000-aix-tdep.c: Likewise.
877         * ser-base.c: Likewise.
878         * ser-go32.c: Likewise.
879         * ser-mingw.c: Likewise.
880         * ser-pipe.c: Likewise.
881         * ser-tcp.c: Likewise.
882         * ser-unix.c: Likewise.
883         * serial.c: Likewise.
884         * sh-tdep.c: Likewise.
885         * sh64-tdep.c: Likewise.
886         * shnbsd-tdep.c: Likewise.
887         * skip.c: Likewise.
888         * sol-thread.c: Likewise.
889         * solib-dsbt.c: Likewise.
890         * solib-frv.c: Likewise.
891         * solib-osf.c: Likewise.
892         * solib-som.c: Likewise.
893         * solib-spu.c: Likewise.
894         * solib-target.c: Likewise.
895         * solib.c: Likewise.
896         * somread.c: Likewise.
897         * source.c: Likewise.
898         * sparc-nat.c: Likewise.
899         * sparc-sol2-tdep.c: Likewise.
900         * sparc-tdep.c: Likewise.
901         * sparc64-tdep.c: Likewise.
902         * sparc64fbsd-tdep.c: Likewise.
903         * sparc64nbsd-tdep.c: Likewise.
904         * sparcnbsd-tdep.c: Likewise.
905         * spu-linux-nat.c: Likewise.
906         * spu-multiarch.c: Likewise.
907         * spu-tdep.c: Likewise.
908         * stabsread.c: Likewise.
909         * stack.c: Likewise.
910         * std-regs.c: Likewise.
911         * symfile.c: Likewise.
912         * symmisc.c: Likewise.
913         * symtab.c: Likewise.
914         * target.c: Likewise.
915         * thread.c: Likewise.
916         * tilegx-linux-nat.c: Likewise.
917         * tilegx-tdep.c: Likewise.
918         * top.c: Likewise.
919         * tracepoint.c: Likewise.
920         * tui/tui-command.c: Likewise.
921         * tui/tui-data.c: Likewise.
922         * tui/tui-disasm.c: Likewise.
923         * tui/tui-file.c: Likewise.
924         * tui/tui-layout.c: Likewise.
925         * tui/tui-out.c: Likewise.
926         * tui/tui-regs.c: Likewise.
927         * tui/tui-source.c: Likewise.
928         * tui/tui-stack.c: Likewise.
929         * tui/tui-win.c: Likewise.
930         * tui/tui-windata.c: Likewise.
931         * tui/tui-winsource.c: Likewise.
932         * typeprint.c: Likewise.
933         * ui-file.c: Likewise.
934         * ui-out.c: Likewise.
935         * user-regs.c: Likewise.
936         * utils.c: Likewise.
937         * v850-tdep.c: Likewise.
938         * valarith.c: Likewise.
939         * valops.c: Likewise.
940         * valprint.c: Likewise.
941         * value.c: Likewise.
942         * varobj.c: Likewise.
943         * vax-tdep.c: Likewise.
944         * vaxnbsd-tdep.c: Likewise.
945         * vaxobsd-tdep.c: Likewise.
946         * windows-nat.c: Likewise.
947         * xcoffread.c: Likewise.
948         * xml-support.c: Likewise.
949         * xstormy16-tdep.c: Likewise.
950         * xtensa-linux-nat.c: Likewise.
951
952 2014-08-07  Gary Benson  <gbenson@redhat.com>
953
954         * common/common-defs.h: Include gdb_assert.h.
955         * aarch64-tdep.c: Do not include gdb_assert.h.
956         * addrmap.c: Likewise.
957         * aix-thread.c: Likewise.
958         * alpha-linux-tdep.c: Likewise.
959         * alpha-mdebug-tdep.c: Likewise.
960         * alphanbsd-tdep.c: Likewise.
961         * amd64-nat.c: Likewise.
962         * amd64-tdep.c: Likewise.
963         * amd64bsd-nat.c: Likewise.
964         * amd64fbsd-nat.c: Likewise.
965         * amd64fbsd-tdep.c: Likewise.
966         * amd64nbsd-nat.c: Likewise.
967         * amd64nbsd-tdep.c: Likewise.
968         * amd64obsd-nat.c: Likewise.
969         * amd64obsd-tdep.c: Likewise.
970         * arch-utils.c: Likewise.
971         * arm-tdep.c: Likewise.
972         * armbsd-tdep.c: Likewise.
973         * auxv.c: Likewise.
974         * bcache.c: Likewise.
975         * bfin-tdep.c: Likewise.
976         * blockframe.c: Likewise.
977         * breakpoint.c: Likewise.
978         * bsd-kvm.c: Likewise.
979         * bsd-uthread.c: Likewise.
980         * buildsym.c: Likewise.
981         * c-exp.y: Likewise.
982         * c-lang.c: Likewise.
983         * charset.c: Likewise.
984         * cleanups.c: Likewise.
985         * cli-out.c: Likewise.
986         * cli/cli-decode.c: Likewise.
987         * cli/cli-dump.c: Likewise.
988         * cli/cli-logging.c: Likewise.
989         * cli/cli-script.c: Likewise.
990         * cli/cli-utils.c: Likewise.
991         * coffread.c: Likewise.
992         * common/common-utils.c: Likewise.
993         * common/queue.h: Likewise.
994         * common/signals.c: Likewise.
995         * common/vec.h: Likewise.
996         * complaints.c: Likewise.
997         * completer.c: Likewise.
998         * corelow.c: Likewise.
999         * cp-abi.c: Likewise.
1000         * cp-name-parser.y: Likewise.
1001         * cp-namespace.c: Likewise.
1002         * cp-support.c: Likewise.
1003         * cris-tdep.c: Likewise.
1004         * dbxread.c: Likewise.
1005         * dictionary.c: Likewise.
1006         * doublest.c: Likewise.
1007         * dsrec.c: Likewise.
1008         * dummy-frame.c: Likewise.
1009         * dwarf2-frame-tailcall.c: Likewise.
1010         * dwarf2-frame.c: Likewise.
1011         * dwarf2expr.c: Likewise.
1012         * dwarf2loc.c: Likewise.
1013         * dwarf2read.c: Likewise.
1014         * eval.c: Likewise.
1015         * event-loop.c: Likewise.
1016         * exceptions.c: Likewise.
1017         * expprint.c: Likewise.
1018         * f-valprint.c: Likewise.
1019         * fbsd-nat.c: Likewise.
1020         * findvar.c: Likewise.
1021         * frame-unwind.c: Likewise.
1022         * frame.c: Likewise.
1023         * frv-tdep.c: Likewise.
1024         * gcore.c: Likewise.
1025         * gdb-dlfcn.c: Likewise.
1026         * gdb_bfd.c: Likewise.
1027         * gdbarch.c: Likewise.
1028         * gdbarch.sh: Likewise.
1029         * gdbtypes.c: Likewise.
1030         * gnu-nat.c: Likewise.
1031         * gnu-v3-abi.c: Likewise.
1032         * go-lang.c: Likewise.
1033         * guile/scm-exception.c: Likewise.
1034         * guile/scm-gsmob.c: Likewise.
1035         * guile/scm-lazy-string.c: Likewise.
1036         * guile/scm-math.c: Likewise.
1037         * guile/scm-pretty-print.c: Likewise.
1038         * guile/scm-safe-call.c: Likewise.
1039         * guile/scm-utils.c: Likewise.
1040         * guile/scm-value.c: Likewise.
1041         * h8300-tdep.c: Likewise.
1042         * hppa-hpux-nat.c: Likewise.
1043         * hppa-tdep.c: Likewise.
1044         * hppanbsd-tdep.c: Likewise.
1045         * hppaobsd-tdep.c: Likewise.
1046         * i386-darwin-nat.c: Likewise.
1047         * i386-darwin-tdep.c: Likewise.
1048         * i386-nto-tdep.c: Likewise.
1049         * i386-tdep.c: Likewise.
1050         * i386bsd-nat.c: Likewise.
1051         * i386fbsd-tdep.c: Likewise.
1052         * i386gnu-nat.c: Likewise.
1053         * i386nbsd-tdep.c: Likewise.
1054         * i386obsd-tdep.c: Likewise.
1055         * i387-tdep.c: Likewise.
1056         * ia64-libunwind-tdep.c: Likewise.
1057         * ia64-tdep.c: Likewise.
1058         * inf-ptrace.c: Likewise.
1059         * inf-ttrace.c: Likewise.
1060         * infcall.c: Likewise.
1061         * infcmd.c: Likewise.
1062         * infrun.c: Likewise.
1063         * inline-frame.c: Likewise.
1064         * interps.c: Likewise.
1065         * jv-lang.c: Likewise.
1066         * jv-typeprint.c: Likewise.
1067         * linux-fork.c: Likewise.
1068         * linux-nat.c: Likewise.
1069         * linux-thread-db.c: Likewise.
1070         * m32c-tdep.c: Likewise.
1071         * m32r-linux-nat.c: Likewise.
1072         * m32r-tdep.c: Likewise.
1073         * m68k-tdep.c: Likewise.
1074         * m68kbsd-nat.c: Likewise.
1075         * m68kbsd-tdep.c: Likewise.
1076         * m88k-tdep.c: Likewise.
1077         * machoread.c: Likewise.
1078         * macroexp.c: Likewise.
1079         * macrotab.c: Likewise.
1080         * maint.c: Likewise.
1081         * mdebugread.c: Likewise.
1082         * memory-map.c: Likewise.
1083         * mep-tdep.c: Likewise.
1084         * mi/mi-common.c: Likewise.
1085         * microblaze-tdep.c: Likewise.
1086         * mingw-hdep.c: Likewise.
1087         * mips-linux-nat.c: Likewise.
1088         * mips-linux-tdep.c: Likewise.
1089         * mips-tdep.c: Likewise.
1090         * mips64obsd-tdep.c: Likewise.
1091         * mipsnbsd-tdep.c: Likewise.
1092         * mn10300-linux-tdep.c: Likewise.
1093         * mn10300-tdep.c: Likewise.
1094         * moxie-tdep.c: Likewise.
1095         * mt-tdep.c: Likewise.
1096         * nat/linux-btrace.c: Likewise.
1097         * nat/linux-osdata.c: Likewise.
1098         * nat/linux-ptrace.c: Likewise.
1099         * nat/mips-linux-watch.c: Likewise.
1100         * nios2-linux-tdep.c: Likewise.
1101         * nios2-tdep.c: Likewise.
1102         * objc-lang.c: Likewise.
1103         * objfiles.c: Likewise.
1104         * obsd-nat.c: Likewise.
1105         * opencl-lang.c: Likewise.
1106         * osabi.c: Likewise.
1107         * parse.c: Likewise.
1108         * ppc-linux-nat.c: Likewise.
1109         * ppc-sysv-tdep.c: Likewise.
1110         * ppcfbsd-nat.c: Likewise.
1111         * ppcfbsd-tdep.c: Likewise.
1112         * ppcnbsd-nat.c: Likewise.
1113         * ppcnbsd-tdep.c: Likewise.
1114         * ppcobsd-nat.c: Likewise.
1115         * ppcobsd-tdep.c: Likewise.
1116         * printcmd.c: Likewise.
1117         * procfs.c: Likewise.
1118         * prologue-value.c: Likewise.
1119         * psymtab.c: Likewise.
1120         * python/py-lazy-string.c: Likewise.
1121         * python/py-value.c: Likewise.
1122         * regcache.c: Likewise.
1123         * reggroups.c: Likewise.
1124         * registry.c: Likewise.
1125         * remote-sim.c: Likewise.
1126         * remote.c: Likewise.
1127         * rs6000-aix-tdep.c: Likewise.
1128         * rs6000-tdep.c: Likewise.
1129         * s390-linux-tdep.c: Likewise.
1130         * score-tdep.c: Likewise.
1131         * ser-base.c: Likewise.
1132         * ser-mingw.c: Likewise.
1133         * sh-tdep.c: Likewise.
1134         * sh64-tdep.c: Likewise.
1135         * solib-darwin.c: Likewise.
1136         * solib-spu.c: Likewise.
1137         * solib-svr4.c: Likewise.
1138         * source.c: Likewise.
1139         * sparc-nat.c: Likewise.
1140         * sparc-sol2-tdep.c: Likewise.
1141         * sparc-tdep.c: Likewise.
1142         * sparc64-sol2-tdep.c: Likewise.
1143         * sparc64-tdep.c: Likewise.
1144         * sparc64fbsd-tdep.c: Likewise.
1145         * sparc64nbsd-tdep.c: Likewise.
1146         * sparc64obsd-tdep.c: Likewise.
1147         * sparcnbsd-tdep.c: Likewise.
1148         * sparcobsd-tdep.c: Likewise.
1149         * spu-multiarch.c: Likewise.
1150         * spu-tdep.c: Likewise.
1151         * stabsread.c: Likewise.
1152         * stack.c: Likewise.
1153         * symfile.c: Likewise.
1154         * symtab.c: Likewise.
1155         * target-descriptions.c: Likewise.
1156         * target-memory.c: Likewise.
1157         * target.c: Likewise.
1158         * tic6x-linux-tdep.c: Likewise.
1159         * tic6x-tdep.c: Likewise.
1160         * tilegx-linux-nat.c: Likewise.
1161         * tilegx-tdep.c: Likewise.
1162         * top.c: Likewise.
1163         * tramp-frame.c: Likewise.
1164         * tui/tui-out.c: Likewise.
1165         * tui/tui-winsource.c: Likewise.
1166         * ui-out.c: Likewise.
1167         * user-regs.c: Likewise.
1168         * utils.c: Likewise.
1169         * v850-tdep.c: Likewise.
1170         * valops.c: Likewise.
1171         * value.c: Likewise.
1172         * varobj.c: Likewise.
1173         * vax-nat.c: Likewise.
1174         * xml-syscall.c: Likewise.
1175         * xml-tdesc.c: Likewise.
1176         * xstormy16-tdep.c: Likewise.
1177         * xtensa-linux-nat.c: Likewise.
1178         * xtensa-tdep.c: Likewise.
1179
1180 2014-08-07  Gary Benson  <gbenson@redhat.com>
1181
1182         * common/common-defs.h: Include common-utils.h.
1183         * defs.h: Do not include common-utils.h.
1184         * common/gdb_assert.h: Likewise.
1185         * darwin-nat.h: Likewise.
1186         * nat/linux-btrace.c: Likewise.
1187         * target/waitstatus.h: Likewise.
1188
1189 2014-08-07  Gary Benson  <gbenson@redhat.com>
1190
1191         * common/common-defs.h: Include ptid.h.
1192         * defs.h: Do not include ptid.h.
1193         * inferior.h: Likewise.
1194         * infrun.h: Likewise.
1195         * nat/linux-btrace.h: Likewise.
1196         * nat/linux-osdata.h: Likewise.
1197         * target/waitstatus.h: Likewise.
1198
1199 2014-08-07  Gary Benson  <gbenson@redhat.com>
1200
1201         * common/common-defs.h: Include gdb_locale.h.
1202         * defs.h: Do not include gdb_locale.h.
1203
1204 2014-08-07  Gary Benson  <gbenson@redhat.com>
1205
1206         * common/common-defs.h: Include gdb/signals.h.
1207         * defs.h: Do not include gdb/signals.h.
1208
1209 2014-08-07  Gary Benson  <gbenson@redhat.com>
1210
1211         * common/common-defs.h: Include pathmax.h.
1212         * defs.h: Do not include pathmax.h.
1213
1214 2014-08-07  Gary Benson  <gbenson@redhat.com>
1215
1216         * common/common-defs.h: Include libiberty.h.
1217         * defs.h: Do not include libiberty.h.
1218         * common/queue.h: Likewise.
1219         * cp-name-parser.y: Likewise.
1220         * mi/mi-cmd-catch.c: Likewise.
1221         * python/python.c: Likewise.
1222
1223 2014-08-07  Gary Benson  <gbenson@redhat.com>
1224
1225         * common/common-defs.h: Include ansidecl.h.
1226         * defs.h: Do not include ansidecl.h.
1227         * common/buffer.h: Likewise.
1228         * common/common-utils.h: Likewise.
1229
1230 2014-08-07  Gary Benson  <gbenson@redhat.com>
1231
1232         * common/common-defs.h: Include stddef.h.
1233         * defs.h: Do not include stddef.h.
1234         * common/common-utils.h: Likewise.
1235         * amd64fbsd-nat.c: Likewise.
1236         * bcache.c: Likewise.
1237         * charset.c: Likewise.
1238         * common/buffer.h: Likewise.
1239         * common/vec.h: Likewise.
1240         * i386bsd-nat.c: Likewise.
1241         * nat/linux-btrace.h: Likewise.
1242         * ppcfbsd-nat.c: Likewise.
1243         * ppcnbsd-tdep.h: Likewise.
1244         * ppcobsd-nat.c: Likewise.
1245         * ppcobsd-tdep.h: Likewise.
1246         * python/py-gdb-readline.c: Likewise.
1247
1248 2014-08-07  Gary Benson  <gbenson@redhat.com>
1249
1250         * common/common-defs.h: Include stdarg.h.
1251         * defs.h: Do not include stdarg.h.
1252         * ada-lang.c: Likewise.
1253         * common/common-utils.h: Likewise.
1254         * guile/scm-string.c: Likewise.
1255         * guile/scm-utils.c: Likewise.
1256         * m32c-tdep.c: Likewise.
1257
1258 2014-08-07  Gary Benson  <gbenson@redhat.com>
1259
1260         * common/common-defs.h: Include stdlib.h.
1261         * defs.h: Do not include stdlib.h.
1262         * addrmap.c: Likewise.
1263         * bcache.c: Likewise.
1264         * common/buffer.c: Likewise.
1265         * common/common-utils.c: Likewise.
1266         * cp-name-parser.y: Likewise.
1267         * go32-nat.c: Likewise.
1268         * mn10300-linux-tdep.c: Likewise.
1269         * nat/linux-osdata.c: Likewise.
1270         * tui/tui.c: Likewise.
1271         * windows-nat.c: Likewise.
1272
1273 2014-08-07  Gary Benson  <gbenson@redhat.com>
1274
1275         * common/common-defs.h: Include stdio.h.
1276         * defs.h: Do not include stdio.h.
1277         * ada-lang.c: Likewise.
1278         * common/buffer.c: Likewise.
1279         * common/common-utils.c: Likewise.
1280         * cp-name-parser.y: Likewise.
1281         * gnu-nat.c: Likewise.
1282         * go32-nat.c: Likewise.
1283         * i386gnu-nat.c: Likewise.
1284         * proc-api.c: Likewise.
1285         * proc-events.c: Likewise.
1286         * proc-flags.c: Likewise.
1287         * proc-why.c: Likewise.
1288         * python/python-internal.h: Likewise.
1289         * target-memory.c: Likewise.
1290         * tui/tui-io.c: Likewise.
1291         * tui/tui.c: Likewise.
1292
1293 2014-08-06  Simon Marchi  <simon.marchi@ericsson.com>
1294
1295         * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1296         (scan_dyntag_auxv): Same.
1297
1298 2014-08-06  Yao Qi  <yao@codesourcery.com>
1299
1300         * amd64-linux-nat.c: Remove duplicated include
1301         "x86-linux-nat.h".
1302         * i386-linux-nat.c: Likewise.
1303
1304 2014-08-06  Yao Qi  <yao@codesourcery.com>
1305
1306         * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1307         operand" with "Special opcode" in comments.
1308
1309 2014-08-05  Gary Benson  <gbenson@redhat.com>
1310
1311         * interps.c (initialize_interps): Remove prototype.
1312         (interpreter_initialized): Remove static global.
1313         (interp_add): Do not call initialize_interps.
1314         (initialize_interps): Remove function.
1315
1316 2014-08-05  Gary Benson  <gbenson@redhat.com>
1317
1318         * utils.c (vwarning): Remove spurious va_end.
1319
1320 2014-08-05  Alan Modra  <amodra@gmail.com>
1321
1322         * charset.c (convert_between_encodings): Cast result of obstack_base.
1323         * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1324         * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1325         (read_unwind_info): Use size_t for some locals.
1326         * jit.c (finalize_symtab): Likewise.
1327         * utils.c (hashtab_obstack_allocate): Likewise.
1328         * symmisc.c (print_objfile_statistics): Update format strings.
1329
1330 2014-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
1331
1332         * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1333         (Changes in GDB 7.8): ... here.
1334
1335 2014-08-04  Tom Tromey  <tromey@redhat.com>
1336
1337         * target.c (set_targetdebug): New function.
1338         (initialize_targets): Pass set_targetdebug when creating "set
1339         debug target".
1340
1341 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
1342
1343         * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1344         if detecting a variable-sized field that is not the last field.
1345         Fix struct type length computation.
1346
1347 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
1348
1349         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1350         Add debug trace.
1351
1352 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
1353
1354         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1355         Remove "+ 8" offset in computation of CHAIN_VMA.
1356
1357 2014-07-31  Doug Evans  <dje@google.com>
1358
1359         * inflow.c (child_terminal_inferior): Add comment.
1360         (child_terminal_ours_for_output): Add comment.
1361         (child_terminal_ours): Add comment.
1362         * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1363         (linux_nat_terminal_ours): Add comment.
1364
1365 2014-07-31  Gary Benson  <gbenson@redhat.com>
1366
1367         * common/btrace-common.h: Do not include defs.h or server.h.
1368         * nat/mips-linux-watch.h: Likewise.
1369         * gdb-dlfcn.h: Do not include defs.h.
1370         * tracefile.h: Likewise.
1371
1372 2014-07-30  Roland McGrath  <mcgrathr@google.com>
1373
1374         * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1375
1376 2014-07-30  Tom Tromey  <tromey@redhat.com>
1377
1378         * bsd-kvm.c (bsd_kvm_open): Constify.
1379         * corelow.c (core_open): Constify.
1380         * ctf.c (ctf_open): Constify.
1381         * dbug-rom.c (dbug_open): Constify.
1382         * exec.c (exec_open): Constify.
1383         * m32r-rom.c (m32r_open, mon2000_open): Constify.
1384         * microblaze-rom.c (picobug_open): Constify.
1385         * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1386         Constify.
1387         * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1388         * record-btrace.c (record_btrace_open): Constify.
1389         * record-full.c (record_full_core_open_1, record_full_open_1)
1390         (record_full_open): Constify.
1391         * remote-m32r-sdi.c (m32r_open): Constify.
1392         * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1393         (rockhopper_open, lsi_open): Constify.
1394         * remote-sim.c (gdbsim_open): Constify.
1395         * remote.c (remote_open, extended_remote_open, remote_open_1):
1396         Constify.
1397         * target.h (struct target_ops) <to_open>: Make "arg" const.
1398         * tracefile-tfile.c (tfile_open): Constify.
1399
1400 2014-07-30  Tom Tromey  <tromey@redhat.com>
1401
1402         * breakpoint.c (map_breakpoint_numbers): Update.
1403         * cli/cli-utils.c (get_number_trailer): Make "pp" const.  Update.
1404         (get_number_const): New function.
1405         (get_number): Rewrite using get_number_const.
1406         (init_number_or_range): Make "string" const.
1407         (number_is_in_list): Make "list" const.
1408         * cli/cli-utils.h (get_number_const): Declare.
1409         (struct get_number_or_range_state) <string, end_ptr>: Now const.
1410         (init_number_or_range, number_is_in_list): Update.
1411         * printcmd.c (map_display_numbers): Update.
1412         * value.c (value_from_history_ref): Constify.
1413         * value.h (value_from_history_ref): Update.
1414
1415 2014-07-30  Tom Tromey  <tromey@redhat.com>
1416
1417         * corefile.c (hook_type, call_extra_exec_file_hooks)
1418         (specify_exec_file_hook): Constify.
1419         * exec.c (exec_file_attach): Make "filename" const.
1420         * gdbcore.h (deprecated_exec_file_display_hook)
1421         (specify_exec_file_hook, exec_file_attach): Constify.
1422         * main.c (captured_main): Use catch_command_errors_const.
1423
1424 2014-07-30  Tom Tromey  <tromey@redhat.com>
1425
1426         * target.c (open_target): New function.
1427         (add_target_with_completer, add_deprecated_target_alias): Use
1428         set_cmd_sfunc, set_cmd_context.
1429         (debug_to_open): Remove.
1430         (setup_target_debug): Update.
1431
1432 2014-07-30  Yao Qi  <yao@codesourcery.com>
1433
1434         * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1435         comments.
1436         * parse.c (exp_iterate): Update comments.
1437
1438 2014-07-30  Gary Benson  <gbenson@redhat.com>
1439
1440         * common/common-defs.h: New file.
1441         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1442         * defs.h: Include common-defs.h.
1443         Do not include config.h or build-gnulib/config.h.
1444
1445 2014-07-30  Gary Benson  <gbenson@redhat.com>
1446
1447         * common/common-utils.h: Do not include config.h.
1448         * nat/linux-btrace.h: Likewise.
1449
1450 2014-07-30  Gary Benson  <gbenson@redhat.com>
1451
1452         * btrace.c: Include defs.h.
1453         * common/ptid.c: Include defs.h or server.h as appropriate.
1454         * nat/mips-linux-watch.c: Likewise.
1455
1456 2014-07-29  Tom Tromey  <tromey@redhat.com>
1457
1458         * target.c (target_is_pushed): Simplify.
1459
1460 2014-07-29  Joel Brobecker  <brobecker@adacore.com>
1461
1462         GDB 7.8 released.
1463
1464 2014-07-29  Yao Qi  <yao@codesourcery.com>
1465
1466         PR gdb/17206
1467         * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1468
1469 2014-07-28  Doug Evans  <xdje42@gmail.com>
1470
1471         PR guile/17203
1472         * guile/scm-param.c (pascm_parameter_defined_p): New function.
1473         (gdbscm_register_parameter_x): Call it.  Raise error for pre-existing
1474         parameters.
1475
1476 2014-07-28  Will Newton  <will.newton@linaro.org>
1477
1478         * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1479         (THUMB2_SET_R7_SIGRETURN2): Likewise.
1480         (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1481         (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1482         (THUMB2_EABI_SYSCALL): Likewise.
1483         (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1484         struct tramp_frame.
1485         (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1486         (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1487
1488 2014-07-27  Doug Evans  <xdje42@gmail.com>
1489
1490         * guile/scm-param.c (pascm_print_param_smob): Fix output.
1491
1492 2014-07-27  Doug Evans  <xdje42@gmail.com>
1493
1494         * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1495
1496 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
1497             Doug Evans  <xdje42@gmail.com>
1498
1499         PR guile/17146
1500         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1501         (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1502         * configure.ac: Try to use guild to compile an scm file, if it fails
1503         then disable guile support.
1504         * configure: Regenerate.
1505         * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1506         GUILE_FILE_LIST.
1507         (GUILE_COMPILED_FILES): New variable.
1508         (GUILE_FILES) Update.
1509         (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1510         (stamp-guile): Compile scm files.
1511         * guile/guile.c (boot_guile_support): New function.
1512         (standard_throw_args_p): New function.
1513         (print_standard_throw_error, print_throw_error): New functions.
1514         (handle_boot_error): New function.
1515         (initialize_scheme_side): Rewrite to call boot_guile_support.
1516         * guile/lib/gdb/boot.scm: Update %load-compiled-path.  Load gdb.go.
1517         * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1518
1519 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
1520             Doug Evans  <xdje42@gmail.com>
1521
1522         PR guile/17146
1523         * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1524         * guile/lib/gdb/support.scm: New file.
1525         * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1526         * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1527         All uses updated.
1528         * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1529         All uses updated.
1530         (%assert-type): Ditto, and renamed to assert-type.
1531         (%exception-print-style): Delete.
1532
1533 2014-07-26  Doug Evans  <xdje42@gmail.com>
1534
1535         PR build/17105
1536         * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1537         * configure: Regenerate.
1538         * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1539         PYTHON_FILES.
1540         (PYTHON_FILES): New variable.
1541         (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1542         (GUILE_FILES): New variable.
1543         (stamp-python, install-python, uninstall-python): Handle empty
1544         file list.
1545         (stamp-guile, install-guile, uninstall-guile): Ditto.
1546
1547 2014-07-26  Doug Evans  <xdje42@gmail.com>
1548
1549         PR guile/17177
1550         * guile/lib/gdb.scm (pretty-printers): Export.
1551         (set-pretty-printers!): Export.
1552         * guile/lib/gdb/printing.scm (gdb module): Update.
1553         (prepend-pretty-printer!, append-pretty-printer!): Update.
1554         * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1555         (pretty_printer_list_var): Delete.
1556         (pretty_printer_list): New static global.
1557         (gdbscm_pretty_printers): New function.
1558         (gdbscm_set_pretty_printers_x): New function.
1559         (ppscm_find_pretty_printer_from_gdb): Update.
1560         (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1561         (gdbscm_initialize_pretty_printers): Update.
1562
1563 2014-07-26  Doug Evans  <xdje42@gmail.com>
1564
1565         PR 17185
1566         * configure.ac: Add check for header gc/gc.h.
1567         Add check for function setenv.
1568         * configure: Regenerate.
1569         * config.in: Regenerate.
1570         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1571
1572 2014-07-25  Maciej W. Rozycki  <macro@codesourcery.com>
1573
1574         * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1575         variation in gdbarch matching.
1576
1577 2014-07-25  Tom Tromey  <tromey@redhat.com>
1578
1579         * exec.c (using_exec_ops): Remove.
1580         (exec_close_1): Update.  Remove extraneous block, reindent.
1581         (add_target_sections): Use target_is_pushed.
1582
1583 2014-07-25  Pedro Alves  <palves@redhat.com>
1584
1585         * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1586         * monitor.c (monitor_create_inferior): Likewise.
1587         * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1588         * remote-sim.c (gdbsim_create_inferior): Likewise.
1589         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1590         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1591         * windows-nat.c (do_initial_windows_stuff): Likewise.
1592
1593 2014-07-25  Pedro Alves  <palves@redhat.com>
1594
1595         * NEWS: Mention signal passing and "signal" command changes.
1596         * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1597         comment.
1598         * breakpoint.c (until_break_command): Adjust clear_proceed_status
1599         call.
1600         * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1601         * infcmd.c (proceed_thread_callback, continue_1, step_once)
1602         (jump_command): Adjust clear_proceed_status call.
1603         (signal_command): Warn if other thread that are resumed have
1604         signals that will be delivered.  Adjust clear_proceed_status call.
1605         (until_next_command, finish_command)
1606         (proceed_after_attach_callback, attach_command_post_wait)
1607         (attach_command): Adjust clear_proceed_status call.
1608         * infrun.c (proceed_after_vfork_done): Likewise.
1609         (proceed_after_attach_callback): Adjust comment.
1610         (clear_proceed_status_thread): Clear stop_signal if not in pass
1611         state.
1612         (clear_proceed_status_callback): Delete.
1613         (clear_proceed_status): New 'step' parameter.  Only clear the
1614         proceed status of threads the command being prepared is about to
1615         resume.
1616         (proceed): If passed in an explicit signal, override stop_signal
1617         with it.  Don't pass the last stop signal to the thread we're
1618         resuming.
1619         (init_wait_for_inferior): Adjust clear_proceed_status call.
1620         (switch_back_to_stepped_thread): Clear the signal if it should not
1621         be passed.
1622         * infrun.h (clear_proceed_status): New 'step' parameter.
1623         (user_visible_resume_ptid): Add comment.
1624         * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1625         signal is in pass state.
1626         * remote.c (append_pending_thread_resumptions): Likewise.
1627         * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1628
1629 2014-07-25  Tom Tromey  <tromey@redhat.com>
1630
1631         * target.h (target_stopped_data_address)
1632         (target_watchpoint_addr_within_range): Use "->", not ".".  Fix
1633         parentheses.
1634
1635 2014-07-25  Pierre Langlois  <pierre.langlois@embecosm.com>
1636
1637         * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1638         comments.
1639         (avr_pointer_to_address): Likewise.
1640
1641 2014-07-24  Tom Tromey  <tromey@redhat.com>
1642
1643         * monitor.c (compile_pattern): Update.
1644         * target.h (struct target_ops) <to_shortname, to_longname,
1645         to_doc>: Now const.
1646
1647 2014-07-24  Tom Tromey  <tromey@redhat.com>
1648
1649         * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1650         (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1651         (add_info_alias, add_com): Make "doc" const.
1652         (print_doc_line): Make "str" const.
1653         (delete_cmd): Update.
1654         * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1655         (print_doc_line): Update.
1656         * cli/cli-script.c (document_command): Update.
1657         * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1658         (add_com, add_info, add_info_alias): Update.
1659         * guile/scm-cmd.c (cmdscm_destroyer): Update.
1660         * python/py-cmd.c (cmdpy_destroyer): Update.
1661
1662 2014-07-24  Tom Tromey  <tromey@redhat.com>
1663
1664         * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1665         (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1666         (help_cmd_list): Constify.
1667         (lookup_cmd): Update.
1668         * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1669         const.
1670         (help_cmd_list, apropos_cmd): Update.
1671         * cli/cli-script.c (show_user): Update.
1672         * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1673         * cli/cli-setshow.h (cmd_show_list): Update.
1674         * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1675         (cmd_show_list): Update.
1676         * guile/scm-cmd.c (cmdscm_destroyer): Update.
1677         * python/py-cmd.c (cmdpy_destroyer): Update.
1678
1679 2014-07-24  Tom Tromey  <tromey@redhat.com>
1680
1681         * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1682         * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1683         const.
1684         * command.h (deprecate_cmd): Update.
1685         * maint.c (maintenance_do_deprecate): Add casts.
1686
1687 2014-07-24  Tom Tromey  <tromey@redhat.com>
1688
1689         * cli/cli-decode.c (help_cmd): Make parameter "const".
1690         * cli/cli-decode.h (help_cmd): Update.
1691
1692 2014-07-24  Tom Tromey  <tromey@redhat.com>
1693
1694         * stack.c (up_silently_base, down_silently_base): Make argument
1695         const.
1696
1697 2014-07-24  Tom Tromey  <tromey@redhat.com>
1698
1699         * solib.c (solib_add): Make "pattern" const.
1700         * solib.h (solib_add): Update.
1701
1702 2014-07-24  Tom Tromey  <tromey@redhat.com>
1703
1704         * remote.c (remote_serial_open, print_packet, putpkt)
1705         (putpkt_binary): Constify.
1706         * remote.h (putpkt): Update.
1707
1708 2014-07-24  Tom Tromey  <tromey@redhat.com>
1709
1710         * monitor.c (monitor_open): Make "args" const.
1711         * monitor.h (monitor_open): Update.
1712
1713 2014-07-24  Tom Tromey  <tromey@redhat.com>
1714
1715         * maint.c (match_bfd_flags): Make "string" const.
1716         (print_bfd_section_info): Remove casts.
1717         (print_objfile_section_info): Make "string" const.
1718
1719 2014-07-24  Tom Tromey  <tromey@redhat.com>
1720
1721         * inf-child.c (inf_child_open_target): Make "arg" const.
1722         * inf-child.h (inf_child_open_target): Update.
1723
1724 2014-07-24  Tom Tromey  <tromey@redhat.com>
1725
1726         * environ.c (unset_in_environ): Make "var" const.
1727         * environ.h (unset_in_environ): Update.
1728
1729 2014-07-24  Tom Tromey  <tromey@redhat.com>
1730
1731         * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1732         Make "cmd" const.
1733         (scan_filename_with_cleanup): Likewise.
1734         (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1735         Make arguments const.
1736         (restore_command): Update.
1737
1738 2014-07-24  Pedro Alves  <palves@redhat.com>
1739
1740         * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1741
1742 2014-07-24  Tom Tromey  <tromey@redhat.com>
1743             Gary Benson  <gbenson@redhat.com>
1744
1745         * nat/linux-ptrace.c (additional_flags): New global.
1746         (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1747         additional_flags; don't check GDBSERVER.
1748         (linux_ptrace_set_additional_flags): New function.
1749         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1750         Declare.
1751         * linux-nat.c (_initialize_linux_nat): Call
1752         linux_ptrace_set_additional_flags.
1753
1754 2014-07-24  Tom Tromey  <tromey@redhat.com>
1755
1756         * make-target-delegates (munge_type, write_debugmethod): New
1757         functions.
1758         (debug_names): New global.
1759         ($TARGET_DEBUG_PRINTER): New global.
1760         (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1761         name.
1762         Write debug methods.  Generate init_debug_target.
1763         * target-debug.h: New file.
1764         * target-delegates.c: Rebuild.
1765         * target.c: Include target-debug.h.
1766         (debug_target): Hoist definition.
1767         (target_kill, target_get_section_table, target_memory_map)
1768         (target_flash_erase, target_flash_done, target_detach)
1769         (target_disconnect, target_wait, target_resume)
1770         (target_pass_signals, target_program_signals, target_follow_fork)
1771         (target_mourn_inferior, target_search_memory)
1772         (target_thread_address_space, target_close)
1773         (target_find_new_threads, target_core_of_thread)
1774         (target_verify_memory, target_insert_mask_watchpoint)
1775         (target_remove_mask_watchpoint): Remove targetdebug code.
1776         (debug_to_post_attach, debug_to_prepare_to_store)
1777         (debug_to_files_info, debug_to_insert_breakpoint)
1778         (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1779         (debug_to_region_ok_for_hw_watchpoint)
1780         (debug_to_can_accel_watchpoint_condition)
1781         (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1782         (debug_to_watchpoint_addr_within_range)
1783         (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1784         (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1785         (debug_to_terminal_init, debug_to_terminal_inferior)
1786         (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1787         (debug_to_terminal_save_ours, debug_to_terminal_info)
1788         (debug_to_load, debug_to_post_startup_inferior)
1789         (debug_to_insert_fork_catchpoint)
1790         (debug_to_remove_fork_catchpoint)
1791         (debug_to_insert_vfork_catchpoint)
1792         (debug_to_remove_vfork_catchpoint)
1793         (debug_to_insert_exec_catchpoint)
1794         (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1795         (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1796         (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1797         (setup_target_debug): Call init_debug_target.
1798         * target.h (TARGET_DEBUG_PRINTER): New macro.
1799         (struct target_ops) <to_resume, to_wait, to_pass_signals,
1800         to_program_signals>: Use TARGET_DEBUG_PRINTER.
1801
1802 2014-07-24  Gary Benson  <gbenson@redhat.com>
1803
1804         * exceptions.h (throw_vfatal): Renamed to...
1805         (throw_vquit): New declaration.
1806         (throw_quit): Likewise.
1807         * exceptions.c (throw_vfatal): Renamed to...
1808         (throw_vquit): New function.
1809         (throw_quit): Likewise.
1810         (throw_error): Call throw_verror rather than throw_it.
1811         * utils.h (vfatal): Removed.
1812         (fatal): Likewise.
1813         * utils.c (vfatal): Removed.
1814         (fatal): Likewise.
1815         (internal_verror): Replaced call to fatal with call to throw_quit.
1816         (quit): Replaced calls to fatal with calls to throw_quit.
1817
1818 2014-07-23  Ajit Agarwal <ajitkum@xilinx.com>
1819
1820         * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1821         target_read_code.
1822
1823 2014-07-23  Chen Gang <gang.chen.5i5j@gmail.com>
1824
1825         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1826         less than zero in conditional expression.
1827
1828 2014-07-23  Tom Tromey  <tromey@redhat.com>
1829
1830         * make-target-delegates ($ARGS_PART): Match trailing close paren.
1831         ($INTRO_PART): Don't match whitespace.
1832         ($METHOD_TRAILER): Move earlier.  Remove trailing semicolon and
1833         argument matching.
1834         ($METHOD): Add $METHOD_TRAILER.
1835         (trim): Rewrite.
1836         (scan_target_h): New sub.
1837         Change main loop not to collect state.
1838         * target-delegates.c: Rebuild.
1839
1840 2014-07-23  Gary Benson  <gbenson@redhat.com>
1841
1842         * cp-support.c (gdb_demangle): Fix build on systems without
1843         sigaltstack.
1844
1845 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
1846
1847         * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1848         for reference entry value target data value.
1849
1850 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
1851
1852         * stack.c (read_frame_arg): Verify value_optimized_out before calling
1853         value_available_contents_eq.
1854
1855 2014-07-22  Pedro Alves  <palves@redhat.com>
1856
1857         * value.c (allocate_optimized_out_value): Don't mark value as
1858         non-lazy.
1859
1860 2014-07-22  Jiong Wang  <jiong.wang@arm.com>
1861
1862         * MAINTAINERS (Write After Approval): Update my email address.
1863
1864 2014-07-20  Doug Evans  <dje@google.com>
1865
1866         PR server/17147
1867         * remote.c (putpkt_binary): Add text to error message.
1868
1869 2014-07-20  Yao Qi  <yao@codesourcery.com>
1870
1871         * eval.c: Remove "Chill" from comments.
1872         * gdbtypes.h: Likewise.
1873         * symtab.h: Likewise.
1874
1875 2014-07-20  Yao Qi  <yao@codesourcery.com>
1876
1877         * std-operator.def: Update comments to TERNOP_SLICE.
1878
1879 2014-07-20  Yao Qi  <yao@codesourcery.com>
1880
1881         * std-operator.def: Remove BINOP_RANGE.
1882         * breakpoint.c (watchpoint_exp_is_const): Update.
1883         * expprint.c (dump_subexp_body_standard): Likewise.
1884         * eval.c (init_array_element): Remove dead code.
1885         (evaluate_subexp_standard): Likewise.
1886
1887 2014-07-20  Yao Qi  <yao@codesourcery.com>
1888
1889         * std-operator.def: Remove BINOP_IN.
1890         * breakpoint.c (watchpoint_exp_is_const): Update.
1891         * eval.c (evaluate_subexp_standard): Likewise.
1892         * expprint.c (dump_subexp_body_standard): Likewise.
1893
1894 2014-07-19  Ajit Agarwal  <ajitkum@xilinx.com>
1895
1896         * microblaze-tdep.c (microblaze_register_names): Add
1897         the rshr and rslr register names.
1898         (microblaze_gdbarch_init): Use of tdesc_has_registers.
1899         Use of tdesc_find_feature. Use of tdesc_data_alloc.
1900         Use of tdesc_numbered_register. Use of
1901         microblaze_register_g_packet_guesses. Use of
1902         tdesc_use_registers. Use of set_gdbarch_register_type.
1903         (microblaze_register_g_packet_guesses): New.
1904         * microblaze-tdep.h (microblaze_reg_num): Add
1905         field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1906         MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1907         (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1908         * features/microblaze-core.xml: New file.
1909         * features/microblaze-stack-protect.xml: New file.
1910         * features/microblaze-with-stack-protect.c: New file.
1911         * features/microblaze-with-stack-protect.xml: New file.
1912         * features/microblaze.xml: New file.
1913         * features/microblaze.c: New file.
1914         * features/Makefile (microblaze-with-stack-protect): Add
1915         microblaze-with-stack-protect microblaze and microblaze-expedite.
1916         * regformats/microblaze-with-stack-protect.dat: New file.
1917         * regformats/microblaze.dat: New file.
1918         * doc/gdb.texinfo (MicroBlaze Features): Added.
1919
1920 2014-07-18  Tom Tromey  <tromey@redhat.com>
1921
1922         * exec.c (exec_ops): Now static.
1923         * exec.h (exec_ops): Don't declare.
1924
1925 2014-07-18  Tom Tromey  <tromey@redhat.com>
1926
1927         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1928         to find_target_beneath.
1929         * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1930         find_target_beneath.
1931         (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1932
1933 2014-07-18  Tom Tromey  <tromey@redhat.com>
1934
1935         PR gdb/17130:
1936         * utils.c (quit): Use target_supports_terminal_ours.
1937         * target.h (target_supports_terminal_ours): Declare.
1938         * target.c (target_supports_delete_record): Don't check
1939         to_delete_record against NULL.
1940         (target_supports_terminal_ours): New function.
1941
1942 2014-07-18  Tom Tromey  <tromey@redhat.com>
1943
1944         PR gdb/17130:
1945         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1946         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1947         (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1948         * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1949         * windows-nat.c (windows_xfer_partial): Always delegate.
1950         * record-btrace.c (record_btrace_xfer_partial): Simplify
1951         delegation.
1952         (record_btrace_fetch_registers, record_btrace_store_registers)
1953         (record_btrace_prepare_to_store, record_btrace_resume)
1954         (record_btrace_wait, record_btrace_find_new_threads)
1955         (record_btrace_thread_alive): Likewise.
1956         * procfs.c (procfs_xfer_partial): Always delegate.
1957         * corelow.c (core_xfer_partial): Always delegate.
1958         * sol-thread.c (sol_find_new_threads): Simplify delegation.
1959
1960 2014-07-18  Tom Tromey  <tromey@redhat.com>
1961
1962         * exec.c (exec_make_note_section): Move earlier.
1963
1964 2014-07-17  Doug Evans  <dje@google.com>
1965
1966         PR gdb/17170
1967         * maint.c (count_symtabs_and_blocks): Handle NULL
1968         current_program_space.
1969         (report_command_stats): Check global enabled flag in addition to
1970         recorded enabled flag.
1971         (make_command_stats_cleanup): Handle msg_type == 0, startup.
1972
1973 2014-07-16  Pedro Alves  <palves@redhat.com>
1974
1975         * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1976
1977 2014-07-16  Tom Tromey  <tromey@redhat.com>
1978
1979         * target.h (struct target_ops) <to_delete_record>: Reformat
1980         comment.
1981
1982 2014-07-16  Tom Tromey  <tromey@redhat.com>
1983
1984         * target-delegates.c: Rebuild.
1985
1986 2014-07-15  Pierre Langlois  <pierre.langlois@embecosm.com>
1987
1988         * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
1989         (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
1990         (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
1991         (avr_pointer_to_address): Likewise.
1992         (avr_address_class_type_flags): New function.
1993         (avr_address_class_type_flags_to_name): Likewise.
1994         (avr_address_class_name_to_type_flags): Likewise.
1995         (avr_gdbarch_init): Set address_class_type_flags,
1996         address_class_type_flags_to_name and
1997         address_class_name_to_type_flags.
1998
1999 2014-07-15  Pedro Alves  <palves@redhat.com>
2000
2001         * linux-nat.c (kill_callback): Save errno and work with saved
2002         copy.
2003
2004 2014-07-15  Simon Marchi  <simon.marchi@ericsson.com>
2005
2006         * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2007
2008 2014-07-14  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
2009
2010         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2011         breakpoint support correctly.
2012
2013 2014-07-14  Pedro Alves  <palves@redhat.com>
2014
2015         * utils.c (prompt_for_continue): Call target_terminal_ours.
2016
2017 2014-07-14  Pedro Alves  <palves@redhat.com>
2018
2019         * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2020         catch_errors.  Don't re-enable stdin or notify observers where,
2021         and rethrow error.
2022         (fetch_inferior_event_wrapper): Delete.
2023
2024 2014-07-14  Pedro Alves  <palves@redhat.com>
2025
2026         PR gdb/17072
2027         * top.c: Include "inf-loop.h".
2028         (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2029         field.
2030         (gdb_readline_wrapper_cleanup): Make the target async again, if it
2031         was async before.
2032         (gdb_readline_wrapper): Store whether the target is async, and
2033         make it sync.
2034
2035 2014-07-14  Pedro Alves  <palves@redhat.com>
2036
2037         PR gdb/17072
2038         * top.c (gdb_readline_wrapper_line): Tweak comment.
2039         (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2040         the input handler callback.
2041
2042 2014-07-14  Pedro Alves  <palves@redhat.com>
2043
2044         PR gdb/17072
2045         * main.c: Include event-top.h.
2046         (handle_command_errors): New function.
2047         (catch_command_errors, catch_command_errors_const): Use it.
2048
2049 2014-07-14  Pedro Alves  <palves@redhat.com>
2050
2051         * exceptions.c (catch_command_errors, catch_command_errors_const):
2052         Moved to main.c.
2053         * exceptions.h (catch_command_errors_ftype)
2054         (catch_command_errors_const_ftype): Moved to main.c.
2055         (catch_command_errors, catch_command_errors_const): Delete
2056         declarations.
2057         * main.c (catch_command_errors_ftype)
2058         (catch_command_errors_const_ftype): Moved here from exceptions.h.
2059         (catch_command_errors, catch_command_errors_const)): Moved here
2060         from exceptions.c and make static.
2061
2062 2014-07-14  Pedro Alves  <palves@redhat.com>
2063
2064         * exceptions.c (print_any_exception): Delete.
2065         (catch_exceptions_with_msg): Use exception_print instead of
2066         print_any_exception.
2067         (catch_errors): Use exception_fprintf instead of
2068         print_any_exception.
2069         (catch_command_errors, catch_command_errors_const): Use
2070         exception_print instead of print_any_exception.
2071
2072 2014-07-14  Pedro Alves  <palves@redhat.com>
2073
2074         * infcall.c (run_inferior_call): Set 'sync_execution' while
2075         running the inferior call.
2076
2077 2014-07-14  Pedro Alves  <palves@redhat.com>
2078
2079         * value.c (value_contents_equal): Delete function.
2080         * value.h (value_contents_equal): Delete declaration.
2081
2082 2014-07-14  Tom Tromey  <tromey@redhat.com>
2083
2084         PR exp/17106:
2085         * gdbtypes.c (is_dynamic_type_internal): New function, from
2086         is_dynamic_type.
2087         (is_dynamic_type): Rewrite.
2088         (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2089         (resolve_dynamic_struct): Likewise.
2090         (resolve_dynamic_type_internal): New function, from
2091         resolve_dynamic_type.
2092         (resolve_dynamic_type): Rewrite.
2093
2094 2014-07-14  Tom Tromey  <tromey@redhat.com>
2095
2096         * target.c (target_require_runnable): Also check record_stratum.
2097         Update comment.
2098
2099 2014-07-11  Yao Qi  <yao@codesourcery.com>
2100
2101         * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2102         thumb_instruction_restores_sp return true.
2103
2104 2014-07-11  Yao Qi  <yao@codesourcery.com>
2105
2106         * arm-tdep.c (thumb_instruction_restores_sp): New function.
2107         (thumb_in_function_epilogue_p): Call
2108         thumb_instruction_restores_sp.
2109
2110 2014-07-11  Yao Qi  <yao@codesourcery.com>
2111
2112         * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2113         'add sp, #imm'.
2114         (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2115
2116 2014-07-11  Gary Benson  <gbenson@redhat.com>
2117
2118         * amd64-linux-nat.c (gdbcore.h): Remove include.
2119         (regset.h): Likewise.
2120         (nat/linux-btrace.h): Likewise.
2121         (btrace.h): Likewise.
2122         (gdb_assert.h): Likewise.
2123         (string.h): Likewise.
2124         (sys/uio.h): Likewise.
2125         (sys/debugreg.h): Likewise.
2126         (sys/syscall.h): Likewise.
2127         (sys/procfs.h): Likewise.
2128         (sys/user.h): Likewise.
2129         (asm/ptrace.h): Likewise.
2130         (i386-nat.h): Likewise.
2131         * i386-linux-nat.c (i386-nat.h): Likewise.
2132         (regset.h): Likewise.
2133         (target.h): Likewise.
2134         (linux-nat.h): Likewise.
2135         (nat/linux-btrace.h): Likewise.
2136         (btrace.h): Likewise.
2137         (gdb_assert.h): Likewise.
2138         (string.h): Likewise.
2139         (sys/uio.h): Likewise.
2140         (sys/user.h): Likewise.
2141         (sys/procfs.h): Likewise.
2142         (sys/reg.h): Likewise.
2143         (sys/debugreg.h): Likewise.
2144         (ORIG_EAX): Remove definition.
2145
2146 2014-07-11  Gary Benson  <gbenson@redhat.com>
2147
2148         * i386-linux-nat.h: New file.
2149         * x86-linux-nat.h: Likewise.
2150         * x86-linux-nat.c: Likewise.
2151         * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2152         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2153         * config/i386/linux64.mh (NATDEPFILES): Likewise.
2154         * amd64-linux-nat.c (x86-linux-nat.h): New include.
2155         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2156         (PTRACE_SETREGSET): Likewise.
2157         (arch_lwp_info): Now in x86-linux-nat.c.
2158         (have_ptrace_getregset): Now in x86-linux-nat.h.
2159         (x86_linux_dr_get): Now in x86-linux-nat.c.
2160         (x86_linux_dr_set): Likewise.
2161         (x86_linux_dr_get_addr): Likewise.
2162         (x86_linux_dr_get_control): Likewise.
2163         (x86_linux_dr_get_status): Likewise.
2164         (update_debug_registers_callback): Likewise.
2165         (x86_linux_dr_set_control): Likewise.
2166         (x86_linux_dr_set_addr): Likewise.
2167         (x86_linux_prepare_to_resume): Likewise.
2168         (x86_linux_new_thread): Likewise.
2169         (x86_linux_new_fork): Likewise.
2170         (x86_linux_get_thread_area): Likewise.
2171         (super_post_startup_inferior): Likewise.
2172         (x86_linux_child_post_startup_inferior): Likewise.
2173         (AMD64_LINUX_USER64_CS): Likewise.
2174         (AMD64_LINUX_X32_DS): Likewise.
2175         (x86_linux_read_description): Likewise.
2176         (x86_linux_enable_btrace): Likewise.
2177         (x86_linux_disable_btrace): Likewise.
2178         (x86_linux_teardown_btrace): Likewise.
2179         (x86_linux_read_btrace): Likewise.
2180         (x86_linux_create_target): Likewise.
2181         (x86_linux_add_target): Likewise.
2182         * i386-linux-nat.c (x86-linux-nat.h): New include.
2183         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2184         (PTRACE_SETREGSET): Likewise.
2185         (arch_lwp_info): Now in x86-linux-nat.c.
2186         (have_ptrace_getregset): Now in x86-linux-nat.h.
2187         (x86_linux_dr_get): Now in x86-linux-nat.c.
2188         (x86_linux_dr_set): Likewise.
2189         (x86_linux_dr_get_addr): Likewise.
2190         (x86_linux_dr_get_control): Likewise.
2191         (x86_linux_dr_get_status): Likewise.
2192         (update_debug_registers_callback): Likewise.
2193         (x86_linux_dr_set_control): Likewise.
2194         (x86_linux_dr_set_addr): Likewise.
2195         (x86_linux_prepare_to_resume): Likewise.
2196         (x86_linux_new_thread): Likewise.
2197         (x86_linux_new_fork): Likewise.
2198         (x86_linux_get_thread_area): Likewise.
2199         (super_post_startup_inferior): Likewise.
2200         (x86_linux_child_post_startup_inferior): Likewise.
2201         (AMD64_LINUX_USER64_CS): Likewise.
2202         (AMD64_LINUX_X32_DS): Likewise.
2203         (x86_linux_read_description): Likewise.
2204         (x86_linux_enable_btrace): Likewise.
2205         (x86_linux_disable_btrace): Likewise.
2206         (x86_linux_teardown_btrace): Likewise.
2207         (x86_linux_read_btrace): Likewise.
2208         (x86_linux_create_target): Likewise.
2209         (x86_linux_add_target): Likewise.
2210
2211 2014-07-11  Gary Benson  <gbenson@redhat.com>
2212
2213         * amd64-linux-nat.c: Comment and whitespace changes.
2214         * i386-linux-nat.c: Comment and whitespace changes.
2215
2216 2014-07-11  Gary Benson  <gbenson@redhat.com>
2217
2218         * amd64-linux-nat.c (x86_linux_create_target): New function.
2219         (x86_linux_add_target): Likewise.
2220         (_initialize_amd64_linux_nat): Delegate to the above new functions.
2221         * i386-linux-nat.c (x86_linux_create_target): New function.
2222         (x86_linux_add_target): Likewise.
2223         (_initialize_i386_linux_nat): Delegate to the above new functions.
2224
2225 2014-07-11  Gary Benson  <gbenson@redhat.com>
2226
2227         * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2228         (ps_get_thread_area): Delegate to the above in 32-bit mode.
2229         * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2230         (ps_get_thread_area): Delegate to the above.
2231
2232 2014-07-11  Gary Benson  <gbenson@redhat.com>
2233
2234         * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2235         x86_linux_read_description.  All uses updated.  amd64-specific
2236         code conditionalized.  Conditionalized i386-specific code added.
2237         Redundant cast removed.
2238         * i386-linux-nat.c (i386_linux_read_description): Renamed to
2239         x86_linux_read_description.  All uses updated.  i386-specific
2240         code conditionalized.  Conditionalized amd64-specific code added.
2241         One sizeof replaced with the actual type it is describing.
2242
2243 2014-07-11  Gary Benson  <gbenson@redhat.com>
2244
2245         * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2246         x86_linux_dr_get.  All uses updated.
2247         (amd64_linux_dr_set): Renamed to
2248         x86_linux_dr_set.  All uses updated.
2249         (amd64_linux_dr_get_addr): Renamed to
2250         x86_linux_dr_get_addr.  All uses updated.
2251         (amd64_linux_dr_get_control): Renamed to
2252         x86_linux_dr_get_control.  All uses updated.
2253         (amd64_linux_dr_get_status): Renamed to
2254         x86_linux_dr_get_status.  All uses updated.
2255         (amd64_linux_dr_set_control): Renamed to
2256         x86_linux_dr_set_control.  All uses updated.
2257         (amd64_linux_dr_set_addr): Renamed to
2258         x86_linux_dr_set_addr.  All uses updated.
2259         (amd64_linux_prepare_to_resume): Renamed to
2260         x86_linux_prepare_to_resume.  All uses updated.
2261         (amd64_linux_new_thread): Renamed to
2262         x86_linux_new_thread.  All uses updated.
2263         (amd64_linux_new_fork): Renamed to
2264         x86_linux_new_fork.  All uses updated.
2265         (amd64_linux_child_post_startup_inferior): Renamed to
2266         x86_linux_child_post_startup_inferior.  All uses updated.
2267         (amd64_linux_enable_btrace): Renamed to
2268         x86_linux_enable_btrace.  All uses updated.
2269         (amd64_linux_disable_btrace): Renamed to
2270         x86_linux_disable_btrace.  All uses updated.
2271         (amd64_linux_teardown_btrace): Renamed to
2272         x86_linux_teardown_btrace.  All uses updated.
2273         (amd64_linux_read_btrace): Renamed to
2274         x86_linux_read_btrace.  All uses updated.
2275         * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2276         x86_linux_dr_get.  All uses updated.
2277         (i386_linux_dr_set): Renamed to
2278         x86_linux_dr_set.  All uses updated.
2279         (i386_linux_dr_get_addr): Renamed to
2280         x86_linux_dr_get_addr.  All uses updated.
2281         (i386_linux_dr_get_control): Renamed to
2282         x86_linux_dr_get_control.  All uses updated.
2283         (i386_linux_dr_get_status): Renamed to
2284         x86_linux_dr_get_status.  All uses updated.
2285         (i386_linux_dr_set_control): Renamed to
2286         x86_linux_dr_set_control.  All uses updated.
2287         (i386_linux_dr_set_addr): Renamed to
2288         x86_linux_dr_set_addr.  All uses updated.
2289         (i386_linux_prepare_to_resume): Renamed to
2290         x86_linux_prepare_to_resume.  All uses updated.
2291         (i386_linux_new_thread): Renamed to
2292         x86_linux_new_thread.  All uses updated.
2293         (i386_linux_new_fork): Renamed to
2294         x86_linux_new_fork.  All uses updated.
2295         (i386_linux_child_post_startup_inferior): Renamed to
2296         x86_linux_child_post_startup_inferior.  All uses updated.
2297         (i386_linux_enable_btrace): Renamed to
2298         x86_linux_enable_btrace.  All uses updated.
2299         (i386_linux_disable_btrace): Renamed to
2300         x86_linux_disable_btrace.  All uses updated.
2301         (i386_linux_teardown_btrace): Renamed to
2302         x86_linux_teardown_btrace.  All uses updated.
2303         (i386_linux_read_btrace): Renamed to
2304         x86_linux_read_btrace.  All uses updated.
2305
2306 2014-07-11  Adrian Sendroiu  <adrian.sendroiu@freescale.com>
2307
2308         * remote.c (extended_remote_post_attach): New function.
2309         (init_extended_remote_ops): Install it as to_post_attach method.
2310
2311 2014-07-09  Pedro Alves  <palves@redhat.com>
2312
2313         * infcmd.c (attach_command_post_wait): Don't call
2314         target_terminal_inferior here.
2315         (attach_command): Call it here instead.
2316
2317 2014-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
2318
2319         * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2320         field.
2321         * c-varobj.c (c_is_path_expr_parent): New function, moved core
2322         from varobj.c, with additional checks.
2323         (c_varobj_ops): Fill in is_path_expr_parent field.
2324         (cplus_varobj_ops): Fill in is_path_expr_parent field.
2325         * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2326         field.
2327         * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2328         ops method.
2329         (varobj_default_is_path_expr_parent): New function.
2330         * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2331         (varobj_default_is_path_expr_parent): Declare new function.
2332
2333 2014-07-08  Markus Metzger  <markus.t.metzger@intel.com>
2334
2335         * infcmd.c (finish_backward): Turn internal error into normal error.
2336
2337 2014-07-07  Pedro Alves  <palves@redhat.com>
2338
2339         PR gdb/17096
2340         * remote.c (async_handle_remote_sigint)
2341         (async_handle_remote_sigint_twice): Call
2342         gdb_call_async_signal_handler instead of
2343         mark_async_signal_handler.
2344
2345 2014-07-07  Tom Tromey  <tromey@redhat.com>
2346
2347         * target-delegates.c: Rebuild.
2348         * target.c (target_info_record): Remove.
2349         * record.c (info_record_command): Unconditionally call
2350         to_info_record.
2351         * target.h (struct target_ops) <to_info_record>: Use
2352         TARGET_DEFAULT_IGNORE.
2353         (target_info_record): Remove.
2354
2355 2014-07-07  Tom Tromey  <tromey@redhat.com>
2356
2357         * target.h (struct target_ops) <to_get_thread_local_address>: Use
2358         TARGET_DEFAULT_NORETURN.
2359         * target.c (generic_tls_error): New function.
2360         (target_translate_tls_address): Don't search target stack.
2361         * target-delegates.c: Rebuild.
2362         * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2363         stack.
2364         * linux-thread-db.c (thread_db_get_thread_local_address):
2365         Unconditionally call beneath target.
2366
2367 2014-07-03  Marc Khouzam  <marc.khouzam@ericsson.com>
2368
2369         * cli/cli-logging.c (pop_output_files): Assign targerr to
2370         gdb_stdtargerr.
2371
2372 2014-07-03  Andrew Burgess  <andrew.burgess@embecosm.com>
2373
2374         * MAINTAINERS (Write After Approval): Update my email address.
2375
2376 2014-07-02  Gary Benson  <gbenson@redhat.com>
2377
2378         * proc-service.c (ps_xfer_memory): Update comment.
2379         (ps_pstop): Remove unused function.
2380         (ps_pcontinue): Likewise.
2381         (ps_lstop): Likewise.
2382         (ps_lcontinue): Likewise.
2383         (ps_lgetxregsize): Likewise.
2384         (ps_lgetxregs): Likewise.
2385         (ps_lsetxregs): Likewise.
2386         (ps_plog): Likewise.
2387         (ps_ptread): Likewise.
2388         (ps_ptwrite): Likewise.
2389
2390 2014-07-01  Mark Wielaard  <mjw@redhat.com>
2391
2392         * dwarf2read.c (add_array_cv_type): New function.
2393         (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2394         (read_tag_volatile_type): Likewise.
2395
2396 2014-07-01  Tom Tromey  <tromey@redhat.com>
2397
2398         * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2399         * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2400         * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2401         (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2402         * command.h (cmd_cfunc_ftype): Move earlier.
2403         (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2404         (add_com, add_info): Use cmd_cfunc_ftype.
2405
2406 2014-06-30  Tom Tromey  <tromey@redhat.com>
2407
2408         * symtab.c (operator_chars): Make parameters and return type
2409         const.
2410         (file_matches): Make "files" const.
2411         (struct search_symbols_data) <files>: Now const.
2412         (search_symbols): Make "regexp" and "files" parameters const.
2413         Update.
2414         (symtab_symbol_info): Remove cast.
2415         (rbreak_command): Update.
2416         * symtab.h (search_symbols): Update.
2417
2418 2014-06-27  Yao Qi  <yao@codesourcery.com>
2419
2420         * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2421         Change parameter type to 'struct thread_info *'.  Caller
2422         updated.
2423         * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2424         Update declaration.
2425         * dummy-frame.c (struct dummy_frame_id): New.
2426         (dummy_frame_id_eq): New function.
2427         (struct dummy_frame) <id>: Change its type to 'struct
2428         dummy_frame_id'.
2429         (dummy_frame_push): Add parameter ptid and save it in
2430         dummy_frame_id.
2431         (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2432         inferior_ptid.
2433         (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2434         to inferior_ptid.
2435         (lookup_dummy_frame): Change parameter type to 'struct
2436         dummy_frame_id *'.  Callers updated.  Call dummy_frame_id_eq
2437         instead of frame_id_eq.
2438         (dummy_frame_pop): Add parameter ptid.  Callers updated.
2439         Update comments.  Compose dummy_frame_id and pass it to
2440         lookup_dummy_frame.
2441         (dummy_frame_discard): Add parameter ptid.
2442         (dummy_frame_sniffer): Compose dummy_frame_id and call
2443         dummy_frame_id_eq instead of frame_id_eq.
2444         (fprint_dummy_frames): Print ptid.
2445         * dummy-frame.h: Remove comments.
2446         (dummy_frame_push): Add ptid in declaration.
2447         (dummy_frame_pop, dummy_frame_discard): Likewise.
2448
2449 2014-06-26  Tom Tromey  <tromey@redhat.com>
2450
2451         * cli/cli-cmds.c (error_no_arg): Make "why" const.
2452         * command.h (error_no_arg): Update.
2453
2454 2014-06-26  Tom Tromey  <tromey@redhat.com>
2455
2456         * cli/cli-setshow.c (do_set_command): Make "arg" const.
2457         (do_show_command): Make "arg" const.
2458         * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2459
2460 2014-06-26  Tom Tromey  <tromey@redhat.com>
2461
2462         * record-full.c (record_full_get_bookmark): Make "args" const.
2463         (record_full_goto_bookmark): Make "raw_bookmark" const.
2464         * record.c (record_goto): New function.
2465         (cmd_record_goto): Use it.  Now static.
2466         * record.h (record_goto): Declare.
2467         (cmd_record_goto): Remove declaration.
2468         * target-delegates.c: Rebuild.
2469         * target.h (struct target_ops) <to_get_bookmark,
2470         to_goto_bookmark>: Make parameter const.
2471
2472 2014-06-26  Tom Tromey  <tromey@redhat.com>
2473
2474         * defs.h (generic_load): Update.
2475         * m32r-rom.c (m32r_load_gen): Make "filename" const.
2476         * monitor.c (monitor_load): Make "args" const.
2477         * remote-m32r-sdi.c (m32r_load): Make "args" const.
2478         * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2479         const.
2480         (mips_load): Make "file" const.
2481         * remote-sim.c (gdbsim_load): Make "args" const.
2482         * remote.c (remote_load): Make "name" const.
2483         * symfile.c (generic_load): Make "args" const.
2484         * target-delegates.c: Rebuild.
2485         * target.c (target_load): Make "arg" const.
2486         (debug_to_load): Make "args" const.
2487         * target.h (struct target_ops) <to_load>: Make parameter const.
2488         (target_load): Update.
2489
2490 2014-06-26  Tom Tromey  <tromey@redhat.com>
2491
2492         PR symtab/16902:
2493         * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2494         (dwarf2_physname, read_partial_die)
2495         (guess_partial_die_structure_name, fixup_partial_die)
2496         (guess_full_die_structure_name, anonymous_struct_prefix)
2497         (dwarf2_name): Use per-BFD obstack.
2498
2499 2014-06-26  Yao Qi  <yao@codesourcery.com>
2500
2501         * dummy-frame.c (dummy_frame_sniffer): Move local variables
2502         dummyframe and this_id into inner block below.
2503
2504 2014-06-26  Yao Qi  <yao@codesourcery.com>
2505
2506         * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2507         with "signal_pass[0]" in the initialization of signal_pass.
2508
2509 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
2510
2511         * record-btrace.c (record_btrace_generating_corefile)
2512         (record_btrace_prepare_to_generate_core)
2513         (record_btrace_done_generating_core): New.
2514         (record_btrace_xfer_partial, record_btrace_fetch_registers)
2515         (record_btrace_store_registers, record_btrace_prepare_to_store):
2516         Forward request when generating a core file.
2517         (record_btrace_open): Set record_btrace_generating_corefile to zero.
2518         (init_record_btrace_ops): Set to_prepare_to_generate_core and
2519         to_done_generating_core.
2520
2521 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
2522
2523         * target.h (target_ops) <to_prepare_to_generate_core>
2524         <to_done_generating_core>: New.
2525         (target_prepare_to_generate_core, target_done_generating_core): New.
2526         * target.c (target_prepare_to_generate_core)
2527         (target_done_generating_core): New.
2528         * target-delegates.c: Regenerate.
2529         * gcore.c: (write_gcore_file): Rename to ...
2530         (write_gcore_file_1): ...this.
2531         (write_gcore_file): Call target_prepare_to_generate_core
2532         and target_done_generating_core.
2533
2534 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
2535
2536         * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2537         * gcore.c (write_gcore_file): Free memory returned from
2538         make_corefile_notes.
2539         * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2540         * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2541
2542 2014-06-24  Yao Qi  <yao@codesourcery.com>
2543
2544         * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2545         (arm_linux_init_abi): Set skip_trampoline_code with
2546         gdbarch_skip_trampoline_code instead of
2547         find_solib_trampoline_target.
2548
2549 2014-06-24  Yao Qi  <yao@codesourcery.com>
2550
2551         * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2552         arm_skip_bx_reg returns non-zero.
2553
2554 2014-06-24  Yao Qi  <yao@codesourcery.com>
2555
2556         * arm-tdep.c (arm_skip_bx_reg): New function.
2557         (arm_skip_stub): Call arm_skip_bx_reg.
2558
2559 2014-06-23  Don Breazeal  <donb@codesourcery.com>
2560
2561         * MAINTAINERS: Add myself as write-after-approval maintainer.
2562
2563 2014-06-23  Pedro Alves  <palves@redhat.com>
2564
2565         * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2566         DR_CONTROL before setting DR0..DR3.
2567         * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2568         * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2569         bits of DR_CONTROL related to the debug register slot being
2570         disabled.  If all slots are vacant, clear local slowdown as well,
2571         and assert DR_CONTROL is 0.
2572
2573 2014-06-23  Siva Chandra Reddy  <sivachandra@google.com>
2574
2575         * python/lib/gdb/command/xmethods.py
2576         (get_method_matchers_in_loci):  Lookup xmethod matchers in the
2577         current progspace only if the string "progspace" matches LOCUS_RE.
2578
2579 2014-06-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
2580
2581         Fix --with-system-readline with readline-6.3 patch 5.
2582         * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2583         (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2584         types.
2585
2586 2014-06-20  Tom Tromey  <tromey@redhat.com>
2587
2588         * dwarf2read.c (dw2_get_real_path): Use correct type in
2589         OBSTACK_CALLOC.
2590         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2591
2592 2014-06-20  Gary Benson  <gbenson@redhat.com>
2593
2594         * common/gdb_thread_db.h: Moved to nat.  All includes updated.
2595         * common/glibc_thread_db.h: Likewise.
2596         * common/i386-cpuid.h: Likewise.
2597         * common/i386-gcc-cpuid.h: Likewise.
2598         * common/linux-btrace.h: Likewise.
2599         * common/linux-osdata.h: Likewise.
2600         * common/linux-procfs.h: Likewise.
2601         * common/linux-ptrace.h: Likewise.
2602         * common/mips-linux-watch.h: Likewise.
2603         * common/linux-btrace.c: Moved to nat.
2604         * common/linux-osdata.c: Likewise.
2605         * common/linux-procfs.c: Likewise.
2606         * common/linux-ptrace.c: Likewise.
2607         * common/mips-linux-watch.c: Likewise.
2608         * nat/gdb_thread_db.h: Moved from common.
2609         * nat/glibc_thread_db.h: Likewise.
2610         * nat/i386-cpuid.h: Likewise.
2611         * nat/i386-gcc-cpuid.h: Likewise.
2612         * nat/linux-btrace.c: Likewise.
2613         * nat/linux-btrace.h: Likewise.
2614         * nat/linux-osdata.c: Likewise.
2615         * nat/linux-osdata.h: Likewise.
2616         * nat/linux-procfs.c: Likewise.
2617         * nat/linux-procfs.h: Likewise.
2618         * nat/linux-ptrace.c: Likewise.
2619         * nat/linux-ptrace.h: Likewise.
2620         * nat/mips-linux-watch.c: Likewise.
2621         * nat/mips-linux-watch.h: Likewise.
2622         * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2623         (object file files): Reordered.
2624         * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2625         of glibc_thread_db.h.
2626
2627 2014-06-20  Gary Benson  <gbenson@redhat.com>
2628
2629         * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2630         (i386_dr_low_type): Moved to nat/i386-dregs.h.
2631         (i386_dr_low): Likewise.
2632         (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2633         (i386_dr_low_set_addr): Likewise.
2634         (i386_dr_low_get_addr): Likewise.
2635         (i386_dr_low_can_set_control): Likewise.
2636         (i386_dr_low_set_control): Likewise.
2637         (i386_dr_low_get_control): Likewise.
2638         (i386_dr_low_get_status): Likewise.
2639         (i386_get_debug_register_length): Likewise.
2640         * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2641         (i386_dr_low): Likewise.
2642         * nat/i386-dregs.c (i386-low.h): Remove include.
2643         (i386-nat.h): Likewise.
2644         (nat/i386-dregs.h): New include.
2645         (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2646         (i386_dr_low_set_addr): Likewise.
2647         (i386_dr_low_get_addr): Likewise.
2648         (i386_dr_low_can_set_control): Likewise.
2649         (i386_dr_low_set_control): Likewise.
2650         (i386_dr_low_get_control): Likewise.
2651         (i386_dr_low_get_status): Likewise.
2652         (i386_get_debug_register_length): Likewise.
2653         (debug_hw_points): Likewise.
2654
2655 2014-06-19  Iain Buclaw  <ibuclaw@gdcproject.org>
2656
2657         * Makefile.in (SFILES): Add d-exp.y.
2658         (YYFILES): Add d-exp.c.
2659         (YYOBJ): Add d-exp.o.
2660         (local-maintainer-clean): Delete d-exp.c.
2661         * d-exp.y: New file.
2662         * d-lang.h (d_parse): New declaration.
2663         (d_error): New declaration.
2664         * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2665         Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2666         PREC_ORDER operators.
2667         (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2668
2669 2014-06-19  Yao Qi  <yao@codesourcery.com>
2670
2671         * gdbthread.h (any_running): Remove the declaration.
2672         * thread.c (any_running): Remove.
2673
2674 2014-06-19  Yao Qi  <yao@codesourcery.com>
2675
2676         * gdbthread.h (struct thread_info) <state>: Change its type to
2677         'enum thread_state'.  Update comments.
2678
2679 2014-06-19  Pedro Alves  <palves@redhat.com>
2680
2681         * gdbthread.h (ALL_THREADS): Delete.
2682         (ALL_NON_EXITED_THREADS): New macro.
2683         * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2684         instead of ALL_THREADS.
2685         * infrun.c (find_thread_needs_step_over)
2686         (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2687         instead of ALL_THREADS.
2688         * record-btrace.c (record_btrace_open)
2689         (record_btrace_stop_recording, record_btrace_close)
2690         (record_btrace_is_replaying, record_btrace_resume)
2691         (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2692         * remote.c (append_pending_thread_resumptions): Likewise.
2693         * thread.c (thread_apply_all_command): Likewise.
2694
2695 2014-06-19  Gary Benson  <gbenson@redhat.com>
2696
2697         * i386-nat.c (i386_stopped_by_watchpoint):
2698         Use i386_dr_stopped_by_watchpoint.
2699         (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2700         (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2701
2702 2014-06-19  Gary Benson  <gbenson@redhat.com>
2703
2704         * nat/i386-dregs.c: New file.
2705         * Makefile.in (i386-dregs.o): New rule.
2706         * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2707         * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2708         * config/i386/darwin.mh (NATDEPFILES): Likewise.
2709         * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2710         * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2711         * config/i386/go32.mh (NATDEPFILES): Likewise.
2712         * config/i386/linux.mh (NATDEPFILES): Likewise.
2713         * config/i386/linux64.mh (NATDEPFILES): Likewise.
2714         * config/i386/mingw.mh (NATDEPFILES): Likewise.
2715         * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2716         * i386-nat.h (debug_hw_points): New declaration.
2717         * i386-nat.c (breakpoint.h): Remove include.
2718         (command.h): Likewise.
2719         (target.h): Likewise.
2720         (gdb_assert.h): Likewise.
2721         (debug_hw_points): Made nonstatic.
2722         (debug_printf): Now in i386-dregs.c.
2723         (TARGET_HAS_DR_LEN_8): Likewise.
2724         (DR_CONTROL_SHIFT): Likewise.
2725         (DR_CONTROL_SIZE): Likewise.
2726         (DR_RW_EXECUTE): Likewise.
2727         (DR_RW_WRITE): Likewise.
2728         (DR_RW_READ): Likewise.
2729         (DR_RW_IORW): Likewise.
2730         (DR_LEN_1): Likewise.
2731         (DR_LEN_2): Likewise.
2732         (DR_LEN_4): Likewise.
2733         (DR_LEN_8): Likewise.
2734         (DR_LOCAL_ENABLE_SHIFT): Likewise.
2735         (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2736         (DR_ENABLE_SIZE): Likewise.
2737         (DR_LOCAL_SLOWDOWN): Likewise.
2738         (DR_GLOBAL_SLOWDOWN): Likewise.
2739         (DR_CONTROL_RESERVED): Likewise.
2740         (I386_DR_CONTROL_MASK): Likewise.
2741         (I386_DR_VACANT): Likewise.
2742         (I386_DR_LOCAL_ENABLE): Likewise.
2743         (I386_DR_GLOBAL_ENABLE): Likewise.
2744         (I386_DR_DISABLE): Likewise.
2745         (I386_DR_SET_RW_LEN): Likewise.
2746         (I386_DR_GET_RW_LEN): Likewise.
2747         (I386_DR_WATCH_HIT): Likewise.
2748         (i386_wp_op_t): Likewise.
2749         (i386_show_dr): Likewise.
2750         (i386_length_and_rw_bits): Likewise.
2751         (i386_insert_aligned_watchpoint): Likewise.
2752         (i386_remove_aligned_watchpoint): Likewise.
2753         (i386_handle_nonaligned_watchpoint): Likewise.
2754         (i386_update_inferior_debug_regs): Likewise.
2755         (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2756         (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2757         (i386_region_ok_for_watchpoint):
2758         Use i386_dr_region_ok_for_watchpoint.
2759         (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2760
2761 2014-06-19  Gary Benson  <gbenson@redhat.com>
2762
2763         * i386-nat.c (i386_insert_hw_breakpoint): Use
2764         i386_insert_watchpoint.
2765         (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2766
2767 2014-06-19  Gary Benson  <gbenson@redhat.com>
2768
2769         * i386-nat.c (i386_dr_show): Renamed to
2770         i386_show_dr and made static.  All uses updated.
2771         (i386_dr_length_and_rw_bits): Renamed to
2772         i386_length_and_rw_bits and made static.
2773         All uses updated.
2774         (i386_dr_insert_aligned_watchpoint): Renamed to
2775         i386_insert_aligned_watchpoint and made static.
2776         All uses updated.
2777         (i386_dr_remove_aligned_watchpoint): Renamed to
2778         i386_remove_aligned_watchpoint and made static.
2779         All uses updated.
2780         (i386_dr_update_inferior_debug_regs): Renamed to
2781         i386_update_inferior_debug_regs and made static.
2782         All uses updated.
2783         * nat/i386-dregs.h (i386_dr_show): Removed.
2784         (i386_dr_length_and_rw_bits): Likewise.
2785         (i386_dr_insert_aligned_watchpoint): Likewise.
2786         (i386_dr_remove_aligned_watchpoint): Likewise.
2787         (i386_dr_update_inferior_debug_regs): Likewise.
2788
2789 2014-06-19  Gary Benson  <gbenson@redhat.com>
2790
2791         * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2792         * configure: Regenerate.
2793         * config.in: Likewise.
2794         * main.c (signal.h): New include.
2795         (setup_alternate_signal_stack): New function.
2796         (captured_main): Call the above.
2797         * cp-support.c (signal.h): New include.
2798         (catch_demangler_crashes): New flag.
2799         (SIGJMP_BUF): New define.
2800         (SIGSETJMP): Likewise.
2801         (SIGLONGJMP): Likewise.
2802         (gdb_demangle_jmp_buf): New static global.
2803         (gdb_demangle_attempt_core_dump): Likewise.
2804         (gdb_demangle_signal_handler): New function.
2805         (gdb_demangle): If catch_demangler_crashes is set, install the
2806         above signal handler before calling bfd_demangle, and restore
2807         the original signal handler afterwards.  Display the offending
2808         symbol and call demangler_warning the first time a segmentation
2809         fault is caught.
2810         (_initialize_cp_support): New maint set/show command.
2811
2812 2014-06-19  Gary Benson  <gbenson@redhat.com>
2813
2814         * utils.h (resource_limit_kind): New enum.
2815         (can_dump_core): New declaration.
2816         (warn_cant_dump_core): Likewise.
2817         (dump_core): Likewise.
2818         * utils.c (dump_core): Made nonstatic.  Added new
2819         parameter "limit_kind".
2820         (can_dump_core): Made nonstatic. Moved printing code to...
2821         (warn_cant_dump_core): New function.
2822         (can_dump_core_warn): Likewise.
2823         (internal_vproblem): Replace calls to can_dump_core with
2824         calls to can_dump_core_warn.  Supply new argument to each.
2825
2826 2014-06-19  Gary Benson  <gbenson@redhat.com>
2827
2828         * utils.h (demangler_vwarning): New declaration.
2829         (demangler_warning): Likewise.
2830         * utils.c (struct internal_problem)
2831         <user_settable_should_quit>: New field.
2832         <user_settable_should_dump_core>: Likewise
2833         (internal_error_problem): Add values for above new fields.
2834         (internal_warning_problem): Likewise.
2835         (demangler_warning_problem): New static global.
2836         (demangler_vwarning): New function.
2837         (demangler_warning): Likewise.
2838         (add_internal_problem_command): Selectively add commands.
2839         (_initialize_utils): New internal problem command.
2840         * maint.c (maintenance_demangler_warning): New function.
2841         (_initialize_maint_cmds): New command.
2842
2843 2014-06-18  Tom Tromey  <tromey@redhat.com>
2844
2845         * f-valprint.c (info_common_command_for_block): Update.
2846         * symtab.h (struct general_symbol_info) <common_block>: Now
2847         const.
2848
2849 2014-06-18  Tom Tromey  <tromey@redhat.com>
2850
2851         * symtab.h (struct symtab) <blockvector>: Now const.
2852         * ada-lang.c (ada_add_global_exceptions): Update.
2853         * buildsym.c (augment_type_symtab): Update.
2854         * dwarf2read.c (dw2_lookup_symbol): Update.
2855         * jit.c (finalize_symtab): Update.
2856         * jv-lang.c (add_class_symtab_symbol): Update.
2857         * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2858         Update.
2859         * objfiles.c (objfile_relocate1): Update.
2860         * psymtab.c (lookup_symbol_aux_psymtabs)
2861         (maintenance_check_psymtabs): Update.
2862         * python/py-symtab.c (stpy_global_block, stpy_static_block):
2863         Update.
2864         * spu-tdep.c (spu_catch_start): Update.
2865         * symmisc.c (dump_symtab_1): Update.
2866         * symtab.c (lookup_global_symbol_from_objfile)
2867         (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2868         (basic_lookup_transparent_type_quick)
2869         (basic_lookup_transparent_type, find_pc_sect_symtab)
2870         (find_pc_sect_line, search_symbols): Update.
2871         * block.c (find_block_in_blockvector): Make "bl" const.
2872         (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2873         const.
2874         (blockvector_contains_pc): Make "bv" const.
2875         (block_for_pc_sect): Update.
2876         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2877         (blockvector_contains_pc): Update.
2878         * breakpoint.c (resolve_sal_pc): Update.
2879         * inline-frame.c (block_starting_point_at): Update.
2880
2881 2014-06-18  Tom Tromey  <tromey@redhat.com>
2882
2883         * completer.c (complete_line): Make "line_buffer" const.
2884         * completer.h (complete_line): Update.
2885
2886 2014-06-18  Tom Tromey  <tromey@redhat.com>
2887
2888         * symtab.c (add_macro_name): Remove unneeded cast.
2889
2890 2014-06-18  Tom Tromey  <tromey@redhat.com>
2891
2892         * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2893         * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2894
2895 2014-06-18  Tom Tromey  <tromey@redhat.com>
2896
2897         * probe.c (info_probes_for_ops): Make "arg" const.
2898         * probe.h (info_probes_for_ops): Update.
2899
2900 2014-06-18  Tom Tromey  <tromey@redhat.com>
2901
2902         * varobj.c (varobj_create): Update.
2903         * valops.c (value_of_this): Update.
2904         * tracepoint.c (add_local_symbols, scope_info): Update.
2905         * symtab.h (struct general_symbol_info) <block>: Now const.
2906         * symtab.c (skip_prologue_sal)
2907         (default_make_symbol_completion_list_break_on)
2908         (skip_prologue_using_sal): Update.
2909         * stack.h (iterate_over_block_locals)
2910         (iterate_over_block_local_vars): Update.
2911         * stack.c (print_frame_args): Update.
2912         (iterate_over_block_locals, iterate_over_block_local_vars): Make
2913         parameter const.
2914         (get_selected_block): Make return type const.
2915         * python/py-frame.c (frapy_block): Update.
2916         * python/py-block.c (gdbpy_block_for_pc): Update.
2917         * p-exp.y (%union) <bval>: Now const.
2918         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2919         * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2920         * m2-exp.y (%union) <bval>: Now const.
2921         * linespec.c (get_current_search_block): Make return type const.
2922         (create_sals_line_offset, find_label_symbols): Update.
2923         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2924         Update.
2925         (block_starting_point_at): Make "block" const.
2926         * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2927         (check_exception_resume): Update.
2928         * guile/scm-frame.c (gdbscm_frame_block): Update.
2929         * guile/scm-block.c (gdbscm_lookup_block): Update.
2930         * frame.h (get_frame_block): Update.
2931         (get_selected_block): Make return type const.
2932         * frame.c (frame_id_inner): Update.
2933         * f-valprint.c (info_common_command_for_block)
2934         (info_common_command): Update.
2935         * dwarf2loc.c (dwarf2_find_location_expression)
2936         (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2937         (locexpr_describe_location_piece): Update.
2938         * c-exp.y (%union) <bval>: Now const.
2939         * breakpoint.c (resolve_sal_pc): Update.
2940         * blockframe.c (get_frame_block):Make return type const.
2941         (get_pc_function_start, get_frame_function, find_pc_sect_function)
2942         (block_innermost_frame): Update.
2943         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2944         (block_for_pc, block_for_pc_sect): Update.
2945         * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2946         'pblock' const.
2947         (block_for_pc_sect, block_for_pc): Make return type const.
2948         * ax-gdb.c (gen_expr): Update.
2949         * alpha-mdebug-tdep.c (find_proc_desc): Update.
2950         * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2951         (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2952         (ada_read_var_value): Update.
2953         * ada-exp.y (struct name_info) <block>: Now const.
2954         (%union): Likewise.
2955         (block_lookup): Constify.
2956
2957 2014-06-18  Gary Benson  <gbenson@redhat.com>
2958
2959         * nat/i386-dregs.h: New file.
2960         * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2961         * i386-nat.h (i386-dregs.h): New include.
2962         (DR_FIRSTADDR): Now in i386-dregs.h.
2963         (DR_LASTADDR): Likewise.
2964         (DR_NADDR): Likewise.
2965         (DR_STATUS): Likewise.
2966         (DR_CONTROL): Likewise.
2967         (i386_debug_reg_state): Likewise.
2968         * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2969
2970 2014-06-18  Don Breazeal  <donb@codesourcery.com>
2971
2972         * breakpoint.c (set_longjmp_breakpoint): Call
2973         momentary_breakpoint_from_master with additional argument.
2974         (set_longjmp_breakpoint_for_call_dummy): Call
2975         momentary_breakpoint_from_master with additional argument.
2976         (set_std_terminate_breakpoint): Call
2977         momentary_breakpoint_from_master with additional argument.
2978         (momentary_breakpoint_from_master): Add argument to function
2979         definition and use it to initialize structure member flag.
2980         (clone_momentary_breakpoint): Call
2981         momentary_breakpoint_from_master with additional argument.
2982         * infrun.c (follow_inferior_reset_breakpoints): Clear structure
2983         member flags set in momentary_breakpoint_from_master.
2984
2985 2014-06-18  Gary Benson  <gbenson@redhat.com>
2986
2987         * i386-nat.c (i386_show_dr): Renamed to
2988         i386_dr_show and made nonstatic.  All uses updated.
2989         (i386_length_and_rw_bits): Renamed to
2990         i386_dr_length_and_rw_bits and made nonstatic.
2991         All uses updated.
2992         (i386_insert_aligned_watchpoint): Renamed to
2993         i386_dr_insert_aligned_watchpoint and made nonstatic.
2994         All uses updated.
2995         (i386_remove_aligned_watchpoint): Renamed to
2996         i386_dr_remove_aligned_watchpoint and made nonstatic.
2997         All uses updated.
2998         (i386_update_inferior_debug_regs): Renamed to
2999         i386_dr_update_inferior_debug_regs and made nonstatic.
3000         All uses updated.
3001
3002 2014-06-18  Gary Benson  <gbenson@redhat.com>
3003
3004         * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3005         (i386_dr_low_can_set_control): Likewise.
3006         (i386_dr_low_set_addr): Likewise.
3007         (i386_dr_low_set_control): Likewise.
3008         (i386_dr_low_get_addr): Likewise.
3009         (i386_dr_low_get_status): Likewise.
3010         (i386_dr_low_get_control): Likewise.
3011         (i386_insert_aligned_watchpoint): Use new macros.
3012         (i386_update_inferior_debug_regs): Likewise.
3013         (i386_stopped_data_address): Likewise.
3014
3015 2014-06-18  Gary Benson  <gbenson@redhat.com>
3016
3017         * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3018         New parameter.  All uses updated.
3019
3020 2014-06-18  Gary Benson  <gbenson@redhat.com>
3021
3022         * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3023         All uses updated.
3024
3025 2014-06-18  Gary Benson  <gbenson@redhat.com>
3026
3027         * i386-nat.c (debug_printf): New macro.
3028         (i386_get_debug_register_length): Likewise.
3029         (TARGET_HAS_DR_LEN_8): Use above macro.
3030         (i386_show_dr): Use debug_printf instead of puts_unfiltered
3031         and printf_unfiltered.  Use phex to format values.
3032
3033 2014-06-18  Gary Benson  <gbenson@redhat.com>
3034
3035         * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3036         Make const.
3037
3038 2014-06-18  Gary Benson  <gbenson@redhat.com>
3039
3040         * i386-nat.c: Comment changes.
3041
3042 2014-06-18  Gary Benson  <gbenson@redhat.com>
3043
3044         * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3045
3046 2014-06-18  Gary Benson  <gbenson@redhat.com>
3047
3048         * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3049         (i386_insert_aligned_watchpoint): Likewise.
3050         (i386_remove_aligned_watchpoint): Likewise.
3051         (i386_handle_nonaligned_watchpoint): Likewise.
3052
3053 2014-06-18  Gary Benson  <gbenson@redhat.com>
3054
3055         * i386-nat.c: Whitespace changes.
3056
3057 2014-06-17  Samuel Bronson  <naesten@gmail.com>
3058
3059         * MAINTAINERS: Update Roland McGrath's email address.
3060         Thanks to Sergio Durigan Junior for pointing out that he left
3061         Red Hat a while ago, and giving me a current address.
3062
3063 2014-06-17  Tom Tromey  <tromey@redhat.com>
3064
3065         * utils.h (savestring): Remove declaration.
3066
3067 2014-06-17  Tom Tromey  <tromey@redhat.com>
3068
3069         * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3070
3071 2014-06-16  Keith Seitz  <keiths@redhat.com>
3072
3073         PR mi/15863
3074         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3075         to update the varobj if inferior_ptid is null_ptid.
3076
3077 2014-06-16  Tom Tromey  <tromey@redhat.com>
3078
3079         * target.h (struct target_ops) <to_info_proc>: Make parameter
3080         const.
3081         (target_info_proc): Update.
3082         * target.c (target_info_proc): Make "args" const.
3083         * procfs.c (procfs_info_proc): Update.
3084         * linux-tdep.c (linux_info_proc): Update.
3085         (linux_core_info_proc_mappings): Make "args" const.
3086         (linux_core_info_proc): Update.
3087         * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3088         * gdbarch.c: Rebuild.
3089         * gdbarch.h: Rebuild.
3090         * corelow.c (core_info_proc): Update.
3091
3092 2014-06-16  Tom Tromey  <tromey@redhat.com>
3093
3094         * target.h (struct target_ops) <to_disconnect>: Make parameter
3095         const.
3096         (target_disconnect): Update.
3097         * target.c (target_disconnect): Make "args" const.
3098         * target-delegates.c: Rebuild.
3099         * remote.c (remote_disconnect): Update.
3100         * record.h (record_disconnect): Update.
3101         * record.c (record_disconnect): Update.
3102         * inf-child.c (inf_child_disconnect): Update.
3103
3104 2014-06-16  Tom Tromey  <tromey@redhat.com>
3105
3106         * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3107         * target.c (debug_to_rcmd, default_rcmd): Update.
3108         * target-delegates.c: Rebuild.
3109         * remote.c (remote_rcmd): Update.
3110         * monitor.c (monitor_rcmd): Update.
3111
3112 2014-06-16  Pedro Alves  <palves@redhat.com>
3113
3114         * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3115         (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3116         have OBJF_SHARED set.
3117         * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3118         (shared_objfile_contains_address_p): ... this.  Check OBJF_SHARED
3119         instead of OBJF_USERLOADED.
3120         * objfiles.h (OBJF_SHARED): Update comment.
3121         (userloaded_objfile_contains_address_p): Rename to ...
3122         (shared_objfile_contains_address_p): ... this, and update
3123         comments.
3124         * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3125         new objfile.
3126         (remove_symbol_file_command): Skip objfiles that don't have
3127         OBJF_SHARED set.
3128
3129 2014-06-16  Tom Tromey  <tromey@redhat.com>
3130
3131         * minsyms.h (prim_record_minimal_symbol)
3132         (prim_record_minimal_symbol_and_info): Update comments.
3133
3134 2014-06-14  Eli Zaretskii  <eliz@gnu.org>
3135
3136         * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3137         or --without-guile, according to how GDB was built.
3138
3139 2014-06-13  Tom Tromey  <tromey@redhat.com>
3140
3141         * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3142         to help_list.
3143         * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3144         to help_list.
3145         * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3146         help_list.
3147         * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3148         help_list.Pass all_commands, not -1, to help_list.
3149         * cli/cli-dump.c (dump_command, append_command)
3150         (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3151         (binary_dump_command, binary_append_command): Pass all_commands,
3152         not -1, to help_list.
3153         * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3154         -1, to help_list.
3155         * valprint.c (set_print, set_print_raw): Pass all_commands, not
3156         -1, to help_list.
3157         * typeprint.c (set_print_type): Pass all_commands, not -1, to
3158         help_list.
3159         * top.c (set_history): Pass all_commands, not -1, to help_list.
3160         * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3161         all_commands, not -1, to help_list.
3162         * symfile.c (overlay_command): Pass all_commands, not -1, to
3163         help_list.
3164         * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3165         help_list.
3166         * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3167         help_list.
3168         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3169         -1, to help_list.
3170         * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3171         not -1, to help_list.
3172         * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3173         not -1, to help_list.
3174         * maint.c (maintenance_command, maintenance_info_command)
3175         (maintenance_print_command, maintenance_set_cmd): Pass
3176         all_commands, not -1, to help_list.
3177         * macrocmd.c (macro_command): Pass all_commands, not -1, to
3178         help_list.
3179         * language.c (set_check): Pass all_commands, not -1, to help_list.
3180         * infcmd.c (unset_command): Pass all_commands, not -1, to
3181         help_list.
3182         * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3183         help_list.
3184         * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3185         help_list.
3186         * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3187         help_list.
3188         * breakpoint.c (save_command): Pass all_commands, not -1, to
3189         help_list.
3190         * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3191         all_commands, not -1, to help_list.
3192
3193 2014-06-12  Pierre Langlois  <pierre.langlois@embecosm.com>
3194
3195         * regcache.c (struct register_to_invalidate): New structure.
3196         (do_register_invalidate, make_cleanup_regcache_invalidate): New
3197         functions.
3198         (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3199
3200 2014-06-12  Yao Qi  <yao@codesourcery.com>
3201
3202         * varobj.c (varobj_get_num_children): Call
3203         varobj_is_dynamic_p.
3204         (varobj_list_children): Likewise.
3205         (varobj_update): Likewise.  Update comments.
3206
3207 2014-06-12  Yao Qi  <yao@codesourcery.com>
3208
3209         * varobj.c (varobj_pretty_printed_p): Rename to ...
3210         (varobj_is_dynamic_p): ... this.  New function.
3211         * varobj.h (varobj_pretty_printed_p): Remove declaration.
3212         (varobj_is_dynamic_p): Declare.
3213         * mi/mi-cmd-var.c (print_varobj): All callers updated.
3214         (mi_print_value_p, varobj_update_one): Likewise.
3215
3216 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
3217             Yao Qi  <yao@codesourcery.com>
3218
3219         * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3220         (varobj_get_iterator): Wrap up code for pretty-printer by
3221         "#if HAVE_PYTHON" and "#endif".
3222         (update_dynamic_varobj_children): Likewise.
3223
3224 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
3225             Yao Qi  <yao@codesourcery.com>
3226
3227         * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3228         gdb_python_initialized is false.  Move some code from varobj.c.
3229         * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3230         * varobj.c: Move "varobj-iter.h" inclusion earlier.
3231         (struct varobj_item): Moved to varobj-iter.h".
3232         (varobj_clear_saved_item): New function.
3233         (update_dynamic_varobj_children): Move python-related code to
3234         py-varobj.c.
3235         (free_variable): Call varobj_clear_saved_item and
3236         varobj_iter_delete.
3237
3238 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
3239             Yao Qi  <yao@codesourcery.com>
3240
3241         * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3242         (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3243         (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3244         (py-varobj.o): New rule.
3245         * python/py-varobj.c: New file.
3246         * python/python-internal.h (py_varobj_get_iterator): Declare.
3247         * varobj-iter.h: New file.
3248         * varobj.c: Include "varobj-iter.h"
3249         (struct varobj) <child_iter>: Change its type from "PyObject *"
3250         to "struct varobj_iter *".
3251         <saved_item>: Likewise.
3252         [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3253         [HAVE_PYTHON] (varobj_get_iterator): New function.
3254         (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3255         python-specific code to python/py-varobj.c.
3256         (install_visualizer): Call varobj_iter_delete instead of
3257         Py_XDECREF.
3258         * varobj.h (varobj_ensure_python_env): Declare.
3259
3260 2014-06-12  Yao Qi  <yao@codesourcery.com>
3261
3262         * varobj.c (struct varobj_item): New structure.
3263         (create_child_with_value): Update declaration.
3264         (varobj_add_child): Replace arguments 'name' and 'value' with
3265         'item'.  All callers updated.
3266         (install_dynamic_child): Likewise.
3267         (update_dynamic_varobj_children): Likewise.
3268         (varobj_add_child): Likewise.
3269         (create_child_with_value): Likewise.
3270
3271 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
3272
3273         * NEWS: Create a new section for the next release branch.
3274         Rename the section of the current branch, now that it has
3275         been cut.
3276
3277 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
3278
3279         GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3280         * version.in: Bump version to 7.8.50.DATE-cvs.
3281
3282 2014-06-11  Pedro Alves  <palves@redhat.com>
3283
3284         PR remote/17028
3285         * ser-mingw.c (net_windows_socket_check_pending): New function.
3286         (net_windows_select_thread): Ignore spurious wakeups.  Use
3287         net_windows_socket_check_pending.
3288         (net_windows_wait_handle): Check for pending events with
3289         ioctlsocket, through net_windows_socket_check_pending, instead of
3290         checking the socket's event.
3291
3292 2014-06-10  Siva Chandra Reddy  <sivachandra@google.com>
3293
3294         * python/python-internal.h (gdb_PyObject_GetAttrString)
3295         (gdb_PyObject_HasAttrString): New inline function definitions.
3296         * py-value.c (get_field_flag): Remove the now unnecessary cast to
3297         char * of the second argument to PyObject_GetAttrString.
3298
3299 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
3300
3301         * serial.c (serial_write): Fix index of character to be printed
3302         in call to serial_logchar when serial debug traces are enabled.
3303
3304 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
3305
3306         * gdbtypes (resolve_dynamic_range): Add function description.
3307
3308 2014-06-09  Pedro Alves  <palves@redhat.com>
3309
3310         * linux-nat.c (linux_child_follow_fork): Initialize status with
3311         W_STOPCODE (0) instead of 0.  Remove shodowing 'status' local from
3312         inner block.  Only pass the signal to PTRACE_DETACH if in pass
3313         state.
3314
3315 2014-06-09  Gary Benson  <gbenson@redhat.com>
3316
3317         * common/signals.c (gdb_signal_from_host): Reorder to separate
3318         the always-available ANSI-standard signals from the signals that
3319         require checking.
3320         (do_gdb_signal_to_host): Likewise.
3321         * proc-events.c (signal_table): Likewise.
3322
3323 2014-06-08  Hui Zhu  <hui@codesourcery.com>
3324
3325         * common/linux-ptrace.c (linux_disable_event_reporting): New
3326         function.
3327         * common/linux-ptrace.h (linux_disable_event_reporting): New
3328         declaration.
3329         * linux-nat.c (linux_child_follow_fork): Do a single step before
3330         detach.
3331
3332 2014-06-07  Keith Seitz  <keiths@redhat.com>
3333
3334         Revert:
3335         PR c++/16253
3336         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3337         from symbol_matches_domain in symtab.c. All local callers
3338         of symbol_matches_domain updated.
3339         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3340         search STRUCT_DOMAIN.
3341         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3342         independently.  standard_lookup will do that automatically.
3343         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3344         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3345         (cp_lookup_symbol_in_namespace): Likewise.
3346         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3347         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3348         may return a STRUCT_DOMAIN match.
3349         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3350         * cp-support.c: Include language.h.
3351         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3352         VAR_DOMAIN.
3353         * psymtab.c (match_partial_symbol): Compare the requested
3354         domain with the symbol's domain directly.
3355         (lookup_partial_symbol): Likewise.
3356         * symtab.c (lookup_symbol_in_language): Explain when/why
3357         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3358         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3359         appropriate languages.
3360         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3361         and moved to ada-lang.c
3362         (lookup_block_symbol): Explain that this function only returns
3363         symbol matching the requested DOMAIN.
3364         Compare the requested domain with the symbol's domain directly.
3365         (iterate_over_symbols): Compare the requested domain with the
3366         symbol's domain directly.
3367         * symtab.h (symbol_matches_domain): Remove.
3368
3369 2014-06-06  Doug Evans  <xdje42@gmail.com>
3370
3371         * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3372         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3373         (gdbscm_guile_version_is_at_least): Declare.
3374         (gdbscm_scm_string_to_int): Declare.
3375         * guile/guile.c (gdbscm_guile_major_version): New global.
3376         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3377         (guile_datadir): New static global.
3378         (gdbscm_guile_data_directory): New function.
3379         (initialize_scheme_side): Update.
3380         (misc_guile_functions): Add guile-data-directory.
3381         (initialize_gdb_module): Fetch guile version number.
3382         * guile/lib/gdb.scm: Remove call to add-to-load-path.
3383         * guile/lib/gdb/init.scm (%initialize!): Ditto.
3384         * guile/lib/gdb/boot.scm: Use guile-data-directory.
3385         * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3386         comments.
3387         * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3388         * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3389         * guile/scm-value.c (gdbscm_value_to_string): Only call
3390         scm_port_conversion_strategy if Guile version >= 2.0.6.
3391
3392 2014-06-06  Mingjie Xing  <mingjie.xing@gmail.com>
3393
3394         * main.c (print_gdb_help): Add -q and --silent.
3395
3396 2014-06-06  Gary Benson  <gbenson@redhat.com>
3397
3398         * common/signals.c: Remove preprocessor conditionals for
3399         always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3400         SIGSEGV and SIGTERM.
3401         * proc-events.c: Likewise.
3402
3403 2014-06-06  Markus Metzger  <markus.t.metzger@intel.com>
3404
3405         * symfile.c (symfile_free_objfile): Remove restriction to
3406         OBJF_USERLOADED.
3407         * symfile-mem.c (symbol_file_add_from_memory): Call
3408         add_target_sections_of_objfile.
3409
3410 2014-06-05  Ludovic Courtès  <ludo@gnu.org>
3411
3412         * guile/scm-value.c (gdbscm_history_append_x): Use
3413         'vlscm_get_value_smob_arg_unsafe' instead of
3414         'vlscm_scm_to_value'.
3415
3416 2014-06-05  Simon Marchi  <simon.marchi@ericsson.com>
3417
3418         PR mi/15806
3419         * utils.c (printchar): Don't escape at all if quoter is NUL.
3420         Update function documentation to clarify effect of parameter
3421         QUOTER.
3422         * remote.c (escape_buffer): Pass '\\' as the quoter to
3423         fputstrn_unfiltered.
3424         * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3425         generate the output.
3426         (mi_solib_unloaded): Same.
3427
3428 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
3429
3430         * development.sh: Delete.
3431         * Makefile.in (config.status): Adjust dependency on development.sh.
3432         * configure.ac: Adjust development.sh source call.
3433         * configure: Regenerate.
3434
3435 2014-06-04  Doug Evans  <xdje42@gmail.com>
3436
3437         * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3438         is_scheme_bkpt, spec.
3439         (bpscm_make_breakpoint_smob): Initialize new members.
3440         (gdbscm_create_breakpoint_x): Split into two ...
3441         (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3442         (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3443         (scheme_function breakpoint_functions): Update.
3444         * guile/lib/gdb.scm: Delete create-breakpoint!.  Rename
3445         breakpoint-delete! to delete-breakpoint!.  Add make-breakpoint,
3446         register-breakpoint!.
3447
3448 2014-06-04  Joel Brobecker  <brobecker@adacorer.com>
3449
3450         PR server/17023
3451         * mem-break.c (z_type_supported): Return zero if
3452         THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3453
3454 2014-06-04  Tom Tromey  <tromey@redhat.com>
3455
3456         * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3457         value_from_contents_and_address_unresolved.
3458         (ada_template_to_fixed_record_type_1): Likewise.
3459         (ada_which_variant_applies): Likewise.
3460         * value.h (value_from_contents_and_address_unresolved): Declare.
3461         * value.c (value_from_contents_and_address_unresolved): New
3462         function.
3463         * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3464         <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3465         (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3466
3467 2014-06-04  Tom Tromey  <tromey@redhat.com>
3468
3469         * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3470
3471 2014-06-04  Tom Tromey  <tromey@redhat.com>
3472
3473         * procfs.c (procfs_attach): Make "args" const.
3474         * windows-nat.c (windows_attach): Make "args" const.
3475         * nto-procfs.c (procfs_attach): Make "args" const.
3476         * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3477         * go32-nat.c (go32_attach): Make "args" const.
3478         * gnu-nat.c (gnu_attach): Make "args" const.
3479         * darwin-nat.c (darwin_attach): Make "args" const.
3480         * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3481         * linux-nat.c (linux_nat_attach): Make "args" const.
3482         * remote.c (extended_remote_attach_1, extended_remote_attach):
3483         Make "args" const.
3484         * target.h (struct target_ops) <to_attach>: Make "args" const.
3485         (find_default_attach): Likewise.
3486         * utils.c (parse_pid_to_attach): Make "args" const.
3487         * utils.h (parse_pid_to_attach): Update.
3488
3489 2014-06-04  Tom Tromey  <tromey@redhat.com>
3490
3491         * target-delegates.c: Rebuild.
3492         * target.c (default_thread_address_space): New function.
3493         (target_thread_address_space): Simplify.
3494         * target.h (struct target_ops) <to_thread_address_space>: Add
3495         TARGET_DEFAULT_FUNC.
3496
3497 2014-06-04  Doug Evans  <xdje42@gmail.com>
3498
3499         * guile/scm-type.c (type_smob): Remove duplicate typedef.
3500
3501 2014-06-04  Markus Metzger  <markus.t.metzger@intel.com>
3502
3503         * record-btrace.c: Include event-loop.h and inf-loop.h.
3504         (record_btrace_resume_exec_dir)
3505         (record_btrace_async_inferior_event_handler)
3506         (record_btrace_handle_async_inferior_event): New.
3507         (record_btrace_open): Create async event handler.
3508         (record_btrace_close): Delete async event handler.
3509         (record_btrace_resume): Set record_btrace_resume_exec_dir,
3510         Mark async event handler.
3511         (record_btrace_execution_direction): New.
3512         (init_record_btrace_ops): Initialize to_execution_direction.
3513
3514 2014-06-03  Doug Evans  <xdje42@gmail.com>
3515
3516         * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3517         (gdbscm_make_parameter): Ditto.
3518
3519 2014-06-03  Doug Evans  <dje@google.com>
3520
3521         * exec.c (exec_close_1): Call clear_section_table instead of
3522         resize_section_table.
3523         (clear_section_table): New function.
3524         (resize_section_table): Make static.  Rename arg num_added to
3525         adjustment.
3526         * exec.h (clear_section_table): Declare.
3527         (resize_section_table): Delete.
3528         * progspace.c (release_program_space): Call clear_section_table
3529         instead of resize_section_table.
3530
3531 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
3532
3533         * NEWS (Python Scripting): Add entry about the new xmethods
3534         feature.
3535
3536 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
3537
3538         * python/py-xmethods.c: New file.
3539         * python/py-objfile.c (objfile_object): New field 'xmethods'.
3540         (objfpy_dealloc): XDECREF on the new xmethods field.
3541         (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3542         field.
3543         (objfpy_get_xmethods): New function.
3544         (objfile_getset): New entry 'xmethods'.
3545         * python/py-progspace.c (pspace_object): New field 'xmethods'.
3546         (pspy_dealloc): XDECREF on the new xmethods field.
3547         (pspy_new, pspace_to_pspace_object): Initialize xmethods
3548         field.
3549         (pspy_get_xmethods): New function.
3550         (pspace_getset): New entry 'xmethods'.
3551         * python/python-internal.h: Add declarations for new functions.
3552         * python/python.c (_initialize_python): Invoke
3553         gdbpy_initialize_xmethods.
3554         * python/lib/gdb/__init__.py (xmethods): New
3555         attribute.
3556         * python/lib/gdb/xmethod.py: New file.
3557         * python/lib/gdb/command/xmethods.py: New file.
3558
3559 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
3560
3561         * eval.c (evaluate_subexp_standard): Call the xmethod if the
3562         best match method returned by find_overload_match is an xmethod.
3563         * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3564         the best matching operator returned by find_overload_match is an
3565         xmethod.
3566         * valops.c: #include "extension.h".
3567         (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3568         Return void.  The list of matching source methods is returned in
3569         "fn_list" and a vector of matching debug method workers is
3570         returned in "xm_worker_vec".  Update all callers.
3571         (value_find_oload_method_list): Likewise.
3572         (find_oload_champ): Add "xm_worker_vec" parameter.  If it is
3573         non-NULL, then the index of the best matching method in this
3574         vector is returned.  Update all callers.
3575         (find_overload_match): Include xmethods while performing overload
3576         resolution.
3577
3578 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
3579
3580         * defs.h (enum lval_type): New enumerator "lval_xcallable".
3581         * extension-priv.h (struct extension_language_ops): Add the
3582         xmethod interface.
3583         * extension.c (new_xmethod_worker, clone_xmethod_worker,
3584         get_matching_xmethod_workers, get_xmethod_argtypes,
3585         invoke_xmethod, free_xmethod_worker,
3586         free_xmethod_worker_vec): New functions.
3587         * extension.h: #include "common/vec.h".
3588         New function declarations.
3589         (struct xmethod_worker): New struct.
3590         (VEC (xmethod_worker_ptr)): New vector type.
3591         (xmethod_worker_ptr): New typedef.
3592         (xmethod_worker_vec): Likewise.
3593         * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3594         builtin_type.
3595         * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3596         (struct builtin_type): New field "xmethod".
3597         * valarith.c (value_ptradd): Assert that the value argument is not
3598         lval_xcallable.
3599         * valops.c (value_must_coerce_to_target): Return 0 for
3600         lval_xcallable values.
3601         * value.c (struct value): New field XM_WORKER in the field
3602         LOCATION.
3603         (value_address, value_raw_address): Return 0 for lval_xcallable
3604         values.
3605         (set_value_address): Assert that the value is not an
3606         lval_xcallable.
3607         (value_free): Free the associated xmethod worker when freeing
3608         lval_xcallable values.
3609         (set_value_component_location): Assert that the WHOLE value is not
3610         lval_xcallable.
3611         (value_of_xmethod, call_xmethod): New functions.
3612         * value.h: Declare "struct xmethod_worker".
3613         Declare new functions value_of_xmethod, call_xmethod.
3614
3615 2014-06-03  Joel Brobecker  <brobecker@adacore.com>
3616             Pedro Alves  <palves@redhat.com>
3617
3618         PR breakpoints/17000
3619         * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3620         New function, extracted from software_breakpoint_inserted_here_p.
3621         (software_breakpoint_inserted_here_p): Replace factored out code
3622         by call to find_non_raw_software_breakpoint_inserted_here.
3623         (bp_target_info_copy_insertion_state): New function.
3624         (bkpt_insert_location): Handle the case of a single-step
3625         breakpoint already inserted at the same address.
3626         (bkpt_remove_location): Handle the case of a single-step
3627         breakpoint still inserted at the same address.
3628         (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3629         breakpoint already inserted at the same address.
3630         (deprecated_remove_raw_breakpoint): Handle the case of a
3631         non-raw breakpoint still inserted at the same address.
3632         (find_single_step_breakpoint): New function, extracted from
3633         single_step_breakpoint_inserted_here_p.
3634         (find_single_step_breakpoint): New function,
3635         factored out from single_step_breakpoint_inserted_here_p.
3636         (single_step_breakpoint_inserted_here_p): Reimplement.
3637
3638 2014-06-03  Brad Mouring  <bmouring@ni.com>  (tiny patch)
3639
3640         Pushed by Joel Brobecker  <brobecker@adacore.com>
3641         * source.c (show_substitute_path_command): Fix display of matching
3642         substitution rules.
3643
3644 2014-06-03  Gary Benson  <gbenson@redhat.com>
3645
3646         * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3647
3648 2014-06-02  Doug Evans  <xdje42@gmail.com>
3649
3650         Add parameter support for Guile.
3651         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3652         (SUBDIR_GUILE_SRCS): Add scm-param.c.
3653         (scm-param.o): New rule.
3654         * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3655         (gdbscm_misc_error): Declare.
3656         (gdbscm_canonicalize_command_name): Declare.
3657         (gdbscm_scm_to_host_string): Declare.
3658         (gdbscm_scm_from_host_string): Declare.
3659         (gdbscm_initialize_parameters): Declare.
3660         * guile/guile.c (initialize_gdb_module): Call
3661         gdbscm_initialize_parameters.
3662         * guile/lib/gdb.scm: Export parameter symbols.
3663         * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3664         cmdscm_canonicalize_name and made public.  All callers updated.
3665         * guile/scm-exception.c (gdbscm_misc_error): New function.
3666         * guile/scm-param.c: New file.
3667         * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3668         (gdbscm_scm_to_host_string): New function.
3669         (gdbscm_scm_from_host_string): New function.
3670         * scm-utils.c (gdbscm_gc_dup_argv): New function.
3671
3672 2014-06-02  Doug Evans  <xdje42@gmail.com>
3673
3674         Add command support for Guile.
3675         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3676         (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3677         (scm-cmd.o): New rule.
3678         * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3679         (gdbscm_user_error_p): Declare.
3680         (gdbscm_parse_command_name): Declare.
3681         (gdbscm_valid_command_class_p): Declare.
3682         (gdbscm_initialize_commands): Declare.
3683         * guile/guile.c (initialize_gdb_module): Call
3684         gdbscm_initialize_commands.
3685         * guile/lib/gdb.scm: Export command symbols.
3686         * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3687         (throw-user-error): New function.
3688         * guile/scm-cmd.c: New file.
3689         * guile/scm-exception.c (user_error_symbol): New static global.
3690         (gdbscm_user_error_p): New function.
3691         (gdbscm_initialize_exceptions): Set user_error_symbol.
3692         * scm-utils.c (gdbscm_gc_xstrdup): New function.
3693
3694 2014-06-02  Phil Muldoon  <pmuldoon@redhat.com>
3695
3696         * top.c (command_loop): Handle comments here...
3697         (command_line_input): ... not here.
3698
3699 2014-06-02  Doug Evans  <xdje42@gmail.com>
3700
3701         Add progspace support for Guile.
3702         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3703         (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3704         (scm-progspace.o): New rule.
3705         * guile/guile-internal.h (pspace_smob): New typedef.
3706         (psscm_pspace_smob_pretty_printers): Declare.
3707         (psscm_pspace_smob_from_pspace): Declare.
3708         (psscm_scm_from_pspace): Declare.
3709         * guile/guile.c (initialize_gdb_module): Call
3710         gdbscm_initialize_pspaces.
3711         * guile/lib/gdb.scm: Export progspace symbols.
3712         * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3713         support.
3714         (append-pretty-printer!): Ditto.
3715         * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3716         Implement.
3717         * guile/scm-progspace.c: New file.
3718
3719 2014-06-03  Alan Modra  <amodra@gmail.com>
3720
3721         * ppc64-tdep.c (ppc64_standard_linkage8): New.
3722         (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3723
3724 2014-06-02  Doug Evans  <dje@google.com>
3725
3726         Add support for skeletonless type units.
3727         * dwarf2read.c (struct dwarf2_per_objfile): New member
3728         n_allocated_type_units.
3729         (struct dwarf2_per_objfile) <tu_stats>: New member
3730         nr_all_type_units_reallocs.
3731         (create_signatured_type_table_from_index): Initialize
3732         n_allocated_type_units
3733         (create_all_type_units): Ditto.
3734         (add_type_unit): Move up in file.  New arg slot.
3735         All callers updated.  Increase space for all_type_units more
3736         efficiently.
3737         (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3738         (lookup_dwo_signatured_type): Handle skeletonless TUs.
3739         (lookup_dwp_signatured_type): Ditto.
3740         (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3741         All callers updated.
3742         (build_type_psymtabs_1): Leave type_unit_groups as
3743         NULL if no TUs present.
3744         (print_tu_stats): New function.
3745         (process_skeletonless_type_unit): New function.
3746         (process_dwo_file_for_skeletonless_type_units): New
3747         function.
3748         (process_skeletonless_type_units): New function.
3749         (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3750         Call print tu_stats if debugging enabled.
3751
3752 2014-06-02  Pedro Alves  <palves@redhat.com>
3753
3754         * breakpoint.c (build_target_command_list): Don't build a command
3755         list if we have any duplicate location that isn't a dprintf.
3756
3757 2014-06-02  Pedro Alves  <palves@redhat.com>
3758
3759         * breakpoint.c (dprintf_breakpoint_hit): New function.
3760         (initialize_breakpoint_ops): Install it as dprintf's
3761         breakpoint_hit method.
3762
3763 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
3764
3765         * source.c (substitute_path_rule_matches): Simplify using
3766         filename_ncmp instead of FILENAME_CMP.
3767
3768 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
3769
3770         * source.c (substitute_path_rule_matches): Remove trailing spaces.
3771
3772 2014-06-01  Ludovic Courtès  <ludo@gnu.org>
3773
3774         * configure.ac: When Guile is available, check for the
3775         availability of 'scm_new_smob'.
3776         * configure, config.h.in: Regenerate.
3777         * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3778         function.
3779
3780 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
3781
3782         * frame.c (struct frame_info): Add stop_string field.
3783         (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3784         (get_prev_frame_always): Old content moved into
3785         get_prev_frame_always_1.  Call get_prev_frame_always_1 inside
3786         TRY_CATCH, handle MEMORY_ERROR exceptions.
3787         (frame_stop_reason_string): New function definition.
3788         * frame.h (unwind_stop_reason_to_string): Extend comment to
3789         mention frame_stop_reason_string.
3790         (frame_stop_reason_string): New function declaration.
3791         * stack.c (frame_info): Switch to frame_stop_reason_string.
3792         (backtrace_command_1): Switch to frame_stop_reason_string.
3793         * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3794         (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3795         * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3796
3797 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
3798
3799         * frame.c (frame_stop_reason_string): Rename to ...
3800         (unwind_stop_reason_to_string): this.
3801         * frame.h (frame_stop_reason_string): Rename to ...
3802         (unwind_stop_reason_to_string): this.
3803         * stack.c (frame_info): Update call to frame_stop_reason_string.
3804         (backtrace_command_1): Likewise.
3805         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3806         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3807
3808 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
3809
3810         * frame.c (remove_prev_frame): New function.
3811         (get_prev_frame_if_no_cycle): Create / discard cleanup using
3812         remove_prev_frame.
3813
3814 2014-05-29  Pedro Alves  <palves@redhat.com>
3815
3816         * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3817         and make it const.  When a single-step decays to a continue,
3818         clear 'step', not 'hw_step'.  Pass whether the caller wanted
3819         to step to user_visible_resume_ptid, not what we ask the
3820         target to do.
3821
3822 2014-05-29  Pedro Alves  <palves@redhat.com>
3823
3824         * infrun.c (process_event_stop_test, handle_step_into_function)
3825         (handle_step_into_function_backward): Adjust.
3826         Don't set the even thread's stop_step and call stop_waiting before
3827         calling end_stepping_range.  Instead do that ...
3828         (end_stepping_range): ... here.  Take an ecs pointer parameter.
3829
3830 2014-05-29  Pedro Alves  <palves@redhat.com>
3831
3832         * infrun.c (stop_stepping): Rename to ...
3833         (stop_waiting): ... this.
3834         (proceed): Update comment.
3835         (process_event_stop_test, handle_inferior_event)
3836         (handle_signal_stop, handle_step_into_function)
3837         (handle_step_into_function_backward): Update.
3838
3839 2014-05-29  Pedro Alves  <palves@redhat.com>
3840
3841         * infcall.c (run_inferior_call): Don't check whether the current
3842         thread is running after the proceed call.
3843
3844 2014-05-29  Pedro Alves  <palves@redhat.com>
3845             Tom Tromey  <tromey@redhat.com>
3846
3847         * NEWS: Mention "maint set target-async", "set mi-async", and that
3848         background execution commands are now always available.
3849         * target.h (target_async_permitted): Update comment.
3850         * target.c (target_async_permitted, target_async_permitted_1):
3851         Default to 1.
3852         (set_target_async_command): Rename to ...
3853         (maint_set_target_async_command): ... this.
3854         (show_target_async_command): Rename to ...
3855         (maint_show_target_async_command): ... this.
3856         (_initialize_target): Adjust.
3857         * infcmd.c (prepare_execution_command): Make extern.
3858         * inferior.h (prepare_execution_command): Declare.
3859         * infrun.c (set_observer_mode): Leave target async alone.
3860         * mi/mi-interp.c (mi_interpreter_init): Install
3861         mi_on_sync_execution_done as sync_execution_done observer.
3862         (mi_on_sync_execution_done): New function.
3863         (mi_execute_command_input_handler): Don't print the prompt if we
3864         just started a synchronous command with an async target.
3865         (mi_on_resume): Check sync_execution before printing prompt.
3866         * mi/mi-main.h (mi_async_p): Declare.
3867         * mi/mi-main.c: Include gdbcmd.h.
3868         (mi_async_p): New function.
3869         (mi_async, mi_async_1): New globals.
3870         (set_mi_async_command, show_mi_async_command, mi_async): New
3871         functions.
3872         (exec_continue): Call prepare_execution_command.
3873         (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3874         (mi_execute_async_cli_command): Use mi_async_p.
3875         (_initialize_mi_main): Install "set mi-async".  Make
3876         "target-async" a deprecated alias.
3877
3878 2014-05-29  Pedro Alves  <palves@redhat.com>
3879
3880         * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3881         (_initialize_cli_interp): Adjust.
3882         * event-loop.c: Include "observer.h".
3883         (start_event_loop): Notify 'command_error' observers instead of
3884         calling display_gdb_prompt.  Remove FIXME comment.
3885         * event-top.c (display_gdb_prompt): Remove call into the
3886         interpreters.
3887         * inf-loop.c: Include "observer.h".
3888         (inferior_event_handler): Notify 'command_error' observers instead
3889         of calling display_gdb_prompt.
3890         * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3891         observers instead of calling display_gdb_prompt.
3892         * interps.c (interp_set): Don't call display_gdb_prompt.
3893         (current_interp_display_prompt_p): Delete.
3894         * interps.h (interp_prompt_p): Delete declaration.
3895         (interp_prompt_p_ftype): Delete.
3896         (struct interp_procs) <prompt_proc_p>: Delete field.
3897         (current_interp_display_prompt_p): Delete declaration.
3898         * mi-interp.c (mi_interpreter_prompt_p): Delete.
3899         (_initialize_mi_interp): Adjust.
3900         * tui-interp.c (tui_init): Install 'sync_execution_done' and
3901         'command_error' observers.
3902         (tui_on_sync_execution_done, tui_on_command_error): New
3903         functions.
3904         (tui_display_prompt_p): Delete.
3905         (_initialize_tui_interp): Adjust.
3906
3907 2014-05-29  Pedro Alves  <palves@redhat.com>
3908
3909         PR gdb/13860
3910         * cli/cli-interp.c: Include infrun.h and observer.h.
3911         (cli_uiout, cli_interp): New globals.
3912         (cli_on_signal_received, cli_on_end_stepping_range)
3913         (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3914         functions.
3915         (cli_interpreter_init): Install them as 'end_stepping_range',
3916         'signal_received' 'signal_exited', 'exited' and 'no_history'
3917         observers.
3918         (_initialize_cli_interp): Remove cli_interp local.
3919         * infrun.c (handle_inferior_event): Call the several stop reason
3920         observers instead of printing the stop reason directly.
3921         (end_stepping_range): New function.
3922         (print_end_stepping_range_reason, print_signal_exited_reason)
3923         (print_exited_reason, print_signal_received_reason)
3924         (print_no_history_reason): Make static, and add an uiout
3925         parameter.  Print to that instead of to CURRENT_UIOUT.
3926         * infrun.h (print_end_stepping_range_reason)
3927         (print_signal_exited_reason, print_exited_reason)
3928         (print_signal_received_reason print_no_history_reason): New
3929         declarations.
3930         * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3931         'mi_uiout'.
3932         <cli_uiout>: New field.
3933         * mi/mi-interp.c (mi_interpreter_init): Adjust.  Create the new
3934         uiout for CLI output.  Install 'signal_received',
3935         'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3936         observers.
3937         (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3938         (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3939         (mi_on_no_history): New functions.
3940         (ui_out_free_cleanup): Delete function.
3941         (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3942         instead use the one already stored in the MI interpreter data.
3943         (mi_ui_out): Adjust.
3944         * tui/tui-interp.c: Include infrun.h and observer.h.
3945         (tui_interp): New global.
3946         (tui_on_signal_received, tui_on_end_stepping_range)
3947         (tui_on_signal_exited, tui_on_exited)
3948         (tui_on_no_history): New functions.
3949         (tui_init): Install them as 'end_stepping_range',
3950         'signal_received' 'signal_exited', 'exited' and 'no_history'
3951         observers.
3952         (_initialize_tui_interp): Delete tui_interp local.
3953
3954 2014-05-29  Pedro Alves  <palves@redhat.com>
3955
3956         PR gdb/15713
3957         * linux-nat.c (linux_nat_resume_callback): Rename the second
3958         parameter to 'except'.  Skip LP if it points to EXCEPT.
3959         (linux_nat_resume): Don't mark the event lwp as not stopped
3960         before resuming sibling lwps.  Instead ask
3961         linux_nat_resume_callback to skip the event lwp.  Mark it as not
3962         stopped after actually resuming it.
3963         (linux_handle_syscall_trap): Mark the lwp as not stopped after
3964         resuming it.
3965         (wait_lwp): Mark the lwp as stopped here.
3966         (stop_wait_callback): Mark the lwp as not stopped right after
3967         resuming it.  Don't mark lwps as stopped here.
3968         (linux_nat_filter_event): Mark the lwp as stopped earlier.
3969         (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3970
3971 2014-05-29  Pedro Alves  <palves@redhat.com>
3972
3973         PR PR15693
3974         * infrun.c (resume): Determine how much to resume depending on
3975         whether the caller wanted a step, not whether we can hardware step
3976         the target.  Mark all threads that we intend to run as running,
3977         unless we're calling an inferior function.
3978         (normal_stop): If the thread is running an infcall, don't finish
3979         thread state.
3980         * target.c (target_resume): Don't mark threads as running here.
3981
3982 2014-05-28  Joel Brobecker  <brobecker@adacore.com>
3983
3984         * serial.c (_initialize_serial): Remove support for
3985         the "set remotebaud" and "show remotebaud" commands.
3986         * NEWS: Add entry documenting the removal of that command.
3987
3988 2014-05-28  Yao Qi  <yao@codesourcery.com>
3989
3990         * charset.c: Fix typo in comments.
3991
3992 2014-05-27  Gary Benson  <gbenson@redhat.com>
3993
3994         * utils.c (internal_vproblem): Prompt for a bug report.
3995
3996 2014-05-26  Andy Wingo  <wingo@igalia.com>
3997
3998         * guile/scm-arch.c (arscm_mark_arch_smob):
3999         * guile/scm-block.c (bkscm_mark_block_smob)
4000         (bkscm_mark_block_syms_progress_smob):
4001         * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4002         * guile/scm-exception.c (exscm_mark_exception_smob):
4003         * guile/scm-frame.c (frscm_mark_frame_smob):
4004         * guile/scm-iterator.c (itscm_mark_iterator_smob):
4005         * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4006         * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4007         * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4008         (ppscm_mark_pretty_printer_worker_smob):
4009         * guile/scm-symbol.c (syscm_mark_symbol_smob):
4010         * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4011         * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4012         * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4013         mark functions.
4014         * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4015         function.
4016
4017 2014-05-26  Andy Wingo  <wingo@igalia.com>
4018             Doug Evans  <xdje42@gmail.com>
4019
4020         * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4021         empty_base_class.  All uses updated.
4022         (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4023         (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4024         Adapt all callers.
4025         * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4026         (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4027         (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4028         (gdbscm_gsmob_has_property_p, add_property_name)
4029         (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4030         * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4031         (gdb-object-has-property?, gdb-object-properties): Remove.
4032         (gdb-object-kind): Renamed from gsmob-kind.
4033
4034 2014-05-26  Andy Wingo  <wingo@igalia.com>
4035
4036         * configure.ac (try_guile_versions): Allow building with guile 2.2.
4037         * configure: Regenerate.
4038
4039 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
4040
4041         * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4042
4043 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
4044
4045         * record-btrace.c (record_btrace_allow_memory_access): Remove.
4046         (replay_memory_access_read_only, replay_memory_access_read_write)
4047         (replay_memory_access_types, replay_memory_access)
4048         (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4049         (cmd_set_record_btrace, cmd_show_record_btrace)
4050         (cmd_show_replay_memory_access): New.
4051         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4052         (record_btrace_remove_breakpoint): Replace
4053         record_btrace_allow_memory_access with replay_memory_access.
4054         (_initialize_record_btrace): Add commands.
4055         * NEWS: Announce it.
4056
4057 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4058
4059         * aarch64-linux-nat.c (asm/ptrace.h): Include.
4060
4061 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4062
4063         * MAINTAINERS (Write After Approval): Move self back from
4064         paper trail.
4065
4066 2014-05-22  Pedro Alves  <palves@redhat.com>
4067
4068         * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4069         (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4070         (disable_randomization, enum exec_direction_kind)
4071         (execution_direction, stop_registers, start_remote)
4072         (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4073         (wait_for_inferior, normal_stop, get_last_target_status)
4074         (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4075         (insert_step_resume_breakpoint_at_sal)
4076         (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4077         (set_step_info, print_stop_event, signal_stop_state)
4078         (signal_print_state, signal_pass_state, signal_stop_update)
4079         (signal_print_update, signal_pass_update)
4080         (update_signals_program_target, clear_exit_convenience_vars)
4081         (displaced_step_dump_bytes, update_observer_mode)
4082         (signal_catch_update, gdb_signal_from_command): Move
4083         declarations ...
4084         * infrun.h: ... to this new file.
4085         * amd64-tdep.c: Include infrun.h.
4086         * annotate.c: Include infrun.h.
4087         * arch-utils.c: Include infrun.h.
4088         * arm-linux-tdep.c: Include infrun.h.
4089         * arm-tdep.c: Include infrun.h.
4090         * break-catch-sig.c: Include infrun.h.
4091         * breakpoint.c: Include infrun.h.
4092         * common/agent.c: Include infrun.h instead of inferior.h.
4093         * corelow.c: Include infrun.h.
4094         * event-top.c: Include infrun.h.
4095         * go32-nat.c: Include infrun.h.
4096         * i386-tdep.c: Include infrun.h.
4097         * inf-loop.c: Include infrun.h.
4098         * infcall.c: Include infrun.h.
4099         * infcmd.c: Include infrun.h.
4100         * infrun.c: Include infrun.h.
4101         * linux-fork.c: Include infrun.h.
4102         * linux-nat.c: Include infrun.h.
4103         * linux-thread-db.c: Include infrun.h.
4104         * monitor.c: Include infrun.h.
4105         * nto-tdep.c: Include infrun.h.
4106         * procfs.c: Include infrun.h.
4107         * record-btrace.c: Include infrun.h.
4108         * record-full.c: Include infrun.h.
4109         * remote-m32r-sdi.c: Include infrun.h.
4110         * remote-mips.c: Include infrun.h.
4111         * remote-notif.c: Include infrun.h.
4112         * remote-sim.c: Include infrun.h.
4113         * remote.c: Include infrun.h.
4114         * reverse.c: Include infrun.h.
4115         * rs6000-tdep.c: Include infrun.h.
4116         * s390-linux-tdep.c: Include infrun.h.
4117         * solib-irix.c: Include infrun.h.
4118         * solib-osf.c: Include infrun.h.
4119         * solib-svr4.c: Include infrun.h.
4120         * target.c: Include infrun.h.
4121         * top.c: Include infrun.h.
4122         * windows-nat.c: Include infrun.h.
4123         * mi/mi-interp.c: Include infrun.h.
4124         * mi/mi-main.c: Include infrun.h.
4125         * python/py-threadevent.c: Include infrun.h.
4126
4127 2014-05-22  Pedro Alves  <palves@redhat.com>
4128
4129         * infrun.c (handle_inferior_event): Store the exit code for
4130         --return-child-result here, instead of ...
4131         (print_exited_reason): ... here.
4132
4133 2014-05-21  Pedro Alves  <palves@redhat.com>
4134
4135         PR gdb/13860
4136         * gdbthread.h (struct thread_control_state): New field
4137         `command_interp'.
4138         * infrun.c (follow_fork): Copy the new thread control field to the
4139         child fork thread.
4140         (clear_proceed_status_thread): Clear the new thread control field.
4141         (proceed): Set the new thread control field.
4142         * interps.h (command_interp): Declare.
4143         * interps.c (command_interpreter): New global.
4144         (command_interp): New function.
4145         (interp_exec): Set `command_interpreter' while here.
4146         * cli-out.c (cli_uiout_dtor): New function.
4147         (cli_ui_out_impl): Install it.
4148         * mi/mi-interp.c: Include cli-out.h.
4149         (mi_cmd_interpreter_exec): Add comment.
4150         (restore_current_uiout_cleanup): New function.
4151         (ui_out_free_cleanup): New function.
4152         (mi_on_normal_stop): If finishing an execution command started by
4153         a CLI command, or any kind of breakpoint-like event triggered,
4154         print the stop event to the output (CLI) stream.
4155         * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4156
4157 2014-05-21  Pedro Alves  <palves@redhat.com>
4158
4159         * cli/cli-cmds.c (list_command): Handle the first "list" after the
4160         current source line having changed.
4161         * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4162         * infrun.c (normal_stop): Adjust call to
4163         set_current_sal_from_frame.
4164         * source.c (clear_lines_listed_range): New function.
4165         (set_current_source_symtab_and_line, identify_source_line): Clear
4166         the lines listed range.
4167         (line_info): Handle the first "info line" after the current source
4168         line having changed.
4169         * stack.c (print_stack_frame): Remove center handling.
4170         (set_current_sal_from_frame): Remove 'center' parameter.  Don't
4171         center sal.line.
4172
4173 2014-05-21  Pedro Alves  <palves@redhat.com>
4174
4175         * inf-child.c (inf_child_mourn_inferior): New function.
4176         * inf-child.h (inf_child_mourn_inferior): New declaration.
4177         * darwin-nat.c (darwin_mourn_inferior): Use
4178         inf_child_mourn_inferior.
4179         * gnu-nat.c (gnu_mourn_inferior): Likewise.
4180         * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4181         * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4182         * nto-procfs.c (procfs_mourn_inferior): Likewise.
4183         * windows-nat.c (windows_mourn_inferior): Likewise.
4184
4185 2014-05-21  Doug Evans  <xdje42@gmail.com>
4186
4187         * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4188
4189 2014-05-21  Doug Evans  <xdje42@gmail.com>
4190
4191         * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4192         (gdbscm_out_of_range_error): Ditto.
4193         (gdbscm_memory_error): Ditto.
4194         * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4195         * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4196         (gdbscm_out_of_range_error): Update.
4197         (gdbscm_memory_error): Update.
4198         (gdbscm_scm_to_target_string_unsafe): Delete.
4199
4200 2014-05-21  Pedro Alves  <palves@redhat.com>
4201
4202         * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4203         globals.
4204         (inf_child_open_target): New function.
4205         (inf_child_open): Use inf_child_open_target to push the target
4206         instead of erroring out.
4207         (inf_child_disconnect, inf_child_close)
4208         (inf_child_maybe_unpush_target): New functions.
4209         (inf_child_target): Install inf_child_disconnect and
4210         inf_child_close.  Store a pointer to the returned object.
4211         * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4212         declarations.
4213         * target.c (auto_connect_native_target): New global.
4214         (show_default_run_target): New function.
4215         (find_default_run_target): Return NULL if automatically connecting
4216         to the native target is disabled.
4217         (_initialize_target): Install set/show auto-connect-native-target.
4218         * NEWS: Mention "set auto-connect-native-target", and "target
4219         native".
4220         * linux-nat.c (super_close): New global.
4221         (linux_nat_close): Call super_close.
4222         (linux_nat_add_target): Store a pointer to the base class's
4223         to_close method.
4224         * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4225         inf_child_maybe_unpush.
4226         * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4227         already pushed.
4228         (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4229         the inferior.  Use inf_child_maybe_unpush_target.
4230         (inf_ttrace_attach): Don't push the target if it is already
4231         pushed.
4232         (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4233         * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4234         after mourning the inferior.  Use inf_child_maybe_unpush_target.
4235         (darwin_attach_pid): Don't push the target if it is already
4236         pushed.
4237         * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4238         mourning the inferior.  Use inf_child_maybe_unpush_target.
4239         (gnu_detach): Use inf_child_maybe_unpush_target.
4240         * go32-nat.c (go32_create_inferior): Don't push the target if it
4241         is already pushed.
4242         (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4243         * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4244         (procfs_open): Rename to ...
4245         (procfs_open_1): ... this.  Add target_ops parameter.  Adjust
4246         comments.  Can target_preopen before changing node.  Call
4247         inf_child_open_target to push the target explicitly.
4248         (procfs_attach): Don't push the target if it is already pushed.
4249         (procfs_detach): Use inf_child_maybe_unpush_target.
4250         (procfs_create_inferior): Don't push the target if it is already
4251         pushed.
4252         (nto_native_ops): New global.
4253         (procfs_open): Reimplement.
4254         (procfs_native_open): New function.
4255         (init_procfs_targets): Install procfs_native_open as to_open of
4256         "target native".  Store a pointer to the "native" target in
4257         nto_native_ops.
4258         * procfs.c (procfs_attach): Don't push the target if it is already
4259         pushed.
4260         (procfs_detach): Use inf_child_maybe_unpush_target.
4261         (procfs_mourn_inferior): Only unpush the target after mourning the
4262         inferior.  Use inf_child_maybe_unpush_target.
4263         (procfs_init_inferior): Don't push the target if it is already
4264         pushed.
4265         * windows-nat.c (do_initial_windows_stuff): Don't push the target
4266         if it is already pushed.
4267
4268 2014-05-21  Pedro Alves  <palves@redhat.com>
4269
4270         * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4271         and "procfs" targets are now called "native" instead.
4272
4273 2014-05-21  Pedro Alves  <palves@redhat.com>
4274
4275         * go32-nat.c (go32_open): Delete.
4276         (go32_target): Don't override the to_open method.
4277
4278 2014-05-21  Pedro Alves  <palves@redhat.com>
4279
4280         * nto-procfs.c (procfs_can_run): New function.
4281         (nto_procfs_ops): New global.
4282         (init_procfs_targets): New, based on procfs_target.  Install
4283         "target native" in addition to "target procfs".
4284         (_initialize_procfs): Call init_procfs_targets instead of adding
4285         the target here.
4286
4287 2014-05-21  Pedro Alves  <palves@redhat.com>
4288
4289         * windows-nat.c (windows_target): Don't override to_shortname,
4290         to_longname or to_doc.
4291
4292 2014-05-21  Pedro Alves  <palves@redhat.com>
4293
4294         * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4295         to_doc.
4296
4297 2014-05-21  Pedro Alves  <palves@redhat.com>
4298
4299         * darwin-nat.c (_initialize_darwin_inferior): Don't override
4300         to_shortname, to_longname or to_doc.
4301
4302 2014-05-21  Pedro Alves  <palves@redhat.com>
4303
4304         * go32-nat.c (go32_target): Don't override to_shortname,
4305         to_longname or to_doc.
4306
4307 2014-05-21  Pedro Alves  <palves@redhat.com>
4308
4309         * inf-child.c (inf_child_open): Remove mention of "child".
4310         (inf_child_target): Rename target to "native" instead of "child".
4311
4312 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4313
4314         * Makefile.in (SFILES): Delete "regset.c".
4315         (COMMON_OBS): Delete "regset.o".
4316         * regset.c: Remove.
4317         * regset.h (regset_alloc): Delete prototype.
4318
4319 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4320
4321         * sparc-linux-tdep.c (sparc32_linux_gregset)
4322         (sparc32_linux_fpregset): New static regset structures.
4323         (sparc32_linux_init_abi): Drop dynamic regset allocations.
4324         * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4325         'fpregset' fields.
4326         * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4327         (sparc64_linux_fpregset): New static regset structures.
4328         (sparc64_linux_init_abi): Drop dynamic regset allocations.
4329         * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4330         New static regset structures.
4331         (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4332         * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4333         New static regset structures.
4334         (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4335         * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4336         New static regset structures.
4337         (sparc64obsd_init_abi): Drop dynamic regset allocations.
4338         * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4339         New static regset structures.
4340         (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4341
4342 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4343
4344         * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4345         (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4346         register maps ("regmaps") from "*regset" to "*regmap".  Do this
4347         for all regmap types and variables.
4348         * sparc-linux-tdep.c (sparc32_linux_step_trap)
4349         (sparc32_linux_supply_core_gregset)
4350         (sparc32_linux_collect_core_gregset)
4351         (sparc32_linux_supply_core_fpregset)
4352         (sparc32_linux_collect_core_fpregset): Likewise.
4353         * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4354         (sparc_gregmap, sparc_fpregmap): ... these.
4355         (sparc_supply_gregset, sparc_collect_gregset)
4356         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4357         (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4358         (_initialize_sparc_nat): Rename regmaps.
4359         * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4360         (sparc_gregmap, sparc_fpregmap): ... these.
4361         (sparc_supply_gregset, sparc_collect_gregset)
4362         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4363         * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4364         Rename macros to...
4365         (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4366         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4367         Likewise.
4368         * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4369         Rename to...
4370         (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4371         * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4372         (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4373         regmaps.
4374         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4375         (sparc32_bsd_fpregset): Rename to...
4376         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4377         (sparc32_bsd_fpregmap): ... these.
4378         * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4379         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4380         (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4381         (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4382         (struct sparc_gregmap, struct sparc_fpregmap)
4383         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4384         (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4385         (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4386         (sparc32_supply_regset, sparc32_collect_gregset)
4387         (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4388         prototypes.
4389         * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4390         (sparc64_linux_ptrace_gregmap): ... this.
4391         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4392         (_initialize_sparc64_linux_nat): Rename regmaps.
4393         * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4394         (sparc64_linux_core_gregmap): ... this.
4395         (sparc64_linux_supply_core_gregset)
4396         (sparc64_linux_collect_core_gregset)
4397         (sparc64_linux_supply_core_fpregset)
4398         (sparc64_linux_collect_core_fpregset): Rename regmaps.
4399         * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4400         (sparc64_sol2_fpregset): Rename to...
4401         (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4402         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4403         (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4404         regmaps.
4405         * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4406         (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4407         (sparc64_bsd_fpregset): Rename to...
4408         (struct sparc_gregmap, sparc64_sol2_gregmap)
4409         (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4410         (sparc64_bsd_fpregmap): ... these.
4411         (sparc64_supply_gregset, sparc64_collect_gregset)
4412         (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4413         prototypes.
4414         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4415         * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4416         (sparc64fbsd_gregmap): ... this.
4417         (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4418         (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4419         Rename regmaps.
4420         * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4421         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4422         (sparc64nbsd_collect_fpregset): Likewise.
4423         * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4424         (sparc64nbsd_gregmap): ... this.
4425         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4426         regmaps.
4427         * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4428         * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4429         (sparc64obsd_gregmap): ... this.
4430         (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4431         regmaps.
4432         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4433         * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4434         (sparc32nbsd_gregmap): ... this.
4435         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4436         regmaps.
4437
4438 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4439
4440         * score-tdep.c (score7_linux_gregset): New static regset
4441         structure.
4442         (score7_linux_regset_from_core_section): Remove dynamic regset
4443         allocation.
4444         (score_gdbarch_init): Drop allocation of tdep structure.
4445         * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4446
4447 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4448
4449         * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4450         regset structures.
4451         (am33_regset_from_core_section): Remove dynamic regset
4452         allocations.
4453
4454 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4455
4456         * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4457         (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4458         structures.
4459         (mips_linux_regset_from_core_section): Remove dynamic regset
4460         allocations.
4461         * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4462         'gregset64', 'fpregset', and 'fpregset64'.
4463         * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4464         deleted tdep fields.
4465
4466 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4467
4468         * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4469         regset structures.
4470         (amd64_regset_from_core_section): Remove dynamic regset
4471         allocations.
4472         * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4473         structure.
4474         (amd64obsd_regset_from_core_section): Remove dynamic regset
4475         allocation.
4476         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4477         Likewise.
4478         * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4479         x86-common regset supply function.
4480         * i386-tdep.c (i386_collect_gregset): Make static.
4481         (i386_gregset): New global regset structure.
4482         (i386_fpregset, i386_xstateregset): New static regset structures.
4483         (i386_regset_from_core_section): Remove dynamic regset
4484         allocations.
4485         (i386_gdbarch_init): Remove initialization of tdep fields
4486         'gregset', 'fpregset', and 'xstateregset'.
4487         * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4488         'fpregset', and 'xstateregset'.
4489         (i386_collect_gregset): Remove prototype.
4490         (i386_gregset): New declaration.
4491         * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4492         structure.
4493         (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4494         allocation.
4495
4496 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4497
4498         * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4499         (arm_linux_vfpregset): New static regset structures.
4500         (arm_linux_regset_from_core_section): Remove dynamic allocation of
4501         regset structures.
4502         * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4503         and 'vfpregset' fields.
4504
4505 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4506
4507         * aarch64-linux-tdep.c (aarch64_linux_gregset)
4508         (aarch64_linux_fpregset): New static regset structures.
4509         (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4510         of regset structures.
4511         * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4512         'fpregset' fields.
4513
4514 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4515
4516         * regset.h (struct regset): Remove gdbarch field.
4517         * regset.c (regset_alloc): Drop initialization of gdbarch field.
4518         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4519         * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4520         Likewise.
4521         * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4522         (ppc32_linux_fpregset, ppc32_linux_vrregset)
4523         (ppc32_linux_vsxregset): Likewise.
4524         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4525         via the regcache instead of the regset.
4526         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4527         (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4528         * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4529         * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4530         Likewise.
4531
4532 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4533
4534         * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4535         Constify structures.
4536         * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4537         (alphanbsd_aout_gregset): Likewise.
4538         * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4539         * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4540         Likewise.
4541         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4542         * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4543         Likewise.
4544         * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4545         * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4546         * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4547         * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4548         * m88k-tdep.c (m88k_gregset): Likewise.
4549         * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4550         * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4551         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4552         * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4553         * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4554         * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4555         * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4556         * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4557         * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4558         Likewise.
4559         * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4560         * sh-tdep.h (sh_corefile_gregset): Likewise.
4561         * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4562         * vax-tdep.c (vax_gregset): Likewise.
4563
4564 2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
4565
4566         Fix TLS access for -static -pthread.
4567         * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4568         (try_thread_db_load_1): Initialize it.
4569         (thread_db_get_thread_local_address): Call it if LM is zero.
4570         * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4571         * target.h (struct target_ops) (to_get_thread_local_address): Add
4572         load_module_addr comment.
4573
4574 2014-05-21  Pedro Alves  <palves@redhat.com>
4575
4576         * dcache.c (dcache_read_memory_partial): If reading the cache line
4577         fails, fallback to reading just the memory the caller wanted.
4578
4579 2014-05-20  Doug Evans  <dje@google.com>
4580
4581         * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4582         instead of get_current_arch.
4583
4584 2014-05-20  Pedro Alves  <palves@redhat.com>
4585
4586         * NEWS: Mention that compare-sections now works with all targets.
4587
4588         * remote.c (PACKET_qCRC): New enum value.
4589         (remote_verify_memory): Don't send qCRC if the target has no
4590         execution.  Use packet_support/packet_ok.  If the target doesn't
4591         support the qCRC packet, fallback to a deep memory copy.
4592         (compare_sections_command): Say "target image" instead of "remote
4593         executable".
4594         (_initialize_remote): Add PACKET_qCRC to the list of config
4595         packets that have no associated command.  Extend comment.
4596         * target.c (simple_verify_memory, default_verify_memory): New
4597         function.
4598         * target.h (struct target_ops) <to_verify_memory>: Default to
4599         default_verify_memory.
4600         (simple_verify_memory): New declaration.
4601         * target-delegates.c: Regenerate.
4602
4603 2014-05-20  Markus Metzger  <markus.t.metzger@intel.com>
4604
4605         * record-btrace.c (record_btrace_step_thread): Check for empty history.
4606
4607 2014-05-20  Hui Zhu  <hui@codesourcery.com>
4608             Yao Qi  <yao@codesourcery.com>
4609
4610         PR backtrace/16558
4611         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4612         and change address of sp and pc.
4613
4614 2014-05-19  Tom Tromey  <tromey@redhat.com>
4615
4616         * gdbtypes.c (rank_function): Use XNEWVEC.
4617         * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4618
4619 2014-05-19  Doug Evans  <dje@google.com>
4620
4621         * dwarf2read.c (build_type_psymtabs_1): Renamed from
4622         build_type_unit_groups and moved closer to only caller.  Remove
4623         arguments.  All references updated.  Remove outdated .gdb_index
4624         comment.
4625         (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4626         build_type_psymtabs_1.
4627
4628 2014-05-19  Doug Evans  <dje@google.com>
4629
4630         * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4631         n_type_unit_groups, all_type_unit_groups.  All uses removed.
4632         (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4633         (dw2_get_cutu): Renamed from dw2_get_cu.  All callers updated.
4634         (dw2_get_cu): Renamed from dw2_get_primary_cu.  All callers updated.
4635         (add_type_unit_group_to_table): Delete.
4636
4637 2014-05-19  Doug Evans  <dje@google.com>
4638
4639         * eval.c (evaluate_subexp_standard): Add some comments.
4640
4641 2014-05-17  Doug Evans  <xdje42@gmail.com>
4642
4643         * progspace.c (remove_program_space): Delete, unused.
4644         * progspace.h (remove_program_space): Ditto.
4645
4646 2014-05-17  Doug Evans  <xdje42@gmail.com>
4647
4648         * inferior.c (prune_inferiors): Fix comment.
4649         (remove_inferior_command): Call prune_program_spaces.
4650
4651 2014-05-16  Doug Evans  <dje@google.com>
4652
4653         New command line option -D.
4654         * NEWS: Mention it.
4655         * main.c (set_gdb_data_directory): New function.
4656         (captured_main): Recognize -D.  Flag error for --data-directory "".
4657         Call set_gdb_data_directory.
4658         (print_gdb_help): Print --data-directory, -D.
4659         * main.h (set_gdb_data_directory): Declare.
4660         * top.c (staged_gdb_datadir): New static global.
4661         (set_gdb_datadir): Call set_gdb_data_directory
4662         (show_gdb_datadir): New function.
4663         (init_main): Update init of data-directory parameter.
4664
4665 2014-05-16  Gregory Fong  <gregory.0xf0@gmail.com>
4666
4667         Import the "dirfd" gnulib module.
4668         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4669         * gnulib/aclocal.m4: Update.
4670         * gnulib/config.in: Update.
4671         * gnulib/configure: Update.
4672         * gnulib/import/Makefile.am: Update.
4673         * gnulib/import/Makefile.in: Update.
4674         * gnulib/import/dirfd.c: New.
4675         * gnulib/import/m4/dirfd.m4: New.
4676         * gnulib/import/m4/gnulib-cache.m4: Update.
4677         * gnulib/import/m4/gnulib-comp.m4: Update.
4678
4679 2014-05-16  Pierre Muller  <muller@sourceware.org>
4680             Yao Qi  <yao@codesourcery.com>
4681
4682         * valprint.c (print_wchar): Move the code on checking whether
4683         W is a printable wide char to the default branch of switch
4684         statement below.  Call wchar_printable instead of gdb_iswprint.
4685
4686 2014-05-16  Taimoor Mirza  <tmirza@codesourcery.com>
4687
4688         * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4689         ldr.w and ldrd instructions.
4690
4691 2014-05-15  Doug Evans  <dje@google.com>
4692
4693         * dwarf2read.c (read_structure_type): Delete outdated comments.
4694
4695 2014-05-14  Tom Tromey  <tromey@redhat.com>
4696
4697         * macrocmd.c (print_macro_definition): Reindent.
4698
4699 2014-05-13  Doug Evans  <xdje42@gmail.com>
4700
4701         * python/py-cmd.c (cmdpy_completer): Add comment.
4702         (completers): Make const.
4703
4704 2014-05-13  Simon Marchi  <simon.marchi@ericsson.com>
4705
4706         * infrun.c (resume): Remove should_resume (unused).  Move up
4707         declaration of resume_ptid.
4708
4709 2014-05-13  Tom Tromey  <tromey@redhat.com>
4710
4711         * language.h (unop_type_check): Remove.
4712         (binop_type_check): Don't declare.
4713
4714 2014-05-13  Andreas Arnez  <arnez@vnet.linux.ibm.com>
4715
4716         * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4717         call to regcache_raw_collect.
4718
4719 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
4720
4721         * mi/mi-console.c (mi_console_raw_packet): Use the value from
4722         mi_console->quote as the quoting character.
4723
4724 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
4725
4726         * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4727
4728 2014-04-29  Tom Tromey  <tromey@redhat.com>
4729
4730         * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4731         "show debug varobj".
4732
4733 2014-05-07  Kyle McMartin  <kyle@redhat.com>
4734
4735         Pushed by Joel Brobecker  <brobecker@adacore.com>.
4736         * aarch64-tdep.c (aarch64_software_single_step): New function.
4737         (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4738         with aarch64_software_single_step.
4739
4740 2014-05-05  Joel Brobecker  <brobecker@adacore.com>
4741
4742         GDB 7.7.1 released.
4743
4744 2014-05-05  Keith Seitz  <keiths@redhat.com>
4745
4746         * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4747         variable or history value is successfully parsed.
4748
4749 2014-05-05  Yao Qi  <yao@codesourcery.com>
4750             Pedro Alves  <palves@redhat.com>
4751
4752         * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4753         address of blocks that intersects the requested range.  Trim
4754         LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4755         sections.
4756         * ctf.c (ctf_xfer_partial): Likewise.
4757
4758 2014-05-05  Yao Qi  <yao@codesourcery.com>
4759
4760         * printcmd.c (display_command): Remove the check to
4761         target_has_execution.
4762
4763 2014-05-03  Mark Kettenis  <kettenis@gnu.org>
4764
4765         * ppcobsd-nat.c: Include "obsd-nat.h".
4766         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4767         add_target.
4768         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4769
4770 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
4771
4772         * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4773         and 16-bit signed and unsigned arguments.  Update comment.
4774         (stap_parse_probe_arguments): Extend code to handle such
4775         arguments.  Use warning instead of complaint to notify about
4776         unrecognized bitness.
4777
4778 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
4779
4780         PR breakpoints/16889
4781         * stap-probe.c (stap_parse_probe_arguments): Simplify
4782         check for non-prefixed probes (i.e., probes whose
4783         arguments do not start with "N@").  Always set the
4784         argument type to a sane value.
4785
4786 2014-05-01  David Taylor  <dtaylor@emc.com>
4787
4788         * remote.c (compare_sections_command): Add -r option to compare
4789         all loadable read-only sections.
4790
4791 2014-04-30  Siva Chandra Reddy  <sivachandra@google.com>
4792
4793         * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4794         dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4795         Update all callers.
4796         * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4797         * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4798         Remove unused CORE_ADDR argument.  Update all callers.
4799
4800 2014-04-29  Pedro Alves  <palves@redhat.com>
4801
4802         * remote.c (struct packet_config) <detect>: Extend comment.
4803         (add_packet_config_cmd): Don't set the config's detect or support
4804         fields here.
4805         (init_all_packet_configs): Also initialize the config's 'detect'
4806         field.
4807         (reset_all_packet_configs_support): New function.
4808         (remote_open_1): Call reset_all_packet_configs_support instead of
4809         init_all_packet_configs.
4810         (_initialize_remote): Initialize all packet configs.  Assert that
4811         all packets have an associated command, except a few known
4812         outliers.
4813
4814 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
4815
4816         * dwarf2read.c (read_subrange_type): Handle dynamic
4817         DW_AT_lower_bound attributes.
4818
4819 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
4820
4821         * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4822         dynamic bounds before computing its upper bound.
4823         (ada_discrete_type_low_bound): Same as above with the lower bound.
4824
4825 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
4826
4827         * dwarf2read.c (is_dynamic_type): Return true for dynamic
4828         range types.  Adjust the array handling implementation to
4829         take advantage of this change.
4830         (resolve_dynamic_range): New function, mostly extracted from
4831         resolve_dynamic_bounds.
4832         (resolve_dynamic_array): New function, mostly extracted from
4833         resolve_dynamic_bounds.
4834         (resolve_dynamic_bounds): Delete.
4835         (resolve_dynamic_type): Reimplement.  Add handling of
4836         TYPE_CODE_RANGE types.
4837
4838 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
4839
4840         * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4841         handling of parallel ___XA types.
4842
4843 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
4844
4845         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4846         unnecessary second call to static_unwrap_type.
4847
4848 2014-04-27  Hui Zhu  <hui@codesourcery.com>
4849
4850         * stack.c (print_frame_info): Call do_gdb_disassembly with
4851         DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4852
4853 2014-04-26  Doug Evans  <xdje42@gmail.com>
4854
4855         * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4856
4857 2014-04-25  Pedro Alves  <palves@redhat.com>
4858
4859         PR server/16255
4860         * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4861         (linux_ptrace_attach_fail_reason): ... this.  Remove "warning: "
4862         and newline from built string.
4863         * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4864         (linux_ptrace_attach_fail_reason): ... this.
4865         * linux-nat.c (linux_nat_attach): Adjust to use
4866         linux_ptrace_attach_fail_reason.
4867
4868 2014-04-25  Pedro Alves  <palves@redhat.com>
4869
4870         * remote.c (struct remote_state): Remove multi_process_aware,
4871         non_stop_aware, cond_tracepoints, cond_breakpoints,
4872         breakpoint_commands, fast_tracepoints, static_tracepoints,
4873         install_in_trace, disconnected_tracing,
4874         enable_disable_tracepoints, string_tracing, and
4875         augmented_libraries_svr4_read fields.
4876         (remote_multi_process_p): Move further below in the file.
4877         (struct packet_config): Add comments.
4878         (update_packet_config): Delete function.
4879         (show_packet_config_cmd): Use packet_config_support.
4880         (add_packet_config_cmd): Use NULL as set callback.
4881         (packet_ok): "set remote foo-packet"-style commands no longer
4882         change config->supported -- adjust.
4883         (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4884         (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4885         (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4886         (PACKET_QNonStop, PACKET_multiprocess_feature)
4887         (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4888         (PACKET_DisconnectedTracing_feature)
4889         (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4890         (set_remote_protocol_packet_cmd): Delete function.
4891         (packet_config_support, packet_support): New functions.
4892         (set_remote_protocol_Z_packet_cmd): Don't call
4893         update_packet_config.
4894         (remote_query_attached, remote_pass_signals)
4895         (remote_program_signals, remote_threads_info)
4896         (remote_threads_extra_info, remote_start_remote): Use
4897         packet_support.
4898         (remote_start_remote): Use packet_config_support and
4899         packet_support.
4900         (init_all_packet_configs): Set all packets to unknown support,
4901         instead of calling update_packet_config.
4902         (remote_check_symbols): Use packet_support.
4903         (remote_supported_packet): Unconditionally set the packet config's
4904         support status.
4905         (remote_multi_process_feature, remote_non_stop_feature)
4906         (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4907         (remote_breakpoint_commands_feature)
4908         (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4909         (remote_install_in_trace_feature)
4910         (remote_disconnected_tracing_feature)
4911         (remote_enable_disable_tracepoint_feature)
4912         (remote_string_tracing_feature)
4913         (remote_augmented_libraries_svr4_read_feature): Delete functions.
4914         (remote_protocol_features): Adjust to use remote_supported_packet
4915         for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4916         "ConditionalTracepoints", "ConditionalBreakpoints",
4917         "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4918         "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4919         "EnableDisableTracepoints", and "tracenz".
4920         (remote_query_supported): Use packet_support.
4921         (remote_open_1): Adjust.
4922         (extended_remote_attach_1): Use packet_support.  Switch on the
4923         result of packet_ok instead of checking whether the packet ended
4924         up disabled.
4925         (remote_vcont_resume): Use packet_support.
4926         (remote_resume, remote_stop_ns, fetch_register_using_p)
4927         (remote_prepare_to_store, store_register_using_P)
4928         (check_binary_download, remote_write_bytes): Use packet_support.
4929         (remote_vkill): Use packet_support.  Switch on the result of
4930         packet_ok instead of checking whether the packet ended up
4931         disabled.
4932         (extended_remote_supports_disable_randomization): Use
4933         packet_support.
4934         (extended_remote_run): Switch on the result of packet_ok instead
4935         of checking whether the packet ended up disabled.
4936         (remote_insert_breakpoint, remote_remove_breakpoint)
4937         (remote_insert_watchpoint, remote_remove_watchpoint)
4938         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4939         packet_support.
4940         (remote_search_memory): Use packet_config_support.
4941         (remote_get_thread_local_address, remote_get_tib_address)
4942         (remote_hostio_send_command, remote_can_execute_reverse): Use
4943         packet_support.
4944         (remote_supports_cond_tracepoints)
4945         (remote_supports_cond_breakpoints)
4946         (remote_supports_fast_tracepoints)
4947         (remote_supports_static_tracepoints)
4948         (remote_supports_install_in_trace)
4949         (remote_supports_enable_disable_tracepoint)
4950         (remote_supports_string_tracing)
4951         (remote_can_run_breakpoint_commands): Rewrite, checking whether
4952         the packet config says the feature is enabled or disabled.
4953         (remote_download_tracepoint, remote_trace_set_readonly_regions)
4954         (remote_get_trace_status): Use packet_support.
4955         (remote_set_disconnected_tracing): Adjust to check whether the
4956         feature is enabled with packet_support.
4957         (remote_set_trace_buffer_size, remote_use_agent)
4958         (remote_can_use_agent, remote_supports_btrace): Use
4959         packet_support.
4960         (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4961         Use packet_config_support.
4962         (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4963         the packet config says the feature is enabled or disabled.
4964         (set_range_stepping): Use packet_support.
4965
4966 2014-04-25  Tom Tromey  <tromey@redhat.com>
4967
4968         * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4969         argument.
4970
4971 2014-04-24  Sanimir Agovic  <sanimir.agovic@intel.com>
4972
4973         * NEWS: Mention support for C99 variable length arrays.
4974
4975 2014-04-24  Joel Brobecker  <brobecker@adacore.com>
4976
4977         * ada-lang.c (standard_exc): Expand introductory comment.
4978
4979 2014-04-24  Michael Sturm  <michael.sturm@mintel.com>
4980             Walfred Tedeschi  <walfred.tedeschi@intel.com>
4981
4982         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
4983         AVX512 registers.
4984         (amd64_linux_read_description): Add code to handle AVX512 xstate
4985         mask and return respective tdesc.
4986         * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
4987         and features/i386/x32-avx512-linux.c.
4988         (amd64_linux_gregset_reg_offset): Add AVX512 registers.
4989         (amd64_linux_core_read_description): Add code to handle AVX512
4990         xstate mask and return respective tdesc.
4991         (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
4992         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
4993         calculation.
4994         (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
4995         (tdesc_amd64_avx512_linux): New prototype.
4996         (tdesc_x32_avx512_linux): Likewise.
4997         * amd64-tdep.c: Include features/i386/amd64-avx512.c and
4998         features/i386/x32-avx512.c.
4999         (amd64_ymm_avx512_names): New register names for pseudo
5000         registers YMM16-31.
5001         (amd64_ymmh_avx512_names): New register names for raw registers
5002         YMMH16-31.
5003         (amd64_k_names): New register names for K registers.
5004         (amd64_zmmh_names): New register names for ZMM raw registers.
5005         (amd64_zmm_names): New registers names for ZMM pseudo registers.
5006         (amd64_xmm_avx512_names): New register names for XMM16-31
5007         registers.
5008         (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5009         registers.
5010         (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5011         if feature is present.
5012         (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5013         * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5014         (AMD64_NUM_REGS): Adjust to new number of registers.
5015         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5016         registers supplied via XSTATE by AVX512 registers.
5017         (i386_linux_read_description): Add case for AVX512.
5018         * i386-linux-tdep.c: Include i386-avx512-linux.c.
5019         (i386_linux_gregset_reg_offset): Add AVX512 registers.
5020         (i386_linux_core_read_description): Add case for AVX512.
5021         (i386_linux_init_abi): Install supported register note section
5022         for AVX512.
5023         (_initialize_i386_linux_tdep): Add call to tdesc init function for
5024         AVX512.
5025         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5026         registers to be number of zmm7h + 1.
5027         (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5028         * i386-tdep.c: Include features/i386/i386-avx512.c.
5029         (i386_zmm_names): Add ZMM pseudo register names array.
5030         (i386_zmmh_names): Add ZMM raw register names array.
5031         (i386_k_names): Add K raw register names array.
5032         (num_lower_zmm_regs): Add constant for the number of lower ZMM
5033         registers. AVX512 has 16 more ZMM registers than there are YMM
5034         registers.
5035         (i386_zmmh_regnum_p): Add function to look up register number of
5036         ZMM raw registers.
5037         (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5038         (i386_k_regnum_p): Likewise for K raw registers.
5039         (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5040         registers added by AVX512.
5041         (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5042         registers added by AVX512.
5043         (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5044         added by AVX512.
5045         (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5046         (i386_pseudo_register_name): Add ZMM pseudo registers.
5047         (i386_zmm_type): Construct and return vector registers type for ZMM
5048         registers.
5049         (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5050         ZMM0-31 pseudo registers and K registers.
5051         (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5052         and YMM16-31 registers from register cache.
5053         (i386_pseudo_register_write): Add code to write  K, ZMM and
5054         YMM16-31 registers.
5055         (i386_register_reggroup_p): Add code to include/exclude AVX512
5056         registers in/from respective register groups.
5057         (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5058         registers if feature is present in xcr0.
5059         (i386_gdbarch_init): Add code to initialize AVX512 feature
5060         variables in tdep structure, wire in pseudo registers and call
5061         initialize_tdesc_i386_avx512.
5062         * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5063         variables.
5064         (i386_regnum): Add AVX512 registers.
5065         (I386_SSE_NUM_REGS): New define for number of SSE registers.
5066         (I386_AVX_NUM_REGS): Likewise for AVX registers.
5067         (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5068         (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5069         512 bits wide.
5070         (i386_xmm_avx512_regnum_p): New prototype for register look up.
5071         (i386_ymm_avx512_regnum_p): Likewise.
5072         (i386_k_regnum_p): Likewise.
5073         (i386_zmm_regnum_p): Likewise.
5074         (i386_zmmh_regnum_p): Likewise.
5075         * i387-tdep.c : Update year in copyright notice.
5076         (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5077         XSAVE buffer.
5078         (XSAVE_YMM_AVX512_ADDR): New macro.
5079         (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5080         XSAVE buffer.
5081         (XSAVE_XMM_AVX512_ADDR): New macro.
5082         (xsave_avx512_k_offset): New table for K register offsets in
5083         XSAVE buffer.
5084         (XSAVE_AVX512_K_ADDR): New macro.
5085         (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5086         in XSAVE buffer.
5087         (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5088         (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5089         buffer.
5090         (i387_collect_xsave): Add code to collect AVX512 registers from
5091         XSAVE buffer.
5092         * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5093         of XMM16-31 registers.
5094         (I387_NUM_K_REGS): New define for number of K registers.
5095         (I387_K0_REGNUM): New define for K0 register number.
5096         (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5097         (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5098         (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5099         registers.
5100         (I387_YMM16H_REGNUM): New define for YMM16H register number.
5101         (I387_XMM16_REGNUM): New define for XMM16 register number.
5102         (I387_YMM0_REGNUM): New define for YMM0 register number.
5103         (I387_KEND_REGNUM): New define for last K register number.
5104         (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5105         (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5106         number.
5107         (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5108         number.
5109         * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5110         size.
5111         * features/Makefile: Add AVX512 related files.
5112         * features/i386/32bit-avx512.xml: New file.
5113         * features/i386/64bit-avx512.xml: Likewise.
5114         * features/i386/amd64-avx512-linux.c: Likewise.
5115         * features/i386/amd64-avx512-linux.xml: Likewise.
5116         * features/i386/amd64-avx512.c: Likewise.
5117         * features/i386/amd64-avx512.xml: Likewise.
5118         * features/i386/i386-avx512-linux.c: Likewise.
5119         * features/i386/i386-avx512-linux.xml: Likewise.
5120         * features/i386/i386-avx512.c: Likewise.
5121         * features/i386/i386-avx512.xml: Likewise.
5122         * features/i386/x32-avx512-linux.c: Likewise.
5123         * features/i386/x32-avx512-linux.xml: Likewise.
5124         * features/i386/x32-avx512.c: Likewise.
5125         * features/i386/x32-avx512.xml: Likewise.
5126         * regformats/i386/amd64-avx512-linux.dat: New file.
5127         * regformats/i386/amd64-avx512.dat: Likewise.
5128         * regformats/i386/i386-avx512-linux.dat: Likewise.
5129         * regformats/i386/i386-avx512.dat: Likewise.
5130         * regformats/i386/x32-avx512-linux.dat: Likewise.
5131         * regformats/i386/x32-avx512.dat: Likewise.
5132         * NEWS: Add note about new support for AVX512.
5133
5134
5135 2014-04-23  Pedro Alves  <palves@redhat.com>
5136
5137         * breakpoint.c (insert_bp_location): Tolerate errors if the
5138         breakpoint is set in a user-loaded objfile.
5139         (remove_breakpoint_1): Likewise.  Also tolerate errors if the
5140         location is marked shlib_disabled.  If the breakpoint is set in a
5141         user-loaded objfile is a GDB-side memory breakpoint, validate it
5142         before uninsertion.  (disable_breakpoints_in_freed_objfile): Skip
5143         non-OBJF_USERLOADED objfiles.  Don't clear the location's inserted
5144         flag.
5145         * mem-break.c (memory_validate_breakpoint): New function.
5146         * objfiles.c (userloaded_objfile_contains_address_p): New
5147         function.
5148         * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5149         * target.h (memory_validate_breakpoint): New declaration.
5150
5151 2014-04-23  Pedro Alves  <palves@redhat.com>
5152
5153         * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5154         the breakpoint is set in a shared library, only suppress
5155         errors for software breakpoints, not hardware breakpoints.
5156
5157 2014-04-22  Pedro Alves  <palves@redhat.com>
5158
5159         * infrun.c (schedlock_applies): New function, factored out from
5160         find_thread_needs_step_over.
5161         (find_thread_needs_step_over): Use it.
5162         (switch_back_to_stepped_thread): Always clear trap_expected if the
5163         step over is finished.  Return early if scheduler locking applies.
5164         Look for the stepping thread and a potential step-over thread with
5165         a single loop.
5166         (currently_stepping_or_nexting_callback): Delete.
5167
5168 2014-04-22  Nick Clifton  <nickc@redhat.com>
5169
5170         * NEWS: Mention that ARM sim now supports tracing.
5171
5172 2014-04-22  Yao Qi  <yao@codesourcery.com>
5173
5174         * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5175         to ...
5176         * tracefile.c (tracefile_fetch_registers): ... it.  New
5177         function.
5178         * tracefile.h (tracefile_fetch_registers): Declare.
5179         * ctf.c (ctf_fetch_registers): Remove the bottom.  Call
5180         tracefile_fetch_registers.
5181
5182 2014-04-19  Eli Zaretskii  <eliz@gnu.org>
5183
5184         PR gdb/14018
5185         * windows-nat.c (thread_rec): Don't display a warning when
5186         SuspendThread fails with ERROR_ACCESS_DENIED.  If SuspendThread
5187         fails for any reason, set th->suspended to -1, so that we don't
5188         try to resume such a thread.  Also, don't return NULL in these
5189         cases, to avoid completely ruin the session due to "PC register is
5190         not available" error.
5191         (do_windows_fetch_inferior_registers): Check errors in
5192         GetThreadContext call.
5193         (windows_continue): Accept an additional argument KILLED; if not
5194         zero, ignore errors in the SetThreadContext call, since the
5195         inferior was killed and is shutting down.
5196         (windows_resume, get_windows_debug_event)
5197         (windows_create_inferior, windows_mourn_inferior)
5198         (windows_kill_inferior): All callers of windows_continue changed
5199         to adjust to its new calling sequence.
5200
5201 2014-04-19  Yao Qi  <yao@codesourcery.com>
5202
5203         * ctf.c (ctf_open): Call post_create_inferior.
5204
5205 2014-04-19  Yao Qi  <yao@codesourcery.com>
5206
5207         * ctf.c (handle_id): New static variable.
5208         (ctf_open_dir): Get handle_id from bt_context_add_trace return
5209         value.  Get the declaration of event "register" and get length
5210         of field "contents".
5211
5212 2014-04-19  Yao Qi  <yao@codesourcery.com>
5213
5214         * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5215
5216 2014-04-18  Siva Chandra Reddy  <sivachandra@google.com>
5217
5218         * valops.c (oload_method_static): Remove unnecessary argument
5219         METHOD.  Update all callers.
5220
5221 2014-04-18  Pedro alves  <palves@redhat.com>
5222             Tom Tromey  <tromey@redhat.com>
5223
5224         PR backtrace/15558
5225         * frame.c (get_prev_frame_1): Rename to ...
5226         (get_prev_frame_always): ... this, and make extern.  Adjust.
5227         (skip_artificial_frames): Use get_prev_frame_always.
5228         (frame_unwind_caller_id, frame_pop, get_prev_frame)
5229         (get_frame_unwind_stop_reason): Adjust to rename.
5230         * frame.h (get_prev_frame_always): Declare.
5231         * inline-frame.c: Include frame.h.
5232         (inline_frame_this_id): Use get_prev_frame_always.
5233
5234 2014-04-18  Tristan Gingold  <gingold@adacore.com>
5235
5236         * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5237         code by using bfd_mach_o_get_base_address.
5238
5239 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
5240
5241         * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5242         (spu_ax_pseudo_register_collect): New function.
5243         (spu_ax_pseudo_register_push_stack): Likewise.
5244         (spu_dwarf_reg_to_regnum): Likewise.
5245         (spu_gdbarch_init): Install them.  Append DWARF unwinders.
5246
5247 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
5248
5249         * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5250         Replace FRAME argument with FRAME_ID.
5251         * gdbarch.c, gdbarch.h: Regenerate.
5252         * findvar.c (default_value_from_register): Add GDBARCH argument;
5253         replace FRAME by FRAME_ID.  No longer call get_frame_id.
5254         (value_from_register): Update call to gdbarch_value_from_register.
5255         * value.h (default_value_from_register): Update prototype.
5256         * s390-linux-tdep.c (s390_value_from_register): Update interface
5257         and call to default_value_from_register.
5258         * spu-tdep.c (spu_value_from_register): Likewise.
5259
5260         * findvar.c (address_from_register): Remove TYPE argument.
5261         Do not call value_from_register; use gdbarch_value_from_register
5262         with null_frame_id instead.
5263         * value.h (address_from_register): Update prototype.
5264         * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5265         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5266         address_from_register interface change.
5267
5268 2014-04-17  Yao Qi  <yao@codesourcery.com>
5269
5270         * gdbtypes.h: Update comments to link to types and macros'
5271         definitions.
5272
5273 2014-04-16  Siva Chandra Reddy  <sivachandra@google.com>
5274
5275         * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5276
5277 2014-04-16  Keith Seitz  <keiths@redhat.com>
5278
5279         PR gdb/15827
5280         * dwarf2read.c (skip_one_die): Check that all relative-offset
5281         sibling DIEs fall within range of the current reader's buffer.
5282         (read_partial_die): Likewise.
5283
5284 2014-04-16  Keith Seitz  <keiths@redhat.com>
5285
5286         PR c++/16597
5287         * cp-namespace.c (lookup_symbol_file): If the type name of
5288         `this' is NULL, return immediately.
5289
5290 2014-04-14  Keith Seitz  <keiths@redhat.com>
5291
5292         PR c++/16253
5293         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5294         from symbol_matches_domain in symtab.c. All local callers
5295         of symbol_matches_domain updated.
5296         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5297         search STRUCT_DOMAIN.
5298         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5299         independently.  standard_lookup will do that automatically.
5300         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5301         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5302         (cp_lookup_symbol_in_namespace): Likewise.
5303         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5304         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5305         may return a STRUCT_DOMAIN match.
5306         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5307         * cp-support.c: Include language.h.
5308         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5309         VAR_DOMAIN.
5310         * psymtab.c (match_partial_symbol): Compare the requested
5311         domain with the symbol's domain directly.
5312         (lookup_partial_symbol): Likewise.
5313         * symtab.c (lookup_symbol_in_language): Explain when/why
5314         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5315         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5316         appropriate languages.
5317         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5318         and moved to ada-lang.c
5319         (lookup_block_symbol): Explain that this function only returns
5320         symbol matching the requested DOMAIN.
5321         Compare the requested domain with the symbol's domain directly.
5322         (iterate_over_symbols): Compare the requested domain with the
5323         symbol's domain directly.
5324         * symtab.h (symbol_matches_domain): Remove.
5325
5326 2014-04-14  Tom Tromey  <tromey@redhat.com>
5327
5328         PR c++/15246:
5329         * c-exp.y (type_aggregate_p): New function.
5330         (qualified_name, classify_inner_name): Use it.
5331         * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5332         and TYPE_TARGET_TYPE of an enum type.
5333         * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5334         an enum type.
5335         (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5336         handle TYPE_DECLARED_CLASS.
5337         * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5338         types.
5339         * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5340         * valops.c (enum_constant_from_type): New function.
5341         (value_aggregate_elt): Use it.
5342         * cp-namespace.c (cp_lookup_nested_symbol): Handle
5343         TYPE_CODE_ENUM.
5344
5345 2014-04-14  Tom Tromey  <tromey@redhat.com>
5346
5347         * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5348         (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5349         const.
5350         * value.h (value_aggregate_elt): Update.
5351
5352 2014-04-14  Tom Tromey  <tromey@redhat.com>
5353
5354         * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5355
5356 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
5357
5358         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5359         (evaluate_subexp_standard): Pass noside argument.
5360         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5361         if noside equals EVAL_NORMAL. If the subscript yields a vla type
5362         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5363         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5364         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5365
5366 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
5367
5368         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5369         points to a constant blob.
5370
5371 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
5372
5373         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5374         property and store it as the high bound and flag the range accordingly.
5375         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5376         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5377         * gdbtypes.h (enum range_flags): New enum.
5378         (struct range_bounds): Add flags member.
5379
5380 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
5381
5382         * c-typeprint.c (c_type_print_varspec_suffix): Added
5383         check for not yet resolved high bound. If unresolved, print
5384         "variable length" string to the console instead of random
5385         length.
5386
5387 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
5388
5389         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5390         value.
5391         (ada_template_to_fixed_record_type_1): Likewise.
5392         (ada_to_fixed_type_1): Likewise.
5393         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5394         (cp_print_value): Likewise.
5395         * d-valprint.c (dynamic_array_type): Likewise.
5396         * findvar.c (address_of_variable): Likewise.
5397         * jv-valprint.c (java_value_print): Likewise.
5398         * valops.c (value_ind): Likewise.
5399         * value.c (coerce_ref): Likewise.
5400
5401 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
5402
5403         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5404         value and retrieve the dynamic type size.
5405
5406 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
5407
5408         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5409         passed to sizeof is dynamic evaluate the argument to compute the length.
5410
5411 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
5412             Joel Brobecker  <brobecker@adacore.com>
5413
5414         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5415         (dwarf2_evaluate_property): New function.
5416         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5417         * dwarf2read.c (attr_to_dynamic_prop): New function.
5418         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5419         attribute.
5420         * gdbtypes.c: Include dwarf2loc.h.
5421         (is_dynamic_type): New function.
5422         (resolve_dynamic_type): New function.
5423         (resolve_dynamic_bounds): New function.
5424         (get_type_length): New function.
5425         (check_typedef): Use get_type_length to compute type length.
5426         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5427         (TYPE_LOW_BOUND_KIND): New macro.
5428         (is_dynamic_type): New function prototype.
5429         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5430         to resolve dynamic properties of the type. Update comment.
5431         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5432
5433 2014-04-14  Richard Henderson  <rth@redhat.com>
5434
5435         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5436
5437 2014-04-12  Siva Chandra Reddy  <sivachandra@google.com>
5438             Doug Evans  <xdje42@gmail.com>
5439
5440         * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5441         dereference TYPE_CODE_REF values.
5442
5443 2014-04-11  Joel Brobecker  <brobecker@adacore.com>
5444
5445         Revert the following changes due to regressions:
5446
5447         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5448         (dwarf2_evaluate_property): New function.
5449         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5450         * dwarf2read.c (attr_to_dynamic_prop): New function.
5451         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5452         attribute.
5453         * gdbtypes.c: Include dwarf2loc.h.
5454         (is_dynamic_type): New function.
5455         (resolve_dynamic_type): New function.
5456         (resolve_dynamic_bounds): New function.
5457         (get_type_length): New function.
5458         (check_typedef): Use get_type_length to compute type length.
5459         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5460         (TYPE_LOW_BOUND_KIND): New macro.
5461         (is_dynamic_type): New function prototype.
5462         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5463         to resolve dynamic properties of the type. Update comment.
5464         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5465
5466         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5467         passed to sizeof is dynamic evaluate the argument to compute the length.
5468
5469         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5470         value and retrieve the dynamic type size.
5471
5472         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5473         (ada_template_to_fixed_record_type_1): Likewise.
5474         (ada_to_fixed_type_1): Likewise.
5475         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5476         (cp_print_value): Likewise.
5477         * d-valprint.c (dynamic_array_type): Likewise.
5478         * eval.c (evaluate_subexp_with_coercion): Likewise.
5479         * findvar.c (address_of_variable): Likewise.
5480         * jv-valprint.c (java_value_print): Likewise.
5481         * valops.c (value_ind): Likewise.
5482         * value.c (coerce_ref): Likewise.
5483
5484         * c-typeprint.c (c_type_print_varspec_suffix): Added
5485         check for not yet resolved high bound. If unresolved, print
5486         "variable length" string to the console instead of random
5487         length.
5488
5489         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5490         property and store it as the high bound and flag the range accordingly.
5491         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5492         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5493         * gdbtypes.h (enum range_flags): New enum.
5494         (struct range_bounds): Add flags member.
5495
5496         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5497         points to a constant blob.
5498
5499         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5500         (evaluate_subexp_standard): Pass noside argument.
5501         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5502         if noside equals EVAL_NORMAL. If the subscript yields a vla type
5503         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5504         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5505         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5506
5507 2014-04-11  Keith Seitz  <keiths@redhat.com>
5508
5509         PR c++/16675
5510         * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5511         * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5512         reference types.
5513
5514 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5515
5516         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5517         (evaluate_subexp_standard): Pass noside argument.
5518         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5519         if noside equals EVAL_NORMAL. If the subscript yields a vla type
5520         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5521         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5522         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5523
5524 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5525
5526         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5527         points to a constant blob.
5528
5529 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5530
5531         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5532         property and store it as the high bound and flag the range accordingly.
5533         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5534         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5535         * gdbtypes.h (enum range_flags): New enum.
5536         (struct range_bounds): Add flags member.
5537
5538 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5539
5540         * c-typeprint.c (c_type_print_varspec_suffix): Added
5541         check for not yet resolved high bound. If unresolved, print
5542         "variable length" string to the console instead of random
5543         length.
5544
5545 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5546
5547         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5548         (ada_template_to_fixed_record_type_1): Likewise.
5549         (ada_to_fixed_type_1): Likewise.
5550         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5551         (cp_print_value): Likewise.
5552         * d-valprint.c (dynamic_array_type): Likewise.
5553         * eval.c (evaluate_subexp_with_coercion): Likewise.
5554         * findvar.c (address_of_variable): Likewise.
5555         * jv-valprint.c (java_value_print): Likewise.
5556         * valops.c (value_ind): Likewise.
5557         * value.c (coerce_ref): Likewise.
5558
5559 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5560
5561         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5562         value and retrieve the dynamic type size.
5563
5564 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5565
5566         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5567         passed to sizeof is dynamic evaluate the argument to compute the length.
5568
5569 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5570
5571         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5572         (dwarf2_evaluate_property): New function.
5573         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5574         * dwarf2read.c (attr_to_dynamic_prop): New function.
5575         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5576         attribute.
5577         * gdbtypes.c: Include dwarf2loc.h.
5578         (is_dynamic_type): New function.
5579         (resolve_dynamic_type): New function.
5580         (resolve_dynamic_bounds): New function.
5581         (get_type_length): New function.
5582         (check_typedef): Use get_type_length to compute type length.
5583         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5584         (TYPE_LOW_BOUND_KIND): New macro.
5585         (is_dynamic_type): New function prototype.
5586         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5587         to resolve dynamic properties of the type. Update comment.
5588         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5589
5590 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5591
5592         * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5593         declaring high/low bounds and change uses accordingly. Call
5594         create_range_type instead of create_static_range_type.
5595         * gdbtypes.c (create_range_type): New function.
5596         (create_range_type): Convert bounds into struct bound_prop and pass
5597         them to create_range_type.
5598         * gdbtypes.h (struct bound_prop): New struct.
5599         (create_range_type): New function prototype.
5600         (struct range_bounds): Use struct bound_prop instead of LONGEST for
5601         high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5602         (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5603         part of the bound.
5604         * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5605
5606 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
5607
5608         * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5609         * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5610         * ada-lang.c: All uses of create_range_type updated.
5611         * coffread.c: All uses of create_range_type updated.
5612         * dwarf2read.c: All uses of create_range_type updated.
5613         * f-exp.y: All uses of create_range_type updated.
5614         * m2-valprint.c: All uses of create_range_type updated.
5615         * mdebugread.c: All uses of create_range_type updated.
5616         * stabsread.c: All uses of create_range_type updated.
5617         * valops.c: All uses of create_range_type updated.
5618         * valprint.c: All uses of create_range_type updated.
5619
5620 2014-04-10  Pedro Alves  <palves@redhat.com>
5621
5622         * breakpoint.c (single_step_breakpoints)
5623         (single_step_gdbarch): Move up in the file.
5624         (one_breakpoint_xfer_memory): New function, factored out from ...
5625         (breakpoint_xfer_memory): ... here.  Also process single-step
5626         breakpoints.
5627
5628 2014-04-09  Tristan Gingold  <gingold@adacore.com>
5629
5630         * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5631         comments.
5632         (darwin_decode_exception_message): Free port only after use.
5633
5634 2014-04-08  Pierre Langlois  <pierre.langlois@embecosm.com>
5635
5636         * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5637         (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5638         when setting the size of call_length.
5639
5640 2014-04-07  Siva Chandra Reddy  <sivachandra@google.com>
5641
5642         * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5643         dereference TYPE_CODE_REF values.
5644
5645 2014-04-07  Joel Brobecker  <brobecker@adacore.com>
5646
5647         * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5648         end of warning message.
5649
5650 2014-04-03  Doug Evans  <dje@google.com>
5651
5652         * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5653         of stub_comp_unit_die, stub_comp_dir is non-NULL.
5654
5655 2014-04-02  Alan Modra  <amodra@gmail.com>
5656
5657         * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5658         Pass to bfd_elf_bfd_from_remote_memory.  Adjust all callers.
5659         (struct symbol_file_add_from_memory_args): Add size field.
5660         (find_vdso_size): New function.
5661         (add_vsyscall_page): Attempt to find vdso size.
5662
5663 2014-04-01  Doug Evans  <dje@google.com>
5664
5665         * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5666
5667 2014-04-01  Tristan Gingold  <gingold@adacore.com>
5668
5669         * darwin-nat.c (darwin_encode_reply): Add prototype.
5670         (darwin_decode_exception_message): Reply to unknown inferiors.
5671         (darwin_decode_message): Handle message by id.  Ignore message
5672         to unknown inferior.
5673         (darwin_wait): Discard unknown messages, add debug trace.
5674
5675 2014-03-31  Doug Evans  <dje@google.com>
5676
5677         * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5678         comp_dir_string.
5679
5680 2014-03-31  Doug Evans  <dje@google.com>
5681
5682         New option "set print symbol-loading".
5683         * NEWS: Mention it.
5684         * solib.c (solib_read_symbols): Only print symbol loading messages
5685         if requested.
5686         (solib_add): If symbol loading is in "brief" mode, notify user
5687         symbols are being loaded.
5688         (reload_shared_libraries_1): Ditto.
5689         * symfile.c (print_symbol_loading_off): New static global.
5690         (print_symbol_loading_brief): New static global.
5691         (print_symbol_loading_full): New static global.
5692         (print_symbol_loading_enums): New static global.
5693         (print_symbol_loading): New static global.
5694         (print_symbol_loading_p): New function.
5695         (symbol_file_add_with_addrs): Only print symbol loading messages
5696         if requested.
5697         (_initialize_symfile): Register "print symbol-loading" set/show
5698         command.
5699         * symfile.h (print_symbol_loading_p): Declare.
5700
5701 2014-03-30  Doug Evans  <xdje42@gmail.com>
5702
5703         * infrun.c (set_last_target_status): New function.
5704         (handle_inferior_event): Call it.
5705
5706 2014-03-30  Doug Evans  <xdje42@gmail.com>
5707
5708         * inferior.h (enum stop_kind): Improve comment.
5709
5710 2014-03-28  Joel Brobecker  <brobecker@adacore.com>
5711
5712         * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5713         a reference, strip the reference layer before calling
5714         the lang_ops value_has_mutated callback.
5715
5716 2014-03-27  Sergio Durigan Junior  <sergiodj@redhat.com>
5717
5718         Remove some globals from our parser.
5719         * language.c (unk_lang_parser): Add "struct parser_state"
5720         argument.
5721         * language.h (struct language_defn) <la_parser>: Likewise.
5722         * parse.c (expout, expout_size, expout_ptr): Remove variables.
5723         (initialize_expout): Add "struct parser_state" argument.
5724         Rewrite function to use the parser state.
5725         (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5726         write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5727         write_exp_elt_longcst, write_exp_elt_dblcst,
5728         write_exp_elt_decfloatcst, write_exp_elt_type,
5729         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5730         write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5731         write_dollar_variable): Likewise.
5732         (parse_exp_in_context_1): Use parser state.
5733         (insert_type_address_space): Add "struct parser_state" argument.
5734         Use parser state.
5735         (increase_expout_size): New function.
5736         * parser-defs.h: Forward declare "struct language_defn" and
5737         "struct parser_state".
5738         (expout, expout_size, expout_ptr): Remove extern declarations.
5739         (parse_gdbarch, parse_language): Rewrite macro declarations to
5740         accept the parser state.
5741         (struct parser_state): New struct.
5742         (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5743         write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5744         write_exp_elt_decfloatcst, write_exp_elt_type,
5745         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5746         write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5747         write_exp_msymbol, write_dollar_variable,
5748         mark_struct_expression, insert_type_address_space): Add "struct
5749         parser_state" argument.
5750         (increase_expout_size): New function.
5751         * utils.c (do_clear_parser_state): New function.
5752         (make_cleanup_clear_parser_state): Likewise.
5753         * utils.h (make_cleanup_clear_parser_state): New function
5754         prototype.
5755         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5756         Update calls to write_exp* in order to pass the parser state.
5757         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5758         * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5759         (i386_stap_parse_special_token_three_arg_disp): Likewise.
5760         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5761         * stap-probe.c (stap_parse_register_operand): Likewise.
5762         (stap_parse_single_operand): Likewise.
5763         (stap_parse_argument_1): Likewise.
5764         (stap_parse_argument): Use parser state.
5765         * stap-probe.h: Include "parser-defs.h".
5766         (struct stap_parse_info) <pstate>: New field.
5767         * c-exp.y (parse_type): Rewrite to use parser state.
5768         (yyparse): Redefine to c_parse_internal.
5769         (pstate): New global variable.
5770         (parse_number): Add "struct parser_state" argument.
5771         (write_destructor_name): Likewise.
5772         (type_exp): Update calls to write_exp* and similars in order to
5773         use parser state.
5774         (exp1, exp, variable, qualified_name, space_identifier,
5775         typename, typebase): Likewise.
5776         (write_destructor_name, parse_number, lex_one_token,
5777         classify_name, classify_inner_name, c_parse): Add "struct
5778         parser_state" argument.  Update function to use parser state.
5779         * c-lang.h: Forward declare "struct parser_state".
5780         (c_parse): Add "struct parser_state" argument.
5781         * ada-exp.y (parse_type): Rewrite macro to use parser state.
5782         (yyparse): Redefine macro to ada_parse_internal.
5783         (pstate): New variable.
5784         (write_int, write_object_renaming, write_var_or_type,
5785         write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5786         type_int, type_long, type_long_long, type_float, type_double,
5787         type_long_double, type_char, type_boolean, type_system_address):
5788         Add "struct parser_state" argument.
5789         (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5790         or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5791         var_or_type, aggregate, aggregate_component_list,
5792         positional_list, others, component_group,
5793         component_associations): Update calls to write_exp* and similar
5794         functions in order to use parser state.
5795         (ada_parse, write_var_from_sym, write_int,
5796         write_exp_op_with_string, write_object_renaming,
5797         find_primitive_type, write_selectors, write_ambiguous_var,
5798         write_var_or_type, write_name_assoc, type_int, type_long,
5799         type_long_long, type_float, type_double, type_long_double,
5800         type_char, type_boolean, type_system_address): Add "struct
5801         parser_state" argument.  Adjust function to use parser state.
5802         * ada-lang.c (parse): Likewise.
5803         * ada-lang.h: Forward declare "struct parser_state".
5804         (ada_parse): Add "struct parser_state" argument.
5805         * ada-lex.l (processInt, processReal): Likewise.  Adjust all
5806         calls to both functions.
5807         * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5808         parser state.
5809         (yyparse): Redefine macro to f_parse_internal.
5810         (pstate): New variable.
5811         (parse_number): Add "struct parser_state" argument.
5812         (type_exp, exp, subrange, typebase): Update calls to write_exp*
5813         and similars in order to use parser state.
5814         (parse_number): Adjust code to use parser state.
5815         (yylex): Likewise.
5816         (f_parse): New function.
5817         * f-lang.h: Forward declare "struct parser_state".
5818         (f_parse): Add "struct parser_state" argument.
5819         * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5820         parser state.
5821         (yyparse): Redefine macro for java_parse_internal.
5822         (pstate): New variable.
5823         (push_expression_name, push_expression_name, insert_exp): Add
5824         "struct parser_state" argument.
5825         (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5826         FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5827         FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5828         PostIncrementExpression, PostDecrementExpression,
5829         UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5830         UnaryExpressionNotPlusMinus, CastExpression,
5831         MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5832         RelationalExpression, EqualityExpression, AndExpression,
5833         ExclusiveOrExpression, InclusiveOrExpression,
5834         ConditionalAndExpression, ConditionalOrExpression,
5835         ConditionalExpression, Assignment, LeftHandSide): Update
5836         calls to write_exp* and similars in order to use parser state.
5837         (parse_number): Ajust code to use parser state.
5838         (yylex): Likewise.
5839         (java_parse): New function.
5840         (push_variable): Add "struct parser_state" argument.  Adjust
5841         code to user parser state.
5842         (push_fieldnames, push_qualified_expression_name,
5843         push_expression_name, insert_exp): Likewise.
5844         * jv-lang.h: Forward declare "struct parser_state".
5845         (java_parse): Add "struct parser_state" argument.
5846         * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5847         parser state.
5848         (yyparse): Redefine macro to m2_parse_internal.
5849         (pstate): New variable.
5850         (type_exp, exp, fblock, variable, type): Update calls to
5851         write_exp* and similars to use parser state.
5852         (yylex): Likewise.
5853         (m2_parse): New function.
5854         * m2-lang.h: Forward declare "struct parser_state".
5855         (m2_parse): Add "struct parser_state" argument.
5856         * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5857         * objc-lang.h: Forward declare "struct parser_state".
5858         (end_msglist): Add "struct parser_state" argument.
5859         * p-exp.y (parse_type): Rewrite macro to use parser state.
5860         (yyparse): Redefine macro to pascal_parse_internal.
5861         (pstate): New variable.
5862         (parse_number): Add "struct parser_state" argument.
5863         (type_exp, exp1, exp, qualified_name, variable): Update calls to
5864         write_exp* and similars in order to use parser state.
5865         (parse_number, yylex): Adjust code to use parser state.
5866         (pascal_parse): New function.
5867         * p-lang.h: Forward declare "struct parser_state".
5868         (pascal_parse): Add "struct parser_state" argument.
5869         * go-exp.y (parse_type): Rewrite macro to use parser state.
5870         (yyparse): Redefine macro to go_parse_internal.
5871         (pstate): New variable.
5872         (parse_number): Add "struct parser_state" argument.
5873         (type_exp, exp1, exp, variable, type): Update calls to
5874         write_exp* and similars in order to use parser state.
5875         (parse_number, lex_one_token, classify_name, yylex): Adjust code
5876         to use parser state.
5877         (go_parse): Likewise.
5878         * go-lang.h: Forward declare "struct parser_state".
5879         (go_parse): Add "struct parser_state" argument.
5880
5881 2014-03-27  Doug Evans  <dje@google.com>
5882
5883         * dwarf2read.c (read_str_index): Delete arg cu.  All callers updated.
5884
5885 2014-03-27  Doug Evans  <dje@google.com>
5886
5887         * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5888         Remove argument abbrev_section.  All callers updated.
5889
5890 2014-03-27  Doug Evans  <dje@google.com>
5891
5892         * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5893         addr_base, ranges_base.
5894
5895 2014-03-26  Keith Seitz  <keiths@redhat.com>
5896
5897         * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5898         types, not VAR_DOMAIN.
5899
5900 2014-03-25  Sandra Loosemore  <sandra@codesourcery.com>
5901
5902         * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5903         "ra" registers.
5904         * features/nios2-linux.c: Regenerated.
5905         * features/nios2.c: Regenerated.
5906
5907 2014-03-25  Pedro Alves  <palves@redhat.com>
5908
5909         * cli/cli-script.c (script_from_file): Force the interpreter to
5910         sync mode.
5911
5912 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
5913
5914         * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5915         small stack allocation.
5916
5917 2014-03-24  Tristan Gingold  <gingold@adacore.com>
5918
5919         * darwin-nat.c (exc_server): Remove unused prototype.
5920         (darwin_dump_message): Correctly display data on x86_64.
5921         (darwin_encode_reply): Fix style.
5922         Add comments and fix indentation.
5923
5924 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
5925
5926         * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5927
5928 2014-03-22  Doug Evans  <xdje42@gmail.com>
5929
5930         * infcmd.c: Whitespace fixes.
5931         (interrupt_command): Merge two function comments into one.
5932
5933 2014-03-22  Doug Evans  <xdje42@gmail.com>
5934
5935         * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5936         All uses updated.
5937
5938 2014-03-22  Yao Qi  <yao@codesourcery.com>
5939
5940         * remote.c (target_read_live_memory): Remove.
5941         (memory_xfer_live_readonly_partial): Rename it to
5942         remote_xfer_live_readonly_partial.  Remove argument 'object'.
5943         All callers updated.  Call remote_read_bytes_1
5944         instead of target_read_live_memory.
5945         * tracepoint.c (set_traceframe_number): Remove.
5946         (make_cleanup_restore_traceframe_number): Likewise .
5947         * tracepoint.h (set_traceframe_number): Remove declaration.
5948         (make_cleanup_restore_traceframe_number): Likewise.
5949
5950 2014-03-22  Yao Qi  <yao@codesourcery.com>
5951
5952         * remote.c (remote_read_bytes): Move code on reading from the
5953         remote stub to ...
5954         (remote_read_bytes_1): ... here.  New function.
5955
5956 2014-03-22  Yao Qi  <yao@codesourcery.com>
5957
5958         * ctf.c (ctf_xfer_partial): Check the return value of
5959         exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5960         return TARGET_XFER_UNAVAILABLE.
5961         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5962         * target.c (target_read_live_memory): Move it to remote.c.
5963         (memory_xfer_live_readonly_partial): Likewise.
5964         (memory_xfer_partial_1): Move some code to remote_read_bytes.
5965         * remote.c (target_read_live_memory): Moved from target.c.
5966         (memory_xfer_live_readonly_partial): Likewise.
5967         (remote_read_bytes): Factored out from
5968         memory_xfer_partial_1.
5969
5970 2014-03-21  Daniel Gutson  <daniel.gutson@tallertechnologies.com>
5971
5972         * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5973         NULL pointer.
5974
5975 2014-03-21  Pedro Alves  <palves@redhat.com>
5976
5977         * infrun.c (normal_stop): Extend comment.
5978
5979 2014-03-21  Hui Zhu  <hui@codesourcery.com>
5980             Pedro Alves  <palves@redhat.com>
5981
5982         * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
5983         static buffer.
5984         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
5985         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
5986         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
5987
5988 2014-03-20  Maciej W. Rozycki  <macro@codesourcery.com>
5989
5990         * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
5991         `z' formatted output modifier.
5992
5993 2014-03-20  Tom Tromey  <tromey@redhat.com>
5994             Sergio Durigan Junior  <sergiodj@redhat.com>
5995
5996         * probe.c (parse_probes): Turn assert into an ordinary error.
5997         * break-catch-throw.c (re_set_exception_catchpoint): Ignore
5998         exceptions when parsing probes.  Rearrange the code for clarity.
5999
6000 2014-03-20  Tom Tromey  <tromey@redhat.com>
6001
6002         PR gdb/14135
6003         * top.c (execute_command): Only dispatch events if the command
6004         started the target.
6005
6006 2014-03-20  Tom Tromey  <tromey@redhat.com>
6007
6008         PR cli/15718
6009         * infcall.c: Include event-top.h.
6010         (run_inferior_call): Call async_disable_stdin if needed.
6011
6012 2014-03-20  Pedro Alves  <palves@redhat.com>
6013
6014         * infrun.c (prepare_to_proceed): Delete.
6015         (thread_still_needs_step_over): New function.
6016         (find_thread_needs_step_over): New function.
6017         (proceed): If the current thread needs a step-over, set its
6018         steping_over_breakpoint flag.  Adjust to use
6019         find_thread_needs_step_over instead of prepare_to_proceed.
6020         (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6021         BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6022         breakpoint.
6023         (switch_back_to_stepped_thread): Step over breakpoints of all
6024         threads not the stepping thread, before switching back to the
6025         stepping thread.
6026
6027 2014-03-20  Pedro Alves  <palves@redhat.com>
6028
6029         * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6030         extern.
6031         * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6032         * infrun.c (saved_singlestep_ptid)
6033         (stepping_past_singlestep_breakpoint): Delete.
6034         (resume): Remove stepping_past_singlestep_breakpoint handling.
6035         (proceed): Store the prev_pc of the stepping thread too.
6036         (init_wait_for_inferior): Adjust.  Clear singlestep_ptid and
6037         singlestep_pc.
6038         (enum infwait_states): Delete infwait_thread_hop_state.
6039         (struct execution_control_state) <hit_singlestep_breakpoint>: New
6040         field.
6041         (handle_inferior_event): Adjust.
6042         (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6043         handling and the thread-hop code.  Before removing single-step
6044         breakpoints, check whether the thread hit a single-step breakpoint
6045         of another thread.  If it did, the trap is not a random signal.
6046         (switch_back_to_stepped_thread): If the event thread hit a
6047         single-step breakpoint, unblock it before switching to the
6048         stepping thread.  Handle the case of the stepped thread having
6049         advanced already.
6050         (keep_going): Handle the case of the current thread moving past a
6051         single-step breakpoint.
6052
6053 2014-03-20  Pedro Alves  <palves@redhat.com>
6054
6055         PR breakpoints/7143
6056         * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6057         are being stepped over.
6058         (breakpoint_address_match): Make extern.
6059         * breakpoint.h (breakpoint_address_match): New declaration.
6060         * inferior.h (stepping_past_instruction_at): New declaration.
6061         * infrun.c (struct step_over_info): New type.
6062         (step_over_info): New global.
6063         (set_step_over_info, clear_step_over_info)
6064         (stepping_past_instruction_at): New functions.
6065         (handle_inferior_event): Clear the step-over info when
6066         trap_expected is cleared.
6067         (resume): Remove now stale comment.
6068         (clear_proceed_status): Clear step-over info.
6069         (proceed): Adjust step-over handling to set or clear the step-over
6070         info instead of removing all breakpoints.
6071         (handle_signal_stop): When setting up a thread-hop, don't remove
6072         breakpoints here.
6073         (stop_stepping): Clear step-over info.
6074         (keep_going): Adjust step-over handling to set or clear step-over
6075         info and then always inserting breakpoints, instead of removing
6076         all breakpoints when stepping over one.
6077
6078 2014-03-20  Pedro Alves  <palves@redhat.com>
6079
6080         * infrun.c (previous_inferior_ptid): Adjust comment.
6081         (deferred_step_ptid): Delete.
6082         (infrun_thread_ptid_changed, prepare_to_proceed)
6083         (init_wait_for_inferior): Adjust.
6084         (handle_signal_stop): Delete deferred_step_ptid handling.
6085
6086 2014-03-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
6087
6088         PR gdb/15358
6089         * defs.h (sync_quit_force_run): New declaration.
6090         (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6091         * event-top.c (async_sigterm_handler): New declaration.
6092         (async_sigterm_token): New variable.
6093         (async_init_signals): Create also async_sigterm_token.
6094         (async_sigterm_handler): New function.
6095         (sync_quit_force_run): New variable.
6096         (handle_sigterm): Replace quit_force call by other calls.
6097         * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6098
6099 2014-03-18  Maciej W. Rozycki  <macro@codesourcery.com>
6100
6101         * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6102         offset into SPE pseudo registers.
6103
6104 2014-03-18  Pedro Alves  <palves@redhat.com>
6105
6106         PR gdb/13860
6107         * inferior.h (print_stop_event): Declare.
6108         * infrun.c (print_stop_event): New, factored out from ...
6109         (normal_stop): ... this.
6110         * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6111         of bpstat_print/print_stack_frame.
6112
6113 2014-03-17  Tom Tromey  <tromey@redhat.com>
6114
6115         * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6116
6117 2014-03-17  Pierre-Marie de Rodat  <derodat@adacore.com>
6118
6119         * ada-lang.c (decode_constrained_packed_array): Perform a
6120         minimal coercion for reference with coerce_ref instead of
6121         ada_coerce_ref.
6122
6123 2014-03-17  Tristan Gingold  <gingold@adacore.com>
6124
6125         * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6126         (darwin_solib_create_inferior_hook): Emit a warning if version
6127         is unhandled.
6128
6129 2014-03-16  Ulrich Weigand  <uweigand@de.ibm.com>
6130
6131         * python/py-value.c (get_field_flag): Cast flag_name argument to
6132         PyObject_GetAttrString to support Python 2.4.
6133
6134 2014-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
6135
6136         * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6137         (Global Maintainers): Remove Jan Kratochvil.
6138
6139 2014-03-14  Pedro Alves  <palves@redhat.com>
6140
6141         * inferior.h (terminal_ours_for_output): Rename to ...
6142         (child_terminal_ours_for_output): ... this.
6143         (terminal_save_ours): Rename to ...
6144         (child_terminal_save_ours): ... this.
6145         (terminal_ours): Rename to ...
6146         (child_terminal_ours): ... this.
6147         (terminal_inferior): Rename to ...
6148         (child_terminal_inferior): ... this.
6149         (terminal_init_inferior): Rename to ...
6150         (child_terminal_init_inferior): ... this.
6151         (terminal_init_inferior_with_pgrp): Rename to ...
6152         (child_terminal_init_inferior_with_pgrp): ... this.
6153         * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6154         (child_terminal_init_with_pgrp): ... this.
6155         (terminal_save_ours): Rename to ...
6156         (child_terminal_save_ours): ... this.
6157         (terminal_init_inferior): Rename to ...
6158         (child_terminal_init): ... this.  Adjust.
6159         (terminal_inferior): Rename to ...
6160         (child_terminal_inferior): ... this.
6161         (terminal_ours_for_output): Rename to ...
6162         (child_terminal_ours_for_output): ... this.  Adjust.
6163         (terminal_ours): Rename to ...
6164         (child_terminal_ours): ... this.
6165         (terminal_ours_1): Rename to ...
6166         (child_terminal_ours_1): ... this.  Adjust.
6167         * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6168         * windows-nat.c (do_initial_windows_stuff): Adjust.
6169         * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6170         (gnu_terminal_init): ... this.  Adjust.
6171         (gnu_target): Adjust.
6172         * inf-child.c (inf_child_target): Adjust.
6173
6174 2014-03-13  Doug Evans  <xdje42@gmail.com>
6175
6176         PR guile/16612
6177         * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6178         new eq?-hashtab.
6179
6180 2014-03-13  Doug Evans  <xdje42@gmail.com>
6181
6182         * value.c (record_latest_value): Call release_value_or_incref
6183         instead of release_value.
6184
6185 2014-03-13  Pedro Alves  <palves@redhat.com>
6186
6187         * procfs.c (procfs_target): Don't override to_shortname,
6188         to_longname or to_doc.
6189
6190 2014-03-13  Pedro Alves  <palves@redhat.com>
6191
6192         * inf-child.c (inf_child_open, inf_child_target): Don't mention
6193         Unix in user visible strings.
6194
6195 2014-03-12  Stan Shebs  <stan@codesourcery.com>
6196
6197         * gdbtypes.h: Annotate comments for Doxygen, add a page
6198         block comment with some general info.
6199
6200 2014-03-12  Pedro Alves  <palves@redhat.com>
6201
6202         * infcmd.c (prepare_execution_command): New function, factored out
6203         from several execution commands.
6204         (run_command_1, continue_command, step_1, jump_command)
6205         (signal_command, until_command, advance_command, finish_command)
6206         (attach_command): Use prepare_execution_command.
6207
6208 2014-03-12  Omair Javaid  <omair.javaid@linaro.org>
6209
6210         * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6211         (MAX_BPTS): Define.
6212         (MAX_WPTS): Define.
6213         (struct arm_linux_thread_points): Removed.
6214         (struct arm_linux_process_info): New.
6215         (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6216         (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6217         (arm_linux_find_breakpoints_by_tid): Removed.
6218         (struct arch_lwp_info): New.
6219         (arm_linux_find_process_pid): New functions.
6220         (arm_linux_add_process): New functions.
6221         (arm_linux_process_info_get): New functions.
6222         (arm_linux_forget_process): New function.
6223         (arm_linux_get_debug_reg_state): New function.
6224         (struct update_registers_data): New.
6225         (update_registers_callback): New function.
6226         (arm_linux_insert_hw_breakpoint1): Updated.
6227         (arm_linux_remove_hw_breakpoint1): Updated.
6228         (arm_linux_insert_hw_breakpoint): Updated.
6229         (arm_linux_remove_hw_breakpoint): Updated.
6230         (arm_linux_insert_watchpoint): Updated.
6231         (arm_linux_remove_watchpoint): Updated.
6232         (arm_linux_new_thread): Updated.
6233         (arm_linux_prepare_to_resume): New function.
6234         (arm_linux_new_fork): New function.
6235         (_initialize_arm_linux_nat): Updated.
6236
6237 2014-03-12  Pedro Alves  <palves@redhat.com>
6238
6239         * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6240
6241 2014-03-12  Tom Tromey  <tromey@redhat.com>
6242
6243         * inf-child.c (return_zero): New function.
6244         (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6245         * aix-thread.c (aix_thread_inferior_created): New function.
6246         (aix_thread_attach): Remove.
6247         (init_aix_thread_ops): Don't set to_attach.
6248         (_initialize_aix_thread): Register inferior_created observer.
6249         * corelow.c (init_core_ops): Don't set to_attach or
6250         to_create_inferior.
6251         * exec.c (init_exec_ops): Don't set to_attach or
6252         to_create_inferior.
6253         * infcmd.c (run_command_1): Use find_run_target.  Make direct
6254         target calls.
6255         (attach_command): Use find_attach_target.  Make direct target
6256         calls.
6257         * record-btrace.c (init_record_btrace_ops): Don't set
6258         to_create_inferior.
6259         * record-full.c (record_full_can_async_p, record_full_is_async_p):
6260         Remove.
6261         (init_record_full_ops, init_record_full_core_ops): Update.  Don't
6262         set to_create_inferior.
6263         * target.c (complete_target_initialization): Add assertion.
6264         (target_create_inferior): Remove.
6265         (find_default_attach, find_default_create_inferior): Remove.
6266         (find_attach_target, find_run_target): New functions.
6267         (find_default_is_async_p, find_default_can_async_p)
6268         (target_supports_non_stop, target_attach): Remove.
6269         (init_dummy_target): Don't set to_create_inferior or
6270         to_supports_non_stop.
6271         * target.h (struct target_ops) <to_attach>: Add comment.  Remove
6272         TARGET_DEFAULT_FUNC.
6273         <to_create_inferior>: Add comment.
6274         <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6275         TARGET_DEFAULT_RETURN.
6276         <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6277         (find_attach_target, find_run_target): Declare.
6278         (target_create_inferior): Remove.
6279         (target_has_execution_1): Update comment.
6280         (target_supports_non_stop): Remove.
6281         * target-delegates.c: Rebuild.
6282
6283 2014-03-12  Pedro Alves  <palves@redhat.com>
6284
6285         * inf-child.h: Update comment to not mention Unix.
6286
6287 2014-03-12  Pedro Alves  <palves@redhat.com>
6288
6289         * inf-child.c: Update top comment to not mention Unix.  Add
6290         generic comment describing how this target is meant to be used.
6291         (inf_child_post_attach, inf_child_post_startup_inferior)
6292         (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6293         Unix in comment.
6294
6295 2014-03-12  Pedro Alves  <palves@redhat.com>
6296
6297         * nto-procfs.c: Include inf-child.h.
6298         (procfs_ops): Delete global.
6299         (procfs_can_run): Delete method.
6300         (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6301         target pointer instead of referencing procfs_ops.
6302         (procfs_prepare_to_store): Delete.
6303         (init_procfs_ops): Delete function.
6304         (procfs_target): New function, based on init_procfs_ops, but
6305         inherit inf_child_target.
6306         (_initialize_procfs): Use procfs_target.
6307
6308 2014-03-12  Pedro Alves  <palves@redhat.com>
6309
6310         * windows-nat.c: Include inf-child.h.
6311         (windows_ops): Delete global.
6312         (windows_open, windows_prepare_to_store, windows_can_run): Delete
6313         methods.
6314         (init_windows_ops): Delete function.
6315         (windows_target): New function, based on init_windows_ops, but
6316         inherit inf_child_target.
6317         (_initialize_windows_nat): Use windows_target.  Install x86
6318         specific target methods here.
6319
6320 2014-03-10  Doug Evans  <xdje42@gmail.com>
6321
6322         * guile/guile.c (call_initialize_gdb_module): New function.
6323         (initialize_guile): Replace call to scm_init_guile with call to
6324         scm_with_guile.
6325
6326 2014-03-10  Joel Brobecker  <brobecker@adacore.com>
6327
6328         * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6329         in call to TYPE_CODE macro.
6330
6331 2014-03-10  Jerome Guitton  <guitton@adacore.com>
6332
6333         * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6334         Resolve tagged types to full view.
6335
6336 2014-03-10  Hui Zhu  <hui@codesourcery.com>
6337
6338         * target.h (target_insert_breakpoint): Remove "hardware" from its
6339         comments.
6340
6341 2014-03-07  Doug Evans  <dje@google.com>
6342
6343         * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6344
6345 2014-03-07  Doug Evans  <dje@google.com>
6346
6347         * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6348         Remove unused local comp_dir_attr.  Assert exactly one of
6349         stub_comp_unit_die, stub_comp_dir is non-NULL.
6350
6351 2014-03-07  Joel Brobecker  <brobecker@adacore.com>
6352
6353         * target.h (complete_target_initialization, add_target):
6354         Add comment.
6355
6356 2014-03-07  Pedro Alves  <palves@redhat.com>
6357
6358         * go32-nat.c: Include inf-child.h.
6359         (go32_ops): Delete global.
6360         (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6361         Delete methods.
6362         (go32_create_inferior): Push the passed in target pointer instead
6363         of referencing go32_ops.
6364         (init_go32_ops): Delete function.  Moved parts to _initialize_go32_nat.
6365         (go32_target): New function, based on init_go32_ops, but inherit
6366         inf_child_target.
6367         (_initialize_go32_nat): Use go32_target.  Move parts of
6368         init_go32_ops here.
6369
6370 2014-03-06  Joel Brobecker  <brobecker@adacore.com>
6371
6372         * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6373         (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6374         SYMBOL_VALUE_ADDRESS.
6375         (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6376
6377 2014-03-06  Yao Qi  <yao@codesourcery.com>
6378
6379         * breakpoint.c (get_tracepoint_by_number): Remove argument
6380         optional_p.  All callers updated.  Adjust comments.  Update
6381         output message.
6382         * breakpoint.h (get_tracepoint_by_number): Update declaration.
6383
6384 2014-03-06  Yao Qi  <yao@codesourcery.com>
6385
6386         * reverse.c (goto_bookmark_command): Add local 'p'.  Emit error
6387         early if get_number returns zero.  Use 'p' instead of 'args'.
6388
6389 2014-03-06  Yao Qi  <yao@codesourcery.com>
6390
6391         * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6392         message.
6393
6394 2014-03-06  Yao Qi  <yao@codesourcery.com>
6395
6396         PR breakpoints/16508
6397         * tracepoint.c (check_trace_running): New function.
6398         (trace_find_command): Move code to check_trace_running and
6399         call check_trace_running.
6400         (trace_find_pc_command): Likewise.
6401         (trace_find_tracepoint_command): Likewise.
6402         (trace_find_line_command): Likewise.
6403         (trace_find_range_command): Likewise.
6404         * tracepoint.h (check_trace_running): Likewise.
6405         * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6406
6407 2014-03-06  Yao Qi  <yao@codesourcery.com>
6408
6409         * target.h (struct target_ops) <to_traceframe_info>: Use
6410         TARGET_DEFAULT_NORETURN (tcomplain ()).
6411         * target-delegates.c: Regenerated.
6412
6413 2014-03-05  Pedro Alves  <palves@redhat.com>
6414
6415         PR gdb/16575
6416         * dcache.c (dcache_poke_byte): Constify ptr parameter.  Return
6417         void.  Update comment.
6418         (dcache_xfer_memory): Delete.
6419         (dcache_read_memory_partial): New, based on the read bits of
6420         dcache_xfer_memory.
6421         (dcache_update): Add status parameter.  Use ULONGEST for len, and
6422         adjust.  Discard cache lines if the reason for the update was
6423         error.
6424         * dcache.h (dcache_xfer_memory): Delete declaration.
6425         (dcache_read_memory_partial): New declaration.
6426         (dcache_update): Update prototype.
6427         * target.c (raw_memory_xfer_partial): Update the dcache here.
6428         (memory_xfer_partial_1): Don't handle dcache writes here.
6429
6430 2014-03-05  Mike Frysinger  <vapier@gentoo.org>
6431
6432         * remote-sim.c (gdbsim_load): Add const to prog.
6433
6434 2014-03-03  Tom Tromey  <tromey@redhat.com>
6435
6436         * elfread.c (probe_key): Change to bfd_data.
6437         (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6438         now per-BFD, not per-objfile.
6439         * stap-probe.c (stap_probe_destroy): Update comment.
6440         (handle_stap_probe): Allocate on the per-BFD obstack.
6441
6442 2014-03-03  Tom Tromey  <tromey@redhat.com>
6443
6444         * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6445         * breakpoint.c (create_longjmp_master_breakpoint): Use
6446         get_probe_address.
6447         (add_location_to_breakpoint, bkpt_probe_insert_location)
6448         (bkpt_probe_remove_location): Update.
6449         * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6450         * elfread.c (elf_symfile_relocate_probe): Remove.
6451         (elf_probe_fns): Update.
6452         (insert_exception_resume_breakpoint): Change type of "probe"
6453         parameter to bound_probe.
6454         (check_exception_resume): Update.
6455         * objfiles.c (objfile_relocate1): Don't relocate probes.
6456         * probe.c (bound_probe_s): New typedef.
6457         (parse_probes): Use get_probe_address.  Set sal's objfile.
6458         (find_probe_by_pc): Return a bound_probe.
6459         (collect_probes): Return a VEC(bound_probe_s).
6460         (compare_probes): Update.
6461         (gen_ui_out_table_header_info): Change type of "probes"
6462         parameter.  Update.
6463         (info_probes_for_ops): Update.
6464         (get_probe_address): New function.
6465         (probe_safe_evaluate_at_pc): Update.
6466         * probe.h (struct probe_ops) <get_probe_address>: New field.
6467         <set_semaphore, clear_semaphore>: Add objfile parameter.
6468         (struct probe) <objfile>: Remove field.
6469         <arch>: New field.
6470         <address>: Update comment.
6471         (struct bound_probe): New.
6472         (find_probe_by_pc): Return a bound_probe.
6473         (get_probe_address): Declare.
6474         * solib-svr4.c (struct probe_and_action) <address>: New field.
6475         (hash_probe_and_action, equal_probe_and_action): Update.
6476         (register_solib_event_probe): Add address parameter.
6477         (solib_event_probe_at): Update.
6478         (svr4_create_probe_breakpoints): Add objfile parameter.  Use
6479         get_probe_address.
6480         * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6481         (stap_get_probe_address): New function.
6482         (stap_can_evaluate_probe_arguments, compute_probe_arg)
6483         (compile_probe_arg): Update.
6484         (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6485         address.
6486         (handle_stap_probe): Don't relocate the probe.
6487         (stap_relocate): Remove.
6488         (stap_gen_info_probes_table_values): Update.
6489         (stap_probe_ops): Remove stap_relocate.
6490         * symfile-debug.c (debug_sym_relocate_probe): Remove.
6491         (debug_sym_probe_fns): Update.
6492         * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6493         * symtab.c (init_sal): Use memset.
6494         * symtab.h (struct symtab_and_line) <objfile>: New field.
6495         * tracepoint.c (start_tracing, stop_tracing): Update.
6496
6497 2014-03-03  Tom Tromey  <tromey@redhat.com>
6498
6499         * probe.h (parse_probes, find_probe_by_pc)
6500         (find_probes_in_objfile): Fix comments.
6501
6502 2014-03-02  Doug Evans  <xdje42@gmail.com>
6503
6504         * infrun.c (handle_signal_stop): Replace test for
6505         TARGET_WAITKIND_STOPPED with an assert.
6506
6507 2014-03-02  Doug Evans  <xdje42@gmail.com>
6508
6509         * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6510
6511 2014-03-02  Doug Evans  <xdje42@gmail.com>
6512
6513         * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6514
6515 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
6516
6517         * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6518
6519 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
6520
6521         * i386obsd-nat.c: Include "obsd-nat.h".
6522         (_initialize_i386obsd_nat): Call obsd_add_target instead of
6523         add_target.
6524         * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6525
6526 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
6527
6528         * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6529
6530 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
6531
6532         * mips64obsd-nat.c: Include "obsd-nath".
6533         (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6534         add_target
6535         * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6536
6537 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
6538
6539         * amd64obsd-nat.c: Include "obsd-nat,h.
6540         (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6541         add_target.
6542         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6543
6544 2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
6545
6546         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6547         (find_overload_match): Update call to find_oload_champ.
6548         (find_oload_champ_namespace_loop): Likewise
6549
6550 2014-02-28  Mark Kettenis  <kettenis@gnu.org>
6551
6552         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6553
6554         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6555         * config/sparc/obsd64.mh: New file.
6556         * sparc64obsd-nat.c: New file.
6557
6558         * obsd-nat.h: New file.
6559         * obsd-nat.c: New file.
6560         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6561         (ALLDEPFILES): Add obsd-nat.c.
6562
6563 2014-02-28  Tom Tromey  <tromey@redhat.com>
6564
6565         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
6566         * cli-out.h (cli_ui_out_impl): Now const.
6567         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
6568         * ui-out.c (struct ui_out) <impl>: Now const.
6569         (default_ui_out_impl): Now const.
6570         (ui_out_new): Make 'impl' parameter const.
6571         * ui-out.h (ui_out_new): Update.
6572
6573 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
6574
6575         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6576
6577 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
6578
6579         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6580
6581 2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
6582
6583         Additional PR 8882 fix.
6584         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6585
6586 2014-02-27  Pedro Alves  <palves@redhat.com>
6587
6588         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6589         isn't set.
6590
6591 2014-02-27  Pedro Alves  <palves@redhat.com>
6592
6593         PR 12702
6594         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6595         * nat/linux-waitpid.c: Include string.h.
6596         (status_to_str): Moved here and made extern.
6597         * nat/linux-waitpid.h (status_to_str): New declaration.
6598
6599 2014-02-27  Hui Zhu  <hui@codesourcery.com>
6600
6601         PR 12702
6602         * infrun.c (ptid_match): Move ...
6603         * common/ptid.c (ptid_match): ... here.
6604         * inferior.h (ptid_match): Move ...
6605         * common/ptid.h (ptid_match): ... here.
6606
6607 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
6608
6609         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6610         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6611         gdb_target_obs.
6612
6613 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
6614
6615         * obsd-tdep.c (obsd_auxv_parse): New function.
6616         (obsd_init_abi): Set auxv_parse.
6617
6618         * gdbarch.sh (auxv_parse): New.
6619         * gdbarch.h: Regenerated.
6620         * gdbarch.c: Regenerated.
6621         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6622
6623 2014-02-26  Ludovic Courtès  <ludo@gnu.org>
6624
6625         * guile/scm-value.c (gdbscm_history_append_x): New function.
6626         (value_functions): Add it.
6627
6628 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
6629
6630         * dwarf2read.c (attr_value_as_address): New function.
6631         (dwarf2_find_base_address, read_call_site_scope): Use
6632         attr_value_as_address in place of DW_ADDR.
6633         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6634         the low and high addresses.  Slight rework of the handling
6635         of the high pc being a constant form, and limit it to
6636         DWARF verson 4 or higher.
6637         (dwarf2_record_block_ranges): Likewise.
6638         (read_partial_die): Likewise.
6639         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6640
6641 2014-02-26  Tom Tromey  <tromey@redhat.com>
6642
6643         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6644
6645 2014-02-26  Tom Tromey  <tromey@redhat.com>
6646
6647         * elfread.c (elf_read_minimal_symbols): Return early if
6648         minimal symbols have already been read.  Add "ei" parameter.
6649         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6650         * minsyms.c (prim_record_minimal_symbol_full): Update.
6651         * objfiles.h (struct objstats) <n_minsyms>: Move...
6652         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6653         * symmisc.c (print_objfile_statistics): Update.
6654
6655 2014-02-26  Tom Tromey  <tromey@redhat.com>
6656
6657         * elfread.c (elf_read_minimal_symbols): New function, from
6658         elf_symfile_read.
6659         (elf_symfile_read): Call it.
6660
6661 2014-02-26  Tom Tromey  <tromey@redhat.com>
6662
6663         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6664         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6665         (lookup_minimal_symbol_solib_trampoline)
6666         (lookup_minimal_symbol_by_pc_section_1)
6667         (lookup_minimal_symbol_and_objfile): Update.
6668         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6669         Don't allocate a minimal symbol if minsyms have already been read.
6670         (build_minimal_symbol_hash_tables): Update.
6671         (install_minimal_symbols): Do nothing if minsyms already read.
6672         Use the per-BFD obstack.
6673         (terminate_minimal_symbol_table): Use the per-BFD obstack.
6674         * objfiles.c (allocate_objfile): Call
6675         terminate_minimal_symbol_table later.
6676         (have_minimal_symbols): Update.
6677         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6678         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6679         Move from struct objfile.
6680         <minsyms_read>: New field.
6681         (struct objfile) <msymbols, minimal_symbol_count,
6682         msymbol_hash, msymbol_demangled_hash>: Move.
6683         (ALL_OBJFILE_MSYMBOLS): Update.
6684         * symfile.c (read_symbols): Set minsyms_read.
6685         (reread_symbols): Update.
6686         * symmisc.c (dump_objfile, dump_msymbols): Update.
6687
6688 2014-02-26  Tom Tromey  <tromey@redhat.com>
6689
6690         * minsyms.c (msymbols_sort): Remove.
6691         * minsyms.h (msymbols_sort): Remove.
6692         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6693         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6694         * elfread.c (elf_symtab_read): Don't add section offsets.
6695         * xcoffread.c (record_minimal_symbol): Don't add section offset
6696         to minimal symbol address.
6697         * somread.c (text_offset, data_offset): Remove.
6698         (som_symtab_read): Don't add section offsets to minimal symbol
6699         addresses.
6700         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6701         Don't add section offsets to minimal symbols.
6702         * coffread.c (coff_symtab_read): Don't add section offsets
6703         to minimal symbol addresses.
6704         * machoread.c (macho_symtab_add_minsym): Don't add section offset
6705         to minimal symbol addresses.
6706         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6707         section offset to minimal symbol addresses.
6708         * mdebugread.c (parse_partial_symbols): Don't add section
6709         offset to minimal symbol addresses.
6710         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6711         offset to minimal symbol addresses.
6712
6713 2014-02-26  Tom Tromey  <tromey@redhat.com>
6714
6715         * ada-lang.c (ada_main_name): Update.
6716         (ada_add_standard_exceptions): Update.
6717         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6718         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6719         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6720         * auxv.c (ld_so_xfer_auxv): Update.
6721         * avr-tdep.c (avr_scan_prologue): Update.
6722         * ax-gdb.c (gen_var_ref): Update.
6723         * blockframe.c (get_pc_function_start)
6724         (find_pc_partial_function_gnu_ifunc): Update.
6725         * breakpoint.c (create_overlay_event_breakpoint)
6726         (create_longjmp_master_breakpoint)
6727         (create_std_terminate_master_breakpoint)
6728         (create_exception_master_breakpoint): Update.
6729         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6730         * c-valprint.c (c_val_print): Update.
6731         * coff-pe-read.c (add_pe_forwarded_sym): Update.
6732         * common/agent.c (agent_look_up_symbols): Update.
6733         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6734         * dwarf2loc.c (call_site_to_target_addr): Update.
6735         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6736         * elfread.c (elf_gnu_ifunc_record_cache)
6737         (elf_gnu_ifunc_resolve_by_got): Update.
6738         * findvar.c (default_read_var_value): Update.
6739         * frame.c (inside_main_func): Update.
6740         * frv-tdep.c (frv_frame_this_id): Update.
6741         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6742         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6743         Update.
6744         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6745         (hppa_hpux_find_dummy_bpaddr): Update.
6746         * hppa-tdep.c (hppa_symbol_address): Update.
6747         * infcmd.c (until_next_command): Update.
6748         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6749         Update.
6750         * linespec.c (minsym_found, add_minsym): Update.
6751         * linux-nat.c (get_signo): Update.
6752         * linux-thread-db.c (inferior_has_bug): Update.
6753         * m32c-tdep.c (m32c_return_value)
6754         (m32c_m16c_address_to_pointer): Update.
6755         * m32r-tdep.c (m32r_frame_this_id): Update.
6756         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6757         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6758         * maint.c (maintenance_translate_address): Update.
6759         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6760         (frob_address): New function.
6761         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6762         frob_address.  Rename parameter to "pc_in".
6763         (compare_minimal_symbols, compact_minimal_symbols): Use raw
6764         addresses.
6765         (find_solib_trampoline_target, minimal_symbol_upper_bound):
6766         Update.
6767         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6768         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6769         * objc-lang.c (find_objc_msgsend): Update.
6770         * objfiles.c (objfile_relocate1): Update.
6771         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6772         * p-valprint.c (pascal_val_print): Update.
6773         * parse.c (write_exp_msymbol): Update.
6774         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6775         (ppc_elfv2_skip_entrypoint): Update.
6776         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6777         * printcmd.c (build_address_symbolic, msym_info)
6778         (address_info): Update.
6779         * proc-service.c (ps_pglobal_lookup): Update.
6780         * psymtab.c (find_pc_sect_psymtab_closer)
6781         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6782         Change msymbol parameter to bound_minimal_symbol.
6783         * ravenscar-thread.c (get_running_thread_id): Update.
6784         * remote.c (remote_check_symbols): Update.
6785         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6786         address.
6787         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6788         * solib-dsbt.c (lm_base): Update.
6789         * solib-frv.c (lm_base, main_got): Update.
6790         * solib-irix.c (locate_base): Update.
6791         * solib-som.c (som_solib_create_inferior_hook)
6792         (link_map_start): Update.
6793         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6794         * solib-svr4.c (elf_locate_base, enable_break): Update.
6795         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6796         (flush_ea_cache): Update.
6797         * stabsread.c (define_symbol, scan_file_globals): Update.
6798         * stack.c (find_frame_funname): Update.
6799         * symfile-debug.c (debug_qf_expand_symtabs_matching)
6800         (debug_qf_find_pc_sect_symtab): Update.
6801         * symfile.c (simple_read_overlay_table)
6802         (simple_overlay_update): Update.
6803         * symfile.h (struct quick_symbol_functions)
6804         <find_pc_sect_symtab>: Change type of msymbol to
6805         bound_minimal_symbol.
6806         * symmisc.c (dump_msymbols): Update.
6807         * symtab.c (find_pc_sect_symtab_via_partial)
6808         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6809         (search_symbols, print_msymbol_info): Update.
6810         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6811         (MSYMBOL_VALUE_ADDRESS): Redefine.
6812         (BMSYMBOL_VALUE_ADDRESS): New macro.
6813         * tracepoint.c (scope_info): Update.
6814         * tui/tui-disasm.c (tui_find_disassembly_address)
6815         (tui_get_begin_asm_address): Update.
6816         * valops.c (find_function_in_inferior): Update.
6817         * value.c (value_static_field, value_fn_field): Update.
6818
6819 2014-02-26  Tom Tromey  <tromey@redhat.com>
6820
6821         * ada-lang.c (ada_update_initial_language): Update.
6822         (ada_main_name, ada_has_this_exception_support): Update.
6823         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6824         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6825         * arm-tdep.c (arm_skip_stub): Update.
6826         * auxv.c (ld_so_xfer_auxv): Update.
6827         * avr-tdep.c (avr_scan_prologue): Update.
6828         * ax-gdb.c (gen_var_ref): Update.
6829         * breakpoint.c (struct breakpoint_objfile_data)
6830         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6831         type to bound_minimal_symbol.
6832         (create_overlay_event_breakpoint)
6833         (create_longjmp_master_breakpoint)
6834         (create_std_terminate_master_breakpoint)
6835         (create_exception_master_breakpoint): Update.
6836         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6837         * c-exp.y (classify_name): Update.
6838         * coffread.c (coff_symfile_read): Update.
6839         * common/agent.c (agent_look_up_symbols): Update.
6840         * d-lang.c (d_main_name): Update.
6841         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6842         * dec-thread.c (enable_dec_thread): Update.
6843         * dwarf2loc.c (call_site_to_target_addr): Update.
6844         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6845         * eval.c (evaluate_subexp_standard): Update.
6846         * findvar.c (struct minsym_lookup_data) <result>: Change type
6847         to bound_minimal_symbol.
6848         <objfile>: Remove.
6849         (minsym_lookup_iterator_cb, default_read_var_value): Update.
6850         * frame.c (inside_main_func): Update.
6851         * frv-tdep.c (frv_frame_this_id): Update.
6852         * gcore.c (call_target_sbrk): Update.
6853         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6854         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6855         Update.
6856         * go-lang.c (go_main_name): Update.
6857         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6858         (hppa_hpux_find_import_stub_for_addr): Update.
6859         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6860         Update.  Change return type.
6861         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6862         type.
6863         * jit.c (jit_breakpoint_re_set_internal): Update.
6864         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6865         Update.
6866         * linux-nat.c (get_signo): Update.
6867         * linux-thread-db.c (inferior_has_bug): Update
6868         * m32c-tdep.c (m32c_return_value)
6869         (m32c_m16c_address_to_pointer): Update.
6870         * m32r-tdep.c (m32r_frame_this_id): Update.
6871         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6872         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6873         * minsyms.c (lookup_minimal_symbol_internal): Rename to
6874         lookup_minimal_symbol.  Change return type.
6875         (lookup_minimal_symbol): Remove.
6876         (lookup_bound_minimal_symbol): Update.
6877         (lookup_minimal_symbol_text): Change return type.
6878         (lookup_minimal_symbol_solib_trampoline): Change return type.
6879         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6880         (lookup_minimal_symbol_solib_trampoline): Change return type.
6881         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6882         * objc-lang.c (lookup_objc_class, lookup_child_selector)
6883         (value_nsstring, find_imps): Update.
6884         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6885         * p-lang.c (pascal_main_name): Update.
6886         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6887         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6888         * proc-service.c (ps_pglobal_lookup): Update.
6889         * ravenscar-thread.c (get_running_thread_msymbol): Change
6890         return type.
6891         (has_ravenscar_runtime, get_running_thread_id): Update.
6892         * remote.c (remote_check_symbols): Update.
6893         * sol-thread.c (ps_pglobal_lookup): Update.
6894         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6895         * solib-dsbt.c (lm_base): Update.
6896         * solib-frv.c (lm_base, frv_relocate_section_addresses):
6897         Update.
6898         * solib-irix.c (locate_base): Update.
6899         * solib-som.c (som_solib_create_inferior_hook)
6900         (som_solib_desire_dynamic_linker_symbols, link_map_start):
6901         Update.
6902         * solib-spu.c (spu_enable_break): Update.
6903         * solib-svr4.c (elf_locate_base, enable_break): Update.
6904         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6905         (flush_ea_cache): Update.
6906         * stabsread.c (define_symbol): Update.
6907         * symfile.c (simple_read_overlay_table): Update.
6908         * symtab.c (find_pc_sect_line): Update.
6909         * tracepoint.c (scope_info): Update.
6910         * tui-disasm.c (tui_get_begin_asm_address): Update.
6911         * value.c (value_static_field): Update.
6912
6913 2014-02-26  Tom Tromey  <tromey@redhat.com>
6914
6915         * minsyms.c (prim_record_minimal_symbol_full): Use
6916         SET_MSYMBOL_VALUE_ADDRESS.
6917         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6918         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6919         SET_MSYMBOL_VALUE_ADDRESS.
6920         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6921         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6922
6923 2014-02-26  Tom Tromey  <tromey@redhat.com>
6924
6925         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6926         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6927         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6928         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6929         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6930         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6931         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6932         * ada-lang.c (ada_main_name): Update.
6933         (ada_lookup_simple_minsym): Update.
6934         (ada_make_symbol_completion_list): Update.
6935         (ada_add_standard_exceptions): Update.
6936         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6937         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6938         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6939         * arm-tdep.c (skip_prologue_function): Update.
6940         (arm_skip_stack_protector, arm_skip_stub): Update.
6941         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6942         (arm_wince_skip_main_prologue): Update.
6943         * auxv.c (ld_so_xfer_auxv): Update.
6944         * avr-tdep.c (avr_scan_prologue): Update.
6945         * ax-gdb.c (gen_var_ref): Update.
6946         * block.c (call_site_for_pc): Update.
6947         * blockframe.c (get_pc_function_start): Update.
6948         (find_pc_partial_function_gnu_ifunc): Update.
6949         * breakpoint.c (create_overlay_event_breakpoint): Update.
6950         (create_longjmp_master_breakpoint): Update.
6951         (create_std_terminate_master_breakpoint): Update.
6952         (create_exception_master_breakpoint): Update.
6953         (resolve_sal_pc): Update.
6954         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6955         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6956         Update.
6957         * c-valprint.c (c_val_print): Update.
6958         * coff-pe-read.c (add_pe_forwarded_sym): Update.
6959         * coffread.c (coff_symfile_read): Update.
6960         * common/agent.c (agent_look_up_symbols): Update.
6961         * dbxread.c (find_stab_function_addr): Update.
6962         (end_psymtab): Update.
6963         * dwarf2loc.c (call_site_to_target_addr): Update.
6964         (func_verify_no_selftailcall): Update.
6965         (tailcall_dump): Update.
6966         (call_site_find_chain_1): Update.
6967         (dwarf_expr_reg_to_entry_parameter): Update.
6968         * elfread.c (elf_gnu_ifunc_record_cache): Update.
6969         (elf_gnu_ifunc_resolve_by_got): Update.
6970         * f-valprint.c (info_common_command): Update.
6971         * findvar.c (read_var_value): Update.
6972         * frame.c (get_prev_frame_1): Update.
6973         (inside_main_func): Update.
6974         * frv-tdep.c (frv_skip_main_prologue): Update.
6975         (frv_frame_this_id): Update.
6976         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6977         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
6978         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
6979         (gnuv3_skip_trampoline): Update.
6980         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
6981         (hppa64_hpux_in_solib_call_trampoline): Update.
6982         (hppa_hpux_skip_trampoline_code): Update.
6983         (hppa64_hpux_search_dummy_call_sequence): Update.
6984         (hppa_hpux_find_import_stub_for_addr): Update.
6985         (hppa_hpux_find_dummy_bpaddr): Update.
6986         * hppa-tdep.c (hppa_symbol_address)
6987         (hppa_lookup_stub_minimal_symbol): Update.
6988         * i386-tdep.c (i386_skip_main_prologue): Update.
6989         (i386_pe_skip_trampoline_code): Update.
6990         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
6991         * infcall.c (get_function_name): Update.
6992         * infcmd.c (until_next_command): Update.
6993         * jit.c (jit_breakpoint_re_set_internal): Update.
6994         (jit_inferior_init): Update.
6995         * linespec.c (minsym_found): Update.
6996         (add_minsym): Update.
6997         * linux-fork.c (info_checkpoints_command): Update.
6998         * linux-nat.c (get_signo): Update.
6999         * linux-thread-db.c (inferior_has_bug): Update.
7000         * m32c-tdep.c (m32c_return_value): Update.
7001         (m32c_m16c_address_to_pointer): Update.
7002         (m32c_m16c_pointer_to_address): Update.
7003         * m32r-tdep.c (m32r_frame_this_id): Update.
7004         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7005         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7006         * maint.c (maintenance_translate_address): Update.
7007         * minsyms.c (add_minsym_to_hash_table): Update.
7008         (add_minsym_to_demangled_hash_table): Update.
7009         (msymbol_objfile): Update.
7010         (lookup_minimal_symbol): Update.
7011         (iterate_over_minimal_symbols): Update.
7012         (lookup_minimal_symbol_text): Update.
7013         (lookup_minimal_symbol_by_pc_name): Update.
7014         (lookup_minimal_symbol_solib_trampoline): Update.
7015         (lookup_minimal_symbol_by_pc_section_1): Update.
7016         (lookup_minimal_symbol_and_objfile): Update.
7017         (prim_record_minimal_symbol_full): Update.
7018         (compare_minimal_symbols): Update.
7019         (compact_minimal_symbols): Update.
7020         (build_minimal_symbol_hash_tables): Update.
7021         (install_minimal_symbols): Update.
7022         (terminate_minimal_symbol_table): Update.
7023         (find_solib_trampoline_target): Update.
7024         (minimal_symbol_upper_bound): Update.
7025         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7026         * mips-tdep.c (mips_stub_frame_sniffer): Update.
7027         (mips_skip_pic_trampoline_code): Update.
7028         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7029         * objc-lang.c (selectors_info): Update.
7030         (classes_info): Update.
7031         (find_methods): Update.
7032         (find_imps): Update.
7033         (find_objc_msgsend): Update.
7034         * objfiles.c (objfile_relocate1): Update.
7035         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7036         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7037         * p-valprint.c (pascal_val_print): Update.
7038         * parse.c (write_exp_msymbol): Update.
7039         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7040         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7041         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7042         * printcmd.c (build_address_symbolic): Update.
7043         (sym_info): Update.
7044         (address_info): Update.
7045         * proc-service.c (ps_pglobal_lookup): Update.
7046         * psymtab.c (find_pc_sect_psymtab_closer): Update.
7047         (find_pc_sect_psymtab): Update.
7048         * python/py-framefilter.c (py_print_frame): Update.
7049         * ravenscar-thread.c (get_running_thread_id): Update.
7050         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7051         Update.
7052         * remote.c (remote_check_symbols): Update.
7053         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7054         (rs6000_skip_trampoline_code): Update.
7055         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7056         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7057         * solib-dsbt.c (lm_base): Update.
7058         * solib-frv.c (lm_base): Update.
7059         (main_got): Update.
7060         * solib-irix.c (locate_base): Update.
7061         * solib-som.c (som_solib_create_inferior_hook): Update.
7062         (som_solib_desire_dynamic_linker_symbols): Update.
7063         (link_map_start): Update.
7064         * solib-spu.c (spu_enable_break): Update.
7065         (ocl_enable_break): Update.
7066         * solib-svr4.c (elf_locate_base): Update.
7067         (enable_break): Update.
7068         * spu-tdep.c (spu_get_overlay_table): Update.
7069         (spu_catch_start): Update.
7070         (flush_ea_cache): Update.
7071         * stabsread.c (define_symbol): Update.
7072         (scan_file_globals): Update.
7073         * stack.c (find_frame_funname): Update.
7074         (frame_info): Update.
7075         * symfile.c (simple_read_overlay_table): Update.
7076         (simple_overlay_update): Update.
7077         * symmisc.c (dump_msymbols): Update.
7078         * symtab.c (fixup_section): Update.
7079         (find_pc_sect_line): Update.
7080         (skip_prologue_sal): Update.
7081         (search_symbols): Update.
7082         (print_msymbol_info): Update.
7083         (rbreak_command): Update.
7084         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7085         (completion_list_objc_symbol): Update.
7086         (default_make_symbol_completion_list_break_on): Update.
7087         * tracepoint.c (scope_info): Update.
7088         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7089         (tui_get_begin_asm_address): Update.
7090         * valops.c (find_function_in_inferior): Update.
7091         * value.c (value_static_field): Update.
7092         (value_fn_field): Update.
7093
7094 2014-02-26  Tom Tromey  <tromey@redhat.com>
7095
7096         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7097         bound minimal symbols.  Move code that knows about minsym
7098         table layout...
7099         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
7100         function.
7101         * minsyms.h (minimal_symbol_upper_bound): Declare.
7102         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7103         minimal_symbol_upper_bound.
7104
7105 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
7106
7107         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7108         Use the type's name if its basic type does not have a tag.
7109
7110 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
7111
7112         * dwarf2read.c (read_subrange_type): Add comment.
7113
7114 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
7115
7116         * dwarf2read.c (update_enumeration_type_from_children): New
7117         function, mostly extracted from process_structure_scope.
7118         (read_enumeration_type): Call update_enumeration_type_from_children.
7119         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7120         and flag_flag_enum fields.
7121
7122 2014-02-26  Pedro Alves  <palves@redhat.com>
7123
7124         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7125         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7126         to_xfer_partial method.
7127
7128 2014-02-26  Pedro Alves  <palves@redhat.com>
7129
7130         * target.c (complete_target_initialization): Don't install
7131         default_xfer_partial as to_xfer_partial hook.
7132         (nomemory): Delete.
7133         (update_current_target): Don't INHERIT nor de_fault
7134         deprecated_xfer_memory.  Delete de_fault macro.
7135         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7136         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7137         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7138         field.
7139
7140 2014-02-26  Pedro Alves  <palves@redhat.com>
7141
7142         * go32-nat.c (my_write_child): New function.
7143         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7144         (go32_xfer_partial): New function.
7145         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7146         Instead install a to_xfer_partial hook.
7147
7148 2014-02-26  Pedro Alves  <palves@redhat.com>
7149
7150         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7151         to_xfer_partial helper.  Rewrite.
7152         (procfs_xfer_partial): New function.
7153         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7154         Install a to_xfer_partial hook.
7155
7156 2014-02-26  Pedro Alves  <palves@redhat.com>
7157
7158         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7159         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7160         (m32r_xfer_partial): New function.
7161         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7162         Install a to_xfer_partial hook.
7163
7164 2014-02-26  Pedro Alves  <palves@redhat.com>
7165
7166         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7167         helper.
7168         (mips_xfer_partial): New function.
7169         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7170         hook.  Install a to_xfer_partial hook.
7171
7172 2014-02-26  Joel Brobecker  <brobecker@adacore.com>
7173
7174         * gdbtypes.h (create_array_type_with_stride): Add declaration.
7175         * gdbtypes.c (create_array_type_with_stride): New function,
7176         renaming create_array_type, but with an added parameter
7177         called "bit_stride".
7178         (create_array_type): Re-implement using
7179         create_array_type_with_stride.
7180         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7181         and DW_AT_bit_stride attributes.
7182
7183 2014-02-26  Pedro Alves  <palves@redhat.com>
7184
7185         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7186         task-specific breakpoints.
7187
7188 2014-02-25  Pedro Alves  <palves@redhat.com>
7189
7190         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7191         handling of object == TARGET_OBJECT_UNWIND_TABLE.
7192
7193 2014-02-25  Stan Shebs  <stan@codesourcery.com>
7194
7195         * defs.h: Annotate comments for Doxygen.
7196
7197 2014-02-25  Tom Tromey  <tromey@redhat.com>
7198
7199         * target.h (target_ignore): Don't declare.
7200         * target.c (target_ignore): Remove.
7201
7202 2014-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7203
7204         PR gdb/16626
7205         * auto-load.c (auto_load_objfile_script_1): Change filename to
7206         debugfile.
7207
7208 2014-02-25  Joel Brobecker  <brobecker@adacore.com>
7209
7210         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7211         documentation.  Adjust prototype to match the target_ops
7212         to_xfer_partial method.  Adjust implementation accordingly.
7213
7214 2014-02-25  Hui Zhu  <hui@codesourcery.com>
7215
7216         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7217         to_traceframe_info.
7218
7219 2014-02-25  Kevin Buettner  <kevinb@redhat.com>
7220
7221         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7222         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7223         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7224         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7225         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7226         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7227         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7228         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7229         New constants.
7230         (rl78_register_type): Use a data pointer type for SP and
7231         new pseudo registers mentioned above.  Use a 16 bit integer
7232         type for all other register pairs.
7233         (rl78_register_name, rl78_g10_register_name): Update for
7234         new pseudo registers.
7235         (rl78_pseudo_register_read): Likewise.
7236         (rl78_pseudo_register_write): Likewise.
7237         (rl78_dwarf_reg_to_regnum): Return register numbers representing
7238         to the newly added pseudo registers.
7239
7240 2014-02-24  Doug Evans  <dje@google.com>
7241
7242         * value.c (record_latest_value): Fix comment.
7243         * printcmd.c (print_command_1): Remove code to handle -1 return from
7244         record_latest_value.
7245
7246 2014-02-24  Pedro Alves  <palves@redhat.com>
7247
7248         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7249         deprecated_xfer_memory hook.
7250         (procfs_xfer_partial): Call procfs_xfer_memory instead
7251         of the deprecated_xfer_memory target hook.
7252         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7253         helper.
7254
7255 2014-02-24  Yuanhui Zhang  <asmwarrior@gmail.com>
7256
7257         * windows-nat.c (windows_xfer_shared_libraries): Return
7258         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7259         requested object is TARGET_OBJECT_LIBRARIES.
7260
7261 2014-02-24  Yao Qi  <yao@codesourcery.com>
7262
7263         * target.h (enum target_xfer_status)
7264         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7265         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7266         explicitly.  New.
7267         * corefile.c (memory_error_message): User updated.
7268         * exec.c (section_table_read_available_memory): Likewise.
7269         * record-btrace.c (record_btrace_xfer_partial): Likewise.
7270         * target.c (target_xfer_status_to_string): Likewise.
7271         (raw_memory_xfer_partial): Likewise.
7272         (memory_xfer_partial_1, target_xfer_partial): Likewise.
7273         * valops.c (read_value_memory): Likewise.
7274         * exec.h: Update comments.
7275
7276 2014-02-24  Yao Qi  <yao@codesourcery.com>
7277
7278         * target.c (target_xfer_status_to_string): Rename argument err
7279         to status.
7280         * target.h (target_xfer_status_to_string): Update declaration.
7281         Replace target_xfer_error_to_string with
7282         target_xfer_status_to_string in comment.
7283
7284 2014-02-24  Yao Qi  <yao@codesourcery.com>
7285
7286         * mips-linux-nat.c (super_close): Update its type.
7287         (mips_linux_close): Pass 'self' to super_close.
7288
7289 2014-02-24  Yao Qi  <yao@codesourcery.com>
7290
7291         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7292         * corefile.c (read_memory): Adjusted.
7293         * target.c (target_write_with_progress): Adjusted.
7294
7295 2014-02-23  Yao Qi  <yao@codesourcery.com>
7296
7297         Revert two patches:
7298
7299         2013-10-25  Yao Qi  <yao@codesourcery.com>
7300
7301         * remote.c (remote_traceframe_info): Return early if
7302         traceframe is not selected.
7303
7304         2013-07-19  Yao Qi  <yao@codesourcery.com>
7305
7306         * target.c (update_current_target): Change the default action
7307         of 'to_traceframe_info' from tcomplain to return_zero.
7308         * target.h (struct target_ops) <to_traceframe_info>: Add more
7309         comments.
7310
7311 2014-02-23  Yao Qi  <yao@codesourcery.com>
7312
7313         * valops.c (read_value_memory): Rewrite it.  Call
7314         target_xfer_partial in a loop.
7315         * exec.h (section_table_available_memory): Remove declaration.
7316         Move comments to ...
7317         * exec.c (section_table_available_memory): ... here.  Make it
7318         static.
7319
7320 2014-02-23  Yao Qi  <yao@codesourcery.com>
7321
7322         * exec.c (section_table_read_available_memory): New function.
7323         * exec.h (section_table_read_available_memory): Declare.
7324         * ctf.c (ctf_xfer_partial): Call
7325         section_table_read_available_memory.
7326         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7327
7328 2014-02-23  Yao Qi  <yao@codesourcery.com>
7329
7330         * ctf.c (ctf_xfer_partial): Move code to ...
7331         * exec.c (exec_read_partial_read_only): ... it.  New function.
7332         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7333         * tracefile.c: Include "exec.h".
7334         * exec.h (exec_read_partial_read_only): Declare.
7335
7336 2014-02-23  Yao Qi  <yao@codesourcery.com>
7337
7338         * tracefile-tfile.c (tfile_has_all_memory): Remove.
7339         (tfile_has_memory): Remove.
7340         (init_tfile_ops): Don't set fields to_has_all_memory and
7341         to_has_memory of tfile_ops.
7342         * tracefile.c (tracefile_has_all_memory): New function.
7343         (tracefile_has_memory): New function.
7344         (init_tracefile_ops): Initialize fields to_has_all_memory and
7345         to_has_memory of 'ops'.
7346
7347 2014-02-23  Yao Qi  <yao@codesourcery.com>
7348
7349         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7350         (ctf_thread_alive, ctf_get_trace_status): Remove.
7351         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
7352         init_tracefile_ops.
7353         * tracefile-tfile.c (tfile_get_trace_status): Remove.
7354         (tfile_has_stack, tfile_has_registers): Remove.
7355         (tfile_thread_alive): Remove.
7356         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
7357         init_tracefile_ops.
7358         * tracefile.c (tracefile_has_stack): New function.
7359         (tracefile_has_registers): New function.
7360         (tracefile_thread_alive): New function.
7361         (tracefile_get_trace_status): New function.
7362         (init_tracefile_ops): New function.
7363         * tracefile.h (init_tracefile_ops): Declare.
7364
7365 2014-02-23  Yao Qi  <yao@codesourcery.com>
7366
7367         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7368         (O_LARGEFILE): Likewise.
7369         (tfile_ops): Likewise.
7370         (TRACE_HEADER_SIZE): Likewise.
7371         (trace_fd, trace_frames_offset, cur_offset): Likewise.
7372         (cur_data_size): Likewise.
7373         (tfile_read, tfile_open, tfile_interp_line): Likewise.
7374         (tfile_close, tfile_files_info): Likewise.
7375         (tfile_get_trace_status): Likewise.
7376         (tfile_get_tracepoint_status): Likewise.
7377         (tfile_get_traceframe_address): Likewise.
7378         (tfile_trace_find, match_blocktype): Likewise.
7379         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7380         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7381         (tfile_get_trace_state_variable_value): Likewise.
7382         (tfile_has_all_memory, tfile_has_memory): Likewise.
7383         (tfile_has_stack, tfile_has_registers): Likewise.
7384         (tfile_thread_alive, build_traceframe_info): Likewise.
7385         (tfile_traceframe_info, init_tfile_ops): Likewise.
7386         (_initialize_tracepoint): Don't call init_tfile_ops
7387         and add_target_with_completer.
7388         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7389         exec.h, completer.h and filenames.h.
7390         (_initialize_tracefile_tfile): New function.
7391
7392 2014-02-23  Yao Qi  <yao@codesourcery.com>
7393
7394         * Makefile.in (REMOTE_OBS): Append tracefile.o and
7395         tracefile-tfile.o.
7396         (HFILES_NO_SRCDIR): Add tracefile.h.
7397         * ctf.c: Include "tracefile.h".
7398         * tracefile.h: New file.
7399         * tracefile.c: New file
7400         * tracefile-tfile.c: New file.
7401         * tracepoint.c: Include "tracefile.h".
7402         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7403         (stop_reason_names): Add const.
7404         (trace_file_writer_xfree): Move it to tracefile.c.
7405         (trace_save, trace_save_command, trace_save_tfile): Likewise.
7406         (trace_save_ctf): Likewise.
7407         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7408         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7409         (tfile_write_header, tfile_write_regblock_type): Likewise.
7410         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7411         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7412         (tfile_write_raw_data, tfile_end): Likewise.
7413         (tfile_trace_file_writer_new): Likewise.
7414         (free_uploaded_tp): Make it extern.
7415         (free_uploaded_tsv): Make it extern.
7416         (_initialize_tracepoint): Move code to register command 'tsave'
7417         to tracefile.c.
7418         * tracepoint.h (stop_reason_names): Declare.
7419         (struct trace_frame_write_ops): Move it to tracefile.h.
7420         (struct trace_file_write_ops): Likewise.
7421         (struct trace_file_writer): Likewise.
7422         (free_uploaded_tsvs, free_uploaded_tps): Declare.
7423
7424 2014-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
7425
7426         PR gdb/16594
7427         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7428         process name.
7429         (get_cores_used_by_process): New parameter num_cores, use it.
7430         (linux_xfer_osdata_processes): Pass num_cores to it.
7431         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7432         process name.
7433
7434 2014-02-21  Andreas Arnez  <arnez@vnet.linux.ibm.com>
7435
7436         * target.c (memory_xfer_partial): Fix length arg in call to
7437         breakpoint_xfer_memory.
7438
7439 2014-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
7440
7441         PR tdep/16397
7442         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7443         number comes after the + or - signs.  Adjust length of register
7444         name to be extracted.
7445
7446 2014-02-20  Tom Tromey  <tromey@redhat.com>
7447
7448         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7449         (ada_varobj_ops): Mark "extern".
7450
7451 2014-02-20  Tom Tromey  <tromey@redhat.com>
7452
7453         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7454
7455 2014-02-20  Doug Evans  <xdje42@gmail.com>
7456
7457         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7458         All callers updated.
7459         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7460         All callers updated.
7461         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7462         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7463
7464 2014-02-20  lin zuojian  <manjian2006@gmail.com>
7465             Joel Brobecker  <brobecker@adacore.com>
7466             Doug Evans  <xdje42@gmail.com>
7467
7468         PR symtab/16581
7469         * dwarf2read.c (struct die_info): New member in_process.
7470         (reset_die_in_process): New function.
7471         (process_die): Set it at the start, reset when returning.
7472         (inherit_abstract_dies): Only call process_die if origin_child_die
7473         not already being processed.
7474
7475 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
7476
7477         * windows-nat.c (handle_unload_dll): Add function documentation.
7478         (do_initial_windows_stuff): Add comment explaining why we wait
7479         until after inferior initialization has finished before
7480         processing all DLLs.
7481
7482 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
7483
7484         * windows-nat.c (get_module_name): Delete.
7485         (windows_get_exec_module_filename): New function, mostly
7486         inspired from get_module_name.
7487         (windows_pid_to_exec_file): Replace call to get_module_name
7488         by call to windows_get_exec_module_filename.
7489
7490 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
7491
7492         * windows-nat.c (handle_load_dll): Rewrite this function's
7493         introductory comment.  Remove code using get_module_name
7494         to get the DLL's name.
7495
7496 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
7497
7498         * windows-nat.c (get_windows_debug_event): Ignore
7499         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7500         if windows_initialization_done == 0.
7501         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7502         Adjust implementation to always load all DLLs.
7503         (do_initial_windows_stuff): Replace call to
7504         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7505
7506 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
7507
7508         * windows-nat.c (_initialize_windows_nat): Deprecate the
7509         "dll-symbols" command.  Turn the "add-shared-symbol-files"
7510         and "assf" aliases into commands, and deprecate them as well.
7511         * NEWS: Add entry explaining that "dll-symbols" and its two
7512         aliases are now deprecated.
7513
7514 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
7515
7516         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7517         new-line in debug string.  Remove trailing spaces.
7518
7519 2014-02-19  Stan Shebs  <stan@codesourcery.com>
7520
7521         * darwin-nat.c (darwin_xfer_partial): Fix return type.
7522
7523 2014-02-19  Siva Chandra Reddy  <sivachandra@google.com>
7524
7525         * NEWS: Add entry for the new feature
7526         * python/py-value.c (valpy_binop): Call value_x_binop for struct
7527         and class values.
7528
7529 2014-02-19  Stan Shebs  <stan@codesourcery.com>
7530
7531         * MAINTAINERS: List Yao Qi as nios2 maintainer.
7532
7533 2014-02-19  Pedro Alves  <palves@redhat.com>
7534
7535         * common/ptid.h (struct ptid): Mention that process_stratum
7536         targets should prefer ptid.lwp.
7537
7538 2014-02-19  Pedro Alves  <palves@redhat.com>
7539
7540         * remote.c (remote_thread_alive, write_ptid, read_ptid)
7541         (read_ptid, remote_newthread_step, remote_threads_extra_info)
7542         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7543         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7544         store remote thread ids rather than ptid.tid.
7545         (_initialize_remote): Adjust.
7546
7547 2014-02-19  Tom Tromey  <tromey@redhat.com>
7548
7549         * target.c (target_get_unwinder): Rewrite.
7550         (target_get_tailcall_unwinder): Rewrite.
7551         * record-btrace.c (record_btrace_to_get_unwinder): New function.
7552         (record_btrace_to_get_tailcall_unwinder): New function.
7553         (init_record_btrace_ops): Update.
7554         * target.h (struct target_ops) <to_get_unwinder,
7555         to_get_tailcall_unwinder>: Now function pointers.  Use
7556         TARGET_DEFAULT_RETURN.
7557
7558 2014-02-19  Tom Tromey  <tromey@redhat.com>
7559
7560         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7561         argument.
7562         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7563
7564 2014-02-19  Tom Tromey  <tromey@redhat.com>
7565
7566         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7567         directly.
7568         * target-delegates.c: Rebuild.
7569         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7570         TARGET_DEFAULT_FUNC.
7571         * target.c (default_target_decr_pc_after_break): Rename from
7572         forward_target_decr_pc_after_break.  Simplify.
7573         (target_decr_pc_after_break): Rely on delegation.
7574
7575 2014-02-19  Tom Tromey  <tromey@redhat.com>
7576
7577         * target.c (update_current_target): Do not INHERIT to_doc or
7578         to_magic.  Do not de_fault to_open or to_close.
7579
7580 2014-02-19  Tom Tromey  <tromey@redhat.com>
7581
7582         * gcore.h (objfile_find_memory_regions): Declare.
7583         * gcore.c (objfile_find_memory_regions): No longer static.  Add
7584         "self" argument.
7585         (_initialize_gcore): Don't call exec_set_find_memory_regions.
7586         * exec.c: Include gcore.h.
7587         (exec_set_find_memory_regions): Remove.
7588         (exec_find_memory_regions): Remove.
7589         (exec_do_find_memory_regions): Remove.
7590         (init_exec_ops): Update.
7591         * defs.h (exec_set_find_memory_regions): Remove.
7592
7593 2014-02-19  Tom Tromey  <tromey@redhat.com>
7594
7595         * target-delegates.c: Rebuild.
7596         * target.h (struct target_ops) <to_extra_thread_info,
7597         to_thread_name, to_pid_to_exec_file, to_get_section_table,
7598         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7599         not 0, in TARGET_DEFAULT_RETURN.
7600
7601 2014-02-19  Tom Tromey  <tromey@redhat.com>
7602
7603         * target.c (complete_target_initialization): Remove casts.  Use
7604         return_zero_has_execution.
7605         (return_zero): Add "ignore" argument.
7606         (return_zero_has_execution): New function.
7607         (init_dummy_target): Remove casts.  Use
7608         return_zero_has_execution.
7609
7610 2014-02-19  Tom Tromey  <tromey@redhat.com>
7611
7612         * target.c (update_current_target): Update comments.  Do not
7613         INHERIT to_stratum.
7614
7615 2014-02-19  Tom Tromey  <tromey@redhat.com>
7616
7617         * arm-linux-nat.c (arm_linux_read_description): Delegate when
7618         needed.
7619         * corelow.c (core_read_description): Delegate when needed.
7620         * remote.c (remote_read_description): Delegate when needed.
7621         * target-delegates.c: Rebuild.
7622         * target.c (target_read_description): Rewrite.
7623         * target.h (struct target_ops) <to_read_description>: Update
7624         comment.  Use TARGET_DEFAULT_RETURN.
7625
7626 2014-02-19  Tom Tromey  <tromey@redhat.com>
7627
7628         * target-delegates.c: Rebuild.
7629         * target.c (update_current_target): Don't inherit or default
7630         to_can_run.
7631         (find_default_run_target): Check against delegate_can_run.
7632         * target.h (struct target_ops) <to_can_run>: Use
7633         TARGET_DEFAULT_RETURN.
7634
7635 2014-02-19  Tom Tromey  <tromey@redhat.com>
7636
7637         * target-delegates.c: Rebuild.
7638         * target.c (target_disconnect): Unconditionally delegate.
7639         * target.h (struct target_ops) <to_disconnect>: Use
7640         TARGET_DEFAULT_NORETURN.
7641
7642 2014-02-19  Tom Tromey  <tromey@redhat.com>
7643
7644         * record.c (record_stop): Unconditionally delegate.
7645         * target-delegates.c: Rebuild.
7646         * target.c (target_stop_recording): Unconditionally delegate.
7647         * target.h (struct target_ops) <to_stop_recording>: Use
7648         TARGET_DEFAULT_IGNORE.
7649
7650 2014-02-19  Tom Tromey  <tromey@redhat.com>
7651
7652         * target-delegates.c: Rebuild.
7653         * target.c (target_enable_btrace): Unconditionally delegate.
7654         * target.h (struct target_ops) <to_enable_btrace>: Use
7655         TARGET_DEFAULT_NORETURN.
7656
7657 2014-02-19  Tom Tromey  <tromey@redhat.com>
7658
7659         * target-delegates.c: Rebuild.
7660         * target.c (target_read_btrace): Unconditionally delegate.
7661         * target.h (struct target_ops) <to_read_btrace>: Use
7662         TARGET_DEFAULT_NORETURN.
7663
7664 2014-02-19  Tom Tromey  <tromey@redhat.com>
7665
7666         * target-delegates.c: Rebuild.
7667         * target.c (target_teardown_btrace): Unconditionally delegate.
7668         * target.h (struct target_ops) <to_teardown_btrace>: Use
7669         TARGET_DEFAULT_NORETURN.
7670
7671 2014-02-19  Tom Tromey  <tromey@redhat.com>
7672
7673         * target-delegates.c: Rebuild.
7674         * target.c (target_disable_btrace): Unconditionally delegate.
7675         * target.h (struct target_ops) <to_disable_btrace>: Use
7676         TARGET_DEFAULT_NORETURN.
7677
7678 2014-02-19  Tom Tromey  <tromey@redhat.com>
7679
7680         * target-delegates.c: Rebuild.
7681         * target.c (default_search_memory): New function.
7682         (simple_search_memory): Update comment.
7683         (target_search_memory): Unconditionally delegate.
7684         * target.h (struct target_ops) <to_search_memory>: Use
7685         TARGET_DEFAULT_FUNC.
7686
7687 2014-02-19  Tom Tromey  <tromey@redhat.com>
7688
7689         * auxv.c (default_auxv_parse): No longer static.
7690         (target_auxv_parse): Unconditionally delegate.
7691         * auxv.h (default_auxv_parse): Declare.
7692         * target-delegates.c: Rebuild.
7693         * target.c: Include auxv.h.
7694         * target.h (struct target_ops) <to_auxv_parse>: Use
7695         TARGET_DEFAULT_FUNC.
7696
7697 2014-02-19  Tom Tromey  <tromey@redhat.com>
7698
7699         * target-delegates.c: Rebuild.
7700         * target.c (target_memory_map): Unconditionally delegate.
7701         * target.h (struct target_ops) <to_memory_map>: Use
7702         TARGET_DEFAULT_RETURN.
7703
7704 2014-02-19  Tom Tromey  <tromey@redhat.com>
7705
7706         * target-delegates.c: Rebuild.
7707         * target.c (target_thread_alive): Unconditionally delegate.
7708         * target.h (struct target_ops) <to_thread_alive>: Use
7709         TARGET_DEFAULT_RETURN.
7710
7711 2014-02-19  Tom Tromey  <tromey@redhat.com>
7712
7713         * target-delegates.c: Rebuild.
7714         * target.c (target_save_record): Unconditionally delegate.
7715         * target.h (struct target_ops) <to_save_record>: Use
7716         TARGET_DEFAULT_NORETURN.
7717
7718 2014-02-19  Tom Tromey  <tromey@redhat.com>
7719
7720         * target-delegates.c: Rebuild.
7721         * target.c (target_delete_record): Unconditionally delegate.
7722         * target.h (struct target_ops) <to_delete_record>: Use
7723         TARGET_DEFAULT_NORETURN.
7724
7725 2014-02-19  Tom Tromey  <tromey@redhat.com>
7726
7727         * target-delegates.c: Rebuild.
7728         * target.c (target_record_is_replaying): Unconditionally
7729         delegate.
7730         * target.h (struct target_ops) <to_record_is_replaying>: Use
7731         TARGET_DEFAULT_RETURN.
7732
7733 2014-02-19  Tom Tromey  <tromey@redhat.com>
7734
7735         * target-delegates.c: Rebuild.
7736         * target.c (target_goto_record_begin): Unconditionally delegate.
7737         * target.h (struct target_ops) <to_goto_record_begin>: Use
7738         TARGET_DEFAULT_NORETURN.
7739
7740 2014-02-19  Tom Tromey  <tromey@redhat.com>
7741
7742         * target-delegates.c: Rebuild.
7743         * target.c (target_goto_record_end): Unconditionally delegate.
7744         * target.h (struct target_ops) <to_goto_record_end>: Use
7745         TARGET_DEFAULT_NORETURN.
7746
7747 2014-02-19  Tom Tromey  <tromey@redhat.com>
7748
7749         * target-delegates.c: Rebuild.
7750         * target.c (target_goto_record): Unconditionally delegate.
7751         * target.h (struct target_ops) <to_goto_record>: Use
7752         TARGET_DEFAULT_NORETURN.
7753
7754 2014-02-19  Tom Tromey  <tromey@redhat.com>
7755
7756         * target-delegates.c: Rebuild.
7757         * target.c (target_insn_history): Unconditionally delegate.
7758         * target.h (struct target_ops) <to_insn_history>: Use
7759         TARGET_DEFAULT_NORETURN.
7760
7761 2014-02-19  Tom Tromey  <tromey@redhat.com>
7762
7763         * target-delegates.c: Rebuild.
7764         * target.c (target_insn_history_from): Unconditionally delegate.
7765         * target.h (struct target_ops) <to_insn_history_from>: Use
7766         TARGET_DEFAULT_NORETURN.
7767
7768 2014-02-19  Tom Tromey  <tromey@redhat.com>
7769
7770         * target-delegates.c: Rebuild.
7771         * target.c (target_insn_history_range): Unconditionally delegate.
7772         * target.h (struct target_ops) <to_insn_history_range>: Use
7773         TARGET_DEFAULT_NORETURN.
7774
7775 2014-02-19  Tom Tromey  <tromey@redhat.com>
7776
7777         * target-delegates.c: Rebuild.
7778         * target.c (target_call_history): Unconditionally delegate.
7779         * target.h (struct target_ops) <to_call_history>: Use
7780         TARGET_DEFAULT_NORETURN.
7781
7782 2014-02-19  Tom Tromey  <tromey@redhat.com>
7783
7784         * target-delegates.c: Rebuild.
7785         * target.c (target_call_history_from): Unconditionally delegate.
7786         * target.h (struct target_ops) <to_call_history_from>: Use
7787         TARGET_DEFAULT_NORETURN.
7788
7789 2014-02-19  Tom Tromey  <tromey@redhat.com>
7790
7791         * target-delegates.c: Rebuild.
7792         * target.c (target_call_history_range): Unconditionally delegate.
7793         * target.h (struct target_ops) <to_call_history_range>: Use
7794         TARGET_DEFAULT_NORETURN.
7795
7796 2014-02-19  Tom Tromey  <tromey@redhat.com>
7797
7798         * target-delegates.c: Rebuild.
7799         * target.c (target_verify_memory): Unconditionally delegate.
7800         * target.h (struct target_ops) <to_verify_memory>: Use
7801         TARGET_DEFAULT_NORETURN.
7802
7803 2014-02-19  Tom Tromey  <tromey@redhat.com>
7804
7805         * target-delegates.c: Rebuild.
7806         * target.c (target_core_of_thread): Unconditionally delegate.
7807         * target.h (struct target_ops) <to_core_of_thread>: Use
7808         TARGET_DEFAULT_RETURN.
7809
7810 2014-02-19  Tom Tromey  <tromey@redhat.com>
7811
7812         * target-delegates.c: Rebuild.
7813         * target.c (target_flash_done): Unconditionally delegate.
7814         * target.h (struct target_ops) <to_flash_done>: Use
7815         TARGET_DEFAULT_NORETURN.
7816
7817 2014-02-19  Tom Tromey  <tromey@redhat.com>
7818
7819         * target-delegates.c: Rebuild.
7820         * target.c (target_flash_erase): Unconditionally delegate.
7821         * target.h (struct target_ops) <to_flash_erase>: Use
7822         TARGET_DEFAULT_NORETURN.
7823
7824 2014-02-19  Tom Tromey  <tromey@redhat.com>
7825
7826         * target-delegates.c: Rebuild.
7827         * target.c (target_get_section_table): Unconditionally delegate.
7828         * target.h (struct target_ops) <to_get_section_table>: Use
7829         TARGET_DEFAULT_RETURN.
7830
7831 2014-02-19  Tom Tromey  <tromey@redhat.com>
7832
7833         * target-delegates.c: Rebuild.
7834         * target.c (target_pid_to_str): Unconditionally delegate.
7835         (init_dummy_target): Don't initialize to_pid_to_str.
7836         (default_pid_to_str): Rename from dummy_pid_to_str.
7837         * target.h (struct target_ops) <to_pid_to_str>: Use
7838         TARGET_DEFAULT_FUNC.
7839
7840 2014-02-19  Tom Tromey  <tromey@redhat.com>
7841
7842         * target-delegates.c: Rebuild.
7843         * target.c (target_find_new_threads): Unconditionally delegate.
7844         * target.h (struct target_ops) <to_find_new_threads>: Use
7845         TARGET_DEFAULT_RETURN.
7846
7847 2014-02-19  Tom Tromey  <tromey@redhat.com>
7848
7849         * target-delegates.c: Rebuild.
7850         * target.c (target_program_signals): Unconditionally delegate.
7851         * target.h (struct target_ops) <to_program_signals>: Use
7852         TARGET_DEFAULT_IGNORE.
7853
7854 2014-02-19  Tom Tromey  <tromey@redhat.com>
7855
7856         * target-delegates.c: Rebuild.
7857         * target.c (target_pass_signals): Unconditionally delegate.
7858         * target.h (struct target_ops) <to_pass_signals>: Use
7859         TARGET_DEFAULT_IGNORE.
7860
7861 2014-02-19  Tom Tromey  <tromey@redhat.com>
7862
7863         * target-delegates.c: Rebuild.
7864         * target.c (default_mourn_inferior): New function.
7865         (target_mourn_inferior): Unconditionally delegate.
7866         * target.h (struct target_ops) <to_mourn_inferior>: Use
7867         TARGET_DEFAULT_FUNC.
7868
7869 2014-02-19  Tom Tromey  <tromey@redhat.com>
7870
7871         * target-delegates.c: Rebuild.
7872         * target.c (default_follow_fork): New function.
7873         (target_follow_fork): Unconditionally delegate.
7874         * target.h (struct target_ops) <to_follow_fork>: Use
7875         TARGET_DEFAULT_FUNC.
7876
7877 2014-02-19  Tom Tromey  <tromey@redhat.com>
7878
7879         * target-delegates.c: Rebuild.
7880         * target.c (target_kill): Unconditionally delegate.
7881         * target.h (struct target_ops) <to_kill>: Use
7882         TARGET_DEFAULT_NORETURN.
7883
7884 2014-02-19  Tom Tromey  <tromey@redhat.com>
7885
7886         * target-delegates.c: Rebuild.
7887         * target.c (target_masked_watch_num_registers): Unconditionally
7888         delegate.
7889         * target.h (struct target_ops) <to_masked_watch_num_registers>:
7890         Use TARGET_DEFAULT_RETURN.
7891
7892 2014-02-19  Tom Tromey  <tromey@redhat.com>
7893
7894         * target-delegates.c: Rebuild.
7895         * target.c (target_remove_mask_watchpoint): Unconditionally
7896         delegate.
7897         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7898         TARGET_DEFAULT_RETURN.
7899
7900 2014-02-19  Tom Tromey  <tromey@redhat.com>
7901
7902         * target-delegates.c: Rebuild.
7903         * target.c (target_insert_mask_watchpoint): Unconditionally
7904         delegate.
7905         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7906         TARGET_DEFAULT_RETURN.
7907
7908 2014-02-19  Tom Tromey  <tromey@redhat.com>
7909
7910         * target-delegates.c: Rebuild.
7911         * target.c (target_ranged_break_num_registers): Unconditionally
7912         delegate.
7913         * target.h (struct target_ops) <to_ranged_break_num_registers>:
7914         Use TARGET_DEFAULT_RETURN.
7915
7916 2014-02-19  Tom Tromey  <tromey@redhat.com>
7917
7918         * target-delegates.c: Rebuild.
7919         * target.c (target_fetch_registers): Unconditionally delegate.
7920         * target.h (struct target_ops) <to_fetch_registers>: Use
7921         TARGET_DEFAULT_NORETURN.
7922
7923 2014-02-19  Tom Tromey  <tromey@redhat.com>
7924
7925         * target-delegates.c: Rebuild.
7926         * target.c (update_current_target): Don't inherit or default
7927         to_stop.
7928         * target.h (struct target_ops) <to_stop>: Use
7929         TARGET_DEFAULT_IGNORE.
7930
7931 2014-02-19  Tom Tromey  <tromey@redhat.com>
7932
7933         * target-delegates.c: Rebuild.
7934         * target.c (update_current_target): Don't inherit or default
7935         to_can_run_breakpoint_commands.
7936         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7937         Use TARGET_DEFAULT_RETURN.
7938
7939 2014-02-19  Tom Tromey  <tromey@redhat.com>
7940
7941         * target-delegates.c: Rebuild.
7942         * target.c (update_current_target): Don't inherit or default
7943         to_supports_evaluation_of_breakpoint_conditions.
7944         * target.h (struct target_ops)
7945         <to_supports_evaluation_of_breakpoint_conditions>: Use
7946         TARGET_DEFAULT_RETURN.
7947
7948 2014-02-19  Tom Tromey  <tromey@redhat.com>
7949
7950         * target-delegates.c: Rebuild.
7951         * target.c (update_current_target): Don't inherit or default
7952         to_augmented_libraries_svr4_read.
7953         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7954         Use TARGET_DEFAULT_RETURN.
7955
7956 2014-02-19  Tom Tromey  <tromey@redhat.com>
7957
7958         * target-delegates.c: Rebuild.
7959         * target.c (update_current_target): Don't inherit or default
7960         to_can_use_agent.
7961         * target.h (struct target_ops) <to_can_use_agent>: Use
7962         TARGET_DEFAULT_RETURN.
7963
7964 2014-02-19  Tom Tromey  <tromey@redhat.com>
7965
7966         * target-delegates.c: Rebuild.
7967         * target.c (update_current_target): Don't inherit or default
7968         to_use_agent.
7969         * target.h (struct target_ops) <to_use_agent>: Use
7970         TARGET_DEFAULT_NORETURN.
7971
7972 2014-02-19  Tom Tromey  <tromey@redhat.com>
7973
7974         * target-delegates.c: Rebuild.
7975         * target.c (update_current_target): Don't inherit or default
7976         to_traceframe_info.
7977         (return_null): Remove.
7978         * target.h (struct target_ops) <to_traceframe_info>: Use
7979         TARGET_DEFAULT_RETURN.
7980
7981 2014-02-19  Tom Tromey  <tromey@redhat.com>
7982
7983         * target-delegates.c: Rebuild.
7984         * target.c (update_current_target): Don't inherit or default
7985         to_static_tracepoint_markers_by_strid.
7986         * target.h (struct target_ops)
7987         <to_static_tracepoint_markers_by_strid>: Use
7988         TARGET_DEFAULT_NORETURN.
7989
7990 2014-02-19  Tom Tromey  <tromey@redhat.com>
7991
7992         * target-delegates.c: Rebuild.
7993         * target.c (update_current_target): Don't inherit or default
7994         to_static_tracepoint_marker_at.
7995         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7996         Use TARGET_DEFAULT_RETURN.
7997
7998 2014-02-19  Tom Tromey  <tromey@redhat.com>
7999
8000         * target-delegates.c: Rebuild.
8001         * target.c (update_current_target): Don't inherit or default
8002         to_set_permissions.
8003         * target.h (struct target_ops) <to_set_permissions>: Use
8004         TARGET_DEFAULT_IGNORE.
8005
8006 2014-02-19  Tom Tromey  <tromey@redhat.com>
8007
8008         * target-delegates.c: Rebuild.
8009         * target.c (update_current_target): Don't inherit or default
8010         to_get_tib_address.
8011         * target.h (struct target_ops) <to_get_tib_address>: 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_set_trace_notes.
8019         * target.h (struct target_ops) <to_set_trace_notes>: Use
8020         TARGET_DEFAULT_RETURN.
8021
8022 2014-02-19  Tom Tromey  <tromey@redhat.com>
8023
8024         * target-delegates.c: Rebuild.
8025         * target.c (update_current_target): Don't initialize
8026         to_set_trace_buffer_size.
8027         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8028         TARGET_DEFAULT_IGNORE.
8029
8030 2014-02-19  Tom Tromey  <tromey@redhat.com>
8031
8032         * target-delegates.c: Rebuild.
8033         * target.c (update_current_target): Don't inherit or default
8034         to_set_circular_trace_buffer.
8035         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8036         TARGET_DEFAULT_IGNORE.
8037
8038 2014-02-19  Tom Tromey  <tromey@redhat.com>
8039
8040         * target-delegates.c: Rebuild.
8041         * target.c (update_current_target): Don't inherit or default
8042         to_set_disconnected_tracing.
8043         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8044         TARGET_DEFAULT_IGNORE.
8045
8046 2014-02-19  Tom Tromey  <tromey@redhat.com>
8047
8048         * target-delegates.c: Rebuild.
8049         * target.c (update_current_target): Don't inherit or default
8050         to_get_min_fast_tracepoint_insn_len.
8051         (return_minus_one): Remove.
8052         * target.h (struct target_ops)
8053         <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8054
8055 2014-02-19  Tom Tromey  <tromey@redhat.com>
8056
8057         * target-delegates.c: Rebuild.
8058         * target.c (update_current_target): Don't inherit or default
8059         to_get_raw_trace_data.
8060         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8061         TARGET_DEFAULT_NORETURN.
8062
8063 2014-02-19  Tom Tromey  <tromey@redhat.com>
8064
8065         * target-delegates.c: Rebuild.
8066         * target.c (update_current_target): Don't inherit or default
8067         to_upload_trace_state_variables.
8068         * target.h (struct target_ops) <to_upload_trace_state_variables>:
8069         Use TARGET_DEFAULT_RETURN.
8070
8071 2014-02-19  Tom Tromey  <tromey@redhat.com>
8072
8073         * target-delegates.c: Rebuild.
8074         * target.c (update_current_target): Don't inherit or default
8075         to_upload_tracepoints.
8076         * target.h (struct target_ops) <to_upload_tracepoints>: Use
8077         TARGET_DEFAULT_RETURN.
8078
8079 2014-02-19  Tom Tromey  <tromey@redhat.com>
8080
8081         * target-delegates.c: Rebuild.
8082         * target.c (update_current_target): Don't inherit or default
8083         to_save_trace_data.
8084         * target.h (struct target_ops) <to_save_trace_data>: Use
8085         TARGET_DEFAULT_NORETURN.
8086
8087 2014-02-19  Tom Tromey  <tromey@redhat.com>
8088
8089         * target-delegates.c: Rebuild.
8090         * target.c (update_current_target): Don't inherit or default
8091         to_get_trace_state_variable_value.
8092         * target.h (struct target_ops)
8093         <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8094
8095 2014-02-19  Tom Tromey  <tromey@redhat.com>
8096
8097         * target-delegates.c: Rebuild.
8098         * target.c (update_current_target): Don't inherit or default
8099         to_trace_find.
8100         * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8101
8102 2014-02-19  Tom Tromey  <tromey@redhat.com>
8103
8104         * target-delegates.c: Rebuild.
8105         * target.c (update_current_target): Don't inherit or default
8106         to_trace_stop.
8107         * target.h (struct target_ops) <to_trace_stop>: Use
8108         TARGET_DEFAULT_NORETURN.
8109
8110 2014-02-19  Tom Tromey  <tromey@redhat.com>
8111
8112         * target-delegates.c: Rebuild.
8113         * target.c (update_current_target): Don't inherit or default
8114         to_get_tracepoint_status.
8115         * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8116         TARGET_DEFAULT_NORETURN.
8117
8118 2014-02-19  Tom Tromey  <tromey@redhat.com>
8119
8120         * target-delegates.c: Rebuild.
8121         * target.c (update_current_target): Don't inherit or default
8122         to_get_trace_status.
8123         * target.h (struct target_ops) <to_get_trace_status>: Use
8124         TARGET_DEFAULT_RETURN.
8125
8126 2014-02-19  Tom Tromey  <tromey@redhat.com>
8127
8128         * target-delegates.c: Rebuild.
8129         * target.c (update_current_target): Don't inherit or default
8130         to_trace_start.
8131         * target.h (struct target_ops) <to_trace_start>: Use
8132         TARGET_DEFAULT_NORETURN.
8133
8134 2014-02-19  Tom Tromey  <tromey@redhat.com>
8135
8136         * target-delegates.c: Rebuild.
8137         * target.c (update_current_target): Don't inherit or default
8138         to_trace_set_readonly_regions.
8139         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8140         Use TARGET_DEFAULT_NORETURN.
8141
8142 2014-02-19  Tom Tromey  <tromey@redhat.com>
8143
8144         * target-delegates.c: Rebuild.
8145         * target.c (update_current_target): Don't inherit or default
8146         to_disable_tracepoint.
8147         * target.h (struct target_ops) <to_disable_tracepoint>: Use
8148         TARGET_DEFAULT_NORETURN.
8149
8150 2014-02-19  Tom Tromey  <tromey@redhat.com>
8151
8152         * target-delegates.c: Rebuild.
8153         * target.c (update_current_target): Don't inherit or default
8154         to_enable_tracepoint.
8155         * target.h (struct target_ops) <to_enable_tracepoint>: Use
8156         TARGET_DEFAULT_NORETURN.
8157
8158 2014-02-19  Tom Tromey  <tromey@redhat.com>
8159
8160         * target-delegates.c: Rebuild.
8161         * target.c (update_current_target): Don't inherit or default
8162         to_download_trace_state_variable.
8163         * target.h (struct target_ops) <to_download_trace_state_variable>:
8164         Use TARGET_DEFAULT_NORETURN.
8165
8166 2014-02-19  Tom Tromey  <tromey@redhat.com>
8167
8168         * target-delegates.c: Rebuild.
8169         * target.c (update_current_target): Don't inherit or default
8170         to_can_download_tracepoint.
8171         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8172         TARGET_DEFAULT_RETURN.
8173
8174 2014-02-19  Tom Tromey  <tromey@redhat.com>
8175
8176         * target-delegates.c: Rebuild.
8177         * target.c (update_current_target): Don't inherit or default
8178         to_download_tracepoint.
8179         * target.h (struct target_ops) <to_download_tracepoint>: Use
8180         TARGET_DEFAULT_NORETURN.
8181
8182 2014-02-19  Tom Tromey  <tromey@redhat.com>
8183
8184         * target-delegates.c: Rebuild.
8185         * target.c (update_current_target): Don't inherit or default
8186         to_trace_init.
8187         * target.h (struct target_ops) <to_trace_init>: Use
8188         TARGET_DEFAULT_RETURN.
8189
8190 2014-02-19  Tom Tromey  <tromey@redhat.com>
8191
8192         * target-delegates.c: Rebuild.
8193         * target.c (update_current_target): Don't inherit or default
8194         to_supports_string_tracing.
8195         * target.h (struct target_ops) <to_supports_string_tracing>: Use
8196         TARGET_DEFAULT_RETURN.
8197
8198 2014-02-19  Tom Tromey  <tromey@redhat.com>
8199
8200         * target-delegates.c: Rebuild.
8201         * target.c (update_current_target): Don't inherit or default
8202         to_supports_enable_disable_tracepoint.
8203         * target.h (struct target_ops)
8204         <to_supports_enable_disable_tracepoint>: Use
8205         TARGET_DEFAULT_RETURN.
8206
8207 2014-02-19  Tom Tromey  <tromey@redhat.com>
8208
8209         * target-delegates.c: Rebuild.
8210         * target.c (update_current_target): Don't inherit or default
8211         to_supports_multi_process.
8212         * target.h (struct target_ops) <to_supports_multi_process>: Use
8213         TARGET_DEFAULT_RETURN.
8214
8215 2014-02-19  Tom Tromey  <tromey@redhat.com>
8216
8217         * target-delegates.c: Rebuild.
8218         * target.c (update_current_target): Don't inherit or default
8219         to_get_ada_task_ptid.
8220         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8221         TARGET_DEFAULT_FUNC.
8222
8223 2014-02-19  Tom Tromey  <tromey@redhat.com>
8224
8225         * target-delegates.c: Rebuild.
8226         * target.c (update_current_target): Don't inherit or default
8227         to_thread_architecture.
8228         * target.h (struct target_ops) <to_thread_architecture>: Use
8229         TARGET_DEFAULT_FUNC.
8230
8231 2014-02-19  Tom Tromey  <tromey@redhat.com>
8232
8233         * target-delegates.c: Rebuild.
8234         * target.c (update_current_target): Don't inherit or default
8235         to_execution_direction.
8236         * target.h (struct target_ops) <to_execution_direction>: Use
8237         TARGET_DEFAULT_FUNC.
8238
8239 2014-02-19  Tom Tromey  <tromey@redhat.com>
8240
8241         * target-delegates.c: Rebuild.
8242         * target.c (update_current_target): Don't inherit or default
8243         to_can_execute_reverse.
8244         * target.h (struct target_ops) <to_can_execute_reverse>: Use
8245         TARGET_DEFAULT_RETURN.
8246         (target_can_execute_reverse): Unconditionally delegate.
8247
8248 2014-02-19  Tom Tromey  <tromey@redhat.com>
8249
8250         * target-delegates.c: Rebuild.
8251         * target.c (update_current_target): Don't inherit or default
8252         to_goto_bookmark.
8253         (dummy_goto_bookmark): Remove.
8254         (init_dummy_target): Don't inherit or default to_goto_bookmark.
8255         * target.h (struct target_ops) <to_goto_bookmark>: Use
8256         TARGET_DEFAULT_NORETURN.
8257
8258 2014-02-19  Tom Tromey  <tromey@redhat.com>
8259
8260         * target-delegates.c: Rebuild.
8261         * target.c (update_current_target): Don't inherit or default
8262         to_get_bookmark.
8263         (dummy_get_bookmark): Remove.
8264         (init_dummy_target): Don't inherit or default to_get_bookmark.
8265         * target.h (struct target_ops) <to_get_bookmark>: Use
8266         TARGET_DEFAULT_NORETURN
8267
8268 2014-02-19  Tom Tromey  <tromey@redhat.com>
8269
8270         * target-delegates.c: Rebuild.
8271         * target.c (update_current_target): Don't inherit or default
8272         to_make_corefile_notes.
8273         (init_dummy_target): Don't initialize to_make_corefile_notes.
8274         * target.h (struct target_ops) <to_make_corefile_notes>: Use
8275         TARGET_DEFAULT_FUNC.
8276
8277 2014-02-19  Tom Tromey  <tromey@redhat.com>
8278
8279         * target-delegates.c: Rebuild.
8280         * target.c (update_current_target): Don't inherit or default
8281         to_find_memory_regions.
8282         (init_dummy_target): Don't initialize to_find_memory_regions.
8283         * target.h (struct target_ops) <to_find_memory_regions>: Use
8284         TARGET_DEFAULT_FUNC.
8285
8286 2014-02-19  Tom Tromey  <tromey@redhat.com>
8287
8288         * target-delegates.c: Rebuild.
8289         * target.c (update_current_target): Don't inherit or default
8290         to_log_command.
8291         * target.h (struct target_ops) <to_log_command>: Use
8292         TARGET_DEFAULT_IGNORE.
8293         (target_log_command): Unconditionally delegate.
8294
8295 2014-02-19  Tom Tromey  <tromey@redhat.com>
8296
8297         * target-delegates.c: Rebuild.
8298         * target.c (update_current_target): Don't inherit or default
8299         to_pid_to_exec_file.
8300         * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8301         TARGET_DEFAULT_RETURN.
8302
8303 2014-02-19  Tom Tromey  <tromey@redhat.com>
8304
8305         * target-delegates.c: Rebuild.
8306         * target.c (update_current_target): Don't inherit or default
8307         to_thread_name.
8308         (target_thread_name): Unconditionally delegate.
8309         * target.h (struct target_ops) <to_thread_name>: Use
8310         TARGET_DEFAULT_RETURN.
8311
8312 2014-02-19  Tom Tromey  <tromey@redhat.com>
8313
8314         * target-delegates.c: Rebuild.
8315         * target.c (update_current_target): Don't inherit or default
8316         to_extra_thread_info.
8317         * target.h (struct target_ops) <to_extra_thread_info>: Use
8318         TARGET_DEFAULT_RETURN.
8319
8320 2014-02-19  Tom Tromey  <tromey@redhat.com>
8321
8322         * target-delegates.c: Rebuild.
8323         * target.c (update_current_target): Don't inherit or default
8324         to_has_exited.
8325         * target.h (struct target_ops) <to_has_exited>: Use
8326         TARGET_DEFAULT_RETURN..
8327
8328 2014-02-19  Tom Tromey  <tromey@redhat.com>
8329
8330         * target-delegates.c: Rebuild.
8331         * target.c (update_current_target): Don't inherit or default
8332         to_set_syscall_catchpoint.
8333         (return_one): Remove.
8334         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8335         TARGET_DEFAULT_RETURN.
8336
8337 2014-02-19  Tom Tromey  <tromey@redhat.com>
8338
8339         * target-delegates.c: Rebuild.
8340         * target.c (update_current_target): Don't inherit or default
8341         to_insert_exec_catchpoint.
8342         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8343         TARGET_DEFAULT_RETURN.
8344
8345 2014-01-08  Tom Tromey  <tromey@redhat.com>
8346
8347         * target-delegates.c: Rebuild.
8348         * target.c (update_current_target): Don't inherit or default
8349         to_insert_exec_catchpoint.
8350         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8351         TARGET_DEFAULT_RETURN.
8352
8353 2014-02-19  Tom Tromey  <tromey@redhat.com>
8354
8355         * target-delegates.c: Rebuild.
8356         * target.c (update_current_target): Don't inherit or default
8357         to_remove_vfork_catchpoint.
8358         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8359         TARGET_DEFAULT_RETURN.
8360
8361 2014-02-19  Tom Tromey  <tromey@redhat.com>
8362
8363         * target-delegates.c: Rebuild.
8364         * target.c (update_current_target): Don't inherit or default
8365         to_insert_vfork_catchpoint.
8366         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8367         TARGET_DEFAULT_RETURN.
8368
8369 2014-02-19  Tom Tromey  <tromey@redhat.com>
8370
8371         * target-delegates.c: Rebuild.
8372         * target.c (update_current_target): Don't inherit or default
8373         to_remove_fork_catchpoint.
8374         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8375         TARGET_DEFAULT_RETURN.
8376
8377 2014-02-19  Tom Tromey  <tromey@redhat.com>
8378
8379         * target-delegates.c: Rebuild.
8380         * target.c (update_current_target): Don't inherit or default
8381         to_insert_fork_catchpoint.
8382         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8383         TARGET_DEFAULT_RETURN.
8384
8385 2014-02-19  Tom Tromey  <tromey@redhat.com>
8386
8387         * target-delegates.c: Rebuild.
8388         * target.c (update_current_target): Don't inherit or default
8389         to_post_startup_inferior.
8390         * target.h (struct target_ops) <to_post_startup_inferior>: Use
8391         TARGET_DEFAULT_IGNORE.
8392
8393 2014-02-19  Tom Tromey  <tromey@redhat.com>
8394
8395         * target-delegates.c: Rebuild.
8396         * target.c (update_current_target): Don't inherit or default
8397         to_load.
8398         * target.h (struct target_ops) <to_load>: Use
8399         TARGET_DEFAULT_NORETURN.
8400
8401 2014-02-19  Tom Tromey  <tromey@redhat.com>
8402
8403         * target-delegates.c: Rebuild.
8404         * target.c (update_current_target): Don't inherit or default
8405         to_terminal_info.
8406         * target.h (struct target_ops) <to_terminal_info>: Use
8407         TARGET_DEFAULT_FUNC.
8408
8409 2014-02-19  Tom Tromey  <tromey@redhat.com>
8410
8411         * target-delegates.c: Rebuild.
8412         * target.c (update_current_target): Don't inherit or default
8413         to_terminal_save_ours.
8414         * target.h (struct target_ops) <to_terminal_save_ours>: Use
8415         TARGET_DEFAULT_IGNORE.
8416
8417 2014-02-19  Tom Tromey  <tromey@redhat.com>
8418
8419         * target-delegates.c: Rebuild.
8420         * target.c (update_current_target): Don't inherit or default
8421         to_terminal_ours.
8422         * target.h (struct target_ops) <to_terminal_ours>: Use
8423         TARGET_DEFAULT_IGNORE.
8424
8425 2014-02-19  Tom Tromey  <tromey@redhat.com>
8426
8427         * target-delegates.c: Rebuild.
8428         * target.c (update_current_target): Don't inherit or default
8429         to_terminal_ours_for_output.
8430         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8431         TARGET_DEFAULT_IGNORE.
8432
8433 2014-02-19  Tom Tromey  <tromey@redhat.com>
8434
8435         * target-delegates.c: Rebuild.
8436         * target.c (update_current_target): Don't inherit or default
8437         to_terminal_inferior.
8438         * target.h (struct target_ops) <to_terminal_inferior>: Use
8439         TARGET_DEFAULT_IGNORE.
8440
8441 2014-02-19  Tom Tromey  <tromey@redhat.com>
8442
8443         * target-delegates.c: Rebuild.
8444         * target.c (update_current_target): Don't inherit or default
8445         to_terminal_init.
8446         * target.h (struct target_ops) <to_terminal_init>: Use
8447         TARGET_DEFAULT_IGNORE.
8448
8449 2014-02-19  Tom Tromey  <tromey@redhat.com>
8450
8451         * target-delegates.c: Rebuild.
8452         * target.c (update_current_target): Don't inherit or default
8453         to_can_accel_watchpoint_condition.
8454         * target.h (struct target_ops)
8455         <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8456
8457 2014-02-19  Tom Tromey  <tromey@redhat.com>
8458
8459         * target-delegates.c: Rebuild.
8460         * target.c (update_current_target): Don't inherit or default
8461         to_region_ok_for_hw_watchpoint.
8462         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8463         Use TARGET_DEFAULT_FUNC.
8464
8465 2014-02-19  Tom Tromey  <tromey@redhat.com>
8466
8467         * target-delegates.c: Rebuild.
8468         * target.c (update_current_target): Don't inherit or default
8469         to_watchpoint_addr_within_range.
8470         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8471         Use TARGET_DEFAULT_FUNC.
8472
8473 2014-02-19  Tom Tromey  <tromey@redhat.com>
8474
8475         * target-delegates.c: Rebuild.
8476         * target.c (update_current_target): Don't inherit or default
8477         to_remove_watchpoint.
8478         * target.h (struct target_ops) <to_remove_watchpoint>: Use
8479         TARGET_DEFAULT_NORETURN.
8480
8481 2014-02-19  Tom Tromey  <tromey@redhat.com>
8482
8483         * target-delegates.c: Rebuild.
8484         * target.c (update_current_target): Don't inherit or default
8485         to_insert_watchpoint.
8486         * target.h (struct target_ops) <to_insert_watchpoint>: Use
8487         TARGET_DEFAULT_RETURN.
8488
8489 2014-02-19  Tom Tromey  <tromey@redhat.com>
8490
8491         * target-delegates.c: Rebuild.
8492         * target.c (update_current_target): Don't inherit or default
8493         to_remove_hw_breakpoint.
8494         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8495         TARGET_DEFAULT_RETURN.
8496
8497 2014-02-19  Tom Tromey  <tromey@redhat.com>
8498
8499         * target-delegates.c: Rebuild.
8500         * target.c (update_current_target): Don't inherit or default
8501         to_insert_hw_breakpoint.
8502         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8503         TARGET_DEFAULT_RETURN.
8504
8505 2014-02-19  Tom Tromey  <tromey@redhat.com>
8506
8507         * target-delegates.c: Rebuild.
8508         * target.c (update_current_target): Don't inherit or default
8509         to_can_use_hw_breakpoint.
8510         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8511         TARGET_DEFAULT_RETURN.
8512
8513 2014-02-19  Tom Tromey  <tromey@redhat.com>
8514
8515         * target-delegates.c: Rebuild.
8516         * target.c (update_current_target): Don't inherit or default
8517         to_files_info.
8518         * target.h (struct target_ops) <to_files_info>: Use
8519         TARGET_DEFAULT_IGNORE.
8520
8521 2014-02-19  Tom Tromey  <tromey@redhat.com>
8522
8523         * target-delegates.c: Rebuild.
8524         * target.c (update_current_target): Don't inherit or default
8525         to_store.
8526         * target.h (struct target_ops) <to_store>: Use
8527         TARGET_DEFAULT_NORETURN.
8528
8529 2014-02-19  Tom Tromey  <tromey@redhat.com>
8530
8531         * target-delegates.c: Rebuild.
8532         * target.c (update_current_target): Don't inherit or default
8533         to_post_attach.
8534         * target.h (struct target_ops) <to_post_attach>: Use
8535         TARGET_DEFAULT_IGNORE.
8536
8537 2014-02-19  Tom Tromey  <tromey@redhat.com>
8538
8539         * target-delegates.c: Rebuild.
8540         * target.c (update_current_target): Don't inherit or default
8541         to_rcmd.
8542         (default_rcmd): New function.
8543         (do_monitor_command): Unconditionally delegate.
8544         * target.h (struct target_ops) <to_rmcd>: Use
8545         TARGET_DEFAULT_FUNC.
8546
8547 2014-02-19  Tom Tromey  <tromey@redhat.com>
8548
8549         * target-delegates.c: Rebuild.
8550         * target.c (init_dummy_target): Don't initialize to_attach.
8551         (target_attach): Unconditionally delegate.
8552         * target.h (struct target_ops) <to_attach>: Use
8553         TARGET_DEFAULT_FUNC.
8554
8555 2014-02-19  Tom Tromey  <tromey@redhat.com>
8556
8557         * target-delegates.c: Rebuild.
8558         * target.c (target_detach): Unconditionally delegate.
8559         (init_dummy_target): Don't initialize to_detach.
8560         * target.h (struct target_ops) <to_detach>: Use
8561         TARGET_DEFAULT_IGNORE.
8562
8563 2014-02-19  Tom Tromey  <tromey@redhat.com>
8564
8565         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8566         Add argument.
8567         (target_augmented_libraries_svr4_read): Add argument.
8568         * target.c (update_current_target): Update.
8569         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8570         argument.
8571
8572 2014-02-19  Tom Tromey  <tromey@redhat.com>
8573
8574         * target.h (struct target_ops) <to_call_history_range>: Add
8575         argument.
8576         * target.c (target_call_history_range): Add argument.
8577         * record-btrace.c (record_btrace_call_history_range): Add 'self'
8578         argument.
8579         (record_btrace_call_history_from): Update.
8580
8581 2014-02-19  Tom Tromey  <tromey@redhat.com>
8582
8583         * target.h (struct target_ops) <to_call_history_from>: Add
8584         argument.
8585         * target.c (target_call_history_from): Add argument.
8586         * record-btrace.c (record_btrace_call_history_from): Add 'self'
8587         argument.
8588
8589 2014-02-19  Tom Tromey  <tromey@redhat.com>
8590
8591         * target.h (struct target_ops) <to_call_history>: Add argument.
8592         * target.c (target_call_history): Add argument.
8593         * record-btrace.c (record_btrace_call_history): Add 'self'
8594         argument.
8595
8596 2014-02-19  Tom Tromey  <tromey@redhat.com>
8597
8598         * target.h (struct target_ops) <to_insn_history_range>: Add
8599         argument.
8600         * target.c (target_insn_history_range): Add argument.
8601         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8602         argument.
8603         (record_btrace_insn_history_from): Update.
8604
8605 2014-02-19  Tom Tromey  <tromey@redhat.com>
8606
8607         * target.h (struct target_ops) <to_insn_history_from>: Add
8608         argument.
8609         * target.c (target_insn_history_from): Add argument.
8610         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8611         argument.
8612
8613 2014-02-19  Tom Tromey  <tromey@redhat.com>
8614
8615         * target.h (struct target_ops) <to_insn_history>: Add argument.
8616         * target.c (target_insn_history): Add argument.
8617         * record-btrace.c (record_btrace_insn_history): Add 'self'
8618         argument.
8619
8620 2014-02-19  Tom Tromey  <tromey@redhat.com>
8621
8622         * target.h (struct target_ops) <to_goto_record>: Add argument.
8623         * target.c (target_goto_record): Add argument.
8624         * record-full.c (record_full_goto): Add 'self' argument.
8625         * record-btrace.c (record_btrace_goto): Add 'self' argument.
8626
8627 2014-02-19  Tom Tromey  <tromey@redhat.com>
8628
8629         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8630         * target.c (target_goto_record_end): Add argument.
8631         * record-full.c (record_full_goto_end): Add 'self' argument.
8632         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8633
8634 2014-02-19  Tom Tromey  <tromey@redhat.com>
8635
8636         * target.h (struct target_ops) <to_goto_record_begin>: Add
8637         argument.
8638         * target.c (target_goto_record_begin): Add argument.
8639         * record-full.c (record_full_goto_begin): Add 'self' argument.
8640         * record-btrace.c (record_btrace_goto_begin): Add 'self'
8641         argument.
8642
8643 2014-02-19  Tom Tromey  <tromey@redhat.com>
8644
8645         * target.h (struct target_ops) <to_record_is_replaying>: Add
8646         argument.
8647         * target.c (target_record_is_replaying): Add argument.
8648         * record-full.c (record_full_is_replaying): Add 'self' argument.
8649         * record-btrace.c (record_btrace_is_replaying): Add 'self'
8650         argument.
8651         (record_btrace_xfer_partial, record_btrace_store_registers)
8652         (record_btrace_prepare_to_store, record_btrace_resume)
8653         (record_btrace_wait, record_btrace_decr_pc_after_break)
8654         (record_btrace_find_new_threads, record_btrace_thread_alive):
8655         Update.
8656
8657 2014-02-19  Tom Tromey  <tromey@redhat.com>
8658
8659         * target.h (struct target_ops) <to_delete_record>: Add argument.
8660         * target.c (target_delete_record): Add argument.
8661         * record-full.c (record_full_delete): Add 'self' argument.
8662
8663 2014-02-19  Tom Tromey  <tromey@redhat.com>
8664
8665         * target.h (struct target_ops) <to_save_record>: Add argument.
8666         * target.c (target_save_record): Add argument.
8667         * record-full.c (record_full_save): Add 'self' argument.
8668         (record_full_save): Add 'self' argument.
8669
8670 2014-02-19  Tom Tromey  <tromey@redhat.com>
8671
8672         * target.h (struct target_ops) <to_info_record>: Add argument.
8673         * target.c (target_info_record): Add argument.
8674         * record.c (info_record_command): Add argument.
8675         * record-full.c (record_full_info): Add 'self' argument.
8676         * record-btrace.c (record_btrace_info): Add 'self' argument.
8677
8678 2014-02-19  Tom Tromey  <tromey@redhat.com>
8679
8680         * target.h (struct target_ops) <to_stop_recording>: Add argument.
8681         * target.c (target_stop_recording): Add argument.
8682         * record.c (record_stop): Add argument.
8683         * record-btrace.c (record_btrace_stop_recording): Add 'self'
8684         argument.
8685
8686 2014-02-19  Tom Tromey  <tromey@redhat.com>
8687
8688         * target.h (struct target_ops) <to_read_btrace>: Add argument.
8689         * target.c (struct target_ops) <to_read_btrace>: Add argument.
8690         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8691         argument.
8692         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8693         (_initialize_amd64_linux_nat): Use it.
8694         * i386-linux-nat.c (i386_linux_read_btrace): New function.
8695         (_initialize_i386_linux_nat): Use it.
8696
8697 2014-02-19  Tom Tromey  <tromey@redhat.com>
8698
8699         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8700         * target.c (target_teardown_btrace): Add argument.
8701         * remote.c (remote_teardown_btrace): Add 'self' argument.
8702         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8703         argument.
8704         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8705         argument.
8706
8707 2014-02-19  Tom Tromey  <tromey@redhat.com>
8708
8709         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8710         * target.c (target_disable_btrace): Add argument.
8711         * remote.c (remote_disable_btrace): Add 'self' argument.
8712         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8713         argument.
8714         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8715         argument.
8716
8717 2014-02-19  Tom Tromey  <tromey@redhat.com>
8718
8719         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8720         * target.c (target_enable_btrace): Add argument.
8721         * remote.c (remote_enable_btrace): Add 'self' argument.
8722         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8723         argument.
8724         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8725         argument.
8726
8727 2014-02-19  Tom Tromey  <tromey@redhat.com>
8728
8729         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8730         (target_can_use_agent): Add argument.
8731         * target.c (update_current_target): Update.
8732         * remote.c (remote_can_use_agent): Add 'self' argument.
8733         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8734
8735 2014-02-19  Tom Tromey  <tromey@redhat.com>
8736
8737         * target.h (struct target_ops) <to_use_agent>: Add argument.
8738         (target_use_agent): Add argument.
8739         * target.c (update_current_target): Update.
8740         * remote.c (remote_use_agent): Add 'self' argument.
8741         * inf-child.c (inf_child_use_agent): Add 'self' argument.
8742
8743 2014-02-19  Tom Tromey  <tromey@redhat.com>
8744
8745         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8746         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8747         (target_traceframe_info): Add argument.
8748         * target.c (update_current_target): Update.
8749         * remote.c (remote_traceframe_info): Add 'self' argument.
8750         * ctf.c (ctf_traceframe_info): Add 'self' argument.
8751
8752 2014-02-19  Tom Tromey  <tromey@redhat.com>
8753
8754         * target.h (target_static_tracepoint_markers_by_strid): Add
8755         argument.
8756         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8757         'self' argument.
8758         * target.c (update_current_target): Update.
8759         * remote.c (struct target_ops)
8760         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8761         * linux-nat.c (struct target_ops)
8762         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8763
8764 2014-02-19  Tom Tromey  <tromey@redhat.com>
8765
8766         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8767         Add argument.
8768         (target_static_tracepoint_marker_at): Add argument.
8769         * target.c (update_current_target): Update.
8770         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8771         argument.
8772
8773 2014-02-19  Tom Tromey  <tromey@redhat.com>
8774
8775         * target.h (struct target_ops) <to_set_permissions>: Add argument.
8776         (target_set_permissions): Add argument.
8777         * target.c (update_current_target): Update.
8778         * remote.c (remote_set_permissions): Add 'self' argument.
8779         (remote_start_remote): Update.
8780
8781 2014-02-19  Tom Tromey  <tromey@redhat.com>
8782
8783         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8784         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8785         (target_get_tib_address): Add argument.
8786         * target.c (update_current_target): Update.
8787         * remote.c (remote_get_tib_address): Add 'self' argument.
8788
8789 2014-02-19  Tom Tromey  <tromey@redhat.com>
8790
8791         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8792         (target_set_trace_notes): Add argument.
8793         * target.c (update_current_target): Update.
8794         * remote.c (remote_set_trace_notes): Add 'self' argument.
8795
8796 2014-02-19  Tom Tromey  <tromey@redhat.com>
8797
8798         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8799         argument.
8800         (target_set_trace_buffer_size): Add argument.
8801         * target.c (update_current_target): Update.
8802         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8803
8804 2014-02-19  Tom Tromey  <tromey@redhat.com>
8805
8806         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8807         argument.
8808         (target_set_circular_trace_buffer): Add argument.
8809         * target.c (update_current_target): Update.
8810         * remote.c (remote_set_circular_trace_buffer): Add 'self'
8811         argument.
8812
8813 2014-02-19  Tom Tromey  <tromey@redhat.com>
8814
8815         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8816         argument.
8817         (target_set_disconnected_tracing): Add argument.
8818         * target.c (update_current_target): Update.
8819         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8820
8821 2014-02-19  Tom Tromey  <tromey@redhat.com>
8822
8823         * target.h (struct target_ops)
8824         <to_get_min_fast_tracepoint_insn_len>: Add argument.
8825         (target_get_min_fast_tracepoint_insn_len): Add argument.
8826         * target.c (update_current_target): Update.
8827         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8828         argument.
8829
8830 2014-02-19  Tom Tromey  <tromey@redhat.com>
8831
8832         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8833         argument.
8834         (target_get_raw_trace_data): Add argument.
8835         * target.c (update_current_target): Update.
8836         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8837
8838 2014-02-19  Tom Tromey  <tromey@redhat.com>
8839
8840         * target.h (struct target_ops) <to_upload_trace_state_variables>:
8841         Add argument.
8842         (target_upload_trace_state_variables): Add argument.
8843         * target.c (update_current_target): Update.
8844         * remote.c (remote_upload_trace_state_variables): Add 'self'
8845         argument.
8846         (remote_start_remote): Update.
8847
8848 2014-02-19  Tom Tromey  <tromey@redhat.com>
8849
8850         * target.h (struct target_ops) <to_upload_tracepoints>: Add
8851         argument.
8852         (target_upload_tracepoints): Add argument.
8853         * target.c (update_current_target): Update.
8854         * remote.c (remote_upload_tracepoints): Add 'self' argument.
8855         (remote_start_remote): Update.
8856
8857 2014-02-19  Tom Tromey  <tromey@redhat.com>
8858
8859         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8860         (target_save_trace_data): Add argument.
8861         * target.c (update_current_target): Update.
8862         * remote.c (remote_save_trace_data): Add 'self' argument.
8863
8864 2014-02-19  Tom Tromey  <tromey@redhat.com>
8865
8866         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8867         argument.
8868         * target.h (struct target_ops)
8869         <to_get_trace_state_variable_value>: Add argument.
8870         (target_get_trace_state_variable_value): Add argument.
8871         * target.c (update_current_target): Update.
8872         * remote.c (remote_get_trace_state_variable_value): Add 'self'
8873         argument.
8874         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8875
8876 2014-02-19  Tom Tromey  <tromey@redhat.com>
8877
8878         * tracepoint.c (tfile_trace_find): Add 'self' argument.
8879         * target.h (struct target_ops) <to_trace_find>: Add argument.
8880         (target_trace_find): Add argument.
8881         * target.c (update_current_target): Update.
8882         * remote.c (remote_trace_find): Add 'self' argument.
8883         * ctf.c (ctf_trace_find): Add 'self' argument.
8884
8885 2014-02-19  Tom Tromey  <tromey@redhat.com>
8886
8887         * target.h (struct target_ops) <to_trace_stop>: Add argument.
8888         (target_trace_stop): Add argument.
8889         * target.c (update_current_target): Update.
8890         * remote.c (remote_trace_stop): Add 'self' argument.
8891
8892 2014-02-19  Tom Tromey  <tromey@redhat.com>
8893
8894         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8895         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8896         argument.
8897         (target_get_tracepoint_status): Add argument.
8898         * target.c (update_current_target): Update.
8899         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8900
8901 2014-02-19  Tom Tromey  <tromey@redhat.com>
8902
8903         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8904         * target.h (struct target_ops) <to_get_trace_status>: Add
8905         argument.
8906         (target_get_trace_status): Add argument.
8907         * target.c (update_current_target): Update.
8908         * remote.c (remote_get_trace_status): Add 'self' argument.
8909         (remote_start_remote, remote_can_download_tracepoint): Update.
8910         * ctf.c (ctf_get_trace_status): Add 'self' argument.
8911
8912 2014-02-19  Tom Tromey  <tromey@redhat.com>
8913
8914         * target.h (struct target_ops) <to_trace_start>: Add argument.
8915         (target_trace_start): Add argument.
8916         * target.c (update_current_target): Update.
8917         * remote.c (remote_trace_start): Add 'self' argument.
8918
8919 2014-02-19  Tom Tromey  <tromey@redhat.com>
8920
8921         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8922         Add argument.
8923         (target_trace_set_readonly_regions): Add argument.
8924         * target.c (update_current_target): Update.
8925         * remote.c (remote_trace_set_readonly_regions): Add 'self'
8926         argument.
8927
8928 2014-02-19  Tom Tromey  <tromey@redhat.com>
8929
8930         * target.h (struct target_ops) <to_disable_tracepoint>: Add
8931         argument.
8932         (target_disable_tracepoint): Add argument.
8933         * target.c (update_current_target): Update.
8934         * remote.c (remote_disable_tracepoint): Add 'self' argument.
8935
8936 2014-02-19  Tom Tromey  <tromey@redhat.com>
8937
8938         * target.h (struct target_ops) <to_enable_tracepoint>: Add
8939         argument.
8940         (target_enable_tracepoint): Add argument.
8941         * target.c (update_current_target): Update.
8942         * remote.c (remote_enable_tracepoint): Add 'self' argument.
8943
8944 2014-02-19  Tom Tromey  <tromey@redhat.com>
8945
8946         * target.h (struct target_ops) <to_download_trace_state_variable>:
8947         Add argument.
8948         (target_download_trace_state_variable): Add argument.
8949         * target.c (update_current_target): Update.
8950         * remote.c (remote_download_trace_state_variable): Add 'self'
8951         argument.
8952
8953 2014-02-19  Tom Tromey  <tromey@redhat.com>
8954
8955         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8956         argument.
8957         (target_can_download_tracepoint): Add argument.
8958         * target.c (update_current_target): Update.
8959         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8960
8961 2014-02-19  Tom Tromey  <tromey@redhat.com>
8962
8963         * target.h (struct target_ops) <to_download_tracepoint>: Add
8964         argument.
8965         (target_download_tracepoint): Add argument.
8966         * target.c (update_current_target): Update.
8967         * remote.c (remote_download_tracepoint): Add 'self' argument.
8968
8969 2014-02-19  Tom Tromey  <tromey@redhat.com>
8970
8971         * target.h (struct target_ops) <to_trace_init>: Add argument.
8972         (target_trace_init): Add argument.
8973         * target.c (update_current_target): Update.
8974         * remote.c (remote_trace_init): Add 'self' argument.
8975
8976 2014-02-19  Tom Tromey  <tromey@redhat.com>
8977
8978         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
8979         * target.c (target_fileio_readlink): Add argument.
8980         * remote.c (remote_hostio_readlink): Add 'self' argument.
8981         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
8982
8983 2014-02-19  Tom Tromey  <tromey@redhat.com>
8984
8985         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
8986         * target.c (target_fileio_unlink): Add argument.
8987         * remote.c (remote_hostio_unlink): Add 'self' argument.
8988         (remote_file_delete): Update.
8989         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
8990
8991 2014-02-19  Tom Tromey  <tromey@redhat.com>
8992
8993         * target.h (struct target_ops) <to_fileio_close>: Add argument.
8994         * target.c (target_fileio_close): Add argument.
8995         * remote.c (remote_hostio_close): Add 'self' argument.
8996         (remote_hostio_close_cleanup): Update.
8997         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
8998         Update.
8999         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9000
9001 2014-02-19  Tom Tromey  <tromey@redhat.com>
9002
9003         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9004         * target.c (target_fileio_pread): Add argument.
9005         * remote.c (remote_hostio_pread): Add 'self' argument.
9006         (remote_bfd_iovec_pread, remote_file_get): Update.
9007         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9008
9009 2014-02-19  Tom Tromey  <tromey@redhat.com>
9010
9011         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9012         * target.c (target_fileio_pwrite): Add argument.
9013         * remote.c (remote_hostio_pwrite): Add 'self' argument.
9014         (remote_file_put): Update.
9015         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9016
9017 2014-02-19  Tom Tromey  <tromey@redhat.com>
9018
9019         * target.h (struct target_ops) <to_fileio_open>: Add argument.
9020         * target.c (target_fileio_open): Add argument.
9021         * remote.c (remote_hostio_open): Add 'self' argument.
9022         (remote_bfd_iovec_open): Add 'self' argument.
9023         (remote_file_put): Add 'self' argument.
9024         (remote_file_get): Add 'self' argument.
9025         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9026
9027 2014-02-19  Tom Tromey  <tromey@redhat.com>
9028
9029         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9030         Add argument.
9031         (target_can_run_breakpoint_commands): Add argument.
9032         * target.c (update_current_target): Update.
9033         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9034         argument.
9035         (remote_insert_breakpoint): Add 'self' argument.
9036         (remote_insert_hw_breakpoint): Add 'self' argument.
9037         (remote_can_run_breakpoint_commands): Add 'self' argument.
9038
9039 2014-02-19  Tom Tromey  <tromey@redhat.com>
9040
9041         * target.h (struct target_ops)
9042         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9043         (target_supports_evaluation_of_breakpoint_conditions): Add
9044         argument.
9045         * target.c (update_current_target): Update.
9046         * remote.c (remote_supports_cond_breakpoints): Add 'self'
9047         argument.
9048         (remote_insert_breakpoint): Add 'self' argument.
9049         (remote_insert_hw_breakpoint): Add 'self' argument.
9050         (remote_supports_cond_breakpoints): Add 'self' argument.
9051
9052 2014-02-19  Tom Tromey  <tromey@redhat.com>
9053
9054         * target.h (struct target_ops) <to_supports_string_tracing>: Add
9055         argument.
9056         (target_supports_string_tracing): Add argument.
9057         * target.c (update_current_target): Update.
9058         * remote.c (remote_supports_string_tracing): Add 'self' argument.
9059
9060 2014-02-19  Tom Tromey  <tromey@redhat.com>
9061
9062         * target.h (struct target_ops)
9063         <to_supports_disable_randomization>: Add argument.
9064         * target.c (find_default_supports_disable_randomization): Add
9065         argument.
9066         (target_supports_disable_randomization): Add argument.
9067         (find_default_supports_disable_randomization): Add 'self'
9068         argument.
9069         * remote.c (extended_remote_supports_disable_randomization): Add
9070         'self' argument.
9071         (remote_supports_disable_randomization): Add 'self' argument.
9072         (extended_remote_create_inferior): Update.
9073         * linux-nat.c (linux_nat_supports_disable_randomization): Add
9074         'self' argument.
9075
9076 2014-02-19  Tom Tromey  <tromey@redhat.com>
9077
9078         * target.h (struct target_ops)
9079         <to_supports_enable_disable_tracepoint>: Add argument.
9080         (target_supports_enable_disable_tracepoint): Add argument.
9081         * target.c (update_current_target): Update.
9082         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9083         argument.
9084
9085 2014-02-19  Tom Tromey  <tromey@redhat.com>
9086
9087         * target.h (struct target_ops) <to_supports_multi_process>: Add
9088         argument.
9089         (target_supports_multi_process): Add argument.
9090         * target.c (update_current_target): Update.
9091         * remote.c (remote_supports_multi_process): Add 'self' argument.
9092         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9093         argument.
9094         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9095         argument.
9096
9097 2014-02-19  Tom Tromey  <tromey@redhat.com>
9098
9099         * target.h (struct target_ops) <to_execution_direction>: Add
9100         argument.
9101         (target_execution_direction): Add argument.
9102         * target.c (default_execution_direction): Add 'self' argument.
9103         * record-full.c (record_full_execution_direction): Add 'self'
9104         argument.
9105
9106 2014-02-19  Tom Tromey  <tromey@redhat.com>
9107
9108         * target.h (struct target_ops) <to_can_execute_reverse>: Add
9109         argument.
9110         (target_can_execute_reverse): Add argument.
9111         * remote.c (remote_can_execute_reverse): Add 'self' argument.
9112         * record-full.c (record_full_can_execute_reverse): Add 'self'
9113         argument.
9114         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9115         argument.
9116
9117 2014-02-19  Tom Tromey  <tromey@redhat.com>
9118
9119         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9120         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9121         argument.
9122         (target_get_ada_task_ptid): Add argument.
9123         * target.c (update_current_target): Update.
9124         (default_get_ada_task_ptid): Add 'self' argument.
9125         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9126         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9127         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9128         argument.
9129         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9130         argument.
9131         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9132         argument.
9133         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9134         argument.
9135         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9136         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9137         argument.
9138
9139 2014-02-19  Tom Tromey  <tromey@redhat.com>
9140
9141         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9142         (target_goto_bookmark): Add argument.
9143         * target.c (dummy_goto_bookmark): Add 'self' argument.
9144         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9145
9146 2014-02-19  Tom Tromey  <tromey@redhat.com>
9147
9148         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9149         (target_get_bookmark): Add argument.
9150         * target.c (dummy_get_bookmark): Add 'self' argument.
9151         * record-full.c (record_full_get_bookmark): Add 'self' argument.
9152
9153 2014-02-19  Tom Tromey  <tromey@redhat.com>
9154
9155         * target.h (struct target_ops) <to_make_corefile_notes>: Add
9156         argument.
9157         (target_make_corefile_notes): Add argument.
9158         * target.c (dummy_make_corefile_notes): Add 'self' argument.
9159         * procfs.c (procfs_make_note_section): Add 'self' argument.
9160         (procfs_make_note_section): Add 'self' argument.
9161         (procfs_make_note_section): Add 'self' argument.
9162         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9163         argument.
9164         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9165         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9166         * exec.c (exec_make_note_section): Add 'self' argument.
9167         (exec_make_note_section): Add 'self' argument.
9168
9169 2014-02-19  Tom Tromey  <tromey@redhat.com>
9170
9171         * target.h (struct target_ops) <to_find_memory_regions>: Add
9172         argument.
9173         (target_find_memory_regions): Add argument.
9174         * target.c (dummy_find_memory_regions): Add 'self' argument.
9175         * procfs.c (proc_find_memory_regions): Add 'self' argument.
9176         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9177         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9178         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9179         * exec. (exec_do_find_memory_regions): New global.
9180         (exec_set_find_memory_regions): Rewrite.
9181         (exec_find_memory_regions): New function.
9182         (init_exec_ops): Use exec_find_memory_regions.
9183
9184 2014-02-19  Tom Tromey  <tromey@redhat.com>
9185
9186         * target.h (struct target_ops) <to_supports_non_stop>: Add
9187         argument.
9188         * target.c (find_default_supports_non_stop): Add argument.
9189         (target_supports_non_stop): Add argument.
9190         (find_default_supports_non_stop): Add 'self' argument.
9191         * remote.c (remote_supports_non_stop): Add 'self' argument.
9192         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9193
9194 2014-02-19  Tom Tromey  <tromey@redhat.com>
9195
9196         * target.h (struct target_ops) <to_log_command>: Add argument.
9197         (target_log_command): Add argument.
9198         * serial.h (serial_log_command): Add 'self' argument.
9199         * serial.c (serial_log_command): Add 'self' argument.
9200
9201 2014-02-19  Tom Tromey  <tromey@redhat.com>
9202
9203         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9204         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9205         argument.
9206         (target_pid_to_exec_file): Add argument.
9207         * target.c (debug_to_pid_to_exec_file): Add argument.
9208         (update_current_target): Update.
9209         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9210         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9211         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9212         (linux_handle_extended_wait): Update.
9213         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9214         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9215         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9216         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9217
9218 2014-02-19  Tom Tromey  <tromey@redhat.com>
9219
9220         * target.h (struct target_ops) <to_rcmd>: Add argument.
9221         (target_rcmd): Add argument.
9222         * target.c (debug_to_rcmd): Add argument.
9223         (update_current_target, do_monitor_command): Update.
9224         * remote.c (remote_rcmd): Add 'self' argument.
9225         * monitor.c (monitor_rcmd): Add 'self' argument.
9226
9227 2014-02-19  Tom Tromey  <tromey@redhat.com>
9228
9229         * windows-nat.c (windows_stop): Add 'self' argument.
9230         * target.h (struct target_ops) <to_stop>: Add argument.
9231         * target.c (target_stop): Add argument.
9232         (debug_to_stop): Add argument.
9233         (update_current_target): Update.
9234         * remote.c (remote_stop): Add 'self' argument.
9235         * remote-sim.c (gdbsim_stop): Add 'self' argument.
9236         (gdbsim_cntrl_c): Update.
9237         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9238         * procfs.c (procfs_stop): Add 'self' argument.
9239         * nto-procfs.c (procfs_stop): Add 'self' argument.
9240         * monitor.c (monitor_stop): Add 'self' argument.
9241         (monitor_open): Update.
9242         * linux-nat.c (linux_nat_stop): Add argument.
9243         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9244         * gnu-nat.c (gnu_stop): Add 'self' argument.
9245         * darwin-nat.c (darwin_stop): Add 'self' argument.
9246
9247 2014-02-19  Tom Tromey  <tromey@redhat.com>
9248
9249         * target.h (struct target_ops) <to_thread_name>: Add argument.
9250         * target.c (target_thread_name): Add argument.
9251         (update_current_target): Update.
9252         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9253
9254 2014-02-19  Tom Tromey  <tromey@redhat.com>
9255
9256         * target.h (struct target_ops) <to_extra_thread_info>: Add
9257         argument.
9258         (target_extra_thread_info): Add argument.
9259         * target.c (update_current_target): Update.
9260         * remote.c (remote_threads_extra_info): Add 'self' argument.
9261         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9262         argument.
9263         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9264         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9265         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9266         argument.
9267         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9268         argument.
9269         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9270         argument.
9271         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9272         argument.
9273
9274 2014-02-19  Tom Tromey  <tromey@redhat.com>
9275
9276         * target.h (struct target_ops) <to_program_signals>: Add argument.
9277         * target.c (target_program_signals): Add argument.
9278         * remote.c (remote_program_signals): Add 'self' argument.
9279
9280 2014-02-19  Tom Tromey  <tromey@redhat.com>
9281
9282         * target.h (struct target_ops) <to_pass_signals>: Add argument.
9283         * target.c (target_pass_signals): Add argument.
9284         * remote.c (remote_pass_signals): Add 'self' argument.
9285         (remote_start_remote): Update.
9286         * procfs.c (procfs_pass_signals): Add 'self' argument.
9287         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9288         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9289         (linux_nat_create_inferior, linux_nat_attach): Update.
9290
9291 2014-02-19  Tom Tromey  <tromey@redhat.com>
9292
9293         * windows-nat.c (windows_can_run): Add 'self' argument.
9294         * target.h (struct target_ops) <to_can_run>: Add argument.
9295         (target_can_run): Add argument.
9296         * target.c (debug_to_can_run): Add argument.
9297         (update_current_target): Update.
9298         * nto-procfs.c (procfs_can_run): Add 'self' argument.
9299         * inf-child.c (inf_child_can_run): Add 'self' argument.
9300         * go32-nat.c (go32_can_run): Add 'self' argument.
9301
9302 2014-02-19  Tom Tromey  <tromey@redhat.com>
9303
9304         * target.h (struct target_ops) <to_has_exited>: Add argument.
9305         (target_has_exited): Add argument.
9306         * target.c (debug_to_has_exited): Add argument.
9307         (update_current_target): Update.
9308
9309 2014-02-19  Tom Tromey  <tromey@redhat.com>
9310
9311         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9312         argument.
9313         (target_set_syscall_catchpoint): Add argument.
9314         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9315         argument.
9316         * target.c (update_current_target): Update.
9317
9318 2014-02-19  Tom Tromey  <tromey@redhat.com>
9319
9320         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9321         argument.
9322         (target_remove_exec_catchpoint): Add argument.
9323         * target.c (debug_to_remove_exec_catchpoint): Add argument.
9324         (update_current_target): Update.
9325         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9326         argument.
9327
9328 2014-02-19  Tom Tromey  <tromey@redhat.com>
9329
9330         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9331         argument.
9332         (target_insert_exec_catchpoint): Add argument.
9333         * target.c (debug_to_insert_exec_catchpoint): Add argument.
9334         (update_current_target): Update.
9335         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9336         argument.
9337
9338 2014-02-19  Tom Tromey  <tromey@redhat.com>
9339
9340         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9341         argument.
9342         (target_remove_vfork_catchpoint): Add argument.
9343         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9344         (update_current_target): Update.
9345         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9346         argument.
9347
9348 2014-02-19  Tom Tromey  <tromey@redhat.com>
9349
9350         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9351         argument.
9352         (target_insert_vfork_catchpoint): Add argument.
9353         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9354         (update_current_target): Update.
9355         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9356         argument.
9357
9358 2014-02-19  Tom Tromey  <tromey@redhat.com>
9359
9360         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9361         argument.
9362         (target_remove_fork_catchpoint): Add argument.
9363         * target.c (debug_to_remove_fork_catchpoint): Add argument.
9364         (update_current_target): Update.
9365         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9366         argument.
9367
9368 2014-02-19  Tom Tromey  <tromey@redhat.com>
9369
9370         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9371         argument.
9372         (target_insert_fork_catchpoint): Add argument.
9373         * target.c (debug_to_insert_fork_catchpoint): Add argument.
9374         (update_current_target): Update.
9375         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9376         argument.
9377
9378 2014-02-19  Tom Tromey  <tromey@redhat.com>
9379
9380         * target.h (struct target_ops) <to_post_startup_inferior>: Add
9381         argument.
9382         (target_post_startup_inferior): Add argument.
9383         * target.c (debug_to_post_startup_inferior): Add argument.
9384         (update_current_target): Update.
9385         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9386         argument.
9387         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9388         argument.
9389         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9390         argument.
9391         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9392         argument.
9393         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9394         'self' argument.
9395         (super_post_startup_inferior): Likewise.
9396         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9397         'self' argument.
9398         (super_post_startup_inferior): Likewise.
9399         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9400         Add 'self' argument.
9401         (super_post_startup_inferior): Likewise.
9402
9403 2014-02-19  Tom Tromey  <tromey@redhat.com>
9404
9405         * target.h (struct target_ops) <to_load>: Add argument.
9406         * target.c (target_load): Add argument.
9407         (debug_to_load): Add argument.
9408         (update_current_target): Update.
9409         * remote.c (remote_load): Add 'self' argument.
9410         * remote-sim.c (gdbsim_load): Add 'self' argument.
9411         * remote-mips.c (mips_load): Add 'self' argument.
9412         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9413         * monitor.c (monitor_load): Add 'self' argument.
9414         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9415
9416 2014-02-19  Tom Tromey  <tromey@redhat.com>
9417
9418         * target.h (struct target_ops) <to_terminal_info>: Add argument.
9419         (target_terminal_info): Add argument.
9420         * target.c (debug_to_terminal_info): Add argument.
9421         (default_terminal_info): Likewise.
9422         * inflow.c (child_terminal_info): Add 'self' argument.
9423         * inferior.h (child_terminal_info): Add 'self' argument.
9424         * go32-nat.c (go32_terminal_info): Add 'self' argument.
9425
9426 2014-02-19  Tom Tromey  <tromey@redhat.com>
9427
9428         * target.h (struct target_ops) <to_terminal_save_ours>: Add
9429         argument.
9430         (target_terminal_save_ours): Add argument.
9431         * target.c (debug_to_terminal_save_ours): Add argument.
9432         (update_current_target): Update.
9433         * inflow.c (terminal_save_ours): Add 'self' argument.
9434         * inferior.h (terminal_save_ours): Add 'self' argument.
9435
9436 2014-02-19  Tom Tromey  <tromey@redhat.com>
9437
9438         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9439         (target_terminal_ours): Add argument.
9440         * target.c (debug_to_terminal_ours): Add argument.
9441         (update_current_target): Update.
9442         * remote.c (remote_terminal_ours): Add 'self' argument.
9443         (remote_close): Update.
9444         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9445         * inflow.c (terminal_ours): Add 'self' argument.
9446         * inferior.h (terminal_ours): Add 'self' argument.
9447         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9448
9449 2014-02-19  Pedro Alves  <palves@redhat.com>
9450             Tom Tromey  <tromey@redhat.com>
9451
9452         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9453         argument.
9454         (target_terminal_ours_for_output): Add argument.
9455         * target.c (debug_to_terminal_ours_for_output): Add argument.
9456         (update_current_target): Update.
9457         * inflow.c (terminal_ours_for_output): Add 'self' argument.
9458         * inferior.h (terminal_ours_for_output): Add 'self' argument.
9459         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9460
9461 2014-02-19  Tom Tromey  <tromey@redhat.com>
9462
9463         * target.h (struct target_ops) <to_terminal_inferior>: Add
9464         argument.
9465         * target.c (target_terminal_inferior): Add argument.
9466         (update_current_target): Update.
9467         * remote.c (remote_terminal_inferior): Add 'self' argument.
9468         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9469         * inflow.c (terminal_inferior): Add 'self' argument.
9470         * inferior.h (terminal_inferior): Add 'self' argument.
9471         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9472         (go32_terminal_inferior): Add 'self' argument.
9473
9474 2014-02-19  Tom Tromey  <tromey@redhat.com>
9475
9476         * target.h (struct target_ops) <to_terminal_init>: Add argument.
9477         (target_terminal_init): Add argument.
9478         * target.c (debug_to_terminal_init): Add argument.
9479         (update_current_target): Update.
9480         * inflow.c (terminal_init_inferior): Add 'self' argument.
9481         * inferior.h (terminal_init_inferior): Add 'self' argument.
9482         * go32-nat.c (go32_terminal_init): Add 'self' argument.
9483         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9484
9485 2014-02-19  Tom Tromey  <tromey@redhat.com>
9486
9487         * target.h (struct target_ops)
9488         <to_can_accel_watchpoint_condition>: Add argument.
9489         (target_can_accel_watchpoint_condition): Add argument.
9490         * target.c (debug_to_can_accel_watchpoint_condition): Add
9491         argument.
9492         (update_current_target): Update.
9493         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9494         'self' argument.
9495
9496 2014-02-19  Tom Tromey  <tromey@redhat.com>
9497
9498         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9499         Add argument.
9500         (target_region_ok_for_hw_watchpoint): Add argument.
9501         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9502         (default_region_ok_for_hw_watchpoint): Add argument.
9503         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9504         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9505         argument.
9506         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9507         argument.
9508         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9509         argument.
9510         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9511         'self' argument.
9512         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9513         'self' argument.
9514         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9515         'self' argument.
9516         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9517         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9518         'self' argument.
9519         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9520         Add 'self' argument.
9521
9522 2014-02-19  Tom Tromey  <tromey@redhat.com>
9523
9524         * target.h (struct target_ops) <to_insert_watchpoint>: Add
9525         argument.
9526         (target_insert_watchpoint): Add argument.
9527         * target.c (debug_to_insert_watchpoint): Add argument.
9528         (update_current_target): Update.
9529         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9530         * remote.c (remote_insert_watchpoint): Add 'self' argument.
9531         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9532         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9533         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9534         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9535         argument.
9536         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9537         (procfs_insert_hw_watchpoint): Add 'self' argument.
9538         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9539         argument.
9540         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9541         argument.
9542         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9543         argument.
9544         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9545         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9546         argument.
9547         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9548         'self' argument.
9549
9550 2014-02-19  Tom Tromey  <tromey@redhat.com>
9551
9552         * target.h (struct target_ops) <to_remove_watchpoint>: Add
9553         argument.
9554         (target_remove_watchpoint): Add argument.
9555         * target.c (debug_to_remove_watchpoint): Add argument.
9556         (update_current_target): Update.
9557         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9558         * remote.c (remote_remove_watchpoint): Add 'self' argument.
9559         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9560         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9561         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9562         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9563         argument.
9564         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9565         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9566         argument.
9567         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9568         argument.
9569         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9570         argument.
9571         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9572         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9573         argument.
9574         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9575         'self' argument.
9576
9577 2014-02-19  Tom Tromey  <tromey@redhat.com>
9578
9579         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9580         argument.
9581         (target_remove_hw_breakpoint): Add argument.
9582         * target.c (debug_to_remove_hw_breakpoint): Add argument.
9583         (update_current_target): Update.
9584         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9585         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9586         argument.
9587         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9588         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9589         argument.
9590         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9591         'self' argument.
9592
9593 2014-02-19  Tom Tromey  <tromey@redhat.com>
9594
9595         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9596         argument.
9597         (target_insert_hw_breakpoint): Add argument.
9598         * target.c (debug_to_insert_hw_breakpoint): Add argument.
9599         (update_current_target): Update.
9600         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9601         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9602         argument.
9603         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9604         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9605         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9606         argument.
9607         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9608         'self' argument.
9609
9610 2014-02-19  Tom Tromey  <tromey@redhat.com>
9611
9612         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9613         argument.
9614         (target_can_use_hardware_watchpoint): Add argument.
9615         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9616         (update_current_target): Update.
9617         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9618         argument.
9619         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9620         argument.
9621         * remote.c (remote_check_watch_resources): Add 'self' argument.
9622         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9623         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9624         argument.
9625         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9626         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9627         argument.
9628         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9629         argument.
9630         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9631         argument.
9632         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9633         argument.
9634         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9635         argument.
9636         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9637         argument.
9638         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9639         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9640         argument.
9641         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9642         'self' argument.
9643
9644 2014-02-19  Tom Tromey  <tromey@redhat.com>
9645
9646         * target.h (struct target_ops) <to_post_attach>: Add argument.
9647         (target_post_attach): Add argument.
9648         * target.c (debug_to_post_attach): Add argument.
9649         (update_current_target): Update.
9650         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9651         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9652         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9653         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9654         * inf-child.c (inf_child_post_attach): Add 'self' argument.
9655
9656 2014-02-19  Tom Tromey  <tromey@redhat.com>
9657
9658         * windows-nat.c (windows_close): Add 'self' argument.
9659         * tracepoint.c (tfile_close): Add 'self' argument.
9660         * target.h (struct target_ops) <to_close>: Add argument.
9661         * target.c (target_close): Add argument.
9662         (update_current_target): Update.
9663         * remote.c (remote_close): Add 'self' argument.
9664         * remote-sim.c (gdbsim_close): Add 'self' argument.
9665         * remote-mips.c (mips_close): Add 'self' argument.
9666         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9667         * record-full.c (record_full_close): Add 'self' argument.
9668         * record-btrace.c (record_btrace_close): Add 'self' argument.
9669         * monitor.h (monitor_close): Add 'self' argument.
9670         * monitor.c (monitor_close): Add 'self' argument.
9671         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9672         * linux-nat.c (linux_nat_close): Add argument.
9673         * go32-nat.c (go32_close): Add 'self' argument.
9674         * exec.c (exec_close_1): Add 'self' argument.
9675         * ctf.c (ctf_close): Add 'self' argument.
9676         * corelow.c (core_close): Add 'self' argument.
9677         (core_close_cleanup): Update.
9678         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9679         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9680
9681 2014-02-19  Tom Tromey  <tromey@redhat.com>
9682
9683         * remote.c (remote_load): New function.
9684         (init_remote_ops): Use it.
9685
9686 2014-02-19  Tom Tromey  <tromey@redhat.com>
9687
9688         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9689         argument.
9690         * common/linux-btrace.h (linux_supports_btrace): Update.
9691         * remote.c (remote_supports_btrace): Add "self" argument.
9692         * target-delegates.c: Rebuild.
9693         * target.c (target_supports_btrace): Remove.
9694         * target.h (struct target_ops) <to_supports_btrace>: Add
9695         target_ops argument.
9696         (target_supports_btrace): New define.
9697
9698 2014-02-19  Tom Tromey  <tromey@redhat.com>
9699
9700         * record-full.c (record_full_beneath_to_resume_ops)
9701         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9702         (record_full_beneath_to_wait)
9703         (record_full_beneath_to_store_registers_ops)
9704         (record_full_beneath_to_store_registers)
9705         (record_full_beneath_to_xfer_partial_ops)
9706         (record_full_beneath_to_xfer_partial)
9707         (record_full_beneath_to_insert_breakpoint_ops)
9708         (record_full_beneath_to_insert_breakpoint)
9709         (record_full_beneath_to_remove_breakpoint_ops)
9710         (record_full_beneath_to_remove_breakpoint)
9711         (record_full_beneath_to_stopped_by_watchpoint)
9712         (record_full_beneath_to_stopped_data_address)
9713         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9714         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9715         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9716         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9717         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9718         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9719         (tmp_to_stopped_data_address, tmp_to_async): Remove.
9720         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
9721         (record_full_resume, record_full_wait_1)
9722         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9723         (record_full_store_registers, record_full_xfer_partial)
9724         (record_full_insert_breakpoint, record_full_remove_breakpoint)
9725         (record_full_async, record_full_core_xfer_partial): Use target
9726         delegation.
9727         * target-delegates.c: Rebuild.
9728         * target.c (current_xfer_partial): Remove.
9729         (update_current_target): Do not INHERIT or de_fault
9730         to_insert_breakpoint, to_remove_breakpoint,
9731         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9732         to_is_async_p, to_async.  Do not set to_xfer_partial field.
9733         (default_xfer_partial): Simplify.
9734         (current_xfer_partial): Remove.
9735         (target_wait, target_resume): Simplify.
9736         (find_default_can_async_p, find_default_is_async_p): Update.
9737         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9738         to_xfer_partial, to_stopped_by_watchpoint,
9739         to_stopped_data_address.
9740         (target_store_registers): Simplify.
9741         (forward_target_remove_breakpoint)
9742         (forward_target_insert_breakpoint): Remove.
9743         (target_remove_breakpoint, target_insert_breakpoint)
9744         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9745         * target.h (struct target_ops) <to_resume, to_wait,
9746         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9747         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9748         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9749         markup.
9750         (forward_target_remove_breakpoint)
9751         (forward_target_insert_breakpoint): Remove.
9752         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9753         directly.
9754         (record_btrace_insert_breakpoint): Delegate directly.
9755
9756 2014-02-19  Tom Tromey  <tromey@redhat.com>
9757
9758         PR build/7701:
9759         * target-delegates.c: New file.
9760         * target.c: Include target-delegates.c.
9761         (init_dummy_target): Call install_dummy_methods.
9762         (complete_target_initialization): Call install_delegators.
9763         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9764         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9765         * make-target-delegates: New file.
9766
9767 2014-02-19  Tom Tromey  <tromey@redhat.com>
9768
9769         * record.c (find_record_target): Use find_target_at.
9770         * target.c (find_target_at): New function.
9771         * target.h (find_target_at): Declare.
9772
9773 2014-02-19  Tom Tromey  <tromey@redhat.com>
9774
9775         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9776         Add 'ops' argument.
9777         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9778         'ops' argument.
9779         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9780         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9781         'ops' argument.
9782         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9783         argument.
9784         * linux-nat.c (save_sigtrap): Update.
9785         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9786         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9787         (linux_nat_close): Update.
9788         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9789         argument.
9790         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9791         argument.
9792         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9793         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9794         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9795         (tmp_to_async): Add 'ops' argument.
9796         (record_full_stopped_by_watchpoint, record_full_async)
9797         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9798         argument.
9799         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9800         (m32r_stopped_by_watchpoint): Add 'ops' argument.
9801         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9802         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9803         (remote_is_async_p, remote_async): Add 'ops' argument.
9804         (remote_stopped_data_address): Update.
9805         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9806         * target.c (update_current_target)
9807         (find_default_can_async_p, find_default_is_async_p): Update.
9808         (init_dummy_target): Update.
9809         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9810         * target.h (struct target_ops) <to_stopped_by_watchpoint,
9811         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9812         (target_can_async_p, target_is_async_p, target_async)
9813         (target_stopped_by_watchpoint): Update.
9814
9815 2014-02-19  Yao Qi  <yao@codesourcery.com>
9816
9817         PR gdb/16220
9818         * gdbarch.sh: Remove startup_gdbarch.
9819         * gdbarch.c: Regenerated.
9820         * gdbarch.h: Likewise.
9821
9822 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
9823
9824         * rl78-tdep.c (rl78_g10_register_name): New function.
9825         (rl78_return_value): Add g10 support.
9826         (rl78_gdbarch_init): Register rl78_g10_register_name for the
9827         g10.
9828
9829 2014-02-17  Doug Evans  <xdje42@gmail.com>
9830
9831         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9832         (SUBDIR_GUILE_SRCS): Ditto.
9833         (scm-gsmob.o): Ditto.
9834
9835 2014-02-17  Yao Qi  <yao@codesourcery.com>
9836
9837         * gnu-nat.c (ILL_RPC): Declare defined function.
9838
9839 2014-02-17  Yao Qi  <yao@codesourcery.com>
9840
9841         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9842         mach_msg_type_number_t.
9843         (gnu_write_inferior): Likewise.
9844
9845 2014-02-17  Yao Qi  <yao@codesourcery.com>
9846
9847         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9848         in format string.
9849         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9850         (inf_validate_procs, inf_signal): Likewise.
9851         (S_exception_raise_request): Likewise.
9852         (do_mach_notify_dead_name): Likewise.
9853         (steal_exc_port): Likewise.
9854         (gnu_read_inferior): Change 'copy_count''s type to
9855         mach_msg_type_number_t.
9856         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
9857         format string.
9858
9859 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
9860
9861         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9862         flag.  Adjust all users; in particular...
9863         (gnu_wait): ..., don't decrement its value in here...
9864         (gnu_create_inferior): ..., and instead set the flag in here,
9865         around the startup_inferior call, and call that one with
9866         START_INFERIOR_TRAPS_EXPECTED.
9867
9868         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9869         (ILL_RPC): ... new macro.
9870         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9871         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9872         (do_mach_notify_send_once, S_proc_setmsgport_reply)
9873         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9874         functions with ILL_RPC macro.
9875         (S_proc_pid2task_reply, S_proc_task2pid_reply)
9876         (S_proc_task2proc_reply, S_proc_proc2task_reply)
9877         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9878         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9879         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9880         (S_proc_getlogin_reply, S_proc_getsid_reply)
9881         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9882         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9883         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9884         (S_proc_getnports_reply, S_proc_is_important_reply)
9885         (S_proc_get_code_reply): New stub functions, generated with
9886         ILL_RPC macro.
9887
9888         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9889         collected the type check structures.
9890
9891         * reply_mig_hack.awk: Don't expect to see the auto keyword.
9892
9893 2014-02-14  Doug Evans  <dje@google.com>
9894
9895         * target.c (target_write_partial): Fix result type.
9896
9897 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
9898
9899         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9900         the proper offsets to access fpregset_t.
9901
9902 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
9903
9904         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9905         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9906         * h8300-tdep.c (setmachinelist): Remove global.
9907         * hppa-tdep.c (hppa_sigtramp): Remove global.
9908         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9909         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9910         * ravenscar-thread.c (update_target_observer): Remove global.
9911         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9912
9913 2014-02-12  Tom Tromey  <tromey@redhat.com>
9914
9915         * common/rsp-low.c: Update comments.
9916         * common/rsp-low.h: Update comments.
9917
9918 2014-02-12  Tom Tromey  <tromey@redhat.com>
9919
9920         * common/rsp-low.c (convert_ascii_to_int): Remove.
9921         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9922
9923 2014-02-12  Tom Tromey  <tromey@redhat.com>
9924
9925         * common/rsp-low.h (unhexify): Don't declare.
9926         * common/rsp-low.c (unhexify): Remove.
9927
9928 2014-02-12  Tom Tromey  <tromey@redhat.com>
9929
9930         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9931         * common/rsp-low.c (convert_int_to_ascii): Remove.
9932
9933 2014-02-12  Tom Tromey  <tromey@redhat.com>
9934
9935         * common/rsp-low.h (hexify): Don't declare.
9936         * common/rsp-low.c (hexify): Remove.
9937
9938 2014-02-12  Tom Tromey  <tromey@redhat.com>
9939
9940         * common/rsp-low.c (hexify): Never take strlen of argument.
9941
9942 2014-02-12  Tom Tromey  <tromey@redhat.com>
9943
9944         * common/rsp-low.c (bin2hex): Never take strlen of argument.
9945         * remote.c (extended_remote_run, remote_rcmd)
9946         (remote_download_trace_state_variable, remote_save_trace_data)
9947         (remote_set_trace_notes): Update.
9948         * tracepoint.c (encode_source_string, tfile_write_status)
9949         (tfile_write_uploaded_tsv): Update.
9950
9951 2014-02-12  Tom Tromey  <tromey@redhat.com>
9952
9953         * tracepoint.c: Include rsp-low.h.
9954         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9955         * remote.c: Include rsp-low.h.
9956         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9957         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9958         (remote_unescape_input): Move to common/rsp-low.c.
9959         * common/rsp-low.h: New file.
9960         * common/rsp-low.c: New file.
9961         * Makefile.in (SFILES): Add common/rsp-low.c.
9962         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9963         (COMMON_OBS): Add rsp-low.o.
9964         (rsp-low.o): New target.
9965
9966 2014-02-12  Tom Tromey  <tromey@redhat.com>
9967
9968         * utils.h: Include print-utils.h.
9969         (host_address_to_string, plongest, pulongest, phex, phex_nz)
9970         (int_string, core_addr_to_string, core_addr_to_string_nz)
9971         (hex_string, hex_string_custom): Don't declare.
9972         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9973         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9974         (hex_string_custom, int_string, core_addr_to_string)
9975         (core_addr_to_string_nz, host_address_to_string): Move to
9976         common/print-utils.c.
9977         * common/print-utils.h: New file.
9978         * common/print-utils.c: New file
9979         * Makefile.in (SFILES): Add common/print-utils.c.
9980         (HFILES_NO_SRCDIR): Add common/print-utils.h.
9981         (COMMON_OBS): Add print-utils.o.
9982         (print-utils.o): New target.
9983
9984 2014-02-12  Tom Tromey  <tromey@redhat.com>
9985
9986         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
9987
9988 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
9989
9990         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
9991
9992 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
9993
9994         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
9995         if a PT_IO ptrace request returns sucessfully but indicates that 0
9996         bytes were transferred.
9997
9998 2014-02-12  Pedro Alves  <palves@redhat.com>
9999             Kevin Buettner <kevinb@redhat.com>
10000
10001         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10002         TYPE_INSTANCE_FLAG_CODE_SPACE.
10003
10004 2014-02-12  Pedro Alves  <palves@redhat.com>
10005
10006         * h8300-tdep.c (pseudo_from_raw_register)
10007         (raw_from_pseudo_register): New functions.
10008         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10009         them.
10010
10011 2014-02-12  Pedro Alves  <palves@redhat.com>
10012
10013         * h8300-tdep.c (h8300_register_sim_regno): New function.
10014         (h8300_gdbarch_init): Install h8300_register_sim_regno as
10015         gdbarch_register_sim_regno hook.
10016
10017 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
10018
10019         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10020
10021 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
10022
10023         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10024
10025 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
10026
10027         * obsd-tdep.h (obsd_init_abi): New prototype.
10028         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10029         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10030         (obsd_init_abi): New functions.
10031         * i386obsd-tdep.c: Include "obsd-tdep.h".
10032         (i386obsd_init_abi): Call obsd_init_abi.
10033         * amd64obsd-tdep.c: Include "obsd-tdep.h".
10034         (amd64obsd_init_abi): Call obsd_init_abi.
10035         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10036         obsd-tdep.c to gdb_target_obs.
10037
10038 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
10039
10040         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10041         double float arguments to 16-byte in the argument slots.
10042
10043 2014-02-11  Doug Evans  <xdje42@gmail.com>
10044
10045         * configure.ac: Don't crash if pkg-config is not found and guile
10046         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
10047         in guile checks.
10048         * configure: Regenerate.
10049
10050 2014-02-11  Yao Qi  <yao@codesourcery.com>
10051
10052         * aix-thread.c (aix_thread_xfer_partial): Update comments.
10053         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10054         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10055         * gnu-nat.c (gnu_xfer_memory): Likewise.
10056         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
10057         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10058         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10059         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10060
10061 2014-02-11  Yao Qi  <yao@codesourcery.com>
10062
10063         * target.h (enum target_xfer_error): Rename to ...
10064         (enum target_xfer_status): ... it.  New.  All users updated.
10065         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10066         New.
10067         (TARGET_XFER_STATUS_ERROR_P): New macro.
10068         (target_xfer_error_to_string): Remove declaration.
10069         (target_xfer_status_to_string): Declare.
10070         (target_xfer_partial_ftype): Adjust it.
10071         (struct target_ops) <to_xfer_partial>: Return
10072         target_xfer_status.  Add argument xfered_len.  Update
10073         comments.
10074         * target.c (target_xfer_error_to_string): Rename to ...
10075         (target_xfer_status_to_string): ... it.  New.  All callers
10076         updated.
10077         (target_read_live_memory): Likewise.  Call target_xfer_partial
10078         instead of target_read.
10079         (memory_xfer_live_readonly_partial): Return
10080         target_xfer_status.  Add argument xfered_len.
10081         (raw_memory_xfer_partial): Likewise.
10082         (memory_xfer_partial_1): Likewise.
10083         (memory_xfer_partial): Likewise.
10084         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
10085         properly.  Update debug message.
10086         (default_xfer_partial, current_xfer_partial): Likewise.
10087         (target_write_partial): Likewise.
10088         (target_read_partial): Likewise.  All callers updated.
10089         (read_whatever_is_readable): Likewise.
10090         (target_write_with_progress): Likewise.
10091         (target_read_alloc_1): Likewise.
10092
10093         * aix-thread.c (aix_thread_xfer_partial): Likewise.
10094         * auxv.c (procfs_xfer_auxv): Likewise.
10095         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10096         * bfd-target.c (target_bfd_xfer_partial): Likewise.
10097         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10098         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10099         * corefile.c (read_memory): Adjust.
10100         * corelow.c (core_xfer_partial): Likewise.
10101         * ctf.c (ctf_xfer_partial): Likewise.
10102         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
10103         updated.
10104         (darwin_xfer_partial): Likewise.
10105         * exec.c (section_table_xfer_memory_partial): Likewise.  All
10106         callers updated.
10107         (exec_xfer_partial): Likewise.
10108         * exec.h (section_table_xfer_memory_partial): Update
10109         declaration.
10110         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
10111         negative.
10112         (gnu_xfer_partial): Likewise.
10113         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10114         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10115         (ia64_hpux_xfer_solib_got): Likewise.
10116         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
10117         type of 'partial_len' to ULONGEST.
10118         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10119         * linux-nat.c (linux_xfer_siginfo ): Likewise.
10120         (linux_nat_xfer_partial): Likewise.
10121         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10122         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10123         * monitor.c (monitor_xfer_memory): Likewise.
10124         (monitor_xfer_partial): Likewise.
10125         * procfs.c (procfs_xfer_partial): Likewise.
10126         * record-btrace.c (record_btrace_xfer_partial): Likewise.
10127         * record-full.c (record_full_xfer_partial): Likewise.
10128         (record_full_core_xfer_partial): Likewise.
10129         * remote-sim.c (gdbsim_xfer_memory): Likewise.
10130         (gdbsim_xfer_partial): Likewise.
10131         * remote.c (remote_write_bytes_aux): Likewise.  All callers
10132         updated.
10133         (remote_write_bytes, remote_read_bytes): Likewise.  All
10134         callers updated.
10135         (remote_flash_erase): Likewise.  All callers updated.
10136         (remote_write_qxfer): Likewise.  All callers updated.
10137         (remote_read_qxfer): Likewise.  All callers updated.
10138         (remote_xfer_partial): Likewise.
10139         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10140         (rs6000_xfer_shared_libraries): Likewise.
10141         * sol-thread.c (sol_thread_xfer_partial): Likewise.
10142         (sol_thread_xfer_partial): Likewise.
10143         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10144         (sparc_xfer_partial): Likewise.
10145         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
10146         updated.
10147         (spu_xfer_partial): Likewise.
10148         * spu-multiarch.c (spu_xfer_partial): Likewise.
10149         * tracepoint.c (tfile_xfer_partial): Likewise.
10150         * windows-nat.c (windows_xfer_memory): Likewise.
10151         (windows_xfer_shared_libraries): Likewise.
10152         (windows_xfer_partial): Likewise.
10153         * valprint.c: Replace 'target_xfer_error' with
10154         'target_xfer_status' in comments.
10155
10156 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
10157
10158         Checked in by Joel Brobecker <brobecker@adacore.com>.
10159         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10160
10161 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
10162
10163         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10164         function parameters.
10165
10166 2014-02-10  Will Newton  <will.newton@linaro.org>
10167
10168         * elfread.c (elf_rel_plt_read): Look for a .got section if
10169         looking up .got.plt fails.
10170         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10171         on address passed to elf_gnu_ifunc_record_cache.
10172         (elf_gnu_ifunc_resolve_addr): Likewise.
10173         (elf_gnu_ifunc_resolver_return_stop): Likewise.
10174
10175 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
10176
10177         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10178         (X_RETTURN): New macro.
10179         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10180
10181         * sparc64-tdep.c (sparc64_init_abi): Hook
10182         sparc_in_function_epilogue_p.
10183
10184 2014-02-10  Gary Benson  <gbenson@redhat.com>
10185
10186         * symfile-debug.c (debug_qf_expand_symtabs_matching):
10187         Rename name_matcher to symbol_matcher.
10188
10189 2014-02-10  Gary Benson  <gbenson@redhat.com>
10190
10191         * symfile-debug.c (debug_qf_expand_symtabs_matching):
10192         Use expand_symtabs_file_matcher_ftype and
10193         expand_symtabs_symbol_matcher_ftype.
10194
10195 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
10196
10197         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10198         (struct ada_symbol_cache): New.
10199         (ada_free_symbol_cache): Forward declare.
10200         (struct ada_pspace_data): New.
10201         (ada_pspace_data_handle): New static global.
10202         (get_ada_pspace_data, ada_pspace_data_cleanup)
10203         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10204         (cache_space, cache): Delete, now folded inside struct
10205         ada_pspace_data.
10206         (ada_get_symbol_cache): New function.
10207         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10208         implementation.
10209         (_initialize_ada_language): Remove initialization of cache_space.
10210         Move call to observer_attach_inferior_exit up, grouping it
10211         with the other observer registrations inside this function.
10212         Rename command to be more general.  Add call to
10213         register_program_space_data_with_cleanup.
10214
10215 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
10216
10217         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10218         ada_new_objfile_observer.
10219         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10220         (_initialize_tasks): Update uses of ada_new_objfile_observer
10221         and ada_tasks_normal_stop_observer.
10222
10223 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
10224
10225         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10226         returned by the 'Length attribute to integer.
10227
10228 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
10229
10230         * ada-lang.c (_initialize_ada_language): Initialize
10231         cache_space obstack.
10232
10233 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
10234
10235         * ada-lang.c (HASH_SIZE): New macro.
10236         (struct cache_entry): New type.
10237         (cache_space, cache): New static globals.
10238         (ada_clear_symbol_cache, find_entry): New functions.
10239         (lookup_cached_symbol, cache_symbol): Implement.
10240         (ada_new_objfile_observer, ada_free_objfile_observer): New.
10241         (_initialize_ada_language): Attach ada_new_objfile_observer
10242         and ada_free_objfile_observer.
10243
10244 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
10245
10246         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10247         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10248         struct block * parameter.
10249         (ada_lookup_symbol_list_worker): Constify local variable "block".
10250         Remove cast which is no longer necessary.
10251
10252 2014-02-10  Doug Evans  <xdje42@gmail.com>
10253
10254         Add Guile as an extension language.
10255         * NEWS: Mention Guile scripting.
10256         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10257         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10258         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10259         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10260         (CLIBS): Add GUILE_LIBS.
10261         (install-guile): New rule.
10262         (guile.o): New rule.
10263         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10264         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10265         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10266         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10267         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10268         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10269         (scm-type.o, scm-utils.o, scm-value.o): New rules.
10270         * configure.ac: New option --with-guile.
10271         * configure: Regenerate.
10272         * config.in: Regenerate.
10273         * auto-load.c: Remove #include "python/python.h".  Add #include
10274         "gdb/section-scripts.h".
10275         (source_section_scripts): Handle Guile scripts.
10276         (_initialize_auto_load): Add name of Guile objfile script to
10277         scripts-directory help text.
10278         * breakpoint.c (condition_command): Tweak comment to include Scheme.
10279         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10280         (struct breakpoint): New member scm_bp_object.
10281         * defs.h (enum command_control_type): New value guile_control.
10282         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
10283         "extension.h".
10284         (show_user): Update comment.
10285         (_initialize_cli_cmds): Update help text for "show user".  Update help
10286         text for max-user-call-depth.
10287         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
10288         "extension.h".
10289         (multi_line_command_p): Add guile_control.
10290         (print_command_lines): Handle guile_control.
10291         (execute_control_command, recurse_read_control_structure): Ditto.
10292         (process_next_line): Recognize "guile" commands.
10293         * disasm.c (gdb_disassemble_info): Make non-static.
10294         * disasm.h: #include "dis-asm.h".
10295         (struct gdbarch): Add forward decl.
10296         (gdb_disassemble_info): Declare.
10297         * extension.c: #include "guile/guile.h".
10298         (extension_languages): Add guile.
10299         (get_ext_lang_defn): Handle EXT_LANG_GDB.
10300         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10301         * gdbtypes.c (get_unsigned_type_max): New function.
10302         (get_signed_type_minmax): New function.
10303         * gdbtypes.h (get_unsigned_type_max): Declare.
10304         (get_signed_type_minmax): Declare.
10305         * guile/README: New file.
10306         * guile/guile-internal.h: New file.
10307         * guile/guile.c: New file.
10308         * guile/guile.h: New file.
10309         * guile/scm-arch.c: New file.
10310         * guile/scm-auto-load.c: New file.
10311         * guile/scm-block.c: New file.
10312         * guile/scm-breakpoint.c: New file.
10313         * guile/scm-disasm.c: New file.
10314         * guile/scm-exception.c: New file.
10315         * guile/scm-frame.c: New file.
10316         * guile/scm-gsmob.c: New file.
10317         * guile/scm-iterator.c: New file.
10318         * guile/scm-lazy-string.c: New file.
10319         * guile/scm-math.c: New file.
10320         * guile/scm-objfile.c: New file.
10321         * guile/scm-ports.c: New file.
10322         * guile/scm-pretty-print.c: New file.
10323         * guile/scm-safe-call.c: New file.
10324         * guile/scm-string.c: New file.
10325         * guile/scm-symbol.c: New file.
10326         * guile/scm-symtab.c: New file.
10327         * guile/scm-type.c: New file.
10328         * guile/scm-utils.c: New file.
10329         * guile/scm-value.c: New file.
10330         * guile/lib/gdb.scm: New file.
10331         * guile/lib/gdb/boot.scm: New file.
10332         * guile/lib/gdb/experimental.scm: New file.
10333         * guile/lib/gdb/init.scm: New file.
10334         * guile/lib/gdb/iterator.scm: New file.
10335         * guile/lib/gdb/printing.scm: New file.
10336         * guile/lib/gdb/types.scm: New file.
10337         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10338         (VPATH): Add $(GUILE_SRCDIR).
10339         (GUILE_DIR): New variable.
10340         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10341         (all): Add stamp-guile dependency.
10342         (stamp-guile): New rule.
10343         (clean-guile, install-guile, uninstall-guile): New rules.
10344         (install-only): Add install-guile dependency.
10345         (uninstall): Add uninstall-guile dependency.
10346         (clean): Add clean-guile dependency.
10347
10348 2014-02-09  Doug Evans  <xdje42@gmail.com>
10349
10350         Revert this patch (which I approved, mea culpa).
10351
10352         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
10353
10354         * Makefile.in (all-lib): Remove.
10355         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10356
10357 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
10358
10359         Fix Python stack corruption.
10360         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10361         gdb_py_longest.
10362
10363 2014-02-08  Mark Kettenis  <kettenis@gnu.org>
10364
10365         * Makefile.in (all-lib): Remove.
10366         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10367
10368 2014-02-07  Doug Evans  <dje@google.com>
10369
10370         * extension-priv.h (extension_language_script_ops): Add comment.
10371         (extension_language_ops): Add comment.
10372         (active_ext_lang_state): Fix typo in comment.
10373
10374 2014-02-07  Pedro Alves  <palves@redhat.com>
10375
10376         PR breakpoints/16292
10377         * infrun.c (handle_signal_stop) <signal arrives while stepping
10378         over a breakpoint>: Switch back to the stepping thread.
10379
10380 2014-02-07  Yao Qi  <yao@codesourcery.com>
10381
10382         * target.c (target_xfer_partial): Return zero if LEN is zero.
10383
10384 2014-02-07  Yao Qi  <yao@codesourcery.com>
10385
10386         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10387         (ld_so_xfer_auxv): Likewise.
10388         * bfd-target.c (target_bfd_xfer_partial): Likewise.
10389         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10390         * corelow.c (core_xfer_partial): Likewise.
10391         * ctf.c (ctf_xfer_partial): Likewise.
10392         * darwin-nat.c (darwin_read_dyld_info): Likewise.
10393         (darwin_xfer_partial): Likewise.
10394         * exec.c (exec_xfer_partial): Likewise.
10395         * gnu-nat.c (gnu_xfer_partial): Likewise.
10396         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10397         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10398         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10399         * linux-nat.c (linux_xfer_siginfo): Likewise.
10400         (linux_proc_xfer_spu): Likewise.
10401         * procfs.c (procfs_xfer_partial): Likewise.
10402         * record-full.c (record_full_xfer_partial): Likewise.
10403         (record_full_core_xfer_partial): Likewise.
10404         * remote-sim.c (gdbsim_xfer_partial): Likewise.
10405         * remote.c (remote_write_qxfer): Likewise.
10406         (remote_write_qxfer, remote_read_qxfer): Likewise.
10407         (remote_xfer_partial): Likewise.
10408         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10409         (rs6000_xfer_shared_libraries): Likewise.
10410         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10411         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10412         (spu_xfer_partial): Likewise.
10413         * target.c (memory_xfer_partial_1): Likewise.
10414         * tracepoint.c (tfile_xfer_partial): Likewise.
10415         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10416         (windows_xfer_partial): Likewise.
10417
10418 2014-02-07  Yao Qi  <yao@codesourcery.com>
10419
10420         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
10421         comments.
10422         (core_xfer_shared_libraries_aix): Likewise.
10423         * gdbarch.c, gdbarch.h: Regenerated.
10424         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10425         ULONGEST.  Change 'len_avail' type to ULONGEST.
10426         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10427         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10428         declaration.
10429         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10430
10431 2014-02-07  Yao Qi  <yao@codesourcery.com>
10432
10433         * corefile.c (memory_error): Get 'exception' from ERR and pass
10434         'exception' to throw_error.
10435
10436 2014-02-06  Doug Evans  <xdje42@gmail.com>
10437
10438         * configure.ac (libpython checking): Remove all but python.o from
10439         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
10440         * configure: Regenerate.
10441
10442         * Makefile.in (SFILES): Add extension.c.
10443         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10444         (COMMON_OBS): Add extension.o.
10445         * extension.h: New file.
10446         * extension-priv.h: New file.
10447         * extension.c: New file.
10448
10449         * python/python-internal.h: #include "extension.h".
10450         (gdbpy_auto_load_enabled): Declare.
10451         (gdbpy_apply_val_pretty_printer): Declare.
10452         (gdbpy_apply_frame_filter): Declare.
10453         (gdbpy_preserve_values): Declare.
10454         (gdbpy_breakpoint_cond_says_stop): Declare.
10455         (gdbpy_breakpoint_has_cond): Declare.
10456         (void source_python_script_for_objfile): Delete.
10457         * python/python.c: #include "extension-priv.h".
10458         Delete inclusion of "observer.h".
10459         (extension_language_python): Moved here and renamed from
10460         script_language_python in py-auto-load.c.
10461         Redefined to be of type extension_language_defn.
10462         (python_extension_script_ops): New global.
10463         (python_extension_ops): New global.
10464         (struct python_env): New member previous_active.
10465         (restore_python_env): Call restore_active_ext_lang.
10466         (ensure_python_env): Call set_active_ext_lang.
10467         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10468         New arg extlang.
10469         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10470         New arg extlang.
10471         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10472         New arg extlang.
10473         (gdbpy_eval_from_control_command): Renamed from
10474         eval_python_from_control_command, made static.  New arg extlang.
10475         (gdbpy_source_script) Renamed from source_python_script, made static.
10476         New arg extlang.
10477         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
10478         result to int.  New arg extlang.
10479         (gdbpy_source_objfile_script): Renamed from
10480         source_python_script_for_objfile, made static.  New arg extlang.
10481         (gdbpy_start_type_printers): Renamed from start_type_printers, made
10482         static.  New args extlang, extlang_printers.  Change result type to
10483         "void".
10484         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10485         static.  New arg extlang.  Rename arg printers to extlang_printers
10486         and change type to ext_lang_type_printers *.
10487         (gdbpy_free_type_printers): Renamed from free_type_printers, made
10488         static.  Replace argument arg with extlang, extlang_printers.
10489         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10490         (!HAVE_PYTHON, source_python_script): Delete.
10491         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10492         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10493         (!HAVE_PYTHON, start_type_printers): Delete.
10494         (!HAVE_PYTHON, apply_type_printers): Delete.
10495         (!HAVE_PYTHON, free_type_printers): Delete.
10496         (_initialize_python): Delete call to observer_attach_before_prompt.
10497         (finalize_python): Set/restore active extension language.
10498         (gdbpy_finish_initialization) Renamed from
10499         finish_python_initialization, made static.  New arg extlang.
10500         (gdbpy_initialized): New function.
10501         * python/python.h: #include "extension.h".  Delete #include
10502         "value.h", "mi/mi-cmds.h".
10503         (extension_language_python): Declare.
10504         (GDBPY_AUTO_FILE_NAME): Delete.
10505         (enum py_bt_status): Moved to extension.h and renamed to
10506         ext_lang_bt_status.
10507         (enum frame_filter_flags): Moved to extension.h.
10508         (enum py_frame_args): Moved to extension.h and renamed to
10509         ext_lang_frame_args.
10510         (finish_python_initialization): Delete.
10511         (eval_python_from_control_command): Delete.
10512         (source_python_script): Delete.
10513         (apply_val_pretty_printer): Delete.
10514         (apply_frame_filter): Delete.
10515         (preserve_python_values): Delete.
10516         (gdbpy_script_language_defn): Delete.
10517         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10518         (start_type_printers, apply_type_printers, free_type_printers): Delete.
10519
10520         * auto-load.c: #include "extension.h".
10521         (GDB_AUTO_FILE_NAME): Delete.
10522         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
10523         (script_language_gdb): Delete, moved to extension.c and renamed to
10524         extension_language_gdb.
10525         (source_gdb_script_for_objfile): Delete.
10526         (auto_load_pspace_info): New member unsupported_script_warning_printed.
10527         (loaded_script): Change type of language member to
10528         struct extension_language_defn *.
10529         (init_loaded_scripts_info): Initialize
10530         unsupported_script_warning_printed.
10531         (maybe_add_script): Make static.  Change type of language arg to
10532         struct extension_language_defn *.
10533         (clear_section_scripts): Reset unsupported_script_warning_printed.
10534         (auto_load_objfile_script_1): Rewrite to use extension language API.
10535         (auto_load_objfile_script): Make public.  Remove support-compiled-in
10536         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10537         (source_section_scripts): Rewrite to use extension language API.
10538         (load_auto_scripts_for_objfile): Rewrite to use
10539         auto_load_scripts_for_objfile.
10540         (collect_matching_scripts_data): Change type of language member to
10541         struct extension_language_defn *.
10542         (auto_load_info_scripts): Change type of language arg to
10543         struct extension_language_defn *.
10544         (unsupported_script_warning_print): New function.
10545         (script_not_found_warning_print): Make static.
10546         (_initialize_auto_load): Rewrite construction of scripts-directory
10547         help.
10548         * auto-load.h (struct objfile): Add forward decl.
10549         (struct script_language): Delete.
10550         (struct auto_load_pspace_info): Add forward decl.
10551         (struct extension_language_defn): Add forward decl.
10552         (maybe_add_script): Delete.
10553         (auto_load_objfile_script): Declare.
10554         (script_not_found_warning_print): Delete.
10555         (auto_load_info_scripts): Update prototype.
10556         (auto_load_gdb_scripts_enabled): Declare.
10557         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10558         auto_load_python_scripts_enabled and made public.
10559         (script_language_python): Delete, moved to python.c.
10560         (gdbpy_script_language_defn): Delete.
10561         (info_auto_load_python_scripts): Update to use
10562         extension_language_python.
10563
10564         * breakpoint.c (condition_command): Replace call to
10565         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10566         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10567         with call to breakpoint_ext_lang_cond_says_stop.
10568         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10569         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
10570         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10571         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10572         New arg slang.
10573         (local_setattro): Print name of extension language with existing
10574         stop condition.
10575
10576         * valprint.c (val_print, value_print): Update to call
10577         apply_ext_lang_val_pretty_printer.
10578         * cp-valprint.c (cp_print_value): Update call to
10579         apply_ext_lang_val_pretty_printer.
10580         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10581         (gdbpy_apply_val_pretty_printer): Renamed from
10582         apply_val_pretty_printer.  New arg extlang.
10583         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10584
10585         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10586         extension language API.
10587         * cli/cli-script.c (execute_control_command): Update to call
10588         eval_ext_lang_from_control_command.
10589
10590         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10591         enum ext_lang_bt_status values.  Update call to
10592         apply_ext_lang_frame_filter.
10593         (mi_cmd_stack_list_locals): Ditto.
10594         (mi_cmd_stack_list_args): Ditto.
10595         (mi_cmd_stack_list_variables): Ditto.
10596         * mi/mi-main.c: Delete #include "python/python-internal.h".
10597         Add #include "extension.h".
10598         (mi_cmd_list_features): Replace reference to python internal variable
10599         gdb_python_initialized with call to ext_lang_initialized_p.
10600
10601         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10602         Update to use enum ext_lang_frame_args.  Update to call
10603         apply_ext_lang_frame_filter.
10604         * python/py-framefilter.c (extract_sym): Update to use enum
10605         ext_lang_bt_status.
10606         (extract_value, py_print_type, py_print_value): Ditto.
10607         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10608         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10609         (py_print_frame): Ditto.
10610         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10611         New arg extlang.  Update to use enum ext_lang_bt_status.
10612
10613         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10614         finish_python_initialization.  Replace with call to
10615         finish_ext_lang_initialization.
10616
10617         * typeprint.c (do_free_global_table): Update to call
10618         free_ext_lang_type_printers.
10619         (create_global_typedef_table): Update to call
10620         start_ext_lang_type_printers.
10621         (find_global_typedef): Update to call apply_ext_lang_type_printers.
10622         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10623         (type_print_options): Change type of global_printers from "void *"
10624         to "struct ext_lang_type_printers *".
10625
10626         * value.c (preserve_values): Update to call preserve_ext_lang_values.
10627         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10628         (gdbpy_preserve_values): Renamed from preserve_python_values.
10629         New arg extlang.
10630         (!HAVE_PYTHON, preserve_python_values): Delete.
10631
10632         * utils.c (quit_flag): Delete, moved to extension.c.
10633         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10634         extension.c.
10635
10636         * eval.c: Delete #include "python/python.h".
10637         * main.c: Delete #include "python/python.h".
10638
10639         * defs.h: Update comment.
10640
10641 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
10642
10643         GDB 7.7 released.
10644
10645 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
10646
10647         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10648         defined.
10649
10650 2014-02-05  Yao Qi  <yao@codesourcery.com>
10651
10652         * remote.c (remote_pass_signals): Remove local 'buf' and use
10653         rs->buf.
10654         (remote_program_signals): Likewise.
10655
10656 2014-02-05  Yao Qi  <yao@codesourcery.com>
10657
10658         * ctf.c: Include "inferior.h" and "gdbthread.h".
10659         (CTF_PID): A new macro.
10660         (ctf_open): Call inferior_appeared and add_thread_silent.
10661         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10662         (ctf_thread_alive): New function.
10663         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10664
10665 2014-02-05  Yao Qi  <yao@codesourcery.com>
10666
10667         Revert this patch:
10668
10669         2013-05-24  Yao Qi  <yao@codesourcery.com>
10670
10671         * tracepoint.c (TFILE_PID): Remove.
10672         (tfile_open): Don't add thread and inferior.
10673         (tfile_close): Don't set 'inferior_ptid'.  Don't call
10674         exit_inferior_silent.
10675         (tfile_thread_alive): Remove.
10676         (init_tfile_ops): Don't set field 'to_thread_alive' of
10677         tfile_ops.
10678
10679 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
10680
10681         * remote.c (remote_start_remote): Call remote_check_symbols even
10682         if only symbol-file (not file) has been given.
10683
10684 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10685
10686         * gdbarch.sh (skip_entrypoint): New callback.
10687         * gdbarch.c, gdbarch.h: Regenerate.
10688         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10689         * infrun.c (fill_in_stop_func): Likewise.
10690         * ppc-linux-tdep.c: Include "elf/ppc64.h".
10691         (ppc_elfv2_elf_make_msymbol_special): New function.
10692         (ppc_elfv2_skip_entrypoint): Likewise.
10693         (ppc_linux_init_abi): Install them for ELFv2.
10694
10695 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10696
10697         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10698         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10699         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10700         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
10701         structures returned in GPRs.
10702
10703 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10704
10705         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10706         offset to the stack parameter list for the ELFv2 ABI.
10707
10708 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10709
10710         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10711         set_gdbarch_convert_from_func_ptr_addr and
10712         set_gdbarch_elf_make_msymbol_special for ELFv1.
10713         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10714         function descriptors on ELFv1.
10715         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
10716         set up r12 at function entry.
10717
10718 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10719
10720         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10721         (struct gdbarch_tdep): New member elf_abi.
10722
10723         * rs6000-tdep.c: Include "elf/ppc64.h".
10724         (rs6000_gdbarch_init): Detect ELF ABI version.
10725
10726 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10727
10728         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10729         within a register pair holding a DFP 128-bit value on little-endian.
10730         (ppc64_sysv_abi_return_value_base): Likewise.
10731         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10732         (dfp_pseudo_register_write): Likewise.
10733
10734 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10735
10736         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10737         offset on little-endian when passing _Decimal32.
10738         (ppc64_sysv_abi_return_value_base): Likewise for return values.
10739
10740 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10741
10742         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10743         of the overlapped FP register within the VSX register on little-
10744         endian platforms.
10745         (efpr_pseudo_register_write): Likewise.
10746
10747 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10748
10749         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10750         offset on little-endian when passing small structures.
10751
10752 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10753
10754         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10755         (struct ppc64_sysv_argpos): New data structure.
10756         (ppc64_sysv_abi_push_float): Remove.
10757         (ppc64_sysv_abi_push_val): New function.
10758         (ppc64_sysv_abi_push_integer): Likewise.
10759         (ppc64_sysv_abi_push_freg): Likewise.
10760         (ppc64_sysv_abi_push_vreg): Likewise.
10761         (ppc64_sysv_abi_push_param): Likewise.
10762         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10763         (ppc64_sysv_abi_return_value_base): New function.
10764         (ppc64_sysv_abi_return_value): Refactor to use it.
10765
10766 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
10767
10768         * NEWS: Document new target powerpc64le-*-linux*.
10769
10770 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
10771
10772         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10773         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10774         core dumps.
10775         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10776         register set used in ELF core dumps.  Add floating-point register set.
10777
10778 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
10779
10780         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
10781         dwarf2_to_gdb[] table using symbolic constants.  Adjust
10782         penultimate entry from number representing the PC register
10783         to symbolic constant representing the MDR register.  Add
10784         constant for the PC register to the end of the table.
10785
10786 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
10787
10788         * bsd-kvm.c: Include <sys/param.h>
10789
10790 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
10791
10792         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10793
10794 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
10795
10796         * ada-lang.h (clear_ada_sym_cache): Delete.
10797
10798 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
10799
10800         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10801
10802 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
10803
10804         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10805           the sigreturn register save area only if the syscall is
10806           sigreturn.
10807
10808 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
10809
10810         * valops.c (value_slice): Minor reformatting.
10811
10812 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
10813
10814         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10815
10816 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
10817
10818         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10819         New static globals.
10820         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10821         (ada_ignore_descriptive_types_p): New static global.
10822         (find_parallel_type_by_descriptive_type): Return immediately
10823         if ada_ignore_descriptive_types_p is set.
10824         (_initialize_ada_language): Register new commands "maintenance
10825         set ada", "maintenance show ada", "maintenance set ada
10826         ignore-descriptive-types" and "maintenance show ada
10827         ignore-descriptive-types".
10828         * NEWS: Add entry for new "maint ada set/show
10829         ignore-descriptive-types" commands.
10830
10831 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
10832
10833         * record-btrace.c (record_btrace_close): Call btrace_teardown
10834         for all threads.
10835
10836 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
10837
10838         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10839         "ui-out.h".
10840
10841 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
10842
10843         * ada-typeprint (type_is_full_subrange_of_target_type):
10844         New function.
10845         (print_range): Add parameter bounds_prefered_p.  If not set,
10846         try printing range types using the name of their base type.
10847         (print_range_type): Add parameter bounds_prefered_p.
10848         Use it in call to print_range.
10849         (print_array_type, ada_print_type): Update calls to print_range
10850         and print_range_type.
10851
10852 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
10853
10854         * ada-typeprint.c (print_array_type, print_choices, print_range)
10855         (print_range_bound, print_dynamic_range_bound, print_range_type):
10856         Remove declaration.
10857
10858 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
10859
10860         * ada-typeprint.c (print_range): Add missing empty line
10861         after local declaration.
10862
10863 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
10864
10865         * ada-valprint.c (print_optional_low_bound): Get index_type's
10866         target type for as long as it is a TYPE_CODE_RANGE.
10867
10868 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
10869
10870         * procfs.c (procfs_make_note_section): Remove assertion and
10871         associated comment.
10872
10873 2014-01-24  Yao Qi  <yao@codesourcery.com>
10874
10875         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10876         * corelow.c (get_core_siginfo): Likewise.
10877
10878 2014-01-24  Yao Qi  <yao@codesourcery.com>
10879
10880         * remote.c (remote_write_bytes_aux): Change type of 'len' to
10881         ULONGEST.  Don't check 'len' is negative.
10882         (remote_write_bytes):  Change type of 'len' to ULONGEST.
10883
10884 2014-01-23  Tom Tromey  <tromey@redhat.com>
10885
10886         PR python/16485:
10887         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10888         Handle exception from frame.block.
10889         (FrameVars.fetch_frame_locals): Likewise.
10890
10891 2014-01-23  Tom Tromey  <tromey@redhat.com>
10892
10893         PR python/16487:
10894         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10895         on a NULL pointer.  Move "goto error" to correct place.
10896
10897 2014-01-23  Tom Tromey  <tromey@redhat.com>
10898
10899         PR python/16491:
10900         * python/py-framefilter.c (apply_frame_filter): Call
10901         ensure_python_env after computing gdbarch.
10902
10903 2014-01-23  Yao Qi  <yao@codesourcery.com>
10904
10905         * target.c (raw_memory_xfer_partial): Change argument type
10906         from void * to gdb_byte *.
10907         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10908
10909 2014-01-22  Doug Evans  <dje@google.com>
10910
10911         New gdbserver option --debug-format=timestamp.
10912         * NEWS: Mention it.
10913
10914 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
10915
10916         * syscalls/s390x-linux.xml: New file.
10917         * syscalls/s390-linux.xml: New file.
10918         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10919         (XML_SYSCALL_FILENAME_S390X): Likewise.
10920         (op_svc): New enum value for SVC opcode.
10921         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10922         (s390_linux_get_syscall_number): New function.
10923         (s390_gdbarch_init): Register '*get_syscall_number' and the
10924         syscall xml file name.
10925         * data-directory/Makefile.in (SYSCALLS_FILES): Add
10926         "s390-linux.xml" and "s390x-linux.xml".
10927         * NEWS: Announce new feature.
10928
10929 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
10930
10931         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10932
10933 2014-01-22  Pedro Alves  <palves@redhat.com>
10934
10935         * xtensa-config.c: Include defs.h.
10936
10937 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
10938
10939         * common/common-utils.h: Add "ARI:" comment beside __func__
10940         reference.
10941
10942 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
10943
10944         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10945         documentation a bit.
10946
10947 2014-01-21  Roland McGrath  <mcgrathr@google.com>
10948
10949         * configure.ac: Call AM_PROG_INSTALL_STRIP.
10950         * configure: Regenerate.
10951         * aclocal.m4: Regenerate.
10952         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10953         New substituted variables.
10954         (install-strip): New target.
10955         (INSTALL_SCRIPT): New substituted variable.
10956         (FLAGS_TO_PASS): Add it.
10957         (install-only): Use $(INSTALL_SCRIPT) rather than
10958         $(INSTALL_PROGRAM) for gcore.
10959
10960 2014-01-20  Tom Tromey  <tromey@redhat.com>
10961
10962         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10963         together.
10964
10965 2014-01-20  Tom Tromey  <tromey@redhat.com>
10966
10967         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10968         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10969         (deprecated_cmd_warning, complete_on_cmdlist): Update.
10970         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10971         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10972         (struct cmd_list_element) <flags>: Remove.
10973         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10974         doc_allocated>: New fields.
10975         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10976         bitfields.
10977         * maint.c (maintenance_do_deprecate): Update.
10978         * top.c (execute_command): Update.
10979
10980 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
10981
10982         * xtensa-linux-nat.c: Include asm/ptrace.h.
10983
10984 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
10985
10986         * Makefile.in (SFILES): Add d-support.c.
10987         (COMMON_OBS): Add d-support.o.
10988         * d-lang.h (d_parse_symbol): Add comment, now defined in
10989         d-support.c.
10990         * d-lang.c (parse_call_convention)
10991         (parse_attributes, parse_function_types)
10992         (parse_function_args, parse_type, parse_identifier)
10993         (call_convention_p, d_parse_symbol): Move functions to ...
10994         * d-support.c: ... New file.
10995
10996 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
10997
10998         * d-lang.h (d_parse_symbol): Add declaration.
10999         * d-lang.c (extract_identifiers)
11000         (extract_type_info): Remove functions.
11001         (parse_call_convention, parse_attributes)
11002         (parse_function_types, parse_function_args)
11003         (parse_type, parse_identifier, call_convention_p)
11004         (d_parse_symbol): New functions.
11005         (d_demangle): Use d_parse_symbol to demangle D symbols.
11006
11007 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
11008
11009         * d-lang.h (struct builtin_d_type): New data type.
11010         (builtin_d_type): Add declaration.
11011         * d-lang.c (d_language_arch_info, build_d_types)
11012         (builtin_d_type): New functions.
11013         (enum d_primitive_types): New data type.
11014         (d_language_defn): Change c_language_arch_info to
11015         d_language_arch_info.
11016         (d_type_data): New static variable.
11017         (_initialize_d_language): Initialize d_type_data.
11018
11019 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
11020
11021         * d-lang.h (d_main_name): Add declaration.
11022         * d-lang.c (d_main_name): New function.
11023         * symtab.c (find_main_name): Add call to d_main_name.
11024
11025 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
11026
11027         * d-lang.c (d_language_defn): Change macro_expansion_c to
11028         macro_expansion_no.
11029
11030 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
11031
11032         * MAINTAINERS: Add myself as a write-after-approval maintainer.
11033
11034 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
11035
11036         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11037         gdb_exception" declaration.
11038         * remote.c (getpkt_or_notif_sane): Likewise.
11039
11040 2014-01-17  Doug Evans  <dje@google.com>
11041
11042         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11043         function, contents of dirnames_to_char_ptr_vec_append moved here.
11044         (delim_string_to_char_ptr_vec): New function.
11045         (dirnames_to_char_ptr_vec_append): Rewrite.
11046         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11047
11048 2014-01-17  Doug Evans  <dje@google.com>
11049
11050         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11051         and moved here ...
11052         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11053         #include "common-utils.h".
11054         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11055         * common/vec.h (VEC_ASSERT_PASS): Update.
11056         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11057         (MACH_CHECK_ERROR): Update.
11058
11059 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
11060
11061         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11062         comments.
11063         * gdbarch.h: Regenerate.
11064
11065 2014-01-16  Tom Tromey  <tromey@redhat.com>
11066
11067         * value.c (struct value) <regnum>: Move earlier.
11068
11069 2014-01-16  Tom Tromey  <tromey@redhat.com>
11070
11071         * remote.c (extended_remote_create_inferior): Rename from
11072         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
11073         old implementation.
11074
11075 2014-01-16  Pedro Alves  <palves@redhat.com>
11076
11077         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11078         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11079         the backchain.
11080
11081 2014-01-16  Doug Evans  <dje@google.com>
11082
11083         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11084
11085 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11086
11087         * btrace.h (btrace_thread_flag): New.
11088         (struct btrace_thread_info) <flags>: New.
11089         * record-btrace.c (record_btrace_resume_thread)
11090         (record_btrace_find_thread_to_move, btrace_step_no_history)
11091         (btrace_step_stopped, record_btrace_start_replaying)
11092         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11093         (record_btrace_find_resume_thread): New.
11094         (record_btrace_resume, record_btrace_wait): Extend.
11095         (record_btrace_can_execute_reverse): New.
11096         (record_btrace_open): Fail in non-stop mode.
11097         (record_btrace_set_replay): Split into this, ...
11098         (record_btrace_stop_replaying): ... this, ...
11099         (record_btrace_clear_histories): ... and this.
11100         (init_record_btrace_ops): Init to_can_execute_reverse.
11101         * NEWS: Announce it.
11102
11103 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11104
11105         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11106         (forward_target_decr_pc_after_break)
11107         (target_decr_pc_after_break): New.
11108         * target.c (forward_target_decr_pc_after_break)
11109         (target_decr_pc_after_break): New.
11110         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11111         instead of gdbarch_decr_pc_after_break.
11112         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11113         instead of gdbarch_decr_pc_after_break.
11114         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11115         instead of gdbarch_decr_pc_after_break.
11116         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11117         instead of gdbarch_decr_pc_after_break.
11118         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11119         instead of gdbarch_decr_pc_after_break.
11120         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11121         instead of gdbarch_decr_pc_after_break.
11122
11123 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11124
11125         * btrace.c: Include regcache.h.
11126         (btrace_add_pc): New.
11127         (btrace_enable): Call btrace_add_pc.
11128         (btrace_is_empty): New.
11129         * btrace.h (btrace_is_empty): New.
11130         * record-btrace.c (require_btrace, record_btrace_info): Call
11131         btrace_is_empty.
11132
11133 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11134
11135         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11136         Support delta reads.
11137         (linux_disable_btrace): Change return type.
11138         * common/linux-btrace.h (linux_read_btrace): Change parameters
11139         and return type to allow error reporting.  Update users.
11140         (linux_disable_btrace): Change return type.  Update users.
11141         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11142         New.
11143         (btrace_error): New.
11144         (btrace_block) <begin>: Comment on BEGIN == 0.
11145         * btrace.c (btrace_compute_ftrace): Start from the end of
11146         the current trace.
11147         (btrace_stitch_trace, btrace_clear_history): New.
11148         (btrace_fetch): Read delta trace, return if replaying.
11149         (btrace_clear): Move clear history code to btrace_clear_history.
11150         (parse_xml_btrace): Throw an error if parsing failed.
11151         * target.h (struct target_ops) <to_read_btrace>: Change parameters
11152         and return type to allow error reporting.
11153         (target_read_btrace): Change parameters and return type to allow
11154         error reporting.
11155         * target.c (target_read_btrace): Update.
11156         * remote.c (remote_read_btrace): Support delta reads.  Pass
11157         errors on.
11158         * NEWS: Announce it.
11159
11160 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11161
11162         * record.h (record_btrace_frame_unwind)
11163         (record_btrace_tailcall_frame_unwind): New declarations.
11164         * dwarf2-frame: Include record.h
11165         (dwarf2_frame_cfa): Throw an error for btrace frames.
11166         * record-btrace.c: Include hashtab.h.
11167         (btrace_get_bfun_name): New.
11168         (btrace_call_history): Call btrace_get_bfun_name.
11169         (struct btrace_frame_cache): New.
11170         (bfcache): New.
11171         (bfcache_hash, bfcache_eq, bfcache_new): New.
11172         (btrace_get_frame_function): New.
11173         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11174         (record_btrace_frame_this_id): Compute own id.
11175         (record_btrace_frame_prev_register): Provide PC, throw_error
11176         for all other registers.
11177         (record_btrace_frame_sniffer): Detect btrace frames.
11178         (record_btrace_tailcall_frame_sniffer): New.
11179         (record_btrace_frame_dealloc_cache): New.
11180         (record_btrace_frame_unwind): Add new functions.
11181         (record_btrace_tailcall_frame_unwind): New.
11182         (_initialize_record_btrace): Allocate cache.
11183         * btrace.c (btrace_clear): Call reinit_frame_cache.
11184         * NEWS: Announce it.
11185
11186 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11187
11188         * record-btrace.c (record_btrace_set_replay)
11189         (record_btrace_goto_begin, record_btrace_goto_end)
11190         (record_btrace_goto): New.
11191         (init_record_btrace_ops): Initialize them.
11192         * NEWS: Announce it.
11193
11194 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11195
11196         * record-btrace.c (record_btrace_find_new_threads)
11197         (record_btrace_thread_alive): New.
11198         (init_record_btrace_ops): Initialize to_find_new_threads and
11199         to_thread_alive.
11200
11201 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11202
11203         * record-btrace.c (record_btrace_resume): New.
11204         (record_btrace_wait): New.
11205         (init_record_btrace_ops): Initialize to_wait and to_resume.
11206
11207 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11208
11209         * record-btrace.c (record_btrace_xfer_partial)
11210         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11211         (record_btrace_allow_memory_access): New.
11212         (init_record_btrace_ops): Initialize new methods.
11213         * target.c (raw_memory_xfer_partial): Bail out if target reports
11214         that this memory is not available.
11215
11216 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11217
11218         * target.h (target_ops) <to_insert_breakpoint>
11219         <to_remove_breakpoint>: Add target_ops parameter.
11220         (forward_target_insert_breakpoint): New.
11221         (forward_target_remove_breakpoint): New.
11222         (memory_remove_breakpoint, memory_insert_breakpoint):
11223         Add target_ops parameter.
11224         * target.c (target_insert_breakpoint): Split into this and ...
11225         (forward_target_insert_breakpoint): ... this.
11226         (target_remove_breakpoint): Split into this and ...
11227         (forward_target_remove_breakpoint): ... this.
11228         (debug_to_insert_breakpoint): Add target_ops parameter.
11229         Call forward_target_insert_breakpoint.
11230         (debug_to_remove_breakpoint): Add target_ops parameter.
11231         Call forward_target_remove_breakpoint.
11232         (update_current_target): Do not inherit or default to_insert_breakpoint
11233         and to_remove_breakpoint.
11234         * corelow.c (ignore): Add target_ops parameter.
11235         * exec.c (ignore): Add target_ops parameter.
11236         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11237         Add target_ops parameter.
11238         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11239         Add target_ops parameter.
11240         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11241         Add target_ops parameter.
11242         * record-full.c (record_full_beneath_to_insert_breakpoint)
11243         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11244         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11245         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11246         (record_full_core_remove_breakpoint): Add target_ops parameter.
11247         Update users.
11248         (record_full_beneath_to_insert_breakpoint_ops)
11249         (record_full_beneath_to_remove_breakpoint_ops)
11250         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11251         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11252         tmp_to_remove_breakpoint_ops,
11253         record_full_beneath_to_insert_breakpoint_ops, and
11254         record_full_beneath_to_remove_breakpoint_ops.
11255         * remote-m32r-sdi.c (m32r_insert_breakpoint)
11256         (m32r_remove_breakpoint): Add target_ops parameter.
11257         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11258         Add target_ops parameter.
11259         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11260         Add target_ops parameter.
11261
11262 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11263             Markus Metzger  <markus.t.metzger@intel.com>
11264
11265         * record-btrace.c: Include frame-unwind.h.
11266         (record_btrace_frame_unwind_stop_reason)
11267         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11268         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11269         New.
11270         (init_record_btrace_ops): Install it.
11271
11272 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11273
11274         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11275         get_prev_frame_1.
11276
11277 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11278
11279         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11280         earlier.
11281
11282 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
11283
11284         * frame-unwind.c: Include target.h.
11285         (frame_unwind_try_unwinder): New function with code from ...
11286         (frame_unwind_find_by_frame): ... here.  New variable
11287         unwinder_from_target, call also target_get_unwinder)
11288         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11289         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11290         * target.h (struct target_ops): New fields to_get_unwinder and
11291         to_get_tailcall_unwinder.
11292         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11293
11294 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11295
11296         * record-btrace.c (record_btrace_fetch_registers)
11297         (record_btrace_store_registers)
11298         (record_btrace_to_prepare_to_store): New.
11299         (init_record_btrace_ops): Add the above.
11300
11301 2014-01-16  Tom Tromey  <tromey@redhat.com>
11302
11303         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11304         * target.h (struct target_ops) <to_prepare_to_store>: Add
11305         argument.
11306         (target_prepare_to_store): Add argument.
11307         * target.c (debug_to_prepare_to_store): Add argument.
11308         (update_current_target): Update.
11309         * remote.c (remote_prepare_to_store): Add 'self' argument.
11310         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11311         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11312         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11313         * record-full.c (record_full_core_prepare_to_store): Add 'self'
11314         argument.
11315         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11316         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11317         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11318         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11319         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11320
11321 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11322
11323         * btrace.h (replay) <replay>: New.
11324         (btrace_is_replaying): New.
11325         * btrace.c (btrace_clear): Free replay iterator.
11326         (btrace_is_replaying): New.
11327         * record-btrace.c (record_btrace_is_replaying): New.
11328         (record_btrace_info): Print insn number if replaying.
11329         (record_btrace_insn_history): Start at replay position.
11330         (record_btrace_call_history): Start at replay position.
11331         (init_record_btrace_ops): Init to_record_is_replaying.
11332
11333 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11334
11335         * record-btrace.c (record_btrace_insn_history_range): Include
11336         end.
11337         (record_btrace_insn_history_from): Adjust range.
11338         (record_btrace_call_history_range): Include
11339         end.
11340         (record_btrace_call_history_from): Adjust range.
11341         * NEWS: Announce changes.
11342
11343 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11344
11345         * record.h (enum record_print_flag)
11346         <record_print_indent_calls>: New.
11347         * record.c (get_call_history_modifiers): Recognize /c modifier.
11348         (_initialize_record): Document /c modifier.
11349         * record-btrace.c (btrace_call_history): Add btinfo parameter.
11350         Reorder fields.  Optionally indent the function name.  Update
11351         all users.
11352         * NEWS: Announce changes.
11353
11354 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11355
11356         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11357
11358 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11359
11360         * btrace.c (ftrace_new_function): Start counting at one.
11361         * record-btrace.c (record_btrace_info): Adjust number of calls
11362         and insns.
11363         * NEWS: Announce it.
11364
11365 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11366
11367         * record-btrace.c (btrace_call_history_insn_range): Print
11368         insn range as [begin, end].
11369
11370 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11371
11372         * btrace.h (struct btrace_func_link): New.
11373         (enum btrace_function_flag): New.
11374         (struct btrace_inst): Rename to ...
11375         (struct btrace_insn): ...this. Update all users.
11376         (struct btrace_func) <ibegin, iend>: Remove.
11377         (struct btrace_func_link): New.
11378         (struct btrace_func): Rename to ...
11379         (struct btrace_function): ...this. Update all users.
11380         (struct btrace_function) <segment, flow, up, insn, insn_offset)
11381         (number, level, flags>: New.
11382         (struct btrace_insn_iterator): Rename to ...
11383         (struct btrace_insn_history): ...this.
11384         Update all users.
11385         (struct btrace_insn_iterator, btrace_call_iterator): New.
11386         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11387         (struct btrace_target_info) <begin, end, level>
11388         <insn_history, call_history>: New.
11389         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11390         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11391         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11392         (btrace_call_number, btrace_call_begin, btrace_call_end)
11393         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11394         (btrace_find_function_by_number, btrace_set_insn_history)
11395         (btrace_set_call_history): New.
11396         * btrace.c (btrace_init_insn_iterator)
11397         (btrace_init_func_iterator, compute_itrace): Remove.
11398         (ftrace_print_function_name, ftrace_print_filename)
11399         (ftrace_skip_file): Change
11400         parameter to const.
11401         (ftrace_init_func): Remove.
11402         (ftrace_debug): Use new btrace_function fields.
11403         (ftrace_function_switched): Also consider gaining and
11404         losing symbol information).
11405         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11406         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11407         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11408         New.
11409         (ftrace_new_function): Move. Remove debug print.
11410         (ftrace_update_lines, ftrace_update_insns): New.
11411         (ftrace_update_function): Check for call, ret, and jump.
11412         (compute_ftrace): Renamed to ...
11413         (btrace_compute_ftrace): ...this. Rewritten to compute call
11414         stack.
11415         (btrace_fetch, btrace_clear): Updated.
11416         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11417         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11418         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11419         (btrace_call_number, btrace_call_begin, btrace_call_end)
11420         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11421         (btrace_find_function_by_number, btrace_set_insn_history)
11422         (btrace_set_call_history): New.
11423         * record-btrace.c (require_btrace): Use new btrace thread
11424         info fields.
11425         (record_btrace_info, btrace_insn_history)
11426         (record_btrace_insn_history, record_btrace_insn_history_range):
11427         Use new btrace thread info fields and new iterator.
11428         (btrace_func_history_src_line): Rename to ...
11429         (btrace_call_history_src_line): ...this. Use new btrace
11430         thread info fields.
11431         (btrace_func_history): Rename to ...
11432         (btrace_call_history): ...this. Use new btrace thread info
11433         fields and new iterator.
11434         (record_btrace_call_history, record_btrace_call_history_range):
11435         Use new btrace thread info fields and new iterator.
11436
11437 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11438
11439         * frame.h (frame_id_build_unavailable_stack_special): New.
11440         * frame.c (frame_id_build_unavailable_stack_special): New.
11441
11442 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11443
11444         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11445         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11446         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11447         to gdbarch.
11448         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11449         (i386_insn_is_jump, i386_jmp_p): New.
11450         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11451         insn_is_jump to gdbarch.
11452         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11453         * gdbarch.h: Regenerated.
11454         * gdbarch.c: Regenerated.
11455         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11456         (default_insn_is_jump): New.
11457         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11458         (default_insn_is_jump): New.
11459
11460 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11461
11462         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11463         Change to ...
11464         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
11465         (btrace_read_type) <btrace_read_new>: Change to ...
11466         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
11467
11468 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
11469
11470         * common/linux-btrace.c (linux_read_btrace): Free trace from
11471         previous iteration.
11472
11473 2014-01-15  Doug Evans  <dje@google.com>
11474
11475         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11476         uint32_t.
11477
11478 2014-01-15  Tom Tromey  <tromey@redhat.com>
11479
11480         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11481         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11482         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11483         (set_objfile_main_name): New function.
11484         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11485         language_of_main>: New fields.
11486         (set_objfile_main_name): Declare.
11487         * symtab.c (find_main_name): Loop over objfiles to find the main
11488         name and language.
11489         (set_main_name): Now static.
11490         (get_main_info): Add comment.
11491         * symtab.h (set_main_name): Don't declare.
11492
11493 2014-01-15  Tom Tromey  <tromey@redhat.com>
11494
11495         * symtab.c (main_progspace_key): New global.
11496         (struct main_info): New.
11497         (name_of_main, language_of_main): Remove.
11498         (get_main_info, main_info_cleanup): New function.
11499         (set_main_name, main_name, main_language): Use get_main_info.
11500         (_initialize_symtab): Initialize main_progspace_key.
11501
11502 2014-01-15  Tom Tromey  <tromey@redhat.com>
11503
11504         * dbxread.c (process_one_symbol): Update.
11505         * dwarf2read.c (read_partial_die): Update.
11506         * symfile.c (set_initial_language): Call main_language.
11507         * symtab.c (language_of_main): Now static.
11508         (set_main_name): Add 'lang' parameter.
11509         (find_main_name): Update.
11510         (main_language): New function.
11511         (symtab_observer_executable_changed): Update.
11512         * symtab.h (set_main_name): Update.
11513         (language_of_main): Remove.
11514         (main_language): Declare.
11515
11516 2014-01-15  Tom Tromey  <tromey@redhat.com>
11517
11518         * symfile.c (init_entry_point_info): Use new "initialized" field.
11519         Update.
11520         * objfiles.h (struct entry_point) <initialized>: New field.
11521         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11522         (struct objfile) <ei>: ...here.  Remove.
11523         * objfiles.c (entry_point_address_query): Update.
11524
11525 2014-01-15  Tom Tromey  <tromey@redhat.com>
11526
11527         * objfiles.c (entry_point_address_query): Relocate entry point
11528         address.
11529         (objfile_relocate1): Do not relocate entry point address.
11530         * objfiles.h (struct entry_info) <entry_point>: Update comment.
11531         <the_bfd_section_index>: New field.
11532         * symfile.c (init_entry_point_info): Find the entry point's
11533         section.
11534
11535 2014-01-15  Tom Tromey  <tromey@redhat.com>
11536
11537         * solib-frv.c (enable_break): Use entry_point_address_query.
11538
11539 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
11540
11541         * NEWS: Add note on improved process record-replay on
11542         arm*-linux* targets.
11543
11544 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
11545
11546         * arm-tdep.c (enum arm_record_result): New enum.
11547         (arm_record_unsupported_insn): New function.
11548         (arm_record_coproc_data_proc): Removed.
11549         (thumb2_record_ld_st_multiple): New function.
11550         (thumb2_record_ld_st_dual_ex_tbb): New function.
11551         (thumb2_record_data_proc_sreg_mimm): New function.
11552         (thumb2_record_ps_dest_generic): New function.
11553         (thumb2_record_branch_misc_cntrl): New function.
11554         (thumb2_record_str_single_data): New function.
11555         (thumb2_record_ld_mem_hints): New function.
11556         (thumb2_record_ld_word): New function.
11557         (thumb2_record_lmul_lmla_div): New function.
11558         (thumb2_record_decode_insn_handler): New function.
11559         (decode_insn): Add thumb32 instruction handlers.
11560
11561 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
11562
11563         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11564         (struct arm_linux_record_tdep): Declare.
11565         (arm_canonicalize_syscall): New function.
11566         (arm_all_but_pc_registers_record): New function.
11567         (arm_linux_syscall_record): New function.
11568         (arm_linux_init_abi): Add syscall recording constructs.
11569         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11570         decoding.  (arm_record_coproc_data_proc): Update arm syscall
11571         decoding.
11572         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11573         <arm_syscall_record>: New field.
11574         * configure.tgt (arm*-*-linux*): Add linux-record.o to
11575         gdb_target_obs.
11576
11577 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
11578
11579         * arm-tdep.c (thumb_record_misc): Update to use sp as base
11580         register for push instruction recording.
11581
11582 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
11583
11584         * arm-tdep.c (thumb_record_misc): Update to correct logical
11585         error while recording ldm, ldmia and pop instructions.
11586
11587 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
11588
11589         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11590
11591 2014-01-15  Pedro Alves  <palves@redhat.com>
11592
11593         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11594         (go32_resume, go32_fetch_registers, store_register)
11595         (go32_store_registers, go32_prepare_to_store)
11596         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11597         (go32_create_inferior, go32_can_run, go32_terminal_init)
11598         (go32_terminal_inferior, go32_terminal_ours): Delete forward
11599         declarations.
11600
11601 2014-01-15  Tom Tromey  <tromey@redhat.com>
11602
11603         * target.h (async_callback_ftype): New typedef.
11604         (struct target_ops) <to_async>: Use it.
11605
11606 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
11607
11608         * python/py-value.c (get_field_type): Remove unnecessary curly
11609         braces for single-statement if block.
11610
11611 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
11612
11613         * python/py-type.c (convert_field): Add missing empty line
11614         after declarations.
11615
11616 2014-01-14  Doug Evans  <dje@google.com>
11617
11618         * symfile.h (expand_symtabs_matching): Renamed from
11619         expand_partial_symbol_names.  Update prototype.
11620         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11621         * symfile.c (expand_symtabs_matching): Renamed from
11622         expand_partial_symbol_names.  New args file_matcher, kind.
11623         Rename arg fun to symbol_matcher.
11624         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11625         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11626         ada_expand_partial_symbol_name.
11627         (ada_make_symbol_completion_list): Update to call
11628         expand_symtabs_matching.
11629         (ada_add_global_exceptions): Call expand_symtabs_matching.
11630         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11631         call map_symbol_filenames.
11632         * symtab.c (sources_info): Update to call map_symbol_filenames.
11633         (search_symbols): Call expand_symtabs_matching.
11634         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11635         (default_make_symbol_completion_list_break_on): Update to call
11636         expand_symtabs_matching.
11637         (make_source_files_completion_list): Update to call
11638         map_symbol_filenames.
11639
11640 2014-01-14  Doug Evans  <dje@google.com>
11641
11642         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11643         (expand_symtabs_symbol_matcher_ftype): New typedef.
11644         (quick_symbol_functions.expand_symtabs_matching): Update to use.
11645         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11646         * symfile.c (expand_partial_symbol_names): Update to use
11647         expand_symtabs_symbol_matcher_ftype.
11648         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11649         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11650         Arg name_matcher renamed to symbol_matcher.
11651         * psymtab.c (recursively_search_psymtabs): Update to use
11652         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
11653         sym_matcher.
11654         (expand_symtabs_matching_via_partial): Update to use
11655         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11656         Arg name_matcher renamed to symbol_matcher.
11657
11658 2014-01-14  Doug Evans  <dje@google.com>
11659
11660         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11661         (map_partial_symbol_filenames): Ditto.
11662         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11663         (map_partial_symbol_filenames): Ditto.
11664         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11665         (map_partial_symbol_filenames): Ditto.
11666         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11667         (map_partial_symbol_filenames): Ditto.
11668         * symtab.c: Delete #include "psymtab.h".
11669
11670 2014-01-14  Pedro Alves  <palves@redhat.com>
11671             Tom Tromey  <tromey@redhat.com>
11672
11673         * infrun.c (use_displaced_stepping): Use find_record_target
11674         instead of RECORD_IS_USED.
11675         (adjust_pc_after_break): Use record_full_is_used instead of
11676         RECORD_IS_USED.
11677         * record-btrace.c (record_btrace_open): Call record_preopen
11678         instead of checking RECORD_IS_USED.
11679         * record-full.c (record_full_shortname)
11680         (record_full_core_shortname): New globals.
11681         (record_full_is_used): New function.
11682         (find_full_open): Call record_preopen instead of checking
11683         RECORD_IS_USED.
11684         (init_record_full_ops): Set the target's shortname to
11685         record_full_shortname.
11686         (init_record_full_core_ops): Set the target's shortname to
11687         record_full_core_shortname.
11688         * record-full.h (record_full_is_used): Declare.
11689         * record.c (find_record_target): Make extern.
11690         (record_preopen): New function.
11691         * record.h (RECORD_IS_USED): Delete macro.
11692         (find_record_target, record_preopen): Declare functions.
11693
11694 2014-01-14  Yao Qi  <yao@codesourcery.com>
11695
11696         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11697         'len''s type to ULONGEST.
11698         (core_xfer_shared_libraries_aix): Likewise.
11699         * gdbarch.c, gdbarch.h: Regenerated.
11700         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11701         Change type of 'len' to ULONGEST.
11702         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11703         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11704
11705 2014-01-14  Yao Qi  <yao@codesourcery.com>
11706
11707         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11708         type of 'len' to ULONGEST.
11709         (linux_xfer_osdata_processgroups): Likewise.
11710         (linux_xfer_osdata_threads): Likewise.
11711         (linux_xfer_osdata_fds): Likewise.
11712         (linux_xfer_osdata_isockets): Likewise.
11713         (linux_xfer_osdata_shm): Likewise.
11714         (linux_xfer_osdata_sem): Likewise.
11715         (linux_xfer_osdata_msg): Likewise.
11716         (linux_common_xfer_osdata): Likewise.
11717         (struct osdata_type) <getter>: Likewise.
11718         * common/linux-osdata.h (linux_common_xfer_osdata): Update
11719         the declaration.
11720
11721 2014-01-14  Yao Qi  <yao@codesourcery.com>
11722
11723         * target.h (target_xfer_partial_ftype): Update.
11724         (struct target_ops) <to_xfer_partial>: Change 'len' type to
11725         ULONGEST.
11726         * aix-thread.c (aix_thread_xfer_partial): Change type of
11727         argument 'len' to ULONGEST.
11728         * auxv.c (procfs_xfer_auxv): Likewise.
11729         (ld_so_xfer_auxv): Likewise.
11730         (memory_xfer_auxv): Likewise.
11731         * bfd-target.c (target_bfd_xfer_partial): Likewise.
11732         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11733         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11734         * corelow.c (core_xfer_partial): Likewise.
11735         * ctf.c (ctf_xfer_partial): Likewise.
11736         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
11737         '%u'.
11738         (darwin_read_dyld_info): Likewise.
11739         (darwin_xfer_partial): Likewise.
11740         * exec.c (section_table_xfer_memory_partial): Likewise.
11741         (exec_xfer_partial): Likewise.
11742         * exec.h (section_table_xfer_memory_partial): Update
11743         declaration.
11744         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
11745         instead of plongest.
11746         (gnu_xfer_partial): Likewise.
11747         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11748         (ia64_hpux_xfer_solib_got): Likewise.
11749         (ia64_hpux_xfer_partial): Likewise.
11750         * ia64-linux-nat.c (ia64_linux_xfer_partial):
11751         * inf-ptrace.c (inf_ptrace_xfer_partial):
11752         * inf-ttrace.c (inf_ttrace_xfer_partial):
11753         * linux-nat.c (linux_xfer_siginfo): Likewise.
11754         (linux_nat_xfer_partial): Likewise.
11755         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11756         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11757         * monitor.c (monitor_xfer_memory): Likewise.
11758         (monitor_xfer_partial): Likewise.
11759         * procfs.c (procfs_xfer_partial): Likewise.
11760         * record-full.c (record_full_xfer_partial): Likewise.
11761         (record_full_core_xfer_partial): Likewise.
11762         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
11763         instead of plongest.
11764         (gdbsim_xfer_partial): Likewise.
11765         * remote.c (remote_xfer_partial): Likewise.
11766         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11767         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11768         declaration.
11769         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11770         (rs6000_xfer_shared_libraries): Likewise.
11771         * sol-thread.c (sol_thread_xfer_partial): Likewise.
11772         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11773         (sparc_xfer_partial): Likewise.
11774         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11775         (spu_xfer_partial): Likewise.
11776         * spu-multiarch.c (spu_xfer_partial): Likewise.
11777         * target.c (target_read_live_memory): Likewise.
11778         (memory_xfer_live_readonly_partial): Likewise.
11779         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11780         (target_xfer_partial, default_xfer_partial): Likewise.
11781         (current_xfer_partial): Likewise.
11782         * tracepoint.c (tfile_xfer_partial): Likewise.
11783         * windows-nat.c (windows_xfer_memory): Likewise.  Call
11784         pulongest instead of plongest.
11785         (windows_xfer_partial): Likewise.
11786         (windows_xfer_shared_libraries): Likewise.
11787
11788 2014-01-14  Yao Qi  <yao@codesourcery.com>
11789
11790         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11791         target_xfer_partial_ftype.
11792
11793 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
11794
11795         PR python/15464
11796         PR python/16113
11797         * valops.c (value_struct_elt_bitpos): New function
11798         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11799         object to 'None' if the field name is an empty string ("").
11800         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11801         attribute to look for a field when 'name' is 'None'.
11802         (get_field_type): New function
11803
11804 2014-01-13  Doug Evans  <dje@google.com>
11805
11806         PR symtab/16426
11807         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11808         (try_open_dwop_file): Ditto.
11809         * gdb_bfd.c: #include "vec.h".
11810         (bfdp): New typedef.
11811         (struct gdb_bfd_data): New member included_bfds.
11812         (gdb_bfd_unref): Unref all included bfds.
11813         (gdb_bfd_record_inclusion): New function.
11814         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11815
11816 2014-01-13  Tom Tromey  <tromey@redhat.com>
11817
11818         * gdbcore.h (deprecated_core_resize_section_table): Remove.
11819
11820 2014-01-13  Tom Tromey  <tromey@redhat.com>
11821
11822         * defs.h (use_windows): Remove.
11823         * gdb.c (main): Update.
11824         * main.c (captured_main, gdb_main): Update.
11825         * main.h (struct captured_main_args) <use_windows>: Remove.
11826         * top.c (use_windows): Remove.
11827
11828 2014-01-13  Tom Tromey  <tromey@redhat.com>
11829
11830         * defs.h (deprecated_flush_hook): Remove.
11831
11832 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
11833
11834         PR threads/16216
11835         * linux-thread-db.c (try_thread_db_load): Add parameter
11836         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
11837         (try_thread_db_load_from_pdir_1): Move it there from here.
11838         (try_thread_db_load_from_sdir): Update caller.
11839         (try_thread_db_load_from_dir): Move it there from here.
11840
11841 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
11842
11843         * regformats/regdat.sh: Always rewrite the register file.
11844
11845 2014-01-13  Pedro Alves  <palves@redhat.com>
11846
11847         * Makefile.in (CHECK_HEADERS): New variable.
11848         (check-headers:): New rule.
11849
11850 2014-01-13  Tom Tromey  <tromey@redhat.com>
11851
11852         * cli/cli-setshow.c (do_set_command): Update.
11853         * defs.h (deprecated_set_hook): Remove.
11854         * top.c (deprecated_set_hook): Remove.
11855
11856 2014-01-13  Pedro Alves  <palves@redhat.com>
11857
11858         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11859         the tracepoint if the PC is a pseudo-register.
11860
11861 2014-01-13  Tom Tromey  <tromey@redhat.com>
11862
11863         * defs.h (XCALLOC): Remove.
11864         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11865         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11866         * dwarf2loc.c (allocate_piece_closure): Likewise.
11867         * elfread.c (elf_symfile_segments): Likewise.
11868         (elf_symfile_segments): Likewise.
11869         * gdbtypes.c (copy_type_recursive): Likewise.
11870         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11871         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11872         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11873         XCALLOC.
11874         * mt-tdep.c (mt_gdbarch_init): Likewise.
11875         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11876         XCALLOC.
11877         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11878         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11879         * registry.c (registry_alloc_data): Likewise.
11880         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11881         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11882         * serial.c (serial_fdopen_ops): Likewise.
11883         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11884         XCALLOC.
11885         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11886         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11887         not XCALLOC.
11888
11889 2014-01-13  Tom Tromey  <tromey@redhat.com>
11890
11891         * defs.h (XMALLOC): Remove.
11892         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11893         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11894         * cli-out.c (struct ui_out *): Likewise.
11895         * cli/cli-dump.c (add_dump_command): Likewise.
11896         (add_dump_command): Likewise.
11897         * complaints.c (get_complaints): Likewise.
11898         (find_complaint): Likewise.
11899         * dwarf2-frame.c (execute_cfa_program): Likewise.
11900         * dwarf2read.c (abbrev_table_read_table): Likewise.
11901         * gdbarch.sh: Likewise.
11902         * gdbarch.c: Rebuild.
11903         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11904         * interps.c (interp_new): Likewise.
11905         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11906         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11907         * mi/mi-console.c (mi_console_file_new): Likewise.
11908         * mi/mi-interp.c (mi_interpreter_init): Likewise.
11909         * mi/mi-out.c (mi_out_new): Likewise.
11910         * mi/mi-parse.c (mi_parse): Likewise.
11911         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11912         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11913         * observer.c (xalloc_observer_list_node): Likewise.
11914         * regcache.c (regcache_xmalloc_1): Likewise.
11915         * reggroups.c (reggroup_new): Likewise.
11916         (_initialize_reggroup): Likewise.
11917         * registry.c (register_data_with_cleanup): Likewise.
11918         * remote.c (remote_notif_stop_alloc_reply): Likewise.
11919         * ser-base.c (serial_ttystate): Likewise.
11920         * ser-mingw.c (make_pipe_state): Likewise.
11921         * ser-pipe.c (pipe_open): Likewise.
11922         * serial.c (serial_open): Likewise.
11923         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11924         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11925         (tui_alloc_win_info): Likewise.
11926         (tui_add_content_elements): Likewise.
11927         * tui/tui-file.c (tui_file_new): Likewise.
11928         * tui/tui-out.c (tui_out_new): Likewise.
11929         * ui-file.c (mem_file_new): Likewise.
11930         * ui-out.c (push_level): Likewise.
11931         (make_cleanup_ui_out_end): Likewise.
11932         (append_header_to_list): Likewise.
11933         (ui_out_new): Likewise.
11934         * user-regs.c (user_reg_add_builtin): Likewise.
11935
11936 2014-01-13  Tom Tromey  <tromey@redhat.com>
11937
11938         * defs.h (XZALLOC): Remove.
11939         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11940         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11941         (get_ada_tasks_inferior_data): Likewise.
11942         * auto-load.c (get_auto_load_pspace_data): Likewise.
11943         * auxv.c (get_auxv_inferior_data): Likewise.
11944         * bfd-target.c (target_bfd_reopen): Likewise.
11945         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11946         (deprecated_insert_raw_breakpoint): Likewise.
11947         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11948         * corelow.c (core_open): Likewise.
11949         * darwin-nat.c (darwin_check_new_threads): Likewise.
11950         (darwin_attach_pid): Likewise.
11951         * dummy-frame.c (dummy_frame_push): Likewise.
11952         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11953         * dwarf2loc.c (allocate_piece_closure): Likewise.
11954         * elfread.c (elf_symfile_segments): Likewise.
11955         * eval.c (ptrmath_type_p): Likewise.
11956         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11957         * gdbtypes.c (alloc_type_arch): Likewise.
11958         (alloc_type_instance): Likewise.
11959         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11960         * inf-child.c (inf_child_can_use_agent): Likewise.
11961         * inflow.c (get_inflow_inferior_data): Likewise.
11962         * infrun.c (save_infcall_suspend_state): Likewise.
11963         * jit.c (jit_reader_load): Likewise.
11964         (get_jit_objfile_data): Likewise.
11965         (get_jit_program_space_data): Likewise.
11966         (jit_object_open_impl): Likewise.
11967         (jit_symtab_open_impl): Likewise.
11968         (jit_block_open_impl): Likewise.
11969         (jit_frame_sniffer): Likewise.
11970         * linux-fork.c (add_fork): Likewise.
11971         * maint.c (make_command_stats_cleanup): Likewise.
11972         * objfiles.c (get_objfile_pspace_data): Likewise.
11973         * opencl-lang.c (struct lval_closure): Likewise.
11974         * osdata.c (osdata_start_osdata): Likewise.
11975         * progspace.c (new_address_space): Likewise.
11976         (add_program_space): Likewise.
11977         * remote-sim.c (get_sim_inferior_data): Likewise.
11978         * sh-tdep.c (sh_gdbarch_init): Likewise.
11979         * skip.c (Ignore): Likewise.
11980         (skip_delete_command): Likewise.
11981         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
11982         (library_list_start_library): Likewise.
11983         (solib_aix_current_sos): Likewise.
11984         * solib-darwin.c (get_darwin_info): Likewise.
11985         (darwin_current_sos): Likewise.
11986         * solib-dsbt.c (get_dsbt_info): Likewise.
11987         * solib-ia64-hpux.c (new_so_list): Likewise.
11988         (ia64_hpux_get_solib_linkage_addr): Likewise.
11989         * solib-spu.c (append_ocl_sos): Likewise.
11990         (spu_current_sos): Likewise.
11991         * solib-svr4.c (get_svr4_info): Likewise.
11992         (svr4_keep_data_in_core): Likewise.
11993         (library_list_start_library): Likewise.
11994         (svr4_default_sos): Likewise.
11995         (svr4_read_so_list): Likewise.
11996         * solib-target.c (library_list_start_library): Likewise.
11997         (solib_target_current_sos): Likewise.
11998         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
11999         * symfile-debug.c (install_symfile_debug_logging): Likewise.
12000         * symfile.c (default_symfile_segments): Likewise.
12001         * target-descriptions.c (tdesc_data_init): Likewise.
12002         (tdesc_create_reg): Likewise.
12003         (struct tdesc_type *): Likewise.
12004         (tdesc_create_vector): Likewise.
12005         (tdesc_set_struct_size): Likewise.
12006         (struct tdesc_type *): Likewise.
12007         (tdesc_free_feature): Likewise.
12008         (tdesc_create_feature): Likewise.
12009         * windows-nat.c (windows_add_thread): Likewise.
12010         (windows_make_so): Likewise.
12011         * xml-support.c (gdb_xml_body_text): Likewise.
12012         (gdb_xml_create_parser_and_cleanup): Likewise.
12013         (xml_process_xincludes): Likewise.
12014         * xml-syscall.c (allocate_syscalls_info): Likewise.
12015         (syscall_create_syscall_desc): Likewise.
12016
12017 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
12018
12019         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12020         function, with code from i386_stap_parse_special_token.
12021         (i386_stap_parse_special_token_three_arg_disp): Likewise.
12022         (i386_stap_parse_special_token): Move code to the two functions
12023         above; simplify it.
12024
12025 2014-01-09  Pedro Alves  <palves@redhat.com>
12026             Hui Zhu  <hui@codesourcery.com>
12027
12028         PR gdb/16101
12029         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12030         bp_err_string.  Don't mark the location shlib_disabled if the
12031         error thrown wasn't a generic or memory error.  Catch errors
12032         thrown while inserting breakpoints in overlayed code.  Output
12033         error message of software breakpoints.
12034         * remote.c (remote_insert_breakpoint): If this breakpoint has
12035         target-side commands but this stub doesn't support Z0 packets,
12036         throw NOT_SUPPORTED_ERROR error.
12037         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12038         * target.h (target_insert_breakpoint): Extend comment.
12039         (target_insert_hw_breakpoint): Add comment.
12040
12041 2014-01-08  Pedro Alves  <palves@redhat.com>
12042
12043         * remote.c (remote_add_thread): Add threads silently if starting
12044         up.
12045         (remote_notice_new_inferior): If in all-stop, and starting up,
12046         don't call notice_new_inferior.
12047         (get_current_thread): New function, factored out from ...
12048         (add_current_inferior_and_thread): ... this.  Adjust.
12049         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
12050         found any thread, then select the remote's current thread as GDB's
12051         current thread too.
12052
12053 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
12054
12055         * NEWS: Create a new section for the next release branch.
12056         Rename the section of the current branch, now that it has
12057         been cut.
12058
12059 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
12060
12061         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12062         * version.in: Bump version to 7.7.50.DATE-cvs.
12063
12064 2014-01-08  Yao Qi  <yao@codesourcery.com>
12065
12066         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12067         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
12068         (spu_xfer_partial): Cast 'buf' to 'const char *'.
12069
12070 2014-01-08  Yao Qi  <yao@codesourcery.com>
12071
12072         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12073         return value of bfd_get_filename to symbol_file_add_from_bfd.
12074
12075 2014-01-08  Pierre Muller  <muller@sourceware.org>
12076
12077         Fix PR16201.
12078         * coff-pe-read.c (struct read_pe_section_data): Add index field.
12079         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12080         to prim_record_mininal_symbol_and_info.
12081         (add_pe_forwarded_sym): Use known section number of forwarded symbol
12082         in call to prim_record_minimal_symbol_and_info.
12083         (read_pe_exported_syms): Set index field of section_data.
12084
12085 2014-01-07  Andrew Pinski  <apinski@cavium.com>
12086
12087         * features/aarch64-core.xml (cpsr): Change to be 64bit.
12088         * features/aarch64.c: Regenerate.
12089
12090 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
12091
12092         * target.c (return_null): Define.
12093         (update_current_target): Use it instead of return_zero for
12094         functions that return a pointer.
12095
12096 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
12097
12098         * source.c (add_path): Fix check for duplicated paths in the previously
12099         included paths.
12100
12101 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
12102
12103         * ada-lang.c: Remove duplicated include statements.
12104         * alphabsd-nat.c: Ditto.
12105         * amd64-darwin-tdep.c: Ditto.
12106         * amd64fbsd-nat.c: Ditto.
12107         * auto-load.c: Ditto.
12108         * ax-gdb.c: Ditto.
12109         * breakpoint.c: Ditto.
12110         * dbxread.c: Ditto.
12111         * fork-child.c: Ditto.
12112         * gdb_usleep.c: Ditto.
12113         * i386-darwin-tdep.c: Ditto.
12114         * i386fbsd-nat.c: Ditto.
12115         * infcmd.c: Ditto.
12116         * inferior.c: Ditto.
12117         * jv-lang.c: Ditto.
12118         * linux-nat.c: Ditto.
12119         * linux-tdep.c: Ditto.
12120         * m68kbsd-nat.c: Ditto.
12121         * m68klinux-nat.c: Ditto.
12122         * microblaze-tdep.c: Ditto.
12123         * mips-linux-tdep.c: Ditto.
12124         * mn10300-tdep.c: Ditto.
12125         * nto-tdep.c: Ditto.
12126         * opencl-lang.c: Ditto.
12127         * osdata.c: Ditto.
12128         * printcmd.c: Ditto.
12129         * regcache.c: Ditto.
12130         * remote-m32r-sdi.c: Ditto.
12131         * remote.c: Ditto.
12132         * symfile.c: Ditto.
12133         * symtab.c: Ditto.
12134         * tilegx-linux-nat.c: Ditto.
12135         * tilegx-tdep.c: Ditto.
12136         * tracepoint.c: Ditto.
12137         * valops.c: Ditto.
12138         * vaxbsd-nat.c: Ditto.
12139         * windows-nat.c: Ditto.
12140         * xtensa-tdep.c: Ditto.
12141
12142 2014-01-07  Yao Qi  <yao@codesourcery.com>
12143
12144         * spu-linux-nat.c (_initialize_spu_nat): Declare.
12145
12146 2014-01-07  Yao Qi  <yao@codesourcery.com>
12147             Joel Brobecker  <brobecker@adacore.com>
12148
12149         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12150         (pdc_write_regs): Likewise.
12151         (fetch_regs_kernel_thread): Likewise.
12152         (store_regs_kernel_thread): Likewise.
12153
12154 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12155
12156         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12157         tagged type objects to their actual type.
12158
12159 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12160
12161         * ada-valprint.c (print_field_values): Add "language" parameter.
12162         Update calls to print_field_values and print_variant_part.
12163         Pass new parameter "language" in call to val_print instead
12164         of "current_language".  Replace call to ada_val_print by call
12165         to val_print.
12166         (print_variant_part): Add "language" parameter.
12167         (ada_val_print_struct_union): Update call to print_field_values.
12168
12169 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12170
12171         * ada-valprint.c (ui_memcpy): Delete.
12172         (ada_print_floating): Update documentation.  Add empty line
12173         between between function documentation and implementation.
12174         Delete variable "buffer".  Use ui_file_xstrdup in place of
12175         ui_file_put.  Minor adjustments following this change.
12176
12177 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12178
12179         * ada-valprint.c (ada_val_print_string): New function,
12180         extracted from ada_val_print_array.
12181         (ada_val_print_array): Replace extracted code by call
12182         to ada_val_print_string followed by a return.  Move
12183         "else" branch to the function's top block.
12184
12185 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12186
12187         * ada-valprint.c (ada_val_print_array): Move implementation
12188         down.  Rename parameter "offset" and "val" into "offset_aligned"
12189         and "original_value" respectively.  Add parameter "offset".
12190
12191 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12192
12193         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12194         re-organizing the code. Change the "???" message printed
12195         when target type is a TYPE_CODE_UNDEF into
12196         "<ref to undefined type>".
12197
12198 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12199
12200         * ada-valprint.c (print_record): Delete, implementation inlined...
12201         (ada_val_print_struct_union): ... here.  Remove call to
12202         ada_check_typedef in inlined implementation.
12203
12204 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12205
12206         * ada-valprint.c (ada_val_print_gnat_array): New function,
12207         extracted from ada_val_print_1;
12208         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12209         (ada_val_print_flt, ada_val_print_struct_union)
12210         (ada_val_print_ref): Likewise.
12211         (ada_val_print_1): Delete variables i and elttype.
12212         Replace extracted-out code by call to corresponding
12213         new functions.
12214
12215 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12216
12217         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12218
12219 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12220
12221         * ada-valprint.c (ada_val_print_1): Replace calls to
12222         ada_val_print_1 by calls to val_print.
12223
12224 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12225
12226         * ada-valprint.c (ada_val_print_1): Add parameter "language".
12227         Update calls to self accordingly.  Replace calls to c_val_print
12228         by calls to val_print.
12229
12230 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12231
12232         * ada-valprint.c (print_record): Delete declaration.
12233         (adjust_type_signedness, ada_val_print_1): Likewise.
12234         (ada_val_print): Move function implementation down.
12235         (print_variant_part, print_field_values, print_record):
12236         Move function implementation up.
12237
12238 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
12239
12240         * python/py-type.c (typy_get_name): New function.
12241         (type_object_getset): Add entry for attribute "name".
12242         * NEWS: Add entry mentioning this new attribute.
12243
12244 2014-01-07  Yao Qi  <yao@codesourcery.com>
12245
12246         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12247         statement.
12248
12249 2014-01-07  Yao Qi  <yao@codesourcery.com>
12250
12251         * gnu-nat.c (info_port_rights): Add qualifier const to
12252         argument args.
12253
12254 2014-01-07  Yao Qi  <yao@codesourcery.com>
12255
12256         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12257
12258 2014-01-07  Yao Qi  <yao@codesourcery.com>
12259
12260         * gnu-nat.c (make_inf) Update declaration.
12261         (make_inf): Make it static.
12262         (inf_set_traced): Likewise.
12263         (inf_port_to_thread, inf_task_died_status): Likewise.
12264
12265 2014-01-07  Yao Qi  <yao@codesourcery.com>
12266
12267         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12268
12269 2014-01-07  Yao Qi  <yao@codesourcery.com>
12270
12271         * gnu-nat.c (_initialize_gnu_nat): Declare.
12272
12273 2014-01-07  Yao Qi  <yao@codesourcery.com>
12274
12275         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12276         'enum bfd_endian'.
12277         (struct gdbarch_info) <byte_order>: Change type to
12278         'enum bfd_endian'.
12279         <byte_order_for_code>: Likewise.
12280         * gdbarch.c, gdbarch.h: Regenerated.
12281
12282 2014-01-06  Sasha Smundak  <asmundak@google.com>
12283
12284         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12285
12286 2014-01-06  Tom Tromey  <tromey@redhat.com>
12287
12288         * doublest.c (convert_doublest_to_floatformat): Use const, not
12289         CONST.
12290         * somread.c (som_symtab_read): Likewise.
12291
12292 2014-01-07  Hui Zhu  <hui@codesourcery.com>
12293
12294         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12295         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12296         (gdb_bfd_fopen): Ditto.
12297         (gdb_bfd_openr): Ditto.
12298         (gdb_bfd_openw): Ditto.
12299         (gdb_bfd_openr_iovec): Ditto.
12300         (gdb_bfd_fdopenr): Ditto.
12301         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12302         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12303         with xstrdup.
12304         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12305         with xstrdup.
12306         * symfile-mem.c (symbol_file_add_from_memory): Removed
12307         gdb_bfd_stash_filename.
12308
12309 2014-01-03  Doug Evans  <dje@google.com>
12310
12311         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12312         output.
12313
12314 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
12315
12316         Update year range in copyright notice of all files.
12317
12318 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
12319
12320         * top.c (print_gdb_version): Set copyright year to 2014.
12321
12322 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
12323
12324         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12325
12326 For older changes see ChangeLog-2013.
12327 \f
12328 Local Variables:
12329 mode: change-log
12330 left-margin: 8
12331 fill-column: 74
12332 version-control: never
12333 coding: utf-8
12334 End: