Add ChangeLog entries missing from the previous commit.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f93b65a0
JB
12014-12-13 Joel Brobecker <brobecker@adacore.com>
2
3 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Add support for
4 new "EXTRA-ARGS" parameter.
5 * configure.ac: If large-file support is disabled in GDB,
6 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
7 * configure: Regenerate.
8
5537b577
JK
92014-12-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10
11 PR symtab/17642
12 * gdbtypes.c (resolve_dynamic_type_internal): Apply check_typedef to
13 TYPE if not TYPE_CODE_TYPEDEF.
14
ae6a105d
DE
152014-12-12 Doug Evans <xdje42@gmail.com>
16
17 * valops.c (value_maybe_namespace_elt): Remove unnecessary test of
18 result != NULL.
19
59da4d04
DE
202014-12-12 Doug Evans <xdje42@gmail.com>
21
22 * cp-support.h (cp_is_in_anonymous): Renamed from cp_is_anonymous.
23 All callers updated. Rename arg "namespace" to "symbol_name".
24
83827540
DE
252014-12-12 Doug Evans <xdje42@gmail.com>
26
27 * psymtab.c (psym_map_symtabs_matching_filename): Renamed from
28 partial_map_symtabs_matching_filename. All uses updated.
29 (psym_find_pc_sect_compunit_symtab): Renamed from
30 find_pc_sect_compunit_symtab_from_partial. All uses updated.
31 Add function comment.
32 (psym_lookup_symbol): Renamed from lookup_symbol_aux_psymtabs.
33 All uses updated. Add function comment.
34 (psym_relocate): Renamed from relocate_psymtabs. All uses updated.
35 Add function comment.
36 (psym_find_last_source_symtab): Renamed from
37 find_last_source_symtab_from_partial. All uses updated.
38 Add function comment.
39 (psym_forget_cached_source_info): Renamed from
40 forget_cached_source_info_partial. All uses updated.
41 Add function comment.
42 (psym_print_stats): Renamed from print_psymtab_stats_for_objfile.
43 All uses updated. Add function comment.
44 (psym_dump): Renamed from dump_psymtabs_for_objfile. All uses
45 updated. Add function comment.
46 (psym_expand_symtabs_for_function): Renamed from
47 read_symtabs_for_function. All uses updated. Update function comment.
48 (psym_expand_all_symtabs): Renamed from expand_partial_symbol_tables.
49 All uses updated. Add function comment.
50 (psym_expand_symtabs_with_fullname): Renamed from
51 read_psymtabs_with_fullname. All uses updated. Add function comment.
52 (psym_map_symbol_filenames): Renamed from map_symbol_filenames_psymtab.
53 All uses updated. Add function comment.
54 (psym_map_matching_symbols): Renamed from map_matching_symbols_psymtab.
55 All uses updated.
56 (psym_expand_symtabs_matching): Renamed from
57 expand_symtabs_matching_via_partial. All uses updated.
58 Add function comment.
59 (psym_has_symbols): Renamed from objfile_has_psyms. All uses updated.
60 Add function comment.
61
bb2ec1b3
TT
622014-12-12 Phil Muldoon <pmuldoon@redhat.com>
63 Jan Kratochvil <jan.kratochvil@redhat.com>
64 Tom Tromey <tromey@redhat.com>
65
66 * NEWS: Update.
67 * symtab.h (struct symbol_computed_ops) <generate_c_location>: New
68 field.
69 * p-lang.c (pascal_language_defn): Update.
70 * opencl-lang.c (opencl_language_defn): Update.
71 * objc-lang.c (objc_language_defn): Update.
72 * m2-lang.c (m2_language_defn): Update.
73 * language.h (struct language_defn) <la_get_compile_instance,
74 la_compute_program>: New fields.
75 * language.c (unknown_language_defn, auto_language_defn)
76 (local_language_defn): Update.
77 * jv-lang.c (java_language_defn): Update.
78 * go-lang.c (go_language_defn): Update.
79 * f-lang.c (f_language_defn): Update.
80 * dwarf2loc.h (dwarf2_compile_property_to_c): Declare.
81 * dwarf2loc.c (dwarf2_compile_property_to_c)
82 (locexpr_generate_c_location, loclist_generate_c_location): New
83 functions.
84 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
85 * defs.h (enum compile_i_scope_types): New.
86 (enum command_control_type) <compile_control>: New constant.
87 (struct command_line) <control_u>: New field.
88 * d-lang.c (d_language_defn): Update.
89 * compile/compile.c: New file.
90 * compile/compile-c-support.c: New file.
91 * compile/compile-c-symbols.c: New file.
92 * compile/compile-c-types.c: New file.
93 * compile/compile.h: New file.
94 * compile/compile-internal.h: New file.
95 * compile/compile-loc2c.c: New file.
96 * compile/compile-object-load.c: New file.
97 * compile/compile-object-load.h: New file.
98 * compile/compile-object-run.c: New file.
99 * compile/compile-object-run.h: New file.
100 * cli/cli-script.c (multi_line_command_p, print_command_lines)
101 (execute_control_command, process_next_line)
102 (recurse_read_control_structure): Handle compile_control.
103 * c-lang.h (c_get_compile_context, c_compute_program): Declare.
104 * c-lang.c (c_language_defn, cplus_language_defn)
105 (asm_language_defn, minimal_language_defn): Update.
106 * ada-lang.c (ada_language_defn): Update.
107 * Makefile.in (SUBDIR_GCC_COMPILE_OBS, SUBDIR_GCC_COMPILE_SRCS):
108 New variables.
109 (SFILES): Add SUBDIR_GCC_COMPILE_SRCS.
110 (HFILES_NO_SRCDIR): Add compile.h.
111 (COMMON_OBS): Add SUBDIR_GCC_COMPILE_OBS.
112 (INIT_FILES): Add SUBDIR_GCC_COMPILE_SRCS.
113 (compile.o, compile-c-types.o, compile-c-symbols.o)
114 (compile-object-load.o, compile-object-run.o, compile-loc2c.o)
115 (compile-c-support.o): New targets.
116
a2658feb
JK
1172014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
118
119 * s390-linux-tdep.c (s390_gcc_target_options): New function.
120 (s390_gdbarch_init): Add it to gdbarch.
121
3bc3cebe
JK
1222014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
123
124 * linux-tdep.c: Include objfiles.h and infcall.h.
125 (GDB_MMAP_MAP_PRIVATE, GDB_MMAP_MAP_ANONYMOUS, linux_infcall_mmap): New
126 function.
127 (linux_init_abi): Add linux_infcall_mmap to gdbarch.
128
d064d1be
JK
1292014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
130
131 * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare.
132 * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from
133 translate_register. Now public.
134 (dwarf2_compile_expr_to_ax): Update.
135
af945b75
TT
1362014-12-12 Tom Tromey <tromey@redhat.com>
137 Jan Kratochvil <jan.kratochvil@redhat.com>
138
139 * dwarf2loc.c (dwarf_expr_frame_base_1): Remove declaration.
140 (dwarf_expr_frame_base): Update caller.
141 (dwarf_expr_frame_base_1): Rename to ...
142 (func_get_frame_base_dwarf_block): ... this and make it public.
143 (dwarf2_compile_expr_to_ax, locexpr_describe_location_piece): Update
144 callers.
145 * dwarf2loc.h (func_get_frame_base_dwarf_block): New declaration.
146
a8fd5589
TT
1472014-12-12 Tom Tromey <tromey@redhat.com>
148
149 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_call_frame_cfa>:
150 Update.
151 * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on
152 dwarf2_compile_cfa_to_ax.
153 (dwarf2_compile_cfa_to_ax): Remove.
154 * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare.
155 (dwarf2_compile_cfa_to_ax): Remove.
156
ed12ef62
JK
1572014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
158
159 * infcall.h (call_function_by_hand_dummy): Declare.
160 * infcall.c (call_function_by_hand): Use
161 call_function_by_hand_dummy.
162 (call_function_by_hand_dummy): Rename from call_function_by_hand.
163 Add arguments. Register a destructor.
164
ac04f72b
TT
1652014-12-12 Tom Tromey <tromey@redhat.com>
166 Jan Kratochvil <jan.kratochvil@redhat.com>
167
168 * osabi.h (osabi_triplet_regexp): Declare.
169 * osabi.c (struct osabi_names): New.
170 (gdb_osabi_names): Change type to struct osabi_names. Update
171 values.
172 (gdbarch_osabi_name): Update.
173 (osabi_triplet_regexp): New function.
174 (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
175 * i386-tdep.c (i386_gnu_triplet_regexp): New method.
176 (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
177 set_gdbarch_gnu_triplet_regexp.
178 * gdbarch.sh (gnu_triplet_regexp): New method.
179 * gdbarch.c, gdbarch.h: Rebuild.
180 * arch-utils.h (default_gnu_triplet_regexp): Declare.
181 * arch-utils.c (default_gnu_triplet_regexp): New function.
182
f208eee0
JK
1832014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
184
185 * arch-utils.c (default_infcall_mmap)
186 (default_gcc_target_options): New functions.
187 * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
188 (GDB_MMAP_PROT_EXEC): Define.
189 (default_infcall_mmap, default_gcc_target_options): Declare.
190 * gdbarch.h: Rebuild.
191 * gdbarch.c: Rebuild.
192 * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
193
233a8fb3
JK
1942014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
195
196 * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
197 fields.
198 (pop_dummy_frame): Call the destructor if it exists.
199 (register_dummy_frame_dtor, find_dummy_frame_dtor): New
200 functions.
201 * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
202 (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
203
f1660027
TT
2042014-12-12 Tom Tromey <tromey@redhat.com>
205
206 * gdbtypes.h (make_unqualified_type): Declare.
207 * gdbtypes.c (make_unqualified_type): New function.
208
de571fc5
TT
2092014-12-12 Tom Tromey <tromey@redhat.com>
210
211 * ui-file.h (ui_file_write_for_put): Declare.
212 * ui-file.c (ui_file_write_for_put): New function.
213 * mi/mi-out.c (do_write): Remove.
214 (mi_out_put): Use ui_file_write_for_put.
215
6dddd6a5
DE
2162014-12-12 Doug Evans <dje@google.com>
217
218 * NEWS: Mention gdb.lookup_objfile.
219 * python/python.c (GdbMethods): Add lookup_objfile.
220 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
221 * python/py-objfile.c: #include "symtab.h".
222 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
223 (objfpy_lookup_objfile_by_name): New function.
224 (objfpy_lookup_objfile_by_build_id): New function.
225 (gdbpy_lookup_objfile): New function.
226
f161c171
MR
2272014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
228
229 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
230 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
231 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
232 macros.
233 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
234 Likewise.
235
71c24708
AA
2362014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
237
238 * completer.c: Include "target.h", "reggroups.h", and
239 "user-regs.h".
240 (reg_or_group_completer): New.
241 * completer.h (reg_or_group_completer): Declare.
242 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
243 the "info registers" and "info all-registers" commands and the
244 dbx-mode "lr" command.
245
f5b95c01
AA
2462014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
247
248 * user-regs.c: Include "arch-utils.h", "command.h", and
249 "cli/cli-cmds.h".
250 (maintenance_print_user_registers): New.
251 (_initialize_user_regs): Register new "maint print user-registers"
252 subcommand.
253 * NEWS: Mention new GDB command "maint print user-registers".
254
3e29f34a
MR
2552014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
256 Maciej W. Rozycki <macro@mips.com>
257 Pedro Alves <pedro@codesourcery.com>
258
259 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
260 remove `predefault' and `invalid_p' initializers.
261 (make_symbol_special): New architecture method.
262 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
263 (objfile, symbol): New declarations.
264 * arch-utils.h (default_elf_make_msymbol_special): Remove
265 prototype.
266 (default_make_symbol_special): New prototype.
267 (default_adjust_dwarf2_addr): Likewise.
268 (default_adjust_dwarf2_line): Likewise.
269 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
270 * arch-utils.c (default_elf_make_msymbol_special): Remove
271 function.
272 (default_make_symbol_special): New function.
273 (default_adjust_dwarf2_addr): Likewise.
274 (default_adjust_dwarf2_line): Likewise.
275 * dwarf2-frame.c (decode_frame_entry_1): Call
276 `gdbarch_adjust_dwarf2_addr'.
277 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
278 * dwarf2read.c (create_addrmap_from_index): Likewise.
279 (process_psymtab_comp_unit_reader): Likewise.
280 (add_partial_symbol): Likewise.
281 (add_partial_subprogram): Likewise.
282 (process_full_comp_unit): Likewise.
283 (read_file_scope): Likewise.
284 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
285 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
286 (read_call_site_scope): Likewise.
287 (dwarf2_ranges_read): Likewise.
288 (dwarf2_record_block_ranges): Likewise.
289 (read_attribute_value): Likewise.
290 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
291 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
292 * elfread.c (elf_symtab_read): Don't call
293 `gdbarch_elf_make_msymbol_special' if unset.
294 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
295 the ISA bit from the PC.
296 * mips-tdep.c (mips_unmake_compact_addr): New function.
297 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
298 address appropriately.
299 (mips_make_symbol_special): New function.
300 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
301 (mips_pc_is_mips16): Likewise.
302 (mips_pc_is_micromips): Likewise.
303 (mips_pc_isa): Likewise.
304 (mips_adjust_dwarf2_addr): New function.
305 (mips_adjust_dwarf2_line): Likewise.
306 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
307 (mips_addr_bits_remove): Likewise.
308 (mips_skip_trampoline_code): Likewise.
309 (mips_write_pc): Don't set the ISA bit.
310 (mips_eabi_push_dummy_call): Likewise.
311 (mips_o64_push_dummy_call): Likewise.
312 (mips_gdbarch_init): Install `mips_make_symbol_special',
313 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
314 handlers.
315 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
316 target-specific symbol address adjustments.
317 * gdbarch.h: Regenerate.
318 * gdbarch.c: Regenerate.
319
21daaaaf
YQ
3202014-12-12 Yao Qi <yao@codesourcery.com>
321
322 PR tdep/14261
323 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
324 'skip_pc'. Remove code skipping prologue instructions, use
325 arm_analyze_prologue instead.
326 (arm_analyze_prologue): Stop the scanning for unrecognized
327 instruction when skipping prologue.
328
f303bc3e
YQ
3292014-12-12 Yao Qi <yao@codesourcery.com>
330
331 * arm-tdep.c (arm_instruction_restores_sp): New function.
332 (arm_analyze_prologue): Call arm_instruction_restores_sp.
333 (arm_in_function_epilogue_p): Move code to
334 arm_instruction_restores_sp.
335
05a6c3c8
DE
3362014-12-11 Doug Evans <xdje42@gmail.com>
337
338 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
339
fe2a438d
DE
3402014-12-11 Doug Evans <xdje42@gmail.com>
341
342 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
343 (symbol *lookup_symbol_via_quick_fns): Ditto.
344 (lookup_symbol_in_objfile): Add forward decl.
345 (lookup_global_symbol_from_objfile): Simplify, call
346 lookup_symbol_in_objfile.
347
540feddf
DE
3482014-12-11 Doug Evans <xdje42@gmail.com>
349
350 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
351
fc126975
SM
3522014-12-10 Simon Marchi <simon.marchi@ericsson.com>
353
354 PR breakpoints/17012
355 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
356 it is marked as persistent.
357
56286edf
DE
3582014-12-10 Doug Evans <xdje42@gmail.com>
359
360 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
361 closer to its subroutines.
362
34ef8452
DE
3632014-12-10 Doug Evans <xdje42@gmail.com>
364
365 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
366
9a80057a
DE
3672014-12-10 Doug Evans <xdje42@gmail.com>
368
369 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
370 * cp-support.c (cp_lookup_symbol_imports): Delete.
371
1abf3a14
SM
3722014-12-10 Simon Marchi <simon.marchi@ericsson.com>
373
374 PR gdb/17627
375 * target.c (cleanup_restore_target_terminal): New function.
376 (make_cleanup_restore_target_terminal): New function.
377 * target.h (make_cleanup_restore_target_terminal): New declaration.
378 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
379
d4d1e336
DE
3802014-12-08 Doug Evans <dje@google.com>
381
382 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
383
a0be3e44
DE
3842014-12-08 Doug Evans <dje@google.com>
385
386 * NEWS: Mention gdb.Objfile.owner.
387 * python/py-objfile.c (objfpy_get_owner): New function.
388 (objfile_getset): Add "owner".
389
6c1c7be3
JK
3902014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
391
392 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
393 (lookup_global_symbol_from_objfile): Call it.
394
efad9b6a
JK
3952014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
396
397 Remove const from struct objfile *.
398 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
399 symtab.c, symtab.h: In these files.
400
069bb7ec
AF
4012014-12-05 Andreas From <andreas.from@ericsson.com>
402
403 * MAINTAINERS (Write After Approval): Add "Andreas From"
404
642a8d80
DE
4052014-12-05 Doug Evans <xdje42@gmail.com>
406
407 Revert:
408 PR symtab/17602
409 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
410
86e4ed39
DE
4112014-12-04 Doug Evans <dje@google.com>
412
413 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
414 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
415 (objfile_getset): Add "add_separate_debug_file".
416
7c50a931
DE
4172014-12-04 Doug Evans <dje@google.com>
418
419 * NEWS: Mention gdb.Objfile.build_id.
420 * build-id.c (build_id_bfd_get): Make non-static.
421 * build-id.h (build_id_bfd_get): Add declaration.
422 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
423 (OBJFPY_REQUIRE_VALID): New macro.
424 (objfpy_get_build_id): New function.
425 (objfile_getset): Add "build_id".
426 * utils.c (make_hex_string): New function.
427 * utils.h (make_hex_string): Add declaration.
428
ba715d7f
JK
4292014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
430
431 * block.c (block_lookup_symbol_primary): New function.
432 * block.h (block_lookup_symbol_primary): New declaration.
433 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
434 Call block_lookup_symbol_primary.
435
858339f2
MR
4362014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
437
438 * tramp-frame.h (tramp_frame): Add `validate' member.
439 * tramp-frame.c (tramp_frame_start): Validate trampoline before
440 scanning.
441 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
442 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
443 (mips_linux_o32_sigframe): Initialize `validate' member.
444 (mips_linux_o32_rt_sigframe): Likewise.
445 (mips_linux_n32_rt_sigframe): Likewise.
446 (mips_linux_n64_rt_sigframe): Likewise.
447 (micromips_linux_o32_sigframe): New variable.
448 (micromips_linux_o32_rt_sigframe): Likewise.
449 (micromips_linux_n32_rt_sigframe): Likewise.
450 (micromips_linux_n64_rt_sigframe): Likewise.
451 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
452 (mips_linux_n32n64_sigframe_init): Likewise.
453 (mips_linux_sigframe_validate): New function.
454 (micromips_linux_sigframe_validate): Likewise.
455 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
456
ff1eb2b5
UW
4572014-12-03 Ulrich Weigand  <uweigand@de.ibm.com>
458
459 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
460 * sparc-sol2-tdep.c: Include "regset.h".
461 (sparc32_sol2_supply_core_gregset): New function.
462 (sparc32_sol2_collect_core_gregset): Likewise.
463 (sparc32_sol2_supply_core_fpregset): Likewise.
464 (sparc32_sol2_collect_core_fpregset): Likewise.
465 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
466 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
467 tdep->fpregset/sizeof_fpregset.
468 * sparc64-sol2-tdep.c: Include "regset.h".
469 (sparc64_sol2_supply_core_gregset): New function.
470 (sparc64_sol2_collect_core_gregset): Likewise.
471 (sparc64_sol2_supply_core_fpregset): Likewise.
472 (sparc64_sol2_collect_core_fpregset): Likewise.
473 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
474 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
475 tdep->fpregset/sizeof_fpregset.
476
75783939
SM
4772014-12-03 Simon Marchi <simon.marchi@ericsson.com>
478
479 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
480 type.
481
7c5fdd25
DE
4822014-12-02 Doug Evans <dje@google.com>
483
484 * symtab.c (symbol_init_cplus_specific): Delete.
485 (symbol_set_demangled_name): Remove special c++ support.
486 (symbol_get_demangled_name, symbol_set_language): Ditto.
487 * symtab.h (struct cplus_specific): Delete.
488 (struct general_symbol_info) <language_specific>: Remove
489 cplus_specific.
490
29f0c3b7
DE
4912014-12-02 Doug Evans <dje@google.com>
492
493 PR symtab/17602
494 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
495
72998fb3
DE
4962014-12-02 Doug Evans <dje@google.com>
497
498 PR symtab/17591
499 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
500 to strip parameters.
501
422b9917
DE
5022014-12-02 Doug Evans <dje@google.com>
503
504 * dwarf2read.c (peek_die_abbrev): Improve error message text.
505
47c6ee49
DE
5062014-12-02 Doug Evans <dje@google.com>
507
508 * valops.c (do_search_struct_field): Remove remnant of Chill support.
509 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
510
5da3ffc9
SM
5112014-12-02 Simon Marchi <simon.marchi@ericsson.com>
512
513 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
514
162078c8
NB
5152014-12-02 Nick Bull <nicholaspbull@gmail.com>
516
517 * NEWS: Mention new Python events.
518 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
519 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
520 (py-infevents.o): New rule.
521 * doc/observer.texi (inferior_call_pre, inferior_call_post)
522 (memory_changed, register_changed): New observers.
523 * infcall.c (call_function_by_hand): Notify observer before and
524 after inferior call.
525 * python/py-event.h (inferior_call_kind): New enum.
526 (emit_inferior_call_event): New prototype.
527 (emit_register_changed_event): New prototype.
528 (emit_memory_changed_event): New prototype.
529 * python/py-events.h (events_object): New registries
530 inferior_call, memory_changed and register_changed.
531 * python/py-evts.c (gdbpy_initialize_py_events): Add the
532 inferior_call, memory_changed and register_changed registries.
533 * python/py-infevents.c: New.
534 * python/py-inferior.c (python_on_inferior_call_pre)
535 (python_on_inferior_call_post, python_on_register_change)
536 (python_on_memory_change): New functions.
537 (gdbpy_initialize_inferior): Attach python handler to new
538 observers.
539 * python/py-infthread.c(gdbpy_create_ptid_object): New.
540 (thpy_get_ptid) Use gdbpy_create_ptid_object.
541 * python/python-internal.h:
542 (gdbpy_create_ptid_object)
543 (gdbpy_initialize_inferior_call_pre_event)
544 (gdbpy_initialize_inferior_call_post_event)
545 (gdbpy_initialize_register_changed_event)
546 (gdbpy_initialize_memory_changed_event): New prototypes.
547 * python/python.c (_initialize_python): Initialize new events.
548 * valops.c (value_assign): Notify register_changed observer.
549
007baf27
DE
5502014-12-02 Doug Evans <dje@google.com>
551
552 * python/py-infthread.c: Whitespace fixes.
553
d5552aab
AA
5542014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
555
556 * features/Makefile (s390-te-linux64-expedite): Replace
557 non-existant r14 and r15 by r14l and r15l, respectively.
558 * regformats/s390-te-linux64.dat: Regenerate.
559
30b5e341
SM
5602014-12-01 Simon Marchi <simon.marchi@ericsson.com>
561
562 * objfiles.c (allocate_objfile): Remove duplicate comment.
563
ac3d87c0
UW
5642014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
565
566 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
567 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
568 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
569 (supply_gregset, supply_fpregset): Remove.
570 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
571 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
572 and sizeof_gregset.
573
f10c5b19
JK
5742014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
575
576 Add add-auto-load-scripts-directory.
577 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
578 * auto-load.c (add_auto_load_dir): New function.
579 (_initialize_auto_load): Install it.
580
f0d4ba1f
MG
5812014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
582
583 Pushed by Joel Brobecker <brobecker@adacore.com>.
584 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
585
18ac6ffc
SC
5862014-11-29 Siva Chandra Reddy <sivachandra@google.com>
587
588 * eval.c (evaluate_subexp): Check that the thread stack temporaries
589 are not already enabled before enabling them.
590
4072f920
YQ
5912014-11-29 Yao Qi <yao@codesourcery.com>
592
593 * arm-tdep.c (arm_analyze_prologue): Move local variables
594 'framereg' and 'framesize' to inner block. Move code to
595 inner block too.
596
6c659fc2
SC
5972014-11-28 Siva Chandra Reddy <sivachandra@google.com>
598
599 * eval.c: Include gdbthread.h.
600 (evaluate_subexp): Enable thread stack temporaries before
601 evaluating a complete expression and clean them up after the
602 evaluation is complete.
603 * gdbthread.h: Include common/vec.h.
604 (value_ptr): New typedef.
605 (VEC (value_ptr)): New vector type.
606 (value_vec): New typedef.
607 (struct thread_info): Add new fields stack_temporaries_enabled
608 and stack_temporaries.
609 (enable_thread_stack_temporaries)
610 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
611 (get_last_thread_stack_temporary)
612 (value_in_thread_stack_temporaries): Declare.
613 * gdbtypes.c (class_or_union_p): New function.
614 * gdbtypes.h (class_or_union_p): Declare.
615 * infcall.c (call_function_by_hand): Store return values of class
616 type as temporaries on stack.
617 * thread.c (enable_thread_stack_temporaries): New function.
618 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
619 (get_last_thread_stack_temporary): Likewise.
620 (value_in_thread_stack_temporaries): Likewise.
621 * value.c (value_force_lval): New function.
622 * value.h (value_force_lval): Declare.
623
f7ca3fcf
PM
6242014-11-28 Pierre Muller <muller@sourceware.org>
625
626 Pushed by Joel Brobecker <brobecker@adacore.com>.
627 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
628 registers.
629
b2859a9a
UW
6302014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
631
632 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
633 * config/sparc/linux.mh (NATDEPFILES): Likewise.
634 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
635 * m68klinux-nat.c (fetch_core_registers): Remove.
636 (linux_elf_core_fns): Remove.
637 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
638
0fa9473f
JB
6392014-11-28 Joel Brobecker <brobecker@adacore.com>
640
641 * utils.c (gdb_realpath): Rework comment about handling on
642 Windows.
643
6a29c58e
YQ
6442014-11-28 Yao Qi <yao@codesourcery.com>
645
646 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
647 rename.
648 * gnulib/aclocal.m4: Re-generated.
649 * gnulib/config.in: Re-generated.
650 * gnulib/configure: Re-generated.
651 * gnulib/import/Makefile.am: Re-generated.
652 * gnulib/import/Makefile.in: Re-generated.
653 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
654 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
655 * import/basename-lgpl.c: New file.
656 * import/dirname-lgpl.c: New file.
657 * import/dirname.h: New file.
658 * import/m4/dirname.m4: New file.
659 * import/m4/malloc.m4: New file.
660 * import/m4/rename.m4: New file.
661 * import/m4/rmdir.m4: New file.
662 * import/m4/stdio_h.m4: New file.
663 * import/malloc.c: New file.
664 * import/rename.c: New file.
665 * import/rmdir.c: New file.
666 * import/same-inode.h: New file.
667 * import/stdio.c: New file.
668 * import/stdio.in.h: New file.
669 * import/stripslash.c: New file.
670
abbffc89
YQ
6712014-11-28 Yao Qi <yao@codesourcery.com>
672
673 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
674 and realpath.
675 * config.in: Re-generated.
676 * configure: Re-generated.
677 * utils.c (gdb_realpath): Remove code calling realpath,
678 canonicalize_file_name and pathconf.
679 [!_WIN32]: Call canonicalize_file_name.
680
98399780
YQ
6812014-11-28 Yao Qi <yao@codesourcery.com>
682
683 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
684 canonicalize-lgpl.
685 * aclocal.m4: Re-generated.
686 * config.in: Re-generated.
687 * configure: Re-generated.
688 * import/Makefile.am: Re-generated.
689 * import/Makefile.in: Re-generated.
690 * import/m4/gnulib-cache.m4: Re-generated.
691 * import/m4/gnulib-comp.m4: Re-generated.
692 * import/canonicalize-lgpl.c: New file.
693 * import/extra/snippet/_Noreturn.h: New file.
694 * import/m4/canonicalize.m4: New file.
695 * import/m4/double-slash-root.m4: New file.
696 * import/m4/eealloc.m4: New file.
697 * import/m4/malloca.m4: New file.
698 * import/m4/nocrash.m4: New file.
699 * import/m4/stdlib_h.m4: New file.
700 * import/malloca.c: New file.
701 * import/malloca.h: New file.
702 * import/malloca.valgrind: New file.
703
3332aaf2
YQ
7042014-11-28 Yao Qi <yao@codesourcery.com>
705
706 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
707 * config.in, configure: Regenerate.
708 * symfile.c (find_separate_debug_file_by_debuglink): Remove
709 code checking HAVE_LSTAT is defined.
710
f45c62c4
YQ
7112014-11-28 Yao Qi <yao@codesourcery.com>
712
713 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
714 lstat.
715 * gnulib/aclocal.m4: Re-generated.
716 * gnulib/config.in: Re-generated.
717 * gnulib/configure: Re-generated.
718 * gnulib/import/Makefile.am: Re-generated.
719 * gnulib/import/Makefile.in: Re-generated.
720 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
721 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
722 * gnulib/import/lstat.c: New file.
723 * gnulib/import/m4/lstat.m4: New file.
724
bdca27a2
YQ
7252014-11-28 Yao Qi <yao@codesourcery.com>
726
727 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
728 * config.in, configure: Re-generate.
729 * inf-child.c (inf_child_fileio_readlink): Don't check
730 HAVE_READLINK is defined.
731
2196f55f
YQ
7322014-11-28 Yao Qi <yao@codesourcery.com>
733
734 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
735 * gnulib/aclocal.m4: Re-generated.
736 * gnulib/config.in: Likewise.
737 * gnulib/configure: Likewise.
738 * gnulib/import/Makefile.am: Likewise.
739 * gnulib/import/Makefile.in: Likewise.
740 * gnulib/import/m4/gnulib-cache.m4: Likewise.
741 * gnulib/import/m4/gnulib-comp.m4: Likewise.
742 * gnulib/import/dosname.h: New file
743 * gnulib/import/m4/largefile.m4: New file.
744 * gnulib/import/m4/readlink.m4: New file.
745 * gnulib/import/m4/stat.m4: New file.
746 * gnulib/import/readlink.c: New file.
747 * gnulib/import/stat.c: New file.
748
7014e923 7492014-11-26 Mark Wielaard <mjw@redhat.com>
0cfd832f
MW
750
751 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
752 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
753
aa489395
SL
7542014-11-25 Sandra Loosemore <sandra@codesourcery.com>
755
756 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
757 that there can be only one stack adjustment in the prologue
758 with tests to detect specific disallowed stack adjustments.
759
7f1659b5
SL
7602014-11-25 Sandra Loosemore <sandra@codesourcery.com>
761
762 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
763 adjustments.
764
d53c26c7
SL
7652014-11-25 Sandra Loosemore <sandra@codesourcery.com>
766
767 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
768 the instruction as well as reading it from memory.
769 (nios2_match_add): New.
770 (nios2_match_sub): New.
771 (nios2_match_addi): New.
772 (nios2_match_orhi): New.
773 (nios2_match_stw): New.
774 (nios2_match_ldw): New.
775 (nios2_match_rdctl): New.
776 (enum branch_condition): New.
777 (nios2_match_branch): New.
778 (nios2_match_jmpi): New.
779 (nios2_match_calli): New.
780 (nios2_match_jmpr): New.
781 (nios2_match_callr): New.
782 (nios2_match_break): New.
783 (nios2_match_trap): New.
784 (nios2_in_epilogue_p): Rewrite to use new functions.
785 (nios2_analyze_prologue): Likewise.
786 (nios2_skip_prologue): Delete unused local limit_pc.
787 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
788 (nios2_get_next_pc): Rewrite to use new functions.
789
cac9b138
JK
7902014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
791
792 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
793
a441dfbc
ST
7942014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
795
796 Pushed by Joel Brobecker <brobecker@adacore.com>
797 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
798 elements pi_len by the size of the elements before calling
799 vm_deallocate.
800 (inf_validate_task_sc): Likewise, and properly deallocate the
801 noise array.
802
4c9e8482
DE
8032014-11-23 Doug Evans <xdje42@gmail.com>
804
805 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
806 number and name if present. All callers updated.
807 (dump_fn_fieldlists): Fix indentation of args.
808
15ee0bbd
PP
8092014-11-23 Patrick Palka <patrick@parcs.ath.cx>
810
811 * MAINTAINERS (Write After Approval): Add myself.
812
e8af5d7a
JB
8132014-11-23 Joel Brobecker <brobecker@adacore.com>
814
815 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
816 to a bp_call_dummy breakpoint type.
817
a344fc09
PP
8182014-11-23 Patrick Palka <patrick@parcs.ath.cx>
819
820 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
821 registering the signal handler.
822
d64e57fa
PP
8232014-11-23 Patrick Palka <patrick@parcs.ath.cx>
824
825 * event-top.h (call_stdin_event_handler_again_p): Declare.
826 * event-top.c (call_stdin_event_handler_again_p): Define.
827 (stdin_event_handler): Use it.
828 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
829 handler again if there is pending input following a
830 start sequence.
831
6f9d33d8
PP
8322014-11-23 Patrick Palka <patrick@parcs.ath.cx>
833
834 Pushed by Joel Brobecker <brobecker@adacore.com>
835 * linux-fork.c (checkpoint_command): Print index of new
836 checkpoint in response message.
837
88db67ef
YQ
8382014-11-23 Yao Qi <yao@codesourcery.com>
839
840 * valprint.c (read_string): Move local variables 'found_nul',
841 'chunksize' and 'limit' to inner scope. Update comments.
842
01465b56
DE
8432014-11-22 Doug Evans <xdje42@gmail.com>
844
845 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
846 function comment.
847 (search_symbols): Fix comments and whitespace.
848
07a1c2c3
DE
8492014-11-22 Doug Evans <xdje42@gmail.com>
850
851 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
852
b2a919a8
DE
8532014-11-21 Doug Evans <dje@google.com>
854
855 * psymtab.c (psymtab_search_name): Fix whitespace.
856
278289d5
YQ
8572014-11-21 Yao Qi <yao@codesourcery.com>
858
859 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
860 errno.
861 * gnulib/import/Makefile.am: Re-generated.
862 * gnulib/import/Makefile.in: Likewise.
863 * gnulib/import/m4/gnulib-cache.m4: Likewise.
864
e01e2baa
YQ
8652014-11-21 Yao Qi <yao@codesourcery.com>
866
867 * gdb_wchar.h: Include wchar.h and wctype.h.
868 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
869 include wchar.h and wctype.h.
870 Don't check HAVE_WCHAR_H.
871
f0c00af8
YQ
8722014-11-21 Yao Qi <yao@codesourcery.com>
873
874 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
875 and wctype-h.
876 * gnulib/import/Makefile.am: Re-generated.
877 * gnulib/import/Makefile.in: Likewise.
878 * gnulib/import/m4/gnulib-cache.m4: Likewise.
879
0cae13bb
YQ
8802014-11-21 Yao Qi <yao@codesourcery.com>
881
882 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
883 memchr.
884 * gnulib/import/Makefile.am: Re-generated.
885 * gnulib/import/Makefile.in: Likewise.
886 * gnulib/import/m4/gnulib-cache.m4: Likewise.
887
9c232dda
YQ
8882014-11-21 Yao Qi <yao@codesourcery.com>
889
890 * common/common-defs.h: Include alloca.h
891 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
892 * configure: Re-generated.
893 * defs.h: Remove code handling alloca.
894 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
895 or not.
896
00d7f58f
YQ
8972014-11-21 Yao Qi <yao@codesourcery.com>
898
899 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
900 alloca.
901 * gnulib/import/Makefile.am: Re-generated.
902 * gnulib/import/Makefile.in: Likewise..
903 * gnulib/import/m4/gnulib-cache.m4: Likewise.
904
6068ad5d
YQ
9052014-11-21 Yao Qi <yao@codesourcery.com>
906
907 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
908 alphabetical order.
909
45e44d27
JB
9102014-11-21 Joel Brobecker <brobecker@adacore.com>
911
912 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
913 flag_unsigned if HIGH_BOUND is constant and negative.
914
7e7cbeb3
SDJ
9152014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
916
917 PR breakpoints/10737
918 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
919 modifier from "struct gdbarch" when compiling without Expat (XML)
920 support.
921 (get_syscall_by_number): Likewise.
922 (get_syscall_by_name): Likewise.
923 (get_syscall_names): Likewise.
924
458c8db8
SDJ
9252014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
926
927 PR breakpoints/10737
928 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
929 set_xml_syscall_file_name to provide gdbarch.
930 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
931 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
932 * breakpoint.c (print_it_catch_syscall): Adjust call to
933 get_syscall_by_number to provide gdbarch.
934 (print_one_catch_syscall): Likewise.
935 (print_mention_catch_syscall): Likewise.
936 (print_recreate_catch_syscall): Likewise.
937 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
938 and get_syscall_by_name to provide gdbarch.
939 (catch_syscall_completer): Adjust call to get_syscall_names to
940 provide gdbarch.
941 * gdbarch.c: Regenerate.
942 * gdbarch.h: Likewise.
943 * gdbarch.sh: Forward declare "struct syscalls_info".
944 (xml_syscall_file): New variable.
945 (syscalls_info): Likewise.
946 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
947 set_xml_syscall_file_name to provide gdbarch.
948 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
949 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
950 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
951 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
952 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
953 * xml-syscall.c: Include gdbarch.h.
954 (set_xml_syscall_file_name): Accept gdbarch parameter.
955 (get_syscall_by_number): Likewise.
956 (get_syscall_by_name): Likewise.
957 (get_syscall_names): Likewise.
958 (my_gdb_datadir): Delete global variable.
959 (struct syscalls_info) <my_gdb_datadir>: New variable.
960 (struct syscalls_info) <sysinfo>: Rename variable to
961 "syscalls_info".
962 (sysinfo): Delete global variable.
963 (have_initialized_sysinfo): Likewise.
964 (xml_syscall_file): Likewise.
965 (sysinfo_free_syscalls_desc): Rename to...
966 (syscalls_info_free_syscalls_desc): ... this.
967 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
968 code to the new layout of "struct syscalls_info".
969 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
970 "syscalls_info".
971 (syscall_create_syscall_desc): Likewise.
972 (syscall_start_syscall): Likewise.
973 (syscall_parse_xml): Likewise.
974 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
975 (init_sysinfo): Rename to...
976 (init_syscalls_info): ...this. Add gdbarch as a parameter.
977 Adjust function to deal with gdbarch.
978 (xml_get_syscall_number): Delete parameter sysinfo. Accept
979 gdbarch as a parameter. Adjust code.
980 (xml_get_syscall_name): Likewise.
981 (xml_list_of_syscalls): Likewise.
982 (set_xml_syscall_file_name): Accept gdbarch as parameter.
983 (get_syscall_by_number): Likewise.
984 (get_syscall_by_name): Likewise.
985 (get_syscall_names): Likewise.
986 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
987 (get_syscall_by_number): Likewise.
988 (get_syscall_by_name): Likewise.
989 (get_syscall_names): Likewise.
990
43f3e411
DE
9912014-11-20 Doug Evans <xdje42@gmail.com>
992
993 Split struct symtab into two: struct symtab and compunit_symtab.
994 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
995 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
996 to "struct compunit_symtab *". All callers updated.
997 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
998 "struct symtab *" argument to "struct compunit_symtab *".
999 All callers updated.
1000 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
1001 result to "struct compunit_symtab *". All callers updated.
1002 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
1003 Change result to "struct compunit_symtab *". All callers updated.
1004 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
1005 hange type to "struct compunit_symtab *". All uses updated.
1006 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
1007 Change type to "struct compunit_symtab *". All uses updated.
1008 * buildsym.c (struct buildsym_compunit): New struct.
1009 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
1010 (buildsym_compunit): New static global.
1011 (finish_block_internal): Update to fetch objfile from
1012 buildsym_compunit.
1013 (make_blockvector): Delete objfile argument.
1014 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
1015 debugformat, producer.
1016 (start_buildsym_compunit): New function.
1017 (free_buildsym_compunit): Renamed from free_subfiles_list.
1018 All callers updated.
1019 (patch_subfile_names): Rewrite to use buildsym_compunit.
1020 (get_compunit_symtab): New function.
1021 (get_macro_table): Delete argument comp_dir. All callers updated.
1022 (start_symtab): Change result to "struct compunit_symtab *".
1023 All callers updated. Create the subfile of the main source file.
1024 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
1025 (reset_symtab_globals): Update.
1026 (end_symtab_get_static_block): Update to use buildsym_compunit.
1027 (end_symtab_without_blockvector): Rewrite.
1028 (end_symtab_with_blockvector): Change result to
1029 "struct compunit_symtab *". All callers updated.
1030 Update to use buildsym_compunit. Don't set symtab->dirname,
1031 instead set it in the compunit.
1032 Explicitly make sure main symtab is first in its list.
1033 Set debugformat, producer, blockvector, block_line_section, and
1034 macrotable in the compunit.
1035 (end_symtab_from_static_block): Change result to
1036 "struct compunit_symtab *". All callers updated.
1037 (end_symtab, end_expandable_symtab): Ditto.
1038 (set_missing_symtab): Change symtab argument to
1039 "struct compunit_symtab *". All callers updated.
1040 (augment_type_symtab): Ditto.
1041 (record_debugformat): Update to use buildsym_compunit.
1042 (record_producer): Update to use buildsym_compunit.
1043 * buildsym.h (struct subfile) <dirname>: Delete.
1044 <producer, debugformat>: Delete.
1045 <buildsym_compunit>: New member.
1046 (get_compunit_symtab): Declare.
1047 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
1048 from primary_symtab. Change type to "struct compunit_symtab *".
1049 All uses updated.
1050 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
1051 All callers updated.
1052 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
1053 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
1054 symtab. Change type to "struct compunit_symtab *". All uses updated.
1055 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
1056 All callers updated.
1057 (dw2_find_last_source_symtab): Ditto.
1058 (dw2_lookup_symbol): Ditto.
1059 (recursively_find_pc_sect_compunit_symtab): Renamed from
1060 recursively_find_pc_sect_symtab. Change result to
1061 "struct compunit_symtab *". All callers updated.
1062 (dw2_find_pc_sect_compunit_symtab): Renamed from
1063 dw2_find_pc_sect_symtab. Change result to
1064 "struct compunit_symtab *". All callers updated.
1065 (get_compunit_symtab): Renamed from get_symtab. Change result to
1066 "struct compunit_symtab *". All callers updated.
1067 (recursively_compute_inclusions): Change type of immediate_parent
1068 argument to "struct compunit_symtab *". All callers updated.
1069 (compute_compunit_symtab_includes): Renamed from
1070 compute_symtab_includes. All callers updated. Rewrite to compute
1071 includes of compunit_symtabs and not symtabs.
1072 (process_full_comp_unit): Update to work with struct compunit_symtab.
1073 (process_full_type_unit): Ditto.
1074 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
1075 (dwarf_decode_lines): Remove special case handling of main subfile.
1076 (macro_start_file): Delete argument comp_dir. All callers updated.
1077 (dwarf_decode_macro_bytes): Ditto.
1078 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
1079 use struct compunit_symtab.
1080 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
1081 * jit.c (finalize_symtab): Build compunit_symtab.
1082 * jv-lang.c (get_java_class_symtab): Change result to
1083 "struct compunit_symtab *". All callers updated.
1084 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
1085 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
1086 comp_dir. Change type to "struct compunit_symtab *".
1087 All uses updated.
1088 (new_macro_table): Change comp_dir argument to cust,
1089 "struct compunit_symtab *". All callers updated.
1090 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
1091 nr_primary_symtabs. All uses updated.
1092 (count_symtabs_and_blocks): Update to handle compunits.
1093 (report_command_stats): Update output, "primary symtabs" renamed to
1094 "compunits".
1095 * mdebugread.c (new_symtab): Change result to
1096 "struct compunit_symtab *". All callers updated.
1097 (parse_procedure): Change type of search_symtab argument to
1098 "struct compunit_symtab *". All callers updated.
1099 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
1100 separate loop.
1101 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
1102 symtabs. Change type to "struct compunit_symtab *". All uses updated.
1103 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
1104 All uses updated.
1105 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
1106 All uses updated.
1107 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
1108 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
1109 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
1110 symtab. Change type to "struct compunit_symtab *". All uses updated.
1111 * psymtab.c (psymtab_to_symtab): Change result type to
1112 "struct compunit_symtab *". All callers updated.
1113 (find_pc_sect_compunit_symtab_from_partial): Renamed from
1114 find_pc_sect_symtab_from_partial. Change result type to
1115 "struct compunit_symtab *". All callers updated.
1116 (lookup_symbol_aux_psymtabs): Change result type to
1117 "struct compunit_symtab *". All callers updated.
1118 (find_last_source_symtab_from_partial): Ditto.
1119 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
1120 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
1121 and macro_table from compunit.
1122 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
1123 type to "struct compunit_symtab *". All callers updated.
1124 (debug_qf_lookup_symbol): Ditto.
1125 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
1126 debug_qf_find_pc_sect_symtab, change result type to
1127 "struct compunit_symtab *". All callers updated.
1128 * symfile.c (allocate_symtab): Delete objfile argument.
1129 New argument cust.
1130 (allocate_compunit_symtab): New function.
1131 (add_compunit_symtab_to_objfile): New function.
1132 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1133 Change result type to "struct compunit_symtab *". All uses updated.
1134 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
1135 Change result type to "struct compunit_symtab *". All uses updated.
1136 * symmisc.c (print_objfile_statistics): Compute blockvector count in
1137 separate loop.
1138 (dump_symtab_1): Update test for primary source symtab.
1139 (maintenance_info_symtabs): Update to handle compunit symtabs.
1140 (maintenance_check_symtabs): Ditto.
1141 * symtab.c (set_primary_symtab): Delete.
1142 (compunit_primary_filetab): New function.
1143 (compunit_language): New function.
1144 (iterate_over_some_symtabs): Change type of arguments "first",
1145 "after_last" to "struct compunit_symtab *". All callers updated.
1146 Update to loop over symtabs in each compunit.
1147 (error_in_psymtab_expansion): Rename symtab argument to cust,
1148 and change type to "struct compunit_symtab *". All callers updated.
1149 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
1150 Change result type to "struct compunit_symtab *". All callers updated.
1151 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
1152 Change result type to "struct compunit_symtab *". All callers updated.
1153 (find_pc_sect_line): Only loop over symtabs within selected compunit
1154 instead of all symtabs in the objfile.
1155 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
1156 <compunit_symtab> New member.
1157 <block_line_section>: Moved to compunit_symtab.
1158 <locations_valid>: Ditto.
1159 <epilogue_unwind_valid>: Ditto.
1160 <macro_table>: Ditto.
1161 <dirname>: Ditto.
1162 <debugformat>: Ditto.
1163 <producer>: Ditto.
1164 <objfile>: Ditto.
1165 <call_site_htab>: Ditto.
1166 <includes>: Ditto.
1167 <user>: Ditto.
1168 <primary>: Delete
1169 (SYMTAB_COMPUNIT): New macro.
1170 (SYMTAB_BLOCKVECTOR): Update definition.
1171 (SYMTAB_OBJFILE): Update definition.
1172 (SYMTAB_DIRNAME): Update definition.
1173 (struct compunit_symtab): New type. Common members among all source
1174 symtabs within a compilation unit moved here. All uses updated.
1175 (COMPUNIT_OBJFILE): New macro.
1176 (COMPUNIT_FILETABS): New macro.
1177 (COMPUNIT_DEBUGFORMAT): New macro.
1178 (COMPUNIT_PRODUCER): New macro.
1179 (COMPUNIT_DIRNAME): New macro.
1180 (COMPUNIT_BLOCKVECTOR): New macro.
1181 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1182 (COMPUNIT_LOCATIONS_VALID): New macro.
1183 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1184 (COMPUNIT_CALL_SITE_HTAB): New macro.
1185 (COMPUNIT_MACRO_TABLE): New macro.
1186 (ALL_COMPUNIT_FILETABS): New macro.
1187 (compunit_symtab_ptr): New typedef.
1188 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1189
005e2509
JB
11902014-11-20 Joel Brobecker <brobecker@adacore.com>
1191
1192 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1193 if the TYPE_CODE of range_type's base type does not match
1194 the TYPE_CODE of encoding_type's base type.
1195
2b0f535a
JB
11962014-11-19 Joel Brobecker <brobecker@adacore.com>
1197
1198 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1199 it starts with '<'.
1200
8908fca5
JB
12012014-11-19 Joel Brobecker <brobecker@adacore.com>
1202
1203 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1204 (ada_is_redundant_index_type_desc): New function.
1205 (to_fixed_array_type): Ignore parallel XA type if redundant.
1206
4a46959e
JB
12072014-11-19 Joel Brobecker <brobecker@adacore.com>
1208
1209 * ada-lang.c (constrained_packed_array_type): Set the length
1210 of the return array as if both bounds where zero if that
1211 returned array's index type is dynamic.
1212
2acf986b
YQ
12132014-11-19 Yao Qi <yao@codesourcery.com>
1214
1215 * config/i386/go32.mh (CC): Remove.
1216
439247b6
DE
12172014-11-18 Doug Evans <xdje42@gmail.com>
1218
1219 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1220 updated.
1221
4d663531
DE
12222014-11-18 Doug Evans <xdje42@gmail.com>
1223
1224 * buildsym.c (buildsym_objfile): New static global.
1225 (buildsym_comp_dir): New static global.
1226 (finish_block_internal): Delete arg objfile. All callers updated.
1227 (finish_block): Delete arg objfile. All callers updated.
1228 (start_subfile): Delete arg dirname. All callers updated.
1229 (patch_subfile_names): Update buildsym_comp_dir.
1230 (get_macro_table): Delete arg objfile. All callers updated.
1231 (start_symtab): New arg objfile. All callers updated.
1232 Rename arg dirname to comp_dir.
1233 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1234 (end_symtab_get_static_block): Delete arg objfile. All callers
1235 updated.
1236 (end_symtab_without_blockvector): Ditto.
1237 (end_symtab_with_blockvector): Ditto.
1238 (end_symtab_from_static_block): Ditto.
1239 (end_symtab): Ditto.
1240 (end_expandable_symtab): Ditto.
1241 (augment_type_symtab): Ditto.
1242 * coffread.c (coff_start_symtab): New arg objfile. All callers
1243 updated.
1244
8435453b
DE
12452014-11-18 Doug Evans <xdje42@gmail.com>
1246
1247 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1248 updated.
1249
ee6f8984
DE
12502014-11-18 Doug Evans <xdje42@gmail.com>
1251
1252 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1253 symtab.dirname updated to use it.
1254
eb822aa6
DE
12552014-11-18 Doug Evans <xdje42@gmail.com>
1256
1257 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1258 symtab.objfile updated to use it.
1259
98387a29
DE
12602014-11-18 Doug Evans <xdje42@gmail.com>
1261
1262 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1263
aff08958
DE
12642014-11-18 Doug Evans <xdje42@gmail.com>
1265
1266 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1267 SYMBOL_OBJFILE.
1268 * findvar.c (default_read_var_value): Ditto.
1269 * jv-lang.c (add_class_symtab_symbol): Ditto.
1270 * parse.c (operator_check_standard): Ditto.
1271 * printcmd.c (address_info): Ditto.
1272 * symtab.c (fixup_symbol_section): Ditto.
1273 (skip_prologue_sal): Ditto.
1274 * tracepoint.c (scope_info): Ditto.
1275 * valops.c (find_function_in_inferior): Ditto.
1276 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1277 * python/py-symbol.c (set_symbol): Ditto.
1278
7bab9b58
DE
12792014-11-18 Doug Evans <xdje42@gmail.com>
1280
1281 * buildsym.c (main_subfile): New static global.
1282 (free_subfiles_list): New function.
1283 (start_symtab): Set main_subfile.
1284 (restart_symtab): Replace init of subfiles, current_subfile with
1285 call to free_subfiles_list.
1286 (watch_main_source_file_lossage): Use main_subfile.
1287 (reset_symtab_globals): Replace init of current_subfile with call
1288 to free_subfiles_list.
1289 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1290 functions, split out from ...
1291 (end_symtab_from_static_block): ... here. Rewrite to call them.
1292
f194fefb
DE
12932014-11-18 Doug Evans <xdje42@gmail.com>
1294
1295 The result of symtab expansion is always a primary symtab.
1296 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1297 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1298 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1299 (psymtab_to_symtab): Add comment and assert.
1300 (map_matching_symbols_psymtab): Remove unnecessary test for
1301 non-primary symtab.
1302
34248c3a
DE
13032014-11-15 Doug Evans <xdje42@gmail.com>
1304
1305 PR symtab/17559
1306 * symtab.c (find_pc_line_symtab): New function.
1307 * symtab.h (find_pc_line_symtab): Declare.
1308 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1309 find_pc_symtab.
1310 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1311 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1312 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1313 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1314 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1315 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1316
2097ae25
DE
13172014-11-15 Doug Evans <xdje42@gmail.com>
1318
1319 * symtab.c (expand_symtab_containing_pc): Renamed from
1320 find_pc_sect_symtab_via_partial. All callers updated.
1321
1ada499f
YQ
13222014-11-15 Yao Qi <yao@codesourcery.com>
1323
1324 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1325
355e2102
JB
13262014-11-14 Joel Brobecker <brobecker@adacore.com>
1327
1328 * common/common-defs.h: Move <stdarg.h> #include ahead of
1329 <stdio.h> #include.
1330
83030110
PA
13312014-11-14 Pedro Alves <palves@redhat.com>
1332
1333 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1334 [!PHONY_ICONV] (gdb_iconv): New function.
1335 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1336
a8719064
DE
13372014-11-13 Doug Evans <dje@google.com>
1338
1339 PR symtab/17591
1340 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1341 "(anonymous namespace)".
1342
60f7655a
DE
13432014-11-13 Doug Evans <dje@google.com>
1344
1345 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1346 infinite loop.
1347
5784b3ca
JK
13482014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1349
1350 * NEWS (maint set target-async): Fix typo.
1351
6218dc4b
PA
13522014-11-12 Pedro Alves <palves@redhat.com>
1353
1354 * infrun.c (enum infwait_states, infwait_state): Delete.
1355
af48d08f
PA
13562014-11-12 Pedro Alves <palves@redhat.com>
1357
1358 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1359 Rewrite stepping over a permanent breakpoint.
1360 (thread_still_needs_step_over, proceed): Don't set
1361 stepping_over_breakpoint for permanent breakpoints.
1362 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1363 single-step breakpoints out of the target on hardware step
1364 targets.
1365 (process_event_stop_test): If stepping a permanent breakpoint
1366 doesn't hit the step-resume breakpoint, delete the step-resume
1367 breakpoint.
1368 (switch_back_to_stepped_thread): Also check if the stepped thread
1369 has advanced already on hardware step targets.
1370 (currently_stepping): Return true if the thread stepped a
1371 breakpoint.
1372
1a853c52
PA
13732014-11-12 Pedro Alves <palves@redhat.com>
1374
1375 Mark locations as permanent, not the whole breakpoint.
1376 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1377 (mark_breakpoints_out): Don't mark permanent breakpoints as
1378 uninserted.
1379 (breakpoint_init_inferior): Use mark_breakpoints_out.
1380 (breakpoint_here_p): Adjust.
1381 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1382 of permanent breakpoints.
1383 (make_breakpoint_permanent): Mark each location as permanent,
1384 instead of marking the breakpoint.
1385 (add_location_to_breakpoint): If the location is permanent, mark
1386 it as such, and as inserted.
1387 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1388 (bp_location_compare, update_global_location_list): Adjust.
1389 (update_breakpoint_locations): Don't make the breakpoint permanent
1390 here.
1391 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1392 breakpoints.
1393 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1394 (struct bp_location) <permanent>: New field.
1395 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1396 reference to bp_permanent.
1397
ae9bb220
PA
13982014-11-12 Pedro Alves <palves@redhat.com>
1399
1400 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1401 * arch-utils.h (default_skip_permanent_breakpoint): New
1402 declaration.
1403 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1404 Install default_skip_permanent_breakpoint as default method.
1405 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1406 (i386_gdbarch_init): Don't install it.
1407 * infrun.c (resume): Assume there's always a
1408 gdbarch_skip_permanent_breakpoint implementation.
1409 * gdbarch.h, gdbarch.c: Regenerate.
1410
015de688
DC
14112014-11-11 Daniel Colascione <dancol@dancol.org>
1412
1413 Warn about cross-PID-namespace debugging.
1414 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1415 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1416 * linux-thread-db.c (check_pid_namespace_match): New function.
1417 (thread_db_inferior_created): Call it.
1418
26a84859
DE
14192014-11-10 Doug Evans <xdje42@gmail.com>
1420
1421 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1422 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1423
712a2e6d
DE
14242014-11-10 Doug Evans <xdje42@gmail.com>
1425
1426 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1427
af3768e9
DE
14282014-11-10 Doug Evans <xdje42@gmail.com>
1429
1430 PR symtab/17564
1431 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1432 (lookup_static_symbol): Move definition to new location and rewrite.
1433 (lookup_symbol_in_objfile): New function.
1434 (lookup_symbol_global_iterator_cb): Call it.
1435
b1f28d99
UW
14362014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
1437
1438 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1439
b7a084be
PA
14402014-11-07 Pedro Alves <palves@redhat.com>
1441
1442 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1443 check if we did a "nexti" inside a prologue.
1444 * symtab.c (in_prologue): Delete function.
1445 * symtab.h (in_prologue): Delete declaration.
1446
67be31e5
DE
14472014-11-06 Doug Evans <xdje42@gmail.com>
1448
1449 * symtab.h (lookup_global_symbol): Improve function comment.
1450
08724ab7
DE
14512014-11-06 Doug Evans <xdje42@gmail.com>
1452
1453 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1454 All callers updated.
1455 * symtab.h (lookup_global_symbol): Update decl.
1456 (lookup_static_symbol): Move decl to better location.
1457
d9060ba6
DE
14582014-11-06 Doug Evans <xdje42@gmail.com>
1459
1460 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1461
74016e12
DE
14622014-11-06 Doug Evans <xdje42@gmail.com>
1463
1464 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1465 All callers updated.
1466 (lookup_symbol_in_all_objfiles): Renamed from
1467 lookup_symbol_aux_symtabs. All callers updated.
1468 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1469 All callers updated.
1470 (lookup_symbol_in_objfile_symtabs): Renamed from
1471 lookup_symbol_aux_objfile. All callers updated.
1472
d1a2d36d
DE
14732014-11-06 Doug Evans <xdje42@gmail.com>
1474
1475 * symtab.c (lookup_symbol_in_block): Renamed from
1476 lookup_symbol_aux_block. All callers updated.
1477
24d864bb
DE
14782014-11-06 Doug Evans <xdje42@gmail.com>
1479
1480 * symtab.c (lookup_static_symbol): Renamed from
1481 lookup_static_symbol_aux. All callers updated.
1482 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1483 All callers updated.
1484
358d6ab3
DE
14852014-11-06 Doug Evans <xdje42@gmail.com>
1486
1487 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1488 * block.c (block_lookup_symbol): Use it.
1489 * cp-support.c (make_symbol_overload_list_block): Use it.
1490 * symtab.c (iterate_over_symbols): Use it.
1491
16b2eaa1
DE
14922014-11-06 Doug Evans <xdje42@gmail.com>
1493
1494 * symtab.c (lookup_block_symbol): Moved to ...
1495 * block.c (block_lookup_symbol): ... here and renamed.
1496 All callers updated.
1497 * block.h (block_lookup_symbol): Declare.
1498 * symtab.h (lookup_block_symbol): Delete.
1499
2dd2cd1c
DE
15002014-11-06 Doug Evans <xdje42@gmail.com>
1501
1502 * ada-lang.c (ada_make_symbol_completion_list): Use
1503 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1504 * symtab.c (lookup_objfile_from_block): Ditto.
1505
d4c58915
DE
15062014-11-06 Doug Evans <xdje42@gmail.com>
1507
1508 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1509 TYPE_CODE_STRUCT.
1510
9c1877ea
DE
15112014-11-06 Doug Evans <xdje42@gmail.com>
1512
1513 * objfiles.c (get_objfile_arch): Constify.
1514 * objfiles.h (get_objfile_arch): Update prototype.
1515 * solib.c (solib_global_lookup): Fetch arch from objfile,
1516 not target_gdbarch.
1517
426a4079
SL
15182014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1519
1520 * nios2-tdep.c (wild_insn): Delete.
1521 (profiler_insn, irqentry_insn): Delete.
1522 (nios2_match_sequence): Delete.
1523 (nios2_analyze_prologue): Update comments. Remove matching
1524 of obsolete profiler_insn and irqentry_insn sequences.
1525
ee11262d
AM
15262014-11-05 Alan Modra <amodra@gmail.com>
1527
1528 * charset.c (convert_between_encodings): Shrink obstack using
1529 obstack_blank_fast.
1530 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
1531 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1532 to char* before doing pointer arithmetic.
ee11262d 1533
c87e6d00
SM
15342014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1535
1536 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1537
441ef17f
PA
15382014-11-04 Pedro Alves <palves@redhat.com>
1539
1540 * breakpoint.c (breakpoint_thread_match): Delete function.
1541 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1542
e0f52461
SC
15432014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1544
1545 PR c++/17494
1546 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1547 the method args also under EVAL_SKIP when evaluating method
1548 calls under EVAL_SKIP.
1549
a0b4d890
YQ
15502014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1551
1552 * dwarf2loc.c (read_pieced_value): Do big endian
1553 processing only if gdb_regnum is not -1.
1554 (write_pieced_value): Ditto.
1555
15562014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1557
1558 * arm-linux-tdep.c (arm_linux_init_abi): Use
1559 info.byte_order_for_code to choose endianity of breakpoint
1560 instructions snippets.
1561
15622014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1563
1564 * arm-tdep.c (extract_arm_insn): Use
1565 gdbarch_byte_order_for_code to read arm instruction.
1566
e82149ff
DE
15672014-11-02 Doug Evans <xdje42@gmail.com>
1568
1569 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1570
d7ee84f1
DE
15712014-11-02 Doug Evans <xdje42@gmail.com>
1572
1573 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1574 main_subfile before returning.
1575
4f072d17
DE
15762014-10-31 Doug Evans <xdje42@gmail.com>
1577
1578 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1579 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1580
8301c89e
DE
15812014-10-31 Doug Evans <xdje42@gmail.com>
1582
1583 * valops.c (value_cast_pointers): Fix whitespace.
1584 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1585 Ditto.
1586
02be9a71
DE
15872014-10-30 Doug Evans <dje@google.com>
1588
1589 * NEWS: Mention ability add attributes to gdb.Objfile and
1590 gdb.Progspace objects.
1591 * python/py-objfile.c (objfile_object): New member dict.
1592 (objfpy_dealloc): Py_XDECREF dict.
1593 (objfpy_initialize): Initialize dict.
1594 (objfile_getset): Add __dict__.
1595 (objfile_object_type): Set tp_dictoffset member.
1596 * python/py-progspace.c (progspace_object): New member dict.
1597 (pspy_dealloc): Py_XDECREF dict.
1598 (pspy_initialize): Initialize dict.
1599 (pspace_getset): Add __dict__.
1600 (pspace_object_type): Set tp_dictoffset member.
1601
6427bef6
YQ
16022014-10-30 Yao Qi <yao@codesourcery.com>
1603
1604 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1605 replace '\\' with '\\\\'.
1606
f60325be
JB
16072014-10-29 Joel Brobecker <brobecker@adacore.com>
1608
1609 GDB 7.8.1 released.
1610
ab917dfb
PA
16112014-10-29 Pedro Alves <palves@redhat.com>
1612
1613 PR gdb/17408
1614 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1615 instead of assuming a thread with a stepping range is always
1616 stepping.
1617
d3d4baed
PA
16182014-10-29 Pedro Alves <palves@redhat.com>
1619
1620 PR python/17372
1621 * event-top.c (change_line_handler): Call
1622 gdb_rl_callback_handler_remove instead of
1623 rl_callback_handler_remove.
1624 (callback_handler_installed): New global.
1625 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1626 (gdb_rl_callback_handler_reinstall): New functions.
1627 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1628 gdb_rl_callback_handler_install instead of
1629 rl_callback_handler_remove and rl_callback_handler_install.
1630 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1631 instead of rl_callback_handler_remove.
1632 * event-top.h (gdb_rl_callback_handler_remove)
1633 (gdb_rl_callback_handler_install)
1634 (gdb_rl_callback_handler_reinstall): New declarations.
1635 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1636 cleanup function.
1637 (fetch_inferior_event): Install it.
1638 * top.c (gdb_readline_wrapper_line) Call
1639 gdb_rl_callback_handler_remove instead of
1640 rl_callback_handler_remove.
1641 (gdb_readline_wrapper_cleanup): Don't call
1642 rl_callback_handler_install.
1643
6e5d7f39
PA
16442014-10-29 Pedro Alves <palves@redhat.com>
1645
1646 * event-top.c (command_line_handler): Clear the first byte of
1647 linebuffer, when it is first allocated.
1648
551cb6a5
PA
16492014-10-29 Pedro Alves <palves@redhat.com>
1650
1651 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1652 TRY_CATCH.
1653
1e1e619b
PA
16542014-10-29 Pedro Alves <palves@redhat.com>
1655
1656 PR tui/16138
1657 PR tui/17519
1658 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1659 (tui_allowed_p): Delete function.
1660 * tui/tui.c: Include "interps.h".
1661 (tui_enable): Don't use tui_allowed_p. Error out here with
1662 detailed error messages if the TUI is the top level interpreter,
1663 or if output is not a terminal. Use newterm instead of initscr,
1664 and error out if initializing the terminal fails. Also error out if
1665 the terminal doesn't support cursor addressing.
1666 * tui/tui.h (tui_allowed_p): Delete declaration.
1667
6041179a
JB
16682014-10-29 Joel Brobecker <brobecker@adacore.com>
1669
1670 * arm-tdep.c (arm_skip_stack_protector): Return early if
1671 address loaded by first "ldr" instruction does not have
1672 a corresponding minimal symbol. Update comment.
1673
6ae274b7
YQ
16742014-10-29 Yao Qi <yao@codesourcery.com>
1675
1676 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1677 loaded address correctly of ldr instruction.
1678
7f5ef605
PA
16792014-10-28 Pedro Alves <palves@redhat.com>
1680
1681 PR gdb/12623
1682 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1683 field.
1684 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1685 thread's stepped_breakpoint field. Skip if reverse debugging.
1686 Add comment.
1687 (init_thread_stepping_state, handle_signal_stop): Clear the
1688 thread's stepped_breakpoint field.
1689
7d1a114c
PA
16902014-10-27 Pedro Alves <palves@redhat.com>
1691
1692 * remote.c (remote_thread_alive): New, factored out from ...
1693 (remote_thread_alive): ... this.
1694 (remote_update_thread_list): Bail out before deleting threads if
1695 the target returned an empty list, and, the current thread has a
1696 magic/fake ptid.
1697
e5f8a7cc
PA
16982014-10-27 Pedro Alves <palves@redhat.com>
1699
1700 * infrun.c (handle_signal_stop): Also skip handlers when a random
1701 signal arrives while handling a "stepi" or a "nexti". Set the
1702 thread's 'step_after_step_resume_breakpoint' flag.
1703
71e396f9
LM
17042014-10-27 Luis Machado <lgustavo@codesourcery.com>
1705
1706 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1707 (arm_record_ld_st_imm_offset): Reimplement to cover all
1708 load/store cases for ARM opcode 010.
1709 (arm_record_ld_st_multiple): Reimplement to cover all
1710 load/store cases for ARM opcode 100.
1711
3aee438b
DE
17122014-10-26 Doug Evans <xdje42@gmail.com>
1713
1714 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1715
f88cb4b6
DE
17162014-10-26 Doug Evans <xdje42@gmail.com>
1717
1718 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1719 parameter "kind" to "block_index".
1720 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1721 "block_index".
1722 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1723
a023a30f
DE
17242014-10-26 Doug Evans <xdje42@gmail.com>
1725
1726 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1727
4c35218e
DE
17282014-10-26 Doug Evans <xdje42@gmail.com>
1729
1730 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1731 obstack_alloc.
1732
f08e8df3
DE
17332014-10-26 Doug Evans <xdje42@gmail.com>
1734
1735 * parser-defs.h (block_found): Move decl from here ...
1736 * symtab.h (block_found): ... to here.
1737
cf901d3b
DE
17382014-10-26 Doug Evans <xdje42@gmail.com>
1739
1740 * symtab.h (struct field_of_this_result): Fix typo in comment.
1741 (lookup_symbol_in_language): Move function comment here.
1742 (lookup_symbol): Improve function comment.
1743 (basic_lookup_symbol_nonlocal): Ditto.
1744 (lookup_symbol_static, lookup_symbol_global): Ditto.
1745 (lookup_symbol_aux_block): Ditto.
1746 (lookup_language_this): Add function comment.
1747 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1748 function comment.
1749 (lookup_block_symbol): Improve function comment.
1750 (lookup_struct): Fix capitalization in function comment.
1751 (lookup_transparent_type): Add function comment.
1752 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1753 Improve function comment.
1754 (lookup_objfile_from_block): Add function comment.
1755 * symtab.c (lookup_symbol_in_language): Update function comment.
1756 (lookup_symbol, lookup_language_this): Ditto.
1757 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1758 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1759 (basic_lookup_symbol_nonlocal): Ditto.
1760 (lookup_symbol_static, lookup_symbol_global): Ditto.
1761 (lookup_transparent_type, lookup_block_symbol): Ditto.
1762
ff6c39cf
DE
17632014-10-25 Doug Evans <xdje42@gmail.com>
1764
1765 * symtab.c (types_info): Delete forward decl.
1766 (functions_info, variables_info, sources_info): Ditto.
1767 (_initialize_symtab): Rewrite forward decl to use
1768 initialize_file_ftype.
1769
ec201f0c
DE
17702014-10-25 Doug Evans <xdje42@gmail.com>
1771
1772 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1773
ca040673
DE
17742014-10-25 Doug Evans <xdje42@gmail.com>
1775
1776 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1777 of local var child_die.
1778
6f259a23
DB
17792014-10-24 Don Breazeal <donb@codesourcery.com>
1780
1781 * infrun.c (follow_fork_inferior): Update fork message printing
1782 to use target_terminal_ours_for_output instead of
1783 target_terminal_ours, to use _() for all format strings, to print
1784 "vfork" instead of "fork" for vforks, and to add a detach message.
1785 (handle_vfork_child_exec_or_exit): Update message printing to use
1786 target_terminal_ours_for_output instead of target_terminal_ours, to
1787 use _() for all format strings, and to fix some formatting.
1788
09dd9a69
PA
17892014-10-24 Pedro Alves <palves@redhat.com>
1790
1791 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1792 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1793 * config/vax/vax.mh: Delete.
1794 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1795 obsolete configurations section.
1796 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1797 * vax-nat.c: Delete file.
1798
5ab806de
PA
17992014-10-24 Pedro Alves <palves@redhat.com>
1800
1801 * NEWS (Removed targets): Add OS/arch column.
1802
3433cfa5
SC
18032014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1804
1805 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1806 on the arg type of a constructor only if it is of reference type.
1807
96ba4233
SL
18082014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1809
1810 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1811 accessors and constants from nios2 opcodes update.
1812 (nios2_get_next_pc): Likewise.
1813
28153fd3
DE
18142014-10-19 Doug Evans <xdje42@gmail.com>
1815
1816 * gdbthread.h (set_running): Fix comment.
1817 (set_executing, finish_thread_state): Fix comment.
1818
fc9b8e47
DE
18192014-10-18 Doug Evans <xdje42@gmail.com>
1820
1821 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1822
4ffbba72
DE
18232014-10-17 Doug Evans <dje@google.com>
1824
1825 * NEWS: Mention new event gdb.clear_objfiles.
1826 * python/py-event.h (emit_clear_objfiles_event): Clear
1827 * python/py-events.h (events_object): New member clear_objfiles.
1828 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1829 event.
1830 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1831 emit clear_objfiles event.
1832 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1833 function.
1834 (emit_clear_objfiles_event): New function.
1835 (clear_objfiles): New event.
1836 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1837 Declare.
1838 * python/python.c (_initialize_python): Call
1839 gdbpy_initialize_clear_objfiles_event.
1840
d096d8c1
DE
18412014-10-17 Doug Evans <dje@google.com>
1842
1843 * NEWS: Mention new gdb.Objfile.progspace attribute.
1844 * python/py-objfile.c (objfpy_get_progspace): New function.
1845 (objfile_getset): New entry for "progspace".
1846
6c4486e6
PA
18472014-10-17 Pedro Alves <palves@redhat.com>
1848
1849 PR gdb/17471
1850 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1851 returns a copy of the input.
1852 (run_command_1, continue_command, step_1, jump_command)
1853 (signal_command, until_command, advance_command, finish_command)
1854 (attach_command): Adjust and install a cleanup to free the
1855 stripped args.
1856
0ff33695
PA
18572014-10-17 Pedro Alves <palves@redhat.com>
1858
1859 PR gdb/17300
1860 * infcmd.c (continue_1): If continuing all threads in the
1861 foreground, make sure the inferior's terminal settings are put in
1862 effect.
1863
6fdebc3d
PA
18642014-10-17 Pedro Alves <palves@redhat.com>
1865
1866 PR gdb/17472
1867 * annotate.c (annotate_breakpoints_invalid): Use
1868 target_terminal_our_for_output instead of target_terminal_ours.
1869 Give back the terminal to the target.
1870 (annotate_frames_invalid): Likewise.
1871
5842f62a
PA
18722014-10-17 Pedro Alves <palves@redhat.com>
1873
1874 * target.c (enum terminal_state): New enum.
1875 (terminal_state): New global.
1876 (target_terminal_init): New function.
1877 (target_terminal_inferior): Skip if inferior already owns the
1878 terminal.
1879 (target_terminal_ours, target_terminal_ours_for_output): New
1880 functions.
1881 * target.h (target_terminal_init): Convert to function prototype.
1882 (target_terminal_ours_for_output): Convert to function prototype
1883 and tweak comment.
1884 (target_terminal_ours): Convert to function prototype and tweak
1885 comment.
1886 * windows-nat.c (do_initial_windows_stuff): Call
1887 target_terminal_init instead of child_terminal_init_with_pgrp.
1888
32a8097b
PA
18892014-10-17 Pedro Alves <palves@redhat.com>
1890
1891 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1892 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1893 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1894 solib-osf.c.
1895 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1896 * ada-lang.h [__alpha__ && __osf__]
1897 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1898 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1899 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1900 GDB_OSABI_OSF1.
1901 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1902 files.
1903 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1904 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1905 * configure: Regenerate.
1906 * configure.ac: Remove references to osf.
1907 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1908 section. Remove all other references to osf.
1909 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1910 Remove all other references to osf.
1911 * dec-thread.c: Delete file.
1912 * defs.h (GDB_OSABI_OSF1): Delete.
1913 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1914 defined.
1915 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1916 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1917 Delete code.
1918 (unconditionally_kill_inferior)
1919 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1920 * solib-osf.c: Delete file.
1921
80134cf5
PA
19222014-10-17 Pedro Alves <palves@redhat.com>
1923
1924 * remote.c (clear_threads_listing_context): Move higher up, out of
1925 the HAVE_LIBEXPAT guard.
1926
89c7137f
TG
19272014-10-16 Tristan Gingold <gingold@adacore.com>
1928
1929 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1930 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1931 on amd64.
1932
44ee4a52
PA
19332014-10-15 Pedro Alves <palves@redhat.com>
1934
1935 * dec-thread.c (dec_thread_count_gdb_threads)
1936 (dec_thread_add_gdb_thread): Delete.
1937 (dec_thread_update_thread_list): Delete.
1938 (dec_thread_find_new_threads): Rename to ...
1939 (dec_thread_update_thread_list): ... this. Delete GDB-size
1940 threads that are no longer found in dec_thread_list.
1941 (resync_thread_list): Delete.
1942 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1943 resync_thread_list.
1944
ab970af1
PA
19452014-10-15 Pedro Alves <palves@redhat.com>
1946
1947 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1948 * remote.c (remote_update_thread_list): Skip calling prune_threads
1949 if any thread listing method is supported, and instead walk over
1950 the set of remote threads listed, deleting those that are not
1951 found in GDB's thread list.
1952
e8032dde
PA
19532014-10-15 Pedro Alves <palves@redhat.com>
1954
1955 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1956 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1957 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1958 (bsd_uthread_target): Adjust.
1959 * corelow.c (core_open): Adjust.
1960 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1961 (dec_thread_update_thread_list): New function.
1962 (init_dec_thread_ops): Adjust.
1963 * gdbthread.h (prune_threads): New declaration.
1964 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1965 (thread_db_update_thread_list): ... this. Call prune_threads.
1966 (init_thread_db_ops): Adjust.
1967 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1968 (procfs_update_thread_list): ... this. Call prune_threads.
1969 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1970 Adjust.
1971 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1972 (obsd_update_thread_list): ... this. Call prune_threads.
1973 (obsd_add_target): Adjust.
1974 * procfs.c (procfs_target): Adjust.
1975 (procfs_notice_thread): Update comment.
1976 (procfs_find_new_threads): Rename to ...
1977 (procfs_update_thread_list): ... this. Call prune_threads.
1978 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1979 comment.
1980 (ravenscar_wait): Adjust.
1981 (ravenscar_find_new_threads): Rename to ...
1982 (ravenscar_update_thread_list): ... this. Call prune_threads.
1983 (init_ravenscar_thread_ops): Adjust.
1984 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1985 (record_btrace_update_thread_list): ... this. Adjust comment.
1986 (init_record_btrace_ops): Adjust.
1987 * remote.c (remote_threads_info): Rename to ...
1988 (remote_update_thread_list): ... this. Call prune_threads.
1989 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1990 Adjust.
1991 * sol-thread.c (check_for_thread_db): Adjust.
1992 (sol_find_new_threads_callback): Rename to ...
1993 (sol_update_thread_list_callback): ... this.
1994 (sol_find_new_threads): Rename to ...
1995 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1996 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1997 * target-delegates.c: Regenerate.
1998 * target.c (target_find_new_threads): Rename to ...
1999 (target_update_thread_list): ... this.
2000 * target.h (struct target_ops): Rename to_find_new_threads field
2001 to to_update_thread_list.
2002 (target_find_new_threads): Rename to ...
2003 (target_update_thread_list): ... this.
2004 * thread.c (prune_threads): Make extern.
2005 (update_thread_list): Adjust.
2006
6dc54d91
PA
20072014-10-15 Pedro Alves <palves@redhat.com>
2008
2009 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
2010 Add describing comment. Return -1 if the qL packet is not
2011 supported.
2012 (struct thread_item, thread_item_t): Move higher up in
2013 the file. Add comments.
2014 (struct threads_parsing_context): Move higher up in
2015 the file, add comments, and remote to ...
2016 (struct threads_listing_context): ... this.
2017 (remote_newthread_step): Don't add the thread to GDB's thread
2018 database here. Instead push it to the thread_listing_context
2019 list.
2020 (remote_find_new_threads): Rename to ...
2021 (remote_get_threads_with_ql): ... this. Add target_ops and
2022 targets_listing_context parameters. Pass down context.
2023 (start_thread): Adjust.
2024 (clear_threads_parsing_context): Rename to ...
2025 (clear_threads_listing_context): ... this.
2026 (remote_get_threads_with_qxfer): New, with parts salvaged from old
2027 remote_threads_info.
2028 (remote_get_threads_with_qthreadinfo): Ditto.
2029 (remote_threads_info): Reimplement.
2030
36728e82
PA
20312014-10-15 Pedro Alves <palves@redhat.com>
2032
2033 * infrun.c (resume): Don't force displaced-stepping for all
2034 single-steps on software single-stepping archs.
2035
34b7e8a6
PA
20362014-10-15 Pedro Alves <palves@redhat.com>
2037
2038 * breakpoint.c (single_step_breakpoints): Delete global.
2039 (insert_single_step_breakpoint): Adjust to store the breakpoint
2040 pointer in the current thread.
2041 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2042 (cancel_single_step_breakpoints): Delete functions.
2043 (breakpoint_has_location_inserted_here): Make extern.
2044 (single_step_breakpoint_inserted_here_p): Adjust to walk the
2045 breakpoint list.
2046 * breakpoint.h (breakpoint_has_location_inserted_here): New
2047 declaration.
2048 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2049 (cancel_single_step_breakpoints): Remove declarations.
2050 * gdbthread.h (struct thread_control_state)
2051 <single_step_breakpoints>: New field.
2052 (delete_single_step_breakpoints)
2053 (thread_has_single_step_breakpoints_set)
2054 (thread_has_single_step_breakpoint_here): New declarations.
2055 * infrun.c (follow_exec): Also clear the single-step breakpoints.
2056 (singlestep_breakpoints_inserted_p, singlestep_ptid)
2057 (singlestep_pc): Delete globals.
2058 (infrun_thread_ptid_changed): Remove references to removed
2059 globals.
2060 (resume_cleanups): Delete the current thread's single-step
2061 breakpoints.
2062 (maybe_software_singlestep): Remove references to removed globals.
2063 (resume): Adjust to use thread_has_single_step_breakpoints_set and
2064 delete_single_step_breakpoints.
2065 (init_wait_for_inferior): Remove references to removed globals.
2066 (delete_thread_infrun_breakpoints): Delete the thread's
2067 single-step breakpoints too.
2068 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
2069 single-step breakpoints here.
2070 (delete_stopped_threads_single_step_breakpoints): New function.
2071 (adjust_pc_after_break): Adjust to use
2072 thread_has_single_step_breakpoints_set.
2073 (handle_inferior_event): Remove references to removed globals.
2074 Use delete_stopped_threads_single_step_breakpoints.
2075 (handle_signal_stop): Adjust to per-thread single-step
2076 breakpoints. Swap test order to do cheaper tests first.
2077 (switch_back_to_stepped_thread): Extend debug output. Remove
2078 references to removed globals.
2079 * record-full.c (record_full_wait_1): Adjust to per-thread
2080 single-step breakpoints.
2081 * thread.c (delete_single_step_breakpoints)
2082 (thread_has_single_step_breakpoints_set)
2083 (thread_has_single_step_breakpoint_here): New functions.
2084 (clear_thread_inferior_resources): Also delete the thread's
2085 single-step breakpoints.
2086
5b834a0a
PA
20872014-10-15 Pedro Alves <palves@redhat.com>
2088
2089 * thread.c (delete_thread_breakpoint): New function.
2090 (delete_step_resume_breakpoint)
2091 (delete_exception_resume_breakpoint): Use it.
2092 (delete_at_next_stop): New function.
2093 (clear_thread_inferior_resources): Use delete_at_next_stop.
2094
a1fd2fa5
PA
20952014-10-15 Pedro Alves <palves@redhat.com>
2096
2097 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
2098 (breakpoint_inserted_here_p): ... here. Remove special case for
2099 software single-step breakpoints.
2100 (find_non_raw_software_breakpoint_inserted_here): Inline ...
2101 (software_breakpoint_inserted_here_p): ... here. Remove special
2102 case for software single-step breakpoints.
2103 (bp_target_info_copy_insertion_state)
2104 (deprecated_insert_raw_breakpoint)
2105 (deprecated_remove_raw_breakpoint): Delete functions.
2106 * breakpoint.h (deprecated_insert_raw_breakpoint)
2107 (deprecated_remove_raw_breakpoint): Remove declarations.
2108
7c16b83e
PA
21092014-10-15 Pedro Alves <palves@redhat.com>
2110
2111 PR breakpoints/9649
2112 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
2113 Delete array globals.
2114 (single_step_breakpoints): New global.
2115 (breakpoint_xfer_memory): Remove special handling for single-step
2116 breakpoints.
2117 (update_breakpoints_after_exec): Delete bp_single_step
2118 breakpoints.
2119 (detach_breakpoints): Remove special handling for single-step
2120 breakpoints.
2121 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
2122 (bpstat_stop_status): Add comment.
2123 (bpstat_what, bptype_string, print_one_breakpoint_location)
2124 (adjust_breakpoint_address, init_bp_location): Handle
2125 bp_single_step.
2126 (new_single_step_breakpoint): New function.
2127 (set_momentary_breakpoint, bkpt_remove_location): Remove special
2128 handling for single-step breakpoints.
2129 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
2130 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
2131 Rewrite.
2132 (detach_single_step_breakpoints, find_single_step_breakpoint):
2133 Delete functions.
2134 (breakpoint_has_location_inserted_here): New function.
2135 (single_step_breakpoint_inserted_here_p): Rewrite.
2136 * breakpoint.h: Remove FIXME.
2137 (enum bptype) <bp_single_step>: New enum value.
2138 (insert_single_step_breakpoint): Update comment.
2139 * infrun.c (resume_cleanups)
2140 (delete_step_thread_step_resume_breakpoint): Remove single-step
2141 breakpoints.
2142 (fetch_inferior_event): Install a cleanup that removes infrun
2143 breakpoints.
2144 (switch_back_to_stepped_thread) <expect thread advanced also>:
2145 Clear step-over info.
2146
0cbcdb96
PA
21472014-10-15 Pedro Alves <palves@redhat.com>
2148
2149 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
2150 (delete_thread_infrun_breakpoints): New function, with parts
2151 salvaged from delete_step_resume_breakpoint_callback.
2152 (delete_step_thread_step_resume_breakpoint): Delete.
2153 (for_each_just_stopped_thread_callback_func): New typedef.
2154 (for_each_just_stopped_thread): New function.
2155 (delete_just_stopped_threads_infrun_breakpoints): New function.
2156 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
2157 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
2158 ... this. Adjust.
2159 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
2160
963f9c80
PA
21612014-10-15 Pedro Alves <palves@redhat.com>
2162
2163 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2164 trying to step past a non-steppable watchpoint.
2165 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2166 field.
2167 * infrun.c (struct step_over_info): Add new field
2168 'nonsteppable_watchpoint_p' and adjust comments.
2169 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2170 Adjust.
2171 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2172 (stepping_past_nonsteppable_watchpoint): New function.
2173 (step_over_info_valid_p): Also return true if stepping past a
2174 nonsteppable watchpoint.
2175 (proceed): Adjust call to set_step_over_info. Remove reference to
2176 init_infwait_state.
2177 (init_wait_for_inferior): Remove reference to init_infwait_state.
2178 (waiton_ptid): Delete global.
2179 (struct execution_control_state)
2180 <stepped_after_stopped_by_watchpoint>: Delete field.
2181 (wait_for_inferior, fetch_inferior_event): Always pass
2182 minus_one_ptid to target_wait.
2183 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2184 field.
2185 (init_infwait_state): Delete function.
2186 (handle_inferior_event): Remove infwait_state handling.
2187 (handle_signal_stop) <watchpoints handling>: Adjust after
2188 stepped_after_stopped_by_watchpoint removal. Don't remove
2189 breakpoints here nor set infwait_state. Set the thread's
2190 stepping_over_watchpoint flag, and call keep_going instead.
2191 (keep_going): Handle stepping_over_watchpoint. Adjust
2192 set_step_over_info calls.
2193 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2194 function.
2195
6cc83d2a
PA
21962014-10-15 Pedro Alves <palves@redhat.com>
2197
2198 * infrun.c (step_over_info_valid_p): New function.
2199 (resume): Use step_over_info_valid_p instead of checking the
2200 threads's trap_expected flag.
2201
6979730b
DE
22022014-10-15 Doug Evans <dje@google.com>
2203 Walfred Tedeschi <walfred.tedeschi@intel.com>
2204
2205 PR python/17364
2206 * python/lib/gdb/__init__.py (packages): Add "printer".
2207 * python/lib/gdb/command/bound_registers.py: Moved to ...
2208 * python/lib/gdb/printer/bound_registers.py: ... here.
2209 Add printer to global set of builtin printers. Rename printer from
2210 "bound" to "mpx_bound128".
2211 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2212 registered as global "builtin" printer.
2213 (add_builtin_pretty_printer): New function.
2214 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2215 gdb/printer/__init__.py.
2216
35a49624
IB
22172014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2218
2219 * Makefile.in (SFILES): Remove d-support.c.
2220 (COMMON_OBS): Remove d-support.o.
2221 * d-lang.h (d_parse_symbol): Remove declaration.
2222 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2223 * d-support.c: Remove file.
2224
8fa0c4f8
AA
22252014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2226
2227 * gdb/infrun.c (process_event_stop_test): Apply
2228 gdbarch_addr_bits_remove to longjmp resume address.
2229
3666da81
PA
22302014-10-15 Pedro Alves <palves@redhat.com>
2231
2232 * regformats/microblaze.dat: Delete file.
2233
449aa9df
AKA
22342014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2235
2236 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2237 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2238
ebb8ece2
SC
22392014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2240
2241 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2242 as non-trivial.
2243
82c48ac7
SC
22442014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2245
2246 PR c++/13403
2247 PR c++/15154
2248 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2249 with qualified args.
2250
c40cc657
JB
22512014-10-14 Joel Brobecker <brobecker@adacore.com>
2252
2253 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2254 of the case where the second operand is a pointer.
2255 <BINOP_SUB>: Likewise.
2256
0ea5cda8
SDJ
22572014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2258
2259 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2260 only if it is not NULL.
2261 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2262 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2263 (struct probe_ops) <clear_semaphore>: Likewise.
2264 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2265 not NULL.
2266 (stop_tracing): Likewise, for clear_semaphore.
2267
f7088df3
SDJ
22682014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2269
2270 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2271 using language_c, instead of current_language.
2272
4e1bbde0
DE
22732014-10-13 Doug Evans <dje@google.com>
2274
6ff5a0f6 2275 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 2276 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 2277 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
2278 (pspy_new, pspace_to_pspace_object): Call it.
2279
c780cc2f
JK
22802014-10-13 Miroslav Franc <mfranc@redhat.com>
2281 Jan Kratochvil <jan.kratochvil@redhat.com>
2282
2283 Fix "save breakpoints" for "catch" command.
2284 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2285 newline.
2286
99894e11
JK
22872014-10-12 Miroslav Franc <mfranc@redhat.com>
2288
2289 Fix "save breakpoints" for "disable $bpnum" command.
2290 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2291
3831839c
PA
22922014-10-10 Pedro Alves <palves@redhat.com>
2293
2294 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2295 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2296 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2297 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2298 and been removed.
2299 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2300 * configure.ac: Remove references to IRIX.
2301 * configure.host: Add *-*-irix* to the obsolete hosts section.
2302 Remove all other references to irix.
2303 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2304 Delete files.
2305
cc3afae2
AKA
23062014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2307
2308 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2309 isn't valid, release the tdesc arch data and return NULL.
2310
cdfa0b0a
PA
23112014-10-10 Pedro Alves <palves@redhat.com>
2312
2313 * linux-tdep.c: Include observer.h.
2314 (linux_inferior_data): New global.
2315 (struct linux_info): New structure.
2316 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2317 (get_linux_inferior_data): New functions.
2318 (linux_vsyscall_range): Rename to ...
2319 (linux_vsyscall_range_raw): ... this.
2320 (linux_vsyscall_range): New function; handles caching.
2321 (_initialize_linux_tdep): Register linux_inferior_data. Install
2322 inferior_exit and inferior_appeared observers.
2323
8b9a549d
PA
23242014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2325 Pedro Alves <palves@redhat.com>
2326
2327 PR symtab/14466
2328 * solib-svr4.c (svr4_read_so_list): Rename to ...
2329 (svr4_current_sos_1): ... this and change the function comment.
2330 (svr4_current_sos): New function.
2331
3437254d
PA
23322014-10-10 Pedro Alves <palves@redhat.com>
2333
2334 * arch-utils.c (default_vsyscall_range): New function.
2335 * arch-utils.h (default_vsyscall_range): New declaration.
2336 * gdbarch.sh (vsyscall_range): New hook.
2337 * gdbarch.h, gdbarch.c: Regenerate.
2338 * linux-tdep.c (linux_vsyscall_range): New function.
2339 (linux_init_abi): Install linux_vsyscall_range as
2340 vsyscall_range gdbarch hook.
2341 * memrange.c (address_in_mem_range): New function.
2342 * memrange.h (address_in_mem_range): New declaration.
2343 * symfile-mem.c (find_vdso_size): Delete function.
2344 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2345
31cc0b80
PA
23462014-10-10 Pedro Alves <palves@redhat.com>
2347
2348 * infrun.c (normal_stop): Fix typo in comment.
2349
3e3286a2
SDJ
23502014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2351
2352 PR tdep/9390
2353 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2354 typo when using logical AND to determine instruction type.
2355
fcbdedf8
YQ
23562014-10-09 Yao Qi <yao@codesourcery.com>
2357
2358 * infrun.c (handle_signal_stop): Remove local variable
2359 'printed'.
2360
db984616
SS
23612014-10-08 Stan Shebs <stan@codesourcery.com>
2362
2363 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2364
3ba37e6c
GB
23652014-10-08 Gary Benson <gbenson@redhat.com>
2366
2367 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2368
a442d071
GB
23692014-10-08 Gary Benson <gbenson@redhat.com>
2370
2371 * common/common-defs.h: Include common-exceptions.h.
2372 * exceptions.h: Do not include common-exceptions.h.
2373
6f1947e8
GB
23742014-10-08 Gary Benson <gbenson@redhat.com>
2375
2376 * common/common-defs.h: Include cleanups.h.
2377 * common/common-exceptions.c: Do not include cleanups.h.
2378 * utils.h: Likewise.
2379
c765fdb9
GB
23802014-10-08 Gary Benson <gbenson@redhat.com>
2381
2382 * ada-lang.c: Do not include exceptions.h.
2383 * ada-valprint.c: Likewise.
2384 * amd64-tdep.c: Likewise.
2385 * auto-load.c: Likewise.
2386 * block.c: Likewise.
2387 * break-catch-throw.c: Likewise.
2388 * breakpoint.c: Likewise.
2389 * btrace.c: Likewise.
2390 * c-lang.c: Likewise.
2391 * cli/cli-cmds.c: Likewise.
2392 * cli/cli-interp.c: Likewise.
2393 * cli/cli-script.c: Likewise.
2394 * completer.c: Likewise.
2395 * corefile.c: Likewise.
2396 * corelow.c: Likewise.
2397 * cp-abi.c: Likewise.
2398 * cp-support.c: Likewise.
2399 * cp-valprint.c: Likewise.
2400 * darwin-nat.c: Likewise.
2401 * dwarf2-frame-tailcall.c: Likewise.
2402 * dwarf2-frame.c: Likewise.
2403 * dwarf2loc.c: Likewise.
2404 * dwarf2read.c: Likewise.
2405 * eval.c: Likewise.
2406 * event-loop.c: Likewise.
2407 * event-top.c: Likewise.
2408 * f-valprint.c: Likewise.
2409 * frame-unwind.c: Likewise.
2410 * frame.c: Likewise.
2411 * gdbtypes.c: Likewise.
2412 * gnu-v2-abi.c: Likewise.
2413 * gnu-v3-abi.c: Likewise.
2414 * guile/scm-auto-load.c: Likewise.
2415 * guile/scm-breakpoint.c: Likewise.
2416 * guile/scm-cmd.c: Likewise.
2417 * guile/scm-frame.c: Likewise.
2418 * guile/scm-lazy-string.c: Likewise.
2419 * guile/scm-param.c: Likewise.
2420 * guile/scm-symbol.c: Likewise.
2421 * guile/scm-type.c: Likewise.
2422 * hppa-hpux-tdep.c: Likewise.
2423 * i386-tdep.c: Likewise.
2424 * inf-loop.c: Likewise.
2425 * infcall.c: Likewise.
2426 * infcmd.c: Likewise.
2427 * infrun.c: Likewise.
2428 * interps.c: Likewise.
2429 * interps.h: Likewise.
2430 * jit.c: Likewise.
2431 * linespec.c: Likewise.
2432 * linux-nat.c: Likewise.
2433 * linux-thread-db.c: Likewise.
2434 * m32r-rom.c: Likewise.
2435 * main.c: Likewise.
2436 * memory-map.c: Likewise.
2437 * mi/mi-cmd-break.c: Likewise.
2438 * mi/mi-cmd-stack.c: Likewise.
2439 * mi/mi-interp.c: Likewise.
2440 * mi/mi-main.c: Likewise.
2441 * monitor.c: Likewise.
2442 * nto-procfs.c: Likewise.
2443 * objc-lang.c: Likewise.
2444 * p-valprint.c: Likewise.
2445 * parse.c: Likewise.
2446 * ppc-linux-tdep.c: Likewise.
2447 * printcmd.c: Likewise.
2448 * probe.c: Likewise.
2449 * python/py-auto-load.c: Likewise.
2450 * python/py-breakpoint.c: Likewise.
2451 * python/py-cmd.c: Likewise.
2452 * python/py-finishbreakpoint.c: Likewise.
2453 * python/py-frame.c: Likewise.
2454 * python/py-framefilter.c: Likewise.
2455 * python/py-function.c: Likewise.
2456 * python/py-gdb-readline.c: Likewise.
2457 * python/py-inferior.c: Likewise.
2458 * python/py-infthread.c: Likewise.
2459 * python/py-lazy-string.c: Likewise.
2460 * python/py-linetable.c: Likewise.
2461 * python/py-param.c: Likewise.
2462 * python/py-prettyprint.c: Likewise.
2463 * python/py-symbol.c: Likewise.
2464 * python/py-type.c: Likewise.
2465 * python/py-value.c: Likewise.
2466 * python/python-internal.h: Likewise.
2467 * python/python.c: Likewise.
2468 * record-btrace.c: Likewise.
2469 * record-full.c: Likewise.
2470 * regcache.c: Likewise.
2471 * remote-fileio.c: Likewise.
2472 * remote-mips.c: Likewise.
2473 * remote.c: Likewise.
2474 * rs6000-aix-tdep.c: Likewise.
2475 * rs6000-nat.c: Likewise.
2476 * skip.c: Likewise.
2477 * solib-darwin.c: Likewise.
2478 * solib-dsbt.c: Likewise.
2479 * solib-frv.c: Likewise.
2480 * solib-ia64-hpux.c: Likewise.
2481 * solib-spu.c: Likewise.
2482 * solib-svr4.c: Likewise.
2483 * solib.c: Likewise.
2484 * spu-tdep.c: Likewise.
2485 * stack.c: Likewise.
2486 * stap-probe.c: Likewise.
2487 * symfile-mem.c: Likewise.
2488 * symmisc.c: Likewise.
2489 * target.c: Likewise.
2490 * thread.c: Likewise.
2491 * top.c: Likewise.
2492 * tracepoint.c: Likewise.
2493 * tui/tui-interp.c: Likewise.
2494 * typeprint.c: Likewise.
2495 * utils.c: Likewise.
2496 * valarith.c: Likewise.
2497 * valops.c: Likewise.
2498 * valprint.c: Likewise.
2499 * value.c: Likewise.
2500 * varobj.c: Likewise.
2501 * windows-nat.c: Likewise.
2502 * xml-support.c: Likewise.
2503
484933d1
MR
25042014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2505
2506 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2507 name implies.
2508 (extended_mips16_next_pc): Update accordingly.
2509
ab50adb6
MR
25102014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2511
2512 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2513 function.
2514 (micromips_instruction_is_compact_branch): Likewise.
2515 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2516 or a compact jump, reaching a jump delay slot, or seeing a
2517 second non-prologue instruction.
2518 (micromips_scan_prologue): Also terminate scanning upon seeing a
2519 compact branch or jump, or reaching a branch or jump delay slot.
2520 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2521 or jump delay slot, or seeing a second non-prologue instruction.
2522 (mips32_instruction_has_delay_slot): Retain instruction
2523 examination code only, update arguments accordingly and move
2524 instruction fetch pieces to...
2525 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2526 (micromips_instruction_has_delay_slot): Likewise and to...
2527 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2528 (mips16_instruction_has_delay_slot): Likewise and to...
2529 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2530 (mips_single_step_through_delay): Update accordingly.
2531 (mips_adjust_breakpoint_address): Likewise.
2532
ae790652
MR
25332014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2534
2535 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2536 !mustbe32 also return 1 for 32-bit instructions.
2537 (mips16_instruction_has_delay_slot): Likewise. Add an
2538 explanatory comment.
2539
9b807e7b
MR
25402014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2541
2542 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2543 symbols special.
2544
0d5ed153
MR
25452014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2546
2547 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2548 update comments.
2549 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2550 for the breakpoint's address. Don't preinitialize `placed_size'.
2551 (insert_bp_location): Set `reqstd_address' rather than
2552 `placed_address'.
2553 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2554 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2555 address.
2556 (bkpt_remove_location): Likewise.
2557 (deprecated_insert_raw_breakpoint): Likewise.
2558 (deprecated_remove_raw_breakpoint): Likewise.
2559 (find_single_step_breakpoint): Likewise.
2560 * mem-break.c (default_memory_insert_breakpoint): Use
2561 `reqstd_address' for the breakpoint's address. Don't set
2562 `placed_address' or `placed_size' if breakpoint contents couldn't
2563 have been determined.
2564 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2565 the breakpoint's address.
2566 (remote_insert_hw_breakpoint): Likewise. Don't set
2567 `placed_address' or `placed_size' if breakpoint couldn't have been
2568 set.
2569 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2570 `reqstd_address' for the breakpoint's address.
2571 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2572 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2573 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2574 * microblaze-linux-tdep.c
2575 (microblaze_linux_memory_remove_breakpoint): Likewise.
2576 * monitor.c (monitor_insert_breakpoint): Likewise.
2577 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2578 (procfs_insert_hw_breakpoint): Likewise.
2579 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2580 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2581 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2582 * remote-mips.c (mips_insert_breakpoint): Likewise.
2583 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2584
3e871532
LM
25852014-10-03 Luis Machado <lgustavo@codesourcery.com>
2586
2587 * valops.c (value_assign): Check for bit field assignments
2588 before calling architecture-specific register value
2589 conversion functions.
2590
ec48dc8b
PM
25912014-10-03 Pierre Muller <muller@sourceware.org>
2592
2593 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2594
b57bacec
PA
25952014-10-02 Pedro Alves <palves@redhat.com>
2596
2597 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2598 threads_are_executing.
2599 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2600 describing comment.
2601 * gdbthread.h (threads_are_executing): Declare.
2602 (handle_signal_stop) <random signals>: Don't print about the
2603 signal here if stopping.
2604 (end_stepping_range): Don't notify observers here.
2605 (normal_stop): Update the thread list. If stopped by a random
2606 signal or a stepping range ended, notify observers.
2607 * thread.c (threads_executing): New global.
2608 (init_thread_list): Clear 'threads_executing'.
2609 (set_executing): Set or clear 'threads_executing'.
2610 (threads_are_executing): New function.
2611 (update_threads_executing): New function.
2612 (update_thread_list): Use it.
2613
13fd3ff3
PA
26142014-10-02 Pedro Alves <palves@redhat.com>
2615
2616 PR breakpoints/17431
2617 * breakpoint.c (update_breakpoints_after_exec): Don't create
2618 overlay, longjmp, std terminate nor exception breakpoints here.
2619
32990ada
PA
26202014-10-02 Pedro Alves <palves@redhat.com>
2621
2622 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2623 Adjust comments.
2624 * inferior.c (find_inferior_for_program_space): Give preference to
2625 the current inferior.
2626 * inferior.h (find_inferior_for_program_space): Update comment.
2627 * progspace.c (switch_to_program_space_and_thread): Prefer the
2628 current inferior if it's bound to the program space requested. If
2629 the inferior found doesn't have a PID yet, don't bother looking up
2630 a thread.
2631 * progspace.h (switch_to_program_space_and_thread): Adjust
2632 comment.
2633 * thread.c (any_thread_of_process, any_live_thread_of_process):
2634 Give preference to the current thread.
2635
0fec99e8
PA
26362014-10-01 Pedro Alves <palves@redhat.com>
2637
2638 * breakpoint.c (insert_bp_location): Error out if inserting a
2639 software breakpoint at a read-only address.
2640 * target.c (memory_xfer_check_region): New function, factored out
2641 from ...
2642 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2643 ULONGEST.
2644 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2645 against the memory region attributes.
2646
2ddf4301
SM
26472014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2648
2649 * NEWS: Announce new exit-code field in -list-thread-groups
2650 output.
2651 * inferior.c (exit_inferior_1): Don't clear exit code.
2652 (inferior_appeared): Clear exit code.
2653 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2654 code.
2655
5fdeec1d
PA
26562014-10-01 Pedro Alves <palves@redhat.com>
2657
2658 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2659 GENERATED" along with emacs/vi read-only markers.
2660 * regformats/aarch64.dat: Regenerate.
2661 * regformats/arm-with-iwmmxt.dat: Regenerate.
2662 * regformats/arm-with-neon.dat: Regenerate.
2663 * regformats/arm-with-vfpv2.dat: Regenerate.
2664 * regformats/arm-with-vfpv3.dat: Regenerate.
2665 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2666 * regformats/i386/amd64-avx.dat: Regenerate.
2667 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2668 * regformats/i386/amd64-avx512.dat: Regenerate.
2669 * regformats/i386/amd64-linux.dat: Regenerate.
2670 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2671 * regformats/i386/amd64-mpx.dat: Regenerate.
2672 * regformats/i386/amd64.dat: Regenerate.
2673 * regformats/i386/i386-avx-linux.dat: Regenerate.
2674 * regformats/i386/i386-avx.dat: Regenerate.
2675 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2676 * regformats/i386/i386-avx512.dat: Regenerate.
2677 * regformats/i386/i386-linux.dat: Regenerate.
2678 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2679 * regformats/i386/i386-mmx.dat: Regenerate.
2680 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2681 * regformats/i386/i386-mpx.dat: Regenerate.
2682 * regformats/i386/i386.dat: Regenerate.
2683 * regformats/i386/x32-avx-linux.dat: Regenerate.
2684 * regformats/i386/x32-avx.dat: Regenerate.
2685 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2686 * regformats/i386/x32-avx512.dat: Regenerate.
2687 * regformats/i386/x32-linux.dat: Regenerate.
2688 * regformats/i386/x32.dat: Regenerate.
2689 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2690 * regformats/mips-dsp-linux.dat: Regenerate.
2691 * regformats/mips-linux.dat: Regenerate.
2692 * regformats/mips64-dsp-linux.dat: Regenerate.
2693 * regformats/mips64-linux.dat: Regenerate.
2694 * regformats/nios2-linux.dat: Regenerate.
2695 * regformats/rs6000/powerpc-32.dat: Regenerate.
2696 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2697 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2698 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2699 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2700 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2701 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2702 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2703 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2704 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2705 * regformats/s390-linux32.dat: Regenerate.
2706 * regformats/s390-linux32v1.dat: Regenerate.
2707 * regformats/s390-linux32v2.dat: Regenerate.
2708 * regformats/s390-linux64.dat: Regenerate.
2709 * regformats/s390-linux64v1.dat: Regenerate.
2710 * regformats/s390-linux64v2.dat: Regenerate.
2711 * regformats/s390-te-linux64.dat: Regenerate.
2712 * regformats/s390x-linux64.dat: Regenerate.
2713 * regformats/s390x-linux64v1.dat: Regenerate.
2714 * regformats/s390x-linux64v2.dat: Regenerate.
2715 * regformats/s390x-te-linux64.dat: Regenerate.
2716 * regformats/tic6x-c62x-linux.dat: Regenerate.
2717 * regformats/tic6x-c62x.dat: Regenerate.
2718 * regformats/tic6x-c64x-linux.dat: Regenerate.
2719 * regformats/tic6x-c64x.dat: Regenerate.
2720 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2721 * regformats/tic6x-c64xp.dat: Regenerate.
2722
db74e4ba
PA
27232014-10-01 Pedro Alves <palves@redhat.com>
2724
2725 * features/Makefile: Update comments.
2726 (XMLTOC): List all xml files we build C files from.
2727 (clean-cfiles): New rule.
2728
d63f2f84
PA
27292014-10-01 Pedro Alves <palves@redhat.com>
2730
2731 * features/i386/amd64-avx512-linux.c: Regenerate.
2732 * features/i386/amd64-avx512.c: Regenerate.
2733 * features/i386/x32-avx512-linux.c: Regenerate.
2734 * features/i386/x32-avx512.c: Regenerate.
2735
20ad026d
PA
27362014-10-01 Pedro Alves <palves@redhat.com>
2737
2738 * features/Makefile (WHICH): Remove arm-with-m,
2739 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2740
acc9fe45
PA
27412014-10-01 Pedro Alves <palves@redhat.com>
2742
2743 * features/Makefile (clean): New rule.
2744
e001e535
PA
27452014-10-01 Pedro Alves <palves@redhat.com>
2746
2747 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2748 (zmm14h): Add missing end quotes.
2749
bdc14417
PA
27502014-10-01 Pedro Alves <palves@redhat.com>
2751
2752 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2753 * features/aarch64.c: Regenerate.
2754
d83ad864
DB
27552014-09-30 Don Breazeal <donb@codesourcery.com>
2756
2757 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2758 code so as to work with follow_fork_inferior.
2759 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2760 (inf_ttrace_create_inferior): Remove reference to
2761 inf_ttrace_vfork_ppid.
2762 (inf_ttrace_attach): Ditto.
2763 (inf_ttrace_detach): Ditto.
2764 (inf_ttrace_kill): Use current_inferior instead of
2765 inf_ttrace_vfork_ppid.
2766 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2767 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2768 inferior away from the parent.
2769 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2770 target_follow_fork.
2771 (follow_fork_inferior): New function.
2772 (follow_inferior_reset_breakpoints): Make function static.
2773 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2774 * linux-nat.c (linux_child_follow_fork): Move target-independent
2775 code to infrun.c:follow_fork_inferior.
2776
29082443
AA
27772014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2778
2779 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2780 * gdbarch.c: Regenerate.
2781 * gdbarch.h: Likewise.
2782 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2783 gdbarch method 'regset_from_core_section'.
2784 (get_core_register_section): Remove handling for the case that
2785 regset == NULL and regset_from_core_section is defined.
2786 (get_core_registers): Drop check for deleted method.
2787 * procfs.c (procfs_do_thread_registers): Adjust comment.
2788
f968fe80
AA
27892014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2790
2791 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2792 (linux_nat_make_corefile_notes): Remove.
2793 (linux_target_install_ops): Do not set target method
2794 'make_corefile_notes'.
2795 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2796 Remove field.
2797 (linux_corefile_thread_callback): Instead of args->collect, call
2798 linux_collect_thread_registers.
2799 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2800 NULL unless there is a regset iterator.
2801 (linux_make_corefile_notes_1): Remove.
2802 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2803 by linux_make_corefile_notes.
2804 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2805
174ad59a
AA
28062014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2807
2808 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2809 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2810 Remove.
2811 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2812
97094034
AA
28132014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2814
2815 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2816 (xtensa_iterate_over_regset_sections): New.
2817 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2818
f73d3ce7
AA
28192014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2820
2821 * vax-tdep.c (vax_regset_from_core_section): Remove.
2822 (vax_iterate_over_regset_sections): New.
2823 (vax_gdbarch_init): Adjust gdbarch initialization.
2824
cb24567a
AA
28252014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2826
2827 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2828 (tilegx_regset_from_core_section): Remove.
2829 (tilegx_iterate_over_regset_sections): New.
2830 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2831
e5139de8
AA
28322014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2833
2834 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2835 (sparc_iterate_over_regset_sections): New.
2836 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2837 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2838 targets.
2839 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2840 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2841 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2842 target method 'make_corefile_notes'.
2843
c6d41a6f
AA
28442014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2845
2846 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2847 'sizeof_gregset' and 'sizeof_fpregset'.
2848 * sh-tdep.c (sh_regset_from_core_section): Remove.
2849 (sh_iterate_over_regset_sections): New.
2850 (sh_gdbarch_init): Adjust gdbarch initialization.
2851 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2852 sizeof_fpregset.
2853 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2854 'sizeof_gregset'.
2855
9845a0b5
AA
28562014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2857
2858 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2859 (score7_linux_iterate_over_regset_sections): New.
2860 (score_gdbarch_init): Adjust gdbarch initialization.
2861
23ea9aeb
AA
28622014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2863
2864 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2865 FreeBSD targets.
2866 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2867 method 'make_corefile_notes'.
2868 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2869 (ppcfbsd_regset_from_core_section): Remove.
2870 (ppcfbsd_iterate_over_regset_sections): New.
2871 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2872 initialization.
2873 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2874 (ppcnbsd_iterate_over_regset_sections): New.
2875 (ppcnbsd_init_abi): Adjust.
2876 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2877 (ppcobsd_iterate_over_regset_sections): New.
2878 (ppcobsd_init_abi): Adjust.
2879 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2880 (rs6000_aix_iterate_over_regset_sections): New.
2881 (rs6000_aix_init_osabi): Adjust.
2882
c5b8d704
AA
28832014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2884
2885 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2886 (nios2_regset_from_core_section): Remove.
2887 (nios2_iterate_over_regset_sections): New.
2888 (nios2_linux_init_abi): Adjust gdbarch initialization.
2889
3636e608
AA
28902014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2891
2892 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2893 (am33_iterate_over_regset_sections): New.
2894 (am33_linux_init_osabi): Adjust gdbarch initialization.
2895
d4036235
AA
28962014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2897
2898 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2899 (mips_linux_iterate_over_regset_sections): New.
2900 (mips_linux_init_abi): Adjust gdbarch initialization.
2901 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2902 (mips64obsd_iterate_over_regset_sections): New.
2903 (mips64obsd_init_abi): Adjust.
2904 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2905 (mipsnbsd_iterate_over_regset_sections): New.
2906 (mipsnbsd_init_abi): Adjust.
2907
b61ddd6e
AA
29082014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2909
2910 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2911 (m88k_iterate_over_regset_sections): New.
2912 (m88k_gdbarch_init): Adjust gdbarch initialization.
2913
55a2906a
AA
29142014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2915
2916 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2917 (ia64_linux_iterate_over_regset_sections): New.
2918 (ia64_linux_init_abi): Adjust gdbarch initialization.
2919
022c98ab
AA
29202014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2921
2922 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2923 (m68kbsd_iterate_over_regset_sections): New.
2924 (m68kbsd_init_abi): Adjust gdbarch initialization.
2925 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2926 (m68k_linux_iterate_over_regset_sections): New.
2927 (m68k_linux_init_abi): Adjust gdbarch initialization.
2928
5fac247f
AA
29292014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2930
2931 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2932 (m32r_linux_regset_from_core_section): Remove.
2933 (m32r_linux_iterate_over_regset_sections): New.
2934 (m32r_linux_init_abi): Adjust gdbarch initialization.
2935
490496c3
AA
29362014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2937
2938 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2939 (amd64obsd_iterate_over_regset_sections): New.
2940 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2941 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2942 Remove.
2943 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2944 regset_from_core_section initialization.
2945 * i386-tdep.c (i386_regset_from_core_section): Remove.
2946 (i386_iterate_over_regset_sections): New.
2947 (i386_gdbarch_init): Adjust gdbarch initialization.
2948 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2949 (i386_iterate_over_regset_sections): New prototype.
2950 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2951 Remove.
2952 (i386obsd_aout_iterate_over_regset_sections): New.
2953 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2954 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2955 targets.
2956 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2957 (amd64fbsd_init_abi): Call fbsd_init_abi.
2958 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2959 (i386fbsd4_init_abi): Call fbsd_init_abi.
2960 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2961 target method 'make_corefile_notes'.
2962 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2963
50c5eb53
AA
29642014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2965
2966 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2967 (hppa_hpux_iterate_over_regset_sections): New.
2968 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2969 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2970 (hppa_linux_iterate_over_regset_sections): New.
2971 (hppa_linux_init_abi): Adjust.
2972 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2973 (hppanbsd_iterate_over_regset_sections): New.
2974 (hppanbsd_init_abi): Adjust.
2975 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2976 (hppaobsd_iterate_over_regset_sections): New.
2977 (hppaobsd_init_abi): Adjust.
2978
66afae4f
AA
29792014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2980
2981 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2982 (frv_linux_iterate_over_regset_sections): New.
2983 (frv_linux_init_abi): Adjust gdbarch initialization.
2984
ed09174e
AA
29852014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2986
2987 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2988 (armbsd_iterate_over_regset_sections): New prototype.
2989 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2990 (armbsd_iterate_over_regset_sections): New.
2991 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2992 initialization.
2993
dff2166e
AA
29942014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2995
2996 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2997 (alpha_linux_iterate_over_regset_sections): New.
2998 (alpha_linux_init_abi): Adjust gdbarch initialization.
2999 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
3000 prototype.
3001 (alphanbsd_iterate_over_regset_sections): New prototype.
3002
4108500a
AA
30032014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3004
3005 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
3006 Remove.
3007 (aarch64_linux_iterate_over_regset_sections): New.
3008 (aarch64_linux_init_abi): Adjust gdbarch initialization.
3009
a904c024
AA
30102014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3011
3012 * fbsd-tdep.c: New file.
3013 * fbsd-tdep.h: New file.
3014 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
3015 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
3016 (ALLDEPFILES): Add fbsd-tdep.c.
3017
8f0435f7
AA
30182014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3019
3020 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
3021 parameter.
3022 * gdbarch.h: Regenerate.
3023 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
3024 iterator.
3025 (get_core_register_section): Add parameter 'regset' and use it, if
3026 set. Add parameter 'min_size' and verify the bfd section size
3027 against it.
3028 (get_core_registers_cb): Add parameter 'regset' and pass it to
3029 get_core_register section. For the "standard" register sections
3030 ".reg" and ".reg2", set an appropriate default for human_name.
3031 (get_core_registers): Don't abort when the gdbarch has an iterator
3032 but no regset_from_core_section. Add NULL/0 for parameters
3033 'regset'/'min_size' in calls to get_core_register_section.
3034 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
3035 'regset' and use it instead of calling the
3036 regset_from_core_section gdbarch method.
3037 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
3038 * i386-tdep.c (i386_supply_xstateregset)
3039 (i386_collect_xstateregset, i386_xstateregset): Moved to
3040 i386-linux-tdep.c.
3041 (i386_regset_from_core_section): Drop handling for .reg-xfp and
3042 .reg-xstate.
3043 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
3044 core file support only if the regset iterator hasn't been set.
3045 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
3046 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
3047 Moved from i386-tdep.c and renamed to *_linux*.
3048 (i386_linux_iterate_over_regset_sections): Add regset parameter to
3049 each callback invocation. Allow any .reg-xstate size when reading
3050 from a core file.
3051 * amd64-tdep.c (amd64_supply_xstateregset)
3052 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
3053 amd64-linux-tdep.c.
3054 (amd64_regset_from_core_section): Remove.
3055 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
3056 install an amd64-specific regset_from_core_section gdbarch method.
3057 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
3058 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
3059 Moved from amd64-tdep.c and renamed to *_linux*.
3060 (amd64_linux_iterate_over_regset_sections): Add regset parameter
3061 to each callback invocation. Allow any .reg-xstate size when
3062 reading from a core file.
3063 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
3064 (arm_linux_iterate_over_regset_sections): Add regset parameter to
3065 each callback invocation.
3066 (arm_linux_init_abi): No longer set the regset_from_core_section
3067 gdbarch method.
3068 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
3069 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
3070 each callback invocation.
3071 (ppc_linux_init_abi): No longer set the regset_from_core_section
3072 gdbarch method.
3073 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
3074 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
3075 (s390_regset_from_core_section): Remove.
3076 (s390_iterate_over_regset_sections): Add regset parameter to each
3077 callback invocation.
3078 (s390_gdbarch_init): No longer set the regset_from_core_section
3079 gdbarch method. Drop initialization of deleted tdep fields.
3080
5aa82d05
AA
30812014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3082
3083 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
3084 (amd64_linux_iterate_over_regset_sections): New.
3085 (amd64_linux_init_abi_common): Don't install the regset section
3086 list, but the new iterator in gdbarch.
3087 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
3088 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
3089 (arm_linux_iterate_over_regset_sections): ...here. New function.
3090 (arm_linux_init_abi): Set iterator instead of section list.
3091 * corelow.c (get_core_registers_cb): New function, logic moved
3092 from...
3093 (get_core_registers): ...loop body here. Use new iterator method
3094 instead of walking through the regset section list.
3095 * gdbarch.sh: Remove 'core_regset_sections'. New method
3096 'iterate_over_regset_sections'. New typedef
3097 'iterate_over_regset_sections_cb'.
3098 * gdbarch.c: Regenerate.
3099 * gdbarch.h: Likewise.
3100 * i386-linux-tdep.c (i386_linux_regset_sections)
3101 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3102 Remove.
3103 (i386_linux_iterate_over_regset_sections): New.
3104 (i386_linux_init_abi): Don't choose a regset section list, but
3105 install new iterator in gdbarch.
3106 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
3107 (linux_collect_regset_section_cb): New function, logic moved
3108 from...
3109 (linux_collect_thread_registers): ...loop body here. Use iterator
3110 method instead of walking through list.
3111 (linux_make_corefile_notes_1): Check for presence of iterator
3112 method instead of regset section list.
3113 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
3114 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
3115 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
3116 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
3117 (ppc_linux_iterate_over_regset_sections): ...here. New function.
3118 (ppc_linux_init_abi): Don't choose from above regset section
3119 lists, but install new iterator in gdbarch.
3120 * regset.h (struct core_regset_section): Remove.
3121 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
3122 have_linux_v1, have_linux_v2, and have_tdb.
3123 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
3124 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
3125 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
3126 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
3127 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
3128 (s390_iterate_over_regset_sections): ...here. New function. Use
3129 new tdep fields.
3130 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
3131 regset section lists, but install new iterator.
3132
2eca4a8d
JK
31332014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3134
3135 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
3136
a73c2b56
SM
31372014-09-26 Simon Marchi <simon.marchi@ericsson.com>
3138
3139 * progspace.c (print_program_space): Don't prune program spaces
3140 before printing them.
3141
03d46957
PA
31422014-09-25 Pedro Alves <palves@redhat.com>
3143
3144 * infrun.c (user_visible_resume_ptid): Don't check
3145 singlestep_breakpoints_inserted_p.
3146
e558d7c1
PA
31472014-09-25 Pedro Alves <palves@redhat.com>
3148
3149 * breakpoint.c (should_be_inserted): Add debug output.
3150
7f89fd65
PA
31512014-09-25 Pedro Alves <palves@redhat.com>
3152
3153 * infrun.c (stepping_past_instruction_at)
3154 (clear_exit_convenience_vars): Point at infrun.h instead of
3155 inferior.h.
3156 (handle_signal_stop): Fix typo.
3157
b7576e5c
YQ
31582014-09-24 Yao Qi <yao@codesourcery.com>
3159
3160 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
3161 bitmask.
3162
9a6cf368
GB
31632014-09-22 Gary Benson <gbenson@redhat.com>
3164
3165 * target.c (target_stop): Updated comment.
3166
03f4463b
GB
31672014-09-22 Gary Benson <gbenson@redhat.com>
3168
3169 * target/target.h (target_stop_ptid): Renamed as...
3170 (target_stop_and_wait): New function. Updated comment.
3171 All uses updated.
3172 (target_continue_ptid): Renamed as...
3173 (target_continue_no_signal): New function. Updated comment.
3174 All uses updated.
3175
a25a5a45
PA
31762014-09-22 Pedro Alves <palves@redhat.com>
3177
3178 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3179 and "auto" merged.
3180 * breakpoint.c (enum ugll_insert_mode): New enum.
3181 (always_inserted_mode): Now a plain boolean.
3182 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3183 (breakpoints_always_inserted_mode): Delete.
3184 (breakpoints_should_be_inserted_now): New function.
3185 (insert_breakpoints): Pass UGLL_INSERT to
3186 update_global_location_list instead of calling
3187 insert_breakpoint_locations manually.
3188 (create_solib_event_breakpoint_1): New, factored out from ...
3189 (create_solib_event_breakpoint): ... this.
3190 (create_and_insert_solib_event_breakpoint): Use
3191 create_solib_event_breakpoint_1 instead of calling
3192 insert_breakpoint_locations manually.
3193 (update_global_location_list): Change parameter type from boolean
3194 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3195 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3196 (update_global_location_list_nothrow): Change parameter type from
3197 boolean to enum ugll_insert_mode.
3198 (_initialize_breakpoint): "breakpoint always-inserted" option is
3199 now a boolean command. Update help text.
3200 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3201 (breakpoints_should_be_inserted_now): New declaration.
3202 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3203 Remove breakpoints_always_inserted_mode check.
3204 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3205 * remote.c (remote_start_remote): Likewise.
3206
04086b45
PA
32072014-09-22 Pedro Alves <palves@redhat.com>
3208
3209 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3210 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3211 Instead, pass UGLL_INSERT to update_global_location_list.
3212 (update_global_location_list): Change parameter type from boolean
3213 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3214 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3215 (create_solib_event_breakpoint_1): New, factored out from ...
3216 (create_solib_event_breakpoint): ... this.
3217 (create_and_insert_solib_event_breakpoint): Use
3218 create_solib_event_breakpoint_1 instead of calling
3219 insert_breakpoint_locations manually.
3220 (update_global_location_list): Handle UGLL_INSERT.
3221
44702360
PA
32222014-09-22 Pedro Alves <palves@redhat.com>
3223
3224 * breakpoint.c (enum ugll_insert_mode): New enum.
3225 (update_global_location_list)
3226 (update_global_location_list_nothrow): Change parameter type from
3227 boolean to enum ugll_insert_mode. All callers adjusted.
3228
93c6145a
JB
32292014-09-19 Joel Brobecker <brobecker@adacore.com>
3230
3231 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3232 SystemTap support in GDB.
3233
89a5711c
DB
32342014-09-19 Don Breazeal <donb@codesourcery.com>
3235
3236 * linux-nat.c (linux_handle_extended_wait): Call
3237 linux_ptrace_get_extended_event.
3238 (wait_lwp): Call linux_is_extended_waitstatus.
3239 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3240 and linux_is_extended_waitstatus.
3241 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3242 linux_ptrace_get_extended_event.
3243 (linux_ptrace_get_extended_event): New function.
3244 (linux_is_extended_waitstatus): New function.
3245 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3246 (linux_is_extended_waitstatus): New declarations.
3247
c3b7b696
YQ
32482014-09-19 Yao Qi <yao@codesourcery.com>
3249
3250 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3251 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3252 comments. Callers update.
3253 (dwarf_decode_lines): Likewise.
3254 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3255 comments. Skip the line table if 'lowpc' is greater than
3256 'address'. Don't check
3257 dwarf2_per_objfile->has_section_at_zero.
3258
2b4fd423
DE
32592014-09-18 Doug Evans <dje@google.com>
3260
3261 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3262 * python/py-symtab.c (stpy_get_producer): New function.
3263 (symtab_object_getset): Add "producer" attribute.
3264
5e43d467
UW
32652014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
3266
3267 PR gdb/17384
3268 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3269 (do_captured_read_memory_integer): Remove.
3270 (safe_read_memory_integer): Use target_read_memory directly instead
3271 of catching errors in do_captured_read_memory_integer.
3272
04e79979
MR
32732014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3274
3275 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3276 not gdb/doc.
3277
76aeec5b
SDJ
32782014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3279
3280 * objc-lang.c (find_implementation_from_class): Remove dead code.
3281
2f693f9d
SDJ
32822014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3283
3284 PR cli/7233
3285 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3286 "fprintf_unfiltered (gdb_stdlog...)".
3287
bb9d5f81
PP
32882014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3289
3290 PR breakpoints/12526
3291 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3292 val_bitsize.
3293 * breakpoint.c (watch_command_1): Use these fields to retain
3294 bitfield information.
3295 (extract_bitfield_from_watchpoint_value): New function.
3296 (watchpoint_check): Use it.
3297 (update_watchpoint): Use it. Optimize the address and length of a
3298 HW watchpoint pointing to a bitfield.
3299 * value.h (unpack_value_bitfield): New prototype.
3300 * value.c (unpack_value_bitfield): Make extern.
3301
05db5edd
ST
33022014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3303
3304 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3305 x86-dregs.o.
3306 * gnu-nat.c (inf_threads): New function.
3307 * gnu-nat.h (inf_threads_ftype): New typedef.
3308 (inf_threads): New declaration.
3309 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3310 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3311 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3312 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3313 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3314 (i386_gnu_dr_get_control): New functions.
3315 (reg_addr): New structure.
3316 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3317 i386 debugging register hooks.
3318 * NEWS: Mention this.
3319
5a578da5
OJ
33202014-08-13 Omair Javaid <omair.javaid@linaro.org>
3321
3322 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3323 vector data transfer instructions.
3324 (arm_record_coproc_data_proc): Updated.
3325
f20f80dd
OJ
33262014-08-13 Omair Javaid <omair.javaid@linaro.org>
3327
3328 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3329 arm_record_exreg_ld_st_insn.
3330 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3331 load/store insns.
3332
851f26ae
OJ
33332014-08-13 Omair Javaid <omair.javaid@linaro.org>
3334
3335 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3336 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3337 processing instructions.
3338
1e1b6563
OJ
33392014-08-13 Omair Javaid <omair.javaid@linaro.org>
3340
3341 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3342 for advance SIMD struct ld/st insn.
3343 (thumb2_record_decode_insn_handler): Replace stub handler with
3344 thumb2_record_asimd_struct_ld_st.
3345
60cc5e93
OJ
33462014-08-13 Omair Javaid <omair.javaid@linaro.org>
3347
3348 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3349 for asimd, vfp and coprocessor insns.
3350 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3351 and coprocessor insns.
3352 (thumb2_record_coproc_insn): New function.
3353 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3354 handlers.
3355 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3356 opcode 110 insns.
3357
81219e53
DE
33582014-09-13 Doug Evans <xdje42@gmail.com>
3359
3360 * NEWS: Mention new "queue-signal" command.
3361 * infcmd.c (queue_signal_command): New function.
3362 (_initialize_infcmd): Add new queue-signal command.
3363
d36bf488
DE
33642014-09-13 Doug Evans <xdje42@gmail.com>
3365
3366 * linux-nat.c (wait_lwp): Add debugging printf.
3367 (linux_nat_wait_1): Ditto.
3368
f37f681c
PA
33692014-09-12 Pedro Alves <palves@redhat.com>
3370
3371 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3372 (create_and_insert_solib_event_breakpoint): New functions.
3373 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3374 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3375 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3376 (remove_dbx_link_breakpoint): Delete function.
3377 (insert_dbx_link_bpt_in_file): Use
3378 create_and_insert_solib_event_breakpoint instead of
3379 deprecated_insert_raw_breakpoint.
3380 (procfs_wait): Don't check whether we hit __dbx_link here.
3381 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3382 here.
3383 * solib-irix.c (base_breakpoint): Delete global.
3384 (disable_break): Delete function.
3385 (enable_break): Use create_solib_event_breakpoint
3386 instead of deprecated_insert_raw_breakpoint.
3387 (irix_solib_handle_event): New function.
3388 (irix_solib_create_inferior_hook): Don't run the target or disable
3389 the mapping-complete breakpoint here.
3390 (_initialize_irix_solib): Install irix_solib_handle_event as
3391 so_ops->handle_event hook.
3392
9d9bf2df
EBM
33932014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3394 Ulrich Weigand  <uweigand@de.ibm.com>
3395
3396 PR tdep/17379
3397 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3398 instead of read_memory_unsigned_integer.
3399
b006a80e
GB
34002014-09-12 Gary Benson <gbenson@redhat.com>
3401
3402 * nat/linux-waitpid.c: Include common-defs.h.
3403 [GDBSERVER]: Add FIXME comment.
3404 [!GDBSERVER]: Don't include defs.h or signal.h.
3405 (linux_debug) [!GDBSERVER]: Remove empty block.
3406
296b1496
GB
34072014-09-12 Gary Benson <gbenson@redhat.com>
3408
3409 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3410 Don't include defs.h or server.h.
3411
53f81362
GB
34122014-09-12 Gary Benson <gbenson@redhat.com>
3413
3414 * nat/linux-btrace.c: Include common-defs.h.
3415 Don't include defs.h, server.h or gdbthread.h.
3416 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3417
727605ca
GB
34182014-09-12 Gary Benson <gbenson@redhat.com>
3419
3420 * common/agent.c: Include common-defs.h.
3421 Don't include defs.h or server.h.
3422 * common/buffer.c: Likewise.
3423 * common/common-debug.c: Likewise.
3424 * common/common-utils.c: Likewise.
3425 * common/errors.c: Likewise.
3426 * common/filestuff.c: Likewise.
3427 * common/format.c: Likewise.
3428 * common/gdb_vecs.c: Likewise.
3429 * common/print-utils.c: Likewise.
3430 * common/ptid.c: Likewise.
3431 * common/rsp-low.c: Likewise.
3432 * common/signals.c: Likewise.
3433 * common/vec.c: Likewise.
3434 * common/xml-utils.c: Likewise.
3435 * nat/linux-osdata.c: Likewise.
3436 * nat/linux-procfs.c: Likewise.
3437 * nat/linux-ptrace.c: Likewise.
3438 * nat/mips-linux-watch.c: Likewise.
3439 * target/waitstatus.c: Likewise.
3440
361c8ade
GB
34412014-09-12 Tom Tromey <tromey@redhat.com>
3442 Gary Benson <gbenson@redhat.com>
3443
3444 * common/common-regcache.h: New file.
3445 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3446 * regcache.h: Include common-regcache.h.
3447 (regcache_read_pc): Don't declare.
3448 * regcache.c (get_thread_regcache_for_ptid): New function.
3449 * nat/linux-btrace.c: Don't include regcache.h.
3450 Include common-regcache.h.
3451 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3452
a01cbb49
TS
34532014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3454
3455 * regcache.h (struct regset): Declare.
3456
98880d46
PA
34572014-09-11 Pedro Alves <palves@redhat.com>
3458
3459 PR gdb/17347
3460 * main.c: Include "infrun.h".
3461 (catch_command_errors, catch_command_errors_const): Wait for the
3462 foreground command to complete.
3463 * top.c (maybe_wait_sync_command_done): New function, factored out
3464 from ...
3465 (maybe_wait_sync_command_done): ... here.
3466 * top.h (maybe_wait_sync_command_done): New declaration.
3467
bd9269f7
GB
34682014-09-11 Tom Tromey <tromey@redhat.com>
3469 Gary Benson <gbenson@redhat.com>
3470
3471 * common/symbol.h: New file.
3472 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3473 * minsyms.c (find_minimal_symbol_address): New function.
3474 * common/agent.c: Include common/symbol.h.
3475 [!GDBSERVER]: Don't include objfiles.h.
3476 (agent_look_up_symbols): Use find_minimal_symbol_address.
3477
f8c1d06b
GB
34782014-09-11 Gary Benson <gbenson@redhat.com>
3479
3480 * target/target.h (target_stop_ptid, target_continue_ptid):
3481 Declare.
3482 * target.c (target_stop_ptid, target_continue_ptid): New
3483 functions.
3484 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3485 (agent_run_command): Always use target_stop_ptid and
3486 target_continue_ptid.
3487
721ec300
GB
34882014-09-11 Tom Tromey <tromey@redhat.com>
3489 Gary Benson <gbenson@redhat.com>
3490
3491 * target/target.h: New file.
3492 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3493 * target.h: Include target/target.h.
3494 (target_read_memory, target_write_memory): Don't declare.
3495 * target.c (target_read_uint32): New function.
3496 * common/agent.c: Include target/target.h.
3497 [!GDBSERVER]: Don't include target.h.
3498 (helper_thread_id): Type changed to uint32_t.
3499 (agent_get_helper_thread_id): Use target_read_uint32.
3500 (agent_run_command): Always use target_read_memory and
3501 target_write_memory.
3502 (agent_capability): Type changed to uint32_t.
3503 (agent_capability_check): Use target_read_uint32.
3504
c5e92cca
GB
35052014-09-11 Gary Benson <gbenson@redhat.com>
3506
3507 * common/common-debug.h (show_debug_regs): Declare.
3508 * common/common-debug.c (show_debug_regs): Define.
3509 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3510 all uses with show_debug_regs. Replace all uses that considered
3511 debug_hw_points as a multi-value integer with straight boolean
3512 uses.
3513 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3514 with show_debug_regs.
3515 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3516 all uses with show_debug_regs.
3517 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3518 uses with show_debug_regs.
3519
eeef931a
UW
35202014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3521
3522 * findvar.c (address_from_register): Handle targets requiring
3523 a special conversion routine even for plain pointer types.
3524
8efa9855
UW
35252014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3526
3527 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3528 (store_register): Do not call exec_one_dummy_insn.
3529
eb479039
JB
35302014-09-10 Joel Brobecker <brobecker@adacore.com>
3531
3532 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3533 dereference it first. Use value_enclosing_type instead of
3534 value_type.
3535 (ada_array_length): Likewise.
3536
deede10c
JB
35372014-09-10 Joel Brobecker <brobecker@adacore.com>
3538
3539 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3540 Adjust function implementation and documentation accordingly.
3541 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3542 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3543 Update call to ada_value_ptr_subscript.
3544
7828a5f5
JB
35452014-09-10 Joel Brobecker <brobecker@adacore.com>
3546
3547 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3548 instead of VAL's type.
3549
35782f14
JB
35502014-09-10 Joel Brobecker <brobecker@adacore.com>
3551
3552 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3553
d342a0da
DE
35542014-09-09 Doug Evans <xdje42@gmail.com>
3555
3556 PR guile/17367
3557 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3558 last parameter to pkg-config, not first.
3559 * configure.ac: Pass --with-guile provided pkg-config path to
3560 GDB_GUILE_PROGRAM_NAMES.
3561 * configure: Regenerate.
3562
b4a3d263
GKB
35632014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3564
3565 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3566 Bertazi".
3567
6e466374
MR
35682014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3569
3570 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3571 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3572 the list of sections determining GDB_OSABI_IRIX.
3573
a1ada89a
JH
35742014-09-09 James Hogan <james.hogan@imgtec.com>
3575
3576 * MAINTAINERS (Write After Approval): Add "James Hogan".
3577
86db008d
JH
35782014-09-09 James Hogan <james.hogan@imgtec.com>
3579
3580 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3581
72fde3df
JB
35822014-09-09 Joel Brobecker <brobecker@adacore.com>
3583
3584 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3585
92d8d229
DE
35862014-09-08 Doug Evans <xdje42@gmail.com>
3587
3588 PR 17247
3589 * guile.c: #include <signal.h>.
3590 (_initialize_guile): Block SIGCHLD while initializing Guile.
3591
3592 Replaces the following, which is reverted.
3593
3594 2014-07-26 Doug Evans <xdje42@gmail.com>
3595
3596 PR 17185
3597 * configure.ac: Add check for header gc/gc.h.
3598 Add check for function setenv.
3599 * configure: Regenerate.
3600 * config.in: Regenerate.
3601 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3602
d81412aa
DE
36032014-09-08 Doug Evans <xdje42@gmail.com>
3604
3605 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3606 with named constant. Fix style of pointer comparison.
3607 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3608
a9f116cb
GKB
36092014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3610
3611 PR gdb/17035
3612 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3613 decide whether we display the command on "show user".
3614 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3615 printing command name.
3616 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3617 * cli/cli-decode.c (cli_user_command_p): Create helper function
3618 to verify whether cmd_list_element is a user-defined command.
3619
c75bd3a2
JK
36202014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3621
3622 PR python/17355
3623 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3624 Fix goto out of TRY_CATCH.
3625
faa42425 36262014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 3627 Tom Tromey <tromey@redhat.com>
faa42425
DE
3628
3629 PR 15276
3630 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3631 $_any_caller_matches.
3632 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3633 * python/lib/gdb/function/caller_is.py: New file.
3634
0d41ba00
DE
36352014-09-06 Doug Evans <xdje42@gmail.com>
3636
3637 * infcmd.c (program_info): Fix typo.
3638
474ca4f6
SDJ
36392014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3640
3641 PR gdb/17235
3642 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3643 'number'. New variable 'has_digit'. Rewrite code to deal with
3644 subexpressions on SDT probes.
3645
ebf13736
PA
36462014-09-04 Pedro Alves <palves@redhat.com>
3647
3648 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3649 the input is only one character long.
3650
eb0b0463
SDJ
36512014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3652
3653 PR fortran/17237
3654 * f-valprint.c (f_val_print): Specify the correct print option to
3655 use when printing integer values.
3656
5ee44bfa
GB
36572014-09-04 Gary Benson <gbenson@redhat.com>
3658
3659 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3660 Remove code to cope with LWPs wrapped as PIDs.
3661 Add assertions to ensure no wrapped LWPs are passed.
3662
4875ffdb
PA
36632014-09-04 Pedro Alves <palves@redhat.com>
3664
3665 * value.c (value_ranges_copy_adjusted): New function, factored out
3666 from ...
3667 (value_contents_copy_raw): ... here.
3668 (unpack_value_bits_as_long_1): Rename back to ...
3669 (unpack_bits_as_long): ... this. Remove 'original_value' and
3670 'result' parameters. Change return type to LONGEST.
3671 (unpack_value_bits_as_long): Delete.
3672 (unpack_value_field_as_long_1): Delete.
3673 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3674 (unpack_value_bitfield): New function.
3675 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3676 (value_fetch_lazy): Use unpack_value_bitfield.
3677 * value.h (unpack_value_bits_as_long): Delete declaration.
3678
5f3b99cf
SS
36792014-09-03 Sasha Smundak <asmundak@google.com>
3680
3681 * python/py-frame.c (frapy_read_register): New function.
3682
ac740bc7
JH
36832014-09-03 James Hogan <james.hogan@imgtec.com>
3684
3685 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3686 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3687
7d793aa9
SDJ
36882014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3689
3690 PR python/16699
3691 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3692 function.
3693 (add_cmd): Set "completer_handle_brkchars" to NULL.
3694 * cli/cli-decode.h (struct cmd_list_element)
3695 <completer_handle_brkchars>: New field.
3696 * command.h (completer_ftype_void): New typedef.
3697 (set_cmd_completer_handle_brkchars): New prototype.
3698 * completer.c (set_gdb_completion_word_break_characters): New
3699 function.
3700 (complete_line_internal): Call "completer_handle_brkchars"
3701 callback from command.
3702 * completer.h: Include "command.h".
3703 (set_gdb_completion_word_break_characters): New prototype.
3704 * python/py-cmd.c (cmdpy_completer_helper): New function.
3705 (cmdpy_completer_handle_brkchars): New function.
3706 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3707 (cmdpy_init): Set completer_handle_brkchars to
3708 cmdpy_completer_handle_brkchars.
3709
97ea6506
GB
37102014-09-03 Gary Benson <gbenson@redhat.com>
3711
3712 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3713 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3714 Loop conditions changed to equivalent form.
3715 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3716 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3717 ALL_DEBUG_ADDRESS_REGISTERS.
3718
d1437815
JB
37192014-09-03 Joel Brobecker <brobecker@adacore.com>
3720
3721 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3722 description fix.
3723
9b94fcf1
DE
37242014-09-02 Doug Evans <dje@google.com>
3725
3726 * typeprint.c (find_global_typedef): Fix comment.
3727
df7e5265
GB
37282014-09-02 Gary Benson <gbenson@redhat.com>
3729
3730 * i386-nat.h: Renamed as...
3731 * x86-nat.h: New file. All type, function and variable name
3732 prefixes changed from "i386_" to "x86_". All references updated.
3733 * i386-nat.c: Renamed as...
3734 * x86-nat.c: New file. All type, function and variable name
3735 prefixes changed from "i386_" to "x86_". All references updated.
3736 * common/i386-xstate.h: Renamed as...
3737 * common/x86-xstate.h: New file. All type, function and variable
3738 name prefixes changed from "i386_" to "x86_". All references
3739 updated.
3740 * nat/i386-cpuid.h: Renamed as...
3741 * nat/x86-cpuid.h: New file. All type, function and variable name
3742 prefixes changed from "i386_" to "x86_". All references updated.
3743 * nat/i386-gcc-cpuid.h: Renamed as...
3744 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3745 name prefixes changed from "i386_" to "x86_". All references
3746 updated.
3747 * nat/i386-dregs.h: Renamed as...
3748 * nat/x86-dregs.h: New file. All type, function and variable name
3749 prefixes changed from "i386_" to "x86_". All references updated.
3750 * nat/i386-dregs.c: Renamed as...
3751 * nat/x86-dregs.c: New file. All type, function and variable name
3752 prefixes changed from "i386_" to "x86_". All references updated.
3753
1c3569d4
MR
37542014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3755
3756 * varobj.c (_initialize_varobj): Move to the end of file.
3757
ff55e1b5
GB
37582014-08-29 Gary Benson <gbenson@redhat.com>
3759
3760 * common/common-exceptions.h: New file.
3761 * common/common-exceptions.c: Likewise.
3762 * Makefile.in (SFILES): Add common/common-exceptions.c.
3763 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3764 (COMMON_OBS): Add common-exceptions.o.
3765 (common-exceptions.o): New rule.
3766 * exceptions.h (common-exceptions.h): Include.
3767 (gdb_setjmp.h): Do not include.
3768 (return_reason): Moved to common-exceptions.h.
3769 (enum return_reason): Likewise.
3770 (RETURN_MASK): Likewise.
3771 (typedef return_mask): Likewise.
3772 (enum errors): Likewise.
3773 (struct gdb_exception): Likewise.
3774 (exceptions_state_mc_init): Likewise.
3775 (exceptions_state_mc_action_iter): Likewise.
3776 (exceptions_state_mc_action_iter_1): Likewise.
3777 (TRY_CATCH): Likewise.
3778 (throw_exception): Likewise.
3779 (throw_verror): Likewise.
3780 (throw_vquit): Likewise.
3781 (throw_error): Likewise.
3782 (throw_quit): Likewise.
3783 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3784 (enum catcher_action): Likewise.
3785 (struct catcher): Likewise.
3786 (current_catcher): Likewise.
3787 (catcher_list_size): Likewise.
3788 (exceptions_state_mc_init): Likewise.
3789 (catcher_pop): Likewise.
3790 (exceptions_state_mc): Likewise.
3791 (exceptions_state_mc_action_iter): Likewise.
3792 (exceptions_state_mc_action_iter_1): Likewise.
3793 (throw_exception): Likewise.
3794 (exception_messages): Likewise.
3795 (exception_messages_size): Likewise.
3796 (throw_it): Likewise.
3797 (throw_verror): Likewise.
3798 (throw_vquit): Likewise.
3799 (throw_error): Likewise.
3800 (throw_quit): Likewise.
3801 (prepare_to_throw_exception): New function.
3802
e9bcb658
GB
38032014-08-29 Gary Benson <gbenson@redhat.com>
3804
3805 * common/gdb_setjmp.h: New file.
3806 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3807 * configure.ac: Move sigsetjmp check...
3808 * common/common.m4: ...here.
3809 * configure: Regenerate.
3810 * cp-support.c (SIGJMP_BUF): Delete.
3811 (SIGSETJMP): Likewise.
3812 (SIGLONGJMP): Likewise.
3813 * exceptions.h (gdb_setjmp.h): Include.
3814 (setjmp.h): Do not include.
3815 (EXCEPTIONS_SIGJMP_BUF): Delete.
3816 (EXCEPTIONS_SIGSETJMP): Likewise.
3817 (EXCEPTIONS_SIGLONGJMP): Likewise.
3818 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3819 from gdb_setjmp.h.
3820 * exceptions.c: Likewise.
3821
e3180625
GB
38222014-08-29 Gary Benson <gbenson@redhat.com>
3823
3824 * cleanups.h: Moved to...
3825 * common/cleanups.h: New file.
3826 * cleanups.c: Moved to...
3827 * common/cleanups.c: New file. Include common-defs.h and
3828 cleanups.h. Do not include defs.h.
3829 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3830 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3831 (cleanups.o): New rule.
3832
e3d6ba5d
GB
38332014-08-29 Gary Benson <gbenson@redhat.com>
3834
3835 * common/errors.h (internal_warning): New declaration.
3836 (internal_vwarning): Likewise.
3837 * common/errors.c (internal_warning): New function.
3838 * utils.h (internal_warning): Don't declare.
3839 (internal_vwarning): Likewise.
3840 * utils.c (internal_warning): Removed.
3841
075c7033
GB
38422014-08-29 Gary Benson <gbenson@redhat.com>
3843
3844 * main.c (captured_main): Use warning during startup.
3845 Prefix startup warning messages with command name.
3846
91b35fd0
GB
38472014-08-29 Gary Benson <gbenson@redhat.com>
3848
3849 * main.c (captured_main): Handle usage errors with error.
3850
b1ec390e
GB
38512014-08-29 Gary Benson <gbenson@redhat.com>
3852
3853 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3854 exit pair with a call to error. Wrap the message with _().
3855
fd0ef3dd
GB
38562014-08-29 Gary Benson <gbenson@redhat.com>
3857
3858 * main.c (captured_main): Replace a fprintf/exit
3859 pair with a call to error. Wrap the message with _().
3860
e0e6bcab
GB
38612014-08-29 Gary Benson <gbenson@redhat.com>
3862
3863 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3864 pairs with calls to error. Wrap the message with _().
3865
0d2f5c07
GB
38662014-08-29 Gary Benson <gbenson@redhat.com>
3867
3868 * utils.c (vwarning): Protect calls to target_terminal_ours
3869 and wrap_here.
3870
5df43998
GB
38712014-08-29 Gary Benson <gbenson@redhat.com>
3872
3873 * exceptions.c (print_flush): Protect calls to
3874 target_terminal_ours and wrap_here.
3875
2437fd32
GB
38762014-08-29 Gary Benson <gbenson@redhat.com>
3877
3878 * utils.h (filtered_printing_initialized): New declaration.
3879 * utils.c (abort_with_message): New function.
3880 (internal_vproblem): Use abort_with_message for first level
3881 recursive internal problems, and if gdb_stderr is not set up.
3882 Protect calls to target_terminal_ours, begin_line and query.
3883
f1f58506
DE
38842014-08-28 Doug Evans <dje@google.com>
3885
3886 * symtab.c (in_prologue): Move definition to better spot.
3887 (skip_prologue_using_sal): Ditto.
3888
aab2f208
DE
38892014-08-28 Doug Evans <dje@google.com>
3890
3891 * symtab.c (find_function_start_sal): Move definition to better spot.
3892
6b65d1b6
YQ
38932014-08-28 Yao Qi <yao@codesourcery.com>
3894
3895 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3896 found_stack_adjust in forward scan. Remove condition check
3897 on found_stack_adjust which is always true. Indent the code.
3898
a1b34d15
YQ
38992014-08-28 Yao Qi <yao@codesourcery.com>
3900
3901 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3902 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3903 (dwarf_decode_lines): Remove argument
3904 want_line_info. Remove condition check on want_line_info.
3905 Callers update.
3906
d5962de5
DE
39072014-08-27 Doug Evans <dje@google.com>
3908
3909 * dwarf2read.c (dwarf_record_line): Fix typo.
3910
9b139002
SDJ
39112014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3912
3913 * target.h (struct target_ops::to_terminal_save_ours): Remove
3914 declaration.
3915 (target_terminal_save_ours): Remove macro.
3916 * target-delegates.c: Regenerate.
3917 * inf-child.c (inf_child_target): Don't set the nonexistent
3918 field to_terminal_save_ours.
3919 * inferior.h (child_terminal_save_ours): Remove declaration.
3920 * terminal.h (gdb_save_tty_state): New declaration.
3921 * inflow.c (child_terminal_save_ours): Rename to ...
3922 (gdb_save_tty_state): ... this.
3923 * tui/tui.c: Include terminal.h.
3924 (tui_enable): Use gdb_save_tty_state instead of
3925 target_terminal_save_ours.
3926 (tui_disable): Likewise.
3927
9debeba0
DE
39282014-08-25 Doug Evans <dje@google.com>
3929
3930 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3931 Pass NULL instead of 0 for context pointer.
3932
428fc5fc
YQ
39332014-08-25 Yao Qi <yao@codesourcery.com>
3934
3935 * dwarf2read.c: Fix grammatical error.
3936
cdc07690
YQ
39372014-08-24 Yao Qi <yao@codesourcery.com>
3938
3939 * dwarf2read.c (scan_partial_symbols): Update comments.
3940 Rename argument 'need_pc' with 'set_addrmap'.
3941 (add_partial_namespace): Rename argument 'need_pc' with
3942 'set_addrmap'.
3943 (add_partial_module): Likewise.
3944 (add_partial_subprogram): Likewise. Update comments.
3945 (dwarf2_name): Fix typo.
3946
a05a36a5
DE
39472014-08-22 Doug Evans <dje@google.com>
3948
3949 PR 17276
3950 * dwarf2read.c (dwarf_record_line_p): New function.
3951 (dwarf_decode_lines_1): Ignore subsequent line number entries
3952 for the same line if any entry had a non-zero discriminator.
3953
252a6764
DE
39542014-08-22 Doug Evans <dje@google.com>
3955
3956 * buildsym.h (record_line_ftype): New typedef.
3957 (record_line): Use it.
3958 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3959 (dwarf_decode_lines_1): Call them.
3960
510db052
YQ
39612014-08-22 Yao Qi <yao@codesourcery.com>
3962
3963 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3964 (ctf_end): Remove code.
3965
22fd09ae
JK
39662014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3967
3968 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3969 (linux_make_corefile_notes): call update_thread_list, protected against
3970 exceptions.
3971
656e8868
PA
39722014-08-21 Pedro Alves <palves@redhat.com>
3973
3974 * infcmd.c (attach_command): Remove comment.
3975
de589d04
WN
39762014-08-21 Bin Cheng <bin.cheng@arm.com>
3977
3978 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3979 unsigned LONGEST to ULONGEST.
3980
2a31c623
PA
39812014-08-20 Pedro Alves <palves@redhat.com>
3982
3983 * Makefile.in (check-read1): New rule.
3984
d36430db
JB
39852014-08-20 Joel Brobecker <brobecker@adacore.com>
3986
3987 * value.c (value_from_contents_and_address): Strip resolved_type's
3988 typedef layers before checking its TYPE_DATA_LOCATION.
3989
000339af
PA
39902014-08-20 Pedro Alves <palves@redhat.com>
3991
3992 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3993
5f52445b
YQ
39942014-08-20 Yao Qi <yao@codesourcery.com>
3995
3996 * amd64-tdep.c (amd64_classify): Add a blank line after the
3997 example. Move "*/" to a new line.
3998 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3999 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
4000 * dwarf2read.c (psymtab_include_file_name): Likewise.
4001
9a0dc9e3
PA
40022014-08-19 Andrew Burgess <aburgess@broadcom.com>
4003 Pedro Alves <palves@redhat.com>
4004
4005 PR symtab/14604
4006 PR symtab/14605
4007 * ada-lang.c (coerce_unspec_val_to_type): Use
4008 value_contents_copy_raw.
4009 * ada-valprint.c (val_print_packed_array_elements): Adjust.
4010 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
4011 * cp-valprint.c (cp_print_value_fields): Let the common printing
4012 code handle optimized out values.
4013 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
4014 * d-valprint.c (dynamic_array_type): Use
4015 value_bits_any_optimized_out.
4016 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
4017 check_any_valid fields.
4018 (check_pieced_value_bits): Delete and inline ...
4019 (check_pieced_synthetic_pointer): ... here.
4020 (check_pieced_value_validity): Delete.
4021 (check_pieced_value_invalid): Delete.
4022 (pieced_value_funcs): Remove check_validity and check_any_valid
4023 fields.
4024 (read_pieced_value): Use mark_value_bits_optimized_out.
4025 (write_pieced_value): Switch to use
4026 mark_value_bytes_optimized_out.
4027 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
4028 of assuming the whole value is optimized out.
4029 * findvar.c (read_frame_register_value): Remove special handling
4030 of optimized out registers.
4031 (value_from_register): Use mark_value_bytes_optimized_out.
4032 * frame-unwind.c (frame_unwind_got_optimized): Use
4033 mark_value_bytes_optimized_out.
4034 * jv-valprint.c (java_value_print): Adjust.
4035 (java_print_value_fields): Let the common printing code handle
4036 optimized out values.
4037 * mips-tdep.c (mips_print_register): Remove special handling of
4038 optimized out registers.
4039 * opencl-lang.c (lval_func_check_validity): Delete.
4040 (lval_func_check_any_valid): Delete.
4041 (opencl_value_funcs): Remove check_validity and check_any_valid
4042 fields.
4043 * p-valprint.c (pascal_object_print_value_fields): Let the common
4044 printing code handle optimized out values.
4045 * stack.c (read_frame_arg): Remove special handling of optimized
4046 out values. Fetch both VAL and ENTRYVAL before comparing
4047 contents. Adjust to value_available_contents_eq rename.
4048 * valprint.c (valprint_check_validity)
4049 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
4050 (val_print_array_elements): Adjust.
4051 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
4052 (value_bits_any_optimized_out): New function.
4053 (value_entirely_covered_by_range_vector): New function, factored
4054 out from value_entirely_unavailable.
4055 (value_entirely_unavailable): Reimplement.
4056 (value_entirely_optimized_out): New function.
4057 (insert_into_bit_range_vector): New function, factored out from
4058 mark_value_bits_unavailable.
4059 (mark_value_bits_unavailable): Reimplement.
4060 (struct ranges_and_idx): New struct.
4061 (find_first_range_overlap_and_match): New function, factored out
4062 from value_available_contents_bits_eq.
4063 (value_available_contents_bits_eq): Rename to ...
4064 (value_contents_bits_eq): ... this. Check both unavailable
4065 contents and optimized out contents.
4066 (value_available_contents_eq): Rename to ...
4067 (value_contents_eq): ... this.
4068 (allocate_value_lazy): Remove reference to the old optimized_out
4069 boolean.
4070 (allocate_optimized_out_value): Use
4071 mark_value_bytes_optimized_out.
4072 (require_not_optimized_out): Adjust to check whether the
4073 optimized_out vec is empty.
4074 (ranges_copy_adjusted): New function, factored out from
4075 value_contents_copy_raw.
4076 (value_contents_copy_raw): Also copy the optimized out ranges.
4077 Assert the destination ranges aren't optimized out.
4078 (value_contents_copy): Update comment, remove call to
4079 require_not_optimized_out.
4080 (value_contents_equal): Adjust to check whether the optimized_out
4081 vec is empty.
4082 (set_value_optimized_out, value_optimized_out_const): Delete.
4083 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4084 New functions.
4085 (value_entirely_optimized_out, value_bits_valid): Delete.
4086 (value_copy): Take a VEC copy of the 'optimized_out' field.
4087 (value_primitive_field): Remove special handling of optimized out.
4088 (value_fetch_lazy): Assert that lazy values have no unavailable
4089 regions. Use value_bits_any_optimized_out. Remove some special
4090 handling for optimized out values.
4091 * value.h: Add intro comment about <optimized out> and
4092 <unavailable>.
4093 (struct lval_funcs): Remove check_validity and check_any_valid
4094 fields.
4095 (set_value_optimized_out, value_optimized_out_const): Remove.
4096 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4097 New declarations.
4098 (value_bits_any_optimized_out): New declaration.
4099 (value_bits_valid): Delete declaration.
4100 (value_available_contents_eq): Rename to ...
4101 (value_contents_eq): ... this, and extend comments.
4102
6694c411
JK
41032014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4104
4105 Fix -fsanitize=address on unreadable inferior strings.
4106 * valprint.c (val_print_string): Fix access before BUFFER.
4107
89a1c21a
SM
41082014-08-19 Simon Marchi <simon.marchi@ericsson.com>
4109
4110 * target.c (target_struct_size): Remove.
4111 (target_struct_allocsize): Remove.
4112 (DEFAULT_ALLOCSIZE): Remove.
4113 (target_ops_p): New typedef.
4114 (DEF_VEC_P (target_ops_p)): New vector type.
4115 (target_structs): Change type to VEC (target_ops_p).
4116 (add_target_with_completer): Replace "push" code by VEC_safe_push.
4117 (find_default_run_target): Rewrite for loop following changes to
4118 target_structs.
4119
cb417230
JB
41202014-08-19 Joel Brobecker <brobecker@adacore.com>
4121
4122 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
4123 Adjust code accordingly. Adjust function description comment.
4124
817e0957
YQ
41252014-08-19 Yao Qi <yao@codesourcery.com>
4126
4127 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
4128 types.
4129
2974be62
AM
41302014-08-19 Alan Modra <amodra@gmail.com>
4131
4132 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
4133 * config.in: Regenerate.
4134 * configure: Regenerate.
4135
34abf635
GB
41362014-08-19 Tom Tromey <tromey@redhat.com>
4137 Gary Benson <gbenson@redhat.com>
4138
4139 * common/common-debug.h: New file.
4140 * common/common-debug.c: Likewise.
4141 * debug.c: Likewise.
4142 * Makefile.in (SFILES): Add common/common-debug.c.
4143 (HFILES_NO_SRCDIR): Add common/common-debug.h.
4144 (COMMON_OBS): Add common-debug.o and debug.o.
4145 (common-debug.o): New rule.
4146 * common/common-defs.h: Include common-debug.h.
4147 * common/agent.c (debug_agent_printf): New function.
4148 (DEBUG_AGENT): Redefine.
4149 * nat/i386-dregs.c (debug_printf): Undefine.
4150
f6e94d78
GB
41512014-08-19 Gary Benson <gbenson@redhat.com>
4152
4153 * common/common-defs.h: Include print-utils.h.
4154 * utils.h: Do not include print-utils.h.
4155
9239eeab
GB
41562014-08-19 Tom Tromey <tromey@redhat.com>
4157 Gary Benson <gbenson@redhat.com>
4158
4159 * common/common-types.h: New file.
4160 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
4161 * common/common-defs.h: Include common-types.h.
4162 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4163 (ULONGEST): Remove.
4164
ef87c8bb
GB
41652014-08-19 Tom Tromey <tromey@redhat.com>
4166 Gary Benson <gbenson@redhat.com>
4167
4168 * common/errors.h: New file.
4169 * common/errors.c: Likewise.
4170 * Makefile.in (SFILES): Add common/errors.c.
4171 (HFILES_NO_SRCDIR): Add common/errors.h.
4172 (COMMON_OBS): Add errors.o.
4173 (errors.o): New rule.
4174 * common/common-defs.h: Include errors.h.
4175 * utils.h (perror_with_name, error, verror, warning, vwarning):
4176 Don't declare.
4177 * common/common-utils.h: (malloc_failure, internal_error):
4178 Likewise.
4179
196a707b
GB
41802014-08-19 Gary Benson <gbenson@redhat.com>
4181
4182 * utils.c (internal_vproblem): Always print the message.
4183
ded4fc8f
DE
41842014-08-18 Doug Evans <dje@google.com>
4185
4186 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4187
950c97d8
JB
41882014-08-18 Joel Brobecker <brobecker@adacore.com>
4189
4190 * ada-typeprint.c (type_is_full_subrange_of_target_type):
4191 Return 0 if TYPE is dynamic.
4192 (print_range): Add handling of dynamic ranges.
4193
3cdcd0ce
JB
41942014-08-18 Keven Boell <keven.boell@intel.com>
4195 Joel Brobecker <brobecker@adacore.com>
4196
4197 * gdbtypes.h (struct main_type): Add field "data_location".
4198 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4199 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4200 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4201 a dynamic data location.
4202 (resolve_dynamic_type): Add DW_AT_data_location handling.
4203 (copy_recursive, copy_type): Copy the data_location information
4204 when present.
4205 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4206 * value.c (value_from_contents_and_address): Add
4207 DW_AT_data_location handling.
4208
08412b07
JB
42092014-08-18 Keven Boell <keven.boell@intel.com>
4210 Joel Brobecker <brobecker@adacore.com>
4211
4212 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4213 field "get_object_address".
4214 * dwarf2expr.c (execute_stack_op): Add handling for
4215 DW_OP_push_object_address.
4216 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4217 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4218 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4219 (dwarf_expr_get_obj_addr): New function.
4220 (dwarf_expr_ctx_funcs): Add get_object_address field.
4221 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4222 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4223 (dwarf2_evaluate_property): Add parameter "address". Use it.
4224 (needs_get_obj_addr): New function.
4225 (needs_frame_ctx_funcs): Add get_object_address field.
4226 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4227 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4228 (resolve_dynamic_array): Likewise.
4229
84754697
JB
42302014-08-18 Joel Brobecker <brobecker@adacore.com>
4231
4232 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4233 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4234 fixed value for records and unions for which some GNAT encodings
4235 are present.
4236
da5c522f
JB
42372014-08-18 Joel Brobecker <brobecker@adacore.com>
4238
4239 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4240 rewrite to avoid "else if" and "else" constructs. Should be
4241 a no-op in practice.
4242
0d72a7c3
JB
42432014-08-18 Joel Brobecker <brobecker@adacore.com>
4244
4245 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4246 of lexical block.
4247
e66d4446
SC
42482014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4249
4250 PR c++/17132
4251 * eval.c: Update all calls to find_overload_match.
4252 * valarith.c: Likewise.
4253 (value_user_defined_cpp_op, value_user_defined_op): New
4254 argument NOSIDE. Update all callers.
4255 * valops.c (find_overload_match): New argument NOSIDE.
4256 * value.h (find_overload_match): Update signature.
4257
940df408
SC
42582014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4259
4260 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4261 'items' methods instead of 'iteritems' method on dictionaries.
4262
699ca60a
DE
42632014-08-15 Doug Evans <dje@google.com>
4264
4265 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4266 closer to use.
4267
37780ee5
DE
42682014-08-15 Doug Evans <dje@google.com>
4269
4270 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4271
0ad93d4f
DE
42722014-08-15 Doug Evans <dje@google.com>
4273
4274 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4275
20d8c372
DE
42762014-08-15 Doug Evans <dje@google.com>
4277
4278 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4279 unused.
4280
cb039ba4
EZ
42812014-08-15 Eli Zaretskii <eliz@gnu.org>
4282
4283 * dcache.h: Include target.h, to avoid compile time warnings.
4284
eb7a547a
JB
42852014-08-15 Joel Brobecker <brobecker@adacore.com>
4286
4287 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4288 frame_info" partial declaration.
4289 * gdbarch.h: Regenerate.
4290
783cecc8
YQ
42912014-08-15 Yao Qi <yao@codesourcery.com>
4292
4293 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4294 Add parameter 'decode_for_pst_p'. Callers update.
4295
65c749e7
YQ
42962014-08-13 Yao Qi <yao@codesourcery.com>
4297
4298 PR build/17104
4299 * configure.ac: Use local variable 'pos'.
4300 * configure: Regenerated.
4301
d769e349
DE
43022014-08-11 Doug Evans <dje@google.com>
4303
4304 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4305 message, it is redundant with "Reading symbols from ..." message.
4306
24f1235e
DE
43072014-08-10 Doug Evans <xdje42@gmail.com>
4308
4309 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4310
dcd2e6ef
YQ
43112014-08-09 Yao Qi <yao@codesourcery.com>
4312
4313 PR remote/9053
4314 * remote.c (remote_xfer_partial): Remove dead code.
4315
070bdf0b
AA
43162014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4317
4318 * ia64-linux-tdep.c: Include "regset.h".
4319 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4320 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4321 (ia64_linux_supply_fpregset): New function.
4322 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4323 (ia64_linux_regset_from_core_section): New function.
4324 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4325 method.
4326
08f9f542
AA
43272014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4328
4329 * m68klinux-tdep.c: Include "regset.h".
4330 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4331 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4332 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4333 (m68k_linux_regset_from_core_section): New function.
4334 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4335 method.
4336
8f1cee41
AA
43372014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4338
4339 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4340 function. Move logic to...
4341 (tilegx_linux_regmap): ... this new register map.
4342 (tilegx_linux_regset): Refer to register map, replace supply
4343 method by regcache_supply_regset, and add collect method.
4344 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4345 TILEGX_FIRST_EASY_REGNUM.
4346
c5741217
AA
43472014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4348
4349 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4350 that calls regcache_supply_regset and handles the EPC register
4351 separately. Move main logic to...
4352 (score7_linux_gregmap): ... this new register map.
4353 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4354 (score7_linux_gregset): Refer to register map. Add collect method.
4355 (score7_linux_regset_from_core_section): Replace
4356 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4357 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4358 (struct regset): Delete unused forward declaraction.
4359 (struct pt_regs): Delete structure definition.
4360 (elf_gregset_t): Delete typedef.
4361
81580573
AA
43622014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4363
4364 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4365 (nios2_core_regset): Add collect method.
4366
ba199d7d
AA
43672014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4368
4369 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4370 platform-independent and don't write to read-only input buffer.
4371 (m32r_linux_collect_gregset): New function.
4372 (m32r_linux_gregset): Add collect method.
4373
0006a9da
AA
43742014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4375
4376 * hppa-linux-tdep.c (greg_map): Rename to...
4377 (hppa_linux_gregmap): ... this. Also convert to
4378 regcache_map_entry format.
4379 (hppa_linux_supply_regset): Delete function.
4380 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4381 (hppa_linux_fpregmap): ... this new register map.
4382 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4383 register map, replace supply method by regcache_supply_regset, and
4384 add collect method regcache_collect_regset.
4385
901e1b23
AA
43862014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4387
4388 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4389 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4390 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4391 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4392 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4393 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4394 (frv_linux_supply_gregset): Replace main logic by call to
4395 regcache_supply_regset, but keep clearing gr32-gr63.
4396 (frv_linux_supply_fpregset): Delete function.
4397 (frv_linux_gregset): Refer to appropriate register map and add
4398 regcache_collect_regset as the collect method.
4399 (frv_linux_fpregset): Likewise. Also exchange the supply method
4400 by regcache_supply_regset.
4401
1d6e7555
AA
44022014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4403
4404 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4405 by call to alpha_supply_int_regs.
4406 (alpha_linux_collect_gregset): New function.
4407 (alpha_linux_supply_fpregset): Replace logic by call to
4408 alpha_supply_fp_regs.
4409 (alpha_linux_collect_fpregset): New function.
4410 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4411
d4d793bf
AA
44122014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4413
4414 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4415 by call to regcache_collect_regset.
4416 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4417 instead of aarch64_linux_supply_gregset/_fpregset.
4418 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4419 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4420 header file instead.
4421 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4422 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4423 functions. Move logic to ...
4424 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4425 register maps.
4426 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4427 refer to new register maps, replace *_regset_from_core by
4428 regcache_supply_regset, and also use regcache_collect_regset.
4429 * aarch64-linux-tdep.h: Include "regset.h".
4430 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4431 Delete prototypes.
4432 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4433 macros, moved from C source file.
4434 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4435 variable declarations.
4436
99b7da5d
AA
44372014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4438
4439 * s390-linux-nat.c: Include "regset.h".
4440 (regmap_gregset): Delete macro.
4441 (s390_64_regmap_gregset): New register map for
4442 regcache_supply/_collect_regset.
4443 (s390_64_gregset): New regset.
4444 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4445 (regmap_fpregset): Delete macro.
4446 (s390_native_supply, s390_native_collect): Delete functions.
4447 (supply_gregset, fill_gregset): Replace s390-specific regmap
4448 handling by a call to regcache_supply/_collect_regset.
4449 (supply_fpregset, fill_fpregset): Call regcache_supply/
4450 _collect_regset instead of s390_native_supply/_collect.
4451 (fetch_regset, store_regset): Likewise. Also change the last
4452 parameter to a regset instead of a regmap.
4453 (s390_linux_fetch_inferior_registers)
4454 (390_linux_store_inferior_registers): Adjust last parameter in
4455 calls to fetch_regset and store_regset.
4456 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4457 (s390_gregmap): ... this. Also make static const and convert to
4458 regcache_map_entry format.
4459 (s390x_regmap_gregset): Delete.
4460 (s390_regmap_fpregset): Rename to...
4461 (s390_fpregmap): ... this. Make static const and convert to
4462 regcache_map_entry format.
4463 (s390_regmap_upper, s390_regmap_last_break)
4464 (s390x_regmap_last_break, s390_regmap_system_call)
4465 (s390_regmap_tdb): Likewise.
4466 (s390_supply_regset, s390_collect_regset): Remove functions.
4467 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4468 s390_supply_regset.
4469 (s390_gregset, s390_fpregset, s390_upper_regset)
4470 (s390_last_break_regset, s390x_last_break_regset)
4471 (s390_system_call_regset, s390_tdb_regset): Make global and
4472 replace s390_supply/_collect_regset by regcache_supply/
4473 _collect_regset.
4474 (s390x_gregset): Delete.
4475 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4476 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4477 (s390_regmap_fpregset, s390_regmap_last_break)
4478 (s390x_regmap_last_break, s390_regmap_system_call)
4479 (s390_regmap_tdb): Delete global variable declarations.
4480 (s390_gregset, s390_fpregset, s390_last_break_regset)
4481 (s390x_last_break_regset, s390_system_call_regset)
4482 (s390_tdb_regset): New global variable declarations.
4483
0b309272
AA
44842014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4485
4486 * regcache.c: Include "regset.h".
4487 (regcache_transfer_regset): New local function.
4488 (regcache_supply_regset, regcache_collect_regset): New functions.
4489 * regcache.h (struct regcache_map_entry): New structure.
4490 (REGCACHE_MAP_SKIP): New enum value.
4491 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4492
7fefa8d7
AA
44932014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4494
4495 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4496 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4497 (ppc_linux_collect_gregset ): Likewise.
4498 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4499 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4500 (ppc_collect_vrregset): Likewise.
4501 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4502 Likewise.
4503
96c4f946
YQ
45042014-08-07 Yao Qi <yao@codesourcery.com>
4505
4506 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4507 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4508 * remote.c (remote_read_bytes): Likewise.
4509
fffbe6a8
YQ
45102014-08-07 Yao Qi <yao@codesourcery.com>
4511
4512 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4513
5ee8a82c
YQ
45142014-08-07 Yao Qi <yao@codesourcery.com>
4515
4516 PR remote/17230
4517 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4518 TARGET_XFER_OK instead of 0.
4519
bb974a24
GB
45202014-08-07 Gary Benson <gbenson@redhat.com>
4521
4522 * common/common-defs.h: Include errno.h.
4523 * defs.h: Do not include errno.h.
4524 * ada-typeprint.c: Likewise.
4525 * c-typeprint.c: Likewise.
4526 * core-regset.c: Likewise.
4527 * corefile.c: Likewise.
4528 * corelow.c: Likewise.
4529 * event-loop.c: Likewise.
4530 * f-typeprint.c: Likewise.
4531 * gnu-nat.c: Likewise.
4532 * go32-nat.c: Likewise.
4533 * i386gnu-nat.c: Likewise.
4534 * m2-typeprint.c: Likewise.
4535 * nat/linux-btrace.c: Likewise.
4536 * p-typeprint.c: Likewise.
4537 * procfs.c: Likewise.
4538 * remote-sim.c: Likewise.
4539 * rs6000-nat.c: Likewise.
4540 * target.c: Likewise.
4541 * typeprint.c: Likewise.
4542 * ui-file.c: Likewise.
4543 * valops.c: Likewise.
4544 * valprint.c: Likewise.
4545
6d3d12eb
GB
45462014-08-07 Gary Benson <gbenson@redhat.com>
4547
4548 * common/common-defs.h: Include string.h.
4549 * aarch64-tdep.c: Do not include string.h.
4550 * ada-exp.y: Likewise.
4551 * ada-lang.c: Likewise.
4552 * ada-lex.l: Likewise.
4553 * ada-typeprint.c: Likewise.
4554 * ada-valprint.c: Likewise.
4555 * aix-thread.c: Likewise.
4556 * alpha-linux-tdep.c: Likewise.
4557 * alpha-mdebug-tdep.c: Likewise.
4558 * alpha-nat.c: Likewise.
4559 * alpha-osf1-tdep.c: Likewise.
4560 * alpha-tdep.c: Likewise.
4561 * alphanbsd-tdep.c: Likewise.
4562 * amd64-dicos-tdep.c: Likewise.
4563 * amd64-linux-tdep.c: Likewise.
4564 * amd64-nat.c: Likewise.
4565 * amd64-sol2-tdep.c: Likewise.
4566 * amd64fbsd-tdep.c: Likewise.
4567 * amd64obsd-tdep.c: Likewise.
4568 * arch-utils.c: Likewise.
4569 * arm-linux-nat.c: Likewise.
4570 * arm-linux-tdep.c: Likewise.
4571 * arm-tdep.c: Likewise.
4572 * arm-wince-tdep.c: Likewise.
4573 * armbsd-tdep.c: Likewise.
4574 * armnbsd-nat.c: Likewise.
4575 * armnbsd-tdep.c: Likewise.
4576 * armobsd-tdep.c: Likewise.
4577 * avr-tdep.c: Likewise.
4578 * ax-gdb.c: Likewise.
4579 * ax-general.c: Likewise.
4580 * bcache.c: Likewise.
4581 * bfin-tdep.c: Likewise.
4582 * breakpoint.c: Likewise.
4583 * build-id.c: Likewise.
4584 * buildsym.c: Likewise.
4585 * c-exp.y: Likewise.
4586 * c-lang.c: Likewise.
4587 * c-typeprint.c: Likewise.
4588 * c-valprint.c: Likewise.
4589 * charset.c: Likewise.
4590 * cli-out.c: Likewise.
4591 * cli/cli-cmds.c: Likewise.
4592 * cli/cli-decode.c: Likewise.
4593 * cli/cli-dump.c: Likewise.
4594 * cli/cli-interp.c: Likewise.
4595 * cli/cli-logging.c: Likewise.
4596 * cli/cli-script.c: Likewise.
4597 * cli/cli-setshow.c: Likewise.
4598 * cli/cli-utils.c: Likewise.
4599 * coffread.c: Likewise.
4600 * common/agent.c: Likewise.
4601 * common/buffer.c: Likewise.
4602 * common/buffer.h: Likewise.
4603 * common/common-utils.c: Likewise.
4604 * common/filestuff.c: Likewise.
4605 * common/filestuff.c: Likewise.
4606 * common/format.c: Likewise.
4607 * common/print-utils.c: Likewise.
4608 * common/rsp-low.c: Likewise.
4609 * common/signals.c: Likewise.
4610 * common/vec.h: Likewise.
4611 * common/xml-utils.c: Likewise.
4612 * core-regset.c: Likewise.
4613 * corefile.c: Likewise.
4614 * corelow.c: Likewise.
4615 * cp-abi.c: Likewise.
4616 * cp-name-parser.y: Likewise.
4617 * cp-support.c: Likewise.
4618 * cp-valprint.c: Likewise.
4619 * cris-tdep.c: Likewise.
4620 * d-exp.y: Likewise.
4621 * darwin-nat.c: Likewise.
4622 * dbxread.c: Likewise.
4623 * dcache.c: Likewise.
4624 * demangle.c: Likewise.
4625 * dicos-tdep.c: Likewise.
4626 * disasm.c: Likewise.
4627 * doublest.c: Likewise.
4628 * dsrec.c: Likewise.
4629 * dummy-frame.c: Likewise.
4630 * dwarf2-frame.c: Likewise.
4631 * dwarf2loc.c: Likewise.
4632 * dwarf2read.c: Likewise.
4633 * elfread.c: Likewise.
4634 * environ.c: Likewise.
4635 * eval.c: Likewise.
4636 * event-loop.c: Likewise.
4637 * exceptions.c: Likewise.
4638 * exec.c: Likewise.
4639 * expprint.c: Likewise.
4640 * f-exp.y: Likewise.
4641 * f-lang.c: Likewise.
4642 * f-typeprint.c: Likewise.
4643 * f-valprint.c: Likewise.
4644 * fbsd-nat.c: Likewise.
4645 * findcmd.c: Likewise.
4646 * findvar.c: Likewise.
4647 * fork-child.c: Likewise.
4648 * frame.c: Likewise.
4649 * frv-linux-tdep.c: Likewise.
4650 * frv-tdep.c: Likewise.
4651 * gdb.c: Likewise.
4652 * gdb_bfd.c: Likewise.
4653 * gdbarch.c: Likewise.
4654 * gdbarch.sh: Likewise.
4655 * gdbtypes.c: Likewise.
4656 * gnu-nat.c: Likewise.
4657 * gnu-v2-abi.c: Likewise.
4658 * gnu-v3-abi.c: Likewise.
4659 * go-exp.y: Likewise.
4660 * go-lang.c: Likewise.
4661 * go32-nat.c: Likewise.
4662 * guile/guile.c: Likewise.
4663 * guile/scm-auto-load.c: Likewise.
4664 * hppa-hpux-tdep.c: Likewise.
4665 * hppa-linux-nat.c: Likewise.
4666 * hppanbsd-tdep.c: Likewise.
4667 * hppaobsd-tdep.c: Likewise.
4668 * i386-cygwin-tdep.c: Likewise.
4669 * i386-dicos-tdep.c: Likewise.
4670 * i386-linux-tdep.c: Likewise.
4671 * i386-nto-tdep.c: Likewise.
4672 * i386-sol2-tdep.c: Likewise.
4673 * i386-tdep.c: Likewise.
4674 * i386bsd-tdep.c: Likewise.
4675 * i386gnu-nat.c: Likewise.
4676 * i386nbsd-tdep.c: Likewise.
4677 * i386obsd-tdep.c: Likewise.
4678 * i387-tdep.c: Likewise.
4679 * ia64-libunwind-tdep.c: Likewise.
4680 * ia64-linux-nat.c: Likewise.
4681 * inf-child.c: Likewise.
4682 * inf-ptrace.c: Likewise.
4683 * inf-ttrace.c: Likewise.
4684 * infcall.c: Likewise.
4685 * infcmd.c: Likewise.
4686 * inflow.c: Likewise.
4687 * infrun.c: Likewise.
4688 * interps.c: Likewise.
4689 * iq2000-tdep.c: Likewise.
4690 * irix5-nat.c: Likewise.
4691 * jv-exp.y: Likewise.
4692 * jv-lang.c: Likewise.
4693 * jv-typeprint.c: Likewise.
4694 * jv-valprint.c: Likewise.
4695 * language.c: Likewise.
4696 * linux-fork.c: Likewise.
4697 * linux-nat.c: Likewise.
4698 * lm32-tdep.c: Likewise.
4699 * m2-exp.y: Likewise.
4700 * m2-typeprint.c: Likewise.
4701 * m32c-tdep.c: Likewise.
4702 * m32r-linux-nat.c: Likewise.
4703 * m32r-linux-tdep.c: Likewise.
4704 * m32r-rom.c: Likewise.
4705 * m32r-tdep.c: Likewise.
4706 * m68hc11-tdep.c: Likewise.
4707 * m68k-tdep.c: Likewise.
4708 * m68kbsd-tdep.c: Likewise.
4709 * m68klinux-nat.c: Likewise.
4710 * m68klinux-tdep.c: Likewise.
4711 * m88k-tdep.c: Likewise.
4712 * machoread.c: Likewise.
4713 * macrocmd.c: Likewise.
4714 * main.c: Likewise.
4715 * mdebugread.c: Likewise.
4716 * mem-break.c: Likewise.
4717 * memattr.c: Likewise.
4718 * memory-map.c: Likewise.
4719 * mep-tdep.c: Likewise.
4720 * mi/mi-cmd-break.c: Likewise.
4721 * mi/mi-cmd-disas.c: Likewise.
4722 * mi/mi-cmd-env.c: Likewise.
4723 * mi/mi-cmd-stack.c: Likewise.
4724 * mi/mi-cmd-var.c: Likewise.
4725 * mi/mi-cmds.c: Likewise.
4726 * mi/mi-console.c: Likewise.
4727 * mi/mi-getopt.c: Likewise.
4728 * mi/mi-interp.c: Likewise.
4729 * mi/mi-main.c: Likewise.
4730 * mi/mi-parse.c: Likewise.
4731 * microblaze-rom.c: Likewise.
4732 * microblaze-tdep.c: Likewise.
4733 * mingw-hdep.c: Likewise.
4734 * minidebug.c: Likewise.
4735 * minsyms.c: Likewise.
4736 * mips-irix-tdep.c: Likewise.
4737 * mips-linux-tdep.c: Likewise.
4738 * mips-tdep.c: Likewise.
4739 * mips64obsd-tdep.c: Likewise.
4740 * mipsnbsd-tdep.c: Likewise.
4741 * mipsread.c: Likewise.
4742 * mn10300-linux-tdep.c: Likewise.
4743 * mn10300-tdep.c: Likewise.
4744 * monitor.c: Likewise.
4745 * moxie-tdep.c: Likewise.
4746 * mt-tdep.c: Likewise.
4747 * nat/linux-btrace.c: Likewise.
4748 * nat/linux-osdata.c: Likewise.
4749 * nat/linux-procfs.c: Likewise.
4750 * nat/linux-ptrace.c: Likewise.
4751 * nat/linux-waitpid.c: Likewise.
4752 * nbsd-tdep.c: Likewise.
4753 * nios2-linux-tdep.c: Likewise.
4754 * nto-procfs.c: Likewise.
4755 * nto-tdep.c: Likewise.
4756 * objc-lang.c: Likewise.
4757 * objfiles.c: Likewise.
4758 * opencl-lang.c: Likewise.
4759 * osabi.c: Likewise.
4760 * osdata.c: Likewise.
4761 * p-exp.y: Likewise.
4762 * p-lang.c: Likewise.
4763 * p-typeprint.c: Likewise.
4764 * parse.c: Likewise.
4765 * posix-hdep.c: Likewise.
4766 * ppc-linux-nat.c: Likewise.
4767 * ppc-sysv-tdep.c: Likewise.
4768 * ppcfbsd-tdep.c: Likewise.
4769 * ppcnbsd-tdep.c: Likewise.
4770 * ppcobsd-tdep.c: Likewise.
4771 * printcmd.c: Likewise.
4772 * procfs.c: Likewise.
4773 * prologue-value.c: Likewise.
4774 * python/py-auto-load.c: Likewise.
4775 * python/py-gdb-readline.c: Likewise.
4776 * ravenscar-thread.c: Likewise.
4777 * regcache.c: Likewise.
4778 * registry.c: Likewise.
4779 * remote-fileio.c: Likewise.
4780 * remote-m32r-sdi.c: Likewise.
4781 * remote-mips.c: Likewise.
4782 * remote-notif.c: Likewise.
4783 * remote-sim.c: Likewise.
4784 * remote.c: Likewise.
4785 * reverse.c: Likewise.
4786 * rs6000-aix-tdep.c: Likewise.
4787 * ser-base.c: Likewise.
4788 * ser-go32.c: Likewise.
4789 * ser-mingw.c: Likewise.
4790 * ser-pipe.c: Likewise.
4791 * ser-tcp.c: Likewise.
4792 * ser-unix.c: Likewise.
4793 * serial.c: Likewise.
4794 * sh-tdep.c: Likewise.
4795 * sh64-tdep.c: Likewise.
4796 * shnbsd-tdep.c: Likewise.
4797 * skip.c: Likewise.
4798 * sol-thread.c: Likewise.
4799 * solib-dsbt.c: Likewise.
4800 * solib-frv.c: Likewise.
4801 * solib-osf.c: Likewise.
4802 * solib-som.c: Likewise.
4803 * solib-spu.c: Likewise.
4804 * solib-target.c: Likewise.
4805 * solib.c: Likewise.
4806 * somread.c: Likewise.
4807 * source.c: Likewise.
4808 * sparc-nat.c: Likewise.
4809 * sparc-sol2-tdep.c: Likewise.
4810 * sparc-tdep.c: Likewise.
4811 * sparc64-tdep.c: Likewise.
4812 * sparc64fbsd-tdep.c: Likewise.
4813 * sparc64nbsd-tdep.c: Likewise.
4814 * sparcnbsd-tdep.c: Likewise.
4815 * spu-linux-nat.c: Likewise.
4816 * spu-multiarch.c: Likewise.
4817 * spu-tdep.c: Likewise.
4818 * stabsread.c: Likewise.
4819 * stack.c: Likewise.
4820 * std-regs.c: Likewise.
4821 * symfile.c: Likewise.
4822 * symmisc.c: Likewise.
4823 * symtab.c: Likewise.
4824 * target.c: Likewise.
4825 * thread.c: Likewise.
4826 * tilegx-linux-nat.c: Likewise.
4827 * tilegx-tdep.c: Likewise.
4828 * top.c: Likewise.
4829 * tracepoint.c: Likewise.
4830 * tui/tui-command.c: Likewise.
4831 * tui/tui-data.c: Likewise.
4832 * tui/tui-disasm.c: Likewise.
4833 * tui/tui-file.c: Likewise.
4834 * tui/tui-layout.c: Likewise.
4835 * tui/tui-out.c: Likewise.
4836 * tui/tui-regs.c: Likewise.
4837 * tui/tui-source.c: Likewise.
4838 * tui/tui-stack.c: Likewise.
4839 * tui/tui-win.c: Likewise.
4840 * tui/tui-windata.c: Likewise.
4841 * tui/tui-winsource.c: Likewise.
4842 * typeprint.c: Likewise.
4843 * ui-file.c: Likewise.
4844 * ui-out.c: Likewise.
4845 * user-regs.c: Likewise.
4846 * utils.c: Likewise.
4847 * v850-tdep.c: Likewise.
4848 * valarith.c: Likewise.
4849 * valops.c: Likewise.
4850 * valprint.c: Likewise.
4851 * value.c: Likewise.
4852 * varobj.c: Likewise.
4853 * vax-tdep.c: Likewise.
4854 * vaxnbsd-tdep.c: Likewise.
4855 * vaxobsd-tdep.c: Likewise.
4856 * windows-nat.c: Likewise.
4857 * xcoffread.c: Likewise.
4858 * xml-support.c: Likewise.
4859 * xstormy16-tdep.c: Likewise.
4860 * xtensa-linux-nat.c: Likewise.
4861
dccbb609
GB
48622014-08-07 Gary Benson <gbenson@redhat.com>
4863
4864 * common/common-defs.h: Include gdb_assert.h.
4865 * aarch64-tdep.c: Do not include gdb_assert.h.
4866 * addrmap.c: Likewise.
4867 * aix-thread.c: Likewise.
4868 * alpha-linux-tdep.c: Likewise.
4869 * alpha-mdebug-tdep.c: Likewise.
4870 * alphanbsd-tdep.c: Likewise.
4871 * amd64-nat.c: Likewise.
4872 * amd64-tdep.c: Likewise.
4873 * amd64bsd-nat.c: Likewise.
4874 * amd64fbsd-nat.c: Likewise.
4875 * amd64fbsd-tdep.c: Likewise.
4876 * amd64nbsd-nat.c: Likewise.
4877 * amd64nbsd-tdep.c: Likewise.
4878 * amd64obsd-nat.c: Likewise.
4879 * amd64obsd-tdep.c: Likewise.
4880 * arch-utils.c: Likewise.
4881 * arm-tdep.c: Likewise.
4882 * armbsd-tdep.c: Likewise.
4883 * auxv.c: Likewise.
4884 * bcache.c: Likewise.
4885 * bfin-tdep.c: Likewise.
4886 * blockframe.c: Likewise.
4887 * breakpoint.c: Likewise.
4888 * bsd-kvm.c: Likewise.
4889 * bsd-uthread.c: Likewise.
4890 * buildsym.c: Likewise.
4891 * c-exp.y: Likewise.
4892 * c-lang.c: Likewise.
4893 * charset.c: Likewise.
4894 * cleanups.c: Likewise.
4895 * cli-out.c: Likewise.
4896 * cli/cli-decode.c: Likewise.
4897 * cli/cli-dump.c: Likewise.
4898 * cli/cli-logging.c: Likewise.
4899 * cli/cli-script.c: Likewise.
4900 * cli/cli-utils.c: Likewise.
4901 * coffread.c: Likewise.
4902 * common/common-utils.c: Likewise.
4903 * common/queue.h: Likewise.
4904 * common/signals.c: Likewise.
4905 * common/vec.h: Likewise.
4906 * complaints.c: Likewise.
4907 * completer.c: Likewise.
4908 * corelow.c: Likewise.
4909 * cp-abi.c: Likewise.
4910 * cp-name-parser.y: Likewise.
4911 * cp-namespace.c: Likewise.
4912 * cp-support.c: Likewise.
4913 * cris-tdep.c: Likewise.
4914 * dbxread.c: Likewise.
4915 * dictionary.c: Likewise.
4916 * doublest.c: Likewise.
4917 * dsrec.c: Likewise.
4918 * dummy-frame.c: Likewise.
4919 * dwarf2-frame-tailcall.c: Likewise.
4920 * dwarf2-frame.c: Likewise.
4921 * dwarf2expr.c: Likewise.
4922 * dwarf2loc.c: Likewise.
4923 * dwarf2read.c: Likewise.
4924 * eval.c: Likewise.
4925 * event-loop.c: Likewise.
4926 * exceptions.c: Likewise.
4927 * expprint.c: Likewise.
4928 * f-valprint.c: Likewise.
4929 * fbsd-nat.c: Likewise.
4930 * findvar.c: Likewise.
4931 * frame-unwind.c: Likewise.
4932 * frame.c: Likewise.
4933 * frv-tdep.c: Likewise.
4934 * gcore.c: Likewise.
4935 * gdb-dlfcn.c: Likewise.
4936 * gdb_bfd.c: Likewise.
4937 * gdbarch.c: Likewise.
4938 * gdbarch.sh: Likewise.
4939 * gdbtypes.c: Likewise.
4940 * gnu-nat.c: Likewise.
4941 * gnu-v3-abi.c: Likewise.
4942 * go-lang.c: Likewise.
4943 * guile/scm-exception.c: Likewise.
4944 * guile/scm-gsmob.c: Likewise.
4945 * guile/scm-lazy-string.c: Likewise.
4946 * guile/scm-math.c: Likewise.
4947 * guile/scm-pretty-print.c: Likewise.
4948 * guile/scm-safe-call.c: Likewise.
4949 * guile/scm-utils.c: Likewise.
4950 * guile/scm-value.c: Likewise.
4951 * h8300-tdep.c: Likewise.
4952 * hppa-hpux-nat.c: Likewise.
4953 * hppa-tdep.c: Likewise.
4954 * hppanbsd-tdep.c: Likewise.
4955 * hppaobsd-tdep.c: Likewise.
4956 * i386-darwin-nat.c: Likewise.
4957 * i386-darwin-tdep.c: Likewise.
4958 * i386-nto-tdep.c: Likewise.
4959 * i386-tdep.c: Likewise.
4960 * i386bsd-nat.c: Likewise.
4961 * i386fbsd-tdep.c: Likewise.
4962 * i386gnu-nat.c: Likewise.
4963 * i386nbsd-tdep.c: Likewise.
4964 * i386obsd-tdep.c: Likewise.
4965 * i387-tdep.c: Likewise.
4966 * ia64-libunwind-tdep.c: Likewise.
4967 * ia64-tdep.c: Likewise.
4968 * inf-ptrace.c: Likewise.
4969 * inf-ttrace.c: Likewise.
4970 * infcall.c: Likewise.
4971 * infcmd.c: Likewise.
4972 * infrun.c: Likewise.
4973 * inline-frame.c: Likewise.
4974 * interps.c: Likewise.
4975 * jv-lang.c: Likewise.
4976 * jv-typeprint.c: Likewise.
4977 * linux-fork.c: Likewise.
4978 * linux-nat.c: Likewise.
4979 * linux-thread-db.c: Likewise.
4980 * m32c-tdep.c: Likewise.
4981 * m32r-linux-nat.c: Likewise.
4982 * m32r-tdep.c: Likewise.
4983 * m68k-tdep.c: Likewise.
4984 * m68kbsd-nat.c: Likewise.
4985 * m68kbsd-tdep.c: Likewise.
4986 * m88k-tdep.c: Likewise.
4987 * machoread.c: Likewise.
4988 * macroexp.c: Likewise.
4989 * macrotab.c: Likewise.
4990 * maint.c: Likewise.
4991 * mdebugread.c: Likewise.
4992 * memory-map.c: Likewise.
4993 * mep-tdep.c: Likewise.
4994 * mi/mi-common.c: Likewise.
4995 * microblaze-tdep.c: Likewise.
4996 * mingw-hdep.c: Likewise.
4997 * mips-linux-nat.c: Likewise.
4998 * mips-linux-tdep.c: Likewise.
4999 * mips-tdep.c: Likewise.
5000 * mips64obsd-tdep.c: Likewise.
5001 * mipsnbsd-tdep.c: Likewise.
5002 * mn10300-linux-tdep.c: Likewise.
5003 * mn10300-tdep.c: Likewise.
5004 * moxie-tdep.c: Likewise.
5005 * mt-tdep.c: Likewise.
5006 * nat/linux-btrace.c: Likewise.
5007 * nat/linux-osdata.c: Likewise.
5008 * nat/linux-ptrace.c: Likewise.
5009 * nat/mips-linux-watch.c: Likewise.
5010 * nios2-linux-tdep.c: Likewise.
5011 * nios2-tdep.c: Likewise.
5012 * objc-lang.c: Likewise.
5013 * objfiles.c: Likewise.
5014 * obsd-nat.c: Likewise.
5015 * opencl-lang.c: Likewise.
5016 * osabi.c: Likewise.
5017 * parse.c: Likewise.
5018 * ppc-linux-nat.c: Likewise.
5019 * ppc-sysv-tdep.c: Likewise.
5020 * ppcfbsd-nat.c: Likewise.
5021 * ppcfbsd-tdep.c: Likewise.
5022 * ppcnbsd-nat.c: Likewise.
5023 * ppcnbsd-tdep.c: Likewise.
5024 * ppcobsd-nat.c: Likewise.
5025 * ppcobsd-tdep.c: Likewise.
5026 * printcmd.c: Likewise.
5027 * procfs.c: Likewise.
5028 * prologue-value.c: Likewise.
5029 * psymtab.c: Likewise.
5030 * python/py-lazy-string.c: Likewise.
5031 * python/py-value.c: Likewise.
5032 * regcache.c: Likewise.
5033 * reggroups.c: Likewise.
5034 * registry.c: Likewise.
5035 * remote-sim.c: Likewise.
5036 * remote.c: Likewise.
5037 * rs6000-aix-tdep.c: Likewise.
5038 * rs6000-tdep.c: Likewise.
5039 * s390-linux-tdep.c: Likewise.
5040 * score-tdep.c: Likewise.
5041 * ser-base.c: Likewise.
5042 * ser-mingw.c: Likewise.
5043 * sh-tdep.c: Likewise.
5044 * sh64-tdep.c: Likewise.
5045 * solib-darwin.c: Likewise.
5046 * solib-spu.c: Likewise.
5047 * solib-svr4.c: Likewise.
5048 * source.c: Likewise.
5049 * sparc-nat.c: Likewise.
5050 * sparc-sol2-tdep.c: Likewise.
5051 * sparc-tdep.c: Likewise.
5052 * sparc64-sol2-tdep.c: Likewise.
5053 * sparc64-tdep.c: Likewise.
5054 * sparc64fbsd-tdep.c: Likewise.
5055 * sparc64nbsd-tdep.c: Likewise.
5056 * sparc64obsd-tdep.c: Likewise.
5057 * sparcnbsd-tdep.c: Likewise.
5058 * sparcobsd-tdep.c: Likewise.
5059 * spu-multiarch.c: Likewise.
5060 * spu-tdep.c: Likewise.
5061 * stabsread.c: Likewise.
5062 * stack.c: Likewise.
5063 * symfile.c: Likewise.
5064 * symtab.c: Likewise.
5065 * target-descriptions.c: Likewise.
5066 * target-memory.c: Likewise.
5067 * target.c: Likewise.
5068 * tic6x-linux-tdep.c: Likewise.
5069 * tic6x-tdep.c: Likewise.
5070 * tilegx-linux-nat.c: Likewise.
5071 * tilegx-tdep.c: Likewise.
5072 * top.c: Likewise.
5073 * tramp-frame.c: Likewise.
5074 * tui/tui-out.c: Likewise.
5075 * tui/tui-winsource.c: Likewise.
5076 * ui-out.c: Likewise.
5077 * user-regs.c: Likewise.
5078 * utils.c: Likewise.
5079 * v850-tdep.c: Likewise.
5080 * valops.c: Likewise.
5081 * value.c: Likewise.
5082 * varobj.c: Likewise.
5083 * vax-nat.c: Likewise.
5084 * xml-syscall.c: Likewise.
5085 * xml-tdesc.c: Likewise.
5086 * xstormy16-tdep.c: Likewise.
5087 * xtensa-linux-nat.c: Likewise.
5088 * xtensa-tdep.c: Likewise.
5089
e76df0d0
GB
50902014-08-07 Gary Benson <gbenson@redhat.com>
5091
5092 * common/common-defs.h: Include common-utils.h.
5093 * defs.h: Do not include common-utils.h.
5094 * common/gdb_assert.h: Likewise.
5095 * darwin-nat.h: Likewise.
5096 * nat/linux-btrace.c: Likewise.
5097 * target/waitstatus.h: Likewise.
5098
4cb9c816
GB
50992014-08-07 Gary Benson <gbenson@redhat.com>
5100
5101 * common/common-defs.h: Include ptid.h.
5102 * defs.h: Do not include ptid.h.
5103 * inferior.h: Likewise.
5104 * infrun.h: Likewise.
5105 * nat/linux-btrace.h: Likewise.
5106 * nat/linux-osdata.h: Likewise.
5107 * target/waitstatus.h: Likewise.
5108
3995eeee
GB
51092014-08-07 Gary Benson <gbenson@redhat.com>
5110
5111 * common/common-defs.h: Include gdb_locale.h.
5112 * defs.h: Do not include gdb_locale.h.
5113
cb9f1a9b
GB
51142014-08-07 Gary Benson <gbenson@redhat.com>
5115
5116 * common/common-defs.h: Include gdb/signals.h.
5117 * defs.h: Do not include gdb/signals.h.
5118
a5fceff8
GB
51192014-08-07 Gary Benson <gbenson@redhat.com>
5120
5121 * common/common-defs.h: Include pathmax.h.
5122 * defs.h: Do not include pathmax.h.
5123
b9391142
GB
51242014-08-07 Gary Benson <gbenson@redhat.com>
5125
5126 * common/common-defs.h: Include libiberty.h.
5127 * defs.h: Do not include libiberty.h.
5128 * common/queue.h: Likewise.
5129 * cp-name-parser.y: Likewise.
5130 * mi/mi-cmd-catch.c: Likewise.
5131 * python/python.c: Likewise.
5132
0e443c87
GB
51332014-08-07 Gary Benson <gbenson@redhat.com>
5134
5135 * common/common-defs.h: Include ansidecl.h.
5136 * defs.h: Do not include ansidecl.h.
5137 * common/buffer.h: Likewise.
5138 * common/common-utils.h: Likewise.
5139
8ebb3f56
GB
51402014-08-07 Gary Benson <gbenson@redhat.com>
5141
5142 * common/common-defs.h: Include stddef.h.
5143 * defs.h: Do not include stddef.h.
5144 * common/common-utils.h: Likewise.
5145 * amd64fbsd-nat.c: Likewise.
5146 * bcache.c: Likewise.
5147 * charset.c: Likewise.
5148 * common/buffer.h: Likewise.
5149 * common/vec.h: Likewise.
5150 * i386bsd-nat.c: Likewise.
5151 * nat/linux-btrace.h: Likewise.
5152 * ppcfbsd-nat.c: Likewise.
5153 * ppcnbsd-tdep.h: Likewise.
5154 * ppcobsd-nat.c: Likewise.
5155 * ppcobsd-tdep.h: Likewise.
5156 * python/py-gdb-readline.c: Likewise.
5157
8980bdf6
GB
51582014-08-07 Gary Benson <gbenson@redhat.com>
5159
5160 * common/common-defs.h: Include stdarg.h.
5161 * defs.h: Do not include stdarg.h.
5162 * ada-lang.c: Likewise.
5163 * common/common-utils.h: Likewise.
5164 * guile/scm-string.c: Likewise.
5165 * guile/scm-utils.c: Likewise.
5166 * m32c-tdep.c: Likewise.
5167
d7096f71
GB
51682014-08-07 Gary Benson <gbenson@redhat.com>
5169
5170 * common/common-defs.h: Include stdlib.h.
5171 * defs.h: Do not include stdlib.h.
5172 * addrmap.c: Likewise.
5173 * bcache.c: Likewise.
5174 * common/buffer.c: Likewise.
5175 * common/common-utils.c: Likewise.
5176 * cp-name-parser.y: Likewise.
5177 * go32-nat.c: Likewise.
5178 * mn10300-linux-tdep.c: Likewise.
5179 * nat/linux-osdata.c: Likewise.
5180 * tui/tui.c: Likewise.
5181 * windows-nat.c: Likewise.
5182
d02f550d
GB
51832014-08-07 Gary Benson <gbenson@redhat.com>
5184
5185 * common/common-defs.h: Include stdio.h.
5186 * defs.h: Do not include stdio.h.
5187 * ada-lang.c: Likewise.
5188 * common/buffer.c: Likewise.
5189 * common/common-utils.c: Likewise.
5190 * cp-name-parser.y: Likewise.
5191 * gnu-nat.c: Likewise.
5192 * go32-nat.c: Likewise.
5193 * i386gnu-nat.c: Likewise.
5194 * proc-api.c: Likewise.
5195 * proc-events.c: Likewise.
5196 * proc-flags.c: Likewise.
5197 * proc-why.c: Likewise.
5198 * python/python-internal.h: Likewise.
5199 * target-memory.c: Likewise.
5200 * tui/tui-io.c: Likewise.
5201 * tui/tui.c: Likewise.
5202
b6d7a4bf
SM
52032014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5204
5205 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5206 (scan_dyntag_auxv): Same.
5207
af19829b
YQ
52082014-08-06 Yao Qi <yao@codesourcery.com>
5209
5210 * amd64-linux-nat.c: Remove duplicated include
5211 "x86-linux-nat.h".
5212 * i386-linux-nat.c: Likewise.
5213
8e07a239
YQ
52142014-08-06 Yao Qi <yao@codesourcery.com>
5215
5216 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5217 operand" with "Special opcode" in comments.
5218
7bfe8241
GB
52192014-08-05 Gary Benson <gbenson@redhat.com>
5220
5221 * interps.c (initialize_interps): Remove prototype.
5222 (interpreter_initialized): Remove static global.
5223 (interp_add): Do not call initialize_interps.
5224 (initialize_interps): Remove function.
5225
d6c95504
GB
52262014-08-05 Gary Benson <gbenson@redhat.com>
5227
5228 * utils.c (vwarning): Remove spurious va_end.
5229
241fd515
AM
52302014-08-05 Alan Modra <amodra@gmail.com>
5231
5232 * charset.c (convert_between_encodings): Cast result of obstack_base.
5233 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5234 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5235 (read_unwind_info): Use size_t for some locals.
5236 * jit.c (finalize_symtab): Likewise.
5237 * utils.c (hashtab_obstack_allocate): Likewise.
5238 * symmisc.c (print_objfile_statistics): Update format strings.
5239
dc304a94
JK
52402014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5241
5242 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5243 (Changes in GDB 7.8): ... here.
5244
3cecbbbe
TT
52452014-08-04 Tom Tromey <tromey@redhat.com>
5246
5247 * target.c (set_targetdebug): New function.
5248 (initialize_targets): Pass set_targetdebug when creating "set
5249 debug target".
5250
6908c509
JB
52512014-08-01 Joel Brobecker <brobecker@adacore.com>
5252
5253 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5254 if detecting a variable-sized field that is not the last field.
5255 Fix struct type length computation.
5256
53e8f97d
JB
52572014-08-01 Joel Brobecker <brobecker@adacore.com>
5258
5259 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5260 Add debug trace.
5261
e068c55d
JB
52622014-08-01 Joel Brobecker <brobecker@adacore.com>
5263
5264 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5265 Remove "+ 8" offset in computation of CHAIN_VMA.
5266
4d4ca2a1
DE
52672014-07-31 Doug Evans <dje@google.com>
5268
5269 * inflow.c (child_terminal_inferior): Add comment.
5270 (child_terminal_ours_for_output): Add comment.
5271 (child_terminal_ours): Add comment.
5272 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5273 (linux_nat_terminal_ours): Add comment.
5274
462f517e
GB
52752014-07-31 Gary Benson <gbenson@redhat.com>
5276
5277 * common/btrace-common.h: Do not include defs.h or server.h.
5278 * nat/mips-linux-watch.h: Likewise.
5279 * gdb-dlfcn.h: Do not include defs.h.
5280 * tracefile.h: Likewise.
5281
74228e77
RM
52822014-07-30 Roland McGrath <mcgrathr@google.com>
5283
5284 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5285
014f9477
TT
52862014-07-30 Tom Tromey <tromey@redhat.com>
5287
5288 * bsd-kvm.c (bsd_kvm_open): Constify.
5289 * corelow.c (core_open): Constify.
5290 * ctf.c (ctf_open): Constify.
5291 * dbug-rom.c (dbug_open): Constify.
5292 * exec.c (exec_open): Constify.
5293 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5294 * microblaze-rom.c (picobug_open): Constify.
5295 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5296 Constify.
5297 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5298 * record-btrace.c (record_btrace_open): Constify.
5299 * record-full.c (record_full_core_open_1, record_full_open_1)
5300 (record_full_open): Constify.
5301 * remote-m32r-sdi.c (m32r_open): Constify.
5302 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5303 (rockhopper_open, lsi_open): Constify.
5304 * remote-sim.c (gdbsim_open): Constify.
5305 * remote.c (remote_open, extended_remote_open, remote_open_1):
5306 Constify.
5307 * target.h (struct target_ops) <to_open>: Make "arg" const.
5308 * tracefile-tfile.c (tfile_open): Constify.
5309
e799154c
TT
53102014-07-30 Tom Tromey <tromey@redhat.com>
5311
5312 * breakpoint.c (map_breakpoint_numbers): Update.
5313 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5314 (get_number_const): New function.
5315 (get_number): Rewrite using get_number_const.
5316 (init_number_or_range): Make "string" const.
5317 (number_is_in_list): Make "list" const.
5318 * cli/cli-utils.h (get_number_const): Declare.
5319 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5320 (init_number_or_range, number_is_in_list): Update.
5321 * printcmd.c (map_display_numbers): Update.
5322 * value.c (value_from_history_ref): Constify.
5323 * value.h (value_from_history_ref): Update.
5324
5f08566b
TT
53252014-07-30 Tom Tromey <tromey@redhat.com>
5326
5327 * corefile.c (hook_type, call_extra_exec_file_hooks)
5328 (specify_exec_file_hook): Constify.
5329 * exec.c (exec_file_attach): Make "filename" const.
5330 * gdbcore.h (deprecated_exec_file_display_hook)
5331 (specify_exec_file_hook, exec_file_attach): Constify.
5332 * main.c (captured_main): Use catch_command_errors_const.
5333
8981c758
TT
53342014-07-30 Tom Tromey <tromey@redhat.com>
5335
5336 * target.c (open_target): New function.
5337 (add_target_with_completer, add_deprecated_target_alias): Use
5338 set_cmd_sfunc, set_cmd_context.
5339 (debug_to_open): Remove.
5340 (setup_target_debug): Update.
5341
a1c7835a
YQ
53422014-07-30 Yao Qi <yao@codesourcery.com>
5343
5344 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5345 comments.
5346 * parse.c (exp_iterate): Update comments.
5347
976411d6
GB
53482014-07-30 Gary Benson <gbenson@redhat.com>
5349
5350 * common/common-defs.h: New file.
5351 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5352 * defs.h: Include common-defs.h.
5353 Do not include config.h or build-gnulib/config.h.
5354
5d4848a4
GB
53552014-07-30 Gary Benson <gbenson@redhat.com>
5356
5357 * common/common-utils.h: Do not include config.h.
5358 * nat/linux-btrace.h: Likewise.
5359
d41f6d8e
GB
53602014-07-30 Gary Benson <gbenson@redhat.com>
5361
5362 * btrace.c: Include defs.h.
5363 * common/ptid.c: Include defs.h or server.h as appropriate.
5364 * nat/mips-linux-watch.c: Likewise.
5365
84202f9c
TT
53662014-07-29 Tom Tromey <tromey@redhat.com>
5367
5368 * target.c (target_is_pushed): Simplify.
5369
2530441c
JB
53702014-07-29 Joel Brobecker <brobecker@adacore.com>
5371
5372 GDB 7.8 released.
5373
7e09a223
YQ
53742014-07-29 Yao Qi <yao@codesourcery.com>
5375
5376 PR gdb/17206
5377 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5378
7ebdbe92
DE
53792014-07-28 Doug Evans <xdje42@gmail.com>
5380
5381 PR guile/17203
5382 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5383 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5384 parameters.
5385
f347ffc9
WN
53862014-07-28 Will Newton <will.newton@linaro.org>
5387
5388 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5389 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5390 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5391 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5392 (THUMB2_EABI_SYSCALL): Likewise.
5393 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5394 struct tramp_frame.
5395 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5396 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5397
37c5f1f7
DE
53982014-07-27 Doug Evans <xdje42@gmail.com>
5399
5400 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5401
0c3abbc7
DE
54022014-07-27 Doug Evans <xdje42@gmail.com>
5403
5404 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5405
e76c5d17
DE
54062014-07-26 Ludovic Courtès <ludo@gnu.org>
5407 Doug Evans <xdje42@gmail.com>
5408
5409 PR guile/17146
5410 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5411 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5412 * configure.ac: Try to use guild to compile an scm file, if it fails
5413 then disable guile support.
5414 * configure: Regenerate.
5415 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5416 GUILE_FILE_LIST.
5417 (GUILE_COMPILED_FILES): New variable.
5418 (GUILE_FILES) Update.
5419 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5420 (stamp-guile): Compile scm files.
5421 * guile/guile.c (boot_guile_support): New function.
5422 (standard_throw_args_p): New function.
5423 (print_standard_throw_error, print_throw_error): New functions.
5424 (handle_boot_error): New function.
5425 (initialize_scheme_side): Rewrite to call boot_guile_support.
5426 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5427 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5428
186fcde0
DE
54292014-07-26 Ludovic Courtès <ludo@gnu.org>
5430 Doug Evans <xdje42@gmail.com>
5431
5432 PR guile/17146
5433 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5434 * guile/lib/gdb/support.scm: New file.
5435 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5436 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5437 All uses updated.
5438 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5439 All uses updated.
5440 (%assert-type): Ditto, and renamed to assert-type.
5441 (%exception-print-style): Delete.
5442
4df42755
DE
54432014-07-26 Doug Evans <xdje42@gmail.com>
5444
5445 PR build/17105
5446 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5447 * configure: Regenerate.
5448 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5449 PYTHON_FILES.
5450 (PYTHON_FILES): New variable.
5451 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5452 (GUILE_FILES): New variable.
5453 (stamp-python, install-python, uninstall-python): Handle empty
5454 file list.
5455 (stamp-guile, install-guile, uninstall-guile): Ditto.
5456
ee7333ae
DE
54572014-07-26 Doug Evans <xdje42@gmail.com>
5458
5459 PR guile/17177
5460 * guile/lib/gdb.scm (pretty-printers): Export.
5461 (set-pretty-printers!): Export.
5462 * guile/lib/gdb/printing.scm (gdb module): Update.
5463 (prepend-pretty-printer!, append-pretty-printer!): Update.
5464 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5465 (pretty_printer_list_var): Delete.
5466 (pretty_printer_list): New static global.
5467 (gdbscm_pretty_printers): New function.
5468 (gdbscm_set_pretty_printers_x): New function.
5469 (ppscm_find_pretty_printer_from_gdb): Update.
5470 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5471 (gdbscm_initialize_pretty_printers): Update.
5472
74edf516
DE
54732014-07-26 Doug Evans <xdje42@gmail.com>
5474
5475 PR 17185
5476 * configure.ac: Add check for header gc/gc.h.
5477 Add check for function setenv.
5478 * configure: Regenerate.
5479 * config.in: Regenerate.
5480 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5481
d54398a7
MR
54822014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5483
5484 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5485 variation in gdbarch matching.
5486
ab16fce8
TT
54872014-07-25 Tom Tromey <tromey@redhat.com>
5488
5489 * exec.c (using_exec_ops): Remove.
5490 (exec_close_1): Update. Remove extraneous block, reindent.
5491 (add_target_sections): Use target_is_pushed.
5492
88056fbb
PA
54932014-07-25 Pedro Alves <palves@redhat.com>
5494
5495 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5496 * monitor.c (monitor_create_inferior): Likewise.
5497 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5498 * remote-sim.c (gdbsim_create_inferior): Likewise.
5499 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5500 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5501 * windows-nat.c (do_initial_windows_stuff): Likewise.
5502
70509625
PA
55032014-07-25 Pedro Alves <palves@redhat.com>
5504
5505 * NEWS: Mention signal passing and "signal" command changes.
5506 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5507 comment.
5508 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5509 call.
5510 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5511 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5512 (jump_command): Adjust clear_proceed_status call.
5513 (signal_command): Warn if other thread that are resumed have
5514 signals that will be delivered. Adjust clear_proceed_status call.
5515 (until_next_command, finish_command)
5516 (proceed_after_attach_callback, attach_command_post_wait)
5517 (attach_command): Adjust clear_proceed_status call.
5518 * infrun.c (proceed_after_vfork_done): Likewise.
5519 (proceed_after_attach_callback): Adjust comment.
5520 (clear_proceed_status_thread): Clear stop_signal if not in pass
5521 state.
5522 (clear_proceed_status_callback): Delete.
5523 (clear_proceed_status): New 'step' parameter. Only clear the
5524 proceed status of threads the command being prepared is about to
5525 resume.
5526 (proceed): If passed in an explicit signal, override stop_signal
5527 with it. Don't pass the last stop signal to the thread we're
5528 resuming.
5529 (init_wait_for_inferior): Adjust clear_proceed_status call.
5530 (switch_back_to_stepped_thread): Clear the signal if it should not
5531 be passed.
5532 * infrun.h (clear_proceed_status): New 'step' parameter.
5533 (user_visible_resume_ptid): Add comment.
5534 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5535 signal is in pass state.
5536 * remote.c (append_pending_thread_resumptions): Likewise.
5537 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5538
d8be2939
TT
55392014-07-25 Tom Tromey <tromey@redhat.com>
5540
5541 * target.h (target_stopped_data_address)
5542 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5543 parentheses.
5544
7d0d9d2b
PL
55452014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5546
5547 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5548 comments.
5549 (avr_pointer_to_address): Likewise.
5550
e9e7f724
TT
55512014-07-24 Tom Tromey <tromey@redhat.com>
5552
5553 * monitor.c (compile_pattern): Update.
5554 * target.h (struct target_ops) <to_shortname, to_longname,
5555 to_doc>: Now const.
5556
1947513d
TT
55572014-07-24 Tom Tromey <tromey@redhat.com>
5558
5559 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5560 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5561 (add_info_alias, add_com): Make "doc" const.
5562 (print_doc_line): Make "str" const.
5563 (delete_cmd): Update.
5564 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5565 (print_doc_line): Update.
5566 * cli/cli-script.c (document_command): Update.
5567 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5568 (add_com, add_info, add_info_alias): Update.
5569 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5570 * python/py-cmd.c (cmdpy_destroyer): Update.
5571
64e61d29
TT
55722014-07-24 Tom Tromey <tromey@redhat.com>
5573
5574 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5575 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5576 (help_cmd_list): Constify.
5577 (lookup_cmd): Update.
5578 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5579 const.
5580 (help_cmd_list, apropos_cmd): Update.
5581 * cli/cli-script.c (show_user): Update.
5582 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5583 * cli/cli-setshow.h (cmd_show_list): Update.
5584 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5585 (cmd_show_list): Update.
5586 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5587 * python/py-cmd.c (cmdpy_destroyer): Update.
5588
429e55ea
TT
55892014-07-24 Tom Tromey <tromey@redhat.com>
5590
5591 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5592 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5593 const.
5594 * command.h (deprecate_cmd): Update.
5595 * maint.c (maintenance_do_deprecate): Add casts.
5596
64669f3b
TT
55972014-07-24 Tom Tromey <tromey@redhat.com>
5598
5599 * cli/cli-decode.c (help_cmd): Make parameter "const".
5600 * cli/cli-decode.h (help_cmd): Update.
5601
d3d3328b
TT
56022014-07-24 Tom Tromey <tromey@redhat.com>
5603
5604 * stack.c (up_silently_base, down_silently_base): Make argument
5605 const.
5606
414842dc
TT
56072014-07-24 Tom Tromey <tromey@redhat.com>
5608
5609 * solib.c (solib_add): Make "pattern" const.
5610 * solib.h (solib_add): Update.
5611
baa336ce
TT
56122014-07-24 Tom Tromey <tromey@redhat.com>
5613
5614 * remote.c (remote_serial_open, print_packet, putpkt)
5615 (putpkt_binary): Constify.
5616 * remote.h (putpkt): Update.
5617
5a19e2d0
TT
56182014-07-24 Tom Tromey <tromey@redhat.com>
5619
5620 * monitor.c (monitor_open): Make "args" const.
5621 * monitor.h (monitor_open): Update.
5622
fc4baa5e
TT
56232014-07-24 Tom Tromey <tromey@redhat.com>
5624
5625 * maint.c (match_bfd_flags): Make "string" const.
5626 (print_bfd_section_info): Remove casts.
5627 (print_objfile_section_info): Make "string" const.
5628
0d5f0dbe
TT
56292014-07-24 Tom Tromey <tromey@redhat.com>
5630
5631 * inf-child.c (inf_child_open_target): Make "arg" const.
5632 * inf-child.h (inf_child_open_target): Update.
5633
41c77899
TT
56342014-07-24 Tom Tromey <tromey@redhat.com>
5635
5636 * environ.c (unset_in_environ): Make "var" const.
5637 * environ.h (unset_in_environ): Update.
5638
93db0d79
TT
56392014-07-24 Tom Tromey <tromey@redhat.com>
5640
5641 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5642 Make "cmd" const.
5643 (scan_filename_with_cleanup): Likewise.
5644 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5645 Make arguments const.
5646 (restore_command): Update.
5647
36d6eb95
PA
56482014-07-24 Pedro Alves <palves@redhat.com>
5649
5650 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5651
8009206a
TT
56522014-07-24 Tom Tromey <tromey@redhat.com>
5653 Gary Benson <gbenson@redhat.com>
5654
5655 * nat/linux-ptrace.c (additional_flags): New global.
5656 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5657 additional_flags; don't check GDBSERVER.
5658 (linux_ptrace_set_additional_flags): New function.
5659 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5660 Declare.
5661 * linux-nat.c (_initialize_linux_nat): Call
5662 linux_ptrace_set_additional_flags.
5663
a7068b60
TT
56642014-07-24 Tom Tromey <tromey@redhat.com>
5665
5666 * make-target-delegates (munge_type, write_debugmethod): New
5667 functions.
5668 (debug_names): New global.
5669 ($TARGET_DEBUG_PRINTER): New global.
5670 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5671 name.
5672 Write debug methods. Generate init_debug_target.
5673 * target-debug.h: New file.
5674 * target-delegates.c: Rebuild.
5675 * target.c: Include target-debug.h.
5676 (debug_target): Hoist definition.
5677 (target_kill, target_get_section_table, target_memory_map)
5678 (target_flash_erase, target_flash_done, target_detach)
5679 (target_disconnect, target_wait, target_resume)
5680 (target_pass_signals, target_program_signals, target_follow_fork)
5681 (target_mourn_inferior, target_search_memory)
5682 (target_thread_address_space, target_close)
5683 (target_find_new_threads, target_core_of_thread)
5684 (target_verify_memory, target_insert_mask_watchpoint)
5685 (target_remove_mask_watchpoint): Remove targetdebug code.
5686 (debug_to_post_attach, debug_to_prepare_to_store)
5687 (debug_to_files_info, debug_to_insert_breakpoint)
5688 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5689 (debug_to_region_ok_for_hw_watchpoint)
5690 (debug_to_can_accel_watchpoint_condition)
5691 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5692 (debug_to_watchpoint_addr_within_range)
5693 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5694 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5695 (debug_to_terminal_init, debug_to_terminal_inferior)
5696 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5697 (debug_to_terminal_save_ours, debug_to_terminal_info)
5698 (debug_to_load, debug_to_post_startup_inferior)
5699 (debug_to_insert_fork_catchpoint)
5700 (debug_to_remove_fork_catchpoint)
5701 (debug_to_insert_vfork_catchpoint)
5702 (debug_to_remove_vfork_catchpoint)
5703 (debug_to_insert_exec_catchpoint)
5704 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5705 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5706 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5707 (setup_target_debug): Call init_debug_target.
5708 * target.h (TARGET_DEBUG_PRINTER): New macro.
5709 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5710 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5711
2c51604d
GB
57122014-07-24 Gary Benson <gbenson@redhat.com>
5713
5714 * exceptions.h (throw_vfatal): Renamed to...
5715 (throw_vquit): New declaration.
5716 (throw_quit): Likewise.
5717 * exceptions.c (throw_vfatal): Renamed to...
5718 (throw_vquit): New function.
5719 (throw_quit): Likewise.
5720 (throw_error): Call throw_verror rather than throw_it.
5721 * utils.h (vfatal): Removed.
5722 (fatal): Likewise.
5723 * utils.c (vfatal): Removed.
5724 (fatal): Likewise.
5725 (internal_verror): Replaced call to fatal with call to throw_quit.
5726 (quit): Replaced calls to fatal with calls to throw_quit.
5727
34211963
ME
57282014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5729
5730 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5731 target_read_code.
5732
a52b4d3e
ME
57332014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5734
5735 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5736 less than zero in conditional expression.
5737
a8bdc56b
TT
57382014-07-23 Tom Tromey <tromey@redhat.com>
5739
5740 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5741 ($INTRO_PART): Don't match whitespace.
5742 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5743 argument matching.
5744 ($METHOD): Add $METHOD_TRAILER.
5745 (trim): Rewrite.
5746 (scan_target_h): New sub.
5747 Change main loop not to collect state.
5748 * target-delegates.c: Rebuild.
5749
91b52240
GB
57502014-07-23 Gary Benson <gbenson@redhat.com>
5751
5752 * cp-support.c (gdb_demangle): Fix build on systems without
5753 sigaltstack.
5754
45326f6f
JK
57552014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5756
5757 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5758 for reference entry value target data value.
5759
e214cf6c
JK
57602014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5761
5762 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5763 value_available_contents_eq.
5764
bddbbedd
PA
57652014-07-22 Pedro Alves <palves@redhat.com>
5766
5767 * value.c (allocate_optimized_out_value): Don't mark value as
5768 non-lazy.
5769
45c71484
JW
57702014-07-22 Jiong Wang <jiong.wang@arm.com>
5771
5772 * MAINTAINERS (Write After Approval): Update my email address.
5773
9597b22a
DE
57742014-07-20 Doug Evans <dje@google.com>
5775
5776 PR server/17147
5777 * remote.c (putpkt_binary): Add text to error message.
5778
91101fe5
YQ
57792014-07-20 Yao Qi <yao@codesourcery.com>
5780
5781 * eval.c: Remove "Chill" from comments.
5782 * gdbtypes.h: Likewise.
5783 * symtab.h: Likewise.
5784
c9402c95
YQ
57852014-07-20 Yao Qi <yao@codesourcery.com>
5786
5787 * std-operator.def: Update comments to TERNOP_SLICE.
5788
ae8fddda
YQ
57892014-07-20 Yao Qi <yao@codesourcery.com>
5790
5791 * std-operator.def: Remove BINOP_RANGE.
5792 * breakpoint.c (watchpoint_exp_is_const): Update.
5793 * expprint.c (dump_subexp_body_standard): Likewise.
5794 * eval.c (init_array_element): Remove dead code.
5795 (evaluate_subexp_standard): Likewise.
5796
9c816640
YQ
57972014-07-20 Yao Qi <yao@codesourcery.com>
5798
5799 * std-operator.def: Remove BINOP_IN.
5800 * breakpoint.c (watchpoint_exp_is_const): Update.
5801 * eval.c (evaluate_subexp_standard): Likewise.
5802 * expprint.c (dump_subexp_body_standard): Likewise.
5803
164224e9
ME
58042014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5805
5806 * microblaze-tdep.c (microblaze_register_names): Add
5807 the rshr and rslr register names.
5808 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5809 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5810 Use of tdesc_numbered_register. Use of
5811 microblaze_register_g_packet_guesses. Use of
5812 tdesc_use_registers. Use of set_gdbarch_register_type.
5813 (microblaze_register_g_packet_guesses): New.
5814 * microblaze-tdep.h (microblaze_reg_num): Add
5815 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5816 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5817 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5818 * features/microblaze-core.xml: New file.
5819 * features/microblaze-stack-protect.xml: New file.
5820 * features/microblaze-with-stack-protect.c: New file.
5821 * features/microblaze-with-stack-protect.xml: New file.
5822 * features/microblaze.xml: New file.
5823 * features/microblaze.c: New file.
5824 * features/Makefile (microblaze-with-stack-protect): Add
5825 microblaze-with-stack-protect microblaze and microblaze-expedite.
5826 * regformats/microblaze-with-stack-protect.dat: New file.
5827 * regformats/microblaze.dat: New file.
5828 * doc/gdb.texinfo (MicroBlaze Features): Added.
5829
e8b2341c
TT
58302014-07-18 Tom Tromey <tromey@redhat.com>
5831
5832 * exec.c (exec_ops): Now static.
5833 * exec.h (exec_ops): Don't declare.
5834
44e89118
TT
58352014-07-18 Tom Tromey <tromey@redhat.com>
5836
5837 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5838 to find_target_beneath.
5839 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5840 find_target_beneath.
5841 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5842
b0ed115f
TT
58432014-07-18 Tom Tromey <tromey@redhat.com>
5844
5845 PR gdb/17130:
5846 * utils.c (quit): Use target_supports_terminal_ours.
5847 * target.h (target_supports_terminal_ours): Declare.
5848 * target.c (target_supports_delete_record): Don't check
5849 to_delete_record against NULL.
5850 (target_supports_terminal_ours): New function.
5851
e75fdfca
TT
58522014-07-18 Tom Tromey <tromey@redhat.com>
5853
5854 PR gdb/17130:
5855 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5856 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5857 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5858 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5859 * windows-nat.c (windows_xfer_partial): Always delegate.
5860 * record-btrace.c (record_btrace_xfer_partial): Simplify
5861 delegation.
5862 (record_btrace_fetch_registers, record_btrace_store_registers)
5863 (record_btrace_prepare_to_store, record_btrace_resume)
5864 (record_btrace_wait, record_btrace_find_new_threads)
5865 (record_btrace_thread_alive): Likewise.
5866 * procfs.c (procfs_xfer_partial): Always delegate.
5867 * corelow.c (core_xfer_partial): Always delegate.
5868 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5869
83814951
TT
58702014-07-18 Tom Tromey <tromey@redhat.com>
5871
5872 * exec.c (exec_make_note_section): Move earlier.
5873
b8b8facf
DE
58742014-07-17 Doug Evans <dje@google.com>
5875
74b49205 5876 PR gdb/17170
b8b8facf
DE
5877 * maint.c (count_symtabs_and_blocks): Handle NULL
5878 current_program_space.
5879 (report_command_stats): Check global enabled flag in addition to
5880 recorded enabled flag.
5881 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5882
69ff6be5
PA
58832014-07-16 Pedro Alves <palves@redhat.com>
5884
5885 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5886
252db1b5
TT
58872014-07-16 Tom Tromey <tromey@redhat.com>
5888
5889 * target.h (struct target_ops) <to_delete_record>: Reformat
5890 comment.
5891
a432721e
TT
58922014-07-16 Tom Tromey <tromey@redhat.com>
5893
5894 * target-delegates.c: Rebuild.
5895
487d9753
PL
58962014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5897
5898 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5899 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5900 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5901 (avr_pointer_to_address): Likewise.
5902 (avr_address_class_type_flags): New function.
5903 (avr_address_class_type_flags_to_name): Likewise.
5904 (avr_address_class_name_to_type_flags): Likewise.
5905 (avr_gdbarch_init): Set address_class_type_flags,
5906 address_class_type_flags_to_name and
5907 address_class_name_to_type_flags.
5908
57745c90
PA
59092014-07-15 Pedro Alves <palves@redhat.com>
5910
5911 * linux-nat.c (kill_callback): Save errno and work with saved
5912 copy.
5913
2d40be18
SM
59142014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5915
5916 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5917
572f6555
EBM
59182014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5919
5920 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5921 breakpoint support correctly.
5922
cc1c52ad
PA
59232014-07-14 Pedro Alves <palves@redhat.com>
5924
5925 * utils.c (prompt_for_continue): Call target_terminal_ours.
5926
1e973570
PA
59272014-07-14 Pedro Alves <palves@redhat.com>
5928
5929 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5930 catch_errors. Don't re-enable stdin or notify observers where,
5931 and rethrow error.
5932 (fetch_inferior_event_wrapper): Delete.
5933
93d6eb10
PA
59342014-07-14 Pedro Alves <palves@redhat.com>
5935
5936 PR gdb/17072
5937 * top.c: Include "inf-loop.h".
5938 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5939 field.
5940 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5941 was async before.
5942 (gdb_readline_wrapper): Store whether the target is async, and
5943 make it sync.
5944
0017922d
PA
59452014-07-14 Pedro Alves <palves@redhat.com>
5946
5947 PR gdb/17072
5948 * top.c (gdb_readline_wrapper_line): Tweak comment.
5949 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5950 the input handler callback.
5951
94696ad3
PA
59522014-07-14 Pedro Alves <palves@redhat.com>
5953
5954 PR gdb/17072
5955 * main.c: Include event-top.h.
5956 (handle_command_errors): New function.
5957 (catch_command_errors, catch_command_errors_const): Use it.
5958
9d1e69a2
PA
59592014-07-14 Pedro Alves <palves@redhat.com>
5960
5961 * exceptions.c (catch_command_errors, catch_command_errors_const):
5962 Moved to main.c.
5963 * exceptions.h (catch_command_errors_ftype)
5964 (catch_command_errors_const_ftype): Moved to main.c.
5965 (catch_command_errors, catch_command_errors_const): Delete
5966 declarations.
5967 * main.c (catch_command_errors_ftype)
5968 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5969 (catch_command_errors, catch_command_errors_const)): Moved here
5970 from exceptions.c and make static.
5971
feefc97b
PA
59722014-07-14 Pedro Alves <palves@redhat.com>
5973
5974 * exceptions.c (print_any_exception): Delete.
5975 (catch_exceptions_with_msg): Use exception_print instead of
5976 print_any_exception.
5977 (catch_errors): Use exception_fprintf instead of
5978 print_any_exception.
5979 (catch_command_errors, catch_command_errors_const): Use
5980 exception_print instead of print_any_exception.
5981
c933f875
PA
59822014-07-14 Pedro Alves <palves@redhat.com>
5983
5984 * infcall.c (run_inferior_call): Set 'sync_execution' while
5985 running the inferior call.
5986
feb6f816
PA
59872014-07-14 Pedro Alves <palves@redhat.com>
5988
5989 * value.c (value_contents_equal): Delete function.
5990 * value.h (value_contents_equal): Delete declaration.
5991
d98b7a16
TT
59922014-07-14 Tom Tromey <tromey@redhat.com>
5993
5994 PR exp/17106:
5995 * gdbtypes.c (is_dynamic_type_internal): New function, from
5996 is_dynamic_type.
5997 (is_dynamic_type): Rewrite.
5998 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5999 (resolve_dynamic_struct): Likewise.
6000 (resolve_dynamic_type_internal): New function, from
6001 resolve_dynamic_type.
6002 (resolve_dynamic_type): Rewrite.
6003
548740d6
TT
60042014-07-14 Tom Tromey <tromey@redhat.com>
6005
6006 * target.c (target_require_runnable): Also check record_stratum.
6007 Update comment.
6008
808f7ab1
YQ
60092014-07-11 Yao Qi <yao@codesourcery.com>
6010
6011 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
6012 thumb_instruction_restores_sp return true.
6013
540314bd
YQ
60142014-07-11 Yao Qi <yao@codesourcery.com>
6015
6016 * arm-tdep.c (thumb_instruction_restores_sp): New function.
6017 (thumb_in_function_epilogue_p): Call
6018 thumb_instruction_restores_sp.
6019
1db01f22
YQ
60202014-07-11 Yao Qi <yao@codesourcery.com>
6021
6022 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
6023 'add sp, #imm'.
6024 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
6025
3116063b
GB
60262014-07-11 Gary Benson <gbenson@redhat.com>
6027
6028 * amd64-linux-nat.c (gdbcore.h): Remove include.
6029 (regset.h): Likewise.
6030 (nat/linux-btrace.h): Likewise.
6031 (btrace.h): Likewise.
6032 (gdb_assert.h): Likewise.
6033 (string.h): Likewise.
6034 (sys/uio.h): Likewise.
6035 (sys/debugreg.h): Likewise.
6036 (sys/syscall.h): Likewise.
6037 (sys/procfs.h): Likewise.
6038 (sys/user.h): Likewise.
6039 (asm/ptrace.h): Likewise.
6040 (i386-nat.h): Likewise.
6041 * i386-linux-nat.c (i386-nat.h): Likewise.
6042 (regset.h): Likewise.
6043 (target.h): Likewise.
6044 (linux-nat.h): Likewise.
6045 (nat/linux-btrace.h): Likewise.
6046 (btrace.h): Likewise.
6047 (gdb_assert.h): Likewise.
6048 (string.h): Likewise.
6049 (sys/uio.h): Likewise.
6050 (sys/user.h): Likewise.
6051 (sys/procfs.h): Likewise.
6052 (sys/reg.h): Likewise.
6053 (sys/debugreg.h): Likewise.
6054 (ORIG_EAX): Remove definition.
6055
040baaf6
GB
60562014-07-11 Gary Benson <gbenson@redhat.com>
6057
6058 * i386-linux-nat.h: New file.
6059 * x86-linux-nat.h: Likewise.
6060 * x86-linux-nat.c: Likewise.
6061 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
6062 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
6063 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6064 * amd64-linux-nat.c (x86-linux-nat.h): New include.
6065 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6066 (PTRACE_SETREGSET): Likewise.
6067 (arch_lwp_info): Now in x86-linux-nat.c.
6068 (have_ptrace_getregset): Now in x86-linux-nat.h.
6069 (x86_linux_dr_get): Now in x86-linux-nat.c.
6070 (x86_linux_dr_set): Likewise.
6071 (x86_linux_dr_get_addr): Likewise.
6072 (x86_linux_dr_get_control): Likewise.
6073 (x86_linux_dr_get_status): Likewise.
6074 (update_debug_registers_callback): Likewise.
6075 (x86_linux_dr_set_control): Likewise.
6076 (x86_linux_dr_set_addr): Likewise.
6077 (x86_linux_prepare_to_resume): Likewise.
6078 (x86_linux_new_thread): Likewise.
6079 (x86_linux_new_fork): Likewise.
6080 (x86_linux_get_thread_area): Likewise.
6081 (super_post_startup_inferior): Likewise.
6082 (x86_linux_child_post_startup_inferior): Likewise.
6083 (AMD64_LINUX_USER64_CS): Likewise.
6084 (AMD64_LINUX_X32_DS): Likewise.
6085 (x86_linux_read_description): Likewise.
6086 (x86_linux_enable_btrace): Likewise.
6087 (x86_linux_disable_btrace): Likewise.
6088 (x86_linux_teardown_btrace): Likewise.
6089 (x86_linux_read_btrace): Likewise.
6090 (x86_linux_create_target): Likewise.
6091 (x86_linux_add_target): Likewise.
6092 * i386-linux-nat.c (x86-linux-nat.h): New include.
6093 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6094 (PTRACE_SETREGSET): Likewise.
6095 (arch_lwp_info): Now in x86-linux-nat.c.
6096 (have_ptrace_getregset): Now in x86-linux-nat.h.
6097 (x86_linux_dr_get): Now in x86-linux-nat.c.
6098 (x86_linux_dr_set): Likewise.
6099 (x86_linux_dr_get_addr): Likewise.
6100 (x86_linux_dr_get_control): Likewise.
6101 (x86_linux_dr_get_status): Likewise.
6102 (update_debug_registers_callback): Likewise.
6103 (x86_linux_dr_set_control): Likewise.
6104 (x86_linux_dr_set_addr): Likewise.
6105 (x86_linux_prepare_to_resume): Likewise.
6106 (x86_linux_new_thread): Likewise.
6107 (x86_linux_new_fork): Likewise.
6108 (x86_linux_get_thread_area): Likewise.
6109 (super_post_startup_inferior): Likewise.
6110 (x86_linux_child_post_startup_inferior): Likewise.
6111 (AMD64_LINUX_USER64_CS): Likewise.
6112 (AMD64_LINUX_X32_DS): Likewise.
6113 (x86_linux_read_description): Likewise.
6114 (x86_linux_enable_btrace): Likewise.
6115 (x86_linux_disable_btrace): Likewise.
6116 (x86_linux_teardown_btrace): Likewise.
6117 (x86_linux_read_btrace): Likewise.
6118 (x86_linux_create_target): Likewise.
6119 (x86_linux_add_target): Likewise.
6120
1aa7e42c
GB
61212014-07-11 Gary Benson <gbenson@redhat.com>
6122
6123 * amd64-linux-nat.c: Comment and whitespace changes.
6124 * i386-linux-nat.c: Comment and whitespace changes.
6125
c1e246a0
GB
61262014-07-11 Gary Benson <gbenson@redhat.com>
6127
6128 * amd64-linux-nat.c (x86_linux_create_target): New function.
6129 (x86_linux_add_target): Likewise.
6130 (_initialize_amd64_linux_nat): Delegate to the above new functions.
6131 * i386-linux-nat.c (x86_linux_create_target): New function.
6132 (x86_linux_add_target): Likewise.
6133 (_initialize_i386_linux_nat): Delegate to the above new functions.
6134
8c420b8d
GB
61352014-07-11 Gary Benson <gbenson@redhat.com>
6136
6137 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
6138 (ps_get_thread_area): Delegate to the above in 32-bit mode.
6139 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
6140 (ps_get_thread_area): Delegate to the above.
6141
cb1da100
GB
61422014-07-11 Gary Benson <gbenson@redhat.com>
6143
6144 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
6145 x86_linux_read_description. All uses updated. amd64-specific
6146 code conditionalized. Conditionalized i386-specific code added.
6147 Redundant cast removed.
6148 * i386-linux-nat.c (i386_linux_read_description): Renamed to
6149 x86_linux_read_description. All uses updated. i386-specific
6150 code conditionalized. Conditionalized amd64-specific code added.
6151 One sizeof replaced with the actual type it is describing.
6152
2acf3cd0
GB
61532014-07-11 Gary Benson <gbenson@redhat.com>
6154
6155 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
6156 x86_linux_dr_get. All uses updated.
6157 (amd64_linux_dr_set): Renamed to
6158 x86_linux_dr_set. All uses updated.
6159 (amd64_linux_dr_get_addr): Renamed to
6160 x86_linux_dr_get_addr. All uses updated.
6161 (amd64_linux_dr_get_control): Renamed to
6162 x86_linux_dr_get_control. All uses updated.
6163 (amd64_linux_dr_get_status): Renamed to
6164 x86_linux_dr_get_status. All uses updated.
6165 (amd64_linux_dr_set_control): Renamed to
6166 x86_linux_dr_set_control. All uses updated.
6167 (amd64_linux_dr_set_addr): Renamed to
6168 x86_linux_dr_set_addr. All uses updated.
6169 (amd64_linux_prepare_to_resume): Renamed to
6170 x86_linux_prepare_to_resume. All uses updated.
6171 (amd64_linux_new_thread): Renamed to
6172 x86_linux_new_thread. All uses updated.
6173 (amd64_linux_new_fork): Renamed to
6174 x86_linux_new_fork. All uses updated.
6175 (amd64_linux_child_post_startup_inferior): Renamed to
6176 x86_linux_child_post_startup_inferior. All uses updated.
6177 (amd64_linux_enable_btrace): Renamed to
6178 x86_linux_enable_btrace. All uses updated.
6179 (amd64_linux_disable_btrace): Renamed to
6180 x86_linux_disable_btrace. All uses updated.
6181 (amd64_linux_teardown_btrace): Renamed to
6182 x86_linux_teardown_btrace. All uses updated.
6183 (amd64_linux_read_btrace): Renamed to
6184 x86_linux_read_btrace. All uses updated.
6185 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6186 x86_linux_dr_get. All uses updated.
6187 (i386_linux_dr_set): Renamed to
6188 x86_linux_dr_set. All uses updated.
6189 (i386_linux_dr_get_addr): Renamed to
6190 x86_linux_dr_get_addr. All uses updated.
6191 (i386_linux_dr_get_control): Renamed to
6192 x86_linux_dr_get_control. All uses updated.
6193 (i386_linux_dr_get_status): Renamed to
6194 x86_linux_dr_get_status. All uses updated.
6195 (i386_linux_dr_set_control): Renamed to
6196 x86_linux_dr_set_control. All uses updated.
6197 (i386_linux_dr_set_addr): Renamed to
6198 x86_linux_dr_set_addr. All uses updated.
6199 (i386_linux_prepare_to_resume): Renamed to
6200 x86_linux_prepare_to_resume. All uses updated.
6201 (i386_linux_new_thread): Renamed to
6202 x86_linux_new_thread. All uses updated.
6203 (i386_linux_new_fork): Renamed to
6204 x86_linux_new_fork. All uses updated.
6205 (i386_linux_child_post_startup_inferior): Renamed to
6206 x86_linux_child_post_startup_inferior. All uses updated.
6207 (i386_linux_enable_btrace): Renamed to
6208 x86_linux_enable_btrace. All uses updated.
6209 (i386_linux_disable_btrace): Renamed to
6210 x86_linux_disable_btrace. All uses updated.
6211 (i386_linux_teardown_btrace): Renamed to
6212 x86_linux_teardown_btrace. All uses updated.
6213 (i386_linux_read_btrace): Renamed to
6214 x86_linux_read_btrace. All uses updated.
6215
b9c1d481
AS
62162014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6217
6218 * remote.c (extended_remote_post_attach): New function.
6219 (init_extended_remote_ops): Install it as to_post_attach method.
6220
7180e04a
PA
62212014-07-09 Pedro Alves <palves@redhat.com>
6222
6223 * infcmd.c (attach_command_post_wait): Don't call
6224 target_terminal_inferior here.
6225 (attach_command): Call it here instead.
6226
9a9a7608
AB
62272014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6228
6229 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6230 field.
6231 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6232 from varobj.c, with additional checks.
6233 (c_varobj_ops): Fill in is_path_expr_parent field.
6234 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6235 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6236 field.
6237 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6238 ops method.
6239 (varobj_default_is_path_expr_parent): New function.
6240 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6241 (varobj_default_is_path_expr_parent): Declare new function.
6242
1f267ae3
MM
62432014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6244
6245 * infcmd.c (finish_backward): Turn internal error into normal error.
6246
b2ee242b
PA
62472014-07-07 Pedro Alves <palves@redhat.com>
6248
8a869bca 6249 PR gdb/17096
b2ee242b
PA
6250 * remote.c (async_handle_remote_sigint)
6251 (async_handle_remote_sigint_twice): Call
6252 gdb_call_async_signal_handler instead of
6253 mark_async_signal_handler.
6254
38e229b2
TT
62552014-07-07 Tom Tromey <tromey@redhat.com>
6256
6257 * target-delegates.c: Rebuild.
6258 * target.c (target_info_record): Remove.
6259 * record.c (info_record_command): Unconditionally call
6260 to_info_record.
6261 * target.h (struct target_ops) <to_info_record>: Use
6262 TARGET_DEFAULT_IGNORE.
6263 (target_info_record): Remove.
6264
f0f9ff95
TT
62652014-07-07 Tom Tromey <tromey@redhat.com>
6266
6267 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6268 TARGET_DEFAULT_NORETURN.
6269 * target.c (generic_tls_error): New function.
6270 (target_translate_tls_address): Don't search target stack.
6271 * target-delegates.c: Rebuild.
6272 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6273 stack.
6274 * linux-thread-db.c (thread_db_get_thread_local_address):
6275 Unconditionally call beneath target.
6276
4a5be5ee
MK
62772014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6278
6279 * cli/cli-logging.c (pop_output_files): Assign targerr to
6280 gdb_stdtargerr.
6281
92c3b204
AB
62822014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6283
6284 * MAINTAINERS (Write After Approval): Update my email address.
6285
9b11e3a7
GB
62862014-07-02 Gary Benson <gbenson@redhat.com>
6287
6288 * proc-service.c (ps_xfer_memory): Update comment.
6289 (ps_pstop): Remove unused function.
6290 (ps_pcontinue): Likewise.
6291 (ps_lstop): Likewise.
6292 (ps_lcontinue): Likewise.
6293 (ps_lgetxregsize): Likewise.
6294 (ps_lgetxregs): Likewise.
6295 (ps_lsetxregs): Likewise.
6296 (ps_plog): Likewise.
6297 (ps_ptread): Likewise.
6298 (ps_ptwrite): Likewise.
6299
cf363f18
MW
63002014-07-01 Mark Wielaard <mjw@redhat.com>
6301
6302 * dwarf2read.c (add_array_cv_type): New function.
6303 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6304 (read_tag_volatile_type): Likewise.
6305
82ae6c8d
TT
63062014-07-01 Tom Tromey <tromey@redhat.com>
6307
6308 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6309 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6310 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6311 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6312 * command.h (cmd_cfunc_ftype): Move earlier.
6313 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6314 (add_com, add_info): Use cmd_cfunc_ftype.
6315
96142726
TT
63162014-06-30 Tom Tromey <tromey@redhat.com>
6317
6318 * symtab.c (operator_chars): Make parameters and return type
6319 const.
6320 (file_matches): Make "files" const.
6321 (struct search_symbols_data) <files>: Now const.
6322 (search_symbols): Make "regexp" and "files" parameters const.
6323 Update.
6324 (symtab_symbol_info): Remove cast.
6325 (rbreak_command): Update.
6326 * symtab.h (search_symbols): Update.
6327
b67a2c6f
YQ
63282014-06-27 Yao Qi <yao@codesourcery.com>
6329
6330 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6331 Change parameter type to 'struct thread_info *'. Caller
6332 updated.
6333 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6334 Update declaration.
6335 * dummy-frame.c (struct dummy_frame_id): New.
6336 (dummy_frame_id_eq): New function.
6337 (struct dummy_frame) <id>: Change its type to 'struct
6338 dummy_frame_id'.
6339 (dummy_frame_push): Add parameter ptid and save it in
6340 dummy_frame_id.
6341 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6342 inferior_ptid.
6343 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6344 to inferior_ptid.
6345 (lookup_dummy_frame): Change parameter type to 'struct
6346 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6347 instead of frame_id_eq.
6348 (dummy_frame_pop): Add parameter ptid. Callers updated.
6349 Update comments. Compose dummy_frame_id and pass it to
6350 lookup_dummy_frame.
6351 (dummy_frame_discard): Add parameter ptid.
6352 (dummy_frame_sniffer): Compose dummy_frame_id and call
6353 dummy_frame_id_eq instead of frame_id_eq.
6354 (fprint_dummy_frames): Print ptid.
6355 * dummy-frame.h: Remove comments.
6356 (dummy_frame_push): Add ptid in declaration.
6357 (dummy_frame_pop, dummy_frame_discard): Likewise.
6358
5b10184c
TT
63592014-06-26 Tom Tromey <tromey@redhat.com>
6360
6361 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6362 * command.h (error_no_arg): Update.
6363
06900326
TT
63642014-06-26 Tom Tromey <tromey@redhat.com>
6365
6366 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6367 (do_show_command): Make "arg" const.
6368 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6369
c2bcbb1d
TT
63702014-06-26 Tom Tromey <tromey@redhat.com>
6371
6372 * record-full.c (record_full_get_bookmark): Make "args" const.
6373 (record_full_goto_bookmark): Make "raw_bookmark" const.
6374 * record.c (record_goto): New function.
6375 (cmd_record_goto): Use it. Now static.
6376 * record.h (record_goto): Declare.
6377 (cmd_record_goto): Remove declaration.
6378 * target-delegates.c: Rebuild.
6379 * target.h (struct target_ops) <to_get_bookmark,
6380 to_goto_bookmark>: Make parameter const.
6381
9cbe5fff
TT
63822014-06-26 Tom Tromey <tromey@redhat.com>
6383
6384 * defs.h (generic_load): Update.
6385 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6386 * monitor.c (monitor_load): Make "args" const.
6387 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6388 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6389 const.
6390 (mips_load): Make "file" const.
6391 * remote-sim.c (gdbsim_load): Make "args" const.
6392 * remote.c (remote_load): Make "name" const.
6393 * symfile.c (generic_load): Make "args" const.
6394 * target-delegates.c: Rebuild.
6395 * target.c (target_load): Make "arg" const.
6396 (debug_to_load): Make "args" const.
6397 * target.h (struct target_ops) <to_load>: Make parameter const.
6398 (target_load): Update.
6399
34a68019
TT
64002014-06-26 Tom Tromey <tromey@redhat.com>
6401
6402 PR symtab/16902:
6403 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6404 (dwarf2_physname, read_partial_die)
6405 (guess_partial_die_structure_name, fixup_partial_die)
6406 (guess_full_die_structure_name, anonymous_struct_prefix)
6407 (dwarf2_name): Use per-BFD obstack.
6408
efc889c1
YQ
64092014-06-26 Yao Qi <yao@codesourcery.com>
6410
6411 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6412 dummyframe and this_id into inner block below.
6413
4395285e
YQ
64142014-06-26 Yao Qi <yao@codesourcery.com>
6415
6416 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6417 with "signal_pass[0]" in the initialization of signal_pass.
6418
aef92902
MM
64192014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6420
6421 * record-btrace.c (record_btrace_generating_corefile)
6422 (record_btrace_prepare_to_generate_core)
6423 (record_btrace_done_generating_core): New.
6424 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6425 (record_btrace_store_registers, record_btrace_prepare_to_store):
6426 Forward request when generating a core file.
6427 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6428 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6429 to_done_generating_core.
6430
5fff78c4
MM
64312014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6432
6433 * target.h (target_ops) <to_prepare_to_generate_core>
6434 <to_done_generating_core>: New.
6435 (target_prepare_to_generate_core, target_done_generating_core): New.
6436 * target.c (target_prepare_to_generate_core)
6437 (target_done_generating_core): New.
6438 * target-delegates.c: Regenerate.
6439 * gcore.c: (write_gcore_file): Rename to ...
6440 (write_gcore_file_1): ...this.
6441 (write_gcore_file): Call target_prepare_to_generate_core
6442 and target_done_generating_core.
6443
1d1f1ccb
MM
64442014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6445
6446 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6447 * gcore.c (write_gcore_file): Free memory returned from
6448 make_corefile_notes.
6449 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6450 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6451
3343ef86
YQ
64522014-06-24 Yao Qi <yao@codesourcery.com>
6453
6454 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6455 (arm_linux_init_abi): Set skip_trampoline_code with
6456 gdbarch_skip_trampoline_code instead of
6457 find_solib_trampoline_target.
6458
18d18ac8
YQ
64592014-06-24 Yao Qi <yao@codesourcery.com>
6460
6461 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6462 arm_skip_bx_reg returns non-zero.
6463
80d8d390
YQ
64642014-06-24 Yao Qi <yao@codesourcery.com>
6465
6466 * arm-tdep.c (arm_skip_bx_reg): New function.
6467 (arm_skip_stub): Call arm_skip_bx_reg.
6468
6a18a01c
DB
64692014-06-23 Don Breazeal <donb@codesourcery.com>
6470
6471 * MAINTAINERS: Add myself as write-after-approval maintainer.
6472
8e9db26e
PA
64732014-06-23 Pedro Alves <palves@redhat.com>
6474
6475 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6476 DR_CONTROL before setting DR0..DR3.
6477 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6478 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6479 bits of DR_CONTROL related to the debug register slot being
6480 disabled. If all slots are vacant, clear local slowdown as well,
6481 and assert DR_CONTROL is 0.
6482
70afc5b7
SC
64832014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6484
6485 * python/lib/gdb/command/xmethods.py
6486 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6487 current progspace only if the string "progspace" matches LOCUS_RE.
6488
840ed64d
JK
64892014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6490
6491 Fix --with-system-readline with readline-6.3 patch 5.
6492 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6493 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6494 types.
6495
26f2dc30
TT
64962014-06-20 Tom Tromey <tromey@redhat.com>
6497
6498 * dwarf2read.c (dw2_get_real_path): Use correct type in
6499 OBSTACK_CALLOC.
6500 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6501
125f8a3d
GB
65022014-06-20 Gary Benson <gbenson@redhat.com>
6503
6504 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6505 * common/glibc_thread_db.h: Likewise.
6506 * common/i386-cpuid.h: Likewise.
6507 * common/i386-gcc-cpuid.h: Likewise.
6508 * common/linux-btrace.h: Likewise.
6509 * common/linux-osdata.h: Likewise.
6510 * common/linux-procfs.h: Likewise.
6511 * common/linux-ptrace.h: Likewise.
6512 * common/mips-linux-watch.h: Likewise.
6513 * common/linux-btrace.c: Moved to nat.
6514 * common/linux-osdata.c: Likewise.
6515 * common/linux-procfs.c: Likewise.
6516 * common/linux-ptrace.c: Likewise.
6517 * common/mips-linux-watch.c: Likewise.
6518 * nat/gdb_thread_db.h: Moved from common.
6519 * nat/glibc_thread_db.h: Likewise.
6520 * nat/i386-cpuid.h: Likewise.
6521 * nat/i386-gcc-cpuid.h: Likewise.
6522 * nat/linux-btrace.c: Likewise.
6523 * nat/linux-btrace.h: Likewise.
6524 * nat/linux-osdata.c: Likewise.
6525 * nat/linux-osdata.h: Likewise.
6526 * nat/linux-procfs.c: Likewise.
6527 * nat/linux-procfs.h: Likewise.
6528 * nat/linux-ptrace.c: Likewise.
6529 * nat/linux-ptrace.h: Likewise.
6530 * nat/mips-linux-watch.c: Likewise.
6531 * nat/mips-linux-watch.h: Likewise.
6532 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6533 (object file files): Reordered.
6534 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6535 of glibc_thread_db.h.
6536
42995dbd
GB
65372014-06-20 Gary Benson <gbenson@redhat.com>
6538
6539 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6540 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6541 (i386_dr_low): Likewise.
6542 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6543 (i386_dr_low_set_addr): Likewise.
6544 (i386_dr_low_get_addr): Likewise.
6545 (i386_dr_low_can_set_control): Likewise.
6546 (i386_dr_low_set_control): Likewise.
6547 (i386_dr_low_get_control): Likewise.
6548 (i386_dr_low_get_status): Likewise.
6549 (i386_get_debug_register_length): Likewise.
6550 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6551 (i386_dr_low): Likewise.
6552 * nat/i386-dregs.c (i386-low.h): Remove include.
6553 (i386-nat.h): Likewise.
6554 (nat/i386-dregs.h): New include.
6555 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6556 (i386_dr_low_set_addr): Likewise.
6557 (i386_dr_low_get_addr): Likewise.
6558 (i386_dr_low_can_set_control): Likewise.
6559 (i386_dr_low_set_control): Likewise.
6560 (i386_dr_low_get_control): Likewise.
6561 (i386_dr_low_get_status): Likewise.
6562 (i386_get_debug_register_length): Likewise.
6563 (debug_hw_points): Likewise.
6564
3ed9baed
IB
65652014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6566
6567 * Makefile.in (SFILES): Add d-exp.y.
6568 (YYFILES): Add d-exp.c.
6569 (YYOBJ): Add d-exp.o.
6570 (local-maintainer-clean): Delete d-exp.c.
6571 * d-exp.y: New file.
6572 * d-lang.h (d_parse): New declaration.
6573 (d_error): New declaration.
6574 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6575 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6576 PREC_ORDER operators.
6577 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6578
78c164b0
YQ
65792014-06-19 Yao Qi <yao@codesourcery.com>
6580
6581 * gdbthread.h (any_running): Remove the declaration.
6582 * thread.c (any_running): Remove.
6583
f6e29b6e
YQ
65842014-06-19 Yao Qi <yao@codesourcery.com>
6585
6586 * gdbthread.h (struct thread_info) <state>: Change its type to
6587 'enum thread_state'. Update comments.
6588
034f788c
PA
65892014-06-19 Pedro Alves <palves@redhat.com>
6590
6591 * gdbthread.h (ALL_THREADS): Delete.
6592 (ALL_NON_EXITED_THREADS): New macro.
6593 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6594 instead of ALL_THREADS.
6595 * infrun.c (find_thread_needs_step_over)
6596 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6597 instead of ALL_THREADS.
6598 * record-btrace.c (record_btrace_open)
6599 (record_btrace_stop_recording, record_btrace_close)
6600 (record_btrace_is_replaying, record_btrace_resume)
6601 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6602 * remote.c (append_pending_thread_resumptions): Likewise.
6603 * thread.c (thread_apply_all_command): Likewise.
6604
46e33252
GB
66052014-06-19 Gary Benson <gbenson@redhat.com>
6606
6607 * i386-nat.c (i386_stopped_by_watchpoint):
6608 Use i386_dr_stopped_by_watchpoint.
6609 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6610 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6611
3a8ee006
GB
66122014-06-19 Gary Benson <gbenson@redhat.com>
6613
6614 * nat/i386-dregs.c: New file.
6615 * Makefile.in (i386-dregs.o): New rule.
6616 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6617 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6618 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6619 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6620 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6621 * config/i386/go32.mh (NATDEPFILES): Likewise.
6622 * config/i386/linux.mh (NATDEPFILES): Likewise.
6623 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6624 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6625 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6626 * i386-nat.h (debug_hw_points): New declaration.
6627 * i386-nat.c (breakpoint.h): Remove include.
6628 (command.h): Likewise.
6629 (target.h): Likewise.
6630 (gdb_assert.h): Likewise.
6631 (debug_hw_points): Made nonstatic.
6632 (debug_printf): Now in i386-dregs.c.
6633 (TARGET_HAS_DR_LEN_8): Likewise.
6634 (DR_CONTROL_SHIFT): Likewise.
6635 (DR_CONTROL_SIZE): Likewise.
6636 (DR_RW_EXECUTE): Likewise.
6637 (DR_RW_WRITE): Likewise.
6638 (DR_RW_READ): Likewise.
6639 (DR_RW_IORW): Likewise.
6640 (DR_LEN_1): Likewise.
6641 (DR_LEN_2): Likewise.
6642 (DR_LEN_4): Likewise.
6643 (DR_LEN_8): Likewise.
6644 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6645 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6646 (DR_ENABLE_SIZE): Likewise.
6647 (DR_LOCAL_SLOWDOWN): Likewise.
6648 (DR_GLOBAL_SLOWDOWN): Likewise.
6649 (DR_CONTROL_RESERVED): Likewise.
6650 (I386_DR_CONTROL_MASK): Likewise.
6651 (I386_DR_VACANT): Likewise.
6652 (I386_DR_LOCAL_ENABLE): Likewise.
6653 (I386_DR_GLOBAL_ENABLE): Likewise.
6654 (I386_DR_DISABLE): Likewise.
6655 (I386_DR_SET_RW_LEN): Likewise.
6656 (I386_DR_GET_RW_LEN): Likewise.
6657 (I386_DR_WATCH_HIT): Likewise.
6658 (i386_wp_op_t): Likewise.
6659 (i386_show_dr): Likewise.
6660 (i386_length_and_rw_bits): Likewise.
6661 (i386_insert_aligned_watchpoint): Likewise.
6662 (i386_remove_aligned_watchpoint): Likewise.
6663 (i386_handle_nonaligned_watchpoint): Likewise.
6664 (i386_update_inferior_debug_regs): Likewise.
6665 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6666 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6667 (i386_region_ok_for_watchpoint):
6668 Use i386_dr_region_ok_for_watchpoint.
6669 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6670
322a8e06
GB
66712014-06-19 Gary Benson <gbenson@redhat.com>
6672
6673 * i386-nat.c (i386_insert_hw_breakpoint): Use
6674 i386_insert_watchpoint.
6675 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6676
8f26655c
GB
66772014-06-19 Gary Benson <gbenson@redhat.com>
6678
6679 * i386-nat.c (i386_dr_show): Renamed to
6680 i386_show_dr and made static. All uses updated.
6681 (i386_dr_length_and_rw_bits): Renamed to
6682 i386_length_and_rw_bits and made static.
6683 All uses updated.
6684 (i386_dr_insert_aligned_watchpoint): Renamed to
6685 i386_insert_aligned_watchpoint and made static.
6686 All uses updated.
6687 (i386_dr_remove_aligned_watchpoint): Renamed to
6688 i386_remove_aligned_watchpoint and made static.
6689 All uses updated.
6690 (i386_dr_update_inferior_debug_regs): Renamed to
6691 i386_update_inferior_debug_regs and made static.
6692 All uses updated.
6693 * nat/i386-dregs.h (i386_dr_show): Removed.
6694 (i386_dr_length_and_rw_bits): Likewise.
6695 (i386_dr_insert_aligned_watchpoint): Likewise.
6696 (i386_dr_remove_aligned_watchpoint): Likewise.
6697 (i386_dr_update_inferior_debug_regs): Likewise.
6698
992c7d70
GB
66992014-06-19 Gary Benson <gbenson@redhat.com>
6700
6701 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6702 * configure: Regenerate.
6703 * config.in: Likewise.
6704 * main.c (signal.h): New include.
6705 (setup_alternate_signal_stack): New function.
6706 (captured_main): Call the above.
6707 * cp-support.c (signal.h): New include.
6708 (catch_demangler_crashes): New flag.
6709 (SIGJMP_BUF): New define.
6710 (SIGSETJMP): Likewise.
6711 (SIGLONGJMP): Likewise.
6712 (gdb_demangle_jmp_buf): New static global.
6713 (gdb_demangle_attempt_core_dump): Likewise.
6714 (gdb_demangle_signal_handler): New function.
6715 (gdb_demangle): If catch_demangler_crashes is set, install the
6716 above signal handler before calling bfd_demangle, and restore
6717 the original signal handler afterwards. Display the offending
6718 symbol and call demangler_warning the first time a segmentation
6719 fault is caught.
6720 (_initialize_cp_support): New maint set/show command.
6721
eae7090b
GB
67222014-06-19 Gary Benson <gbenson@redhat.com>
6723
6724 * utils.h (resource_limit_kind): New enum.
6725 (can_dump_core): New declaration.
6726 (warn_cant_dump_core): Likewise.
6727 (dump_core): Likewise.
6728 * utils.c (dump_core): Made nonstatic. Added new
6729 parameter "limit_kind".
6730 (can_dump_core): Made nonstatic. Moved printing code to...
6731 (warn_cant_dump_core): New function.
6732 (can_dump_core_warn): Likewise.
6733 (internal_vproblem): Replace calls to can_dump_core with
6734 calls to can_dump_core_warn. Supply new argument to each.
6735
57fcfb1b
GB
67362014-06-19 Gary Benson <gbenson@redhat.com>
6737
6738 * utils.h (demangler_vwarning): New declaration.
6739 (demangler_warning): Likewise.
6740 * utils.c (struct internal_problem)
6741 <user_settable_should_quit>: New field.
6742 <user_settable_should_dump_core>: Likewise
6743 (internal_error_problem): Add values for above new fields.
6744 (internal_warning_problem): Likewise.
6745 (demangler_warning_problem): New static global.
6746 (demangler_vwarning): New function.
6747 (demangler_warning): Likewise.
6748 (add_internal_problem_command): Selectively add commands.
6749 (_initialize_utils): New internal problem command.
6750 * maint.c (maintenance_demangler_warning): New function.
6751 (_initialize_maint_cmds): New command.
6752
17a40b44
TT
67532014-06-18 Tom Tromey <tromey@redhat.com>
6754
6755 * f-valprint.c (info_common_command_for_block): Update.
6756 * symtab.h (struct general_symbol_info) <common_block>: Now
6757 const.
6758
346d1dfe
TT
67592014-06-18 Tom Tromey <tromey@redhat.com>
6760
6761 * symtab.h (struct symtab) <blockvector>: Now const.
6762 * ada-lang.c (ada_add_global_exceptions): Update.
6763 * buildsym.c (augment_type_symtab): Update.
6764 * dwarf2read.c (dw2_lookup_symbol): Update.
6765 * jit.c (finalize_symtab): Update.
6766 * jv-lang.c (add_class_symtab_symbol): Update.
6767 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6768 Update.
6769 * objfiles.c (objfile_relocate1): Update.
6770 * psymtab.c (lookup_symbol_aux_psymtabs)
6771 (maintenance_check_psymtabs): Update.
6772 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6773 Update.
6774 * spu-tdep.c (spu_catch_start): Update.
6775 * symmisc.c (dump_symtab_1): Update.
6776 * symtab.c (lookup_global_symbol_from_objfile)
6777 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6778 (basic_lookup_transparent_type_quick)
6779 (basic_lookup_transparent_type, find_pc_sect_symtab)
6780 (find_pc_sect_line, search_symbols): Update.
6781 * block.c (find_block_in_blockvector): Make "bl" const.
6782 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6783 const.
6784 (blockvector_contains_pc): Make "bv" const.
6785 (block_for_pc_sect): Update.
6786 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6787 (blockvector_contains_pc): Update.
6788 * breakpoint.c (resolve_sal_pc): Update.
6789 * inline-frame.c (block_starting_point_at): Update.
6790
1834676b
TT
67912014-06-18 Tom Tromey <tromey@redhat.com>
6792
6793 * completer.c (complete_line): Make "line_buffer" const.
6794 * completer.h (complete_line): Update.
6795
ac1a991b
TT
67962014-06-18 Tom Tromey <tromey@redhat.com>
6797
6798 * symtab.c (add_macro_name): Remove unneeded cast.
6799
5bc98e52
TT
68002014-06-18 Tom Tromey <tromey@redhat.com>
6801
6802 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6803 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6804
8236def8
TT
68052014-06-18 Tom Tromey <tromey@redhat.com>
6806
6807 * probe.c (info_probes_for_ops): Make "arg" const.
6808 * probe.h (info_probes_for_ops): Update.
6809
3977b71f
TT
68102014-06-18 Tom Tromey <tromey@redhat.com>
6811
6812 * varobj.c (varobj_create): Update.
6813 * valops.c (value_of_this): Update.
6814 * tracepoint.c (add_local_symbols, scope_info): Update.
6815 * symtab.h (struct general_symbol_info) <block>: Now const.
6816 * symtab.c (skip_prologue_sal)
6817 (default_make_symbol_completion_list_break_on)
6818 (skip_prologue_using_sal): Update.
6819 * stack.h (iterate_over_block_locals)
6820 (iterate_over_block_local_vars): Update.
6821 * stack.c (print_frame_args): Update.
6822 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6823 parameter const.
6824 (get_selected_block): Make return type const.
6825 * python/py-frame.c (frapy_block): Update.
6826 * python/py-block.c (gdbpy_block_for_pc): Update.
6827 * p-exp.y (%union) <bval>: Now const.
6828 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6829 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6830 * m2-exp.y (%union) <bval>: Now const.
6831 * linespec.c (get_current_search_block): Make return type const.
6832 (create_sals_line_offset, find_label_symbols): Update.
6833 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6834 Update.
6835 (block_starting_point_at): Make "block" const.
6836 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6837 (check_exception_resume): Update.
6838 * guile/scm-frame.c (gdbscm_frame_block): Update.
6839 * guile/scm-block.c (gdbscm_lookup_block): Update.
6840 * frame.h (get_frame_block): Update.
6841 (get_selected_block): Make return type const.
6842 * frame.c (frame_id_inner): Update.
6843 * f-valprint.c (info_common_command_for_block)
6844 (info_common_command): Update.
6845 * dwarf2loc.c (dwarf2_find_location_expression)
6846 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6847 (locexpr_describe_location_piece): Update.
6848 * c-exp.y (%union) <bval>: Now const.
6849 * breakpoint.c (resolve_sal_pc): Update.
6850 * blockframe.c (get_frame_block):Make return type const.
6851 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6852 (block_innermost_frame): Update.
6853 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6854 (block_for_pc, block_for_pc_sect): Update.
6855 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6856 'pblock' const.
6857 (block_for_pc_sect, block_for_pc): Make return type const.
6858 * ax-gdb.c (gen_expr): Update.
6859 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6860 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6861 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6862 (ada_read_var_value): Update.
6863 * ada-exp.y (struct name_info) <block>: Now const.
6864 (%union): Likewise.
6865 (block_lookup): Constify.
6866
b9228891
GB
68672014-06-18 Gary Benson <gbenson@redhat.com>
6868
6869 * nat/i386-dregs.h: New file.
6870 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6871 * i386-nat.h (i386-dregs.h): New include.
6872 (DR_FIRSTADDR): Now in i386-dregs.h.
6873 (DR_LASTADDR): Likewise.
6874 (DR_NADDR): Likewise.
6875 (DR_STATUS): Likewise.
6876 (DR_CONTROL): Likewise.
6877 (i386_debug_reg_state): Likewise.
6878 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6879
a1aa2221
LM
68802014-06-18 Don Breazeal <donb@codesourcery.com>
6881
6882 * breakpoint.c (set_longjmp_breakpoint): Call
6883 momentary_breakpoint_from_master with additional argument.
6884 (set_longjmp_breakpoint_for_call_dummy): Call
6885 momentary_breakpoint_from_master with additional argument.
6886 (set_std_terminate_breakpoint): Call
6887 momentary_breakpoint_from_master with additional argument.
6888 (momentary_breakpoint_from_master): Add argument to function
6889 definition and use it to initialize structure member flag.
74228e77 6890 (clone_momentary_breakpoint): Call
a1aa2221
LM
6891 momentary_breakpoint_from_master with additional argument.
6892 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6893 member flags set in momentary_breakpoint_from_master.
6894
4be83cc2
GB
68952014-06-18 Gary Benson <gbenson@redhat.com>
6896
6897 * i386-nat.c (i386_show_dr): Renamed to
6898 i386_dr_show and made nonstatic. All uses updated.
6899 (i386_length_and_rw_bits): Renamed to
6900 i386_dr_length_and_rw_bits and made nonstatic.
6901 All uses updated.
6902 (i386_insert_aligned_watchpoint): Renamed to
6903 i386_dr_insert_aligned_watchpoint and made nonstatic.
6904 All uses updated.
6905 (i386_remove_aligned_watchpoint): Renamed to
6906 i386_dr_remove_aligned_watchpoint and made nonstatic.
6907 All uses updated.
6908 (i386_update_inferior_debug_regs): Renamed to
6909 i386_dr_update_inferior_debug_regs and made nonstatic.
6910 All uses updated.
6911
131aa0d4
GB
69122014-06-18 Gary Benson <gbenson@redhat.com>
6913
6914 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6915 (i386_dr_low_can_set_control): Likewise.
6916 (i386_dr_low_set_addr): Likewise.
6917 (i386_dr_low_set_control): Likewise.
6918 (i386_dr_low_get_addr): Likewise.
6919 (i386_dr_low_get_status): Likewise.
6920 (i386_dr_low_get_control): Likewise.
6921 (i386_insert_aligned_watchpoint): Use new macros.
6922 (i386_update_inferior_debug_regs): Likewise.
6923 (i386_stopped_data_address): Likewise.
6924
d9305f7f
GB
69252014-06-18 Gary Benson <gbenson@redhat.com>
6926
6927 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6928 New parameter. All uses updated.
6929
ea008da4
GB
69302014-06-18 Gary Benson <gbenson@redhat.com>
6931
6932 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6933 All uses updated.
6934
1b6d4134
GB
69352014-06-18 Gary Benson <gbenson@redhat.com>
6936
6937 * i386-nat.c (debug_printf): New macro.
6938 (i386_get_debug_register_length): Likewise.
6939 (TARGET_HAS_DR_LEN_8): Use above macro.
6940 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6941 and printf_unfiltered. Use phex to format values.
6942
9b4550ef
GB
69432014-06-18 Gary Benson <gbenson@redhat.com>
6944
6945 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6946 Make const.
6947
6e62758f
GB
69482014-06-18 Gary Benson <gbenson@redhat.com>
6949
6950 * i386-nat.c: Comment changes.
6951
51c79e94
GB
69522014-06-18 Gary Benson <gbenson@redhat.com>
6953
6954 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6955
3e11889a
GB
69562014-06-18 Gary Benson <gbenson@redhat.com>
6957
6958 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6959 (i386_insert_aligned_watchpoint): Likewise.
6960 (i386_remove_aligned_watchpoint): Likewise.
6961 (i386_handle_nonaligned_watchpoint): Likewise.
6962
fc6e2f03
GB
69632014-06-18 Gary Benson <gbenson@redhat.com>
6964
6965 * i386-nat.c: Whitespace changes.
6966
2afe7d50
SB
69672014-06-17 Samuel Bronson <naesten@gmail.com>
6968
6969 * MAINTAINERS: Update Roland McGrath's email address.
6970 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 6971 Red Hat a while ago, and giving me a current address.
2afe7d50 6972
3bca49ee
TT
69732014-06-17 Tom Tromey <tromey@redhat.com>
6974
6975 * utils.h (savestring): Remove declaration.
6976
6e366df1
TT
69772014-06-17 Tom Tromey <tromey@redhat.com>
6978
6979 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6980
6be47f0c
KS
69812014-06-16 Keith Seitz <keiths@redhat.com>
6982
6983 PR mi/15863
6984 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6985 to update the varobj if inferior_ptid is null_ptid.
6986
7bc112c1
TT
69872014-06-16 Tom Tromey <tromey@redhat.com>
6988
6989 * target.h (struct target_ops) <to_info_proc>: Make parameter
6990 const.
6991 (target_info_proc): Update.
6992 * target.c (target_info_proc): Make "args" const.
6993 * procfs.c (procfs_info_proc): Update.
6994 * linux-tdep.c (linux_info_proc): Update.
6995 (linux_core_info_proc_mappings): Make "args" const.
6996 (linux_core_info_proc): Update.
6997 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6998 * gdbarch.c: Rebuild.
6999 * gdbarch.h: Rebuild.
7000 * corelow.c (core_info_proc): Update.
7001
fee354ee
TT
70022014-06-16 Tom Tromey <tromey@redhat.com>
7003
7004 * target.h (struct target_ops) <to_disconnect>: Make parameter
7005 const.
7006 (target_disconnect): Update.
7007 * target.c (target_disconnect): Make "args" const.
7008 * target-delegates.c: Rebuild.
7009 * remote.c (remote_disconnect): Update.
7010 * record.h (record_disconnect): Update.
7011 * record.c (record_disconnect): Update.
7012 * inf-child.c (inf_child_disconnect): Update.
7013
a30bf1f1
TT
70142014-06-16 Tom Tromey <tromey@redhat.com>
7015
7016 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
7017 * target.c (debug_to_rcmd, default_rcmd): Update.
7018 * target-delegates.c: Rebuild.
7019 * remote.c (remote_rcmd): Update.
7020 * monitor.c (monitor_rcmd): Update.
7021
d03de421
PA
70222014-06-16 Pedro Alves <palves@redhat.com>
7023
7024 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
7025 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
7026 have OBJF_SHARED set.
7027 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
7028 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
7029 instead of OBJF_USERLOADED.
7030 * objfiles.h (OBJF_SHARED): Update comment.
7031 (userloaded_objfile_contains_address_p): Rename to ...
7032 (shared_objfile_contains_address_p): ... this, and update
7033 comments.
7034 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
7035 new objfile.
7036 (remove_symbol_file_command): Skip objfiles that don't have
7037 OBJF_SHARED set.
7038
99f4262f
TT
70392014-06-16 Tom Tromey <tromey@redhat.com>
7040
7041 * minsyms.h (prim_record_minimal_symbol)
7042 (prim_record_minimal_symbol_and_info): Update comments.
7043
97d66cc6
EZ
70442014-06-14 Eli Zaretskii <eliz@gnu.org>
7045
7046 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
7047 or --without-guile, according to how GDB was built.
7048
635c7e8a
TT
70492014-06-13 Tom Tromey <tromey@redhat.com>
7050
7051 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
7052 to help_list.
7053 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
7054 to help_list.
7055 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
7056 help_list.
7057 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
7058 help_list.Pass all_commands, not -1, to help_list.
7059 * cli/cli-dump.c (dump_command, append_command)
7060 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
7061 (binary_dump_command, binary_append_command): Pass all_commands,
7062 not -1, to help_list.
7063 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
7064 -1, to help_list.
7065 * valprint.c (set_print, set_print_raw): Pass all_commands, not
7066 -1, to help_list.
7067 * typeprint.c (set_print_type): Pass all_commands, not -1, to
7068 help_list.
7069 * top.c (set_history): Pass all_commands, not -1, to help_list.
7070 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
7071 all_commands, not -1, to help_list.
7072 * symfile.c (overlay_command): Pass all_commands, not -1, to
7073 help_list.
7074 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
7075 help_list.
7076 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
7077 help_list.
7078 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
7079 -1, to help_list.
7080 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
7081 not -1, to help_list.
7082 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
7083 not -1, to help_list.
7084 * maint.c (maintenance_command, maintenance_info_command)
7085 (maintenance_print_command, maintenance_set_cmd): Pass
7086 all_commands, not -1, to help_list.
7087 * macrocmd.c (macro_command): Pass all_commands, not -1, to
7088 help_list.
7089 * language.c (set_check): Pass all_commands, not -1, to help_list.
7090 * infcmd.c (unset_command): Pass all_commands, not -1, to
7091 help_list.
7092 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
7093 help_list.
7094 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
7095 help_list.
7096 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
7097 help_list.
7098 * breakpoint.c (save_command): Pass all_commands, not -1, to
7099 help_list.
7100 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
7101 all_commands, not -1, to help_list.
7102
b94ade42
PL
71032014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
7104
7105 * regcache.c (struct register_to_invalidate): New structure.
7106 (do_register_invalidate, make_cleanup_regcache_invalidate): New
7107 functions.
7108 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
7109
31f628ae
YQ
71102014-06-12 Yao Qi <yao@codesourcery.com>
7111
7112 * varobj.c (varobj_get_num_children): Call
7113 varobj_is_dynamic_p.
7114 (varobj_list_children): Likewise.
7115 (varobj_update): Likewise. Update comments.
7116
cde5ef40
YQ
71172014-06-12 Yao Qi <yao@codesourcery.com>
7118
7119 * varobj.c (varobj_pretty_printed_p): Rename to ...
7120 (varobj_is_dynamic_p): ... this. New function.
7121 * varobj.h (varobj_pretty_printed_p): Remove declaration.
7122 (varobj_is_dynamic_p): Declare.
7123 * mi/mi-cmd-var.c (print_varobj): All callers updated.
7124 (mi_print_value_p, varobj_update_one): Likewise.
7125
576ea091
YQ
71262014-06-12 Pedro Alves <pedro@codesourcery.com>
7127 Yao Qi <yao@codesourcery.com>
7128
7129 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
7130 (varobj_get_iterator): Wrap up code for pretty-printer by
7131 "#if HAVE_PYTHON" and "#endif".
7132 (update_dynamic_varobj_children): Likewise.
7133
827f100c
YQ
71342014-06-12 Pedro Alves <pedro@codesourcery.com>
7135 Yao Qi <yao@codesourcery.com>
7136
7137 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
7138 gdb_python_initialized is false. Move some code from varobj.c.
7139 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
7140 * varobj.c: Move "varobj-iter.h" inclusion earlier.
7141 (struct varobj_item): Moved to varobj-iter.h".
7142 (varobj_clear_saved_item): New function.
7143 (update_dynamic_varobj_children): Move python-related code to
7144 py-varobj.c.
7145 (free_variable): Call varobj_clear_saved_item and
7146 varobj_iter_delete.
7147
e5250216
YQ
71482014-06-12 Pedro Alves <pedro@codesourcery.com>
7149 Yao Qi <yao@codesourcery.com>
7150
7151 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
7152 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
7153 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
7154 (py-varobj.o): New rule.
7155 * python/py-varobj.c: New file.
7156 * python/python-internal.h (py_varobj_get_iterator): Declare.
7157 * varobj-iter.h: New file.
7158 * varobj.c: Include "varobj-iter.h"
7159 (struct varobj) <child_iter>: Change its type from "PyObject *"
7160 to "struct varobj_iter *".
7161 <saved_item>: Likewise.
7162 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
7163 [HAVE_PYTHON] (varobj_get_iterator): New function.
7164 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7165 python-specific code to python/py-varobj.c.
7166 (install_visualizer): Call varobj_iter_delete instead of
7167 Py_XDECREF.
7168 * varobj.h (varobj_ensure_python_env): Declare.
7169
5a2e0d6e
YQ
71702014-06-12 Yao Qi <yao@codesourcery.com>
7171
7172 * varobj.c (struct varobj_item): New structure.
7173 (create_child_with_value): Update declaration.
7174 (varobj_add_child): Replace arguments 'name' and 'value' with
7175 'item'. All callers updated.
7176 (install_dynamic_child): Likewise.
7177 (update_dynamic_varobj_children): Likewise.
7178 (varobj_add_child): Likewise.
7179 (create_child_with_value): Likewise.
7180
919b9a93
JB
71812014-06-11 Joel Brobecker <brobecker@adacore.com>
7182
7183 * NEWS: Create a new section for the next release branch.
7184 Rename the section of the current branch, now that it has
7185 been cut.
7186
71a55bdf
JB
71872014-06-11 Joel Brobecker <brobecker@adacore.com>
7188
7189 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7190 * version.in: Bump version to 7.8.50.DATE-cvs.
7191
364fe1f7
PA
71922014-06-11 Pedro Alves <palves@redhat.com>
7193
7194 PR remote/17028
7195 * ser-mingw.c (net_windows_socket_check_pending): New function.
7196 (net_windows_select_thread): Ignore spurious wakeups. Use
7197 net_windows_socket_check_pending.
7198 (net_windows_wait_handle): Check for pending events with
7199 ioctlsocket, through net_windows_socket_check_pending, instead of
7200 checking the socket's event.
7201
5a6c7709
SC
72022014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7203
7204 * python/python-internal.h (gdb_PyObject_GetAttrString)
7205 (gdb_PyObject_HasAttrString): New inline function definitions.
7206 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7207 char * of the second argument to PyObject_GetAttrString.
74228e77 7208
0e58ee40
JB
72092014-06-10 Joel Brobecker <brobecker@adacore.com>
7210
7211 * serial.c (serial_write): Fix index of character to be printed
7212 in call to serial_logchar when serial debug traces are enabled.
7213
d190df30
JB
72142014-06-10 Joel Brobecker <brobecker@adacore.com>
7215
7216 * gdbtypes (resolve_dynamic_range): Add function description.
7217
b4b01d36
PA
72182014-06-09 Pedro Alves <palves@redhat.com>
7219
7220 * linux-nat.c (linux_child_follow_fork): Initialize status with
7221 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7222 inner block. Only pass the signal to PTRACE_DETACH if in pass
7223 state.
7224
3657956b
GB
72252014-06-09 Gary Benson <gbenson@redhat.com>
7226
7227 * common/signals.c (gdb_signal_from_host): Reorder to separate
7228 the always-available ANSI-standard signals from the signals that
7229 require checking.
7230 (do_gdb_signal_to_host): Likewise.
7231 * proc-events.c (signal_table): Likewise.
7232
c077881a
HZ
72332014-06-08 Hui Zhu <hui@codesourcery.com>
7234
7235 * common/linux-ptrace.c (linux_disable_event_reporting): New
7236 function.
7237 * common/linux-ptrace.h (linux_disable_event_reporting): New
7238 declaration.
7239 * linux-nat.c (linux_child_follow_fork): Do a single step before
7240 detach.
7241
4186eb54
KS
72422014-06-07 Keith Seitz <keiths@redhat.com>
7243
7244 Revert:
7245 PR c++/16253
7246 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7247 from symbol_matches_domain in symtab.c. All local callers
7248 of symbol_matches_domain updated.
7249 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7250 search STRUCT_DOMAIN.
7251 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7252 independently. standard_lookup will do that automatically.
7253 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7254 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7255 (cp_lookup_symbol_in_namespace): Likewise.
7256 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7257 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7258 may return a STRUCT_DOMAIN match.
7259 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7260 * cp-support.c: Include language.h.
7261 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7262 VAR_DOMAIN.
7263 * psymtab.c (match_partial_symbol): Compare the requested
7264 domain with the symbol's domain directly.
7265 (lookup_partial_symbol): Likewise.
7266 * symtab.c (lookup_symbol_in_language): Explain when/why
7267 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7268 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7269 appropriate languages.
7270 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7271 and moved to ada-lang.c
7272 (lookup_block_symbol): Explain that this function only returns
7273 symbol matching the requested DOMAIN.
7274 Compare the requested domain with the symbol's domain directly.
7275 (iterate_over_symbols): Compare the requested domain with the
7276 symbol's domain directly.
7277 * symtab.h (symbol_matches_domain): Remove.
7278
25326a28 72792014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
7280
7281 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7282 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7283 (gdbscm_guile_version_is_at_least): Declare.
7284 (gdbscm_scm_string_to_int): Declare.
7285 * guile/guile.c (gdbscm_guile_major_version): New global.
7286 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7287 (guile_datadir): New static global.
7288 (gdbscm_guile_data_directory): New function.
7289 (initialize_scheme_side): Update.
7290 (misc_guile_functions): Add guile-data-directory.
7291 (initialize_gdb_module): Fetch guile version number.
7292 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7293 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7294 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7295 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7296 comments.
7297 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7298 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7299 * guile/scm-value.c (gdbscm_value_to_string): Only call
7300 scm_port_conversion_strategy if Guile version >= 2.0.6.
7301
0a770bb2 73022014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7303
7304 * main.c (print_gdb_help): Add -q and --silent.
7305
73ba372c
GB
73062014-06-06 Gary Benson <gbenson@redhat.com>
7307
7308 * common/signals.c: Remove preprocessor conditionals for
7309 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7310 SIGSEGV and SIGTERM.
7311 * proc-events.c: Likewise.
7312
c33b2f12
MM
73132014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7314
7315 * symfile.c (symfile_free_objfile): Remove restriction to
7316 OBJF_USERLOADED.
7317 * symfile-mem.c (symbol_file_add_from_memory): Call
7318 add_target_sections_of_objfile.
7319
fb934770
LC
73202014-06-05 Ludovic Courtès <ludo@gnu.org>
7321
7322 * guile/scm-value.c (gdbscm_history_append_x): Use
7323 'vlscm_get_value_smob_arg_unsafe' instead of
7324 'vlscm_scm_to_value'.
7325
6ef284bd
SM
73262014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7327
7328 PR mi/15806
7329 * utils.c (printchar): Don't escape at all if quoter is NUL.
7330 Update function documentation to clarify effect of parameter
7331 QUOTER.
7332 * remote.c (escape_buffer): Pass '\\' as the quoter to
7333 fputstrn_unfiltered.
7334 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7335 generate the output.
7336 (mi_solib_unloaded): Same.
7337
270c9937
JB
73382014-06-05 Joel Brobecker <brobecker@adacore.com>
7339
7340 * development.sh: Delete.
7341 * Makefile.in (config.status): Adjust dependency on development.sh.
7342 * configure.ac: Adjust development.sh source call.
7343 * configure: Regenerate.
7344
16f691fb
DE
73452014-06-04 Doug Evans <xdje42@gmail.com>
7346
7347 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7348 is_scheme_bkpt, spec.
7349 (bpscm_make_breakpoint_smob): Initialize new members.
7350 (gdbscm_create_breakpoint_x): Split into two ...
7351 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7352 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7353 (scheme_function breakpoint_functions): Update.
7354 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7355 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7356 register-breakpoint!.
7357
ef7cab6b
JB
73582014-06-04 Joel Brobecker <brobecker@adacorer.com>
7359
7360 PR server/17023
7361 * mem-break.c (z_type_supported): Return zero if
7362 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7363
012370f6
TT
73642014-06-04 Tom Tromey <tromey@redhat.com>
7365
7366 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7367 value_from_contents_and_address_unresolved.
7368 (ada_template_to_fixed_record_type_1): Likewise.
7369 (ada_which_variant_applies): Likewise.
7370 * value.h (value_from_contents_and_address_unresolved): Declare.
7371 * value.c (value_from_contents_and_address_unresolved): New
7372 function.
7373 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7374 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7375 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7376
92e2a17f
TT
73772014-06-04 Tom Tromey <tromey@redhat.com>
7378
7379 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7380
c0939df1
TT
73812014-06-04 Tom Tromey <tromey@redhat.com>
7382
7383 * procfs.c (procfs_attach): Make "args" const.
7384 * windows-nat.c (windows_attach): Make "args" const.
7385 * nto-procfs.c (procfs_attach): Make "args" const.
7386 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7387 * go32-nat.c (go32_attach): Make "args" const.
7388 * gnu-nat.c (gnu_attach): Make "args" const.
7389 * darwin-nat.c (darwin_attach): Make "args" const.
7390 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7391 * linux-nat.c (linux_nat_attach): Make "args" const.
7392 * remote.c (extended_remote_attach_1, extended_remote_attach):
7393 Make "args" const.
7394 * target.h (struct target_ops) <to_attach>: Make "args" const.
7395 (find_default_attach): Likewise.
7396 * utils.c (parse_pid_to_attach): Make "args" const.
7397 * utils.h (parse_pid_to_attach): Update.
7398
8eaff7cd
TT
73992014-06-04 Tom Tromey <tromey@redhat.com>
7400
7401 * target-delegates.c: Rebuild.
7402 * target.c (default_thread_address_space): New function.
7403 (target_thread_address_space): Simplify.
7404 * target.h (struct target_ops) <to_thread_address_space>: Add
7405 TARGET_DEFAULT_FUNC.
7406
1913f160
DE
74072014-06-04 Doug Evans <xdje42@gmail.com>
7408
7409 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7410
70ad5bff
MM
74112014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7412
7413 * record-btrace.c: Include event-loop.h and inf-loop.h.
7414 (record_btrace_resume_exec_dir)
7415 (record_btrace_async_inferior_event_handler)
7416 (record_btrace_handle_async_inferior_event): New.
7417 (record_btrace_open): Create async event handler.
7418 (record_btrace_close): Delete async event handler.
7419 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7420 Mark async event handler.
7421 (record_btrace_execution_direction): New.
7422 (init_record_btrace_ops): Initialize to_execution_direction.
7423
b6210538
DE
74242014-06-03 Doug Evans <xdje42@gmail.com>
7425
7426 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7427 (gdbscm_make_parameter): Ditto.
7428
a5b1fd27
DE
74292014-06-03 Doug Evans <dje@google.com>
7430
7431 * exec.c (exec_close_1): Call clear_section_table instead of
7432 resize_section_table.
7433 (clear_section_table): New function.
7434 (resize_section_table): Make static. Rename arg num_added to
7435 adjustment.
7436 * exec.h (clear_section_table): Declare.
7437 (resize_section_table): Delete.
7438 * progspace.c (release_program_space): Call clear_section_table
7439 instead of resize_section_table.
7440
0c6e92a5
SC
74412014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7442
7443 * NEWS (Python Scripting): Add entry about the new xmethods
7444 feature.
7445
883964a7
SC
74462014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7447
7448 * python/py-xmethods.c: New file.
7449 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7450 (objfpy_dealloc): XDECREF on the new xmethods field.
7451 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7452 field.
7453 (objfpy_get_xmethods): New function.
7454 (objfile_getset): New entry 'xmethods'.
7455 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7456 (pspy_dealloc): XDECREF on the new xmethods field.
7457 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7458 field.
7459 (pspy_get_xmethods): New function.
7460 (pspace_getset): New entry 'xmethods'.
7461 * python/python-internal.h: Add declarations for new functions.
7462 * python/python.c (_initialize_python): Invoke
7463 gdbpy_initialize_xmethods.
7464 * python/lib/gdb/__init__.py (xmethods): New
7465 attribute.
7466 * python/lib/gdb/xmethod.py: New file.
7467 * python/lib/gdb/command/xmethods.py: New file.
7468
58992dc5
SC
74692014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7470
7471 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7472 best match method returned by find_overload_match is an xmethod.
7473 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7474 the best matching operator returned by find_overload_match is an
7475 xmethod.
7476 * valops.c: #include "extension.h".
7477 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7478 Return void. The list of matching source methods is returned in
7479 "fn_list" and a vector of matching debug method workers is
7480 returned in "xm_worker_vec". Update all callers.
7481 (value_find_oload_method_list): Likewise.
7482 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7483 non-NULL, then the index of the best matching method in this
7484 vector is returned. Update all callers.
7485 (find_overload_match): Include xmethods while performing overload
7486 resolution.
7487
e81e7f5e
SC
74882014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7489
7490 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7491 * extension-priv.h (struct extension_language_ops): Add the
7492 xmethod interface.
7493 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7494 get_matching_xmethod_workers, get_xmethod_argtypes,
7495 invoke_xmethod, free_xmethod_worker,
7496 free_xmethod_worker_vec): New functions.
7497 * extension.h: #include "common/vec.h".
7498 New function declarations.
7499 (struct xmethod_worker): New struct.
7500 (VEC (xmethod_worker_ptr)): New vector type.
7501 (xmethod_worker_ptr): New typedef.
7502 (xmethod_worker_vec): Likewise.
7503 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7504 builtin_type.
7505 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7506 (struct builtin_type): New field "xmethod".
7507 * valarith.c (value_ptradd): Assert that the value argument is not
7508 lval_xcallable.
7509 * valops.c (value_must_coerce_to_target): Return 0 for
7510 lval_xcallable values.
7511 * value.c (struct value): New field XM_WORKER in the field
7512 LOCATION.
7513 (value_address, value_raw_address): Return 0 for lval_xcallable
7514 values.
7515 (set_value_address): Assert that the value is not an
7516 lval_xcallable.
7517 (value_free): Free the associated xmethod worker when freeing
7518 lval_xcallable values.
7519 (set_value_component_location): Assert that the WHOLE value is not
7520 lval_xcallable.
7521 (value_of_xmethod, call_xmethod): New functions.
7522 * value.h: Declare "struct xmethod_worker".
7523 Declare new functions value_of_xmethod, call_xmethod.
7524
ef370185
JB
75252014-06-03 Joel Brobecker <brobecker@adacore.com>
7526 Pedro Alves <palves@redhat.com>
7527
7528 PR breakpoints/17000
7529 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7530 New function, extracted from software_breakpoint_inserted_here_p.
7531 (software_breakpoint_inserted_here_p): Replace factored out code
7532 by call to find_non_raw_software_breakpoint_inserted_here.
7533 (bp_target_info_copy_insertion_state): New function.
7534 (bkpt_insert_location): Handle the case of a single-step
7535 breakpoint already inserted at the same address.
7536 (bkpt_remove_location): Handle the case of a single-step
7537 breakpoint still inserted at the same address.
7538 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7539 breakpoint already inserted at the same address.
7540 (deprecated_remove_raw_breakpoint): Handle the case of a
7541 non-raw breakpoint still inserted at the same address.
7542 (find_single_step_breakpoint): New function, extracted from
7543 single_step_breakpoint_inserted_here_p.
7544 (find_single_step_breakpoint): New function,
7545 factored out from single_step_breakpoint_inserted_here_p.
7546 (single_step_breakpoint_inserted_here_p): Reimplement.
7547
1e2ccb61
BM
75482014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7549
7550 Pushed by Joel Brobecker <brobecker@adacore.com>
7551 * source.c (show_substitute_path_command): Fix display of matching
7552 substitution rules.
7553
d3448d85
GB
75542014-06-03 Gary Benson <gbenson@redhat.com>
7555
7556 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7557
06eb1586
DE
75582014-06-02 Doug Evans <xdje42@gmail.com>
7559
7560 Add parameter support for Guile.
7561 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7562 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7563 (scm-param.o): New rule.
7564 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7565 (gdbscm_misc_error): Declare.
7566 (gdbscm_canonicalize_command_name): Declare.
7567 (gdbscm_scm_to_host_string): Declare.
7568 (gdbscm_scm_from_host_string): Declare.
7569 (gdbscm_initialize_parameters): Declare.
7570 * guile/guile.c (initialize_gdb_module): Call
7571 gdbscm_initialize_parameters.
7572 * guile/lib/gdb.scm: Export parameter symbols.
7573 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7574 cmdscm_canonicalize_name and made public. All callers updated.
7575 * guile/scm-exception.c (gdbscm_misc_error): New function.
7576 * guile/scm-param.c: New file.
7577 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7578 (gdbscm_scm_to_host_string): New function.
7579 (gdbscm_scm_from_host_string): New function.
7580 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7581
e698b8c4
DE
75822014-06-02 Doug Evans <xdje42@gmail.com>
7583
7584 Add command support for Guile.
7585 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7586 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7587 (scm-cmd.o): New rule.
7588 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7589 (gdbscm_user_error_p): Declare.
7590 (gdbscm_parse_command_name): Declare.
7591 (gdbscm_valid_command_class_p): Declare.
7592 (gdbscm_initialize_commands): Declare.
7593 * guile/guile.c (initialize_gdb_module): Call
7594 gdbscm_initialize_commands.
7595 * guile/lib/gdb.scm: Export command symbols.
7596 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7597 (throw-user-error): New function.
7598 * guile/scm-cmd.c: New file.
7599 * guile/scm-exception.c (user_error_symbol): New static global.
7600 (gdbscm_user_error_p): New function.
7601 (gdbscm_initialize_exceptions): Set user_error_symbol.
7602 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7603
fb1f94b0
PM
76042014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7605
7606 * top.c (command_loop): Handle comments here...
7607 (command_line_input): ... not here.
7608
ded03782
DE
76092014-06-02 Doug Evans <xdje42@gmail.com>
7610
7611 Add progspace support for Guile.
7612 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7613 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7614 (scm-progspace.o): New rule.
7615 * guile/guile-internal.h (pspace_smob): New typedef.
7616 (psscm_pspace_smob_pretty_printers): Declare.
7617 (psscm_pspace_smob_from_pspace): Declare.
7618 (psscm_scm_from_pspace): Declare.
7619 * guile/guile.c (initialize_gdb_module): Call
7620 gdbscm_initialize_pspaces.
7621 * guile/lib/gdb.scm: Export progspace symbols.
7622 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7623 support.
7624 (append-pretty-printer!): Ditto.
7625 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7626 Implement.
7627 * guile/scm-progspace.c: New file.
7628
397998fc
AM
76292014-06-03 Alan Modra <amodra@gmail.com>
7630
7631 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7632 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7633
6aa5f3a6
DE
76342014-06-02 Doug Evans <dje@google.com>
7635
7636 Add support for skeletonless type units.
7637 * dwarf2read.c (struct dwarf2_per_objfile): New member
7638 n_allocated_type_units.
7639 (struct dwarf2_per_objfile) <tu_stats>: New member
7640 nr_all_type_units_reallocs.
7641 (create_signatured_type_table_from_index): Initialize
7642 n_allocated_type_units
7643 (create_all_type_units): Ditto.
7644 (add_type_unit): Move up in file. New arg slot.
7645 All callers updated. Increase space for all_type_units more
7646 efficiently.
7647 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7648 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7649 (lookup_dwp_signatured_type): Ditto.
7650 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7651 All callers updated.
7652 (build_type_psymtabs_1): Leave type_unit_groups as
7653 NULL if no TUs present.
7654 (print_tu_stats): New function.
7655 (process_skeletonless_type_unit): New function.
7656 (process_dwo_file_for_skeletonless_type_units): New
7657 function.
7658 (process_skeletonless_type_units): New function.
7659 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7660 Call print tu_stats if debugging enabled.
7661
41fac0cf
PA
76622014-06-02 Pedro Alves <palves@redhat.com>
7663
7664 * breakpoint.c (build_target_command_list): Don't build a command
7665 list if we have any duplicate location that isn't a dprintf.
7666
cd1608cc
PA
76672014-06-02 Pedro Alves <palves@redhat.com>
7668
7669 * breakpoint.c (dprintf_breakpoint_hit): New function.
7670 (initialize_breakpoint_ops): Install it as dprintf's
7671 breakpoint_hit method.
7672
486ef3b9
JB
76732014-06-02 Joel Brobecker <brobecker@adacore.com>
7674
7675 * source.c (substitute_path_rule_matches): Simplify using
7676 filename_ncmp instead of FILENAME_CMP.
7677
230cd560
JB
76782014-06-02 Joel Brobecker <brobecker@adacore.com>
7679
7680 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7681
16954d5d
LC
76822014-06-01 Ludovic Courtès <ludo@gnu.org>
7683
7684 * configure.ac: When Guile is available, check for the
7685 availability of 'scm_new_smob'.
7686 * configure, config.h.in: Regenerate.
7687 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7688 function.
7689
53e8a631
AB
76902014-05-30 Andrew Burgess <aburgess@broadcom.com>
7691
7692 * frame.c (struct frame_info): Add stop_string field.
7693 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7694 (get_prev_frame_always): Old content moved into
7695 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7696 TRY_CATCH, handle MEMORY_ERROR exceptions.
7697 (frame_stop_reason_string): New function definition.
7698 * frame.h (unwind_stop_reason_to_string): Extend comment to
7699 mention frame_stop_reason_string.
7700 (frame_stop_reason_string): New function declaration.
7701 * stack.c (frame_info): Switch to frame_stop_reason_string.
7702 (backtrace_command_1): Switch to frame_stop_reason_string.
7703 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7704 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7705 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7706
70e38b8e
AB
77072014-05-30 Andrew Burgess <aburgess@broadcom.com>
7708
7709 * frame.c (frame_stop_reason_string): Rename to ...
7710 (unwind_stop_reason_to_string): this.
7711 * frame.h (frame_stop_reason_string): Rename to ...
7712 (unwind_stop_reason_to_string): this.
7713 * stack.c (frame_info): Update call to frame_stop_reason_string.
7714 (backtrace_command_1): Likewise.
7715 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7716 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7717
938f0e2f
AB
77182014-05-30 Andrew Burgess <aburgess@broadcom.com>
7719
7720 * frame.c (remove_prev_frame): New function.
7721 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7722 remove_prev_frame.
7723
a09dd441
PA
77242014-05-29 Pedro Alves <palves@redhat.com>
7725
7726 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7727 and make it const. When a single-step decays to a continue,
7728 clear 'step', not 'hw_step'. Pass whether the caller wanted
7729 to step to user_visible_resume_ptid, not what we ask the
7730 target to do.
7731
bdc36728
PA
77322014-05-29 Pedro Alves <palves@redhat.com>
7733
7734 * infrun.c (process_event_stop_test, handle_step_into_function)
7735 (handle_step_into_function_backward): Adjust.
7736 Don't set the even thread's stop_step and call stop_waiting before
7737 calling end_stepping_range. Instead do that ...
7738 (end_stepping_range): ... here. Take an ecs pointer parameter.
7739
22bcd14b
PA
77402014-05-29 Pedro Alves <palves@redhat.com>
7741
7742 * infrun.c (stop_stepping): Rename to ...
7743 (stop_waiting): ... this.
7744 (proceed): Update comment.
7745 (process_event_stop_test, handle_inferior_event)
7746 (handle_signal_stop, handle_step_into_function)
7747 (handle_step_into_function_backward): Update.
7748
4ae57c05
PA
77492014-05-29 Pedro Alves <palves@redhat.com>
7750
7751 * infcall.c (run_inferior_call): Don't check whether the current
7752 thread is running after the proceed call.
7753
329ea579
PA
77542014-05-29 Pedro Alves <palves@redhat.com>
7755 Tom Tromey <tromey@redhat.com>
7756
7757 * NEWS: Mention "maint set target-async", "set mi-async", and that
7758 background execution commands are now always available.
7759 * target.h (target_async_permitted): Update comment.
7760 * target.c (target_async_permitted, target_async_permitted_1):
7761 Default to 1.
7762 (set_target_async_command): Rename to ...
7763 (maint_set_target_async_command): ... this.
7764 (show_target_async_command): Rename to ...
7765 (maint_show_target_async_command): ... this.
7766 (_initialize_target): Adjust.
7767 * infcmd.c (prepare_execution_command): Make extern.
7768 * inferior.h (prepare_execution_command): Declare.
7769 * infrun.c (set_observer_mode): Leave target async alone.
7770 * mi/mi-interp.c (mi_interpreter_init): Install
7771 mi_on_sync_execution_done as sync_execution_done observer.
7772 (mi_on_sync_execution_done): New function.
7773 (mi_execute_command_input_handler): Don't print the prompt if we
7774 just started a synchronous command with an async target.
7775 (mi_on_resume): Check sync_execution before printing prompt.
7776 * mi/mi-main.h (mi_async_p): Declare.
7777 * mi/mi-main.c: Include gdbcmd.h.
7778 (mi_async_p): New function.
7779 (mi_async, mi_async_1): New globals.
7780 (set_mi_async_command, show_mi_async_command, mi_async): New
7781 functions.
7782 (exec_continue): Call prepare_execution_command.
7783 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7784 (mi_execute_async_cli_command): Use mi_async_p.
7785 (_initialize_mi_main): Install "set mi-async". Make
7786 "target-async" a deprecated alias.
7787
92bcb5f9
PA
77882014-05-29 Pedro Alves <palves@redhat.com>
7789
7790 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7791 (_initialize_cli_interp): Adjust.
7792 * event-loop.c: Include "observer.h".
7793 (start_event_loop): Notify 'command_error' observers instead of
7794 calling display_gdb_prompt. Remove FIXME comment.
7795 * event-top.c (display_gdb_prompt): Remove call into the
7796 interpreters.
7797 * inf-loop.c: Include "observer.h".
7798 (inferior_event_handler): Notify 'command_error' observers instead
7799 of calling display_gdb_prompt.
7800 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7801 observers instead of calling display_gdb_prompt.
7802 * interps.c (interp_set): Don't call display_gdb_prompt.
7803 (current_interp_display_prompt_p): Delete.
7804 * interps.h (interp_prompt_p): Delete declaration.
7805 (interp_prompt_p_ftype): Delete.
7806 (struct interp_procs) <prompt_proc_p>: Delete field.
7807 (current_interp_display_prompt_p): Delete declaration.
7808 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7809 (_initialize_mi_interp): Adjust.
7810 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7811 'command_error' observers.
7812 (tui_on_sync_execution_done, tui_on_command_error): New
7813 functions.
7814 (tui_display_prompt_p): Delete.
7815 (_initialize_tui_interp): Adjust.
7816
fd664c91
PA
78172014-05-29 Pedro Alves <palves@redhat.com>
7818
7819 PR gdb/13860
7820 * cli/cli-interp.c: Include infrun.h and observer.h.
7821 (cli_uiout, cli_interp): New globals.
7822 (cli_on_signal_received, cli_on_end_stepping_range)
7823 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7824 functions.
7825 (cli_interpreter_init): Install them as 'end_stepping_range',
7826 'signal_received' 'signal_exited', 'exited' and 'no_history'
7827 observers.
7828 (_initialize_cli_interp): Remove cli_interp local.
7829 * infrun.c (handle_inferior_event): Call the several stop reason
7830 observers instead of printing the stop reason directly.
7831 (end_stepping_range): New function.
7832 (print_end_stepping_range_reason, print_signal_exited_reason)
7833 (print_exited_reason, print_signal_received_reason)
7834 (print_no_history_reason): Make static, and add an uiout
7835 parameter. Print to that instead of to CURRENT_UIOUT.
7836 * infrun.h (print_end_stepping_range_reason)
7837 (print_signal_exited_reason, print_exited_reason)
7838 (print_signal_received_reason print_no_history_reason): New
7839 declarations.
7840 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7841 'mi_uiout'.
7842 <cli_uiout>: New field.
7843 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7844 uiout for CLI output. Install 'signal_received',
7845 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7846 observers.
7847 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7848 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7849 (mi_on_no_history): New functions.
7850 (ui_out_free_cleanup): Delete function.
7851 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7852 instead use the one already stored in the MI interpreter data.
7853 (mi_ui_out): Adjust.
7854 * tui/tui-interp.c: Include infrun.h and observer.h.
7855 (tui_interp): New global.
7856 (tui_on_signal_received, tui_on_end_stepping_range)
7857 (tui_on_signal_exited, tui_on_exited)
7858 (tui_on_no_history): New functions.
7859 (tui_init): Install them as 'end_stepping_range',
7860 'signal_received' 'signal_exited', 'exited' and 'no_history'
7861 observers.
7862 (_initialize_tui_interp): Delete tui_interp local.
7863
8817a6f2
PA
78642014-05-29 Pedro Alves <palves@redhat.com>
7865
7866 PR gdb/15713
7867 * linux-nat.c (linux_nat_resume_callback): Rename the second
7868 parameter to 'except'. Skip LP if it points to EXCEPT.
7869 (linux_nat_resume): Don't mark the event lwp as not stopped
7870 before resuming sibling lwps. Instead ask
7871 linux_nat_resume_callback to skip the event lwp. Mark it as not
7872 stopped after actually resuming it.
7873 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7874 resuming it.
7875 (wait_lwp): Mark the lwp as stopped here.
7876 (stop_wait_callback): Mark the lwp as not stopped right after
7877 resuming it. Don't mark lwps as stopped here.
7878 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7879 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7880
251bde03
PA
78812014-05-29 Pedro Alves <palves@redhat.com>
7882
7883 PR PR15693
7884 * infrun.c (resume): Determine how much to resume depending on
7885 whether the caller wanted a step, not whether we can hardware step
7886 the target. Mark all threads that we intend to run as running,
7887 unless we're calling an inferior function.
7888 (normal_stop): If the thread is running an infcall, don't finish
7889 thread state.
7890 * target.c (target_resume): Don't mark threads as running here.
7891
7f3c0343
JB
78922014-05-28 Joel Brobecker <brobecker@adacore.com>
7893
7894 * serial.c (_initialize_serial): Remove support for
7895 the "set remotebaud" and "show remotebaud" commands.
7896 * NEWS: Add entry documenting the removal of that command.
7897
ee34b3f9
YQ
78982014-05-28 Yao Qi <yao@codesourcery.com>
7899
7900 * charset.c: Fix typo in comments.
7901
add6c04d
GB
79022014-05-27 Gary Benson <gbenson@redhat.com>
7903
7904 * utils.c (internal_vproblem): Prompt for a bug report.
7905
92c48fc5
AW
79062014-05-26 Andy Wingo <wingo@igalia.com>
7907
7908 * guile/scm-arch.c (arscm_mark_arch_smob):
7909 * guile/scm-block.c (bkscm_mark_block_smob)
7910 (bkscm_mark_block_syms_progress_smob):
7911 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7912 * guile/scm-exception.c (exscm_mark_exception_smob):
7913 * guile/scm-frame.c (frscm_mark_frame_smob):
7914 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7915 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7916 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7917 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7918 (ppscm_mark_pretty_printer_worker_smob):
7919 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7920 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7921 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7922 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7923 mark functions.
7924 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7925 function.
7926
b2715b27
AW
79272014-05-26 Andy Wingo <wingo@igalia.com>
7928 Doug Evans <xdje42@gmail.com>
7929
7930 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7931 empty_base_class. All uses updated.
7932 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7933 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7934 Adapt all callers.
7935 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7936 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7937 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7938 (gdbscm_gsmob_has_property_p, add_property_name)
7939 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7940 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7941 (gdb-object-has-property?, gdb-object-properties): Remove.
7942 (gdb-object-kind): Renamed from gsmob-kind.
7943
214ab2da
AW
79442014-05-26 Andy Wingo <wingo@igalia.com>
7945
7946 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7947 * configure: Regenerate.
7948
589fdceb
MM
79492014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7950
7951 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7952
67b5c0c1
MM
79532014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7954
7955 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7956 (replay_memory_access_read_only, replay_memory_access_read_write)
7957 (replay_memory_access_types, replay_memory_access)
7958 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7959 (cmd_set_record_btrace, cmd_show_record_btrace)
7960 (cmd_show_replay_memory_access): New.
7961 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7962 (record_btrace_remove_breakpoint): Replace
7963 record_btrace_allow_memory_access with replay_memory_access.
7964 (_initialize_record_btrace): Add commands.
7965 * NEWS: Announce it.
7966
036cd381
RR
79672014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7968
7969 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7970
c77c1e42
RR
79712014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7972
7973 * MAINTAINERS (Write After Approval): Move self back from
7974 paper trail.
7975
45741a9c
PA
79762014-05-22 Pedro Alves <palves@redhat.com>
7977
7978 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7979 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7980 (disable_randomization, enum exec_direction_kind)
7981 (execution_direction, stop_registers, start_remote)
7982 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7983 (wait_for_inferior, normal_stop, get_last_target_status)
7984 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7985 (insert_step_resume_breakpoint_at_sal)
7986 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7987 (set_step_info, print_stop_event, signal_stop_state)
7988 (signal_print_state, signal_pass_state, signal_stop_update)
7989 (signal_print_update, signal_pass_update)
7990 (update_signals_program_target, clear_exit_convenience_vars)
7991 (displaced_step_dump_bytes, update_observer_mode)
7992 (signal_catch_update, gdb_signal_from_command): Move
7993 declarations ...
7994 * infrun.h: ... to this new file.
7995 * amd64-tdep.c: Include infrun.h.
7996 * annotate.c: Include infrun.h.
7997 * arch-utils.c: Include infrun.h.
7998 * arm-linux-tdep.c: Include infrun.h.
7999 * arm-tdep.c: Include infrun.h.
8000 * break-catch-sig.c: Include infrun.h.
8001 * breakpoint.c: Include infrun.h.
8002 * common/agent.c: Include infrun.h instead of inferior.h.
8003 * corelow.c: Include infrun.h.
8004 * event-top.c: Include infrun.h.
8005 * go32-nat.c: Include infrun.h.
8006 * i386-tdep.c: Include infrun.h.
8007 * inf-loop.c: Include infrun.h.
8008 * infcall.c: Include infrun.h.
8009 * infcmd.c: Include infrun.h.
8010 * infrun.c: Include infrun.h.
8011 * linux-fork.c: Include infrun.h.
8012 * linux-nat.c: Include infrun.h.
8013 * linux-thread-db.c: Include infrun.h.
8014 * monitor.c: Include infrun.h.
8015 * nto-tdep.c: Include infrun.h.
8016 * procfs.c: Include infrun.h.
8017 * record-btrace.c: Include infrun.h.
8018 * record-full.c: Include infrun.h.
8019 * remote-m32r-sdi.c: Include infrun.h.
8020 * remote-mips.c: Include infrun.h.
8021 * remote-notif.c: Include infrun.h.
8022 * remote-sim.c: Include infrun.h.
8023 * remote.c: Include infrun.h.
8024 * reverse.c: Include infrun.h.
8025 * rs6000-tdep.c: Include infrun.h.
8026 * s390-linux-tdep.c: Include infrun.h.
8027 * solib-irix.c: Include infrun.h.
8028 * solib-osf.c: Include infrun.h.
8029 * solib-svr4.c: Include infrun.h.
8030 * target.c: Include infrun.h.
8031 * top.c: Include infrun.h.
8032 * windows-nat.c: Include infrun.h.
8033 * mi/mi-interp.c: Include infrun.h.
8034 * mi/mi-main.c: Include infrun.h.
8035 * python/py-threadevent.c: Include infrun.h.
8036
98eb56a4
PA
80372014-05-22 Pedro Alves <palves@redhat.com>
8038
8039 * infrun.c (handle_inferior_event): Store the exit code for
8040 --return-child-result here, instead of ...
8041 (print_exited_reason): ... here.
8042
17b2616c
PA
80432014-05-21 Pedro Alves <palves@redhat.com>
8044
8045 PR gdb/13860
8046 * gdbthread.h (struct thread_control_state): New field
8047 `command_interp'.
8048 * infrun.c (follow_fork): Copy the new thread control field to the
8049 child fork thread.
8050 (clear_proceed_status_thread): Clear the new thread control field.
8051 (proceed): Set the new thread control field.
8052 * interps.h (command_interp): Declare.
8053 * interps.c (command_interpreter): New global.
8054 (command_interp): New function.
8055 (interp_exec): Set `command_interpreter' while here.
8056 * cli-out.c (cli_uiout_dtor): New function.
8057 (cli_ui_out_impl): Install it.
8058 * mi/mi-interp.c: Include cli-out.h.
8059 (mi_cmd_interpreter_exec): Add comment.
8060 (restore_current_uiout_cleanup): New function.
8061 (ui_out_free_cleanup): New function.
8062 (mi_on_normal_stop): If finishing an execution command started by
8063 a CLI command, or any kind of breakpoint-like event triggered,
8064 print the stop event to the output (CLI) stream.
8065 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
8066
5166082f
PA
80672014-05-21 Pedro Alves <palves@redhat.com>
8068
8069 * cli/cli-cmds.c (list_command): Handle the first "list" after the
8070 current source line having changed.
8071 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
8072 * infrun.c (normal_stop): Adjust call to
8073 set_current_sal_from_frame.
8074 * source.c (clear_lines_listed_range): New function.
8075 (set_current_source_symtab_and_line, identify_source_line): Clear
8076 the lines listed range.
8077 (line_info): Handle the first "info line" after the current source
8078 line having changed.
8079 * stack.c (print_stack_frame): Remove center handling.
8080 (set_current_sal_from_frame): Remove 'center' parameter. Don't
8081 center sal.line.
8082
c1ee2fb3
PA
80832014-05-21 Pedro Alves <palves@redhat.com>
8084
8085 * inf-child.c (inf_child_mourn_inferior): New function.
8086 * inf-child.h (inf_child_mourn_inferior): New declaration.
8087 * darwin-nat.c (darwin_mourn_inferior): Use
8088 inf_child_mourn_inferior.
8089 * gnu-nat.c (gnu_mourn_inferior): Likewise.
8090 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
8091 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
8092 * nto-procfs.c (procfs_mourn_inferior): Likewise.
8093 * windows-nat.c (windows_mourn_inferior): Likewise.
8094
5c6d4fb2
DE
80952014-05-21 Doug Evans <xdje42@gmail.com>
8096
250748cb 8097 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 8098
4a2722c5
DE
80992014-05-21 Doug Evans <xdje42@gmail.com>
8100
17292b30 8101 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
8102 (gdbscm_out_of_range_error): Ditto.
8103 (gdbscm_memory_error): Ditto.
250748cb
DE
8104 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
8105 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
8106 (gdbscm_out_of_range_error): Update.
8107 (gdbscm_memory_error): Update.
8108 (gdbscm_scm_to_target_string_unsafe): Delete.
8109
6a3cb8e8
PA
81102014-05-21 Pedro Alves <palves@redhat.com>
8111
8112 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
8113 globals.
8114 (inf_child_open_target): New function.
8115 (inf_child_open): Use inf_child_open_target to push the target
8116 instead of erroring out.
8117 (inf_child_disconnect, inf_child_close)
8118 (inf_child_maybe_unpush_target): New functions.
8119 (inf_child_target): Install inf_child_disconnect and
8120 inf_child_close. Store a pointer to the returned object.
8121 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
8122 declarations.
8123 * target.c (auto_connect_native_target): New global.
8124 (show_default_run_target): New function.
8125 (find_default_run_target): Return NULL if automatically connecting
8126 to the native target is disabled.
8127 (_initialize_target): Install set/show auto-connect-native-target.
8128 * NEWS: Mention "set auto-connect-native-target", and "target
8129 native".
8130 * linux-nat.c (super_close): New global.
8131 (linux_nat_close): Call super_close.
8132 (linux_nat_add_target): Store a pointer to the base class's
8133 to_close method.
8134 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
8135 inf_child_maybe_unpush.
8136 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
8137 already pushed.
8138 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
8139 the inferior. Use inf_child_maybe_unpush_target.
8140 (inf_ttrace_attach): Don't push the target if it is already
8141 pushed.
8142 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
8143 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
8144 after mourning the inferior. Use inf_child_maybe_unpush_target.
8145 (darwin_attach_pid): Don't push the target if it is already
8146 pushed.
8147 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
8148 mourning the inferior. Use inf_child_maybe_unpush_target.
8149 (gnu_detach): Use inf_child_maybe_unpush_target.
8150 * go32-nat.c (go32_create_inferior): Don't push the target if it
8151 is already pushed.
8152 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
8153 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
8154 (procfs_open): Rename to ...
8155 (procfs_open_1): ... this. Add target_ops parameter. Adjust
8156 comments. Can target_preopen before changing node. Call
8157 inf_child_open_target to push the target explicitly.
8158 (procfs_attach): Don't push the target if it is already pushed.
8159 (procfs_detach): Use inf_child_maybe_unpush_target.
8160 (procfs_create_inferior): Don't push the target if it is already
8161 pushed.
8162 (nto_native_ops): New global.
8163 (procfs_open): Reimplement.
8164 (procfs_native_open): New function.
8165 (init_procfs_targets): Install procfs_native_open as to_open of
8166 "target native". Store a pointer to the "native" target in
8167 nto_native_ops.
8168 * procfs.c (procfs_attach): Don't push the target if it is already
8169 pushed.
8170 (procfs_detach): Use inf_child_maybe_unpush_target.
8171 (procfs_mourn_inferior): Only unpush the target after mourning the
8172 inferior. Use inf_child_maybe_unpush_target.
8173 (procfs_init_inferior): Don't push the target if it is already
8174 pushed.
8175 * windows-nat.c (do_initial_windows_stuff): Don't push the target
8176 if it is already pushed.
8177
930ee1b1
PA
81782014-05-21 Pedro Alves <palves@redhat.com>
8179
8180 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8181 and "procfs" targets are now called "native" instead.
8182
1f5d1b13
PA
81832014-05-21 Pedro Alves <palves@redhat.com>
8184
8185 * go32-nat.c (go32_open): Delete.
8186 (go32_target): Don't override the to_open method.
8187
132f8e03
PA
81882014-05-21 Pedro Alves <palves@redhat.com>
8189
8190 * nto-procfs.c (procfs_can_run): New function.
8191 (nto_procfs_ops): New global.
8192 (init_procfs_targets): New, based on procfs_target. Install
8193 "target native" in addition to "target procfs".
8194 (_initialize_procfs): Call init_procfs_targets instead of adding
8195 the target here.
8196
03c136c3
PA
81972014-05-21 Pedro Alves <palves@redhat.com>
8198
8199 * windows-nat.c (windows_target): Don't override to_shortname,
8200 to_longname or to_doc.
8201
a635d0f3
PA
82022014-05-21 Pedro Alves <palves@redhat.com>
8203
8204 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8205 to_doc.
8206
4f9b5133
PA
82072014-05-21 Pedro Alves <palves@redhat.com>
8208
8209 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8210 to_shortname, to_longname or to_doc.
8211
bc85afde
PA
82122014-05-21 Pedro Alves <palves@redhat.com>
8213
8214 * go32-nat.c (go32_target): Don't override to_shortname,
8215 to_longname or to_doc.
8216
4ebfc96e
PA
82172014-05-21 Pedro Alves <palves@redhat.com>
8218
8219 * inf-child.c (inf_child_open): Remove mention of "child".
8220 (inf_child_target): Rename target to "native" instead of "child".
8221
2648dfed
AA
82222014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8223
8224 * Makefile.in (SFILES): Delete "regset.c".
8225 (COMMON_OBS): Delete "regset.o".
8226 * regset.c: Remove.
8227 * regset.h (regset_alloc): Delete prototype.
8228
b13feb94
AA
82292014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8230
8231 * sparc-linux-tdep.c (sparc32_linux_gregset)
8232 (sparc32_linux_fpregset): New static regset structures.
8233 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8234 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8235 'fpregset' fields.
8236 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8237 (sparc64_linux_fpregset): New static regset structures.
8238 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8239 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8240 New static regset structures.
8241 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8242 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8243 New static regset structures.
8244 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8245 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8246 New static regset structures.
8247 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8248 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8249 New static regset structures.
8250 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8251
b4fd25c9
AA
82522014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8253
8254 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8255 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8256 register maps ("regmaps") from "*regset" to "*regmap". Do this
8257 for all regmap types and variables.
8258 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8259 (sparc32_linux_supply_core_gregset)
8260 (sparc32_linux_collect_core_gregset)
8261 (sparc32_linux_supply_core_fpregset)
8262 (sparc32_linux_collect_core_fpregset): Likewise.
8263 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8264 (sparc_gregmap, sparc_fpregmap): ... these.
8265 (sparc_supply_gregset, sparc_collect_gregset)
8266 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8267 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8268 (_initialize_sparc_nat): Rename regmaps.
8269 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8270 (sparc_gregmap, sparc_fpregmap): ... these.
8271 (sparc_supply_gregset, sparc_collect_gregset)
8272 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8273 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8274 Rename macros to...
8275 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8276 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8277 Likewise.
8278 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8279 Rename to...
8280 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8281 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8282 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8283 regmaps.
8284 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8285 (sparc32_bsd_fpregset): Rename to...
8286 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8287 (sparc32_bsd_fpregmap): ... these.
8288 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8289 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8290 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8291 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8292 (struct sparc_gregmap, struct sparc_fpregmap)
8293 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8294 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8295 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8296 (sparc32_supply_regset, sparc32_collect_gregset)
8297 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8298 prototypes.
8299 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8300 (sparc64_linux_ptrace_gregmap): ... this.
8301 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8302 (_initialize_sparc64_linux_nat): Rename regmaps.
8303 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8304 (sparc64_linux_core_gregmap): ... this.
8305 (sparc64_linux_supply_core_gregset)
8306 (sparc64_linux_collect_core_gregset)
8307 (sparc64_linux_supply_core_fpregset)
8308 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8309 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8310 (sparc64_sol2_fpregset): Rename to...
8311 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8312 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8313 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8314 regmaps.
8315 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8316 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8317 (sparc64_bsd_fpregset): Rename to...
8318 (struct sparc_gregmap, sparc64_sol2_gregmap)
8319 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8320 (sparc64_bsd_fpregmap): ... these.
8321 (sparc64_supply_gregset, sparc64_collect_gregset)
8322 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8323 prototypes.
8324 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8325 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8326 (sparc64fbsd_gregmap): ... this.
8327 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8328 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8329 Rename regmaps.
8330 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8331 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8332 (sparc64nbsd_collect_fpregset): Likewise.
8333 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8334 (sparc64nbsd_gregmap): ... this.
8335 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8336 regmaps.
8337 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8338 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8339 (sparc64obsd_gregmap): ... this.
8340 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8341 regmaps.
8342 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8343 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8344 (sparc32nbsd_gregmap): ... this.
8345 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8346 regmaps.
8347
8fea3224
AA
83482014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8349
8350 * score-tdep.c (score7_linux_gregset): New static regset
8351 structure.
8352 (score7_linux_regset_from_core_section): Remove dynamic regset
8353 allocation.
8354 (score_gdbarch_init): Drop allocation of tdep structure.
8355 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8356
24534243
AA
83572014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8358
8359 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8360 regset structures.
8361 (am33_regset_from_core_section): Remove dynamic regset
8362 allocations.
8363
b7195f27
AA
83642014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8365
8366 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8367 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8368 structures.
8369 (mips_linux_regset_from_core_section): Remove dynamic regset
8370 allocations.
8371 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8372 'gregset64', 'fpregset', and 'fpregset64'.
8373 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8374 deleted tdep fields.
8375
ecc37a5a
AA
83762014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8377
8378 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8379 regset structures.
8380 (amd64_regset_from_core_section): Remove dynamic regset
8381 allocations.
8382 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8383 structure.
8384 (amd64obsd_regset_from_core_section): Remove dynamic regset
8385 allocation.
8386 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8387 Likewise.
8388 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8389 x86-common regset supply function.
8390 * i386-tdep.c (i386_collect_gregset): Make static.
8391 (i386_gregset): New global regset structure.
8392 (i386_fpregset, i386_xstateregset): New static regset structures.
8393 (i386_regset_from_core_section): Remove dynamic regset
8394 allocations.
8395 (i386_gdbarch_init): Remove initialization of tdep fields
8396 'gregset', 'fpregset', and 'xstateregset'.
8397 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8398 'fpregset', and 'xstateregset'.
8399 (i386_collect_gregset): Remove prototype.
8400 (i386_gregset): New declaration.
8401 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8402 structure.
8403 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8404 allocation.
8405
b7611c43
AA
84062014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8407
8408 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8409 (arm_linux_vfpregset): New static regset structures.
8410 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8411 regset structures.
8412 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8413 and 'vfpregset' fields.
8414
a069a2bd
AA
84152014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8416
8417 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8418 (aarch64_linux_fpregset): New static regset structures.
8419 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8420 of regset structures.
8421 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8422 'fpregset' fields.
8423
09424cff
AA
84242014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8425
8426 * regset.h (struct regset): Remove gdbarch field.
8427 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8428 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8429 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8430 Likewise.
8431 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8432 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8433 (ppc32_linux_vsxregset): Likewise.
8434 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8435 via the regcache instead of the regset.
8436 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8437 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8438 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8439 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8440 Likewise.
8441
3ca7dae4
AA
84422014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8443
8444 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8445 Constify structures.
8446 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8447 (alphanbsd_aout_gregset): Likewise.
8448 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8449 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8450 Likewise.
8451 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8452 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8453 Likewise.
8454 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8455 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8456 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8457 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8458 * m88k-tdep.c (m88k_gregset): Likewise.
8459 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8460 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8461 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8462 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8463 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8464 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8465 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8466 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8467 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8468 Likewise.
8469 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8470 * sh-tdep.h (sh_corefile_gregset): Likewise.
8471 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8472 * vax-tdep.c (vax_gregset): Likewise.
8473
5876f503
JK
84742014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8475
8476 Fix TLS access for -static -pthread.
8477 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8478 (try_thread_db_load_1): Initialize it.
8479 (thread_db_get_thread_local_address): Call it if LM is zero.
8480 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8481 * target.h (struct target_ops) (to_get_thread_local_address): Add
8482 load_module_addr comment.
8483
0256a6ac
PA
84842014-05-21 Pedro Alves <palves@redhat.com>
8485
8486 * dcache.c (dcache_read_memory_partial): If reading the cache line
8487 fails, fallback to reading just the memory the caller wanted.
8488
227533ac
DE
84892014-05-20 Doug Evans <dje@google.com>
8490
8491 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8492 instead of get_current_arch.
8493
936d2992
PA
84942014-05-20 Pedro Alves <palves@redhat.com>
8495
8496 * NEWS: Mention that compare-sections now works with all targets.
8497
8498 * remote.c (PACKET_qCRC): New enum value.
8499 (remote_verify_memory): Don't send qCRC if the target has no
8500 execution. Use packet_support/packet_ok. If the target doesn't
8501 support the qCRC packet, fallback to a deep memory copy.
8502 (compare_sections_command): Say "target image" instead of "remote
8503 executable".
8504 (_initialize_remote): Add PACKET_qCRC to the list of config
8505 packets that have no associated command. Extend comment.
8506 * target.c (simple_verify_memory, default_verify_memory): New
8507 function.
8508 * target.h (struct target_ops) <to_verify_memory>: Default to
8509 default_verify_memory.
8510 (simple_verify_memory): New declaration.
8511 * target-delegates.c: Regenerate.
8512
e59fa00f
MM
85132014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8514
8515 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8516
f2205de0
HZ
85172014-05-20 Hui Zhu <hui@codesourcery.com>
8518 Yao Qi <yao@codesourcery.com>
8519
8520 PR backtrace/16558
8521 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8522 and change address of sp and pc.
8523
c4e54771
TT
85242014-05-19 Tom Tromey <tromey@redhat.com>
8525
8526 * gdbtypes.c (rank_function): Use XNEWVEC.
8527 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8528
73051182
DE
85292014-05-19 Doug Evans <dje@google.com>
8530
8531 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8532 build_type_unit_groups and moved closer to only caller. Remove
8533 arguments. All references updated. Remove outdated .gdb_index
8534 comment.
8535 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8536 build_type_psymtabs_1.
8537
8832e7e3
DE
85382014-05-19 Doug Evans <dje@google.com>
8539
8540 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8541 n_type_unit_groups, all_type_unit_groups. All uses removed.
8542 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8543 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8544 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8545 (add_type_unit_group_to_table): Delete.
8546
cd8ae15e
DE
85472014-05-19 Doug Evans <dje@google.com>
8548
8549 * eval.c (evaluate_subexp_standard): Add some comments.
8550
08f4850b
DE
85512014-05-17 Doug Evans <xdje42@gmail.com>
8552
8553 * progspace.c (remove_program_space): Delete, unused.
8554 * progspace.h (remove_program_space): Ditto.
8555
bed8455c
DE
85562014-05-17 Doug Evans <xdje42@gmail.com>
8557
8558 * inferior.c (prune_inferiors): Fix comment.
8559 (remove_inferior_command): Call prune_program_spaces.
8560
8d551b02
DE
85612014-05-16 Doug Evans <dje@google.com>
8562
8563 New command line option -D.
8564 * NEWS: Mention it.
8565 * main.c (set_gdb_data_directory): New function.
8566 (captured_main): Recognize -D. Flag error for --data-directory "".
8567 Call set_gdb_data_directory.
8568 (print_gdb_help): Print --data-directory, -D.
8569 * main.h (set_gdb_data_directory): Declare.
8570 * top.c (staged_gdb_datadir): New static global.
8571 (set_gdb_datadir): Call set_gdb_data_directory
8572 (show_gdb_datadir): New function.
8573 (init_main): Update init of data-directory parameter.
8574
18848e28
GF
85752014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8576
8577 Import the "dirfd" gnulib module.
8578 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8579 * gnulib/aclocal.m4: Update.
8580 * gnulib/config.in: Update.
8581 * gnulib/configure: Update.
8582 * gnulib/import/Makefile.am: Update.
8583 * gnulib/import/Makefile.in: Update.
8584 * gnulib/import/dirfd.c: New.
8585 * gnulib/import/m4/dirfd.m4: New.
8586 * gnulib/import/m4/gnulib-cache.m4: Update.
8587 * gnulib/import/m4/gnulib-comp.m4: Update.
8588
95c64f92
YQ
85892014-05-16 Pierre Muller <muller@sourceware.org>
8590 Yao Qi <yao@codesourcery.com>
8591
8592 * valprint.c (print_wchar): Move the code on checking whether
8593 W is a printable wide char to the default branch of switch
8594 statement below. Call wchar_printable instead of gdb_iswprint.
8595
cac395ea
TM
85962014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8597
19679eca 8598 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
8599 ldr.w and ldrd instructions.
8600
83655187
DE
86012014-05-15 Doug Evans <dje@google.com>
8602
8603 * dwarf2read.c (read_structure_type): Delete outdated comments.
8604
dd756689
TT
86052014-05-14 Tom Tromey <tromey@redhat.com>
8606
8607 * macrocmd.c (print_macro_definition): Reindent.
8608
75ddda77
DE
86092014-05-13 Doug Evans <xdje42@gmail.com>
8610
8611 * python/py-cmd.c (cmdpy_completer): Add comment.
8612 (completers): Make const.
8613
b0f16a3e
SM
86142014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8615
8616 * infrun.c (resume): Remove should_resume (unused). Move up
8617 declaration of resume_ptid.
8618
033c3379
TT
86192014-05-13 Tom Tromey <tromey@redhat.com>
8620
8621 * language.h (unop_type_check): Remove.
8622 (binop_type_check): Don't declare.
8623
9b44a3a5
AA
86242014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8625
8626 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8627 call to regcache_raw_collect.
8628
303a33fa
SM
86292014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8630
8631 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8632 mi_console->quote as the quoting character.
8633
196100a0
SM
86342014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8635
8636 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8637
f989a1c8
TT
86382014-04-29 Tom Tromey <tromey@redhat.com>
8639
8640 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8641 "show debug varobj".
8642
9404b58f
KM
86432014-05-07 Kyle McMartin <kyle@redhat.com>
8644
8645 Pushed by Joel Brobecker <brobecker@adacore.com>.
8646 * aarch64-tdep.c (aarch64_software_single_step): New function.
8647 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8648 with aarch64_software_single_step.
8649
5e49ba57
JB
86502014-05-05 Joel Brobecker <brobecker@adacore.com>
8651
8652 GDB 7.7.1 released.
8653
c888a17d
KS
86542014-05-05 Keith Seitz <keiths@redhat.com>
8655
8656 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8657 variable or history value is successfully parsed.
8658
290a839c
YQ
86592014-05-05 Yao Qi <yao@codesourcery.com>
8660 Pedro Alves <palves@redhat.com>
8661
8662 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8663 address of blocks that intersects the requested range. Trim
8664 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8665 sections.
8666 * ctf.c (ctf_xfer_partial): Likewise.
8667
91256dc2
YQ
86682014-05-05 Yao Qi <yao@codesourcery.com>
8669
8670 * printcmd.c (display_command): Remove the check to
8671 target_has_execution.
8672
07284463
MK
86732014-05-03 Mark Kettenis <kettenis@gnu.org>
8674
8675 * ppcobsd-nat.c: Include "obsd-nat.h".
8676 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8677 add_target.
8678 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8679
30a1e6cc
SDJ
86802014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8681
8682 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8683 and 16-bit signed and unsigned arguments. Update comment.
8684 (stap_parse_probe_arguments): Extend code to handle such
8685 arguments. Use warning instead of complaint to notify about
8686 unrecognized bitness.
8687
f33da99a
SDJ
86882014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8689
8690 PR breakpoints/16889
8691 * stap-probe.c (stap_parse_probe_arguments): Simplify
8692 check for non-prefixed probes (i.e., probes whose
8693 arguments do not start with "N@"). Always set the
8694 argument type to a sane value.
8695
95cf3b38
DT
86962014-05-01 David Taylor <dtaylor@emc.com>
8697
8698 * remote.c (compare_sections_command): Add -r option to compare
8699 all loadable read-only sections.
8700
1cfdf534
SC
87012014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8702
8703 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8704 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8705 Update all callers.
8706 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8707 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8708 Remove unused CORE_ADDR argument. Update all callers.
8709
ca4f7f8b
PA
87102014-04-29 Pedro Alves <palves@redhat.com>
8711
8712 * remote.c (struct packet_config) <detect>: Extend comment.
8713 (add_packet_config_cmd): Don't set the config's detect or support
8714 fields here.
8715 (init_all_packet_configs): Also initialize the config's 'detect'
8716 field.
8717 (reset_all_packet_configs_support): New function.
8718 (remote_open_1): Call reset_all_packet_configs_support instead of
8719 init_all_packet_configs.
8720 (_initialize_remote): Initialize all packet configs. Assert that
8721 all packets have an associated command, except a few known
8722 outliers.
8723
11c1ba78
JB
87242014-04-28 Joel Brobecker <brobecker@adacore.com>
8725
8726 * dwarf2read.c (read_subrange_type): Handle dynamic
8727 DW_AT_lower_bound attributes.
8728
8739bc53
JB
87292014-04-28 Joel Brobecker <brobecker@adacore.com>
8730
8731 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8732 dynamic bounds before computing its upper bound.
8733 (ada_discrete_type_low_bound): Same as above with the lower bound.
8734
6f8a3220
JB
87352014-04-28 Joel Brobecker <brobecker@adacore.com>
8736
8737 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8738 range types. Adjust the array handling implementation to
8739 take advantage of this change.
8740 (resolve_dynamic_range): New function, mostly extracted from
8741 resolve_dynamic_bounds.
8742 (resolve_dynamic_array): New function, mostly extracted from
8743 resolve_dynamic_bounds.
8744 (resolve_dynamic_bounds): Delete.
8745 (resolve_dynamic_type): Reimplement. Add handling of
8746 TYPE_CODE_RANGE types.
8747
4d072ce4
JB
87482014-04-28 Joel Brobecker <brobecker@adacore.com>
8749
8750 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8751 handling of parallel ___XA types.
8752
52865325
JB
87532014-04-28 Joel Brobecker <brobecker@adacore.com>
8754
8755 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8756 unnecessary second call to static_unwrap_type.
8757
433e77fa
HZ
87582014-04-27 Hui Zhu <hui@codesourcery.com>
8759
8760 * stack.c (print_frame_info): Call do_gdb_disassembly with
8761 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8762
b51a69ee
DE
87632014-04-26 Doug Evans <xdje42@gmail.com>
8764
8765 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8766
7ae1a6a6
PA
87672014-04-25 Pedro Alves <palves@redhat.com>
8768
8769 PR server/16255
8770 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8771 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8772 and newline from built string.
8773 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8774 (linux_ptrace_attach_fail_reason): ... this.
8775 * linux-nat.c (linux_nat_attach): Adjust to use
8776 linux_ptrace_attach_fail_reason.
8777
4082afcc
PA
87782014-04-25 Pedro Alves <palves@redhat.com>
8779
8780 * remote.c (struct remote_state): Remove multi_process_aware,
8781 non_stop_aware, cond_tracepoints, cond_breakpoints,
8782 breakpoint_commands, fast_tracepoints, static_tracepoints,
8783 install_in_trace, disconnected_tracing,
8784 enable_disable_tracepoints, string_tracing, and
8785 augmented_libraries_svr4_read fields.
8786 (remote_multi_process_p): Move further below in the file.
8787 (struct packet_config): Add comments.
8788 (update_packet_config): Delete function.
8789 (show_packet_config_cmd): Use packet_config_support.
8790 (add_packet_config_cmd): Use NULL as set callback.
8791 (packet_ok): "set remote foo-packet"-style commands no longer
8792 change config->supported -- adjust.
8793 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8794 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8795 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8796 (PACKET_QNonStop, PACKET_multiprocess_feature)
8797 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8798 (PACKET_DisconnectedTracing_feature)
8799 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8800 (set_remote_protocol_packet_cmd): Delete function.
8801 (packet_config_support, packet_support): New functions.
8802 (set_remote_protocol_Z_packet_cmd): Don't call
8803 update_packet_config.
8804 (remote_query_attached, remote_pass_signals)
8805 (remote_program_signals, remote_threads_info)
8806 (remote_threads_extra_info, remote_start_remote): Use
8807 packet_support.
8808 (remote_start_remote): Use packet_config_support and
8809 packet_support.
8810 (init_all_packet_configs): Set all packets to unknown support,
8811 instead of calling update_packet_config.
8812 (remote_check_symbols): Use packet_support.
8813 (remote_supported_packet): Unconditionally set the packet config's
8814 support status.
8815 (remote_multi_process_feature, remote_non_stop_feature)
8816 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8817 (remote_breakpoint_commands_feature)
8818 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8819 (remote_install_in_trace_feature)
8820 (remote_disconnected_tracing_feature)
8821 (remote_enable_disable_tracepoint_feature)
8822 (remote_string_tracing_feature)
8823 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8824 (remote_protocol_features): Adjust to use remote_supported_packet
8825 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8826 "ConditionalTracepoints", "ConditionalBreakpoints",
8827 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8828 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8829 "EnableDisableTracepoints", and "tracenz".
8830 (remote_query_supported): Use packet_support.
8831 (remote_open_1): Adjust.
8832 (extended_remote_attach_1): Use packet_support. Switch on the
8833 result of packet_ok instead of checking whether the packet ended
8834 up disabled.
8835 (remote_vcont_resume): Use packet_support.
8836 (remote_resume, remote_stop_ns, fetch_register_using_p)
8837 (remote_prepare_to_store, store_register_using_P)
8838 (check_binary_download, remote_write_bytes): Use packet_support.
8839 (remote_vkill): Use packet_support. Switch on the result of
8840 packet_ok instead of checking whether the packet ended up
8841 disabled.
8842 (extended_remote_supports_disable_randomization): Use
8843 packet_support.
8844 (extended_remote_run): Switch on the result of packet_ok instead
8845 of checking whether the packet ended up disabled.
8846 (remote_insert_breakpoint, remote_remove_breakpoint)
8847 (remote_insert_watchpoint, remote_remove_watchpoint)
8848 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8849 packet_support.
8850 (remote_search_memory): Use packet_config_support.
8851 (remote_get_thread_local_address, remote_get_tib_address)
8852 (remote_hostio_send_command, remote_can_execute_reverse): Use
8853 packet_support.
8854 (remote_supports_cond_tracepoints)
8855 (remote_supports_cond_breakpoints)
8856 (remote_supports_fast_tracepoints)
8857 (remote_supports_static_tracepoints)
8858 (remote_supports_install_in_trace)
8859 (remote_supports_enable_disable_tracepoint)
8860 (remote_supports_string_tracing)
8861 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8862 the packet config says the feature is enabled or disabled.
8863 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8864 (remote_get_trace_status): Use packet_support.
8865 (remote_set_disconnected_tracing): Adjust to check whether the
8866 feature is enabled with packet_support.
8867 (remote_set_trace_buffer_size, remote_use_agent)
8868 (remote_can_use_agent, remote_supports_btrace): Use
8869 packet_support.
8870 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8871 Use packet_config_support.
8872 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8873 the packet config says the feature is enabled or disabled.
8874 (set_range_stepping): Use packet_support.
8875
bdb52a22
TT
88762014-04-25 Tom Tromey <tromey@redhat.com>
8877
8878 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8879 argument.
8880
e9475ead
SA
88812014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8882
8883 * NEWS: Mention support for C99 variable length arrays.
8884
82eacd52
JB
88852014-04-24 Joel Brobecker <brobecker@adacore.com>
8886
8887 * ada-lang.c (standard_exc): Expand introductory comment.
8888
01f9f808
MS
88892014-04-24 Michael Sturm <michael.sturm@mintel.com>
8890 Walfred Tedeschi <walfred.tedeschi@intel.com>
8891
8892 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8893 AVX512 registers.
8894 (amd64_linux_read_description): Add code to handle AVX512 xstate
8895 mask and return respective tdesc.
8896 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8897 and features/i386/x32-avx512-linux.c.
8898 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8899 (amd64_linux_core_read_description): Add code to handle AVX512
8900 xstate mask and return respective tdesc.
8901 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8902 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8903 calculation.
8904 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8905 (tdesc_amd64_avx512_linux): New prototype.
8906 (tdesc_x32_avx512_linux): Likewise.
8907 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8908 features/i386/x32-avx512.c.
8909 (amd64_ymm_avx512_names): New register names for pseudo
8910 registers YMM16-31.
8911 (amd64_ymmh_avx512_names): New register names for raw registers
8912 YMMH16-31.
8913 (amd64_k_names): New register names for K registers.
8914 (amd64_zmmh_names): New register names for ZMM raw registers.
8915 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8916 (amd64_xmm_avx512_names): New register names for XMM16-31
8917 registers.
8918 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8919 registers.
8920 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8921 if feature is present.
8922 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8923 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8924 (AMD64_NUM_REGS): Adjust to new number of registers.
8925 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8926 registers supplied via XSTATE by AVX512 registers.
8927 (i386_linux_read_description): Add case for AVX512.
8928 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8929 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8930 (i386_linux_core_read_description): Add case for AVX512.
8931 (i386_linux_init_abi): Install supported register note section
8932 for AVX512.
8933 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8934 AVX512.
8935 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8936 registers to be number of zmm7h + 1.
8937 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8938 * i386-tdep.c: Include features/i386/i386-avx512.c.
8939 (i386_zmm_names): Add ZMM pseudo register names array.
8940 (i386_zmmh_names): Add ZMM raw register names array.
8941 (i386_k_names): Add K raw register names array.
8942 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8943 registers. AVX512 has 16 more ZMM registers than there are YMM
8944 registers.
8945 (i386_zmmh_regnum_p): Add function to look up register number of
8946 ZMM raw registers.
8947 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8948 (i386_k_regnum_p): Likewise for K raw registers.
8949 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8950 registers added by AVX512.
8951 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8952 registers added by AVX512.
8953 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8954 added by AVX512.
8955 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8956 (i386_pseudo_register_name): Add ZMM pseudo registers.
8957 (i386_zmm_type): Construct and return vector registers type for ZMM
8958 registers.
8959 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8960 ZMM0-31 pseudo registers and K registers.
8961 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8962 and YMM16-31 registers from register cache.
8963 (i386_pseudo_register_write): Add code to write K, ZMM and
8964 YMM16-31 registers.
8965 (i386_register_reggroup_p): Add code to include/exclude AVX512
8966 registers in/from respective register groups.
8967 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8968 registers if feature is present in xcr0.
8969 (i386_gdbarch_init): Add code to initialize AVX512 feature
8970 variables in tdep structure, wire in pseudo registers and call
8971 initialize_tdesc_i386_avx512.
8972 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8973 variables.
8974 (i386_regnum): Add AVX512 registers.
8975 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8976 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8977 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8978 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8979 512 bits wide.
8980 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8981 (i386_ymm_avx512_regnum_p): Likewise.
8982 (i386_k_regnum_p): Likewise.
8983 (i386_zmm_regnum_p): Likewise.
8984 (i386_zmmh_regnum_p): Likewise.
8985 * i387-tdep.c : Update year in copyright notice.
8986 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8987 XSAVE buffer.
8988 (XSAVE_YMM_AVX512_ADDR): New macro.
8989 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8990 XSAVE buffer.
8991 (XSAVE_XMM_AVX512_ADDR): New macro.
8992 (xsave_avx512_k_offset): New table for K register offsets in
8993 XSAVE buffer.
8994 (XSAVE_AVX512_K_ADDR): New macro.
8995 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8996 in XSAVE buffer.
8997 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8998 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8999 buffer.
9000 (i387_collect_xsave): Add code to collect AVX512 registers from
9001 XSAVE buffer.
9002 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
9003 of XMM16-31 registers.
9004 (I387_NUM_K_REGS): New define for number of K registers.
9005 (I387_K0_REGNUM): New define for K0 register number.
9006 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
9007 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
9008 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
9009 registers.
9010 (I387_YMM16H_REGNUM): New define for YMM16H register number.
9011 (I387_XMM16_REGNUM): New define for XMM16 register number.
9012 (I387_YMM0_REGNUM): New define for YMM0 register number.
9013 (I387_KEND_REGNUM): New define for last K register number.
9014 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
9015 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
9016 number.
9017 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
9018 number.
9019 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
9020 size.
9021 * features/Makefile: Add AVX512 related files.
9022 * features/i386/32bit-avx512.xml: New file.
9023 * features/i386/64bit-avx512.xml: Likewise.
9024 * features/i386/amd64-avx512-linux.c: Likewise.
9025 * features/i386/amd64-avx512-linux.xml: Likewise.
9026 * features/i386/amd64-avx512.c: Likewise.
9027 * features/i386/amd64-avx512.xml: Likewise.
9028 * features/i386/i386-avx512-linux.c: Likewise.
9029 * features/i386/i386-avx512-linux.xml: Likewise.
9030 * features/i386/i386-avx512.c: Likewise.
9031 * features/i386/i386-avx512.xml: Likewise.
9032 * features/i386/x32-avx512-linux.c: Likewise.
9033 * features/i386/x32-avx512-linux.xml: Likewise.
9034 * features/i386/x32-avx512.c: Likewise.
9035 * features/i386/x32-avx512.xml: Likewise.
9036 * regformats/i386/amd64-avx512-linux.dat: New file.
9037 * regformats/i386/amd64-avx512.dat: Likewise.
9038 * regformats/i386/i386-avx512-linux.dat: Likewise.
9039 * regformats/i386/i386-avx512.dat: Likewise.
9040 * regformats/i386/x32-avx512-linux.dat: Likewise.
9041 * regformats/i386/x32-avx512.dat: Likewise.
9042 * NEWS: Add note about new support for AVX512.
9043
9044
08351840
PA
90452014-04-23 Pedro Alves <palves@redhat.com>
9046
9047 * breakpoint.c (insert_bp_location): Tolerate errors if the
9048 breakpoint is set in a user-loaded objfile.
9049 (remove_breakpoint_1): Likewise. Also tolerate errors if the
9050 location is marked shlib_disabled. If the breakpoint is set in a
9051 user-loaded objfile is a GDB-side memory breakpoint, validate it
9052 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
9053 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
9054 flag.
9055 * mem-break.c (memory_validate_breakpoint): New function.
9056 * objfiles.c (userloaded_objfile_contains_address_p): New
9057 function.
9058 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
9059 * target.h (memory_validate_breakpoint): New declaration.
9060
076855f9
PA
90612014-04-23 Pedro Alves <palves@redhat.com>
9062
9063 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
9064 the breakpoint is set in a shared library, only suppress
9065 errors for software breakpoints, not hardware breakpoints.
9066
483805cf
PA
90672014-04-22 Pedro Alves <palves@redhat.com>
9068
9069 * infrun.c (schedlock_applies): New function, factored out from
9070 find_thread_needs_step_over.
9071 (find_thread_needs_step_over): Use it.
9072 (switch_back_to_stepped_thread): Always clear trap_expected if the
9073 step over is finished. Return early if scheduler locking applies.
9074 Look for the stepping thread and a potential step-over thread with
9075 a single loop.
9076 (currently_stepping_or_nexting_callback): Delete.
9077
a75fef0e
NC
90782014-04-22 Nick Clifton <nickc@redhat.com>
9079
9080 * NEWS: Mention that ARM sim now supports tracing.
9081
48b6e87e
YQ
90822014-04-22 Yao Qi <yao@codesourcery.com>
9083
9084 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
9085 to ...
9086 * tracefile.c (tracefile_fetch_registers): ... it. New
9087 function.
9088 * tracefile.h (tracefile_fetch_registers): Declare.
9089 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
9090 tracefile_fetch_registers.
9091
17617f2d
EZ
90922014-04-19 Eli Zaretskii <eliz@gnu.org>
9093
9094 PR gdb/14018
9095 * windows-nat.c (thread_rec): Don't display a warning when
9096 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
9097 fails for any reason, set th->suspended to -1, so that we don't
9098 try to resume such a thread. Also, don't return NULL in these
9099 cases, to avoid completely ruin the session due to "PC register is
9100 not available" error.
9101 (do_windows_fetch_inferior_registers): Check errors in
9102 GetThreadContext call.
9103 (windows_continue): Accept an additional argument KILLED; if not
9104 zero, ignore errors in the SetThreadContext call, since the
9105 inferior was killed and is shutting down.
9106 (windows_resume, get_windows_debug_event)
9107 (windows_create_inferior, windows_mourn_inferior)
9108 (windows_kill_inferior): All callers of windows_continue changed
9109 to adjust to its new calling sequence.
9110
5723a6fd
YQ
91112014-04-19 Yao Qi <yao@codesourcery.com>
9112
9113 * ctf.c (ctf_open): Call post_create_inferior.
9114
614d5099
YQ
91152014-04-19 Yao Qi <yao@codesourcery.com>
9116
9117 * ctf.c (handle_id): New static variable.
9118 (ctf_open_dir): Get handle_id from bt_context_add_trace return
9119 value. Get the declaration of event "register" and get length
9120 of field "contents".
9121
dac3e710
YQ
91222014-04-19 Yao Qi <yao@codesourcery.com>
9123
9124 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
9125
2bca57ba
SC
91262014-04-18 Siva Chandra Reddy <sivachandra@google.com>
9127
9128 * valops.c (oload_method_static): Remove unnecessary argument
9129 METHOD. Update all callers.
9130
51d48146
PA
91312014-04-18 Pedro alves <palves@redhat.com>
9132 Tom Tromey <tromey@redhat.com>
9133
9134 PR backtrace/15558
9135 * frame.c (get_prev_frame_1): Rename to ...
9136 (get_prev_frame_always): ... this, and make extern. Adjust.
9137 (skip_artificial_frames): Use get_prev_frame_always.
9138 (frame_unwind_caller_id, frame_pop, get_prev_frame)
9139 (get_frame_unwind_stop_reason): Adjust to rename.
9140 * frame.h (get_prev_frame_always): Declare.
9141 * inline-frame.c: Include frame.h.
9142 (inline_frame_this_id): Use get_prev_frame_always.
9143
1bdad2e0
TG
91442014-04-18 Tristan Gingold <gingold@adacore.com>
9145
9146 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
9147 code by using bfd_mach_o_get_base_address.
9148
7ce16bd4
UW
91492014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
9150
9151 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
9152 (spu_ax_pseudo_register_collect): New function.
9153 (spu_ax_pseudo_register_push_stack): Likewise.
9154 (spu_dwarf_reg_to_regnum): Likewise.
9155 (spu_gdbarch_init): Install them. Append DWARF unwinders.
9156
2ed3c037
UW
91572014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
9158
9159 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
9160 Replace FRAME argument with FRAME_ID.
9161 * gdbarch.c, gdbarch.h: Regenerate.
9162 * findvar.c (default_value_from_register): Add GDBARCH argument;
9163 replace FRAME by FRAME_ID. No longer call get_frame_id.
9164 (value_from_register): Update call to gdbarch_value_from_register.
9165 * value.h (default_value_from_register): Update prototype.
9166 * s390-linux-tdep.c (s390_value_from_register): Update interface
9167 and call to default_value_from_register.
9168 * spu-tdep.c (spu_value_from_register): Likewise.
9169
9170 * findvar.c (address_from_register): Remove TYPE argument.
9171 Do not call value_from_register; use gdbarch_value_from_register
9172 with null_frame_id instead.
9173 * value.h (address_from_register): Update prototype.
9174 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9175 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9176 address_from_register interface change.
9177
71e50e83
YQ
91782014-04-17 Yao Qi <yao@codesourcery.com>
9179
9180 * gdbtypes.h: Update comments to link to types and macros'
9181 definitions.
9182
7a23c549
SC
91832014-04-16 Siva Chandra Reddy <sivachandra@google.com>
9184
9185 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9186
22869d73
KS
91872014-04-16 Keith Seitz <keiths@redhat.com>
9188
9189 PR gdb/15827
9190 * dwarf2read.c (skip_one_die): Check that all relative-offset
9191 sibling DIEs fall within range of the current reader's buffer.
9192 (read_partial_die): Likewise.
9193
c4f87ca6
KS
91942014-04-16 Keith Seitz <keiths@redhat.com>
9195
9196 PR c++/16597
9197 * cp-namespace.c (lookup_symbol_file): If the type name of
9198 `this' is NULL, return immediately.
9199
b50c8614
KS
92002014-04-14 Keith Seitz <keiths@redhat.com>
9201
9202 PR c++/16253
9203 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9204 from symbol_matches_domain in symtab.c. All local callers
9205 of symbol_matches_domain updated.
9206 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9207 search STRUCT_DOMAIN.
9208 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9209 independently. standard_lookup will do that automatically.
9210 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9211 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9212 (cp_lookup_symbol_in_namespace): Likewise.
9213 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9214 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9215 may return a STRUCT_DOMAIN match.
9216 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9217 * cp-support.c: Include language.h.
9218 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9219 VAR_DOMAIN.
9220 * psymtab.c (match_partial_symbol): Compare the requested
9221 domain with the symbol's domain directly.
9222 (lookup_partial_symbol): Likewise.
9223 * symtab.c (lookup_symbol_in_language): Explain when/why
9224 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9225 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9226 appropriate languages.
9227 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9228 and moved to ada-lang.c
9229 (lookup_block_symbol): Explain that this function only returns
9230 symbol matching the requested DOMAIN.
9231 Compare the requested domain with the symbol's domain directly.
9232 (iterate_over_symbols): Compare the requested domain with the
9233 symbol's domain directly.
9234 * symtab.h (symbol_matches_domain): Remove.
9235
3d567982
TT
92362014-04-14 Tom Tromey <tromey@redhat.com>
9237
9238 PR c++/15246:
9239 * c-exp.y (type_aggregate_p): New function.
9240 (qualified_name, classify_inner_name): Use it.
9241 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9242 and TYPE_TARGET_TYPE of an enum type.
9243 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9244 an enum type.
9245 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9246 handle TYPE_DECLARED_CLASS.
9247 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9248 types.
9249 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9250 * valops.c (enum_constant_from_type): New function.
9251 (value_aggregate_elt): Use it.
9252 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9253 TYPE_CODE_ENUM.
9254
c848d642
TT
92552014-04-14 Tom Tromey <tromey@redhat.com>
9256
9257 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9258 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9259 const.
9260 * value.h (value_aggregate_elt): Update.
9261
0626fc76
TT
92622014-04-14 Tom Tromey <tromey@redhat.com>
9263
9264 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9265
5ecaaa66
SA
92662014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9267
9268 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9269 (evaluate_subexp_standard): Pass noside argument.
9270 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9271 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9272 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9273 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9274 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9275
1612e0c0
SA
92762014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9277
9278 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9279 points to a constant blob.
9280
c451ebe5
SA
92812014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9282
9283 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9284 property and store it as the high bound and flag the range accordingly.
9285 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9286 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9287 * gdbtypes.h (enum range_flags): New enum.
9288 (struct range_bounds): Add flags member.
9289
1d42e4c4
SA
92902014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9291
9292 * c-typeprint.c (c_type_print_varspec_suffix): Added
9293 check for not yet resolved high bound. If unresolved, print
9294 "variable length" string to the console instead of random
9295 length.
9296
9f1f738a
SA
92972014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9298
9299 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9300 value.
9301 (ada_template_to_fixed_record_type_1): Likewise.
9302 (ada_to_fixed_type_1): Likewise.
9303 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9304 (cp_print_value): Likewise.
9305 * d-valprint.c (dynamic_array_type): Likewise.
9306 * findvar.c (address_of_variable): Likewise.
9307 * jv-valprint.c (java_value_print): Likewise.
9308 * valops.c (value_ind): Likewise.
9309 * value.c (coerce_ref): Likewise.
9310
3c8452d4
SA
93112014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9312
9313 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9314 value and retrieve the dynamic type size.
9315
4ad88275
SA
93162014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9317
9318 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9319 passed to sizeof is dynamic evaluate the argument to compute the length.
9320
80180f79
SA
93212014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9322 Joel Brobecker <brobecker@adacore.com>
9323
9324 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9325 (dwarf2_evaluate_property): New function.
9326 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9327 * dwarf2read.c (attr_to_dynamic_prop): New function.
9328 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9329 attribute.
9330 * gdbtypes.c: Include dwarf2loc.h.
9331 (is_dynamic_type): New function.
9332 (resolve_dynamic_type): New function.
9333 (resolve_dynamic_bounds): New function.
9334 (get_type_length): New function.
9335 (check_typedef): Use get_type_length to compute type length.
9336 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9337 (TYPE_LOW_BOUND_KIND): New macro.
9338 (is_dynamic_type): New function prototype.
9339 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9340 to resolve dynamic properties of the type. Update comment.
9341 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9342
a1556843
RH
93432014-04-14 Richard Henderson <rth@redhat.com>
9344
9345 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9346
0be03e84
DE
93472014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9348 Doug Evans <xdje42@gmail.com>
9349
9350 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9351 dereference TYPE_CODE_REF values.
9352
6b662e19
JB
93532014-04-11 Joel Brobecker <brobecker@adacore.com>
9354
9355 Revert the following changes due to regressions:
9356
9357 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9358 (dwarf2_evaluate_property): New function.
9359 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9360 * dwarf2read.c (attr_to_dynamic_prop): New function.
9361 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9362 attribute.
9363 * gdbtypes.c: Include dwarf2loc.h.
9364 (is_dynamic_type): New function.
9365 (resolve_dynamic_type): New function.
9366 (resolve_dynamic_bounds): New function.
9367 (get_type_length): New function.
9368 (check_typedef): Use get_type_length to compute type length.
9369 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9370 (TYPE_LOW_BOUND_KIND): New macro.
9371 (is_dynamic_type): New function prototype.
9372 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9373 to resolve dynamic properties of the type. Update comment.
9374 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9375
9376 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9377 passed to sizeof is dynamic evaluate the argument to compute the length.
9378
9379 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9380 value and retrieve the dynamic type size.
9381
9382 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9383 (ada_template_to_fixed_record_type_1): Likewise.
9384 (ada_to_fixed_type_1): Likewise.
9385 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9386 (cp_print_value): Likewise.
9387 * d-valprint.c (dynamic_array_type): Likewise.
9388 * eval.c (evaluate_subexp_with_coercion): Likewise.
9389 * findvar.c (address_of_variable): Likewise.
9390 * jv-valprint.c (java_value_print): Likewise.
9391 * valops.c (value_ind): Likewise.
9392 * value.c (coerce_ref): Likewise.
9393
9394 * c-typeprint.c (c_type_print_varspec_suffix): Added
9395 check for not yet resolved high bound. If unresolved, print
9396 "variable length" string to the console instead of random
9397 length.
9398
9399 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9400 property and store it as the high bound and flag the range accordingly.
9401 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9402 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9403 * gdbtypes.h (enum range_flags): New enum.
9404 (struct range_bounds): Add flags member.
9405
9406 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9407 points to a constant blob.
9408
9409 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9410 (evaluate_subexp_standard): Pass noside argument.
9411 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9412 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9413 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9414 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9415 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9416
245a5f0b
KS
94172014-04-11 Keith Seitz <keiths@redhat.com>
9418
9419 PR c++/16675
9420 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9421 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9422 reference types.
9423
3bce8237
SA
94242014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9425
9426 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9427 (evaluate_subexp_standard): Pass noside argument.
9428 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9429 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9430 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9431 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9432 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9433
92b09522
SA
94342014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9435
9436 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9437 points to a constant blob.
9438
e1969afb
SA
94392014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9440
9441 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9442 property and store it as the high bound and flag the range accordingly.
9443 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9444 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9445 * gdbtypes.h (enum range_flags): New enum.
9446 (struct range_bounds): Add flags member.
9447
b86138fb
SA
94482014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9449
9450 * c-typeprint.c (c_type_print_varspec_suffix): Added
9451 check for not yet resolved high bound. If unresolved, print
9452 "variable length" string to the console instead of random
9453 length.
9454
bcd629a4
SA
94552014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9456
9457 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9458 (ada_template_to_fixed_record_type_1): Likewise.
9459 (ada_to_fixed_type_1): Likewise.
9460 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9461 (cp_print_value): Likewise.
9462 * d-valprint.c (dynamic_array_type): Likewise.
9463 * eval.c (evaluate_subexp_with_coercion): Likewise.
9464 * findvar.c (address_of_variable): Likewise.
9465 * jv-valprint.c (java_value_print): Likewise.
9466 * valops.c (value_ind): Likewise.
9467 * value.c (coerce_ref): Likewise.
9468
04b19544
SA
94692014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9470
9471 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9472 value and retrieve the dynamic type size.
9473
26cb189f
SA
94742014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9475
9476 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9477 passed to sizeof is dynamic evaluate the argument to compute the length.
9478
37c1ab67
SA
94792014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9480
9481 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9482 (dwarf2_evaluate_property): New function.
9483 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9484 * dwarf2read.c (attr_to_dynamic_prop): New function.
9485 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9486 attribute.
9487 * gdbtypes.c: Include dwarf2loc.h.
9488 (is_dynamic_type): New function.
9489 (resolve_dynamic_type): New function.
9490 (resolve_dynamic_bounds): New function.
9491 (get_type_length): New function.
9492 (check_typedef): Use get_type_length to compute type length.
9493 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9494 (TYPE_LOW_BOUND_KIND): New macro.
9495 (is_dynamic_type): New function prototype.
9496 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9497 to resolve dynamic properties of the type. Update comment.
9498 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9499
729efb13
SA
95002014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9501
9502 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9503 declaring high/low bounds and change uses accordingly. Call
9504 create_range_type instead of create_static_range_type.
9505 * gdbtypes.c (create_range_type): New function.
9506 (create_range_type): Convert bounds into struct bound_prop and pass
9507 them to create_range_type.
9508 * gdbtypes.h (struct bound_prop): New struct.
9509 (create_range_type): New function prototype.
9510 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9511 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9512 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9513 part of the bound.
9514 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9515
0c9c3474
SA
95162014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9517
9518 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9519 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9520 * ada-lang.c: All uses of create_range_type updated.
9521 * coffread.c: All uses of create_range_type updated.
9522 * dwarf2read.c: All uses of create_range_type updated.
9523 * f-exp.y: All uses of create_range_type updated.
9524 * m2-valprint.c: All uses of create_range_type updated.
9525 * mdebugread.c: All uses of create_range_type updated.
9526 * stabsread.c: All uses of create_range_type updated.
9527 * valops.c: All uses of create_range_type updated.
9528 * valprint.c: All uses of create_range_type updated.
9529
9d497a19
PA
95302014-04-10 Pedro Alves <palves@redhat.com>
9531
9532 * breakpoint.c (single_step_breakpoints)
9533 (single_step_gdbarch): Move up in the file.
9534 (one_breakpoint_xfer_memory): New function, factored out from ...
9535 (breakpoint_xfer_memory): ... here. Also process single-step
9536 breakpoints.
9537
15a9128a
TG
95382014-04-09 Tristan Gingold <gingold@adacore.com>
9539
9540 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9541 comments.
9542 (darwin_decode_exception_message): Free port only after use.
9543
9c97a070
PL
95442014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9545
9546 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9547 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9548 when setting the size of call_length.
9549
7af389b8
SC
95502014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9551
9552 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9553 dereference TYPE_CODE_REF values.
9554
86ad98c3
JB
95552014-04-07 Joel Brobecker <brobecker@adacore.com>
9556
9557 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9558 end of warning message.
9559
b0aeadb3
DE
95602014-04-03 Doug Evans <dje@google.com>
9561
9562 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9563 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9564
5979d6b6
AM
95652014-04-02 Alan Modra <amodra@gmail.com>
9566
9567 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9568 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9569 (struct symbol_file_add_from_memory_args): Add size field.
9570 (find_vdso_size): New function.
9571 (add_vsyscall_page): Attempt to find vdso size.
9572
0d60c288
DE
95732014-04-01 Doug Evans <dje@google.com>
9574
9575 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9576
a41f2563
TG
95772014-04-01 Tristan Gingold <gingold@adacore.com>
9578
9579 * darwin-nat.c (darwin_encode_reply): Add prototype.
9580 (darwin_decode_exception_message): Reply to unknown inferiors.
9581 (darwin_decode_message): Handle message by id. Ignore message
9582 to unknown inferior.
9583 (darwin_wait): Discard unknown messages, add debug trace.
9584
11a865c8
DE
95852014-03-31 Doug Evans <dje@google.com>
9586
9587 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9588 comp_dir_string.
9589
770e7fc7
DE
95902014-03-31 Doug Evans <dje@google.com>
9591
9592 New option "set print symbol-loading".
9593 * NEWS: Mention it.
9594 * solib.c (solib_read_symbols): Only print symbol loading messages
9595 if requested.
9596 (solib_add): If symbol loading is in "brief" mode, notify user
9597 symbols are being loaded.
9598 (reload_shared_libraries_1): Ditto.
9599 * symfile.c (print_symbol_loading_off): New static global.
9600 (print_symbol_loading_brief): New static global.
9601 (print_symbol_loading_full): New static global.
9602 (print_symbol_loading_enums): New static global.
9603 (print_symbol_loading): New static global.
9604 (print_symbol_loading_p): New function.
9605 (symbol_file_add_with_addrs): Only print symbol loading messages
9606 if requested.
9607 (_initialize_symfile): Register "print symbol-loading" set/show
9608 command.
9609 * symfile.h (print_symbol_loading_p): Declare.
9610
c32c64b7
DE
96112014-03-30 Doug Evans <xdje42@gmail.com>
9612
9613 * infrun.c (set_last_target_status): New function.
9614 (handle_inferior_event): Call it.
9615
7c0bc051
DE
96162014-03-30 Doug Evans <xdje42@gmail.com>
9617
9618 * inferior.h (enum stop_kind): Improve comment.
9619
8776cfe9
JB
96202014-03-28 Joel Brobecker <brobecker@adacore.com>
9621
9622 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9623 a reference, strip the reference layer before calling
9624 the lang_ops value_has_mutated callback.
9625
410a0ff2
SDJ
96262014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9627
9628 Remove some globals from our parser.
9629 * language.c (unk_lang_parser): Add "struct parser_state"
9630 argument.
9631 * language.h (struct language_defn) <la_parser>: Likewise.
9632 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9633 (initialize_expout): Add "struct parser_state" argument.
9634 Rewrite function to use the parser state.
9635 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9636 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9637 write_exp_elt_longcst, write_exp_elt_dblcst,
9638 write_exp_elt_decfloatcst, write_exp_elt_type,
9639 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9640 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9641 write_dollar_variable): Likewise.
9642 (parse_exp_in_context_1): Use parser state.
9643 (insert_type_address_space): Add "struct parser_state" argument.
9644 Use parser state.
9645 (increase_expout_size): New function.
9646 * parser-defs.h: Forward declare "struct language_defn" and
9647 "struct parser_state".
9648 (expout, expout_size, expout_ptr): Remove extern declarations.
9649 (parse_gdbarch, parse_language): Rewrite macro declarations to
9650 accept the parser state.
9651 (struct parser_state): New struct.
9652 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9653 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9654 write_exp_elt_decfloatcst, write_exp_elt_type,
9655 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9656 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9657 write_exp_msymbol, write_dollar_variable,
9658 mark_struct_expression, insert_type_address_space): Add "struct
9659 parser_state" argument.
9660 (increase_expout_size): New function.
9661 * utils.c (do_clear_parser_state): New function.
9662 (make_cleanup_clear_parser_state): Likewise.
9663 * utils.h (make_cleanup_clear_parser_state): New function
9664 prototype.
9665 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9666 Update calls to write_exp* in order to pass the parser state.
9667 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9668 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9669 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9670 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9671 * stap-probe.c (stap_parse_register_operand): Likewise.
9672 (stap_parse_single_operand): Likewise.
9673 (stap_parse_argument_1): Likewise.
9674 (stap_parse_argument): Use parser state.
9675 * stap-probe.h: Include "parser-defs.h".
9676 (struct stap_parse_info) <pstate>: New field.
9677 * c-exp.y (parse_type): Rewrite to use parser state.
9678 (yyparse): Redefine to c_parse_internal.
9679 (pstate): New global variable.
9680 (parse_number): Add "struct parser_state" argument.
9681 (write_destructor_name): Likewise.
9682 (type_exp): Update calls to write_exp* and similars in order to
9683 use parser state.
9684 (exp1, exp, variable, qualified_name, space_identifier,
9685 typename, typebase): Likewise.
9686 (write_destructor_name, parse_number, lex_one_token,
9687 classify_name, classify_inner_name, c_parse): Add "struct
9688 parser_state" argument. Update function to use parser state.
9689 * c-lang.h: Forward declare "struct parser_state".
9690 (c_parse): Add "struct parser_state" argument.
9691 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9692 (yyparse): Redefine macro to ada_parse_internal.
9693 (pstate): New variable.
9694 (write_int, write_object_renaming, write_var_or_type,
9695 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9696 type_int, type_long, type_long_long, type_float, type_double,
9697 type_long_double, type_char, type_boolean, type_system_address):
9698 Add "struct parser_state" argument.
9699 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9700 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9701 var_or_type, aggregate, aggregate_component_list,
9702 positional_list, others, component_group,
9703 component_associations): Update calls to write_exp* and similar
9704 functions in order to use parser state.
9705 (ada_parse, write_var_from_sym, write_int,
9706 write_exp_op_with_string, write_object_renaming,
9707 find_primitive_type, write_selectors, write_ambiguous_var,
9708 write_var_or_type, write_name_assoc, type_int, type_long,
9709 type_long_long, type_float, type_double, type_long_double,
9710 type_char, type_boolean, type_system_address): Add "struct
9711 parser_state" argument. Adjust function to use parser state.
9712 * ada-lang.c (parse): Likewise.
9713 * ada-lang.h: Forward declare "struct parser_state".
9714 (ada_parse): Add "struct parser_state" argument.
9715 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9716 calls to both functions.
9717 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9718 parser state.
9719 (yyparse): Redefine macro to f_parse_internal.
9720 (pstate): New variable.
9721 (parse_number): Add "struct parser_state" argument.
9722 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9723 and similars in order to use parser state.
9724 (parse_number): Adjust code to use parser state.
9725 (yylex): Likewise.
9726 (f_parse): New function.
9727 * f-lang.h: Forward declare "struct parser_state".
9728 (f_parse): Add "struct parser_state" argument.
9729 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9730 parser state.
9731 (yyparse): Redefine macro for java_parse_internal.
9732 (pstate): New variable.
9733 (push_expression_name, push_expression_name, insert_exp): Add
9734 "struct parser_state" argument.
9735 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9736 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9737 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9738 PostIncrementExpression, PostDecrementExpression,
9739 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9740 UnaryExpressionNotPlusMinus, CastExpression,
9741 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9742 RelationalExpression, EqualityExpression, AndExpression,
9743 ExclusiveOrExpression, InclusiveOrExpression,
9744 ConditionalAndExpression, ConditionalOrExpression,
9745 ConditionalExpression, Assignment, LeftHandSide): Update
9746 calls to write_exp* and similars in order to use parser state.
9747 (parse_number): Ajust code to use parser state.
9748 (yylex): Likewise.
9749 (java_parse): New function.
9750 (push_variable): Add "struct parser_state" argument. Adjust
9751 code to user parser state.
9752 (push_fieldnames, push_qualified_expression_name,
9753 push_expression_name, insert_exp): Likewise.
9754 * jv-lang.h: Forward declare "struct parser_state".
9755 (java_parse): Add "struct parser_state" argument.
9756 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9757 parser state.
9758 (yyparse): Redefine macro to m2_parse_internal.
9759 (pstate): New variable.
9760 (type_exp, exp, fblock, variable, type): Update calls to
9761 write_exp* and similars to use parser state.
9762 (yylex): Likewise.
9763 (m2_parse): New function.
9764 * m2-lang.h: Forward declare "struct parser_state".
9765 (m2_parse): Add "struct parser_state" argument.
9766 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9767 * objc-lang.h: Forward declare "struct parser_state".
9768 (end_msglist): Add "struct parser_state" argument.
9769 * p-exp.y (parse_type): Rewrite macro to use parser state.
9770 (yyparse): Redefine macro to pascal_parse_internal.
9771 (pstate): New variable.
9772 (parse_number): Add "struct parser_state" argument.
9773 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9774 write_exp* and similars in order to use parser state.
9775 (parse_number, yylex): Adjust code to use parser state.
9776 (pascal_parse): New function.
9777 * p-lang.h: Forward declare "struct parser_state".
9778 (pascal_parse): Add "struct parser_state" argument.
9779 * go-exp.y (parse_type): Rewrite macro to use parser state.
9780 (yyparse): Redefine macro to go_parse_internal.
9781 (pstate): New variable.
9782 (parse_number): Add "struct parser_state" argument.
9783 (type_exp, exp1, exp, variable, type): Update calls to
9784 write_exp* and similars in order to use parser state.
9785 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9786 to use parser state.
9787 (go_parse): Likewise.
9788 * go-lang.h: Forward declare "struct parser_state".
9789 (go_parse): Add "struct parser_state" argument.
9790
342587c4
DE
97912014-03-27 Doug Evans <dje@google.com>
9792
9793 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9794
33e80786
DE
97952014-03-27 Doug Evans <dje@google.com>
9796
9797 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9798 Remove argument abbrev_section. All callers updated.
9799
1dbab08b
DE
98002014-03-27 Doug Evans <dje@google.com>
9801
9802 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9803 addr_base, ranges_base.
9804
318d3177
KS
98052014-03-26 Keith Seitz <keiths@redhat.com>
9806
9807 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9808 types, not VAR_DOMAIN.
9809
1e54db15
SL
98102014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9811
9812 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9813 "ra" registers.
9814 * features/nios2-linux.c: Regenerated.
9815 * features/nios2.c: Regenerated.
9816
d3839ede
PA
98172014-03-25 Pedro Alves <palves@redhat.com>
9818
9819 * cli/cli-script.c (script_from_file): Force the interpreter to
9820 sync mode.
9821
7588d2ec
PL
98222014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9823
9824 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9825 small stack allocation.
9826
a6290449
TG
98272014-03-24 Tristan Gingold <gingold@adacore.com>
9828
9829 * darwin-nat.c (exc_server): Remove unused prototype.
9830 (darwin_dump_message): Correctly display data on x86_64.
9831 (darwin_encode_reply): Fix style.
9832 Add comments and fix indentation.
9833
31ae9d24 98342014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
9835
9836 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9837
6339bfc4
DE
98382014-03-22 Doug Evans <xdje42@gmail.com>
9839
9840 * infcmd.c: Whitespace fixes.
9841 (interrupt_command): Merge two function comments into one.
9842
0a07590b
DE
98432014-03-22 Doug Evans <xdje42@gmail.com>
9844
9845 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9846 All uses updated.
9847
b55fbac4
YQ
98482014-03-22 Yao Qi <yao@codesourcery.com>
9849
9850 * remote.c (target_read_live_memory): Remove.
9851 (memory_xfer_live_readonly_partial): Rename it to
9852 remote_xfer_live_readonly_partial. Remove argument 'object'.
9853 All callers updated. Call remote_read_bytes_1
9854 instead of target_read_live_memory.
9855 * tracepoint.c (set_traceframe_number): Remove.
9856 (make_cleanup_restore_traceframe_number): Likewise .
9857 * tracepoint.h (set_traceframe_number): Remove declaration.
9858 (make_cleanup_restore_traceframe_number): Likewise.
9859
9217e74e
YQ
98602014-03-22 Yao Qi <yao@codesourcery.com>
9861
9862 * remote.c (remote_read_bytes): Move code on reading from the
9863 remote stub to ...
9864 (remote_read_bytes_1): ... here. New function.
9865
8acf9577
YQ
98662014-03-22 Yao Qi <yao@codesourcery.com>
9867
9868 * ctf.c (ctf_xfer_partial): Check the return value of
9869 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9870 return TARGET_XFER_UNAVAILABLE.
9871 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9872 * target.c (target_read_live_memory): Move it to remote.c.
9873 (memory_xfer_live_readonly_partial): Likewise.
9874 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9875 * remote.c (target_read_live_memory): Moved from target.c.
9876 (memory_xfer_live_readonly_partial): Likewise.
9877 (remote_read_bytes): Factored out from
9878 memory_xfer_partial_1.
9879
feef67ab
DE
98802014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9881
9882 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9883 NULL pointer.
9884
b65dc60b
PA
98852014-03-21 Pedro Alves <palves@redhat.com>
9886
9887 * infrun.c (normal_stop): Extend comment.
9888
b4ab256d
HZ
98892014-03-21 Hui Zhu <hui@codesourcery.com>
9890 Pedro Alves <palves@redhat.com>
9891
9892 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9893 static buffer.
9894 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9895 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9896 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9897
deba7593
MR
98982014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9899
9900 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9901 `z' formatted output modifier.
9902
1bff71c3
SDJ
99032014-03-20 Tom Tromey <tromey@redhat.com>
9904 Sergio Durigan Junior <sergiodj@redhat.com>
9905
9906 * probe.c (parse_probes): Turn assert into an ordinary error.
9907 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9908 exceptions when parsing probes. Rearrange the code for clarity.
9909
90e28950
TT
99102014-03-20 Tom Tromey <tromey@redhat.com>
9911
9912 PR gdb/14135
9913 * top.c (execute_command): Only dispatch events if the command
9914 started the target.
9915
beb460e8
PA
99162014-03-20 Tom Tromey <tromey@redhat.com>
9917
9918 PR cli/15718
9919 * infcall.c: Include event-top.h.
9920 (run_inferior_call): Call async_disable_stdin if needed.
9921
99619bea
PA
99222014-03-20 Pedro Alves <palves@redhat.com>
9923
9924 * infrun.c (prepare_to_proceed): Delete.
9925 (thread_still_needs_step_over): New function.
9926 (find_thread_needs_step_over): New function.
9927 (proceed): If the current thread needs a step-over, set its
9928 steping_over_breakpoint flag. Adjust to use
9929 find_thread_needs_step_over instead of prepare_to_proceed.
9930 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9931 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9932 breakpoint.
9933 (switch_back_to_stepped_thread): Step over breakpoints of all
9934 threads not the stepping thread, before switching back to the
9935 stepping thread.
9936
2adfaa28
PA
99372014-03-20 Pedro Alves <palves@redhat.com>
9938
9939 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9940 extern.
9941 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9942 * infrun.c (saved_singlestep_ptid)
9943 (stepping_past_singlestep_breakpoint): Delete.
9944 (resume): Remove stepping_past_singlestep_breakpoint handling.
9945 (proceed): Store the prev_pc of the stepping thread too.
9946 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9947 singlestep_pc.
9948 (enum infwait_states): Delete infwait_thread_hop_state.
9949 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9950 field.
9951 (handle_inferior_event): Adjust.
9952 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9953 handling and the thread-hop code. Before removing single-step
9954 breakpoints, check whether the thread hit a single-step breakpoint
9955 of another thread. If it did, the trap is not a random signal.
9956 (switch_back_to_stepped_thread): If the event thread hit a
9957 single-step breakpoint, unblock it before switching to the
9958 stepping thread. Handle the case of the stepped thread having
9959 advanced already.
9960 (keep_going): Handle the case of the current thread moving past a
9961 single-step breakpoint.
9962
31e77af2
PA
99632014-03-20 Pedro Alves <palves@redhat.com>
9964
9965 PR breakpoints/7143
9966 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9967 are being stepped over.
9968 (breakpoint_address_match): Make extern.
9969 * breakpoint.h (breakpoint_address_match): New declaration.
9970 * inferior.h (stepping_past_instruction_at): New declaration.
9971 * infrun.c (struct step_over_info): New type.
9972 (step_over_info): New global.
9973 (set_step_over_info, clear_step_over_info)
9974 (stepping_past_instruction_at): New functions.
9975 (handle_inferior_event): Clear the step-over info when
9976 trap_expected is cleared.
9977 (resume): Remove now stale comment.
9978 (clear_proceed_status): Clear step-over info.
9979 (proceed): Adjust step-over handling to set or clear the step-over
9980 info instead of removing all breakpoints.
9981 (handle_signal_stop): When setting up a thread-hop, don't remove
9982 breakpoints here.
9983 (stop_stepping): Clear step-over info.
9984 (keep_going): Adjust step-over handling to set or clear step-over
9985 info and then always inserting breakpoints, instead of removing
9986 all breakpoints when stepping over one.
9987
b9f437de
PA
99882014-03-20 Pedro Alves <palves@redhat.com>
9989
9990 * infrun.c (previous_inferior_ptid): Adjust comment.
9991 (deferred_step_ptid): Delete.
9992 (infrun_thread_ptid_changed, prepare_to_proceed)
9993 (init_wait_for_inferior): Adjust.
9994 (handle_signal_stop): Delete deferred_step_ptid handling.
9995
06c868a8
JK
99962014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9997
9998 PR gdb/15358
9999 * defs.h (sync_quit_force_run): New declaration.
10000 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
10001 * event-top.c (async_sigterm_handler): New declaration.
10002 (async_sigterm_token): New variable.
10003 (async_init_signals): Create also async_sigterm_token.
10004 (async_sigterm_handler): New function.
10005 (sync_quit_force_run): New variable.
10006 (handle_sigterm): Replace quit_force call by other calls.
10007 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
10008
dea80df0
MR
100092014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
10010
10011 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
10012 offset into SPE pseudo registers.
10013
0c7e1a46
PA
100142014-03-18 Pedro Alves <palves@redhat.com>
10015
10016 PR gdb/13860
10017 * inferior.h (print_stop_event): Declare.
10018 * infrun.c (print_stop_event): New, factored out from ...
10019 (normal_stop): ... this.
10020 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
10021 of bpstat_print/print_stack_frame.
10022
9c1fcd01
TT
100232014-03-17 Tom Tromey <tromey@redhat.com>
10024
10025 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
10026
11aa919a
PMR
100272014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
10028
10029 * ada-lang.c (decode_constrained_packed_array): Perform a
10030 minimal coercion for reference with coerce_ref instead of
10031 ada_coerce_ref.
10032
d4ccb5e0
TG
100332014-03-17 Tristan Gingold <gingold@adacore.com>
10034
10035 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10036 (darwin_solib_create_inferior_hook): Emit a warning if version
10037 is unhandled.
10038
49840f2a
UW
100392014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
10040
10041 * python/py-value.c (get_field_flag): Cast flag_name argument to
10042 PyObject_GetAttrString to support Python 2.4.
10043
ed4123e5
JK
100442014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10045
10046 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
10047 (Global Maintainers): Remove Jan Kratochvil.
10048
d6b64346
PA
100492014-03-14 Pedro Alves <palves@redhat.com>
10050
10051 * inferior.h (terminal_ours_for_output): Rename to ...
10052 (child_terminal_ours_for_output): ... this.
10053 (terminal_save_ours): Rename to ...
10054 (child_terminal_save_ours): ... this.
10055 (terminal_ours): Rename to ...
10056 (child_terminal_ours): ... this.
10057 (terminal_inferior): Rename to ...
10058 (child_terminal_inferior): ... this.
10059 (terminal_init_inferior): Rename to ...
10060 (child_terminal_init_inferior): ... this.
10061 (terminal_init_inferior_with_pgrp): Rename to ...
10062 (child_terminal_init_inferior_with_pgrp): ... this.
10063 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
10064 (child_terminal_init_with_pgrp): ... this.
10065 (terminal_save_ours): Rename to ...
10066 (child_terminal_save_ours): ... this.
10067 (terminal_init_inferior): Rename to ...
10068 (child_terminal_init): ... this. Adjust.
10069 (terminal_inferior): Rename to ...
10070 (child_terminal_inferior): ... this.
10071 (terminal_ours_for_output): Rename to ...
10072 (child_terminal_ours_for_output): ... this. Adjust.
10073 (terminal_ours): Rename to ...
10074 (child_terminal_ours): ... this.
10075 (terminal_ours_1): Rename to ...
10076 (child_terminal_ours_1): ... this. Adjust.
10077 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
10078 * windows-nat.c (do_initial_windows_stuff): Adjust.
10079 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
10080 (gnu_terminal_init): ... this. Adjust.
10081 (gnu_target): Adjust.
10082 * inf-child.c (inf_child_target): Adjust.
10083
5a1e8c7a
DE
100842014-03-13 Doug Evans <xdje42@gmail.com>
10085
10086 PR guile/16612
10087 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
10088 new eq?-hashtab.
10089
350e1a76
DE
100902014-03-13 Doug Evans <xdje42@gmail.com>
10091
10092 * value.c (record_latest_value): Call release_value_or_incref
10093 instead of release_value.
10094
a69900ae
PA
100952014-03-13 Pedro Alves <palves@redhat.com>
10096
10097 * procfs.c (procfs_target): Don't override to_shortname,
10098 to_longname or to_doc.
10099
5db9f0bd
PA
101002014-03-13 Pedro Alves <palves@redhat.com>
10101
10102 * inf-child.c (inf_child_open, inf_child_target): Don't mention
10103 Unix in user visible strings.
10104
5e3a2c38
SS
101052014-03-12 Stan Shebs <stan@codesourcery.com>
10106
10107 * gdbtypes.h: Annotate comments for Doxygen, add a page
10108 block comment with some general info.
10109
8bc2fe48
PA
101102014-03-12 Pedro Alves <palves@redhat.com>
10111
10112 * infcmd.c (prepare_execution_command): New function, factored out
10113 from several execution commands.
10114 (run_command_1, continue_command, step_1, jump_command)
10115 (signal_command, until_command, advance_command, finish_command)
10116 (attach_command): Use prepare_execution_command.
10117
638c5f49
OJ
101182014-03-12 Omair Javaid <omair.javaid@linaro.org>
10119
10120 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
10121 (MAX_BPTS): Define.
10122 (MAX_WPTS): Define.
10123 (struct arm_linux_thread_points): Removed.
10124 (struct arm_linux_process_info): New.
10125 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
10126 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
10127 (arm_linux_find_breakpoints_by_tid): Removed.
10128 (struct arch_lwp_info): New.
10129 (arm_linux_find_process_pid): New functions.
10130 (arm_linux_add_process): New functions.
10131 (arm_linux_process_info_get): New functions.
10132 (arm_linux_forget_process): New function.
10133 (arm_linux_get_debug_reg_state): New function.
10134 (struct update_registers_data): New.
10135 (update_registers_callback): New function.
10136 (arm_linux_insert_hw_breakpoint1): Updated.
10137 (arm_linux_remove_hw_breakpoint1): Updated.
10138 (arm_linux_insert_hw_breakpoint): Updated.
10139 (arm_linux_remove_hw_breakpoint): Updated.
10140 (arm_linux_insert_watchpoint): Updated.
10141 (arm_linux_remove_watchpoint): Updated.
10142 (arm_linux_new_thread): Updated.
10143 (arm_linux_prepare_to_resume): New function.
10144 (arm_linux_new_fork): New function.
10145 (_initialize_arm_linux_nat): Updated.
10146
6d03af93
PA
101472014-03-12 Pedro Alves <palves@redhat.com>
10148
10149 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
10150
b3ccfe11
TT
101512014-03-12 Tom Tromey <tromey@redhat.com>
10152
10153 * inf-child.c (return_zero): New function.
10154 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
10155 * aix-thread.c (aix_thread_inferior_created): New function.
10156 (aix_thread_attach): Remove.
10157 (init_aix_thread_ops): Don't set to_attach.
10158 (_initialize_aix_thread): Register inferior_created observer.
10159 * corelow.c (init_core_ops): Don't set to_attach or
10160 to_create_inferior.
10161 * exec.c (init_exec_ops): Don't set to_attach or
10162 to_create_inferior.
10163 * infcmd.c (run_command_1): Use find_run_target. Make direct
10164 target calls.
10165 (attach_command): Use find_attach_target. Make direct target
10166 calls.
10167 * record-btrace.c (init_record_btrace_ops): Don't set
10168 to_create_inferior.
10169 * record-full.c (record_full_can_async_p, record_full_is_async_p):
10170 Remove.
10171 (init_record_full_ops, init_record_full_core_ops): Update. Don't
10172 set to_create_inferior.
10173 * target.c (complete_target_initialization): Add assertion.
10174 (target_create_inferior): Remove.
10175 (find_default_attach, find_default_create_inferior): Remove.
10176 (find_attach_target, find_run_target): New functions.
10177 (find_default_is_async_p, find_default_can_async_p)
10178 (target_supports_non_stop, target_attach): Remove.
10179 (init_dummy_target): Don't set to_create_inferior or
10180 to_supports_non_stop.
10181 * target.h (struct target_ops) <to_attach>: Add comment. Remove
10182 TARGET_DEFAULT_FUNC.
10183 <to_create_inferior>: Add comment.
10184 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10185 TARGET_DEFAULT_RETURN.
10186 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10187 (find_attach_target, find_run_target): Declare.
10188 (target_create_inferior): Remove.
10189 (target_has_execution_1): Update comment.
10190 (target_supports_non_stop): Remove.
10191 * target-delegates.c: Rebuild.
10192
91f83b02
PA
101932014-03-12 Pedro Alves <palves@redhat.com>
10194
10195 * inf-child.h: Update comment to not mention Unix.
10196
f1aea813
PA
101972014-03-12 Pedro Alves <palves@redhat.com>
10198
10199 * inf-child.c: Update top comment to not mention Unix. Add
10200 generic comment describing how this target is meant to be used.
10201 (inf_child_post_attach, inf_child_post_startup_inferior)
10202 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10203 Unix in comment.
10204
ee8e9165
PA
102052014-03-12 Pedro Alves <palves@redhat.com>
10206
10207 * nto-procfs.c: Include inf-child.h.
10208 (procfs_ops): Delete global.
10209 (procfs_can_run): Delete method.
10210 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10211 target pointer instead of referencing procfs_ops.
10212 (procfs_prepare_to_store): Delete.
10213 (init_procfs_ops): Delete function.
10214 (procfs_target): New function, based on init_procfs_ops, but
10215 inherit inf_child_target.
10216 (_initialize_procfs): Use procfs_target.
10217
51a9c8c5
PA
102182014-03-12 Pedro Alves <palves@redhat.com>
10219
10220 * windows-nat.c: Include inf-child.h.
10221 (windows_ops): Delete global.
10222 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10223 methods.
10224 (init_windows_ops): Delete function.
10225 (windows_target): New function, based on init_windows_ops, but
10226 inherit inf_child_target.
10227 (_initialize_windows_nat): Use windows_target. Install x86
10228 specific target methods here.
10229
c1966e26
DE
102302014-03-10 Doug Evans <xdje42@gmail.com>
10231
10232 * guile/guile.c (call_initialize_gdb_module): New function.
10233 (initialize_guile): Replace call to scm_init_guile with call to
10234 scm_with_guile.
10235
023db19c
JB
102362014-03-10 Joel Brobecker <brobecker@adacore.com>
10237
10238 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10239 in call to TYPE_CODE macro.
10240
5ec18f2b
JG
102412014-03-10 Jerome Guitton <guitton@adacore.com>
10242
8668be63
JB
10243 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10244 Resolve tagged types to full view.
5ec18f2b 10245
7d03f2eb
HZ
102462014-03-10 Hui Zhu <hui@codesourcery.com>
10247
10248 * target.h (target_insert_breakpoint): Remove "hardware" from its
10249 comments.
10250
c5164cbc
DE
102512014-03-07 Doug Evans <dje@google.com>
10252
10253 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10254
c4a3fee2
DE
102552014-03-07 Doug Evans <dje@google.com>
10256
10257 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10258 Remove unused local comp_dir_attr. Assert exactly one of
10259 stub_comp_unit_die, stub_comp_dir is non-NULL.
10260
3156469c
JB
102612014-03-07 Joel Brobecker <brobecker@adacore.com>
10262
10263 * target.h (complete_target_initialization, add_target):
10264 Add comment.
10265
c1a7b7c6
PA
102662014-03-07 Pedro Alves <palves@redhat.com>
10267
10268 * go32-nat.c: Include inf-child.h.
10269 (go32_ops): Delete global.
10270 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10271 Delete methods.
10272 (go32_create_inferior): Push the passed in target pointer instead
10273 of referencing go32_ops.
10274 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10275 (go32_target): New function, based on init_go32_ops, but inherit
10276 inf_child_target.
10277 (_initialize_go32_nat): Use go32_target. Move parts of
10278 init_go32_ops here.
10279
d3c1a85f
JB
102802014-03-06 Joel Brobecker <brobecker@adacore.com>
10281
10282 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10283 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10284 SYMBOL_VALUE_ADDRESS.
10285 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10286
5fa1d40e
YQ
102872014-03-06 Yao Qi <yao@codesourcery.com>
10288
10289 * breakpoint.c (get_tracepoint_by_number): Remove argument
10290 optional_p. All callers updated. Adjust comments. Update
10291 output message.
10292 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10293
0c13193f
YQ
102942014-03-06 Yao Qi <yao@codesourcery.com>
10295
10296 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10297 early if get_number returns zero. Use 'p' instead of 'args'.
10298
2217da06
YQ
102992014-03-06 Yao Qi <yao@codesourcery.com>
10300
10301 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10302 message.
10303
cc3da688
YQ
103042014-03-06 Yao Qi <yao@codesourcery.com>
10305
10306 PR breakpoints/16508
10307 * tracepoint.c (check_trace_running): New function.
10308 (trace_find_command): Move code to check_trace_running and
10309 call check_trace_running.
10310 (trace_find_pc_command): Likewise.
10311 (trace_find_tracepoint_command): Likewise.
10312 (trace_find_line_command): Likewise.
10313 (trace_find_range_command): Likewise.
10314 * tracepoint.h (check_trace_running): Likewise.
10315 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10316
6a5f844b
YQ
103172014-03-06 Yao Qi <yao@codesourcery.com>
10318
10319 * target.h (struct target_ops) <to_traceframe_info>: Use
10320 TARGET_DEFAULT_NORETURN (tcomplain ()).
10321 * target-delegates.c: Regenerated.
10322
0f26cec1
PA
103232014-03-05 Pedro Alves <palves@redhat.com>
10324
10325 PR gdb/16575
10326 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10327 void. Update comment.
10328 (dcache_xfer_memory): Delete.
10329 (dcache_read_memory_partial): New, based on the read bits of
10330 dcache_xfer_memory.
10331 (dcache_update): Add status parameter. Use ULONGEST for len, and
10332 adjust. Discard cache lines if the reason for the update was
10333 error.
10334 * dcache.h (dcache_xfer_memory): Delete declaration.
10335 (dcache_read_memory_partial): New declaration.
10336 (dcache_update): Update prototype.
10337 * target.c (raw_memory_xfer_partial): Update the dcache here.
10338 (memory_xfer_partial_1): Don't handle dcache writes here.
10339
b2b255bd
MF
103402014-03-05 Mike Frysinger <vapier@gentoo.org>
10341
10342 * remote-sim.c (gdbsim_load): Add const to prog.
10343
5d9cf8a4
TT
103442014-03-03 Tom Tromey <tromey@redhat.com>
10345
10346 * elfread.c (probe_key): Change to bfd_data.
10347 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10348 now per-BFD, not per-objfile.
10349 * stap-probe.c (stap_probe_destroy): Update comment.
10350 (handle_stap_probe): Allocate on the per-BFD obstack.
10351
729662a5
TT
103522014-03-03 Tom Tromey <tromey@redhat.com>
10353
10354 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10355 * breakpoint.c (create_longjmp_master_breakpoint): Use
10356 get_probe_address.
10357 (add_location_to_breakpoint, bkpt_probe_insert_location)
10358 (bkpt_probe_remove_location): Update.
10359 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10360 * elfread.c (elf_symfile_relocate_probe): Remove.
10361 (elf_probe_fns): Update.
10362 (insert_exception_resume_breakpoint): Change type of "probe"
10363 parameter to bound_probe.
10364 (check_exception_resume): Update.
10365 * objfiles.c (objfile_relocate1): Don't relocate probes.
10366 * probe.c (bound_probe_s): New typedef.
10367 (parse_probes): Use get_probe_address. Set sal's objfile.
10368 (find_probe_by_pc): Return a bound_probe.
10369 (collect_probes): Return a VEC(bound_probe_s).
10370 (compare_probes): Update.
10371 (gen_ui_out_table_header_info): Change type of "probes"
10372 parameter. Update.
10373 (info_probes_for_ops): Update.
10374 (get_probe_address): New function.
10375 (probe_safe_evaluate_at_pc): Update.
10376 * probe.h (struct probe_ops) <get_probe_address>: New field.
10377 <set_semaphore, clear_semaphore>: Add objfile parameter.
10378 (struct probe) <objfile>: Remove field.
10379 <arch>: New field.
10380 <address>: Update comment.
10381 (struct bound_probe): New.
10382 (find_probe_by_pc): Return a bound_probe.
10383 (get_probe_address): Declare.
10384 * solib-svr4.c (struct probe_and_action) <address>: New field.
10385 (hash_probe_and_action, equal_probe_and_action): Update.
10386 (register_solib_event_probe): Add address parameter.
10387 (solib_event_probe_at): Update.
10388 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10389 get_probe_address.
10390 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10391 (stap_get_probe_address): New function.
10392 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10393 (compile_probe_arg): Update.
10394 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10395 address.
10396 (handle_stap_probe): Don't relocate the probe.
10397 (stap_relocate): Remove.
10398 (stap_gen_info_probes_table_values): Update.
10399 (stap_probe_ops): Remove stap_relocate.
10400 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10401 (debug_sym_probe_fns): Update.
10402 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10403 * symtab.c (init_sal): Use memset.
10404 * symtab.h (struct symtab_and_line) <objfile>: New field.
10405 * tracepoint.c (start_tracing, stop_tracing): Update.
10406
ff887920
TT
104072014-03-03 Tom Tromey <tromey@redhat.com>
10408
10409 * probe.h (parse_probes, find_probe_by_pc)
10410 (find_probes_in_objfile): Fix comments.
10411
f0407826
DE
104122014-03-02 Doug Evans <xdje42@gmail.com>
10413
10414 * infrun.c (handle_signal_stop): Replace test for
10415 TARGET_WAITKIND_STOPPED with an assert.
10416
35e6a711
DE
104172014-03-02 Doug Evans <xdje42@gmail.com>
10418
10419 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10420
667f9d0b
DE
104212014-03-02 Doug Evans <xdje42@gmail.com>
10422
10423 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10424
dc92ace0
MK
104252014-03-01 Mark Kettenis <kettenis@gnu.org>
10426
10427 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10428
a900370f
MK
104292014-03-01 Mark Kettenis <kettenis@gnu.org>
10430
10431 * i386obsd-nat.c: Include "obsd-nat.h".
10432 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10433 add_target.
10434 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10435
b72a7981
MK
104362014-03-01 Mark Kettenis <kettenis@gnu.org>
10437
10438 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10439
96c70aba
MK
104402014-03-01 Mark Kettenis <kettenis@gnu.org>
10441
10442 * mips64obsd-nat.c: Include "obsd-nath".
10443 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10444 add_target
10445 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10446
874a80af
MK
104472014-03-01 Mark Kettenis <kettenis@gnu.org>
10448
8fd408f1
MK
10449 * amd64obsd-nat.c: Include "obsd-nat,h.
10450 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10451 add_target.
874a80af
MK
10452 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10453
9cf95373
SC
104542014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10455
10456 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10457 (find_overload_match): Update call to find_oload_champ.
10458 (find_oload_champ_namespace_loop): Likewise
10459
863e4da4
MK
104602014-02-28 Mark Kettenis <kettenis@gnu.org>
10461
025cac40
MK
10462 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10463
1ed586ce
MK
10464 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10465 * config/sparc/obsd64.mh: New file.
10466 * sparc64obsd-nat.c: New file.
10467
863e4da4
MK
10468 * obsd-nat.h: New file.
10469 * obsd-nat.c: New file.
10470 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10471 (ALLDEPFILES): Add obsd-nat.c.
10472
89de4da4
TT
104732014-02-28 Tom Tromey <tromey@redhat.com>
10474
10475 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10476 * cli-out.h (cli_ui_out_impl): Now const.
10477 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10478 * ui-out.c (struct ui_out) <impl>: Now const.
10479 (default_ui_out_impl): Now const.
10480 (ui_out_new): Make 'impl' parameter const.
10481 * ui-out.h (ui_out_new): Update.
10482
c725e7b6
MK
104832014-02-27 Mark Kettenis <kettenis@gnu.org>
10484
10485 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10486
670b46b3
MK
104872014-02-27 Mark Kettenis <kettenis@gnu.org>
10488
10489 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10490
c91550fc
JK
104912014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10492
10493 Additional PR 8882 fix.
10494 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10495
2fa0369e
PA
104962014-02-27 Pedro Alves <palves@redhat.com>
10497
10498 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10499 isn't set.
10500
d632a097
PA
105012014-02-27 Pedro Alves <palves@redhat.com>
10502
10503 PR 12702
10504 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10505 * nat/linux-waitpid.c: Include string.h.
10506 (status_to_str): Moved here and made extern.
10507 * nat/linux-waitpid.h (status_to_str): New declaration.
10508
2ebd5a35
HZ
105092014-02-27 Hui Zhu <hui@codesourcery.com>
10510
10511 PR 12702
10512 * infrun.c (ptid_match): Move ...
10513 * common/ptid.c (ptid_match): ... here.
10514 * inferior.h (ptid_match): Move ...
10515 * common/ptid.h (ptid_match): ... here.
10516
3cdd631f
MK
105172014-02-27 Mark Kettenis <kettenis@gnu.org>
10518
10519 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10520 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10521 gdb_target_obs.
10522
bee30a64
MK
105232014-02-27 Mark Kettenis <kettenis@gnu.org>
10524
10525 * obsd-tdep.c (obsd_auxv_parse): New function.
10526 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
10527
10528 * gdbarch.sh (auxv_parse): New.
10529 * gdbarch.h: Regenerated.
10530 * gdbarch.c: Regenerated.
10531 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10532
7a5a839f
LC
105332014-02-26 Ludovic Courtès <ludo@gnu.org>
10534
10535 * guile/scm-value.c (gdbscm_history_append_x): New function.
10536 (value_functions): Add it.
10537
31aa7e4e
JB
105382014-02-27 Joel Brobecker <brobecker@adacore.com>
10539
10540 * dwarf2read.c (attr_value_as_address): New function.
10541 (dwarf2_find_base_address, read_call_site_scope): Use
10542 attr_value_as_address in place of DW_ADDR.
10543 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10544 the low and high addresses. Slight rework of the handling
10545 of the high pc being a constant form, and limit it to
10546 DWARF verson 4 or higher.
10547 (dwarf2_record_block_ranges): Likewise.
10548 (read_partial_die): Likewise.
10549 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10550
9b333ba3
TT
105512014-02-26 Tom Tromey <tromey@redhat.com>
10552
10553 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10554
5f6cac40
TT
105552014-02-26 Tom Tromey <tromey@redhat.com>
10556
10557 * elfread.c (elf_read_minimal_symbols): Return early if
10558 minimal symbols have already been read. Add "ei" parameter.
10559 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10560 * minsyms.c (prim_record_minimal_symbol_full): Update.
10561 * objfiles.h (struct objstats) <n_minsyms>: Move...
10562 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10563 * symmisc.c (print_objfile_statistics): Update.
10564
2750ef27
TT
105652014-02-26 Tom Tromey <tromey@redhat.com>
10566
10567 * elfread.c (elf_read_minimal_symbols): New function, from
10568 elf_symfile_read.
10569 (elf_symfile_read): Call it.
10570
34643a32
TT
105712014-02-26 Tom Tromey <tromey@redhat.com>
10572
10573 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10574 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10575 (lookup_minimal_symbol_solib_trampoline)
10576 (lookup_minimal_symbol_by_pc_section_1)
10577 (lookup_minimal_symbol_and_objfile): Update.
10578 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10579 Don't allocate a minimal symbol if minsyms have already been read.
10580 (build_minimal_symbol_hash_tables): Update.
10581 (install_minimal_symbols): Do nothing if minsyms already read.
10582 Use the per-BFD obstack.
10583 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10584 * objfiles.c (allocate_objfile): Call
10585 terminate_minimal_symbol_table later.
10586 (have_minimal_symbols): Update.
10587 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10588 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10589 Move from struct objfile.
10590 <minsyms_read>: New field.
10591 (struct objfile) <msymbols, minimal_symbol_count,
10592 msymbol_hash, msymbol_demangled_hash>: Move.
10593 (ALL_OBJFILE_MSYMBOLS): Update.
10594 * symfile.c (read_symbols): Set minsyms_read.
10595 (reread_symbols): Update.
10596 * symmisc.c (dump_objfile, dump_msymbols): Update.
10597
2273f0ac
TT
105982014-02-26 Tom Tromey <tromey@redhat.com>
10599
10600 * minsyms.c (msymbols_sort): Remove.
10601 * minsyms.h (msymbols_sort): Remove.
10602 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10603 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10604 * elfread.c (elf_symtab_read): Don't add section offsets.
10605 * xcoffread.c (record_minimal_symbol): Don't add section offset
10606 to minimal symbol address.
10607 * somread.c (text_offset, data_offset): Remove.
10608 (som_symtab_read): Don't add section offsets to minimal symbol
10609 addresses.
10610 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10611 Don't add section offsets to minimal symbols.
10612 * coffread.c (coff_symtab_read): Don't add section offsets
10613 to minimal symbol addresses.
10614 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10615 to minimal symbol addresses.
10616 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10617 section offset to minimal symbol addresses.
10618 * mdebugread.c (parse_partial_symbols): Don't add section
10619 offset to minimal symbol addresses.
10620 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10621 offset to minimal symbol addresses.
10622
77e371c0
TT
106232014-02-26 Tom Tromey <tromey@redhat.com>
10624
10625 * ada-lang.c (ada_main_name): Update.
10626 (ada_add_standard_exceptions): Update.
10627 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10628 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10629 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10630 * auxv.c (ld_so_xfer_auxv): Update.
10631 * avr-tdep.c (avr_scan_prologue): Update.
10632 * ax-gdb.c (gen_var_ref): Update.
10633 * blockframe.c (get_pc_function_start)
10634 (find_pc_partial_function_gnu_ifunc): Update.
10635 * breakpoint.c (create_overlay_event_breakpoint)
10636 (create_longjmp_master_breakpoint)
10637 (create_std_terminate_master_breakpoint)
10638 (create_exception_master_breakpoint): Update.
10639 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10640 * c-valprint.c (c_val_print): Update.
10641 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10642 * common/agent.c (agent_look_up_symbols): Update.
10643 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10644 * dwarf2loc.c (call_site_to_target_addr): Update.
10645 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10646 * elfread.c (elf_gnu_ifunc_record_cache)
10647 (elf_gnu_ifunc_resolve_by_got): Update.
10648 * findvar.c (default_read_var_value): Update.
10649 * frame.c (inside_main_func): Update.
10650 * frv-tdep.c (frv_frame_this_id): Update.
10651 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10652 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10653 Update.
10654 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10655 (hppa_hpux_find_dummy_bpaddr): Update.
10656 * hppa-tdep.c (hppa_symbol_address): Update.
10657 * infcmd.c (until_next_command): Update.
10658 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10659 Update.
10660 * linespec.c (minsym_found, add_minsym): Update.
10661 * linux-nat.c (get_signo): Update.
10662 * linux-thread-db.c (inferior_has_bug): Update.
10663 * m32c-tdep.c (m32c_return_value)
10664 (m32c_m16c_address_to_pointer): Update.
10665 * m32r-tdep.c (m32r_frame_this_id): Update.
10666 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10667 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10668 * maint.c (maintenance_translate_address): Update.
10669 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10670 (frob_address): New function.
10671 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10672 frob_address. Rename parameter to "pc_in".
10673 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10674 addresses.
10675 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10676 Update.
10677 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10678 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10679 * objc-lang.c (find_objc_msgsend): Update.
10680 * objfiles.c (objfile_relocate1): Update.
10681 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10682 * p-valprint.c (pascal_val_print): Update.
10683 * parse.c (write_exp_msymbol): Update.
10684 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10685 (ppc_elfv2_skip_entrypoint): Update.
10686 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10687 * printcmd.c (build_address_symbolic, msym_info)
10688 (address_info): Update.
10689 * proc-service.c (ps_pglobal_lookup): Update.
10690 * psymtab.c (find_pc_sect_psymtab_closer)
10691 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10692 Change msymbol parameter to bound_minimal_symbol.
10693 * ravenscar-thread.c (get_running_thread_id): Update.
10694 * remote.c (remote_check_symbols): Update.
10695 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10696 address.
10697 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10698 * solib-dsbt.c (lm_base): Update.
10699 * solib-frv.c (lm_base, main_got): Update.
10700 * solib-irix.c (locate_base): Update.
10701 * solib-som.c (som_solib_create_inferior_hook)
10702 (link_map_start): Update.
10703 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10704 * solib-svr4.c (elf_locate_base, enable_break): Update.
10705 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10706 (flush_ea_cache): Update.
10707 * stabsread.c (define_symbol, scan_file_globals): Update.
10708 * stack.c (find_frame_funname): Update.
10709 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10710 (debug_qf_find_pc_sect_symtab): Update.
10711 * symfile.c (simple_read_overlay_table)
10712 (simple_overlay_update): Update.
10713 * symfile.h (struct quick_symbol_functions)
10714 <find_pc_sect_symtab>: Change type of msymbol to
10715 bound_minimal_symbol.
10716 * symmisc.c (dump_msymbols): Update.
10717 * symtab.c (find_pc_sect_symtab_via_partial)
10718 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10719 (search_symbols, print_msymbol_info): Update.
10720 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10721 (MSYMBOL_VALUE_ADDRESS): Redefine.
10722 (BMSYMBOL_VALUE_ADDRESS): New macro.
10723 * tracepoint.c (scope_info): Update.
10724 * tui/tui-disasm.c (tui_find_disassembly_address)
10725 (tui_get_begin_asm_address): Update.
10726 * valops.c (find_function_in_inferior): Update.
10727 * value.c (value_static_field, value_fn_field): Update.
10728
3b7344d5
TT
107292014-02-26 Tom Tromey <tromey@redhat.com>
10730
10731 * ada-lang.c (ada_update_initial_language): Update.
10732 (ada_main_name, ada_has_this_exception_support): Update.
10733 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10734 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10735 * arm-tdep.c (arm_skip_stub): Update.
10736 * auxv.c (ld_so_xfer_auxv): Update.
10737 * avr-tdep.c (avr_scan_prologue): Update.
10738 * ax-gdb.c (gen_var_ref): Update.
10739 * breakpoint.c (struct breakpoint_objfile_data)
10740 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10741 type to bound_minimal_symbol.
10742 (create_overlay_event_breakpoint)
10743 (create_longjmp_master_breakpoint)
10744 (create_std_terminate_master_breakpoint)
10745 (create_exception_master_breakpoint): Update.
10746 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10747 * c-exp.y (classify_name): Update.
10748 * coffread.c (coff_symfile_read): Update.
10749 * common/agent.c (agent_look_up_symbols): Update.
10750 * d-lang.c (d_main_name): Update.
10751 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10752 * dec-thread.c (enable_dec_thread): Update.
10753 * dwarf2loc.c (call_site_to_target_addr): Update.
10754 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10755 * eval.c (evaluate_subexp_standard): Update.
10756 * findvar.c (struct minsym_lookup_data) <result>: Change type
10757 to bound_minimal_symbol.
10758 <objfile>: Remove.
10759 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10760 * frame.c (inside_main_func): Update.
10761 * frv-tdep.c (frv_frame_this_id): Update.
10762 * gcore.c (call_target_sbrk): Update.
10763 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10764 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10765 Update.
10766 * go-lang.c (go_main_name): Update.
10767 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10768 (hppa_hpux_find_import_stub_for_addr): Update.
10769 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10770 Update. Change return type.
10771 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10772 type.
10773 * jit.c (jit_breakpoint_re_set_internal): Update.
10774 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10775 Update.
10776 * linux-nat.c (get_signo): Update.
10777 * linux-thread-db.c (inferior_has_bug): Update
10778 * m32c-tdep.c (m32c_return_value)
10779 (m32c_m16c_address_to_pointer): Update.
10780 * m32r-tdep.c (m32r_frame_this_id): Update.
10781 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10782 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10783 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10784 lookup_minimal_symbol. Change return type.
10785 (lookup_minimal_symbol): Remove.
10786 (lookup_bound_minimal_symbol): Update.
10787 (lookup_minimal_symbol_text): Change return type.
10788 (lookup_minimal_symbol_solib_trampoline): Change return type.
10789 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10790 (lookup_minimal_symbol_solib_trampoline): Change return type.
10791 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10792 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10793 (value_nsstring, find_imps): Update.
10794 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10795 * p-lang.c (pascal_main_name): Update.
10796 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10797 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10798 * proc-service.c (ps_pglobal_lookup): Update.
10799 * ravenscar-thread.c (get_running_thread_msymbol): Change
10800 return type.
10801 (has_ravenscar_runtime, get_running_thread_id): Update.
10802 * remote.c (remote_check_symbols): Update.
10803 * sol-thread.c (ps_pglobal_lookup): Update.
10804 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10805 * solib-dsbt.c (lm_base): Update.
10806 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10807 Update.
10808 * solib-irix.c (locate_base): Update.
10809 * solib-som.c (som_solib_create_inferior_hook)
10810 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10811 Update.
10812 * solib-spu.c (spu_enable_break): Update.
10813 * solib-svr4.c (elf_locate_base, enable_break): Update.
10814 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10815 (flush_ea_cache): Update.
10816 * stabsread.c (define_symbol): Update.
10817 * symfile.c (simple_read_overlay_table): Update.
10818 * symtab.c (find_pc_sect_line): Update.
10819 * tracepoint.c (scope_info): Update.
10820 * tui-disasm.c (tui_get_begin_asm_address): Update.
10821 * value.c (value_static_field): Update.
10822
40c1a007
TT
108232014-02-26 Tom Tromey <tromey@redhat.com>
10824
10825 * minsyms.c (prim_record_minimal_symbol_full): Use
10826 SET_MSYMBOL_VALUE_ADDRESS.
10827 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10828 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10829 SET_MSYMBOL_VALUE_ADDRESS.
10830 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10831 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10832
efd66ac6
TT
108332014-02-26 Tom Tromey <tromey@redhat.com>
10834
10835 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10836 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10837 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10838 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10839 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10840 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10841 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10842 * ada-lang.c (ada_main_name): Update.
10843 (ada_lookup_simple_minsym): Update.
10844 (ada_make_symbol_completion_list): Update.
10845 (ada_add_standard_exceptions): Update.
10846 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10847 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10848 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10849 * arm-tdep.c (skip_prologue_function): Update.
10850 (arm_skip_stack_protector, arm_skip_stub): Update.
10851 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10852 (arm_wince_skip_main_prologue): Update.
10853 * auxv.c (ld_so_xfer_auxv): Update.
10854 * avr-tdep.c (avr_scan_prologue): Update.
10855 * ax-gdb.c (gen_var_ref): Update.
10856 * block.c (call_site_for_pc): Update.
10857 * blockframe.c (get_pc_function_start): Update.
10858 (find_pc_partial_function_gnu_ifunc): Update.
10859 * breakpoint.c (create_overlay_event_breakpoint): Update.
10860 (create_longjmp_master_breakpoint): Update.
10861 (create_std_terminate_master_breakpoint): Update.
10862 (create_exception_master_breakpoint): Update.
10863 (resolve_sal_pc): Update.
10864 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10865 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10866 Update.
10867 * c-valprint.c (c_val_print): Update.
10868 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10869 * coffread.c (coff_symfile_read): Update.
10870 * common/agent.c (agent_look_up_symbols): Update.
10871 * dbxread.c (find_stab_function_addr): Update.
10872 (end_psymtab): Update.
10873 * dwarf2loc.c (call_site_to_target_addr): Update.
10874 (func_verify_no_selftailcall): Update.
10875 (tailcall_dump): Update.
10876 (call_site_find_chain_1): Update.
10877 (dwarf_expr_reg_to_entry_parameter): Update.
10878 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10879 (elf_gnu_ifunc_resolve_by_got): Update.
10880 * f-valprint.c (info_common_command): Update.
10881 * findvar.c (read_var_value): Update.
10882 * frame.c (get_prev_frame_1): Update.
10883 (inside_main_func): Update.
10884 * frv-tdep.c (frv_skip_main_prologue): Update.
10885 (frv_frame_this_id): Update.
10886 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10887 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10888 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10889 (gnuv3_skip_trampoline): Update.
10890 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10891 (hppa64_hpux_in_solib_call_trampoline): Update.
10892 (hppa_hpux_skip_trampoline_code): Update.
10893 (hppa64_hpux_search_dummy_call_sequence): Update.
10894 (hppa_hpux_find_import_stub_for_addr): Update.
10895 (hppa_hpux_find_dummy_bpaddr): Update.
10896 * hppa-tdep.c (hppa_symbol_address)
10897 (hppa_lookup_stub_minimal_symbol): Update.
10898 * i386-tdep.c (i386_skip_main_prologue): Update.
10899 (i386_pe_skip_trampoline_code): Update.
10900 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10901 * infcall.c (get_function_name): Update.
10902 * infcmd.c (until_next_command): Update.
10903 * jit.c (jit_breakpoint_re_set_internal): Update.
10904 (jit_inferior_init): Update.
10905 * linespec.c (minsym_found): Update.
10906 (add_minsym): Update.
10907 * linux-fork.c (info_checkpoints_command): Update.
10908 * linux-nat.c (get_signo): Update.
10909 * linux-thread-db.c (inferior_has_bug): Update.
10910 * m32c-tdep.c (m32c_return_value): Update.
10911 (m32c_m16c_address_to_pointer): Update.
10912 (m32c_m16c_pointer_to_address): Update.
10913 * m32r-tdep.c (m32r_frame_this_id): Update.
10914 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10915 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10916 * maint.c (maintenance_translate_address): Update.
10917 * minsyms.c (add_minsym_to_hash_table): Update.
10918 (add_minsym_to_demangled_hash_table): Update.
10919 (msymbol_objfile): Update.
10920 (lookup_minimal_symbol): Update.
10921 (iterate_over_minimal_symbols): Update.
10922 (lookup_minimal_symbol_text): Update.
10923 (lookup_minimal_symbol_by_pc_name): Update.
10924 (lookup_minimal_symbol_solib_trampoline): Update.
10925 (lookup_minimal_symbol_by_pc_section_1): Update.
10926 (lookup_minimal_symbol_and_objfile): Update.
10927 (prim_record_minimal_symbol_full): Update.
10928 (compare_minimal_symbols): Update.
10929 (compact_minimal_symbols): Update.
10930 (build_minimal_symbol_hash_tables): Update.
10931 (install_minimal_symbols): Update.
10932 (terminate_minimal_symbol_table): Update.
10933 (find_solib_trampoline_target): Update.
10934 (minimal_symbol_upper_bound): Update.
10935 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10936 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10937 (mips_skip_pic_trampoline_code): Update.
10938 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10939 * objc-lang.c (selectors_info): Update.
10940 (classes_info): Update.
10941 (find_methods): Update.
10942 (find_imps): Update.
10943 (find_objc_msgsend): Update.
10944 * objfiles.c (objfile_relocate1): Update.
10945 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10946 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10947 * p-valprint.c (pascal_val_print): Update.
10948 * parse.c (write_exp_msymbol): Update.
10949 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10950 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10951 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10952 * printcmd.c (build_address_symbolic): Update.
10953 (sym_info): Update.
10954 (address_info): Update.
10955 * proc-service.c (ps_pglobal_lookup): Update.
10956 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10957 (find_pc_sect_psymtab): Update.
10958 * python/py-framefilter.c (py_print_frame): Update.
10959 * ravenscar-thread.c (get_running_thread_id): Update.
10960 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10961 Update.
10962 * remote.c (remote_check_symbols): Update.
10963 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10964 (rs6000_skip_trampoline_code): Update.
10965 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10966 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10967 * solib-dsbt.c (lm_base): Update.
10968 * solib-frv.c (lm_base): Update.
10969 (main_got): Update.
10970 * solib-irix.c (locate_base): Update.
10971 * solib-som.c (som_solib_create_inferior_hook): Update.
10972 (som_solib_desire_dynamic_linker_symbols): Update.
10973 (link_map_start): Update.
10974 * solib-spu.c (spu_enable_break): Update.
10975 (ocl_enable_break): Update.
10976 * solib-svr4.c (elf_locate_base): Update.
10977 (enable_break): Update.
10978 * spu-tdep.c (spu_get_overlay_table): Update.
10979 (spu_catch_start): Update.
10980 (flush_ea_cache): Update.
10981 * stabsread.c (define_symbol): Update.
10982 (scan_file_globals): Update.
10983 * stack.c (find_frame_funname): Update.
10984 (frame_info): Update.
10985 * symfile.c (simple_read_overlay_table): Update.
10986 (simple_overlay_update): Update.
10987 * symmisc.c (dump_msymbols): Update.
10988 * symtab.c (fixup_section): Update.
10989 (find_pc_sect_line): Update.
10990 (skip_prologue_sal): Update.
10991 (search_symbols): Update.
10992 (print_msymbol_info): Update.
10993 (rbreak_command): Update.
10994 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10995 (completion_list_objc_symbol): Update.
10996 (default_make_symbol_completion_list_break_on): Update.
10997 * tracepoint.c (scope_info): Update.
10998 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10999 (tui_get_begin_asm_address): Update.
11000 * valops.c (find_function_in_inferior): Update.
11001 * value.c (value_static_field): Update.
11002 (value_fn_field): Update.
11003
50e65b17
TT
110042014-02-26 Tom Tromey <tromey@redhat.com>
11005
11006 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
11007 bound minimal symbols. Move code that knows about minsym
11008 table layout...
11009 * minsyms.c (minimal_symbol_upper_bound): ... here. New
11010 function.
11011 * minsyms.h (minimal_symbol_upper_bound): Declare.
11012 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
11013 minimal_symbol_upper_bound.
11014
1b588015
JB
110152014-02-27 Joel Brobecker <brobecker@adacore.com>
11016
11017 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
11018 Use the type's name if its basic type does not have a tag.
11019
dbb9c2b1
JB
110202014-02-27 Joel Brobecker <brobecker@adacore.com>
11021
11022 * dwarf2read.c (read_subrange_type): Add comment.
11023
55426c9d
JB
110242014-02-27 Joel Brobecker <brobecker@adacore.com>
11025
11026 * dwarf2read.c (update_enumeration_type_from_children): New
11027 function, mostly extracted from process_structure_scope.
11028 (read_enumeration_type): Call update_enumeration_type_from_children.
11029 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
11030 and flag_flag_enum fields.
11031
f2fce0ca
PA
110322014-02-26 Pedro Alves <palves@redhat.com>
11033
11034 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
11035 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
11036 to_xfer_partial method.
11037
7a44e40e
PA
110382014-02-26 Pedro Alves <palves@redhat.com>
11039
11040 * target.c (complete_target_initialization): Don't install
11041 default_xfer_partial as to_xfer_partial hook.
11042 (nomemory): Delete.
11043 (update_current_target): Don't INHERIT nor de_fault
11044 deprecated_xfer_memory. Delete de_fault macro.
11045 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
11046 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
11047 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
11048 field.
11049
bd265cd0
PA
110502014-02-26 Pedro Alves <palves@redhat.com>
11051
11052 * go32-nat.c (my_write_child): New function.
11053 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
11054 (go32_xfer_partial): New function.
11055 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
11056 Instead install a to_xfer_partial hook.
11057
9d46c4e5
PA
110582014-02-26 Pedro Alves <palves@redhat.com>
11059
11060 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
11061 to_xfer_partial helper. Rewrite.
11062 (procfs_xfer_partial): New function.
11063 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
11064 Install a to_xfer_partial hook.
11065
a1583b1f
PA
110662014-02-26 Pedro Alves <palves@redhat.com>
11067
11068 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
11069 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
11070 (m32r_xfer_partial): New function.
11071 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
11072 Install a to_xfer_partial hook.
11073
6df1b29f
PA
110742014-02-26 Pedro Alves <palves@redhat.com>
11075
11076 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
11077 helper.
11078 (mips_xfer_partial): New function.
11079 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
11080 hook. Install a to_xfer_partial hook.
11081
dc53a7ad
JB
110822014-02-26 Joel Brobecker <brobecker@adacore.com>
11083
11084 * gdbtypes.h (create_array_type_with_stride): Add declaration.
11085 * gdbtypes.c (create_array_type_with_stride): New function,
11086 renaming create_array_type, but with an added parameter
11087 called "bit_stride".
11088 (create_array_type): Re-implement using
11089 create_array_type_with_stride.
11090 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
11091 and DW_AT_bit_stride attributes.
11092
12ab52e9
PA
110932014-02-26 Pedro Alves <palves@redhat.com>
11094
11095 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
11096 task-specific breakpoints.
11097
d16461ae
PA
110982014-02-25 Pedro Alves <palves@redhat.com>
11099
11100 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
11101 handling of object == TARGET_OBJECT_UNWIND_TABLE.
11102
a8b16220
SS
111032014-02-25 Stan Shebs <stan@codesourcery.com>
11104
11105 * defs.h: Annotate comments for Doxygen.
11106
b9e795ee
TT
111072014-02-25 Tom Tromey <tromey@redhat.com>
11108
11109 * target.h (target_ignore): Don't declare.
11110 * target.c (target_ignore): Remove.
11111
849c862e
JK
111122014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11113
11114 PR gdb/16626
11115 * auto-load.c (auto_load_objfile_script_1): Change filename to
11116 debugfile.
11117
475109d8
JB
111182014-02-25 Joel Brobecker <brobecker@adacore.com>
11119
11120 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
11121 documentation. Adjust prototype to match the target_ops
11122 to_xfer_partial method. Adjust implementation accordingly.
11123
e186c3bd
HZ
111242014-02-25 Hui Zhu <hui@codesourcery.com>
11125
11126 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
11127 to_traceframe_info.
11128
6d451942
KB
111292014-02-25 Kevin Buettner <kevinb@redhat.com>
11130
041ab8b4 11131 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
11132 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
11133 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
11134 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
11135 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
11136 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
11137 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
11138 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
11139 New constants.
11140 (rl78_register_type): Use a data pointer type for SP and
11141 new pseudo registers mentioned above. Use a 16 bit integer
11142 type for all other register pairs.
11143 (rl78_register_name, rl78_g10_register_name): Update for
11144 new pseudo registers.
11145 (rl78_pseudo_register_read): Likewise.
11146 (rl78_pseudo_register_write): Likewise.
11147 (rl78_dwarf_reg_to_regnum): Return register numbers representing
11148 to the newly added pseudo registers.
11149
eddf0bae
DE
111502014-02-24 Doug Evans <dje@google.com>
11151
11152 * value.c (record_latest_value): Fix comment.
11153 * printcmd.c (print_command_1): Remove code to handle -1 return from
11154 record_latest_value.
11155
e96027e0
PA
111562014-02-24 Pedro Alves <palves@redhat.com>
11157
11158 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
11159 deprecated_xfer_memory hook.
11160 (procfs_xfer_partial): Call procfs_xfer_memory instead
11161 of the deprecated_xfer_memory target hook.
11162 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11163 helper.
11164
0837c976
YZ
111652014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
11166
11167 * windows-nat.c (windows_xfer_shared_libraries): Return
11168 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11169 requested object is TARGET_OBJECT_LIBRARIES.
11170
bc113b4e
YQ
111712014-02-24 Yao Qi <yao@codesourcery.com>
11172
11173 * target.h (enum target_xfer_status)
11174 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11175 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11176 explicitly. New.
11177 * corefile.c (memory_error_message): User updated.
11178 * exec.c (section_table_read_available_memory): Likewise.
11179 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11180 * target.c (target_xfer_status_to_string): Likewise.
11181 (raw_memory_xfer_partial): Likewise.
11182 (memory_xfer_partial_1, target_xfer_partial): Likewise.
11183 * valops.c (read_value_memory): Likewise.
11184 * exec.h: Update comments.
11185
01cb8804
YQ
111862014-02-24 Yao Qi <yao@codesourcery.com>
11187
11188 * target.c (target_xfer_status_to_string): Rename argument err
11189 to status.
11190 * target.h (target_xfer_status_to_string): Update declaration.
11191 Replace target_xfer_error_to_string with
11192 target_xfer_status_to_string in comment.
11193
93063aa6
YQ
111942014-02-24 Yao Qi <yao@codesourcery.com>
11195
11196 * mips-linux-nat.c (super_close): Update its type.
11197 (mips_linux_close): Pass 'self' to super_close.
11198
5c328c05
YQ
111992014-02-24 Yao Qi <yao@codesourcery.com>
11200
11201 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11202 * corefile.c (read_memory): Adjusted.
11203 * target.c (target_write_with_progress): Adjusted.
11204
f73023dd
YQ
112052014-02-23 Yao Qi <yao@codesourcery.com>
11206
11207 Revert two patches:
11208
11209 2013-10-25 Yao Qi <yao@codesourcery.com>
11210
11211 * remote.c (remote_traceframe_info): Return early if
11212 traceframe is not selected.
11213
11214 2013-07-19 Yao Qi <yao@codesourcery.com>
11215
11216 * target.c (update_current_target): Change the default action
11217 of 'to_traceframe_info' from tcomplain to return_zero.
11218 * target.h (struct target_ops) <to_traceframe_info>: Add more
11219 comments.
11220
5a2eb0ef
YQ
112212014-02-23 Yao Qi <yao@codesourcery.com>
11222
11223 * valops.c (read_value_memory): Rewrite it. Call
11224 target_xfer_partial in a loop.
11225 * exec.h (section_table_available_memory): Remove declaration.
11226 Move comments to ...
11227 * exec.c (section_table_available_memory): ... here. Make it
11228 static.
11229
1ee79381
YQ
112302014-02-23 Yao Qi <yao@codesourcery.com>
11231
11232 * exec.c (section_table_read_available_memory): New function.
11233 * exec.h (section_table_read_available_memory): Declare.
11234 * ctf.c (ctf_xfer_partial): Call
11235 section_table_read_available_memory.
11236 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11237
1ca49d37
YQ
112382014-02-23 Yao Qi <yao@codesourcery.com>
11239
11240 * ctf.c (ctf_xfer_partial): Move code to ...
11241 * exec.c (exec_read_partial_read_only): ... it. New function.
11242 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11243 * tracefile.c: Include "exec.h".
11244 * exec.h (exec_read_partial_read_only): Declare.
11245
a283690e
YQ
112462014-02-23 Yao Qi <yao@codesourcery.com>
11247
11248 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11249 (tfile_has_memory): Remove.
11250 (init_tfile_ops): Don't set fields to_has_all_memory and
11251 to_has_memory of tfile_ops.
11252 * tracefile.c (tracefile_has_all_memory): New function.
11253 (tracefile_has_memory): New function.
11254 (init_tracefile_ops): Initialize fields to_has_all_memory and
11255 to_has_memory of 'ops'.
11256
12e03cd0
YQ
112572014-02-23 Yao Qi <yao@codesourcery.com>
11258
11259 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11260 (ctf_thread_alive, ctf_get_trace_status): Remove.
11261 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11262 init_tracefile_ops.
11263 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11264 (tfile_has_stack, tfile_has_registers): Remove.
11265 (tfile_thread_alive): Remove.
11266 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11267 init_tracefile_ops.
11268 * tracefile.c (tracefile_has_stack): New function.
11269 (tracefile_has_registers): New function.
11270 (tracefile_thread_alive): New function.
11271 (tracefile_get_trace_status): New function.
11272 (init_tracefile_ops): New function.
11273 * tracefile.h (init_tracefile_ops): Declare.
11274
11395323
YQ
112752014-02-23 Yao Qi <yao@codesourcery.com>
11276
11277 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11278 (O_LARGEFILE): Likewise.
11279 (tfile_ops): Likewise.
11280 (TRACE_HEADER_SIZE): Likewise.
11281 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11282 (cur_data_size): Likewise.
11283 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11284 (tfile_close, tfile_files_info): Likewise.
11285 (tfile_get_trace_status): Likewise.
11286 (tfile_get_tracepoint_status): Likewise.
11287 (tfile_get_traceframe_address): Likewise.
11288 (tfile_trace_find, match_blocktype): Likewise.
11289 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11290 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11291 (tfile_get_trace_state_variable_value): Likewise.
11292 (tfile_has_all_memory, tfile_has_memory): Likewise.
11293 (tfile_has_stack, tfile_has_registers): Likewise.
11294 (tfile_thread_alive, build_traceframe_info): Likewise.
11295 (tfile_traceframe_info, init_tfile_ops): Likewise.
11296 (_initialize_tracepoint): Don't call init_tfile_ops
11297 and add_target_with_completer.
11298 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11299 exec.h, completer.h and filenames.h.
11300 (_initialize_tracefile_tfile): New function.
11301
7951c4eb
YQ
113022014-02-23 Yao Qi <yao@codesourcery.com>
11303
11304 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11305 tracefile-tfile.o.
11306 (HFILES_NO_SRCDIR): Add tracefile.h.
11307 * ctf.c: Include "tracefile.h".
11308 * tracefile.h: New file.
11309 * tracefile.c: New file
11310 * tracefile-tfile.c: New file.
11311 * tracepoint.c: Include "tracefile.h".
11312 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11313 (stop_reason_names): Add const.
11314 (trace_file_writer_xfree): Move it to tracefile.c.
11315 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11316 (trace_save_ctf): Likewise.
11317 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11318 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11319 (tfile_write_header, tfile_write_regblock_type): Likewise.
11320 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11321 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11322 (tfile_write_raw_data, tfile_end): Likewise.
11323 (tfile_trace_file_writer_new): Likewise.
11324 (free_uploaded_tp): Make it extern.
11325 (free_uploaded_tsv): Make it extern.
11326 (_initialize_tracepoint): Move code to register command 'tsave'
11327 to tracefile.c.
11328 * tracepoint.h (stop_reason_names): Declare.
11329 (struct trace_frame_write_ops): Move it to tracefile.h.
11330 (struct trace_file_write_ops): Likewise.
11331 (struct trace_file_writer): Likewise.
11332 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11333
184cd072
JK
113342014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11335
11336 PR gdb/16594
11337 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11338 process name.
11339 (get_cores_used_by_process): New parameter num_cores, use it.
11340 (linux_xfer_osdata_processes): Pass num_cores to it.
11341 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11342 process name.
11343
c63528fc
AK
113442014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11345
11346 * target.c (memory_xfer_partial): Fix length arg in call to
11347 breakpoint_xfer_memory.
11348
d7b30f67
SDJ
113492014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11350
11351 PR tdep/16397
11352 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11353 number comes after the + or - signs. Adjust length of register
11354 name to be extracted.
11355
8838afaf
TT
113562014-02-20 Tom Tromey <tromey@redhat.com>
11357
11358 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11359 (ada_varobj_ops): Mark "extern".
11360
05227d14
TT
113612014-02-20 Tom Tromey <tromey@redhat.com>
11362
11363 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11364
1254eefc
DE
113652014-02-20 Doug Evans <xdje42@gmail.com>
11366
11367 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11368 All callers updated.
11369 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11370 All callers updated.
11371 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11372 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11373
adde2bff
DE
113742014-02-20 lin zuojian <manjian2006@gmail.com>
11375 Joel Brobecker <brobecker@adacore.com>
11376 Doug Evans <xdje42@gmail.com>
11377
11378 PR symtab/16581
11379 * dwarf2read.c (struct die_info): New member in_process.
11380 (reset_die_in_process): New function.
11381 (process_die): Set it at the start, reset when returning.
11382 (inherit_abstract_dies): Only call process_die if origin_child_die
11383 not already being processed.
11384
3be75f87
JB
113852014-02-20 Joel Brobecker <brobecker@adacore.com>
11386
11387 * windows-nat.c (handle_unload_dll): Add function documentation.
11388 (do_initial_windows_stuff): Add comment explaining why we wait
11389 until after inferior initialization has finished before
11390 processing all DLLs.
11391
47f7ffdb
JB
113922014-02-20 Joel Brobecker <brobecker@adacore.com>
11393
11394 * windows-nat.c (get_module_name): Delete.
11395 (windows_get_exec_module_filename): New function, mostly
11396 inspired from get_module_name.
11397 (windows_pid_to_exec_file): Replace call to get_module_name
11398 by call to windows_get_exec_module_filename.
11399
1cd9feab
JB
114002014-02-20 Joel Brobecker <brobecker@adacore.com>
11401
11402 * windows-nat.c (handle_load_dll): Rewrite this function's
11403 introductory comment. Remove code using get_module_name
11404 to get the DLL's name.
11405
ea39ad35
JB
114062014-02-20 Joel Brobecker <brobecker@adacore.com>
11407
11408 * windows-nat.c (get_windows_debug_event): Ignore
11409 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11410 if windows_initialization_done == 0.
11411 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11412 Adjust implementation to always load all DLLs.
11413 (do_initial_windows_stuff): Replace call to
11414 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11415
95060284
JB
114162014-02-20 Joel Brobecker <brobecker@adacore.com>
11417
11418 * windows-nat.c (_initialize_windows_nat): Deprecate the
11419 "dll-symbols" command. Turn the "add-shared-symbol-files"
11420 and "assf" aliases into commands, and deprecate them as well.
11421 * NEWS: Add entry explaining that "dll-symbols" and its two
11422 aliases are now deprecated.
11423
8d4fdb12
JB
114242014-02-20 Joel Brobecker <brobecker@adacore.com>
11425
11426 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11427 new-line in debug string. Remove trailing spaces.
11428
1b281443
SS
114292014-02-19 Stan Shebs <stan@codesourcery.com>
11430
11431 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11432
f7bd0f78
SC
114332014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11434
11435 * NEWS: Add entry for the new feature
11436 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11437 and class values.
11438
399ebc3d
SS
114392014-02-19 Stan Shebs <stan@codesourcery.com>
11440
11441 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11442
c658158d
PA
114432014-02-19 Pedro Alves <palves@redhat.com>
11444
11445 * common/ptid.h (struct ptid): Mention that process_stratum
11446 targets should prefer ptid.lwp.
11447
ba348170
PA
114482014-02-19 Pedro Alves <palves@redhat.com>
11449
11450 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11451 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11452 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11453 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11454 store remote thread ids rather than ptid.tid.
11455 (_initialize_remote): Adjust.
11456
ac01945b
TT
114572014-02-19 Tom Tromey <tromey@redhat.com>
11458
11459 * target.c (target_get_unwinder): Rewrite.
11460 (target_get_tailcall_unwinder): Rewrite.
11461 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11462 (record_btrace_to_get_tailcall_unwinder): New function.
11463 (init_record_btrace_ops): Update.
11464 * target.h (struct target_ops) <to_get_unwinder,
11465 to_get_tailcall_unwinder>: Now function pointers. Use
11466 TARGET_DEFAULT_RETURN.
11467
8476dc92
TT
114682014-02-19 Tom Tromey <tromey@redhat.com>
11469
11470 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11471 argument.
11472 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11473
c0eca49f
TT
114742014-02-19 Tom Tromey <tromey@redhat.com>
11475
11476 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11477 directly.
11478 * target-delegates.c: Rebuild.
11479 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11480 TARGET_DEFAULT_FUNC.
11481 * target.c (default_target_decr_pc_after_break): Rename from
11482 forward_target_decr_pc_after_break. Simplify.
11483 (target_decr_pc_after_break): Rely on delegation.
11484
596b6b39
TT
114852014-02-19 Tom Tromey <tromey@redhat.com>
11486
11487 * target.c (update_current_target): Do not INHERIT to_doc or
11488 to_magic. Do not de_fault to_open or to_close.
11489
b427c1bc
TT
114902014-02-19 Tom Tromey <tromey@redhat.com>
11491
11492 * gcore.h (objfile_find_memory_regions): Declare.
11493 * gcore.c (objfile_find_memory_regions): No longer static. Add
11494 "self" argument.
11495 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11496 * exec.c: Include gcore.h.
11497 (exec_set_find_memory_regions): Remove.
11498 (exec_find_memory_regions): Remove.
11499 (exec_do_find_memory_regions): Remove.
11500 (init_exec_ops): Update.
11501 * defs.h (exec_set_find_memory_regions): Remove.
11502
9b144037
TT
115032014-02-19 Tom Tromey <tromey@redhat.com>
11504
11505 * target-delegates.c: Rebuild.
11506 * target.h (struct target_ops) <to_extra_thread_info,
11507 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11508 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11509 not 0, in TARGET_DEFAULT_RETURN.
11510
555bbdeb
TT
115112014-02-19 Tom Tromey <tromey@redhat.com>
11512
11513 * target.c (complete_target_initialization): Remove casts. Use
11514 return_zero_has_execution.
11515 (return_zero): Add "ignore" argument.
11516 (return_zero_has_execution): New function.
11517 (init_dummy_target): Remove casts. Use
11518 return_zero_has_execution.
11519
be4ddd36
TT
115202014-02-19 Tom Tromey <tromey@redhat.com>
11521
11522 * target.c (update_current_target): Update comments. Do not
11523 INHERIT to_stratum.
11524
2117c711
TT
115252014-02-19 Tom Tromey <tromey@redhat.com>
11526
11527 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11528 needed.
11529 * corelow.c (core_read_description): Delegate when needed.
11530 * remote.c (remote_read_description): Delegate when needed.
11531 * target-delegates.c: Rebuild.
11532 * target.c (target_read_description): Rewrite.
11533 * target.h (struct target_ops) <to_read_description>: Update
11534 comment. Use TARGET_DEFAULT_RETURN.
11535
e88ef65c
TT
115362014-02-19 Tom Tromey <tromey@redhat.com>
11537
11538 * target-delegates.c: Rebuild.
11539 * target.c (update_current_target): Don't inherit or default
11540 to_can_run.
11541 (find_default_run_target): Check against delegate_can_run.
11542 * target.h (struct target_ops) <to_can_run>: Use
11543 TARGET_DEFAULT_RETURN.
11544
86a0854a
TT
115452014-02-19 Tom Tromey <tromey@redhat.com>
11546
11547 * target-delegates.c: Rebuild.
11548 * target.c (target_disconnect): Unconditionally delegate.
11549 * target.h (struct target_ops) <to_disconnect>: Use
11550 TARGET_DEFAULT_NORETURN.
11551
ee97f592
TT
115522014-02-19 Tom Tromey <tromey@redhat.com>
11553
11554 * record.c (record_stop): Unconditionally delegate.
11555 * target-delegates.c: Rebuild.
11556 * target.c (target_stop_recording): Unconditionally delegate.
11557 * target.h (struct target_ops) <to_stop_recording>: Use
11558 TARGET_DEFAULT_IGNORE.
11559
6dc7fcf4
TT
115602014-02-19 Tom Tromey <tromey@redhat.com>
11561
11562 * target-delegates.c: Rebuild.
11563 * target.c (target_enable_btrace): Unconditionally delegate.
11564 * target.h (struct target_ops) <to_enable_btrace>: Use
11565 TARGET_DEFAULT_NORETURN.
11566
eb5b20d4
TT
115672014-02-19 Tom Tromey <tromey@redhat.com>
11568
11569 * target-delegates.c: Rebuild.
11570 * target.c (target_read_btrace): Unconditionally delegate.
11571 * target.h (struct target_ops) <to_read_btrace>: Use
11572 TARGET_DEFAULT_NORETURN.
11573
9ace480d
TT
115742014-02-19 Tom Tromey <tromey@redhat.com>
11575
11576 * target-delegates.c: Rebuild.
11577 * target.c (target_teardown_btrace): Unconditionally delegate.
11578 * target.h (struct target_ops) <to_teardown_btrace>: Use
11579 TARGET_DEFAULT_NORETURN.
11580
8dc292d3
TT
115812014-02-19 Tom Tromey <tromey@redhat.com>
11582
11583 * target-delegates.c: Rebuild.
11584 * target.c (target_disable_btrace): Unconditionally delegate.
11585 * target.h (struct target_ops) <to_disable_btrace>: Use
11586 TARGET_DEFAULT_NORETURN.
11587
58a5184e
TT
115882014-02-19 Tom Tromey <tromey@redhat.com>
11589
11590 * target-delegates.c: Rebuild.
11591 * target.c (default_search_memory): New function.
11592 (simple_search_memory): Update comment.
11593 (target_search_memory): Unconditionally delegate.
11594 * target.h (struct target_ops) <to_search_memory>: Use
11595 TARGET_DEFAULT_FUNC.
11596
8de71aab
TT
115972014-02-19 Tom Tromey <tromey@redhat.com>
11598
11599 * auxv.c (default_auxv_parse): No longer static.
11600 (target_auxv_parse): Unconditionally delegate.
11601 * auxv.h (default_auxv_parse): Declare.
11602 * target-delegates.c: Rebuild.
11603 * target.c: Include auxv.h.
11604 * target.h (struct target_ops) <to_auxv_parse>: Use
11605 TARGET_DEFAULT_FUNC.
11606
6b2c5a57
TT
116072014-02-19 Tom Tromey <tromey@redhat.com>
11608
11609 * target-delegates.c: Rebuild.
11610 * target.c (target_memory_map): Unconditionally delegate.
11611 * target.h (struct target_ops) <to_memory_map>: Use
11612 TARGET_DEFAULT_RETURN.
11613
cbffc065
TT
116142014-02-19 Tom Tromey <tromey@redhat.com>
11615
11616 * target-delegates.c: Rebuild.
11617 * target.c (target_thread_alive): Unconditionally delegate.
11618 * target.h (struct target_ops) <to_thread_alive>: Use
11619 TARGET_DEFAULT_RETURN.
11620
f09e2107
TT
116212014-02-19 Tom Tromey <tromey@redhat.com>
11622
11623 * target-delegates.c: Rebuild.
11624 * target.c (target_save_record): Unconditionally delegate.
11625 * target.h (struct target_ops) <to_save_record>: Use
11626 TARGET_DEFAULT_NORETURN.
11627
07366925
TT
116282014-02-19 Tom Tromey <tromey@redhat.com>
11629
11630 * target-delegates.c: Rebuild.
11631 * target.c (target_delete_record): Unconditionally delegate.
11632 * target.h (struct target_ops) <to_delete_record>: Use
11633 TARGET_DEFAULT_NORETURN.
11634
dd2e9d25
TT
116352014-02-19 Tom Tromey <tromey@redhat.com>
11636
11637 * target-delegates.c: Rebuild.
11638 * target.c (target_record_is_replaying): Unconditionally
11639 delegate.
11640 * target.h (struct target_ops) <to_record_is_replaying>: Use
11641 TARGET_DEFAULT_RETURN.
11642
671e76cc
TT
116432014-02-19 Tom Tromey <tromey@redhat.com>
11644
11645 * target-delegates.c: Rebuild.
11646 * target.c (target_goto_record_begin): Unconditionally delegate.
11647 * target.h (struct target_ops) <to_goto_record_begin>: Use
11648 TARGET_DEFAULT_NORETURN.
11649
e9179bb3
TT
116502014-02-19 Tom Tromey <tromey@redhat.com>
11651
11652 * target-delegates.c: Rebuild.
11653 * target.c (target_goto_record_end): Unconditionally delegate.
11654 * target.h (struct target_ops) <to_goto_record_end>: Use
11655 TARGET_DEFAULT_NORETURN.
11656
05969c84
TT
116572014-02-19 Tom Tromey <tromey@redhat.com>
11658
11659 * target-delegates.c: Rebuild.
11660 * target.c (target_goto_record): Unconditionally delegate.
11661 * target.h (struct target_ops) <to_goto_record>: Use
11662 TARGET_DEFAULT_NORETURN.
11663
3679abfa
TT
116642014-02-19 Tom Tromey <tromey@redhat.com>
11665
11666 * target-delegates.c: Rebuild.
11667 * target.c (target_insn_history): Unconditionally delegate.
11668 * target.h (struct target_ops) <to_insn_history>: Use
11669 TARGET_DEFAULT_NORETURN.
11670
8444ab58
TT
116712014-02-19 Tom Tromey <tromey@redhat.com>
11672
11673 * target-delegates.c: Rebuild.
11674 * target.c (target_insn_history_from): Unconditionally delegate.
11675 * target.h (struct target_ops) <to_insn_history_from>: Use
11676 TARGET_DEFAULT_NORETURN.
11677
c29302cc
TT
116782014-02-19 Tom Tromey <tromey@redhat.com>
11679
11680 * target-delegates.c: Rebuild.
11681 * target.c (target_insn_history_range): Unconditionally delegate.
11682 * target.h (struct target_ops) <to_insn_history_range>: Use
11683 TARGET_DEFAULT_NORETURN.
11684
170049d4
TT
116852014-02-19 Tom Tromey <tromey@redhat.com>
11686
11687 * target-delegates.c: Rebuild.
11688 * target.c (target_call_history): Unconditionally delegate.
11689 * target.h (struct target_ops) <to_call_history>: Use
11690 TARGET_DEFAULT_NORETURN.
11691
16fc27d6
TT
116922014-02-19 Tom Tromey <tromey@redhat.com>
11693
11694 * target-delegates.c: Rebuild.
11695 * target.c (target_call_history_from): Unconditionally delegate.
11696 * target.h (struct target_ops) <to_call_history_from>: Use
11697 TARGET_DEFAULT_NORETURN.
11698
115d9817
TT
116992014-02-19 Tom Tromey <tromey@redhat.com>
11700
11701 * target-delegates.c: Rebuild.
11702 * target.c (target_call_history_range): Unconditionally delegate.
11703 * target.h (struct target_ops) <to_call_history_range>: Use
11704 TARGET_DEFAULT_NORETURN.
11705
eb276a6b
TT
117062014-02-19 Tom Tromey <tromey@redhat.com>
11707
11708 * target-delegates.c: Rebuild.
11709 * target.c (target_verify_memory): Unconditionally delegate.
11710 * target.h (struct target_ops) <to_verify_memory>: Use
11711 TARGET_DEFAULT_NORETURN.
11712
9e538d0d
TT
117132014-02-19 Tom Tromey <tromey@redhat.com>
11714
11715 * target-delegates.c: Rebuild.
11716 * target.c (target_core_of_thread): Unconditionally delegate.
11717 * target.h (struct target_ops) <to_core_of_thread>: Use
11718 TARGET_DEFAULT_RETURN.
11719
f6fb2925
TT
117202014-02-19 Tom Tromey <tromey@redhat.com>
11721
11722 * target-delegates.c: Rebuild.
11723 * target.c (target_flash_done): Unconditionally delegate.
11724 * target.h (struct target_ops) <to_flash_done>: Use
11725 TARGET_DEFAULT_NORETURN.
11726
e8a6c6ac
TT
117272014-02-19 Tom Tromey <tromey@redhat.com>
11728
11729 * target-delegates.c: Rebuild.
11730 * target.c (target_flash_erase): Unconditionally delegate.
11731 * target.h (struct target_ops) <to_flash_erase>: Use
11732 TARGET_DEFAULT_NORETURN.
11733
7e35c012
TT
117342014-02-19 Tom Tromey <tromey@redhat.com>
11735
11736 * target-delegates.c: Rebuild.
11737 * target.c (target_get_section_table): Unconditionally delegate.
11738 * target.h (struct target_ops) <to_get_section_table>: Use
11739 TARGET_DEFAULT_RETURN.
11740
770234d3
TT
117412014-02-19 Tom Tromey <tromey@redhat.com>
11742
11743 * target-delegates.c: Rebuild.
11744 * target.c (target_pid_to_str): Unconditionally delegate.
11745 (init_dummy_target): Don't initialize to_pid_to_str.
11746 (default_pid_to_str): Rename from dummy_pid_to_str.
11747 * target.h (struct target_ops) <to_pid_to_str>: Use
11748 TARGET_DEFAULT_FUNC.
11749
09b0dc2b
TT
117502014-02-19 Tom Tromey <tromey@redhat.com>
11751
11752 * target-delegates.c: Rebuild.
11753 * target.c (target_find_new_threads): Unconditionally delegate.
11754 * target.h (struct target_ops) <to_find_new_threads>: Use
11755 TARGET_DEFAULT_RETURN.
11756
7d4f8efa
TT
117572014-02-19 Tom Tromey <tromey@redhat.com>
11758
11759 * target-delegates.c: Rebuild.
11760 * target.c (target_program_signals): Unconditionally delegate.
11761 * target.h (struct target_ops) <to_program_signals>: Use
11762 TARGET_DEFAULT_IGNORE.
11763
035cad7f
TT
117642014-02-19 Tom Tromey <tromey@redhat.com>
11765
11766 * target-delegates.c: Rebuild.
11767 * target.c (target_pass_signals): Unconditionally delegate.
11768 * target.h (struct target_ops) <to_pass_signals>: Use
11769 TARGET_DEFAULT_IGNORE.
11770
8d657035
TT
117712014-02-19 Tom Tromey <tromey@redhat.com>
11772
11773 * target-delegates.c: Rebuild.
11774 * target.c (default_mourn_inferior): New function.
11775 (target_mourn_inferior): Unconditionally delegate.
11776 * target.h (struct target_ops) <to_mourn_inferior>: Use
11777 TARGET_DEFAULT_FUNC.
11778
098dba18
TT
117792014-02-19 Tom Tromey <tromey@redhat.com>
11780
11781 * target-delegates.c: Rebuild.
11782 * target.c (default_follow_fork): New function.
11783 (target_follow_fork): Unconditionally delegate.
11784 * target.h (struct target_ops) <to_follow_fork>: Use
11785 TARGET_DEFAULT_FUNC.
11786
423a4807
TT
117872014-02-19 Tom Tromey <tromey@redhat.com>
11788
11789 * target-delegates.c: Rebuild.
11790 * target.c (target_kill): Unconditionally delegate.
11791 * target.h (struct target_ops) <to_kill>: Use
11792 TARGET_DEFAULT_NORETURN.
11793
6c7e5e5c
TT
117942014-02-19 Tom Tromey <tromey@redhat.com>
11795
11796 * target-delegates.c: Rebuild.
11797 * target.c (target_masked_watch_num_registers): Unconditionally
11798 delegate.
11799 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11800 Use TARGET_DEFAULT_RETURN.
11801
8b1c364c
TT
118022014-02-19 Tom Tromey <tromey@redhat.com>
11803
11804 * target-delegates.c: Rebuild.
11805 * target.c (target_remove_mask_watchpoint): Unconditionally
11806 delegate.
11807 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11808 TARGET_DEFAULT_RETURN.
11809
cd4ae029
TT
118102014-02-19 Tom Tromey <tromey@redhat.com>
11811
11812 * target-delegates.c: Rebuild.
11813 * target.c (target_insert_mask_watchpoint): Unconditionally
11814 delegate.
11815 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11816 TARGET_DEFAULT_RETURN.
11817
a134316b
TT
118182014-02-19 Tom Tromey <tromey@redhat.com>
11819
11820 * target-delegates.c: Rebuild.
11821 * target.c (target_ranged_break_num_registers): Unconditionally
11822 delegate.
11823 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11824 Use TARGET_DEFAULT_RETURN.
11825
ad5989bd
TT
118262014-02-19 Tom Tromey <tromey@redhat.com>
11827
11828 * target-delegates.c: Rebuild.
11829 * target.c (target_fetch_registers): Unconditionally delegate.
11830 * target.h (struct target_ops) <to_fetch_registers>: Use
11831 TARGET_DEFAULT_NORETURN.
11832
46ee7e8d
TT
118332014-02-19 Tom Tromey <tromey@redhat.com>
11834
11835 * target-delegates.c: Rebuild.
11836 * target.c (update_current_target): Don't inherit or default
11837 to_stop.
11838 * target.h (struct target_ops) <to_stop>: Use
11839 TARGET_DEFAULT_IGNORE.
11840
843f59ed
TT
118412014-02-19 Tom Tromey <tromey@redhat.com>
11842
11843 * target-delegates.c: Rebuild.
11844 * target.c (update_current_target): Don't inherit or default
11845 to_can_run_breakpoint_commands.
11846 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11847 Use TARGET_DEFAULT_RETURN.
11848
ccfde2a0
TT
118492014-02-19 Tom Tromey <tromey@redhat.com>
11850
11851 * target-delegates.c: Rebuild.
11852 * target.c (update_current_target): Don't inherit or default
11853 to_supports_evaluation_of_breakpoint_conditions.
11854 * target.h (struct target_ops)
11855 <to_supports_evaluation_of_breakpoint_conditions>: Use
11856 TARGET_DEFAULT_RETURN.
11857
0de91722
TT
118582014-02-19 Tom Tromey <tromey@redhat.com>
11859
11860 * target-delegates.c: Rebuild.
11861 * target.c (update_current_target): Don't inherit or default
11862 to_augmented_libraries_svr4_read.
11863 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11864 Use TARGET_DEFAULT_RETURN.
11865
9a7d8b48
TT
118662014-02-19 Tom Tromey <tromey@redhat.com>
11867
11868 * target-delegates.c: Rebuild.
11869 * target.c (update_current_target): Don't inherit or default
11870 to_can_use_agent.
11871 * target.h (struct target_ops) <to_can_use_agent>: Use
11872 TARGET_DEFAULT_RETURN.
11873
d9db5b21
TT
118742014-02-19 Tom Tromey <tromey@redhat.com>
11875
11876 * target-delegates.c: Rebuild.
11877 * target.c (update_current_target): Don't inherit or default
11878 to_use_agent.
11879 * target.h (struct target_ops) <to_use_agent>: Use
11880 TARGET_DEFAULT_NORETURN.
11881
92155eeb
TT
118822014-02-19 Tom Tromey <tromey@redhat.com>
11883
11884 * target-delegates.c: Rebuild.
11885 * target.c (update_current_target): Don't inherit or default
11886 to_traceframe_info.
11887 (return_null): Remove.
11888 * target.h (struct target_ops) <to_traceframe_info>: Use
11889 TARGET_DEFAULT_RETURN.
11890
d6522a22
TT
118912014-02-19 Tom Tromey <tromey@redhat.com>
11892
11893 * target-delegates.c: Rebuild.
11894 * target.c (update_current_target): Don't inherit or default
11895 to_static_tracepoint_markers_by_strid.
11896 * target.h (struct target_ops)
11897 <to_static_tracepoint_markers_by_strid>: Use
11898 TARGET_DEFAULT_NORETURN.
11899
4c3e4425
TT
119002014-02-19 Tom Tromey <tromey@redhat.com>
11901
11902 * target-delegates.c: Rebuild.
11903 * target.c (update_current_target): Don't inherit or default
11904 to_static_tracepoint_marker_at.
11905 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11906 Use TARGET_DEFAULT_RETURN.
11907
dcd6917f
TT
119082014-02-19 Tom Tromey <tromey@redhat.com>
11909
11910 * target-delegates.c: Rebuild.
11911 * target.c (update_current_target): Don't inherit or default
11912 to_set_permissions.
11913 * target.h (struct target_ops) <to_set_permissions>: Use
11914 TARGET_DEFAULT_IGNORE.
11915
22bcceee
TT
119162014-02-19 Tom Tromey <tromey@redhat.com>
11917
11918 * target-delegates.c: Rebuild.
11919 * target.c (update_current_target): Don't inherit or default
11920 to_get_tib_address.
11921 * target.h (struct target_ops) <to_get_tib_address>: Use
11922 TARGET_DEFAULT_NORETURN.
11923
8586ccaa
TT
119242014-02-19 Tom Tromey <tromey@redhat.com>
11925
11926 * target-delegates.c: Rebuild.
11927 * target.c (update_current_target): Don't inherit or default
11928 to_set_trace_notes.
11929 * target.h (struct target_ops) <to_set_trace_notes>: Use
11930 TARGET_DEFAULT_RETURN.
11931
91df8d1d
TT
119322014-02-19 Tom Tromey <tromey@redhat.com>
11933
11934 * target-delegates.c: Rebuild.
11935 * target.c (update_current_target): Don't initialize
11936 to_set_trace_buffer_size.
11937 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11938 TARGET_DEFAULT_IGNORE.
11939
8d526939
TT
119402014-02-19 Tom Tromey <tromey@redhat.com>
11941
11942 * target-delegates.c: Rebuild.
11943 * target.c (update_current_target): Don't inherit or default
11944 to_set_circular_trace_buffer.
11945 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11946 TARGET_DEFAULT_IGNORE.
11947
0bcfeddf
TT
119482014-02-19 Tom Tromey <tromey@redhat.com>
11949
11950 * target-delegates.c: Rebuild.
11951 * target.c (update_current_target): Don't inherit or default
11952 to_set_disconnected_tracing.
11953 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11954 TARGET_DEFAULT_IGNORE.
11955
9249843f
TT
119562014-02-19 Tom Tromey <tromey@redhat.com>
11957
11958 * target-delegates.c: Rebuild.
11959 * target.c (update_current_target): Don't inherit or default
11960 to_get_min_fast_tracepoint_insn_len.
11961 (return_minus_one): Remove.
11962 * target.h (struct target_ops)
11963 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11964
ace92e7d
TT
119652014-02-19 Tom Tromey <tromey@redhat.com>
11966
11967 * target-delegates.c: Rebuild.
11968 * target.c (update_current_target): Don't inherit or default
11969 to_get_raw_trace_data.
11970 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11971 TARGET_DEFAULT_NORETURN.
11972
08120467
TT
119732014-02-19 Tom Tromey <tromey@redhat.com>
11974
11975 * target-delegates.c: Rebuild.
11976 * target.c (update_current_target): Don't inherit or default
11977 to_upload_trace_state_variables.
11978 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11979 Use TARGET_DEFAULT_RETURN.
11980
1e949b00
TT
119812014-02-19 Tom Tromey <tromey@redhat.com>
11982
11983 * target-delegates.c: Rebuild.
11984 * target.c (update_current_target): Don't inherit or default
11985 to_upload_tracepoints.
11986 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11987 TARGET_DEFAULT_RETURN.
11988
a2e6c147
TT
119892014-02-19 Tom Tromey <tromey@redhat.com>
11990
11991 * target-delegates.c: Rebuild.
11992 * target.c (update_current_target): Don't inherit or default
11993 to_save_trace_data.
11994 * target.h (struct target_ops) <to_save_trace_data>: Use
11995 TARGET_DEFAULT_NORETURN.
11996
959bcd0b
TT
119972014-02-19 Tom Tromey <tromey@redhat.com>
11998
11999 * target-delegates.c: Rebuild.
12000 * target.c (update_current_target): Don't inherit or default
12001 to_get_trace_state_variable_value.
12002 * target.h (struct target_ops)
12003 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
12004
afc94e66
TT
120052014-02-19 Tom Tromey <tromey@redhat.com>
12006
12007 * target-delegates.c: Rebuild.
12008 * target.c (update_current_target): Don't inherit or default
12009 to_trace_find.
12010 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
12011
e51c07ea
TT
120122014-02-19 Tom Tromey <tromey@redhat.com>
12013
12014 * target-delegates.c: Rebuild.
12015 * target.c (update_current_target): Don't inherit or default
12016 to_trace_stop.
12017 * target.h (struct target_ops) <to_trace_stop>: Use
12018 TARGET_DEFAULT_NORETURN.
12019
6fea14cd
TT
120202014-02-19 Tom Tromey <tromey@redhat.com>
12021
12022 * target-delegates.c: Rebuild.
12023 * target.c (update_current_target): Don't inherit or default
12024 to_get_tracepoint_status.
12025 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
12026 TARGET_DEFAULT_NORETURN.
12027
4072d4ff
TT
120282014-02-19 Tom Tromey <tromey@redhat.com>
12029
12030 * target-delegates.c: Rebuild.
12031 * target.c (update_current_target): Don't inherit or default
12032 to_get_trace_status.
12033 * target.h (struct target_ops) <to_get_trace_status>: Use
12034 TARGET_DEFAULT_RETURN.
12035
25da2e80
TT
120362014-02-19 Tom Tromey <tromey@redhat.com>
12037
12038 * target-delegates.c: Rebuild.
12039 * target.c (update_current_target): Don't inherit or default
12040 to_trace_start.
12041 * target.h (struct target_ops) <to_trace_start>: Use
12042 TARGET_DEFAULT_NORETURN.
12043
86dd181d
TT
120442014-02-19 Tom Tromey <tromey@redhat.com>
12045
12046 * target-delegates.c: Rebuild.
12047 * target.c (update_current_target): Don't inherit or default
12048 to_trace_set_readonly_regions.
12049 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12050 Use TARGET_DEFAULT_NORETURN.
12051
05c41993
TT
120522014-02-19 Tom Tromey <tromey@redhat.com>
12053
12054 * target-delegates.c: Rebuild.
12055 * target.c (update_current_target): Don't inherit or default
12056 to_disable_tracepoint.
12057 * target.h (struct target_ops) <to_disable_tracepoint>: Use
12058 TARGET_DEFAULT_NORETURN.
12059
151f70f1
TT
120602014-02-19 Tom Tromey <tromey@redhat.com>
12061
12062 * target-delegates.c: Rebuild.
12063 * target.c (update_current_target): Don't inherit or default
12064 to_enable_tracepoint.
12065 * target.h (struct target_ops) <to_enable_tracepoint>: Use
12066 TARGET_DEFAULT_NORETURN.
12067
94eb98b9
TT
120682014-02-19 Tom Tromey <tromey@redhat.com>
12069
12070 * target-delegates.c: Rebuild.
12071 * target.c (update_current_target): Don't inherit or default
12072 to_download_trace_state_variable.
12073 * target.h (struct target_ops) <to_download_trace_state_variable>:
12074 Use TARGET_DEFAULT_NORETURN.
12075
719acc4a
TT
120762014-02-19 Tom Tromey <tromey@redhat.com>
12077
12078 * target-delegates.c: Rebuild.
12079 * target.c (update_current_target): Don't inherit or default
12080 to_can_download_tracepoint.
12081 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
12082 TARGET_DEFAULT_RETURN.
12083
9a980a22
TT
120842014-02-19 Tom Tromey <tromey@redhat.com>
12085
12086 * target-delegates.c: Rebuild.
12087 * target.c (update_current_target): Don't inherit or default
12088 to_download_tracepoint.
12089 * target.h (struct target_ops) <to_download_tracepoint>: Use
12090 TARGET_DEFAULT_NORETURN.
12091
5536135b
TT
120922014-02-19 Tom Tromey <tromey@redhat.com>
12093
12094 * target-delegates.c: Rebuild.
12095 * target.c (update_current_target): Don't inherit or default
12096 to_trace_init.
12097 * target.h (struct target_ops) <to_trace_init>: Use
12098 TARGET_DEFAULT_RETURN.
12099
9409d39e
TT
121002014-02-19 Tom Tromey <tromey@redhat.com>
12101
12102 * target-delegates.c: Rebuild.
12103 * target.c (update_current_target): Don't inherit or default
12104 to_supports_string_tracing.
12105 * target.h (struct target_ops) <to_supports_string_tracing>: Use
12106 TARGET_DEFAULT_RETURN.
12107
aab1b22d
TT
121082014-02-19 Tom Tromey <tromey@redhat.com>
12109
12110 * target-delegates.c: Rebuild.
12111 * target.c (update_current_target): Don't inherit or default
12112 to_supports_enable_disable_tracepoint.
12113 * target.h (struct target_ops)
12114 <to_supports_enable_disable_tracepoint>: Use
12115 TARGET_DEFAULT_RETURN.
12116
a7304748
TT
121172014-02-19 Tom Tromey <tromey@redhat.com>
12118
12119 * target-delegates.c: Rebuild.
12120 * target.c (update_current_target): Don't inherit or default
12121 to_supports_multi_process.
12122 * target.h (struct target_ops) <to_supports_multi_process>: Use
12123 TARGET_DEFAULT_RETURN.
12124
4229b31d
TT
121252014-02-19 Tom Tromey <tromey@redhat.com>
12126
12127 * target-delegates.c: Rebuild.
12128 * target.c (update_current_target): Don't inherit or default
12129 to_get_ada_task_ptid.
12130 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
12131 TARGET_DEFAULT_FUNC.
12132
43eba180
TT
121332014-02-19 Tom Tromey <tromey@redhat.com>
12134
12135 * target-delegates.c: Rebuild.
12136 * target.c (update_current_target): Don't inherit or default
12137 to_thread_architecture.
12138 * target.h (struct target_ops) <to_thread_architecture>: Use
12139 TARGET_DEFAULT_FUNC.
12140
fe31bf5b
TT
121412014-02-19 Tom Tromey <tromey@redhat.com>
12142
12143 * target-delegates.c: Rebuild.
12144 * target.c (update_current_target): Don't inherit or default
12145 to_execution_direction.
12146 * target.h (struct target_ops) <to_execution_direction>: Use
12147 TARGET_DEFAULT_FUNC.
12148
53e1cfc7
TT
121492014-02-19 Tom Tromey <tromey@redhat.com>
12150
12151 * target-delegates.c: Rebuild.
12152 * target.c (update_current_target): Don't inherit or default
12153 to_can_execute_reverse.
12154 * target.h (struct target_ops) <to_can_execute_reverse>: Use
12155 TARGET_DEFAULT_RETURN.
12156 (target_can_execute_reverse): Unconditionally delegate.
12157
9bb9d61d
TT
121582014-02-19 Tom Tromey <tromey@redhat.com>
12159
12160 * target-delegates.c: Rebuild.
12161 * target.c (update_current_target): Don't inherit or default
12162 to_goto_bookmark.
12163 (dummy_goto_bookmark): Remove.
12164 (init_dummy_target): Don't inherit or default to_goto_bookmark.
12165 * target.h (struct target_ops) <to_goto_bookmark>: Use
12166 TARGET_DEFAULT_NORETURN.
12167
3dbafbbb
TT
121682014-02-19 Tom Tromey <tromey@redhat.com>
12169
12170 * target-delegates.c: Rebuild.
12171 * target.c (update_current_target): Don't inherit or default
12172 to_get_bookmark.
12173 (dummy_get_bookmark): Remove.
12174 (init_dummy_target): Don't inherit or default to_get_bookmark.
12175 * target.h (struct target_ops) <to_get_bookmark>: Use
12176 TARGET_DEFAULT_NORETURN
12177
16f796b1
TT
121782014-02-19 Tom Tromey <tromey@redhat.com>
12179
12180 * target-delegates.c: Rebuild.
12181 * target.c (update_current_target): Don't inherit or default
12182 to_make_corefile_notes.
12183 (init_dummy_target): Don't initialize to_make_corefile_notes.
12184 * target.h (struct target_ops) <to_make_corefile_notes>: Use
12185 TARGET_DEFAULT_FUNC.
12186
0b5a2719
TT
121872014-02-19 Tom Tromey <tromey@redhat.com>
12188
12189 * target-delegates.c: Rebuild.
12190 * target.c (update_current_target): Don't inherit or default
12191 to_find_memory_regions.
12192 (init_dummy_target): Don't initialize to_find_memory_regions.
12193 * target.h (struct target_ops) <to_find_memory_regions>: Use
12194 TARGET_DEFAULT_FUNC.
12195
d9cb0195
TT
121962014-02-19 Tom Tromey <tromey@redhat.com>
12197
12198 * target-delegates.c: Rebuild.
12199 * target.c (update_current_target): Don't inherit or default
12200 to_log_command.
12201 * target.h (struct target_ops) <to_log_command>: Use
12202 TARGET_DEFAULT_IGNORE.
12203 (target_log_command): Unconditionally delegate.
12204
830ca330
TT
122052014-02-19 Tom Tromey <tromey@redhat.com>
12206
12207 * target-delegates.c: Rebuild.
12208 * target.c (update_current_target): Don't inherit or default
12209 to_pid_to_exec_file.
12210 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12211 TARGET_DEFAULT_RETURN.
12212
825828fc
TT
122132014-02-19 Tom Tromey <tromey@redhat.com>
12214
12215 * target-delegates.c: Rebuild.
12216 * target.c (update_current_target): Don't inherit or default
12217 to_thread_name.
12218 (target_thread_name): Unconditionally delegate.
12219 * target.h (struct target_ops) <to_thread_name>: Use
12220 TARGET_DEFAULT_RETURN.
12221
4a7e6dda
TT
122222014-02-19 Tom Tromey <tromey@redhat.com>
12223
12224 * target-delegates.c: Rebuild.
12225 * target.c (update_current_target): Don't inherit or default
12226 to_extra_thread_info.
12227 * target.h (struct target_ops) <to_extra_thread_info>: Use
12228 TARGET_DEFAULT_RETURN.
12229
0db88c1d
TT
122302014-02-19 Tom Tromey <tromey@redhat.com>
12231
12232 * target-delegates.c: Rebuild.
12233 * target.c (update_current_target): Don't inherit or default
12234 to_has_exited.
12235 * target.h (struct target_ops) <to_has_exited>: Use
12236 TARGET_DEFAULT_RETURN..
12237
6a9fa051
TT
122382014-02-19 Tom Tromey <tromey@redhat.com>
12239
12240 * target-delegates.c: Rebuild.
12241 * target.c (update_current_target): Don't inherit or default
12242 to_set_syscall_catchpoint.
12243 (return_one): Remove.
12244 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12245 TARGET_DEFAULT_RETURN.
12246
62f64d7a
TT
122472014-02-19 Tom Tromey <tromey@redhat.com>
12248
12249 * target-delegates.c: Rebuild.
12250 * target.c (update_current_target): Don't inherit or default
12251 to_insert_exec_catchpoint.
12252 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12253 TARGET_DEFAULT_RETURN.
12254
cda0f38c
TT
122552014-01-08 Tom Tromey <tromey@redhat.com>
12256
12257 * target-delegates.c: Rebuild.
12258 * target.c (update_current_target): Don't inherit or default
12259 to_insert_exec_catchpoint.
12260 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12261 TARGET_DEFAULT_RETURN.
12262
95c3375e
TT
122632014-02-19 Tom Tromey <tromey@redhat.com>
12264
12265 * target-delegates.c: Rebuild.
12266 * target.c (update_current_target): Don't inherit or default
12267 to_remove_vfork_catchpoint.
12268 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12269 TARGET_DEFAULT_RETURN.
12270
7e18a8dc
TT
122712014-02-19 Tom Tromey <tromey@redhat.com>
12272
12273 * target-delegates.c: Rebuild.
12274 * target.c (update_current_target): Don't inherit or default
12275 to_insert_vfork_catchpoint.
12276 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12277 TARGET_DEFAULT_RETURN.
12278
e1a21fb7
TT
122792014-02-19 Tom Tromey <tromey@redhat.com>
12280
12281 * target-delegates.c: Rebuild.
12282 * target.c (update_current_target): Don't inherit or default
12283 to_remove_fork_catchpoint.
12284 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12285 TARGET_DEFAULT_RETURN.
12286
5958ebeb
TT
122872014-02-19 Tom Tromey <tromey@redhat.com>
12288
12289 * target-delegates.c: Rebuild.
12290 * target.c (update_current_target): Don't inherit or default
12291 to_insert_fork_catchpoint.
12292 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12293 TARGET_DEFAULT_RETURN.
12294
340ba4bf
TT
122952014-02-19 Tom Tromey <tromey@redhat.com>
12296
12297 * target-delegates.c: Rebuild.
12298 * target.c (update_current_target): Don't inherit or default
12299 to_post_startup_inferior.
12300 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12301 TARGET_DEFAULT_IGNORE.
12302
7634da87
TT
123032014-02-19 Tom Tromey <tromey@redhat.com>
12304
12305 * target-delegates.c: Rebuild.
12306 * target.c (update_current_target): Don't inherit or default
12307 to_load.
12308 * target.h (struct target_ops) <to_load>: Use
12309 TARGET_DEFAULT_NORETURN.
12310
e19e919f
TT
123112014-02-19 Tom Tromey <tromey@redhat.com>
12312
12313 * target-delegates.c: Rebuild.
12314 * target.c (update_current_target): Don't inherit or default
12315 to_terminal_info.
12316 * target.h (struct target_ops) <to_terminal_info>: Use
12317 TARGET_DEFAULT_FUNC.
12318
c6ea8f79
TT
123192014-02-19 Tom Tromey <tromey@redhat.com>
12320
12321 * target-delegates.c: Rebuild.
12322 * target.c (update_current_target): Don't inherit or default
12323 to_terminal_save_ours.
12324 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12325 TARGET_DEFAULT_IGNORE.
12326
e4a733f1
TT
123272014-02-19 Tom Tromey <tromey@redhat.com>
12328
12329 * target-delegates.c: Rebuild.
12330 * target.c (update_current_target): Don't inherit or default
12331 to_terminal_ours.
12332 * target.h (struct target_ops) <to_terminal_ours>: Use
12333 TARGET_DEFAULT_IGNORE.
12334
74fcbef9
TT
123352014-02-19 Tom Tromey <tromey@redhat.com>
12336
12337 * target-delegates.c: Rebuild.
12338 * target.c (update_current_target): Don't inherit or default
12339 to_terminal_ours_for_output.
12340 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12341 TARGET_DEFAULT_IGNORE.
12342
ddeaacc9
TT
123432014-02-19 Tom Tromey <tromey@redhat.com>
12344
12345 * target-delegates.c: Rebuild.
12346 * target.c (update_current_target): Don't inherit or default
12347 to_terminal_inferior.
12348 * target.h (struct target_ops) <to_terminal_inferior>: Use
12349 TARGET_DEFAULT_IGNORE.
12350
0343661d
TT
123512014-02-19 Tom Tromey <tromey@redhat.com>
12352
12353 * target-delegates.c: Rebuild.
12354 * target.c (update_current_target): Don't inherit or default
12355 to_terminal_init.
12356 * target.h (struct target_ops) <to_terminal_init>: Use
12357 TARGET_DEFAULT_IGNORE.
12358
77cdffe9
TT
123592014-02-19 Tom Tromey <tromey@redhat.com>
12360
12361 * target-delegates.c: Rebuild.
12362 * target.c (update_current_target): Don't inherit or default
12363 to_can_accel_watchpoint_condition.
12364 * target.h (struct target_ops)
12365 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12366
d03655e4
TT
123672014-02-19 Tom Tromey <tromey@redhat.com>
12368
12369 * target-delegates.c: Rebuild.
12370 * target.c (update_current_target): Don't inherit or default
12371 to_region_ok_for_hw_watchpoint.
12372 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12373 Use TARGET_DEFAULT_FUNC.
12374
65f160a9
TT
123752014-02-19 Tom Tromey <tromey@redhat.com>
12376
12377 * target-delegates.c: Rebuild.
12378 * target.c (update_current_target): Don't inherit or default
12379 to_watchpoint_addr_within_range.
12380 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12381 Use TARGET_DEFAULT_FUNC.
12382
61dd109f
TT
123832014-02-19 Tom Tromey <tromey@redhat.com>
12384
12385 * target-delegates.c: Rebuild.
12386 * target.c (update_current_target): Don't inherit or default
12387 to_remove_watchpoint.
12388 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12389 TARGET_DEFAULT_NORETURN.
12390
016facd4
TT
123912014-02-19 Tom Tromey <tromey@redhat.com>
12392
12393 * target-delegates.c: Rebuild.
12394 * target.c (update_current_target): Don't inherit or default
12395 to_insert_watchpoint.
12396 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12397 TARGET_DEFAULT_RETURN.
12398
418dabac
TT
123992014-02-19 Tom Tromey <tromey@redhat.com>
12400
12401 * target-delegates.c: Rebuild.
12402 * target.c (update_current_target): Don't inherit or default
12403 to_remove_hw_breakpoint.
12404 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12405 TARGET_DEFAULT_RETURN.
12406
61b371f9
TT
124072014-02-19 Tom Tromey <tromey@redhat.com>
12408
12409 * target-delegates.c: Rebuild.
12410 * target.c (update_current_target): Don't inherit or default
12411 to_insert_hw_breakpoint.
12412 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12413 TARGET_DEFAULT_RETURN.
12414
52b51d06
TT
124152014-02-19 Tom Tromey <tromey@redhat.com>
12416
12417 * target-delegates.c: Rebuild.
12418 * target.c (update_current_target): Don't inherit or default
12419 to_can_use_hw_breakpoint.
12420 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12421 TARGET_DEFAULT_RETURN.
12422
f86e59b2
TT
124232014-02-19 Tom Tromey <tromey@redhat.com>
12424
12425 * target-delegates.c: Rebuild.
12426 * target.c (update_current_target): Don't inherit or default
12427 to_files_info.
12428 * target.h (struct target_ops) <to_files_info>: Use
12429 TARGET_DEFAULT_IGNORE.
12430
6c628163
TT
124312014-02-19 Tom Tromey <tromey@redhat.com>
12432
12433 * target-delegates.c: Rebuild.
12434 * target.c (update_current_target): Don't inherit or default
12435 to_store.
12436 * target.h (struct target_ops) <to_store>: Use
12437 TARGET_DEFAULT_NORETURN.
12438
bebd3233
TT
124392014-02-19 Tom Tromey <tromey@redhat.com>
12440
12441 * target-delegates.c: Rebuild.
12442 * target.c (update_current_target): Don't inherit or default
12443 to_post_attach.
12444 * target.h (struct target_ops) <to_post_attach>: Use
12445 TARGET_DEFAULT_IGNORE.
12446
a53f3625
TT
124472014-02-19 Tom Tromey <tromey@redhat.com>
12448
12449 * target-delegates.c: Rebuild.
12450 * target.c (update_current_target): Don't inherit or default
12451 to_rcmd.
12452 (default_rcmd): New function.
12453 (do_monitor_command): Unconditionally delegate.
12454 * target.h (struct target_ops) <to_rmcd>: Use
12455 TARGET_DEFAULT_FUNC.
12456
e9a29200
TT
124572014-02-19 Tom Tromey <tromey@redhat.com>
12458
12459 * target-delegates.c: Rebuild.
12460 * target.c (init_dummy_target): Don't initialize to_attach.
12461 (target_attach): Unconditionally delegate.
12462 * target.h (struct target_ops) <to_attach>: Use
12463 TARGET_DEFAULT_FUNC.
12464
09da0d0a
TT
124652014-02-19 Tom Tromey <tromey@redhat.com>
12466
12467 * target-delegates.c: Rebuild.
12468 * target.c (target_detach): Unconditionally delegate.
12469 (init_dummy_target): Don't initialize to_detach.
12470 * target.h (struct target_ops) <to_detach>: Use
12471 TARGET_DEFAULT_IGNORE.
12472
5436ff03
TT
124732014-02-19 Tom Tromey <tromey@redhat.com>
12474
12475 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12476 Add argument.
12477 (target_augmented_libraries_svr4_read): Add argument.
12478 * target.c (update_current_target): Update.
12479 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12480 argument.
12481
f0d960ea
TT
124822014-02-19 Tom Tromey <tromey@redhat.com>
12483
12484 * target.h (struct target_ops) <to_call_history_range>: Add
12485 argument.
12486 * target.c (target_call_history_range): Add argument.
12487 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12488 argument.
12489 (record_btrace_call_history_from): Update.
12490
ec0aea04
TT
124912014-02-19 Tom Tromey <tromey@redhat.com>
12492
12493 * target.h (struct target_ops) <to_call_history_from>: Add
12494 argument.
12495 * target.c (target_call_history_from): Add argument.
12496 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12497 argument.
12498
5df2fcba
TT
124992014-02-19 Tom Tromey <tromey@redhat.com>
12500
12501 * target.h (struct target_ops) <to_call_history>: Add argument.
12502 * target.c (target_call_history): Add argument.
12503 * record-btrace.c (record_btrace_call_history): Add 'self'
12504 argument.
12505
4e99c6b7
TT
125062014-02-19 Tom Tromey <tromey@redhat.com>
12507
12508 * target.h (struct target_ops) <to_insn_history_range>: Add
12509 argument.
12510 * target.c (target_insn_history_range): Add argument.
12511 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12512 argument.
12513 (record_btrace_insn_history_from): Update.
12514
9abc3ff3
TT
125152014-02-19 Tom Tromey <tromey@redhat.com>
12516
12517 * target.h (struct target_ops) <to_insn_history_from>: Add
12518 argument.
12519 * target.c (target_insn_history_from): Add argument.
12520 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12521 argument.
12522
7a6c5609
TT
125232014-02-19 Tom Tromey <tromey@redhat.com>
12524
12525 * target.h (struct target_ops) <to_insn_history>: Add argument.
12526 * target.c (target_insn_history): Add argument.
12527 * record-btrace.c (record_btrace_insn_history): Add 'self'
12528 argument.
12529
606183ac
TT
125302014-02-19 Tom Tromey <tromey@redhat.com>
12531
12532 * target.h (struct target_ops) <to_goto_record>: Add argument.
12533 * target.c (target_goto_record): Add argument.
12534 * record-full.c (record_full_goto): Add 'self' argument.
12535 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12536
307a1b91
TT
125372014-02-19 Tom Tromey <tromey@redhat.com>
12538
12539 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12540 * target.c (target_goto_record_end): Add argument.
12541 * record-full.c (record_full_goto_end): Add 'self' argument.
12542 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12543
08475817
TT
125442014-02-19 Tom Tromey <tromey@redhat.com>
12545
12546 * target.h (struct target_ops) <to_goto_record_begin>: Add
12547 argument.
12548 * target.c (target_goto_record_begin): Add argument.
12549 * record-full.c (record_full_goto_begin): Add 'self' argument.
12550 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12551 argument.
12552
1c63c994
TT
125532014-02-19 Tom Tromey <tromey@redhat.com>
12554
12555 * target.h (struct target_ops) <to_record_is_replaying>: Add
12556 argument.
12557 * target.c (target_record_is_replaying): Add argument.
12558 * record-full.c (record_full_is_replaying): Add 'self' argument.
12559 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12560 argument.
12561 (record_btrace_xfer_partial, record_btrace_store_registers)
12562 (record_btrace_prepare_to_store, record_btrace_resume)
12563 (record_btrace_wait, record_btrace_decr_pc_after_break)
12564 (record_btrace_find_new_threads, record_btrace_thread_alive):
12565 Update.
12566
d1b55219
TT
125672014-02-19 Tom Tromey <tromey@redhat.com>
12568
12569 * target.h (struct target_ops) <to_delete_record>: Add argument.
12570 * target.c (target_delete_record): Add argument.
12571 * record-full.c (record_full_delete): Add 'self' argument.
12572
1390f529
TT
125732014-02-19 Tom Tromey <tromey@redhat.com>
12574
12575 * target.h (struct target_ops) <to_save_record>: Add argument.
12576 * target.c (target_save_record): Add argument.
12577 * record-full.c (record_full_save): Add 'self' argument.
12578 (record_full_save): Add 'self' argument.
12579
630d6a4a
TT
125802014-02-19 Tom Tromey <tromey@redhat.com>
12581
12582 * target.h (struct target_ops) <to_info_record>: Add argument.
12583 * target.c (target_info_record): Add argument.
12584 * record.c (info_record_command): Add argument.
12585 * record-full.c (record_full_info): Add 'self' argument.
12586 * record-btrace.c (record_btrace_info): Add 'self' argument.
12587
c6cd7c02
TT
125882014-02-19 Tom Tromey <tromey@redhat.com>
12589
12590 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12591 * target.c (target_stop_recording): Add argument.
12592 * record.c (record_stop): Add argument.
12593 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12594 argument.
12595
39c49f83
TT
125962014-02-19 Tom Tromey <tromey@redhat.com>
12597
12598 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12599 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12600 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12601 argument.
12602 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12603 (_initialize_amd64_linux_nat): Use it.
12604 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12605 (_initialize_i386_linux_nat): Use it.
12606
1777056d
TT
126072014-02-19 Tom Tromey <tromey@redhat.com>
12608
12609 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12610 * target.c (target_teardown_btrace): Add argument.
12611 * remote.c (remote_teardown_btrace): Add 'self' argument.
12612 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12613 argument.
12614 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12615 argument.
12616
25e95349
TT
126172014-02-19 Tom Tromey <tromey@redhat.com>
12618
12619 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12620 * target.c (target_disable_btrace): Add argument.
12621 * remote.c (remote_disable_btrace): Add 'self' argument.
12622 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12623 argument.
12624 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12625 argument.
12626
e3c49f88
TT
126272014-02-19 Tom Tromey <tromey@redhat.com>
12628
12629 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12630 * target.c (target_enable_btrace): Add argument.
12631 * remote.c (remote_enable_btrace): Add 'self' argument.
12632 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12633 argument.
12634 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12635 argument.
12636
fe38f897
TT
126372014-02-19 Tom Tromey <tromey@redhat.com>
12638
12639 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12640 (target_can_use_agent): Add argument.
12641 * target.c (update_current_target): Update.
12642 * remote.c (remote_can_use_agent): Add 'self' argument.
12643 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12644
2c152180
TT
126452014-02-19 Tom Tromey <tromey@redhat.com>
12646
12647 * target.h (struct target_ops) <to_use_agent>: Add argument.
12648 (target_use_agent): Add argument.
12649 * target.c (update_current_target): Update.
12650 * remote.c (remote_use_agent): Add 'self' argument.
12651 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12652
a893e81f
TT
126532014-02-19 Tom Tromey <tromey@redhat.com>
12654
12655 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12656 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12657 (target_traceframe_info): Add argument.
12658 * target.c (update_current_target): Update.
12659 * remote.c (remote_traceframe_info): Add 'self' argument.
12660 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12661
c686c57f
TT
126622014-02-19 Tom Tromey <tromey@redhat.com>
12663
12664 * target.h (target_static_tracepoint_markers_by_strid): Add
12665 argument.
12666 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12667 'self' argument.
12668 * target.c (update_current_target): Update.
12669 * remote.c (struct target_ops)
12670 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12671 * linux-nat.c (struct target_ops)
12672 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12673
61fc905d
TT
126742014-02-19 Tom Tromey <tromey@redhat.com>
12675
12676 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12677 Add argument.
12678 (target_static_tracepoint_marker_at): Add argument.
12679 * target.c (update_current_target): Update.
12680 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12681 argument.
12682
c378d69d
TT
126832014-02-19 Tom Tromey <tromey@redhat.com>
12684
12685 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12686 (target_set_permissions): Add argument.
12687 * target.c (update_current_target): Update.
12688 * remote.c (remote_set_permissions): Add 'self' argument.
12689 (remote_start_remote): Update.
12690
bd7ae0f5
TT
126912014-02-19 Tom Tromey <tromey@redhat.com>
12692
12693 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12694 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12695 (target_get_tib_address): Add argument.
12696 * target.c (update_current_target): Update.
12697 * remote.c (remote_get_tib_address): Add 'self' argument.
12698
d9e68a2c
TT
126992014-02-19 Tom Tromey <tromey@redhat.com>
12700
12701 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12702 (target_set_trace_notes): Add argument.
12703 * target.c (update_current_target): Update.
12704 * remote.c (remote_set_trace_notes): Add 'self' argument.
12705
4da384be
TT
127062014-02-19 Tom Tromey <tromey@redhat.com>
12707
12708 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12709 argument.
12710 (target_set_trace_buffer_size): Add argument.
12711 * target.c (update_current_target): Update.
12712 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12713
736d5b1f
TT
127142014-02-19 Tom Tromey <tromey@redhat.com>
12715
12716 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12717 argument.
12718 (target_set_circular_trace_buffer): Add argument.
12719 * target.c (update_current_target): Update.
12720 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12721 argument.
12722
37b25738
TT
127232014-02-19 Tom Tromey <tromey@redhat.com>
12724
12725 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12726 argument.
12727 (target_set_disconnected_tracing): Add argument.
12728 * target.c (update_current_target): Update.
12729 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12730
0e67620a
TT
127312014-02-19 Tom Tromey <tromey@redhat.com>
12732
12733 * target.h (struct target_ops)
12734 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12735 (target_get_min_fast_tracepoint_insn_len): Add argument.
12736 * target.c (update_current_target): Update.
12737 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12738 argument.
12739
88ee6f45
TT
127402014-02-19 Tom Tromey <tromey@redhat.com>
12741
12742 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12743 argument.
12744 (target_get_raw_trace_data): Add argument.
12745 * target.c (update_current_target): Update.
12746 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12747
181e3713
TT
127482014-02-19 Tom Tromey <tromey@redhat.com>
12749
12750 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12751 Add argument.
12752 (target_upload_trace_state_variables): Add argument.
12753 * target.c (update_current_target): Update.
12754 * remote.c (remote_upload_trace_state_variables): Add 'self'
12755 argument.
12756 (remote_start_remote): Update.
12757
ab6617cc
TT
127582014-02-19 Tom Tromey <tromey@redhat.com>
12759
12760 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12761 argument.
12762 (target_upload_tracepoints): Add argument.
12763 * target.c (update_current_target): Update.
12764 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12765 (remote_start_remote): Update.
12766
dc3decaf
TT
127672014-02-19 Tom Tromey <tromey@redhat.com>
12768
12769 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12770 (target_save_trace_data): Add argument.
12771 * target.c (update_current_target): Update.
12772 * remote.c (remote_save_trace_data): Add 'self' argument.
12773
4011015b
TT
127742014-02-19 Tom Tromey <tromey@redhat.com>
12775
12776 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12777 argument.
12778 * target.h (struct target_ops)
12779 <to_get_trace_state_variable_value>: Add argument.
12780 (target_get_trace_state_variable_value): Add argument.
12781 * target.c (update_current_target): Update.
12782 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12783 argument.
12784 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12785
bd4c6793
TT
127862014-02-19 Tom Tromey <tromey@redhat.com>
12787
12788 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12789 * target.h (struct target_ops) <to_trace_find>: Add argument.
12790 (target_trace_find): Add argument.
12791 * target.c (update_current_target): Update.
12792 * remote.c (remote_trace_find): Add 'self' argument.
12793 * ctf.c (ctf_trace_find): Add 'self' argument.
12794
74499f1b
TT
127952014-02-19 Tom Tromey <tromey@redhat.com>
12796
12797 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12798 (target_trace_stop): Add argument.
12799 * target.c (update_current_target): Update.
12800 * remote.c (remote_trace_stop): Add 'self' argument.
12801
db90e85c
TT
128022014-02-19 Tom Tromey <tromey@redhat.com>
12803
12804 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12805 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12806 argument.
12807 (target_get_tracepoint_status): Add argument.
12808 * target.c (update_current_target): Update.
12809 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12810
8bd200f1
TT
128112014-02-19 Tom Tromey <tromey@redhat.com>
12812
12813 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12814 * target.h (struct target_ops) <to_get_trace_status>: Add
12815 argument.
12816 (target_get_trace_status): Add argument.
12817 * target.c (update_current_target): Update.
12818 * remote.c (remote_get_trace_status): Add 'self' argument.
12819 (remote_start_remote, remote_can_download_tracepoint): Update.
12820 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12821
e2d1aae3
TT
128222014-02-19 Tom Tromey <tromey@redhat.com>
12823
12824 * target.h (struct target_ops) <to_trace_start>: Add argument.
12825 (target_trace_start): Add argument.
12826 * target.c (update_current_target): Update.
12827 * remote.c (remote_trace_start): Add 'self' argument.
12828
583f9a86
TT
128292014-02-19 Tom Tromey <tromey@redhat.com>
12830
12831 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12832 Add argument.
12833 (target_trace_set_readonly_regions): Add argument.
12834 * target.c (update_current_target): Update.
12835 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12836 argument.
12837
780b049c
TT
128382014-02-19 Tom Tromey <tromey@redhat.com>
12839
12840 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12841 argument.
12842 (target_disable_tracepoint): Add argument.
12843 * target.c (update_current_target): Update.
12844 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12845
46670d57
TT
128462014-02-19 Tom Tromey <tromey@redhat.com>
12847
12848 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12849 argument.
12850 (target_enable_tracepoint): Add argument.
12851 * target.c (update_current_target): Update.
12852 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12853
559d2b81
TT
128542014-02-19 Tom Tromey <tromey@redhat.com>
12855
12856 * target.h (struct target_ops) <to_download_trace_state_variable>:
12857 Add argument.
12858 (target_download_trace_state_variable): Add argument.
12859 * target.c (update_current_target): Update.
12860 * remote.c (remote_download_trace_state_variable): Add 'self'
12861 argument.
12862
a52a8357
TT
128632014-02-19 Tom Tromey <tromey@redhat.com>
12864
12865 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12866 argument.
12867 (target_can_download_tracepoint): Add argument.
12868 * target.c (update_current_target): Update.
12869 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12870
548f7808
TT
128712014-02-19 Tom Tromey <tromey@redhat.com>
12872
12873 * target.h (struct target_ops) <to_download_tracepoint>: Add
12874 argument.
12875 (target_download_tracepoint): Add argument.
12876 * target.c (update_current_target): Update.
12877 * remote.c (remote_download_tracepoint): Add 'self' argument.
12878
ecae04e1
TT
128792014-02-19 Tom Tromey <tromey@redhat.com>
12880
12881 * target.h (struct target_ops) <to_trace_init>: Add argument.
12882 (target_trace_init): Add argument.
12883 * target.c (update_current_target): Update.
12884 * remote.c (remote_trace_init): Add 'self' argument.
12885
fab5aa7c
TT
128862014-02-19 Tom Tromey <tromey@redhat.com>
12887
12888 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12889 * target.c (target_fileio_readlink): Add argument.
12890 * remote.c (remote_hostio_readlink): Add 'self' argument.
12891 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12892
dbbca37d
TT
128932014-02-19 Tom Tromey <tromey@redhat.com>
12894
12895 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12896 * target.c (target_fileio_unlink): Add argument.
12897 * remote.c (remote_hostio_unlink): Add 'self' argument.
12898 (remote_file_delete): Update.
12899 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12900
df39ea25
TT
129012014-02-19 Tom Tromey <tromey@redhat.com>
12902
12903 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12904 * target.c (target_fileio_close): Add argument.
12905 * remote.c (remote_hostio_close): Add 'self' argument.
12906 (remote_hostio_close_cleanup): Update.
12907 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12908 Update.
12909 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12910
a3be983c
TT
129112014-02-19 Tom Tromey <tromey@redhat.com>
12912
12913 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12914 * target.c (target_fileio_pread): Add argument.
12915 * remote.c (remote_hostio_pread): Add 'self' argument.
12916 (remote_bfd_iovec_pread, remote_file_get): Update.
12917 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12918
0d866f62
TT
129192014-02-19 Tom Tromey <tromey@redhat.com>
12920
12921 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12922 * target.c (target_fileio_pwrite): Add argument.
12923 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12924 (remote_file_put): Update.
12925 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12926
cd897586
TT
129272014-02-19 Tom Tromey <tromey@redhat.com>
12928
12929 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12930 * target.c (target_fileio_open): Add argument.
12931 * remote.c (remote_hostio_open): Add 'self' argument.
12932 (remote_bfd_iovec_open): Add 'self' argument.
12933 (remote_file_put): Add 'self' argument.
12934 (remote_file_get): Add 'self' argument.
12935 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12936
78eff0ec
TT
129372014-02-19 Tom Tromey <tromey@redhat.com>
12938
12939 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12940 Add argument.
12941 (target_can_run_breakpoint_commands): Add argument.
12942 * target.c (update_current_target): Update.
12943 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12944 argument.
12945 (remote_insert_breakpoint): Add 'self' argument.
12946 (remote_insert_hw_breakpoint): Add 'self' argument.
12947 (remote_can_run_breakpoint_commands): Add 'self' argument.
12948
efcc2da7
TT
129492014-02-19 Tom Tromey <tromey@redhat.com>
12950
12951 * target.h (struct target_ops)
12952 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12953 (target_supports_evaluation_of_breakpoint_conditions): Add
12954 argument.
12955 * target.c (update_current_target): Update.
12956 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12957 argument.
12958 (remote_insert_breakpoint): Add 'self' argument.
12959 (remote_insert_hw_breakpoint): Add 'self' argument.
12960 (remote_supports_cond_breakpoints): Add 'self' argument.
12961
6de37a3a
TT
129622014-02-19 Tom Tromey <tromey@redhat.com>
12963
12964 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12965 argument.
12966 (target_supports_string_tracing): Add argument.
12967 * target.c (update_current_target): Update.
12968 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12969
2bfc0540
TT
129702014-02-19 Tom Tromey <tromey@redhat.com>
12971
12972 * target.h (struct target_ops)
12973 <to_supports_disable_randomization>: Add argument.
12974 * target.c (find_default_supports_disable_randomization): Add
12975 argument.
12976 (target_supports_disable_randomization): Add argument.
12977 (find_default_supports_disable_randomization): Add 'self'
12978 argument.
12979 * remote.c (extended_remote_supports_disable_randomization): Add
12980 'self' argument.
12981 (remote_supports_disable_randomization): Add 'self' argument.
12982 (extended_remote_create_inferior): Update.
12983 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12984 'self' argument.
12985
7d178d6a
TT
129862014-02-19 Tom Tromey <tromey@redhat.com>
12987
12988 * target.h (struct target_ops)
12989 <to_supports_enable_disable_tracepoint>: Add argument.
12990 (target_supports_enable_disable_tracepoint): Add argument.
12991 * target.c (update_current_target): Update.
12992 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12993 argument.
12994
86ce2668
TT
129952014-02-19 Tom Tromey <tromey@redhat.com>
12996
12997 * target.h (struct target_ops) <to_supports_multi_process>: Add
12998 argument.
12999 (target_supports_multi_process): Add argument.
13000 * target.c (update_current_target): Update.
13001 * remote.c (remote_supports_multi_process): Add 'self' argument.
13002 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
13003 argument.
13004 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
13005 argument.
13006
4c612759
TT
130072014-02-19 Tom Tromey <tromey@redhat.com>
13008
13009 * target.h (struct target_ops) <to_execution_direction>: Add
13010 argument.
13011 (target_execution_direction): Add argument.
13012 * target.c (default_execution_direction): Add 'self' argument.
13013 * record-full.c (record_full_execution_direction): Add 'self'
13014 argument.
13015
19db3e69
TT
130162014-02-19 Tom Tromey <tromey@redhat.com>
13017
13018 * target.h (struct target_ops) <to_can_execute_reverse>: Add
13019 argument.
13020 (target_can_execute_reverse): Add argument.
13021 * remote.c (remote_can_execute_reverse): Add 'self' argument.
13022 * record-full.c (record_full_can_execute_reverse): Add 'self'
13023 argument.
13024 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
13025 argument.
13026
1e6b91a4
TT
130272014-02-19 Tom Tromey <tromey@redhat.com>
13028
13029 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
13030 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
13031 argument.
13032 (target_get_ada_task_ptid): Add argument.
13033 * target.c (update_current_target): Update.
13034 (default_get_ada_task_ptid): Add 'self' argument.
13035 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
13036 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
13037 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
13038 argument.
13039 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
13040 argument.
13041 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
13042 argument.
13043 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
13044 argument.
13045 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
13046 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
13047 argument.
13048
3c80fb48
TT
130492014-02-19 Tom Tromey <tromey@redhat.com>
13050
13051 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
13052 (target_goto_bookmark): Add argument.
13053 * target.c (dummy_goto_bookmark): Add 'self' argument.
13054 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
13055
dd0e2830
TT
130562014-02-19 Tom Tromey <tromey@redhat.com>
13057
13058 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
13059 (target_get_bookmark): Add argument.
13060 * target.c (dummy_get_bookmark): Add 'self' argument.
13061 * record-full.c (record_full_get_bookmark): Add 'self' argument.
13062
fc6691b2
TT
130632014-02-19 Tom Tromey <tromey@redhat.com>
13064
13065 * target.h (struct target_ops) <to_make_corefile_notes>: Add
13066 argument.
13067 (target_make_corefile_notes): Add argument.
13068 * target.c (dummy_make_corefile_notes): Add 'self' argument.
13069 * procfs.c (procfs_make_note_section): Add 'self' argument.
13070 (procfs_make_note_section): Add 'self' argument.
13071 (procfs_make_note_section): Add 'self' argument.
13072 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
13073 argument.
13074 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
13075 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
13076 * exec.c (exec_make_note_section): Add 'self' argument.
13077 (exec_make_note_section): Add 'self' argument.
13078
2e73927c
TT
130792014-02-19 Tom Tromey <tromey@redhat.com>
13080
13081 * target.h (struct target_ops) <to_find_memory_regions>: Add
13082 argument.
13083 (target_find_memory_regions): Add argument.
13084 * target.c (dummy_find_memory_regions): Add 'self' argument.
13085 * procfs.c (proc_find_memory_regions): Add 'self' argument.
13086 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
13087 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
13088 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
13089 * exec. (exec_do_find_memory_regions): New global.
13090 (exec_set_find_memory_regions): Rewrite.
13091 (exec_find_memory_regions): New function.
13092 (init_exec_ops): Use exec_find_memory_regions.
13093
2a9a2795
TT
130942014-02-19 Tom Tromey <tromey@redhat.com>
13095
13096 * target.h (struct target_ops) <to_supports_non_stop>: Add
13097 argument.
13098 * target.c (find_default_supports_non_stop): Add argument.
13099 (target_supports_non_stop): Add argument.
13100 (find_default_supports_non_stop): Add 'self' argument.
13101 * remote.c (remote_supports_non_stop): Add 'self' argument.
13102 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
13103
4ab76ea3
TT
131042014-02-19 Tom Tromey <tromey@redhat.com>
13105
13106 * target.h (struct target_ops) <to_log_command>: Add argument.
13107 (target_log_command): Add argument.
13108 * serial.h (serial_log_command): Add 'self' argument.
13109 * serial.c (serial_log_command): Add 'self' argument.
13110
8dd27370
TT
131112014-02-19 Tom Tromey <tromey@redhat.com>
13112
13113 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
13114 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
13115 argument.
13116 (target_pid_to_exec_file): Add argument.
13117 * target.c (debug_to_pid_to_exec_file): Add argument.
13118 (update_current_target): Update.
13119 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
13120 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
13121 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
13122 (linux_handle_extended_wait): Update.
13123 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
13124 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
13125 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
13126 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
13127
1aac633b
TT
131282014-02-19 Tom Tromey <tromey@redhat.com>
13129
13130 * target.h (struct target_ops) <to_rcmd>: Add argument.
13131 (target_rcmd): Add argument.
13132 * target.c (debug_to_rcmd): Add argument.
13133 (update_current_target, do_monitor_command): Update.
13134 * remote.c (remote_rcmd): Add 'self' argument.
13135 * monitor.c (monitor_rcmd): Add 'self' argument.
13136
1eab8a48
TT
131372014-02-19 Tom Tromey <tromey@redhat.com>
13138
13139 * windows-nat.c (windows_stop): Add 'self' argument.
13140 * target.h (struct target_ops) <to_stop>: Add argument.
13141 * target.c (target_stop): Add argument.
13142 (debug_to_stop): Add argument.
13143 (update_current_target): Update.
13144 * remote.c (remote_stop): Add 'self' argument.
13145 * remote-sim.c (gdbsim_stop): Add 'self' argument.
13146 (gdbsim_cntrl_c): Update.
13147 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
13148 * procfs.c (procfs_stop): Add 'self' argument.
13149 * nto-procfs.c (procfs_stop): Add 'self' argument.
13150 * monitor.c (monitor_stop): Add 'self' argument.
13151 (monitor_open): Update.
13152 * linux-nat.c (linux_nat_stop): Add argument.
13153 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
13154 * gnu-nat.c (gnu_stop): Add 'self' argument.
13155 * darwin-nat.c (darwin_stop): Add 'self' argument.
13156
503a628d
TT
131572014-02-19 Tom Tromey <tromey@redhat.com>
13158
13159 * target.h (struct target_ops) <to_thread_name>: Add argument.
13160 * target.c (target_thread_name): Add argument.
13161 (update_current_target): Update.
13162 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13163
c15906d8
TT
131642014-02-19 Tom Tromey <tromey@redhat.com>
13165
13166 * target.h (struct target_ops) <to_extra_thread_info>: Add
13167 argument.
13168 (target_extra_thread_info): Add argument.
13169 * target.c (update_current_target): Update.
13170 * remote.c (remote_threads_extra_info): Add 'self' argument.
13171 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13172 argument.
13173 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13174 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13175 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13176 argument.
13177 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13178 argument.
13179 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13180 argument.
13181 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13182 argument.
13183
daf5e9b6
TT
131842014-02-19 Tom Tromey <tromey@redhat.com>
13185
13186 * target.h (struct target_ops) <to_program_signals>: Add argument.
13187 * target.c (target_program_signals): Add argument.
13188 * remote.c (remote_program_signals): Add 'self' argument.
13189
94bedb42
TT
131902014-02-19 Tom Tromey <tromey@redhat.com>
13191
13192 * target.h (struct target_ops) <to_pass_signals>: Add argument.
13193 * target.c (target_pass_signals): Add argument.
13194 * remote.c (remote_pass_signals): Add 'self' argument.
13195 (remote_start_remote): Update.
13196 * procfs.c (procfs_pass_signals): Add 'self' argument.
13197 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13198 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13199 (linux_nat_create_inferior, linux_nat_attach): Update.
13200
da82bd6b
TT
132012014-02-19 Tom Tromey <tromey@redhat.com>
13202
13203 * windows-nat.c (windows_can_run): Add 'self' argument.
13204 * target.h (struct target_ops) <to_can_run>: Add argument.
13205 (target_can_run): Add argument.
13206 * target.c (debug_to_can_run): Add argument.
13207 (update_current_target): Update.
13208 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13209 * inf-child.c (inf_child_can_run): Add 'self' argument.
13210 * go32-nat.c (go32_can_run): Add 'self' argument.
13211
d796e1d6
TT
132122014-02-19 Tom Tromey <tromey@redhat.com>
13213
13214 * target.h (struct target_ops) <to_has_exited>: Add argument.
13215 (target_has_exited): Add argument.
13216 * target.c (debug_to_has_exited): Add argument.
13217 (update_current_target): Update.
13218
ff214e67
TT
132192014-02-19 Tom Tromey <tromey@redhat.com>
13220
13221 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13222 argument.
13223 (target_set_syscall_catchpoint): Add argument.
13224 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13225 argument.
13226 * target.c (update_current_target): Update.
13227
758e29d2
TT
132282014-02-19 Tom Tromey <tromey@redhat.com>
13229
13230 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13231 argument.
13232 (target_remove_exec_catchpoint): Add argument.
13233 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13234 (update_current_target): Update.
13235 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13236 argument.
13237
ba025e51
TT
132382014-02-19 Tom Tromey <tromey@redhat.com>
13239
13240 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13241 argument.
13242 (target_insert_exec_catchpoint): Add argument.
13243 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13244 (update_current_target): Update.
13245 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13246 argument.
13247
e98cf0cd
TT
132482014-02-19 Tom Tromey <tromey@redhat.com>
13249
13250 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13251 argument.
13252 (target_remove_vfork_catchpoint): Add argument.
13253 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13254 (update_current_target): Update.
13255 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13256 argument.
13257
3ecc7da0
TT
132582014-02-19 Tom Tromey <tromey@redhat.com>
13259
13260 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13261 argument.
13262 (target_insert_vfork_catchpoint): Add argument.
13263 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13264 (update_current_target): Update.
13265 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13266 argument.
13267
973fc227
TT
132682014-02-19 Tom Tromey <tromey@redhat.com>
13269
13270 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13271 argument.
13272 (target_remove_fork_catchpoint): Add argument.
13273 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13274 (update_current_target): Update.
13275 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13276 argument.
13277
a863b201
TT
132782014-02-19 Tom Tromey <tromey@redhat.com>
13279
13280 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13281 argument.
13282 (target_insert_fork_catchpoint): Add argument.
13283 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13284 (update_current_target): Update.
13285 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13286 argument.
13287
2e97a79e
TT
132882014-02-19 Tom Tromey <tromey@redhat.com>
13289
13290 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13291 argument.
13292 (target_post_startup_inferior): Add argument.
13293 * target.c (debug_to_post_startup_inferior): Add argument.
13294 (update_current_target): Update.
13295 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13296 argument.
13297 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13298 argument.
13299 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13300 argument.
13301 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13302 argument.
13303 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13304 'self' argument.
13305 (super_post_startup_inferior): Likewise.
13306 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13307 'self' argument.
13308 (super_post_startup_inferior): Likewise.
13309 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13310 Add 'self' argument.
13311 (super_post_startup_inferior): Likewise.
13312
71a9f134
TT
133132014-02-19 Tom Tromey <tromey@redhat.com>
13314
13315 * target.h (struct target_ops) <to_load>: Add argument.
13316 * target.c (target_load): Add argument.
13317 (debug_to_load): Add argument.
13318 (update_current_target): Update.
13319 * remote.c (remote_load): Add 'self' argument.
13320 * remote-sim.c (gdbsim_load): Add 'self' argument.
13321 * remote-mips.c (mips_load): Add 'self' argument.
13322 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13323 * monitor.c (monitor_load): Add 'self' argument.
13324 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13325
0a4f40a2
TT
133262014-02-19 Tom Tromey <tromey@redhat.com>
13327
13328 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13329 (target_terminal_info): Add argument.
13330 * target.c (debug_to_terminal_info): Add argument.
13331 (default_terminal_info): Likewise.
13332 * inflow.c (child_terminal_info): Add 'self' argument.
13333 * inferior.h (child_terminal_info): Add 'self' argument.
13334 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13335
ae3bd431
TT
133362014-02-19 Tom Tromey <tromey@redhat.com>
13337
13338 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13339 argument.
13340 (target_terminal_save_ours): Add argument.
13341 * target.c (debug_to_terminal_save_ours): Add argument.
13342 (update_current_target): Update.
13343 * inflow.c (terminal_save_ours): Add 'self' argument.
13344 * inferior.h (terminal_save_ours): Add 'self' argument.
13345
e3594fd1
TT
133462014-02-19 Tom Tromey <tromey@redhat.com>
13347
13348 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13349 (target_terminal_ours): Add argument.
13350 * target.c (debug_to_terminal_ours): Add argument.
13351 (update_current_target): Update.
13352 * remote.c (remote_terminal_ours): Add 'self' argument.
13353 (remote_close): Update.
13354 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13355 * inflow.c (terminal_ours): Add 'self' argument.
13356 * inferior.h (terminal_ours): Add 'self' argument.
13357 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13358
2e1e1a19
TT
133592014-02-19 Pedro Alves <palves@redhat.com>
13360 Tom Tromey <tromey@redhat.com>
13361
13362 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13363 argument.
13364 (target_terminal_ours_for_output): Add argument.
13365 * target.c (debug_to_terminal_ours_for_output): Add argument.
13366 (update_current_target): Update.
13367 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13368 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13369 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13370
d2f640d4
TT
133712014-02-19 Tom Tromey <tromey@redhat.com>
13372
13373 * target.h (struct target_ops) <to_terminal_inferior>: Add
13374 argument.
13375 * target.c (target_terminal_inferior): Add argument.
13376 (update_current_target): Update.
13377 * remote.c (remote_terminal_inferior): Add 'self' argument.
13378 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13379 * inflow.c (terminal_inferior): Add 'self' argument.
13380 * inferior.h (terminal_inferior): Add 'self' argument.
13381 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13382 (go32_terminal_inferior): Add 'self' argument.
13383
c42bf286
TT
133842014-02-19 Tom Tromey <tromey@redhat.com>
13385
13386 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13387 (target_terminal_init): Add argument.
13388 * target.c (debug_to_terminal_init): Add argument.
13389 (update_current_target): Update.
13390 * inflow.c (terminal_init_inferior): Add 'self' argument.
13391 * inferior.h (terminal_init_inferior): Add 'self' argument.
13392 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13393 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13394
c3a5ff89
TT
133952014-02-19 Tom Tromey <tromey@redhat.com>
13396
13397 * target.h (struct target_ops)
13398 <to_can_accel_watchpoint_condition>: Add argument.
13399 (target_can_accel_watchpoint_condition): Add argument.
13400 * target.c (debug_to_can_accel_watchpoint_condition): Add
13401 argument.
13402 (update_current_target): Update.
13403 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13404 'self' argument.
13405
31568a15
TT
134062014-02-19 Tom Tromey <tromey@redhat.com>
13407
13408 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13409 Add argument.
13410 (target_region_ok_for_hw_watchpoint): Add argument.
13411 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13412 (default_region_ok_for_hw_watchpoint): Add argument.
13413 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13414 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13415 argument.
13416 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13417 argument.
13418 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13419 argument.
13420 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13421 'self' argument.
13422 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13423 'self' argument.
13424 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13425 'self' argument.
13426 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13427 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13428 'self' argument.
13429 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13430 Add 'self' argument.
13431
7bb99c53
TT
134322014-02-19 Tom Tromey <tromey@redhat.com>
13433
13434 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13435 argument.
13436 (target_insert_watchpoint): Add argument.
13437 * target.c (debug_to_insert_watchpoint): Add argument.
13438 (update_current_target): Update.
13439 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13440 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13441 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13442 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13443 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13444 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13445 argument.
13446 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13447 (procfs_insert_hw_watchpoint): Add 'self' argument.
13448 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13449 argument.
13450 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13451 argument.
13452 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13453 argument.
13454 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13455 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13456 argument.
13457 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13458 'self' argument.
13459
11b5219a
TT
134602014-02-19 Tom Tromey <tromey@redhat.com>
13461
13462 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13463 argument.
13464 (target_remove_watchpoint): Add argument.
13465 * target.c (debug_to_remove_watchpoint): Add argument.
13466 (update_current_target): Update.
13467 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13468 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13469 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13470 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13471 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13472 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13473 argument.
13474 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13475 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13476 argument.
13477 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13478 argument.
13479 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13480 argument.
13481 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13482 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13483 argument.
13484 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13485 'self' argument.
13486
a64dc96c
TT
134872014-02-19 Tom Tromey <tromey@redhat.com>
13488
13489 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13490 argument.
13491 (target_remove_hw_breakpoint): Add argument.
13492 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13493 (update_current_target): Update.
13494 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13495 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13496 argument.
13497 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13498 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13499 argument.
13500 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13501 'self' argument.
13502
23a26771
TT
135032014-02-19 Tom Tromey <tromey@redhat.com>
13504
13505 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13506 argument.
13507 (target_insert_hw_breakpoint): Add argument.
13508 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13509 (update_current_target): Update.
13510 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13511 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13512 argument.
13513 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13514 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13515 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13516 argument.
13517 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13518 'self' argument.
13519
5461485a
TT
135202014-02-19 Tom Tromey <tromey@redhat.com>
13521
13522 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13523 argument.
13524 (target_can_use_hardware_watchpoint): Add argument.
13525 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13526 (update_current_target): Update.
13527 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13528 argument.
13529 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13530 argument.
13531 * remote.c (remote_check_watch_resources): Add 'self' argument.
13532 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13533 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13534 argument.
13535 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13536 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13537 argument.
13538 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13539 argument.
13540 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13541 argument.
13542 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13543 argument.
13544 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13545 argument.
13546 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13547 argument.
13548 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13549 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13550 argument.
13551 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13552 'self' argument.
13553
f045800c
TT
135542014-02-19 Tom Tromey <tromey@redhat.com>
13555
13556 * target.h (struct target_ops) <to_post_attach>: Add argument.
13557 (target_post_attach): Add argument.
13558 * target.c (debug_to_post_attach): Add argument.
13559 (update_current_target): Update.
13560 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13561 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13562 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13563 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13564 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13565
de90e03d
TT
135662014-02-19 Tom Tromey <tromey@redhat.com>
13567
13568 * windows-nat.c (windows_close): Add 'self' argument.
13569 * tracepoint.c (tfile_close): Add 'self' argument.
13570 * target.h (struct target_ops) <to_close>: Add argument.
13571 * target.c (target_close): Add argument.
13572 (update_current_target): Update.
13573 * remote.c (remote_close): Add 'self' argument.
13574 * remote-sim.c (gdbsim_close): Add 'self' argument.
13575 * remote-mips.c (mips_close): Add 'self' argument.
13576 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13577 * record-full.c (record_full_close): Add 'self' argument.
13578 * record-btrace.c (record_btrace_close): Add 'self' argument.
13579 * monitor.h (monitor_close): Add 'self' argument.
13580 * monitor.c (monitor_close): Add 'self' argument.
13581 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13582 * linux-nat.c (linux_nat_close): Add argument.
13583 * go32-nat.c (go32_close): Add 'self' argument.
13584 * exec.c (exec_close_1): Add 'self' argument.
13585 * ctf.c (ctf_close): Add 'self' argument.
13586 * corelow.c (core_close): Add 'self' argument.
13587 (core_close_cleanup): Update.
13588 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13589 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13590
9dd130a0
TT
135912014-02-19 Tom Tromey <tromey@redhat.com>
13592
13593 * remote.c (remote_load): New function.
13594 (init_remote_ops): Use it.
13595
46917d26
TT
135962014-02-19 Tom Tromey <tromey@redhat.com>
13597
13598 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13599 argument.
13600 * common/linux-btrace.h (linux_supports_btrace): Update.
13601 * remote.c (remote_supports_btrace): Add "self" argument.
13602 * target-delegates.c: Rebuild.
13603 * target.c (target_supports_btrace): Remove.
13604 * target.h (struct target_ops) <to_supports_btrace>: Add
13605 target_ops argument.
13606 (target_supports_btrace): New define.
13607
6b84065d
TT
136082014-02-19 Tom Tromey <tromey@redhat.com>
13609
13610 * record-full.c (record_full_beneath_to_resume_ops)
13611 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13612 (record_full_beneath_to_wait)
13613 (record_full_beneath_to_store_registers_ops)
13614 (record_full_beneath_to_store_registers)
13615 (record_full_beneath_to_xfer_partial_ops)
13616 (record_full_beneath_to_xfer_partial)
13617 (record_full_beneath_to_insert_breakpoint_ops)
13618 (record_full_beneath_to_insert_breakpoint)
13619 (record_full_beneath_to_remove_breakpoint_ops)
13620 (record_full_beneath_to_remove_breakpoint)
13621 (record_full_beneath_to_stopped_by_watchpoint)
13622 (record_full_beneath_to_stopped_data_address)
13623 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13624 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13625 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13626 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13627 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13628 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13629 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13630 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13631 (record_full_resume, record_full_wait_1)
13632 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13633 (record_full_store_registers, record_full_xfer_partial)
13634 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13635 (record_full_async, record_full_core_xfer_partial): Use target
13636 delegation.
13637 * target-delegates.c: Rebuild.
13638 * target.c (current_xfer_partial): Remove.
13639 (update_current_target): Do not INHERIT or de_fault
13640 to_insert_breakpoint, to_remove_breakpoint,
13641 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13642 to_is_async_p, to_async. Do not set to_xfer_partial field.
13643 (default_xfer_partial): Simplify.
13644 (current_xfer_partial): Remove.
13645 (target_wait, target_resume): Simplify.
13646 (find_default_can_async_p, find_default_is_async_p): Update.
13647 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13648 to_xfer_partial, to_stopped_by_watchpoint,
13649 to_stopped_data_address.
13650 (target_store_registers): Simplify.
13651 (forward_target_remove_breakpoint)
13652 (forward_target_insert_breakpoint): Remove.
13653 (target_remove_breakpoint, target_insert_breakpoint)
13654 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13655 * target.h (struct target_ops) <to_resume, to_wait,
13656 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13657 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13658 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13659 markup.
13660 (forward_target_remove_breakpoint)
13661 (forward_target_insert_breakpoint): Remove.
13662 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13663 directly.
13664 (record_btrace_insert_breakpoint): Delegate directly.
13665
1101cb7b
TT
136662014-02-19 Tom Tromey <tromey@redhat.com>
13667
13668 PR build/7701:
13669 * target-delegates.c: New file.
13670 * target.c: Include target-delegates.c.
13671 (init_dummy_target): Call install_dummy_methods.
13672 (complete_target_initialization): Call install_delegators.
13673 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13674 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13675 * make-target-delegates: New file.
13676
8b06beed
TT
136772014-02-19 Tom Tromey <tromey@redhat.com>
13678
13679 * record.c (find_record_target): Use find_target_at.
13680 * target.c (find_target_at): New function.
13681 * target.h (find_target_at): Declare.
13682
6a109b6b
TT
136832014-02-19 Tom Tromey <tromey@redhat.com>
13684
13685 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13686 Add 'ops' argument.
13687 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13688 'ops' argument.
13689 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13690 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13691 'ops' argument.
13692 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13693 argument.
13694 * linux-nat.c (save_sigtrap): Update.
13695 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13696 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13697 (linux_nat_close): Update.
13698 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13699 argument.
13700 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13701 argument.
13702 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13703 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13704 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13705 (tmp_to_async): Add 'ops' argument.
13706 (record_full_stopped_by_watchpoint, record_full_async)
13707 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13708 argument.
13709 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13710 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13711 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13712 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13713 (remote_is_async_p, remote_async): Add 'ops' argument.
13714 (remote_stopped_data_address): Update.
13715 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13716 * target.c (update_current_target)
13717 (find_default_can_async_p, find_default_is_async_p): Update.
13718 (init_dummy_target): Update.
13719 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13720 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13721 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13722 (target_can_async_p, target_is_async_p, target_async)
13723 (target_stopped_by_watchpoint): Update.
13724
e095146b
YQ
137252014-02-19 Yao Qi <yao@codesourcery.com>
13726
13727 PR gdb/16220
13728 * gdbarch.sh: Remove startup_gdbarch.
13729 * gdbarch.c: Regenerated.
13730 * gdbarch.h: Likewise.
13731
bc3c6b36
KB
137322014-02-17 Kevin Buettner <kevinb@redhat.com>
13733
13734 * rl78-tdep.c (rl78_g10_register_name): New function.
13735 (rl78_return_value): Add g10 support.
13736 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13737 g10.
13738
98dc0167 137392014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
13740
13741 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13742 (SUBDIR_GUILE_SRCS): Ditto.
13743 (scm-gsmob.o): Ditto.
13744
842c05cd
YQ
137452014-02-17 Yao Qi <yao@codesourcery.com>
13746
13747 * gnu-nat.c (ILL_RPC): Declare defined function.
13748
25c0bd04
YQ
137492014-02-17 Yao Qi <yao@codesourcery.com>
13750
13751 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13752 mach_msg_type_number_t.
13753 (gnu_write_inferior): Likewise.
13754
a9a758e3
YQ
137552014-02-17 Yao Qi <yao@codesourcery.com>
13756
13757 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13758 in format string.
13759 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13760 (inf_validate_procs, inf_signal): Likewise.
13761 (S_exception_raise_request): Likewise.
13762 (do_mach_notify_dead_name): Likewise.
13763 (steal_exc_port): Likewise.
13764 (gnu_read_inferior): Change 'copy_count''s type to
13765 mach_msg_type_number_t.
13766 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13767 format string.
13768
bae8023e
TS
137692014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13770
c82f56d9
TS
13771 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13772 flag. Adjust all users; in particular...
13773 (gnu_wait): ..., don't decrement its value in here...
13774 (gnu_create_inferior): ..., and instead set the flag in here,
13775 around the startup_inferior call, and call that one with
13776 START_INFERIOR_TRAPS_EXPECTED.
13777
3398af6a
TS
13778 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13779 (ILL_RPC): ... new macro.
13780 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13781 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13782 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13783 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13784 functions with ILL_RPC macro.
13785 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13786 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13787 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13788 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13789 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13790 (S_proc_getlogin_reply, S_proc_getsid_reply)
13791 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13792 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13793 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13794 (S_proc_getnports_reply, S_proc_is_important_reply)
13795 (S_proc_get_code_reply): New stub functions, generated with
13796 ILL_RPC macro.
13797
d47642c9
TS
13798 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13799 collected the type check structures.
13800
bae8023e
TS
13801 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13802
8a55ffb0
DE
138032014-02-14 Doug Evans <dje@google.com>
13804
13805 * target.c (target_write_partial): Fix result type.
13806
c2853f3d
JM
138072014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13808
13809 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13810 the proper offsets to access fpregset_t.
13811
ac61d2db
SA
138122014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13813
13814 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13815 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13816 * h8300-tdep.c (setmachinelist): Remove global.
13817 * hppa-tdep.c (hppa_sigtramp): Remove global.
13818 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13819 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13820 * ravenscar-thread.c (update_target_observer): Remove global.
13821 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13822
9d2d0b8b
TT
138232014-02-12 Tom Tromey <tromey@redhat.com>
13824
13825 * common/rsp-low.c: Update comments.
13826 * common/rsp-low.h: Update comments.
13827
a7191e8b
TT
138282014-02-12 Tom Tromey <tromey@redhat.com>
13829
13830 * common/rsp-low.c (convert_ascii_to_int): Remove.
13831 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13832
ff0e980e
TT
138332014-02-12 Tom Tromey <tromey@redhat.com>
13834
13835 * common/rsp-low.h (unhexify): Don't declare.
13836 * common/rsp-low.c (unhexify): Remove.
13837
e9371aff
TT
138382014-02-12 Tom Tromey <tromey@redhat.com>
13839
13840 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13841 * common/rsp-low.c (convert_int_to_ascii): Remove.
13842
971dc0b8
TT
138432014-02-12 Tom Tromey <tromey@redhat.com>
13844
13845 * common/rsp-low.h (hexify): Don't declare.
13846 * common/rsp-low.c (hexify): Remove.
13847
0a822afb
TT
138482014-02-12 Tom Tromey <tromey@redhat.com>
13849
13850 * common/rsp-low.c (hexify): Never take strlen of argument.
13851
9f1b45b0
TT
138522014-02-12 Tom Tromey <tromey@redhat.com>
13853
13854 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13855 * remote.c (extended_remote_run, remote_rcmd)
13856 (remote_download_trace_state_variable, remote_save_trace_data)
13857 (remote_set_trace_notes): Update.
13858 * tracepoint.c (encode_source_string, tfile_write_status)
13859 (tfile_write_uploaded_tsv): Update.
13860
9c3d6531
TT
138612014-02-12 Tom Tromey <tromey@redhat.com>
13862
13863 * tracepoint.c: Include rsp-low.h.
13864 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13865 * remote.c: Include rsp-low.h.
13866 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13867 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13868 (remote_unescape_input): Move to common/rsp-low.c.
13869 * common/rsp-low.h: New file.
13870 * common/rsp-low.c: New file.
13871 * Makefile.in (SFILES): Add common/rsp-low.c.
13872 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13873 (COMMON_OBS): Add rsp-low.o.
13874 (rsp-low.o): New target.
13875
01fd3ea5
TT
138762014-02-12 Tom Tromey <tromey@redhat.com>
13877
13878 * utils.h: Include print-utils.h.
13879 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13880 (int_string, core_addr_to_string, core_addr_to_string_nz)
13881 (hex_string, hex_string_custom): Don't declare.
13882 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13883 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13884 (hex_string_custom, int_string, core_addr_to_string)
13885 (core_addr_to_string_nz, host_address_to_string): Move to
13886 common/print-utils.c.
13887 * common/print-utils.h: New file.
13888 * common/print-utils.c: New file
13889 * Makefile.in (SFILES): Add common/print-utils.c.
13890 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13891 (COMMON_OBS): Add print-utils.o.
13892 (print-utils.o): New target.
13893
9fb50108
TT
138942014-02-12 Tom Tromey <tromey@redhat.com>
13895
13896 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13897
0548b5db
MK
138982014-02-12 Mark Kettenis <kettenis@gnu.org>
13899
13900 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13901
493443a4
MK
139022014-02-12 Mark Kettenis <kettenis@gnu.org>
13903
13904 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13905 if a PT_IO ptrace request returns sucessfully but indicates that 0
13906 bytes were transferred.
13907
706d0883
PA
139082014-02-12 Pedro Alves <palves@redhat.com>
13909 Kevin Buettner <kevinb@redhat.com>
13910
13911 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13912 TYPE_INSTANCE_FLAG_CODE_SPACE.
13913
5caa2f0b
PA
139142014-02-12 Pedro Alves <palves@redhat.com>
13915
13916 * h8300-tdep.c (pseudo_from_raw_register)
13917 (raw_from_pseudo_register): New functions.
13918 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13919 them.
13920
76fd5f74
PA
139212014-02-12 Pedro Alves <palves@redhat.com>
13922
13923 * h8300-tdep.c (h8300_register_sim_regno): New function.
13924 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13925 gdbarch_register_sim_regno hook.
13926
8f008406
SA
139272014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13928
13929 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13930
195abc10
SA
139312014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13932
13933 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13934
93ffa5b9
MK
139352014-02-12 Mark Kettenis <kettenis@gnu.org>
13936
13937 * obsd-tdep.h (obsd_init_abi): New prototype.
13938 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13939 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13940 (obsd_init_abi): New functions.
13941 * i386obsd-tdep.c: Include "obsd-tdep.h".
13942 (i386obsd_init_abi): Call obsd_init_abi.
13943 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13944 (amd64obsd_init_abi): Call obsd_init_abi.
13945 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13946 obsd-tdep.c to gdb_target_obs.
13947
49caec94
JM
139482014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13949
13950 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13951 double float arguments to 16-byte in the argument slots.
13952
e1402065
DE
139532014-02-11 Doug Evans <xdje42@gmail.com>
13954
13955 * configure.ac: Don't crash if pkg-config is not found and guile
13956 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13957 in guile checks.
13958 * configure: Regenerate.
13959
edcc890f
YQ
139602014-02-11 Yao Qi <yao@codesourcery.com>
13961
13962 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13963 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13964 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13965 * gnu-nat.c (gnu_xfer_memory): Likewise.
13966 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13967 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13968 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13969 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13970
9b409511
YQ
139712014-02-11 Yao Qi <yao@codesourcery.com>
13972
13973 * target.h (enum target_xfer_error): Rename to ...
13974 (enum target_xfer_status): ... it. New. All users updated.
13975 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13976 New.
13977 (TARGET_XFER_STATUS_ERROR_P): New macro.
13978 (target_xfer_error_to_string): Remove declaration.
13979 (target_xfer_status_to_string): Declare.
13980 (target_xfer_partial_ftype): Adjust it.
13981 (struct target_ops) <to_xfer_partial>: Return
13982 target_xfer_status. Add argument xfered_len. Update
13983 comments.
13984 * target.c (target_xfer_error_to_string): Rename to ...
13985 (target_xfer_status_to_string): ... it. New. All callers
13986 updated.
13987 (target_read_live_memory): Likewise. Call target_xfer_partial
13988 instead of target_read.
13989 (memory_xfer_live_readonly_partial): Return
13990 target_xfer_status. Add argument xfered_len.
13991 (raw_memory_xfer_partial): Likewise.
13992 (memory_xfer_partial_1): Likewise.
13993 (memory_xfer_partial): Likewise.
13994 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13995 properly. Update debug message.
13996 (default_xfer_partial, current_xfer_partial): Likewise.
13997 (target_write_partial): Likewise.
13998 (target_read_partial): Likewise. All callers updated.
13999 (read_whatever_is_readable): Likewise.
14000 (target_write_with_progress): Likewise.
14001 (target_read_alloc_1): Likewise.
14002
14003 * aix-thread.c (aix_thread_xfer_partial): Likewise.
14004 * auxv.c (procfs_xfer_auxv): Likewise.
14005 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
14006 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14007 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14008 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
14009 * corefile.c (read_memory): Adjust.
14010 * corelow.c (core_xfer_partial): Likewise.
14011 * ctf.c (ctf_xfer_partial): Likewise.
14012 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
14013 updated.
14014 (darwin_xfer_partial): Likewise.
14015 * exec.c (section_table_xfer_memory_partial): Likewise. All
14016 callers updated.
14017 (exec_xfer_partial): Likewise.
14018 * exec.h (section_table_xfer_memory_partial): Update
14019 declaration.
14020 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
14021 negative.
14022 (gnu_xfer_partial): Likewise.
14023 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
14024 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
14025 (ia64_hpux_xfer_solib_got): Likewise.
14026 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
14027 type of 'partial_len' to ULONGEST.
14028 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14029 * linux-nat.c (linux_xfer_siginfo ): Likewise.
14030 (linux_nat_xfer_partial): Likewise.
14031 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
14032 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
14033 * monitor.c (monitor_xfer_memory): Likewise.
14034 (monitor_xfer_partial): Likewise.
14035 * procfs.c (procfs_xfer_partial): Likewise.
14036 * record-btrace.c (record_btrace_xfer_partial): Likewise.
14037 * record-full.c (record_full_xfer_partial): Likewise.
14038 (record_full_core_xfer_partial): Likewise.
14039 * remote-sim.c (gdbsim_xfer_memory): Likewise.
14040 (gdbsim_xfer_partial): Likewise.
14041 * remote.c (remote_write_bytes_aux): Likewise. All callers
14042 updated.
14043 (remote_write_bytes, remote_read_bytes): Likewise. All
14044 callers updated.
14045 (remote_flash_erase): Likewise. All callers updated.
14046 (remote_write_qxfer): Likewise. All callers updated.
14047 (remote_read_qxfer): Likewise. All callers updated.
14048 (remote_xfer_partial): Likewise.
14049 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14050 (rs6000_xfer_shared_libraries): Likewise.
14051 * sol-thread.c (sol_thread_xfer_partial): Likewise.
14052 (sol_thread_xfer_partial): Likewise.
14053 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14054 (sparc_xfer_partial): Likewise.
14055 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
14056 updated.
14057 (spu_xfer_partial): Likewise.
14058 * spu-multiarch.c (spu_xfer_partial): Likewise.
14059 * tracepoint.c (tfile_xfer_partial): Likewise.
14060 * windows-nat.c (windows_xfer_memory): Likewise.
14061 (windows_xfer_shared_libraries): Likewise.
14062 (windows_xfer_partial): Likewise.
14063 * valprint.c: Replace 'target_xfer_error' with
14064 'target_xfer_status' in comments.
14065
a8e63083
JB
140662014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
14067
14068 Checked in by Joel Brobecker <brobecker@adacore.com>.
14069 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
14070
e86b67d3
JB
140712014-02-11 Joel Brobecker <brobecker@adacore.com>
14072
14073 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
14074 function parameters.
14075
4b7d1f7f
WN
140762014-02-10 Will Newton <will.newton@linaro.org>
14077
14078 * elfread.c (elf_rel_plt_read): Look for a .got section if
14079 looking up .got.plt fails.
14080 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
14081 on address passed to elf_gnu_ifunc_record_cache.
14082 (elf_gnu_ifunc_resolve_addr): Likewise.
14083 (elf_gnu_ifunc_resolver_return_stop): Likewise.
14084
961842b2
JM
140852014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
14086
14087 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
14088 (X_RETTURN): New macro.
14089 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
14090
14091 * sparc64-tdep.c (sparc64_init_abi): Hook
14092 sparc_in_function_epilogue_p.
14093
3f03e7b1
GB
140942014-02-10 Gary Benson <gbenson@redhat.com>
14095
14096 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14097 Rename name_matcher to symbol_matcher.
14098
96f861ef
GB
140992014-02-10 Gary Benson <gbenson@redhat.com>
14100
14101 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14102 Use expand_symtabs_file_matcher_ftype and
14103 expand_symtabs_symbol_matcher_ftype.
14104
ee01b665
JB
141052014-02-10 Joel Brobecker <brobecker@adacore.com>
14106
14107 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
14108 (struct ada_symbol_cache): New.
14109 (ada_free_symbol_cache): Forward declare.
14110 (struct ada_pspace_data): New.
14111 (ada_pspace_data_handle): New static global.
14112 (get_ada_pspace_data, ada_pspace_data_cleanup)
14113 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
14114 (cache_space, cache): Delete, now folded inside struct
14115 ada_pspace_data.
14116 (ada_get_symbol_cache): New function.
14117 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
14118 implementation.
14119 (_initialize_ada_language): Remove initialization of cache_space.
14120 Move call to observer_attach_inferior_exit up, grouping it
14121 with the other observer registrations inside this function.
14122 Rename command to be more general. Add call to
14123 register_program_space_data_with_cleanup.
14124
143adbbf
JB
141252014-02-10 Joel Brobecker <brobecker@adacore.com>
14126
14127 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
14128 ada_new_objfile_observer.
14129 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
14130 (_initialize_tasks): Update uses of ada_new_objfile_observer
14131 and ada_tasks_normal_stop_observer.
14132
aa4fb036
JB
141332014-02-10 Joel Brobecker <brobecker@adacore.com>
14134
14135 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
14136 returned by the 'Length attribute to integer.
14137
9dee8cc6
JB
141382014-02-10 Joel Brobecker <brobecker@adacore.com>
14139
14140 * ada-lang.c (_initialize_ada_language): Initialize
14141 cache_space obstack.
14142
3d9434b5
JB
141432014-02-10 Joel Brobecker <brobecker@adacore.com>
14144
14145 * ada-lang.c (HASH_SIZE): New macro.
14146 (struct cache_entry): New type.
14147 (cache_space, cache): New static globals.
14148 (ada_clear_symbol_cache, find_entry): New functions.
14149 (lookup_cached_symbol, cache_symbol): Implement.
14150 (ada_new_objfile_observer, ada_free_objfile_observer): New.
14151 (_initialize_ada_language): Attach ada_new_objfile_observer
14152 and ada_free_objfile_observer.
14153
f0c5f9b2
JB
141542014-02-10 Joel Brobecker <brobecker@adacore.com>
14155
14156 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
14157 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
14158 struct block * parameter.
14159 (ada_lookup_symbol_list_worker): Constify local variable "block".
14160 Remove cast which is no longer necessary.
14161
ed3ef339
DE
141622014-02-10 Doug Evans <xdje42@gmail.com>
14163
14164 Add Guile as an extension language.
14165 * NEWS: Mention Guile scripting.
14166 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14167 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14168 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14169 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14170 (CLIBS): Add GUILE_LIBS.
14171 (install-guile): New rule.
14172 (guile.o): New rule.
14173 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14174 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14175 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14176 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14177 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14178 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14179 (scm-type.o, scm-utils.o, scm-value.o): New rules.
14180 * configure.ac: New option --with-guile.
14181 * configure: Regenerate.
14182 * config.in: Regenerate.
14183 * auto-load.c: Remove #include "python/python.h". Add #include
14184 "gdb/section-scripts.h".
14185 (source_section_scripts): Handle Guile scripts.
14186 (_initialize_auto_load): Add name of Guile objfile script to
14187 scripts-directory help text.
14188 * breakpoint.c (condition_command): Tweak comment to include Scheme.
14189 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14190 (struct breakpoint): New member scm_bp_object.
14191 * defs.h (enum command_control_type): New value guile_control.
14192 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
14193 "extension.h".
14194 (show_user): Update comment.
14195 (_initialize_cli_cmds): Update help text for "show user". Update help
14196 text for max-user-call-depth.
14197 * cli/cli-script.c: Remove #include "python/python.h". Add #include
14198 "extension.h".
14199 (multi_line_command_p): Add guile_control.
14200 (print_command_lines): Handle guile_control.
14201 (execute_control_command, recurse_read_control_structure): Ditto.
14202 (process_next_line): Recognize "guile" commands.
14203 * disasm.c (gdb_disassemble_info): Make non-static.
14204 * disasm.h: #include "dis-asm.h".
14205 (struct gdbarch): Add forward decl.
14206 (gdb_disassemble_info): Declare.
14207 * extension.c: #include "guile/guile.h".
14208 (extension_languages): Add guile.
14209 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14210 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14211 * gdbtypes.c (get_unsigned_type_max): New function.
14212 (get_signed_type_minmax): New function.
14213 * gdbtypes.h (get_unsigned_type_max): Declare.
14214 (get_signed_type_minmax): Declare.
14215 * guile/README: New file.
14216 * guile/guile-internal.h: New file.
14217 * guile/guile.c: New file.
14218 * guile/guile.h: New file.
14219 * guile/scm-arch.c: New file.
14220 * guile/scm-auto-load.c: New file.
14221 * guile/scm-block.c: New file.
14222 * guile/scm-breakpoint.c: New file.
14223 * guile/scm-disasm.c: New file.
14224 * guile/scm-exception.c: New file.
14225 * guile/scm-frame.c: New file.
14226 * guile/scm-gsmob.c: New file.
14227 * guile/scm-iterator.c: New file.
14228 * guile/scm-lazy-string.c: New file.
14229 * guile/scm-math.c: New file.
14230 * guile/scm-objfile.c: New file.
14231 * guile/scm-ports.c: New file.
14232 * guile/scm-pretty-print.c: New file.
14233 * guile/scm-safe-call.c: New file.
14234 * guile/scm-string.c: New file.
14235 * guile/scm-symbol.c: New file.
14236 * guile/scm-symtab.c: New file.
14237 * guile/scm-type.c: New file.
14238 * guile/scm-utils.c: New file.
14239 * guile/scm-value.c: New file.
14240 * guile/lib/gdb.scm: New file.
14241 * guile/lib/gdb/boot.scm: New file.
14242 * guile/lib/gdb/experimental.scm: New file.
14243 * guile/lib/gdb/init.scm: New file.
14244 * guile/lib/gdb/iterator.scm: New file.
14245 * guile/lib/gdb/printing.scm: New file.
14246 * guile/lib/gdb/types.scm: New file.
14247 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14248 (VPATH): Add $(GUILE_SRCDIR).
14249 (GUILE_DIR): New variable.
14250 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14251 (all): Add stamp-guile dependency.
14252 (stamp-guile): New rule.
14253 (clean-guile, install-guile, uninstall-guile): New rules.
14254 (install-only): Add install-guile dependency.
14255 (uninstall): Add uninstall-guile dependency.
14256 (clean): Add clean-guile dependency.
14257
ac020ec5
DE
142582014-02-09 Doug Evans <xdje42@gmail.com>
14259
14260 Revert this patch (which I approved, mea culpa).
14261
14262 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14263
14264 * Makefile.in (all-lib): Remove.
14265 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14266
2a081c59
JK
142672014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14268
14269 Fix Python stack corruption.
14270 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14271 gdb_py_longest.
14272
0a6bd22d
MK
142732014-02-08 Mark Kettenis <kettenis@gnu.org>
14274
14275 * Makefile.in (all-lib): Remove.
14276 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14277
1a860409
DE
142782014-02-07 Doug Evans <dje@google.com>
14279
14280 * extension-priv.h (extension_language_script_ops): Add comment.
14281 (extension_language_ops): Add comment.
caf5a491 14282 (active_ext_lang_state): Fix typo in comment.
1a860409 14283
d137e6dc
PA
142842014-02-07 Pedro Alves <palves@redhat.com>
14285
0dcb32c3 14286 PR breakpoints/16292
d137e6dc
PA
14287 * infrun.c (handle_signal_stop) <signal arrives while stepping
14288 over a breakpoint>: Switch back to the stepping thread.
14289
ce6d0892
YQ
142902014-02-07 Yao Qi <yao@codesourcery.com>
14291
14292 * target.c (target_xfer_partial): Return zero if LEN is zero.
14293
2ed4b548
YQ
142942014-02-07 Yao Qi <yao@codesourcery.com>
14295
14296 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14297 (ld_so_xfer_auxv): Likewise.
14298 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14299 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14300 * corelow.c (core_xfer_partial): Likewise.
14301 * ctf.c (ctf_xfer_partial): Likewise.
14302 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14303 (darwin_xfer_partial): Likewise.
14304 * exec.c (exec_xfer_partial): Likewise.
14305 * gnu-nat.c (gnu_xfer_partial): Likewise.
14306 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14307 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14308 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14309 * linux-nat.c (linux_xfer_siginfo): Likewise.
14310 (linux_proc_xfer_spu): Likewise.
14311 * procfs.c (procfs_xfer_partial): Likewise.
14312 * record-full.c (record_full_xfer_partial): Likewise.
14313 (record_full_core_xfer_partial): Likewise.
14314 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14315 * remote.c (remote_write_qxfer): Likewise.
14316 (remote_write_qxfer, remote_read_qxfer): Likewise.
14317 (remote_xfer_partial): Likewise.
14318 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14319 (rs6000_xfer_shared_libraries): Likewise.
14320 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14321 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14322 (spu_xfer_partial): Likewise.
14323 * target.c (memory_xfer_partial_1): Likewise.
14324 * tracepoint.c (tfile_xfer_partial): Likewise.
14325 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14326 (windows_xfer_partial): Likewise.
14327
c09f20e4
YQ
143282014-02-07 Yao Qi <yao@codesourcery.com>
14329
14330 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14331 comments.
14332 (core_xfer_shared_libraries_aix): Likewise.
14333 * gdbarch.c, gdbarch.h: Regenerated.
14334 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14335 ULONGEST. Change 'len_avail' type to ULONGEST.
14336 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14337 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14338 declaration.
14339 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14340
8635b3bf
YQ
143412014-02-07 Yao Qi <yao@codesourcery.com>
14342
14343 * corefile.c (memory_error): Get 'exception' from ERR and pass
14344 'exception' to throw_error.
14345
6dddc817
DE
143462014-02-06 Doug Evans <xdje42@gmail.com>
14347
14348 * configure.ac (libpython checking): Remove all but python.o from
14349 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14350 * configure: Regenerate.
14351
14352 * Makefile.in (SFILES): Add extension.c.
14353 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14354 (COMMON_OBS): Add extension.o.
14355 * extension.h: New file.
14356 * extension-priv.h: New file.
14357 * extension.c: New file.
14358
14359 * python/python-internal.h: #include "extension.h".
14360 (gdbpy_auto_load_enabled): Declare.
14361 (gdbpy_apply_val_pretty_printer): Declare.
14362 (gdbpy_apply_frame_filter): Declare.
14363 (gdbpy_preserve_values): Declare.
14364 (gdbpy_breakpoint_cond_says_stop): Declare.
14365 (gdbpy_breakpoint_has_cond): Declare.
14366 (void source_python_script_for_objfile): Delete.
14367 * python/python.c: #include "extension-priv.h".
14368 Delete inclusion of "observer.h".
14369 (extension_language_python): Moved here and renamed from
14370 script_language_python in py-auto-load.c.
14371 Redefined to be of type extension_language_defn.
14372 (python_extension_script_ops): New global.
14373 (python_extension_ops): New global.
14374 (struct python_env): New member previous_active.
14375 (restore_python_env): Call restore_active_ext_lang.
14376 (ensure_python_env): Call set_active_ext_lang.
14377 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14378 New arg extlang.
14379 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14380 New arg extlang.
14381 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14382 New arg extlang.
14383 (gdbpy_eval_from_control_command): Renamed from
14384 eval_python_from_control_command, made static. New arg extlang.
14385 (gdbpy_source_script) Renamed from source_python_script, made static.
14386 New arg extlang.
14387 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14388 result to int. New arg extlang.
14389 (gdbpy_source_objfile_script): Renamed from
14390 source_python_script_for_objfile, made static. New arg extlang.
14391 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14392 static. New args extlang, extlang_printers. Change result type to
14393 "void".
14394 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14395 static. New arg extlang. Rename arg printers to extlang_printers
14396 and change type to ext_lang_type_printers *.
14397 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14398 static. Replace argument arg with extlang, extlang_printers.
14399 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14400 (!HAVE_PYTHON, source_python_script): Delete.
14401 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14402 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14403 (!HAVE_PYTHON, start_type_printers): Delete.
14404 (!HAVE_PYTHON, apply_type_printers): Delete.
14405 (!HAVE_PYTHON, free_type_printers): Delete.
14406 (_initialize_python): Delete call to observer_attach_before_prompt.
14407 (finalize_python): Set/restore active extension language.
14408 (gdbpy_finish_initialization) Renamed from
14409 finish_python_initialization, made static. New arg extlang.
14410 (gdbpy_initialized): New function.
14411 * python/python.h: #include "extension.h". Delete #include
14412 "value.h", "mi/mi-cmds.h".
14413 (extension_language_python): Declare.
14414 (GDBPY_AUTO_FILE_NAME): Delete.
14415 (enum py_bt_status): Moved to extension.h and renamed to
14416 ext_lang_bt_status.
14417 (enum frame_filter_flags): Moved to extension.h.
14418 (enum py_frame_args): Moved to extension.h and renamed to
14419 ext_lang_frame_args.
14420 (finish_python_initialization): Delete.
14421 (eval_python_from_control_command): Delete.
14422 (source_python_script): Delete.
14423 (apply_val_pretty_printer): Delete.
14424 (apply_frame_filter): Delete.
14425 (preserve_python_values): Delete.
14426 (gdbpy_script_language_defn): Delete.
14427 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14428 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14429
14430 * auto-load.c: #include "extension.h".
14431 (GDB_AUTO_FILE_NAME): Delete.
14432 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14433 (script_language_gdb): Delete, moved to extension.c and renamed to
14434 extension_language_gdb.
14435 (source_gdb_script_for_objfile): Delete.
14436 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14437 (loaded_script): Change type of language member to
14438 struct extension_language_defn *.
14439 (init_loaded_scripts_info): Initialize
14440 unsupported_script_warning_printed.
14441 (maybe_add_script): Make static. Change type of language arg to
14442 struct extension_language_defn *.
14443 (clear_section_scripts): Reset unsupported_script_warning_printed.
14444 (auto_load_objfile_script_1): Rewrite to use extension language API.
14445 (auto_load_objfile_script): Make public. Remove support-compiled-in
14446 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14447 (source_section_scripts): Rewrite to use extension language API.
14448 (load_auto_scripts_for_objfile): Rewrite to use
14449 auto_load_scripts_for_objfile.
14450 (collect_matching_scripts_data): Change type of language member to
14451 struct extension_language_defn *.
14452 (auto_load_info_scripts): Change type of language arg to
14453 struct extension_language_defn *.
14454 (unsupported_script_warning_print): New function.
14455 (script_not_found_warning_print): Make static.
14456 (_initialize_auto_load): Rewrite construction of scripts-directory
14457 help.
14458 * auto-load.h (struct objfile): Add forward decl.
14459 (struct script_language): Delete.
14460 (struct auto_load_pspace_info): Add forward decl.
14461 (struct extension_language_defn): Add forward decl.
14462 (maybe_add_script): Delete.
14463 (auto_load_objfile_script): Declare.
14464 (script_not_found_warning_print): Delete.
14465 (auto_load_info_scripts): Update prototype.
14466 (auto_load_gdb_scripts_enabled): Declare.
14467 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14468 auto_load_python_scripts_enabled and made public.
14469 (script_language_python): Delete, moved to python.c.
14470 (gdbpy_script_language_defn): Delete.
14471 (info_auto_load_python_scripts): Update to use
14472 extension_language_python.
14473
14474 * breakpoint.c (condition_command): Replace call to
14475 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14476 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14477 with call to breakpoint_ext_lang_cond_says_stop.
14478 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14479 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14480 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14481 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14482 New arg slang.
14483 (local_setattro): Print name of extension language with existing
14484 stop condition.
14485
14486 * valprint.c (val_print, value_print): Update to call
14487 apply_ext_lang_val_pretty_printer.
14488 * cp-valprint.c (cp_print_value): Update call to
14489 apply_ext_lang_val_pretty_printer.
14490 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14491 (gdbpy_apply_val_pretty_printer): Renamed from
14492 apply_val_pretty_printer. New arg extlang.
14493 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14494
14495 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14496 extension language API.
14497 * cli/cli-script.c (execute_control_command): Update to call
14498 eval_ext_lang_from_control_command.
14499
14500 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14501 enum ext_lang_bt_status values. Update call to
14502 apply_ext_lang_frame_filter.
14503 (mi_cmd_stack_list_locals): Ditto.
14504 (mi_cmd_stack_list_args): Ditto.
14505 (mi_cmd_stack_list_variables): Ditto.
14506 * mi/mi-main.c: Delete #include "python/python-internal.h".
14507 Add #include "extension.h".
14508 (mi_cmd_list_features): Replace reference to python internal variable
14509 gdb_python_initialized with call to ext_lang_initialized_p.
14510
14511 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14512 Update to use enum ext_lang_frame_args. Update to call
14513 apply_ext_lang_frame_filter.
14514 * python/py-framefilter.c (extract_sym): Update to use enum
14515 ext_lang_bt_status.
14516 (extract_value, py_print_type, py_print_value): Ditto.
14517 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14518 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14519 (py_print_frame): Ditto.
14520 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14521 New arg extlang. Update to use enum ext_lang_bt_status.
14522
14523 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14524 finish_python_initialization. Replace with call to
14525 finish_ext_lang_initialization.
14526
14527 * typeprint.c (do_free_global_table): Update to call
14528 free_ext_lang_type_printers.
14529 (create_global_typedef_table): Update to call
14530 start_ext_lang_type_printers.
14531 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14532 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14533 (type_print_options): Change type of global_printers from "void *"
14534 to "struct ext_lang_type_printers *".
14535
14536 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14537 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14538 (gdbpy_preserve_values): Renamed from preserve_python_values.
14539 New arg extlang.
14540 (!HAVE_PYTHON, preserve_python_values): Delete.
14541
14542 * utils.c (quit_flag): Delete, moved to extension.c.
14543 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14544 extension.c.
14545
14546 * eval.c: Delete #include "python/python.h".
14547 * main.c: Delete #include "python/python.h".
14548
14549 * defs.h: Update comment.
14550
6af79985
JB
145512014-02-06 Joel Brobecker <brobecker@adacore.com>
14552
14553 GDB 7.7 released.
14554
12c5175d
MK
145552014-02-05 Mark Kettenis <kettenis@gnu.org>
14556
14557 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14558 defined.
14559
8dc5b319
YQ
145602014-02-05 Yao Qi <yao@codesourcery.com>
14561
14562 * remote.c (remote_pass_signals): Remove local 'buf' and use
14563 rs->buf.
14564 (remote_program_signals): Likewise.
14565
de7b2893
YQ
145662014-02-05 Yao Qi <yao@codesourcery.com>
14567
14568 * ctf.c: Include "inferior.h" and "gdbthread.h".
14569 (CTF_PID): A new macro.
14570 (ctf_open): Call inferior_appeared and add_thread_silent.
14571 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14572 (ctf_thread_alive): New function.
14573 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14574
66d032ac
YQ
145752014-02-05 Yao Qi <yao@codesourcery.com>
14576
14577 Revert this patch:
14578
14579 2013-05-24 Yao Qi <yao@codesourcery.com>
14580
14581 * tracepoint.c (TFILE_PID): Remove.
14582 (tfile_open): Don't add thread and inferior.
14583 (tfile_close): Don't set 'inferior_ptid'. Don't call
14584 exit_inferior_silent.
14585 (tfile_thread_alive): Remove.
14586 (init_tfile_ops): Don't set field 'to_thread_alive' of
14587 tfile_ops.
14588
f4ccffad
CE
145892014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14590
14591 * remote.c (remote_start_remote): Call remote_check_symbols even
14592 if only symbol-file (not file) has been given.
14593
591a12a1
UW
145942014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14595
14596 * gdbarch.sh (skip_entrypoint): New callback.
14597 * gdbarch.c, gdbarch.h: Regenerate.
14598 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14599 * infrun.c (fill_in_stop_func): Likewise.
14600 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14601 (ppc_elfv2_elf_make_msymbol_special): New function.
14602 (ppc_elfv2_skip_entrypoint): Likewise.
14603 (ppc_linux_init_abi): Install them for ELFv2.
14604
cc0e89c5
UW
146052014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14606
14607 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14608 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14609 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14610 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14611 structures returned in GPRs.
14612
52f548e4
UW
146132014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14614
14615 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14616 offset to the stack parameter list for the ELFv2 ABI.
14617
d4094b6a
UW
146182014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14619
14620 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14621 set_gdbarch_convert_from_func_ptr_addr and
14622 set_gdbarch_elf_make_msymbol_special for ELFv1.
14623 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14624 function descriptors on ELFv1.
14625 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14626 set up r12 at function entry.
14627
cd453cd0
UW
146282014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14629
14630 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14631 (struct gdbarch_tdep): New member elf_abi.
14632
14633 * rs6000-tdep.c: Include "elf/ppc64.h".
14634 (rs6000_gdbarch_init): Detect ELF ABI version.
14635
0ff3e01f
UW
146362014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14637
14638 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14639 within a register pair holding a DFP 128-bit value on little-endian.
14640 (ppc64_sysv_abi_return_value_base): Likewise.
14641 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14642 (dfp_pseudo_register_write): Likewise.
14643
5b757e5d
UW
146442014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14645
14646 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14647 offset on little-endian when passing _Decimal32.
14648 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14649
084ee545
UW
146502014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14651
14652 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14653 of the overlapped FP register within the VSX register on little-
14654 endian platforms.
14655 (efpr_pseudo_register_write): Likewise.
14656
d63167af
UW
146572014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14658
14659 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14660 offset on little-endian when passing small structures.
14661
e765b44c
UW
146622014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14663
14664 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14665 (struct ppc64_sysv_argpos): New data structure.
14666 (ppc64_sysv_abi_push_float): Remove.
14667 (ppc64_sysv_abi_push_val): New function.
14668 (ppc64_sysv_abi_push_integer): Likewise.
14669 (ppc64_sysv_abi_push_freg): Likewise.
14670 (ppc64_sysv_abi_push_vreg): Likewise.
14671 (ppc64_sysv_abi_push_param): Likewise.
14672 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14673 (ppc64_sysv_abi_return_value_base): New function.
14674 (ppc64_sysv_abi_return_value): Refactor to use it.
14675
36c24d95
UW
146762014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14677
14678 * NEWS: Document new target powerpc64le-*-linux*.
14679
26fd9228
MK
146802014-02-04 Mark Kettenis <kettenis@gnu.org>
14681
14682 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14683 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14684 core dumps.
14685 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14686 register set used in ELF core dumps. Add floating-point register set.
14687
c5bb7362
KB
146882014-02-03 Kevin Buettner <kevinb@redhat.com>
14689
74228e77 14690 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
14691 dwarf2_to_gdb[] table using symbolic constants. Adjust
14692 penultimate entry from number representing the PC register
14693 to symbolic constant representing the MDR register. Add
14694 constant for the PC register to the end of the table.
14695
af09351e
MK
146962014-02-03 Mark Kettenis <kettenis@gnu.org>
14697
14698 * bsd-kvm.c: Include <sys/param.h>
14699
8507e05d
MK
147002014-02-03 Mark Kettenis <kettenis@gnu.org>
14701
14702 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14703
ae56bfb8
JB
147042014-01-31 Joel Brobecker <brobecker@adacore.com>
14705
14706 * ada-lang.h (clear_ada_sym_cache): Delete.
14707
718ee4dc
UW
147082014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14709
14710 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14711
401e27fd
JM
147122014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14713
14714 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14715 the sigreturn register save area only if the syscall is
14716 sigreturn.
14717
a7c88acd
JB
147182014-01-29 Joel Brobecker <brobecker@adacore.com>
14719
14720 * valops.c (value_slice): Minor reformatting.
14721
fa0079ea
UW
147222014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14723
14724 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14725
c6044dd1
JB
147262014-01-28 Joel Brobecker <brobecker@adacore.com>
14727
14728 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14729 New static globals.
14730 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14731 (ada_ignore_descriptive_types_p): New static global.
14732 (find_parallel_type_by_descriptive_type): Return immediately
14733 if ada_ignore_descriptive_types_p is set.
14734 (_initialize_ada_language): Register new commands "maintenance
14735 set ada", "maintenance show ada", "maintenance set ada
14736 ignore-descriptive-types" and "maintenance show ada
14737 ignore-descriptive-types".
14738 * NEWS: Add entry for new "maint ada set/show
14739 ignore-descriptive-types" commands.
14740
568e808b
MM
147412014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14742
14743 * record-btrace.c (record_btrace_close): Call btrace_teardown
14744 for all threads.
14745
467d141b
JB
147462014-01-27 Joel Brobecker <brobecker@adacore.com>
14747
14748 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14749 "ui-out.h".
14750
fb151210
JB
147512014-01-27 Joel Brobecker <brobecker@adacore.com>
14752
14753 * ada-typeprint (type_is_full_subrange_of_target_type):
14754 New function.
14755 (print_range): Add parameter bounds_prefered_p. If not set,
14756 try printing range types using the name of their base type.
14757 (print_range_type): Add parameter bounds_prefered_p.
14758 Use it in call to print_range.
14759 (print_array_type, ada_print_type): Update calls to print_range
14760 and print_range_type.
14761
aba02109
JB
147622014-01-27 Joel Brobecker <brobecker@adacore.com>
14763
14764 * ada-typeprint.c (print_array_type, print_choices, print_range)
14765 (print_range_bound, print_dynamic_range_bound, print_range_type):
14766 Remove declaration.
14767
e62e21fd
JB
147682014-01-27 Joel Brobecker <brobecker@adacore.com>
14769
14770 * ada-typeprint.c (print_range): Add missing empty line
14771 after local declaration.
14772
859cf5d1
JB
147732014-01-27 Joel Brobecker <brobecker@adacore.com>
14774
14775 * ada-valprint.c (print_optional_low_bound): Get index_type's
14776 target type for as long as it is a TYPE_CODE_RANGE.
14777
25790f6f
JB
147782014-01-27 Joel Brobecker <brobecker@adacore.com>
14779
14780 * procfs.c (procfs_make_note_section): Remove assertion and
14781 associated comment.
14782
6b6aa828
YQ
147832014-01-24 Yao Qi <yao@codesourcery.com>
14784
14785 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14786 * corelow.c (get_core_siginfo): Likewise.
14787
5d6df423
YQ
147882014-01-24 Yao Qi <yao@codesourcery.com>
14789
14790 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14791 ULONGEST. Don't check 'len' is negative.
14792 (remote_write_bytes): Change type of 'len' to ULONGEST.
14793
83b645b8
TT
147942014-01-23 Tom Tromey <tromey@redhat.com>
14795
14796 PR python/16485:
14797 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14798 Handle exception from frame.block.
14799 (FrameVars.fetch_frame_locals): Likewise.
14800
0740f8d8
TT
148012014-01-23 Tom Tromey <tromey@redhat.com>
14802
14803 PR python/16487:
14804 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14805 on a NULL pointer. Move "goto error" to correct place.
14806
21909fa1
TT
148072014-01-23 Tom Tromey <tromey@redhat.com>
14808
14809 PR python/16491:
14810 * python/py-framefilter.c (apply_frame_filter): Call
14811 ensure_python_env after computing gdbarch.
14812
17fde6d0
YQ
148132014-01-23 Yao Qi <yao@codesourcery.com>
14814
14815 * target.c (raw_memory_xfer_partial): Change argument type
14816 from void * to gdb_byte *.
14817 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14818
87ce2a04
DE
148192014-01-22 Doug Evans <dje@google.com>
14820
14821 New gdbserver option --debug-format=timestamp.
14822 * NEWS: Mention it.
14823
237b092b
AA
148242014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14825
14826 * syscalls/s390x-linux.xml: New file.
14827 * syscalls/s390-linux.xml: New file.
14828 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14829 (XML_SYSCALL_FILENAME_S390X): Likewise.
14830 (op_svc): New enum value for SVC opcode.
14831 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14832 (s390_linux_get_syscall_number): New function.
14833 (s390_gdbarch_init): Register '*get_syscall_number' and the
14834 syscall xml file name.
14835 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14836 "s390-linux.xml" and "s390x-linux.xml".
14837 * NEWS: Announce new feature.
14838
54bff650
BS
148392014-01-22 Baruch Siach <baruch@tkos.co.il>
14840
14841 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14842
14e361d7
PA
148432014-01-22 Pedro Alves <palves@redhat.com>
14844
14845 * xtensa-config.c: Include defs.h.
14846
46bbb3ed
JB
148472014-01-22 Joel Brobecker <brobecker@adacore.com>
14848
14849 * common/common-utils.h: Add "ARI:" comment beside __func__
14850 reference.
14851
3a80edfc
JB
148522014-01-22 Joel Brobecker <brobecker@adacore.com>
14853
14854 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14855 documentation a bit.
14856
4869db5e
RM
148572014-01-21 Roland McGrath <mcgrathr@google.com>
14858
14859 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14860 * configure: Regenerate.
14861 * aclocal.m4: Regenerate.
14862 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14863 New substituted variables.
14864 (install-strip): New target.
14865 (INSTALL_SCRIPT): New substituted variable.
14866 (FLAGS_TO_PASS): Add it.
14867 (install-only): Use $(INSTALL_SCRIPT) rather than
14868 $(INSTALL_PROGRAM) for gcore.
14869
9ea4267d
TT
148702014-01-20 Tom Tromey <tromey@redhat.com>
14871
14872 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14873 together.
14874
1f2bdf09
TT
148752014-01-20 Tom Tromey <tromey@redhat.com>
14876
14877 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14878 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14879 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14880 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14881 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14882 (struct cmd_list_element) <flags>: Remove.
14883 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14884 doc_allocated>: New fields.
14885 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14886 bitfields.
14887 * maint.c (maintenance_do_deprecate): Update.
14888 * top.c (execute_command): Update.
14889
e671835b
BS
148902014-01-20 Baruch Siach <baruch@tkos.co.il>
14891
14892 * xtensa-linux-nat.c: Include asm/ptrace.h.
14893
50367cd2
IB
148942014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14895
14896 * Makefile.in (SFILES): Add d-support.c.
14897 (COMMON_OBS): Add d-support.o.
14898 * d-lang.h (d_parse_symbol): Add comment, now defined in
14899 d-support.c.
14900 * d-lang.c (parse_call_convention)
14901 (parse_attributes, parse_function_types)
14902 (parse_function_args, parse_type, parse_identifier)
14903 (call_convention_p, d_parse_symbol): Move functions to ...
14904 * d-support.c: ... New file.
14905
ec9f644a
IB
149062014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14907
14908 * d-lang.h (d_parse_symbol): Add declaration.
14909 * d-lang.c (extract_identifiers)
14910 (extract_type_info): Remove functions.
14911 (parse_call_convention, parse_attributes)
14912 (parse_function_types, parse_function_args)
14913 (parse_type, parse_identifier, call_convention_p)
14914 (d_parse_symbol): New functions.
14915 (d_demangle): Use d_parse_symbol to demangle D symbols.
14916
94b1b47e
IB
149172014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14918
14919 * d-lang.h (struct builtin_d_type): New data type.
14920 (builtin_d_type): Add declaration.
14921 * d-lang.c (d_language_arch_info, build_d_types)
14922 (builtin_d_type): New functions.
14923 (enum d_primitive_types): New data type.
14924 (d_language_defn): Change c_language_arch_info to
14925 d_language_arch_info.
14926 (d_type_data): New static variable.
14927 (_initialize_d_language): Initialize d_type_data.
14928
63778547
IB
149292014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14930
14931 * d-lang.h (d_main_name): Add declaration.
14932 * d-lang.c (d_main_name): New function.
14933 * symtab.c (find_main_name): Add call to d_main_name.
14934
3271ba66
IB
149352014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14936
14937 * d-lang.c (d_language_defn): Change macro_expansion_c to
14938 macro_expansion_no.
14939
d36b3012
IB
149402014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14941
14942 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14943
c90a6fb7
SDJ
149442014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14945
14946 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14947 gdb_exception" declaration.
14948 * remote.c (getpkt_or_notif_sane): Likewise.
14949
749234e5
DE
149502014-01-17 Doug Evans <dje@google.com>
14951
14952 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14953 function, contents of dirnames_to_char_ptr_vec_append moved here.
14954 (delim_string_to_char_ptr_vec): New function.
14955 (dirnames_to_char_ptr_vec_append): Rewrite.
14956 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14957
df049a58
DE
149582014-01-17 Doug Evans <dje@google.com>
14959
14960 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14961 and moved here ...
14962 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14963 #include "common-utils.h".
14964 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14965 * common/vec.h (VEC_ASSERT_PASS): Update.
14966 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14967 (MACH_CHECK_ERROR): Update.
14968
69f97648
SM
149692014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14970
14971 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14972 comments.
14973 * gdbarch.h: Regenerate.
14974
98b1cfdc
TT
149752014-01-16 Tom Tromey <tromey@redhat.com>
14976
14977 * value.c (struct value) <regnum>: Move earlier.
14978
77a19445
TT
149792014-01-16 Tom Tromey <tromey@redhat.com>
14980
14981 * remote.c (extended_remote_create_inferior): Rename from
14982 extended_remote_create_inferior_1. Add "ops" argument. Remove
14983 old implementation.
14984
62261490
PA
149852014-01-16 Pedro Alves <palves@redhat.com>
14986
14987 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14988 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14989 the backchain.
14990
4d65956b
DE
149912014-01-16 Doug Evans <dje@google.com>
14992
14993 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14994
52834460
MM
149952014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14996
14997 * btrace.h (btrace_thread_flag): New.
14998 (struct btrace_thread_info) <flags>: New.
14999 * record-btrace.c (record_btrace_resume_thread)
15000 (record_btrace_find_thread_to_move, btrace_step_no_history)
15001 (btrace_step_stopped, record_btrace_start_replaying)
15002 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
15003 (record_btrace_find_resume_thread): New.
15004 (record_btrace_resume, record_btrace_wait): Extend.
15005 (record_btrace_can_execute_reverse): New.
15006 (record_btrace_open): Fail in non-stop mode.
15007 (record_btrace_set_replay): Split into this, ...
15008 (record_btrace_stop_replaying): ... this, ...
15009 (record_btrace_clear_histories): ... and this.
15010 (init_record_btrace_ops): Init to_can_execute_reverse.
15011 * NEWS: Announce it.
15012
118e6252
MM
150132014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15014
15015 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
15016 (forward_target_decr_pc_after_break)
15017 (target_decr_pc_after_break): New.
15018 * target.c (forward_target_decr_pc_after_break)
15019 (target_decr_pc_after_break): New.
15020 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
15021 instead of gdbarch_decr_pc_after_break.
15022 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15023 instead of gdbarch_decr_pc_after_break.
15024 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
15025 instead of gdbarch_decr_pc_after_break.
15026 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15027 instead of gdbarch_decr_pc_after_break.
15028 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
15029 instead of gdbarch_decr_pc_after_break.
15030 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
15031 instead of gdbarch_decr_pc_after_break.
15032
6e07b1d2
MM
150332014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15034
15035 * btrace.c: Include regcache.h.
15036 (btrace_add_pc): New.
15037 (btrace_enable): Call btrace_add_pc.
15038 (btrace_is_empty): New.
15039 * btrace.h (btrace_is_empty): New.
15040 * record-btrace.c (require_btrace, record_btrace_info): Call
15041 btrace_is_empty.
15042
969c39fb
MM
150432014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15044
15045 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
15046 Support delta reads.
15047 (linux_disable_btrace): Change return type.
15048 * common/linux-btrace.h (linux_read_btrace): Change parameters
15049 and return type to allow error reporting. Update users.
15050 (linux_disable_btrace): Change return type. Update users.
15051 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
15052 New.
15053 (btrace_error): New.
15054 (btrace_block) <begin>: Comment on BEGIN == 0.
15055 * btrace.c (btrace_compute_ftrace): Start from the end of
15056 the current trace.
15057 (btrace_stitch_trace, btrace_clear_history): New.
15058 (btrace_fetch): Read delta trace, return if replaying.
15059 (btrace_clear): Move clear history code to btrace_clear_history.
15060 (parse_xml_btrace): Throw an error if parsing failed.
15061 * target.h (struct target_ops) <to_read_btrace>: Change parameters
15062 and return type to allow error reporting.
15063 (target_read_btrace): Change parameters and return type to allow
15064 error reporting.
15065 * target.c (target_read_btrace): Update.
15066 * remote.c (remote_read_btrace): Support delta reads. Pass
15067 errors on.
15068 * NEWS: Announce it.
15069
0b722aec
MM
150702014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15071
15072 * record.h (record_btrace_frame_unwind)
15073 (record_btrace_tailcall_frame_unwind): New declarations.
15074 * dwarf2-frame: Include record.h
15075 (dwarf2_frame_cfa): Throw an error for btrace frames.
15076 * record-btrace.c: Include hashtab.h.
15077 (btrace_get_bfun_name): New.
15078 (btrace_call_history): Call btrace_get_bfun_name.
15079 (struct btrace_frame_cache): New.
15080 (bfcache): New.
15081 (bfcache_hash, bfcache_eq, bfcache_new): New.
15082 (btrace_get_frame_function): New.
15083 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
15084 (record_btrace_frame_this_id): Compute own id.
15085 (record_btrace_frame_prev_register): Provide PC, throw_error
15086 for all other registers.
15087 (record_btrace_frame_sniffer): Detect btrace frames.
15088 (record_btrace_tailcall_frame_sniffer): New.
15089 (record_btrace_frame_dealloc_cache): New.
15090 (record_btrace_frame_unwind): Add new functions.
15091 (record_btrace_tailcall_frame_unwind): New.
15092 (_initialize_record_btrace): Allocate cache.
15093 * btrace.c (btrace_clear): Call reinit_frame_cache.
15094 * NEWS: Announce it.
15095
066ce621
MM
150962014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15097
15098 * record-btrace.c (record_btrace_set_replay)
15099 (record_btrace_goto_begin, record_btrace_goto_end)
15100 (record_btrace_goto): New.
15101 (init_record_btrace_ops): Initialize them.
15102 * NEWS: Announce it.
15103
e2887aa3
MM
151042014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15105
15106 * record-btrace.c (record_btrace_find_new_threads)
15107 (record_btrace_thread_alive): New.
15108 (init_record_btrace_ops): Initialize to_find_new_threads and
15109 to_thread_alive.
15110
b2f4cfde
MM
151112014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15112
15113 * record-btrace.c (record_btrace_resume): New.
15114 (record_btrace_wait): New.
15115 (init_record_btrace_ops): Initialize to_wait and to_resume.
15116
633785ff
MM
151172014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15118
15119 * record-btrace.c (record_btrace_xfer_partial)
15120 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
15121 (record_btrace_allow_memory_access): New.
15122 (init_record_btrace_ops): Initialize new methods.
15123 * target.c (raw_memory_xfer_partial): Bail out if target reports
15124 that this memory is not available.
15125
3db08215
MM
151262014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15127
15128 * target.h (target_ops) <to_insert_breakpoint>
15129 <to_remove_breakpoint>: Add target_ops parameter.
15130 (forward_target_insert_breakpoint): New.
15131 (forward_target_remove_breakpoint): New.
15132 (memory_remove_breakpoint, memory_insert_breakpoint):
15133 Add target_ops parameter.
15134 * target.c (target_insert_breakpoint): Split into this and ...
15135 (forward_target_insert_breakpoint): ... this.
15136 (target_remove_breakpoint): Split into this and ...
15137 (forward_target_remove_breakpoint): ... this.
15138 (debug_to_insert_breakpoint): Add target_ops parameter.
15139 Call forward_target_insert_breakpoint.
15140 (debug_to_remove_breakpoint): Add target_ops parameter.
15141 Call forward_target_remove_breakpoint.
15142 (update_current_target): Do not inherit or default to_insert_breakpoint
15143 and to_remove_breakpoint.
15144 * corelow.c (ignore): Add target_ops parameter.
15145 * exec.c (ignore): Add target_ops parameter.
15146 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
15147 Add target_ops parameter.
15148 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
15149 Add target_ops parameter.
15150 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
15151 Add target_ops parameter.
15152 * record-full.c (record_full_beneath_to_insert_breakpoint)
15153 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
15154 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
15155 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
15156 (record_full_core_remove_breakpoint): Add target_ops parameter.
15157 Update users.
15158 (record_full_beneath_to_insert_breakpoint_ops)
15159 (record_full_beneath_to_remove_breakpoint_ops)
15160 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
15161 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
15162 tmp_to_remove_breakpoint_ops,
15163 record_full_beneath_to_insert_breakpoint_ops, and
15164 record_full_beneath_to_remove_breakpoint_ops.
15165 * remote-m32r-sdi.c (m32r_insert_breakpoint)
15166 (m32r_remove_breakpoint): Add target_ops parameter.
15167 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15168 Add target_ops parameter.
15169 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15170 Add target_ops parameter.
15171
cecac1ab
MM
151722014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15173 Markus Metzger <markus.t.metzger@intel.com>
15174
15175 * record-btrace.c: Include frame-unwind.h.
15176 (record_btrace_frame_unwind_stop_reason)
15177 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15178 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15179 New.
15180 (init_record_btrace_ops): Install it.
15181
824344ca
MM
151822014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15183
15184 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15185 get_prev_frame_1.
15186
32261e52
MM
151872014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15188
15189 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15190 earlier.
15191
ea001bdc
MM
151922014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15193
15194 * frame-unwind.c: Include target.h.
15195 (frame_unwind_try_unwinder): New function with code from ...
15196 (frame_unwind_find_by_frame): ... here. New variable
15197 unwinder_from_target, call also target_get_unwinder)
15198 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15199 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15200 * target.h (struct target_ops): New fields to_get_unwinder and
15201 to_get_tailcall_unwinder.
15202 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15203
1f3ef581
MM
152042014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15205
15206 * record-btrace.c (record_btrace_fetch_registers)
15207 (record_btrace_store_registers)
15208 (record_btrace_to_prepare_to_store): New.
15209 (init_record_btrace_ops): Add the above.
15210
f32dbf8c
MM
152112014-01-16 Tom Tromey <tromey@redhat.com>
15212
15213 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15214 * target.h (struct target_ops) <to_prepare_to_store>: Add
15215 argument.
15216 (target_prepare_to_store): Add argument.
15217 * target.c (debug_to_prepare_to_store): Add argument.
15218 (update_current_target): Update.
15219 * remote.c (remote_prepare_to_store): Add 'self' argument.
15220 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15221 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15222 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15223 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15224 argument.
15225 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15226 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15227 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15228 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15229 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15230
07bbe694
MM
152312014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15232
15233 * btrace.h (replay) <replay>: New.
15234 (btrace_is_replaying): New.
15235 * btrace.c (btrace_clear): Free replay iterator.
15236 (btrace_is_replaying): New.
15237 * record-btrace.c (record_btrace_is_replaying): New.
15238 (record_btrace_info): Print insn number if replaying.
15239 (record_btrace_insn_history): Start at replay position.
15240 (record_btrace_call_history): Start at replay position.
15241 (init_record_btrace_ops): Init to_record_is_replaying.
15242
0688d04e
MM
152432014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15244
15245 * record-btrace.c (record_btrace_insn_history_range): Include
15246 end.
15247 (record_btrace_insn_history_from): Adjust range.
15248 (record_btrace_call_history_range): Include
15249 end.
15250 (record_btrace_call_history_from): Adjust range.
15251 * NEWS: Announce changes.
15252
8710b709
MM
152532014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15254
15255 * record.h (enum record_print_flag)
15256 <record_print_indent_calls>: New.
15257 * record.c (get_call_history_modifiers): Recognize /c modifier.
15258 (_initialize_record): Document /c modifier.
15259 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15260 Reorder fields. Optionally indent the function name. Update
15261 all users.
15262 * NEWS: Announce changes.
15263
d0fa7535
MM
152642014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15265
15266 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15267
5de9129b
MM
152682014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15269
15270 * btrace.c (ftrace_new_function): Start counting at one.
15271 * record-btrace.c (record_btrace_info): Adjust number of calls
15272 and insns.
15273 * NEWS: Announce it.
15274
7acbe133
MM
152752014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15276
15277 * record-btrace.c (btrace_call_history_insn_range): Print
15278 insn range as [begin, end].
15279
23a7fe75
MM
152802014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15281
15282 * btrace.h (struct btrace_func_link): New.
15283 (enum btrace_function_flag): New.
15284 (struct btrace_inst): Rename to ...
15285 (struct btrace_insn): ...this. Update all users.
15286 (struct btrace_func) <ibegin, iend>: Remove.
15287 (struct btrace_func_link): New.
15288 (struct btrace_func): Rename to ...
15289 (struct btrace_function): ...this. Update all users.
15290 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15291 (number, level, flags>: New.
15292 (struct btrace_insn_iterator): Rename to ...
15293 (struct btrace_insn_history): ...this.
15294 Update all users.
15295 (struct btrace_insn_iterator, btrace_call_iterator): New.
15296 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15297 (struct btrace_target_info) <begin, end, level>
15298 <insn_history, call_history>: New.
15299 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15300 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15301 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15302 (btrace_call_number, btrace_call_begin, btrace_call_end)
15303 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15304 (btrace_find_function_by_number, btrace_set_insn_history)
15305 (btrace_set_call_history): New.
15306 * btrace.c (btrace_init_insn_iterator)
15307 (btrace_init_func_iterator, compute_itrace): Remove.
15308 (ftrace_print_function_name, ftrace_print_filename)
15309 (ftrace_skip_file): Change
15310 parameter to const.
15311 (ftrace_init_func): Remove.
15312 (ftrace_debug): Use new btrace_function fields.
15313 (ftrace_function_switched): Also consider gaining and
15314 losing symbol information).
15315 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15316 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15317 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15318 New.
15319 (ftrace_new_function): Move. Remove debug print.
15320 (ftrace_update_lines, ftrace_update_insns): New.
15321 (ftrace_update_function): Check for call, ret, and jump.
15322 (compute_ftrace): Renamed to ...
15323 (btrace_compute_ftrace): ...this. Rewritten to compute call
15324 stack.
15325 (btrace_fetch, btrace_clear): Updated.
15326 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15327 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15328 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15329 (btrace_call_number, btrace_call_begin, btrace_call_end)
15330 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15331 (btrace_find_function_by_number, btrace_set_insn_history)
15332 (btrace_set_call_history): New.
15333 * record-btrace.c (require_btrace): Use new btrace thread
15334 info fields.
15335 (record_btrace_info, btrace_insn_history)
15336 (record_btrace_insn_history, record_btrace_insn_history_range):
15337 Use new btrace thread info fields and new iterator.
15338 (btrace_func_history_src_line): Rename to ...
15339 (btrace_call_history_src_line): ...this. Use new btrace
15340 thread info fields.
15341 (btrace_func_history): Rename to ...
15342 (btrace_call_history): ...this. Use new btrace thread info
15343 fields and new iterator.
15344 (record_btrace_call_history, record_btrace_call_history_range):
15345 Use new btrace thread info fields and new iterator.
15346
8372a7cb
MM
153472014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15348
15349 * frame.h (frame_id_build_unavailable_stack_special): New.
15350 * frame.c (frame_id_build_unavailable_stack_special): New.
15351
c2170eef
MM
153522014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15353
15354 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15355 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15356 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15357 to gdbarch.
15358 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15359 (i386_insn_is_jump, i386_jmp_p): New.
15360 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15361 insn_is_jump to gdbarch.
15362 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15363 * gdbarch.h: Regenerated.
15364 * gdbarch.c: Regenerated.
15365 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15366 (default_insn_is_jump): New.
15367 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15368 (default_insn_is_jump): New.
15369
864089d2
MM
153702014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15371
15372 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15373 Change to ...
15374 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15375 (btrace_read_type) <btrace_read_new>: Change to ...
15376 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15377
ed9edfb5
MM
153782014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15379
15380 * common/linux-btrace.c (linux_read_btrace): Free trace from
15381 previous iteration.
15382
fbcbc3fd
DE
153832014-01-15 Doug Evans <dje@google.com>
15384
15385 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15386 uint32_t.
15387
3d548a53
TT
153882014-01-15 Tom Tromey <tromey@redhat.com>
15389
15390 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15391 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15392 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15393 (set_objfile_main_name): New function.
15394 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15395 language_of_main>: New fields.
15396 (set_objfile_main_name): Declare.
15397 * symtab.c (find_main_name): Loop over objfiles to find the main
15398 name and language.
15399 (set_main_name): Now static.
15400 (get_main_info): Add comment.
15401 * symtab.h (set_main_name): Don't declare.
15402
32ac0d11
TT
154032014-01-15 Tom Tromey <tromey@redhat.com>
15404
15405 * symtab.c (main_progspace_key): New global.
15406 (struct main_info): New.
15407 (name_of_main, language_of_main): Remove.
15408 (get_main_info, main_info_cleanup): New function.
15409 (set_main_name, main_name, main_language): Use get_main_info.
15410 (_initialize_symtab): Initialize main_progspace_key.
15411
9e6c82ad
TT
154122014-01-15 Tom Tromey <tromey@redhat.com>
15413
15414 * dbxread.c (process_one_symbol): Update.
15415 * dwarf2read.c (read_partial_die): Update.
15416 * symfile.c (set_initial_language): Call main_language.
15417 * symtab.c (language_of_main): Now static.
15418 (set_main_name): Add 'lang' parameter.
15419 (find_main_name): Update.
15420 (main_language): New function.
15421 (symtab_observer_executable_changed): Update.
15422 * symtab.h (set_main_name): Update.
15423 (language_of_main): Remove.
15424 (main_language): Declare.
15425
6ef55de7
TT
154262014-01-15 Tom Tromey <tromey@redhat.com>
15427
15428 * symfile.c (init_entry_point_info): Use new "initialized" field.
15429 Update.
15430 * objfiles.h (struct entry_point) <initialized>: New field.
15431 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15432 (struct objfile) <ei>: ...here. Remove.
15433 * objfiles.c (entry_point_address_query): Update.
15434
53eddfa6
TT
154352014-01-15 Tom Tromey <tromey@redhat.com>
15436
15437 * objfiles.c (entry_point_address_query): Relocate entry point
15438 address.
15439 (objfile_relocate1): Do not relocate entry point address.
15440 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15441 <the_bfd_section_index>: New field.
15442 * symfile.c (init_entry_point_info): Find the entry point's
15443 section.
15444
d56e56aa
TT
154452014-01-15 Tom Tromey <tromey@redhat.com>
15446
15447 * solib-frv.c (enable_break): Use entry_point_address_query.
15448
33a97bbe
OJ
154492014-01-15 Omair Javaid <omair.javaid@linaro.org>
15450
15451 * NEWS: Add note on improved process record-replay on
15452 arm*-linux* targets.
15453
c6ec2b30
OJ
154542014-01-15 Omair Javaid <omair.javaid@linaro.org>
15455
15456 * arm-tdep.c (enum arm_record_result): New enum.
15457 (arm_record_unsupported_insn): New function.
15458 (arm_record_coproc_data_proc): Removed.
15459 (thumb2_record_ld_st_multiple): New function.
15460 (thumb2_record_ld_st_dual_ex_tbb): New function.
15461 (thumb2_record_data_proc_sreg_mimm): New function.
15462 (thumb2_record_ps_dest_generic): New function.
15463 (thumb2_record_branch_misc_cntrl): New function.
15464 (thumb2_record_str_single_data): New function.
15465 (thumb2_record_ld_mem_hints): New function.
15466 (thumb2_record_ld_word): New function.
15467 (thumb2_record_lmul_lmla_div): New function.
15468 (thumb2_record_decode_insn_handler): New function.
15469 (decode_insn): Add thumb32 instruction handlers.
15470
97dfe206
OJ
154712014-01-15 Omair Javaid <omair.javaid@linaro.org>
15472
15473 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15474 (struct arm_linux_record_tdep): Declare.
15475 (arm_canonicalize_syscall): New function.
15476 (arm_all_but_pc_registers_record): New function.
15477 (arm_linux_syscall_record): New function.
15478 (arm_linux_init_abi): Add syscall recording constructs.
15479 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15480 decoding. (arm_record_coproc_data_proc): Update arm syscall
15481 decoding.
15482 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15483 <arm_syscall_record>: New field.
15484 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15485 gdb_target_obs.
15486
9904a494
OJ
154872014-01-15 Omair Javaid <omair.javaid@linaro.org>
15488
15489 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15490 register for push instruction recording.
15491
f969241e
OJ
154922014-01-15 Omair Javaid <omair.javaid@linaro.org>
15493
15494 * arm-tdep.c (thumb_record_misc): Update to correct logical
15495 error while recording ldm, ldmia and pop instructions.
15496
bfbbec00
OJ
154972014-01-15 Omair Javaid <omair.javaid@linaro.org>
15498
15499 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15500
e40adcc9
PA
155012014-01-15 Pedro Alves <palves@redhat.com>
15502
15503 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15504 (go32_resume, go32_fetch_registers, store_register)
15505 (go32_store_registers, go32_prepare_to_store)
15506 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15507 (go32_create_inferior, go32_can_run, go32_terminal_init)
15508 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15509 declarations.
15510
b0a16e66
TT
155112014-01-15 Tom Tromey <tromey@redhat.com>
15512
15513 * target.h (async_callback_ftype): New typedef.
15514 (struct target_ops) <to_async>: Use it.
15515
bf7105a4
JB
155162014-01-15 Joel Brobecker <brobecker@adacore.com>
15517
15518 * python/py-value.c (get_field_type): Remove unnecessary curly
15519 braces for single-statement if block.
15520
a8f35c2e
JB
155212014-01-15 Joel Brobecker <brobecker@adacore.com>
15522
15523 * python/py-type.c (convert_field): Add missing empty line
15524 after declarations.
15525
bb4142cf
DE
155262014-01-14 Doug Evans <dje@google.com>
15527
15528 * symfile.h (expand_symtabs_matching): Renamed from
15529 expand_partial_symbol_names. Update prototype.
15530 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15531 * symfile.c (expand_symtabs_matching): Renamed from
15532 expand_partial_symbol_names. New args file_matcher, kind.
15533 Rename arg fun to symbol_matcher.
15534 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15535 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15536 ada_expand_partial_symbol_name.
15537 (ada_make_symbol_completion_list): Update to call
15538 expand_symtabs_matching.
15539 (ada_add_global_exceptions): Call expand_symtabs_matching.
15540 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15541 call map_symbol_filenames.
15542 * symtab.c (sources_info): Update to call map_symbol_filenames.
15543 (search_symbols): Call expand_symtabs_matching.
15544 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15545 (default_make_symbol_completion_list_break_on): Update to call
15546 expand_symtabs_matching.
15547 (make_source_files_completion_list): Update to call
15548 map_symbol_filenames.
15549
206f2a57
DE
155502014-01-14 Doug Evans <dje@google.com>
15551
15552 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15553 (expand_symtabs_symbol_matcher_ftype): New typedef.
15554 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15555 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15556 * symfile.c (expand_partial_symbol_names): Update to use
15557 expand_symtabs_symbol_matcher_ftype.
15558 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15559 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15560 Arg name_matcher renamed to symbol_matcher.
15561 * psymtab.c (recursively_search_psymtabs): Update to use
15562 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15563 sym_matcher.
15564 (expand_symtabs_matching_via_partial): Update to use
15565 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15566 Arg name_matcher renamed to symbol_matcher.
15567
540c2971
DE
155682014-01-14 Doug Evans <dje@google.com>
15569
15570 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15571 (map_partial_symbol_filenames): Ditto.
15572 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15573 (map_partial_symbol_filenames): Ditto.
15574 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15575 (map_partial_symbol_filenames): Ditto.
15576 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15577 (map_partial_symbol_filenames): Ditto.
15578 * symtab.c: Delete #include "psymtab.h".
15579
8213266a
PA
155802014-01-14 Pedro Alves <palves@redhat.com>
15581 Tom Tromey <tromey@redhat.com>
15582
15583 * infrun.c (use_displaced_stepping): Use find_record_target
15584 instead of RECORD_IS_USED.
15585 (adjust_pc_after_break): Use record_full_is_used instead of
15586 RECORD_IS_USED.
15587 * record-btrace.c (record_btrace_open): Call record_preopen
15588 instead of checking RECORD_IS_USED.
15589 * record-full.c (record_full_shortname)
15590 (record_full_core_shortname): New globals.
15591 (record_full_is_used): New function.
15592 (find_full_open): Call record_preopen instead of checking
15593 RECORD_IS_USED.
15594 (init_record_full_ops): Set the target's shortname to
15595 record_full_shortname.
15596 (init_record_full_core_ops): Set the target's shortname to
15597 record_full_core_shortname.
15598 * record-full.h (record_full_is_used): Declare.
15599 * record.c (find_record_target): Make extern.
15600 (record_preopen): New function.
15601 * record.h (RECORD_IS_USED): Delete macro.
15602 (find_record_target, record_preopen): Declare functions.
15603
7ec1862d
YQ
156042014-01-14 Yao Qi <yao@codesourcery.com>
15605
15606 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15607 'len''s type to ULONGEST.
15608 (core_xfer_shared_libraries_aix): Likewise.
15609 * gdbarch.c, gdbarch.h: Regenerated.
15610 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15611 Change type of 'len' to ULONGEST.
15612 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15613 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15614
dea80a27
YQ
156152014-01-14 Yao Qi <yao@codesourcery.com>
15616
15617 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15618 type of 'len' to ULONGEST.
15619 (linux_xfer_osdata_processgroups): Likewise.
15620 (linux_xfer_osdata_threads): Likewise.
15621 (linux_xfer_osdata_fds): Likewise.
15622 (linux_xfer_osdata_isockets): Likewise.
15623 (linux_xfer_osdata_shm): Likewise.
15624 (linux_xfer_osdata_sem): Likewise.
15625 (linux_xfer_osdata_msg): Likewise.
15626 (linux_common_xfer_osdata): Likewise.
15627 (struct osdata_type) <getter>: Likewise.
15628 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15629 the declaration.
15630
b55e14c7
YQ
156312014-01-14 Yao Qi <yao@codesourcery.com>
15632
15633 * target.h (target_xfer_partial_ftype): Update.
15634 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15635 ULONGEST.
15636 * aix-thread.c (aix_thread_xfer_partial): Change type of
15637 argument 'len' to ULONGEST.
15638 * auxv.c (procfs_xfer_auxv): Likewise.
15639 (ld_so_xfer_auxv): Likewise.
15640 (memory_xfer_auxv): Likewise.
15641 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15642 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15643 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15644 * corelow.c (core_xfer_partial): Likewise.
15645 * ctf.c (ctf_xfer_partial): Likewise.
15646 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15647 '%u'.
15648 (darwin_read_dyld_info): Likewise.
15649 (darwin_xfer_partial): Likewise.
15650 * exec.c (section_table_xfer_memory_partial): Likewise.
15651 (exec_xfer_partial): Likewise.
15652 * exec.h (section_table_xfer_memory_partial): Update
15653 declaration.
15654 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15655 instead of plongest.
15656 (gnu_xfer_partial): Likewise.
15657 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15658 (ia64_hpux_xfer_solib_got): Likewise.
15659 (ia64_hpux_xfer_partial): Likewise.
15660 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15661 * inf-ptrace.c (inf_ptrace_xfer_partial):
15662 * inf-ttrace.c (inf_ttrace_xfer_partial):
15663 * linux-nat.c (linux_xfer_siginfo): Likewise.
15664 (linux_nat_xfer_partial): Likewise.
15665 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15666 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15667 * monitor.c (monitor_xfer_memory): Likewise.
15668 (monitor_xfer_partial): Likewise.
15669 * procfs.c (procfs_xfer_partial): Likewise.
15670 * record-full.c (record_full_xfer_partial): Likewise.
15671 (record_full_core_xfer_partial): Likewise.
15672 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15673 instead of plongest.
15674 (gdbsim_xfer_partial): Likewise.
15675 * remote.c (remote_xfer_partial): Likewise.
15676 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15677 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15678 declaration.
15679 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15680 (rs6000_xfer_shared_libraries): Likewise.
15681 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15682 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15683 (sparc_xfer_partial): Likewise.
15684 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15685 (spu_xfer_partial): Likewise.
15686 * spu-multiarch.c (spu_xfer_partial): Likewise.
15687 * target.c (target_read_live_memory): Likewise.
15688 (memory_xfer_live_readonly_partial): Likewise.
15689 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15690 (target_xfer_partial, default_xfer_partial): Likewise.
15691 (current_xfer_partial): Likewise.
15692 * tracepoint.c (tfile_xfer_partial): Likewise.
15693 * windows-nat.c (windows_xfer_memory): Likewise. Call
15694 pulongest instead of plongest.
15695 (windows_xfer_partial): Likewise.
15696 (windows_xfer_shared_libraries): Likewise.
15697
05804640
YQ
156982014-01-14 Yao Qi <yao@codesourcery.com>
15699
15700 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15701 target_xfer_partial_ftype.
15702
b5b08fb4
SC
157032014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15704
15705 PR python/15464
15706 PR python/16113
15707 * valops.c (value_struct_elt_bitpos): New function
15708 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15709 object to 'None' if the field name is an empty string ("").
15710 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15711 attribute to look for a field when 'name' is 'None'.
15712 (get_field_type): New function
15713
13aaf454
DE
157142014-01-13 Doug Evans <dje@google.com>
15715
15716 PR symtab/16426
15717 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15718 (try_open_dwop_file): Ditto.
15719 * gdb_bfd.c: #include "vec.h".
15720 (bfdp): New typedef.
15721 (struct gdb_bfd_data): New member included_bfds.
15722 (gdb_bfd_unref): Unref all included bfds.
15723 (gdb_bfd_record_inclusion): New function.
15724 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15725
c2cec97c
TT
157262014-01-13 Tom Tromey <tromey@redhat.com>
15727
15728 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15729
78e5999d
TT
157302014-01-13 Tom Tromey <tromey@redhat.com>
15731
15732 * defs.h (use_windows): Remove.
15733 * gdb.c (main): Update.
15734 * main.c (captured_main, gdb_main): Update.
15735 * main.h (struct captured_main_args) <use_windows>: Remove.
15736 * top.c (use_windows): Remove.
15737
f2052bbe
TT
157382014-01-13 Tom Tromey <tromey@redhat.com>
15739
15740 * defs.h (deprecated_flush_hook): Remove.
15741
fde4f8ed
JK
157422014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15743
15744 PR threads/16216
15745 * linux-thread-db.c (try_thread_db_load): Add parameter
15746 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15747 (try_thread_db_load_from_pdir_1): Move it there from here.
15748 (try_thread_db_load_from_sdir): Update caller.
15749 (try_thread_db_load_from_dir): Move it there from here.
15750
bdf61915
PP
157512014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15752
15753 * regformats/regdat.sh: Always rewrite the register file.
15754
f71e1a8d
PA
157552014-01-13 Pedro Alves <palves@redhat.com>
15756
15757 * Makefile.in (CHECK_HEADERS): New variable.
15758 (check-headers:): New rule.
15759
42c85435
TT
157602014-01-13 Tom Tromey <tromey@redhat.com>
15761
15762 * cli/cli-setshow.c (do_set_command): Update.
15763 * defs.h (deprecated_set_hook): Remove.
15764 * top.c (deprecated_set_hook): Remove.
15765
f8de5129
PA
157662014-01-13 Pedro Alves <palves@redhat.com>
15767
15768 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15769 the tracepoint if the PC is a pseudo-register.
15770
fc270c35
TT
157712014-01-13 Tom Tromey <tromey@redhat.com>
15772
15773 * defs.h (XCALLOC): Remove.
15774 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15775 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15776 * dwarf2loc.c (allocate_piece_closure): Likewise.
15777 * elfread.c (elf_symfile_segments): Likewise.
15778 (elf_symfile_segments): Likewise.
15779 * gdbtypes.c (copy_type_recursive): Likewise.
15780 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15781 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15782 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15783 XCALLOC.
15784 * mt-tdep.c (mt_gdbarch_init): Likewise.
15785 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15786 XCALLOC.
15787 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15788 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15789 * registry.c (registry_alloc_data): Likewise.
15790 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15791 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15792 * serial.c (serial_fdopen_ops): Likewise.
15793 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15794 XCALLOC.
15795 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15796 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15797 not XCALLOC.
15798
70ba0933
TT
157992014-01-13 Tom Tromey <tromey@redhat.com>
15800
15801 * defs.h (XMALLOC): Remove.
15802 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15803 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15804 * cli-out.c (struct ui_out *): Likewise.
15805 * cli/cli-dump.c (add_dump_command): Likewise.
15806 (add_dump_command): Likewise.
15807 * complaints.c (get_complaints): Likewise.
15808 (find_complaint): Likewise.
15809 * dwarf2-frame.c (execute_cfa_program): Likewise.
15810 * dwarf2read.c (abbrev_table_read_table): Likewise.
15811 * gdbarch.sh: Likewise.
15812 * gdbarch.c: Rebuild.
15813 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15814 * interps.c (interp_new): Likewise.
15815 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15816 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15817 * mi/mi-console.c (mi_console_file_new): Likewise.
15818 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15819 * mi/mi-out.c (mi_out_new): Likewise.
15820 * mi/mi-parse.c (mi_parse): Likewise.
15821 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15822 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15823 * observer.c (xalloc_observer_list_node): Likewise.
15824 * regcache.c (regcache_xmalloc_1): Likewise.
15825 * reggroups.c (reggroup_new): Likewise.
15826 (_initialize_reggroup): Likewise.
15827 * registry.c (register_data_with_cleanup): Likewise.
15828 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15829 * ser-base.c (serial_ttystate): Likewise.
15830 * ser-mingw.c (make_pipe_state): Likewise.
15831 * ser-pipe.c (pipe_open): Likewise.
15832 * serial.c (serial_open): Likewise.
15833 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15834 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15835 (tui_alloc_win_info): Likewise.
15836 (tui_add_content_elements): Likewise.
15837 * tui/tui-file.c (tui_file_new): Likewise.
15838 * tui/tui-out.c (tui_out_new): Likewise.
15839 * ui-file.c (mem_file_new): Likewise.
15840 * ui-out.c (push_level): Likewise.
15841 (make_cleanup_ui_out_end): Likewise.
15842 (append_header_to_list): Likewise.
15843 (ui_out_new): Likewise.
15844 * user-regs.c (user_reg_add_builtin): Likewise.
15845
41bf6aca
TT
158462014-01-13 Tom Tromey <tromey@redhat.com>
15847
15848 * defs.h (XZALLOC): Remove.
15849 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15850 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15851 (get_ada_tasks_inferior_data): Likewise.
15852 * auto-load.c (get_auto_load_pspace_data): Likewise.
15853 * auxv.c (get_auxv_inferior_data): Likewise.
15854 * bfd-target.c (target_bfd_reopen): Likewise.
15855 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15856 (deprecated_insert_raw_breakpoint): Likewise.
15857 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15858 * corelow.c (core_open): Likewise.
15859 * darwin-nat.c (darwin_check_new_threads): Likewise.
15860 (darwin_attach_pid): Likewise.
15861 * dummy-frame.c (dummy_frame_push): Likewise.
15862 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15863 * dwarf2loc.c (allocate_piece_closure): Likewise.
15864 * elfread.c (elf_symfile_segments): Likewise.
15865 * eval.c (ptrmath_type_p): Likewise.
15866 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15867 * gdbtypes.c (alloc_type_arch): Likewise.
15868 (alloc_type_instance): Likewise.
15869 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15870 * inf-child.c (inf_child_can_use_agent): Likewise.
15871 * inflow.c (get_inflow_inferior_data): Likewise.
15872 * infrun.c (save_infcall_suspend_state): Likewise.
15873 * jit.c (jit_reader_load): Likewise.
15874 (get_jit_objfile_data): Likewise.
15875 (get_jit_program_space_data): Likewise.
15876 (jit_object_open_impl): Likewise.
15877 (jit_symtab_open_impl): Likewise.
15878 (jit_block_open_impl): Likewise.
15879 (jit_frame_sniffer): Likewise.
15880 * linux-fork.c (add_fork): Likewise.
15881 * maint.c (make_command_stats_cleanup): Likewise.
15882 * objfiles.c (get_objfile_pspace_data): Likewise.
15883 * opencl-lang.c (struct lval_closure): Likewise.
15884 * osdata.c (osdata_start_osdata): Likewise.
15885 * progspace.c (new_address_space): Likewise.
15886 (add_program_space): Likewise.
15887 * remote-sim.c (get_sim_inferior_data): Likewise.
15888 * sh-tdep.c (sh_gdbarch_init): Likewise.
15889 * skip.c (Ignore): Likewise.
15890 (skip_delete_command): Likewise.
15891 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15892 (library_list_start_library): Likewise.
15893 (solib_aix_current_sos): Likewise.
15894 * solib-darwin.c (get_darwin_info): Likewise.
15895 (darwin_current_sos): Likewise.
15896 * solib-dsbt.c (get_dsbt_info): Likewise.
15897 * solib-ia64-hpux.c (new_so_list): Likewise.
15898 (ia64_hpux_get_solib_linkage_addr): Likewise.
15899 * solib-spu.c (append_ocl_sos): Likewise.
15900 (spu_current_sos): Likewise.
15901 * solib-svr4.c (get_svr4_info): Likewise.
15902 (svr4_keep_data_in_core): Likewise.
15903 (library_list_start_library): Likewise.
15904 (svr4_default_sos): Likewise.
15905 (svr4_read_so_list): Likewise.
15906 * solib-target.c (library_list_start_library): Likewise.
15907 (solib_target_current_sos): Likewise.
15908 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15909 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15910 * symfile.c (default_symfile_segments): Likewise.
15911 * target-descriptions.c (tdesc_data_init): Likewise.
15912 (tdesc_create_reg): Likewise.
15913 (struct tdesc_type *): Likewise.
15914 (tdesc_create_vector): Likewise.
15915 (tdesc_set_struct_size): Likewise.
15916 (struct tdesc_type *): Likewise.
15917 (tdesc_free_feature): Likewise.
15918 (tdesc_create_feature): Likewise.
15919 * windows-nat.c (windows_add_thread): Likewise.
15920 (windows_make_so): Likewise.
15921 * xml-support.c (gdb_xml_body_text): Likewise.
15922 (gdb_xml_create_parser_and_cleanup): Likewise.
15923 (xml_process_xincludes): Likewise.
15924 * xml-syscall.c (allocate_syscalls_info): Likewise.
15925 (syscall_create_syscall_desc): Likewise.
15926
5acfdbae
SDJ
159272014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15928
15929 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15930 function, with code from i386_stap_parse_special_token.
15931 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15932 (i386_stap_parse_special_token): Move code to the two functions
15933 above; simplify it.
15934
0000e5cc
PA
159352014-01-09 Pedro Alves <palves@redhat.com>
15936 Hui Zhu <hui@codesourcery.com>
15937
15938 PR gdb/16101
15939 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15940 bp_err_string. Don't mark the location shlib_disabled if the
15941 error thrown wasn't a generic or memory error. Catch errors
15942 thrown while inserting breakpoints in overlayed code. Output
15943 error message of software breakpoints.
15944 * remote.c (remote_insert_breakpoint): If this breakpoint has
15945 target-side commands but this stub doesn't support Z0 packets,
15946 throw NOT_SUPPORTED_ERROR error.
15947 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15948 * target.h (target_insert_breakpoint): Extend comment.
15949 (target_insert_hw_breakpoint): Add comment.
15950
b7ea362b
PA
159512014-01-08 Pedro Alves <palves@redhat.com>
15952
15953 * remote.c (remote_add_thread): Add threads silently if starting
15954 up.
15955 (remote_notice_new_inferior): If in all-stop, and starting up,
15956 don't call notice_new_inferior.
15957 (get_current_thread): New function, factored out from ...
15958 (add_current_inferior_and_thread): ... this. Adjust.
15959 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15960 found any thread, then select the remote's current thread as GDB's
15961 current thread too.
15962
b7bba001
JB
159632014-01-08 Joel Brobecker <brobecker@adacore.com>
15964
15965 * NEWS: Create a new section for the next release branch.
15966 Rename the section of the current branch, now that it has
15967 been cut.
15968
16dfbded
JB
159692014-01-08 Joel Brobecker <brobecker@adacore.com>
15970
15971 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15972 * version.in: Bump version to 7.7.50.DATE-cvs.
15973
22c90ac1
YQ
159742014-01-08 Yao Qi <yao@codesourcery.com>
15975
15976 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15977 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15978 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15979
d64ad97c
YQ
159802014-01-08 Yao Qi <yao@codesourcery.com>
15981
15982 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15983 return value of bfd_get_filename to symbol_file_add_from_bfd.
15984
f93ba80c
PM
159852014-01-08 Pierre Muller <muller@sourceware.org>
15986
15987 Fix PR16201.
15988 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15989 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15990 to prim_record_mininal_symbol_and_info.
15991 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15992 in call to prim_record_minimal_symbol_and_info.
15993 (read_pe_exported_syms): Set index field of section_data.
15994
a4d9ba85
AP
159952014-01-07 Andrew Pinski <apinski@cavium.com>
15996
15997 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15998 * features/aarch64.c: Regenerate.
15999
1b67eb02
AS
160002014-01-07 Andreas Schwab <schwab@linux-m68k.org>
16001
16002 * target.c (return_null): Define.
16003 (update_current_target): Use it instead of return_zero for
16004 functions that return a pointer.
16005
5e3f4fab
EBM
160062014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
16007
16008 * source.c (add_path): Fix check for duplicated paths in the previously
16009 included paths.
16010
e2616788
HK
160112014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
16012
16013 * ada-lang.c: Remove duplicated include statements.
16014 * alphabsd-nat.c: Ditto.
16015 * amd64-darwin-tdep.c: Ditto.
16016 * amd64fbsd-nat.c: Ditto.
16017 * auto-load.c: Ditto.
16018 * ax-gdb.c: Ditto.
16019 * breakpoint.c: Ditto.
16020 * dbxread.c: Ditto.
16021 * fork-child.c: Ditto.
16022 * gdb_usleep.c: Ditto.
16023 * i386-darwin-tdep.c: Ditto.
16024 * i386fbsd-nat.c: Ditto.
16025 * infcmd.c: Ditto.
16026 * inferior.c: Ditto.
16027 * jv-lang.c: Ditto.
16028 * linux-nat.c: Ditto.
16029 * linux-tdep.c: Ditto.
16030 * m68kbsd-nat.c: Ditto.
16031 * m68klinux-nat.c: Ditto.
16032 * microblaze-tdep.c: Ditto.
16033 * mips-linux-tdep.c: Ditto.
16034 * mn10300-tdep.c: Ditto.
16035 * nto-tdep.c: Ditto.
16036 * opencl-lang.c: Ditto.
16037 * osdata.c: Ditto.
16038 * printcmd.c: Ditto.
16039 * regcache.c: Ditto.
16040 * remote-m32r-sdi.c: Ditto.
16041 * remote.c: Ditto.
16042 * symfile.c: Ditto.
16043 * symtab.c: Ditto.
16044 * tilegx-linux-nat.c: Ditto.
16045 * tilegx-tdep.c: Ditto.
16046 * tracepoint.c: Ditto.
16047 * valops.c: Ditto.
16048 * vaxbsd-nat.c: Ditto.
16049 * windows-nat.c: Ditto.
16050 * xtensa-tdep.c: Ditto.
16051
bd1f7788
YQ
160522014-01-07 Yao Qi <yao@codesourcery.com>
16053
16054 * spu-linux-nat.c (_initialize_spu_nat): Declare.
16055
79301218
JB
160562014-01-07 Yao Qi <yao@codesourcery.com>
16057 Joel Brobecker <brobecker@adacore.com>
16058
16059 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
16060 (pdc_write_regs): Likewise.
16061 (fetch_regs_kernel_thread): Likewise.
16062 (store_regs_kernel_thread): Likewise.
16063
160642014-01-07 Joel Brobecker <brobecker@adacore.com>
16065
16066 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
16067 tagged type objects to their actual type.
16068
8e355c5d
JB
160692014-01-07 Joel Brobecker <brobecker@adacore.com>
16070
16071 * ada-valprint.c (print_field_values): Add "language" parameter.
16072 Update calls to print_field_values and print_variant_part.
16073 Pass new parameter "language" in call to val_print instead
16074 of "current_language". Replace call to ada_val_print by call
16075 to val_print.
16076 (print_variant_part): Add "language" parameter.
16077 (ada_val_print_struct_union): Update call to print_field_values.
16078
4fbf5aa5
JB
160792014-01-07 Joel Brobecker <brobecker@adacore.com>
16080
16081 * ada-valprint.c (ui_memcpy): Delete.
16082 (ada_print_floating): Update documentation. Add empty line
16083 between between function documentation and implementation.
16084 Delete variable "buffer". Use ui_file_xstrdup in place of
16085 ui_file_put. Minor adjustments following this change.
16086
71855601
JB
160872014-01-07 Joel Brobecker <brobecker@adacore.com>
16088
16089 * ada-valprint.c (ada_val_print_string): New function,
16090 extracted from ada_val_print_array.
16091 (ada_val_print_array): Replace extracted code by call
16092 to ada_val_print_string followed by a return. Move
16093 "else" branch to the function's top block.
16094
4eb27a30
JB
160952014-01-07 Joel Brobecker <brobecker@adacore.com>
16096
16097 * ada-valprint.c (ada_val_print_array): Move implementation
16098 down. Rename parameter "offset" and "val" into "offset_aligned"
16099 and "original_value" respectively. Add parameter "offset".
16100
34b27950
JB
161012014-01-07 Joel Brobecker <brobecker@adacore.com>
16102
16103 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
16104 re-organizing the code. Change the "???" message printed
16105 when target type is a TYPE_CODE_UNDEF into
16106 "<ref to undefined type>".
16107
079e4591
JB
161082014-01-07 Joel Brobecker <brobecker@adacore.com>
16109
16110 * ada-valprint.c (print_record): Delete, implementation inlined...
16111 (ada_val_print_struct_union): ... here. Remove call to
16112 ada_check_typedef in inlined implementation.
16113
8004dfd1
JB
161142014-01-07 Joel Brobecker <brobecker@adacore.com>
16115
16116 * ada-valprint.c (ada_val_print_gnat_array): New function,
16117 extracted from ada_val_print_1;
16118 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
16119 (ada_val_print_flt, ada_val_print_struct_union)
16120 (ada_val_print_ref): Likewise.
16121 (ada_val_print_1): Delete variables i and elttype.
16122 Replace extracted-out code by call to corresponding
16123 new functions.
16124
760a2db0
JB
161252014-01-07 Joel Brobecker <brobecker@adacore.com>
16126
16127 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
16128
3a92c861
JB
161292014-01-07 Joel Brobecker <brobecker@adacore.com>
16130
16131 * ada-valprint.c (ada_val_print_1): Replace calls to
16132 ada_val_print_1 by calls to val_print.
16133
cd1630f9
JB
161342014-01-07 Joel Brobecker <brobecker@adacore.com>
16135
16136 * ada-valprint.c (ada_val_print_1): Add parameter "language".
16137 Update calls to self accordingly. Replace calls to c_val_print
16138 by calls to val_print.
16139
bdf779a0
JB
161402014-01-07 Joel Brobecker <brobecker@adacore.com>
16141
16142 * ada-valprint.c (print_record): Delete declaration.
16143 (adjust_type_signedness, ada_val_print_1): Likewise.
16144 (ada_val_print): Move function implementation down.
16145 (print_variant_part, print_field_values, print_record):
16146 Move function implementation up.
16147
c0d48811
JB
161482014-01-07 Joel Brobecker <brobecker@adacore.com>
16149
16150 * python/py-type.c (typy_get_name): New function.
16151 (type_object_getset): Add entry for attribute "name".
16152 * NEWS: Add entry mentioning this new attribute.
16153
c26e9cbb
YQ
161542014-01-07 Yao Qi <yao@codesourcery.com>
16155
16156 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
16157 statement.
16158
0cc6f43d
YQ
161592014-01-07 Yao Qi <yao@codesourcery.com>
16160
16161 * gnu-nat.c (info_port_rights): Add qualifier const to
16162 argument args.
16163
eec03155
YQ
161642014-01-07 Yao Qi <yao@codesourcery.com>
16165
16166 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16167
f04a82ef
YQ
161682014-01-07 Yao Qi <yao@codesourcery.com>
16169
16170 * gnu-nat.c (make_inf) Update declaration.
16171 (make_inf): Make it static.
16172 (inf_set_traced): Likewise.
16173 (inf_port_to_thread, inf_task_died_status): Likewise.
16174
d57dda0a
YQ
161752014-01-07 Yao Qi <yao@codesourcery.com>
16176
16177 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16178
3aa8c969
YQ
161792014-01-07 Yao Qi <yao@codesourcery.com>
16180
16181 * gnu-nat.c (_initialize_gnu_nat): Declare.
16182
94123b4f
YQ
161832014-01-07 Yao Qi <yao@codesourcery.com>
16184
16185 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16186 'enum bfd_endian'.
16187 (struct gdbarch_info) <byte_order>: Change type to
16188 'enum bfd_endian'.
16189 <byte_order_for_code>: Likewise.
16190 * gdbarch.c, gdbarch.h: Regenerated.
16191
dc81d70a
TT
161922014-01-06 Sasha Smundak <asmundak@google.com>
16193
16194 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16195
cc2f3c35
TT
161962014-01-06 Tom Tromey <tromey@redhat.com>
16197
16198 * doublest.c (convert_doublest_to_floatformat): Use const, not
16199 CONST.
16200 * somread.c (som_symtab_read): Likewise.
16201
adcf2eed
HZ
162022014-01-07 Hui Zhu <hui@codesourcery.com>
16203
16204 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16205 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16206 (gdb_bfd_fopen): Ditto.
16207 (gdb_bfd_openr): Ditto.
16208 (gdb_bfd_openw): Ditto.
16209 (gdb_bfd_openr_iovec): Ditto.
16210 (gdb_bfd_fdopenr): Ditto.
16211 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16212 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16213 with xstrdup.
16214 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16215 with xstrdup.
16216 * symfile-mem.c (symbol_file_add_from_memory): Removed
16217 gdb_bfd_stash_filename.
16218
50722198
DE
162192014-01-03 Doug Evans <dje@google.com>
16220
16221 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16222 output.
16223
2fa4b862
JB
162242014-01-01 Joel Brobecker <brobecker@adacore.com>
16225
16226 Update year range in copyright notice of all files.
16227
28498c42
JB
162282014-01-01 Joel Brobecker <brobecker@adacore.com>
16229
16230 * top.c (print_gdb_version): Set copyright year to 2014.
16231
7b6e1046
JB
162322014-01-01 Joel Brobecker <brobecker@adacore.com>
16233
16234 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16235
df96af55 16236For older changes see ChangeLog-2013.
c906108c
SS
16237\f
16238Local Variables:
16239mode: change-log
16240left-margin: 8
16241fill-column: 74
16242version-control: never
57da7796 16243coding: utf-8
c906108c 16244End:
This page took 2.314209 seconds and 4 git commands to generate.