079be7772d76a19133bdffe41be9878b78a37438
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-12-13 Joel Brobecker <brobecker@adacore.com>
2
3 * ada-lang.h (ada_ensure_varsize_limit): Declare.
4 * ada-lang.c (check_size): Remove advance declaration.
5 (ada_ensure_varsize_limit): Renames check_size.
6 Replace calls to check_size by calls to ada_ensure_varsize_limit
7 throughout.
8 * ada-valprint.c (ada_val_print_ref): Add call to
9 ada_ensure_varsize_limit. Add comment explaining why.
10
11 2014-12-13 Joel Brobecker <brobecker@adacore.com>
12
13 * utils.c (make_hex_string): Replace use of sprintf by use of
14 xsnprintf.
15
16 2014-12-13 Joel Brobecker <brobecker@adacore.com>
17
18 * compile/compile-object-load.c (link_callbacks_multiple_definition)
19 (link_callbacks_warning, link_callbacks_einfo): Remove trailing
20 newline at end of warning message.
21
22 2014-12-13 Joel Brobecker <brobecker@adacore.com>
23
24 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Add support for
25 new "EXTRA-ARGS" parameter.
26 * configure.ac: If large-file support is disabled in GDB,
27 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
28 * configure: Regenerate.
29
30 2014-12-13 Jan Kratochvil <jan.kratochvil@redhat.com>
31
32 PR symtab/17642
33 * gdbtypes.c (resolve_dynamic_type_internal): Apply check_typedef to
34 TYPE if not TYPE_CODE_TYPEDEF.
35
36 2014-12-13 Joel Brobecker <brobecker@adacore.com>
37
38 PR backtrace/16215:
39 * dwarf2-frame.c (dwarf2_frame_cfa): Remove the restriction
40 the frame unwinder must either be the dwarf2_frame_unwind
41 or the dwarf2_tailcall_frame_unwind. Verify that this_frame's
42 stack_addr is valid before calling get_frame_base. Throw
43 an error if not valid.
44
45 2014-12-12 Doug Evans <xdje42@gmail.com>
46
47 * valops.c (value_maybe_namespace_elt): Remove unnecessary test of
48 result != NULL.
49
50 2014-12-12 Doug Evans <xdje42@gmail.com>
51
52 * cp-support.h (cp_is_in_anonymous): Renamed from cp_is_anonymous.
53 All callers updated. Rename arg "namespace" to "symbol_name".
54
55 2014-12-12 Doug Evans <xdje42@gmail.com>
56
57 * psymtab.c (psym_map_symtabs_matching_filename): Renamed from
58 partial_map_symtabs_matching_filename. All uses updated.
59 (psym_find_pc_sect_compunit_symtab): Renamed from
60 find_pc_sect_compunit_symtab_from_partial. All uses updated.
61 Add function comment.
62 (psym_lookup_symbol): Renamed from lookup_symbol_aux_psymtabs.
63 All uses updated. Add function comment.
64 (psym_relocate): Renamed from relocate_psymtabs. All uses updated.
65 Add function comment.
66 (psym_find_last_source_symtab): Renamed from
67 find_last_source_symtab_from_partial. All uses updated.
68 Add function comment.
69 (psym_forget_cached_source_info): Renamed from
70 forget_cached_source_info_partial. All uses updated.
71 Add function comment.
72 (psym_print_stats): Renamed from print_psymtab_stats_for_objfile.
73 All uses updated. Add function comment.
74 (psym_dump): Renamed from dump_psymtabs_for_objfile. All uses
75 updated. Add function comment.
76 (psym_expand_symtabs_for_function): Renamed from
77 read_symtabs_for_function. All uses updated. Update function comment.
78 (psym_expand_all_symtabs): Renamed from expand_partial_symbol_tables.
79 All uses updated. Add function comment.
80 (psym_expand_symtabs_with_fullname): Renamed from
81 read_psymtabs_with_fullname. All uses updated. Add function comment.
82 (psym_map_symbol_filenames): Renamed from map_symbol_filenames_psymtab.
83 All uses updated. Add function comment.
84 (psym_map_matching_symbols): Renamed from map_matching_symbols_psymtab.
85 All uses updated.
86 (psym_expand_symtabs_matching): Renamed from
87 expand_symtabs_matching_via_partial. All uses updated.
88 Add function comment.
89 (psym_has_symbols): Renamed from objfile_has_psyms. All uses updated.
90 Add function comment.
91
92 2014-12-12 Phil Muldoon <pmuldoon@redhat.com>
93 Jan Kratochvil <jan.kratochvil@redhat.com>
94 Tom Tromey <tromey@redhat.com>
95
96 * NEWS: Update.
97 * symtab.h (struct symbol_computed_ops) <generate_c_location>: New
98 field.
99 * p-lang.c (pascal_language_defn): Update.
100 * opencl-lang.c (opencl_language_defn): Update.
101 * objc-lang.c (objc_language_defn): Update.
102 * m2-lang.c (m2_language_defn): Update.
103 * language.h (struct language_defn) <la_get_compile_instance,
104 la_compute_program>: New fields.
105 * language.c (unknown_language_defn, auto_language_defn)
106 (local_language_defn): Update.
107 * jv-lang.c (java_language_defn): Update.
108 * go-lang.c (go_language_defn): Update.
109 * f-lang.c (f_language_defn): Update.
110 * dwarf2loc.h (dwarf2_compile_property_to_c): Declare.
111 * dwarf2loc.c (dwarf2_compile_property_to_c)
112 (locexpr_generate_c_location, loclist_generate_c_location): New
113 functions.
114 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
115 * defs.h (enum compile_i_scope_types): New.
116 (enum command_control_type) <compile_control>: New constant.
117 (struct command_line) <control_u>: New field.
118 * d-lang.c (d_language_defn): Update.
119 * compile/compile.c: New file.
120 * compile/compile-c-support.c: New file.
121 * compile/compile-c-symbols.c: New file.
122 * compile/compile-c-types.c: New file.
123 * compile/compile.h: New file.
124 * compile/compile-internal.h: New file.
125 * compile/compile-loc2c.c: New file.
126 * compile/compile-object-load.c: New file.
127 * compile/compile-object-load.h: New file.
128 * compile/compile-object-run.c: New file.
129 * compile/compile-object-run.h: New file.
130 * cli/cli-script.c (multi_line_command_p, print_command_lines)
131 (execute_control_command, process_next_line)
132 (recurse_read_control_structure): Handle compile_control.
133 * c-lang.h (c_get_compile_context, c_compute_program): Declare.
134 * c-lang.c (c_language_defn, cplus_language_defn)
135 (asm_language_defn, minimal_language_defn): Update.
136 * ada-lang.c (ada_language_defn): Update.
137 * Makefile.in (SUBDIR_GCC_COMPILE_OBS, SUBDIR_GCC_COMPILE_SRCS):
138 New variables.
139 (SFILES): Add SUBDIR_GCC_COMPILE_SRCS.
140 (HFILES_NO_SRCDIR): Add compile.h.
141 (COMMON_OBS): Add SUBDIR_GCC_COMPILE_OBS.
142 (INIT_FILES): Add SUBDIR_GCC_COMPILE_SRCS.
143 (compile.o, compile-c-types.o, compile-c-symbols.o)
144 (compile-object-load.o, compile-object-run.o, compile-loc2c.o)
145 (compile-c-support.o): New targets.
146
147 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
148
149 * s390-linux-tdep.c (s390_gcc_target_options): New function.
150 (s390_gdbarch_init): Add it to gdbarch.
151
152 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
153
154 * linux-tdep.c: Include objfiles.h and infcall.h.
155 (GDB_MMAP_MAP_PRIVATE, GDB_MMAP_MAP_ANONYMOUS, linux_infcall_mmap): New
156 function.
157 (linux_init_abi): Add linux_infcall_mmap to gdbarch.
158
159 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
160
161 * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare.
162 * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from
163 translate_register. Now public.
164 (dwarf2_compile_expr_to_ax): Update.
165
166 2014-12-12 Tom Tromey <tromey@redhat.com>
167 Jan Kratochvil <jan.kratochvil@redhat.com>
168
169 * dwarf2loc.c (dwarf_expr_frame_base_1): Remove declaration.
170 (dwarf_expr_frame_base): Update caller.
171 (dwarf_expr_frame_base_1): Rename to ...
172 (func_get_frame_base_dwarf_block): ... this and make it public.
173 (dwarf2_compile_expr_to_ax, locexpr_describe_location_piece): Update
174 callers.
175 * dwarf2loc.h (func_get_frame_base_dwarf_block): New declaration.
176
177 2014-12-12 Tom Tromey <tromey@redhat.com>
178
179 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_call_frame_cfa>:
180 Update.
181 * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on
182 dwarf2_compile_cfa_to_ax.
183 (dwarf2_compile_cfa_to_ax): Remove.
184 * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare.
185 (dwarf2_compile_cfa_to_ax): Remove.
186
187 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
188
189 * infcall.h (call_function_by_hand_dummy): Declare.
190 * infcall.c (call_function_by_hand): Use
191 call_function_by_hand_dummy.
192 (call_function_by_hand_dummy): Rename from call_function_by_hand.
193 Add arguments. Register a destructor.
194
195 2014-12-12 Tom Tromey <tromey@redhat.com>
196 Jan Kratochvil <jan.kratochvil@redhat.com>
197
198 * osabi.h (osabi_triplet_regexp): Declare.
199 * osabi.c (struct osabi_names): New.
200 (gdb_osabi_names): Change type to struct osabi_names. Update
201 values.
202 (gdbarch_osabi_name): Update.
203 (osabi_triplet_regexp): New function.
204 (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
205 * i386-tdep.c (i386_gnu_triplet_regexp): New method.
206 (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
207 set_gdbarch_gnu_triplet_regexp.
208 * gdbarch.sh (gnu_triplet_regexp): New method.
209 * gdbarch.c, gdbarch.h: Rebuild.
210 * arch-utils.h (default_gnu_triplet_regexp): Declare.
211 * arch-utils.c (default_gnu_triplet_regexp): New function.
212
213 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
214
215 * arch-utils.c (default_infcall_mmap)
216 (default_gcc_target_options): New functions.
217 * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
218 (GDB_MMAP_PROT_EXEC): Define.
219 (default_infcall_mmap, default_gcc_target_options): Declare.
220 * gdbarch.h: Rebuild.
221 * gdbarch.c: Rebuild.
222 * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
223
224 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
225
226 * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
227 fields.
228 (pop_dummy_frame): Call the destructor if it exists.
229 (register_dummy_frame_dtor, find_dummy_frame_dtor): New
230 functions.
231 * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
232 (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
233
234 2014-12-12 Tom Tromey <tromey@redhat.com>
235
236 * gdbtypes.h (make_unqualified_type): Declare.
237 * gdbtypes.c (make_unqualified_type): New function.
238
239 2014-12-12 Tom Tromey <tromey@redhat.com>
240
241 * ui-file.h (ui_file_write_for_put): Declare.
242 * ui-file.c (ui_file_write_for_put): New function.
243 * mi/mi-out.c (do_write): Remove.
244 (mi_out_put): Use ui_file_write_for_put.
245
246 2014-12-12 Doug Evans <dje@google.com>
247
248 * NEWS: Mention gdb.lookup_objfile.
249 * python/python.c (GdbMethods): Add lookup_objfile.
250 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
251 * python/py-objfile.c: #include "symtab.h".
252 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
253 (objfpy_lookup_objfile_by_name): New function.
254 (objfpy_lookup_objfile_by_build_id): New function.
255 (gdbpy_lookup_objfile): New function.
256
257 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
258
259 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
260 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
261 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
262 macros.
263 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
264 Likewise.
265
266 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
267
268 * completer.c: Include "target.h", "reggroups.h", and
269 "user-regs.h".
270 (reg_or_group_completer): New.
271 * completer.h (reg_or_group_completer): Declare.
272 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
273 the "info registers" and "info all-registers" commands and the
274 dbx-mode "lr" command.
275
276 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
277
278 * user-regs.c: Include "arch-utils.h", "command.h", and
279 "cli/cli-cmds.h".
280 (maintenance_print_user_registers): New.
281 (_initialize_user_regs): Register new "maint print user-registers"
282 subcommand.
283 * NEWS: Mention new GDB command "maint print user-registers".
284
285 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
286 Maciej W. Rozycki <macro@mips.com>
287 Pedro Alves <pedro@codesourcery.com>
288
289 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
290 remove `predefault' and `invalid_p' initializers.
291 (make_symbol_special): New architecture method.
292 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
293 (objfile, symbol): New declarations.
294 * arch-utils.h (default_elf_make_msymbol_special): Remove
295 prototype.
296 (default_make_symbol_special): New prototype.
297 (default_adjust_dwarf2_addr): Likewise.
298 (default_adjust_dwarf2_line): Likewise.
299 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
300 * arch-utils.c (default_elf_make_msymbol_special): Remove
301 function.
302 (default_make_symbol_special): New function.
303 (default_adjust_dwarf2_addr): Likewise.
304 (default_adjust_dwarf2_line): Likewise.
305 * dwarf2-frame.c (decode_frame_entry_1): Call
306 `gdbarch_adjust_dwarf2_addr'.
307 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
308 * dwarf2read.c (create_addrmap_from_index): Likewise.
309 (process_psymtab_comp_unit_reader): Likewise.
310 (add_partial_symbol): Likewise.
311 (add_partial_subprogram): Likewise.
312 (process_full_comp_unit): Likewise.
313 (read_file_scope): Likewise.
314 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
315 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
316 (read_call_site_scope): Likewise.
317 (dwarf2_ranges_read): Likewise.
318 (dwarf2_record_block_ranges): Likewise.
319 (read_attribute_value): Likewise.
320 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
321 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
322 * elfread.c (elf_symtab_read): Don't call
323 `gdbarch_elf_make_msymbol_special' if unset.
324 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
325 the ISA bit from the PC.
326 * mips-tdep.c (mips_unmake_compact_addr): New function.
327 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
328 address appropriately.
329 (mips_make_symbol_special): New function.
330 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
331 (mips_pc_is_mips16): Likewise.
332 (mips_pc_is_micromips): Likewise.
333 (mips_pc_isa): Likewise.
334 (mips_adjust_dwarf2_addr): New function.
335 (mips_adjust_dwarf2_line): Likewise.
336 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
337 (mips_addr_bits_remove): Likewise.
338 (mips_skip_trampoline_code): Likewise.
339 (mips_write_pc): Don't set the ISA bit.
340 (mips_eabi_push_dummy_call): Likewise.
341 (mips_o64_push_dummy_call): Likewise.
342 (mips_gdbarch_init): Install `mips_make_symbol_special',
343 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
344 handlers.
345 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
346 target-specific symbol address adjustments.
347 * gdbarch.h: Regenerate.
348 * gdbarch.c: Regenerate.
349
350 2014-12-12 Yao Qi <yao@codesourcery.com>
351
352 PR tdep/14261
353 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
354 'skip_pc'. Remove code skipping prologue instructions, use
355 arm_analyze_prologue instead.
356 (arm_analyze_prologue): Stop the scanning for unrecognized
357 instruction when skipping prologue.
358
359 2014-12-12 Yao Qi <yao@codesourcery.com>
360
361 * arm-tdep.c (arm_instruction_restores_sp): New function.
362 (arm_analyze_prologue): Call arm_instruction_restores_sp.
363 (arm_in_function_epilogue_p): Move code to
364 arm_instruction_restores_sp.
365
366 2014-12-11 Doug Evans <xdje42@gmail.com>
367
368 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
369
370 2014-12-11 Doug Evans <xdje42@gmail.com>
371
372 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
373 (symbol *lookup_symbol_via_quick_fns): Ditto.
374 (lookup_symbol_in_objfile): Add forward decl.
375 (lookup_global_symbol_from_objfile): Simplify, call
376 lookup_symbol_in_objfile.
377
378 2014-12-11 Doug Evans <xdje42@gmail.com>
379
380 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
381
382 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
383
384 PR breakpoints/17012
385 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
386 it is marked as persistent.
387
388 2014-12-10 Doug Evans <xdje42@gmail.com>
389
390 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
391 closer to its subroutines.
392
393 2014-12-10 Doug Evans <xdje42@gmail.com>
394
395 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
396
397 2014-12-10 Doug Evans <xdje42@gmail.com>
398
399 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
400 * cp-support.c (cp_lookup_symbol_imports): Delete.
401
402 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
403
404 PR gdb/17627
405 * target.c (cleanup_restore_target_terminal): New function.
406 (make_cleanup_restore_target_terminal): New function.
407 * target.h (make_cleanup_restore_target_terminal): New declaration.
408 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
409
410 2014-12-08 Doug Evans <dje@google.com>
411
412 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
413
414 2014-12-08 Doug Evans <dje@google.com>
415
416 * NEWS: Mention gdb.Objfile.owner.
417 * python/py-objfile.c (objfpy_get_owner): New function.
418 (objfile_getset): Add "owner".
419
420 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
421
422 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
423 (lookup_global_symbol_from_objfile): Call it.
424
425 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
426
427 Remove const from struct objfile *.
428 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
429 symtab.c, symtab.h: In these files.
430
431 2014-12-05 Andreas From <andreas.from@ericsson.com>
432
433 * MAINTAINERS (Write After Approval): Add "Andreas From"
434
435 2014-12-05 Doug Evans <xdje42@gmail.com>
436
437 Revert:
438 PR symtab/17602
439 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
440
441 2014-12-04 Doug Evans <dje@google.com>
442
443 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
444 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
445 (objfile_getset): Add "add_separate_debug_file".
446
447 2014-12-04 Doug Evans <dje@google.com>
448
449 * NEWS: Mention gdb.Objfile.build_id.
450 * build-id.c (build_id_bfd_get): Make non-static.
451 * build-id.h (build_id_bfd_get): Add declaration.
452 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
453 (OBJFPY_REQUIRE_VALID): New macro.
454 (objfpy_get_build_id): New function.
455 (objfile_getset): Add "build_id".
456 * utils.c (make_hex_string): New function.
457 * utils.h (make_hex_string): Add declaration.
458
459 2014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
460
461 * block.c (block_lookup_symbol_primary): New function.
462 * block.h (block_lookup_symbol_primary): New declaration.
463 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
464 Call block_lookup_symbol_primary.
465
466 2014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
467
468 * tramp-frame.h (tramp_frame): Add `validate' member.
469 * tramp-frame.c (tramp_frame_start): Validate trampoline before
470 scanning.
471 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
472 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
473 (mips_linux_o32_sigframe): Initialize `validate' member.
474 (mips_linux_o32_rt_sigframe): Likewise.
475 (mips_linux_n32_rt_sigframe): Likewise.
476 (mips_linux_n64_rt_sigframe): Likewise.
477 (micromips_linux_o32_sigframe): New variable.
478 (micromips_linux_o32_rt_sigframe): Likewise.
479 (micromips_linux_n32_rt_sigframe): Likewise.
480 (micromips_linux_n64_rt_sigframe): Likewise.
481 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
482 (mips_linux_n32n64_sigframe_init): Likewise.
483 (mips_linux_sigframe_validate): New function.
484 (micromips_linux_sigframe_validate): Likewise.
485 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
486
487 2014-12-03 Ulrich Weigand  <uweigand@de.ibm.com>
488
489 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
490 * sparc-sol2-tdep.c: Include "regset.h".
491 (sparc32_sol2_supply_core_gregset): New function.
492 (sparc32_sol2_collect_core_gregset): Likewise.
493 (sparc32_sol2_supply_core_fpregset): Likewise.
494 (sparc32_sol2_collect_core_fpregset): Likewise.
495 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
496 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
497 tdep->fpregset/sizeof_fpregset.
498 * sparc64-sol2-tdep.c: Include "regset.h".
499 (sparc64_sol2_supply_core_gregset): New function.
500 (sparc64_sol2_collect_core_gregset): Likewise.
501 (sparc64_sol2_supply_core_fpregset): Likewise.
502 (sparc64_sol2_collect_core_fpregset): Likewise.
503 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
504 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
505 tdep->fpregset/sizeof_fpregset.
506
507 2014-12-03 Simon Marchi <simon.marchi@ericsson.com>
508
509 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
510 type.
511
512 2014-12-02 Doug Evans <dje@google.com>
513
514 * symtab.c (symbol_init_cplus_specific): Delete.
515 (symbol_set_demangled_name): Remove special c++ support.
516 (symbol_get_demangled_name, symbol_set_language): Ditto.
517 * symtab.h (struct cplus_specific): Delete.
518 (struct general_symbol_info) <language_specific>: Remove
519 cplus_specific.
520
521 2014-12-02 Doug Evans <dje@google.com>
522
523 PR symtab/17602
524 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
525
526 2014-12-02 Doug Evans <dje@google.com>
527
528 PR symtab/17591
529 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
530 to strip parameters.
531
532 2014-12-02 Doug Evans <dje@google.com>
533
534 * dwarf2read.c (peek_die_abbrev): Improve error message text.
535
536 2014-12-02 Doug Evans <dje@google.com>
537
538 * valops.c (do_search_struct_field): Remove remnant of Chill support.
539 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
540
541 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
542
543 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
544
545 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
546
547 * NEWS: Mention new Python events.
548 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
549 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
550 (py-infevents.o): New rule.
551 * doc/observer.texi (inferior_call_pre, inferior_call_post)
552 (memory_changed, register_changed): New observers.
553 * infcall.c (call_function_by_hand): Notify observer before and
554 after inferior call.
555 * python/py-event.h (inferior_call_kind): New enum.
556 (emit_inferior_call_event): New prototype.
557 (emit_register_changed_event): New prototype.
558 (emit_memory_changed_event): New prototype.
559 * python/py-events.h (events_object): New registries
560 inferior_call, memory_changed and register_changed.
561 * python/py-evts.c (gdbpy_initialize_py_events): Add the
562 inferior_call, memory_changed and register_changed registries.
563 * python/py-infevents.c: New.
564 * python/py-inferior.c (python_on_inferior_call_pre)
565 (python_on_inferior_call_post, python_on_register_change)
566 (python_on_memory_change): New functions.
567 (gdbpy_initialize_inferior): Attach python handler to new
568 observers.
569 * python/py-infthread.c(gdbpy_create_ptid_object): New.
570 (thpy_get_ptid) Use gdbpy_create_ptid_object.
571 * python/python-internal.h:
572 (gdbpy_create_ptid_object)
573 (gdbpy_initialize_inferior_call_pre_event)
574 (gdbpy_initialize_inferior_call_post_event)
575 (gdbpy_initialize_register_changed_event)
576 (gdbpy_initialize_memory_changed_event): New prototypes.
577 * python/python.c (_initialize_python): Initialize new events.
578 * valops.c (value_assign): Notify register_changed observer.
579
580 2014-12-02 Doug Evans <dje@google.com>
581
582 * python/py-infthread.c: Whitespace fixes.
583
584 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
585
586 * features/Makefile (s390-te-linux64-expedite): Replace
587 non-existant r14 and r15 by r14l and r15l, respectively.
588 * regformats/s390-te-linux64.dat: Regenerate.
589
590 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
591
592 * objfiles.c (allocate_objfile): Remove duplicate comment.
593
594 2014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
595
596 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
597 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
598 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
599 (supply_gregset, supply_fpregset): Remove.
600 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
601 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
602 and sizeof_gregset.
603
604 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
605
606 Add add-auto-load-scripts-directory.
607 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
608 * auto-load.c (add_auto_load_dir): New function.
609 (_initialize_auto_load): Install it.
610
611 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
612
613 Pushed by Joel Brobecker <brobecker@adacore.com>.
614 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
615
616 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
617
618 * eval.c (evaluate_subexp): Check that the thread stack temporaries
619 are not already enabled before enabling them.
620
621 2014-11-29 Yao Qi <yao@codesourcery.com>
622
623 * arm-tdep.c (arm_analyze_prologue): Move local variables
624 'framereg' and 'framesize' to inner block. Move code to
625 inner block too.
626
627 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
628
629 * eval.c: Include gdbthread.h.
630 (evaluate_subexp): Enable thread stack temporaries before
631 evaluating a complete expression and clean them up after the
632 evaluation is complete.
633 * gdbthread.h: Include common/vec.h.
634 (value_ptr): New typedef.
635 (VEC (value_ptr)): New vector type.
636 (value_vec): New typedef.
637 (struct thread_info): Add new fields stack_temporaries_enabled
638 and stack_temporaries.
639 (enable_thread_stack_temporaries)
640 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
641 (get_last_thread_stack_temporary)
642 (value_in_thread_stack_temporaries): Declare.
643 * gdbtypes.c (class_or_union_p): New function.
644 * gdbtypes.h (class_or_union_p): Declare.
645 * infcall.c (call_function_by_hand): Store return values of class
646 type as temporaries on stack.
647 * thread.c (enable_thread_stack_temporaries): New function.
648 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
649 (get_last_thread_stack_temporary): Likewise.
650 (value_in_thread_stack_temporaries): Likewise.
651 * value.c (value_force_lval): New function.
652 * value.h (value_force_lval): Declare.
653
654 2014-11-28 Pierre Muller <muller@sourceware.org>
655
656 Pushed by Joel Brobecker <brobecker@adacore.com>.
657 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
658 registers.
659
660 2014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
661
662 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
663 * config/sparc/linux.mh (NATDEPFILES): Likewise.
664 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
665 * m68klinux-nat.c (fetch_core_registers): Remove.
666 (linux_elf_core_fns): Remove.
667 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
668
669 2014-11-28 Joel Brobecker <brobecker@adacore.com>
670
671 * utils.c (gdb_realpath): Rework comment about handling on
672 Windows.
673
674 2014-11-28 Yao Qi <yao@codesourcery.com>
675
676 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
677 rename.
678 * gnulib/aclocal.m4: Re-generated.
679 * gnulib/config.in: Re-generated.
680 * gnulib/configure: Re-generated.
681 * gnulib/import/Makefile.am: Re-generated.
682 * gnulib/import/Makefile.in: Re-generated.
683 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
684 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
685 * import/basename-lgpl.c: New file.
686 * import/dirname-lgpl.c: New file.
687 * import/dirname.h: New file.
688 * import/m4/dirname.m4: New file.
689 * import/m4/malloc.m4: New file.
690 * import/m4/rename.m4: New file.
691 * import/m4/rmdir.m4: New file.
692 * import/m4/stdio_h.m4: New file.
693 * import/malloc.c: New file.
694 * import/rename.c: New file.
695 * import/rmdir.c: New file.
696 * import/same-inode.h: New file.
697 * import/stdio.c: New file.
698 * import/stdio.in.h: New file.
699 * import/stripslash.c: New file.
700
701 2014-11-28 Yao Qi <yao@codesourcery.com>
702
703 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
704 and realpath.
705 * config.in: Re-generated.
706 * configure: Re-generated.
707 * utils.c (gdb_realpath): Remove code calling realpath,
708 canonicalize_file_name and pathconf.
709 [!_WIN32]: Call canonicalize_file_name.
710
711 2014-11-28 Yao Qi <yao@codesourcery.com>
712
713 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
714 canonicalize-lgpl.
715 * aclocal.m4: Re-generated.
716 * config.in: Re-generated.
717 * configure: Re-generated.
718 * import/Makefile.am: Re-generated.
719 * import/Makefile.in: Re-generated.
720 * import/m4/gnulib-cache.m4: Re-generated.
721 * import/m4/gnulib-comp.m4: Re-generated.
722 * import/canonicalize-lgpl.c: New file.
723 * import/extra/snippet/_Noreturn.h: New file.
724 * import/m4/canonicalize.m4: New file.
725 * import/m4/double-slash-root.m4: New file.
726 * import/m4/eealloc.m4: New file.
727 * import/m4/malloca.m4: New file.
728 * import/m4/nocrash.m4: New file.
729 * import/m4/stdlib_h.m4: New file.
730 * import/malloca.c: New file.
731 * import/malloca.h: New file.
732 * import/malloca.valgrind: New file.
733
734 2014-11-28 Yao Qi <yao@codesourcery.com>
735
736 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
737 * config.in, configure: Regenerate.
738 * symfile.c (find_separate_debug_file_by_debuglink): Remove
739 code checking HAVE_LSTAT is defined.
740
741 2014-11-28 Yao Qi <yao@codesourcery.com>
742
743 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
744 lstat.
745 * gnulib/aclocal.m4: Re-generated.
746 * gnulib/config.in: Re-generated.
747 * gnulib/configure: Re-generated.
748 * gnulib/import/Makefile.am: Re-generated.
749 * gnulib/import/Makefile.in: Re-generated.
750 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
751 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
752 * gnulib/import/lstat.c: New file.
753 * gnulib/import/m4/lstat.m4: New file.
754
755 2014-11-28 Yao Qi <yao@codesourcery.com>
756
757 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
758 * config.in, configure: Re-generate.
759 * inf-child.c (inf_child_fileio_readlink): Don't check
760 HAVE_READLINK is defined.
761
762 2014-11-28 Yao Qi <yao@codesourcery.com>
763
764 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
765 * gnulib/aclocal.m4: Re-generated.
766 * gnulib/config.in: Likewise.
767 * gnulib/configure: Likewise.
768 * gnulib/import/Makefile.am: Likewise.
769 * gnulib/import/Makefile.in: Likewise.
770 * gnulib/import/m4/gnulib-cache.m4: Likewise.
771 * gnulib/import/m4/gnulib-comp.m4: Likewise.
772 * gnulib/import/dosname.h: New file
773 * gnulib/import/m4/largefile.m4: New file.
774 * gnulib/import/m4/readlink.m4: New file.
775 * gnulib/import/m4/stat.m4: New file.
776 * gnulib/import/readlink.c: New file.
777 * gnulib/import/stat.c: New file.
778
779 2014-11-26 Mark Wielaard <mjw@redhat.com>
780
781 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
782 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
783
784 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
785
786 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
787 that there can be only one stack adjustment in the prologue
788 with tests to detect specific disallowed stack adjustments.
789
790 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
791
792 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
793 adjustments.
794
795 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
796
797 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
798 the instruction as well as reading it from memory.
799 (nios2_match_add): New.
800 (nios2_match_sub): New.
801 (nios2_match_addi): New.
802 (nios2_match_orhi): New.
803 (nios2_match_stw): New.
804 (nios2_match_ldw): New.
805 (nios2_match_rdctl): New.
806 (enum branch_condition): New.
807 (nios2_match_branch): New.
808 (nios2_match_jmpi): New.
809 (nios2_match_calli): New.
810 (nios2_match_jmpr): New.
811 (nios2_match_callr): New.
812 (nios2_match_break): New.
813 (nios2_match_trap): New.
814 (nios2_in_epilogue_p): Rewrite to use new functions.
815 (nios2_analyze_prologue): Likewise.
816 (nios2_skip_prologue): Delete unused local limit_pc.
817 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
818 (nios2_get_next_pc): Rewrite to use new functions.
819
820 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
821
822 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
823
824 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
825
826 Pushed by Joel Brobecker <brobecker@adacore.com>
827 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
828 elements pi_len by the size of the elements before calling
829 vm_deallocate.
830 (inf_validate_task_sc): Likewise, and properly deallocate the
831 noise array.
832
833 2014-11-23 Doug Evans <xdje42@gmail.com>
834
835 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
836 number and name if present. All callers updated.
837 (dump_fn_fieldlists): Fix indentation of args.
838
839 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
840
841 * MAINTAINERS (Write After Approval): Add myself.
842
843 2014-11-23 Joel Brobecker <brobecker@adacore.com>
844
845 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
846 to a bp_call_dummy breakpoint type.
847
848 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
849
850 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
851 registering the signal handler.
852
853 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
854
855 * event-top.h (call_stdin_event_handler_again_p): Declare.
856 * event-top.c (call_stdin_event_handler_again_p): Define.
857 (stdin_event_handler): Use it.
858 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
859 handler again if there is pending input following a
860 start sequence.
861
862 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
863
864 Pushed by Joel Brobecker <brobecker@adacore.com>
865 * linux-fork.c (checkpoint_command): Print index of new
866 checkpoint in response message.
867
868 2014-11-23 Yao Qi <yao@codesourcery.com>
869
870 * valprint.c (read_string): Move local variables 'found_nul',
871 'chunksize' and 'limit' to inner scope. Update comments.
872
873 2014-11-22 Doug Evans <xdje42@gmail.com>
874
875 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
876 function comment.
877 (search_symbols): Fix comments and whitespace.
878
879 2014-11-22 Doug Evans <xdje42@gmail.com>
880
881 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
882
883 2014-11-21 Doug Evans <dje@google.com>
884
885 * psymtab.c (psymtab_search_name): Fix whitespace.
886
887 2014-11-21 Yao Qi <yao@codesourcery.com>
888
889 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
890 errno.
891 * gnulib/import/Makefile.am: Re-generated.
892 * gnulib/import/Makefile.in: Likewise.
893 * gnulib/import/m4/gnulib-cache.m4: Likewise.
894
895 2014-11-21 Yao Qi <yao@codesourcery.com>
896
897 * gdb_wchar.h: Include wchar.h and wctype.h.
898 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
899 include wchar.h and wctype.h.
900 Don't check HAVE_WCHAR_H.
901
902 2014-11-21 Yao Qi <yao@codesourcery.com>
903
904 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
905 and wctype-h.
906 * gnulib/import/Makefile.am: Re-generated.
907 * gnulib/import/Makefile.in: Likewise.
908 * gnulib/import/m4/gnulib-cache.m4: Likewise.
909
910 2014-11-21 Yao Qi <yao@codesourcery.com>
911
912 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
913 memchr.
914 * gnulib/import/Makefile.am: Re-generated.
915 * gnulib/import/Makefile.in: Likewise.
916 * gnulib/import/m4/gnulib-cache.m4: Likewise.
917
918 2014-11-21 Yao Qi <yao@codesourcery.com>
919
920 * common/common-defs.h: Include alloca.h
921 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
922 * configure: Re-generated.
923 * defs.h: Remove code handling alloca.
924 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
925 or not.
926
927 2014-11-21 Yao Qi <yao@codesourcery.com>
928
929 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
930 alloca.
931 * gnulib/import/Makefile.am: Re-generated.
932 * gnulib/import/Makefile.in: Likewise..
933 * gnulib/import/m4/gnulib-cache.m4: Likewise.
934
935 2014-11-21 Yao Qi <yao@codesourcery.com>
936
937 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
938 alphabetical order.
939
940 2014-11-21 Joel Brobecker <brobecker@adacore.com>
941
942 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
943 flag_unsigned if HIGH_BOUND is constant and negative.
944
945 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
946
947 PR breakpoints/10737
948 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
949 modifier from "struct gdbarch" when compiling without Expat (XML)
950 support.
951 (get_syscall_by_number): Likewise.
952 (get_syscall_by_name): Likewise.
953 (get_syscall_names): Likewise.
954
955 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
956
957 PR breakpoints/10737
958 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
959 set_xml_syscall_file_name to provide gdbarch.
960 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
961 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
962 * breakpoint.c (print_it_catch_syscall): Adjust call to
963 get_syscall_by_number to provide gdbarch.
964 (print_one_catch_syscall): Likewise.
965 (print_mention_catch_syscall): Likewise.
966 (print_recreate_catch_syscall): Likewise.
967 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
968 and get_syscall_by_name to provide gdbarch.
969 (catch_syscall_completer): Adjust call to get_syscall_names to
970 provide gdbarch.
971 * gdbarch.c: Regenerate.
972 * gdbarch.h: Likewise.
973 * gdbarch.sh: Forward declare "struct syscalls_info".
974 (xml_syscall_file): New variable.
975 (syscalls_info): Likewise.
976 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
977 set_xml_syscall_file_name to provide gdbarch.
978 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
979 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
980 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
981 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
982 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
983 * xml-syscall.c: Include gdbarch.h.
984 (set_xml_syscall_file_name): Accept gdbarch parameter.
985 (get_syscall_by_number): Likewise.
986 (get_syscall_by_name): Likewise.
987 (get_syscall_names): Likewise.
988 (my_gdb_datadir): Delete global variable.
989 (struct syscalls_info) <my_gdb_datadir>: New variable.
990 (struct syscalls_info) <sysinfo>: Rename variable to
991 "syscalls_info".
992 (sysinfo): Delete global variable.
993 (have_initialized_sysinfo): Likewise.
994 (xml_syscall_file): Likewise.
995 (sysinfo_free_syscalls_desc): Rename to...
996 (syscalls_info_free_syscalls_desc): ... this.
997 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
998 code to the new layout of "struct syscalls_info".
999 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
1000 "syscalls_info".
1001 (syscall_create_syscall_desc): Likewise.
1002 (syscall_start_syscall): Likewise.
1003 (syscall_parse_xml): Likewise.
1004 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
1005 (init_sysinfo): Rename to...
1006 (init_syscalls_info): ...this. Add gdbarch as a parameter.
1007 Adjust function to deal with gdbarch.
1008 (xml_get_syscall_number): Delete parameter sysinfo. Accept
1009 gdbarch as a parameter. Adjust code.
1010 (xml_get_syscall_name): Likewise.
1011 (xml_list_of_syscalls): Likewise.
1012 (set_xml_syscall_file_name): Accept gdbarch as parameter.
1013 (get_syscall_by_number): Likewise.
1014 (get_syscall_by_name): Likewise.
1015 (get_syscall_names): Likewise.
1016 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
1017 (get_syscall_by_number): Likewise.
1018 (get_syscall_by_name): Likewise.
1019 (get_syscall_names): Likewise.
1020
1021 2014-11-20 Doug Evans <xdje42@gmail.com>
1022
1023 Split struct symtab into two: struct symtab and compunit_symtab.
1024 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
1025 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
1026 to "struct compunit_symtab *". All callers updated.
1027 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
1028 "struct symtab *" argument to "struct compunit_symtab *".
1029 All callers updated.
1030 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
1031 result to "struct compunit_symtab *". All callers updated.
1032 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
1033 Change result to "struct compunit_symtab *". All callers updated.
1034 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
1035 hange type to "struct compunit_symtab *". All uses updated.
1036 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
1037 Change type to "struct compunit_symtab *". All uses updated.
1038 * buildsym.c (struct buildsym_compunit): New struct.
1039 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
1040 (buildsym_compunit): New static global.
1041 (finish_block_internal): Update to fetch objfile from
1042 buildsym_compunit.
1043 (make_blockvector): Delete objfile argument.
1044 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
1045 debugformat, producer.
1046 (start_buildsym_compunit): New function.
1047 (free_buildsym_compunit): Renamed from free_subfiles_list.
1048 All callers updated.
1049 (patch_subfile_names): Rewrite to use buildsym_compunit.
1050 (get_compunit_symtab): New function.
1051 (get_macro_table): Delete argument comp_dir. All callers updated.
1052 (start_symtab): Change result to "struct compunit_symtab *".
1053 All callers updated. Create the subfile of the main source file.
1054 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
1055 (reset_symtab_globals): Update.
1056 (end_symtab_get_static_block): Update to use buildsym_compunit.
1057 (end_symtab_without_blockvector): Rewrite.
1058 (end_symtab_with_blockvector): Change result to
1059 "struct compunit_symtab *". All callers updated.
1060 Update to use buildsym_compunit. Don't set symtab->dirname,
1061 instead set it in the compunit.
1062 Explicitly make sure main symtab is first in its list.
1063 Set debugformat, producer, blockvector, block_line_section, and
1064 macrotable in the compunit.
1065 (end_symtab_from_static_block): Change result to
1066 "struct compunit_symtab *". All callers updated.
1067 (end_symtab, end_expandable_symtab): Ditto.
1068 (set_missing_symtab): Change symtab argument to
1069 "struct compunit_symtab *". All callers updated.
1070 (augment_type_symtab): Ditto.
1071 (record_debugformat): Update to use buildsym_compunit.
1072 (record_producer): Update to use buildsym_compunit.
1073 * buildsym.h (struct subfile) <dirname>: Delete.
1074 <producer, debugformat>: Delete.
1075 <buildsym_compunit>: New member.
1076 (get_compunit_symtab): Declare.
1077 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
1078 from primary_symtab. Change type to "struct compunit_symtab *".
1079 All uses updated.
1080 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
1081 All callers updated.
1082 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
1083 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
1084 symtab. Change type to "struct compunit_symtab *". All uses updated.
1085 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
1086 All callers updated.
1087 (dw2_find_last_source_symtab): Ditto.
1088 (dw2_lookup_symbol): Ditto.
1089 (recursively_find_pc_sect_compunit_symtab): Renamed from
1090 recursively_find_pc_sect_symtab. Change result to
1091 "struct compunit_symtab *". All callers updated.
1092 (dw2_find_pc_sect_compunit_symtab): Renamed from
1093 dw2_find_pc_sect_symtab. Change result to
1094 "struct compunit_symtab *". All callers updated.
1095 (get_compunit_symtab): Renamed from get_symtab. Change result to
1096 "struct compunit_symtab *". All callers updated.
1097 (recursively_compute_inclusions): Change type of immediate_parent
1098 argument to "struct compunit_symtab *". All callers updated.
1099 (compute_compunit_symtab_includes): Renamed from
1100 compute_symtab_includes. All callers updated. Rewrite to compute
1101 includes of compunit_symtabs and not symtabs.
1102 (process_full_comp_unit): Update to work with struct compunit_symtab.
1103 (process_full_type_unit): Ditto.
1104 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
1105 (dwarf_decode_lines): Remove special case handling of main subfile.
1106 (macro_start_file): Delete argument comp_dir. All callers updated.
1107 (dwarf_decode_macro_bytes): Ditto.
1108 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
1109 use struct compunit_symtab.
1110 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
1111 * jit.c (finalize_symtab): Build compunit_symtab.
1112 * jv-lang.c (get_java_class_symtab): Change result to
1113 "struct compunit_symtab *". All callers updated.
1114 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
1115 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
1116 comp_dir. Change type to "struct compunit_symtab *".
1117 All uses updated.
1118 (new_macro_table): Change comp_dir argument to cust,
1119 "struct compunit_symtab *". All callers updated.
1120 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
1121 nr_primary_symtabs. All uses updated.
1122 (count_symtabs_and_blocks): Update to handle compunits.
1123 (report_command_stats): Update output, "primary symtabs" renamed to
1124 "compunits".
1125 * mdebugread.c (new_symtab): Change result to
1126 "struct compunit_symtab *". All callers updated.
1127 (parse_procedure): Change type of search_symtab argument to
1128 "struct compunit_symtab *". All callers updated.
1129 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
1130 separate loop.
1131 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
1132 symtabs. Change type to "struct compunit_symtab *". All uses updated.
1133 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
1134 All uses updated.
1135 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
1136 All uses updated.
1137 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
1138 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
1139 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
1140 symtab. Change type to "struct compunit_symtab *". All uses updated.
1141 * psymtab.c (psymtab_to_symtab): Change result type to
1142 "struct compunit_symtab *". All callers updated.
1143 (find_pc_sect_compunit_symtab_from_partial): Renamed from
1144 find_pc_sect_symtab_from_partial. Change result type to
1145 "struct compunit_symtab *". All callers updated.
1146 (lookup_symbol_aux_psymtabs): Change result type to
1147 "struct compunit_symtab *". All callers updated.
1148 (find_last_source_symtab_from_partial): Ditto.
1149 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
1150 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
1151 and macro_table from compunit.
1152 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
1153 type to "struct compunit_symtab *". All callers updated.
1154 (debug_qf_lookup_symbol): Ditto.
1155 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
1156 debug_qf_find_pc_sect_symtab, change result type to
1157 "struct compunit_symtab *". All callers updated.
1158 * symfile.c (allocate_symtab): Delete objfile argument.
1159 New argument cust.
1160 (allocate_compunit_symtab): New function.
1161 (add_compunit_symtab_to_objfile): New function.
1162 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1163 Change result type to "struct compunit_symtab *". All uses updated.
1164 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
1165 Change result type to "struct compunit_symtab *". All uses updated.
1166 * symmisc.c (print_objfile_statistics): Compute blockvector count in
1167 separate loop.
1168 (dump_symtab_1): Update test for primary source symtab.
1169 (maintenance_info_symtabs): Update to handle compunit symtabs.
1170 (maintenance_check_symtabs): Ditto.
1171 * symtab.c (set_primary_symtab): Delete.
1172 (compunit_primary_filetab): New function.
1173 (compunit_language): New function.
1174 (iterate_over_some_symtabs): Change type of arguments "first",
1175 "after_last" to "struct compunit_symtab *". All callers updated.
1176 Update to loop over symtabs in each compunit.
1177 (error_in_psymtab_expansion): Rename symtab argument to cust,
1178 and change type to "struct compunit_symtab *". All callers updated.
1179 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
1180 Change result type to "struct compunit_symtab *". All callers updated.
1181 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
1182 Change result type to "struct compunit_symtab *". All callers updated.
1183 (find_pc_sect_line): Only loop over symtabs within selected compunit
1184 instead of all symtabs in the objfile.
1185 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
1186 <compunit_symtab> New member.
1187 <block_line_section>: Moved to compunit_symtab.
1188 <locations_valid>: Ditto.
1189 <epilogue_unwind_valid>: Ditto.
1190 <macro_table>: Ditto.
1191 <dirname>: Ditto.
1192 <debugformat>: Ditto.
1193 <producer>: Ditto.
1194 <objfile>: Ditto.
1195 <call_site_htab>: Ditto.
1196 <includes>: Ditto.
1197 <user>: Ditto.
1198 <primary>: Delete
1199 (SYMTAB_COMPUNIT): New macro.
1200 (SYMTAB_BLOCKVECTOR): Update definition.
1201 (SYMTAB_OBJFILE): Update definition.
1202 (SYMTAB_DIRNAME): Update definition.
1203 (struct compunit_symtab): New type. Common members among all source
1204 symtabs within a compilation unit moved here. All uses updated.
1205 (COMPUNIT_OBJFILE): New macro.
1206 (COMPUNIT_FILETABS): New macro.
1207 (COMPUNIT_DEBUGFORMAT): New macro.
1208 (COMPUNIT_PRODUCER): New macro.
1209 (COMPUNIT_DIRNAME): New macro.
1210 (COMPUNIT_BLOCKVECTOR): New macro.
1211 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1212 (COMPUNIT_LOCATIONS_VALID): New macro.
1213 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1214 (COMPUNIT_CALL_SITE_HTAB): New macro.
1215 (COMPUNIT_MACRO_TABLE): New macro.
1216 (ALL_COMPUNIT_FILETABS): New macro.
1217 (compunit_symtab_ptr): New typedef.
1218 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1219
1220 2014-11-20 Joel Brobecker <brobecker@adacore.com>
1221
1222 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1223 if the TYPE_CODE of range_type's base type does not match
1224 the TYPE_CODE of encoding_type's base type.
1225
1226 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1227
1228 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1229 it starts with '<'.
1230
1231 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1232
1233 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1234 (ada_is_redundant_index_type_desc): New function.
1235 (to_fixed_array_type): Ignore parallel XA type if redundant.
1236
1237 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1238
1239 * ada-lang.c (constrained_packed_array_type): Set the length
1240 of the return array as if both bounds where zero if that
1241 returned array's index type is dynamic.
1242
1243 2014-11-19 Yao Qi <yao@codesourcery.com>
1244
1245 * config/i386/go32.mh (CC): Remove.
1246
1247 2014-11-18 Doug Evans <xdje42@gmail.com>
1248
1249 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1250 updated.
1251
1252 2014-11-18 Doug Evans <xdje42@gmail.com>
1253
1254 * buildsym.c (buildsym_objfile): New static global.
1255 (buildsym_comp_dir): New static global.
1256 (finish_block_internal): Delete arg objfile. All callers updated.
1257 (finish_block): Delete arg objfile. All callers updated.
1258 (start_subfile): Delete arg dirname. All callers updated.
1259 (patch_subfile_names): Update buildsym_comp_dir.
1260 (get_macro_table): Delete arg objfile. All callers updated.
1261 (start_symtab): New arg objfile. All callers updated.
1262 Rename arg dirname to comp_dir.
1263 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1264 (end_symtab_get_static_block): Delete arg objfile. All callers
1265 updated.
1266 (end_symtab_without_blockvector): Ditto.
1267 (end_symtab_with_blockvector): Ditto.
1268 (end_symtab_from_static_block): Ditto.
1269 (end_symtab): Ditto.
1270 (end_expandable_symtab): Ditto.
1271 (augment_type_symtab): Ditto.
1272 * coffread.c (coff_start_symtab): New arg objfile. All callers
1273 updated.
1274
1275 2014-11-18 Doug Evans <xdje42@gmail.com>
1276
1277 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1278 updated.
1279
1280 2014-11-18 Doug Evans <xdje42@gmail.com>
1281
1282 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1283 symtab.dirname updated to use it.
1284
1285 2014-11-18 Doug Evans <xdje42@gmail.com>
1286
1287 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1288 symtab.objfile updated to use it.
1289
1290 2014-11-18 Doug Evans <xdje42@gmail.com>
1291
1292 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1293
1294 2014-11-18 Doug Evans <xdje42@gmail.com>
1295
1296 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1297 SYMBOL_OBJFILE.
1298 * findvar.c (default_read_var_value): Ditto.
1299 * jv-lang.c (add_class_symtab_symbol): Ditto.
1300 * parse.c (operator_check_standard): Ditto.
1301 * printcmd.c (address_info): Ditto.
1302 * symtab.c (fixup_symbol_section): Ditto.
1303 (skip_prologue_sal): Ditto.
1304 * tracepoint.c (scope_info): Ditto.
1305 * valops.c (find_function_in_inferior): Ditto.
1306 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1307 * python/py-symbol.c (set_symbol): Ditto.
1308
1309 2014-11-18 Doug Evans <xdje42@gmail.com>
1310
1311 * buildsym.c (main_subfile): New static global.
1312 (free_subfiles_list): New function.
1313 (start_symtab): Set main_subfile.
1314 (restart_symtab): Replace init of subfiles, current_subfile with
1315 call to free_subfiles_list.
1316 (watch_main_source_file_lossage): Use main_subfile.
1317 (reset_symtab_globals): Replace init of current_subfile with call
1318 to free_subfiles_list.
1319 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1320 functions, split out from ...
1321 (end_symtab_from_static_block): ... here. Rewrite to call them.
1322
1323 2014-11-18 Doug Evans <xdje42@gmail.com>
1324
1325 The result of symtab expansion is always a primary symtab.
1326 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1327 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1328 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1329 (psymtab_to_symtab): Add comment and assert.
1330 (map_matching_symbols_psymtab): Remove unnecessary test for
1331 non-primary symtab.
1332
1333 2014-11-15 Doug Evans <xdje42@gmail.com>
1334
1335 PR symtab/17559
1336 * symtab.c (find_pc_line_symtab): New function.
1337 * symtab.h (find_pc_line_symtab): Declare.
1338 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1339 find_pc_symtab.
1340 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1341 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1342 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1343 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1344 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1345 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1346
1347 2014-11-15 Doug Evans <xdje42@gmail.com>
1348
1349 * symtab.c (expand_symtab_containing_pc): Renamed from
1350 find_pc_sect_symtab_via_partial. All callers updated.
1351
1352 2014-11-15 Yao Qi <yao@codesourcery.com>
1353
1354 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1355
1356 2014-11-14 Joel Brobecker <brobecker@adacore.com>
1357
1358 * common/common-defs.h: Move <stdarg.h> #include ahead of
1359 <stdio.h> #include.
1360
1361 2014-11-14 Pedro Alves <palves@redhat.com>
1362
1363 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1364 [!PHONY_ICONV] (gdb_iconv): New function.
1365 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1366
1367 2014-11-13 Doug Evans <dje@google.com>
1368
1369 PR symtab/17591
1370 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1371 "(anonymous namespace)".
1372
1373 2014-11-13 Doug Evans <dje@google.com>
1374
1375 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1376 infinite loop.
1377
1378 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1379
1380 * NEWS (maint set target-async): Fix typo.
1381
1382 2014-11-12 Pedro Alves <palves@redhat.com>
1383
1384 * infrun.c (enum infwait_states, infwait_state): Delete.
1385
1386 2014-11-12 Pedro Alves <palves@redhat.com>
1387
1388 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1389 Rewrite stepping over a permanent breakpoint.
1390 (thread_still_needs_step_over, proceed): Don't set
1391 stepping_over_breakpoint for permanent breakpoints.
1392 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1393 single-step breakpoints out of the target on hardware step
1394 targets.
1395 (process_event_stop_test): If stepping a permanent breakpoint
1396 doesn't hit the step-resume breakpoint, delete the step-resume
1397 breakpoint.
1398 (switch_back_to_stepped_thread): Also check if the stepped thread
1399 has advanced already on hardware step targets.
1400 (currently_stepping): Return true if the thread stepped a
1401 breakpoint.
1402
1403 2014-11-12 Pedro Alves <palves@redhat.com>
1404
1405 Mark locations as permanent, not the whole breakpoint.
1406 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1407 (mark_breakpoints_out): Don't mark permanent breakpoints as
1408 uninserted.
1409 (breakpoint_init_inferior): Use mark_breakpoints_out.
1410 (breakpoint_here_p): Adjust.
1411 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1412 of permanent breakpoints.
1413 (make_breakpoint_permanent): Mark each location as permanent,
1414 instead of marking the breakpoint.
1415 (add_location_to_breakpoint): If the location is permanent, mark
1416 it as such, and as inserted.
1417 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1418 (bp_location_compare, update_global_location_list): Adjust.
1419 (update_breakpoint_locations): Don't make the breakpoint permanent
1420 here.
1421 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1422 breakpoints.
1423 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1424 (struct bp_location) <permanent>: New field.
1425 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1426 reference to bp_permanent.
1427
1428 2014-11-12 Pedro Alves <palves@redhat.com>
1429
1430 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1431 * arch-utils.h (default_skip_permanent_breakpoint): New
1432 declaration.
1433 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1434 Install default_skip_permanent_breakpoint as default method.
1435 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1436 (i386_gdbarch_init): Don't install it.
1437 * infrun.c (resume): Assume there's always a
1438 gdbarch_skip_permanent_breakpoint implementation.
1439 * gdbarch.h, gdbarch.c: Regenerate.
1440
1441 2014-11-11 Daniel Colascione <dancol@dancol.org>
1442
1443 Warn about cross-PID-namespace debugging.
1444 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1445 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1446 * linux-thread-db.c (check_pid_namespace_match): New function.
1447 (thread_db_inferior_created): Call it.
1448
1449 2014-11-10 Doug Evans <xdje42@gmail.com>
1450
1451 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1452 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1453
1454 2014-11-10 Doug Evans <xdje42@gmail.com>
1455
1456 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1457
1458 2014-11-10 Doug Evans <xdje42@gmail.com>
1459
1460 PR symtab/17564
1461 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1462 (lookup_static_symbol): Move definition to new location and rewrite.
1463 (lookup_symbol_in_objfile): New function.
1464 (lookup_symbol_global_iterator_cb): Call it.
1465
1466 2014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
1467
1468 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1469
1470 2014-11-07 Pedro Alves <palves@redhat.com>
1471
1472 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1473 check if we did a "nexti" inside a prologue.
1474 * symtab.c (in_prologue): Delete function.
1475 * symtab.h (in_prologue): Delete declaration.
1476
1477 2014-11-06 Doug Evans <xdje42@gmail.com>
1478
1479 * symtab.h (lookup_global_symbol): Improve function comment.
1480
1481 2014-11-06 Doug Evans <xdje42@gmail.com>
1482
1483 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1484 All callers updated.
1485 * symtab.h (lookup_global_symbol): Update decl.
1486 (lookup_static_symbol): Move decl to better location.
1487
1488 2014-11-06 Doug Evans <xdje42@gmail.com>
1489
1490 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1491
1492 2014-11-06 Doug Evans <xdje42@gmail.com>
1493
1494 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1495 All callers updated.
1496 (lookup_symbol_in_all_objfiles): Renamed from
1497 lookup_symbol_aux_symtabs. All callers updated.
1498 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1499 All callers updated.
1500 (lookup_symbol_in_objfile_symtabs): Renamed from
1501 lookup_symbol_aux_objfile. All callers updated.
1502
1503 2014-11-06 Doug Evans <xdje42@gmail.com>
1504
1505 * symtab.c (lookup_symbol_in_block): Renamed from
1506 lookup_symbol_aux_block. All callers updated.
1507
1508 2014-11-06 Doug Evans <xdje42@gmail.com>
1509
1510 * symtab.c (lookup_static_symbol): Renamed from
1511 lookup_static_symbol_aux. All callers updated.
1512 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1513 All callers updated.
1514
1515 2014-11-06 Doug Evans <xdje42@gmail.com>
1516
1517 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1518 * block.c (block_lookup_symbol): Use it.
1519 * cp-support.c (make_symbol_overload_list_block): Use it.
1520 * symtab.c (iterate_over_symbols): Use it.
1521
1522 2014-11-06 Doug Evans <xdje42@gmail.com>
1523
1524 * symtab.c (lookup_block_symbol): Moved to ...
1525 * block.c (block_lookup_symbol): ... here and renamed.
1526 All callers updated.
1527 * block.h (block_lookup_symbol): Declare.
1528 * symtab.h (lookup_block_symbol): Delete.
1529
1530 2014-11-06 Doug Evans <xdje42@gmail.com>
1531
1532 * ada-lang.c (ada_make_symbol_completion_list): Use
1533 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1534 * symtab.c (lookup_objfile_from_block): Ditto.
1535
1536 2014-11-06 Doug Evans <xdje42@gmail.com>
1537
1538 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1539 TYPE_CODE_STRUCT.
1540
1541 2014-11-06 Doug Evans <xdje42@gmail.com>
1542
1543 * objfiles.c (get_objfile_arch): Constify.
1544 * objfiles.h (get_objfile_arch): Update prototype.
1545 * solib.c (solib_global_lookup): Fetch arch from objfile,
1546 not target_gdbarch.
1547
1548 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1549
1550 * nios2-tdep.c (wild_insn): Delete.
1551 (profiler_insn, irqentry_insn): Delete.
1552 (nios2_match_sequence): Delete.
1553 (nios2_analyze_prologue): Update comments. Remove matching
1554 of obsolete profiler_insn and irqentry_insn sequences.
1555
1556 2014-11-05 Alan Modra <amodra@gmail.com>
1557
1558 * charset.c (convert_between_encodings): Shrink obstack using
1559 obstack_blank_fast.
1560 * minsyms.c (install_minimal_symbols): Likewise.
1561 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1562 to char* before doing pointer arithmetic.
1563
1564 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1565
1566 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1567
1568 2014-11-04 Pedro Alves <palves@redhat.com>
1569
1570 * breakpoint.c (breakpoint_thread_match): Delete function.
1571 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1572
1573 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1574
1575 PR c++/17494
1576 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1577 the method args also under EVAL_SKIP when evaluating method
1578 calls under EVAL_SKIP.
1579
1580 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1581
1582 * dwarf2loc.c (read_pieced_value): Do big endian
1583 processing only if gdb_regnum is not -1.
1584 (write_pieced_value): Ditto.
1585
1586 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1587
1588 * arm-linux-tdep.c (arm_linux_init_abi): Use
1589 info.byte_order_for_code to choose endianity of breakpoint
1590 instructions snippets.
1591
1592 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1593
1594 * arm-tdep.c (extract_arm_insn): Use
1595 gdbarch_byte_order_for_code to read arm instruction.
1596
1597 2014-11-02 Doug Evans <xdje42@gmail.com>
1598
1599 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1600
1601 2014-11-02 Doug Evans <xdje42@gmail.com>
1602
1603 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1604 main_subfile before returning.
1605
1606 2014-10-31 Doug Evans <xdje42@gmail.com>
1607
1608 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1609 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1610
1611 2014-10-31 Doug Evans <xdje42@gmail.com>
1612
1613 * valops.c (value_cast_pointers): Fix whitespace.
1614 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1615 Ditto.
1616
1617 2014-10-30 Doug Evans <dje@google.com>
1618
1619 * NEWS: Mention ability add attributes to gdb.Objfile and
1620 gdb.Progspace objects.
1621 * python/py-objfile.c (objfile_object): New member dict.
1622 (objfpy_dealloc): Py_XDECREF dict.
1623 (objfpy_initialize): Initialize dict.
1624 (objfile_getset): Add __dict__.
1625 (objfile_object_type): Set tp_dictoffset member.
1626 * python/py-progspace.c (progspace_object): New member dict.
1627 (pspy_dealloc): Py_XDECREF dict.
1628 (pspy_initialize): Initialize dict.
1629 (pspace_getset): Add __dict__.
1630 (pspace_object_type): Set tp_dictoffset member.
1631
1632 2014-10-30 Yao Qi <yao@codesourcery.com>
1633
1634 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1635 replace '\\' with '\\\\'.
1636
1637 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1638
1639 GDB 7.8.1 released.
1640
1641 2014-10-29 Pedro Alves <palves@redhat.com>
1642
1643 PR gdb/17408
1644 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1645 instead of assuming a thread with a stepping range is always
1646 stepping.
1647
1648 2014-10-29 Pedro Alves <palves@redhat.com>
1649
1650 PR python/17372
1651 * event-top.c (change_line_handler): Call
1652 gdb_rl_callback_handler_remove instead of
1653 rl_callback_handler_remove.
1654 (callback_handler_installed): New global.
1655 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1656 (gdb_rl_callback_handler_reinstall): New functions.
1657 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1658 gdb_rl_callback_handler_install instead of
1659 rl_callback_handler_remove and rl_callback_handler_install.
1660 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1661 instead of rl_callback_handler_remove.
1662 * event-top.h (gdb_rl_callback_handler_remove)
1663 (gdb_rl_callback_handler_install)
1664 (gdb_rl_callback_handler_reinstall): New declarations.
1665 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1666 cleanup function.
1667 (fetch_inferior_event): Install it.
1668 * top.c (gdb_readline_wrapper_line) Call
1669 gdb_rl_callback_handler_remove instead of
1670 rl_callback_handler_remove.
1671 (gdb_readline_wrapper_cleanup): Don't call
1672 rl_callback_handler_install.
1673
1674 2014-10-29 Pedro Alves <palves@redhat.com>
1675
1676 * event-top.c (command_line_handler): Clear the first byte of
1677 linebuffer, when it is first allocated.
1678
1679 2014-10-29 Pedro Alves <palves@redhat.com>
1680
1681 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1682 TRY_CATCH.
1683
1684 2014-10-29 Pedro Alves <palves@redhat.com>
1685
1686 PR tui/16138
1687 PR tui/17519
1688 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1689 (tui_allowed_p): Delete function.
1690 * tui/tui.c: Include "interps.h".
1691 (tui_enable): Don't use tui_allowed_p. Error out here with
1692 detailed error messages if the TUI is the top level interpreter,
1693 or if output is not a terminal. Use newterm instead of initscr,
1694 and error out if initializing the terminal fails. Also error out if
1695 the terminal doesn't support cursor addressing.
1696 * tui/tui.h (tui_allowed_p): Delete declaration.
1697
1698 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1699
1700 * arm-tdep.c (arm_skip_stack_protector): Return early if
1701 address loaded by first "ldr" instruction does not have
1702 a corresponding minimal symbol. Update comment.
1703
1704 2014-10-29 Yao Qi <yao@codesourcery.com>
1705
1706 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1707 loaded address correctly of ldr instruction.
1708
1709 2014-10-28 Pedro Alves <palves@redhat.com>
1710
1711 PR gdb/12623
1712 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1713 field.
1714 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1715 thread's stepped_breakpoint field. Skip if reverse debugging.
1716 Add comment.
1717 (init_thread_stepping_state, handle_signal_stop): Clear the
1718 thread's stepped_breakpoint field.
1719
1720 2014-10-27 Pedro Alves <palves@redhat.com>
1721
1722 * remote.c (remote_thread_alive): New, factored out from ...
1723 (remote_thread_alive): ... this.
1724 (remote_update_thread_list): Bail out before deleting threads if
1725 the target returned an empty list, and, the current thread has a
1726 magic/fake ptid.
1727
1728 2014-10-27 Pedro Alves <palves@redhat.com>
1729
1730 * infrun.c (handle_signal_stop): Also skip handlers when a random
1731 signal arrives while handling a "stepi" or a "nexti". Set the
1732 thread's 'step_after_step_resume_breakpoint' flag.
1733
1734 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
1735
1736 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1737 (arm_record_ld_st_imm_offset): Reimplement to cover all
1738 load/store cases for ARM opcode 010.
1739 (arm_record_ld_st_multiple): Reimplement to cover all
1740 load/store cases for ARM opcode 100.
1741
1742 2014-10-26 Doug Evans <xdje42@gmail.com>
1743
1744 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1745
1746 2014-10-26 Doug Evans <xdje42@gmail.com>
1747
1748 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1749 parameter "kind" to "block_index".
1750 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1751 "block_index".
1752 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1753
1754 2014-10-26 Doug Evans <xdje42@gmail.com>
1755
1756 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1757
1758 2014-10-26 Doug Evans <xdje42@gmail.com>
1759
1760 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1761 obstack_alloc.
1762
1763 2014-10-26 Doug Evans <xdje42@gmail.com>
1764
1765 * parser-defs.h (block_found): Move decl from here ...
1766 * symtab.h (block_found): ... to here.
1767
1768 2014-10-26 Doug Evans <xdje42@gmail.com>
1769
1770 * symtab.h (struct field_of_this_result): Fix typo in comment.
1771 (lookup_symbol_in_language): Move function comment here.
1772 (lookup_symbol): Improve function comment.
1773 (basic_lookup_symbol_nonlocal): Ditto.
1774 (lookup_symbol_static, lookup_symbol_global): Ditto.
1775 (lookup_symbol_aux_block): Ditto.
1776 (lookup_language_this): Add function comment.
1777 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1778 function comment.
1779 (lookup_block_symbol): Improve function comment.
1780 (lookup_struct): Fix capitalization in function comment.
1781 (lookup_transparent_type): Add function comment.
1782 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1783 Improve function comment.
1784 (lookup_objfile_from_block): Add function comment.
1785 * symtab.c (lookup_symbol_in_language): Update function comment.
1786 (lookup_symbol, lookup_language_this): Ditto.
1787 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1788 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1789 (basic_lookup_symbol_nonlocal): Ditto.
1790 (lookup_symbol_static, lookup_symbol_global): Ditto.
1791 (lookup_transparent_type, lookup_block_symbol): Ditto.
1792
1793 2014-10-25 Doug Evans <xdje42@gmail.com>
1794
1795 * symtab.c (types_info): Delete forward decl.
1796 (functions_info, variables_info, sources_info): Ditto.
1797 (_initialize_symtab): Rewrite forward decl to use
1798 initialize_file_ftype.
1799
1800 2014-10-25 Doug Evans <xdje42@gmail.com>
1801
1802 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1803
1804 2014-10-25 Doug Evans <xdje42@gmail.com>
1805
1806 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1807 of local var child_die.
1808
1809 2014-10-24 Don Breazeal <donb@codesourcery.com>
1810
1811 * infrun.c (follow_fork_inferior): Update fork message printing
1812 to use target_terminal_ours_for_output instead of
1813 target_terminal_ours, to use _() for all format strings, to print
1814 "vfork" instead of "fork" for vforks, and to add a detach message.
1815 (handle_vfork_child_exec_or_exit): Update message printing to use
1816 target_terminal_ours_for_output instead of target_terminal_ours, to
1817 use _() for all format strings, and to fix some formatting.
1818
1819 2014-10-24 Pedro Alves <palves@redhat.com>
1820
1821 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1822 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1823 * config/vax/vax.mh: Delete.
1824 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1825 obsolete configurations section.
1826 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1827 * vax-nat.c: Delete file.
1828
1829 2014-10-24 Pedro Alves <palves@redhat.com>
1830
1831 * NEWS (Removed targets): Add OS/arch column.
1832
1833 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1834
1835 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1836 on the arg type of a constructor only if it is of reference type.
1837
1838 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1839
1840 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1841 accessors and constants from nios2 opcodes update.
1842 (nios2_get_next_pc): Likewise.
1843
1844 2014-10-19 Doug Evans <xdje42@gmail.com>
1845
1846 * gdbthread.h (set_running): Fix comment.
1847 (set_executing, finish_thread_state): Fix comment.
1848
1849 2014-10-18 Doug Evans <xdje42@gmail.com>
1850
1851 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1852
1853 2014-10-17 Doug Evans <dje@google.com>
1854
1855 * NEWS: Mention new event gdb.clear_objfiles.
1856 * python/py-event.h (emit_clear_objfiles_event): Clear
1857 * python/py-events.h (events_object): New member clear_objfiles.
1858 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1859 event.
1860 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1861 emit clear_objfiles event.
1862 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1863 function.
1864 (emit_clear_objfiles_event): New function.
1865 (clear_objfiles): New event.
1866 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1867 Declare.
1868 * python/python.c (_initialize_python): Call
1869 gdbpy_initialize_clear_objfiles_event.
1870
1871 2014-10-17 Doug Evans <dje@google.com>
1872
1873 * NEWS: Mention new gdb.Objfile.progspace attribute.
1874 * python/py-objfile.c (objfpy_get_progspace): New function.
1875 (objfile_getset): New entry for "progspace".
1876
1877 2014-10-17 Pedro Alves <palves@redhat.com>
1878
1879 PR gdb/17471
1880 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1881 returns a copy of the input.
1882 (run_command_1, continue_command, step_1, jump_command)
1883 (signal_command, until_command, advance_command, finish_command)
1884 (attach_command): Adjust and install a cleanup to free the
1885 stripped args.
1886
1887 2014-10-17 Pedro Alves <palves@redhat.com>
1888
1889 PR gdb/17300
1890 * infcmd.c (continue_1): If continuing all threads in the
1891 foreground, make sure the inferior's terminal settings are put in
1892 effect.
1893
1894 2014-10-17 Pedro Alves <palves@redhat.com>
1895
1896 PR gdb/17472
1897 * annotate.c (annotate_breakpoints_invalid): Use
1898 target_terminal_our_for_output instead of target_terminal_ours.
1899 Give back the terminal to the target.
1900 (annotate_frames_invalid): Likewise.
1901
1902 2014-10-17 Pedro Alves <palves@redhat.com>
1903
1904 * target.c (enum terminal_state): New enum.
1905 (terminal_state): New global.
1906 (target_terminal_init): New function.
1907 (target_terminal_inferior): Skip if inferior already owns the
1908 terminal.
1909 (target_terminal_ours, target_terminal_ours_for_output): New
1910 functions.
1911 * target.h (target_terminal_init): Convert to function prototype.
1912 (target_terminal_ours_for_output): Convert to function prototype
1913 and tweak comment.
1914 (target_terminal_ours): Convert to function prototype and tweak
1915 comment.
1916 * windows-nat.c (do_initial_windows_stuff): Call
1917 target_terminal_init instead of child_terminal_init_with_pgrp.
1918
1919 2014-10-17 Pedro Alves <palves@redhat.com>
1920
1921 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1922 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1923 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1924 solib-osf.c.
1925 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1926 * ada-lang.h [__alpha__ && __osf__]
1927 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1928 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1929 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1930 GDB_OSABI_OSF1.
1931 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1932 files.
1933 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1934 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1935 * configure: Regenerate.
1936 * configure.ac: Remove references to osf.
1937 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1938 section. Remove all other references to osf.
1939 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1940 Remove all other references to osf.
1941 * dec-thread.c: Delete file.
1942 * defs.h (GDB_OSABI_OSF1): Delete.
1943 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1944 defined.
1945 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1946 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1947 Delete code.
1948 (unconditionally_kill_inferior)
1949 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1950 * solib-osf.c: Delete file.
1951
1952 2014-10-17 Pedro Alves <palves@redhat.com>
1953
1954 * remote.c (clear_threads_listing_context): Move higher up, out of
1955 the HAVE_LIBEXPAT guard.
1956
1957 2014-10-16 Tristan Gingold <gingold@adacore.com>
1958
1959 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1960 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1961 on amd64.
1962
1963 2014-10-15 Pedro Alves <palves@redhat.com>
1964
1965 * dec-thread.c (dec_thread_count_gdb_threads)
1966 (dec_thread_add_gdb_thread): Delete.
1967 (dec_thread_update_thread_list): Delete.
1968 (dec_thread_find_new_threads): Rename to ...
1969 (dec_thread_update_thread_list): ... this. Delete GDB-size
1970 threads that are no longer found in dec_thread_list.
1971 (resync_thread_list): Delete.
1972 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1973 resync_thread_list.
1974
1975 2014-10-15 Pedro Alves <palves@redhat.com>
1976
1977 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1978 * remote.c (remote_update_thread_list): Skip calling prune_threads
1979 if any thread listing method is supported, and instead walk over
1980 the set of remote threads listed, deleting those that are not
1981 found in GDB's thread list.
1982
1983 2014-10-15 Pedro Alves <palves@redhat.com>
1984
1985 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1986 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1987 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1988 (bsd_uthread_target): Adjust.
1989 * corelow.c (core_open): Adjust.
1990 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1991 (dec_thread_update_thread_list): New function.
1992 (init_dec_thread_ops): Adjust.
1993 * gdbthread.h (prune_threads): New declaration.
1994 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1995 (thread_db_update_thread_list): ... this. Call prune_threads.
1996 (init_thread_db_ops): Adjust.
1997 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1998 (procfs_update_thread_list): ... this. Call prune_threads.
1999 (procfs_attach, procfs_create_inferior, init_procfs_targets):
2000 Adjust.
2001 * obsd-nat.c (obsd_find_new_threads): Rename to ...
2002 (obsd_update_thread_list): ... this. Call prune_threads.
2003 (obsd_add_target): Adjust.
2004 * procfs.c (procfs_target): Adjust.
2005 (procfs_notice_thread): Update comment.
2006 (procfs_find_new_threads): Rename to ...
2007 (procfs_update_thread_list): ... this. Call prune_threads.
2008 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
2009 comment.
2010 (ravenscar_wait): Adjust.
2011 (ravenscar_find_new_threads): Rename to ...
2012 (ravenscar_update_thread_list): ... this. Call prune_threads.
2013 (init_ravenscar_thread_ops): Adjust.
2014 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
2015 (record_btrace_update_thread_list): ... this. Adjust comment.
2016 (init_record_btrace_ops): Adjust.
2017 * remote.c (remote_threads_info): Rename to ...
2018 (remote_update_thread_list): ... this. Call prune_threads.
2019 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
2020 Adjust.
2021 * sol-thread.c (check_for_thread_db): Adjust.
2022 (sol_find_new_threads_callback): Rename to ...
2023 (sol_update_thread_list_callback): ... this.
2024 (sol_find_new_threads): Rename to ...
2025 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
2026 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
2027 * target-delegates.c: Regenerate.
2028 * target.c (target_find_new_threads): Rename to ...
2029 (target_update_thread_list): ... this.
2030 * target.h (struct target_ops): Rename to_find_new_threads field
2031 to to_update_thread_list.
2032 (target_find_new_threads): Rename to ...
2033 (target_update_thread_list): ... this.
2034 * thread.c (prune_threads): Make extern.
2035 (update_thread_list): Adjust.
2036
2037 2014-10-15 Pedro Alves <palves@redhat.com>
2038
2039 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
2040 Add describing comment. Return -1 if the qL packet is not
2041 supported.
2042 (struct thread_item, thread_item_t): Move higher up in
2043 the file. Add comments.
2044 (struct threads_parsing_context): Move higher up in
2045 the file, add comments, and remote to ...
2046 (struct threads_listing_context): ... this.
2047 (remote_newthread_step): Don't add the thread to GDB's thread
2048 database here. Instead push it to the thread_listing_context
2049 list.
2050 (remote_find_new_threads): Rename to ...
2051 (remote_get_threads_with_ql): ... this. Add target_ops and
2052 targets_listing_context parameters. Pass down context.
2053 (start_thread): Adjust.
2054 (clear_threads_parsing_context): Rename to ...
2055 (clear_threads_listing_context): ... this.
2056 (remote_get_threads_with_qxfer): New, with parts salvaged from old
2057 remote_threads_info.
2058 (remote_get_threads_with_qthreadinfo): Ditto.
2059 (remote_threads_info): Reimplement.
2060
2061 2014-10-15 Pedro Alves <palves@redhat.com>
2062
2063 * infrun.c (resume): Don't force displaced-stepping for all
2064 single-steps on software single-stepping archs.
2065
2066 2014-10-15 Pedro Alves <palves@redhat.com>
2067
2068 * breakpoint.c (single_step_breakpoints): Delete global.
2069 (insert_single_step_breakpoint): Adjust to store the breakpoint
2070 pointer in the current thread.
2071 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2072 (cancel_single_step_breakpoints): Delete functions.
2073 (breakpoint_has_location_inserted_here): Make extern.
2074 (single_step_breakpoint_inserted_here_p): Adjust to walk the
2075 breakpoint list.
2076 * breakpoint.h (breakpoint_has_location_inserted_here): New
2077 declaration.
2078 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2079 (cancel_single_step_breakpoints): Remove declarations.
2080 * gdbthread.h (struct thread_control_state)
2081 <single_step_breakpoints>: New field.
2082 (delete_single_step_breakpoints)
2083 (thread_has_single_step_breakpoints_set)
2084 (thread_has_single_step_breakpoint_here): New declarations.
2085 * infrun.c (follow_exec): Also clear the single-step breakpoints.
2086 (singlestep_breakpoints_inserted_p, singlestep_ptid)
2087 (singlestep_pc): Delete globals.
2088 (infrun_thread_ptid_changed): Remove references to removed
2089 globals.
2090 (resume_cleanups): Delete the current thread's single-step
2091 breakpoints.
2092 (maybe_software_singlestep): Remove references to removed globals.
2093 (resume): Adjust to use thread_has_single_step_breakpoints_set and
2094 delete_single_step_breakpoints.
2095 (init_wait_for_inferior): Remove references to removed globals.
2096 (delete_thread_infrun_breakpoints): Delete the thread's
2097 single-step breakpoints too.
2098 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
2099 single-step breakpoints here.
2100 (delete_stopped_threads_single_step_breakpoints): New function.
2101 (adjust_pc_after_break): Adjust to use
2102 thread_has_single_step_breakpoints_set.
2103 (handle_inferior_event): Remove references to removed globals.
2104 Use delete_stopped_threads_single_step_breakpoints.
2105 (handle_signal_stop): Adjust to per-thread single-step
2106 breakpoints. Swap test order to do cheaper tests first.
2107 (switch_back_to_stepped_thread): Extend debug output. Remove
2108 references to removed globals.
2109 * record-full.c (record_full_wait_1): Adjust to per-thread
2110 single-step breakpoints.
2111 * thread.c (delete_single_step_breakpoints)
2112 (thread_has_single_step_breakpoints_set)
2113 (thread_has_single_step_breakpoint_here): New functions.
2114 (clear_thread_inferior_resources): Also delete the thread's
2115 single-step breakpoints.
2116
2117 2014-10-15 Pedro Alves <palves@redhat.com>
2118
2119 * thread.c (delete_thread_breakpoint): New function.
2120 (delete_step_resume_breakpoint)
2121 (delete_exception_resume_breakpoint): Use it.
2122 (delete_at_next_stop): New function.
2123 (clear_thread_inferior_resources): Use delete_at_next_stop.
2124
2125 2014-10-15 Pedro Alves <palves@redhat.com>
2126
2127 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
2128 (breakpoint_inserted_here_p): ... here. Remove special case for
2129 software single-step breakpoints.
2130 (find_non_raw_software_breakpoint_inserted_here): Inline ...
2131 (software_breakpoint_inserted_here_p): ... here. Remove special
2132 case for software single-step breakpoints.
2133 (bp_target_info_copy_insertion_state)
2134 (deprecated_insert_raw_breakpoint)
2135 (deprecated_remove_raw_breakpoint): Delete functions.
2136 * breakpoint.h (deprecated_insert_raw_breakpoint)
2137 (deprecated_remove_raw_breakpoint): Remove declarations.
2138
2139 2014-10-15 Pedro Alves <palves@redhat.com>
2140
2141 PR breakpoints/9649
2142 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
2143 Delete array globals.
2144 (single_step_breakpoints): New global.
2145 (breakpoint_xfer_memory): Remove special handling for single-step
2146 breakpoints.
2147 (update_breakpoints_after_exec): Delete bp_single_step
2148 breakpoints.
2149 (detach_breakpoints): Remove special handling for single-step
2150 breakpoints.
2151 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
2152 (bpstat_stop_status): Add comment.
2153 (bpstat_what, bptype_string, print_one_breakpoint_location)
2154 (adjust_breakpoint_address, init_bp_location): Handle
2155 bp_single_step.
2156 (new_single_step_breakpoint): New function.
2157 (set_momentary_breakpoint, bkpt_remove_location): Remove special
2158 handling for single-step breakpoints.
2159 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
2160 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
2161 Rewrite.
2162 (detach_single_step_breakpoints, find_single_step_breakpoint):
2163 Delete functions.
2164 (breakpoint_has_location_inserted_here): New function.
2165 (single_step_breakpoint_inserted_here_p): Rewrite.
2166 * breakpoint.h: Remove FIXME.
2167 (enum bptype) <bp_single_step>: New enum value.
2168 (insert_single_step_breakpoint): Update comment.
2169 * infrun.c (resume_cleanups)
2170 (delete_step_thread_step_resume_breakpoint): Remove single-step
2171 breakpoints.
2172 (fetch_inferior_event): Install a cleanup that removes infrun
2173 breakpoints.
2174 (switch_back_to_stepped_thread) <expect thread advanced also>:
2175 Clear step-over info.
2176
2177 2014-10-15 Pedro Alves <palves@redhat.com>
2178
2179 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
2180 (delete_thread_infrun_breakpoints): New function, with parts
2181 salvaged from delete_step_resume_breakpoint_callback.
2182 (delete_step_thread_step_resume_breakpoint): Delete.
2183 (for_each_just_stopped_thread_callback_func): New typedef.
2184 (for_each_just_stopped_thread): New function.
2185 (delete_just_stopped_threads_infrun_breakpoints): New function.
2186 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
2187 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
2188 ... this. Adjust.
2189 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
2190
2191 2014-10-15 Pedro Alves <palves@redhat.com>
2192
2193 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2194 trying to step past a non-steppable watchpoint.
2195 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2196 field.
2197 * infrun.c (struct step_over_info): Add new field
2198 'nonsteppable_watchpoint_p' and adjust comments.
2199 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2200 Adjust.
2201 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2202 (stepping_past_nonsteppable_watchpoint): New function.
2203 (step_over_info_valid_p): Also return true if stepping past a
2204 nonsteppable watchpoint.
2205 (proceed): Adjust call to set_step_over_info. Remove reference to
2206 init_infwait_state.
2207 (init_wait_for_inferior): Remove reference to init_infwait_state.
2208 (waiton_ptid): Delete global.
2209 (struct execution_control_state)
2210 <stepped_after_stopped_by_watchpoint>: Delete field.
2211 (wait_for_inferior, fetch_inferior_event): Always pass
2212 minus_one_ptid to target_wait.
2213 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2214 field.
2215 (init_infwait_state): Delete function.
2216 (handle_inferior_event): Remove infwait_state handling.
2217 (handle_signal_stop) <watchpoints handling>: Adjust after
2218 stepped_after_stopped_by_watchpoint removal. Don't remove
2219 breakpoints here nor set infwait_state. Set the thread's
2220 stepping_over_watchpoint flag, and call keep_going instead.
2221 (keep_going): Handle stepping_over_watchpoint. Adjust
2222 set_step_over_info calls.
2223 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2224 function.
2225
2226 2014-10-15 Pedro Alves <palves@redhat.com>
2227
2228 * infrun.c (step_over_info_valid_p): New function.
2229 (resume): Use step_over_info_valid_p instead of checking the
2230 threads's trap_expected flag.
2231
2232 2014-10-15 Doug Evans <dje@google.com>
2233 Walfred Tedeschi <walfred.tedeschi@intel.com>
2234
2235 PR python/17364
2236 * python/lib/gdb/__init__.py (packages): Add "printer".
2237 * python/lib/gdb/command/bound_registers.py: Moved to ...
2238 * python/lib/gdb/printer/bound_registers.py: ... here.
2239 Add printer to global set of builtin printers. Rename printer from
2240 "bound" to "mpx_bound128".
2241 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2242 registered as global "builtin" printer.
2243 (add_builtin_pretty_printer): New function.
2244 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2245 gdb/printer/__init__.py.
2246
2247 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2248
2249 * Makefile.in (SFILES): Remove d-support.c.
2250 (COMMON_OBS): Remove d-support.o.
2251 * d-lang.h (d_parse_symbol): Remove declaration.
2252 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2253 * d-support.c: Remove file.
2254
2255 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2256
2257 * gdb/infrun.c (process_event_stop_test): Apply
2258 gdbarch_addr_bits_remove to longjmp resume address.
2259
2260 2014-10-15 Pedro Alves <palves@redhat.com>
2261
2262 * regformats/microblaze.dat: Delete file.
2263
2264 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2265
2266 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2267 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2268
2269 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2270
2271 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2272 as non-trivial.
2273
2274 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2275
2276 PR c++/13403
2277 PR c++/15154
2278 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2279 with qualified args.
2280
2281 2014-10-14 Joel Brobecker <brobecker@adacore.com>
2282
2283 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2284 of the case where the second operand is a pointer.
2285 <BINOP_SUB>: Likewise.
2286
2287 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2288
2289 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2290 only if it is not NULL.
2291 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2292 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2293 (struct probe_ops) <clear_semaphore>: Likewise.
2294 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2295 not NULL.
2296 (stop_tracing): Likewise, for clear_semaphore.
2297
2298 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2299
2300 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2301 using language_c, instead of current_language.
2302
2303 2014-10-13 Doug Evans <dje@google.com>
2304
2305 * python/py-objfile.c (objfpy_initialize): New function.
2306 (objfpy_new, objfile_to_objfile_object): Call it.
2307 * python/py-progspace.c (pspy_initialize): New function.
2308 (pspy_new, pspace_to_pspace_object): Call it.
2309
2310 2014-10-13 Miroslav Franc <mfranc@redhat.com>
2311 Jan Kratochvil <jan.kratochvil@redhat.com>
2312
2313 Fix "save breakpoints" for "catch" command.
2314 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2315 newline.
2316
2317 2014-10-12 Miroslav Franc <mfranc@redhat.com>
2318
2319 Fix "save breakpoints" for "disable $bpnum" command.
2320 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2321
2322 2014-10-10 Pedro Alves <palves@redhat.com>
2323
2324 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2325 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2326 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2327 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2328 and been removed.
2329 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2330 * configure.ac: Remove references to IRIX.
2331 * configure.host: Add *-*-irix* to the obsolete hosts section.
2332 Remove all other references to irix.
2333 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2334 Delete files.
2335
2336 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2337
2338 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2339 isn't valid, release the tdesc arch data and return NULL.
2340
2341 2014-10-10 Pedro Alves <palves@redhat.com>
2342
2343 * linux-tdep.c: Include observer.h.
2344 (linux_inferior_data): New global.
2345 (struct linux_info): New structure.
2346 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2347 (get_linux_inferior_data): New functions.
2348 (linux_vsyscall_range): Rename to ...
2349 (linux_vsyscall_range_raw): ... this.
2350 (linux_vsyscall_range): New function; handles caching.
2351 (_initialize_linux_tdep): Register linux_inferior_data. Install
2352 inferior_exit and inferior_appeared observers.
2353
2354 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2355 Pedro Alves <palves@redhat.com>
2356
2357 PR symtab/14466
2358 * solib-svr4.c (svr4_read_so_list): Rename to ...
2359 (svr4_current_sos_1): ... this and change the function comment.
2360 (svr4_current_sos): New function.
2361
2362 2014-10-10 Pedro Alves <palves@redhat.com>
2363
2364 * arch-utils.c (default_vsyscall_range): New function.
2365 * arch-utils.h (default_vsyscall_range): New declaration.
2366 * gdbarch.sh (vsyscall_range): New hook.
2367 * gdbarch.h, gdbarch.c: Regenerate.
2368 * linux-tdep.c (linux_vsyscall_range): New function.
2369 (linux_init_abi): Install linux_vsyscall_range as
2370 vsyscall_range gdbarch hook.
2371 * memrange.c (address_in_mem_range): New function.
2372 * memrange.h (address_in_mem_range): New declaration.
2373 * symfile-mem.c (find_vdso_size): Delete function.
2374 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2375
2376 2014-10-10 Pedro Alves <palves@redhat.com>
2377
2378 * infrun.c (normal_stop): Fix typo in comment.
2379
2380 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2381
2382 PR tdep/9390
2383 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2384 typo when using logical AND to determine instruction type.
2385
2386 2014-10-09 Yao Qi <yao@codesourcery.com>
2387
2388 * infrun.c (handle_signal_stop): Remove local variable
2389 'printed'.
2390
2391 2014-10-08 Stan Shebs <stan@codesourcery.com>
2392
2393 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2394
2395 2014-10-08 Gary Benson <gbenson@redhat.com>
2396
2397 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2398
2399 2014-10-08 Gary Benson <gbenson@redhat.com>
2400
2401 * common/common-defs.h: Include common-exceptions.h.
2402 * exceptions.h: Do not include common-exceptions.h.
2403
2404 2014-10-08 Gary Benson <gbenson@redhat.com>
2405
2406 * common/common-defs.h: Include cleanups.h.
2407 * common/common-exceptions.c: Do not include cleanups.h.
2408 * utils.h: Likewise.
2409
2410 2014-10-08 Gary Benson <gbenson@redhat.com>
2411
2412 * ada-lang.c: Do not include exceptions.h.
2413 * ada-valprint.c: Likewise.
2414 * amd64-tdep.c: Likewise.
2415 * auto-load.c: Likewise.
2416 * block.c: Likewise.
2417 * break-catch-throw.c: Likewise.
2418 * breakpoint.c: Likewise.
2419 * btrace.c: Likewise.
2420 * c-lang.c: Likewise.
2421 * cli/cli-cmds.c: Likewise.
2422 * cli/cli-interp.c: Likewise.
2423 * cli/cli-script.c: Likewise.
2424 * completer.c: Likewise.
2425 * corefile.c: Likewise.
2426 * corelow.c: Likewise.
2427 * cp-abi.c: Likewise.
2428 * cp-support.c: Likewise.
2429 * cp-valprint.c: Likewise.
2430 * darwin-nat.c: Likewise.
2431 * dwarf2-frame-tailcall.c: Likewise.
2432 * dwarf2-frame.c: Likewise.
2433 * dwarf2loc.c: Likewise.
2434 * dwarf2read.c: Likewise.
2435 * eval.c: Likewise.
2436 * event-loop.c: Likewise.
2437 * event-top.c: Likewise.
2438 * f-valprint.c: Likewise.
2439 * frame-unwind.c: Likewise.
2440 * frame.c: Likewise.
2441 * gdbtypes.c: Likewise.
2442 * gnu-v2-abi.c: Likewise.
2443 * gnu-v3-abi.c: Likewise.
2444 * guile/scm-auto-load.c: Likewise.
2445 * guile/scm-breakpoint.c: Likewise.
2446 * guile/scm-cmd.c: Likewise.
2447 * guile/scm-frame.c: Likewise.
2448 * guile/scm-lazy-string.c: Likewise.
2449 * guile/scm-param.c: Likewise.
2450 * guile/scm-symbol.c: Likewise.
2451 * guile/scm-type.c: Likewise.
2452 * hppa-hpux-tdep.c: Likewise.
2453 * i386-tdep.c: Likewise.
2454 * inf-loop.c: Likewise.
2455 * infcall.c: Likewise.
2456 * infcmd.c: Likewise.
2457 * infrun.c: Likewise.
2458 * interps.c: Likewise.
2459 * interps.h: Likewise.
2460 * jit.c: Likewise.
2461 * linespec.c: Likewise.
2462 * linux-nat.c: Likewise.
2463 * linux-thread-db.c: Likewise.
2464 * m32r-rom.c: Likewise.
2465 * main.c: Likewise.
2466 * memory-map.c: Likewise.
2467 * mi/mi-cmd-break.c: Likewise.
2468 * mi/mi-cmd-stack.c: Likewise.
2469 * mi/mi-interp.c: Likewise.
2470 * mi/mi-main.c: Likewise.
2471 * monitor.c: Likewise.
2472 * nto-procfs.c: Likewise.
2473 * objc-lang.c: Likewise.
2474 * p-valprint.c: Likewise.
2475 * parse.c: Likewise.
2476 * ppc-linux-tdep.c: Likewise.
2477 * printcmd.c: Likewise.
2478 * probe.c: Likewise.
2479 * python/py-auto-load.c: Likewise.
2480 * python/py-breakpoint.c: Likewise.
2481 * python/py-cmd.c: Likewise.
2482 * python/py-finishbreakpoint.c: Likewise.
2483 * python/py-frame.c: Likewise.
2484 * python/py-framefilter.c: Likewise.
2485 * python/py-function.c: Likewise.
2486 * python/py-gdb-readline.c: Likewise.
2487 * python/py-inferior.c: Likewise.
2488 * python/py-infthread.c: Likewise.
2489 * python/py-lazy-string.c: Likewise.
2490 * python/py-linetable.c: Likewise.
2491 * python/py-param.c: Likewise.
2492 * python/py-prettyprint.c: Likewise.
2493 * python/py-symbol.c: Likewise.
2494 * python/py-type.c: Likewise.
2495 * python/py-value.c: Likewise.
2496 * python/python-internal.h: Likewise.
2497 * python/python.c: Likewise.
2498 * record-btrace.c: Likewise.
2499 * record-full.c: Likewise.
2500 * regcache.c: Likewise.
2501 * remote-fileio.c: Likewise.
2502 * remote-mips.c: Likewise.
2503 * remote.c: Likewise.
2504 * rs6000-aix-tdep.c: Likewise.
2505 * rs6000-nat.c: Likewise.
2506 * skip.c: Likewise.
2507 * solib-darwin.c: Likewise.
2508 * solib-dsbt.c: Likewise.
2509 * solib-frv.c: Likewise.
2510 * solib-ia64-hpux.c: Likewise.
2511 * solib-spu.c: Likewise.
2512 * solib-svr4.c: Likewise.
2513 * solib.c: Likewise.
2514 * spu-tdep.c: Likewise.
2515 * stack.c: Likewise.
2516 * stap-probe.c: Likewise.
2517 * symfile-mem.c: Likewise.
2518 * symmisc.c: Likewise.
2519 * target.c: Likewise.
2520 * thread.c: Likewise.
2521 * top.c: Likewise.
2522 * tracepoint.c: Likewise.
2523 * tui/tui-interp.c: Likewise.
2524 * typeprint.c: Likewise.
2525 * utils.c: Likewise.
2526 * valarith.c: Likewise.
2527 * valops.c: Likewise.
2528 * valprint.c: Likewise.
2529 * value.c: Likewise.
2530 * varobj.c: Likewise.
2531 * windows-nat.c: Likewise.
2532 * xml-support.c: Likewise.
2533
2534 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2535
2536 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2537 name implies.
2538 (extended_mips16_next_pc): Update accordingly.
2539
2540 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2541
2542 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2543 function.
2544 (micromips_instruction_is_compact_branch): Likewise.
2545 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2546 or a compact jump, reaching a jump delay slot, or seeing a
2547 second non-prologue instruction.
2548 (micromips_scan_prologue): Also terminate scanning upon seeing a
2549 compact branch or jump, or reaching a branch or jump delay slot.
2550 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2551 or jump delay slot, or seeing a second non-prologue instruction.
2552 (mips32_instruction_has_delay_slot): Retain instruction
2553 examination code only, update arguments accordingly and move
2554 instruction fetch pieces to...
2555 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2556 (micromips_instruction_has_delay_slot): Likewise and to...
2557 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2558 (mips16_instruction_has_delay_slot): Likewise and to...
2559 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2560 (mips_single_step_through_delay): Update accordingly.
2561 (mips_adjust_breakpoint_address): Likewise.
2562
2563 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2564
2565 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2566 !mustbe32 also return 1 for 32-bit instructions.
2567 (mips16_instruction_has_delay_slot): Likewise. Add an
2568 explanatory comment.
2569
2570 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2571
2572 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2573 symbols special.
2574
2575 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2576
2577 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2578 update comments.
2579 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2580 for the breakpoint's address. Don't preinitialize `placed_size'.
2581 (insert_bp_location): Set `reqstd_address' rather than
2582 `placed_address'.
2583 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2584 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2585 address.
2586 (bkpt_remove_location): Likewise.
2587 (deprecated_insert_raw_breakpoint): Likewise.
2588 (deprecated_remove_raw_breakpoint): Likewise.
2589 (find_single_step_breakpoint): Likewise.
2590 * mem-break.c (default_memory_insert_breakpoint): Use
2591 `reqstd_address' for the breakpoint's address. Don't set
2592 `placed_address' or `placed_size' if breakpoint contents couldn't
2593 have been determined.
2594 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2595 the breakpoint's address.
2596 (remote_insert_hw_breakpoint): Likewise. Don't set
2597 `placed_address' or `placed_size' if breakpoint couldn't have been
2598 set.
2599 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2600 `reqstd_address' for the breakpoint's address.
2601 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2602 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2603 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2604 * microblaze-linux-tdep.c
2605 (microblaze_linux_memory_remove_breakpoint): Likewise.
2606 * monitor.c (monitor_insert_breakpoint): Likewise.
2607 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2608 (procfs_insert_hw_breakpoint): Likewise.
2609 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2610 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2611 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2612 * remote-mips.c (mips_insert_breakpoint): Likewise.
2613 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2614
2615 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2616
2617 * valops.c (value_assign): Check for bit field assignments
2618 before calling architecture-specific register value
2619 conversion functions.
2620
2621 2014-10-03 Pierre Muller <muller@sourceware.org>
2622
2623 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2624
2625 2014-10-02 Pedro Alves <palves@redhat.com>
2626
2627 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2628 threads_are_executing.
2629 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2630 describing comment.
2631 * gdbthread.h (threads_are_executing): Declare.
2632 (handle_signal_stop) <random signals>: Don't print about the
2633 signal here if stopping.
2634 (end_stepping_range): Don't notify observers here.
2635 (normal_stop): Update the thread list. If stopped by a random
2636 signal or a stepping range ended, notify observers.
2637 * thread.c (threads_executing): New global.
2638 (init_thread_list): Clear 'threads_executing'.
2639 (set_executing): Set or clear 'threads_executing'.
2640 (threads_are_executing): New function.
2641 (update_threads_executing): New function.
2642 (update_thread_list): Use it.
2643
2644 2014-10-02 Pedro Alves <palves@redhat.com>
2645
2646 PR breakpoints/17431
2647 * breakpoint.c (update_breakpoints_after_exec): Don't create
2648 overlay, longjmp, std terminate nor exception breakpoints here.
2649
2650 2014-10-02 Pedro Alves <palves@redhat.com>
2651
2652 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2653 Adjust comments.
2654 * inferior.c (find_inferior_for_program_space): Give preference to
2655 the current inferior.
2656 * inferior.h (find_inferior_for_program_space): Update comment.
2657 * progspace.c (switch_to_program_space_and_thread): Prefer the
2658 current inferior if it's bound to the program space requested. If
2659 the inferior found doesn't have a PID yet, don't bother looking up
2660 a thread.
2661 * progspace.h (switch_to_program_space_and_thread): Adjust
2662 comment.
2663 * thread.c (any_thread_of_process, any_live_thread_of_process):
2664 Give preference to the current thread.
2665
2666 2014-10-01 Pedro Alves <palves@redhat.com>
2667
2668 * breakpoint.c (insert_bp_location): Error out if inserting a
2669 software breakpoint at a read-only address.
2670 * target.c (memory_xfer_check_region): New function, factored out
2671 from ...
2672 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2673 ULONGEST.
2674 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2675 against the memory region attributes.
2676
2677 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2678
2679 * NEWS: Announce new exit-code field in -list-thread-groups
2680 output.
2681 * inferior.c (exit_inferior_1): Don't clear exit code.
2682 (inferior_appeared): Clear exit code.
2683 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2684 code.
2685
2686 2014-10-01 Pedro Alves <palves@redhat.com>
2687
2688 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2689 GENERATED" along with emacs/vi read-only markers.
2690 * regformats/aarch64.dat: Regenerate.
2691 * regformats/arm-with-iwmmxt.dat: Regenerate.
2692 * regformats/arm-with-neon.dat: Regenerate.
2693 * regformats/arm-with-vfpv2.dat: Regenerate.
2694 * regformats/arm-with-vfpv3.dat: Regenerate.
2695 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2696 * regformats/i386/amd64-avx.dat: Regenerate.
2697 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2698 * regformats/i386/amd64-avx512.dat: Regenerate.
2699 * regformats/i386/amd64-linux.dat: Regenerate.
2700 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2701 * regformats/i386/amd64-mpx.dat: Regenerate.
2702 * regformats/i386/amd64.dat: Regenerate.
2703 * regformats/i386/i386-avx-linux.dat: Regenerate.
2704 * regformats/i386/i386-avx.dat: Regenerate.
2705 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2706 * regformats/i386/i386-avx512.dat: Regenerate.
2707 * regformats/i386/i386-linux.dat: Regenerate.
2708 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2709 * regformats/i386/i386-mmx.dat: Regenerate.
2710 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2711 * regformats/i386/i386-mpx.dat: Regenerate.
2712 * regformats/i386/i386.dat: Regenerate.
2713 * regformats/i386/x32-avx-linux.dat: Regenerate.
2714 * regformats/i386/x32-avx.dat: Regenerate.
2715 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2716 * regformats/i386/x32-avx512.dat: Regenerate.
2717 * regformats/i386/x32-linux.dat: Regenerate.
2718 * regformats/i386/x32.dat: Regenerate.
2719 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2720 * regformats/mips-dsp-linux.dat: Regenerate.
2721 * regformats/mips-linux.dat: Regenerate.
2722 * regformats/mips64-dsp-linux.dat: Regenerate.
2723 * regformats/mips64-linux.dat: Regenerate.
2724 * regformats/nios2-linux.dat: Regenerate.
2725 * regformats/rs6000/powerpc-32.dat: Regenerate.
2726 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2727 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2728 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2729 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2730 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2731 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2732 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2733 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2734 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2735 * regformats/s390-linux32.dat: Regenerate.
2736 * regformats/s390-linux32v1.dat: Regenerate.
2737 * regformats/s390-linux32v2.dat: Regenerate.
2738 * regformats/s390-linux64.dat: Regenerate.
2739 * regformats/s390-linux64v1.dat: Regenerate.
2740 * regformats/s390-linux64v2.dat: Regenerate.
2741 * regformats/s390-te-linux64.dat: Regenerate.
2742 * regformats/s390x-linux64.dat: Regenerate.
2743 * regformats/s390x-linux64v1.dat: Regenerate.
2744 * regformats/s390x-linux64v2.dat: Regenerate.
2745 * regformats/s390x-te-linux64.dat: Regenerate.
2746 * regformats/tic6x-c62x-linux.dat: Regenerate.
2747 * regformats/tic6x-c62x.dat: Regenerate.
2748 * regformats/tic6x-c64x-linux.dat: Regenerate.
2749 * regformats/tic6x-c64x.dat: Regenerate.
2750 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2751 * regformats/tic6x-c64xp.dat: Regenerate.
2752
2753 2014-10-01 Pedro Alves <palves@redhat.com>
2754
2755 * features/Makefile: Update comments.
2756 (XMLTOC): List all xml files we build C files from.
2757 (clean-cfiles): New rule.
2758
2759 2014-10-01 Pedro Alves <palves@redhat.com>
2760
2761 * features/i386/amd64-avx512-linux.c: Regenerate.
2762 * features/i386/amd64-avx512.c: Regenerate.
2763 * features/i386/x32-avx512-linux.c: Regenerate.
2764 * features/i386/x32-avx512.c: Regenerate.
2765
2766 2014-10-01 Pedro Alves <palves@redhat.com>
2767
2768 * features/Makefile (WHICH): Remove arm-with-m,
2769 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2770
2771 2014-10-01 Pedro Alves <palves@redhat.com>
2772
2773 * features/Makefile (clean): New rule.
2774
2775 2014-10-01 Pedro Alves <palves@redhat.com>
2776
2777 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2778 (zmm14h): Add missing end quotes.
2779
2780 2014-10-01 Pedro Alves <palves@redhat.com>
2781
2782 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2783 * features/aarch64.c: Regenerate.
2784
2785 2014-09-30 Don Breazeal <donb@codesourcery.com>
2786
2787 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2788 code so as to work with follow_fork_inferior.
2789 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2790 (inf_ttrace_create_inferior): Remove reference to
2791 inf_ttrace_vfork_ppid.
2792 (inf_ttrace_attach): Ditto.
2793 (inf_ttrace_detach): Ditto.
2794 (inf_ttrace_kill): Use current_inferior instead of
2795 inf_ttrace_vfork_ppid.
2796 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2797 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2798 inferior away from the parent.
2799 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2800 target_follow_fork.
2801 (follow_fork_inferior): New function.
2802 (follow_inferior_reset_breakpoints): Make function static.
2803 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2804 * linux-nat.c (linux_child_follow_fork): Move target-independent
2805 code to infrun.c:follow_fork_inferior.
2806
2807 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2808
2809 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2810 * gdbarch.c: Regenerate.
2811 * gdbarch.h: Likewise.
2812 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2813 gdbarch method 'regset_from_core_section'.
2814 (get_core_register_section): Remove handling for the case that
2815 regset == NULL and regset_from_core_section is defined.
2816 (get_core_registers): Drop check for deleted method.
2817 * procfs.c (procfs_do_thread_registers): Adjust comment.
2818
2819 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2820
2821 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2822 (linux_nat_make_corefile_notes): Remove.
2823 (linux_target_install_ops): Do not set target method
2824 'make_corefile_notes'.
2825 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2826 Remove field.
2827 (linux_corefile_thread_callback): Instead of args->collect, call
2828 linux_collect_thread_registers.
2829 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2830 NULL unless there is a regset iterator.
2831 (linux_make_corefile_notes_1): Remove.
2832 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2833 by linux_make_corefile_notes.
2834 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2835
2836 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2837
2838 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2839 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2840 Remove.
2841 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2842
2843 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2844
2845 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2846 (xtensa_iterate_over_regset_sections): New.
2847 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2848
2849 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2850
2851 * vax-tdep.c (vax_regset_from_core_section): Remove.
2852 (vax_iterate_over_regset_sections): New.
2853 (vax_gdbarch_init): Adjust gdbarch initialization.
2854
2855 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2856
2857 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2858 (tilegx_regset_from_core_section): Remove.
2859 (tilegx_iterate_over_regset_sections): New.
2860 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2861
2862 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2863
2864 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2865 (sparc_iterate_over_regset_sections): New.
2866 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2867 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2868 targets.
2869 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2870 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2871 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2872 target method 'make_corefile_notes'.
2873
2874 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2875
2876 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2877 'sizeof_gregset' and 'sizeof_fpregset'.
2878 * sh-tdep.c (sh_regset_from_core_section): Remove.
2879 (sh_iterate_over_regset_sections): New.
2880 (sh_gdbarch_init): Adjust gdbarch initialization.
2881 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2882 sizeof_fpregset.
2883 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2884 'sizeof_gregset'.
2885
2886 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2887
2888 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2889 (score7_linux_iterate_over_regset_sections): New.
2890 (score_gdbarch_init): Adjust gdbarch initialization.
2891
2892 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2893
2894 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2895 FreeBSD targets.
2896 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2897 method 'make_corefile_notes'.
2898 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2899 (ppcfbsd_regset_from_core_section): Remove.
2900 (ppcfbsd_iterate_over_regset_sections): New.
2901 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2902 initialization.
2903 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2904 (ppcnbsd_iterate_over_regset_sections): New.
2905 (ppcnbsd_init_abi): Adjust.
2906 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2907 (ppcobsd_iterate_over_regset_sections): New.
2908 (ppcobsd_init_abi): Adjust.
2909 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2910 (rs6000_aix_iterate_over_regset_sections): New.
2911 (rs6000_aix_init_osabi): Adjust.
2912
2913 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2914
2915 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2916 (nios2_regset_from_core_section): Remove.
2917 (nios2_iterate_over_regset_sections): New.
2918 (nios2_linux_init_abi): Adjust gdbarch initialization.
2919
2920 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2921
2922 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2923 (am33_iterate_over_regset_sections): New.
2924 (am33_linux_init_osabi): Adjust gdbarch initialization.
2925
2926 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2927
2928 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2929 (mips_linux_iterate_over_regset_sections): New.
2930 (mips_linux_init_abi): Adjust gdbarch initialization.
2931 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2932 (mips64obsd_iterate_over_regset_sections): New.
2933 (mips64obsd_init_abi): Adjust.
2934 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2935 (mipsnbsd_iterate_over_regset_sections): New.
2936 (mipsnbsd_init_abi): Adjust.
2937
2938 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2939
2940 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2941 (m88k_iterate_over_regset_sections): New.
2942 (m88k_gdbarch_init): Adjust gdbarch initialization.
2943
2944 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2945
2946 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2947 (ia64_linux_iterate_over_regset_sections): New.
2948 (ia64_linux_init_abi): Adjust gdbarch initialization.
2949
2950 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2951
2952 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2953 (m68kbsd_iterate_over_regset_sections): New.
2954 (m68kbsd_init_abi): Adjust gdbarch initialization.
2955 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2956 (m68k_linux_iterate_over_regset_sections): New.
2957 (m68k_linux_init_abi): Adjust gdbarch initialization.
2958
2959 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2960
2961 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2962 (m32r_linux_regset_from_core_section): Remove.
2963 (m32r_linux_iterate_over_regset_sections): New.
2964 (m32r_linux_init_abi): Adjust gdbarch initialization.
2965
2966 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2967
2968 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2969 (amd64obsd_iterate_over_regset_sections): New.
2970 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2971 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2972 Remove.
2973 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2974 regset_from_core_section initialization.
2975 * i386-tdep.c (i386_regset_from_core_section): Remove.
2976 (i386_iterate_over_regset_sections): New.
2977 (i386_gdbarch_init): Adjust gdbarch initialization.
2978 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2979 (i386_iterate_over_regset_sections): New prototype.
2980 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2981 Remove.
2982 (i386obsd_aout_iterate_over_regset_sections): New.
2983 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2984 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2985 targets.
2986 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2987 (amd64fbsd_init_abi): Call fbsd_init_abi.
2988 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2989 (i386fbsd4_init_abi): Call fbsd_init_abi.
2990 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2991 target method 'make_corefile_notes'.
2992 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2993
2994 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2995
2996 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2997 (hppa_hpux_iterate_over_regset_sections): New.
2998 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2999 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
3000 (hppa_linux_iterate_over_regset_sections): New.
3001 (hppa_linux_init_abi): Adjust.
3002 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3003 (hppanbsd_iterate_over_regset_sections): New.
3004 (hppanbsd_init_abi): Adjust.
3005 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3006 (hppaobsd_iterate_over_regset_sections): New.
3007 (hppaobsd_init_abi): Adjust.
3008
3009 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3010
3011 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
3012 (frv_linux_iterate_over_regset_sections): New.
3013 (frv_linux_init_abi): Adjust gdbarch initialization.
3014
3015 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3016
3017 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
3018 (armbsd_iterate_over_regset_sections): New prototype.
3019 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
3020 (armbsd_iterate_over_regset_sections): New.
3021 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
3022 initialization.
3023
3024 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3025
3026 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
3027 (alpha_linux_iterate_over_regset_sections): New.
3028 (alpha_linux_init_abi): Adjust gdbarch initialization.
3029 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
3030 prototype.
3031 (alphanbsd_iterate_over_regset_sections): New prototype.
3032
3033 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3034
3035 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
3036 Remove.
3037 (aarch64_linux_iterate_over_regset_sections): New.
3038 (aarch64_linux_init_abi): Adjust gdbarch initialization.
3039
3040 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3041
3042 * fbsd-tdep.c: New file.
3043 * fbsd-tdep.h: New file.
3044 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
3045 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
3046 (ALLDEPFILES): Add fbsd-tdep.c.
3047
3048 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3049
3050 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
3051 parameter.
3052 * gdbarch.h: Regenerate.
3053 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
3054 iterator.
3055 (get_core_register_section): Add parameter 'regset' and use it, if
3056 set. Add parameter 'min_size' and verify the bfd section size
3057 against it.
3058 (get_core_registers_cb): Add parameter 'regset' and pass it to
3059 get_core_register section. For the "standard" register sections
3060 ".reg" and ".reg2", set an appropriate default for human_name.
3061 (get_core_registers): Don't abort when the gdbarch has an iterator
3062 but no regset_from_core_section. Add NULL/0 for parameters
3063 'regset'/'min_size' in calls to get_core_register_section.
3064 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
3065 'regset' and use it instead of calling the
3066 regset_from_core_section gdbarch method.
3067 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
3068 * i386-tdep.c (i386_supply_xstateregset)
3069 (i386_collect_xstateregset, i386_xstateregset): Moved to
3070 i386-linux-tdep.c.
3071 (i386_regset_from_core_section): Drop handling for .reg-xfp and
3072 .reg-xstate.
3073 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
3074 core file support only if the regset iterator hasn't been set.
3075 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
3076 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
3077 Moved from i386-tdep.c and renamed to *_linux*.
3078 (i386_linux_iterate_over_regset_sections): Add regset parameter to
3079 each callback invocation. Allow any .reg-xstate size when reading
3080 from a core file.
3081 * amd64-tdep.c (amd64_supply_xstateregset)
3082 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
3083 amd64-linux-tdep.c.
3084 (amd64_regset_from_core_section): Remove.
3085 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
3086 install an amd64-specific regset_from_core_section gdbarch method.
3087 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
3088 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
3089 Moved from amd64-tdep.c and renamed to *_linux*.
3090 (amd64_linux_iterate_over_regset_sections): Add regset parameter
3091 to each callback invocation. Allow any .reg-xstate size when
3092 reading from a core file.
3093 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
3094 (arm_linux_iterate_over_regset_sections): Add regset parameter to
3095 each callback invocation.
3096 (arm_linux_init_abi): No longer set the regset_from_core_section
3097 gdbarch method.
3098 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
3099 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
3100 each callback invocation.
3101 (ppc_linux_init_abi): No longer set the regset_from_core_section
3102 gdbarch method.
3103 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
3104 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
3105 (s390_regset_from_core_section): Remove.
3106 (s390_iterate_over_regset_sections): Add regset parameter to each
3107 callback invocation.
3108 (s390_gdbarch_init): No longer set the regset_from_core_section
3109 gdbarch method. Drop initialization of deleted tdep fields.
3110
3111 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3112
3113 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
3114 (amd64_linux_iterate_over_regset_sections): New.
3115 (amd64_linux_init_abi_common): Don't install the regset section
3116 list, but the new iterator in gdbarch.
3117 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
3118 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
3119 (arm_linux_iterate_over_regset_sections): ...here. New function.
3120 (arm_linux_init_abi): Set iterator instead of section list.
3121 * corelow.c (get_core_registers_cb): New function, logic moved
3122 from...
3123 (get_core_registers): ...loop body here. Use new iterator method
3124 instead of walking through the regset section list.
3125 * gdbarch.sh: Remove 'core_regset_sections'. New method
3126 'iterate_over_regset_sections'. New typedef
3127 'iterate_over_regset_sections_cb'.
3128 * gdbarch.c: Regenerate.
3129 * gdbarch.h: Likewise.
3130 * i386-linux-tdep.c (i386_linux_regset_sections)
3131 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3132 Remove.
3133 (i386_linux_iterate_over_regset_sections): New.
3134 (i386_linux_init_abi): Don't choose a regset section list, but
3135 install new iterator in gdbarch.
3136 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
3137 (linux_collect_regset_section_cb): New function, logic moved
3138 from...
3139 (linux_collect_thread_registers): ...loop body here. Use iterator
3140 method instead of walking through list.
3141 (linux_make_corefile_notes_1): Check for presence of iterator
3142 method instead of regset section list.
3143 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
3144 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
3145 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
3146 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
3147 (ppc_linux_iterate_over_regset_sections): ...here. New function.
3148 (ppc_linux_init_abi): Don't choose from above regset section
3149 lists, but install new iterator in gdbarch.
3150 * regset.h (struct core_regset_section): Remove.
3151 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
3152 have_linux_v1, have_linux_v2, and have_tdb.
3153 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
3154 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
3155 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
3156 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
3157 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
3158 (s390_iterate_over_regset_sections): ...here. New function. Use
3159 new tdep fields.
3160 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
3161 regset section lists, but install new iterator.
3162
3163 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3164
3165 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
3166
3167 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
3168
3169 * progspace.c (print_program_space): Don't prune program spaces
3170 before printing them.
3171
3172 2014-09-25 Pedro Alves <palves@redhat.com>
3173
3174 * infrun.c (user_visible_resume_ptid): Don't check
3175 singlestep_breakpoints_inserted_p.
3176
3177 2014-09-25 Pedro Alves <palves@redhat.com>
3178
3179 * breakpoint.c (should_be_inserted): Add debug output.
3180
3181 2014-09-25 Pedro Alves <palves@redhat.com>
3182
3183 * infrun.c (stepping_past_instruction_at)
3184 (clear_exit_convenience_vars): Point at infrun.h instead of
3185 inferior.h.
3186 (handle_signal_stop): Fix typo.
3187
3188 2014-09-24 Yao Qi <yao@codesourcery.com>
3189
3190 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
3191 bitmask.
3192
3193 2014-09-22 Gary Benson <gbenson@redhat.com>
3194
3195 * target.c (target_stop): Updated comment.
3196
3197 2014-09-22 Gary Benson <gbenson@redhat.com>
3198
3199 * target/target.h (target_stop_ptid): Renamed as...
3200 (target_stop_and_wait): New function. Updated comment.
3201 All uses updated.
3202 (target_continue_ptid): Renamed as...
3203 (target_continue_no_signal): New function. Updated comment.
3204 All uses updated.
3205
3206 2014-09-22 Pedro Alves <palves@redhat.com>
3207
3208 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3209 and "auto" merged.
3210 * breakpoint.c (enum ugll_insert_mode): New enum.
3211 (always_inserted_mode): Now a plain boolean.
3212 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3213 (breakpoints_always_inserted_mode): Delete.
3214 (breakpoints_should_be_inserted_now): New function.
3215 (insert_breakpoints): Pass UGLL_INSERT to
3216 update_global_location_list instead of calling
3217 insert_breakpoint_locations manually.
3218 (create_solib_event_breakpoint_1): New, factored out from ...
3219 (create_solib_event_breakpoint): ... this.
3220 (create_and_insert_solib_event_breakpoint): Use
3221 create_solib_event_breakpoint_1 instead of calling
3222 insert_breakpoint_locations manually.
3223 (update_global_location_list): Change parameter type from boolean
3224 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3225 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3226 (update_global_location_list_nothrow): Change parameter type from
3227 boolean to enum ugll_insert_mode.
3228 (_initialize_breakpoint): "breakpoint always-inserted" option is
3229 now a boolean command. Update help text.
3230 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3231 (breakpoints_should_be_inserted_now): New declaration.
3232 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3233 Remove breakpoints_always_inserted_mode check.
3234 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3235 * remote.c (remote_start_remote): Likewise.
3236
3237 2014-09-22 Pedro Alves <palves@redhat.com>
3238
3239 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3240 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3241 Instead, pass UGLL_INSERT to update_global_location_list.
3242 (update_global_location_list): Change parameter type from boolean
3243 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3244 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3245 (create_solib_event_breakpoint_1): New, factored out from ...
3246 (create_solib_event_breakpoint): ... this.
3247 (create_and_insert_solib_event_breakpoint): Use
3248 create_solib_event_breakpoint_1 instead of calling
3249 insert_breakpoint_locations manually.
3250 (update_global_location_list): Handle UGLL_INSERT.
3251
3252 2014-09-22 Pedro Alves <palves@redhat.com>
3253
3254 * breakpoint.c (enum ugll_insert_mode): New enum.
3255 (update_global_location_list)
3256 (update_global_location_list_nothrow): Change parameter type from
3257 boolean to enum ugll_insert_mode. All callers adjusted.
3258
3259 2014-09-19 Joel Brobecker <brobecker@adacore.com>
3260
3261 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3262 SystemTap support in GDB.
3263
3264 2014-09-19 Don Breazeal <donb@codesourcery.com>
3265
3266 * linux-nat.c (linux_handle_extended_wait): Call
3267 linux_ptrace_get_extended_event.
3268 (wait_lwp): Call linux_is_extended_waitstatus.
3269 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3270 and linux_is_extended_waitstatus.
3271 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3272 linux_ptrace_get_extended_event.
3273 (linux_ptrace_get_extended_event): New function.
3274 (linux_is_extended_waitstatus): New function.
3275 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3276 (linux_is_extended_waitstatus): New declarations.
3277
3278 2014-09-19 Yao Qi <yao@codesourcery.com>
3279
3280 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3281 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3282 comments. Callers update.
3283 (dwarf_decode_lines): Likewise.
3284 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3285 comments. Skip the line table if 'lowpc' is greater than
3286 'address'. Don't check
3287 dwarf2_per_objfile->has_section_at_zero.
3288
3289 2014-09-18 Doug Evans <dje@google.com>
3290
3291 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3292 * python/py-symtab.c (stpy_get_producer): New function.
3293 (symtab_object_getset): Add "producer" attribute.
3294
3295 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
3296
3297 PR gdb/17384
3298 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3299 (do_captured_read_memory_integer): Remove.
3300 (safe_read_memory_integer): Use target_read_memory directly instead
3301 of catching errors in do_captured_read_memory_integer.
3302
3303 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3304
3305 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3306 not gdb/doc.
3307
3308 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3309
3310 * objc-lang.c (find_implementation_from_class): Remove dead code.
3311
3312 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3313
3314 PR cli/7233
3315 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3316 "fprintf_unfiltered (gdb_stdlog...)".
3317
3318 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3319
3320 PR breakpoints/12526
3321 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3322 val_bitsize.
3323 * breakpoint.c (watch_command_1): Use these fields to retain
3324 bitfield information.
3325 (extract_bitfield_from_watchpoint_value): New function.
3326 (watchpoint_check): Use it.
3327 (update_watchpoint): Use it. Optimize the address and length of a
3328 HW watchpoint pointing to a bitfield.
3329 * value.h (unpack_value_bitfield): New prototype.
3330 * value.c (unpack_value_bitfield): Make extern.
3331
3332 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3333
3334 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3335 x86-dregs.o.
3336 * gnu-nat.c (inf_threads): New function.
3337 * gnu-nat.h (inf_threads_ftype): New typedef.
3338 (inf_threads): New declaration.
3339 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3340 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3341 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3342 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3343 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3344 (i386_gnu_dr_get_control): New functions.
3345 (reg_addr): New structure.
3346 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3347 i386 debugging register hooks.
3348 * NEWS: Mention this.
3349
3350 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3351
3352 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3353 vector data transfer instructions.
3354 (arm_record_coproc_data_proc): Updated.
3355
3356 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3357
3358 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3359 arm_record_exreg_ld_st_insn.
3360 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3361 load/store insns.
3362
3363 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3364
3365 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3366 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3367 processing instructions.
3368
3369 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3370
3371 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3372 for advance SIMD struct ld/st insn.
3373 (thumb2_record_decode_insn_handler): Replace stub handler with
3374 thumb2_record_asimd_struct_ld_st.
3375
3376 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3377
3378 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3379 for asimd, vfp and coprocessor insns.
3380 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3381 and coprocessor insns.
3382 (thumb2_record_coproc_insn): New function.
3383 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3384 handlers.
3385 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3386 opcode 110 insns.
3387
3388 2014-09-13 Doug Evans <xdje42@gmail.com>
3389
3390 * NEWS: Mention new "queue-signal" command.
3391 * infcmd.c (queue_signal_command): New function.
3392 (_initialize_infcmd): Add new queue-signal command.
3393
3394 2014-09-13 Doug Evans <xdje42@gmail.com>
3395
3396 * linux-nat.c (wait_lwp): Add debugging printf.
3397 (linux_nat_wait_1): Ditto.
3398
3399 2014-09-12 Pedro Alves <palves@redhat.com>
3400
3401 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3402 (create_and_insert_solib_event_breakpoint): New functions.
3403 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3404 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3405 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3406 (remove_dbx_link_breakpoint): Delete function.
3407 (insert_dbx_link_bpt_in_file): Use
3408 create_and_insert_solib_event_breakpoint instead of
3409 deprecated_insert_raw_breakpoint.
3410 (procfs_wait): Don't check whether we hit __dbx_link here.
3411 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3412 here.
3413 * solib-irix.c (base_breakpoint): Delete global.
3414 (disable_break): Delete function.
3415 (enable_break): Use create_solib_event_breakpoint
3416 instead of deprecated_insert_raw_breakpoint.
3417 (irix_solib_handle_event): New function.
3418 (irix_solib_create_inferior_hook): Don't run the target or disable
3419 the mapping-complete breakpoint here.
3420 (_initialize_irix_solib): Install irix_solib_handle_event as
3421 so_ops->handle_event hook.
3422
3423 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3424 Ulrich Weigand  <uweigand@de.ibm.com>
3425
3426 PR tdep/17379
3427 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3428 instead of read_memory_unsigned_integer.
3429
3430 2014-09-12 Gary Benson <gbenson@redhat.com>
3431
3432 * nat/linux-waitpid.c: Include common-defs.h.
3433 [GDBSERVER]: Add FIXME comment.
3434 [!GDBSERVER]: Don't include defs.h or signal.h.
3435 (linux_debug) [!GDBSERVER]: Remove empty block.
3436
3437 2014-09-12 Gary Benson <gbenson@redhat.com>
3438
3439 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3440 Don't include defs.h or server.h.
3441
3442 2014-09-12 Gary Benson <gbenson@redhat.com>
3443
3444 * nat/linux-btrace.c: Include common-defs.h.
3445 Don't include defs.h, server.h or gdbthread.h.
3446 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3447
3448 2014-09-12 Gary Benson <gbenson@redhat.com>
3449
3450 * common/agent.c: Include common-defs.h.
3451 Don't include defs.h or server.h.
3452 * common/buffer.c: Likewise.
3453 * common/common-debug.c: Likewise.
3454 * common/common-utils.c: Likewise.
3455 * common/errors.c: Likewise.
3456 * common/filestuff.c: Likewise.
3457 * common/format.c: Likewise.
3458 * common/gdb_vecs.c: Likewise.
3459 * common/print-utils.c: Likewise.
3460 * common/ptid.c: Likewise.
3461 * common/rsp-low.c: Likewise.
3462 * common/signals.c: Likewise.
3463 * common/vec.c: Likewise.
3464 * common/xml-utils.c: Likewise.
3465 * nat/linux-osdata.c: Likewise.
3466 * nat/linux-procfs.c: Likewise.
3467 * nat/linux-ptrace.c: Likewise.
3468 * nat/mips-linux-watch.c: Likewise.
3469 * target/waitstatus.c: Likewise.
3470
3471 2014-09-12 Tom Tromey <tromey@redhat.com>
3472 Gary Benson <gbenson@redhat.com>
3473
3474 * common/common-regcache.h: New file.
3475 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3476 * regcache.h: Include common-regcache.h.
3477 (regcache_read_pc): Don't declare.
3478 * regcache.c (get_thread_regcache_for_ptid): New function.
3479 * nat/linux-btrace.c: Don't include regcache.h.
3480 Include common-regcache.h.
3481 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3482
3483 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3484
3485 * regcache.h (struct regset): Declare.
3486
3487 2014-09-11 Pedro Alves <palves@redhat.com>
3488
3489 PR gdb/17347
3490 * main.c: Include "infrun.h".
3491 (catch_command_errors, catch_command_errors_const): Wait for the
3492 foreground command to complete.
3493 * top.c (maybe_wait_sync_command_done): New function, factored out
3494 from ...
3495 (maybe_wait_sync_command_done): ... here.
3496 * top.h (maybe_wait_sync_command_done): New declaration.
3497
3498 2014-09-11 Tom Tromey <tromey@redhat.com>
3499 Gary Benson <gbenson@redhat.com>
3500
3501 * common/symbol.h: New file.
3502 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3503 * minsyms.c (find_minimal_symbol_address): New function.
3504 * common/agent.c: Include common/symbol.h.
3505 [!GDBSERVER]: Don't include objfiles.h.
3506 (agent_look_up_symbols): Use find_minimal_symbol_address.
3507
3508 2014-09-11 Gary Benson <gbenson@redhat.com>
3509
3510 * target/target.h (target_stop_ptid, target_continue_ptid):
3511 Declare.
3512 * target.c (target_stop_ptid, target_continue_ptid): New
3513 functions.
3514 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3515 (agent_run_command): Always use target_stop_ptid and
3516 target_continue_ptid.
3517
3518 2014-09-11 Tom Tromey <tromey@redhat.com>
3519 Gary Benson <gbenson@redhat.com>
3520
3521 * target/target.h: New file.
3522 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3523 * target.h: Include target/target.h.
3524 (target_read_memory, target_write_memory): Don't declare.
3525 * target.c (target_read_uint32): New function.
3526 * common/agent.c: Include target/target.h.
3527 [!GDBSERVER]: Don't include target.h.
3528 (helper_thread_id): Type changed to uint32_t.
3529 (agent_get_helper_thread_id): Use target_read_uint32.
3530 (agent_run_command): Always use target_read_memory and
3531 target_write_memory.
3532 (agent_capability): Type changed to uint32_t.
3533 (agent_capability_check): Use target_read_uint32.
3534
3535 2014-09-11 Gary Benson <gbenson@redhat.com>
3536
3537 * common/common-debug.h (show_debug_regs): Declare.
3538 * common/common-debug.c (show_debug_regs): Define.
3539 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3540 all uses with show_debug_regs. Replace all uses that considered
3541 debug_hw_points as a multi-value integer with straight boolean
3542 uses.
3543 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3544 with show_debug_regs.
3545 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3546 all uses with show_debug_regs.
3547 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3548 uses with show_debug_regs.
3549
3550 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3551
3552 * findvar.c (address_from_register): Handle targets requiring
3553 a special conversion routine even for plain pointer types.
3554
3555 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3556
3557 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3558 (store_register): Do not call exec_one_dummy_insn.
3559
3560 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3561
3562 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3563 dereference it first. Use value_enclosing_type instead of
3564 value_type.
3565 (ada_array_length): Likewise.
3566
3567 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3568
3569 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3570 Adjust function implementation and documentation accordingly.
3571 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3572 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3573 Update call to ada_value_ptr_subscript.
3574
3575 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3576
3577 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3578 instead of VAL's type.
3579
3580 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3581
3582 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3583
3584 2014-09-09 Doug Evans <xdje42@gmail.com>
3585
3586 PR guile/17367
3587 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3588 last parameter to pkg-config, not first.
3589 * configure.ac: Pass --with-guile provided pkg-config path to
3590 GDB_GUILE_PROGRAM_NAMES.
3591 * configure: Regenerate.
3592
3593 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3594
3595 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3596 Bertazi".
3597
3598 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3599
3600 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3601 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3602 the list of sections determining GDB_OSABI_IRIX.
3603
3604 2014-09-09 James Hogan <james.hogan@imgtec.com>
3605
3606 * MAINTAINERS (Write After Approval): Add "James Hogan".
3607
3608 2014-09-09 James Hogan <james.hogan@imgtec.com>
3609
3610 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3611
3612 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3613
3614 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3615
3616 2014-09-08 Doug Evans <xdje42@gmail.com>
3617
3618 PR 17247
3619 * guile.c: #include <signal.h>.
3620 (_initialize_guile): Block SIGCHLD while initializing Guile.
3621
3622 Replaces the following, which is reverted.
3623
3624 2014-07-26 Doug Evans <xdje42@gmail.com>
3625
3626 PR 17185
3627 * configure.ac: Add check for header gc/gc.h.
3628 Add check for function setenv.
3629 * configure: Regenerate.
3630 * config.in: Regenerate.
3631 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3632
3633 2014-09-08 Doug Evans <xdje42@gmail.com>
3634
3635 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3636 with named constant. Fix style of pointer comparison.
3637 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3638
3639 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3640
3641 PR gdb/17035
3642 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3643 decide whether we display the command on "show user".
3644 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3645 printing command name.
3646 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3647 * cli/cli-decode.c (cli_user_command_p): Create helper function
3648 to verify whether cmd_list_element is a user-defined command.
3649
3650 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3651
3652 PR python/17355
3653 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3654 Fix goto out of TRY_CATCH.
3655
3656 2014-09-06 Doug Evans <xdje42@gmail.com>
3657 Tom Tromey <tromey@redhat.com>
3658
3659 PR 15276
3660 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3661 $_any_caller_matches.
3662 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3663 * python/lib/gdb/function/caller_is.py: New file.
3664
3665 2014-09-06 Doug Evans <xdje42@gmail.com>
3666
3667 * infcmd.c (program_info): Fix typo.
3668
3669 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3670
3671 PR gdb/17235
3672 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3673 'number'. New variable 'has_digit'. Rewrite code to deal with
3674 subexpressions on SDT probes.
3675
3676 2014-09-04 Pedro Alves <palves@redhat.com>
3677
3678 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3679 the input is only one character long.
3680
3681 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3682
3683 PR fortran/17237
3684 * f-valprint.c (f_val_print): Specify the correct print option to
3685 use when printing integer values.
3686
3687 2014-09-04 Gary Benson <gbenson@redhat.com>
3688
3689 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3690 Remove code to cope with LWPs wrapped as PIDs.
3691 Add assertions to ensure no wrapped LWPs are passed.
3692
3693 2014-09-04 Pedro Alves <palves@redhat.com>
3694
3695 * value.c (value_ranges_copy_adjusted): New function, factored out
3696 from ...
3697 (value_contents_copy_raw): ... here.
3698 (unpack_value_bits_as_long_1): Rename back to ...
3699 (unpack_bits_as_long): ... this. Remove 'original_value' and
3700 'result' parameters. Change return type to LONGEST.
3701 (unpack_value_bits_as_long): Delete.
3702 (unpack_value_field_as_long_1): Delete.
3703 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3704 (unpack_value_bitfield): New function.
3705 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3706 (value_fetch_lazy): Use unpack_value_bitfield.
3707 * value.h (unpack_value_bits_as_long): Delete declaration.
3708
3709 2014-09-03 Sasha Smundak <asmundak@google.com>
3710
3711 * python/py-frame.c (frapy_read_register): New function.
3712
3713 2014-09-03 James Hogan <james.hogan@imgtec.com>
3714
3715 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3716 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3717
3718 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3719
3720 PR python/16699
3721 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3722 function.
3723 (add_cmd): Set "completer_handle_brkchars" to NULL.
3724 * cli/cli-decode.h (struct cmd_list_element)
3725 <completer_handle_brkchars>: New field.
3726 * command.h (completer_ftype_void): New typedef.
3727 (set_cmd_completer_handle_brkchars): New prototype.
3728 * completer.c (set_gdb_completion_word_break_characters): New
3729 function.
3730 (complete_line_internal): Call "completer_handle_brkchars"
3731 callback from command.
3732 * completer.h: Include "command.h".
3733 (set_gdb_completion_word_break_characters): New prototype.
3734 * python/py-cmd.c (cmdpy_completer_helper): New function.
3735 (cmdpy_completer_handle_brkchars): New function.
3736 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3737 (cmdpy_init): Set completer_handle_brkchars to
3738 cmdpy_completer_handle_brkchars.
3739
3740 2014-09-03 Gary Benson <gbenson@redhat.com>
3741
3742 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3743 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3744 Loop conditions changed to equivalent form.
3745 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3746 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3747 ALL_DEBUG_ADDRESS_REGISTERS.
3748
3749 2014-09-03 Joel Brobecker <brobecker@adacore.com>
3750
3751 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3752 description fix.
3753
3754 2014-09-02 Doug Evans <dje@google.com>
3755
3756 * typeprint.c (find_global_typedef): Fix comment.
3757
3758 2014-09-02 Gary Benson <gbenson@redhat.com>
3759
3760 * i386-nat.h: Renamed as...
3761 * x86-nat.h: New file. All type, function and variable name
3762 prefixes changed from "i386_" to "x86_". All references updated.
3763 * i386-nat.c: Renamed as...
3764 * x86-nat.c: New file. All type, function and variable name
3765 prefixes changed from "i386_" to "x86_". All references updated.
3766 * common/i386-xstate.h: Renamed as...
3767 * common/x86-xstate.h: New file. All type, function and variable
3768 name prefixes changed from "i386_" to "x86_". All references
3769 updated.
3770 * nat/i386-cpuid.h: Renamed as...
3771 * nat/x86-cpuid.h: New file. All type, function and variable name
3772 prefixes changed from "i386_" to "x86_". All references updated.
3773 * nat/i386-gcc-cpuid.h: Renamed as...
3774 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3775 name prefixes changed from "i386_" to "x86_". All references
3776 updated.
3777 * nat/i386-dregs.h: Renamed as...
3778 * nat/x86-dregs.h: New file. All type, function and variable name
3779 prefixes changed from "i386_" to "x86_". All references updated.
3780 * nat/i386-dregs.c: Renamed as...
3781 * nat/x86-dregs.c: New file. All type, function and variable name
3782 prefixes changed from "i386_" to "x86_". All references updated.
3783
3784 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3785
3786 * varobj.c (_initialize_varobj): Move to the end of file.
3787
3788 2014-08-29 Gary Benson <gbenson@redhat.com>
3789
3790 * common/common-exceptions.h: New file.
3791 * common/common-exceptions.c: Likewise.
3792 * Makefile.in (SFILES): Add common/common-exceptions.c.
3793 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3794 (COMMON_OBS): Add common-exceptions.o.
3795 (common-exceptions.o): New rule.
3796 * exceptions.h (common-exceptions.h): Include.
3797 (gdb_setjmp.h): Do not include.
3798 (return_reason): Moved to common-exceptions.h.
3799 (enum return_reason): Likewise.
3800 (RETURN_MASK): Likewise.
3801 (typedef return_mask): Likewise.
3802 (enum errors): Likewise.
3803 (struct gdb_exception): Likewise.
3804 (exceptions_state_mc_init): Likewise.
3805 (exceptions_state_mc_action_iter): Likewise.
3806 (exceptions_state_mc_action_iter_1): Likewise.
3807 (TRY_CATCH): Likewise.
3808 (throw_exception): Likewise.
3809 (throw_verror): Likewise.
3810 (throw_vquit): Likewise.
3811 (throw_error): Likewise.
3812 (throw_quit): Likewise.
3813 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3814 (enum catcher_action): Likewise.
3815 (struct catcher): Likewise.
3816 (current_catcher): Likewise.
3817 (catcher_list_size): Likewise.
3818 (exceptions_state_mc_init): Likewise.
3819 (catcher_pop): Likewise.
3820 (exceptions_state_mc): Likewise.
3821 (exceptions_state_mc_action_iter): Likewise.
3822 (exceptions_state_mc_action_iter_1): Likewise.
3823 (throw_exception): Likewise.
3824 (exception_messages): Likewise.
3825 (exception_messages_size): Likewise.
3826 (throw_it): Likewise.
3827 (throw_verror): Likewise.
3828 (throw_vquit): Likewise.
3829 (throw_error): Likewise.
3830 (throw_quit): Likewise.
3831 (prepare_to_throw_exception): New function.
3832
3833 2014-08-29 Gary Benson <gbenson@redhat.com>
3834
3835 * common/gdb_setjmp.h: New file.
3836 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3837 * configure.ac: Move sigsetjmp check...
3838 * common/common.m4: ...here.
3839 * configure: Regenerate.
3840 * cp-support.c (SIGJMP_BUF): Delete.
3841 (SIGSETJMP): Likewise.
3842 (SIGLONGJMP): Likewise.
3843 * exceptions.h (gdb_setjmp.h): Include.
3844 (setjmp.h): Do not include.
3845 (EXCEPTIONS_SIGJMP_BUF): Delete.
3846 (EXCEPTIONS_SIGSETJMP): Likewise.
3847 (EXCEPTIONS_SIGLONGJMP): Likewise.
3848 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3849 from gdb_setjmp.h.
3850 * exceptions.c: Likewise.
3851
3852 2014-08-29 Gary Benson <gbenson@redhat.com>
3853
3854 * cleanups.h: Moved to...
3855 * common/cleanups.h: New file.
3856 * cleanups.c: Moved to...
3857 * common/cleanups.c: New file. Include common-defs.h and
3858 cleanups.h. Do not include defs.h.
3859 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3860 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3861 (cleanups.o): New rule.
3862
3863 2014-08-29 Gary Benson <gbenson@redhat.com>
3864
3865 * common/errors.h (internal_warning): New declaration.
3866 (internal_vwarning): Likewise.
3867 * common/errors.c (internal_warning): New function.
3868 * utils.h (internal_warning): Don't declare.
3869 (internal_vwarning): Likewise.
3870 * utils.c (internal_warning): Removed.
3871
3872 2014-08-29 Gary Benson <gbenson@redhat.com>
3873
3874 * main.c (captured_main): Use warning during startup.
3875 Prefix startup warning messages with command name.
3876
3877 2014-08-29 Gary Benson <gbenson@redhat.com>
3878
3879 * main.c (captured_main): Handle usage errors with error.
3880
3881 2014-08-29 Gary Benson <gbenson@redhat.com>
3882
3883 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3884 exit pair with a call to error. Wrap the message with _().
3885
3886 2014-08-29 Gary Benson <gbenson@redhat.com>
3887
3888 * main.c (captured_main): Replace a fprintf/exit
3889 pair with a call to error. Wrap the message with _().
3890
3891 2014-08-29 Gary Benson <gbenson@redhat.com>
3892
3893 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3894 pairs with calls to error. Wrap the message with _().
3895
3896 2014-08-29 Gary Benson <gbenson@redhat.com>
3897
3898 * utils.c (vwarning): Protect calls to target_terminal_ours
3899 and wrap_here.
3900
3901 2014-08-29 Gary Benson <gbenson@redhat.com>
3902
3903 * exceptions.c (print_flush): Protect calls to
3904 target_terminal_ours and wrap_here.
3905
3906 2014-08-29 Gary Benson <gbenson@redhat.com>
3907
3908 * utils.h (filtered_printing_initialized): New declaration.
3909 * utils.c (abort_with_message): New function.
3910 (internal_vproblem): Use abort_with_message for first level
3911 recursive internal problems, and if gdb_stderr is not set up.
3912 Protect calls to target_terminal_ours, begin_line and query.
3913
3914 2014-08-28 Doug Evans <dje@google.com>
3915
3916 * symtab.c (in_prologue): Move definition to better spot.
3917 (skip_prologue_using_sal): Ditto.
3918
3919 2014-08-28 Doug Evans <dje@google.com>
3920
3921 * symtab.c (find_function_start_sal): Move definition to better spot.
3922
3923 2014-08-28 Yao Qi <yao@codesourcery.com>
3924
3925 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3926 found_stack_adjust in forward scan. Remove condition check
3927 on found_stack_adjust which is always true. Indent the code.
3928
3929 2014-08-28 Yao Qi <yao@codesourcery.com>
3930
3931 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3932 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3933 (dwarf_decode_lines): Remove argument
3934 want_line_info. Remove condition check on want_line_info.
3935 Callers update.
3936
3937 2014-08-27 Doug Evans <dje@google.com>
3938
3939 * dwarf2read.c (dwarf_record_line): Fix typo.
3940
3941 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3942
3943 * target.h (struct target_ops::to_terminal_save_ours): Remove
3944 declaration.
3945 (target_terminal_save_ours): Remove macro.
3946 * target-delegates.c: Regenerate.
3947 * inf-child.c (inf_child_target): Don't set the nonexistent
3948 field to_terminal_save_ours.
3949 * inferior.h (child_terminal_save_ours): Remove declaration.
3950 * terminal.h (gdb_save_tty_state): New declaration.
3951 * inflow.c (child_terminal_save_ours): Rename to ...
3952 (gdb_save_tty_state): ... this.
3953 * tui/tui.c: Include terminal.h.
3954 (tui_enable): Use gdb_save_tty_state instead of
3955 target_terminal_save_ours.
3956 (tui_disable): Likewise.
3957
3958 2014-08-25 Doug Evans <dje@google.com>
3959
3960 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3961 Pass NULL instead of 0 for context pointer.
3962
3963 2014-08-25 Yao Qi <yao@codesourcery.com>
3964
3965 * dwarf2read.c: Fix grammatical error.
3966
3967 2014-08-24 Yao Qi <yao@codesourcery.com>
3968
3969 * dwarf2read.c (scan_partial_symbols): Update comments.
3970 Rename argument 'need_pc' with 'set_addrmap'.
3971 (add_partial_namespace): Rename argument 'need_pc' with
3972 'set_addrmap'.
3973 (add_partial_module): Likewise.
3974 (add_partial_subprogram): Likewise. Update comments.
3975 (dwarf2_name): Fix typo.
3976
3977 2014-08-22 Doug Evans <dje@google.com>
3978
3979 PR 17276
3980 * dwarf2read.c (dwarf_record_line_p): New function.
3981 (dwarf_decode_lines_1): Ignore subsequent line number entries
3982 for the same line if any entry had a non-zero discriminator.
3983
3984 2014-08-22 Doug Evans <dje@google.com>
3985
3986 * buildsym.h (record_line_ftype): New typedef.
3987 (record_line): Use it.
3988 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3989 (dwarf_decode_lines_1): Call them.
3990
3991 2014-08-22 Yao Qi <yao@codesourcery.com>
3992
3993 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3994 (ctf_end): Remove code.
3995
3996 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3997
3998 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3999 (linux_make_corefile_notes): call update_thread_list, protected against
4000 exceptions.
4001
4002 2014-08-21 Pedro Alves <palves@redhat.com>
4003
4004 * infcmd.c (attach_command): Remove comment.
4005
4006 2014-08-21 Bin Cheng <bin.cheng@arm.com>
4007
4008 * aarch64-linux-nat.c (dr_changed_t): Change the type from
4009 unsigned LONGEST to ULONGEST.
4010
4011 2014-08-20 Pedro Alves <palves@redhat.com>
4012
4013 * Makefile.in (check-read1): New rule.
4014
4015 2014-08-20 Joel Brobecker <brobecker@adacore.com>
4016
4017 * value.c (value_from_contents_and_address): Strip resolved_type's
4018 typedef layers before checking its TYPE_DATA_LOCATION.
4019
4020 2014-08-20 Pedro Alves <palves@redhat.com>
4021
4022 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
4023
4024 2014-08-20 Yao Qi <yao@codesourcery.com>
4025
4026 * amd64-tdep.c (amd64_classify): Add a blank line after the
4027 example. Move "*/" to a new line.
4028 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
4029 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
4030 * dwarf2read.c (psymtab_include_file_name): Likewise.
4031
4032 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
4033 Pedro Alves <palves@redhat.com>
4034
4035 PR symtab/14604
4036 PR symtab/14605
4037 * ada-lang.c (coerce_unspec_val_to_type): Use
4038 value_contents_copy_raw.
4039 * ada-valprint.c (val_print_packed_array_elements): Adjust.
4040 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
4041 * cp-valprint.c (cp_print_value_fields): Let the common printing
4042 code handle optimized out values.
4043 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
4044 * d-valprint.c (dynamic_array_type): Use
4045 value_bits_any_optimized_out.
4046 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
4047 check_any_valid fields.
4048 (check_pieced_value_bits): Delete and inline ...
4049 (check_pieced_synthetic_pointer): ... here.
4050 (check_pieced_value_validity): Delete.
4051 (check_pieced_value_invalid): Delete.
4052 (pieced_value_funcs): Remove check_validity and check_any_valid
4053 fields.
4054 (read_pieced_value): Use mark_value_bits_optimized_out.
4055 (write_pieced_value): Switch to use
4056 mark_value_bytes_optimized_out.
4057 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
4058 of assuming the whole value is optimized out.
4059 * findvar.c (read_frame_register_value): Remove special handling
4060 of optimized out registers.
4061 (value_from_register): Use mark_value_bytes_optimized_out.
4062 * frame-unwind.c (frame_unwind_got_optimized): Use
4063 mark_value_bytes_optimized_out.
4064 * jv-valprint.c (java_value_print): Adjust.
4065 (java_print_value_fields): Let the common printing code handle
4066 optimized out values.
4067 * mips-tdep.c (mips_print_register): Remove special handling of
4068 optimized out registers.
4069 * opencl-lang.c (lval_func_check_validity): Delete.
4070 (lval_func_check_any_valid): Delete.
4071 (opencl_value_funcs): Remove check_validity and check_any_valid
4072 fields.
4073 * p-valprint.c (pascal_object_print_value_fields): Let the common
4074 printing code handle optimized out values.
4075 * stack.c (read_frame_arg): Remove special handling of optimized
4076 out values. Fetch both VAL and ENTRYVAL before comparing
4077 contents. Adjust to value_available_contents_eq rename.
4078 * valprint.c (valprint_check_validity)
4079 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
4080 (val_print_array_elements): Adjust.
4081 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
4082 (value_bits_any_optimized_out): New function.
4083 (value_entirely_covered_by_range_vector): New function, factored
4084 out from value_entirely_unavailable.
4085 (value_entirely_unavailable): Reimplement.
4086 (value_entirely_optimized_out): New function.
4087 (insert_into_bit_range_vector): New function, factored out from
4088 mark_value_bits_unavailable.
4089 (mark_value_bits_unavailable): Reimplement.
4090 (struct ranges_and_idx): New struct.
4091 (find_first_range_overlap_and_match): New function, factored out
4092 from value_available_contents_bits_eq.
4093 (value_available_contents_bits_eq): Rename to ...
4094 (value_contents_bits_eq): ... this. Check both unavailable
4095 contents and optimized out contents.
4096 (value_available_contents_eq): Rename to ...
4097 (value_contents_eq): ... this.
4098 (allocate_value_lazy): Remove reference to the old optimized_out
4099 boolean.
4100 (allocate_optimized_out_value): Use
4101 mark_value_bytes_optimized_out.
4102 (require_not_optimized_out): Adjust to check whether the
4103 optimized_out vec is empty.
4104 (ranges_copy_adjusted): New function, factored out from
4105 value_contents_copy_raw.
4106 (value_contents_copy_raw): Also copy the optimized out ranges.
4107 Assert the destination ranges aren't optimized out.
4108 (value_contents_copy): Update comment, remove call to
4109 require_not_optimized_out.
4110 (value_contents_equal): Adjust to check whether the optimized_out
4111 vec is empty.
4112 (set_value_optimized_out, value_optimized_out_const): Delete.
4113 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4114 New functions.
4115 (value_entirely_optimized_out, value_bits_valid): Delete.
4116 (value_copy): Take a VEC copy of the 'optimized_out' field.
4117 (value_primitive_field): Remove special handling of optimized out.
4118 (value_fetch_lazy): Assert that lazy values have no unavailable
4119 regions. Use value_bits_any_optimized_out. Remove some special
4120 handling for optimized out values.
4121 * value.h: Add intro comment about <optimized out> and
4122 <unavailable>.
4123 (struct lval_funcs): Remove check_validity and check_any_valid
4124 fields.
4125 (set_value_optimized_out, value_optimized_out_const): Remove.
4126 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4127 New declarations.
4128 (value_bits_any_optimized_out): New declaration.
4129 (value_bits_valid): Delete declaration.
4130 (value_available_contents_eq): Rename to ...
4131 (value_contents_eq): ... this, and extend comments.
4132
4133 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4134
4135 Fix -fsanitize=address on unreadable inferior strings.
4136 * valprint.c (val_print_string): Fix access before BUFFER.
4137
4138 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
4139
4140 * target.c (target_struct_size): Remove.
4141 (target_struct_allocsize): Remove.
4142 (DEFAULT_ALLOCSIZE): Remove.
4143 (target_ops_p): New typedef.
4144 (DEF_VEC_P (target_ops_p)): New vector type.
4145 (target_structs): Change type to VEC (target_ops_p).
4146 (add_target_with_completer): Replace "push" code by VEC_safe_push.
4147 (find_default_run_target): Rewrite for loop following changes to
4148 target_structs.
4149
4150 2014-08-19 Joel Brobecker <brobecker@adacore.com>
4151
4152 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
4153 Adjust code accordingly. Adjust function description comment.
4154
4155 2014-08-19 Yao Qi <yao@codesourcery.com>
4156
4157 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
4158 types.
4159
4160 2014-08-19 Alan Modra <amodra@gmail.com>
4161
4162 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
4163 * config.in: Regenerate.
4164 * configure: Regenerate.
4165
4166 2014-08-19 Tom Tromey <tromey@redhat.com>
4167 Gary Benson <gbenson@redhat.com>
4168
4169 * common/common-debug.h: New file.
4170 * common/common-debug.c: Likewise.
4171 * debug.c: Likewise.
4172 * Makefile.in (SFILES): Add common/common-debug.c.
4173 (HFILES_NO_SRCDIR): Add common/common-debug.h.
4174 (COMMON_OBS): Add common-debug.o and debug.o.
4175 (common-debug.o): New rule.
4176 * common/common-defs.h: Include common-debug.h.
4177 * common/agent.c (debug_agent_printf): New function.
4178 (DEBUG_AGENT): Redefine.
4179 * nat/i386-dregs.c (debug_printf): Undefine.
4180
4181 2014-08-19 Gary Benson <gbenson@redhat.com>
4182
4183 * common/common-defs.h: Include print-utils.h.
4184 * utils.h: Do not include print-utils.h.
4185
4186 2014-08-19 Tom Tromey <tromey@redhat.com>
4187 Gary Benson <gbenson@redhat.com>
4188
4189 * common/common-types.h: New file.
4190 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
4191 * common/common-defs.h: Include common-types.h.
4192 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4193 (ULONGEST): Remove.
4194
4195 2014-08-19 Tom Tromey <tromey@redhat.com>
4196 Gary Benson <gbenson@redhat.com>
4197
4198 * common/errors.h: New file.
4199 * common/errors.c: Likewise.
4200 * Makefile.in (SFILES): Add common/errors.c.
4201 (HFILES_NO_SRCDIR): Add common/errors.h.
4202 (COMMON_OBS): Add errors.o.
4203 (errors.o): New rule.
4204 * common/common-defs.h: Include errors.h.
4205 * utils.h (perror_with_name, error, verror, warning, vwarning):
4206 Don't declare.
4207 * common/common-utils.h: (malloc_failure, internal_error):
4208 Likewise.
4209
4210 2014-08-19 Gary Benson <gbenson@redhat.com>
4211
4212 * utils.c (internal_vproblem): Always print the message.
4213
4214 2014-08-18 Doug Evans <dje@google.com>
4215
4216 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4217
4218 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4219
4220 * ada-typeprint.c (type_is_full_subrange_of_target_type):
4221 Return 0 if TYPE is dynamic.
4222 (print_range): Add handling of dynamic ranges.
4223
4224 2014-08-18 Keven Boell <keven.boell@intel.com>
4225 Joel Brobecker <brobecker@adacore.com>
4226
4227 * gdbtypes.h (struct main_type): Add field "data_location".
4228 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4229 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4230 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4231 a dynamic data location.
4232 (resolve_dynamic_type): Add DW_AT_data_location handling.
4233 (copy_recursive, copy_type): Copy the data_location information
4234 when present.
4235 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4236 * value.c (value_from_contents_and_address): Add
4237 DW_AT_data_location handling.
4238
4239 2014-08-18 Keven Boell <keven.boell@intel.com>
4240 Joel Brobecker <brobecker@adacore.com>
4241
4242 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4243 field "get_object_address".
4244 * dwarf2expr.c (execute_stack_op): Add handling for
4245 DW_OP_push_object_address.
4246 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4247 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4248 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4249 (dwarf_expr_get_obj_addr): New function.
4250 (dwarf_expr_ctx_funcs): Add get_object_address field.
4251 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4252 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4253 (dwarf2_evaluate_property): Add parameter "address". Use it.
4254 (needs_get_obj_addr): New function.
4255 (needs_frame_ctx_funcs): Add get_object_address field.
4256 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4257 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4258 (resolve_dynamic_array): Likewise.
4259
4260 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4261
4262 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4263 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4264 fixed value for records and unions for which some GNAT encodings
4265 are present.
4266
4267 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4268
4269 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4270 rewrite to avoid "else if" and "else" constructs. Should be
4271 a no-op in practice.
4272
4273 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4274
4275 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4276 of lexical block.
4277
4278 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4279
4280 PR c++/17132
4281 * eval.c: Update all calls to find_overload_match.
4282 * valarith.c: Likewise.
4283 (value_user_defined_cpp_op, value_user_defined_op): New
4284 argument NOSIDE. Update all callers.
4285 * valops.c (find_overload_match): New argument NOSIDE.
4286 * value.h (find_overload_match): Update signature.
4287
4288 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4289
4290 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4291 'items' methods instead of 'iteritems' method on dictionaries.
4292
4293 2014-08-15 Doug Evans <dje@google.com>
4294
4295 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4296 closer to use.
4297
4298 2014-08-15 Doug Evans <dje@google.com>
4299
4300 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4301
4302 2014-08-15 Doug Evans <dje@google.com>
4303
4304 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4305
4306 2014-08-15 Doug Evans <dje@google.com>
4307
4308 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4309 unused.
4310
4311 2014-08-15 Eli Zaretskii <eliz@gnu.org>
4312
4313 * dcache.h: Include target.h, to avoid compile time warnings.
4314
4315 2014-08-15 Joel Brobecker <brobecker@adacore.com>
4316
4317 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4318 frame_info" partial declaration.
4319 * gdbarch.h: Regenerate.
4320
4321 2014-08-15 Yao Qi <yao@codesourcery.com>
4322
4323 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4324 Add parameter 'decode_for_pst_p'. Callers update.
4325
4326 2014-08-13 Yao Qi <yao@codesourcery.com>
4327
4328 PR build/17104
4329 * configure.ac: Use local variable 'pos'.
4330 * configure: Regenerated.
4331
4332 2014-08-11 Doug Evans <dje@google.com>
4333
4334 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4335 message, it is redundant with "Reading symbols from ..." message.
4336
4337 2014-08-10 Doug Evans <xdje42@gmail.com>
4338
4339 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4340
4341 2014-08-09 Yao Qi <yao@codesourcery.com>
4342
4343 PR remote/9053
4344 * remote.c (remote_xfer_partial): Remove dead code.
4345
4346 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4347
4348 * ia64-linux-tdep.c: Include "regset.h".
4349 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4350 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4351 (ia64_linux_supply_fpregset): New function.
4352 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4353 (ia64_linux_regset_from_core_section): New function.
4354 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4355 method.
4356
4357 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4358
4359 * m68klinux-tdep.c: Include "regset.h".
4360 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4361 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4362 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4363 (m68k_linux_regset_from_core_section): New function.
4364 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4365 method.
4366
4367 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4368
4369 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4370 function. Move logic to...
4371 (tilegx_linux_regmap): ... this new register map.
4372 (tilegx_linux_regset): Refer to register map, replace supply
4373 method by regcache_supply_regset, and add collect method.
4374 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4375 TILEGX_FIRST_EASY_REGNUM.
4376
4377 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4378
4379 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4380 that calls regcache_supply_regset and handles the EPC register
4381 separately. Move main logic to...
4382 (score7_linux_gregmap): ... this new register map.
4383 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4384 (score7_linux_gregset): Refer to register map. Add collect method.
4385 (score7_linux_regset_from_core_section): Replace
4386 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4387 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4388 (struct regset): Delete unused forward declaraction.
4389 (struct pt_regs): Delete structure definition.
4390 (elf_gregset_t): Delete typedef.
4391
4392 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4393
4394 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4395 (nios2_core_regset): Add collect method.
4396
4397 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4398
4399 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4400 platform-independent and don't write to read-only input buffer.
4401 (m32r_linux_collect_gregset): New function.
4402 (m32r_linux_gregset): Add collect method.
4403
4404 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4405
4406 * hppa-linux-tdep.c (greg_map): Rename to...
4407 (hppa_linux_gregmap): ... this. Also convert to
4408 regcache_map_entry format.
4409 (hppa_linux_supply_regset): Delete function.
4410 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4411 (hppa_linux_fpregmap): ... this new register map.
4412 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4413 register map, replace supply method by regcache_supply_regset, and
4414 add collect method regcache_collect_regset.
4415
4416 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4417
4418 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4419 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4420 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4421 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4422 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4423 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4424 (frv_linux_supply_gregset): Replace main logic by call to
4425 regcache_supply_regset, but keep clearing gr32-gr63.
4426 (frv_linux_supply_fpregset): Delete function.
4427 (frv_linux_gregset): Refer to appropriate register map and add
4428 regcache_collect_regset as the collect method.
4429 (frv_linux_fpregset): Likewise. Also exchange the supply method
4430 by regcache_supply_regset.
4431
4432 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4433
4434 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4435 by call to alpha_supply_int_regs.
4436 (alpha_linux_collect_gregset): New function.
4437 (alpha_linux_supply_fpregset): Replace logic by call to
4438 alpha_supply_fp_regs.
4439 (alpha_linux_collect_fpregset): New function.
4440 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4441
4442 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4443
4444 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4445 by call to regcache_collect_regset.
4446 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4447 instead of aarch64_linux_supply_gregset/_fpregset.
4448 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4449 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4450 header file instead.
4451 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4452 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4453 functions. Move logic to ...
4454 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4455 register maps.
4456 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4457 refer to new register maps, replace *_regset_from_core by
4458 regcache_supply_regset, and also use regcache_collect_regset.
4459 * aarch64-linux-tdep.h: Include "regset.h".
4460 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4461 Delete prototypes.
4462 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4463 macros, moved from C source file.
4464 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4465 variable declarations.
4466
4467 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4468
4469 * s390-linux-nat.c: Include "regset.h".
4470 (regmap_gregset): Delete macro.
4471 (s390_64_regmap_gregset): New register map for
4472 regcache_supply/_collect_regset.
4473 (s390_64_gregset): New regset.
4474 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4475 (regmap_fpregset): Delete macro.
4476 (s390_native_supply, s390_native_collect): Delete functions.
4477 (supply_gregset, fill_gregset): Replace s390-specific regmap
4478 handling by a call to regcache_supply/_collect_regset.
4479 (supply_fpregset, fill_fpregset): Call regcache_supply/
4480 _collect_regset instead of s390_native_supply/_collect.
4481 (fetch_regset, store_regset): Likewise. Also change the last
4482 parameter to a regset instead of a regmap.
4483 (s390_linux_fetch_inferior_registers)
4484 (390_linux_store_inferior_registers): Adjust last parameter in
4485 calls to fetch_regset and store_regset.
4486 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4487 (s390_gregmap): ... this. Also make static const and convert to
4488 regcache_map_entry format.
4489 (s390x_regmap_gregset): Delete.
4490 (s390_regmap_fpregset): Rename to...
4491 (s390_fpregmap): ... this. Make static const and convert to
4492 regcache_map_entry format.
4493 (s390_regmap_upper, s390_regmap_last_break)
4494 (s390x_regmap_last_break, s390_regmap_system_call)
4495 (s390_regmap_tdb): Likewise.
4496 (s390_supply_regset, s390_collect_regset): Remove functions.
4497 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4498 s390_supply_regset.
4499 (s390_gregset, s390_fpregset, s390_upper_regset)
4500 (s390_last_break_regset, s390x_last_break_regset)
4501 (s390_system_call_regset, s390_tdb_regset): Make global and
4502 replace s390_supply/_collect_regset by regcache_supply/
4503 _collect_regset.
4504 (s390x_gregset): Delete.
4505 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4506 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4507 (s390_regmap_fpregset, s390_regmap_last_break)
4508 (s390x_regmap_last_break, s390_regmap_system_call)
4509 (s390_regmap_tdb): Delete global variable declarations.
4510 (s390_gregset, s390_fpregset, s390_last_break_regset)
4511 (s390x_last_break_regset, s390_system_call_regset)
4512 (s390_tdb_regset): New global variable declarations.
4513
4514 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4515
4516 * regcache.c: Include "regset.h".
4517 (regcache_transfer_regset): New local function.
4518 (regcache_supply_regset, regcache_collect_regset): New functions.
4519 * regcache.h (struct regcache_map_entry): New structure.
4520 (REGCACHE_MAP_SKIP): New enum value.
4521 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4522
4523 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4524
4525 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4526 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4527 (ppc_linux_collect_gregset ): Likewise.
4528 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4529 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4530 (ppc_collect_vrregset): Likewise.
4531 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4532 Likewise.
4533
4534 2014-08-07 Yao Qi <yao@codesourcery.com>
4535
4536 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4537 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4538 * remote.c (remote_read_bytes): Likewise.
4539
4540 2014-08-07 Yao Qi <yao@codesourcery.com>
4541
4542 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4543
4544 2014-08-07 Yao Qi <yao@codesourcery.com>
4545
4546 PR remote/17230
4547 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4548 TARGET_XFER_OK instead of 0.
4549
4550 2014-08-07 Gary Benson <gbenson@redhat.com>
4551
4552 * common/common-defs.h: Include errno.h.
4553 * defs.h: Do not include errno.h.
4554 * ada-typeprint.c: Likewise.
4555 * c-typeprint.c: Likewise.
4556 * core-regset.c: Likewise.
4557 * corefile.c: Likewise.
4558 * corelow.c: Likewise.
4559 * event-loop.c: Likewise.
4560 * f-typeprint.c: Likewise.
4561 * gnu-nat.c: Likewise.
4562 * go32-nat.c: Likewise.
4563 * i386gnu-nat.c: Likewise.
4564 * m2-typeprint.c: Likewise.
4565 * nat/linux-btrace.c: Likewise.
4566 * p-typeprint.c: Likewise.
4567 * procfs.c: Likewise.
4568 * remote-sim.c: Likewise.
4569 * rs6000-nat.c: Likewise.
4570 * target.c: Likewise.
4571 * typeprint.c: Likewise.
4572 * ui-file.c: Likewise.
4573 * valops.c: Likewise.
4574 * valprint.c: Likewise.
4575
4576 2014-08-07 Gary Benson <gbenson@redhat.com>
4577
4578 * common/common-defs.h: Include string.h.
4579 * aarch64-tdep.c: Do not include string.h.
4580 * ada-exp.y: Likewise.
4581 * ada-lang.c: Likewise.
4582 * ada-lex.l: Likewise.
4583 * ada-typeprint.c: Likewise.
4584 * ada-valprint.c: Likewise.
4585 * aix-thread.c: Likewise.
4586 * alpha-linux-tdep.c: Likewise.
4587 * alpha-mdebug-tdep.c: Likewise.
4588 * alpha-nat.c: Likewise.
4589 * alpha-osf1-tdep.c: Likewise.
4590 * alpha-tdep.c: Likewise.
4591 * alphanbsd-tdep.c: Likewise.
4592 * amd64-dicos-tdep.c: Likewise.
4593 * amd64-linux-tdep.c: Likewise.
4594 * amd64-nat.c: Likewise.
4595 * amd64-sol2-tdep.c: Likewise.
4596 * amd64fbsd-tdep.c: Likewise.
4597 * amd64obsd-tdep.c: Likewise.
4598 * arch-utils.c: Likewise.
4599 * arm-linux-nat.c: Likewise.
4600 * arm-linux-tdep.c: Likewise.
4601 * arm-tdep.c: Likewise.
4602 * arm-wince-tdep.c: Likewise.
4603 * armbsd-tdep.c: Likewise.
4604 * armnbsd-nat.c: Likewise.
4605 * armnbsd-tdep.c: Likewise.
4606 * armobsd-tdep.c: Likewise.
4607 * avr-tdep.c: Likewise.
4608 * ax-gdb.c: Likewise.
4609 * ax-general.c: Likewise.
4610 * bcache.c: Likewise.
4611 * bfin-tdep.c: Likewise.
4612 * breakpoint.c: Likewise.
4613 * build-id.c: Likewise.
4614 * buildsym.c: Likewise.
4615 * c-exp.y: Likewise.
4616 * c-lang.c: Likewise.
4617 * c-typeprint.c: Likewise.
4618 * c-valprint.c: Likewise.
4619 * charset.c: Likewise.
4620 * cli-out.c: Likewise.
4621 * cli/cli-cmds.c: Likewise.
4622 * cli/cli-decode.c: Likewise.
4623 * cli/cli-dump.c: Likewise.
4624 * cli/cli-interp.c: Likewise.
4625 * cli/cli-logging.c: Likewise.
4626 * cli/cli-script.c: Likewise.
4627 * cli/cli-setshow.c: Likewise.
4628 * cli/cli-utils.c: Likewise.
4629 * coffread.c: Likewise.
4630 * common/agent.c: Likewise.
4631 * common/buffer.c: Likewise.
4632 * common/buffer.h: Likewise.
4633 * common/common-utils.c: Likewise.
4634 * common/filestuff.c: Likewise.
4635 * common/filestuff.c: Likewise.
4636 * common/format.c: Likewise.
4637 * common/print-utils.c: Likewise.
4638 * common/rsp-low.c: Likewise.
4639 * common/signals.c: Likewise.
4640 * common/vec.h: Likewise.
4641 * common/xml-utils.c: Likewise.
4642 * core-regset.c: Likewise.
4643 * corefile.c: Likewise.
4644 * corelow.c: Likewise.
4645 * cp-abi.c: Likewise.
4646 * cp-name-parser.y: Likewise.
4647 * cp-support.c: Likewise.
4648 * cp-valprint.c: Likewise.
4649 * cris-tdep.c: Likewise.
4650 * d-exp.y: Likewise.
4651 * darwin-nat.c: Likewise.
4652 * dbxread.c: Likewise.
4653 * dcache.c: Likewise.
4654 * demangle.c: Likewise.
4655 * dicos-tdep.c: Likewise.
4656 * disasm.c: Likewise.
4657 * doublest.c: Likewise.
4658 * dsrec.c: Likewise.
4659 * dummy-frame.c: Likewise.
4660 * dwarf2-frame.c: Likewise.
4661 * dwarf2loc.c: Likewise.
4662 * dwarf2read.c: Likewise.
4663 * elfread.c: Likewise.
4664 * environ.c: Likewise.
4665 * eval.c: Likewise.
4666 * event-loop.c: Likewise.
4667 * exceptions.c: Likewise.
4668 * exec.c: Likewise.
4669 * expprint.c: Likewise.
4670 * f-exp.y: Likewise.
4671 * f-lang.c: Likewise.
4672 * f-typeprint.c: Likewise.
4673 * f-valprint.c: Likewise.
4674 * fbsd-nat.c: Likewise.
4675 * findcmd.c: Likewise.
4676 * findvar.c: Likewise.
4677 * fork-child.c: Likewise.
4678 * frame.c: Likewise.
4679 * frv-linux-tdep.c: Likewise.
4680 * frv-tdep.c: Likewise.
4681 * gdb.c: Likewise.
4682 * gdb_bfd.c: Likewise.
4683 * gdbarch.c: Likewise.
4684 * gdbarch.sh: Likewise.
4685 * gdbtypes.c: Likewise.
4686 * gnu-nat.c: Likewise.
4687 * gnu-v2-abi.c: Likewise.
4688 * gnu-v3-abi.c: Likewise.
4689 * go-exp.y: Likewise.
4690 * go-lang.c: Likewise.
4691 * go32-nat.c: Likewise.
4692 * guile/guile.c: Likewise.
4693 * guile/scm-auto-load.c: Likewise.
4694 * hppa-hpux-tdep.c: Likewise.
4695 * hppa-linux-nat.c: Likewise.
4696 * hppanbsd-tdep.c: Likewise.
4697 * hppaobsd-tdep.c: Likewise.
4698 * i386-cygwin-tdep.c: Likewise.
4699 * i386-dicos-tdep.c: Likewise.
4700 * i386-linux-tdep.c: Likewise.
4701 * i386-nto-tdep.c: Likewise.
4702 * i386-sol2-tdep.c: Likewise.
4703 * i386-tdep.c: Likewise.
4704 * i386bsd-tdep.c: Likewise.
4705 * i386gnu-nat.c: Likewise.
4706 * i386nbsd-tdep.c: Likewise.
4707 * i386obsd-tdep.c: Likewise.
4708 * i387-tdep.c: Likewise.
4709 * ia64-libunwind-tdep.c: Likewise.
4710 * ia64-linux-nat.c: Likewise.
4711 * inf-child.c: Likewise.
4712 * inf-ptrace.c: Likewise.
4713 * inf-ttrace.c: Likewise.
4714 * infcall.c: Likewise.
4715 * infcmd.c: Likewise.
4716 * inflow.c: Likewise.
4717 * infrun.c: Likewise.
4718 * interps.c: Likewise.
4719 * iq2000-tdep.c: Likewise.
4720 * irix5-nat.c: Likewise.
4721 * jv-exp.y: Likewise.
4722 * jv-lang.c: Likewise.
4723 * jv-typeprint.c: Likewise.
4724 * jv-valprint.c: Likewise.
4725 * language.c: Likewise.
4726 * linux-fork.c: Likewise.
4727 * linux-nat.c: Likewise.
4728 * lm32-tdep.c: Likewise.
4729 * m2-exp.y: Likewise.
4730 * m2-typeprint.c: Likewise.
4731 * m32c-tdep.c: Likewise.
4732 * m32r-linux-nat.c: Likewise.
4733 * m32r-linux-tdep.c: Likewise.
4734 * m32r-rom.c: Likewise.
4735 * m32r-tdep.c: Likewise.
4736 * m68hc11-tdep.c: Likewise.
4737 * m68k-tdep.c: Likewise.
4738 * m68kbsd-tdep.c: Likewise.
4739 * m68klinux-nat.c: Likewise.
4740 * m68klinux-tdep.c: Likewise.
4741 * m88k-tdep.c: Likewise.
4742 * machoread.c: Likewise.
4743 * macrocmd.c: Likewise.
4744 * main.c: Likewise.
4745 * mdebugread.c: Likewise.
4746 * mem-break.c: Likewise.
4747 * memattr.c: Likewise.
4748 * memory-map.c: Likewise.
4749 * mep-tdep.c: Likewise.
4750 * mi/mi-cmd-break.c: Likewise.
4751 * mi/mi-cmd-disas.c: Likewise.
4752 * mi/mi-cmd-env.c: Likewise.
4753 * mi/mi-cmd-stack.c: Likewise.
4754 * mi/mi-cmd-var.c: Likewise.
4755 * mi/mi-cmds.c: Likewise.
4756 * mi/mi-console.c: Likewise.
4757 * mi/mi-getopt.c: Likewise.
4758 * mi/mi-interp.c: Likewise.
4759 * mi/mi-main.c: Likewise.
4760 * mi/mi-parse.c: Likewise.
4761 * microblaze-rom.c: Likewise.
4762 * microblaze-tdep.c: Likewise.
4763 * mingw-hdep.c: Likewise.
4764 * minidebug.c: Likewise.
4765 * minsyms.c: Likewise.
4766 * mips-irix-tdep.c: Likewise.
4767 * mips-linux-tdep.c: Likewise.
4768 * mips-tdep.c: Likewise.
4769 * mips64obsd-tdep.c: Likewise.
4770 * mipsnbsd-tdep.c: Likewise.
4771 * mipsread.c: Likewise.
4772 * mn10300-linux-tdep.c: Likewise.
4773 * mn10300-tdep.c: Likewise.
4774 * monitor.c: Likewise.
4775 * moxie-tdep.c: Likewise.
4776 * mt-tdep.c: Likewise.
4777 * nat/linux-btrace.c: Likewise.
4778 * nat/linux-osdata.c: Likewise.
4779 * nat/linux-procfs.c: Likewise.
4780 * nat/linux-ptrace.c: Likewise.
4781 * nat/linux-waitpid.c: Likewise.
4782 * nbsd-tdep.c: Likewise.
4783 * nios2-linux-tdep.c: Likewise.
4784 * nto-procfs.c: Likewise.
4785 * nto-tdep.c: Likewise.
4786 * objc-lang.c: Likewise.
4787 * objfiles.c: Likewise.
4788 * opencl-lang.c: Likewise.
4789 * osabi.c: Likewise.
4790 * osdata.c: Likewise.
4791 * p-exp.y: Likewise.
4792 * p-lang.c: Likewise.
4793 * p-typeprint.c: Likewise.
4794 * parse.c: Likewise.
4795 * posix-hdep.c: Likewise.
4796 * ppc-linux-nat.c: Likewise.
4797 * ppc-sysv-tdep.c: Likewise.
4798 * ppcfbsd-tdep.c: Likewise.
4799 * ppcnbsd-tdep.c: Likewise.
4800 * ppcobsd-tdep.c: Likewise.
4801 * printcmd.c: Likewise.
4802 * procfs.c: Likewise.
4803 * prologue-value.c: Likewise.
4804 * python/py-auto-load.c: Likewise.
4805 * python/py-gdb-readline.c: Likewise.
4806 * ravenscar-thread.c: Likewise.
4807 * regcache.c: Likewise.
4808 * registry.c: Likewise.
4809 * remote-fileio.c: Likewise.
4810 * remote-m32r-sdi.c: Likewise.
4811 * remote-mips.c: Likewise.
4812 * remote-notif.c: Likewise.
4813 * remote-sim.c: Likewise.
4814 * remote.c: Likewise.
4815 * reverse.c: Likewise.
4816 * rs6000-aix-tdep.c: Likewise.
4817 * ser-base.c: Likewise.
4818 * ser-go32.c: Likewise.
4819 * ser-mingw.c: Likewise.
4820 * ser-pipe.c: Likewise.
4821 * ser-tcp.c: Likewise.
4822 * ser-unix.c: Likewise.
4823 * serial.c: Likewise.
4824 * sh-tdep.c: Likewise.
4825 * sh64-tdep.c: Likewise.
4826 * shnbsd-tdep.c: Likewise.
4827 * skip.c: Likewise.
4828 * sol-thread.c: Likewise.
4829 * solib-dsbt.c: Likewise.
4830 * solib-frv.c: Likewise.
4831 * solib-osf.c: Likewise.
4832 * solib-som.c: Likewise.
4833 * solib-spu.c: Likewise.
4834 * solib-target.c: Likewise.
4835 * solib.c: Likewise.
4836 * somread.c: Likewise.
4837 * source.c: Likewise.
4838 * sparc-nat.c: Likewise.
4839 * sparc-sol2-tdep.c: Likewise.
4840 * sparc-tdep.c: Likewise.
4841 * sparc64-tdep.c: Likewise.
4842 * sparc64fbsd-tdep.c: Likewise.
4843 * sparc64nbsd-tdep.c: Likewise.
4844 * sparcnbsd-tdep.c: Likewise.
4845 * spu-linux-nat.c: Likewise.
4846 * spu-multiarch.c: Likewise.
4847 * spu-tdep.c: Likewise.
4848 * stabsread.c: Likewise.
4849 * stack.c: Likewise.
4850 * std-regs.c: Likewise.
4851 * symfile.c: Likewise.
4852 * symmisc.c: Likewise.
4853 * symtab.c: Likewise.
4854 * target.c: Likewise.
4855 * thread.c: Likewise.
4856 * tilegx-linux-nat.c: Likewise.
4857 * tilegx-tdep.c: Likewise.
4858 * top.c: Likewise.
4859 * tracepoint.c: Likewise.
4860 * tui/tui-command.c: Likewise.
4861 * tui/tui-data.c: Likewise.
4862 * tui/tui-disasm.c: Likewise.
4863 * tui/tui-file.c: Likewise.
4864 * tui/tui-layout.c: Likewise.
4865 * tui/tui-out.c: Likewise.
4866 * tui/tui-regs.c: Likewise.
4867 * tui/tui-source.c: Likewise.
4868 * tui/tui-stack.c: Likewise.
4869 * tui/tui-win.c: Likewise.
4870 * tui/tui-windata.c: Likewise.
4871 * tui/tui-winsource.c: Likewise.
4872 * typeprint.c: Likewise.
4873 * ui-file.c: Likewise.
4874 * ui-out.c: Likewise.
4875 * user-regs.c: Likewise.
4876 * utils.c: Likewise.
4877 * v850-tdep.c: Likewise.
4878 * valarith.c: Likewise.
4879 * valops.c: Likewise.
4880 * valprint.c: Likewise.
4881 * value.c: Likewise.
4882 * varobj.c: Likewise.
4883 * vax-tdep.c: Likewise.
4884 * vaxnbsd-tdep.c: Likewise.
4885 * vaxobsd-tdep.c: Likewise.
4886 * windows-nat.c: Likewise.
4887 * xcoffread.c: Likewise.
4888 * xml-support.c: Likewise.
4889 * xstormy16-tdep.c: Likewise.
4890 * xtensa-linux-nat.c: Likewise.
4891
4892 2014-08-07 Gary Benson <gbenson@redhat.com>
4893
4894 * common/common-defs.h: Include gdb_assert.h.
4895 * aarch64-tdep.c: Do not include gdb_assert.h.
4896 * addrmap.c: Likewise.
4897 * aix-thread.c: Likewise.
4898 * alpha-linux-tdep.c: Likewise.
4899 * alpha-mdebug-tdep.c: Likewise.
4900 * alphanbsd-tdep.c: Likewise.
4901 * amd64-nat.c: Likewise.
4902 * amd64-tdep.c: Likewise.
4903 * amd64bsd-nat.c: Likewise.
4904 * amd64fbsd-nat.c: Likewise.
4905 * amd64fbsd-tdep.c: Likewise.
4906 * amd64nbsd-nat.c: Likewise.
4907 * amd64nbsd-tdep.c: Likewise.
4908 * amd64obsd-nat.c: Likewise.
4909 * amd64obsd-tdep.c: Likewise.
4910 * arch-utils.c: Likewise.
4911 * arm-tdep.c: Likewise.
4912 * armbsd-tdep.c: Likewise.
4913 * auxv.c: Likewise.
4914 * bcache.c: Likewise.
4915 * bfin-tdep.c: Likewise.
4916 * blockframe.c: Likewise.
4917 * breakpoint.c: Likewise.
4918 * bsd-kvm.c: Likewise.
4919 * bsd-uthread.c: Likewise.
4920 * buildsym.c: Likewise.
4921 * c-exp.y: Likewise.
4922 * c-lang.c: Likewise.
4923 * charset.c: Likewise.
4924 * cleanups.c: Likewise.
4925 * cli-out.c: Likewise.
4926 * cli/cli-decode.c: Likewise.
4927 * cli/cli-dump.c: Likewise.
4928 * cli/cli-logging.c: Likewise.
4929 * cli/cli-script.c: Likewise.
4930 * cli/cli-utils.c: Likewise.
4931 * coffread.c: Likewise.
4932 * common/common-utils.c: Likewise.
4933 * common/queue.h: Likewise.
4934 * common/signals.c: Likewise.
4935 * common/vec.h: Likewise.
4936 * complaints.c: Likewise.
4937 * completer.c: Likewise.
4938 * corelow.c: Likewise.
4939 * cp-abi.c: Likewise.
4940 * cp-name-parser.y: Likewise.
4941 * cp-namespace.c: Likewise.
4942 * cp-support.c: Likewise.
4943 * cris-tdep.c: Likewise.
4944 * dbxread.c: Likewise.
4945 * dictionary.c: Likewise.
4946 * doublest.c: Likewise.
4947 * dsrec.c: Likewise.
4948 * dummy-frame.c: Likewise.
4949 * dwarf2-frame-tailcall.c: Likewise.
4950 * dwarf2-frame.c: Likewise.
4951 * dwarf2expr.c: Likewise.
4952 * dwarf2loc.c: Likewise.
4953 * dwarf2read.c: Likewise.
4954 * eval.c: Likewise.
4955 * event-loop.c: Likewise.
4956 * exceptions.c: Likewise.
4957 * expprint.c: Likewise.
4958 * f-valprint.c: Likewise.
4959 * fbsd-nat.c: Likewise.
4960 * findvar.c: Likewise.
4961 * frame-unwind.c: Likewise.
4962 * frame.c: Likewise.
4963 * frv-tdep.c: Likewise.
4964 * gcore.c: Likewise.
4965 * gdb-dlfcn.c: Likewise.
4966 * gdb_bfd.c: Likewise.
4967 * gdbarch.c: Likewise.
4968 * gdbarch.sh: Likewise.
4969 * gdbtypes.c: Likewise.
4970 * gnu-nat.c: Likewise.
4971 * gnu-v3-abi.c: Likewise.
4972 * go-lang.c: Likewise.
4973 * guile/scm-exception.c: Likewise.
4974 * guile/scm-gsmob.c: Likewise.
4975 * guile/scm-lazy-string.c: Likewise.
4976 * guile/scm-math.c: Likewise.
4977 * guile/scm-pretty-print.c: Likewise.
4978 * guile/scm-safe-call.c: Likewise.
4979 * guile/scm-utils.c: Likewise.
4980 * guile/scm-value.c: Likewise.
4981 * h8300-tdep.c: Likewise.
4982 * hppa-hpux-nat.c: Likewise.
4983 * hppa-tdep.c: Likewise.
4984 * hppanbsd-tdep.c: Likewise.
4985 * hppaobsd-tdep.c: Likewise.
4986 * i386-darwin-nat.c: Likewise.
4987 * i386-darwin-tdep.c: Likewise.
4988 * i386-nto-tdep.c: Likewise.
4989 * i386-tdep.c: Likewise.
4990 * i386bsd-nat.c: Likewise.
4991 * i386fbsd-tdep.c: Likewise.
4992 * i386gnu-nat.c: Likewise.
4993 * i386nbsd-tdep.c: Likewise.
4994 * i386obsd-tdep.c: Likewise.
4995 * i387-tdep.c: Likewise.
4996 * ia64-libunwind-tdep.c: Likewise.
4997 * ia64-tdep.c: Likewise.
4998 * inf-ptrace.c: Likewise.
4999 * inf-ttrace.c: Likewise.
5000 * infcall.c: Likewise.
5001 * infcmd.c: Likewise.
5002 * infrun.c: Likewise.
5003 * inline-frame.c: Likewise.
5004 * interps.c: Likewise.
5005 * jv-lang.c: Likewise.
5006 * jv-typeprint.c: Likewise.
5007 * linux-fork.c: Likewise.
5008 * linux-nat.c: Likewise.
5009 * linux-thread-db.c: Likewise.
5010 * m32c-tdep.c: Likewise.
5011 * m32r-linux-nat.c: Likewise.
5012 * m32r-tdep.c: Likewise.
5013 * m68k-tdep.c: Likewise.
5014 * m68kbsd-nat.c: Likewise.
5015 * m68kbsd-tdep.c: Likewise.
5016 * m88k-tdep.c: Likewise.
5017 * machoread.c: Likewise.
5018 * macroexp.c: Likewise.
5019 * macrotab.c: Likewise.
5020 * maint.c: Likewise.
5021 * mdebugread.c: Likewise.
5022 * memory-map.c: Likewise.
5023 * mep-tdep.c: Likewise.
5024 * mi/mi-common.c: Likewise.
5025 * microblaze-tdep.c: Likewise.
5026 * mingw-hdep.c: Likewise.
5027 * mips-linux-nat.c: Likewise.
5028 * mips-linux-tdep.c: Likewise.
5029 * mips-tdep.c: Likewise.
5030 * mips64obsd-tdep.c: Likewise.
5031 * mipsnbsd-tdep.c: Likewise.
5032 * mn10300-linux-tdep.c: Likewise.
5033 * mn10300-tdep.c: Likewise.
5034 * moxie-tdep.c: Likewise.
5035 * mt-tdep.c: Likewise.
5036 * nat/linux-btrace.c: Likewise.
5037 * nat/linux-osdata.c: Likewise.
5038 * nat/linux-ptrace.c: Likewise.
5039 * nat/mips-linux-watch.c: Likewise.
5040 * nios2-linux-tdep.c: Likewise.
5041 * nios2-tdep.c: Likewise.
5042 * objc-lang.c: Likewise.
5043 * objfiles.c: Likewise.
5044 * obsd-nat.c: Likewise.
5045 * opencl-lang.c: Likewise.
5046 * osabi.c: Likewise.
5047 * parse.c: Likewise.
5048 * ppc-linux-nat.c: Likewise.
5049 * ppc-sysv-tdep.c: Likewise.
5050 * ppcfbsd-nat.c: Likewise.
5051 * ppcfbsd-tdep.c: Likewise.
5052 * ppcnbsd-nat.c: Likewise.
5053 * ppcnbsd-tdep.c: Likewise.
5054 * ppcobsd-nat.c: Likewise.
5055 * ppcobsd-tdep.c: Likewise.
5056 * printcmd.c: Likewise.
5057 * procfs.c: Likewise.
5058 * prologue-value.c: Likewise.
5059 * psymtab.c: Likewise.
5060 * python/py-lazy-string.c: Likewise.
5061 * python/py-value.c: Likewise.
5062 * regcache.c: Likewise.
5063 * reggroups.c: Likewise.
5064 * registry.c: Likewise.
5065 * remote-sim.c: Likewise.
5066 * remote.c: Likewise.
5067 * rs6000-aix-tdep.c: Likewise.
5068 * rs6000-tdep.c: Likewise.
5069 * s390-linux-tdep.c: Likewise.
5070 * score-tdep.c: Likewise.
5071 * ser-base.c: Likewise.
5072 * ser-mingw.c: Likewise.
5073 * sh-tdep.c: Likewise.
5074 * sh64-tdep.c: Likewise.
5075 * solib-darwin.c: Likewise.
5076 * solib-spu.c: Likewise.
5077 * solib-svr4.c: Likewise.
5078 * source.c: Likewise.
5079 * sparc-nat.c: Likewise.
5080 * sparc-sol2-tdep.c: Likewise.
5081 * sparc-tdep.c: Likewise.
5082 * sparc64-sol2-tdep.c: Likewise.
5083 * sparc64-tdep.c: Likewise.
5084 * sparc64fbsd-tdep.c: Likewise.
5085 * sparc64nbsd-tdep.c: Likewise.
5086 * sparc64obsd-tdep.c: Likewise.
5087 * sparcnbsd-tdep.c: Likewise.
5088 * sparcobsd-tdep.c: Likewise.
5089 * spu-multiarch.c: Likewise.
5090 * spu-tdep.c: Likewise.
5091 * stabsread.c: Likewise.
5092 * stack.c: Likewise.
5093 * symfile.c: Likewise.
5094 * symtab.c: Likewise.
5095 * target-descriptions.c: Likewise.
5096 * target-memory.c: Likewise.
5097 * target.c: Likewise.
5098 * tic6x-linux-tdep.c: Likewise.
5099 * tic6x-tdep.c: Likewise.
5100 * tilegx-linux-nat.c: Likewise.
5101 * tilegx-tdep.c: Likewise.
5102 * top.c: Likewise.
5103 * tramp-frame.c: Likewise.
5104 * tui/tui-out.c: Likewise.
5105 * tui/tui-winsource.c: Likewise.
5106 * ui-out.c: Likewise.
5107 * user-regs.c: Likewise.
5108 * utils.c: Likewise.
5109 * v850-tdep.c: Likewise.
5110 * valops.c: Likewise.
5111 * value.c: Likewise.
5112 * varobj.c: Likewise.
5113 * vax-nat.c: Likewise.
5114 * xml-syscall.c: Likewise.
5115 * xml-tdesc.c: Likewise.
5116 * xstormy16-tdep.c: Likewise.
5117 * xtensa-linux-nat.c: Likewise.
5118 * xtensa-tdep.c: Likewise.
5119
5120 2014-08-07 Gary Benson <gbenson@redhat.com>
5121
5122 * common/common-defs.h: Include common-utils.h.
5123 * defs.h: Do not include common-utils.h.
5124 * common/gdb_assert.h: Likewise.
5125 * darwin-nat.h: Likewise.
5126 * nat/linux-btrace.c: Likewise.
5127 * target/waitstatus.h: Likewise.
5128
5129 2014-08-07 Gary Benson <gbenson@redhat.com>
5130
5131 * common/common-defs.h: Include ptid.h.
5132 * defs.h: Do not include ptid.h.
5133 * inferior.h: Likewise.
5134 * infrun.h: Likewise.
5135 * nat/linux-btrace.h: Likewise.
5136 * nat/linux-osdata.h: Likewise.
5137 * target/waitstatus.h: Likewise.
5138
5139 2014-08-07 Gary Benson <gbenson@redhat.com>
5140
5141 * common/common-defs.h: Include gdb_locale.h.
5142 * defs.h: Do not include gdb_locale.h.
5143
5144 2014-08-07 Gary Benson <gbenson@redhat.com>
5145
5146 * common/common-defs.h: Include gdb/signals.h.
5147 * defs.h: Do not include gdb/signals.h.
5148
5149 2014-08-07 Gary Benson <gbenson@redhat.com>
5150
5151 * common/common-defs.h: Include pathmax.h.
5152 * defs.h: Do not include pathmax.h.
5153
5154 2014-08-07 Gary Benson <gbenson@redhat.com>
5155
5156 * common/common-defs.h: Include libiberty.h.
5157 * defs.h: Do not include libiberty.h.
5158 * common/queue.h: Likewise.
5159 * cp-name-parser.y: Likewise.
5160 * mi/mi-cmd-catch.c: Likewise.
5161 * python/python.c: Likewise.
5162
5163 2014-08-07 Gary Benson <gbenson@redhat.com>
5164
5165 * common/common-defs.h: Include ansidecl.h.
5166 * defs.h: Do not include ansidecl.h.
5167 * common/buffer.h: Likewise.
5168 * common/common-utils.h: Likewise.
5169
5170 2014-08-07 Gary Benson <gbenson@redhat.com>
5171
5172 * common/common-defs.h: Include stddef.h.
5173 * defs.h: Do not include stddef.h.
5174 * common/common-utils.h: Likewise.
5175 * amd64fbsd-nat.c: Likewise.
5176 * bcache.c: Likewise.
5177 * charset.c: Likewise.
5178 * common/buffer.h: Likewise.
5179 * common/vec.h: Likewise.
5180 * i386bsd-nat.c: Likewise.
5181 * nat/linux-btrace.h: Likewise.
5182 * ppcfbsd-nat.c: Likewise.
5183 * ppcnbsd-tdep.h: Likewise.
5184 * ppcobsd-nat.c: Likewise.
5185 * ppcobsd-tdep.h: Likewise.
5186 * python/py-gdb-readline.c: Likewise.
5187
5188 2014-08-07 Gary Benson <gbenson@redhat.com>
5189
5190 * common/common-defs.h: Include stdarg.h.
5191 * defs.h: Do not include stdarg.h.
5192 * ada-lang.c: Likewise.
5193 * common/common-utils.h: Likewise.
5194 * guile/scm-string.c: Likewise.
5195 * guile/scm-utils.c: Likewise.
5196 * m32c-tdep.c: Likewise.
5197
5198 2014-08-07 Gary Benson <gbenson@redhat.com>
5199
5200 * common/common-defs.h: Include stdlib.h.
5201 * defs.h: Do not include stdlib.h.
5202 * addrmap.c: Likewise.
5203 * bcache.c: Likewise.
5204 * common/buffer.c: Likewise.
5205 * common/common-utils.c: Likewise.
5206 * cp-name-parser.y: Likewise.
5207 * go32-nat.c: Likewise.
5208 * mn10300-linux-tdep.c: Likewise.
5209 * nat/linux-osdata.c: Likewise.
5210 * tui/tui.c: Likewise.
5211 * windows-nat.c: Likewise.
5212
5213 2014-08-07 Gary Benson <gbenson@redhat.com>
5214
5215 * common/common-defs.h: Include stdio.h.
5216 * defs.h: Do not include stdio.h.
5217 * ada-lang.c: Likewise.
5218 * common/buffer.c: Likewise.
5219 * common/common-utils.c: Likewise.
5220 * cp-name-parser.y: Likewise.
5221 * gnu-nat.c: Likewise.
5222 * go32-nat.c: Likewise.
5223 * i386gnu-nat.c: Likewise.
5224 * proc-api.c: Likewise.
5225 * proc-events.c: Likewise.
5226 * proc-flags.c: Likewise.
5227 * proc-why.c: Likewise.
5228 * python/python-internal.h: Likewise.
5229 * target-memory.c: Likewise.
5230 * tui/tui-io.c: Likewise.
5231 * tui/tui.c: Likewise.
5232
5233 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5234
5235 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5236 (scan_dyntag_auxv): Same.
5237
5238 2014-08-06 Yao Qi <yao@codesourcery.com>
5239
5240 * amd64-linux-nat.c: Remove duplicated include
5241 "x86-linux-nat.h".
5242 * i386-linux-nat.c: Likewise.
5243
5244 2014-08-06 Yao Qi <yao@codesourcery.com>
5245
5246 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5247 operand" with "Special opcode" in comments.
5248
5249 2014-08-05 Gary Benson <gbenson@redhat.com>
5250
5251 * interps.c (initialize_interps): Remove prototype.
5252 (interpreter_initialized): Remove static global.
5253 (interp_add): Do not call initialize_interps.
5254 (initialize_interps): Remove function.
5255
5256 2014-08-05 Gary Benson <gbenson@redhat.com>
5257
5258 * utils.c (vwarning): Remove spurious va_end.
5259
5260 2014-08-05 Alan Modra <amodra@gmail.com>
5261
5262 * charset.c (convert_between_encodings): Cast result of obstack_base.
5263 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5264 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5265 (read_unwind_info): Use size_t for some locals.
5266 * jit.c (finalize_symtab): Likewise.
5267 * utils.c (hashtab_obstack_allocate): Likewise.
5268 * symmisc.c (print_objfile_statistics): Update format strings.
5269
5270 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5271
5272 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5273 (Changes in GDB 7.8): ... here.
5274
5275 2014-08-04 Tom Tromey <tromey@redhat.com>
5276
5277 * target.c (set_targetdebug): New function.
5278 (initialize_targets): Pass set_targetdebug when creating "set
5279 debug target".
5280
5281 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5282
5283 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5284 if detecting a variable-sized field that is not the last field.
5285 Fix struct type length computation.
5286
5287 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5288
5289 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5290 Add debug trace.
5291
5292 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5293
5294 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5295 Remove "+ 8" offset in computation of CHAIN_VMA.
5296
5297 2014-07-31 Doug Evans <dje@google.com>
5298
5299 * inflow.c (child_terminal_inferior): Add comment.
5300 (child_terminal_ours_for_output): Add comment.
5301 (child_terminal_ours): Add comment.
5302 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5303 (linux_nat_terminal_ours): Add comment.
5304
5305 2014-07-31 Gary Benson <gbenson@redhat.com>
5306
5307 * common/btrace-common.h: Do not include defs.h or server.h.
5308 * nat/mips-linux-watch.h: Likewise.
5309 * gdb-dlfcn.h: Do not include defs.h.
5310 * tracefile.h: Likewise.
5311
5312 2014-07-30 Roland McGrath <mcgrathr@google.com>
5313
5314 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5315
5316 2014-07-30 Tom Tromey <tromey@redhat.com>
5317
5318 * bsd-kvm.c (bsd_kvm_open): Constify.
5319 * corelow.c (core_open): Constify.
5320 * ctf.c (ctf_open): Constify.
5321 * dbug-rom.c (dbug_open): Constify.
5322 * exec.c (exec_open): Constify.
5323 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5324 * microblaze-rom.c (picobug_open): Constify.
5325 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5326 Constify.
5327 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5328 * record-btrace.c (record_btrace_open): Constify.
5329 * record-full.c (record_full_core_open_1, record_full_open_1)
5330 (record_full_open): Constify.
5331 * remote-m32r-sdi.c (m32r_open): Constify.
5332 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5333 (rockhopper_open, lsi_open): Constify.
5334 * remote-sim.c (gdbsim_open): Constify.
5335 * remote.c (remote_open, extended_remote_open, remote_open_1):
5336 Constify.
5337 * target.h (struct target_ops) <to_open>: Make "arg" const.
5338 * tracefile-tfile.c (tfile_open): Constify.
5339
5340 2014-07-30 Tom Tromey <tromey@redhat.com>
5341
5342 * breakpoint.c (map_breakpoint_numbers): Update.
5343 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5344 (get_number_const): New function.
5345 (get_number): Rewrite using get_number_const.
5346 (init_number_or_range): Make "string" const.
5347 (number_is_in_list): Make "list" const.
5348 * cli/cli-utils.h (get_number_const): Declare.
5349 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5350 (init_number_or_range, number_is_in_list): Update.
5351 * printcmd.c (map_display_numbers): Update.
5352 * value.c (value_from_history_ref): Constify.
5353 * value.h (value_from_history_ref): Update.
5354
5355 2014-07-30 Tom Tromey <tromey@redhat.com>
5356
5357 * corefile.c (hook_type, call_extra_exec_file_hooks)
5358 (specify_exec_file_hook): Constify.
5359 * exec.c (exec_file_attach): Make "filename" const.
5360 * gdbcore.h (deprecated_exec_file_display_hook)
5361 (specify_exec_file_hook, exec_file_attach): Constify.
5362 * main.c (captured_main): Use catch_command_errors_const.
5363
5364 2014-07-30 Tom Tromey <tromey@redhat.com>
5365
5366 * target.c (open_target): New function.
5367 (add_target_with_completer, add_deprecated_target_alias): Use
5368 set_cmd_sfunc, set_cmd_context.
5369 (debug_to_open): Remove.
5370 (setup_target_debug): Update.
5371
5372 2014-07-30 Yao Qi <yao@codesourcery.com>
5373
5374 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5375 comments.
5376 * parse.c (exp_iterate): Update comments.
5377
5378 2014-07-30 Gary Benson <gbenson@redhat.com>
5379
5380 * common/common-defs.h: New file.
5381 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5382 * defs.h: Include common-defs.h.
5383 Do not include config.h or build-gnulib/config.h.
5384
5385 2014-07-30 Gary Benson <gbenson@redhat.com>
5386
5387 * common/common-utils.h: Do not include config.h.
5388 * nat/linux-btrace.h: Likewise.
5389
5390 2014-07-30 Gary Benson <gbenson@redhat.com>
5391
5392 * btrace.c: Include defs.h.
5393 * common/ptid.c: Include defs.h or server.h as appropriate.
5394 * nat/mips-linux-watch.c: Likewise.
5395
5396 2014-07-29 Tom Tromey <tromey@redhat.com>
5397
5398 * target.c (target_is_pushed): Simplify.
5399
5400 2014-07-29 Joel Brobecker <brobecker@adacore.com>
5401
5402 GDB 7.8 released.
5403
5404 2014-07-29 Yao Qi <yao@codesourcery.com>
5405
5406 PR gdb/17206
5407 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5408
5409 2014-07-28 Doug Evans <xdje42@gmail.com>
5410
5411 PR guile/17203
5412 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5413 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5414 parameters.
5415
5416 2014-07-28 Will Newton <will.newton@linaro.org>
5417
5418 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5419 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5420 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5421 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5422 (THUMB2_EABI_SYSCALL): Likewise.
5423 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5424 struct tramp_frame.
5425 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5426 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5427
5428 2014-07-27 Doug Evans <xdje42@gmail.com>
5429
5430 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5431
5432 2014-07-27 Doug Evans <xdje42@gmail.com>
5433
5434 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5435
5436 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5437 Doug Evans <xdje42@gmail.com>
5438
5439 PR guile/17146
5440 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5441 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5442 * configure.ac: Try to use guild to compile an scm file, if it fails
5443 then disable guile support.
5444 * configure: Regenerate.
5445 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5446 GUILE_FILE_LIST.
5447 (GUILE_COMPILED_FILES): New variable.
5448 (GUILE_FILES) Update.
5449 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5450 (stamp-guile): Compile scm files.
5451 * guile/guile.c (boot_guile_support): New function.
5452 (standard_throw_args_p): New function.
5453 (print_standard_throw_error, print_throw_error): New functions.
5454 (handle_boot_error): New function.
5455 (initialize_scheme_side): Rewrite to call boot_guile_support.
5456 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5457 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5458
5459 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5460 Doug Evans <xdje42@gmail.com>
5461
5462 PR guile/17146
5463 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5464 * guile/lib/gdb/support.scm: New file.
5465 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5466 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5467 All uses updated.
5468 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5469 All uses updated.
5470 (%assert-type): Ditto, and renamed to assert-type.
5471 (%exception-print-style): Delete.
5472
5473 2014-07-26 Doug Evans <xdje42@gmail.com>
5474
5475 PR build/17105
5476 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5477 * configure: Regenerate.
5478 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5479 PYTHON_FILES.
5480 (PYTHON_FILES): New variable.
5481 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5482 (GUILE_FILES): New variable.
5483 (stamp-python, install-python, uninstall-python): Handle empty
5484 file list.
5485 (stamp-guile, install-guile, uninstall-guile): Ditto.
5486
5487 2014-07-26 Doug Evans <xdje42@gmail.com>
5488
5489 PR guile/17177
5490 * guile/lib/gdb.scm (pretty-printers): Export.
5491 (set-pretty-printers!): Export.
5492 * guile/lib/gdb/printing.scm (gdb module): Update.
5493 (prepend-pretty-printer!, append-pretty-printer!): Update.
5494 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5495 (pretty_printer_list_var): Delete.
5496 (pretty_printer_list): New static global.
5497 (gdbscm_pretty_printers): New function.
5498 (gdbscm_set_pretty_printers_x): New function.
5499 (ppscm_find_pretty_printer_from_gdb): Update.
5500 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5501 (gdbscm_initialize_pretty_printers): Update.
5502
5503 2014-07-26 Doug Evans <xdje42@gmail.com>
5504
5505 PR 17185
5506 * configure.ac: Add check for header gc/gc.h.
5507 Add check for function setenv.
5508 * configure: Regenerate.
5509 * config.in: Regenerate.
5510 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5511
5512 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5513
5514 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5515 variation in gdbarch matching.
5516
5517 2014-07-25 Tom Tromey <tromey@redhat.com>
5518
5519 * exec.c (using_exec_ops): Remove.
5520 (exec_close_1): Update. Remove extraneous block, reindent.
5521 (add_target_sections): Use target_is_pushed.
5522
5523 2014-07-25 Pedro Alves <palves@redhat.com>
5524
5525 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5526 * monitor.c (monitor_create_inferior): Likewise.
5527 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5528 * remote-sim.c (gdbsim_create_inferior): Likewise.
5529 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5530 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5531 * windows-nat.c (do_initial_windows_stuff): Likewise.
5532
5533 2014-07-25 Pedro Alves <palves@redhat.com>
5534
5535 * NEWS: Mention signal passing and "signal" command changes.
5536 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5537 comment.
5538 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5539 call.
5540 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5541 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5542 (jump_command): Adjust clear_proceed_status call.
5543 (signal_command): Warn if other thread that are resumed have
5544 signals that will be delivered. Adjust clear_proceed_status call.
5545 (until_next_command, finish_command)
5546 (proceed_after_attach_callback, attach_command_post_wait)
5547 (attach_command): Adjust clear_proceed_status call.
5548 * infrun.c (proceed_after_vfork_done): Likewise.
5549 (proceed_after_attach_callback): Adjust comment.
5550 (clear_proceed_status_thread): Clear stop_signal if not in pass
5551 state.
5552 (clear_proceed_status_callback): Delete.
5553 (clear_proceed_status): New 'step' parameter. Only clear the
5554 proceed status of threads the command being prepared is about to
5555 resume.
5556 (proceed): If passed in an explicit signal, override stop_signal
5557 with it. Don't pass the last stop signal to the thread we're
5558 resuming.
5559 (init_wait_for_inferior): Adjust clear_proceed_status call.
5560 (switch_back_to_stepped_thread): Clear the signal if it should not
5561 be passed.
5562 * infrun.h (clear_proceed_status): New 'step' parameter.
5563 (user_visible_resume_ptid): Add comment.
5564 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5565 signal is in pass state.
5566 * remote.c (append_pending_thread_resumptions): Likewise.
5567 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5568
5569 2014-07-25 Tom Tromey <tromey@redhat.com>
5570
5571 * target.h (target_stopped_data_address)
5572 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5573 parentheses.
5574
5575 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5576
5577 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5578 comments.
5579 (avr_pointer_to_address): Likewise.
5580
5581 2014-07-24 Tom Tromey <tromey@redhat.com>
5582
5583 * monitor.c (compile_pattern): Update.
5584 * target.h (struct target_ops) <to_shortname, to_longname,
5585 to_doc>: Now const.
5586
5587 2014-07-24 Tom Tromey <tromey@redhat.com>
5588
5589 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5590 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5591 (add_info_alias, add_com): Make "doc" const.
5592 (print_doc_line): Make "str" const.
5593 (delete_cmd): Update.
5594 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5595 (print_doc_line): Update.
5596 * cli/cli-script.c (document_command): Update.
5597 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5598 (add_com, add_info, add_info_alias): Update.
5599 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5600 * python/py-cmd.c (cmdpy_destroyer): Update.
5601
5602 2014-07-24 Tom Tromey <tromey@redhat.com>
5603
5604 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5605 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5606 (help_cmd_list): Constify.
5607 (lookup_cmd): Update.
5608 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5609 const.
5610 (help_cmd_list, apropos_cmd): Update.
5611 * cli/cli-script.c (show_user): Update.
5612 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5613 * cli/cli-setshow.h (cmd_show_list): Update.
5614 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5615 (cmd_show_list): Update.
5616 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5617 * python/py-cmd.c (cmdpy_destroyer): Update.
5618
5619 2014-07-24 Tom Tromey <tromey@redhat.com>
5620
5621 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5622 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5623 const.
5624 * command.h (deprecate_cmd): Update.
5625 * maint.c (maintenance_do_deprecate): Add casts.
5626
5627 2014-07-24 Tom Tromey <tromey@redhat.com>
5628
5629 * cli/cli-decode.c (help_cmd): Make parameter "const".
5630 * cli/cli-decode.h (help_cmd): Update.
5631
5632 2014-07-24 Tom Tromey <tromey@redhat.com>
5633
5634 * stack.c (up_silently_base, down_silently_base): Make argument
5635 const.
5636
5637 2014-07-24 Tom Tromey <tromey@redhat.com>
5638
5639 * solib.c (solib_add): Make "pattern" const.
5640 * solib.h (solib_add): Update.
5641
5642 2014-07-24 Tom Tromey <tromey@redhat.com>
5643
5644 * remote.c (remote_serial_open, print_packet, putpkt)
5645 (putpkt_binary): Constify.
5646 * remote.h (putpkt): Update.
5647
5648 2014-07-24 Tom Tromey <tromey@redhat.com>
5649
5650 * monitor.c (monitor_open): Make "args" const.
5651 * monitor.h (monitor_open): Update.
5652
5653 2014-07-24 Tom Tromey <tromey@redhat.com>
5654
5655 * maint.c (match_bfd_flags): Make "string" const.
5656 (print_bfd_section_info): Remove casts.
5657 (print_objfile_section_info): Make "string" const.
5658
5659 2014-07-24 Tom Tromey <tromey@redhat.com>
5660
5661 * inf-child.c (inf_child_open_target): Make "arg" const.
5662 * inf-child.h (inf_child_open_target): Update.
5663
5664 2014-07-24 Tom Tromey <tromey@redhat.com>
5665
5666 * environ.c (unset_in_environ): Make "var" const.
5667 * environ.h (unset_in_environ): Update.
5668
5669 2014-07-24 Tom Tromey <tromey@redhat.com>
5670
5671 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5672 Make "cmd" const.
5673 (scan_filename_with_cleanup): Likewise.
5674 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5675 Make arguments const.
5676 (restore_command): Update.
5677
5678 2014-07-24 Pedro Alves <palves@redhat.com>
5679
5680 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5681
5682 2014-07-24 Tom Tromey <tromey@redhat.com>
5683 Gary Benson <gbenson@redhat.com>
5684
5685 * nat/linux-ptrace.c (additional_flags): New global.
5686 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5687 additional_flags; don't check GDBSERVER.
5688 (linux_ptrace_set_additional_flags): New function.
5689 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5690 Declare.
5691 * linux-nat.c (_initialize_linux_nat): Call
5692 linux_ptrace_set_additional_flags.
5693
5694 2014-07-24 Tom Tromey <tromey@redhat.com>
5695
5696 * make-target-delegates (munge_type, write_debugmethod): New
5697 functions.
5698 (debug_names): New global.
5699 ($TARGET_DEBUG_PRINTER): New global.
5700 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5701 name.
5702 Write debug methods. Generate init_debug_target.
5703 * target-debug.h: New file.
5704 * target-delegates.c: Rebuild.
5705 * target.c: Include target-debug.h.
5706 (debug_target): Hoist definition.
5707 (target_kill, target_get_section_table, target_memory_map)
5708 (target_flash_erase, target_flash_done, target_detach)
5709 (target_disconnect, target_wait, target_resume)
5710 (target_pass_signals, target_program_signals, target_follow_fork)
5711 (target_mourn_inferior, target_search_memory)
5712 (target_thread_address_space, target_close)
5713 (target_find_new_threads, target_core_of_thread)
5714 (target_verify_memory, target_insert_mask_watchpoint)
5715 (target_remove_mask_watchpoint): Remove targetdebug code.
5716 (debug_to_post_attach, debug_to_prepare_to_store)
5717 (debug_to_files_info, debug_to_insert_breakpoint)
5718 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5719 (debug_to_region_ok_for_hw_watchpoint)
5720 (debug_to_can_accel_watchpoint_condition)
5721 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5722 (debug_to_watchpoint_addr_within_range)
5723 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5724 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5725 (debug_to_terminal_init, debug_to_terminal_inferior)
5726 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5727 (debug_to_terminal_save_ours, debug_to_terminal_info)
5728 (debug_to_load, debug_to_post_startup_inferior)
5729 (debug_to_insert_fork_catchpoint)
5730 (debug_to_remove_fork_catchpoint)
5731 (debug_to_insert_vfork_catchpoint)
5732 (debug_to_remove_vfork_catchpoint)
5733 (debug_to_insert_exec_catchpoint)
5734 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5735 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5736 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5737 (setup_target_debug): Call init_debug_target.
5738 * target.h (TARGET_DEBUG_PRINTER): New macro.
5739 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5740 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5741
5742 2014-07-24 Gary Benson <gbenson@redhat.com>
5743
5744 * exceptions.h (throw_vfatal): Renamed to...
5745 (throw_vquit): New declaration.
5746 (throw_quit): Likewise.
5747 * exceptions.c (throw_vfatal): Renamed to...
5748 (throw_vquit): New function.
5749 (throw_quit): Likewise.
5750 (throw_error): Call throw_verror rather than throw_it.
5751 * utils.h (vfatal): Removed.
5752 (fatal): Likewise.
5753 * utils.c (vfatal): Removed.
5754 (fatal): Likewise.
5755 (internal_verror): Replaced call to fatal with call to throw_quit.
5756 (quit): Replaced calls to fatal with calls to throw_quit.
5757
5758 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5759
5760 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5761 target_read_code.
5762
5763 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5764
5765 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5766 less than zero in conditional expression.
5767
5768 2014-07-23 Tom Tromey <tromey@redhat.com>
5769
5770 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5771 ($INTRO_PART): Don't match whitespace.
5772 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5773 argument matching.
5774 ($METHOD): Add $METHOD_TRAILER.
5775 (trim): Rewrite.
5776 (scan_target_h): New sub.
5777 Change main loop not to collect state.
5778 * target-delegates.c: Rebuild.
5779
5780 2014-07-23 Gary Benson <gbenson@redhat.com>
5781
5782 * cp-support.c (gdb_demangle): Fix build on systems without
5783 sigaltstack.
5784
5785 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5786
5787 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5788 for reference entry value target data value.
5789
5790 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5791
5792 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5793 value_available_contents_eq.
5794
5795 2014-07-22 Pedro Alves <palves@redhat.com>
5796
5797 * value.c (allocate_optimized_out_value): Don't mark value as
5798 non-lazy.
5799
5800 2014-07-22 Jiong Wang <jiong.wang@arm.com>
5801
5802 * MAINTAINERS (Write After Approval): Update my email address.
5803
5804 2014-07-20 Doug Evans <dje@google.com>
5805
5806 PR server/17147
5807 * remote.c (putpkt_binary): Add text to error message.
5808
5809 2014-07-20 Yao Qi <yao@codesourcery.com>
5810
5811 * eval.c: Remove "Chill" from comments.
5812 * gdbtypes.h: Likewise.
5813 * symtab.h: Likewise.
5814
5815 2014-07-20 Yao Qi <yao@codesourcery.com>
5816
5817 * std-operator.def: Update comments to TERNOP_SLICE.
5818
5819 2014-07-20 Yao Qi <yao@codesourcery.com>
5820
5821 * std-operator.def: Remove BINOP_RANGE.
5822 * breakpoint.c (watchpoint_exp_is_const): Update.
5823 * expprint.c (dump_subexp_body_standard): Likewise.
5824 * eval.c (init_array_element): Remove dead code.
5825 (evaluate_subexp_standard): Likewise.
5826
5827 2014-07-20 Yao Qi <yao@codesourcery.com>
5828
5829 * std-operator.def: Remove BINOP_IN.
5830 * breakpoint.c (watchpoint_exp_is_const): Update.
5831 * eval.c (evaluate_subexp_standard): Likewise.
5832 * expprint.c (dump_subexp_body_standard): Likewise.
5833
5834 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5835
5836 * microblaze-tdep.c (microblaze_register_names): Add
5837 the rshr and rslr register names.
5838 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5839 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5840 Use of tdesc_numbered_register. Use of
5841 microblaze_register_g_packet_guesses. Use of
5842 tdesc_use_registers. Use of set_gdbarch_register_type.
5843 (microblaze_register_g_packet_guesses): New.
5844 * microblaze-tdep.h (microblaze_reg_num): Add
5845 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5846 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5847 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5848 * features/microblaze-core.xml: New file.
5849 * features/microblaze-stack-protect.xml: New file.
5850 * features/microblaze-with-stack-protect.c: New file.
5851 * features/microblaze-with-stack-protect.xml: New file.
5852 * features/microblaze.xml: New file.
5853 * features/microblaze.c: New file.
5854 * features/Makefile (microblaze-with-stack-protect): Add
5855 microblaze-with-stack-protect microblaze and microblaze-expedite.
5856 * regformats/microblaze-with-stack-protect.dat: New file.
5857 * regformats/microblaze.dat: New file.
5858 * doc/gdb.texinfo (MicroBlaze Features): Added.
5859
5860 2014-07-18 Tom Tromey <tromey@redhat.com>
5861
5862 * exec.c (exec_ops): Now static.
5863 * exec.h (exec_ops): Don't declare.
5864
5865 2014-07-18 Tom Tromey <tromey@redhat.com>
5866
5867 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5868 to find_target_beneath.
5869 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5870 find_target_beneath.
5871 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5872
5873 2014-07-18 Tom Tromey <tromey@redhat.com>
5874
5875 PR gdb/17130:
5876 * utils.c (quit): Use target_supports_terminal_ours.
5877 * target.h (target_supports_terminal_ours): Declare.
5878 * target.c (target_supports_delete_record): Don't check
5879 to_delete_record against NULL.
5880 (target_supports_terminal_ours): New function.
5881
5882 2014-07-18 Tom Tromey <tromey@redhat.com>
5883
5884 PR gdb/17130:
5885 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5886 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5887 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5888 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5889 * windows-nat.c (windows_xfer_partial): Always delegate.
5890 * record-btrace.c (record_btrace_xfer_partial): Simplify
5891 delegation.
5892 (record_btrace_fetch_registers, record_btrace_store_registers)
5893 (record_btrace_prepare_to_store, record_btrace_resume)
5894 (record_btrace_wait, record_btrace_find_new_threads)
5895 (record_btrace_thread_alive): Likewise.
5896 * procfs.c (procfs_xfer_partial): Always delegate.
5897 * corelow.c (core_xfer_partial): Always delegate.
5898 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5899
5900 2014-07-18 Tom Tromey <tromey@redhat.com>
5901
5902 * exec.c (exec_make_note_section): Move earlier.
5903
5904 2014-07-17 Doug Evans <dje@google.com>
5905
5906 PR gdb/17170
5907 * maint.c (count_symtabs_and_blocks): Handle NULL
5908 current_program_space.
5909 (report_command_stats): Check global enabled flag in addition to
5910 recorded enabled flag.
5911 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5912
5913 2014-07-16 Pedro Alves <palves@redhat.com>
5914
5915 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5916
5917 2014-07-16 Tom Tromey <tromey@redhat.com>
5918
5919 * target.h (struct target_ops) <to_delete_record>: Reformat
5920 comment.
5921
5922 2014-07-16 Tom Tromey <tromey@redhat.com>
5923
5924 * target-delegates.c: Rebuild.
5925
5926 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5927
5928 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5929 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5930 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5931 (avr_pointer_to_address): Likewise.
5932 (avr_address_class_type_flags): New function.
5933 (avr_address_class_type_flags_to_name): Likewise.
5934 (avr_address_class_name_to_type_flags): Likewise.
5935 (avr_gdbarch_init): Set address_class_type_flags,
5936 address_class_type_flags_to_name and
5937 address_class_name_to_type_flags.
5938
5939 2014-07-15 Pedro Alves <palves@redhat.com>
5940
5941 * linux-nat.c (kill_callback): Save errno and work with saved
5942 copy.
5943
5944 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5945
5946 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5947
5948 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5949
5950 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5951 breakpoint support correctly.
5952
5953 2014-07-14 Pedro Alves <palves@redhat.com>
5954
5955 * utils.c (prompt_for_continue): Call target_terminal_ours.
5956
5957 2014-07-14 Pedro Alves <palves@redhat.com>
5958
5959 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5960 catch_errors. Don't re-enable stdin or notify observers where,
5961 and rethrow error.
5962 (fetch_inferior_event_wrapper): Delete.
5963
5964 2014-07-14 Pedro Alves <palves@redhat.com>
5965
5966 PR gdb/17072
5967 * top.c: Include "inf-loop.h".
5968 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5969 field.
5970 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5971 was async before.
5972 (gdb_readline_wrapper): Store whether the target is async, and
5973 make it sync.
5974
5975 2014-07-14 Pedro Alves <palves@redhat.com>
5976
5977 PR gdb/17072
5978 * top.c (gdb_readline_wrapper_line): Tweak comment.
5979 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5980 the input handler callback.
5981
5982 2014-07-14 Pedro Alves <palves@redhat.com>
5983
5984 PR gdb/17072
5985 * main.c: Include event-top.h.
5986 (handle_command_errors): New function.
5987 (catch_command_errors, catch_command_errors_const): Use it.
5988
5989 2014-07-14 Pedro Alves <palves@redhat.com>
5990
5991 * exceptions.c (catch_command_errors, catch_command_errors_const):
5992 Moved to main.c.
5993 * exceptions.h (catch_command_errors_ftype)
5994 (catch_command_errors_const_ftype): Moved to main.c.
5995 (catch_command_errors, catch_command_errors_const): Delete
5996 declarations.
5997 * main.c (catch_command_errors_ftype)
5998 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5999 (catch_command_errors, catch_command_errors_const)): Moved here
6000 from exceptions.c and make static.
6001
6002 2014-07-14 Pedro Alves <palves@redhat.com>
6003
6004 * exceptions.c (print_any_exception): Delete.
6005 (catch_exceptions_with_msg): Use exception_print instead of
6006 print_any_exception.
6007 (catch_errors): Use exception_fprintf instead of
6008 print_any_exception.
6009 (catch_command_errors, catch_command_errors_const): Use
6010 exception_print instead of print_any_exception.
6011
6012 2014-07-14 Pedro Alves <palves@redhat.com>
6013
6014 * infcall.c (run_inferior_call): Set 'sync_execution' while
6015 running the inferior call.
6016
6017 2014-07-14 Pedro Alves <palves@redhat.com>
6018
6019 * value.c (value_contents_equal): Delete function.
6020 * value.h (value_contents_equal): Delete declaration.
6021
6022 2014-07-14 Tom Tromey <tromey@redhat.com>
6023
6024 PR exp/17106:
6025 * gdbtypes.c (is_dynamic_type_internal): New function, from
6026 is_dynamic_type.
6027 (is_dynamic_type): Rewrite.
6028 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
6029 (resolve_dynamic_struct): Likewise.
6030 (resolve_dynamic_type_internal): New function, from
6031 resolve_dynamic_type.
6032 (resolve_dynamic_type): Rewrite.
6033
6034 2014-07-14 Tom Tromey <tromey@redhat.com>
6035
6036 * target.c (target_require_runnable): Also check record_stratum.
6037 Update comment.
6038
6039 2014-07-11 Yao Qi <yao@codesourcery.com>
6040
6041 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
6042 thumb_instruction_restores_sp return true.
6043
6044 2014-07-11 Yao Qi <yao@codesourcery.com>
6045
6046 * arm-tdep.c (thumb_instruction_restores_sp): New function.
6047 (thumb_in_function_epilogue_p): Call
6048 thumb_instruction_restores_sp.
6049
6050 2014-07-11 Yao Qi <yao@codesourcery.com>
6051
6052 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
6053 'add sp, #imm'.
6054 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
6055
6056 2014-07-11 Gary Benson <gbenson@redhat.com>
6057
6058 * amd64-linux-nat.c (gdbcore.h): Remove include.
6059 (regset.h): Likewise.
6060 (nat/linux-btrace.h): Likewise.
6061 (btrace.h): Likewise.
6062 (gdb_assert.h): Likewise.
6063 (string.h): Likewise.
6064 (sys/uio.h): Likewise.
6065 (sys/debugreg.h): Likewise.
6066 (sys/syscall.h): Likewise.
6067 (sys/procfs.h): Likewise.
6068 (sys/user.h): Likewise.
6069 (asm/ptrace.h): Likewise.
6070 (i386-nat.h): Likewise.
6071 * i386-linux-nat.c (i386-nat.h): Likewise.
6072 (regset.h): Likewise.
6073 (target.h): Likewise.
6074 (linux-nat.h): Likewise.
6075 (nat/linux-btrace.h): Likewise.
6076 (btrace.h): Likewise.
6077 (gdb_assert.h): Likewise.
6078 (string.h): Likewise.
6079 (sys/uio.h): Likewise.
6080 (sys/user.h): Likewise.
6081 (sys/procfs.h): Likewise.
6082 (sys/reg.h): Likewise.
6083 (sys/debugreg.h): Likewise.
6084 (ORIG_EAX): Remove definition.
6085
6086 2014-07-11 Gary Benson <gbenson@redhat.com>
6087
6088 * i386-linux-nat.h: New file.
6089 * x86-linux-nat.h: Likewise.
6090 * x86-linux-nat.c: Likewise.
6091 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
6092 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
6093 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6094 * amd64-linux-nat.c (x86-linux-nat.h): New include.
6095 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6096 (PTRACE_SETREGSET): Likewise.
6097 (arch_lwp_info): Now in x86-linux-nat.c.
6098 (have_ptrace_getregset): Now in x86-linux-nat.h.
6099 (x86_linux_dr_get): Now in x86-linux-nat.c.
6100 (x86_linux_dr_set): Likewise.
6101 (x86_linux_dr_get_addr): Likewise.
6102 (x86_linux_dr_get_control): Likewise.
6103 (x86_linux_dr_get_status): Likewise.
6104 (update_debug_registers_callback): Likewise.
6105 (x86_linux_dr_set_control): Likewise.
6106 (x86_linux_dr_set_addr): Likewise.
6107 (x86_linux_prepare_to_resume): Likewise.
6108 (x86_linux_new_thread): Likewise.
6109 (x86_linux_new_fork): Likewise.
6110 (x86_linux_get_thread_area): Likewise.
6111 (super_post_startup_inferior): Likewise.
6112 (x86_linux_child_post_startup_inferior): Likewise.
6113 (AMD64_LINUX_USER64_CS): Likewise.
6114 (AMD64_LINUX_X32_DS): Likewise.
6115 (x86_linux_read_description): Likewise.
6116 (x86_linux_enable_btrace): Likewise.
6117 (x86_linux_disable_btrace): Likewise.
6118 (x86_linux_teardown_btrace): Likewise.
6119 (x86_linux_read_btrace): Likewise.
6120 (x86_linux_create_target): Likewise.
6121 (x86_linux_add_target): Likewise.
6122 * i386-linux-nat.c (x86-linux-nat.h): New include.
6123 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6124 (PTRACE_SETREGSET): Likewise.
6125 (arch_lwp_info): Now in x86-linux-nat.c.
6126 (have_ptrace_getregset): Now in x86-linux-nat.h.
6127 (x86_linux_dr_get): Now in x86-linux-nat.c.
6128 (x86_linux_dr_set): Likewise.
6129 (x86_linux_dr_get_addr): Likewise.
6130 (x86_linux_dr_get_control): Likewise.
6131 (x86_linux_dr_get_status): Likewise.
6132 (update_debug_registers_callback): Likewise.
6133 (x86_linux_dr_set_control): Likewise.
6134 (x86_linux_dr_set_addr): Likewise.
6135 (x86_linux_prepare_to_resume): Likewise.
6136 (x86_linux_new_thread): Likewise.
6137 (x86_linux_new_fork): Likewise.
6138 (x86_linux_get_thread_area): Likewise.
6139 (super_post_startup_inferior): Likewise.
6140 (x86_linux_child_post_startup_inferior): Likewise.
6141 (AMD64_LINUX_USER64_CS): Likewise.
6142 (AMD64_LINUX_X32_DS): Likewise.
6143 (x86_linux_read_description): Likewise.
6144 (x86_linux_enable_btrace): Likewise.
6145 (x86_linux_disable_btrace): Likewise.
6146 (x86_linux_teardown_btrace): Likewise.
6147 (x86_linux_read_btrace): Likewise.
6148 (x86_linux_create_target): Likewise.
6149 (x86_linux_add_target): Likewise.
6150
6151 2014-07-11 Gary Benson <gbenson@redhat.com>
6152
6153 * amd64-linux-nat.c: Comment and whitespace changes.
6154 * i386-linux-nat.c: Comment and whitespace changes.
6155
6156 2014-07-11 Gary Benson <gbenson@redhat.com>
6157
6158 * amd64-linux-nat.c (x86_linux_create_target): New function.
6159 (x86_linux_add_target): Likewise.
6160 (_initialize_amd64_linux_nat): Delegate to the above new functions.
6161 * i386-linux-nat.c (x86_linux_create_target): New function.
6162 (x86_linux_add_target): Likewise.
6163 (_initialize_i386_linux_nat): Delegate to the above new functions.
6164
6165 2014-07-11 Gary Benson <gbenson@redhat.com>
6166
6167 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
6168 (ps_get_thread_area): Delegate to the above in 32-bit mode.
6169 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
6170 (ps_get_thread_area): Delegate to the above.
6171
6172 2014-07-11 Gary Benson <gbenson@redhat.com>
6173
6174 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
6175 x86_linux_read_description. All uses updated. amd64-specific
6176 code conditionalized. Conditionalized i386-specific code added.
6177 Redundant cast removed.
6178 * i386-linux-nat.c (i386_linux_read_description): Renamed to
6179 x86_linux_read_description. All uses updated. i386-specific
6180 code conditionalized. Conditionalized amd64-specific code added.
6181 One sizeof replaced with the actual type it is describing.
6182
6183 2014-07-11 Gary Benson <gbenson@redhat.com>
6184
6185 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
6186 x86_linux_dr_get. All uses updated.
6187 (amd64_linux_dr_set): Renamed to
6188 x86_linux_dr_set. All uses updated.
6189 (amd64_linux_dr_get_addr): Renamed to
6190 x86_linux_dr_get_addr. All uses updated.
6191 (amd64_linux_dr_get_control): Renamed to
6192 x86_linux_dr_get_control. All uses updated.
6193 (amd64_linux_dr_get_status): Renamed to
6194 x86_linux_dr_get_status. All uses updated.
6195 (amd64_linux_dr_set_control): Renamed to
6196 x86_linux_dr_set_control. All uses updated.
6197 (amd64_linux_dr_set_addr): Renamed to
6198 x86_linux_dr_set_addr. All uses updated.
6199 (amd64_linux_prepare_to_resume): Renamed to
6200 x86_linux_prepare_to_resume. All uses updated.
6201 (amd64_linux_new_thread): Renamed to
6202 x86_linux_new_thread. All uses updated.
6203 (amd64_linux_new_fork): Renamed to
6204 x86_linux_new_fork. All uses updated.
6205 (amd64_linux_child_post_startup_inferior): Renamed to
6206 x86_linux_child_post_startup_inferior. All uses updated.
6207 (amd64_linux_enable_btrace): Renamed to
6208 x86_linux_enable_btrace. All uses updated.
6209 (amd64_linux_disable_btrace): Renamed to
6210 x86_linux_disable_btrace. All uses updated.
6211 (amd64_linux_teardown_btrace): Renamed to
6212 x86_linux_teardown_btrace. All uses updated.
6213 (amd64_linux_read_btrace): Renamed to
6214 x86_linux_read_btrace. All uses updated.
6215 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6216 x86_linux_dr_get. All uses updated.
6217 (i386_linux_dr_set): Renamed to
6218 x86_linux_dr_set. All uses updated.
6219 (i386_linux_dr_get_addr): Renamed to
6220 x86_linux_dr_get_addr. All uses updated.
6221 (i386_linux_dr_get_control): Renamed to
6222 x86_linux_dr_get_control. All uses updated.
6223 (i386_linux_dr_get_status): Renamed to
6224 x86_linux_dr_get_status. All uses updated.
6225 (i386_linux_dr_set_control): Renamed to
6226 x86_linux_dr_set_control. All uses updated.
6227 (i386_linux_dr_set_addr): Renamed to
6228 x86_linux_dr_set_addr. All uses updated.
6229 (i386_linux_prepare_to_resume): Renamed to
6230 x86_linux_prepare_to_resume. All uses updated.
6231 (i386_linux_new_thread): Renamed to
6232 x86_linux_new_thread. All uses updated.
6233 (i386_linux_new_fork): Renamed to
6234 x86_linux_new_fork. All uses updated.
6235 (i386_linux_child_post_startup_inferior): Renamed to
6236 x86_linux_child_post_startup_inferior. All uses updated.
6237 (i386_linux_enable_btrace): Renamed to
6238 x86_linux_enable_btrace. All uses updated.
6239 (i386_linux_disable_btrace): Renamed to
6240 x86_linux_disable_btrace. All uses updated.
6241 (i386_linux_teardown_btrace): Renamed to
6242 x86_linux_teardown_btrace. All uses updated.
6243 (i386_linux_read_btrace): Renamed to
6244 x86_linux_read_btrace. All uses updated.
6245
6246 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6247
6248 * remote.c (extended_remote_post_attach): New function.
6249 (init_extended_remote_ops): Install it as to_post_attach method.
6250
6251 2014-07-09 Pedro Alves <palves@redhat.com>
6252
6253 * infcmd.c (attach_command_post_wait): Don't call
6254 target_terminal_inferior here.
6255 (attach_command): Call it here instead.
6256
6257 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6258
6259 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6260 field.
6261 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6262 from varobj.c, with additional checks.
6263 (c_varobj_ops): Fill in is_path_expr_parent field.
6264 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6265 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6266 field.
6267 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6268 ops method.
6269 (varobj_default_is_path_expr_parent): New function.
6270 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6271 (varobj_default_is_path_expr_parent): Declare new function.
6272
6273 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6274
6275 * infcmd.c (finish_backward): Turn internal error into normal error.
6276
6277 2014-07-07 Pedro Alves <palves@redhat.com>
6278
6279 PR gdb/17096
6280 * remote.c (async_handle_remote_sigint)
6281 (async_handle_remote_sigint_twice): Call
6282 gdb_call_async_signal_handler instead of
6283 mark_async_signal_handler.
6284
6285 2014-07-07 Tom Tromey <tromey@redhat.com>
6286
6287 * target-delegates.c: Rebuild.
6288 * target.c (target_info_record): Remove.
6289 * record.c (info_record_command): Unconditionally call
6290 to_info_record.
6291 * target.h (struct target_ops) <to_info_record>: Use
6292 TARGET_DEFAULT_IGNORE.
6293 (target_info_record): Remove.
6294
6295 2014-07-07 Tom Tromey <tromey@redhat.com>
6296
6297 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6298 TARGET_DEFAULT_NORETURN.
6299 * target.c (generic_tls_error): New function.
6300 (target_translate_tls_address): Don't search target stack.
6301 * target-delegates.c: Rebuild.
6302 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6303 stack.
6304 * linux-thread-db.c (thread_db_get_thread_local_address):
6305 Unconditionally call beneath target.
6306
6307 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6308
6309 * cli/cli-logging.c (pop_output_files): Assign targerr to
6310 gdb_stdtargerr.
6311
6312 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6313
6314 * MAINTAINERS (Write After Approval): Update my email address.
6315
6316 2014-07-02 Gary Benson <gbenson@redhat.com>
6317
6318 * proc-service.c (ps_xfer_memory): Update comment.
6319 (ps_pstop): Remove unused function.
6320 (ps_pcontinue): Likewise.
6321 (ps_lstop): Likewise.
6322 (ps_lcontinue): Likewise.
6323 (ps_lgetxregsize): Likewise.
6324 (ps_lgetxregs): Likewise.
6325 (ps_lsetxregs): Likewise.
6326 (ps_plog): Likewise.
6327 (ps_ptread): Likewise.
6328 (ps_ptwrite): Likewise.
6329
6330 2014-07-01 Mark Wielaard <mjw@redhat.com>
6331
6332 * dwarf2read.c (add_array_cv_type): New function.
6333 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6334 (read_tag_volatile_type): Likewise.
6335
6336 2014-07-01 Tom Tromey <tromey@redhat.com>
6337
6338 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6339 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6340 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6341 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6342 * command.h (cmd_cfunc_ftype): Move earlier.
6343 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6344 (add_com, add_info): Use cmd_cfunc_ftype.
6345
6346 2014-06-30 Tom Tromey <tromey@redhat.com>
6347
6348 * symtab.c (operator_chars): Make parameters and return type
6349 const.
6350 (file_matches): Make "files" const.
6351 (struct search_symbols_data) <files>: Now const.
6352 (search_symbols): Make "regexp" and "files" parameters const.
6353 Update.
6354 (symtab_symbol_info): Remove cast.
6355 (rbreak_command): Update.
6356 * symtab.h (search_symbols): Update.
6357
6358 2014-06-27 Yao Qi <yao@codesourcery.com>
6359
6360 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6361 Change parameter type to 'struct thread_info *'. Caller
6362 updated.
6363 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6364 Update declaration.
6365 * dummy-frame.c (struct dummy_frame_id): New.
6366 (dummy_frame_id_eq): New function.
6367 (struct dummy_frame) <id>: Change its type to 'struct
6368 dummy_frame_id'.
6369 (dummy_frame_push): Add parameter ptid and save it in
6370 dummy_frame_id.
6371 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6372 inferior_ptid.
6373 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6374 to inferior_ptid.
6375 (lookup_dummy_frame): Change parameter type to 'struct
6376 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6377 instead of frame_id_eq.
6378 (dummy_frame_pop): Add parameter ptid. Callers updated.
6379 Update comments. Compose dummy_frame_id and pass it to
6380 lookup_dummy_frame.
6381 (dummy_frame_discard): Add parameter ptid.
6382 (dummy_frame_sniffer): Compose dummy_frame_id and call
6383 dummy_frame_id_eq instead of frame_id_eq.
6384 (fprint_dummy_frames): Print ptid.
6385 * dummy-frame.h: Remove comments.
6386 (dummy_frame_push): Add ptid in declaration.
6387 (dummy_frame_pop, dummy_frame_discard): Likewise.
6388
6389 2014-06-26 Tom Tromey <tromey@redhat.com>
6390
6391 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6392 * command.h (error_no_arg): Update.
6393
6394 2014-06-26 Tom Tromey <tromey@redhat.com>
6395
6396 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6397 (do_show_command): Make "arg" const.
6398 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6399
6400 2014-06-26 Tom Tromey <tromey@redhat.com>
6401
6402 * record-full.c (record_full_get_bookmark): Make "args" const.
6403 (record_full_goto_bookmark): Make "raw_bookmark" const.
6404 * record.c (record_goto): New function.
6405 (cmd_record_goto): Use it. Now static.
6406 * record.h (record_goto): Declare.
6407 (cmd_record_goto): Remove declaration.
6408 * target-delegates.c: Rebuild.
6409 * target.h (struct target_ops) <to_get_bookmark,
6410 to_goto_bookmark>: Make parameter const.
6411
6412 2014-06-26 Tom Tromey <tromey@redhat.com>
6413
6414 * defs.h (generic_load): Update.
6415 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6416 * monitor.c (monitor_load): Make "args" const.
6417 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6418 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6419 const.
6420 (mips_load): Make "file" const.
6421 * remote-sim.c (gdbsim_load): Make "args" const.
6422 * remote.c (remote_load): Make "name" const.
6423 * symfile.c (generic_load): Make "args" const.
6424 * target-delegates.c: Rebuild.
6425 * target.c (target_load): Make "arg" const.
6426 (debug_to_load): Make "args" const.
6427 * target.h (struct target_ops) <to_load>: Make parameter const.
6428 (target_load): Update.
6429
6430 2014-06-26 Tom Tromey <tromey@redhat.com>
6431
6432 PR symtab/16902:
6433 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6434 (dwarf2_physname, read_partial_die)
6435 (guess_partial_die_structure_name, fixup_partial_die)
6436 (guess_full_die_structure_name, anonymous_struct_prefix)
6437 (dwarf2_name): Use per-BFD obstack.
6438
6439 2014-06-26 Yao Qi <yao@codesourcery.com>
6440
6441 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6442 dummyframe and this_id into inner block below.
6443
6444 2014-06-26 Yao Qi <yao@codesourcery.com>
6445
6446 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6447 with "signal_pass[0]" in the initialization of signal_pass.
6448
6449 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6450
6451 * record-btrace.c (record_btrace_generating_corefile)
6452 (record_btrace_prepare_to_generate_core)
6453 (record_btrace_done_generating_core): New.
6454 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6455 (record_btrace_store_registers, record_btrace_prepare_to_store):
6456 Forward request when generating a core file.
6457 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6458 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6459 to_done_generating_core.
6460
6461 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6462
6463 * target.h (target_ops) <to_prepare_to_generate_core>
6464 <to_done_generating_core>: New.
6465 (target_prepare_to_generate_core, target_done_generating_core): New.
6466 * target.c (target_prepare_to_generate_core)
6467 (target_done_generating_core): New.
6468 * target-delegates.c: Regenerate.
6469 * gcore.c: (write_gcore_file): Rename to ...
6470 (write_gcore_file_1): ...this.
6471 (write_gcore_file): Call target_prepare_to_generate_core
6472 and target_done_generating_core.
6473
6474 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6475
6476 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6477 * gcore.c (write_gcore_file): Free memory returned from
6478 make_corefile_notes.
6479 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6480 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6481
6482 2014-06-24 Yao Qi <yao@codesourcery.com>
6483
6484 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6485 (arm_linux_init_abi): Set skip_trampoline_code with
6486 gdbarch_skip_trampoline_code instead of
6487 find_solib_trampoline_target.
6488
6489 2014-06-24 Yao Qi <yao@codesourcery.com>
6490
6491 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6492 arm_skip_bx_reg returns non-zero.
6493
6494 2014-06-24 Yao Qi <yao@codesourcery.com>
6495
6496 * arm-tdep.c (arm_skip_bx_reg): New function.
6497 (arm_skip_stub): Call arm_skip_bx_reg.
6498
6499 2014-06-23 Don Breazeal <donb@codesourcery.com>
6500
6501 * MAINTAINERS: Add myself as write-after-approval maintainer.
6502
6503 2014-06-23 Pedro Alves <palves@redhat.com>
6504
6505 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6506 DR_CONTROL before setting DR0..DR3.
6507 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6508 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6509 bits of DR_CONTROL related to the debug register slot being
6510 disabled. If all slots are vacant, clear local slowdown as well,
6511 and assert DR_CONTROL is 0.
6512
6513 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6514
6515 * python/lib/gdb/command/xmethods.py
6516 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6517 current progspace only if the string "progspace" matches LOCUS_RE.
6518
6519 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6520
6521 Fix --with-system-readline with readline-6.3 patch 5.
6522 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6523 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6524 types.
6525
6526 2014-06-20 Tom Tromey <tromey@redhat.com>
6527
6528 * dwarf2read.c (dw2_get_real_path): Use correct type in
6529 OBSTACK_CALLOC.
6530 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6531
6532 2014-06-20 Gary Benson <gbenson@redhat.com>
6533
6534 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6535 * common/glibc_thread_db.h: Likewise.
6536 * common/i386-cpuid.h: Likewise.
6537 * common/i386-gcc-cpuid.h: Likewise.
6538 * common/linux-btrace.h: Likewise.
6539 * common/linux-osdata.h: Likewise.
6540 * common/linux-procfs.h: Likewise.
6541 * common/linux-ptrace.h: Likewise.
6542 * common/mips-linux-watch.h: Likewise.
6543 * common/linux-btrace.c: Moved to nat.
6544 * common/linux-osdata.c: Likewise.
6545 * common/linux-procfs.c: Likewise.
6546 * common/linux-ptrace.c: Likewise.
6547 * common/mips-linux-watch.c: Likewise.
6548 * nat/gdb_thread_db.h: Moved from common.
6549 * nat/glibc_thread_db.h: Likewise.
6550 * nat/i386-cpuid.h: Likewise.
6551 * nat/i386-gcc-cpuid.h: Likewise.
6552 * nat/linux-btrace.c: Likewise.
6553 * nat/linux-btrace.h: Likewise.
6554 * nat/linux-osdata.c: Likewise.
6555 * nat/linux-osdata.h: Likewise.
6556 * nat/linux-procfs.c: Likewise.
6557 * nat/linux-procfs.h: Likewise.
6558 * nat/linux-ptrace.c: Likewise.
6559 * nat/linux-ptrace.h: Likewise.
6560 * nat/mips-linux-watch.c: Likewise.
6561 * nat/mips-linux-watch.h: Likewise.
6562 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6563 (object file files): Reordered.
6564 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6565 of glibc_thread_db.h.
6566
6567 2014-06-20 Gary Benson <gbenson@redhat.com>
6568
6569 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6570 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6571 (i386_dr_low): Likewise.
6572 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6573 (i386_dr_low_set_addr): Likewise.
6574 (i386_dr_low_get_addr): Likewise.
6575 (i386_dr_low_can_set_control): Likewise.
6576 (i386_dr_low_set_control): Likewise.
6577 (i386_dr_low_get_control): Likewise.
6578 (i386_dr_low_get_status): Likewise.
6579 (i386_get_debug_register_length): Likewise.
6580 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6581 (i386_dr_low): Likewise.
6582 * nat/i386-dregs.c (i386-low.h): Remove include.
6583 (i386-nat.h): Likewise.
6584 (nat/i386-dregs.h): New include.
6585 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6586 (i386_dr_low_set_addr): Likewise.
6587 (i386_dr_low_get_addr): Likewise.
6588 (i386_dr_low_can_set_control): Likewise.
6589 (i386_dr_low_set_control): Likewise.
6590 (i386_dr_low_get_control): Likewise.
6591 (i386_dr_low_get_status): Likewise.
6592 (i386_get_debug_register_length): Likewise.
6593 (debug_hw_points): Likewise.
6594
6595 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6596
6597 * Makefile.in (SFILES): Add d-exp.y.
6598 (YYFILES): Add d-exp.c.
6599 (YYOBJ): Add d-exp.o.
6600 (local-maintainer-clean): Delete d-exp.c.
6601 * d-exp.y: New file.
6602 * d-lang.h (d_parse): New declaration.
6603 (d_error): New declaration.
6604 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6605 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6606 PREC_ORDER operators.
6607 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6608
6609 2014-06-19 Yao Qi <yao@codesourcery.com>
6610
6611 * gdbthread.h (any_running): Remove the declaration.
6612 * thread.c (any_running): Remove.
6613
6614 2014-06-19 Yao Qi <yao@codesourcery.com>
6615
6616 * gdbthread.h (struct thread_info) <state>: Change its type to
6617 'enum thread_state'. Update comments.
6618
6619 2014-06-19 Pedro Alves <palves@redhat.com>
6620
6621 * gdbthread.h (ALL_THREADS): Delete.
6622 (ALL_NON_EXITED_THREADS): New macro.
6623 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6624 instead of ALL_THREADS.
6625 * infrun.c (find_thread_needs_step_over)
6626 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6627 instead of ALL_THREADS.
6628 * record-btrace.c (record_btrace_open)
6629 (record_btrace_stop_recording, record_btrace_close)
6630 (record_btrace_is_replaying, record_btrace_resume)
6631 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6632 * remote.c (append_pending_thread_resumptions): Likewise.
6633 * thread.c (thread_apply_all_command): Likewise.
6634
6635 2014-06-19 Gary Benson <gbenson@redhat.com>
6636
6637 * i386-nat.c (i386_stopped_by_watchpoint):
6638 Use i386_dr_stopped_by_watchpoint.
6639 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6640 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6641
6642 2014-06-19 Gary Benson <gbenson@redhat.com>
6643
6644 * nat/i386-dregs.c: New file.
6645 * Makefile.in (i386-dregs.o): New rule.
6646 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6647 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6648 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6649 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6650 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6651 * config/i386/go32.mh (NATDEPFILES): Likewise.
6652 * config/i386/linux.mh (NATDEPFILES): Likewise.
6653 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6654 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6655 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6656 * i386-nat.h (debug_hw_points): New declaration.
6657 * i386-nat.c (breakpoint.h): Remove include.
6658 (command.h): Likewise.
6659 (target.h): Likewise.
6660 (gdb_assert.h): Likewise.
6661 (debug_hw_points): Made nonstatic.
6662 (debug_printf): Now in i386-dregs.c.
6663 (TARGET_HAS_DR_LEN_8): Likewise.
6664 (DR_CONTROL_SHIFT): Likewise.
6665 (DR_CONTROL_SIZE): Likewise.
6666 (DR_RW_EXECUTE): Likewise.
6667 (DR_RW_WRITE): Likewise.
6668 (DR_RW_READ): Likewise.
6669 (DR_RW_IORW): Likewise.
6670 (DR_LEN_1): Likewise.
6671 (DR_LEN_2): Likewise.
6672 (DR_LEN_4): Likewise.
6673 (DR_LEN_8): Likewise.
6674 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6675 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6676 (DR_ENABLE_SIZE): Likewise.
6677 (DR_LOCAL_SLOWDOWN): Likewise.
6678 (DR_GLOBAL_SLOWDOWN): Likewise.
6679 (DR_CONTROL_RESERVED): Likewise.
6680 (I386_DR_CONTROL_MASK): Likewise.
6681 (I386_DR_VACANT): Likewise.
6682 (I386_DR_LOCAL_ENABLE): Likewise.
6683 (I386_DR_GLOBAL_ENABLE): Likewise.
6684 (I386_DR_DISABLE): Likewise.
6685 (I386_DR_SET_RW_LEN): Likewise.
6686 (I386_DR_GET_RW_LEN): Likewise.
6687 (I386_DR_WATCH_HIT): Likewise.
6688 (i386_wp_op_t): Likewise.
6689 (i386_show_dr): Likewise.
6690 (i386_length_and_rw_bits): Likewise.
6691 (i386_insert_aligned_watchpoint): Likewise.
6692 (i386_remove_aligned_watchpoint): Likewise.
6693 (i386_handle_nonaligned_watchpoint): Likewise.
6694 (i386_update_inferior_debug_regs): Likewise.
6695 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6696 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6697 (i386_region_ok_for_watchpoint):
6698 Use i386_dr_region_ok_for_watchpoint.
6699 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6700
6701 2014-06-19 Gary Benson <gbenson@redhat.com>
6702
6703 * i386-nat.c (i386_insert_hw_breakpoint): Use
6704 i386_insert_watchpoint.
6705 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6706
6707 2014-06-19 Gary Benson <gbenson@redhat.com>
6708
6709 * i386-nat.c (i386_dr_show): Renamed to
6710 i386_show_dr and made static. All uses updated.
6711 (i386_dr_length_and_rw_bits): Renamed to
6712 i386_length_and_rw_bits and made static.
6713 All uses updated.
6714 (i386_dr_insert_aligned_watchpoint): Renamed to
6715 i386_insert_aligned_watchpoint and made static.
6716 All uses updated.
6717 (i386_dr_remove_aligned_watchpoint): Renamed to
6718 i386_remove_aligned_watchpoint and made static.
6719 All uses updated.
6720 (i386_dr_update_inferior_debug_regs): Renamed to
6721 i386_update_inferior_debug_regs and made static.
6722 All uses updated.
6723 * nat/i386-dregs.h (i386_dr_show): Removed.
6724 (i386_dr_length_and_rw_bits): Likewise.
6725 (i386_dr_insert_aligned_watchpoint): Likewise.
6726 (i386_dr_remove_aligned_watchpoint): Likewise.
6727 (i386_dr_update_inferior_debug_regs): Likewise.
6728
6729 2014-06-19 Gary Benson <gbenson@redhat.com>
6730
6731 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6732 * configure: Regenerate.
6733 * config.in: Likewise.
6734 * main.c (signal.h): New include.
6735 (setup_alternate_signal_stack): New function.
6736 (captured_main): Call the above.
6737 * cp-support.c (signal.h): New include.
6738 (catch_demangler_crashes): New flag.
6739 (SIGJMP_BUF): New define.
6740 (SIGSETJMP): Likewise.
6741 (SIGLONGJMP): Likewise.
6742 (gdb_demangle_jmp_buf): New static global.
6743 (gdb_demangle_attempt_core_dump): Likewise.
6744 (gdb_demangle_signal_handler): New function.
6745 (gdb_demangle): If catch_demangler_crashes is set, install the
6746 above signal handler before calling bfd_demangle, and restore
6747 the original signal handler afterwards. Display the offending
6748 symbol and call demangler_warning the first time a segmentation
6749 fault is caught.
6750 (_initialize_cp_support): New maint set/show command.
6751
6752 2014-06-19 Gary Benson <gbenson@redhat.com>
6753
6754 * utils.h (resource_limit_kind): New enum.
6755 (can_dump_core): New declaration.
6756 (warn_cant_dump_core): Likewise.
6757 (dump_core): Likewise.
6758 * utils.c (dump_core): Made nonstatic. Added new
6759 parameter "limit_kind".
6760 (can_dump_core): Made nonstatic. Moved printing code to...
6761 (warn_cant_dump_core): New function.
6762 (can_dump_core_warn): Likewise.
6763 (internal_vproblem): Replace calls to can_dump_core with
6764 calls to can_dump_core_warn. Supply new argument to each.
6765
6766 2014-06-19 Gary Benson <gbenson@redhat.com>
6767
6768 * utils.h (demangler_vwarning): New declaration.
6769 (demangler_warning): Likewise.
6770 * utils.c (struct internal_problem)
6771 <user_settable_should_quit>: New field.
6772 <user_settable_should_dump_core>: Likewise
6773 (internal_error_problem): Add values for above new fields.
6774 (internal_warning_problem): Likewise.
6775 (demangler_warning_problem): New static global.
6776 (demangler_vwarning): New function.
6777 (demangler_warning): Likewise.
6778 (add_internal_problem_command): Selectively add commands.
6779 (_initialize_utils): New internal problem command.
6780 * maint.c (maintenance_demangler_warning): New function.
6781 (_initialize_maint_cmds): New command.
6782
6783 2014-06-18 Tom Tromey <tromey@redhat.com>
6784
6785 * f-valprint.c (info_common_command_for_block): Update.
6786 * symtab.h (struct general_symbol_info) <common_block>: Now
6787 const.
6788
6789 2014-06-18 Tom Tromey <tromey@redhat.com>
6790
6791 * symtab.h (struct symtab) <blockvector>: Now const.
6792 * ada-lang.c (ada_add_global_exceptions): Update.
6793 * buildsym.c (augment_type_symtab): Update.
6794 * dwarf2read.c (dw2_lookup_symbol): Update.
6795 * jit.c (finalize_symtab): Update.
6796 * jv-lang.c (add_class_symtab_symbol): Update.
6797 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6798 Update.
6799 * objfiles.c (objfile_relocate1): Update.
6800 * psymtab.c (lookup_symbol_aux_psymtabs)
6801 (maintenance_check_psymtabs): Update.
6802 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6803 Update.
6804 * spu-tdep.c (spu_catch_start): Update.
6805 * symmisc.c (dump_symtab_1): Update.
6806 * symtab.c (lookup_global_symbol_from_objfile)
6807 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6808 (basic_lookup_transparent_type_quick)
6809 (basic_lookup_transparent_type, find_pc_sect_symtab)
6810 (find_pc_sect_line, search_symbols): Update.
6811 * block.c (find_block_in_blockvector): Make "bl" const.
6812 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6813 const.
6814 (blockvector_contains_pc): Make "bv" const.
6815 (block_for_pc_sect): Update.
6816 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6817 (blockvector_contains_pc): Update.
6818 * breakpoint.c (resolve_sal_pc): Update.
6819 * inline-frame.c (block_starting_point_at): Update.
6820
6821 2014-06-18 Tom Tromey <tromey@redhat.com>
6822
6823 * completer.c (complete_line): Make "line_buffer" const.
6824 * completer.h (complete_line): Update.
6825
6826 2014-06-18 Tom Tromey <tromey@redhat.com>
6827
6828 * symtab.c (add_macro_name): Remove unneeded cast.
6829
6830 2014-06-18 Tom Tromey <tromey@redhat.com>
6831
6832 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6833 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6834
6835 2014-06-18 Tom Tromey <tromey@redhat.com>
6836
6837 * probe.c (info_probes_for_ops): Make "arg" const.
6838 * probe.h (info_probes_for_ops): Update.
6839
6840 2014-06-18 Tom Tromey <tromey@redhat.com>
6841
6842 * varobj.c (varobj_create): Update.
6843 * valops.c (value_of_this): Update.
6844 * tracepoint.c (add_local_symbols, scope_info): Update.
6845 * symtab.h (struct general_symbol_info) <block>: Now const.
6846 * symtab.c (skip_prologue_sal)
6847 (default_make_symbol_completion_list_break_on)
6848 (skip_prologue_using_sal): Update.
6849 * stack.h (iterate_over_block_locals)
6850 (iterate_over_block_local_vars): Update.
6851 * stack.c (print_frame_args): Update.
6852 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6853 parameter const.
6854 (get_selected_block): Make return type const.
6855 * python/py-frame.c (frapy_block): Update.
6856 * python/py-block.c (gdbpy_block_for_pc): Update.
6857 * p-exp.y (%union) <bval>: Now const.
6858 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6859 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6860 * m2-exp.y (%union) <bval>: Now const.
6861 * linespec.c (get_current_search_block): Make return type const.
6862 (create_sals_line_offset, find_label_symbols): Update.
6863 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6864 Update.
6865 (block_starting_point_at): Make "block" const.
6866 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6867 (check_exception_resume): Update.
6868 * guile/scm-frame.c (gdbscm_frame_block): Update.
6869 * guile/scm-block.c (gdbscm_lookup_block): Update.
6870 * frame.h (get_frame_block): Update.
6871 (get_selected_block): Make return type const.
6872 * frame.c (frame_id_inner): Update.
6873 * f-valprint.c (info_common_command_for_block)
6874 (info_common_command): Update.
6875 * dwarf2loc.c (dwarf2_find_location_expression)
6876 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6877 (locexpr_describe_location_piece): Update.
6878 * c-exp.y (%union) <bval>: Now const.
6879 * breakpoint.c (resolve_sal_pc): Update.
6880 * blockframe.c (get_frame_block):Make return type const.
6881 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6882 (block_innermost_frame): Update.
6883 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6884 (block_for_pc, block_for_pc_sect): Update.
6885 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6886 'pblock' const.
6887 (block_for_pc_sect, block_for_pc): Make return type const.
6888 * ax-gdb.c (gen_expr): Update.
6889 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6890 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6891 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6892 (ada_read_var_value): Update.
6893 * ada-exp.y (struct name_info) <block>: Now const.
6894 (%union): Likewise.
6895 (block_lookup): Constify.
6896
6897 2014-06-18 Gary Benson <gbenson@redhat.com>
6898
6899 * nat/i386-dregs.h: New file.
6900 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6901 * i386-nat.h (i386-dregs.h): New include.
6902 (DR_FIRSTADDR): Now in i386-dregs.h.
6903 (DR_LASTADDR): Likewise.
6904 (DR_NADDR): Likewise.
6905 (DR_STATUS): Likewise.
6906 (DR_CONTROL): Likewise.
6907 (i386_debug_reg_state): Likewise.
6908 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6909
6910 2014-06-18 Don Breazeal <donb@codesourcery.com>
6911
6912 * breakpoint.c (set_longjmp_breakpoint): Call
6913 momentary_breakpoint_from_master with additional argument.
6914 (set_longjmp_breakpoint_for_call_dummy): Call
6915 momentary_breakpoint_from_master with additional argument.
6916 (set_std_terminate_breakpoint): Call
6917 momentary_breakpoint_from_master with additional argument.
6918 (momentary_breakpoint_from_master): Add argument to function
6919 definition and use it to initialize structure member flag.
6920 (clone_momentary_breakpoint): Call
6921 momentary_breakpoint_from_master with additional argument.
6922 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6923 member flags set in momentary_breakpoint_from_master.
6924
6925 2014-06-18 Gary Benson <gbenson@redhat.com>
6926
6927 * i386-nat.c (i386_show_dr): Renamed to
6928 i386_dr_show and made nonstatic. All uses updated.
6929 (i386_length_and_rw_bits): Renamed to
6930 i386_dr_length_and_rw_bits and made nonstatic.
6931 All uses updated.
6932 (i386_insert_aligned_watchpoint): Renamed to
6933 i386_dr_insert_aligned_watchpoint and made nonstatic.
6934 All uses updated.
6935 (i386_remove_aligned_watchpoint): Renamed to
6936 i386_dr_remove_aligned_watchpoint and made nonstatic.
6937 All uses updated.
6938 (i386_update_inferior_debug_regs): Renamed to
6939 i386_dr_update_inferior_debug_regs and made nonstatic.
6940 All uses updated.
6941
6942 2014-06-18 Gary Benson <gbenson@redhat.com>
6943
6944 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6945 (i386_dr_low_can_set_control): Likewise.
6946 (i386_dr_low_set_addr): Likewise.
6947 (i386_dr_low_set_control): Likewise.
6948 (i386_dr_low_get_addr): Likewise.
6949 (i386_dr_low_get_status): Likewise.
6950 (i386_dr_low_get_control): Likewise.
6951 (i386_insert_aligned_watchpoint): Use new macros.
6952 (i386_update_inferior_debug_regs): Likewise.
6953 (i386_stopped_data_address): Likewise.
6954
6955 2014-06-18 Gary Benson <gbenson@redhat.com>
6956
6957 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6958 New parameter. All uses updated.
6959
6960 2014-06-18 Gary Benson <gbenson@redhat.com>
6961
6962 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6963 All uses updated.
6964
6965 2014-06-18 Gary Benson <gbenson@redhat.com>
6966
6967 * i386-nat.c (debug_printf): New macro.
6968 (i386_get_debug_register_length): Likewise.
6969 (TARGET_HAS_DR_LEN_8): Use above macro.
6970 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6971 and printf_unfiltered. Use phex to format values.
6972
6973 2014-06-18 Gary Benson <gbenson@redhat.com>
6974
6975 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6976 Make const.
6977
6978 2014-06-18 Gary Benson <gbenson@redhat.com>
6979
6980 * i386-nat.c: Comment changes.
6981
6982 2014-06-18 Gary Benson <gbenson@redhat.com>
6983
6984 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6985
6986 2014-06-18 Gary Benson <gbenson@redhat.com>
6987
6988 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6989 (i386_insert_aligned_watchpoint): Likewise.
6990 (i386_remove_aligned_watchpoint): Likewise.
6991 (i386_handle_nonaligned_watchpoint): Likewise.
6992
6993 2014-06-18 Gary Benson <gbenson@redhat.com>
6994
6995 * i386-nat.c: Whitespace changes.
6996
6997 2014-06-17 Samuel Bronson <naesten@gmail.com>
6998
6999 * MAINTAINERS: Update Roland McGrath's email address.
7000 Thanks to Sergio Durigan Junior for pointing out that he left
7001 Red Hat a while ago, and giving me a current address.
7002
7003 2014-06-17 Tom Tromey <tromey@redhat.com>
7004
7005 * utils.h (savestring): Remove declaration.
7006
7007 2014-06-17 Tom Tromey <tromey@redhat.com>
7008
7009 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
7010
7011 2014-06-16 Keith Seitz <keiths@redhat.com>
7012
7013 PR mi/15863
7014 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
7015 to update the varobj if inferior_ptid is null_ptid.
7016
7017 2014-06-16 Tom Tromey <tromey@redhat.com>
7018
7019 * target.h (struct target_ops) <to_info_proc>: Make parameter
7020 const.
7021 (target_info_proc): Update.
7022 * target.c (target_info_proc): Make "args" const.
7023 * procfs.c (procfs_info_proc): Update.
7024 * linux-tdep.c (linux_info_proc): Update.
7025 (linux_core_info_proc_mappings): Make "args" const.
7026 (linux_core_info_proc): Update.
7027 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
7028 * gdbarch.c: Rebuild.
7029 * gdbarch.h: Rebuild.
7030 * corelow.c (core_info_proc): Update.
7031
7032 2014-06-16 Tom Tromey <tromey@redhat.com>
7033
7034 * target.h (struct target_ops) <to_disconnect>: Make parameter
7035 const.
7036 (target_disconnect): Update.
7037 * target.c (target_disconnect): Make "args" const.
7038 * target-delegates.c: Rebuild.
7039 * remote.c (remote_disconnect): Update.
7040 * record.h (record_disconnect): Update.
7041 * record.c (record_disconnect): Update.
7042 * inf-child.c (inf_child_disconnect): Update.
7043
7044 2014-06-16 Tom Tromey <tromey@redhat.com>
7045
7046 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
7047 * target.c (debug_to_rcmd, default_rcmd): Update.
7048 * target-delegates.c: Rebuild.
7049 * remote.c (remote_rcmd): Update.
7050 * monitor.c (monitor_rcmd): Update.
7051
7052 2014-06-16 Pedro Alves <palves@redhat.com>
7053
7054 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
7055 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
7056 have OBJF_SHARED set.
7057 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
7058 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
7059 instead of OBJF_USERLOADED.
7060 * objfiles.h (OBJF_SHARED): Update comment.
7061 (userloaded_objfile_contains_address_p): Rename to ...
7062 (shared_objfile_contains_address_p): ... this, and update
7063 comments.
7064 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
7065 new objfile.
7066 (remove_symbol_file_command): Skip objfiles that don't have
7067 OBJF_SHARED set.
7068
7069 2014-06-16 Tom Tromey <tromey@redhat.com>
7070
7071 * minsyms.h (prim_record_minimal_symbol)
7072 (prim_record_minimal_symbol_and_info): Update comments.
7073
7074 2014-06-14 Eli Zaretskii <eliz@gnu.org>
7075
7076 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
7077 or --without-guile, according to how GDB was built.
7078
7079 2014-06-13 Tom Tromey <tromey@redhat.com>
7080
7081 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
7082 to help_list.
7083 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
7084 to help_list.
7085 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
7086 help_list.
7087 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
7088 help_list.Pass all_commands, not -1, to help_list.
7089 * cli/cli-dump.c (dump_command, append_command)
7090 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
7091 (binary_dump_command, binary_append_command): Pass all_commands,
7092 not -1, to help_list.
7093 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
7094 -1, to help_list.
7095 * valprint.c (set_print, set_print_raw): Pass all_commands, not
7096 -1, to help_list.
7097 * typeprint.c (set_print_type): Pass all_commands, not -1, to
7098 help_list.
7099 * top.c (set_history): Pass all_commands, not -1, to help_list.
7100 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
7101 all_commands, not -1, to help_list.
7102 * symfile.c (overlay_command): Pass all_commands, not -1, to
7103 help_list.
7104 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
7105 help_list.
7106 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
7107 help_list.
7108 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
7109 -1, to help_list.
7110 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
7111 not -1, to help_list.
7112 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
7113 not -1, to help_list.
7114 * maint.c (maintenance_command, maintenance_info_command)
7115 (maintenance_print_command, maintenance_set_cmd): Pass
7116 all_commands, not -1, to help_list.
7117 * macrocmd.c (macro_command): Pass all_commands, not -1, to
7118 help_list.
7119 * language.c (set_check): Pass all_commands, not -1, to help_list.
7120 * infcmd.c (unset_command): Pass all_commands, not -1, to
7121 help_list.
7122 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
7123 help_list.
7124 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
7125 help_list.
7126 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
7127 help_list.
7128 * breakpoint.c (save_command): Pass all_commands, not -1, to
7129 help_list.
7130 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
7131 all_commands, not -1, to help_list.
7132
7133 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
7134
7135 * regcache.c (struct register_to_invalidate): New structure.
7136 (do_register_invalidate, make_cleanup_regcache_invalidate): New
7137 functions.
7138 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
7139
7140 2014-06-12 Yao Qi <yao@codesourcery.com>
7141
7142 * varobj.c (varobj_get_num_children): Call
7143 varobj_is_dynamic_p.
7144 (varobj_list_children): Likewise.
7145 (varobj_update): Likewise. Update comments.
7146
7147 2014-06-12 Yao Qi <yao@codesourcery.com>
7148
7149 * varobj.c (varobj_pretty_printed_p): Rename to ...
7150 (varobj_is_dynamic_p): ... this. New function.
7151 * varobj.h (varobj_pretty_printed_p): Remove declaration.
7152 (varobj_is_dynamic_p): Declare.
7153 * mi/mi-cmd-var.c (print_varobj): All callers updated.
7154 (mi_print_value_p, varobj_update_one): Likewise.
7155
7156 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7157 Yao Qi <yao@codesourcery.com>
7158
7159 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
7160 (varobj_get_iterator): Wrap up code for pretty-printer by
7161 "#if HAVE_PYTHON" and "#endif".
7162 (update_dynamic_varobj_children): Likewise.
7163
7164 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7165 Yao Qi <yao@codesourcery.com>
7166
7167 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
7168 gdb_python_initialized is false. Move some code from varobj.c.
7169 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
7170 * varobj.c: Move "varobj-iter.h" inclusion earlier.
7171 (struct varobj_item): Moved to varobj-iter.h".
7172 (varobj_clear_saved_item): New function.
7173 (update_dynamic_varobj_children): Move python-related code to
7174 py-varobj.c.
7175 (free_variable): Call varobj_clear_saved_item and
7176 varobj_iter_delete.
7177
7178 2014-06-12 Pedro Alves <pedro@codesourcery.com>
7179 Yao Qi <yao@codesourcery.com>
7180
7181 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
7182 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
7183 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
7184 (py-varobj.o): New rule.
7185 * python/py-varobj.c: New file.
7186 * python/python-internal.h (py_varobj_get_iterator): Declare.
7187 * varobj-iter.h: New file.
7188 * varobj.c: Include "varobj-iter.h"
7189 (struct varobj) <child_iter>: Change its type from "PyObject *"
7190 to "struct varobj_iter *".
7191 <saved_item>: Likewise.
7192 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
7193 [HAVE_PYTHON] (varobj_get_iterator): New function.
7194 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7195 python-specific code to python/py-varobj.c.
7196 (install_visualizer): Call varobj_iter_delete instead of
7197 Py_XDECREF.
7198 * varobj.h (varobj_ensure_python_env): Declare.
7199
7200 2014-06-12 Yao Qi <yao@codesourcery.com>
7201
7202 * varobj.c (struct varobj_item): New structure.
7203 (create_child_with_value): Update declaration.
7204 (varobj_add_child): Replace arguments 'name' and 'value' with
7205 'item'. All callers updated.
7206 (install_dynamic_child): Likewise.
7207 (update_dynamic_varobj_children): Likewise.
7208 (varobj_add_child): Likewise.
7209 (create_child_with_value): Likewise.
7210
7211 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7212
7213 * NEWS: Create a new section for the next release branch.
7214 Rename the section of the current branch, now that it has
7215 been cut.
7216
7217 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7218
7219 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7220 * version.in: Bump version to 7.8.50.DATE-cvs.
7221
7222 2014-06-11 Pedro Alves <palves@redhat.com>
7223
7224 PR remote/17028
7225 * ser-mingw.c (net_windows_socket_check_pending): New function.
7226 (net_windows_select_thread): Ignore spurious wakeups. Use
7227 net_windows_socket_check_pending.
7228 (net_windows_wait_handle): Check for pending events with
7229 ioctlsocket, through net_windows_socket_check_pending, instead of
7230 checking the socket's event.
7231
7232 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7233
7234 * python/python-internal.h (gdb_PyObject_GetAttrString)
7235 (gdb_PyObject_HasAttrString): New inline function definitions.
7236 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7237 char * of the second argument to PyObject_GetAttrString.
7238
7239 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7240
7241 * serial.c (serial_write): Fix index of character to be printed
7242 in call to serial_logchar when serial debug traces are enabled.
7243
7244 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7245
7246 * gdbtypes (resolve_dynamic_range): Add function description.
7247
7248 2014-06-09 Pedro Alves <palves@redhat.com>
7249
7250 * linux-nat.c (linux_child_follow_fork): Initialize status with
7251 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7252 inner block. Only pass the signal to PTRACE_DETACH if in pass
7253 state.
7254
7255 2014-06-09 Gary Benson <gbenson@redhat.com>
7256
7257 * common/signals.c (gdb_signal_from_host): Reorder to separate
7258 the always-available ANSI-standard signals from the signals that
7259 require checking.
7260 (do_gdb_signal_to_host): Likewise.
7261 * proc-events.c (signal_table): Likewise.
7262
7263 2014-06-08 Hui Zhu <hui@codesourcery.com>
7264
7265 * common/linux-ptrace.c (linux_disable_event_reporting): New
7266 function.
7267 * common/linux-ptrace.h (linux_disable_event_reporting): New
7268 declaration.
7269 * linux-nat.c (linux_child_follow_fork): Do a single step before
7270 detach.
7271
7272 2014-06-07 Keith Seitz <keiths@redhat.com>
7273
7274 Revert:
7275 PR c++/16253
7276 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7277 from symbol_matches_domain in symtab.c. All local callers
7278 of symbol_matches_domain updated.
7279 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7280 search STRUCT_DOMAIN.
7281 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7282 independently. standard_lookup will do that automatically.
7283 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7284 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7285 (cp_lookup_symbol_in_namespace): Likewise.
7286 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7287 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7288 may return a STRUCT_DOMAIN match.
7289 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7290 * cp-support.c: Include language.h.
7291 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7292 VAR_DOMAIN.
7293 * psymtab.c (match_partial_symbol): Compare the requested
7294 domain with the symbol's domain directly.
7295 (lookup_partial_symbol): Likewise.
7296 * symtab.c (lookup_symbol_in_language): Explain when/why
7297 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7298 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7299 appropriate languages.
7300 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7301 and moved to ada-lang.c
7302 (lookup_block_symbol): Explain that this function only returns
7303 symbol matching the requested DOMAIN.
7304 Compare the requested domain with the symbol's domain directly.
7305 (iterate_over_symbols): Compare the requested domain with the
7306 symbol's domain directly.
7307 * symtab.h (symbol_matches_domain): Remove.
7308
7309 2014-06-06 Doug Evans <xdje42@gmail.com>
7310
7311 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7312 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7313 (gdbscm_guile_version_is_at_least): Declare.
7314 (gdbscm_scm_string_to_int): Declare.
7315 * guile/guile.c (gdbscm_guile_major_version): New global.
7316 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7317 (guile_datadir): New static global.
7318 (gdbscm_guile_data_directory): New function.
7319 (initialize_scheme_side): Update.
7320 (misc_guile_functions): Add guile-data-directory.
7321 (initialize_gdb_module): Fetch guile version number.
7322 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7323 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7324 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7325 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7326 comments.
7327 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7328 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7329 * guile/scm-value.c (gdbscm_value_to_string): Only call
7330 scm_port_conversion_strategy if Guile version >= 2.0.6.
7331
7332 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7333
7334 * main.c (print_gdb_help): Add -q and --silent.
7335
7336 2014-06-06 Gary Benson <gbenson@redhat.com>
7337
7338 * common/signals.c: Remove preprocessor conditionals for
7339 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7340 SIGSEGV and SIGTERM.
7341 * proc-events.c: Likewise.
7342
7343 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7344
7345 * symfile.c (symfile_free_objfile): Remove restriction to
7346 OBJF_USERLOADED.
7347 * symfile-mem.c (symbol_file_add_from_memory): Call
7348 add_target_sections_of_objfile.
7349
7350 2014-06-05 Ludovic Courtès <ludo@gnu.org>
7351
7352 * guile/scm-value.c (gdbscm_history_append_x): Use
7353 'vlscm_get_value_smob_arg_unsafe' instead of
7354 'vlscm_scm_to_value'.
7355
7356 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7357
7358 PR mi/15806
7359 * utils.c (printchar): Don't escape at all if quoter is NUL.
7360 Update function documentation to clarify effect of parameter
7361 QUOTER.
7362 * remote.c (escape_buffer): Pass '\\' as the quoter to
7363 fputstrn_unfiltered.
7364 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7365 generate the output.
7366 (mi_solib_unloaded): Same.
7367
7368 2014-06-05 Joel Brobecker <brobecker@adacore.com>
7369
7370 * development.sh: Delete.
7371 * Makefile.in (config.status): Adjust dependency on development.sh.
7372 * configure.ac: Adjust development.sh source call.
7373 * configure: Regenerate.
7374
7375 2014-06-04 Doug Evans <xdje42@gmail.com>
7376
7377 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7378 is_scheme_bkpt, spec.
7379 (bpscm_make_breakpoint_smob): Initialize new members.
7380 (gdbscm_create_breakpoint_x): Split into two ...
7381 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7382 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7383 (scheme_function breakpoint_functions): Update.
7384 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7385 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7386 register-breakpoint!.
7387
7388 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
7389
7390 PR server/17023
7391 * mem-break.c (z_type_supported): Return zero if
7392 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7393
7394 2014-06-04 Tom Tromey <tromey@redhat.com>
7395
7396 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7397 value_from_contents_and_address_unresolved.
7398 (ada_template_to_fixed_record_type_1): Likewise.
7399 (ada_which_variant_applies): Likewise.
7400 * value.h (value_from_contents_and_address_unresolved): Declare.
7401 * value.c (value_from_contents_and_address_unresolved): New
7402 function.
7403 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7404 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7405 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7406
7407 2014-06-04 Tom Tromey <tromey@redhat.com>
7408
7409 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7410
7411 2014-06-04 Tom Tromey <tromey@redhat.com>
7412
7413 * procfs.c (procfs_attach): Make "args" const.
7414 * windows-nat.c (windows_attach): Make "args" const.
7415 * nto-procfs.c (procfs_attach): Make "args" const.
7416 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7417 * go32-nat.c (go32_attach): Make "args" const.
7418 * gnu-nat.c (gnu_attach): Make "args" const.
7419 * darwin-nat.c (darwin_attach): Make "args" const.
7420 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7421 * linux-nat.c (linux_nat_attach): Make "args" const.
7422 * remote.c (extended_remote_attach_1, extended_remote_attach):
7423 Make "args" const.
7424 * target.h (struct target_ops) <to_attach>: Make "args" const.
7425 (find_default_attach): Likewise.
7426 * utils.c (parse_pid_to_attach): Make "args" const.
7427 * utils.h (parse_pid_to_attach): Update.
7428
7429 2014-06-04 Tom Tromey <tromey@redhat.com>
7430
7431 * target-delegates.c: Rebuild.
7432 * target.c (default_thread_address_space): New function.
7433 (target_thread_address_space): Simplify.
7434 * target.h (struct target_ops) <to_thread_address_space>: Add
7435 TARGET_DEFAULT_FUNC.
7436
7437 2014-06-04 Doug Evans <xdje42@gmail.com>
7438
7439 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7440
7441 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7442
7443 * record-btrace.c: Include event-loop.h and inf-loop.h.
7444 (record_btrace_resume_exec_dir)
7445 (record_btrace_async_inferior_event_handler)
7446 (record_btrace_handle_async_inferior_event): New.
7447 (record_btrace_open): Create async event handler.
7448 (record_btrace_close): Delete async event handler.
7449 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7450 Mark async event handler.
7451 (record_btrace_execution_direction): New.
7452 (init_record_btrace_ops): Initialize to_execution_direction.
7453
7454 2014-06-03 Doug Evans <xdje42@gmail.com>
7455
7456 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7457 (gdbscm_make_parameter): Ditto.
7458
7459 2014-06-03 Doug Evans <dje@google.com>
7460
7461 * exec.c (exec_close_1): Call clear_section_table instead of
7462 resize_section_table.
7463 (clear_section_table): New function.
7464 (resize_section_table): Make static. Rename arg num_added to
7465 adjustment.
7466 * exec.h (clear_section_table): Declare.
7467 (resize_section_table): Delete.
7468 * progspace.c (release_program_space): Call clear_section_table
7469 instead of resize_section_table.
7470
7471 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7472
7473 * NEWS (Python Scripting): Add entry about the new xmethods
7474 feature.
7475
7476 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7477
7478 * python/py-xmethods.c: New file.
7479 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7480 (objfpy_dealloc): XDECREF on the new xmethods field.
7481 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7482 field.
7483 (objfpy_get_xmethods): New function.
7484 (objfile_getset): New entry 'xmethods'.
7485 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7486 (pspy_dealloc): XDECREF on the new xmethods field.
7487 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7488 field.
7489 (pspy_get_xmethods): New function.
7490 (pspace_getset): New entry 'xmethods'.
7491 * python/python-internal.h: Add declarations for new functions.
7492 * python/python.c (_initialize_python): Invoke
7493 gdbpy_initialize_xmethods.
7494 * python/lib/gdb/__init__.py (xmethods): New
7495 attribute.
7496 * python/lib/gdb/xmethod.py: New file.
7497 * python/lib/gdb/command/xmethods.py: New file.
7498
7499 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7500
7501 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7502 best match method returned by find_overload_match is an xmethod.
7503 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7504 the best matching operator returned by find_overload_match is an
7505 xmethod.
7506 * valops.c: #include "extension.h".
7507 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7508 Return void. The list of matching source methods is returned in
7509 "fn_list" and a vector of matching debug method workers is
7510 returned in "xm_worker_vec". Update all callers.
7511 (value_find_oload_method_list): Likewise.
7512 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7513 non-NULL, then the index of the best matching method in this
7514 vector is returned. Update all callers.
7515 (find_overload_match): Include xmethods while performing overload
7516 resolution.
7517
7518 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7519
7520 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7521 * extension-priv.h (struct extension_language_ops): Add the
7522 xmethod interface.
7523 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7524 get_matching_xmethod_workers, get_xmethod_argtypes,
7525 invoke_xmethod, free_xmethod_worker,
7526 free_xmethod_worker_vec): New functions.
7527 * extension.h: #include "common/vec.h".
7528 New function declarations.
7529 (struct xmethod_worker): New struct.
7530 (VEC (xmethod_worker_ptr)): New vector type.
7531 (xmethod_worker_ptr): New typedef.
7532 (xmethod_worker_vec): Likewise.
7533 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7534 builtin_type.
7535 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7536 (struct builtin_type): New field "xmethod".
7537 * valarith.c (value_ptradd): Assert that the value argument is not
7538 lval_xcallable.
7539 * valops.c (value_must_coerce_to_target): Return 0 for
7540 lval_xcallable values.
7541 * value.c (struct value): New field XM_WORKER in the field
7542 LOCATION.
7543 (value_address, value_raw_address): Return 0 for lval_xcallable
7544 values.
7545 (set_value_address): Assert that the value is not an
7546 lval_xcallable.
7547 (value_free): Free the associated xmethod worker when freeing
7548 lval_xcallable values.
7549 (set_value_component_location): Assert that the WHOLE value is not
7550 lval_xcallable.
7551 (value_of_xmethod, call_xmethod): New functions.
7552 * value.h: Declare "struct xmethod_worker".
7553 Declare new functions value_of_xmethod, call_xmethod.
7554
7555 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7556 Pedro Alves <palves@redhat.com>
7557
7558 PR breakpoints/17000
7559 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7560 New function, extracted from software_breakpoint_inserted_here_p.
7561 (software_breakpoint_inserted_here_p): Replace factored out code
7562 by call to find_non_raw_software_breakpoint_inserted_here.
7563 (bp_target_info_copy_insertion_state): New function.
7564 (bkpt_insert_location): Handle the case of a single-step
7565 breakpoint already inserted at the same address.
7566 (bkpt_remove_location): Handle the case of a single-step
7567 breakpoint still inserted at the same address.
7568 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7569 breakpoint already inserted at the same address.
7570 (deprecated_remove_raw_breakpoint): Handle the case of a
7571 non-raw breakpoint still inserted at the same address.
7572 (find_single_step_breakpoint): New function, extracted from
7573 single_step_breakpoint_inserted_here_p.
7574 (find_single_step_breakpoint): New function,
7575 factored out from single_step_breakpoint_inserted_here_p.
7576 (single_step_breakpoint_inserted_here_p): Reimplement.
7577
7578 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7579
7580 Pushed by Joel Brobecker <brobecker@adacore.com>
7581 * source.c (show_substitute_path_command): Fix display of matching
7582 substitution rules.
7583
7584 2014-06-03 Gary Benson <gbenson@redhat.com>
7585
7586 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7587
7588 2014-06-02 Doug Evans <xdje42@gmail.com>
7589
7590 Add parameter support for Guile.
7591 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7592 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7593 (scm-param.o): New rule.
7594 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7595 (gdbscm_misc_error): Declare.
7596 (gdbscm_canonicalize_command_name): Declare.
7597 (gdbscm_scm_to_host_string): Declare.
7598 (gdbscm_scm_from_host_string): Declare.
7599 (gdbscm_initialize_parameters): Declare.
7600 * guile/guile.c (initialize_gdb_module): Call
7601 gdbscm_initialize_parameters.
7602 * guile/lib/gdb.scm: Export parameter symbols.
7603 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7604 cmdscm_canonicalize_name and made public. All callers updated.
7605 * guile/scm-exception.c (gdbscm_misc_error): New function.
7606 * guile/scm-param.c: New file.
7607 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7608 (gdbscm_scm_to_host_string): New function.
7609 (gdbscm_scm_from_host_string): New function.
7610 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7611
7612 2014-06-02 Doug Evans <xdje42@gmail.com>
7613
7614 Add command support for Guile.
7615 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7616 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7617 (scm-cmd.o): New rule.
7618 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7619 (gdbscm_user_error_p): Declare.
7620 (gdbscm_parse_command_name): Declare.
7621 (gdbscm_valid_command_class_p): Declare.
7622 (gdbscm_initialize_commands): Declare.
7623 * guile/guile.c (initialize_gdb_module): Call
7624 gdbscm_initialize_commands.
7625 * guile/lib/gdb.scm: Export command symbols.
7626 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7627 (throw-user-error): New function.
7628 * guile/scm-cmd.c: New file.
7629 * guile/scm-exception.c (user_error_symbol): New static global.
7630 (gdbscm_user_error_p): New function.
7631 (gdbscm_initialize_exceptions): Set user_error_symbol.
7632 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7633
7634 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7635
7636 * top.c (command_loop): Handle comments here...
7637 (command_line_input): ... not here.
7638
7639 2014-06-02 Doug Evans <xdje42@gmail.com>
7640
7641 Add progspace support for Guile.
7642 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7643 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7644 (scm-progspace.o): New rule.
7645 * guile/guile-internal.h (pspace_smob): New typedef.
7646 (psscm_pspace_smob_pretty_printers): Declare.
7647 (psscm_pspace_smob_from_pspace): Declare.
7648 (psscm_scm_from_pspace): Declare.
7649 * guile/guile.c (initialize_gdb_module): Call
7650 gdbscm_initialize_pspaces.
7651 * guile/lib/gdb.scm: Export progspace symbols.
7652 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7653 support.
7654 (append-pretty-printer!): Ditto.
7655 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7656 Implement.
7657 * guile/scm-progspace.c: New file.
7658
7659 2014-06-03 Alan Modra <amodra@gmail.com>
7660
7661 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7662 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7663
7664 2014-06-02 Doug Evans <dje@google.com>
7665
7666 Add support for skeletonless type units.
7667 * dwarf2read.c (struct dwarf2_per_objfile): New member
7668 n_allocated_type_units.
7669 (struct dwarf2_per_objfile) <tu_stats>: New member
7670 nr_all_type_units_reallocs.
7671 (create_signatured_type_table_from_index): Initialize
7672 n_allocated_type_units
7673 (create_all_type_units): Ditto.
7674 (add_type_unit): Move up in file. New arg slot.
7675 All callers updated. Increase space for all_type_units more
7676 efficiently.
7677 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7678 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7679 (lookup_dwp_signatured_type): Ditto.
7680 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7681 All callers updated.
7682 (build_type_psymtabs_1): Leave type_unit_groups as
7683 NULL if no TUs present.
7684 (print_tu_stats): New function.
7685 (process_skeletonless_type_unit): New function.
7686 (process_dwo_file_for_skeletonless_type_units): New
7687 function.
7688 (process_skeletonless_type_units): New function.
7689 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7690 Call print tu_stats if debugging enabled.
7691
7692 2014-06-02 Pedro Alves <palves@redhat.com>
7693
7694 * breakpoint.c (build_target_command_list): Don't build a command
7695 list if we have any duplicate location that isn't a dprintf.
7696
7697 2014-06-02 Pedro Alves <palves@redhat.com>
7698
7699 * breakpoint.c (dprintf_breakpoint_hit): New function.
7700 (initialize_breakpoint_ops): Install it as dprintf's
7701 breakpoint_hit method.
7702
7703 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7704
7705 * source.c (substitute_path_rule_matches): Simplify using
7706 filename_ncmp instead of FILENAME_CMP.
7707
7708 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7709
7710 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7711
7712 2014-06-01 Ludovic Courtès <ludo@gnu.org>
7713
7714 * configure.ac: When Guile is available, check for the
7715 availability of 'scm_new_smob'.
7716 * configure, config.h.in: Regenerate.
7717 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7718 function.
7719
7720 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7721
7722 * frame.c (struct frame_info): Add stop_string field.
7723 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7724 (get_prev_frame_always): Old content moved into
7725 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7726 TRY_CATCH, handle MEMORY_ERROR exceptions.
7727 (frame_stop_reason_string): New function definition.
7728 * frame.h (unwind_stop_reason_to_string): Extend comment to
7729 mention frame_stop_reason_string.
7730 (frame_stop_reason_string): New function declaration.
7731 * stack.c (frame_info): Switch to frame_stop_reason_string.
7732 (backtrace_command_1): Switch to frame_stop_reason_string.
7733 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7734 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7735 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7736
7737 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7738
7739 * frame.c (frame_stop_reason_string): Rename to ...
7740 (unwind_stop_reason_to_string): this.
7741 * frame.h (frame_stop_reason_string): Rename to ...
7742 (unwind_stop_reason_to_string): this.
7743 * stack.c (frame_info): Update call to frame_stop_reason_string.
7744 (backtrace_command_1): Likewise.
7745 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7746 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7747
7748 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7749
7750 * frame.c (remove_prev_frame): New function.
7751 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7752 remove_prev_frame.
7753
7754 2014-05-29 Pedro Alves <palves@redhat.com>
7755
7756 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7757 and make it const. When a single-step decays to a continue,
7758 clear 'step', not 'hw_step'. Pass whether the caller wanted
7759 to step to user_visible_resume_ptid, not what we ask the
7760 target to do.
7761
7762 2014-05-29 Pedro Alves <palves@redhat.com>
7763
7764 * infrun.c (process_event_stop_test, handle_step_into_function)
7765 (handle_step_into_function_backward): Adjust.
7766 Don't set the even thread's stop_step and call stop_waiting before
7767 calling end_stepping_range. Instead do that ...
7768 (end_stepping_range): ... here. Take an ecs pointer parameter.
7769
7770 2014-05-29 Pedro Alves <palves@redhat.com>
7771
7772 * infrun.c (stop_stepping): Rename to ...
7773 (stop_waiting): ... this.
7774 (proceed): Update comment.
7775 (process_event_stop_test, handle_inferior_event)
7776 (handle_signal_stop, handle_step_into_function)
7777 (handle_step_into_function_backward): Update.
7778
7779 2014-05-29 Pedro Alves <palves@redhat.com>
7780
7781 * infcall.c (run_inferior_call): Don't check whether the current
7782 thread is running after the proceed call.
7783
7784 2014-05-29 Pedro Alves <palves@redhat.com>
7785 Tom Tromey <tromey@redhat.com>
7786
7787 * NEWS: Mention "maint set target-async", "set mi-async", and that
7788 background execution commands are now always available.
7789 * target.h (target_async_permitted): Update comment.
7790 * target.c (target_async_permitted, target_async_permitted_1):
7791 Default to 1.
7792 (set_target_async_command): Rename to ...
7793 (maint_set_target_async_command): ... this.
7794 (show_target_async_command): Rename to ...
7795 (maint_show_target_async_command): ... this.
7796 (_initialize_target): Adjust.
7797 * infcmd.c (prepare_execution_command): Make extern.
7798 * inferior.h (prepare_execution_command): Declare.
7799 * infrun.c (set_observer_mode): Leave target async alone.
7800 * mi/mi-interp.c (mi_interpreter_init): Install
7801 mi_on_sync_execution_done as sync_execution_done observer.
7802 (mi_on_sync_execution_done): New function.
7803 (mi_execute_command_input_handler): Don't print the prompt if we
7804 just started a synchronous command with an async target.
7805 (mi_on_resume): Check sync_execution before printing prompt.
7806 * mi/mi-main.h (mi_async_p): Declare.
7807 * mi/mi-main.c: Include gdbcmd.h.
7808 (mi_async_p): New function.
7809 (mi_async, mi_async_1): New globals.
7810 (set_mi_async_command, show_mi_async_command, mi_async): New
7811 functions.
7812 (exec_continue): Call prepare_execution_command.
7813 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7814 (mi_execute_async_cli_command): Use mi_async_p.
7815 (_initialize_mi_main): Install "set mi-async". Make
7816 "target-async" a deprecated alias.
7817
7818 2014-05-29 Pedro Alves <palves@redhat.com>
7819
7820 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7821 (_initialize_cli_interp): Adjust.
7822 * event-loop.c: Include "observer.h".
7823 (start_event_loop): Notify 'command_error' observers instead of
7824 calling display_gdb_prompt. Remove FIXME comment.
7825 * event-top.c (display_gdb_prompt): Remove call into the
7826 interpreters.
7827 * inf-loop.c: Include "observer.h".
7828 (inferior_event_handler): Notify 'command_error' observers instead
7829 of calling display_gdb_prompt.
7830 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7831 observers instead of calling display_gdb_prompt.
7832 * interps.c (interp_set): Don't call display_gdb_prompt.
7833 (current_interp_display_prompt_p): Delete.
7834 * interps.h (interp_prompt_p): Delete declaration.
7835 (interp_prompt_p_ftype): Delete.
7836 (struct interp_procs) <prompt_proc_p>: Delete field.
7837 (current_interp_display_prompt_p): Delete declaration.
7838 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7839 (_initialize_mi_interp): Adjust.
7840 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7841 'command_error' observers.
7842 (tui_on_sync_execution_done, tui_on_command_error): New
7843 functions.
7844 (tui_display_prompt_p): Delete.
7845 (_initialize_tui_interp): Adjust.
7846
7847 2014-05-29 Pedro Alves <palves@redhat.com>
7848
7849 PR gdb/13860
7850 * cli/cli-interp.c: Include infrun.h and observer.h.
7851 (cli_uiout, cli_interp): New globals.
7852 (cli_on_signal_received, cli_on_end_stepping_range)
7853 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7854 functions.
7855 (cli_interpreter_init): Install them as 'end_stepping_range',
7856 'signal_received' 'signal_exited', 'exited' and 'no_history'
7857 observers.
7858 (_initialize_cli_interp): Remove cli_interp local.
7859 * infrun.c (handle_inferior_event): Call the several stop reason
7860 observers instead of printing the stop reason directly.
7861 (end_stepping_range): New function.
7862 (print_end_stepping_range_reason, print_signal_exited_reason)
7863 (print_exited_reason, print_signal_received_reason)
7864 (print_no_history_reason): Make static, and add an uiout
7865 parameter. Print to that instead of to CURRENT_UIOUT.
7866 * infrun.h (print_end_stepping_range_reason)
7867 (print_signal_exited_reason, print_exited_reason)
7868 (print_signal_received_reason print_no_history_reason): New
7869 declarations.
7870 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7871 'mi_uiout'.
7872 <cli_uiout>: New field.
7873 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7874 uiout for CLI output. Install 'signal_received',
7875 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7876 observers.
7877 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7878 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7879 (mi_on_no_history): New functions.
7880 (ui_out_free_cleanup): Delete function.
7881 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7882 instead use the one already stored in the MI interpreter data.
7883 (mi_ui_out): Adjust.
7884 * tui/tui-interp.c: Include infrun.h and observer.h.
7885 (tui_interp): New global.
7886 (tui_on_signal_received, tui_on_end_stepping_range)
7887 (tui_on_signal_exited, tui_on_exited)
7888 (tui_on_no_history): New functions.
7889 (tui_init): Install them as 'end_stepping_range',
7890 'signal_received' 'signal_exited', 'exited' and 'no_history'
7891 observers.
7892 (_initialize_tui_interp): Delete tui_interp local.
7893
7894 2014-05-29 Pedro Alves <palves@redhat.com>
7895
7896 PR gdb/15713
7897 * linux-nat.c (linux_nat_resume_callback): Rename the second
7898 parameter to 'except'. Skip LP if it points to EXCEPT.
7899 (linux_nat_resume): Don't mark the event lwp as not stopped
7900 before resuming sibling lwps. Instead ask
7901 linux_nat_resume_callback to skip the event lwp. Mark it as not
7902 stopped after actually resuming it.
7903 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7904 resuming it.
7905 (wait_lwp): Mark the lwp as stopped here.
7906 (stop_wait_callback): Mark the lwp as not stopped right after
7907 resuming it. Don't mark lwps as stopped here.
7908 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7909 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7910
7911 2014-05-29 Pedro Alves <palves@redhat.com>
7912
7913 PR PR15693
7914 * infrun.c (resume): Determine how much to resume depending on
7915 whether the caller wanted a step, not whether we can hardware step
7916 the target. Mark all threads that we intend to run as running,
7917 unless we're calling an inferior function.
7918 (normal_stop): If the thread is running an infcall, don't finish
7919 thread state.
7920 * target.c (target_resume): Don't mark threads as running here.
7921
7922 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7923
7924 * serial.c (_initialize_serial): Remove support for
7925 the "set remotebaud" and "show remotebaud" commands.
7926 * NEWS: Add entry documenting the removal of that command.
7927
7928 2014-05-28 Yao Qi <yao@codesourcery.com>
7929
7930 * charset.c: Fix typo in comments.
7931
7932 2014-05-27 Gary Benson <gbenson@redhat.com>
7933
7934 * utils.c (internal_vproblem): Prompt for a bug report.
7935
7936 2014-05-26 Andy Wingo <wingo@igalia.com>
7937
7938 * guile/scm-arch.c (arscm_mark_arch_smob):
7939 * guile/scm-block.c (bkscm_mark_block_smob)
7940 (bkscm_mark_block_syms_progress_smob):
7941 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7942 * guile/scm-exception.c (exscm_mark_exception_smob):
7943 * guile/scm-frame.c (frscm_mark_frame_smob):
7944 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7945 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7946 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7947 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7948 (ppscm_mark_pretty_printer_worker_smob):
7949 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7950 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7951 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7952 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7953 mark functions.
7954 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7955 function.
7956
7957 2014-05-26 Andy Wingo <wingo@igalia.com>
7958 Doug Evans <xdje42@gmail.com>
7959
7960 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7961 empty_base_class. All uses updated.
7962 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7963 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7964 Adapt all callers.
7965 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7966 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7967 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7968 (gdbscm_gsmob_has_property_p, add_property_name)
7969 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7970 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7971 (gdb-object-has-property?, gdb-object-properties): Remove.
7972 (gdb-object-kind): Renamed from gsmob-kind.
7973
7974 2014-05-26 Andy Wingo <wingo@igalia.com>
7975
7976 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7977 * configure: Regenerate.
7978
7979 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7980
7981 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7982
7983 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7984
7985 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7986 (replay_memory_access_read_only, replay_memory_access_read_write)
7987 (replay_memory_access_types, replay_memory_access)
7988 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7989 (cmd_set_record_btrace, cmd_show_record_btrace)
7990 (cmd_show_replay_memory_access): New.
7991 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7992 (record_btrace_remove_breakpoint): Replace
7993 record_btrace_allow_memory_access with replay_memory_access.
7994 (_initialize_record_btrace): Add commands.
7995 * NEWS: Announce it.
7996
7997 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7998
7999 * aarch64-linux-nat.c (asm/ptrace.h): Include.
8000
8001 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8002
8003 * MAINTAINERS (Write After Approval): Move self back from
8004 paper trail.
8005
8006 2014-05-22 Pedro Alves <palves@redhat.com>
8007
8008 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
8009 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
8010 (disable_randomization, enum exec_direction_kind)
8011 (execution_direction, stop_registers, start_remote)
8012 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
8013 (wait_for_inferior, normal_stop, get_last_target_status)
8014 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
8015 (insert_step_resume_breakpoint_at_sal)
8016 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
8017 (set_step_info, print_stop_event, signal_stop_state)
8018 (signal_print_state, signal_pass_state, signal_stop_update)
8019 (signal_print_update, signal_pass_update)
8020 (update_signals_program_target, clear_exit_convenience_vars)
8021 (displaced_step_dump_bytes, update_observer_mode)
8022 (signal_catch_update, gdb_signal_from_command): Move
8023 declarations ...
8024 * infrun.h: ... to this new file.
8025 * amd64-tdep.c: Include infrun.h.
8026 * annotate.c: Include infrun.h.
8027 * arch-utils.c: Include infrun.h.
8028 * arm-linux-tdep.c: Include infrun.h.
8029 * arm-tdep.c: Include infrun.h.
8030 * break-catch-sig.c: Include infrun.h.
8031 * breakpoint.c: Include infrun.h.
8032 * common/agent.c: Include infrun.h instead of inferior.h.
8033 * corelow.c: Include infrun.h.
8034 * event-top.c: Include infrun.h.
8035 * go32-nat.c: Include infrun.h.
8036 * i386-tdep.c: Include infrun.h.
8037 * inf-loop.c: Include infrun.h.
8038 * infcall.c: Include infrun.h.
8039 * infcmd.c: Include infrun.h.
8040 * infrun.c: Include infrun.h.
8041 * linux-fork.c: Include infrun.h.
8042 * linux-nat.c: Include infrun.h.
8043 * linux-thread-db.c: Include infrun.h.
8044 * monitor.c: Include infrun.h.
8045 * nto-tdep.c: Include infrun.h.
8046 * procfs.c: Include infrun.h.
8047 * record-btrace.c: Include infrun.h.
8048 * record-full.c: Include infrun.h.
8049 * remote-m32r-sdi.c: Include infrun.h.
8050 * remote-mips.c: Include infrun.h.
8051 * remote-notif.c: Include infrun.h.
8052 * remote-sim.c: Include infrun.h.
8053 * remote.c: Include infrun.h.
8054 * reverse.c: Include infrun.h.
8055 * rs6000-tdep.c: Include infrun.h.
8056 * s390-linux-tdep.c: Include infrun.h.
8057 * solib-irix.c: Include infrun.h.
8058 * solib-osf.c: Include infrun.h.
8059 * solib-svr4.c: Include infrun.h.
8060 * target.c: Include infrun.h.
8061 * top.c: Include infrun.h.
8062 * windows-nat.c: Include infrun.h.
8063 * mi/mi-interp.c: Include infrun.h.
8064 * mi/mi-main.c: Include infrun.h.
8065 * python/py-threadevent.c: Include infrun.h.
8066
8067 2014-05-22 Pedro Alves <palves@redhat.com>
8068
8069 * infrun.c (handle_inferior_event): Store the exit code for
8070 --return-child-result here, instead of ...
8071 (print_exited_reason): ... here.
8072
8073 2014-05-21 Pedro Alves <palves@redhat.com>
8074
8075 PR gdb/13860
8076 * gdbthread.h (struct thread_control_state): New field
8077 `command_interp'.
8078 * infrun.c (follow_fork): Copy the new thread control field to the
8079 child fork thread.
8080 (clear_proceed_status_thread): Clear the new thread control field.
8081 (proceed): Set the new thread control field.
8082 * interps.h (command_interp): Declare.
8083 * interps.c (command_interpreter): New global.
8084 (command_interp): New function.
8085 (interp_exec): Set `command_interpreter' while here.
8086 * cli-out.c (cli_uiout_dtor): New function.
8087 (cli_ui_out_impl): Install it.
8088 * mi/mi-interp.c: Include cli-out.h.
8089 (mi_cmd_interpreter_exec): Add comment.
8090 (restore_current_uiout_cleanup): New function.
8091 (ui_out_free_cleanup): New function.
8092 (mi_on_normal_stop): If finishing an execution command started by
8093 a CLI command, or any kind of breakpoint-like event triggered,
8094 print the stop event to the output (CLI) stream.
8095 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
8096
8097 2014-05-21 Pedro Alves <palves@redhat.com>
8098
8099 * cli/cli-cmds.c (list_command): Handle the first "list" after the
8100 current source line having changed.
8101 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
8102 * infrun.c (normal_stop): Adjust call to
8103 set_current_sal_from_frame.
8104 * source.c (clear_lines_listed_range): New function.
8105 (set_current_source_symtab_and_line, identify_source_line): Clear
8106 the lines listed range.
8107 (line_info): Handle the first "info line" after the current source
8108 line having changed.
8109 * stack.c (print_stack_frame): Remove center handling.
8110 (set_current_sal_from_frame): Remove 'center' parameter. Don't
8111 center sal.line.
8112
8113 2014-05-21 Pedro Alves <palves@redhat.com>
8114
8115 * inf-child.c (inf_child_mourn_inferior): New function.
8116 * inf-child.h (inf_child_mourn_inferior): New declaration.
8117 * darwin-nat.c (darwin_mourn_inferior): Use
8118 inf_child_mourn_inferior.
8119 * gnu-nat.c (gnu_mourn_inferior): Likewise.
8120 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
8121 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
8122 * nto-procfs.c (procfs_mourn_inferior): Likewise.
8123 * windows-nat.c (windows_mourn_inferior): Likewise.
8124
8125 2014-05-21 Doug Evans <xdje42@gmail.com>
8126
8127 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
8128
8129 2014-05-21 Doug Evans <xdje42@gmail.com>
8130
8131 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
8132 (gdbscm_out_of_range_error): Ditto.
8133 (gdbscm_memory_error): Ditto.
8134 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
8135 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
8136 (gdbscm_out_of_range_error): Update.
8137 (gdbscm_memory_error): Update.
8138 (gdbscm_scm_to_target_string_unsafe): Delete.
8139
8140 2014-05-21 Pedro Alves <palves@redhat.com>
8141
8142 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
8143 globals.
8144 (inf_child_open_target): New function.
8145 (inf_child_open): Use inf_child_open_target to push the target
8146 instead of erroring out.
8147 (inf_child_disconnect, inf_child_close)
8148 (inf_child_maybe_unpush_target): New functions.
8149 (inf_child_target): Install inf_child_disconnect and
8150 inf_child_close. Store a pointer to the returned object.
8151 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
8152 declarations.
8153 * target.c (auto_connect_native_target): New global.
8154 (show_default_run_target): New function.
8155 (find_default_run_target): Return NULL if automatically connecting
8156 to the native target is disabled.
8157 (_initialize_target): Install set/show auto-connect-native-target.
8158 * NEWS: Mention "set auto-connect-native-target", and "target
8159 native".
8160 * linux-nat.c (super_close): New global.
8161 (linux_nat_close): Call super_close.
8162 (linux_nat_add_target): Store a pointer to the base class's
8163 to_close method.
8164 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
8165 inf_child_maybe_unpush.
8166 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
8167 already pushed.
8168 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
8169 the inferior. Use inf_child_maybe_unpush_target.
8170 (inf_ttrace_attach): Don't push the target if it is already
8171 pushed.
8172 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
8173 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
8174 after mourning the inferior. Use inf_child_maybe_unpush_target.
8175 (darwin_attach_pid): Don't push the target if it is already
8176 pushed.
8177 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
8178 mourning the inferior. Use inf_child_maybe_unpush_target.
8179 (gnu_detach): Use inf_child_maybe_unpush_target.
8180 * go32-nat.c (go32_create_inferior): Don't push the target if it
8181 is already pushed.
8182 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
8183 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
8184 (procfs_open): Rename to ...
8185 (procfs_open_1): ... this. Add target_ops parameter. Adjust
8186 comments. Can target_preopen before changing node. Call
8187 inf_child_open_target to push the target explicitly.
8188 (procfs_attach): Don't push the target if it is already pushed.
8189 (procfs_detach): Use inf_child_maybe_unpush_target.
8190 (procfs_create_inferior): Don't push the target if it is already
8191 pushed.
8192 (nto_native_ops): New global.
8193 (procfs_open): Reimplement.
8194 (procfs_native_open): New function.
8195 (init_procfs_targets): Install procfs_native_open as to_open of
8196 "target native". Store a pointer to the "native" target in
8197 nto_native_ops.
8198 * procfs.c (procfs_attach): Don't push the target if it is already
8199 pushed.
8200 (procfs_detach): Use inf_child_maybe_unpush_target.
8201 (procfs_mourn_inferior): Only unpush the target after mourning the
8202 inferior. Use inf_child_maybe_unpush_target.
8203 (procfs_init_inferior): Don't push the target if it is already
8204 pushed.
8205 * windows-nat.c (do_initial_windows_stuff): Don't push the target
8206 if it is already pushed.
8207
8208 2014-05-21 Pedro Alves <palves@redhat.com>
8209
8210 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8211 and "procfs" targets are now called "native" instead.
8212
8213 2014-05-21 Pedro Alves <palves@redhat.com>
8214
8215 * go32-nat.c (go32_open): Delete.
8216 (go32_target): Don't override the to_open method.
8217
8218 2014-05-21 Pedro Alves <palves@redhat.com>
8219
8220 * nto-procfs.c (procfs_can_run): New function.
8221 (nto_procfs_ops): New global.
8222 (init_procfs_targets): New, based on procfs_target. Install
8223 "target native" in addition to "target procfs".
8224 (_initialize_procfs): Call init_procfs_targets instead of adding
8225 the target here.
8226
8227 2014-05-21 Pedro Alves <palves@redhat.com>
8228
8229 * windows-nat.c (windows_target): Don't override to_shortname,
8230 to_longname or to_doc.
8231
8232 2014-05-21 Pedro Alves <palves@redhat.com>
8233
8234 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8235 to_doc.
8236
8237 2014-05-21 Pedro Alves <palves@redhat.com>
8238
8239 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8240 to_shortname, to_longname or to_doc.
8241
8242 2014-05-21 Pedro Alves <palves@redhat.com>
8243
8244 * go32-nat.c (go32_target): Don't override to_shortname,
8245 to_longname or to_doc.
8246
8247 2014-05-21 Pedro Alves <palves@redhat.com>
8248
8249 * inf-child.c (inf_child_open): Remove mention of "child".
8250 (inf_child_target): Rename target to "native" instead of "child".
8251
8252 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8253
8254 * Makefile.in (SFILES): Delete "regset.c".
8255 (COMMON_OBS): Delete "regset.o".
8256 * regset.c: Remove.
8257 * regset.h (regset_alloc): Delete prototype.
8258
8259 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8260
8261 * sparc-linux-tdep.c (sparc32_linux_gregset)
8262 (sparc32_linux_fpregset): New static regset structures.
8263 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8264 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8265 'fpregset' fields.
8266 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8267 (sparc64_linux_fpregset): New static regset structures.
8268 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8269 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8270 New static regset structures.
8271 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8272 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8273 New static regset structures.
8274 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8275 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8276 New static regset structures.
8277 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8278 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8279 New static regset structures.
8280 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8281
8282 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8283
8284 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8285 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8286 register maps ("regmaps") from "*regset" to "*regmap". Do this
8287 for all regmap types and variables.
8288 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8289 (sparc32_linux_supply_core_gregset)
8290 (sparc32_linux_collect_core_gregset)
8291 (sparc32_linux_supply_core_fpregset)
8292 (sparc32_linux_collect_core_fpregset): Likewise.
8293 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8294 (sparc_gregmap, sparc_fpregmap): ... these.
8295 (sparc_supply_gregset, sparc_collect_gregset)
8296 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8297 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8298 (_initialize_sparc_nat): Rename regmaps.
8299 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8300 (sparc_gregmap, sparc_fpregmap): ... these.
8301 (sparc_supply_gregset, sparc_collect_gregset)
8302 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8303 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8304 Rename macros to...
8305 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8306 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8307 Likewise.
8308 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8309 Rename to...
8310 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8311 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8312 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8313 regmaps.
8314 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8315 (sparc32_bsd_fpregset): Rename to...
8316 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8317 (sparc32_bsd_fpregmap): ... these.
8318 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8319 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8320 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8321 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8322 (struct sparc_gregmap, struct sparc_fpregmap)
8323 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8324 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8325 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8326 (sparc32_supply_regset, sparc32_collect_gregset)
8327 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8328 prototypes.
8329 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8330 (sparc64_linux_ptrace_gregmap): ... this.
8331 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8332 (_initialize_sparc64_linux_nat): Rename regmaps.
8333 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8334 (sparc64_linux_core_gregmap): ... this.
8335 (sparc64_linux_supply_core_gregset)
8336 (sparc64_linux_collect_core_gregset)
8337 (sparc64_linux_supply_core_fpregset)
8338 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8339 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8340 (sparc64_sol2_fpregset): Rename to...
8341 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8342 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8343 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8344 regmaps.
8345 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8346 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8347 (sparc64_bsd_fpregset): Rename to...
8348 (struct sparc_gregmap, sparc64_sol2_gregmap)
8349 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8350 (sparc64_bsd_fpregmap): ... these.
8351 (sparc64_supply_gregset, sparc64_collect_gregset)
8352 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8353 prototypes.
8354 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8355 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8356 (sparc64fbsd_gregmap): ... this.
8357 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8358 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8359 Rename regmaps.
8360 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8361 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8362 (sparc64nbsd_collect_fpregset): Likewise.
8363 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8364 (sparc64nbsd_gregmap): ... this.
8365 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8366 regmaps.
8367 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8368 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8369 (sparc64obsd_gregmap): ... this.
8370 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8371 regmaps.
8372 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8373 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8374 (sparc32nbsd_gregmap): ... this.
8375 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8376 regmaps.
8377
8378 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8379
8380 * score-tdep.c (score7_linux_gregset): New static regset
8381 structure.
8382 (score7_linux_regset_from_core_section): Remove dynamic regset
8383 allocation.
8384 (score_gdbarch_init): Drop allocation of tdep structure.
8385 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8386
8387 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8388
8389 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8390 regset structures.
8391 (am33_regset_from_core_section): Remove dynamic regset
8392 allocations.
8393
8394 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8395
8396 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8397 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8398 structures.
8399 (mips_linux_regset_from_core_section): Remove dynamic regset
8400 allocations.
8401 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8402 'gregset64', 'fpregset', and 'fpregset64'.
8403 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8404 deleted tdep fields.
8405
8406 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8407
8408 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8409 regset structures.
8410 (amd64_regset_from_core_section): Remove dynamic regset
8411 allocations.
8412 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8413 structure.
8414 (amd64obsd_regset_from_core_section): Remove dynamic regset
8415 allocation.
8416 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8417 Likewise.
8418 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8419 x86-common regset supply function.
8420 * i386-tdep.c (i386_collect_gregset): Make static.
8421 (i386_gregset): New global regset structure.
8422 (i386_fpregset, i386_xstateregset): New static regset structures.
8423 (i386_regset_from_core_section): Remove dynamic regset
8424 allocations.
8425 (i386_gdbarch_init): Remove initialization of tdep fields
8426 'gregset', 'fpregset', and 'xstateregset'.
8427 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8428 'fpregset', and 'xstateregset'.
8429 (i386_collect_gregset): Remove prototype.
8430 (i386_gregset): New declaration.
8431 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8432 structure.
8433 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8434 allocation.
8435
8436 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8437
8438 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8439 (arm_linux_vfpregset): New static regset structures.
8440 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8441 regset structures.
8442 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8443 and 'vfpregset' fields.
8444
8445 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8446
8447 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8448 (aarch64_linux_fpregset): New static regset structures.
8449 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8450 of regset structures.
8451 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8452 'fpregset' fields.
8453
8454 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8455
8456 * regset.h (struct regset): Remove gdbarch field.
8457 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8458 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8459 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8460 Likewise.
8461 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8462 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8463 (ppc32_linux_vsxregset): Likewise.
8464 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8465 via the regcache instead of the regset.
8466 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8467 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8468 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8469 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8470 Likewise.
8471
8472 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8473
8474 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8475 Constify structures.
8476 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8477 (alphanbsd_aout_gregset): Likewise.
8478 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8479 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8480 Likewise.
8481 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8482 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8483 Likewise.
8484 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8485 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8486 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8487 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8488 * m88k-tdep.c (m88k_gregset): Likewise.
8489 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8490 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8491 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8492 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8493 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8494 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8495 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8496 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8497 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8498 Likewise.
8499 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8500 * sh-tdep.h (sh_corefile_gregset): Likewise.
8501 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8502 * vax-tdep.c (vax_gregset): Likewise.
8503
8504 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8505
8506 Fix TLS access for -static -pthread.
8507 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8508 (try_thread_db_load_1): Initialize it.
8509 (thread_db_get_thread_local_address): Call it if LM is zero.
8510 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8511 * target.h (struct target_ops) (to_get_thread_local_address): Add
8512 load_module_addr comment.
8513
8514 2014-05-21 Pedro Alves <palves@redhat.com>
8515
8516 * dcache.c (dcache_read_memory_partial): If reading the cache line
8517 fails, fallback to reading just the memory the caller wanted.
8518
8519 2014-05-20 Doug Evans <dje@google.com>
8520
8521 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8522 instead of get_current_arch.
8523
8524 2014-05-20 Pedro Alves <palves@redhat.com>
8525
8526 * NEWS: Mention that compare-sections now works with all targets.
8527
8528 * remote.c (PACKET_qCRC): New enum value.
8529 (remote_verify_memory): Don't send qCRC if the target has no
8530 execution. Use packet_support/packet_ok. If the target doesn't
8531 support the qCRC packet, fallback to a deep memory copy.
8532 (compare_sections_command): Say "target image" instead of "remote
8533 executable".
8534 (_initialize_remote): Add PACKET_qCRC to the list of config
8535 packets that have no associated command. Extend comment.
8536 * target.c (simple_verify_memory, default_verify_memory): New
8537 function.
8538 * target.h (struct target_ops) <to_verify_memory>: Default to
8539 default_verify_memory.
8540 (simple_verify_memory): New declaration.
8541 * target-delegates.c: Regenerate.
8542
8543 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8544
8545 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8546
8547 2014-05-20 Hui Zhu <hui@codesourcery.com>
8548 Yao Qi <yao@codesourcery.com>
8549
8550 PR backtrace/16558
8551 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8552 and change address of sp and pc.
8553
8554 2014-05-19 Tom Tromey <tromey@redhat.com>
8555
8556 * gdbtypes.c (rank_function): Use XNEWVEC.
8557 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8558
8559 2014-05-19 Doug Evans <dje@google.com>
8560
8561 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8562 build_type_unit_groups and moved closer to only caller. Remove
8563 arguments. All references updated. Remove outdated .gdb_index
8564 comment.
8565 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8566 build_type_psymtabs_1.
8567
8568 2014-05-19 Doug Evans <dje@google.com>
8569
8570 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8571 n_type_unit_groups, all_type_unit_groups. All uses removed.
8572 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8573 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8574 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8575 (add_type_unit_group_to_table): Delete.
8576
8577 2014-05-19 Doug Evans <dje@google.com>
8578
8579 * eval.c (evaluate_subexp_standard): Add some comments.
8580
8581 2014-05-17 Doug Evans <xdje42@gmail.com>
8582
8583 * progspace.c (remove_program_space): Delete, unused.
8584 * progspace.h (remove_program_space): Ditto.
8585
8586 2014-05-17 Doug Evans <xdje42@gmail.com>
8587
8588 * inferior.c (prune_inferiors): Fix comment.
8589 (remove_inferior_command): Call prune_program_spaces.
8590
8591 2014-05-16 Doug Evans <dje@google.com>
8592
8593 New command line option -D.
8594 * NEWS: Mention it.
8595 * main.c (set_gdb_data_directory): New function.
8596 (captured_main): Recognize -D. Flag error for --data-directory "".
8597 Call set_gdb_data_directory.
8598 (print_gdb_help): Print --data-directory, -D.
8599 * main.h (set_gdb_data_directory): Declare.
8600 * top.c (staged_gdb_datadir): New static global.
8601 (set_gdb_datadir): Call set_gdb_data_directory
8602 (show_gdb_datadir): New function.
8603 (init_main): Update init of data-directory parameter.
8604
8605 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8606
8607 Import the "dirfd" gnulib module.
8608 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8609 * gnulib/aclocal.m4: Update.
8610 * gnulib/config.in: Update.
8611 * gnulib/configure: Update.
8612 * gnulib/import/Makefile.am: Update.
8613 * gnulib/import/Makefile.in: Update.
8614 * gnulib/import/dirfd.c: New.
8615 * gnulib/import/m4/dirfd.m4: New.
8616 * gnulib/import/m4/gnulib-cache.m4: Update.
8617 * gnulib/import/m4/gnulib-comp.m4: Update.
8618
8619 2014-05-16 Pierre Muller <muller@sourceware.org>
8620 Yao Qi <yao@codesourcery.com>
8621
8622 * valprint.c (print_wchar): Move the code on checking whether
8623 W is a printable wide char to the default branch of switch
8624 statement below. Call wchar_printable instead of gdb_iswprint.
8625
8626 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8627
8628 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8629 ldr.w and ldrd instructions.
8630
8631 2014-05-15 Doug Evans <dje@google.com>
8632
8633 * dwarf2read.c (read_structure_type): Delete outdated comments.
8634
8635 2014-05-14 Tom Tromey <tromey@redhat.com>
8636
8637 * macrocmd.c (print_macro_definition): Reindent.
8638
8639 2014-05-13 Doug Evans <xdje42@gmail.com>
8640
8641 * python/py-cmd.c (cmdpy_completer): Add comment.
8642 (completers): Make const.
8643
8644 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8645
8646 * infrun.c (resume): Remove should_resume (unused). Move up
8647 declaration of resume_ptid.
8648
8649 2014-05-13 Tom Tromey <tromey@redhat.com>
8650
8651 * language.h (unop_type_check): Remove.
8652 (binop_type_check): Don't declare.
8653
8654 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8655
8656 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8657 call to regcache_raw_collect.
8658
8659 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8660
8661 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8662 mi_console->quote as the quoting character.
8663
8664 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8665
8666 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8667
8668 2014-04-29 Tom Tromey <tromey@redhat.com>
8669
8670 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8671 "show debug varobj".
8672
8673 2014-05-07 Kyle McMartin <kyle@redhat.com>
8674
8675 Pushed by Joel Brobecker <brobecker@adacore.com>.
8676 * aarch64-tdep.c (aarch64_software_single_step): New function.
8677 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8678 with aarch64_software_single_step.
8679
8680 2014-05-05 Joel Brobecker <brobecker@adacore.com>
8681
8682 GDB 7.7.1 released.
8683
8684 2014-05-05 Keith Seitz <keiths@redhat.com>
8685
8686 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8687 variable or history value is successfully parsed.
8688
8689 2014-05-05 Yao Qi <yao@codesourcery.com>
8690 Pedro Alves <palves@redhat.com>
8691
8692 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8693 address of blocks that intersects the requested range. Trim
8694 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8695 sections.
8696 * ctf.c (ctf_xfer_partial): Likewise.
8697
8698 2014-05-05 Yao Qi <yao@codesourcery.com>
8699
8700 * printcmd.c (display_command): Remove the check to
8701 target_has_execution.
8702
8703 2014-05-03 Mark Kettenis <kettenis@gnu.org>
8704
8705 * ppcobsd-nat.c: Include "obsd-nat.h".
8706 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8707 add_target.
8708 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8709
8710 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8711
8712 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8713 and 16-bit signed and unsigned arguments. Update comment.
8714 (stap_parse_probe_arguments): Extend code to handle such
8715 arguments. Use warning instead of complaint to notify about
8716 unrecognized bitness.
8717
8718 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8719
8720 PR breakpoints/16889
8721 * stap-probe.c (stap_parse_probe_arguments): Simplify
8722 check for non-prefixed probes (i.e., probes whose
8723 arguments do not start with "N@"). Always set the
8724 argument type to a sane value.
8725
8726 2014-05-01 David Taylor <dtaylor@emc.com>
8727
8728 * remote.c (compare_sections_command): Add -r option to compare
8729 all loadable read-only sections.
8730
8731 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8732
8733 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8734 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8735 Update all callers.
8736 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8737 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8738 Remove unused CORE_ADDR argument. Update all callers.
8739
8740 2014-04-29 Pedro Alves <palves@redhat.com>
8741
8742 * remote.c (struct packet_config) <detect>: Extend comment.
8743 (add_packet_config_cmd): Don't set the config's detect or support
8744 fields here.
8745 (init_all_packet_configs): Also initialize the config's 'detect'
8746 field.
8747 (reset_all_packet_configs_support): New function.
8748 (remote_open_1): Call reset_all_packet_configs_support instead of
8749 init_all_packet_configs.
8750 (_initialize_remote): Initialize all packet configs. Assert that
8751 all packets have an associated command, except a few known
8752 outliers.
8753
8754 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8755
8756 * dwarf2read.c (read_subrange_type): Handle dynamic
8757 DW_AT_lower_bound attributes.
8758
8759 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8760
8761 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8762 dynamic bounds before computing its upper bound.
8763 (ada_discrete_type_low_bound): Same as above with the lower bound.
8764
8765 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8766
8767 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8768 range types. Adjust the array handling implementation to
8769 take advantage of this change.
8770 (resolve_dynamic_range): New function, mostly extracted from
8771 resolve_dynamic_bounds.
8772 (resolve_dynamic_array): New function, mostly extracted from
8773 resolve_dynamic_bounds.
8774 (resolve_dynamic_bounds): Delete.
8775 (resolve_dynamic_type): Reimplement. Add handling of
8776 TYPE_CODE_RANGE types.
8777
8778 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8779
8780 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8781 handling of parallel ___XA types.
8782
8783 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8784
8785 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8786 unnecessary second call to static_unwrap_type.
8787
8788 2014-04-27 Hui Zhu <hui@codesourcery.com>
8789
8790 * stack.c (print_frame_info): Call do_gdb_disassembly with
8791 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8792
8793 2014-04-26 Doug Evans <xdje42@gmail.com>
8794
8795 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8796
8797 2014-04-25 Pedro Alves <palves@redhat.com>
8798
8799 PR server/16255
8800 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8801 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8802 and newline from built string.
8803 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8804 (linux_ptrace_attach_fail_reason): ... this.
8805 * linux-nat.c (linux_nat_attach): Adjust to use
8806 linux_ptrace_attach_fail_reason.
8807
8808 2014-04-25 Pedro Alves <palves@redhat.com>
8809
8810 * remote.c (struct remote_state): Remove multi_process_aware,
8811 non_stop_aware, cond_tracepoints, cond_breakpoints,
8812 breakpoint_commands, fast_tracepoints, static_tracepoints,
8813 install_in_trace, disconnected_tracing,
8814 enable_disable_tracepoints, string_tracing, and
8815 augmented_libraries_svr4_read fields.
8816 (remote_multi_process_p): Move further below in the file.
8817 (struct packet_config): Add comments.
8818 (update_packet_config): Delete function.
8819 (show_packet_config_cmd): Use packet_config_support.
8820 (add_packet_config_cmd): Use NULL as set callback.
8821 (packet_ok): "set remote foo-packet"-style commands no longer
8822 change config->supported -- adjust.
8823 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8824 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8825 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8826 (PACKET_QNonStop, PACKET_multiprocess_feature)
8827 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8828 (PACKET_DisconnectedTracing_feature)
8829 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8830 (set_remote_protocol_packet_cmd): Delete function.
8831 (packet_config_support, packet_support): New functions.
8832 (set_remote_protocol_Z_packet_cmd): Don't call
8833 update_packet_config.
8834 (remote_query_attached, remote_pass_signals)
8835 (remote_program_signals, remote_threads_info)
8836 (remote_threads_extra_info, remote_start_remote): Use
8837 packet_support.
8838 (remote_start_remote): Use packet_config_support and
8839 packet_support.
8840 (init_all_packet_configs): Set all packets to unknown support,
8841 instead of calling update_packet_config.
8842 (remote_check_symbols): Use packet_support.
8843 (remote_supported_packet): Unconditionally set the packet config's
8844 support status.
8845 (remote_multi_process_feature, remote_non_stop_feature)
8846 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8847 (remote_breakpoint_commands_feature)
8848 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8849 (remote_install_in_trace_feature)
8850 (remote_disconnected_tracing_feature)
8851 (remote_enable_disable_tracepoint_feature)
8852 (remote_string_tracing_feature)
8853 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8854 (remote_protocol_features): Adjust to use remote_supported_packet
8855 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8856 "ConditionalTracepoints", "ConditionalBreakpoints",
8857 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8858 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8859 "EnableDisableTracepoints", and "tracenz".
8860 (remote_query_supported): Use packet_support.
8861 (remote_open_1): Adjust.
8862 (extended_remote_attach_1): Use packet_support. Switch on the
8863 result of packet_ok instead of checking whether the packet ended
8864 up disabled.
8865 (remote_vcont_resume): Use packet_support.
8866 (remote_resume, remote_stop_ns, fetch_register_using_p)
8867 (remote_prepare_to_store, store_register_using_P)
8868 (check_binary_download, remote_write_bytes): Use packet_support.
8869 (remote_vkill): Use packet_support. Switch on the result of
8870 packet_ok instead of checking whether the packet ended up
8871 disabled.
8872 (extended_remote_supports_disable_randomization): Use
8873 packet_support.
8874 (extended_remote_run): Switch on the result of packet_ok instead
8875 of checking whether the packet ended up disabled.
8876 (remote_insert_breakpoint, remote_remove_breakpoint)
8877 (remote_insert_watchpoint, remote_remove_watchpoint)
8878 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8879 packet_support.
8880 (remote_search_memory): Use packet_config_support.
8881 (remote_get_thread_local_address, remote_get_tib_address)
8882 (remote_hostio_send_command, remote_can_execute_reverse): Use
8883 packet_support.
8884 (remote_supports_cond_tracepoints)
8885 (remote_supports_cond_breakpoints)
8886 (remote_supports_fast_tracepoints)
8887 (remote_supports_static_tracepoints)
8888 (remote_supports_install_in_trace)
8889 (remote_supports_enable_disable_tracepoint)
8890 (remote_supports_string_tracing)
8891 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8892 the packet config says the feature is enabled or disabled.
8893 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8894 (remote_get_trace_status): Use packet_support.
8895 (remote_set_disconnected_tracing): Adjust to check whether the
8896 feature is enabled with packet_support.
8897 (remote_set_trace_buffer_size, remote_use_agent)
8898 (remote_can_use_agent, remote_supports_btrace): Use
8899 packet_support.
8900 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8901 Use packet_config_support.
8902 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8903 the packet config says the feature is enabled or disabled.
8904 (set_range_stepping): Use packet_support.
8905
8906 2014-04-25 Tom Tromey <tromey@redhat.com>
8907
8908 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8909 argument.
8910
8911 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8912
8913 * NEWS: Mention support for C99 variable length arrays.
8914
8915 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8916
8917 * ada-lang.c (standard_exc): Expand introductory comment.
8918
8919 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8920 Walfred Tedeschi <walfred.tedeschi@intel.com>
8921
8922 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8923 AVX512 registers.
8924 (amd64_linux_read_description): Add code to handle AVX512 xstate
8925 mask and return respective tdesc.
8926 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8927 and features/i386/x32-avx512-linux.c.
8928 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8929 (amd64_linux_core_read_description): Add code to handle AVX512
8930 xstate mask and return respective tdesc.
8931 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8932 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8933 calculation.
8934 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8935 (tdesc_amd64_avx512_linux): New prototype.
8936 (tdesc_x32_avx512_linux): Likewise.
8937 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8938 features/i386/x32-avx512.c.
8939 (amd64_ymm_avx512_names): New register names for pseudo
8940 registers YMM16-31.
8941 (amd64_ymmh_avx512_names): New register names for raw registers
8942 YMMH16-31.
8943 (amd64_k_names): New register names for K registers.
8944 (amd64_zmmh_names): New register names for ZMM raw registers.
8945 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8946 (amd64_xmm_avx512_names): New register names for XMM16-31
8947 registers.
8948 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8949 registers.
8950 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8951 if feature is present.
8952 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8953 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8954 (AMD64_NUM_REGS): Adjust to new number of registers.
8955 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8956 registers supplied via XSTATE by AVX512 registers.
8957 (i386_linux_read_description): Add case for AVX512.
8958 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8959 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8960 (i386_linux_core_read_description): Add case for AVX512.
8961 (i386_linux_init_abi): Install supported register note section
8962 for AVX512.
8963 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8964 AVX512.
8965 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8966 registers to be number of zmm7h + 1.
8967 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8968 * i386-tdep.c: Include features/i386/i386-avx512.c.
8969 (i386_zmm_names): Add ZMM pseudo register names array.
8970 (i386_zmmh_names): Add ZMM raw register names array.
8971 (i386_k_names): Add K raw register names array.
8972 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8973 registers. AVX512 has 16 more ZMM registers than there are YMM
8974 registers.
8975 (i386_zmmh_regnum_p): Add function to look up register number of
8976 ZMM raw registers.
8977 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8978 (i386_k_regnum_p): Likewise for K raw registers.
8979 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8980 registers added by AVX512.
8981 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8982 registers added by AVX512.
8983 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8984 added by AVX512.
8985 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8986 (i386_pseudo_register_name): Add ZMM pseudo registers.
8987 (i386_zmm_type): Construct and return vector registers type for ZMM
8988 registers.
8989 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8990 ZMM0-31 pseudo registers and K registers.
8991 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8992 and YMM16-31 registers from register cache.
8993 (i386_pseudo_register_write): Add code to write K, ZMM and
8994 YMM16-31 registers.
8995 (i386_register_reggroup_p): Add code to include/exclude AVX512
8996 registers in/from respective register groups.
8997 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8998 registers if feature is present in xcr0.
8999 (i386_gdbarch_init): Add code to initialize AVX512 feature
9000 variables in tdep structure, wire in pseudo registers and call
9001 initialize_tdesc_i386_avx512.
9002 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
9003 variables.
9004 (i386_regnum): Add AVX512 registers.
9005 (I386_SSE_NUM_REGS): New define for number of SSE registers.
9006 (I386_AVX_NUM_REGS): Likewise for AVX registers.
9007 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
9008 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
9009 512 bits wide.
9010 (i386_xmm_avx512_regnum_p): New prototype for register look up.
9011 (i386_ymm_avx512_regnum_p): Likewise.
9012 (i386_k_regnum_p): Likewise.
9013 (i386_zmm_regnum_p): Likewise.
9014 (i386_zmmh_regnum_p): Likewise.
9015 * i387-tdep.c : Update year in copyright notice.
9016 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
9017 XSAVE buffer.
9018 (XSAVE_YMM_AVX512_ADDR): New macro.
9019 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
9020 XSAVE buffer.
9021 (XSAVE_XMM_AVX512_ADDR): New macro.
9022 (xsave_avx512_k_offset): New table for K register offsets in
9023 XSAVE buffer.
9024 (XSAVE_AVX512_K_ADDR): New macro.
9025 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
9026 in XSAVE buffer.
9027 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
9028 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
9029 buffer.
9030 (i387_collect_xsave): Add code to collect AVX512 registers from
9031 XSAVE buffer.
9032 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
9033 of XMM16-31 registers.
9034 (I387_NUM_K_REGS): New define for number of K registers.
9035 (I387_K0_REGNUM): New define for K0 register number.
9036 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
9037 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
9038 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
9039 registers.
9040 (I387_YMM16H_REGNUM): New define for YMM16H register number.
9041 (I387_XMM16_REGNUM): New define for XMM16 register number.
9042 (I387_YMM0_REGNUM): New define for YMM0 register number.
9043 (I387_KEND_REGNUM): New define for last K register number.
9044 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
9045 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
9046 number.
9047 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
9048 number.
9049 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
9050 size.
9051 * features/Makefile: Add AVX512 related files.
9052 * features/i386/32bit-avx512.xml: New file.
9053 * features/i386/64bit-avx512.xml: Likewise.
9054 * features/i386/amd64-avx512-linux.c: Likewise.
9055 * features/i386/amd64-avx512-linux.xml: Likewise.
9056 * features/i386/amd64-avx512.c: Likewise.
9057 * features/i386/amd64-avx512.xml: Likewise.
9058 * features/i386/i386-avx512-linux.c: Likewise.
9059 * features/i386/i386-avx512-linux.xml: Likewise.
9060 * features/i386/i386-avx512.c: Likewise.
9061 * features/i386/i386-avx512.xml: Likewise.
9062 * features/i386/x32-avx512-linux.c: Likewise.
9063 * features/i386/x32-avx512-linux.xml: Likewise.
9064 * features/i386/x32-avx512.c: Likewise.
9065 * features/i386/x32-avx512.xml: Likewise.
9066 * regformats/i386/amd64-avx512-linux.dat: New file.
9067 * regformats/i386/amd64-avx512.dat: Likewise.
9068 * regformats/i386/i386-avx512-linux.dat: Likewise.
9069 * regformats/i386/i386-avx512.dat: Likewise.
9070 * regformats/i386/x32-avx512-linux.dat: Likewise.
9071 * regformats/i386/x32-avx512.dat: Likewise.
9072 * NEWS: Add note about new support for AVX512.
9073
9074
9075 2014-04-23 Pedro Alves <palves@redhat.com>
9076
9077 * breakpoint.c (insert_bp_location): Tolerate errors if the
9078 breakpoint is set in a user-loaded objfile.
9079 (remove_breakpoint_1): Likewise. Also tolerate errors if the
9080 location is marked shlib_disabled. If the breakpoint is set in a
9081 user-loaded objfile is a GDB-side memory breakpoint, validate it
9082 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
9083 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
9084 flag.
9085 * mem-break.c (memory_validate_breakpoint): New function.
9086 * objfiles.c (userloaded_objfile_contains_address_p): New
9087 function.
9088 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
9089 * target.h (memory_validate_breakpoint): New declaration.
9090
9091 2014-04-23 Pedro Alves <palves@redhat.com>
9092
9093 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
9094 the breakpoint is set in a shared library, only suppress
9095 errors for software breakpoints, not hardware breakpoints.
9096
9097 2014-04-22 Pedro Alves <palves@redhat.com>
9098
9099 * infrun.c (schedlock_applies): New function, factored out from
9100 find_thread_needs_step_over.
9101 (find_thread_needs_step_over): Use it.
9102 (switch_back_to_stepped_thread): Always clear trap_expected if the
9103 step over is finished. Return early if scheduler locking applies.
9104 Look for the stepping thread and a potential step-over thread with
9105 a single loop.
9106 (currently_stepping_or_nexting_callback): Delete.
9107
9108 2014-04-22 Nick Clifton <nickc@redhat.com>
9109
9110 * NEWS: Mention that ARM sim now supports tracing.
9111
9112 2014-04-22 Yao Qi <yao@codesourcery.com>
9113
9114 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
9115 to ...
9116 * tracefile.c (tracefile_fetch_registers): ... it. New
9117 function.
9118 * tracefile.h (tracefile_fetch_registers): Declare.
9119 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
9120 tracefile_fetch_registers.
9121
9122 2014-04-19 Eli Zaretskii <eliz@gnu.org>
9123
9124 PR gdb/14018
9125 * windows-nat.c (thread_rec): Don't display a warning when
9126 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
9127 fails for any reason, set th->suspended to -1, so that we don't
9128 try to resume such a thread. Also, don't return NULL in these
9129 cases, to avoid completely ruin the session due to "PC register is
9130 not available" error.
9131 (do_windows_fetch_inferior_registers): Check errors in
9132 GetThreadContext call.
9133 (windows_continue): Accept an additional argument KILLED; if not
9134 zero, ignore errors in the SetThreadContext call, since the
9135 inferior was killed and is shutting down.
9136 (windows_resume, get_windows_debug_event)
9137 (windows_create_inferior, windows_mourn_inferior)
9138 (windows_kill_inferior): All callers of windows_continue changed
9139 to adjust to its new calling sequence.
9140
9141 2014-04-19 Yao Qi <yao@codesourcery.com>
9142
9143 * ctf.c (ctf_open): Call post_create_inferior.
9144
9145 2014-04-19 Yao Qi <yao@codesourcery.com>
9146
9147 * ctf.c (handle_id): New static variable.
9148 (ctf_open_dir): Get handle_id from bt_context_add_trace return
9149 value. Get the declaration of event "register" and get length
9150 of field "contents".
9151
9152 2014-04-19 Yao Qi <yao@codesourcery.com>
9153
9154 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
9155
9156 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
9157
9158 * valops.c (oload_method_static): Remove unnecessary argument
9159 METHOD. Update all callers.
9160
9161 2014-04-18 Pedro alves <palves@redhat.com>
9162 Tom Tromey <tromey@redhat.com>
9163
9164 PR backtrace/15558
9165 * frame.c (get_prev_frame_1): Rename to ...
9166 (get_prev_frame_always): ... this, and make extern. Adjust.
9167 (skip_artificial_frames): Use get_prev_frame_always.
9168 (frame_unwind_caller_id, frame_pop, get_prev_frame)
9169 (get_frame_unwind_stop_reason): Adjust to rename.
9170 * frame.h (get_prev_frame_always): Declare.
9171 * inline-frame.c: Include frame.h.
9172 (inline_frame_this_id): Use get_prev_frame_always.
9173
9174 2014-04-18 Tristan Gingold <gingold@adacore.com>
9175
9176 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
9177 code by using bfd_mach_o_get_base_address.
9178
9179 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
9180
9181 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
9182 (spu_ax_pseudo_register_collect): New function.
9183 (spu_ax_pseudo_register_push_stack): Likewise.
9184 (spu_dwarf_reg_to_regnum): Likewise.
9185 (spu_gdbarch_init): Install them. Append DWARF unwinders.
9186
9187 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
9188
9189 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
9190 Replace FRAME argument with FRAME_ID.
9191 * gdbarch.c, gdbarch.h: Regenerate.
9192 * findvar.c (default_value_from_register): Add GDBARCH argument;
9193 replace FRAME by FRAME_ID. No longer call get_frame_id.
9194 (value_from_register): Update call to gdbarch_value_from_register.
9195 * value.h (default_value_from_register): Update prototype.
9196 * s390-linux-tdep.c (s390_value_from_register): Update interface
9197 and call to default_value_from_register.
9198 * spu-tdep.c (spu_value_from_register): Likewise.
9199
9200 * findvar.c (address_from_register): Remove TYPE argument.
9201 Do not call value_from_register; use gdbarch_value_from_register
9202 with null_frame_id instead.
9203 * value.h (address_from_register): Update prototype.
9204 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9205 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9206 address_from_register interface change.
9207
9208 2014-04-17 Yao Qi <yao@codesourcery.com>
9209
9210 * gdbtypes.h: Update comments to link to types and macros'
9211 definitions.
9212
9213 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
9214
9215 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9216
9217 2014-04-16 Keith Seitz <keiths@redhat.com>
9218
9219 PR gdb/15827
9220 * dwarf2read.c (skip_one_die): Check that all relative-offset
9221 sibling DIEs fall within range of the current reader's buffer.
9222 (read_partial_die): Likewise.
9223
9224 2014-04-16 Keith Seitz <keiths@redhat.com>
9225
9226 PR c++/16597
9227 * cp-namespace.c (lookup_symbol_file): If the type name of
9228 `this' is NULL, return immediately.
9229
9230 2014-04-14 Keith Seitz <keiths@redhat.com>
9231
9232 PR c++/16253
9233 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9234 from symbol_matches_domain in symtab.c. All local callers
9235 of symbol_matches_domain updated.
9236 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9237 search STRUCT_DOMAIN.
9238 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9239 independently. standard_lookup will do that automatically.
9240 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9241 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9242 (cp_lookup_symbol_in_namespace): Likewise.
9243 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9244 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9245 may return a STRUCT_DOMAIN match.
9246 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9247 * cp-support.c: Include language.h.
9248 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9249 VAR_DOMAIN.
9250 * psymtab.c (match_partial_symbol): Compare the requested
9251 domain with the symbol's domain directly.
9252 (lookup_partial_symbol): Likewise.
9253 * symtab.c (lookup_symbol_in_language): Explain when/why
9254 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9255 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9256 appropriate languages.
9257 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9258 and moved to ada-lang.c
9259 (lookup_block_symbol): Explain that this function only returns
9260 symbol matching the requested DOMAIN.
9261 Compare the requested domain with the symbol's domain directly.
9262 (iterate_over_symbols): Compare the requested domain with the
9263 symbol's domain directly.
9264 * symtab.h (symbol_matches_domain): Remove.
9265
9266 2014-04-14 Tom Tromey <tromey@redhat.com>
9267
9268 PR c++/15246:
9269 * c-exp.y (type_aggregate_p): New function.
9270 (qualified_name, classify_inner_name): Use it.
9271 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9272 and TYPE_TARGET_TYPE of an enum type.
9273 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9274 an enum type.
9275 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9276 handle TYPE_DECLARED_CLASS.
9277 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9278 types.
9279 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9280 * valops.c (enum_constant_from_type): New function.
9281 (value_aggregate_elt): Use it.
9282 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9283 TYPE_CODE_ENUM.
9284
9285 2014-04-14 Tom Tromey <tromey@redhat.com>
9286
9287 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9288 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9289 const.
9290 * value.h (value_aggregate_elt): Update.
9291
9292 2014-04-14 Tom Tromey <tromey@redhat.com>
9293
9294 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9295
9296 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9297
9298 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9299 (evaluate_subexp_standard): Pass noside argument.
9300 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9301 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9302 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9303 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9304 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9305
9306 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9307
9308 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9309 points to a constant blob.
9310
9311 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9312
9313 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9314 property and store it as the high bound and flag the range accordingly.
9315 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9316 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9317 * gdbtypes.h (enum range_flags): New enum.
9318 (struct range_bounds): Add flags member.
9319
9320 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9321
9322 * c-typeprint.c (c_type_print_varspec_suffix): Added
9323 check for not yet resolved high bound. If unresolved, print
9324 "variable length" string to the console instead of random
9325 length.
9326
9327 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9328
9329 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9330 value.
9331 (ada_template_to_fixed_record_type_1): Likewise.
9332 (ada_to_fixed_type_1): Likewise.
9333 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9334 (cp_print_value): Likewise.
9335 * d-valprint.c (dynamic_array_type): Likewise.
9336 * findvar.c (address_of_variable): Likewise.
9337 * jv-valprint.c (java_value_print): Likewise.
9338 * valops.c (value_ind): Likewise.
9339 * value.c (coerce_ref): Likewise.
9340
9341 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9342
9343 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9344 value and retrieve the dynamic type size.
9345
9346 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9347
9348 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9349 passed to sizeof is dynamic evaluate the argument to compute the length.
9350
9351 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9352 Joel Brobecker <brobecker@adacore.com>
9353
9354 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9355 (dwarf2_evaluate_property): New function.
9356 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9357 * dwarf2read.c (attr_to_dynamic_prop): New function.
9358 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9359 attribute.
9360 * gdbtypes.c: Include dwarf2loc.h.
9361 (is_dynamic_type): New function.
9362 (resolve_dynamic_type): New function.
9363 (resolve_dynamic_bounds): New function.
9364 (get_type_length): New function.
9365 (check_typedef): Use get_type_length to compute type length.
9366 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9367 (TYPE_LOW_BOUND_KIND): New macro.
9368 (is_dynamic_type): New function prototype.
9369 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9370 to resolve dynamic properties of the type. Update comment.
9371 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9372
9373 2014-04-14 Richard Henderson <rth@redhat.com>
9374
9375 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9376
9377 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9378 Doug Evans <xdje42@gmail.com>
9379
9380 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9381 dereference TYPE_CODE_REF values.
9382
9383 2014-04-11 Joel Brobecker <brobecker@adacore.com>
9384
9385 Revert the following changes due to regressions:
9386
9387 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9388 (dwarf2_evaluate_property): New function.
9389 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9390 * dwarf2read.c (attr_to_dynamic_prop): New function.
9391 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9392 attribute.
9393 * gdbtypes.c: Include dwarf2loc.h.
9394 (is_dynamic_type): New function.
9395 (resolve_dynamic_type): New function.
9396 (resolve_dynamic_bounds): New function.
9397 (get_type_length): New function.
9398 (check_typedef): Use get_type_length to compute type length.
9399 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9400 (TYPE_LOW_BOUND_KIND): New macro.
9401 (is_dynamic_type): New function prototype.
9402 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9403 to resolve dynamic properties of the type. Update comment.
9404 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9405
9406 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9407 passed to sizeof is dynamic evaluate the argument to compute the length.
9408
9409 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9410 value and retrieve the dynamic type size.
9411
9412 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9413 (ada_template_to_fixed_record_type_1): Likewise.
9414 (ada_to_fixed_type_1): Likewise.
9415 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9416 (cp_print_value): Likewise.
9417 * d-valprint.c (dynamic_array_type): Likewise.
9418 * eval.c (evaluate_subexp_with_coercion): Likewise.
9419 * findvar.c (address_of_variable): Likewise.
9420 * jv-valprint.c (java_value_print): Likewise.
9421 * valops.c (value_ind): Likewise.
9422 * value.c (coerce_ref): Likewise.
9423
9424 * c-typeprint.c (c_type_print_varspec_suffix): Added
9425 check for not yet resolved high bound. If unresolved, print
9426 "variable length" string to the console instead of random
9427 length.
9428
9429 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9430 property and store it as the high bound and flag the range accordingly.
9431 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9432 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9433 * gdbtypes.h (enum range_flags): New enum.
9434 (struct range_bounds): Add flags member.
9435
9436 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9437 points to a constant blob.
9438
9439 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9440 (evaluate_subexp_standard): Pass noside argument.
9441 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9442 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9443 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9444 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9445 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9446
9447 2014-04-11 Keith Seitz <keiths@redhat.com>
9448
9449 PR c++/16675
9450 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9451 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9452 reference types.
9453
9454 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9455
9456 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9457 (evaluate_subexp_standard): Pass noside argument.
9458 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9459 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9460 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9461 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9462 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9463
9464 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9465
9466 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9467 points to a constant blob.
9468
9469 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9470
9471 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9472 property and store it as the high bound and flag the range accordingly.
9473 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9474 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9475 * gdbtypes.h (enum range_flags): New enum.
9476 (struct range_bounds): Add flags member.
9477
9478 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9479
9480 * c-typeprint.c (c_type_print_varspec_suffix): Added
9481 check for not yet resolved high bound. If unresolved, print
9482 "variable length" string to the console instead of random
9483 length.
9484
9485 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9486
9487 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9488 (ada_template_to_fixed_record_type_1): Likewise.
9489 (ada_to_fixed_type_1): Likewise.
9490 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9491 (cp_print_value): Likewise.
9492 * d-valprint.c (dynamic_array_type): Likewise.
9493 * eval.c (evaluate_subexp_with_coercion): Likewise.
9494 * findvar.c (address_of_variable): Likewise.
9495 * jv-valprint.c (java_value_print): Likewise.
9496 * valops.c (value_ind): Likewise.
9497 * value.c (coerce_ref): Likewise.
9498
9499 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9500
9501 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9502 value and retrieve the dynamic type size.
9503
9504 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9505
9506 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9507 passed to sizeof is dynamic evaluate the argument to compute the length.
9508
9509 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9510
9511 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9512 (dwarf2_evaluate_property): New function.
9513 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9514 * dwarf2read.c (attr_to_dynamic_prop): New function.
9515 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9516 attribute.
9517 * gdbtypes.c: Include dwarf2loc.h.
9518 (is_dynamic_type): New function.
9519 (resolve_dynamic_type): New function.
9520 (resolve_dynamic_bounds): New function.
9521 (get_type_length): New function.
9522 (check_typedef): Use get_type_length to compute type length.
9523 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9524 (TYPE_LOW_BOUND_KIND): New macro.
9525 (is_dynamic_type): New function prototype.
9526 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9527 to resolve dynamic properties of the type. Update comment.
9528 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9529
9530 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9531
9532 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9533 declaring high/low bounds and change uses accordingly. Call
9534 create_range_type instead of create_static_range_type.
9535 * gdbtypes.c (create_range_type): New function.
9536 (create_range_type): Convert bounds into struct bound_prop and pass
9537 them to create_range_type.
9538 * gdbtypes.h (struct bound_prop): New struct.
9539 (create_range_type): New function prototype.
9540 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9541 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9542 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9543 part of the bound.
9544 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9545
9546 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9547
9548 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9549 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9550 * ada-lang.c: All uses of create_range_type updated.
9551 * coffread.c: All uses of create_range_type updated.
9552 * dwarf2read.c: All uses of create_range_type updated.
9553 * f-exp.y: All uses of create_range_type updated.
9554 * m2-valprint.c: All uses of create_range_type updated.
9555 * mdebugread.c: All uses of create_range_type updated.
9556 * stabsread.c: All uses of create_range_type updated.
9557 * valops.c: All uses of create_range_type updated.
9558 * valprint.c: All uses of create_range_type updated.
9559
9560 2014-04-10 Pedro Alves <palves@redhat.com>
9561
9562 * breakpoint.c (single_step_breakpoints)
9563 (single_step_gdbarch): Move up in the file.
9564 (one_breakpoint_xfer_memory): New function, factored out from ...
9565 (breakpoint_xfer_memory): ... here. Also process single-step
9566 breakpoints.
9567
9568 2014-04-09 Tristan Gingold <gingold@adacore.com>
9569
9570 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9571 comments.
9572 (darwin_decode_exception_message): Free port only after use.
9573
9574 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9575
9576 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9577 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9578 when setting the size of call_length.
9579
9580 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9581
9582 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9583 dereference TYPE_CODE_REF values.
9584
9585 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9586
9587 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9588 end of warning message.
9589
9590 2014-04-03 Doug Evans <dje@google.com>
9591
9592 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9593 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9594
9595 2014-04-02 Alan Modra <amodra@gmail.com>
9596
9597 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9598 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9599 (struct symbol_file_add_from_memory_args): Add size field.
9600 (find_vdso_size): New function.
9601 (add_vsyscall_page): Attempt to find vdso size.
9602
9603 2014-04-01 Doug Evans <dje@google.com>
9604
9605 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9606
9607 2014-04-01 Tristan Gingold <gingold@adacore.com>
9608
9609 * darwin-nat.c (darwin_encode_reply): Add prototype.
9610 (darwin_decode_exception_message): Reply to unknown inferiors.
9611 (darwin_decode_message): Handle message by id. Ignore message
9612 to unknown inferior.
9613 (darwin_wait): Discard unknown messages, add debug trace.
9614
9615 2014-03-31 Doug Evans <dje@google.com>
9616
9617 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9618 comp_dir_string.
9619
9620 2014-03-31 Doug Evans <dje@google.com>
9621
9622 New option "set print symbol-loading".
9623 * NEWS: Mention it.
9624 * solib.c (solib_read_symbols): Only print symbol loading messages
9625 if requested.
9626 (solib_add): If symbol loading is in "brief" mode, notify user
9627 symbols are being loaded.
9628 (reload_shared_libraries_1): Ditto.
9629 * symfile.c (print_symbol_loading_off): New static global.
9630 (print_symbol_loading_brief): New static global.
9631 (print_symbol_loading_full): New static global.
9632 (print_symbol_loading_enums): New static global.
9633 (print_symbol_loading): New static global.
9634 (print_symbol_loading_p): New function.
9635 (symbol_file_add_with_addrs): Only print symbol loading messages
9636 if requested.
9637 (_initialize_symfile): Register "print symbol-loading" set/show
9638 command.
9639 * symfile.h (print_symbol_loading_p): Declare.
9640
9641 2014-03-30 Doug Evans <xdje42@gmail.com>
9642
9643 * infrun.c (set_last_target_status): New function.
9644 (handle_inferior_event): Call it.
9645
9646 2014-03-30 Doug Evans <xdje42@gmail.com>
9647
9648 * inferior.h (enum stop_kind): Improve comment.
9649
9650 2014-03-28 Joel Brobecker <brobecker@adacore.com>
9651
9652 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9653 a reference, strip the reference layer before calling
9654 the lang_ops value_has_mutated callback.
9655
9656 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9657
9658 Remove some globals from our parser.
9659 * language.c (unk_lang_parser): Add "struct parser_state"
9660 argument.
9661 * language.h (struct language_defn) <la_parser>: Likewise.
9662 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9663 (initialize_expout): Add "struct parser_state" argument.
9664 Rewrite function to use the parser state.
9665 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9666 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9667 write_exp_elt_longcst, write_exp_elt_dblcst,
9668 write_exp_elt_decfloatcst, write_exp_elt_type,
9669 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9670 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9671 write_dollar_variable): Likewise.
9672 (parse_exp_in_context_1): Use parser state.
9673 (insert_type_address_space): Add "struct parser_state" argument.
9674 Use parser state.
9675 (increase_expout_size): New function.
9676 * parser-defs.h: Forward declare "struct language_defn" and
9677 "struct parser_state".
9678 (expout, expout_size, expout_ptr): Remove extern declarations.
9679 (parse_gdbarch, parse_language): Rewrite macro declarations to
9680 accept the parser state.
9681 (struct parser_state): New struct.
9682 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9683 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9684 write_exp_elt_decfloatcst, write_exp_elt_type,
9685 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9686 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9687 write_exp_msymbol, write_dollar_variable,
9688 mark_struct_expression, insert_type_address_space): Add "struct
9689 parser_state" argument.
9690 (increase_expout_size): New function.
9691 * utils.c (do_clear_parser_state): New function.
9692 (make_cleanup_clear_parser_state): Likewise.
9693 * utils.h (make_cleanup_clear_parser_state): New function
9694 prototype.
9695 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9696 Update calls to write_exp* in order to pass the parser state.
9697 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9698 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9699 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9700 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9701 * stap-probe.c (stap_parse_register_operand): Likewise.
9702 (stap_parse_single_operand): Likewise.
9703 (stap_parse_argument_1): Likewise.
9704 (stap_parse_argument): Use parser state.
9705 * stap-probe.h: Include "parser-defs.h".
9706 (struct stap_parse_info) <pstate>: New field.
9707 * c-exp.y (parse_type): Rewrite to use parser state.
9708 (yyparse): Redefine to c_parse_internal.
9709 (pstate): New global variable.
9710 (parse_number): Add "struct parser_state" argument.
9711 (write_destructor_name): Likewise.
9712 (type_exp): Update calls to write_exp* and similars in order to
9713 use parser state.
9714 (exp1, exp, variable, qualified_name, space_identifier,
9715 typename, typebase): Likewise.
9716 (write_destructor_name, parse_number, lex_one_token,
9717 classify_name, classify_inner_name, c_parse): Add "struct
9718 parser_state" argument. Update function to use parser state.
9719 * c-lang.h: Forward declare "struct parser_state".
9720 (c_parse): Add "struct parser_state" argument.
9721 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9722 (yyparse): Redefine macro to ada_parse_internal.
9723 (pstate): New variable.
9724 (write_int, write_object_renaming, write_var_or_type,
9725 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9726 type_int, type_long, type_long_long, type_float, type_double,
9727 type_long_double, type_char, type_boolean, type_system_address):
9728 Add "struct parser_state" argument.
9729 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9730 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9731 var_or_type, aggregate, aggregate_component_list,
9732 positional_list, others, component_group,
9733 component_associations): Update calls to write_exp* and similar
9734 functions in order to use parser state.
9735 (ada_parse, write_var_from_sym, write_int,
9736 write_exp_op_with_string, write_object_renaming,
9737 find_primitive_type, write_selectors, write_ambiguous_var,
9738 write_var_or_type, write_name_assoc, type_int, type_long,
9739 type_long_long, type_float, type_double, type_long_double,
9740 type_char, type_boolean, type_system_address): Add "struct
9741 parser_state" argument. Adjust function to use parser state.
9742 * ada-lang.c (parse): Likewise.
9743 * ada-lang.h: Forward declare "struct parser_state".
9744 (ada_parse): Add "struct parser_state" argument.
9745 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9746 calls to both functions.
9747 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9748 parser state.
9749 (yyparse): Redefine macro to f_parse_internal.
9750 (pstate): New variable.
9751 (parse_number): Add "struct parser_state" argument.
9752 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9753 and similars in order to use parser state.
9754 (parse_number): Adjust code to use parser state.
9755 (yylex): Likewise.
9756 (f_parse): New function.
9757 * f-lang.h: Forward declare "struct parser_state".
9758 (f_parse): Add "struct parser_state" argument.
9759 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9760 parser state.
9761 (yyparse): Redefine macro for java_parse_internal.
9762 (pstate): New variable.
9763 (push_expression_name, push_expression_name, insert_exp): Add
9764 "struct parser_state" argument.
9765 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9766 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9767 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9768 PostIncrementExpression, PostDecrementExpression,
9769 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9770 UnaryExpressionNotPlusMinus, CastExpression,
9771 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9772 RelationalExpression, EqualityExpression, AndExpression,
9773 ExclusiveOrExpression, InclusiveOrExpression,
9774 ConditionalAndExpression, ConditionalOrExpression,
9775 ConditionalExpression, Assignment, LeftHandSide): Update
9776 calls to write_exp* and similars in order to use parser state.
9777 (parse_number): Ajust code to use parser state.
9778 (yylex): Likewise.
9779 (java_parse): New function.
9780 (push_variable): Add "struct parser_state" argument. Adjust
9781 code to user parser state.
9782 (push_fieldnames, push_qualified_expression_name,
9783 push_expression_name, insert_exp): Likewise.
9784 * jv-lang.h: Forward declare "struct parser_state".
9785 (java_parse): Add "struct parser_state" argument.
9786 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9787 parser state.
9788 (yyparse): Redefine macro to m2_parse_internal.
9789 (pstate): New variable.
9790 (type_exp, exp, fblock, variable, type): Update calls to
9791 write_exp* and similars to use parser state.
9792 (yylex): Likewise.
9793 (m2_parse): New function.
9794 * m2-lang.h: Forward declare "struct parser_state".
9795 (m2_parse): Add "struct parser_state" argument.
9796 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9797 * objc-lang.h: Forward declare "struct parser_state".
9798 (end_msglist): Add "struct parser_state" argument.
9799 * p-exp.y (parse_type): Rewrite macro to use parser state.
9800 (yyparse): Redefine macro to pascal_parse_internal.
9801 (pstate): New variable.
9802 (parse_number): Add "struct parser_state" argument.
9803 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9804 write_exp* and similars in order to use parser state.
9805 (parse_number, yylex): Adjust code to use parser state.
9806 (pascal_parse): New function.
9807 * p-lang.h: Forward declare "struct parser_state".
9808 (pascal_parse): Add "struct parser_state" argument.
9809 * go-exp.y (parse_type): Rewrite macro to use parser state.
9810 (yyparse): Redefine macro to go_parse_internal.
9811 (pstate): New variable.
9812 (parse_number): Add "struct parser_state" argument.
9813 (type_exp, exp1, exp, variable, type): Update calls to
9814 write_exp* and similars in order to use parser state.
9815 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9816 to use parser state.
9817 (go_parse): Likewise.
9818 * go-lang.h: Forward declare "struct parser_state".
9819 (go_parse): Add "struct parser_state" argument.
9820
9821 2014-03-27 Doug Evans <dje@google.com>
9822
9823 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9824
9825 2014-03-27 Doug Evans <dje@google.com>
9826
9827 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9828 Remove argument abbrev_section. All callers updated.
9829
9830 2014-03-27 Doug Evans <dje@google.com>
9831
9832 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9833 addr_base, ranges_base.
9834
9835 2014-03-26 Keith Seitz <keiths@redhat.com>
9836
9837 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9838 types, not VAR_DOMAIN.
9839
9840 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9841
9842 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9843 "ra" registers.
9844 * features/nios2-linux.c: Regenerated.
9845 * features/nios2.c: Regenerated.
9846
9847 2014-03-25 Pedro Alves <palves@redhat.com>
9848
9849 * cli/cli-script.c (script_from_file): Force the interpreter to
9850 sync mode.
9851
9852 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9853
9854 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9855 small stack allocation.
9856
9857 2014-03-24 Tristan Gingold <gingold@adacore.com>
9858
9859 * darwin-nat.c (exc_server): Remove unused prototype.
9860 (darwin_dump_message): Correctly display data on x86_64.
9861 (darwin_encode_reply): Fix style.
9862 Add comments and fix indentation.
9863
9864 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9865
9866 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9867
9868 2014-03-22 Doug Evans <xdje42@gmail.com>
9869
9870 * infcmd.c: Whitespace fixes.
9871 (interrupt_command): Merge two function comments into one.
9872
9873 2014-03-22 Doug Evans <xdje42@gmail.com>
9874
9875 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9876 All uses updated.
9877
9878 2014-03-22 Yao Qi <yao@codesourcery.com>
9879
9880 * remote.c (target_read_live_memory): Remove.
9881 (memory_xfer_live_readonly_partial): Rename it to
9882 remote_xfer_live_readonly_partial. Remove argument 'object'.
9883 All callers updated. Call remote_read_bytes_1
9884 instead of target_read_live_memory.
9885 * tracepoint.c (set_traceframe_number): Remove.
9886 (make_cleanup_restore_traceframe_number): Likewise .
9887 * tracepoint.h (set_traceframe_number): Remove declaration.
9888 (make_cleanup_restore_traceframe_number): Likewise.
9889
9890 2014-03-22 Yao Qi <yao@codesourcery.com>
9891
9892 * remote.c (remote_read_bytes): Move code on reading from the
9893 remote stub to ...
9894 (remote_read_bytes_1): ... here. New function.
9895
9896 2014-03-22 Yao Qi <yao@codesourcery.com>
9897
9898 * ctf.c (ctf_xfer_partial): Check the return value of
9899 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9900 return TARGET_XFER_UNAVAILABLE.
9901 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9902 * target.c (target_read_live_memory): Move it to remote.c.
9903 (memory_xfer_live_readonly_partial): Likewise.
9904 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9905 * remote.c (target_read_live_memory): Moved from target.c.
9906 (memory_xfer_live_readonly_partial): Likewise.
9907 (remote_read_bytes): Factored out from
9908 memory_xfer_partial_1.
9909
9910 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9911
9912 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9913 NULL pointer.
9914
9915 2014-03-21 Pedro Alves <palves@redhat.com>
9916
9917 * infrun.c (normal_stop): Extend comment.
9918
9919 2014-03-21 Hui Zhu <hui@codesourcery.com>
9920 Pedro Alves <palves@redhat.com>
9921
9922 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9923 static buffer.
9924 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9925 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9926 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9927
9928 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9929
9930 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9931 `z' formatted output modifier.
9932
9933 2014-03-20 Tom Tromey <tromey@redhat.com>
9934 Sergio Durigan Junior <sergiodj@redhat.com>
9935
9936 * probe.c (parse_probes): Turn assert into an ordinary error.
9937 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9938 exceptions when parsing probes. Rearrange the code for clarity.
9939
9940 2014-03-20 Tom Tromey <tromey@redhat.com>
9941
9942 PR gdb/14135
9943 * top.c (execute_command): Only dispatch events if the command
9944 started the target.
9945
9946 2014-03-20 Tom Tromey <tromey@redhat.com>
9947
9948 PR cli/15718
9949 * infcall.c: Include event-top.h.
9950 (run_inferior_call): Call async_disable_stdin if needed.
9951
9952 2014-03-20 Pedro Alves <palves@redhat.com>
9953
9954 * infrun.c (prepare_to_proceed): Delete.
9955 (thread_still_needs_step_over): New function.
9956 (find_thread_needs_step_over): New function.
9957 (proceed): If the current thread needs a step-over, set its
9958 steping_over_breakpoint flag. Adjust to use
9959 find_thread_needs_step_over instead of prepare_to_proceed.
9960 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9961 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9962 breakpoint.
9963 (switch_back_to_stepped_thread): Step over breakpoints of all
9964 threads not the stepping thread, before switching back to the
9965 stepping thread.
9966
9967 2014-03-20 Pedro Alves <palves@redhat.com>
9968
9969 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9970 extern.
9971 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9972 * infrun.c (saved_singlestep_ptid)
9973 (stepping_past_singlestep_breakpoint): Delete.
9974 (resume): Remove stepping_past_singlestep_breakpoint handling.
9975 (proceed): Store the prev_pc of the stepping thread too.
9976 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9977 singlestep_pc.
9978 (enum infwait_states): Delete infwait_thread_hop_state.
9979 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9980 field.
9981 (handle_inferior_event): Adjust.
9982 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9983 handling and the thread-hop code. Before removing single-step
9984 breakpoints, check whether the thread hit a single-step breakpoint
9985 of another thread. If it did, the trap is not a random signal.
9986 (switch_back_to_stepped_thread): If the event thread hit a
9987 single-step breakpoint, unblock it before switching to the
9988 stepping thread. Handle the case of the stepped thread having
9989 advanced already.
9990 (keep_going): Handle the case of the current thread moving past a
9991 single-step breakpoint.
9992
9993 2014-03-20 Pedro Alves <palves@redhat.com>
9994
9995 PR breakpoints/7143
9996 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9997 are being stepped over.
9998 (breakpoint_address_match): Make extern.
9999 * breakpoint.h (breakpoint_address_match): New declaration.
10000 * inferior.h (stepping_past_instruction_at): New declaration.
10001 * infrun.c (struct step_over_info): New type.
10002 (step_over_info): New global.
10003 (set_step_over_info, clear_step_over_info)
10004 (stepping_past_instruction_at): New functions.
10005 (handle_inferior_event): Clear the step-over info when
10006 trap_expected is cleared.
10007 (resume): Remove now stale comment.
10008 (clear_proceed_status): Clear step-over info.
10009 (proceed): Adjust step-over handling to set or clear the step-over
10010 info instead of removing all breakpoints.
10011 (handle_signal_stop): When setting up a thread-hop, don't remove
10012 breakpoints here.
10013 (stop_stepping): Clear step-over info.
10014 (keep_going): Adjust step-over handling to set or clear step-over
10015 info and then always inserting breakpoints, instead of removing
10016 all breakpoints when stepping over one.
10017
10018 2014-03-20 Pedro Alves <palves@redhat.com>
10019
10020 * infrun.c (previous_inferior_ptid): Adjust comment.
10021 (deferred_step_ptid): Delete.
10022 (infrun_thread_ptid_changed, prepare_to_proceed)
10023 (init_wait_for_inferior): Adjust.
10024 (handle_signal_stop): Delete deferred_step_ptid handling.
10025
10026 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10027
10028 PR gdb/15358
10029 * defs.h (sync_quit_force_run): New declaration.
10030 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
10031 * event-top.c (async_sigterm_handler): New declaration.
10032 (async_sigterm_token): New variable.
10033 (async_init_signals): Create also async_sigterm_token.
10034 (async_sigterm_handler): New function.
10035 (sync_quit_force_run): New variable.
10036 (handle_sigterm): Replace quit_force call by other calls.
10037 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
10038
10039 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
10040
10041 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
10042 offset into SPE pseudo registers.
10043
10044 2014-03-18 Pedro Alves <palves@redhat.com>
10045
10046 PR gdb/13860
10047 * inferior.h (print_stop_event): Declare.
10048 * infrun.c (print_stop_event): New, factored out from ...
10049 (normal_stop): ... this.
10050 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
10051 of bpstat_print/print_stack_frame.
10052
10053 2014-03-17 Tom Tromey <tromey@redhat.com>
10054
10055 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
10056
10057 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
10058
10059 * ada-lang.c (decode_constrained_packed_array): Perform a
10060 minimal coercion for reference with coerce_ref instead of
10061 ada_coerce_ref.
10062
10063 2014-03-17 Tristan Gingold <gingold@adacore.com>
10064
10065 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10066 (darwin_solib_create_inferior_hook): Emit a warning if version
10067 is unhandled.
10068
10069 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
10070
10071 * python/py-value.c (get_field_flag): Cast flag_name argument to
10072 PyObject_GetAttrString to support Python 2.4.
10073
10074 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10075
10076 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
10077 (Global Maintainers): Remove Jan Kratochvil.
10078
10079 2014-03-14 Pedro Alves <palves@redhat.com>
10080
10081 * inferior.h (terminal_ours_for_output): Rename to ...
10082 (child_terminal_ours_for_output): ... this.
10083 (terminal_save_ours): Rename to ...
10084 (child_terminal_save_ours): ... this.
10085 (terminal_ours): Rename to ...
10086 (child_terminal_ours): ... this.
10087 (terminal_inferior): Rename to ...
10088 (child_terminal_inferior): ... this.
10089 (terminal_init_inferior): Rename to ...
10090 (child_terminal_init_inferior): ... this.
10091 (terminal_init_inferior_with_pgrp): Rename to ...
10092 (child_terminal_init_inferior_with_pgrp): ... this.
10093 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
10094 (child_terminal_init_with_pgrp): ... this.
10095 (terminal_save_ours): Rename to ...
10096 (child_terminal_save_ours): ... this.
10097 (terminal_init_inferior): Rename to ...
10098 (child_terminal_init): ... this. Adjust.
10099 (terminal_inferior): Rename to ...
10100 (child_terminal_inferior): ... this.
10101 (terminal_ours_for_output): Rename to ...
10102 (child_terminal_ours_for_output): ... this. Adjust.
10103 (terminal_ours): Rename to ...
10104 (child_terminal_ours): ... this.
10105 (terminal_ours_1): Rename to ...
10106 (child_terminal_ours_1): ... this. Adjust.
10107 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
10108 * windows-nat.c (do_initial_windows_stuff): Adjust.
10109 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
10110 (gnu_terminal_init): ... this. Adjust.
10111 (gnu_target): Adjust.
10112 * inf-child.c (inf_child_target): Adjust.
10113
10114 2014-03-13 Doug Evans <xdje42@gmail.com>
10115
10116 PR guile/16612
10117 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
10118 new eq?-hashtab.
10119
10120 2014-03-13 Doug Evans <xdje42@gmail.com>
10121
10122 * value.c (record_latest_value): Call release_value_or_incref
10123 instead of release_value.
10124
10125 2014-03-13 Pedro Alves <palves@redhat.com>
10126
10127 * procfs.c (procfs_target): Don't override to_shortname,
10128 to_longname or to_doc.
10129
10130 2014-03-13 Pedro Alves <palves@redhat.com>
10131
10132 * inf-child.c (inf_child_open, inf_child_target): Don't mention
10133 Unix in user visible strings.
10134
10135 2014-03-12 Stan Shebs <stan@codesourcery.com>
10136
10137 * gdbtypes.h: Annotate comments for Doxygen, add a page
10138 block comment with some general info.
10139
10140 2014-03-12 Pedro Alves <palves@redhat.com>
10141
10142 * infcmd.c (prepare_execution_command): New function, factored out
10143 from several execution commands.
10144 (run_command_1, continue_command, step_1, jump_command)
10145 (signal_command, until_command, advance_command, finish_command)
10146 (attach_command): Use prepare_execution_command.
10147
10148 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
10149
10150 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
10151 (MAX_BPTS): Define.
10152 (MAX_WPTS): Define.
10153 (struct arm_linux_thread_points): Removed.
10154 (struct arm_linux_process_info): New.
10155 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
10156 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
10157 (arm_linux_find_breakpoints_by_tid): Removed.
10158 (struct arch_lwp_info): New.
10159 (arm_linux_find_process_pid): New functions.
10160 (arm_linux_add_process): New functions.
10161 (arm_linux_process_info_get): New functions.
10162 (arm_linux_forget_process): New function.
10163 (arm_linux_get_debug_reg_state): New function.
10164 (struct update_registers_data): New.
10165 (update_registers_callback): New function.
10166 (arm_linux_insert_hw_breakpoint1): Updated.
10167 (arm_linux_remove_hw_breakpoint1): Updated.
10168 (arm_linux_insert_hw_breakpoint): Updated.
10169 (arm_linux_remove_hw_breakpoint): Updated.
10170 (arm_linux_insert_watchpoint): Updated.
10171 (arm_linux_remove_watchpoint): Updated.
10172 (arm_linux_new_thread): Updated.
10173 (arm_linux_prepare_to_resume): New function.
10174 (arm_linux_new_fork): New function.
10175 (_initialize_arm_linux_nat): Updated.
10176
10177 2014-03-12 Pedro Alves <palves@redhat.com>
10178
10179 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
10180
10181 2014-03-12 Tom Tromey <tromey@redhat.com>
10182
10183 * inf-child.c (return_zero): New function.
10184 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
10185 * aix-thread.c (aix_thread_inferior_created): New function.
10186 (aix_thread_attach): Remove.
10187 (init_aix_thread_ops): Don't set to_attach.
10188 (_initialize_aix_thread): Register inferior_created observer.
10189 * corelow.c (init_core_ops): Don't set to_attach or
10190 to_create_inferior.
10191 * exec.c (init_exec_ops): Don't set to_attach or
10192 to_create_inferior.
10193 * infcmd.c (run_command_1): Use find_run_target. Make direct
10194 target calls.
10195 (attach_command): Use find_attach_target. Make direct target
10196 calls.
10197 * record-btrace.c (init_record_btrace_ops): Don't set
10198 to_create_inferior.
10199 * record-full.c (record_full_can_async_p, record_full_is_async_p):
10200 Remove.
10201 (init_record_full_ops, init_record_full_core_ops): Update. Don't
10202 set to_create_inferior.
10203 * target.c (complete_target_initialization): Add assertion.
10204 (target_create_inferior): Remove.
10205 (find_default_attach, find_default_create_inferior): Remove.
10206 (find_attach_target, find_run_target): New functions.
10207 (find_default_is_async_p, find_default_can_async_p)
10208 (target_supports_non_stop, target_attach): Remove.
10209 (init_dummy_target): Don't set to_create_inferior or
10210 to_supports_non_stop.
10211 * target.h (struct target_ops) <to_attach>: Add comment. Remove
10212 TARGET_DEFAULT_FUNC.
10213 <to_create_inferior>: Add comment.
10214 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10215 TARGET_DEFAULT_RETURN.
10216 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10217 (find_attach_target, find_run_target): Declare.
10218 (target_create_inferior): Remove.
10219 (target_has_execution_1): Update comment.
10220 (target_supports_non_stop): Remove.
10221 * target-delegates.c: Rebuild.
10222
10223 2014-03-12 Pedro Alves <palves@redhat.com>
10224
10225 * inf-child.h: Update comment to not mention Unix.
10226
10227 2014-03-12 Pedro Alves <palves@redhat.com>
10228
10229 * inf-child.c: Update top comment to not mention Unix. Add
10230 generic comment describing how this target is meant to be used.
10231 (inf_child_post_attach, inf_child_post_startup_inferior)
10232 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10233 Unix in comment.
10234
10235 2014-03-12 Pedro Alves <palves@redhat.com>
10236
10237 * nto-procfs.c: Include inf-child.h.
10238 (procfs_ops): Delete global.
10239 (procfs_can_run): Delete method.
10240 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10241 target pointer instead of referencing procfs_ops.
10242 (procfs_prepare_to_store): Delete.
10243 (init_procfs_ops): Delete function.
10244 (procfs_target): New function, based on init_procfs_ops, but
10245 inherit inf_child_target.
10246 (_initialize_procfs): Use procfs_target.
10247
10248 2014-03-12 Pedro Alves <palves@redhat.com>
10249
10250 * windows-nat.c: Include inf-child.h.
10251 (windows_ops): Delete global.
10252 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10253 methods.
10254 (init_windows_ops): Delete function.
10255 (windows_target): New function, based on init_windows_ops, but
10256 inherit inf_child_target.
10257 (_initialize_windows_nat): Use windows_target. Install x86
10258 specific target methods here.
10259
10260 2014-03-10 Doug Evans <xdje42@gmail.com>
10261
10262 * guile/guile.c (call_initialize_gdb_module): New function.
10263 (initialize_guile): Replace call to scm_init_guile with call to
10264 scm_with_guile.
10265
10266 2014-03-10 Joel Brobecker <brobecker@adacore.com>
10267
10268 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10269 in call to TYPE_CODE macro.
10270
10271 2014-03-10 Jerome Guitton <guitton@adacore.com>
10272
10273 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10274 Resolve tagged types to full view.
10275
10276 2014-03-10 Hui Zhu <hui@codesourcery.com>
10277
10278 * target.h (target_insert_breakpoint): Remove "hardware" from its
10279 comments.
10280
10281 2014-03-07 Doug Evans <dje@google.com>
10282
10283 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10284
10285 2014-03-07 Doug Evans <dje@google.com>
10286
10287 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10288 Remove unused local comp_dir_attr. Assert exactly one of
10289 stub_comp_unit_die, stub_comp_dir is non-NULL.
10290
10291 2014-03-07 Joel Brobecker <brobecker@adacore.com>
10292
10293 * target.h (complete_target_initialization, add_target):
10294 Add comment.
10295
10296 2014-03-07 Pedro Alves <palves@redhat.com>
10297
10298 * go32-nat.c: Include inf-child.h.
10299 (go32_ops): Delete global.
10300 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10301 Delete methods.
10302 (go32_create_inferior): Push the passed in target pointer instead
10303 of referencing go32_ops.
10304 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10305 (go32_target): New function, based on init_go32_ops, but inherit
10306 inf_child_target.
10307 (_initialize_go32_nat): Use go32_target. Move parts of
10308 init_go32_ops here.
10309
10310 2014-03-06 Joel Brobecker <brobecker@adacore.com>
10311
10312 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10313 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10314 SYMBOL_VALUE_ADDRESS.
10315 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10316
10317 2014-03-06 Yao Qi <yao@codesourcery.com>
10318
10319 * breakpoint.c (get_tracepoint_by_number): Remove argument
10320 optional_p. All callers updated. Adjust comments. Update
10321 output message.
10322 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10323
10324 2014-03-06 Yao Qi <yao@codesourcery.com>
10325
10326 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10327 early if get_number returns zero. Use 'p' instead of 'args'.
10328
10329 2014-03-06 Yao Qi <yao@codesourcery.com>
10330
10331 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10332 message.
10333
10334 2014-03-06 Yao Qi <yao@codesourcery.com>
10335
10336 PR breakpoints/16508
10337 * tracepoint.c (check_trace_running): New function.
10338 (trace_find_command): Move code to check_trace_running and
10339 call check_trace_running.
10340 (trace_find_pc_command): Likewise.
10341 (trace_find_tracepoint_command): Likewise.
10342 (trace_find_line_command): Likewise.
10343 (trace_find_range_command): Likewise.
10344 * tracepoint.h (check_trace_running): Likewise.
10345 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10346
10347 2014-03-06 Yao Qi <yao@codesourcery.com>
10348
10349 * target.h (struct target_ops) <to_traceframe_info>: Use
10350 TARGET_DEFAULT_NORETURN (tcomplain ()).
10351 * target-delegates.c: Regenerated.
10352
10353 2014-03-05 Pedro Alves <palves@redhat.com>
10354
10355 PR gdb/16575
10356 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10357 void. Update comment.
10358 (dcache_xfer_memory): Delete.
10359 (dcache_read_memory_partial): New, based on the read bits of
10360 dcache_xfer_memory.
10361 (dcache_update): Add status parameter. Use ULONGEST for len, and
10362 adjust. Discard cache lines if the reason for the update was
10363 error.
10364 * dcache.h (dcache_xfer_memory): Delete declaration.
10365 (dcache_read_memory_partial): New declaration.
10366 (dcache_update): Update prototype.
10367 * target.c (raw_memory_xfer_partial): Update the dcache here.
10368 (memory_xfer_partial_1): Don't handle dcache writes here.
10369
10370 2014-03-05 Mike Frysinger <vapier@gentoo.org>
10371
10372 * remote-sim.c (gdbsim_load): Add const to prog.
10373
10374 2014-03-03 Tom Tromey <tromey@redhat.com>
10375
10376 * elfread.c (probe_key): Change to bfd_data.
10377 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10378 now per-BFD, not per-objfile.
10379 * stap-probe.c (stap_probe_destroy): Update comment.
10380 (handle_stap_probe): Allocate on the per-BFD obstack.
10381
10382 2014-03-03 Tom Tromey <tromey@redhat.com>
10383
10384 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10385 * breakpoint.c (create_longjmp_master_breakpoint): Use
10386 get_probe_address.
10387 (add_location_to_breakpoint, bkpt_probe_insert_location)
10388 (bkpt_probe_remove_location): Update.
10389 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10390 * elfread.c (elf_symfile_relocate_probe): Remove.
10391 (elf_probe_fns): Update.
10392 (insert_exception_resume_breakpoint): Change type of "probe"
10393 parameter to bound_probe.
10394 (check_exception_resume): Update.
10395 * objfiles.c (objfile_relocate1): Don't relocate probes.
10396 * probe.c (bound_probe_s): New typedef.
10397 (parse_probes): Use get_probe_address. Set sal's objfile.
10398 (find_probe_by_pc): Return a bound_probe.
10399 (collect_probes): Return a VEC(bound_probe_s).
10400 (compare_probes): Update.
10401 (gen_ui_out_table_header_info): Change type of "probes"
10402 parameter. Update.
10403 (info_probes_for_ops): Update.
10404 (get_probe_address): New function.
10405 (probe_safe_evaluate_at_pc): Update.
10406 * probe.h (struct probe_ops) <get_probe_address>: New field.
10407 <set_semaphore, clear_semaphore>: Add objfile parameter.
10408 (struct probe) <objfile>: Remove field.
10409 <arch>: New field.
10410 <address>: Update comment.
10411 (struct bound_probe): New.
10412 (find_probe_by_pc): Return a bound_probe.
10413 (get_probe_address): Declare.
10414 * solib-svr4.c (struct probe_and_action) <address>: New field.
10415 (hash_probe_and_action, equal_probe_and_action): Update.
10416 (register_solib_event_probe): Add address parameter.
10417 (solib_event_probe_at): Update.
10418 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10419 get_probe_address.
10420 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10421 (stap_get_probe_address): New function.
10422 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10423 (compile_probe_arg): Update.
10424 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10425 address.
10426 (handle_stap_probe): Don't relocate the probe.
10427 (stap_relocate): Remove.
10428 (stap_gen_info_probes_table_values): Update.
10429 (stap_probe_ops): Remove stap_relocate.
10430 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10431 (debug_sym_probe_fns): Update.
10432 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10433 * symtab.c (init_sal): Use memset.
10434 * symtab.h (struct symtab_and_line) <objfile>: New field.
10435 * tracepoint.c (start_tracing, stop_tracing): Update.
10436
10437 2014-03-03 Tom Tromey <tromey@redhat.com>
10438
10439 * probe.h (parse_probes, find_probe_by_pc)
10440 (find_probes_in_objfile): Fix comments.
10441
10442 2014-03-02 Doug Evans <xdje42@gmail.com>
10443
10444 * infrun.c (handle_signal_stop): Replace test for
10445 TARGET_WAITKIND_STOPPED with an assert.
10446
10447 2014-03-02 Doug Evans <xdje42@gmail.com>
10448
10449 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10450
10451 2014-03-02 Doug Evans <xdje42@gmail.com>
10452
10453 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10454
10455 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10456
10457 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10458
10459 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10460
10461 * i386obsd-nat.c: Include "obsd-nat.h".
10462 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10463 add_target.
10464 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10465
10466 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10467
10468 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10469
10470 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10471
10472 * mips64obsd-nat.c: Include "obsd-nath".
10473 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10474 add_target
10475 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10476
10477 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10478
10479 * amd64obsd-nat.c: Include "obsd-nat,h.
10480 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10481 add_target.
10482 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10483
10484 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10485
10486 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10487 (find_overload_match): Update call to find_oload_champ.
10488 (find_oload_champ_namespace_loop): Likewise
10489
10490 2014-02-28 Mark Kettenis <kettenis@gnu.org>
10491
10492 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10493
10494 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10495 * config/sparc/obsd64.mh: New file.
10496 * sparc64obsd-nat.c: New file.
10497
10498 * obsd-nat.h: New file.
10499 * obsd-nat.c: New file.
10500 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10501 (ALLDEPFILES): Add obsd-nat.c.
10502
10503 2014-02-28 Tom Tromey <tromey@redhat.com>
10504
10505 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10506 * cli-out.h (cli_ui_out_impl): Now const.
10507 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10508 * ui-out.c (struct ui_out) <impl>: Now const.
10509 (default_ui_out_impl): Now const.
10510 (ui_out_new): Make 'impl' parameter const.
10511 * ui-out.h (ui_out_new): Update.
10512
10513 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10514
10515 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10516
10517 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10518
10519 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10520
10521 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10522
10523 Additional PR 8882 fix.
10524 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10525
10526 2014-02-27 Pedro Alves <palves@redhat.com>
10527
10528 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10529 isn't set.
10530
10531 2014-02-27 Pedro Alves <palves@redhat.com>
10532
10533 PR 12702
10534 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10535 * nat/linux-waitpid.c: Include string.h.
10536 (status_to_str): Moved here and made extern.
10537 * nat/linux-waitpid.h (status_to_str): New declaration.
10538
10539 2014-02-27 Hui Zhu <hui@codesourcery.com>
10540
10541 PR 12702
10542 * infrun.c (ptid_match): Move ...
10543 * common/ptid.c (ptid_match): ... here.
10544 * inferior.h (ptid_match): Move ...
10545 * common/ptid.h (ptid_match): ... here.
10546
10547 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10548
10549 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10550 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10551 gdb_target_obs.
10552
10553 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10554
10555 * obsd-tdep.c (obsd_auxv_parse): New function.
10556 (obsd_init_abi): Set auxv_parse.
10557
10558 * gdbarch.sh (auxv_parse): New.
10559 * gdbarch.h: Regenerated.
10560 * gdbarch.c: Regenerated.
10561 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10562
10563 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10564
10565 * guile/scm-value.c (gdbscm_history_append_x): New function.
10566 (value_functions): Add it.
10567
10568 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10569
10570 * dwarf2read.c (attr_value_as_address): New function.
10571 (dwarf2_find_base_address, read_call_site_scope): Use
10572 attr_value_as_address in place of DW_ADDR.
10573 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10574 the low and high addresses. Slight rework of the handling
10575 of the high pc being a constant form, and limit it to
10576 DWARF verson 4 or higher.
10577 (dwarf2_record_block_ranges): Likewise.
10578 (read_partial_die): Likewise.
10579 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10580
10581 2014-02-26 Tom Tromey <tromey@redhat.com>
10582
10583 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10584
10585 2014-02-26 Tom Tromey <tromey@redhat.com>
10586
10587 * elfread.c (elf_read_minimal_symbols): Return early if
10588 minimal symbols have already been read. Add "ei" parameter.
10589 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10590 * minsyms.c (prim_record_minimal_symbol_full): Update.
10591 * objfiles.h (struct objstats) <n_minsyms>: Move...
10592 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10593 * symmisc.c (print_objfile_statistics): Update.
10594
10595 2014-02-26 Tom Tromey <tromey@redhat.com>
10596
10597 * elfread.c (elf_read_minimal_symbols): New function, from
10598 elf_symfile_read.
10599 (elf_symfile_read): Call it.
10600
10601 2014-02-26 Tom Tromey <tromey@redhat.com>
10602
10603 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10604 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10605 (lookup_minimal_symbol_solib_trampoline)
10606 (lookup_minimal_symbol_by_pc_section_1)
10607 (lookup_minimal_symbol_and_objfile): Update.
10608 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10609 Don't allocate a minimal symbol if minsyms have already been read.
10610 (build_minimal_symbol_hash_tables): Update.
10611 (install_minimal_symbols): Do nothing if minsyms already read.
10612 Use the per-BFD obstack.
10613 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10614 * objfiles.c (allocate_objfile): Call
10615 terminate_minimal_symbol_table later.
10616 (have_minimal_symbols): Update.
10617 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10618 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10619 Move from struct objfile.
10620 <minsyms_read>: New field.
10621 (struct objfile) <msymbols, minimal_symbol_count,
10622 msymbol_hash, msymbol_demangled_hash>: Move.
10623 (ALL_OBJFILE_MSYMBOLS): Update.
10624 * symfile.c (read_symbols): Set minsyms_read.
10625 (reread_symbols): Update.
10626 * symmisc.c (dump_objfile, dump_msymbols): Update.
10627
10628 2014-02-26 Tom Tromey <tromey@redhat.com>
10629
10630 * minsyms.c (msymbols_sort): Remove.
10631 * minsyms.h (msymbols_sort): Remove.
10632 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10633 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10634 * elfread.c (elf_symtab_read): Don't add section offsets.
10635 * xcoffread.c (record_minimal_symbol): Don't add section offset
10636 to minimal symbol address.
10637 * somread.c (text_offset, data_offset): Remove.
10638 (som_symtab_read): Don't add section offsets to minimal symbol
10639 addresses.
10640 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10641 Don't add section offsets to minimal symbols.
10642 * coffread.c (coff_symtab_read): Don't add section offsets
10643 to minimal symbol addresses.
10644 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10645 to minimal symbol addresses.
10646 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10647 section offset to minimal symbol addresses.
10648 * mdebugread.c (parse_partial_symbols): Don't add section
10649 offset to minimal symbol addresses.
10650 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10651 offset to minimal symbol addresses.
10652
10653 2014-02-26 Tom Tromey <tromey@redhat.com>
10654
10655 * ada-lang.c (ada_main_name): Update.
10656 (ada_add_standard_exceptions): Update.
10657 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10658 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10659 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10660 * auxv.c (ld_so_xfer_auxv): Update.
10661 * avr-tdep.c (avr_scan_prologue): Update.
10662 * ax-gdb.c (gen_var_ref): Update.
10663 * blockframe.c (get_pc_function_start)
10664 (find_pc_partial_function_gnu_ifunc): Update.
10665 * breakpoint.c (create_overlay_event_breakpoint)
10666 (create_longjmp_master_breakpoint)
10667 (create_std_terminate_master_breakpoint)
10668 (create_exception_master_breakpoint): Update.
10669 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10670 * c-valprint.c (c_val_print): Update.
10671 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10672 * common/agent.c (agent_look_up_symbols): Update.
10673 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10674 * dwarf2loc.c (call_site_to_target_addr): Update.
10675 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10676 * elfread.c (elf_gnu_ifunc_record_cache)
10677 (elf_gnu_ifunc_resolve_by_got): Update.
10678 * findvar.c (default_read_var_value): Update.
10679 * frame.c (inside_main_func): Update.
10680 * frv-tdep.c (frv_frame_this_id): Update.
10681 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10682 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10683 Update.
10684 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10685 (hppa_hpux_find_dummy_bpaddr): Update.
10686 * hppa-tdep.c (hppa_symbol_address): Update.
10687 * infcmd.c (until_next_command): Update.
10688 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10689 Update.
10690 * linespec.c (minsym_found, add_minsym): Update.
10691 * linux-nat.c (get_signo): Update.
10692 * linux-thread-db.c (inferior_has_bug): Update.
10693 * m32c-tdep.c (m32c_return_value)
10694 (m32c_m16c_address_to_pointer): Update.
10695 * m32r-tdep.c (m32r_frame_this_id): Update.
10696 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10697 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10698 * maint.c (maintenance_translate_address): Update.
10699 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10700 (frob_address): New function.
10701 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10702 frob_address. Rename parameter to "pc_in".
10703 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10704 addresses.
10705 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10706 Update.
10707 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10708 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10709 * objc-lang.c (find_objc_msgsend): Update.
10710 * objfiles.c (objfile_relocate1): Update.
10711 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10712 * p-valprint.c (pascal_val_print): Update.
10713 * parse.c (write_exp_msymbol): Update.
10714 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10715 (ppc_elfv2_skip_entrypoint): Update.
10716 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10717 * printcmd.c (build_address_symbolic, msym_info)
10718 (address_info): Update.
10719 * proc-service.c (ps_pglobal_lookup): Update.
10720 * psymtab.c (find_pc_sect_psymtab_closer)
10721 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10722 Change msymbol parameter to bound_minimal_symbol.
10723 * ravenscar-thread.c (get_running_thread_id): Update.
10724 * remote.c (remote_check_symbols): Update.
10725 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10726 address.
10727 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10728 * solib-dsbt.c (lm_base): Update.
10729 * solib-frv.c (lm_base, main_got): Update.
10730 * solib-irix.c (locate_base): Update.
10731 * solib-som.c (som_solib_create_inferior_hook)
10732 (link_map_start): Update.
10733 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10734 * solib-svr4.c (elf_locate_base, enable_break): Update.
10735 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10736 (flush_ea_cache): Update.
10737 * stabsread.c (define_symbol, scan_file_globals): Update.
10738 * stack.c (find_frame_funname): Update.
10739 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10740 (debug_qf_find_pc_sect_symtab): Update.
10741 * symfile.c (simple_read_overlay_table)
10742 (simple_overlay_update): Update.
10743 * symfile.h (struct quick_symbol_functions)
10744 <find_pc_sect_symtab>: Change type of msymbol to
10745 bound_minimal_symbol.
10746 * symmisc.c (dump_msymbols): Update.
10747 * symtab.c (find_pc_sect_symtab_via_partial)
10748 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10749 (search_symbols, print_msymbol_info): Update.
10750 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10751 (MSYMBOL_VALUE_ADDRESS): Redefine.
10752 (BMSYMBOL_VALUE_ADDRESS): New macro.
10753 * tracepoint.c (scope_info): Update.
10754 * tui/tui-disasm.c (tui_find_disassembly_address)
10755 (tui_get_begin_asm_address): Update.
10756 * valops.c (find_function_in_inferior): Update.
10757 * value.c (value_static_field, value_fn_field): Update.
10758
10759 2014-02-26 Tom Tromey <tromey@redhat.com>
10760
10761 * ada-lang.c (ada_update_initial_language): Update.
10762 (ada_main_name, ada_has_this_exception_support): Update.
10763 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10764 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10765 * arm-tdep.c (arm_skip_stub): Update.
10766 * auxv.c (ld_so_xfer_auxv): Update.
10767 * avr-tdep.c (avr_scan_prologue): Update.
10768 * ax-gdb.c (gen_var_ref): Update.
10769 * breakpoint.c (struct breakpoint_objfile_data)
10770 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10771 type to bound_minimal_symbol.
10772 (create_overlay_event_breakpoint)
10773 (create_longjmp_master_breakpoint)
10774 (create_std_terminate_master_breakpoint)
10775 (create_exception_master_breakpoint): Update.
10776 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10777 * c-exp.y (classify_name): Update.
10778 * coffread.c (coff_symfile_read): Update.
10779 * common/agent.c (agent_look_up_symbols): Update.
10780 * d-lang.c (d_main_name): Update.
10781 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10782 * dec-thread.c (enable_dec_thread): Update.
10783 * dwarf2loc.c (call_site_to_target_addr): Update.
10784 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10785 * eval.c (evaluate_subexp_standard): Update.
10786 * findvar.c (struct minsym_lookup_data) <result>: Change type
10787 to bound_minimal_symbol.
10788 <objfile>: Remove.
10789 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10790 * frame.c (inside_main_func): Update.
10791 * frv-tdep.c (frv_frame_this_id): Update.
10792 * gcore.c (call_target_sbrk): Update.
10793 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10794 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10795 Update.
10796 * go-lang.c (go_main_name): Update.
10797 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10798 (hppa_hpux_find_import_stub_for_addr): Update.
10799 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10800 Update. Change return type.
10801 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10802 type.
10803 * jit.c (jit_breakpoint_re_set_internal): Update.
10804 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10805 Update.
10806 * linux-nat.c (get_signo): Update.
10807 * linux-thread-db.c (inferior_has_bug): Update
10808 * m32c-tdep.c (m32c_return_value)
10809 (m32c_m16c_address_to_pointer): Update.
10810 * m32r-tdep.c (m32r_frame_this_id): Update.
10811 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10812 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10813 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10814 lookup_minimal_symbol. Change return type.
10815 (lookup_minimal_symbol): Remove.
10816 (lookup_bound_minimal_symbol): Update.
10817 (lookup_minimal_symbol_text): Change return type.
10818 (lookup_minimal_symbol_solib_trampoline): Change return type.
10819 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10820 (lookup_minimal_symbol_solib_trampoline): Change return type.
10821 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10822 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10823 (value_nsstring, find_imps): Update.
10824 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10825 * p-lang.c (pascal_main_name): Update.
10826 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10827 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10828 * proc-service.c (ps_pglobal_lookup): Update.
10829 * ravenscar-thread.c (get_running_thread_msymbol): Change
10830 return type.
10831 (has_ravenscar_runtime, get_running_thread_id): Update.
10832 * remote.c (remote_check_symbols): Update.
10833 * sol-thread.c (ps_pglobal_lookup): Update.
10834 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10835 * solib-dsbt.c (lm_base): Update.
10836 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10837 Update.
10838 * solib-irix.c (locate_base): Update.
10839 * solib-som.c (som_solib_create_inferior_hook)
10840 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10841 Update.
10842 * solib-spu.c (spu_enable_break): Update.
10843 * solib-svr4.c (elf_locate_base, enable_break): Update.
10844 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10845 (flush_ea_cache): Update.
10846 * stabsread.c (define_symbol): Update.
10847 * symfile.c (simple_read_overlay_table): Update.
10848 * symtab.c (find_pc_sect_line): Update.
10849 * tracepoint.c (scope_info): Update.
10850 * tui-disasm.c (tui_get_begin_asm_address): Update.
10851 * value.c (value_static_field): Update.
10852
10853 2014-02-26 Tom Tromey <tromey@redhat.com>
10854
10855 * minsyms.c (prim_record_minimal_symbol_full): Use
10856 SET_MSYMBOL_VALUE_ADDRESS.
10857 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10858 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10859 SET_MSYMBOL_VALUE_ADDRESS.
10860 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10861 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10862
10863 2014-02-26 Tom Tromey <tromey@redhat.com>
10864
10865 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10866 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10867 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10868 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10869 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10870 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10871 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10872 * ada-lang.c (ada_main_name): Update.
10873 (ada_lookup_simple_minsym): Update.
10874 (ada_make_symbol_completion_list): Update.
10875 (ada_add_standard_exceptions): Update.
10876 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10877 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10878 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10879 * arm-tdep.c (skip_prologue_function): Update.
10880 (arm_skip_stack_protector, arm_skip_stub): Update.
10881 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10882 (arm_wince_skip_main_prologue): Update.
10883 * auxv.c (ld_so_xfer_auxv): Update.
10884 * avr-tdep.c (avr_scan_prologue): Update.
10885 * ax-gdb.c (gen_var_ref): Update.
10886 * block.c (call_site_for_pc): Update.
10887 * blockframe.c (get_pc_function_start): Update.
10888 (find_pc_partial_function_gnu_ifunc): Update.
10889 * breakpoint.c (create_overlay_event_breakpoint): Update.
10890 (create_longjmp_master_breakpoint): Update.
10891 (create_std_terminate_master_breakpoint): Update.
10892 (create_exception_master_breakpoint): Update.
10893 (resolve_sal_pc): Update.
10894 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10895 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10896 Update.
10897 * c-valprint.c (c_val_print): Update.
10898 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10899 * coffread.c (coff_symfile_read): Update.
10900 * common/agent.c (agent_look_up_symbols): Update.
10901 * dbxread.c (find_stab_function_addr): Update.
10902 (end_psymtab): Update.
10903 * dwarf2loc.c (call_site_to_target_addr): Update.
10904 (func_verify_no_selftailcall): Update.
10905 (tailcall_dump): Update.
10906 (call_site_find_chain_1): Update.
10907 (dwarf_expr_reg_to_entry_parameter): Update.
10908 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10909 (elf_gnu_ifunc_resolve_by_got): Update.
10910 * f-valprint.c (info_common_command): Update.
10911 * findvar.c (read_var_value): Update.
10912 * frame.c (get_prev_frame_1): Update.
10913 (inside_main_func): Update.
10914 * frv-tdep.c (frv_skip_main_prologue): Update.
10915 (frv_frame_this_id): Update.
10916 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10917 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10918 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10919 (gnuv3_skip_trampoline): Update.
10920 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10921 (hppa64_hpux_in_solib_call_trampoline): Update.
10922 (hppa_hpux_skip_trampoline_code): Update.
10923 (hppa64_hpux_search_dummy_call_sequence): Update.
10924 (hppa_hpux_find_import_stub_for_addr): Update.
10925 (hppa_hpux_find_dummy_bpaddr): Update.
10926 * hppa-tdep.c (hppa_symbol_address)
10927 (hppa_lookup_stub_minimal_symbol): Update.
10928 * i386-tdep.c (i386_skip_main_prologue): Update.
10929 (i386_pe_skip_trampoline_code): Update.
10930 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10931 * infcall.c (get_function_name): Update.
10932 * infcmd.c (until_next_command): Update.
10933 * jit.c (jit_breakpoint_re_set_internal): Update.
10934 (jit_inferior_init): Update.
10935 * linespec.c (minsym_found): Update.
10936 (add_minsym): Update.
10937 * linux-fork.c (info_checkpoints_command): Update.
10938 * linux-nat.c (get_signo): Update.
10939 * linux-thread-db.c (inferior_has_bug): Update.
10940 * m32c-tdep.c (m32c_return_value): Update.
10941 (m32c_m16c_address_to_pointer): Update.
10942 (m32c_m16c_pointer_to_address): Update.
10943 * m32r-tdep.c (m32r_frame_this_id): Update.
10944 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10945 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10946 * maint.c (maintenance_translate_address): Update.
10947 * minsyms.c (add_minsym_to_hash_table): Update.
10948 (add_minsym_to_demangled_hash_table): Update.
10949 (msymbol_objfile): Update.
10950 (lookup_minimal_symbol): Update.
10951 (iterate_over_minimal_symbols): Update.
10952 (lookup_minimal_symbol_text): Update.
10953 (lookup_minimal_symbol_by_pc_name): Update.
10954 (lookup_minimal_symbol_solib_trampoline): Update.
10955 (lookup_minimal_symbol_by_pc_section_1): Update.
10956 (lookup_minimal_symbol_and_objfile): Update.
10957 (prim_record_minimal_symbol_full): Update.
10958 (compare_minimal_symbols): Update.
10959 (compact_minimal_symbols): Update.
10960 (build_minimal_symbol_hash_tables): Update.
10961 (install_minimal_symbols): Update.
10962 (terminate_minimal_symbol_table): Update.
10963 (find_solib_trampoline_target): Update.
10964 (minimal_symbol_upper_bound): Update.
10965 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10966 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10967 (mips_skip_pic_trampoline_code): Update.
10968 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10969 * objc-lang.c (selectors_info): Update.
10970 (classes_info): Update.
10971 (find_methods): Update.
10972 (find_imps): Update.
10973 (find_objc_msgsend): Update.
10974 * objfiles.c (objfile_relocate1): Update.
10975 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10976 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10977 * p-valprint.c (pascal_val_print): Update.
10978 * parse.c (write_exp_msymbol): Update.
10979 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10980 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10981 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10982 * printcmd.c (build_address_symbolic): Update.
10983 (sym_info): Update.
10984 (address_info): Update.
10985 * proc-service.c (ps_pglobal_lookup): Update.
10986 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10987 (find_pc_sect_psymtab): Update.
10988 * python/py-framefilter.c (py_print_frame): Update.
10989 * ravenscar-thread.c (get_running_thread_id): Update.
10990 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10991 Update.
10992 * remote.c (remote_check_symbols): Update.
10993 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10994 (rs6000_skip_trampoline_code): Update.
10995 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10996 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10997 * solib-dsbt.c (lm_base): Update.
10998 * solib-frv.c (lm_base): Update.
10999 (main_got): Update.
11000 * solib-irix.c (locate_base): Update.
11001 * solib-som.c (som_solib_create_inferior_hook): Update.
11002 (som_solib_desire_dynamic_linker_symbols): Update.
11003 (link_map_start): Update.
11004 * solib-spu.c (spu_enable_break): Update.
11005 (ocl_enable_break): Update.
11006 * solib-svr4.c (elf_locate_base): Update.
11007 (enable_break): Update.
11008 * spu-tdep.c (spu_get_overlay_table): Update.
11009 (spu_catch_start): Update.
11010 (flush_ea_cache): Update.
11011 * stabsread.c (define_symbol): Update.
11012 (scan_file_globals): Update.
11013 * stack.c (find_frame_funname): Update.
11014 (frame_info): Update.
11015 * symfile.c (simple_read_overlay_table): Update.
11016 (simple_overlay_update): Update.
11017 * symmisc.c (dump_msymbols): Update.
11018 * symtab.c (fixup_section): Update.
11019 (find_pc_sect_line): Update.
11020 (skip_prologue_sal): Update.
11021 (search_symbols): Update.
11022 (print_msymbol_info): Update.
11023 (rbreak_command): Update.
11024 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
11025 (completion_list_objc_symbol): Update.
11026 (default_make_symbol_completion_list_break_on): Update.
11027 * tracepoint.c (scope_info): Update.
11028 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
11029 (tui_get_begin_asm_address): Update.
11030 * valops.c (find_function_in_inferior): Update.
11031 * value.c (value_static_field): Update.
11032 (value_fn_field): Update.
11033
11034 2014-02-26 Tom Tromey <tromey@redhat.com>
11035
11036 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
11037 bound minimal symbols. Move code that knows about minsym
11038 table layout...
11039 * minsyms.c (minimal_symbol_upper_bound): ... here. New
11040 function.
11041 * minsyms.h (minimal_symbol_upper_bound): Declare.
11042 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
11043 minimal_symbol_upper_bound.
11044
11045 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11046
11047 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
11048 Use the type's name if its basic type does not have a tag.
11049
11050 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11051
11052 * dwarf2read.c (read_subrange_type): Add comment.
11053
11054 2014-02-27 Joel Brobecker <brobecker@adacore.com>
11055
11056 * dwarf2read.c (update_enumeration_type_from_children): New
11057 function, mostly extracted from process_structure_scope.
11058 (read_enumeration_type): Call update_enumeration_type_from_children.
11059 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
11060 and flag_flag_enum fields.
11061
11062 2014-02-26 Pedro Alves <palves@redhat.com>
11063
11064 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
11065 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
11066 to_xfer_partial method.
11067
11068 2014-02-26 Pedro Alves <palves@redhat.com>
11069
11070 * target.c (complete_target_initialization): Don't install
11071 default_xfer_partial as to_xfer_partial hook.
11072 (nomemory): Delete.
11073 (update_current_target): Don't INHERIT nor de_fault
11074 deprecated_xfer_memory. Delete de_fault macro.
11075 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
11076 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
11077 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
11078 field.
11079
11080 2014-02-26 Pedro Alves <palves@redhat.com>
11081
11082 * go32-nat.c (my_write_child): New function.
11083 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
11084 (go32_xfer_partial): New function.
11085 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
11086 Instead install a to_xfer_partial hook.
11087
11088 2014-02-26 Pedro Alves <palves@redhat.com>
11089
11090 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
11091 to_xfer_partial helper. Rewrite.
11092 (procfs_xfer_partial): New function.
11093 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
11094 Install a to_xfer_partial hook.
11095
11096 2014-02-26 Pedro Alves <palves@redhat.com>
11097
11098 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
11099 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
11100 (m32r_xfer_partial): New function.
11101 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
11102 Install a to_xfer_partial hook.
11103
11104 2014-02-26 Pedro Alves <palves@redhat.com>
11105
11106 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
11107 helper.
11108 (mips_xfer_partial): New function.
11109 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
11110 hook. Install a to_xfer_partial hook.
11111
11112 2014-02-26 Joel Brobecker <brobecker@adacore.com>
11113
11114 * gdbtypes.h (create_array_type_with_stride): Add declaration.
11115 * gdbtypes.c (create_array_type_with_stride): New function,
11116 renaming create_array_type, but with an added parameter
11117 called "bit_stride".
11118 (create_array_type): Re-implement using
11119 create_array_type_with_stride.
11120 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
11121 and DW_AT_bit_stride attributes.
11122
11123 2014-02-26 Pedro Alves <palves@redhat.com>
11124
11125 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
11126 task-specific breakpoints.
11127
11128 2014-02-25 Pedro Alves <palves@redhat.com>
11129
11130 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
11131 handling of object == TARGET_OBJECT_UNWIND_TABLE.
11132
11133 2014-02-25 Stan Shebs <stan@codesourcery.com>
11134
11135 * defs.h: Annotate comments for Doxygen.
11136
11137 2014-02-25 Tom Tromey <tromey@redhat.com>
11138
11139 * target.h (target_ignore): Don't declare.
11140 * target.c (target_ignore): Remove.
11141
11142 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11143
11144 PR gdb/16626
11145 * auto-load.c (auto_load_objfile_script_1): Change filename to
11146 debugfile.
11147
11148 2014-02-25 Joel Brobecker <brobecker@adacore.com>
11149
11150 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
11151 documentation. Adjust prototype to match the target_ops
11152 to_xfer_partial method. Adjust implementation accordingly.
11153
11154 2014-02-25 Hui Zhu <hui@codesourcery.com>
11155
11156 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
11157 to_traceframe_info.
11158
11159 2014-02-25 Kevin Buettner <kevinb@redhat.com>
11160
11161 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
11162 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
11163 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
11164 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
11165 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
11166 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
11167 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
11168 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
11169 New constants.
11170 (rl78_register_type): Use a data pointer type for SP and
11171 new pseudo registers mentioned above. Use a 16 bit integer
11172 type for all other register pairs.
11173 (rl78_register_name, rl78_g10_register_name): Update for
11174 new pseudo registers.
11175 (rl78_pseudo_register_read): Likewise.
11176 (rl78_pseudo_register_write): Likewise.
11177 (rl78_dwarf_reg_to_regnum): Return register numbers representing
11178 to the newly added pseudo registers.
11179
11180 2014-02-24 Doug Evans <dje@google.com>
11181
11182 * value.c (record_latest_value): Fix comment.
11183 * printcmd.c (print_command_1): Remove code to handle -1 return from
11184 record_latest_value.
11185
11186 2014-02-24 Pedro Alves <palves@redhat.com>
11187
11188 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
11189 deprecated_xfer_memory hook.
11190 (procfs_xfer_partial): Call procfs_xfer_memory instead
11191 of the deprecated_xfer_memory target hook.
11192 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11193 helper.
11194
11195 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
11196
11197 * windows-nat.c (windows_xfer_shared_libraries): Return
11198 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11199 requested object is TARGET_OBJECT_LIBRARIES.
11200
11201 2014-02-24 Yao Qi <yao@codesourcery.com>
11202
11203 * target.h (enum target_xfer_status)
11204 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11205 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11206 explicitly. New.
11207 * corefile.c (memory_error_message): User updated.
11208 * exec.c (section_table_read_available_memory): Likewise.
11209 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11210 * target.c (target_xfer_status_to_string): Likewise.
11211 (raw_memory_xfer_partial): Likewise.
11212 (memory_xfer_partial_1, target_xfer_partial): Likewise.
11213 * valops.c (read_value_memory): Likewise.
11214 * exec.h: Update comments.
11215
11216 2014-02-24 Yao Qi <yao@codesourcery.com>
11217
11218 * target.c (target_xfer_status_to_string): Rename argument err
11219 to status.
11220 * target.h (target_xfer_status_to_string): Update declaration.
11221 Replace target_xfer_error_to_string with
11222 target_xfer_status_to_string in comment.
11223
11224 2014-02-24 Yao Qi <yao@codesourcery.com>
11225
11226 * mips-linux-nat.c (super_close): Update its type.
11227 (mips_linux_close): Pass 'self' to super_close.
11228
11229 2014-02-24 Yao Qi <yao@codesourcery.com>
11230
11231 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11232 * corefile.c (read_memory): Adjusted.
11233 * target.c (target_write_with_progress): Adjusted.
11234
11235 2014-02-23 Yao Qi <yao@codesourcery.com>
11236
11237 Revert two patches:
11238
11239 2013-10-25 Yao Qi <yao@codesourcery.com>
11240
11241 * remote.c (remote_traceframe_info): Return early if
11242 traceframe is not selected.
11243
11244 2013-07-19 Yao Qi <yao@codesourcery.com>
11245
11246 * target.c (update_current_target): Change the default action
11247 of 'to_traceframe_info' from tcomplain to return_zero.
11248 * target.h (struct target_ops) <to_traceframe_info>: Add more
11249 comments.
11250
11251 2014-02-23 Yao Qi <yao@codesourcery.com>
11252
11253 * valops.c (read_value_memory): Rewrite it. Call
11254 target_xfer_partial in a loop.
11255 * exec.h (section_table_available_memory): Remove declaration.
11256 Move comments to ...
11257 * exec.c (section_table_available_memory): ... here. Make it
11258 static.
11259
11260 2014-02-23 Yao Qi <yao@codesourcery.com>
11261
11262 * exec.c (section_table_read_available_memory): New function.
11263 * exec.h (section_table_read_available_memory): Declare.
11264 * ctf.c (ctf_xfer_partial): Call
11265 section_table_read_available_memory.
11266 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11267
11268 2014-02-23 Yao Qi <yao@codesourcery.com>
11269
11270 * ctf.c (ctf_xfer_partial): Move code to ...
11271 * exec.c (exec_read_partial_read_only): ... it. New function.
11272 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11273 * tracefile.c: Include "exec.h".
11274 * exec.h (exec_read_partial_read_only): Declare.
11275
11276 2014-02-23 Yao Qi <yao@codesourcery.com>
11277
11278 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11279 (tfile_has_memory): Remove.
11280 (init_tfile_ops): Don't set fields to_has_all_memory and
11281 to_has_memory of tfile_ops.
11282 * tracefile.c (tracefile_has_all_memory): New function.
11283 (tracefile_has_memory): New function.
11284 (init_tracefile_ops): Initialize fields to_has_all_memory and
11285 to_has_memory of 'ops'.
11286
11287 2014-02-23 Yao Qi <yao@codesourcery.com>
11288
11289 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11290 (ctf_thread_alive, ctf_get_trace_status): Remove.
11291 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11292 init_tracefile_ops.
11293 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11294 (tfile_has_stack, tfile_has_registers): Remove.
11295 (tfile_thread_alive): Remove.
11296 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11297 init_tracefile_ops.
11298 * tracefile.c (tracefile_has_stack): New function.
11299 (tracefile_has_registers): New function.
11300 (tracefile_thread_alive): New function.
11301 (tracefile_get_trace_status): New function.
11302 (init_tracefile_ops): New function.
11303 * tracefile.h (init_tracefile_ops): Declare.
11304
11305 2014-02-23 Yao Qi <yao@codesourcery.com>
11306
11307 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11308 (O_LARGEFILE): Likewise.
11309 (tfile_ops): Likewise.
11310 (TRACE_HEADER_SIZE): Likewise.
11311 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11312 (cur_data_size): Likewise.
11313 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11314 (tfile_close, tfile_files_info): Likewise.
11315 (tfile_get_trace_status): Likewise.
11316 (tfile_get_tracepoint_status): Likewise.
11317 (tfile_get_traceframe_address): Likewise.
11318 (tfile_trace_find, match_blocktype): Likewise.
11319 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11320 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11321 (tfile_get_trace_state_variable_value): Likewise.
11322 (tfile_has_all_memory, tfile_has_memory): Likewise.
11323 (tfile_has_stack, tfile_has_registers): Likewise.
11324 (tfile_thread_alive, build_traceframe_info): Likewise.
11325 (tfile_traceframe_info, init_tfile_ops): Likewise.
11326 (_initialize_tracepoint): Don't call init_tfile_ops
11327 and add_target_with_completer.
11328 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11329 exec.h, completer.h and filenames.h.
11330 (_initialize_tracefile_tfile): New function.
11331
11332 2014-02-23 Yao Qi <yao@codesourcery.com>
11333
11334 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11335 tracefile-tfile.o.
11336 (HFILES_NO_SRCDIR): Add tracefile.h.
11337 * ctf.c: Include "tracefile.h".
11338 * tracefile.h: New file.
11339 * tracefile.c: New file
11340 * tracefile-tfile.c: New file.
11341 * tracepoint.c: Include "tracefile.h".
11342 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11343 (stop_reason_names): Add const.
11344 (trace_file_writer_xfree): Move it to tracefile.c.
11345 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11346 (trace_save_ctf): Likewise.
11347 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11348 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11349 (tfile_write_header, tfile_write_regblock_type): Likewise.
11350 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11351 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11352 (tfile_write_raw_data, tfile_end): Likewise.
11353 (tfile_trace_file_writer_new): Likewise.
11354 (free_uploaded_tp): Make it extern.
11355 (free_uploaded_tsv): Make it extern.
11356 (_initialize_tracepoint): Move code to register command 'tsave'
11357 to tracefile.c.
11358 * tracepoint.h (stop_reason_names): Declare.
11359 (struct trace_frame_write_ops): Move it to tracefile.h.
11360 (struct trace_file_write_ops): Likewise.
11361 (struct trace_file_writer): Likewise.
11362 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11363
11364 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11365
11366 PR gdb/16594
11367 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11368 process name.
11369 (get_cores_used_by_process): New parameter num_cores, use it.
11370 (linux_xfer_osdata_processes): Pass num_cores to it.
11371 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11372 process name.
11373
11374 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11375
11376 * target.c (memory_xfer_partial): Fix length arg in call to
11377 breakpoint_xfer_memory.
11378
11379 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11380
11381 PR tdep/16397
11382 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11383 number comes after the + or - signs. Adjust length of register
11384 name to be extracted.
11385
11386 2014-02-20 Tom Tromey <tromey@redhat.com>
11387
11388 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11389 (ada_varobj_ops): Mark "extern".
11390
11391 2014-02-20 Tom Tromey <tromey@redhat.com>
11392
11393 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11394
11395 2014-02-20 Doug Evans <xdje42@gmail.com>
11396
11397 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11398 All callers updated.
11399 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11400 All callers updated.
11401 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11402 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11403
11404 2014-02-20 lin zuojian <manjian2006@gmail.com>
11405 Joel Brobecker <brobecker@adacore.com>
11406 Doug Evans <xdje42@gmail.com>
11407
11408 PR symtab/16581
11409 * dwarf2read.c (struct die_info): New member in_process.
11410 (reset_die_in_process): New function.
11411 (process_die): Set it at the start, reset when returning.
11412 (inherit_abstract_dies): Only call process_die if origin_child_die
11413 not already being processed.
11414
11415 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11416
11417 * windows-nat.c (handle_unload_dll): Add function documentation.
11418 (do_initial_windows_stuff): Add comment explaining why we wait
11419 until after inferior initialization has finished before
11420 processing all DLLs.
11421
11422 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11423
11424 * windows-nat.c (get_module_name): Delete.
11425 (windows_get_exec_module_filename): New function, mostly
11426 inspired from get_module_name.
11427 (windows_pid_to_exec_file): Replace call to get_module_name
11428 by call to windows_get_exec_module_filename.
11429
11430 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11431
11432 * windows-nat.c (handle_load_dll): Rewrite this function's
11433 introductory comment. Remove code using get_module_name
11434 to get the DLL's name.
11435
11436 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11437
11438 * windows-nat.c (get_windows_debug_event): Ignore
11439 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11440 if windows_initialization_done == 0.
11441 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11442 Adjust implementation to always load all DLLs.
11443 (do_initial_windows_stuff): Replace call to
11444 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11445
11446 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11447
11448 * windows-nat.c (_initialize_windows_nat): Deprecate the
11449 "dll-symbols" command. Turn the "add-shared-symbol-files"
11450 and "assf" aliases into commands, and deprecate them as well.
11451 * NEWS: Add entry explaining that "dll-symbols" and its two
11452 aliases are now deprecated.
11453
11454 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11455
11456 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11457 new-line in debug string. Remove trailing spaces.
11458
11459 2014-02-19 Stan Shebs <stan@codesourcery.com>
11460
11461 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11462
11463 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11464
11465 * NEWS: Add entry for the new feature
11466 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11467 and class values.
11468
11469 2014-02-19 Stan Shebs <stan@codesourcery.com>
11470
11471 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11472
11473 2014-02-19 Pedro Alves <palves@redhat.com>
11474
11475 * common/ptid.h (struct ptid): Mention that process_stratum
11476 targets should prefer ptid.lwp.
11477
11478 2014-02-19 Pedro Alves <palves@redhat.com>
11479
11480 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11481 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11482 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11483 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11484 store remote thread ids rather than ptid.tid.
11485 (_initialize_remote): Adjust.
11486
11487 2014-02-19 Tom Tromey <tromey@redhat.com>
11488
11489 * target.c (target_get_unwinder): Rewrite.
11490 (target_get_tailcall_unwinder): Rewrite.
11491 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11492 (record_btrace_to_get_tailcall_unwinder): New function.
11493 (init_record_btrace_ops): Update.
11494 * target.h (struct target_ops) <to_get_unwinder,
11495 to_get_tailcall_unwinder>: Now function pointers. Use
11496 TARGET_DEFAULT_RETURN.
11497
11498 2014-02-19 Tom Tromey <tromey@redhat.com>
11499
11500 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11501 argument.
11502 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11503
11504 2014-02-19 Tom Tromey <tromey@redhat.com>
11505
11506 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11507 directly.
11508 * target-delegates.c: Rebuild.
11509 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11510 TARGET_DEFAULT_FUNC.
11511 * target.c (default_target_decr_pc_after_break): Rename from
11512 forward_target_decr_pc_after_break. Simplify.
11513 (target_decr_pc_after_break): Rely on delegation.
11514
11515 2014-02-19 Tom Tromey <tromey@redhat.com>
11516
11517 * target.c (update_current_target): Do not INHERIT to_doc or
11518 to_magic. Do not de_fault to_open or to_close.
11519
11520 2014-02-19 Tom Tromey <tromey@redhat.com>
11521
11522 * gcore.h (objfile_find_memory_regions): Declare.
11523 * gcore.c (objfile_find_memory_regions): No longer static. Add
11524 "self" argument.
11525 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11526 * exec.c: Include gcore.h.
11527 (exec_set_find_memory_regions): Remove.
11528 (exec_find_memory_regions): Remove.
11529 (exec_do_find_memory_regions): Remove.
11530 (init_exec_ops): Update.
11531 * defs.h (exec_set_find_memory_regions): Remove.
11532
11533 2014-02-19 Tom Tromey <tromey@redhat.com>
11534
11535 * target-delegates.c: Rebuild.
11536 * target.h (struct target_ops) <to_extra_thread_info,
11537 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11538 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11539 not 0, in TARGET_DEFAULT_RETURN.
11540
11541 2014-02-19 Tom Tromey <tromey@redhat.com>
11542
11543 * target.c (complete_target_initialization): Remove casts. Use
11544 return_zero_has_execution.
11545 (return_zero): Add "ignore" argument.
11546 (return_zero_has_execution): New function.
11547 (init_dummy_target): Remove casts. Use
11548 return_zero_has_execution.
11549
11550 2014-02-19 Tom Tromey <tromey@redhat.com>
11551
11552 * target.c (update_current_target): Update comments. Do not
11553 INHERIT to_stratum.
11554
11555 2014-02-19 Tom Tromey <tromey@redhat.com>
11556
11557 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11558 needed.
11559 * corelow.c (core_read_description): Delegate when needed.
11560 * remote.c (remote_read_description): Delegate when needed.
11561 * target-delegates.c: Rebuild.
11562 * target.c (target_read_description): Rewrite.
11563 * target.h (struct target_ops) <to_read_description>: Update
11564 comment. Use TARGET_DEFAULT_RETURN.
11565
11566 2014-02-19 Tom Tromey <tromey@redhat.com>
11567
11568 * target-delegates.c: Rebuild.
11569 * target.c (update_current_target): Don't inherit or default
11570 to_can_run.
11571 (find_default_run_target): Check against delegate_can_run.
11572 * target.h (struct target_ops) <to_can_run>: Use
11573 TARGET_DEFAULT_RETURN.
11574
11575 2014-02-19 Tom Tromey <tromey@redhat.com>
11576
11577 * target-delegates.c: Rebuild.
11578 * target.c (target_disconnect): Unconditionally delegate.
11579 * target.h (struct target_ops) <to_disconnect>: Use
11580 TARGET_DEFAULT_NORETURN.
11581
11582 2014-02-19 Tom Tromey <tromey@redhat.com>
11583
11584 * record.c (record_stop): Unconditionally delegate.
11585 * target-delegates.c: Rebuild.
11586 * target.c (target_stop_recording): Unconditionally delegate.
11587 * target.h (struct target_ops) <to_stop_recording>: Use
11588 TARGET_DEFAULT_IGNORE.
11589
11590 2014-02-19 Tom Tromey <tromey@redhat.com>
11591
11592 * target-delegates.c: Rebuild.
11593 * target.c (target_enable_btrace): Unconditionally delegate.
11594 * target.h (struct target_ops) <to_enable_btrace>: Use
11595 TARGET_DEFAULT_NORETURN.
11596
11597 2014-02-19 Tom Tromey <tromey@redhat.com>
11598
11599 * target-delegates.c: Rebuild.
11600 * target.c (target_read_btrace): Unconditionally delegate.
11601 * target.h (struct target_ops) <to_read_btrace>: Use
11602 TARGET_DEFAULT_NORETURN.
11603
11604 2014-02-19 Tom Tromey <tromey@redhat.com>
11605
11606 * target-delegates.c: Rebuild.
11607 * target.c (target_teardown_btrace): Unconditionally delegate.
11608 * target.h (struct target_ops) <to_teardown_btrace>: Use
11609 TARGET_DEFAULT_NORETURN.
11610
11611 2014-02-19 Tom Tromey <tromey@redhat.com>
11612
11613 * target-delegates.c: Rebuild.
11614 * target.c (target_disable_btrace): Unconditionally delegate.
11615 * target.h (struct target_ops) <to_disable_btrace>: Use
11616 TARGET_DEFAULT_NORETURN.
11617
11618 2014-02-19 Tom Tromey <tromey@redhat.com>
11619
11620 * target-delegates.c: Rebuild.
11621 * target.c (default_search_memory): New function.
11622 (simple_search_memory): Update comment.
11623 (target_search_memory): Unconditionally delegate.
11624 * target.h (struct target_ops) <to_search_memory>: Use
11625 TARGET_DEFAULT_FUNC.
11626
11627 2014-02-19 Tom Tromey <tromey@redhat.com>
11628
11629 * auxv.c (default_auxv_parse): No longer static.
11630 (target_auxv_parse): Unconditionally delegate.
11631 * auxv.h (default_auxv_parse): Declare.
11632 * target-delegates.c: Rebuild.
11633 * target.c: Include auxv.h.
11634 * target.h (struct target_ops) <to_auxv_parse>: Use
11635 TARGET_DEFAULT_FUNC.
11636
11637 2014-02-19 Tom Tromey <tromey@redhat.com>
11638
11639 * target-delegates.c: Rebuild.
11640 * target.c (target_memory_map): Unconditionally delegate.
11641 * target.h (struct target_ops) <to_memory_map>: Use
11642 TARGET_DEFAULT_RETURN.
11643
11644 2014-02-19 Tom Tromey <tromey@redhat.com>
11645
11646 * target-delegates.c: Rebuild.
11647 * target.c (target_thread_alive): Unconditionally delegate.
11648 * target.h (struct target_ops) <to_thread_alive>: Use
11649 TARGET_DEFAULT_RETURN.
11650
11651 2014-02-19 Tom Tromey <tromey@redhat.com>
11652
11653 * target-delegates.c: Rebuild.
11654 * target.c (target_save_record): Unconditionally delegate.
11655 * target.h (struct target_ops) <to_save_record>: Use
11656 TARGET_DEFAULT_NORETURN.
11657
11658 2014-02-19 Tom Tromey <tromey@redhat.com>
11659
11660 * target-delegates.c: Rebuild.
11661 * target.c (target_delete_record): Unconditionally delegate.
11662 * target.h (struct target_ops) <to_delete_record>: Use
11663 TARGET_DEFAULT_NORETURN.
11664
11665 2014-02-19 Tom Tromey <tromey@redhat.com>
11666
11667 * target-delegates.c: Rebuild.
11668 * target.c (target_record_is_replaying): Unconditionally
11669 delegate.
11670 * target.h (struct target_ops) <to_record_is_replaying>: Use
11671 TARGET_DEFAULT_RETURN.
11672
11673 2014-02-19 Tom Tromey <tromey@redhat.com>
11674
11675 * target-delegates.c: Rebuild.
11676 * target.c (target_goto_record_begin): Unconditionally delegate.
11677 * target.h (struct target_ops) <to_goto_record_begin>: Use
11678 TARGET_DEFAULT_NORETURN.
11679
11680 2014-02-19 Tom Tromey <tromey@redhat.com>
11681
11682 * target-delegates.c: Rebuild.
11683 * target.c (target_goto_record_end): Unconditionally delegate.
11684 * target.h (struct target_ops) <to_goto_record_end>: Use
11685 TARGET_DEFAULT_NORETURN.
11686
11687 2014-02-19 Tom Tromey <tromey@redhat.com>
11688
11689 * target-delegates.c: Rebuild.
11690 * target.c (target_goto_record): Unconditionally delegate.
11691 * target.h (struct target_ops) <to_goto_record>: Use
11692 TARGET_DEFAULT_NORETURN.
11693
11694 2014-02-19 Tom Tromey <tromey@redhat.com>
11695
11696 * target-delegates.c: Rebuild.
11697 * target.c (target_insn_history): Unconditionally delegate.
11698 * target.h (struct target_ops) <to_insn_history>: Use
11699 TARGET_DEFAULT_NORETURN.
11700
11701 2014-02-19 Tom Tromey <tromey@redhat.com>
11702
11703 * target-delegates.c: Rebuild.
11704 * target.c (target_insn_history_from): Unconditionally delegate.
11705 * target.h (struct target_ops) <to_insn_history_from>: Use
11706 TARGET_DEFAULT_NORETURN.
11707
11708 2014-02-19 Tom Tromey <tromey@redhat.com>
11709
11710 * target-delegates.c: Rebuild.
11711 * target.c (target_insn_history_range): Unconditionally delegate.
11712 * target.h (struct target_ops) <to_insn_history_range>: Use
11713 TARGET_DEFAULT_NORETURN.
11714
11715 2014-02-19 Tom Tromey <tromey@redhat.com>
11716
11717 * target-delegates.c: Rebuild.
11718 * target.c (target_call_history): Unconditionally delegate.
11719 * target.h (struct target_ops) <to_call_history>: Use
11720 TARGET_DEFAULT_NORETURN.
11721
11722 2014-02-19 Tom Tromey <tromey@redhat.com>
11723
11724 * target-delegates.c: Rebuild.
11725 * target.c (target_call_history_from): Unconditionally delegate.
11726 * target.h (struct target_ops) <to_call_history_from>: Use
11727 TARGET_DEFAULT_NORETURN.
11728
11729 2014-02-19 Tom Tromey <tromey@redhat.com>
11730
11731 * target-delegates.c: Rebuild.
11732 * target.c (target_call_history_range): Unconditionally delegate.
11733 * target.h (struct target_ops) <to_call_history_range>: Use
11734 TARGET_DEFAULT_NORETURN.
11735
11736 2014-02-19 Tom Tromey <tromey@redhat.com>
11737
11738 * target-delegates.c: Rebuild.
11739 * target.c (target_verify_memory): Unconditionally delegate.
11740 * target.h (struct target_ops) <to_verify_memory>: Use
11741 TARGET_DEFAULT_NORETURN.
11742
11743 2014-02-19 Tom Tromey <tromey@redhat.com>
11744
11745 * target-delegates.c: Rebuild.
11746 * target.c (target_core_of_thread): Unconditionally delegate.
11747 * target.h (struct target_ops) <to_core_of_thread>: Use
11748 TARGET_DEFAULT_RETURN.
11749
11750 2014-02-19 Tom Tromey <tromey@redhat.com>
11751
11752 * target-delegates.c: Rebuild.
11753 * target.c (target_flash_done): Unconditionally delegate.
11754 * target.h (struct target_ops) <to_flash_done>: Use
11755 TARGET_DEFAULT_NORETURN.
11756
11757 2014-02-19 Tom Tromey <tromey@redhat.com>
11758
11759 * target-delegates.c: Rebuild.
11760 * target.c (target_flash_erase): Unconditionally delegate.
11761 * target.h (struct target_ops) <to_flash_erase>: Use
11762 TARGET_DEFAULT_NORETURN.
11763
11764 2014-02-19 Tom Tromey <tromey@redhat.com>
11765
11766 * target-delegates.c: Rebuild.
11767 * target.c (target_get_section_table): Unconditionally delegate.
11768 * target.h (struct target_ops) <to_get_section_table>: Use
11769 TARGET_DEFAULT_RETURN.
11770
11771 2014-02-19 Tom Tromey <tromey@redhat.com>
11772
11773 * target-delegates.c: Rebuild.
11774 * target.c (target_pid_to_str): Unconditionally delegate.
11775 (init_dummy_target): Don't initialize to_pid_to_str.
11776 (default_pid_to_str): Rename from dummy_pid_to_str.
11777 * target.h (struct target_ops) <to_pid_to_str>: Use
11778 TARGET_DEFAULT_FUNC.
11779
11780 2014-02-19 Tom Tromey <tromey@redhat.com>
11781
11782 * target-delegates.c: Rebuild.
11783 * target.c (target_find_new_threads): Unconditionally delegate.
11784 * target.h (struct target_ops) <to_find_new_threads>: Use
11785 TARGET_DEFAULT_RETURN.
11786
11787 2014-02-19 Tom Tromey <tromey@redhat.com>
11788
11789 * target-delegates.c: Rebuild.
11790 * target.c (target_program_signals): Unconditionally delegate.
11791 * target.h (struct target_ops) <to_program_signals>: Use
11792 TARGET_DEFAULT_IGNORE.
11793
11794 2014-02-19 Tom Tromey <tromey@redhat.com>
11795
11796 * target-delegates.c: Rebuild.
11797 * target.c (target_pass_signals): Unconditionally delegate.
11798 * target.h (struct target_ops) <to_pass_signals>: Use
11799 TARGET_DEFAULT_IGNORE.
11800
11801 2014-02-19 Tom Tromey <tromey@redhat.com>
11802
11803 * target-delegates.c: Rebuild.
11804 * target.c (default_mourn_inferior): New function.
11805 (target_mourn_inferior): Unconditionally delegate.
11806 * target.h (struct target_ops) <to_mourn_inferior>: Use
11807 TARGET_DEFAULT_FUNC.
11808
11809 2014-02-19 Tom Tromey <tromey@redhat.com>
11810
11811 * target-delegates.c: Rebuild.
11812 * target.c (default_follow_fork): New function.
11813 (target_follow_fork): Unconditionally delegate.
11814 * target.h (struct target_ops) <to_follow_fork>: Use
11815 TARGET_DEFAULT_FUNC.
11816
11817 2014-02-19 Tom Tromey <tromey@redhat.com>
11818
11819 * target-delegates.c: Rebuild.
11820 * target.c (target_kill): Unconditionally delegate.
11821 * target.h (struct target_ops) <to_kill>: Use
11822 TARGET_DEFAULT_NORETURN.
11823
11824 2014-02-19 Tom Tromey <tromey@redhat.com>
11825
11826 * target-delegates.c: Rebuild.
11827 * target.c (target_masked_watch_num_registers): Unconditionally
11828 delegate.
11829 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11830 Use TARGET_DEFAULT_RETURN.
11831
11832 2014-02-19 Tom Tromey <tromey@redhat.com>
11833
11834 * target-delegates.c: Rebuild.
11835 * target.c (target_remove_mask_watchpoint): Unconditionally
11836 delegate.
11837 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11838 TARGET_DEFAULT_RETURN.
11839
11840 2014-02-19 Tom Tromey <tromey@redhat.com>
11841
11842 * target-delegates.c: Rebuild.
11843 * target.c (target_insert_mask_watchpoint): Unconditionally
11844 delegate.
11845 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11846 TARGET_DEFAULT_RETURN.
11847
11848 2014-02-19 Tom Tromey <tromey@redhat.com>
11849
11850 * target-delegates.c: Rebuild.
11851 * target.c (target_ranged_break_num_registers): Unconditionally
11852 delegate.
11853 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11854 Use TARGET_DEFAULT_RETURN.
11855
11856 2014-02-19 Tom Tromey <tromey@redhat.com>
11857
11858 * target-delegates.c: Rebuild.
11859 * target.c (target_fetch_registers): Unconditionally delegate.
11860 * target.h (struct target_ops) <to_fetch_registers>: Use
11861 TARGET_DEFAULT_NORETURN.
11862
11863 2014-02-19 Tom Tromey <tromey@redhat.com>
11864
11865 * target-delegates.c: Rebuild.
11866 * target.c (update_current_target): Don't inherit or default
11867 to_stop.
11868 * target.h (struct target_ops) <to_stop>: Use
11869 TARGET_DEFAULT_IGNORE.
11870
11871 2014-02-19 Tom Tromey <tromey@redhat.com>
11872
11873 * target-delegates.c: Rebuild.
11874 * target.c (update_current_target): Don't inherit or default
11875 to_can_run_breakpoint_commands.
11876 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11877 Use TARGET_DEFAULT_RETURN.
11878
11879 2014-02-19 Tom Tromey <tromey@redhat.com>
11880
11881 * target-delegates.c: Rebuild.
11882 * target.c (update_current_target): Don't inherit or default
11883 to_supports_evaluation_of_breakpoint_conditions.
11884 * target.h (struct target_ops)
11885 <to_supports_evaluation_of_breakpoint_conditions>: Use
11886 TARGET_DEFAULT_RETURN.
11887
11888 2014-02-19 Tom Tromey <tromey@redhat.com>
11889
11890 * target-delegates.c: Rebuild.
11891 * target.c (update_current_target): Don't inherit or default
11892 to_augmented_libraries_svr4_read.
11893 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11894 Use TARGET_DEFAULT_RETURN.
11895
11896 2014-02-19 Tom Tromey <tromey@redhat.com>
11897
11898 * target-delegates.c: Rebuild.
11899 * target.c (update_current_target): Don't inherit or default
11900 to_can_use_agent.
11901 * target.h (struct target_ops) <to_can_use_agent>: Use
11902 TARGET_DEFAULT_RETURN.
11903
11904 2014-02-19 Tom Tromey <tromey@redhat.com>
11905
11906 * target-delegates.c: Rebuild.
11907 * target.c (update_current_target): Don't inherit or default
11908 to_use_agent.
11909 * target.h (struct target_ops) <to_use_agent>: Use
11910 TARGET_DEFAULT_NORETURN.
11911
11912 2014-02-19 Tom Tromey <tromey@redhat.com>
11913
11914 * target-delegates.c: Rebuild.
11915 * target.c (update_current_target): Don't inherit or default
11916 to_traceframe_info.
11917 (return_null): Remove.
11918 * target.h (struct target_ops) <to_traceframe_info>: Use
11919 TARGET_DEFAULT_RETURN.
11920
11921 2014-02-19 Tom Tromey <tromey@redhat.com>
11922
11923 * target-delegates.c: Rebuild.
11924 * target.c (update_current_target): Don't inherit or default
11925 to_static_tracepoint_markers_by_strid.
11926 * target.h (struct target_ops)
11927 <to_static_tracepoint_markers_by_strid>: Use
11928 TARGET_DEFAULT_NORETURN.
11929
11930 2014-02-19 Tom Tromey <tromey@redhat.com>
11931
11932 * target-delegates.c: Rebuild.
11933 * target.c (update_current_target): Don't inherit or default
11934 to_static_tracepoint_marker_at.
11935 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11936 Use TARGET_DEFAULT_RETURN.
11937
11938 2014-02-19 Tom Tromey <tromey@redhat.com>
11939
11940 * target-delegates.c: Rebuild.
11941 * target.c (update_current_target): Don't inherit or default
11942 to_set_permissions.
11943 * target.h (struct target_ops) <to_set_permissions>: Use
11944 TARGET_DEFAULT_IGNORE.
11945
11946 2014-02-19 Tom Tromey <tromey@redhat.com>
11947
11948 * target-delegates.c: Rebuild.
11949 * target.c (update_current_target): Don't inherit or default
11950 to_get_tib_address.
11951 * target.h (struct target_ops) <to_get_tib_address>: Use
11952 TARGET_DEFAULT_NORETURN.
11953
11954 2014-02-19 Tom Tromey <tromey@redhat.com>
11955
11956 * target-delegates.c: Rebuild.
11957 * target.c (update_current_target): Don't inherit or default
11958 to_set_trace_notes.
11959 * target.h (struct target_ops) <to_set_trace_notes>: Use
11960 TARGET_DEFAULT_RETURN.
11961
11962 2014-02-19 Tom Tromey <tromey@redhat.com>
11963
11964 * target-delegates.c: Rebuild.
11965 * target.c (update_current_target): Don't initialize
11966 to_set_trace_buffer_size.
11967 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11968 TARGET_DEFAULT_IGNORE.
11969
11970 2014-02-19 Tom Tromey <tromey@redhat.com>
11971
11972 * target-delegates.c: Rebuild.
11973 * target.c (update_current_target): Don't inherit or default
11974 to_set_circular_trace_buffer.
11975 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11976 TARGET_DEFAULT_IGNORE.
11977
11978 2014-02-19 Tom Tromey <tromey@redhat.com>
11979
11980 * target-delegates.c: Rebuild.
11981 * target.c (update_current_target): Don't inherit or default
11982 to_set_disconnected_tracing.
11983 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11984 TARGET_DEFAULT_IGNORE.
11985
11986 2014-02-19 Tom Tromey <tromey@redhat.com>
11987
11988 * target-delegates.c: Rebuild.
11989 * target.c (update_current_target): Don't inherit or default
11990 to_get_min_fast_tracepoint_insn_len.
11991 (return_minus_one): Remove.
11992 * target.h (struct target_ops)
11993 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11994
11995 2014-02-19 Tom Tromey <tromey@redhat.com>
11996
11997 * target-delegates.c: Rebuild.
11998 * target.c (update_current_target): Don't inherit or default
11999 to_get_raw_trace_data.
12000 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
12001 TARGET_DEFAULT_NORETURN.
12002
12003 2014-02-19 Tom Tromey <tromey@redhat.com>
12004
12005 * target-delegates.c: Rebuild.
12006 * target.c (update_current_target): Don't inherit or default
12007 to_upload_trace_state_variables.
12008 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12009 Use TARGET_DEFAULT_RETURN.
12010
12011 2014-02-19 Tom Tromey <tromey@redhat.com>
12012
12013 * target-delegates.c: Rebuild.
12014 * target.c (update_current_target): Don't inherit or default
12015 to_upload_tracepoints.
12016 * target.h (struct target_ops) <to_upload_tracepoints>: Use
12017 TARGET_DEFAULT_RETURN.
12018
12019 2014-02-19 Tom Tromey <tromey@redhat.com>
12020
12021 * target-delegates.c: Rebuild.
12022 * target.c (update_current_target): Don't inherit or default
12023 to_save_trace_data.
12024 * target.h (struct target_ops) <to_save_trace_data>: Use
12025 TARGET_DEFAULT_NORETURN.
12026
12027 2014-02-19 Tom Tromey <tromey@redhat.com>
12028
12029 * target-delegates.c: Rebuild.
12030 * target.c (update_current_target): Don't inherit or default
12031 to_get_trace_state_variable_value.
12032 * target.h (struct target_ops)
12033 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
12034
12035 2014-02-19 Tom Tromey <tromey@redhat.com>
12036
12037 * target-delegates.c: Rebuild.
12038 * target.c (update_current_target): Don't inherit or default
12039 to_trace_find.
12040 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
12041
12042 2014-02-19 Tom Tromey <tromey@redhat.com>
12043
12044 * target-delegates.c: Rebuild.
12045 * target.c (update_current_target): Don't inherit or default
12046 to_trace_stop.
12047 * target.h (struct target_ops) <to_trace_stop>: Use
12048 TARGET_DEFAULT_NORETURN.
12049
12050 2014-02-19 Tom Tromey <tromey@redhat.com>
12051
12052 * target-delegates.c: Rebuild.
12053 * target.c (update_current_target): Don't inherit or default
12054 to_get_tracepoint_status.
12055 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
12056 TARGET_DEFAULT_NORETURN.
12057
12058 2014-02-19 Tom Tromey <tromey@redhat.com>
12059
12060 * target-delegates.c: Rebuild.
12061 * target.c (update_current_target): Don't inherit or default
12062 to_get_trace_status.
12063 * target.h (struct target_ops) <to_get_trace_status>: Use
12064 TARGET_DEFAULT_RETURN.
12065
12066 2014-02-19 Tom Tromey <tromey@redhat.com>
12067
12068 * target-delegates.c: Rebuild.
12069 * target.c (update_current_target): Don't inherit or default
12070 to_trace_start.
12071 * target.h (struct target_ops) <to_trace_start>: Use
12072 TARGET_DEFAULT_NORETURN.
12073
12074 2014-02-19 Tom Tromey <tromey@redhat.com>
12075
12076 * target-delegates.c: Rebuild.
12077 * target.c (update_current_target): Don't inherit or default
12078 to_trace_set_readonly_regions.
12079 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12080 Use TARGET_DEFAULT_NORETURN.
12081
12082 2014-02-19 Tom Tromey <tromey@redhat.com>
12083
12084 * target-delegates.c: Rebuild.
12085 * target.c (update_current_target): Don't inherit or default
12086 to_disable_tracepoint.
12087 * target.h (struct target_ops) <to_disable_tracepoint>: Use
12088 TARGET_DEFAULT_NORETURN.
12089
12090 2014-02-19 Tom Tromey <tromey@redhat.com>
12091
12092 * target-delegates.c: Rebuild.
12093 * target.c (update_current_target): Don't inherit or default
12094 to_enable_tracepoint.
12095 * target.h (struct target_ops) <to_enable_tracepoint>: Use
12096 TARGET_DEFAULT_NORETURN.
12097
12098 2014-02-19 Tom Tromey <tromey@redhat.com>
12099
12100 * target-delegates.c: Rebuild.
12101 * target.c (update_current_target): Don't inherit or default
12102 to_download_trace_state_variable.
12103 * target.h (struct target_ops) <to_download_trace_state_variable>:
12104 Use TARGET_DEFAULT_NORETURN.
12105
12106 2014-02-19 Tom Tromey <tromey@redhat.com>
12107
12108 * target-delegates.c: Rebuild.
12109 * target.c (update_current_target): Don't inherit or default
12110 to_can_download_tracepoint.
12111 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
12112 TARGET_DEFAULT_RETURN.
12113
12114 2014-02-19 Tom Tromey <tromey@redhat.com>
12115
12116 * target-delegates.c: Rebuild.
12117 * target.c (update_current_target): Don't inherit or default
12118 to_download_tracepoint.
12119 * target.h (struct target_ops) <to_download_tracepoint>: Use
12120 TARGET_DEFAULT_NORETURN.
12121
12122 2014-02-19 Tom Tromey <tromey@redhat.com>
12123
12124 * target-delegates.c: Rebuild.
12125 * target.c (update_current_target): Don't inherit or default
12126 to_trace_init.
12127 * target.h (struct target_ops) <to_trace_init>: Use
12128 TARGET_DEFAULT_RETURN.
12129
12130 2014-02-19 Tom Tromey <tromey@redhat.com>
12131
12132 * target-delegates.c: Rebuild.
12133 * target.c (update_current_target): Don't inherit or default
12134 to_supports_string_tracing.
12135 * target.h (struct target_ops) <to_supports_string_tracing>: Use
12136 TARGET_DEFAULT_RETURN.
12137
12138 2014-02-19 Tom Tromey <tromey@redhat.com>
12139
12140 * target-delegates.c: Rebuild.
12141 * target.c (update_current_target): Don't inherit or default
12142 to_supports_enable_disable_tracepoint.
12143 * target.h (struct target_ops)
12144 <to_supports_enable_disable_tracepoint>: Use
12145 TARGET_DEFAULT_RETURN.
12146
12147 2014-02-19 Tom Tromey <tromey@redhat.com>
12148
12149 * target-delegates.c: Rebuild.
12150 * target.c (update_current_target): Don't inherit or default
12151 to_supports_multi_process.
12152 * target.h (struct target_ops) <to_supports_multi_process>: Use
12153 TARGET_DEFAULT_RETURN.
12154
12155 2014-02-19 Tom Tromey <tromey@redhat.com>
12156
12157 * target-delegates.c: Rebuild.
12158 * target.c (update_current_target): Don't inherit or default
12159 to_get_ada_task_ptid.
12160 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
12161 TARGET_DEFAULT_FUNC.
12162
12163 2014-02-19 Tom Tromey <tromey@redhat.com>
12164
12165 * target-delegates.c: Rebuild.
12166 * target.c (update_current_target): Don't inherit or default
12167 to_thread_architecture.
12168 * target.h (struct target_ops) <to_thread_architecture>: Use
12169 TARGET_DEFAULT_FUNC.
12170
12171 2014-02-19 Tom Tromey <tromey@redhat.com>
12172
12173 * target-delegates.c: Rebuild.
12174 * target.c (update_current_target): Don't inherit or default
12175 to_execution_direction.
12176 * target.h (struct target_ops) <to_execution_direction>: Use
12177 TARGET_DEFAULT_FUNC.
12178
12179 2014-02-19 Tom Tromey <tromey@redhat.com>
12180
12181 * target-delegates.c: Rebuild.
12182 * target.c (update_current_target): Don't inherit or default
12183 to_can_execute_reverse.
12184 * target.h (struct target_ops) <to_can_execute_reverse>: Use
12185 TARGET_DEFAULT_RETURN.
12186 (target_can_execute_reverse): Unconditionally delegate.
12187
12188 2014-02-19 Tom Tromey <tromey@redhat.com>
12189
12190 * target-delegates.c: Rebuild.
12191 * target.c (update_current_target): Don't inherit or default
12192 to_goto_bookmark.
12193 (dummy_goto_bookmark): Remove.
12194 (init_dummy_target): Don't inherit or default to_goto_bookmark.
12195 * target.h (struct target_ops) <to_goto_bookmark>: Use
12196 TARGET_DEFAULT_NORETURN.
12197
12198 2014-02-19 Tom Tromey <tromey@redhat.com>
12199
12200 * target-delegates.c: Rebuild.
12201 * target.c (update_current_target): Don't inherit or default
12202 to_get_bookmark.
12203 (dummy_get_bookmark): Remove.
12204 (init_dummy_target): Don't inherit or default to_get_bookmark.
12205 * target.h (struct target_ops) <to_get_bookmark>: Use
12206 TARGET_DEFAULT_NORETURN
12207
12208 2014-02-19 Tom Tromey <tromey@redhat.com>
12209
12210 * target-delegates.c: Rebuild.
12211 * target.c (update_current_target): Don't inherit or default
12212 to_make_corefile_notes.
12213 (init_dummy_target): Don't initialize to_make_corefile_notes.
12214 * target.h (struct target_ops) <to_make_corefile_notes>: Use
12215 TARGET_DEFAULT_FUNC.
12216
12217 2014-02-19 Tom Tromey <tromey@redhat.com>
12218
12219 * target-delegates.c: Rebuild.
12220 * target.c (update_current_target): Don't inherit or default
12221 to_find_memory_regions.
12222 (init_dummy_target): Don't initialize to_find_memory_regions.
12223 * target.h (struct target_ops) <to_find_memory_regions>: Use
12224 TARGET_DEFAULT_FUNC.
12225
12226 2014-02-19 Tom Tromey <tromey@redhat.com>
12227
12228 * target-delegates.c: Rebuild.
12229 * target.c (update_current_target): Don't inherit or default
12230 to_log_command.
12231 * target.h (struct target_ops) <to_log_command>: Use
12232 TARGET_DEFAULT_IGNORE.
12233 (target_log_command): Unconditionally delegate.
12234
12235 2014-02-19 Tom Tromey <tromey@redhat.com>
12236
12237 * target-delegates.c: Rebuild.
12238 * target.c (update_current_target): Don't inherit or default
12239 to_pid_to_exec_file.
12240 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12241 TARGET_DEFAULT_RETURN.
12242
12243 2014-02-19 Tom Tromey <tromey@redhat.com>
12244
12245 * target-delegates.c: Rebuild.
12246 * target.c (update_current_target): Don't inherit or default
12247 to_thread_name.
12248 (target_thread_name): Unconditionally delegate.
12249 * target.h (struct target_ops) <to_thread_name>: Use
12250 TARGET_DEFAULT_RETURN.
12251
12252 2014-02-19 Tom Tromey <tromey@redhat.com>
12253
12254 * target-delegates.c: Rebuild.
12255 * target.c (update_current_target): Don't inherit or default
12256 to_extra_thread_info.
12257 * target.h (struct target_ops) <to_extra_thread_info>: Use
12258 TARGET_DEFAULT_RETURN.
12259
12260 2014-02-19 Tom Tromey <tromey@redhat.com>
12261
12262 * target-delegates.c: Rebuild.
12263 * target.c (update_current_target): Don't inherit or default
12264 to_has_exited.
12265 * target.h (struct target_ops) <to_has_exited>: Use
12266 TARGET_DEFAULT_RETURN..
12267
12268 2014-02-19 Tom Tromey <tromey@redhat.com>
12269
12270 * target-delegates.c: Rebuild.
12271 * target.c (update_current_target): Don't inherit or default
12272 to_set_syscall_catchpoint.
12273 (return_one): Remove.
12274 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12275 TARGET_DEFAULT_RETURN.
12276
12277 2014-02-19 Tom Tromey <tromey@redhat.com>
12278
12279 * target-delegates.c: Rebuild.
12280 * target.c (update_current_target): Don't inherit or default
12281 to_insert_exec_catchpoint.
12282 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12283 TARGET_DEFAULT_RETURN.
12284
12285 2014-01-08 Tom Tromey <tromey@redhat.com>
12286
12287 * target-delegates.c: Rebuild.
12288 * target.c (update_current_target): Don't inherit or default
12289 to_insert_exec_catchpoint.
12290 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12291 TARGET_DEFAULT_RETURN.
12292
12293 2014-02-19 Tom Tromey <tromey@redhat.com>
12294
12295 * target-delegates.c: Rebuild.
12296 * target.c (update_current_target): Don't inherit or default
12297 to_remove_vfork_catchpoint.
12298 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12299 TARGET_DEFAULT_RETURN.
12300
12301 2014-02-19 Tom Tromey <tromey@redhat.com>
12302
12303 * target-delegates.c: Rebuild.
12304 * target.c (update_current_target): Don't inherit or default
12305 to_insert_vfork_catchpoint.
12306 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12307 TARGET_DEFAULT_RETURN.
12308
12309 2014-02-19 Tom Tromey <tromey@redhat.com>
12310
12311 * target-delegates.c: Rebuild.
12312 * target.c (update_current_target): Don't inherit or default
12313 to_remove_fork_catchpoint.
12314 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12315 TARGET_DEFAULT_RETURN.
12316
12317 2014-02-19 Tom Tromey <tromey@redhat.com>
12318
12319 * target-delegates.c: Rebuild.
12320 * target.c (update_current_target): Don't inherit or default
12321 to_insert_fork_catchpoint.
12322 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12323 TARGET_DEFAULT_RETURN.
12324
12325 2014-02-19 Tom Tromey <tromey@redhat.com>
12326
12327 * target-delegates.c: Rebuild.
12328 * target.c (update_current_target): Don't inherit or default
12329 to_post_startup_inferior.
12330 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12331 TARGET_DEFAULT_IGNORE.
12332
12333 2014-02-19 Tom Tromey <tromey@redhat.com>
12334
12335 * target-delegates.c: Rebuild.
12336 * target.c (update_current_target): Don't inherit or default
12337 to_load.
12338 * target.h (struct target_ops) <to_load>: Use
12339 TARGET_DEFAULT_NORETURN.
12340
12341 2014-02-19 Tom Tromey <tromey@redhat.com>
12342
12343 * target-delegates.c: Rebuild.
12344 * target.c (update_current_target): Don't inherit or default
12345 to_terminal_info.
12346 * target.h (struct target_ops) <to_terminal_info>: Use
12347 TARGET_DEFAULT_FUNC.
12348
12349 2014-02-19 Tom Tromey <tromey@redhat.com>
12350
12351 * target-delegates.c: Rebuild.
12352 * target.c (update_current_target): Don't inherit or default
12353 to_terminal_save_ours.
12354 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12355 TARGET_DEFAULT_IGNORE.
12356
12357 2014-02-19 Tom Tromey <tromey@redhat.com>
12358
12359 * target-delegates.c: Rebuild.
12360 * target.c (update_current_target): Don't inherit or default
12361 to_terminal_ours.
12362 * target.h (struct target_ops) <to_terminal_ours>: Use
12363 TARGET_DEFAULT_IGNORE.
12364
12365 2014-02-19 Tom Tromey <tromey@redhat.com>
12366
12367 * target-delegates.c: Rebuild.
12368 * target.c (update_current_target): Don't inherit or default
12369 to_terminal_ours_for_output.
12370 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12371 TARGET_DEFAULT_IGNORE.
12372
12373 2014-02-19 Tom Tromey <tromey@redhat.com>
12374
12375 * target-delegates.c: Rebuild.
12376 * target.c (update_current_target): Don't inherit or default
12377 to_terminal_inferior.
12378 * target.h (struct target_ops) <to_terminal_inferior>: Use
12379 TARGET_DEFAULT_IGNORE.
12380
12381 2014-02-19 Tom Tromey <tromey@redhat.com>
12382
12383 * target-delegates.c: Rebuild.
12384 * target.c (update_current_target): Don't inherit or default
12385 to_terminal_init.
12386 * target.h (struct target_ops) <to_terminal_init>: Use
12387 TARGET_DEFAULT_IGNORE.
12388
12389 2014-02-19 Tom Tromey <tromey@redhat.com>
12390
12391 * target-delegates.c: Rebuild.
12392 * target.c (update_current_target): Don't inherit or default
12393 to_can_accel_watchpoint_condition.
12394 * target.h (struct target_ops)
12395 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12396
12397 2014-02-19 Tom Tromey <tromey@redhat.com>
12398
12399 * target-delegates.c: Rebuild.
12400 * target.c (update_current_target): Don't inherit or default
12401 to_region_ok_for_hw_watchpoint.
12402 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12403 Use TARGET_DEFAULT_FUNC.
12404
12405 2014-02-19 Tom Tromey <tromey@redhat.com>
12406
12407 * target-delegates.c: Rebuild.
12408 * target.c (update_current_target): Don't inherit or default
12409 to_watchpoint_addr_within_range.
12410 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12411 Use TARGET_DEFAULT_FUNC.
12412
12413 2014-02-19 Tom Tromey <tromey@redhat.com>
12414
12415 * target-delegates.c: Rebuild.
12416 * target.c (update_current_target): Don't inherit or default
12417 to_remove_watchpoint.
12418 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12419 TARGET_DEFAULT_NORETURN.
12420
12421 2014-02-19 Tom Tromey <tromey@redhat.com>
12422
12423 * target-delegates.c: Rebuild.
12424 * target.c (update_current_target): Don't inherit or default
12425 to_insert_watchpoint.
12426 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12427 TARGET_DEFAULT_RETURN.
12428
12429 2014-02-19 Tom Tromey <tromey@redhat.com>
12430
12431 * target-delegates.c: Rebuild.
12432 * target.c (update_current_target): Don't inherit or default
12433 to_remove_hw_breakpoint.
12434 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12435 TARGET_DEFAULT_RETURN.
12436
12437 2014-02-19 Tom Tromey <tromey@redhat.com>
12438
12439 * target-delegates.c: Rebuild.
12440 * target.c (update_current_target): Don't inherit or default
12441 to_insert_hw_breakpoint.
12442 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12443 TARGET_DEFAULT_RETURN.
12444
12445 2014-02-19 Tom Tromey <tromey@redhat.com>
12446
12447 * target-delegates.c: Rebuild.
12448 * target.c (update_current_target): Don't inherit or default
12449 to_can_use_hw_breakpoint.
12450 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12451 TARGET_DEFAULT_RETURN.
12452
12453 2014-02-19 Tom Tromey <tromey@redhat.com>
12454
12455 * target-delegates.c: Rebuild.
12456 * target.c (update_current_target): Don't inherit or default
12457 to_files_info.
12458 * target.h (struct target_ops) <to_files_info>: Use
12459 TARGET_DEFAULT_IGNORE.
12460
12461 2014-02-19 Tom Tromey <tromey@redhat.com>
12462
12463 * target-delegates.c: Rebuild.
12464 * target.c (update_current_target): Don't inherit or default
12465 to_store.
12466 * target.h (struct target_ops) <to_store>: Use
12467 TARGET_DEFAULT_NORETURN.
12468
12469 2014-02-19 Tom Tromey <tromey@redhat.com>
12470
12471 * target-delegates.c: Rebuild.
12472 * target.c (update_current_target): Don't inherit or default
12473 to_post_attach.
12474 * target.h (struct target_ops) <to_post_attach>: Use
12475 TARGET_DEFAULT_IGNORE.
12476
12477 2014-02-19 Tom Tromey <tromey@redhat.com>
12478
12479 * target-delegates.c: Rebuild.
12480 * target.c (update_current_target): Don't inherit or default
12481 to_rcmd.
12482 (default_rcmd): New function.
12483 (do_monitor_command): Unconditionally delegate.
12484 * target.h (struct target_ops) <to_rmcd>: Use
12485 TARGET_DEFAULT_FUNC.
12486
12487 2014-02-19 Tom Tromey <tromey@redhat.com>
12488
12489 * target-delegates.c: Rebuild.
12490 * target.c (init_dummy_target): Don't initialize to_attach.
12491 (target_attach): Unconditionally delegate.
12492 * target.h (struct target_ops) <to_attach>: Use
12493 TARGET_DEFAULT_FUNC.
12494
12495 2014-02-19 Tom Tromey <tromey@redhat.com>
12496
12497 * target-delegates.c: Rebuild.
12498 * target.c (target_detach): Unconditionally delegate.
12499 (init_dummy_target): Don't initialize to_detach.
12500 * target.h (struct target_ops) <to_detach>: Use
12501 TARGET_DEFAULT_IGNORE.
12502
12503 2014-02-19 Tom Tromey <tromey@redhat.com>
12504
12505 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12506 Add argument.
12507 (target_augmented_libraries_svr4_read): Add argument.
12508 * target.c (update_current_target): Update.
12509 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12510 argument.
12511
12512 2014-02-19 Tom Tromey <tromey@redhat.com>
12513
12514 * target.h (struct target_ops) <to_call_history_range>: Add
12515 argument.
12516 * target.c (target_call_history_range): Add argument.
12517 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12518 argument.
12519 (record_btrace_call_history_from): Update.
12520
12521 2014-02-19 Tom Tromey <tromey@redhat.com>
12522
12523 * target.h (struct target_ops) <to_call_history_from>: Add
12524 argument.
12525 * target.c (target_call_history_from): Add argument.
12526 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12527 argument.
12528
12529 2014-02-19 Tom Tromey <tromey@redhat.com>
12530
12531 * target.h (struct target_ops) <to_call_history>: Add argument.
12532 * target.c (target_call_history): Add argument.
12533 * record-btrace.c (record_btrace_call_history): Add 'self'
12534 argument.
12535
12536 2014-02-19 Tom Tromey <tromey@redhat.com>
12537
12538 * target.h (struct target_ops) <to_insn_history_range>: Add
12539 argument.
12540 * target.c (target_insn_history_range): Add argument.
12541 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12542 argument.
12543 (record_btrace_insn_history_from): Update.
12544
12545 2014-02-19 Tom Tromey <tromey@redhat.com>
12546
12547 * target.h (struct target_ops) <to_insn_history_from>: Add
12548 argument.
12549 * target.c (target_insn_history_from): Add argument.
12550 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12551 argument.
12552
12553 2014-02-19 Tom Tromey <tromey@redhat.com>
12554
12555 * target.h (struct target_ops) <to_insn_history>: Add argument.
12556 * target.c (target_insn_history): Add argument.
12557 * record-btrace.c (record_btrace_insn_history): Add 'self'
12558 argument.
12559
12560 2014-02-19 Tom Tromey <tromey@redhat.com>
12561
12562 * target.h (struct target_ops) <to_goto_record>: Add argument.
12563 * target.c (target_goto_record): Add argument.
12564 * record-full.c (record_full_goto): Add 'self' argument.
12565 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12566
12567 2014-02-19 Tom Tromey <tromey@redhat.com>
12568
12569 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12570 * target.c (target_goto_record_end): Add argument.
12571 * record-full.c (record_full_goto_end): Add 'self' argument.
12572 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12573
12574 2014-02-19 Tom Tromey <tromey@redhat.com>
12575
12576 * target.h (struct target_ops) <to_goto_record_begin>: Add
12577 argument.
12578 * target.c (target_goto_record_begin): Add argument.
12579 * record-full.c (record_full_goto_begin): Add 'self' argument.
12580 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12581 argument.
12582
12583 2014-02-19 Tom Tromey <tromey@redhat.com>
12584
12585 * target.h (struct target_ops) <to_record_is_replaying>: Add
12586 argument.
12587 * target.c (target_record_is_replaying): Add argument.
12588 * record-full.c (record_full_is_replaying): Add 'self' argument.
12589 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12590 argument.
12591 (record_btrace_xfer_partial, record_btrace_store_registers)
12592 (record_btrace_prepare_to_store, record_btrace_resume)
12593 (record_btrace_wait, record_btrace_decr_pc_after_break)
12594 (record_btrace_find_new_threads, record_btrace_thread_alive):
12595 Update.
12596
12597 2014-02-19 Tom Tromey <tromey@redhat.com>
12598
12599 * target.h (struct target_ops) <to_delete_record>: Add argument.
12600 * target.c (target_delete_record): Add argument.
12601 * record-full.c (record_full_delete): Add 'self' argument.
12602
12603 2014-02-19 Tom Tromey <tromey@redhat.com>
12604
12605 * target.h (struct target_ops) <to_save_record>: Add argument.
12606 * target.c (target_save_record): Add argument.
12607 * record-full.c (record_full_save): Add 'self' argument.
12608 (record_full_save): Add 'self' argument.
12609
12610 2014-02-19 Tom Tromey <tromey@redhat.com>
12611
12612 * target.h (struct target_ops) <to_info_record>: Add argument.
12613 * target.c (target_info_record): Add argument.
12614 * record.c (info_record_command): Add argument.
12615 * record-full.c (record_full_info): Add 'self' argument.
12616 * record-btrace.c (record_btrace_info): Add 'self' argument.
12617
12618 2014-02-19 Tom Tromey <tromey@redhat.com>
12619
12620 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12621 * target.c (target_stop_recording): Add argument.
12622 * record.c (record_stop): Add argument.
12623 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12624 argument.
12625
12626 2014-02-19 Tom Tromey <tromey@redhat.com>
12627
12628 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12629 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12630 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12631 argument.
12632 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12633 (_initialize_amd64_linux_nat): Use it.
12634 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12635 (_initialize_i386_linux_nat): Use it.
12636
12637 2014-02-19 Tom Tromey <tromey@redhat.com>
12638
12639 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12640 * target.c (target_teardown_btrace): Add argument.
12641 * remote.c (remote_teardown_btrace): Add 'self' argument.
12642 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12643 argument.
12644 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12645 argument.
12646
12647 2014-02-19 Tom Tromey <tromey@redhat.com>
12648
12649 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12650 * target.c (target_disable_btrace): Add argument.
12651 * remote.c (remote_disable_btrace): Add 'self' argument.
12652 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12653 argument.
12654 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12655 argument.
12656
12657 2014-02-19 Tom Tromey <tromey@redhat.com>
12658
12659 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12660 * target.c (target_enable_btrace): Add argument.
12661 * remote.c (remote_enable_btrace): Add 'self' argument.
12662 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12663 argument.
12664 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12665 argument.
12666
12667 2014-02-19 Tom Tromey <tromey@redhat.com>
12668
12669 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12670 (target_can_use_agent): Add argument.
12671 * target.c (update_current_target): Update.
12672 * remote.c (remote_can_use_agent): Add 'self' argument.
12673 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12674
12675 2014-02-19 Tom Tromey <tromey@redhat.com>
12676
12677 * target.h (struct target_ops) <to_use_agent>: Add argument.
12678 (target_use_agent): Add argument.
12679 * target.c (update_current_target): Update.
12680 * remote.c (remote_use_agent): Add 'self' argument.
12681 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12682
12683 2014-02-19 Tom Tromey <tromey@redhat.com>
12684
12685 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12686 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12687 (target_traceframe_info): Add argument.
12688 * target.c (update_current_target): Update.
12689 * remote.c (remote_traceframe_info): Add 'self' argument.
12690 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12691
12692 2014-02-19 Tom Tromey <tromey@redhat.com>
12693
12694 * target.h (target_static_tracepoint_markers_by_strid): Add
12695 argument.
12696 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12697 'self' argument.
12698 * target.c (update_current_target): Update.
12699 * remote.c (struct target_ops)
12700 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12701 * linux-nat.c (struct target_ops)
12702 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12703
12704 2014-02-19 Tom Tromey <tromey@redhat.com>
12705
12706 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12707 Add argument.
12708 (target_static_tracepoint_marker_at): Add argument.
12709 * target.c (update_current_target): Update.
12710 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12711 argument.
12712
12713 2014-02-19 Tom Tromey <tromey@redhat.com>
12714
12715 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12716 (target_set_permissions): Add argument.
12717 * target.c (update_current_target): Update.
12718 * remote.c (remote_set_permissions): Add 'self' argument.
12719 (remote_start_remote): Update.
12720
12721 2014-02-19 Tom Tromey <tromey@redhat.com>
12722
12723 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12724 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12725 (target_get_tib_address): Add argument.
12726 * target.c (update_current_target): Update.
12727 * remote.c (remote_get_tib_address): Add 'self' argument.
12728
12729 2014-02-19 Tom Tromey <tromey@redhat.com>
12730
12731 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12732 (target_set_trace_notes): Add argument.
12733 * target.c (update_current_target): Update.
12734 * remote.c (remote_set_trace_notes): Add 'self' argument.
12735
12736 2014-02-19 Tom Tromey <tromey@redhat.com>
12737
12738 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12739 argument.
12740 (target_set_trace_buffer_size): Add argument.
12741 * target.c (update_current_target): Update.
12742 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12743
12744 2014-02-19 Tom Tromey <tromey@redhat.com>
12745
12746 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12747 argument.
12748 (target_set_circular_trace_buffer): Add argument.
12749 * target.c (update_current_target): Update.
12750 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12751 argument.
12752
12753 2014-02-19 Tom Tromey <tromey@redhat.com>
12754
12755 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12756 argument.
12757 (target_set_disconnected_tracing): Add argument.
12758 * target.c (update_current_target): Update.
12759 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12760
12761 2014-02-19 Tom Tromey <tromey@redhat.com>
12762
12763 * target.h (struct target_ops)
12764 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12765 (target_get_min_fast_tracepoint_insn_len): Add argument.
12766 * target.c (update_current_target): Update.
12767 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12768 argument.
12769
12770 2014-02-19 Tom Tromey <tromey@redhat.com>
12771
12772 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12773 argument.
12774 (target_get_raw_trace_data): Add argument.
12775 * target.c (update_current_target): Update.
12776 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12777
12778 2014-02-19 Tom Tromey <tromey@redhat.com>
12779
12780 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12781 Add argument.
12782 (target_upload_trace_state_variables): Add argument.
12783 * target.c (update_current_target): Update.
12784 * remote.c (remote_upload_trace_state_variables): Add 'self'
12785 argument.
12786 (remote_start_remote): Update.
12787
12788 2014-02-19 Tom Tromey <tromey@redhat.com>
12789
12790 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12791 argument.
12792 (target_upload_tracepoints): Add argument.
12793 * target.c (update_current_target): Update.
12794 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12795 (remote_start_remote): Update.
12796
12797 2014-02-19 Tom Tromey <tromey@redhat.com>
12798
12799 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12800 (target_save_trace_data): Add argument.
12801 * target.c (update_current_target): Update.
12802 * remote.c (remote_save_trace_data): Add 'self' argument.
12803
12804 2014-02-19 Tom Tromey <tromey@redhat.com>
12805
12806 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12807 argument.
12808 * target.h (struct target_ops)
12809 <to_get_trace_state_variable_value>: Add argument.
12810 (target_get_trace_state_variable_value): Add argument.
12811 * target.c (update_current_target): Update.
12812 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12813 argument.
12814 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12815
12816 2014-02-19 Tom Tromey <tromey@redhat.com>
12817
12818 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12819 * target.h (struct target_ops) <to_trace_find>: Add argument.
12820 (target_trace_find): Add argument.
12821 * target.c (update_current_target): Update.
12822 * remote.c (remote_trace_find): Add 'self' argument.
12823 * ctf.c (ctf_trace_find): Add 'self' argument.
12824
12825 2014-02-19 Tom Tromey <tromey@redhat.com>
12826
12827 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12828 (target_trace_stop): Add argument.
12829 * target.c (update_current_target): Update.
12830 * remote.c (remote_trace_stop): Add 'self' argument.
12831
12832 2014-02-19 Tom Tromey <tromey@redhat.com>
12833
12834 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12835 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12836 argument.
12837 (target_get_tracepoint_status): Add argument.
12838 * target.c (update_current_target): Update.
12839 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12840
12841 2014-02-19 Tom Tromey <tromey@redhat.com>
12842
12843 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12844 * target.h (struct target_ops) <to_get_trace_status>: Add
12845 argument.
12846 (target_get_trace_status): Add argument.
12847 * target.c (update_current_target): Update.
12848 * remote.c (remote_get_trace_status): Add 'self' argument.
12849 (remote_start_remote, remote_can_download_tracepoint): Update.
12850 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12851
12852 2014-02-19 Tom Tromey <tromey@redhat.com>
12853
12854 * target.h (struct target_ops) <to_trace_start>: Add argument.
12855 (target_trace_start): Add argument.
12856 * target.c (update_current_target): Update.
12857 * remote.c (remote_trace_start): Add 'self' argument.
12858
12859 2014-02-19 Tom Tromey <tromey@redhat.com>
12860
12861 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12862 Add argument.
12863 (target_trace_set_readonly_regions): Add argument.
12864 * target.c (update_current_target): Update.
12865 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12866 argument.
12867
12868 2014-02-19 Tom Tromey <tromey@redhat.com>
12869
12870 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12871 argument.
12872 (target_disable_tracepoint): Add argument.
12873 * target.c (update_current_target): Update.
12874 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12875
12876 2014-02-19 Tom Tromey <tromey@redhat.com>
12877
12878 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12879 argument.
12880 (target_enable_tracepoint): Add argument.
12881 * target.c (update_current_target): Update.
12882 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12883
12884 2014-02-19 Tom Tromey <tromey@redhat.com>
12885
12886 * target.h (struct target_ops) <to_download_trace_state_variable>:
12887 Add argument.
12888 (target_download_trace_state_variable): Add argument.
12889 * target.c (update_current_target): Update.
12890 * remote.c (remote_download_trace_state_variable): Add 'self'
12891 argument.
12892
12893 2014-02-19 Tom Tromey <tromey@redhat.com>
12894
12895 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12896 argument.
12897 (target_can_download_tracepoint): Add argument.
12898 * target.c (update_current_target): Update.
12899 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12900
12901 2014-02-19 Tom Tromey <tromey@redhat.com>
12902
12903 * target.h (struct target_ops) <to_download_tracepoint>: Add
12904 argument.
12905 (target_download_tracepoint): Add argument.
12906 * target.c (update_current_target): Update.
12907 * remote.c (remote_download_tracepoint): Add 'self' argument.
12908
12909 2014-02-19 Tom Tromey <tromey@redhat.com>
12910
12911 * target.h (struct target_ops) <to_trace_init>: Add argument.
12912 (target_trace_init): Add argument.
12913 * target.c (update_current_target): Update.
12914 * remote.c (remote_trace_init): Add 'self' argument.
12915
12916 2014-02-19 Tom Tromey <tromey@redhat.com>
12917
12918 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12919 * target.c (target_fileio_readlink): Add argument.
12920 * remote.c (remote_hostio_readlink): Add 'self' argument.
12921 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12922
12923 2014-02-19 Tom Tromey <tromey@redhat.com>
12924
12925 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12926 * target.c (target_fileio_unlink): Add argument.
12927 * remote.c (remote_hostio_unlink): Add 'self' argument.
12928 (remote_file_delete): Update.
12929 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12930
12931 2014-02-19 Tom Tromey <tromey@redhat.com>
12932
12933 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12934 * target.c (target_fileio_close): Add argument.
12935 * remote.c (remote_hostio_close): Add 'self' argument.
12936 (remote_hostio_close_cleanup): Update.
12937 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12938 Update.
12939 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12940
12941 2014-02-19 Tom Tromey <tromey@redhat.com>
12942
12943 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12944 * target.c (target_fileio_pread): Add argument.
12945 * remote.c (remote_hostio_pread): Add 'self' argument.
12946 (remote_bfd_iovec_pread, remote_file_get): Update.
12947 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12948
12949 2014-02-19 Tom Tromey <tromey@redhat.com>
12950
12951 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12952 * target.c (target_fileio_pwrite): Add argument.
12953 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12954 (remote_file_put): Update.
12955 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12956
12957 2014-02-19 Tom Tromey <tromey@redhat.com>
12958
12959 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12960 * target.c (target_fileio_open): Add argument.
12961 * remote.c (remote_hostio_open): Add 'self' argument.
12962 (remote_bfd_iovec_open): Add 'self' argument.
12963 (remote_file_put): Add 'self' argument.
12964 (remote_file_get): Add 'self' argument.
12965 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12966
12967 2014-02-19 Tom Tromey <tromey@redhat.com>
12968
12969 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12970 Add argument.
12971 (target_can_run_breakpoint_commands): Add argument.
12972 * target.c (update_current_target): Update.
12973 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12974 argument.
12975 (remote_insert_breakpoint): Add 'self' argument.
12976 (remote_insert_hw_breakpoint): Add 'self' argument.
12977 (remote_can_run_breakpoint_commands): Add 'self' argument.
12978
12979 2014-02-19 Tom Tromey <tromey@redhat.com>
12980
12981 * target.h (struct target_ops)
12982 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12983 (target_supports_evaluation_of_breakpoint_conditions): Add
12984 argument.
12985 * target.c (update_current_target): Update.
12986 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12987 argument.
12988 (remote_insert_breakpoint): Add 'self' argument.
12989 (remote_insert_hw_breakpoint): Add 'self' argument.
12990 (remote_supports_cond_breakpoints): Add 'self' argument.
12991
12992 2014-02-19 Tom Tromey <tromey@redhat.com>
12993
12994 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12995 argument.
12996 (target_supports_string_tracing): Add argument.
12997 * target.c (update_current_target): Update.
12998 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12999
13000 2014-02-19 Tom Tromey <tromey@redhat.com>
13001
13002 * target.h (struct target_ops)
13003 <to_supports_disable_randomization>: Add argument.
13004 * target.c (find_default_supports_disable_randomization): Add
13005 argument.
13006 (target_supports_disable_randomization): Add argument.
13007 (find_default_supports_disable_randomization): Add 'self'
13008 argument.
13009 * remote.c (extended_remote_supports_disable_randomization): Add
13010 'self' argument.
13011 (remote_supports_disable_randomization): Add 'self' argument.
13012 (extended_remote_create_inferior): Update.
13013 * linux-nat.c (linux_nat_supports_disable_randomization): Add
13014 'self' argument.
13015
13016 2014-02-19 Tom Tromey <tromey@redhat.com>
13017
13018 * target.h (struct target_ops)
13019 <to_supports_enable_disable_tracepoint>: Add argument.
13020 (target_supports_enable_disable_tracepoint): Add argument.
13021 * target.c (update_current_target): Update.
13022 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
13023 argument.
13024
13025 2014-02-19 Tom Tromey <tromey@redhat.com>
13026
13027 * target.h (struct target_ops) <to_supports_multi_process>: Add
13028 argument.
13029 (target_supports_multi_process): Add argument.
13030 * target.c (update_current_target): Update.
13031 * remote.c (remote_supports_multi_process): Add 'self' argument.
13032 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
13033 argument.
13034 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
13035 argument.
13036
13037 2014-02-19 Tom Tromey <tromey@redhat.com>
13038
13039 * target.h (struct target_ops) <to_execution_direction>: Add
13040 argument.
13041 (target_execution_direction): Add argument.
13042 * target.c (default_execution_direction): Add 'self' argument.
13043 * record-full.c (record_full_execution_direction): Add 'self'
13044 argument.
13045
13046 2014-02-19 Tom Tromey <tromey@redhat.com>
13047
13048 * target.h (struct target_ops) <to_can_execute_reverse>: Add
13049 argument.
13050 (target_can_execute_reverse): Add argument.
13051 * remote.c (remote_can_execute_reverse): Add 'self' argument.
13052 * record-full.c (record_full_can_execute_reverse): Add 'self'
13053 argument.
13054 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
13055 argument.
13056
13057 2014-02-19 Tom Tromey <tromey@redhat.com>
13058
13059 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
13060 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
13061 argument.
13062 (target_get_ada_task_ptid): Add argument.
13063 * target.c (update_current_target): Update.
13064 (default_get_ada_task_ptid): Add 'self' argument.
13065 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
13066 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
13067 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
13068 argument.
13069 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
13070 argument.
13071 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
13072 argument.
13073 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
13074 argument.
13075 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
13076 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
13077 argument.
13078
13079 2014-02-19 Tom Tromey <tromey@redhat.com>
13080
13081 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
13082 (target_goto_bookmark): Add argument.
13083 * target.c (dummy_goto_bookmark): Add 'self' argument.
13084 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
13085
13086 2014-02-19 Tom Tromey <tromey@redhat.com>
13087
13088 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
13089 (target_get_bookmark): Add argument.
13090 * target.c (dummy_get_bookmark): Add 'self' argument.
13091 * record-full.c (record_full_get_bookmark): Add 'self' argument.
13092
13093 2014-02-19 Tom Tromey <tromey@redhat.com>
13094
13095 * target.h (struct target_ops) <to_make_corefile_notes>: Add
13096 argument.
13097 (target_make_corefile_notes): Add argument.
13098 * target.c (dummy_make_corefile_notes): Add 'self' argument.
13099 * procfs.c (procfs_make_note_section): Add 'self' argument.
13100 (procfs_make_note_section): Add 'self' argument.
13101 (procfs_make_note_section): Add 'self' argument.
13102 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
13103 argument.
13104 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
13105 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
13106 * exec.c (exec_make_note_section): Add 'self' argument.
13107 (exec_make_note_section): Add 'self' argument.
13108
13109 2014-02-19 Tom Tromey <tromey@redhat.com>
13110
13111 * target.h (struct target_ops) <to_find_memory_regions>: Add
13112 argument.
13113 (target_find_memory_regions): Add argument.
13114 * target.c (dummy_find_memory_regions): Add 'self' argument.
13115 * procfs.c (proc_find_memory_regions): Add 'self' argument.
13116 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
13117 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
13118 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
13119 * exec. (exec_do_find_memory_regions): New global.
13120 (exec_set_find_memory_regions): Rewrite.
13121 (exec_find_memory_regions): New function.
13122 (init_exec_ops): Use exec_find_memory_regions.
13123
13124 2014-02-19 Tom Tromey <tromey@redhat.com>
13125
13126 * target.h (struct target_ops) <to_supports_non_stop>: Add
13127 argument.
13128 * target.c (find_default_supports_non_stop): Add argument.
13129 (target_supports_non_stop): Add argument.
13130 (find_default_supports_non_stop): Add 'self' argument.
13131 * remote.c (remote_supports_non_stop): Add 'self' argument.
13132 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
13133
13134 2014-02-19 Tom Tromey <tromey@redhat.com>
13135
13136 * target.h (struct target_ops) <to_log_command>: Add argument.
13137 (target_log_command): Add argument.
13138 * serial.h (serial_log_command): Add 'self' argument.
13139 * serial.c (serial_log_command): Add 'self' argument.
13140
13141 2014-02-19 Tom Tromey <tromey@redhat.com>
13142
13143 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
13144 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
13145 argument.
13146 (target_pid_to_exec_file): Add argument.
13147 * target.c (debug_to_pid_to_exec_file): Add argument.
13148 (update_current_target): Update.
13149 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
13150 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
13151 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
13152 (linux_handle_extended_wait): Update.
13153 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
13154 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
13155 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
13156 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
13157
13158 2014-02-19 Tom Tromey <tromey@redhat.com>
13159
13160 * target.h (struct target_ops) <to_rcmd>: Add argument.
13161 (target_rcmd): Add argument.
13162 * target.c (debug_to_rcmd): Add argument.
13163 (update_current_target, do_monitor_command): Update.
13164 * remote.c (remote_rcmd): Add 'self' argument.
13165 * monitor.c (monitor_rcmd): Add 'self' argument.
13166
13167 2014-02-19 Tom Tromey <tromey@redhat.com>
13168
13169 * windows-nat.c (windows_stop): Add 'self' argument.
13170 * target.h (struct target_ops) <to_stop>: Add argument.
13171 * target.c (target_stop): Add argument.
13172 (debug_to_stop): Add argument.
13173 (update_current_target): Update.
13174 * remote.c (remote_stop): Add 'self' argument.
13175 * remote-sim.c (gdbsim_stop): Add 'self' argument.
13176 (gdbsim_cntrl_c): Update.
13177 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
13178 * procfs.c (procfs_stop): Add 'self' argument.
13179 * nto-procfs.c (procfs_stop): Add 'self' argument.
13180 * monitor.c (monitor_stop): Add 'self' argument.
13181 (monitor_open): Update.
13182 * linux-nat.c (linux_nat_stop): Add argument.
13183 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
13184 * gnu-nat.c (gnu_stop): Add 'self' argument.
13185 * darwin-nat.c (darwin_stop): Add 'self' argument.
13186
13187 2014-02-19 Tom Tromey <tromey@redhat.com>
13188
13189 * target.h (struct target_ops) <to_thread_name>: Add argument.
13190 * target.c (target_thread_name): Add argument.
13191 (update_current_target): Update.
13192 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13193
13194 2014-02-19 Tom Tromey <tromey@redhat.com>
13195
13196 * target.h (struct target_ops) <to_extra_thread_info>: Add
13197 argument.
13198 (target_extra_thread_info): Add argument.
13199 * target.c (update_current_target): Update.
13200 * remote.c (remote_threads_extra_info): Add 'self' argument.
13201 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13202 argument.
13203 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13204 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13205 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13206 argument.
13207 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13208 argument.
13209 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13210 argument.
13211 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13212 argument.
13213
13214 2014-02-19 Tom Tromey <tromey@redhat.com>
13215
13216 * target.h (struct target_ops) <to_program_signals>: Add argument.
13217 * target.c (target_program_signals): Add argument.
13218 * remote.c (remote_program_signals): Add 'self' argument.
13219
13220 2014-02-19 Tom Tromey <tromey@redhat.com>
13221
13222 * target.h (struct target_ops) <to_pass_signals>: Add argument.
13223 * target.c (target_pass_signals): Add argument.
13224 * remote.c (remote_pass_signals): Add 'self' argument.
13225 (remote_start_remote): Update.
13226 * procfs.c (procfs_pass_signals): Add 'self' argument.
13227 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13228 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13229 (linux_nat_create_inferior, linux_nat_attach): Update.
13230
13231 2014-02-19 Tom Tromey <tromey@redhat.com>
13232
13233 * windows-nat.c (windows_can_run): Add 'self' argument.
13234 * target.h (struct target_ops) <to_can_run>: Add argument.
13235 (target_can_run): Add argument.
13236 * target.c (debug_to_can_run): Add argument.
13237 (update_current_target): Update.
13238 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13239 * inf-child.c (inf_child_can_run): Add 'self' argument.
13240 * go32-nat.c (go32_can_run): Add 'self' argument.
13241
13242 2014-02-19 Tom Tromey <tromey@redhat.com>
13243
13244 * target.h (struct target_ops) <to_has_exited>: Add argument.
13245 (target_has_exited): Add argument.
13246 * target.c (debug_to_has_exited): Add argument.
13247 (update_current_target): Update.
13248
13249 2014-02-19 Tom Tromey <tromey@redhat.com>
13250
13251 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13252 argument.
13253 (target_set_syscall_catchpoint): Add argument.
13254 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13255 argument.
13256 * target.c (update_current_target): Update.
13257
13258 2014-02-19 Tom Tromey <tromey@redhat.com>
13259
13260 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13261 argument.
13262 (target_remove_exec_catchpoint): Add argument.
13263 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13264 (update_current_target): Update.
13265 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13266 argument.
13267
13268 2014-02-19 Tom Tromey <tromey@redhat.com>
13269
13270 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13271 argument.
13272 (target_insert_exec_catchpoint): Add argument.
13273 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13274 (update_current_target): Update.
13275 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13276 argument.
13277
13278 2014-02-19 Tom Tromey <tromey@redhat.com>
13279
13280 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13281 argument.
13282 (target_remove_vfork_catchpoint): Add argument.
13283 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13284 (update_current_target): Update.
13285 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13286 argument.
13287
13288 2014-02-19 Tom Tromey <tromey@redhat.com>
13289
13290 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13291 argument.
13292 (target_insert_vfork_catchpoint): Add argument.
13293 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13294 (update_current_target): Update.
13295 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13296 argument.
13297
13298 2014-02-19 Tom Tromey <tromey@redhat.com>
13299
13300 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13301 argument.
13302 (target_remove_fork_catchpoint): Add argument.
13303 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13304 (update_current_target): Update.
13305 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13306 argument.
13307
13308 2014-02-19 Tom Tromey <tromey@redhat.com>
13309
13310 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13311 argument.
13312 (target_insert_fork_catchpoint): Add argument.
13313 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13314 (update_current_target): Update.
13315 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13316 argument.
13317
13318 2014-02-19 Tom Tromey <tromey@redhat.com>
13319
13320 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13321 argument.
13322 (target_post_startup_inferior): Add argument.
13323 * target.c (debug_to_post_startup_inferior): Add argument.
13324 (update_current_target): Update.
13325 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13326 argument.
13327 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13328 argument.
13329 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13330 argument.
13331 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13332 argument.
13333 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13334 'self' argument.
13335 (super_post_startup_inferior): Likewise.
13336 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13337 'self' argument.
13338 (super_post_startup_inferior): Likewise.
13339 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13340 Add 'self' argument.
13341 (super_post_startup_inferior): Likewise.
13342
13343 2014-02-19 Tom Tromey <tromey@redhat.com>
13344
13345 * target.h (struct target_ops) <to_load>: Add argument.
13346 * target.c (target_load): Add argument.
13347 (debug_to_load): Add argument.
13348 (update_current_target): Update.
13349 * remote.c (remote_load): Add 'self' argument.
13350 * remote-sim.c (gdbsim_load): Add 'self' argument.
13351 * remote-mips.c (mips_load): Add 'self' argument.
13352 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13353 * monitor.c (monitor_load): Add 'self' argument.
13354 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13355
13356 2014-02-19 Tom Tromey <tromey@redhat.com>
13357
13358 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13359 (target_terminal_info): Add argument.
13360 * target.c (debug_to_terminal_info): Add argument.
13361 (default_terminal_info): Likewise.
13362 * inflow.c (child_terminal_info): Add 'self' argument.
13363 * inferior.h (child_terminal_info): Add 'self' argument.
13364 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13365
13366 2014-02-19 Tom Tromey <tromey@redhat.com>
13367
13368 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13369 argument.
13370 (target_terminal_save_ours): Add argument.
13371 * target.c (debug_to_terminal_save_ours): Add argument.
13372 (update_current_target): Update.
13373 * inflow.c (terminal_save_ours): Add 'self' argument.
13374 * inferior.h (terminal_save_ours): Add 'self' argument.
13375
13376 2014-02-19 Tom Tromey <tromey@redhat.com>
13377
13378 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13379 (target_terminal_ours): Add argument.
13380 * target.c (debug_to_terminal_ours): Add argument.
13381 (update_current_target): Update.
13382 * remote.c (remote_terminal_ours): Add 'self' argument.
13383 (remote_close): Update.
13384 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13385 * inflow.c (terminal_ours): Add 'self' argument.
13386 * inferior.h (terminal_ours): Add 'self' argument.
13387 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13388
13389 2014-02-19 Pedro Alves <palves@redhat.com>
13390 Tom Tromey <tromey@redhat.com>
13391
13392 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13393 argument.
13394 (target_terminal_ours_for_output): Add argument.
13395 * target.c (debug_to_terminal_ours_for_output): Add argument.
13396 (update_current_target): Update.
13397 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13398 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13399 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13400
13401 2014-02-19 Tom Tromey <tromey@redhat.com>
13402
13403 * target.h (struct target_ops) <to_terminal_inferior>: Add
13404 argument.
13405 * target.c (target_terminal_inferior): Add argument.
13406 (update_current_target): Update.
13407 * remote.c (remote_terminal_inferior): Add 'self' argument.
13408 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13409 * inflow.c (terminal_inferior): Add 'self' argument.
13410 * inferior.h (terminal_inferior): Add 'self' argument.
13411 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13412 (go32_terminal_inferior): Add 'self' argument.
13413
13414 2014-02-19 Tom Tromey <tromey@redhat.com>
13415
13416 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13417 (target_terminal_init): Add argument.
13418 * target.c (debug_to_terminal_init): Add argument.
13419 (update_current_target): Update.
13420 * inflow.c (terminal_init_inferior): Add 'self' argument.
13421 * inferior.h (terminal_init_inferior): Add 'self' argument.
13422 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13423 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13424
13425 2014-02-19 Tom Tromey <tromey@redhat.com>
13426
13427 * target.h (struct target_ops)
13428 <to_can_accel_watchpoint_condition>: Add argument.
13429 (target_can_accel_watchpoint_condition): Add argument.
13430 * target.c (debug_to_can_accel_watchpoint_condition): Add
13431 argument.
13432 (update_current_target): Update.
13433 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13434 'self' argument.
13435
13436 2014-02-19 Tom Tromey <tromey@redhat.com>
13437
13438 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13439 Add argument.
13440 (target_region_ok_for_hw_watchpoint): Add argument.
13441 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13442 (default_region_ok_for_hw_watchpoint): Add argument.
13443 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13444 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13445 argument.
13446 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13447 argument.
13448 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13449 argument.
13450 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13451 'self' argument.
13452 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13453 'self' argument.
13454 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13455 'self' argument.
13456 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13457 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13458 'self' argument.
13459 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13460 Add 'self' argument.
13461
13462 2014-02-19 Tom Tromey <tromey@redhat.com>
13463
13464 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13465 argument.
13466 (target_insert_watchpoint): Add argument.
13467 * target.c (debug_to_insert_watchpoint): Add argument.
13468 (update_current_target): Update.
13469 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13470 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13471 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13472 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13473 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13474 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13475 argument.
13476 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13477 (procfs_insert_hw_watchpoint): Add 'self' argument.
13478 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13479 argument.
13480 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13481 argument.
13482 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13483 argument.
13484 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13485 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13486 argument.
13487 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13488 'self' argument.
13489
13490 2014-02-19 Tom Tromey <tromey@redhat.com>
13491
13492 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13493 argument.
13494 (target_remove_watchpoint): Add argument.
13495 * target.c (debug_to_remove_watchpoint): Add argument.
13496 (update_current_target): Update.
13497 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13498 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13499 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13500 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13501 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13502 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13503 argument.
13504 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13505 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13506 argument.
13507 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13508 argument.
13509 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13510 argument.
13511 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13512 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13513 argument.
13514 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13515 'self' argument.
13516
13517 2014-02-19 Tom Tromey <tromey@redhat.com>
13518
13519 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13520 argument.
13521 (target_remove_hw_breakpoint): Add argument.
13522 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13523 (update_current_target): Update.
13524 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13525 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13526 argument.
13527 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13528 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13529 argument.
13530 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13531 'self' argument.
13532
13533 2014-02-19 Tom Tromey <tromey@redhat.com>
13534
13535 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13536 argument.
13537 (target_insert_hw_breakpoint): Add argument.
13538 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13539 (update_current_target): Update.
13540 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13541 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13542 argument.
13543 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13544 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13545 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13546 argument.
13547 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13548 'self' argument.
13549
13550 2014-02-19 Tom Tromey <tromey@redhat.com>
13551
13552 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13553 argument.
13554 (target_can_use_hardware_watchpoint): Add argument.
13555 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13556 (update_current_target): Update.
13557 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13558 argument.
13559 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13560 argument.
13561 * remote.c (remote_check_watch_resources): Add 'self' argument.
13562 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13563 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13564 argument.
13565 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13566 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13567 argument.
13568 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13569 argument.
13570 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13571 argument.
13572 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13573 argument.
13574 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13575 argument.
13576 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13577 argument.
13578 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13579 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13580 argument.
13581 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13582 'self' argument.
13583
13584 2014-02-19 Tom Tromey <tromey@redhat.com>
13585
13586 * target.h (struct target_ops) <to_post_attach>: Add argument.
13587 (target_post_attach): Add argument.
13588 * target.c (debug_to_post_attach): Add argument.
13589 (update_current_target): Update.
13590 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13591 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13592 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13593 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13594 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13595
13596 2014-02-19 Tom Tromey <tromey@redhat.com>
13597
13598 * windows-nat.c (windows_close): Add 'self' argument.
13599 * tracepoint.c (tfile_close): Add 'self' argument.
13600 * target.h (struct target_ops) <to_close>: Add argument.
13601 * target.c (target_close): Add argument.
13602 (update_current_target): Update.
13603 * remote.c (remote_close): Add 'self' argument.
13604 * remote-sim.c (gdbsim_close): Add 'self' argument.
13605 * remote-mips.c (mips_close): Add 'self' argument.
13606 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13607 * record-full.c (record_full_close): Add 'self' argument.
13608 * record-btrace.c (record_btrace_close): Add 'self' argument.
13609 * monitor.h (monitor_close): Add 'self' argument.
13610 * monitor.c (monitor_close): Add 'self' argument.
13611 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13612 * linux-nat.c (linux_nat_close): Add argument.
13613 * go32-nat.c (go32_close): Add 'self' argument.
13614 * exec.c (exec_close_1): Add 'self' argument.
13615 * ctf.c (ctf_close): Add 'self' argument.
13616 * corelow.c (core_close): Add 'self' argument.
13617 (core_close_cleanup): Update.
13618 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13619 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13620
13621 2014-02-19 Tom Tromey <tromey@redhat.com>
13622
13623 * remote.c (remote_load): New function.
13624 (init_remote_ops): Use it.
13625
13626 2014-02-19 Tom Tromey <tromey@redhat.com>
13627
13628 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13629 argument.
13630 * common/linux-btrace.h (linux_supports_btrace): Update.
13631 * remote.c (remote_supports_btrace): Add "self" argument.
13632 * target-delegates.c: Rebuild.
13633 * target.c (target_supports_btrace): Remove.
13634 * target.h (struct target_ops) <to_supports_btrace>: Add
13635 target_ops argument.
13636 (target_supports_btrace): New define.
13637
13638 2014-02-19 Tom Tromey <tromey@redhat.com>
13639
13640 * record-full.c (record_full_beneath_to_resume_ops)
13641 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13642 (record_full_beneath_to_wait)
13643 (record_full_beneath_to_store_registers_ops)
13644 (record_full_beneath_to_store_registers)
13645 (record_full_beneath_to_xfer_partial_ops)
13646 (record_full_beneath_to_xfer_partial)
13647 (record_full_beneath_to_insert_breakpoint_ops)
13648 (record_full_beneath_to_insert_breakpoint)
13649 (record_full_beneath_to_remove_breakpoint_ops)
13650 (record_full_beneath_to_remove_breakpoint)
13651 (record_full_beneath_to_stopped_by_watchpoint)
13652 (record_full_beneath_to_stopped_data_address)
13653 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13654 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13655 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13656 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13657 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13658 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13659 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13660 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13661 (record_full_resume, record_full_wait_1)
13662 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13663 (record_full_store_registers, record_full_xfer_partial)
13664 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13665 (record_full_async, record_full_core_xfer_partial): Use target
13666 delegation.
13667 * target-delegates.c: Rebuild.
13668 * target.c (current_xfer_partial): Remove.
13669 (update_current_target): Do not INHERIT or de_fault
13670 to_insert_breakpoint, to_remove_breakpoint,
13671 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13672 to_is_async_p, to_async. Do not set to_xfer_partial field.
13673 (default_xfer_partial): Simplify.
13674 (current_xfer_partial): Remove.
13675 (target_wait, target_resume): Simplify.
13676 (find_default_can_async_p, find_default_is_async_p): Update.
13677 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13678 to_xfer_partial, to_stopped_by_watchpoint,
13679 to_stopped_data_address.
13680 (target_store_registers): Simplify.
13681 (forward_target_remove_breakpoint)
13682 (forward_target_insert_breakpoint): Remove.
13683 (target_remove_breakpoint, target_insert_breakpoint)
13684 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13685 * target.h (struct target_ops) <to_resume, to_wait,
13686 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13687 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13688 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13689 markup.
13690 (forward_target_remove_breakpoint)
13691 (forward_target_insert_breakpoint): Remove.
13692 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13693 directly.
13694 (record_btrace_insert_breakpoint): Delegate directly.
13695
13696 2014-02-19 Tom Tromey <tromey@redhat.com>
13697
13698 PR build/7701:
13699 * target-delegates.c: New file.
13700 * target.c: Include target-delegates.c.
13701 (init_dummy_target): Call install_dummy_methods.
13702 (complete_target_initialization): Call install_delegators.
13703 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13704 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13705 * make-target-delegates: New file.
13706
13707 2014-02-19 Tom Tromey <tromey@redhat.com>
13708
13709 * record.c (find_record_target): Use find_target_at.
13710 * target.c (find_target_at): New function.
13711 * target.h (find_target_at): Declare.
13712
13713 2014-02-19 Tom Tromey <tromey@redhat.com>
13714
13715 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13716 Add 'ops' argument.
13717 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13718 'ops' argument.
13719 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13720 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13721 'ops' argument.
13722 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13723 argument.
13724 * linux-nat.c (save_sigtrap): Update.
13725 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13726 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13727 (linux_nat_close): Update.
13728 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13729 argument.
13730 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13731 argument.
13732 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13733 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13734 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13735 (tmp_to_async): Add 'ops' argument.
13736 (record_full_stopped_by_watchpoint, record_full_async)
13737 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13738 argument.
13739 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13740 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13741 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13742 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13743 (remote_is_async_p, remote_async): Add 'ops' argument.
13744 (remote_stopped_data_address): Update.
13745 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13746 * target.c (update_current_target)
13747 (find_default_can_async_p, find_default_is_async_p): Update.
13748 (init_dummy_target): Update.
13749 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13750 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13751 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13752 (target_can_async_p, target_is_async_p, target_async)
13753 (target_stopped_by_watchpoint): Update.
13754
13755 2014-02-19 Yao Qi <yao@codesourcery.com>
13756
13757 PR gdb/16220
13758 * gdbarch.sh: Remove startup_gdbarch.
13759 * gdbarch.c: Regenerated.
13760 * gdbarch.h: Likewise.
13761
13762 2014-02-17 Kevin Buettner <kevinb@redhat.com>
13763
13764 * rl78-tdep.c (rl78_g10_register_name): New function.
13765 (rl78_return_value): Add g10 support.
13766 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13767 g10.
13768
13769 2014-02-17 Doug Evans <xdje42@gmail.com>
13770
13771 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13772 (SUBDIR_GUILE_SRCS): Ditto.
13773 (scm-gsmob.o): Ditto.
13774
13775 2014-02-17 Yao Qi <yao@codesourcery.com>
13776
13777 * gnu-nat.c (ILL_RPC): Declare defined function.
13778
13779 2014-02-17 Yao Qi <yao@codesourcery.com>
13780
13781 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13782 mach_msg_type_number_t.
13783 (gnu_write_inferior): Likewise.
13784
13785 2014-02-17 Yao Qi <yao@codesourcery.com>
13786
13787 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13788 in format string.
13789 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13790 (inf_validate_procs, inf_signal): Likewise.
13791 (S_exception_raise_request): Likewise.
13792 (do_mach_notify_dead_name): Likewise.
13793 (steal_exc_port): Likewise.
13794 (gnu_read_inferior): Change 'copy_count''s type to
13795 mach_msg_type_number_t.
13796 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13797 format string.
13798
13799 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13800
13801 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13802 flag. Adjust all users; in particular...
13803 (gnu_wait): ..., don't decrement its value in here...
13804 (gnu_create_inferior): ..., and instead set the flag in here,
13805 around the startup_inferior call, and call that one with
13806 START_INFERIOR_TRAPS_EXPECTED.
13807
13808 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13809 (ILL_RPC): ... new macro.
13810 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13811 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13812 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13813 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13814 functions with ILL_RPC macro.
13815 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13816 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13817 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13818 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13819 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13820 (S_proc_getlogin_reply, S_proc_getsid_reply)
13821 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13822 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13823 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13824 (S_proc_getnports_reply, S_proc_is_important_reply)
13825 (S_proc_get_code_reply): New stub functions, generated with
13826 ILL_RPC macro.
13827
13828 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13829 collected the type check structures.
13830
13831 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13832
13833 2014-02-14 Doug Evans <dje@google.com>
13834
13835 * target.c (target_write_partial): Fix result type.
13836
13837 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13838
13839 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13840 the proper offsets to access fpregset_t.
13841
13842 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13843
13844 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13845 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13846 * h8300-tdep.c (setmachinelist): Remove global.
13847 * hppa-tdep.c (hppa_sigtramp): Remove global.
13848 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13849 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13850 * ravenscar-thread.c (update_target_observer): Remove global.
13851 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13852
13853 2014-02-12 Tom Tromey <tromey@redhat.com>
13854
13855 * common/rsp-low.c: Update comments.
13856 * common/rsp-low.h: Update comments.
13857
13858 2014-02-12 Tom Tromey <tromey@redhat.com>
13859
13860 * common/rsp-low.c (convert_ascii_to_int): Remove.
13861 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13862
13863 2014-02-12 Tom Tromey <tromey@redhat.com>
13864
13865 * common/rsp-low.h (unhexify): Don't declare.
13866 * common/rsp-low.c (unhexify): Remove.
13867
13868 2014-02-12 Tom Tromey <tromey@redhat.com>
13869
13870 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13871 * common/rsp-low.c (convert_int_to_ascii): Remove.
13872
13873 2014-02-12 Tom Tromey <tromey@redhat.com>
13874
13875 * common/rsp-low.h (hexify): Don't declare.
13876 * common/rsp-low.c (hexify): Remove.
13877
13878 2014-02-12 Tom Tromey <tromey@redhat.com>
13879
13880 * common/rsp-low.c (hexify): Never take strlen of argument.
13881
13882 2014-02-12 Tom Tromey <tromey@redhat.com>
13883
13884 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13885 * remote.c (extended_remote_run, remote_rcmd)
13886 (remote_download_trace_state_variable, remote_save_trace_data)
13887 (remote_set_trace_notes): Update.
13888 * tracepoint.c (encode_source_string, tfile_write_status)
13889 (tfile_write_uploaded_tsv): Update.
13890
13891 2014-02-12 Tom Tromey <tromey@redhat.com>
13892
13893 * tracepoint.c: Include rsp-low.h.
13894 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13895 * remote.c: Include rsp-low.h.
13896 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13897 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13898 (remote_unescape_input): Move to common/rsp-low.c.
13899 * common/rsp-low.h: New file.
13900 * common/rsp-low.c: New file.
13901 * Makefile.in (SFILES): Add common/rsp-low.c.
13902 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13903 (COMMON_OBS): Add rsp-low.o.
13904 (rsp-low.o): New target.
13905
13906 2014-02-12 Tom Tromey <tromey@redhat.com>
13907
13908 * utils.h: Include print-utils.h.
13909 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13910 (int_string, core_addr_to_string, core_addr_to_string_nz)
13911 (hex_string, hex_string_custom): Don't declare.
13912 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13913 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13914 (hex_string_custom, int_string, core_addr_to_string)
13915 (core_addr_to_string_nz, host_address_to_string): Move to
13916 common/print-utils.c.
13917 * common/print-utils.h: New file.
13918 * common/print-utils.c: New file
13919 * Makefile.in (SFILES): Add common/print-utils.c.
13920 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13921 (COMMON_OBS): Add print-utils.o.
13922 (print-utils.o): New target.
13923
13924 2014-02-12 Tom Tromey <tromey@redhat.com>
13925
13926 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13927
13928 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13929
13930 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13931
13932 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13933
13934 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13935 if a PT_IO ptrace request returns sucessfully but indicates that 0
13936 bytes were transferred.
13937
13938 2014-02-12 Pedro Alves <palves@redhat.com>
13939 Kevin Buettner <kevinb@redhat.com>
13940
13941 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13942 TYPE_INSTANCE_FLAG_CODE_SPACE.
13943
13944 2014-02-12 Pedro Alves <palves@redhat.com>
13945
13946 * h8300-tdep.c (pseudo_from_raw_register)
13947 (raw_from_pseudo_register): New functions.
13948 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13949 them.
13950
13951 2014-02-12 Pedro Alves <palves@redhat.com>
13952
13953 * h8300-tdep.c (h8300_register_sim_regno): New function.
13954 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13955 gdbarch_register_sim_regno hook.
13956
13957 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13958
13959 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13960
13961 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13962
13963 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13964
13965 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13966
13967 * obsd-tdep.h (obsd_init_abi): New prototype.
13968 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13969 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13970 (obsd_init_abi): New functions.
13971 * i386obsd-tdep.c: Include "obsd-tdep.h".
13972 (i386obsd_init_abi): Call obsd_init_abi.
13973 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13974 (amd64obsd_init_abi): Call obsd_init_abi.
13975 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13976 obsd-tdep.c to gdb_target_obs.
13977
13978 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13979
13980 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13981 double float arguments to 16-byte in the argument slots.
13982
13983 2014-02-11 Doug Evans <xdje42@gmail.com>
13984
13985 * configure.ac: Don't crash if pkg-config is not found and guile
13986 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13987 in guile checks.
13988 * configure: Regenerate.
13989
13990 2014-02-11 Yao Qi <yao@codesourcery.com>
13991
13992 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13993 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13994 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13995 * gnu-nat.c (gnu_xfer_memory): Likewise.
13996 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13997 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13998 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13999 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14000
14001 2014-02-11 Yao Qi <yao@codesourcery.com>
14002
14003 * target.h (enum target_xfer_error): Rename to ...
14004 (enum target_xfer_status): ... it. New. All users updated.
14005 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
14006 New.
14007 (TARGET_XFER_STATUS_ERROR_P): New macro.
14008 (target_xfer_error_to_string): Remove declaration.
14009 (target_xfer_status_to_string): Declare.
14010 (target_xfer_partial_ftype): Adjust it.
14011 (struct target_ops) <to_xfer_partial>: Return
14012 target_xfer_status. Add argument xfered_len. Update
14013 comments.
14014 * target.c (target_xfer_error_to_string): Rename to ...
14015 (target_xfer_status_to_string): ... it. New. All callers
14016 updated.
14017 (target_read_live_memory): Likewise. Call target_xfer_partial
14018 instead of target_read.
14019 (memory_xfer_live_readonly_partial): Return
14020 target_xfer_status. Add argument xfered_len.
14021 (raw_memory_xfer_partial): Likewise.
14022 (memory_xfer_partial_1): Likewise.
14023 (memory_xfer_partial): Likewise.
14024 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
14025 properly. Update debug message.
14026 (default_xfer_partial, current_xfer_partial): Likewise.
14027 (target_write_partial): Likewise.
14028 (target_read_partial): Likewise. All callers updated.
14029 (read_whatever_is_readable): Likewise.
14030 (target_write_with_progress): Likewise.
14031 (target_read_alloc_1): Likewise.
14032
14033 * aix-thread.c (aix_thread_xfer_partial): Likewise.
14034 * auxv.c (procfs_xfer_auxv): Likewise.
14035 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
14036 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14037 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14038 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
14039 * corefile.c (read_memory): Adjust.
14040 * corelow.c (core_xfer_partial): Likewise.
14041 * ctf.c (ctf_xfer_partial): Likewise.
14042 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
14043 updated.
14044 (darwin_xfer_partial): Likewise.
14045 * exec.c (section_table_xfer_memory_partial): Likewise. All
14046 callers updated.
14047 (exec_xfer_partial): Likewise.
14048 * exec.h (section_table_xfer_memory_partial): Update
14049 declaration.
14050 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
14051 negative.
14052 (gnu_xfer_partial): Likewise.
14053 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
14054 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
14055 (ia64_hpux_xfer_solib_got): Likewise.
14056 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
14057 type of 'partial_len' to ULONGEST.
14058 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14059 * linux-nat.c (linux_xfer_siginfo ): Likewise.
14060 (linux_nat_xfer_partial): Likewise.
14061 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
14062 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
14063 * monitor.c (monitor_xfer_memory): Likewise.
14064 (monitor_xfer_partial): Likewise.
14065 * procfs.c (procfs_xfer_partial): Likewise.
14066 * record-btrace.c (record_btrace_xfer_partial): Likewise.
14067 * record-full.c (record_full_xfer_partial): Likewise.
14068 (record_full_core_xfer_partial): Likewise.
14069 * remote-sim.c (gdbsim_xfer_memory): Likewise.
14070 (gdbsim_xfer_partial): Likewise.
14071 * remote.c (remote_write_bytes_aux): Likewise. All callers
14072 updated.
14073 (remote_write_bytes, remote_read_bytes): Likewise. All
14074 callers updated.
14075 (remote_flash_erase): Likewise. All callers updated.
14076 (remote_write_qxfer): Likewise. All callers updated.
14077 (remote_read_qxfer): Likewise. All callers updated.
14078 (remote_xfer_partial): Likewise.
14079 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14080 (rs6000_xfer_shared_libraries): Likewise.
14081 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14082 (sol_thread_xfer_partial): Likewise.
14083 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14084 (sparc_xfer_partial): Likewise.
14085 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
14086 updated.
14087 (spu_xfer_partial): Likewise.
14088 * spu-multiarch.c (spu_xfer_partial): Likewise.
14089 * tracepoint.c (tfile_xfer_partial): Likewise.
14090 * windows-nat.c (windows_xfer_memory): Likewise.
14091 (windows_xfer_shared_libraries): Likewise.
14092 (windows_xfer_partial): Likewise.
14093 * valprint.c: Replace 'target_xfer_error' with
14094 'target_xfer_status' in comments.
14095
14096 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
14097
14098 Checked in by Joel Brobecker <brobecker@adacore.com>.
14099 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
14100
14101 2014-02-11 Joel Brobecker <brobecker@adacore.com>
14102
14103 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
14104 function parameters.
14105
14106 2014-02-10 Will Newton <will.newton@linaro.org>
14107
14108 * elfread.c (elf_rel_plt_read): Look for a .got section if
14109 looking up .got.plt fails.
14110 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
14111 on address passed to elf_gnu_ifunc_record_cache.
14112 (elf_gnu_ifunc_resolve_addr): Likewise.
14113 (elf_gnu_ifunc_resolver_return_stop): Likewise.
14114
14115 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
14116
14117 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
14118 (X_RETTURN): New macro.
14119 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
14120
14121 * sparc64-tdep.c (sparc64_init_abi): Hook
14122 sparc_in_function_epilogue_p.
14123
14124 2014-02-10 Gary Benson <gbenson@redhat.com>
14125
14126 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14127 Rename name_matcher to symbol_matcher.
14128
14129 2014-02-10 Gary Benson <gbenson@redhat.com>
14130
14131 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14132 Use expand_symtabs_file_matcher_ftype and
14133 expand_symtabs_symbol_matcher_ftype.
14134
14135 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14136
14137 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
14138 (struct ada_symbol_cache): New.
14139 (ada_free_symbol_cache): Forward declare.
14140 (struct ada_pspace_data): New.
14141 (ada_pspace_data_handle): New static global.
14142 (get_ada_pspace_data, ada_pspace_data_cleanup)
14143 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
14144 (cache_space, cache): Delete, now folded inside struct
14145 ada_pspace_data.
14146 (ada_get_symbol_cache): New function.
14147 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
14148 implementation.
14149 (_initialize_ada_language): Remove initialization of cache_space.
14150 Move call to observer_attach_inferior_exit up, grouping it
14151 with the other observer registrations inside this function.
14152 Rename command to be more general. Add call to
14153 register_program_space_data_with_cleanup.
14154
14155 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14156
14157 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
14158 ada_new_objfile_observer.
14159 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
14160 (_initialize_tasks): Update uses of ada_new_objfile_observer
14161 and ada_tasks_normal_stop_observer.
14162
14163 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14164
14165 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
14166 returned by the 'Length attribute to integer.
14167
14168 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14169
14170 * ada-lang.c (_initialize_ada_language): Initialize
14171 cache_space obstack.
14172
14173 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14174
14175 * ada-lang.c (HASH_SIZE): New macro.
14176 (struct cache_entry): New type.
14177 (cache_space, cache): New static globals.
14178 (ada_clear_symbol_cache, find_entry): New functions.
14179 (lookup_cached_symbol, cache_symbol): Implement.
14180 (ada_new_objfile_observer, ada_free_objfile_observer): New.
14181 (_initialize_ada_language): Attach ada_new_objfile_observer
14182 and ada_free_objfile_observer.
14183
14184 2014-02-10 Joel Brobecker <brobecker@adacore.com>
14185
14186 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
14187 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
14188 struct block * parameter.
14189 (ada_lookup_symbol_list_worker): Constify local variable "block".
14190 Remove cast which is no longer necessary.
14191
14192 2014-02-10 Doug Evans <xdje42@gmail.com>
14193
14194 Add Guile as an extension language.
14195 * NEWS: Mention Guile scripting.
14196 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14197 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14198 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14199 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14200 (CLIBS): Add GUILE_LIBS.
14201 (install-guile): New rule.
14202 (guile.o): New rule.
14203 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14204 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14205 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14206 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14207 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14208 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14209 (scm-type.o, scm-utils.o, scm-value.o): New rules.
14210 * configure.ac: New option --with-guile.
14211 * configure: Regenerate.
14212 * config.in: Regenerate.
14213 * auto-load.c: Remove #include "python/python.h". Add #include
14214 "gdb/section-scripts.h".
14215 (source_section_scripts): Handle Guile scripts.
14216 (_initialize_auto_load): Add name of Guile objfile script to
14217 scripts-directory help text.
14218 * breakpoint.c (condition_command): Tweak comment to include Scheme.
14219 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14220 (struct breakpoint): New member scm_bp_object.
14221 * defs.h (enum command_control_type): New value guile_control.
14222 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
14223 "extension.h".
14224 (show_user): Update comment.
14225 (_initialize_cli_cmds): Update help text for "show user". Update help
14226 text for max-user-call-depth.
14227 * cli/cli-script.c: Remove #include "python/python.h". Add #include
14228 "extension.h".
14229 (multi_line_command_p): Add guile_control.
14230 (print_command_lines): Handle guile_control.
14231 (execute_control_command, recurse_read_control_structure): Ditto.
14232 (process_next_line): Recognize "guile" commands.
14233 * disasm.c (gdb_disassemble_info): Make non-static.
14234 * disasm.h: #include "dis-asm.h".
14235 (struct gdbarch): Add forward decl.
14236 (gdb_disassemble_info): Declare.
14237 * extension.c: #include "guile/guile.h".
14238 (extension_languages): Add guile.
14239 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14240 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14241 * gdbtypes.c (get_unsigned_type_max): New function.
14242 (get_signed_type_minmax): New function.
14243 * gdbtypes.h (get_unsigned_type_max): Declare.
14244 (get_signed_type_minmax): Declare.
14245 * guile/README: New file.
14246 * guile/guile-internal.h: New file.
14247 * guile/guile.c: New file.
14248 * guile/guile.h: New file.
14249 * guile/scm-arch.c: New file.
14250 * guile/scm-auto-load.c: New file.
14251 * guile/scm-block.c: New file.
14252 * guile/scm-breakpoint.c: New file.
14253 * guile/scm-disasm.c: New file.
14254 * guile/scm-exception.c: New file.
14255 * guile/scm-frame.c: New file.
14256 * guile/scm-gsmob.c: New file.
14257 * guile/scm-iterator.c: New file.
14258 * guile/scm-lazy-string.c: New file.
14259 * guile/scm-math.c: New file.
14260 * guile/scm-objfile.c: New file.
14261 * guile/scm-ports.c: New file.
14262 * guile/scm-pretty-print.c: New file.
14263 * guile/scm-safe-call.c: New file.
14264 * guile/scm-string.c: New file.
14265 * guile/scm-symbol.c: New file.
14266 * guile/scm-symtab.c: New file.
14267 * guile/scm-type.c: New file.
14268 * guile/scm-utils.c: New file.
14269 * guile/scm-value.c: New file.
14270 * guile/lib/gdb.scm: New file.
14271 * guile/lib/gdb/boot.scm: New file.
14272 * guile/lib/gdb/experimental.scm: New file.
14273 * guile/lib/gdb/init.scm: New file.
14274 * guile/lib/gdb/iterator.scm: New file.
14275 * guile/lib/gdb/printing.scm: New file.
14276 * guile/lib/gdb/types.scm: New file.
14277 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14278 (VPATH): Add $(GUILE_SRCDIR).
14279 (GUILE_DIR): New variable.
14280 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14281 (all): Add stamp-guile dependency.
14282 (stamp-guile): New rule.
14283 (clean-guile, install-guile, uninstall-guile): New rules.
14284 (install-only): Add install-guile dependency.
14285 (uninstall): Add uninstall-guile dependency.
14286 (clean): Add clean-guile dependency.
14287
14288 2014-02-09 Doug Evans <xdje42@gmail.com>
14289
14290 Revert this patch (which I approved, mea culpa).
14291
14292 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14293
14294 * Makefile.in (all-lib): Remove.
14295 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14296
14297 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14298
14299 Fix Python stack corruption.
14300 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14301 gdb_py_longest.
14302
14303 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14304
14305 * Makefile.in (all-lib): Remove.
14306 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14307
14308 2014-02-07 Doug Evans <dje@google.com>
14309
14310 * extension-priv.h (extension_language_script_ops): Add comment.
14311 (extension_language_ops): Add comment.
14312 (active_ext_lang_state): Fix typo in comment.
14313
14314 2014-02-07 Pedro Alves <palves@redhat.com>
14315
14316 PR breakpoints/16292
14317 * infrun.c (handle_signal_stop) <signal arrives while stepping
14318 over a breakpoint>: Switch back to the stepping thread.
14319
14320 2014-02-07 Yao Qi <yao@codesourcery.com>
14321
14322 * target.c (target_xfer_partial): Return zero if LEN is zero.
14323
14324 2014-02-07 Yao Qi <yao@codesourcery.com>
14325
14326 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14327 (ld_so_xfer_auxv): Likewise.
14328 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14329 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14330 * corelow.c (core_xfer_partial): Likewise.
14331 * ctf.c (ctf_xfer_partial): Likewise.
14332 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14333 (darwin_xfer_partial): Likewise.
14334 * exec.c (exec_xfer_partial): Likewise.
14335 * gnu-nat.c (gnu_xfer_partial): Likewise.
14336 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14337 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14338 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14339 * linux-nat.c (linux_xfer_siginfo): Likewise.
14340 (linux_proc_xfer_spu): Likewise.
14341 * procfs.c (procfs_xfer_partial): Likewise.
14342 * record-full.c (record_full_xfer_partial): Likewise.
14343 (record_full_core_xfer_partial): Likewise.
14344 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14345 * remote.c (remote_write_qxfer): Likewise.
14346 (remote_write_qxfer, remote_read_qxfer): Likewise.
14347 (remote_xfer_partial): Likewise.
14348 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14349 (rs6000_xfer_shared_libraries): Likewise.
14350 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14351 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14352 (spu_xfer_partial): Likewise.
14353 * target.c (memory_xfer_partial_1): Likewise.
14354 * tracepoint.c (tfile_xfer_partial): Likewise.
14355 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14356 (windows_xfer_partial): Likewise.
14357
14358 2014-02-07 Yao Qi <yao@codesourcery.com>
14359
14360 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14361 comments.
14362 (core_xfer_shared_libraries_aix): Likewise.
14363 * gdbarch.c, gdbarch.h: Regenerated.
14364 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14365 ULONGEST. Change 'len_avail' type to ULONGEST.
14366 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14367 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14368 declaration.
14369 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14370
14371 2014-02-07 Yao Qi <yao@codesourcery.com>
14372
14373 * corefile.c (memory_error): Get 'exception' from ERR and pass
14374 'exception' to throw_error.
14375
14376 2014-02-06 Doug Evans <xdje42@gmail.com>
14377
14378 * configure.ac (libpython checking): Remove all but python.o from
14379 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14380 * configure: Regenerate.
14381
14382 * Makefile.in (SFILES): Add extension.c.
14383 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14384 (COMMON_OBS): Add extension.o.
14385 * extension.h: New file.
14386 * extension-priv.h: New file.
14387 * extension.c: New file.
14388
14389 * python/python-internal.h: #include "extension.h".
14390 (gdbpy_auto_load_enabled): Declare.
14391 (gdbpy_apply_val_pretty_printer): Declare.
14392 (gdbpy_apply_frame_filter): Declare.
14393 (gdbpy_preserve_values): Declare.
14394 (gdbpy_breakpoint_cond_says_stop): Declare.
14395 (gdbpy_breakpoint_has_cond): Declare.
14396 (void source_python_script_for_objfile): Delete.
14397 * python/python.c: #include "extension-priv.h".
14398 Delete inclusion of "observer.h".
14399 (extension_language_python): Moved here and renamed from
14400 script_language_python in py-auto-load.c.
14401 Redefined to be of type extension_language_defn.
14402 (python_extension_script_ops): New global.
14403 (python_extension_ops): New global.
14404 (struct python_env): New member previous_active.
14405 (restore_python_env): Call restore_active_ext_lang.
14406 (ensure_python_env): Call set_active_ext_lang.
14407 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14408 New arg extlang.
14409 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14410 New arg extlang.
14411 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14412 New arg extlang.
14413 (gdbpy_eval_from_control_command): Renamed from
14414 eval_python_from_control_command, made static. New arg extlang.
14415 (gdbpy_source_script) Renamed from source_python_script, made static.
14416 New arg extlang.
14417 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14418 result to int. New arg extlang.
14419 (gdbpy_source_objfile_script): Renamed from
14420 source_python_script_for_objfile, made static. New arg extlang.
14421 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14422 static. New args extlang, extlang_printers. Change result type to
14423 "void".
14424 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14425 static. New arg extlang. Rename arg printers to extlang_printers
14426 and change type to ext_lang_type_printers *.
14427 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14428 static. Replace argument arg with extlang, extlang_printers.
14429 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14430 (!HAVE_PYTHON, source_python_script): Delete.
14431 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14432 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14433 (!HAVE_PYTHON, start_type_printers): Delete.
14434 (!HAVE_PYTHON, apply_type_printers): Delete.
14435 (!HAVE_PYTHON, free_type_printers): Delete.
14436 (_initialize_python): Delete call to observer_attach_before_prompt.
14437 (finalize_python): Set/restore active extension language.
14438 (gdbpy_finish_initialization) Renamed from
14439 finish_python_initialization, made static. New arg extlang.
14440 (gdbpy_initialized): New function.
14441 * python/python.h: #include "extension.h". Delete #include
14442 "value.h", "mi/mi-cmds.h".
14443 (extension_language_python): Declare.
14444 (GDBPY_AUTO_FILE_NAME): Delete.
14445 (enum py_bt_status): Moved to extension.h and renamed to
14446 ext_lang_bt_status.
14447 (enum frame_filter_flags): Moved to extension.h.
14448 (enum py_frame_args): Moved to extension.h and renamed to
14449 ext_lang_frame_args.
14450 (finish_python_initialization): Delete.
14451 (eval_python_from_control_command): Delete.
14452 (source_python_script): Delete.
14453 (apply_val_pretty_printer): Delete.
14454 (apply_frame_filter): Delete.
14455 (preserve_python_values): Delete.
14456 (gdbpy_script_language_defn): Delete.
14457 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14458 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14459
14460 * auto-load.c: #include "extension.h".
14461 (GDB_AUTO_FILE_NAME): Delete.
14462 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14463 (script_language_gdb): Delete, moved to extension.c and renamed to
14464 extension_language_gdb.
14465 (source_gdb_script_for_objfile): Delete.
14466 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14467 (loaded_script): Change type of language member to
14468 struct extension_language_defn *.
14469 (init_loaded_scripts_info): Initialize
14470 unsupported_script_warning_printed.
14471 (maybe_add_script): Make static. Change type of language arg to
14472 struct extension_language_defn *.
14473 (clear_section_scripts): Reset unsupported_script_warning_printed.
14474 (auto_load_objfile_script_1): Rewrite to use extension language API.
14475 (auto_load_objfile_script): Make public. Remove support-compiled-in
14476 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14477 (source_section_scripts): Rewrite to use extension language API.
14478 (load_auto_scripts_for_objfile): Rewrite to use
14479 auto_load_scripts_for_objfile.
14480 (collect_matching_scripts_data): Change type of language member to
14481 struct extension_language_defn *.
14482 (auto_load_info_scripts): Change type of language arg to
14483 struct extension_language_defn *.
14484 (unsupported_script_warning_print): New function.
14485 (script_not_found_warning_print): Make static.
14486 (_initialize_auto_load): Rewrite construction of scripts-directory
14487 help.
14488 * auto-load.h (struct objfile): Add forward decl.
14489 (struct script_language): Delete.
14490 (struct auto_load_pspace_info): Add forward decl.
14491 (struct extension_language_defn): Add forward decl.
14492 (maybe_add_script): Delete.
14493 (auto_load_objfile_script): Declare.
14494 (script_not_found_warning_print): Delete.
14495 (auto_load_info_scripts): Update prototype.
14496 (auto_load_gdb_scripts_enabled): Declare.
14497 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14498 auto_load_python_scripts_enabled and made public.
14499 (script_language_python): Delete, moved to python.c.
14500 (gdbpy_script_language_defn): Delete.
14501 (info_auto_load_python_scripts): Update to use
14502 extension_language_python.
14503
14504 * breakpoint.c (condition_command): Replace call to
14505 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14506 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14507 with call to breakpoint_ext_lang_cond_says_stop.
14508 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14509 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14510 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14511 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14512 New arg slang.
14513 (local_setattro): Print name of extension language with existing
14514 stop condition.
14515
14516 * valprint.c (val_print, value_print): Update to call
14517 apply_ext_lang_val_pretty_printer.
14518 * cp-valprint.c (cp_print_value): Update call to
14519 apply_ext_lang_val_pretty_printer.
14520 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14521 (gdbpy_apply_val_pretty_printer): Renamed from
14522 apply_val_pretty_printer. New arg extlang.
14523 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14524
14525 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14526 extension language API.
14527 * cli/cli-script.c (execute_control_command): Update to call
14528 eval_ext_lang_from_control_command.
14529
14530 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14531 enum ext_lang_bt_status values. Update call to
14532 apply_ext_lang_frame_filter.
14533 (mi_cmd_stack_list_locals): Ditto.
14534 (mi_cmd_stack_list_args): Ditto.
14535 (mi_cmd_stack_list_variables): Ditto.
14536 * mi/mi-main.c: Delete #include "python/python-internal.h".
14537 Add #include "extension.h".
14538 (mi_cmd_list_features): Replace reference to python internal variable
14539 gdb_python_initialized with call to ext_lang_initialized_p.
14540
14541 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14542 Update to use enum ext_lang_frame_args. Update to call
14543 apply_ext_lang_frame_filter.
14544 * python/py-framefilter.c (extract_sym): Update to use enum
14545 ext_lang_bt_status.
14546 (extract_value, py_print_type, py_print_value): Ditto.
14547 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14548 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14549 (py_print_frame): Ditto.
14550 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14551 New arg extlang. Update to use enum ext_lang_bt_status.
14552
14553 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14554 finish_python_initialization. Replace with call to
14555 finish_ext_lang_initialization.
14556
14557 * typeprint.c (do_free_global_table): Update to call
14558 free_ext_lang_type_printers.
14559 (create_global_typedef_table): Update to call
14560 start_ext_lang_type_printers.
14561 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14562 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14563 (type_print_options): Change type of global_printers from "void *"
14564 to "struct ext_lang_type_printers *".
14565
14566 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14567 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14568 (gdbpy_preserve_values): Renamed from preserve_python_values.
14569 New arg extlang.
14570 (!HAVE_PYTHON, preserve_python_values): Delete.
14571
14572 * utils.c (quit_flag): Delete, moved to extension.c.
14573 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14574 extension.c.
14575
14576 * eval.c: Delete #include "python/python.h".
14577 * main.c: Delete #include "python/python.h".
14578
14579 * defs.h: Update comment.
14580
14581 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14582
14583 GDB 7.7 released.
14584
14585 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14586
14587 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14588 defined.
14589
14590 2014-02-05 Yao Qi <yao@codesourcery.com>
14591
14592 * remote.c (remote_pass_signals): Remove local 'buf' and use
14593 rs->buf.
14594 (remote_program_signals): Likewise.
14595
14596 2014-02-05 Yao Qi <yao@codesourcery.com>
14597
14598 * ctf.c: Include "inferior.h" and "gdbthread.h".
14599 (CTF_PID): A new macro.
14600 (ctf_open): Call inferior_appeared and add_thread_silent.
14601 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14602 (ctf_thread_alive): New function.
14603 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14604
14605 2014-02-05 Yao Qi <yao@codesourcery.com>
14606
14607 Revert this patch:
14608
14609 2013-05-24 Yao Qi <yao@codesourcery.com>
14610
14611 * tracepoint.c (TFILE_PID): Remove.
14612 (tfile_open): Don't add thread and inferior.
14613 (tfile_close): Don't set 'inferior_ptid'. Don't call
14614 exit_inferior_silent.
14615 (tfile_thread_alive): Remove.
14616 (init_tfile_ops): Don't set field 'to_thread_alive' of
14617 tfile_ops.
14618
14619 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14620
14621 * remote.c (remote_start_remote): Call remote_check_symbols even
14622 if only symbol-file (not file) has been given.
14623
14624 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14625
14626 * gdbarch.sh (skip_entrypoint): New callback.
14627 * gdbarch.c, gdbarch.h: Regenerate.
14628 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14629 * infrun.c (fill_in_stop_func): Likewise.
14630 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14631 (ppc_elfv2_elf_make_msymbol_special): New function.
14632 (ppc_elfv2_skip_entrypoint): Likewise.
14633 (ppc_linux_init_abi): Install them for ELFv2.
14634
14635 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14636
14637 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14638 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14639 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14640 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14641 structures returned in GPRs.
14642
14643 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14644
14645 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14646 offset to the stack parameter list for the ELFv2 ABI.
14647
14648 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14649
14650 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14651 set_gdbarch_convert_from_func_ptr_addr and
14652 set_gdbarch_elf_make_msymbol_special for ELFv1.
14653 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14654 function descriptors on ELFv1.
14655 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14656 set up r12 at function entry.
14657
14658 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14659
14660 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14661 (struct gdbarch_tdep): New member elf_abi.
14662
14663 * rs6000-tdep.c: Include "elf/ppc64.h".
14664 (rs6000_gdbarch_init): Detect ELF ABI version.
14665
14666 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14667
14668 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14669 within a register pair holding a DFP 128-bit value on little-endian.
14670 (ppc64_sysv_abi_return_value_base): Likewise.
14671 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14672 (dfp_pseudo_register_write): Likewise.
14673
14674 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14675
14676 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14677 offset on little-endian when passing _Decimal32.
14678 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14679
14680 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14681
14682 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14683 of the overlapped FP register within the VSX register on little-
14684 endian platforms.
14685 (efpr_pseudo_register_write): Likewise.
14686
14687 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14688
14689 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14690 offset on little-endian when passing small structures.
14691
14692 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14693
14694 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14695 (struct ppc64_sysv_argpos): New data structure.
14696 (ppc64_sysv_abi_push_float): Remove.
14697 (ppc64_sysv_abi_push_val): New function.
14698 (ppc64_sysv_abi_push_integer): Likewise.
14699 (ppc64_sysv_abi_push_freg): Likewise.
14700 (ppc64_sysv_abi_push_vreg): Likewise.
14701 (ppc64_sysv_abi_push_param): Likewise.
14702 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14703 (ppc64_sysv_abi_return_value_base): New function.
14704 (ppc64_sysv_abi_return_value): Refactor to use it.
14705
14706 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14707
14708 * NEWS: Document new target powerpc64le-*-linux*.
14709
14710 2014-02-04 Mark Kettenis <kettenis@gnu.org>
14711
14712 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14713 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14714 core dumps.
14715 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14716 register set used in ELF core dumps. Add floating-point register set.
14717
14718 2014-02-03 Kevin Buettner <kevinb@redhat.com>
14719
14720 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14721 dwarf2_to_gdb[] table using symbolic constants. Adjust
14722 penultimate entry from number representing the PC register
14723 to symbolic constant representing the MDR register. Add
14724 constant for the PC register to the end of the table.
14725
14726 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14727
14728 * bsd-kvm.c: Include <sys/param.h>
14729
14730 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14731
14732 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14733
14734 2014-01-31 Joel Brobecker <brobecker@adacore.com>
14735
14736 * ada-lang.h (clear_ada_sym_cache): Delete.
14737
14738 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14739
14740 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14741
14742 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14743
14744 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14745 the sigreturn register save area only if the syscall is
14746 sigreturn.
14747
14748 2014-01-29 Joel Brobecker <brobecker@adacore.com>
14749
14750 * valops.c (value_slice): Minor reformatting.
14751
14752 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14753
14754 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14755
14756 2014-01-28 Joel Brobecker <brobecker@adacore.com>
14757
14758 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14759 New static globals.
14760 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14761 (ada_ignore_descriptive_types_p): New static global.
14762 (find_parallel_type_by_descriptive_type): Return immediately
14763 if ada_ignore_descriptive_types_p is set.
14764 (_initialize_ada_language): Register new commands "maintenance
14765 set ada", "maintenance show ada", "maintenance set ada
14766 ignore-descriptive-types" and "maintenance show ada
14767 ignore-descriptive-types".
14768 * NEWS: Add entry for new "maint ada set/show
14769 ignore-descriptive-types" commands.
14770
14771 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14772
14773 * record-btrace.c (record_btrace_close): Call btrace_teardown
14774 for all threads.
14775
14776 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14777
14778 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14779 "ui-out.h".
14780
14781 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14782
14783 * ada-typeprint (type_is_full_subrange_of_target_type):
14784 New function.
14785 (print_range): Add parameter bounds_prefered_p. If not set,
14786 try printing range types using the name of their base type.
14787 (print_range_type): Add parameter bounds_prefered_p.
14788 Use it in call to print_range.
14789 (print_array_type, ada_print_type): Update calls to print_range
14790 and print_range_type.
14791
14792 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14793
14794 * ada-typeprint.c (print_array_type, print_choices, print_range)
14795 (print_range_bound, print_dynamic_range_bound, print_range_type):
14796 Remove declaration.
14797
14798 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14799
14800 * ada-typeprint.c (print_range): Add missing empty line
14801 after local declaration.
14802
14803 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14804
14805 * ada-valprint.c (print_optional_low_bound): Get index_type's
14806 target type for as long as it is a TYPE_CODE_RANGE.
14807
14808 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14809
14810 * procfs.c (procfs_make_note_section): Remove assertion and
14811 associated comment.
14812
14813 2014-01-24 Yao Qi <yao@codesourcery.com>
14814
14815 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14816 * corelow.c (get_core_siginfo): Likewise.
14817
14818 2014-01-24 Yao Qi <yao@codesourcery.com>
14819
14820 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14821 ULONGEST. Don't check 'len' is negative.
14822 (remote_write_bytes): Change type of 'len' to ULONGEST.
14823
14824 2014-01-23 Tom Tromey <tromey@redhat.com>
14825
14826 PR python/16485:
14827 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14828 Handle exception from frame.block.
14829 (FrameVars.fetch_frame_locals): Likewise.
14830
14831 2014-01-23 Tom Tromey <tromey@redhat.com>
14832
14833 PR python/16487:
14834 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14835 on a NULL pointer. Move "goto error" to correct place.
14836
14837 2014-01-23 Tom Tromey <tromey@redhat.com>
14838
14839 PR python/16491:
14840 * python/py-framefilter.c (apply_frame_filter): Call
14841 ensure_python_env after computing gdbarch.
14842
14843 2014-01-23 Yao Qi <yao@codesourcery.com>
14844
14845 * target.c (raw_memory_xfer_partial): Change argument type
14846 from void * to gdb_byte *.
14847 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14848
14849 2014-01-22 Doug Evans <dje@google.com>
14850
14851 New gdbserver option --debug-format=timestamp.
14852 * NEWS: Mention it.
14853
14854 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14855
14856 * syscalls/s390x-linux.xml: New file.
14857 * syscalls/s390-linux.xml: New file.
14858 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14859 (XML_SYSCALL_FILENAME_S390X): Likewise.
14860 (op_svc): New enum value for SVC opcode.
14861 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14862 (s390_linux_get_syscall_number): New function.
14863 (s390_gdbarch_init): Register '*get_syscall_number' and the
14864 syscall xml file name.
14865 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14866 "s390-linux.xml" and "s390x-linux.xml".
14867 * NEWS: Announce new feature.
14868
14869 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14870
14871 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14872
14873 2014-01-22 Pedro Alves <palves@redhat.com>
14874
14875 * xtensa-config.c: Include defs.h.
14876
14877 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14878
14879 * common/common-utils.h: Add "ARI:" comment beside __func__
14880 reference.
14881
14882 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14883
14884 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14885 documentation a bit.
14886
14887 2014-01-21 Roland McGrath <mcgrathr@google.com>
14888
14889 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14890 * configure: Regenerate.
14891 * aclocal.m4: Regenerate.
14892 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14893 New substituted variables.
14894 (install-strip): New target.
14895 (INSTALL_SCRIPT): New substituted variable.
14896 (FLAGS_TO_PASS): Add it.
14897 (install-only): Use $(INSTALL_SCRIPT) rather than
14898 $(INSTALL_PROGRAM) for gcore.
14899
14900 2014-01-20 Tom Tromey <tromey@redhat.com>
14901
14902 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14903 together.
14904
14905 2014-01-20 Tom Tromey <tromey@redhat.com>
14906
14907 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14908 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14909 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14910 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14911 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14912 (struct cmd_list_element) <flags>: Remove.
14913 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14914 doc_allocated>: New fields.
14915 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14916 bitfields.
14917 * maint.c (maintenance_do_deprecate): Update.
14918 * top.c (execute_command): Update.
14919
14920 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14921
14922 * xtensa-linux-nat.c: Include asm/ptrace.h.
14923
14924 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14925
14926 * Makefile.in (SFILES): Add d-support.c.
14927 (COMMON_OBS): Add d-support.o.
14928 * d-lang.h (d_parse_symbol): Add comment, now defined in
14929 d-support.c.
14930 * d-lang.c (parse_call_convention)
14931 (parse_attributes, parse_function_types)
14932 (parse_function_args, parse_type, parse_identifier)
14933 (call_convention_p, d_parse_symbol): Move functions to ...
14934 * d-support.c: ... New file.
14935
14936 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14937
14938 * d-lang.h (d_parse_symbol): Add declaration.
14939 * d-lang.c (extract_identifiers)
14940 (extract_type_info): Remove functions.
14941 (parse_call_convention, parse_attributes)
14942 (parse_function_types, parse_function_args)
14943 (parse_type, parse_identifier, call_convention_p)
14944 (d_parse_symbol): New functions.
14945 (d_demangle): Use d_parse_symbol to demangle D symbols.
14946
14947 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14948
14949 * d-lang.h (struct builtin_d_type): New data type.
14950 (builtin_d_type): Add declaration.
14951 * d-lang.c (d_language_arch_info, build_d_types)
14952 (builtin_d_type): New functions.
14953 (enum d_primitive_types): New data type.
14954 (d_language_defn): Change c_language_arch_info to
14955 d_language_arch_info.
14956 (d_type_data): New static variable.
14957 (_initialize_d_language): Initialize d_type_data.
14958
14959 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14960
14961 * d-lang.h (d_main_name): Add declaration.
14962 * d-lang.c (d_main_name): New function.
14963 * symtab.c (find_main_name): Add call to d_main_name.
14964
14965 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14966
14967 * d-lang.c (d_language_defn): Change macro_expansion_c to
14968 macro_expansion_no.
14969
14970 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14971
14972 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14973
14974 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14975
14976 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14977 gdb_exception" declaration.
14978 * remote.c (getpkt_or_notif_sane): Likewise.
14979
14980 2014-01-17 Doug Evans <dje@google.com>
14981
14982 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14983 function, contents of dirnames_to_char_ptr_vec_append moved here.
14984 (delim_string_to_char_ptr_vec): New function.
14985 (dirnames_to_char_ptr_vec_append): Rewrite.
14986 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14987
14988 2014-01-17 Doug Evans <dje@google.com>
14989
14990 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14991 and moved here ...
14992 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14993 #include "common-utils.h".
14994 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14995 * common/vec.h (VEC_ASSERT_PASS): Update.
14996 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14997 (MACH_CHECK_ERROR): Update.
14998
14999 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
15000
15001 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
15002 comments.
15003 * gdbarch.h: Regenerate.
15004
15005 2014-01-16 Tom Tromey <tromey@redhat.com>
15006
15007 * value.c (struct value) <regnum>: Move earlier.
15008
15009 2014-01-16 Tom Tromey <tromey@redhat.com>
15010
15011 * remote.c (extended_remote_create_inferior): Rename from
15012 extended_remote_create_inferior_1. Add "ops" argument. Remove
15013 old implementation.
15014
15015 2014-01-16 Pedro Alves <palves@redhat.com>
15016
15017 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
15018 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
15019 the backchain.
15020
15021 2014-01-16 Doug Evans <dje@google.com>
15022
15023 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
15024
15025 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15026
15027 * btrace.h (btrace_thread_flag): New.
15028 (struct btrace_thread_info) <flags>: New.
15029 * record-btrace.c (record_btrace_resume_thread)
15030 (record_btrace_find_thread_to_move, btrace_step_no_history)
15031 (btrace_step_stopped, record_btrace_start_replaying)
15032 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
15033 (record_btrace_find_resume_thread): New.
15034 (record_btrace_resume, record_btrace_wait): Extend.
15035 (record_btrace_can_execute_reverse): New.
15036 (record_btrace_open): Fail in non-stop mode.
15037 (record_btrace_set_replay): Split into this, ...
15038 (record_btrace_stop_replaying): ... this, ...
15039 (record_btrace_clear_histories): ... and this.
15040 (init_record_btrace_ops): Init to_can_execute_reverse.
15041 * NEWS: Announce it.
15042
15043 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15044
15045 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
15046 (forward_target_decr_pc_after_break)
15047 (target_decr_pc_after_break): New.
15048 * target.c (forward_target_decr_pc_after_break)
15049 (target_decr_pc_after_break): New.
15050 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
15051 instead of gdbarch_decr_pc_after_break.
15052 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15053 instead of gdbarch_decr_pc_after_break.
15054 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
15055 instead of gdbarch_decr_pc_after_break.
15056 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15057 instead of gdbarch_decr_pc_after_break.
15058 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
15059 instead of gdbarch_decr_pc_after_break.
15060 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
15061 instead of gdbarch_decr_pc_after_break.
15062
15063 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15064
15065 * btrace.c: Include regcache.h.
15066 (btrace_add_pc): New.
15067 (btrace_enable): Call btrace_add_pc.
15068 (btrace_is_empty): New.
15069 * btrace.h (btrace_is_empty): New.
15070 * record-btrace.c (require_btrace, record_btrace_info): Call
15071 btrace_is_empty.
15072
15073 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15074
15075 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
15076 Support delta reads.
15077 (linux_disable_btrace): Change return type.
15078 * common/linux-btrace.h (linux_read_btrace): Change parameters
15079 and return type to allow error reporting. Update users.
15080 (linux_disable_btrace): Change return type. Update users.
15081 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
15082 New.
15083 (btrace_error): New.
15084 (btrace_block) <begin>: Comment on BEGIN == 0.
15085 * btrace.c (btrace_compute_ftrace): Start from the end of
15086 the current trace.
15087 (btrace_stitch_trace, btrace_clear_history): New.
15088 (btrace_fetch): Read delta trace, return if replaying.
15089 (btrace_clear): Move clear history code to btrace_clear_history.
15090 (parse_xml_btrace): Throw an error if parsing failed.
15091 * target.h (struct target_ops) <to_read_btrace>: Change parameters
15092 and return type to allow error reporting.
15093 (target_read_btrace): Change parameters and return type to allow
15094 error reporting.
15095 * target.c (target_read_btrace): Update.
15096 * remote.c (remote_read_btrace): Support delta reads. Pass
15097 errors on.
15098 * NEWS: Announce it.
15099
15100 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15101
15102 * record.h (record_btrace_frame_unwind)
15103 (record_btrace_tailcall_frame_unwind): New declarations.
15104 * dwarf2-frame: Include record.h
15105 (dwarf2_frame_cfa): Throw an error for btrace frames.
15106 * record-btrace.c: Include hashtab.h.
15107 (btrace_get_bfun_name): New.
15108 (btrace_call_history): Call btrace_get_bfun_name.
15109 (struct btrace_frame_cache): New.
15110 (bfcache): New.
15111 (bfcache_hash, bfcache_eq, bfcache_new): New.
15112 (btrace_get_frame_function): New.
15113 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
15114 (record_btrace_frame_this_id): Compute own id.
15115 (record_btrace_frame_prev_register): Provide PC, throw_error
15116 for all other registers.
15117 (record_btrace_frame_sniffer): Detect btrace frames.
15118 (record_btrace_tailcall_frame_sniffer): New.
15119 (record_btrace_frame_dealloc_cache): New.
15120 (record_btrace_frame_unwind): Add new functions.
15121 (record_btrace_tailcall_frame_unwind): New.
15122 (_initialize_record_btrace): Allocate cache.
15123 * btrace.c (btrace_clear): Call reinit_frame_cache.
15124 * NEWS: Announce it.
15125
15126 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15127
15128 * record-btrace.c (record_btrace_set_replay)
15129 (record_btrace_goto_begin, record_btrace_goto_end)
15130 (record_btrace_goto): New.
15131 (init_record_btrace_ops): Initialize them.
15132 * NEWS: Announce it.
15133
15134 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15135
15136 * record-btrace.c (record_btrace_find_new_threads)
15137 (record_btrace_thread_alive): New.
15138 (init_record_btrace_ops): Initialize to_find_new_threads and
15139 to_thread_alive.
15140
15141 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15142
15143 * record-btrace.c (record_btrace_resume): New.
15144 (record_btrace_wait): New.
15145 (init_record_btrace_ops): Initialize to_wait and to_resume.
15146
15147 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15148
15149 * record-btrace.c (record_btrace_xfer_partial)
15150 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
15151 (record_btrace_allow_memory_access): New.
15152 (init_record_btrace_ops): Initialize new methods.
15153 * target.c (raw_memory_xfer_partial): Bail out if target reports
15154 that this memory is not available.
15155
15156 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15157
15158 * target.h (target_ops) <to_insert_breakpoint>
15159 <to_remove_breakpoint>: Add target_ops parameter.
15160 (forward_target_insert_breakpoint): New.
15161 (forward_target_remove_breakpoint): New.
15162 (memory_remove_breakpoint, memory_insert_breakpoint):
15163 Add target_ops parameter.
15164 * target.c (target_insert_breakpoint): Split into this and ...
15165 (forward_target_insert_breakpoint): ... this.
15166 (target_remove_breakpoint): Split into this and ...
15167 (forward_target_remove_breakpoint): ... this.
15168 (debug_to_insert_breakpoint): Add target_ops parameter.
15169 Call forward_target_insert_breakpoint.
15170 (debug_to_remove_breakpoint): Add target_ops parameter.
15171 Call forward_target_remove_breakpoint.
15172 (update_current_target): Do not inherit or default to_insert_breakpoint
15173 and to_remove_breakpoint.
15174 * corelow.c (ignore): Add target_ops parameter.
15175 * exec.c (ignore): Add target_ops parameter.
15176 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
15177 Add target_ops parameter.
15178 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
15179 Add target_ops parameter.
15180 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
15181 Add target_ops parameter.
15182 * record-full.c (record_full_beneath_to_insert_breakpoint)
15183 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
15184 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
15185 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
15186 (record_full_core_remove_breakpoint): Add target_ops parameter.
15187 Update users.
15188 (record_full_beneath_to_insert_breakpoint_ops)
15189 (record_full_beneath_to_remove_breakpoint_ops)
15190 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
15191 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
15192 tmp_to_remove_breakpoint_ops,
15193 record_full_beneath_to_insert_breakpoint_ops, and
15194 record_full_beneath_to_remove_breakpoint_ops.
15195 * remote-m32r-sdi.c (m32r_insert_breakpoint)
15196 (m32r_remove_breakpoint): Add target_ops parameter.
15197 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15198 Add target_ops parameter.
15199 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15200 Add target_ops parameter.
15201
15202 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15203 Markus Metzger <markus.t.metzger@intel.com>
15204
15205 * record-btrace.c: Include frame-unwind.h.
15206 (record_btrace_frame_unwind_stop_reason)
15207 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15208 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15209 New.
15210 (init_record_btrace_ops): Install it.
15211
15212 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15213
15214 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15215 get_prev_frame_1.
15216
15217 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15218
15219 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15220 earlier.
15221
15222 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15223
15224 * frame-unwind.c: Include target.h.
15225 (frame_unwind_try_unwinder): New function with code from ...
15226 (frame_unwind_find_by_frame): ... here. New variable
15227 unwinder_from_target, call also target_get_unwinder)
15228 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15229 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15230 * target.h (struct target_ops): New fields to_get_unwinder and
15231 to_get_tailcall_unwinder.
15232 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15233
15234 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15235
15236 * record-btrace.c (record_btrace_fetch_registers)
15237 (record_btrace_store_registers)
15238 (record_btrace_to_prepare_to_store): New.
15239 (init_record_btrace_ops): Add the above.
15240
15241 2014-01-16 Tom Tromey <tromey@redhat.com>
15242
15243 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15244 * target.h (struct target_ops) <to_prepare_to_store>: Add
15245 argument.
15246 (target_prepare_to_store): Add argument.
15247 * target.c (debug_to_prepare_to_store): Add argument.
15248 (update_current_target): Update.
15249 * remote.c (remote_prepare_to_store): Add 'self' argument.
15250 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15251 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15252 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15253 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15254 argument.
15255 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15256 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15257 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15258 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15259 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15260
15261 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15262
15263 * btrace.h (replay) <replay>: New.
15264 (btrace_is_replaying): New.
15265 * btrace.c (btrace_clear): Free replay iterator.
15266 (btrace_is_replaying): New.
15267 * record-btrace.c (record_btrace_is_replaying): New.
15268 (record_btrace_info): Print insn number if replaying.
15269 (record_btrace_insn_history): Start at replay position.
15270 (record_btrace_call_history): Start at replay position.
15271 (init_record_btrace_ops): Init to_record_is_replaying.
15272
15273 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15274
15275 * record-btrace.c (record_btrace_insn_history_range): Include
15276 end.
15277 (record_btrace_insn_history_from): Adjust range.
15278 (record_btrace_call_history_range): Include
15279 end.
15280 (record_btrace_call_history_from): Adjust range.
15281 * NEWS: Announce changes.
15282
15283 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15284
15285 * record.h (enum record_print_flag)
15286 <record_print_indent_calls>: New.
15287 * record.c (get_call_history_modifiers): Recognize /c modifier.
15288 (_initialize_record): Document /c modifier.
15289 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15290 Reorder fields. Optionally indent the function name. Update
15291 all users.
15292 * NEWS: Announce changes.
15293
15294 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15295
15296 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15297
15298 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15299
15300 * btrace.c (ftrace_new_function): Start counting at one.
15301 * record-btrace.c (record_btrace_info): Adjust number of calls
15302 and insns.
15303 * NEWS: Announce it.
15304
15305 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15306
15307 * record-btrace.c (btrace_call_history_insn_range): Print
15308 insn range as [begin, end].
15309
15310 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15311
15312 * btrace.h (struct btrace_func_link): New.
15313 (enum btrace_function_flag): New.
15314 (struct btrace_inst): Rename to ...
15315 (struct btrace_insn): ...this. Update all users.
15316 (struct btrace_func) <ibegin, iend>: Remove.
15317 (struct btrace_func_link): New.
15318 (struct btrace_func): Rename to ...
15319 (struct btrace_function): ...this. Update all users.
15320 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15321 (number, level, flags>: New.
15322 (struct btrace_insn_iterator): Rename to ...
15323 (struct btrace_insn_history): ...this.
15324 Update all users.
15325 (struct btrace_insn_iterator, btrace_call_iterator): New.
15326 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15327 (struct btrace_target_info) <begin, end, level>
15328 <insn_history, call_history>: New.
15329 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15330 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15331 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15332 (btrace_call_number, btrace_call_begin, btrace_call_end)
15333 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15334 (btrace_find_function_by_number, btrace_set_insn_history)
15335 (btrace_set_call_history): New.
15336 * btrace.c (btrace_init_insn_iterator)
15337 (btrace_init_func_iterator, compute_itrace): Remove.
15338 (ftrace_print_function_name, ftrace_print_filename)
15339 (ftrace_skip_file): Change
15340 parameter to const.
15341 (ftrace_init_func): Remove.
15342 (ftrace_debug): Use new btrace_function fields.
15343 (ftrace_function_switched): Also consider gaining and
15344 losing symbol information).
15345 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15346 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15347 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15348 New.
15349 (ftrace_new_function): Move. Remove debug print.
15350 (ftrace_update_lines, ftrace_update_insns): New.
15351 (ftrace_update_function): Check for call, ret, and jump.
15352 (compute_ftrace): Renamed to ...
15353 (btrace_compute_ftrace): ...this. Rewritten to compute call
15354 stack.
15355 (btrace_fetch, btrace_clear): Updated.
15356 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15357 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15358 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15359 (btrace_call_number, btrace_call_begin, btrace_call_end)
15360 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15361 (btrace_find_function_by_number, btrace_set_insn_history)
15362 (btrace_set_call_history): New.
15363 * record-btrace.c (require_btrace): Use new btrace thread
15364 info fields.
15365 (record_btrace_info, btrace_insn_history)
15366 (record_btrace_insn_history, record_btrace_insn_history_range):
15367 Use new btrace thread info fields and new iterator.
15368 (btrace_func_history_src_line): Rename to ...
15369 (btrace_call_history_src_line): ...this. Use new btrace
15370 thread info fields.
15371 (btrace_func_history): Rename to ...
15372 (btrace_call_history): ...this. Use new btrace thread info
15373 fields and new iterator.
15374 (record_btrace_call_history, record_btrace_call_history_range):
15375 Use new btrace thread info fields and new iterator.
15376
15377 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15378
15379 * frame.h (frame_id_build_unavailable_stack_special): New.
15380 * frame.c (frame_id_build_unavailable_stack_special): New.
15381
15382 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15383
15384 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15385 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15386 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15387 to gdbarch.
15388 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15389 (i386_insn_is_jump, i386_jmp_p): New.
15390 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15391 insn_is_jump to gdbarch.
15392 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15393 * gdbarch.h: Regenerated.
15394 * gdbarch.c: Regenerated.
15395 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15396 (default_insn_is_jump): New.
15397 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15398 (default_insn_is_jump): New.
15399
15400 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15401
15402 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15403 Change to ...
15404 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15405 (btrace_read_type) <btrace_read_new>: Change to ...
15406 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15407
15408 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15409
15410 * common/linux-btrace.c (linux_read_btrace): Free trace from
15411 previous iteration.
15412
15413 2014-01-15 Doug Evans <dje@google.com>
15414
15415 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15416 uint32_t.
15417
15418 2014-01-15 Tom Tromey <tromey@redhat.com>
15419
15420 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15421 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15422 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15423 (set_objfile_main_name): New function.
15424 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15425 language_of_main>: New fields.
15426 (set_objfile_main_name): Declare.
15427 * symtab.c (find_main_name): Loop over objfiles to find the main
15428 name and language.
15429 (set_main_name): Now static.
15430 (get_main_info): Add comment.
15431 * symtab.h (set_main_name): Don't declare.
15432
15433 2014-01-15 Tom Tromey <tromey@redhat.com>
15434
15435 * symtab.c (main_progspace_key): New global.
15436 (struct main_info): New.
15437 (name_of_main, language_of_main): Remove.
15438 (get_main_info, main_info_cleanup): New function.
15439 (set_main_name, main_name, main_language): Use get_main_info.
15440 (_initialize_symtab): Initialize main_progspace_key.
15441
15442 2014-01-15 Tom Tromey <tromey@redhat.com>
15443
15444 * dbxread.c (process_one_symbol): Update.
15445 * dwarf2read.c (read_partial_die): Update.
15446 * symfile.c (set_initial_language): Call main_language.
15447 * symtab.c (language_of_main): Now static.
15448 (set_main_name): Add 'lang' parameter.
15449 (find_main_name): Update.
15450 (main_language): New function.
15451 (symtab_observer_executable_changed): Update.
15452 * symtab.h (set_main_name): Update.
15453 (language_of_main): Remove.
15454 (main_language): Declare.
15455
15456 2014-01-15 Tom Tromey <tromey@redhat.com>
15457
15458 * symfile.c (init_entry_point_info): Use new "initialized" field.
15459 Update.
15460 * objfiles.h (struct entry_point) <initialized>: New field.
15461 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15462 (struct objfile) <ei>: ...here. Remove.
15463 * objfiles.c (entry_point_address_query): Update.
15464
15465 2014-01-15 Tom Tromey <tromey@redhat.com>
15466
15467 * objfiles.c (entry_point_address_query): Relocate entry point
15468 address.
15469 (objfile_relocate1): Do not relocate entry point address.
15470 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15471 <the_bfd_section_index>: New field.
15472 * symfile.c (init_entry_point_info): Find the entry point's
15473 section.
15474
15475 2014-01-15 Tom Tromey <tromey@redhat.com>
15476
15477 * solib-frv.c (enable_break): Use entry_point_address_query.
15478
15479 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15480
15481 * NEWS: Add note on improved process record-replay on
15482 arm*-linux* targets.
15483
15484 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15485
15486 * arm-tdep.c (enum arm_record_result): New enum.
15487 (arm_record_unsupported_insn): New function.
15488 (arm_record_coproc_data_proc): Removed.
15489 (thumb2_record_ld_st_multiple): New function.
15490 (thumb2_record_ld_st_dual_ex_tbb): New function.
15491 (thumb2_record_data_proc_sreg_mimm): New function.
15492 (thumb2_record_ps_dest_generic): New function.
15493 (thumb2_record_branch_misc_cntrl): New function.
15494 (thumb2_record_str_single_data): New function.
15495 (thumb2_record_ld_mem_hints): New function.
15496 (thumb2_record_ld_word): New function.
15497 (thumb2_record_lmul_lmla_div): New function.
15498 (thumb2_record_decode_insn_handler): New function.
15499 (decode_insn): Add thumb32 instruction handlers.
15500
15501 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15502
15503 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15504 (struct arm_linux_record_tdep): Declare.
15505 (arm_canonicalize_syscall): New function.
15506 (arm_all_but_pc_registers_record): New function.
15507 (arm_linux_syscall_record): New function.
15508 (arm_linux_init_abi): Add syscall recording constructs.
15509 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15510 decoding. (arm_record_coproc_data_proc): Update arm syscall
15511 decoding.
15512 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15513 <arm_syscall_record>: New field.
15514 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15515 gdb_target_obs.
15516
15517 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15518
15519 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15520 register for push instruction recording.
15521
15522 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15523
15524 * arm-tdep.c (thumb_record_misc): Update to correct logical
15525 error while recording ldm, ldmia and pop instructions.
15526
15527 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15528
15529 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15530
15531 2014-01-15 Pedro Alves <palves@redhat.com>
15532
15533 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15534 (go32_resume, go32_fetch_registers, store_register)
15535 (go32_store_registers, go32_prepare_to_store)
15536 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15537 (go32_create_inferior, go32_can_run, go32_terminal_init)
15538 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15539 declarations.
15540
15541 2014-01-15 Tom Tromey <tromey@redhat.com>
15542
15543 * target.h (async_callback_ftype): New typedef.
15544 (struct target_ops) <to_async>: Use it.
15545
15546 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15547
15548 * python/py-value.c (get_field_type): Remove unnecessary curly
15549 braces for single-statement if block.
15550
15551 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15552
15553 * python/py-type.c (convert_field): Add missing empty line
15554 after declarations.
15555
15556 2014-01-14 Doug Evans <dje@google.com>
15557
15558 * symfile.h (expand_symtabs_matching): Renamed from
15559 expand_partial_symbol_names. Update prototype.
15560 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15561 * symfile.c (expand_symtabs_matching): Renamed from
15562 expand_partial_symbol_names. New args file_matcher, kind.
15563 Rename arg fun to symbol_matcher.
15564 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15565 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15566 ada_expand_partial_symbol_name.
15567 (ada_make_symbol_completion_list): Update to call
15568 expand_symtabs_matching.
15569 (ada_add_global_exceptions): Call expand_symtabs_matching.
15570 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15571 call map_symbol_filenames.
15572 * symtab.c (sources_info): Update to call map_symbol_filenames.
15573 (search_symbols): Call expand_symtabs_matching.
15574 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15575 (default_make_symbol_completion_list_break_on): Update to call
15576 expand_symtabs_matching.
15577 (make_source_files_completion_list): Update to call
15578 map_symbol_filenames.
15579
15580 2014-01-14 Doug Evans <dje@google.com>
15581
15582 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15583 (expand_symtabs_symbol_matcher_ftype): New typedef.
15584 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15585 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15586 * symfile.c (expand_partial_symbol_names): Update to use
15587 expand_symtabs_symbol_matcher_ftype.
15588 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15589 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15590 Arg name_matcher renamed to symbol_matcher.
15591 * psymtab.c (recursively_search_psymtabs): Update to use
15592 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15593 sym_matcher.
15594 (expand_symtabs_matching_via_partial): Update to use
15595 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15596 Arg name_matcher renamed to symbol_matcher.
15597
15598 2014-01-14 Doug Evans <dje@google.com>
15599
15600 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15601 (map_partial_symbol_filenames): Ditto.
15602 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15603 (map_partial_symbol_filenames): Ditto.
15604 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15605 (map_partial_symbol_filenames): Ditto.
15606 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15607 (map_partial_symbol_filenames): Ditto.
15608 * symtab.c: Delete #include "psymtab.h".
15609
15610 2014-01-14 Pedro Alves <palves@redhat.com>
15611 Tom Tromey <tromey@redhat.com>
15612
15613 * infrun.c (use_displaced_stepping): Use find_record_target
15614 instead of RECORD_IS_USED.
15615 (adjust_pc_after_break): Use record_full_is_used instead of
15616 RECORD_IS_USED.
15617 * record-btrace.c (record_btrace_open): Call record_preopen
15618 instead of checking RECORD_IS_USED.
15619 * record-full.c (record_full_shortname)
15620 (record_full_core_shortname): New globals.
15621 (record_full_is_used): New function.
15622 (find_full_open): Call record_preopen instead of checking
15623 RECORD_IS_USED.
15624 (init_record_full_ops): Set the target's shortname to
15625 record_full_shortname.
15626 (init_record_full_core_ops): Set the target's shortname to
15627 record_full_core_shortname.
15628 * record-full.h (record_full_is_used): Declare.
15629 * record.c (find_record_target): Make extern.
15630 (record_preopen): New function.
15631 * record.h (RECORD_IS_USED): Delete macro.
15632 (find_record_target, record_preopen): Declare functions.
15633
15634 2014-01-14 Yao Qi <yao@codesourcery.com>
15635
15636 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15637 'len''s type to ULONGEST.
15638 (core_xfer_shared_libraries_aix): Likewise.
15639 * gdbarch.c, gdbarch.h: Regenerated.
15640 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15641 Change type of 'len' to ULONGEST.
15642 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15643 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15644
15645 2014-01-14 Yao Qi <yao@codesourcery.com>
15646
15647 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15648 type of 'len' to ULONGEST.
15649 (linux_xfer_osdata_processgroups): Likewise.
15650 (linux_xfer_osdata_threads): Likewise.
15651 (linux_xfer_osdata_fds): Likewise.
15652 (linux_xfer_osdata_isockets): Likewise.
15653 (linux_xfer_osdata_shm): Likewise.
15654 (linux_xfer_osdata_sem): Likewise.
15655 (linux_xfer_osdata_msg): Likewise.
15656 (linux_common_xfer_osdata): Likewise.
15657 (struct osdata_type) <getter>: Likewise.
15658 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15659 the declaration.
15660
15661 2014-01-14 Yao Qi <yao@codesourcery.com>
15662
15663 * target.h (target_xfer_partial_ftype): Update.
15664 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15665 ULONGEST.
15666 * aix-thread.c (aix_thread_xfer_partial): Change type of
15667 argument 'len' to ULONGEST.
15668 * auxv.c (procfs_xfer_auxv): Likewise.
15669 (ld_so_xfer_auxv): Likewise.
15670 (memory_xfer_auxv): Likewise.
15671 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15672 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15673 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15674 * corelow.c (core_xfer_partial): Likewise.
15675 * ctf.c (ctf_xfer_partial): Likewise.
15676 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15677 '%u'.
15678 (darwin_read_dyld_info): Likewise.
15679 (darwin_xfer_partial): Likewise.
15680 * exec.c (section_table_xfer_memory_partial): Likewise.
15681 (exec_xfer_partial): Likewise.
15682 * exec.h (section_table_xfer_memory_partial): Update
15683 declaration.
15684 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15685 instead of plongest.
15686 (gnu_xfer_partial): Likewise.
15687 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15688 (ia64_hpux_xfer_solib_got): Likewise.
15689 (ia64_hpux_xfer_partial): Likewise.
15690 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15691 * inf-ptrace.c (inf_ptrace_xfer_partial):
15692 * inf-ttrace.c (inf_ttrace_xfer_partial):
15693 * linux-nat.c (linux_xfer_siginfo): Likewise.
15694 (linux_nat_xfer_partial): Likewise.
15695 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15696 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15697 * monitor.c (monitor_xfer_memory): Likewise.
15698 (monitor_xfer_partial): Likewise.
15699 * procfs.c (procfs_xfer_partial): Likewise.
15700 * record-full.c (record_full_xfer_partial): Likewise.
15701 (record_full_core_xfer_partial): Likewise.
15702 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15703 instead of plongest.
15704 (gdbsim_xfer_partial): Likewise.
15705 * remote.c (remote_xfer_partial): Likewise.
15706 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15707 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15708 declaration.
15709 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15710 (rs6000_xfer_shared_libraries): Likewise.
15711 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15712 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15713 (sparc_xfer_partial): Likewise.
15714 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15715 (spu_xfer_partial): Likewise.
15716 * spu-multiarch.c (spu_xfer_partial): Likewise.
15717 * target.c (target_read_live_memory): Likewise.
15718 (memory_xfer_live_readonly_partial): Likewise.
15719 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15720 (target_xfer_partial, default_xfer_partial): Likewise.
15721 (current_xfer_partial): Likewise.
15722 * tracepoint.c (tfile_xfer_partial): Likewise.
15723 * windows-nat.c (windows_xfer_memory): Likewise. Call
15724 pulongest instead of plongest.
15725 (windows_xfer_partial): Likewise.
15726 (windows_xfer_shared_libraries): Likewise.
15727
15728 2014-01-14 Yao Qi <yao@codesourcery.com>
15729
15730 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15731 target_xfer_partial_ftype.
15732
15733 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15734
15735 PR python/15464
15736 PR python/16113
15737 * valops.c (value_struct_elt_bitpos): New function
15738 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15739 object to 'None' if the field name is an empty string ("").
15740 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15741 attribute to look for a field when 'name' is 'None'.
15742 (get_field_type): New function
15743
15744 2014-01-13 Doug Evans <dje@google.com>
15745
15746 PR symtab/16426
15747 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15748 (try_open_dwop_file): Ditto.
15749 * gdb_bfd.c: #include "vec.h".
15750 (bfdp): New typedef.
15751 (struct gdb_bfd_data): New member included_bfds.
15752 (gdb_bfd_unref): Unref all included bfds.
15753 (gdb_bfd_record_inclusion): New function.
15754 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15755
15756 2014-01-13 Tom Tromey <tromey@redhat.com>
15757
15758 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15759
15760 2014-01-13 Tom Tromey <tromey@redhat.com>
15761
15762 * defs.h (use_windows): Remove.
15763 * gdb.c (main): Update.
15764 * main.c (captured_main, gdb_main): Update.
15765 * main.h (struct captured_main_args) <use_windows>: Remove.
15766 * top.c (use_windows): Remove.
15767
15768 2014-01-13 Tom Tromey <tromey@redhat.com>
15769
15770 * defs.h (deprecated_flush_hook): Remove.
15771
15772 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15773
15774 PR threads/16216
15775 * linux-thread-db.c (try_thread_db_load): Add parameter
15776 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15777 (try_thread_db_load_from_pdir_1): Move it there from here.
15778 (try_thread_db_load_from_sdir): Update caller.
15779 (try_thread_db_load_from_dir): Move it there from here.
15780
15781 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15782
15783 * regformats/regdat.sh: Always rewrite the register file.
15784
15785 2014-01-13 Pedro Alves <palves@redhat.com>
15786
15787 * Makefile.in (CHECK_HEADERS): New variable.
15788 (check-headers:): New rule.
15789
15790 2014-01-13 Tom Tromey <tromey@redhat.com>
15791
15792 * cli/cli-setshow.c (do_set_command): Update.
15793 * defs.h (deprecated_set_hook): Remove.
15794 * top.c (deprecated_set_hook): Remove.
15795
15796 2014-01-13 Pedro Alves <palves@redhat.com>
15797
15798 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15799 the tracepoint if the PC is a pseudo-register.
15800
15801 2014-01-13 Tom Tromey <tromey@redhat.com>
15802
15803 * defs.h (XCALLOC): Remove.
15804 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15805 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15806 * dwarf2loc.c (allocate_piece_closure): Likewise.
15807 * elfread.c (elf_symfile_segments): Likewise.
15808 (elf_symfile_segments): Likewise.
15809 * gdbtypes.c (copy_type_recursive): Likewise.
15810 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15811 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15812 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15813 XCALLOC.
15814 * mt-tdep.c (mt_gdbarch_init): Likewise.
15815 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15816 XCALLOC.
15817 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15818 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15819 * registry.c (registry_alloc_data): Likewise.
15820 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15821 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15822 * serial.c (serial_fdopen_ops): Likewise.
15823 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15824 XCALLOC.
15825 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15826 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15827 not XCALLOC.
15828
15829 2014-01-13 Tom Tromey <tromey@redhat.com>
15830
15831 * defs.h (XMALLOC): Remove.
15832 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15833 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15834 * cli-out.c (struct ui_out *): Likewise.
15835 * cli/cli-dump.c (add_dump_command): Likewise.
15836 (add_dump_command): Likewise.
15837 * complaints.c (get_complaints): Likewise.
15838 (find_complaint): Likewise.
15839 * dwarf2-frame.c (execute_cfa_program): Likewise.
15840 * dwarf2read.c (abbrev_table_read_table): Likewise.
15841 * gdbarch.sh: Likewise.
15842 * gdbarch.c: Rebuild.
15843 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15844 * interps.c (interp_new): Likewise.
15845 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15846 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15847 * mi/mi-console.c (mi_console_file_new): Likewise.
15848 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15849 * mi/mi-out.c (mi_out_new): Likewise.
15850 * mi/mi-parse.c (mi_parse): Likewise.
15851 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15852 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15853 * observer.c (xalloc_observer_list_node): Likewise.
15854 * regcache.c (regcache_xmalloc_1): Likewise.
15855 * reggroups.c (reggroup_new): Likewise.
15856 (_initialize_reggroup): Likewise.
15857 * registry.c (register_data_with_cleanup): Likewise.
15858 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15859 * ser-base.c (serial_ttystate): Likewise.
15860 * ser-mingw.c (make_pipe_state): Likewise.
15861 * ser-pipe.c (pipe_open): Likewise.
15862 * serial.c (serial_open): Likewise.
15863 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15864 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15865 (tui_alloc_win_info): Likewise.
15866 (tui_add_content_elements): Likewise.
15867 * tui/tui-file.c (tui_file_new): Likewise.
15868 * tui/tui-out.c (tui_out_new): Likewise.
15869 * ui-file.c (mem_file_new): Likewise.
15870 * ui-out.c (push_level): Likewise.
15871 (make_cleanup_ui_out_end): Likewise.
15872 (append_header_to_list): Likewise.
15873 (ui_out_new): Likewise.
15874 * user-regs.c (user_reg_add_builtin): Likewise.
15875
15876 2014-01-13 Tom Tromey <tromey@redhat.com>
15877
15878 * defs.h (XZALLOC): Remove.
15879 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15880 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15881 (get_ada_tasks_inferior_data): Likewise.
15882 * auto-load.c (get_auto_load_pspace_data): Likewise.
15883 * auxv.c (get_auxv_inferior_data): Likewise.
15884 * bfd-target.c (target_bfd_reopen): Likewise.
15885 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15886 (deprecated_insert_raw_breakpoint): Likewise.
15887 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15888 * corelow.c (core_open): Likewise.
15889 * darwin-nat.c (darwin_check_new_threads): Likewise.
15890 (darwin_attach_pid): Likewise.
15891 * dummy-frame.c (dummy_frame_push): Likewise.
15892 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15893 * dwarf2loc.c (allocate_piece_closure): Likewise.
15894 * elfread.c (elf_symfile_segments): Likewise.
15895 * eval.c (ptrmath_type_p): Likewise.
15896 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15897 * gdbtypes.c (alloc_type_arch): Likewise.
15898 (alloc_type_instance): Likewise.
15899 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15900 * inf-child.c (inf_child_can_use_agent): Likewise.
15901 * inflow.c (get_inflow_inferior_data): Likewise.
15902 * infrun.c (save_infcall_suspend_state): Likewise.
15903 * jit.c (jit_reader_load): Likewise.
15904 (get_jit_objfile_data): Likewise.
15905 (get_jit_program_space_data): Likewise.
15906 (jit_object_open_impl): Likewise.
15907 (jit_symtab_open_impl): Likewise.
15908 (jit_block_open_impl): Likewise.
15909 (jit_frame_sniffer): Likewise.
15910 * linux-fork.c (add_fork): Likewise.
15911 * maint.c (make_command_stats_cleanup): Likewise.
15912 * objfiles.c (get_objfile_pspace_data): Likewise.
15913 * opencl-lang.c (struct lval_closure): Likewise.
15914 * osdata.c (osdata_start_osdata): Likewise.
15915 * progspace.c (new_address_space): Likewise.
15916 (add_program_space): Likewise.
15917 * remote-sim.c (get_sim_inferior_data): Likewise.
15918 * sh-tdep.c (sh_gdbarch_init): Likewise.
15919 * skip.c (Ignore): Likewise.
15920 (skip_delete_command): Likewise.
15921 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15922 (library_list_start_library): Likewise.
15923 (solib_aix_current_sos): Likewise.
15924 * solib-darwin.c (get_darwin_info): Likewise.
15925 (darwin_current_sos): Likewise.
15926 * solib-dsbt.c (get_dsbt_info): Likewise.
15927 * solib-ia64-hpux.c (new_so_list): Likewise.
15928 (ia64_hpux_get_solib_linkage_addr): Likewise.
15929 * solib-spu.c (append_ocl_sos): Likewise.
15930 (spu_current_sos): Likewise.
15931 * solib-svr4.c (get_svr4_info): Likewise.
15932 (svr4_keep_data_in_core): Likewise.
15933 (library_list_start_library): Likewise.
15934 (svr4_default_sos): Likewise.
15935 (svr4_read_so_list): Likewise.
15936 * solib-target.c (library_list_start_library): Likewise.
15937 (solib_target_current_sos): Likewise.
15938 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15939 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15940 * symfile.c (default_symfile_segments): Likewise.
15941 * target-descriptions.c (tdesc_data_init): Likewise.
15942 (tdesc_create_reg): Likewise.
15943 (struct tdesc_type *): Likewise.
15944 (tdesc_create_vector): Likewise.
15945 (tdesc_set_struct_size): Likewise.
15946 (struct tdesc_type *): Likewise.
15947 (tdesc_free_feature): Likewise.
15948 (tdesc_create_feature): Likewise.
15949 * windows-nat.c (windows_add_thread): Likewise.
15950 (windows_make_so): Likewise.
15951 * xml-support.c (gdb_xml_body_text): Likewise.
15952 (gdb_xml_create_parser_and_cleanup): Likewise.
15953 (xml_process_xincludes): Likewise.
15954 * xml-syscall.c (allocate_syscalls_info): Likewise.
15955 (syscall_create_syscall_desc): Likewise.
15956
15957 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15958
15959 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15960 function, with code from i386_stap_parse_special_token.
15961 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15962 (i386_stap_parse_special_token): Move code to the two functions
15963 above; simplify it.
15964
15965 2014-01-09 Pedro Alves <palves@redhat.com>
15966 Hui Zhu <hui@codesourcery.com>
15967
15968 PR gdb/16101
15969 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15970 bp_err_string. Don't mark the location shlib_disabled if the
15971 error thrown wasn't a generic or memory error. Catch errors
15972 thrown while inserting breakpoints in overlayed code. Output
15973 error message of software breakpoints.
15974 * remote.c (remote_insert_breakpoint): If this breakpoint has
15975 target-side commands but this stub doesn't support Z0 packets,
15976 throw NOT_SUPPORTED_ERROR error.
15977 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15978 * target.h (target_insert_breakpoint): Extend comment.
15979 (target_insert_hw_breakpoint): Add comment.
15980
15981 2014-01-08 Pedro Alves <palves@redhat.com>
15982
15983 * remote.c (remote_add_thread): Add threads silently if starting
15984 up.
15985 (remote_notice_new_inferior): If in all-stop, and starting up,
15986 don't call notice_new_inferior.
15987 (get_current_thread): New function, factored out from ...
15988 (add_current_inferior_and_thread): ... this. Adjust.
15989 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15990 found any thread, then select the remote's current thread as GDB's
15991 current thread too.
15992
15993 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15994
15995 * NEWS: Create a new section for the next release branch.
15996 Rename the section of the current branch, now that it has
15997 been cut.
15998
15999 2014-01-08 Joel Brobecker <brobecker@adacore.com>
16000
16001 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
16002 * version.in: Bump version to 7.7.50.DATE-cvs.
16003
16004 2014-01-08 Yao Qi <yao@codesourcery.com>
16005
16006 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
16007 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
16008 (spu_xfer_partial): Cast 'buf' to 'const char *'.
16009
16010 2014-01-08 Yao Qi <yao@codesourcery.com>
16011
16012 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
16013 return value of bfd_get_filename to symbol_file_add_from_bfd.
16014
16015 2014-01-08 Pierre Muller <muller@sourceware.org>
16016
16017 Fix PR16201.
16018 * coff-pe-read.c (struct read_pe_section_data): Add index field.
16019 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
16020 to prim_record_mininal_symbol_and_info.
16021 (add_pe_forwarded_sym): Use known section number of forwarded symbol
16022 in call to prim_record_minimal_symbol_and_info.
16023 (read_pe_exported_syms): Set index field of section_data.
16024
16025 2014-01-07 Andrew Pinski <apinski@cavium.com>
16026
16027 * features/aarch64-core.xml (cpsr): Change to be 64bit.
16028 * features/aarch64.c: Regenerate.
16029
16030 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
16031
16032 * target.c (return_null): Define.
16033 (update_current_target): Use it instead of return_zero for
16034 functions that return a pointer.
16035
16036 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16037
16038 * source.c (add_path): Fix check for duplicated paths in the previously
16039 included paths.
16040
16041 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
16042
16043 * ada-lang.c: Remove duplicated include statements.
16044 * alphabsd-nat.c: Ditto.
16045 * amd64-darwin-tdep.c: Ditto.
16046 * amd64fbsd-nat.c: Ditto.
16047 * auto-load.c: Ditto.
16048 * ax-gdb.c: Ditto.
16049 * breakpoint.c: Ditto.
16050 * dbxread.c: Ditto.
16051 * fork-child.c: Ditto.
16052 * gdb_usleep.c: Ditto.
16053 * i386-darwin-tdep.c: Ditto.
16054 * i386fbsd-nat.c: Ditto.
16055 * infcmd.c: Ditto.
16056 * inferior.c: Ditto.
16057 * jv-lang.c: Ditto.
16058 * linux-nat.c: Ditto.
16059 * linux-tdep.c: Ditto.
16060 * m68kbsd-nat.c: Ditto.
16061 * m68klinux-nat.c: Ditto.
16062 * microblaze-tdep.c: Ditto.
16063 * mips-linux-tdep.c: Ditto.
16064 * mn10300-tdep.c: Ditto.
16065 * nto-tdep.c: Ditto.
16066 * opencl-lang.c: Ditto.
16067 * osdata.c: Ditto.
16068 * printcmd.c: Ditto.
16069 * regcache.c: Ditto.
16070 * remote-m32r-sdi.c: Ditto.
16071 * remote.c: Ditto.
16072 * symfile.c: Ditto.
16073 * symtab.c: Ditto.
16074 * tilegx-linux-nat.c: Ditto.
16075 * tilegx-tdep.c: Ditto.
16076 * tracepoint.c: Ditto.
16077 * valops.c: Ditto.
16078 * vaxbsd-nat.c: Ditto.
16079 * windows-nat.c: Ditto.
16080 * xtensa-tdep.c: Ditto.
16081
16082 2014-01-07 Yao Qi <yao@codesourcery.com>
16083
16084 * spu-linux-nat.c (_initialize_spu_nat): Declare.
16085
16086 2014-01-07 Yao Qi <yao@codesourcery.com>
16087 Joel Brobecker <brobecker@adacore.com>
16088
16089 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
16090 (pdc_write_regs): Likewise.
16091 (fetch_regs_kernel_thread): Likewise.
16092 (store_regs_kernel_thread): Likewise.
16093
16094 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16095
16096 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
16097 tagged type objects to their actual type.
16098
16099 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16100
16101 * ada-valprint.c (print_field_values): Add "language" parameter.
16102 Update calls to print_field_values and print_variant_part.
16103 Pass new parameter "language" in call to val_print instead
16104 of "current_language". Replace call to ada_val_print by call
16105 to val_print.
16106 (print_variant_part): Add "language" parameter.
16107 (ada_val_print_struct_union): Update call to print_field_values.
16108
16109 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16110
16111 * ada-valprint.c (ui_memcpy): Delete.
16112 (ada_print_floating): Update documentation. Add empty line
16113 between between function documentation and implementation.
16114 Delete variable "buffer". Use ui_file_xstrdup in place of
16115 ui_file_put. Minor adjustments following this change.
16116
16117 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16118
16119 * ada-valprint.c (ada_val_print_string): New function,
16120 extracted from ada_val_print_array.
16121 (ada_val_print_array): Replace extracted code by call
16122 to ada_val_print_string followed by a return. Move
16123 "else" branch to the function's top block.
16124
16125 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16126
16127 * ada-valprint.c (ada_val_print_array): Move implementation
16128 down. Rename parameter "offset" and "val" into "offset_aligned"
16129 and "original_value" respectively. Add parameter "offset".
16130
16131 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16132
16133 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
16134 re-organizing the code. Change the "???" message printed
16135 when target type is a TYPE_CODE_UNDEF into
16136 "<ref to undefined type>".
16137
16138 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16139
16140 * ada-valprint.c (print_record): Delete, implementation inlined...
16141 (ada_val_print_struct_union): ... here. Remove call to
16142 ada_check_typedef in inlined implementation.
16143
16144 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16145
16146 * ada-valprint.c (ada_val_print_gnat_array): New function,
16147 extracted from ada_val_print_1;
16148 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
16149 (ada_val_print_flt, ada_val_print_struct_union)
16150 (ada_val_print_ref): Likewise.
16151 (ada_val_print_1): Delete variables i and elttype.
16152 Replace extracted-out code by call to corresponding
16153 new functions.
16154
16155 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16156
16157 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
16158
16159 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16160
16161 * ada-valprint.c (ada_val_print_1): Replace calls to
16162 ada_val_print_1 by calls to val_print.
16163
16164 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16165
16166 * ada-valprint.c (ada_val_print_1): Add parameter "language".
16167 Update calls to self accordingly. Replace calls to c_val_print
16168 by calls to val_print.
16169
16170 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16171
16172 * ada-valprint.c (print_record): Delete declaration.
16173 (adjust_type_signedness, ada_val_print_1): Likewise.
16174 (ada_val_print): Move function implementation down.
16175 (print_variant_part, print_field_values, print_record):
16176 Move function implementation up.
16177
16178 2014-01-07 Joel Brobecker <brobecker@adacore.com>
16179
16180 * python/py-type.c (typy_get_name): New function.
16181 (type_object_getset): Add entry for attribute "name".
16182 * NEWS: Add entry mentioning this new attribute.
16183
16184 2014-01-07 Yao Qi <yao@codesourcery.com>
16185
16186 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
16187 statement.
16188
16189 2014-01-07 Yao Qi <yao@codesourcery.com>
16190
16191 * gnu-nat.c (info_port_rights): Add qualifier const to
16192 argument args.
16193
16194 2014-01-07 Yao Qi <yao@codesourcery.com>
16195
16196 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16197
16198 2014-01-07 Yao Qi <yao@codesourcery.com>
16199
16200 * gnu-nat.c (make_inf) Update declaration.
16201 (make_inf): Make it static.
16202 (inf_set_traced): Likewise.
16203 (inf_port_to_thread, inf_task_died_status): Likewise.
16204
16205 2014-01-07 Yao Qi <yao@codesourcery.com>
16206
16207 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16208
16209 2014-01-07 Yao Qi <yao@codesourcery.com>
16210
16211 * gnu-nat.c (_initialize_gnu_nat): Declare.
16212
16213 2014-01-07 Yao Qi <yao@codesourcery.com>
16214
16215 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16216 'enum bfd_endian'.
16217 (struct gdbarch_info) <byte_order>: Change type to
16218 'enum bfd_endian'.
16219 <byte_order_for_code>: Likewise.
16220 * gdbarch.c, gdbarch.h: Regenerated.
16221
16222 2014-01-06 Sasha Smundak <asmundak@google.com>
16223
16224 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16225
16226 2014-01-06 Tom Tromey <tromey@redhat.com>
16227
16228 * doublest.c (convert_doublest_to_floatformat): Use const, not
16229 CONST.
16230 * somread.c (som_symtab_read): Likewise.
16231
16232 2014-01-07 Hui Zhu <hui@codesourcery.com>
16233
16234 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16235 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16236 (gdb_bfd_fopen): Ditto.
16237 (gdb_bfd_openr): Ditto.
16238 (gdb_bfd_openw): Ditto.
16239 (gdb_bfd_openr_iovec): Ditto.
16240 (gdb_bfd_fdopenr): Ditto.
16241 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16242 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16243 with xstrdup.
16244 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16245 with xstrdup.
16246 * symfile-mem.c (symbol_file_add_from_memory): Removed
16247 gdb_bfd_stash_filename.
16248
16249 2014-01-03 Doug Evans <dje@google.com>
16250
16251 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16252 output.
16253
16254 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16255
16256 Update year range in copyright notice of all files.
16257
16258 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16259
16260 * top.c (print_gdb_version): Set copyright year to 2014.
16261
16262 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16263
16264 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16265
16266 For older changes see ChangeLog-2013.
16267 \f
16268 Local Variables:
16269 mode: change-log
16270 left-margin: 8
16271 fill-column: 74
16272 version-control: never
16273 coding: utf-8
16274 End:
This page took 0.365848 seconds and 4 git commands to generate.