the "compile" command
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
bb2ec1b3
TT
12014-12-12 Phil Muldoon <pmuldoon@redhat.com>
2 Jan Kratochvil <jan.kratochvil@redhat.com>
3 Tom Tromey <tromey@redhat.com>
4
5 * NEWS: Update.
6 * symtab.h (struct symbol_computed_ops) <generate_c_location>: New
7 field.
8 * p-lang.c (pascal_language_defn): Update.
9 * opencl-lang.c (opencl_language_defn): Update.
10 * objc-lang.c (objc_language_defn): Update.
11 * m2-lang.c (m2_language_defn): Update.
12 * language.h (struct language_defn) <la_get_compile_instance,
13 la_compute_program>: New fields.
14 * language.c (unknown_language_defn, auto_language_defn)
15 (local_language_defn): Update.
16 * jv-lang.c (java_language_defn): Update.
17 * go-lang.c (go_language_defn): Update.
18 * f-lang.c (f_language_defn): Update.
19 * dwarf2loc.h (dwarf2_compile_property_to_c): Declare.
20 * dwarf2loc.c (dwarf2_compile_property_to_c)
21 (locexpr_generate_c_location, loclist_generate_c_location): New
22 functions.
23 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
24 * defs.h (enum compile_i_scope_types): New.
25 (enum command_control_type) <compile_control>: New constant.
26 (struct command_line) <control_u>: New field.
27 * d-lang.c (d_language_defn): Update.
28 * compile/compile.c: New file.
29 * compile/compile-c-support.c: New file.
30 * compile/compile-c-symbols.c: New file.
31 * compile/compile-c-types.c: New file.
32 * compile/compile.h: New file.
33 * compile/compile-internal.h: New file.
34 * compile/compile-loc2c.c: New file.
35 * compile/compile-object-load.c: New file.
36 * compile/compile-object-load.h: New file.
37 * compile/compile-object-run.c: New file.
38 * compile/compile-object-run.h: New file.
39 * cli/cli-script.c (multi_line_command_p, print_command_lines)
40 (execute_control_command, process_next_line)
41 (recurse_read_control_structure): Handle compile_control.
42 * c-lang.h (c_get_compile_context, c_compute_program): Declare.
43 * c-lang.c (c_language_defn, cplus_language_defn)
44 (asm_language_defn, minimal_language_defn): Update.
45 * ada-lang.c (ada_language_defn): Update.
46 * Makefile.in (SUBDIR_GCC_COMPILE_OBS, SUBDIR_GCC_COMPILE_SRCS):
47 New variables.
48 (SFILES): Add SUBDIR_GCC_COMPILE_SRCS.
49 (HFILES_NO_SRCDIR): Add compile.h.
50 (COMMON_OBS): Add SUBDIR_GCC_COMPILE_OBS.
51 (INIT_FILES): Add SUBDIR_GCC_COMPILE_SRCS.
52 (compile.o, compile-c-types.o, compile-c-symbols.o)
53 (compile-object-load.o, compile-object-run.o, compile-loc2c.o)
54 (compile-c-support.o): New targets.
55
a2658feb
JK
562014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
57
58 * s390-linux-tdep.c (s390_gcc_target_options): New function.
59 (s390_gdbarch_init): Add it to gdbarch.
60
3bc3cebe
JK
612014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
62
63 * linux-tdep.c: Include objfiles.h and infcall.h.
64 (GDB_MMAP_MAP_PRIVATE, GDB_MMAP_MAP_ANONYMOUS, linux_infcall_mmap): New
65 function.
66 (linux_init_abi): Add linux_infcall_mmap to gdbarch.
67
d064d1be
JK
682014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
69
70 * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare.
71 * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from
72 translate_register. Now public.
73 (dwarf2_compile_expr_to_ax): Update.
74
af945b75
TT
752014-12-12 Tom Tromey <tromey@redhat.com>
76 Jan Kratochvil <jan.kratochvil@redhat.com>
77
78 * dwarf2loc.c (dwarf_expr_frame_base_1): Remove declaration.
79 (dwarf_expr_frame_base): Update caller.
80 (dwarf_expr_frame_base_1): Rename to ...
81 (func_get_frame_base_dwarf_block): ... this and make it public.
82 (dwarf2_compile_expr_to_ax, locexpr_describe_location_piece): Update
83 callers.
84 * dwarf2loc.h (func_get_frame_base_dwarf_block): New declaration.
85
a8fd5589
TT
862014-12-12 Tom Tromey <tromey@redhat.com>
87
88 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_call_frame_cfa>:
89 Update.
90 * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on
91 dwarf2_compile_cfa_to_ax.
92 (dwarf2_compile_cfa_to_ax): Remove.
93 * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare.
94 (dwarf2_compile_cfa_to_ax): Remove.
95
ed12ef62
JK
962014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
97
98 * infcall.h (call_function_by_hand_dummy): Declare.
99 * infcall.c (call_function_by_hand): Use
100 call_function_by_hand_dummy.
101 (call_function_by_hand_dummy): Rename from call_function_by_hand.
102 Add arguments. Register a destructor.
103
ac04f72b
TT
1042014-12-12 Tom Tromey <tromey@redhat.com>
105 Jan Kratochvil <jan.kratochvil@redhat.com>
106
107 * osabi.h (osabi_triplet_regexp): Declare.
108 * osabi.c (struct osabi_names): New.
109 (gdb_osabi_names): Change type to struct osabi_names. Update
110 values.
111 (gdbarch_osabi_name): Update.
112 (osabi_triplet_regexp): New function.
113 (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
114 * i386-tdep.c (i386_gnu_triplet_regexp): New method.
115 (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
116 set_gdbarch_gnu_triplet_regexp.
117 * gdbarch.sh (gnu_triplet_regexp): New method.
118 * gdbarch.c, gdbarch.h: Rebuild.
119 * arch-utils.h (default_gnu_triplet_regexp): Declare.
120 * arch-utils.c (default_gnu_triplet_regexp): New function.
121
f208eee0
JK
1222014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
123
124 * arch-utils.c (default_infcall_mmap)
125 (default_gcc_target_options): New functions.
126 * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
127 (GDB_MMAP_PROT_EXEC): Define.
128 (default_infcall_mmap, default_gcc_target_options): Declare.
129 * gdbarch.h: Rebuild.
130 * gdbarch.c: Rebuild.
131 * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
132
233a8fb3
JK
1332014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
134
135 * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
136 fields.
137 (pop_dummy_frame): Call the destructor if it exists.
138 (register_dummy_frame_dtor, find_dummy_frame_dtor): New
139 functions.
140 * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
141 (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
142
f1660027
TT
1432014-12-12 Tom Tromey <tromey@redhat.com>
144
145 * gdbtypes.h (make_unqualified_type): Declare.
146 * gdbtypes.c (make_unqualified_type): New function.
147
de571fc5
TT
1482014-12-12 Tom Tromey <tromey@redhat.com>
149
150 * ui-file.h (ui_file_write_for_put): Declare.
151 * ui-file.c (ui_file_write_for_put): New function.
152 * mi/mi-out.c (do_write): Remove.
153 (mi_out_put): Use ui_file_write_for_put.
154
6dddd6a5
DE
1552014-12-12 Doug Evans <dje@google.com>
156
157 * NEWS: Mention gdb.lookup_objfile.
158 * python/python.c (GdbMethods): Add lookup_objfile.
159 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
160 * python/py-objfile.c: #include "symtab.h".
161 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
162 (objfpy_lookup_objfile_by_name): New function.
163 (objfpy_lookup_objfile_by_build_id): New function.
164 (gdbpy_lookup_objfile): New function.
165
f161c171
MR
1662014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
167
168 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
169 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
170 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
171 macros.
172 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
173 Likewise.
174
71c24708
AA
1752014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
176
177 * completer.c: Include "target.h", "reggroups.h", and
178 "user-regs.h".
179 (reg_or_group_completer): New.
180 * completer.h (reg_or_group_completer): Declare.
181 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
182 the "info registers" and "info all-registers" commands and the
183 dbx-mode "lr" command.
184
f5b95c01
AA
1852014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
186
187 * user-regs.c: Include "arch-utils.h", "command.h", and
188 "cli/cli-cmds.h".
189 (maintenance_print_user_registers): New.
190 (_initialize_user_regs): Register new "maint print user-registers"
191 subcommand.
192 * NEWS: Mention new GDB command "maint print user-registers".
193
3e29f34a
MR
1942014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
195 Maciej W. Rozycki <macro@mips.com>
196 Pedro Alves <pedro@codesourcery.com>
197
198 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
199 remove `predefault' and `invalid_p' initializers.
200 (make_symbol_special): New architecture method.
201 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
202 (objfile, symbol): New declarations.
203 * arch-utils.h (default_elf_make_msymbol_special): Remove
204 prototype.
205 (default_make_symbol_special): New prototype.
206 (default_adjust_dwarf2_addr): Likewise.
207 (default_adjust_dwarf2_line): Likewise.
208 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
209 * arch-utils.c (default_elf_make_msymbol_special): Remove
210 function.
211 (default_make_symbol_special): New function.
212 (default_adjust_dwarf2_addr): Likewise.
213 (default_adjust_dwarf2_line): Likewise.
214 * dwarf2-frame.c (decode_frame_entry_1): Call
215 `gdbarch_adjust_dwarf2_addr'.
216 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
217 * dwarf2read.c (create_addrmap_from_index): Likewise.
218 (process_psymtab_comp_unit_reader): Likewise.
219 (add_partial_symbol): Likewise.
220 (add_partial_subprogram): Likewise.
221 (process_full_comp_unit): Likewise.
222 (read_file_scope): Likewise.
223 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
224 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
225 (read_call_site_scope): Likewise.
226 (dwarf2_ranges_read): Likewise.
227 (dwarf2_record_block_ranges): Likewise.
228 (read_attribute_value): Likewise.
229 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
230 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
231 * elfread.c (elf_symtab_read): Don't call
232 `gdbarch_elf_make_msymbol_special' if unset.
233 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
234 the ISA bit from the PC.
235 * mips-tdep.c (mips_unmake_compact_addr): New function.
236 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
237 address appropriately.
238 (mips_make_symbol_special): New function.
239 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
240 (mips_pc_is_mips16): Likewise.
241 (mips_pc_is_micromips): Likewise.
242 (mips_pc_isa): Likewise.
243 (mips_adjust_dwarf2_addr): New function.
244 (mips_adjust_dwarf2_line): Likewise.
245 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
246 (mips_addr_bits_remove): Likewise.
247 (mips_skip_trampoline_code): Likewise.
248 (mips_write_pc): Don't set the ISA bit.
249 (mips_eabi_push_dummy_call): Likewise.
250 (mips_o64_push_dummy_call): Likewise.
251 (mips_gdbarch_init): Install `mips_make_symbol_special',
252 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
253 handlers.
254 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
255 target-specific symbol address adjustments.
256 * gdbarch.h: Regenerate.
257 * gdbarch.c: Regenerate.
258
21daaaaf
YQ
2592014-12-12 Yao Qi <yao@codesourcery.com>
260
261 PR tdep/14261
262 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
263 'skip_pc'. Remove code skipping prologue instructions, use
264 arm_analyze_prologue instead.
265 (arm_analyze_prologue): Stop the scanning for unrecognized
266 instruction when skipping prologue.
267
f303bc3e
YQ
2682014-12-12 Yao Qi <yao@codesourcery.com>
269
270 * arm-tdep.c (arm_instruction_restores_sp): New function.
271 (arm_analyze_prologue): Call arm_instruction_restores_sp.
272 (arm_in_function_epilogue_p): Move code to
273 arm_instruction_restores_sp.
274
05a6c3c8
DE
2752014-12-11 Doug Evans <xdje42@gmail.com>
276
277 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
278
fe2a438d
DE
2792014-12-11 Doug Evans <xdje42@gmail.com>
280
281 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
282 (symbol *lookup_symbol_via_quick_fns): Ditto.
283 (lookup_symbol_in_objfile): Add forward decl.
284 (lookup_global_symbol_from_objfile): Simplify, call
285 lookup_symbol_in_objfile.
286
540feddf
DE
2872014-12-11 Doug Evans <xdje42@gmail.com>
288
289 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
290
fc126975
SM
2912014-12-10 Simon Marchi <simon.marchi@ericsson.com>
292
293 PR breakpoints/17012
294 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
295 it is marked as persistent.
296
56286edf
DE
2972014-12-10 Doug Evans <xdje42@gmail.com>
298
299 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
300 closer to its subroutines.
301
34ef8452
DE
3022014-12-10 Doug Evans <xdje42@gmail.com>
303
304 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
305
9a80057a
DE
3062014-12-10 Doug Evans <xdje42@gmail.com>
307
308 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
309 * cp-support.c (cp_lookup_symbol_imports): Delete.
310
1abf3a14
SM
3112014-12-10 Simon Marchi <simon.marchi@ericsson.com>
312
313 PR gdb/17627
314 * target.c (cleanup_restore_target_terminal): New function.
315 (make_cleanup_restore_target_terminal): New function.
316 * target.h (make_cleanup_restore_target_terminal): New declaration.
317 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
318
d4d1e336
DE
3192014-12-08 Doug Evans <dje@google.com>
320
321 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
322
a0be3e44
DE
3232014-12-08 Doug Evans <dje@google.com>
324
325 * NEWS: Mention gdb.Objfile.owner.
326 * python/py-objfile.c (objfpy_get_owner): New function.
327 (objfile_getset): Add "owner".
328
6c1c7be3
JK
3292014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
330
331 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
332 (lookup_global_symbol_from_objfile): Call it.
333
efad9b6a
JK
3342014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
335
336 Remove const from struct objfile *.
337 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
338 symtab.c, symtab.h: In these files.
339
069bb7ec
AF
3402014-12-05 Andreas From <andreas.from@ericsson.com>
341
342 * MAINTAINERS (Write After Approval): Add "Andreas From"
343
642a8d80
DE
3442014-12-05 Doug Evans <xdje42@gmail.com>
345
346 Revert:
347 PR symtab/17602
348 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
349
86e4ed39
DE
3502014-12-04 Doug Evans <dje@google.com>
351
352 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
353 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
354 (objfile_getset): Add "add_separate_debug_file".
355
7c50a931
DE
3562014-12-04 Doug Evans <dje@google.com>
357
358 * NEWS: Mention gdb.Objfile.build_id.
359 * build-id.c (build_id_bfd_get): Make non-static.
360 * build-id.h (build_id_bfd_get): Add declaration.
361 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
362 (OBJFPY_REQUIRE_VALID): New macro.
363 (objfpy_get_build_id): New function.
364 (objfile_getset): Add "build_id".
365 * utils.c (make_hex_string): New function.
366 * utils.h (make_hex_string): Add declaration.
367
ba715d7f
JK
3682014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
369
370 * block.c (block_lookup_symbol_primary): New function.
371 * block.h (block_lookup_symbol_primary): New declaration.
372 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
373 Call block_lookup_symbol_primary.
374
858339f2
MR
3752014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
376
377 * tramp-frame.h (tramp_frame): Add `validate' member.
378 * tramp-frame.c (tramp_frame_start): Validate trampoline before
379 scanning.
380 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
381 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
382 (mips_linux_o32_sigframe): Initialize `validate' member.
383 (mips_linux_o32_rt_sigframe): Likewise.
384 (mips_linux_n32_rt_sigframe): Likewise.
385 (mips_linux_n64_rt_sigframe): Likewise.
386 (micromips_linux_o32_sigframe): New variable.
387 (micromips_linux_o32_rt_sigframe): Likewise.
388 (micromips_linux_n32_rt_sigframe): Likewise.
389 (micromips_linux_n64_rt_sigframe): Likewise.
390 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
391 (mips_linux_n32n64_sigframe_init): Likewise.
392 (mips_linux_sigframe_validate): New function.
393 (micromips_linux_sigframe_validate): Likewise.
394 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
395
ff1eb2b5
UW
3962014-12-03 Ulrich Weigand  <uweigand@de.ibm.com>
397
398 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
399 * sparc-sol2-tdep.c: Include "regset.h".
400 (sparc32_sol2_supply_core_gregset): New function.
401 (sparc32_sol2_collect_core_gregset): Likewise.
402 (sparc32_sol2_supply_core_fpregset): Likewise.
403 (sparc32_sol2_collect_core_fpregset): Likewise.
404 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
405 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
406 tdep->fpregset/sizeof_fpregset.
407 * sparc64-sol2-tdep.c: Include "regset.h".
408 (sparc64_sol2_supply_core_gregset): New function.
409 (sparc64_sol2_collect_core_gregset): Likewise.
410 (sparc64_sol2_supply_core_fpregset): Likewise.
411 (sparc64_sol2_collect_core_fpregset): Likewise.
412 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
413 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
414 tdep->fpregset/sizeof_fpregset.
415
75783939
SM
4162014-12-03 Simon Marchi <simon.marchi@ericsson.com>
417
418 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
419 type.
420
7c5fdd25
DE
4212014-12-02 Doug Evans <dje@google.com>
422
423 * symtab.c (symbol_init_cplus_specific): Delete.
424 (symbol_set_demangled_name): Remove special c++ support.
425 (symbol_get_demangled_name, symbol_set_language): Ditto.
426 * symtab.h (struct cplus_specific): Delete.
427 (struct general_symbol_info) <language_specific>: Remove
428 cplus_specific.
429
29f0c3b7
DE
4302014-12-02 Doug Evans <dje@google.com>
431
432 PR symtab/17602
433 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
434
72998fb3
DE
4352014-12-02 Doug Evans <dje@google.com>
436
437 PR symtab/17591
438 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
439 to strip parameters.
440
422b9917
DE
4412014-12-02 Doug Evans <dje@google.com>
442
443 * dwarf2read.c (peek_die_abbrev): Improve error message text.
444
47c6ee49
DE
4452014-12-02 Doug Evans <dje@google.com>
446
447 * valops.c (do_search_struct_field): Remove remnant of Chill support.
448 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
449
5da3ffc9
SM
4502014-12-02 Simon Marchi <simon.marchi@ericsson.com>
451
452 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
453
162078c8
NB
4542014-12-02 Nick Bull <nicholaspbull@gmail.com>
455
456 * NEWS: Mention new Python events.
457 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
458 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
459 (py-infevents.o): New rule.
460 * doc/observer.texi (inferior_call_pre, inferior_call_post)
461 (memory_changed, register_changed): New observers.
462 * infcall.c (call_function_by_hand): Notify observer before and
463 after inferior call.
464 * python/py-event.h (inferior_call_kind): New enum.
465 (emit_inferior_call_event): New prototype.
466 (emit_register_changed_event): New prototype.
467 (emit_memory_changed_event): New prototype.
468 * python/py-events.h (events_object): New registries
469 inferior_call, memory_changed and register_changed.
470 * python/py-evts.c (gdbpy_initialize_py_events): Add the
471 inferior_call, memory_changed and register_changed registries.
472 * python/py-infevents.c: New.
473 * python/py-inferior.c (python_on_inferior_call_pre)
474 (python_on_inferior_call_post, python_on_register_change)
475 (python_on_memory_change): New functions.
476 (gdbpy_initialize_inferior): Attach python handler to new
477 observers.
478 * python/py-infthread.c(gdbpy_create_ptid_object): New.
479 (thpy_get_ptid) Use gdbpy_create_ptid_object.
480 * python/python-internal.h:
481 (gdbpy_create_ptid_object)
482 (gdbpy_initialize_inferior_call_pre_event)
483 (gdbpy_initialize_inferior_call_post_event)
484 (gdbpy_initialize_register_changed_event)
485 (gdbpy_initialize_memory_changed_event): New prototypes.
486 * python/python.c (_initialize_python): Initialize new events.
487 * valops.c (value_assign): Notify register_changed observer.
488
007baf27
DE
4892014-12-02 Doug Evans <dje@google.com>
490
491 * python/py-infthread.c: Whitespace fixes.
492
d5552aab
AA
4932014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
494
495 * features/Makefile (s390-te-linux64-expedite): Replace
496 non-existant r14 and r15 by r14l and r15l, respectively.
497 * regformats/s390-te-linux64.dat: Regenerate.
498
30b5e341
SM
4992014-12-01 Simon Marchi <simon.marchi@ericsson.com>
500
501 * objfiles.c (allocate_objfile): Remove duplicate comment.
502
ac3d87c0
UW
5032014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
504
505 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
506 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
507 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
508 (supply_gregset, supply_fpregset): Remove.
509 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
510 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
511 and sizeof_gregset.
512
f10c5b19
JK
5132014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
514
515 Add add-auto-load-scripts-directory.
516 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
517 * auto-load.c (add_auto_load_dir): New function.
518 (_initialize_auto_load): Install it.
519
f0d4ba1f
MG
5202014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
521
522 Pushed by Joel Brobecker <brobecker@adacore.com>.
523 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
524
18ac6ffc
SC
5252014-11-29 Siva Chandra Reddy <sivachandra@google.com>
526
527 * eval.c (evaluate_subexp): Check that the thread stack temporaries
528 are not already enabled before enabling them.
529
4072f920
YQ
5302014-11-29 Yao Qi <yao@codesourcery.com>
531
532 * arm-tdep.c (arm_analyze_prologue): Move local variables
533 'framereg' and 'framesize' to inner block. Move code to
534 inner block too.
535
6c659fc2
SC
5362014-11-28 Siva Chandra Reddy <sivachandra@google.com>
537
538 * eval.c: Include gdbthread.h.
539 (evaluate_subexp): Enable thread stack temporaries before
540 evaluating a complete expression and clean them up after the
541 evaluation is complete.
542 * gdbthread.h: Include common/vec.h.
543 (value_ptr): New typedef.
544 (VEC (value_ptr)): New vector type.
545 (value_vec): New typedef.
546 (struct thread_info): Add new fields stack_temporaries_enabled
547 and stack_temporaries.
548 (enable_thread_stack_temporaries)
549 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
550 (get_last_thread_stack_temporary)
551 (value_in_thread_stack_temporaries): Declare.
552 * gdbtypes.c (class_or_union_p): New function.
553 * gdbtypes.h (class_or_union_p): Declare.
554 * infcall.c (call_function_by_hand): Store return values of class
555 type as temporaries on stack.
556 * thread.c (enable_thread_stack_temporaries): New function.
557 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
558 (get_last_thread_stack_temporary): Likewise.
559 (value_in_thread_stack_temporaries): Likewise.
560 * value.c (value_force_lval): New function.
561 * value.h (value_force_lval): Declare.
562
f7ca3fcf
PM
5632014-11-28 Pierre Muller <muller@sourceware.org>
564
565 Pushed by Joel Brobecker <brobecker@adacore.com>.
566 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
567 registers.
568
b2859a9a
UW
5692014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
570
571 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
572 * config/sparc/linux.mh (NATDEPFILES): Likewise.
573 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
574 * m68klinux-nat.c (fetch_core_registers): Remove.
575 (linux_elf_core_fns): Remove.
576 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
577
0fa9473f
JB
5782014-11-28 Joel Brobecker <brobecker@adacore.com>
579
580 * utils.c (gdb_realpath): Rework comment about handling on
581 Windows.
582
6a29c58e
YQ
5832014-11-28 Yao Qi <yao@codesourcery.com>
584
585 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
586 rename.
587 * gnulib/aclocal.m4: Re-generated.
588 * gnulib/config.in: Re-generated.
589 * gnulib/configure: Re-generated.
590 * gnulib/import/Makefile.am: Re-generated.
591 * gnulib/import/Makefile.in: Re-generated.
592 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
593 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
594 * import/basename-lgpl.c: New file.
595 * import/dirname-lgpl.c: New file.
596 * import/dirname.h: New file.
597 * import/m4/dirname.m4: New file.
598 * import/m4/malloc.m4: New file.
599 * import/m4/rename.m4: New file.
600 * import/m4/rmdir.m4: New file.
601 * import/m4/stdio_h.m4: New file.
602 * import/malloc.c: New file.
603 * import/rename.c: New file.
604 * import/rmdir.c: New file.
605 * import/same-inode.h: New file.
606 * import/stdio.c: New file.
607 * import/stdio.in.h: New file.
608 * import/stripslash.c: New file.
609
abbffc89
YQ
6102014-11-28 Yao Qi <yao@codesourcery.com>
611
612 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
613 and realpath.
614 * config.in: Re-generated.
615 * configure: Re-generated.
616 * utils.c (gdb_realpath): Remove code calling realpath,
617 canonicalize_file_name and pathconf.
618 [!_WIN32]: Call canonicalize_file_name.
619
98399780
YQ
6202014-11-28 Yao Qi <yao@codesourcery.com>
621
622 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
623 canonicalize-lgpl.
624 * aclocal.m4: Re-generated.
625 * config.in: Re-generated.
626 * configure: Re-generated.
627 * import/Makefile.am: Re-generated.
628 * import/Makefile.in: Re-generated.
629 * import/m4/gnulib-cache.m4: Re-generated.
630 * import/m4/gnulib-comp.m4: Re-generated.
631 * import/canonicalize-lgpl.c: New file.
632 * import/extra/snippet/_Noreturn.h: New file.
633 * import/m4/canonicalize.m4: New file.
634 * import/m4/double-slash-root.m4: New file.
635 * import/m4/eealloc.m4: New file.
636 * import/m4/malloca.m4: New file.
637 * import/m4/nocrash.m4: New file.
638 * import/m4/stdlib_h.m4: New file.
639 * import/malloca.c: New file.
640 * import/malloca.h: New file.
641 * import/malloca.valgrind: New file.
642
3332aaf2
YQ
6432014-11-28 Yao Qi <yao@codesourcery.com>
644
645 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
646 * config.in, configure: Regenerate.
647 * symfile.c (find_separate_debug_file_by_debuglink): Remove
648 code checking HAVE_LSTAT is defined.
649
f45c62c4
YQ
6502014-11-28 Yao Qi <yao@codesourcery.com>
651
652 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
653 lstat.
654 * gnulib/aclocal.m4: Re-generated.
655 * gnulib/config.in: Re-generated.
656 * gnulib/configure: Re-generated.
657 * gnulib/import/Makefile.am: Re-generated.
658 * gnulib/import/Makefile.in: Re-generated.
659 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
660 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
661 * gnulib/import/lstat.c: New file.
662 * gnulib/import/m4/lstat.m4: New file.
663
bdca27a2
YQ
6642014-11-28 Yao Qi <yao@codesourcery.com>
665
666 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
667 * config.in, configure: Re-generate.
668 * inf-child.c (inf_child_fileio_readlink): Don't check
669 HAVE_READLINK is defined.
670
2196f55f
YQ
6712014-11-28 Yao Qi <yao@codesourcery.com>
672
673 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
674 * gnulib/aclocal.m4: Re-generated.
675 * gnulib/config.in: Likewise.
676 * gnulib/configure: Likewise.
677 * gnulib/import/Makefile.am: Likewise.
678 * gnulib/import/Makefile.in: Likewise.
679 * gnulib/import/m4/gnulib-cache.m4: Likewise.
680 * gnulib/import/m4/gnulib-comp.m4: Likewise.
681 * gnulib/import/dosname.h: New file
682 * gnulib/import/m4/largefile.m4: New file.
683 * gnulib/import/m4/readlink.m4: New file.
684 * gnulib/import/m4/stat.m4: New file.
685 * gnulib/import/readlink.c: New file.
686 * gnulib/import/stat.c: New file.
687
7014e923 6882014-11-26 Mark Wielaard <mjw@redhat.com>
0cfd832f
MW
689
690 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
691 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
692
aa489395
SL
6932014-11-25 Sandra Loosemore <sandra@codesourcery.com>
694
695 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
696 that there can be only one stack adjustment in the prologue
697 with tests to detect specific disallowed stack adjustments.
698
7f1659b5
SL
6992014-11-25 Sandra Loosemore <sandra@codesourcery.com>
700
701 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
702 adjustments.
703
d53c26c7
SL
7042014-11-25 Sandra Loosemore <sandra@codesourcery.com>
705
706 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
707 the instruction as well as reading it from memory.
708 (nios2_match_add): New.
709 (nios2_match_sub): New.
710 (nios2_match_addi): New.
711 (nios2_match_orhi): New.
712 (nios2_match_stw): New.
713 (nios2_match_ldw): New.
714 (nios2_match_rdctl): New.
715 (enum branch_condition): New.
716 (nios2_match_branch): New.
717 (nios2_match_jmpi): New.
718 (nios2_match_calli): New.
719 (nios2_match_jmpr): New.
720 (nios2_match_callr): New.
721 (nios2_match_break): New.
722 (nios2_match_trap): New.
723 (nios2_in_epilogue_p): Rewrite to use new functions.
724 (nios2_analyze_prologue): Likewise.
725 (nios2_skip_prologue): Delete unused local limit_pc.
726 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
727 (nios2_get_next_pc): Rewrite to use new functions.
728
cac9b138
JK
7292014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
730
731 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
732
a441dfbc
ST
7332014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
734
735 Pushed by Joel Brobecker <brobecker@adacore.com>
736 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
737 elements pi_len by the size of the elements before calling
738 vm_deallocate.
739 (inf_validate_task_sc): Likewise, and properly deallocate the
740 noise array.
741
4c9e8482
DE
7422014-11-23 Doug Evans <xdje42@gmail.com>
743
744 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
745 number and name if present. All callers updated.
746 (dump_fn_fieldlists): Fix indentation of args.
747
15ee0bbd
PP
7482014-11-23 Patrick Palka <patrick@parcs.ath.cx>
749
750 * MAINTAINERS (Write After Approval): Add myself.
751
e8af5d7a
JB
7522014-11-23 Joel Brobecker <brobecker@adacore.com>
753
754 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
755 to a bp_call_dummy breakpoint type.
756
a344fc09
PP
7572014-11-23 Patrick Palka <patrick@parcs.ath.cx>
758
759 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
760 registering the signal handler.
761
d64e57fa
PP
7622014-11-23 Patrick Palka <patrick@parcs.ath.cx>
763
764 * event-top.h (call_stdin_event_handler_again_p): Declare.
765 * event-top.c (call_stdin_event_handler_again_p): Define.
766 (stdin_event_handler): Use it.
767 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
768 handler again if there is pending input following a
769 start sequence.
770
6f9d33d8
PP
7712014-11-23 Patrick Palka <patrick@parcs.ath.cx>
772
773 Pushed by Joel Brobecker <brobecker@adacore.com>
774 * linux-fork.c (checkpoint_command): Print index of new
775 checkpoint in response message.
776
88db67ef
YQ
7772014-11-23 Yao Qi <yao@codesourcery.com>
778
779 * valprint.c (read_string): Move local variables 'found_nul',
780 'chunksize' and 'limit' to inner scope. Update comments.
781
01465b56
DE
7822014-11-22 Doug Evans <xdje42@gmail.com>
783
784 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
785 function comment.
786 (search_symbols): Fix comments and whitespace.
787
07a1c2c3
DE
7882014-11-22 Doug Evans <xdje42@gmail.com>
789
790 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
791
b2a919a8
DE
7922014-11-21 Doug Evans <dje@google.com>
793
794 * psymtab.c (psymtab_search_name): Fix whitespace.
795
278289d5
YQ
7962014-11-21 Yao Qi <yao@codesourcery.com>
797
798 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
799 errno.
800 * gnulib/import/Makefile.am: Re-generated.
801 * gnulib/import/Makefile.in: Likewise.
802 * gnulib/import/m4/gnulib-cache.m4: Likewise.
803
e01e2baa
YQ
8042014-11-21 Yao Qi <yao@codesourcery.com>
805
806 * gdb_wchar.h: Include wchar.h and wctype.h.
807 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
808 include wchar.h and wctype.h.
809 Don't check HAVE_WCHAR_H.
810
f0c00af8
YQ
8112014-11-21 Yao Qi <yao@codesourcery.com>
812
813 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
814 and wctype-h.
815 * gnulib/import/Makefile.am: Re-generated.
816 * gnulib/import/Makefile.in: Likewise.
817 * gnulib/import/m4/gnulib-cache.m4: Likewise.
818
0cae13bb
YQ
8192014-11-21 Yao Qi <yao@codesourcery.com>
820
821 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
822 memchr.
823 * gnulib/import/Makefile.am: Re-generated.
824 * gnulib/import/Makefile.in: Likewise.
825 * gnulib/import/m4/gnulib-cache.m4: Likewise.
826
9c232dda
YQ
8272014-11-21 Yao Qi <yao@codesourcery.com>
828
829 * common/common-defs.h: Include alloca.h
830 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
831 * configure: Re-generated.
832 * defs.h: Remove code handling alloca.
833 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
834 or not.
835
00d7f58f
YQ
8362014-11-21 Yao Qi <yao@codesourcery.com>
837
838 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
839 alloca.
840 * gnulib/import/Makefile.am: Re-generated.
841 * gnulib/import/Makefile.in: Likewise..
842 * gnulib/import/m4/gnulib-cache.m4: Likewise.
843
6068ad5d
YQ
8442014-11-21 Yao Qi <yao@codesourcery.com>
845
846 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
847 alphabetical order.
848
45e44d27
JB
8492014-11-21 Joel Brobecker <brobecker@adacore.com>
850
851 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
852 flag_unsigned if HIGH_BOUND is constant and negative.
853
7e7cbeb3
SDJ
8542014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
855
856 PR breakpoints/10737
857 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
858 modifier from "struct gdbarch" when compiling without Expat (XML)
859 support.
860 (get_syscall_by_number): Likewise.
861 (get_syscall_by_name): Likewise.
862 (get_syscall_names): Likewise.
863
458c8db8
SDJ
8642014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
865
866 PR breakpoints/10737
867 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
868 set_xml_syscall_file_name to provide gdbarch.
869 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
870 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
871 * breakpoint.c (print_it_catch_syscall): Adjust call to
872 get_syscall_by_number to provide gdbarch.
873 (print_one_catch_syscall): Likewise.
874 (print_mention_catch_syscall): Likewise.
875 (print_recreate_catch_syscall): Likewise.
876 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
877 and get_syscall_by_name to provide gdbarch.
878 (catch_syscall_completer): Adjust call to get_syscall_names to
879 provide gdbarch.
880 * gdbarch.c: Regenerate.
881 * gdbarch.h: Likewise.
882 * gdbarch.sh: Forward declare "struct syscalls_info".
883 (xml_syscall_file): New variable.
884 (syscalls_info): Likewise.
885 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
886 set_xml_syscall_file_name to provide gdbarch.
887 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
888 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
889 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
890 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
891 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
892 * xml-syscall.c: Include gdbarch.h.
893 (set_xml_syscall_file_name): Accept gdbarch parameter.
894 (get_syscall_by_number): Likewise.
895 (get_syscall_by_name): Likewise.
896 (get_syscall_names): Likewise.
897 (my_gdb_datadir): Delete global variable.
898 (struct syscalls_info) <my_gdb_datadir>: New variable.
899 (struct syscalls_info) <sysinfo>: Rename variable to
900 "syscalls_info".
901 (sysinfo): Delete global variable.
902 (have_initialized_sysinfo): Likewise.
903 (xml_syscall_file): Likewise.
904 (sysinfo_free_syscalls_desc): Rename to...
905 (syscalls_info_free_syscalls_desc): ... this.
906 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
907 code to the new layout of "struct syscalls_info".
908 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
909 "syscalls_info".
910 (syscall_create_syscall_desc): Likewise.
911 (syscall_start_syscall): Likewise.
912 (syscall_parse_xml): Likewise.
913 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
914 (init_sysinfo): Rename to...
915 (init_syscalls_info): ...this. Add gdbarch as a parameter.
916 Adjust function to deal with gdbarch.
917 (xml_get_syscall_number): Delete parameter sysinfo. Accept
918 gdbarch as a parameter. Adjust code.
919 (xml_get_syscall_name): Likewise.
920 (xml_list_of_syscalls): Likewise.
921 (set_xml_syscall_file_name): Accept gdbarch as parameter.
922 (get_syscall_by_number): Likewise.
923 (get_syscall_by_name): Likewise.
924 (get_syscall_names): Likewise.
925 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
926 (get_syscall_by_number): Likewise.
927 (get_syscall_by_name): Likewise.
928 (get_syscall_names): Likewise.
929
43f3e411
DE
9302014-11-20 Doug Evans <xdje42@gmail.com>
931
932 Split struct symtab into two: struct symtab and compunit_symtab.
933 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
934 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
935 to "struct compunit_symtab *". All callers updated.
936 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
937 "struct symtab *" argument to "struct compunit_symtab *".
938 All callers updated.
939 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
940 result to "struct compunit_symtab *". All callers updated.
941 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
942 Change result to "struct compunit_symtab *". All callers updated.
943 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
944 hange type to "struct compunit_symtab *". All uses updated.
945 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
946 Change type to "struct compunit_symtab *". All uses updated.
947 * buildsym.c (struct buildsym_compunit): New struct.
948 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
949 (buildsym_compunit): New static global.
950 (finish_block_internal): Update to fetch objfile from
951 buildsym_compunit.
952 (make_blockvector): Delete objfile argument.
953 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
954 debugformat, producer.
955 (start_buildsym_compunit): New function.
956 (free_buildsym_compunit): Renamed from free_subfiles_list.
957 All callers updated.
958 (patch_subfile_names): Rewrite to use buildsym_compunit.
959 (get_compunit_symtab): New function.
960 (get_macro_table): Delete argument comp_dir. All callers updated.
961 (start_symtab): Change result to "struct compunit_symtab *".
962 All callers updated. Create the subfile of the main source file.
963 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
964 (reset_symtab_globals): Update.
965 (end_symtab_get_static_block): Update to use buildsym_compunit.
966 (end_symtab_without_blockvector): Rewrite.
967 (end_symtab_with_blockvector): Change result to
968 "struct compunit_symtab *". All callers updated.
969 Update to use buildsym_compunit. Don't set symtab->dirname,
970 instead set it in the compunit.
971 Explicitly make sure main symtab is first in its list.
972 Set debugformat, producer, blockvector, block_line_section, and
973 macrotable in the compunit.
974 (end_symtab_from_static_block): Change result to
975 "struct compunit_symtab *". All callers updated.
976 (end_symtab, end_expandable_symtab): Ditto.
977 (set_missing_symtab): Change symtab argument to
978 "struct compunit_symtab *". All callers updated.
979 (augment_type_symtab): Ditto.
980 (record_debugformat): Update to use buildsym_compunit.
981 (record_producer): Update to use buildsym_compunit.
982 * buildsym.h (struct subfile) <dirname>: Delete.
983 <producer, debugformat>: Delete.
984 <buildsym_compunit>: New member.
985 (get_compunit_symtab): Declare.
986 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
987 from primary_symtab. Change type to "struct compunit_symtab *".
988 All uses updated.
989 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
990 All callers updated.
991 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
992 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
993 symtab. Change type to "struct compunit_symtab *". All uses updated.
994 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
995 All callers updated.
996 (dw2_find_last_source_symtab): Ditto.
997 (dw2_lookup_symbol): Ditto.
998 (recursively_find_pc_sect_compunit_symtab): Renamed from
999 recursively_find_pc_sect_symtab. Change result to
1000 "struct compunit_symtab *". All callers updated.
1001 (dw2_find_pc_sect_compunit_symtab): Renamed from
1002 dw2_find_pc_sect_symtab. Change result to
1003 "struct compunit_symtab *". All callers updated.
1004 (get_compunit_symtab): Renamed from get_symtab. Change result to
1005 "struct compunit_symtab *". All callers updated.
1006 (recursively_compute_inclusions): Change type of immediate_parent
1007 argument to "struct compunit_symtab *". All callers updated.
1008 (compute_compunit_symtab_includes): Renamed from
1009 compute_symtab_includes. All callers updated. Rewrite to compute
1010 includes of compunit_symtabs and not symtabs.
1011 (process_full_comp_unit): Update to work with struct compunit_symtab.
1012 (process_full_type_unit): Ditto.
1013 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
1014 (dwarf_decode_lines): Remove special case handling of main subfile.
1015 (macro_start_file): Delete argument comp_dir. All callers updated.
1016 (dwarf_decode_macro_bytes): Ditto.
1017 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
1018 use struct compunit_symtab.
1019 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
1020 * jit.c (finalize_symtab): Build compunit_symtab.
1021 * jv-lang.c (get_java_class_symtab): Change result to
1022 "struct compunit_symtab *". All callers updated.
1023 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
1024 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
1025 comp_dir. Change type to "struct compunit_symtab *".
1026 All uses updated.
1027 (new_macro_table): Change comp_dir argument to cust,
1028 "struct compunit_symtab *". All callers updated.
1029 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
1030 nr_primary_symtabs. All uses updated.
1031 (count_symtabs_and_blocks): Update to handle compunits.
1032 (report_command_stats): Update output, "primary symtabs" renamed to
1033 "compunits".
1034 * mdebugread.c (new_symtab): Change result to
1035 "struct compunit_symtab *". All callers updated.
1036 (parse_procedure): Change type of search_symtab argument to
1037 "struct compunit_symtab *". All callers updated.
1038 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
1039 separate loop.
1040 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
1041 symtabs. Change type to "struct compunit_symtab *". All uses updated.
1042 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
1043 All uses updated.
1044 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
1045 All uses updated.
1046 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
1047 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
1048 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
1049 symtab. Change type to "struct compunit_symtab *". All uses updated.
1050 * psymtab.c (psymtab_to_symtab): Change result type to
1051 "struct compunit_symtab *". All callers updated.
1052 (find_pc_sect_compunit_symtab_from_partial): Renamed from
1053 find_pc_sect_symtab_from_partial. Change result type to
1054 "struct compunit_symtab *". All callers updated.
1055 (lookup_symbol_aux_psymtabs): Change result type to
1056 "struct compunit_symtab *". All callers updated.
1057 (find_last_source_symtab_from_partial): Ditto.
1058 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
1059 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
1060 and macro_table from compunit.
1061 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
1062 type to "struct compunit_symtab *". All callers updated.
1063 (debug_qf_lookup_symbol): Ditto.
1064 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
1065 debug_qf_find_pc_sect_symtab, change result type to
1066 "struct compunit_symtab *". All callers updated.
1067 * symfile.c (allocate_symtab): Delete objfile argument.
1068 New argument cust.
1069 (allocate_compunit_symtab): New function.
1070 (add_compunit_symtab_to_objfile): New function.
1071 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1072 Change result type to "struct compunit_symtab *". All uses updated.
1073 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
1074 Change result type to "struct compunit_symtab *". All uses updated.
1075 * symmisc.c (print_objfile_statistics): Compute blockvector count in
1076 separate loop.
1077 (dump_symtab_1): Update test for primary source symtab.
1078 (maintenance_info_symtabs): Update to handle compunit symtabs.
1079 (maintenance_check_symtabs): Ditto.
1080 * symtab.c (set_primary_symtab): Delete.
1081 (compunit_primary_filetab): New function.
1082 (compunit_language): New function.
1083 (iterate_over_some_symtabs): Change type of arguments "first",
1084 "after_last" to "struct compunit_symtab *". All callers updated.
1085 Update to loop over symtabs in each compunit.
1086 (error_in_psymtab_expansion): Rename symtab argument to cust,
1087 and change type to "struct compunit_symtab *". All callers updated.
1088 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
1089 Change result type to "struct compunit_symtab *". All callers updated.
1090 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
1091 Change result type to "struct compunit_symtab *". All callers updated.
1092 (find_pc_sect_line): Only loop over symtabs within selected compunit
1093 instead of all symtabs in the objfile.
1094 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
1095 <compunit_symtab> New member.
1096 <block_line_section>: Moved to compunit_symtab.
1097 <locations_valid>: Ditto.
1098 <epilogue_unwind_valid>: Ditto.
1099 <macro_table>: Ditto.
1100 <dirname>: Ditto.
1101 <debugformat>: Ditto.
1102 <producer>: Ditto.
1103 <objfile>: Ditto.
1104 <call_site_htab>: Ditto.
1105 <includes>: Ditto.
1106 <user>: Ditto.
1107 <primary>: Delete
1108 (SYMTAB_COMPUNIT): New macro.
1109 (SYMTAB_BLOCKVECTOR): Update definition.
1110 (SYMTAB_OBJFILE): Update definition.
1111 (SYMTAB_DIRNAME): Update definition.
1112 (struct compunit_symtab): New type. Common members among all source
1113 symtabs within a compilation unit moved here. All uses updated.
1114 (COMPUNIT_OBJFILE): New macro.
1115 (COMPUNIT_FILETABS): New macro.
1116 (COMPUNIT_DEBUGFORMAT): New macro.
1117 (COMPUNIT_PRODUCER): New macro.
1118 (COMPUNIT_DIRNAME): New macro.
1119 (COMPUNIT_BLOCKVECTOR): New macro.
1120 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1121 (COMPUNIT_LOCATIONS_VALID): New macro.
1122 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1123 (COMPUNIT_CALL_SITE_HTAB): New macro.
1124 (COMPUNIT_MACRO_TABLE): New macro.
1125 (ALL_COMPUNIT_FILETABS): New macro.
1126 (compunit_symtab_ptr): New typedef.
1127 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1128
005e2509
JB
11292014-11-20 Joel Brobecker <brobecker@adacore.com>
1130
1131 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1132 if the TYPE_CODE of range_type's base type does not match
1133 the TYPE_CODE of encoding_type's base type.
1134
2b0f535a
JB
11352014-11-19 Joel Brobecker <brobecker@adacore.com>
1136
1137 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1138 it starts with '<'.
1139
8908fca5
JB
11402014-11-19 Joel Brobecker <brobecker@adacore.com>
1141
1142 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1143 (ada_is_redundant_index_type_desc): New function.
1144 (to_fixed_array_type): Ignore parallel XA type if redundant.
1145
4a46959e
JB
11462014-11-19 Joel Brobecker <brobecker@adacore.com>
1147
1148 * ada-lang.c (constrained_packed_array_type): Set the length
1149 of the return array as if both bounds where zero if that
1150 returned array's index type is dynamic.
1151
2acf986b
YQ
11522014-11-19 Yao Qi <yao@codesourcery.com>
1153
1154 * config/i386/go32.mh (CC): Remove.
1155
439247b6
DE
11562014-11-18 Doug Evans <xdje42@gmail.com>
1157
1158 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1159 updated.
1160
4d663531
DE
11612014-11-18 Doug Evans <xdje42@gmail.com>
1162
1163 * buildsym.c (buildsym_objfile): New static global.
1164 (buildsym_comp_dir): New static global.
1165 (finish_block_internal): Delete arg objfile. All callers updated.
1166 (finish_block): Delete arg objfile. All callers updated.
1167 (start_subfile): Delete arg dirname. All callers updated.
1168 (patch_subfile_names): Update buildsym_comp_dir.
1169 (get_macro_table): Delete arg objfile. All callers updated.
1170 (start_symtab): New arg objfile. All callers updated.
1171 Rename arg dirname to comp_dir.
1172 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1173 (end_symtab_get_static_block): Delete arg objfile. All callers
1174 updated.
1175 (end_symtab_without_blockvector): Ditto.
1176 (end_symtab_with_blockvector): Ditto.
1177 (end_symtab_from_static_block): Ditto.
1178 (end_symtab): Ditto.
1179 (end_expandable_symtab): Ditto.
1180 (augment_type_symtab): Ditto.
1181 * coffread.c (coff_start_symtab): New arg objfile. All callers
1182 updated.
1183
8435453b
DE
11842014-11-18 Doug Evans <xdje42@gmail.com>
1185
1186 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1187 updated.
1188
ee6f8984
DE
11892014-11-18 Doug Evans <xdje42@gmail.com>
1190
1191 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1192 symtab.dirname updated to use it.
1193
eb822aa6
DE
11942014-11-18 Doug Evans <xdje42@gmail.com>
1195
1196 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1197 symtab.objfile updated to use it.
1198
98387a29
DE
11992014-11-18 Doug Evans <xdje42@gmail.com>
1200
1201 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1202
aff08958
DE
12032014-11-18 Doug Evans <xdje42@gmail.com>
1204
1205 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1206 SYMBOL_OBJFILE.
1207 * findvar.c (default_read_var_value): Ditto.
1208 * jv-lang.c (add_class_symtab_symbol): Ditto.
1209 * parse.c (operator_check_standard): Ditto.
1210 * printcmd.c (address_info): Ditto.
1211 * symtab.c (fixup_symbol_section): Ditto.
1212 (skip_prologue_sal): Ditto.
1213 * tracepoint.c (scope_info): Ditto.
1214 * valops.c (find_function_in_inferior): Ditto.
1215 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1216 * python/py-symbol.c (set_symbol): Ditto.
1217
7bab9b58
DE
12182014-11-18 Doug Evans <xdje42@gmail.com>
1219
1220 * buildsym.c (main_subfile): New static global.
1221 (free_subfiles_list): New function.
1222 (start_symtab): Set main_subfile.
1223 (restart_symtab): Replace init of subfiles, current_subfile with
1224 call to free_subfiles_list.
1225 (watch_main_source_file_lossage): Use main_subfile.
1226 (reset_symtab_globals): Replace init of current_subfile with call
1227 to free_subfiles_list.
1228 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1229 functions, split out from ...
1230 (end_symtab_from_static_block): ... here. Rewrite to call them.
1231
f194fefb
DE
12322014-11-18 Doug Evans <xdje42@gmail.com>
1233
1234 The result of symtab expansion is always a primary symtab.
1235 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1236 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1237 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1238 (psymtab_to_symtab): Add comment and assert.
1239 (map_matching_symbols_psymtab): Remove unnecessary test for
1240 non-primary symtab.
1241
34248c3a
DE
12422014-11-15 Doug Evans <xdje42@gmail.com>
1243
1244 PR symtab/17559
1245 * symtab.c (find_pc_line_symtab): New function.
1246 * symtab.h (find_pc_line_symtab): Declare.
1247 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1248 find_pc_symtab.
1249 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1250 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1251 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1252 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1253 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1254 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1255
2097ae25
DE
12562014-11-15 Doug Evans <xdje42@gmail.com>
1257
1258 * symtab.c (expand_symtab_containing_pc): Renamed from
1259 find_pc_sect_symtab_via_partial. All callers updated.
1260
1ada499f
YQ
12612014-11-15 Yao Qi <yao@codesourcery.com>
1262
1263 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1264
355e2102
JB
12652014-11-14 Joel Brobecker <brobecker@adacore.com>
1266
1267 * common/common-defs.h: Move <stdarg.h> #include ahead of
1268 <stdio.h> #include.
1269
83030110
PA
12702014-11-14 Pedro Alves <palves@redhat.com>
1271
1272 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1273 [!PHONY_ICONV] (gdb_iconv): New function.
1274 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1275
a8719064
DE
12762014-11-13 Doug Evans <dje@google.com>
1277
1278 PR symtab/17591
1279 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1280 "(anonymous namespace)".
1281
60f7655a
DE
12822014-11-13 Doug Evans <dje@google.com>
1283
1284 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1285 infinite loop.
1286
5784b3ca
JK
12872014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1288
1289 * NEWS (maint set target-async): Fix typo.
1290
6218dc4b
PA
12912014-11-12 Pedro Alves <palves@redhat.com>
1292
1293 * infrun.c (enum infwait_states, infwait_state): Delete.
1294
af48d08f
PA
12952014-11-12 Pedro Alves <palves@redhat.com>
1296
1297 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1298 Rewrite stepping over a permanent breakpoint.
1299 (thread_still_needs_step_over, proceed): Don't set
1300 stepping_over_breakpoint for permanent breakpoints.
1301 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1302 single-step breakpoints out of the target on hardware step
1303 targets.
1304 (process_event_stop_test): If stepping a permanent breakpoint
1305 doesn't hit the step-resume breakpoint, delete the step-resume
1306 breakpoint.
1307 (switch_back_to_stepped_thread): Also check if the stepped thread
1308 has advanced already on hardware step targets.
1309 (currently_stepping): Return true if the thread stepped a
1310 breakpoint.
1311
1a853c52
PA
13122014-11-12 Pedro Alves <palves@redhat.com>
1313
1314 Mark locations as permanent, not the whole breakpoint.
1315 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1316 (mark_breakpoints_out): Don't mark permanent breakpoints as
1317 uninserted.
1318 (breakpoint_init_inferior): Use mark_breakpoints_out.
1319 (breakpoint_here_p): Adjust.
1320 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1321 of permanent breakpoints.
1322 (make_breakpoint_permanent): Mark each location as permanent,
1323 instead of marking the breakpoint.
1324 (add_location_to_breakpoint): If the location is permanent, mark
1325 it as such, and as inserted.
1326 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1327 (bp_location_compare, update_global_location_list): Adjust.
1328 (update_breakpoint_locations): Don't make the breakpoint permanent
1329 here.
1330 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1331 breakpoints.
1332 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1333 (struct bp_location) <permanent>: New field.
1334 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1335 reference to bp_permanent.
1336
ae9bb220
PA
13372014-11-12 Pedro Alves <palves@redhat.com>
1338
1339 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1340 * arch-utils.h (default_skip_permanent_breakpoint): New
1341 declaration.
1342 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1343 Install default_skip_permanent_breakpoint as default method.
1344 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1345 (i386_gdbarch_init): Don't install it.
1346 * infrun.c (resume): Assume there's always a
1347 gdbarch_skip_permanent_breakpoint implementation.
1348 * gdbarch.h, gdbarch.c: Regenerate.
1349
015de688
DC
13502014-11-11 Daniel Colascione <dancol@dancol.org>
1351
1352 Warn about cross-PID-namespace debugging.
1353 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1354 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1355 * linux-thread-db.c (check_pid_namespace_match): New function.
1356 (thread_db_inferior_created): Call it.
1357
26a84859
DE
13582014-11-10 Doug Evans <xdje42@gmail.com>
1359
1360 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1361 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1362
712a2e6d
DE
13632014-11-10 Doug Evans <xdje42@gmail.com>
1364
1365 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1366
af3768e9
DE
13672014-11-10 Doug Evans <xdje42@gmail.com>
1368
1369 PR symtab/17564
1370 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1371 (lookup_static_symbol): Move definition to new location and rewrite.
1372 (lookup_symbol_in_objfile): New function.
1373 (lookup_symbol_global_iterator_cb): Call it.
1374
b1f28d99
UW
13752014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
1376
1377 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1378
b7a084be
PA
13792014-11-07 Pedro Alves <palves@redhat.com>
1380
1381 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1382 check if we did a "nexti" inside a prologue.
1383 * symtab.c (in_prologue): Delete function.
1384 * symtab.h (in_prologue): Delete declaration.
1385
67be31e5
DE
13862014-11-06 Doug Evans <xdje42@gmail.com>
1387
1388 * symtab.h (lookup_global_symbol): Improve function comment.
1389
08724ab7
DE
13902014-11-06 Doug Evans <xdje42@gmail.com>
1391
1392 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1393 All callers updated.
1394 * symtab.h (lookup_global_symbol): Update decl.
1395 (lookup_static_symbol): Move decl to better location.
1396
d9060ba6
DE
13972014-11-06 Doug Evans <xdje42@gmail.com>
1398
1399 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1400
74016e12
DE
14012014-11-06 Doug Evans <xdje42@gmail.com>
1402
1403 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1404 All callers updated.
1405 (lookup_symbol_in_all_objfiles): Renamed from
1406 lookup_symbol_aux_symtabs. All callers updated.
1407 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1408 All callers updated.
1409 (lookup_symbol_in_objfile_symtabs): Renamed from
1410 lookup_symbol_aux_objfile. All callers updated.
1411
d1a2d36d
DE
14122014-11-06 Doug Evans <xdje42@gmail.com>
1413
1414 * symtab.c (lookup_symbol_in_block): Renamed from
1415 lookup_symbol_aux_block. All callers updated.
1416
24d864bb
DE
14172014-11-06 Doug Evans <xdje42@gmail.com>
1418
1419 * symtab.c (lookup_static_symbol): Renamed from
1420 lookup_static_symbol_aux. All callers updated.
1421 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1422 All callers updated.
1423
358d6ab3
DE
14242014-11-06 Doug Evans <xdje42@gmail.com>
1425
1426 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1427 * block.c (block_lookup_symbol): Use it.
1428 * cp-support.c (make_symbol_overload_list_block): Use it.
1429 * symtab.c (iterate_over_symbols): Use it.
1430
16b2eaa1
DE
14312014-11-06 Doug Evans <xdje42@gmail.com>
1432
1433 * symtab.c (lookup_block_symbol): Moved to ...
1434 * block.c (block_lookup_symbol): ... here and renamed.
1435 All callers updated.
1436 * block.h (block_lookup_symbol): Declare.
1437 * symtab.h (lookup_block_symbol): Delete.
1438
2dd2cd1c
DE
14392014-11-06 Doug Evans <xdje42@gmail.com>
1440
1441 * ada-lang.c (ada_make_symbol_completion_list): Use
1442 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1443 * symtab.c (lookup_objfile_from_block): Ditto.
1444
d4c58915
DE
14452014-11-06 Doug Evans <xdje42@gmail.com>
1446
1447 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1448 TYPE_CODE_STRUCT.
1449
9c1877ea
DE
14502014-11-06 Doug Evans <xdje42@gmail.com>
1451
1452 * objfiles.c (get_objfile_arch): Constify.
1453 * objfiles.h (get_objfile_arch): Update prototype.
1454 * solib.c (solib_global_lookup): Fetch arch from objfile,
1455 not target_gdbarch.
1456
426a4079
SL
14572014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1458
1459 * nios2-tdep.c (wild_insn): Delete.
1460 (profiler_insn, irqentry_insn): Delete.
1461 (nios2_match_sequence): Delete.
1462 (nios2_analyze_prologue): Update comments. Remove matching
1463 of obsolete profiler_insn and irqentry_insn sequences.
1464
ee11262d
AM
14652014-11-05 Alan Modra <amodra@gmail.com>
1466
1467 * charset.c (convert_between_encodings): Shrink obstack using
1468 obstack_blank_fast.
1469 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
1470 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1471 to char* before doing pointer arithmetic.
ee11262d 1472
c87e6d00
SM
14732014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1474
1475 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1476
441ef17f
PA
14772014-11-04 Pedro Alves <palves@redhat.com>
1478
1479 * breakpoint.c (breakpoint_thread_match): Delete function.
1480 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1481
e0f52461
SC
14822014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1483
1484 PR c++/17494
1485 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1486 the method args also under EVAL_SKIP when evaluating method
1487 calls under EVAL_SKIP.
1488
a0b4d890
YQ
14892014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1490
1491 * dwarf2loc.c (read_pieced_value): Do big endian
1492 processing only if gdb_regnum is not -1.
1493 (write_pieced_value): Ditto.
1494
14952014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1496
1497 * arm-linux-tdep.c (arm_linux_init_abi): Use
1498 info.byte_order_for_code to choose endianity of breakpoint
1499 instructions snippets.
1500
15012014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1502
1503 * arm-tdep.c (extract_arm_insn): Use
1504 gdbarch_byte_order_for_code to read arm instruction.
1505
e82149ff
DE
15062014-11-02 Doug Evans <xdje42@gmail.com>
1507
1508 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1509
d7ee84f1
DE
15102014-11-02 Doug Evans <xdje42@gmail.com>
1511
1512 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1513 main_subfile before returning.
1514
4f072d17
DE
15152014-10-31 Doug Evans <xdje42@gmail.com>
1516
1517 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1518 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1519
8301c89e
DE
15202014-10-31 Doug Evans <xdje42@gmail.com>
1521
1522 * valops.c (value_cast_pointers): Fix whitespace.
1523 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1524 Ditto.
1525
02be9a71
DE
15262014-10-30 Doug Evans <dje@google.com>
1527
1528 * NEWS: Mention ability add attributes to gdb.Objfile and
1529 gdb.Progspace objects.
1530 * python/py-objfile.c (objfile_object): New member dict.
1531 (objfpy_dealloc): Py_XDECREF dict.
1532 (objfpy_initialize): Initialize dict.
1533 (objfile_getset): Add __dict__.
1534 (objfile_object_type): Set tp_dictoffset member.
1535 * python/py-progspace.c (progspace_object): New member dict.
1536 (pspy_dealloc): Py_XDECREF dict.
1537 (pspy_initialize): Initialize dict.
1538 (pspace_getset): Add __dict__.
1539 (pspace_object_type): Set tp_dictoffset member.
1540
6427bef6
YQ
15412014-10-30 Yao Qi <yao@codesourcery.com>
1542
1543 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1544 replace '\\' with '\\\\'.
1545
f60325be
JB
15462014-10-29 Joel Brobecker <brobecker@adacore.com>
1547
1548 GDB 7.8.1 released.
1549
ab917dfb
PA
15502014-10-29 Pedro Alves <palves@redhat.com>
1551
1552 PR gdb/17408
1553 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1554 instead of assuming a thread with a stepping range is always
1555 stepping.
1556
d3d4baed
PA
15572014-10-29 Pedro Alves <palves@redhat.com>
1558
1559 PR python/17372
1560 * event-top.c (change_line_handler): Call
1561 gdb_rl_callback_handler_remove instead of
1562 rl_callback_handler_remove.
1563 (callback_handler_installed): New global.
1564 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1565 (gdb_rl_callback_handler_reinstall): New functions.
1566 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1567 gdb_rl_callback_handler_install instead of
1568 rl_callback_handler_remove and rl_callback_handler_install.
1569 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1570 instead of rl_callback_handler_remove.
1571 * event-top.h (gdb_rl_callback_handler_remove)
1572 (gdb_rl_callback_handler_install)
1573 (gdb_rl_callback_handler_reinstall): New declarations.
1574 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1575 cleanup function.
1576 (fetch_inferior_event): Install it.
1577 * top.c (gdb_readline_wrapper_line) Call
1578 gdb_rl_callback_handler_remove instead of
1579 rl_callback_handler_remove.
1580 (gdb_readline_wrapper_cleanup): Don't call
1581 rl_callback_handler_install.
1582
6e5d7f39
PA
15832014-10-29 Pedro Alves <palves@redhat.com>
1584
1585 * event-top.c (command_line_handler): Clear the first byte of
1586 linebuffer, when it is first allocated.
1587
551cb6a5
PA
15882014-10-29 Pedro Alves <palves@redhat.com>
1589
1590 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1591 TRY_CATCH.
1592
1e1e619b
PA
15932014-10-29 Pedro Alves <palves@redhat.com>
1594
1595 PR tui/16138
1596 PR tui/17519
1597 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1598 (tui_allowed_p): Delete function.
1599 * tui/tui.c: Include "interps.h".
1600 (tui_enable): Don't use tui_allowed_p. Error out here with
1601 detailed error messages if the TUI is the top level interpreter,
1602 or if output is not a terminal. Use newterm instead of initscr,
1603 and error out if initializing the terminal fails. Also error out if
1604 the terminal doesn't support cursor addressing.
1605 * tui/tui.h (tui_allowed_p): Delete declaration.
1606
6041179a
JB
16072014-10-29 Joel Brobecker <brobecker@adacore.com>
1608
1609 * arm-tdep.c (arm_skip_stack_protector): Return early if
1610 address loaded by first "ldr" instruction does not have
1611 a corresponding minimal symbol. Update comment.
1612
6ae274b7
YQ
16132014-10-29 Yao Qi <yao@codesourcery.com>
1614
1615 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1616 loaded address correctly of ldr instruction.
1617
7f5ef605
PA
16182014-10-28 Pedro Alves <palves@redhat.com>
1619
1620 PR gdb/12623
1621 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1622 field.
1623 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1624 thread's stepped_breakpoint field. Skip if reverse debugging.
1625 Add comment.
1626 (init_thread_stepping_state, handle_signal_stop): Clear the
1627 thread's stepped_breakpoint field.
1628
7d1a114c
PA
16292014-10-27 Pedro Alves <palves@redhat.com>
1630
1631 * remote.c (remote_thread_alive): New, factored out from ...
1632 (remote_thread_alive): ... this.
1633 (remote_update_thread_list): Bail out before deleting threads if
1634 the target returned an empty list, and, the current thread has a
1635 magic/fake ptid.
1636
e5f8a7cc
PA
16372014-10-27 Pedro Alves <palves@redhat.com>
1638
1639 * infrun.c (handle_signal_stop): Also skip handlers when a random
1640 signal arrives while handling a "stepi" or a "nexti". Set the
1641 thread's 'step_after_step_resume_breakpoint' flag.
1642
71e396f9
LM
16432014-10-27 Luis Machado <lgustavo@codesourcery.com>
1644
1645 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1646 (arm_record_ld_st_imm_offset): Reimplement to cover all
1647 load/store cases for ARM opcode 010.
1648 (arm_record_ld_st_multiple): Reimplement to cover all
1649 load/store cases for ARM opcode 100.
1650
3aee438b
DE
16512014-10-26 Doug Evans <xdje42@gmail.com>
1652
1653 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1654
f88cb4b6
DE
16552014-10-26 Doug Evans <xdje42@gmail.com>
1656
1657 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1658 parameter "kind" to "block_index".
1659 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1660 "block_index".
1661 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1662
a023a30f
DE
16632014-10-26 Doug Evans <xdje42@gmail.com>
1664
1665 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1666
4c35218e
DE
16672014-10-26 Doug Evans <xdje42@gmail.com>
1668
1669 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1670 obstack_alloc.
1671
f08e8df3
DE
16722014-10-26 Doug Evans <xdje42@gmail.com>
1673
1674 * parser-defs.h (block_found): Move decl from here ...
1675 * symtab.h (block_found): ... to here.
1676
cf901d3b
DE
16772014-10-26 Doug Evans <xdje42@gmail.com>
1678
1679 * symtab.h (struct field_of_this_result): Fix typo in comment.
1680 (lookup_symbol_in_language): Move function comment here.
1681 (lookup_symbol): Improve function comment.
1682 (basic_lookup_symbol_nonlocal): Ditto.
1683 (lookup_symbol_static, lookup_symbol_global): Ditto.
1684 (lookup_symbol_aux_block): Ditto.
1685 (lookup_language_this): Add function comment.
1686 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1687 function comment.
1688 (lookup_block_symbol): Improve function comment.
1689 (lookup_struct): Fix capitalization in function comment.
1690 (lookup_transparent_type): Add function comment.
1691 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1692 Improve function comment.
1693 (lookup_objfile_from_block): Add function comment.
1694 * symtab.c (lookup_symbol_in_language): Update function comment.
1695 (lookup_symbol, lookup_language_this): Ditto.
1696 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1697 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1698 (basic_lookup_symbol_nonlocal): Ditto.
1699 (lookup_symbol_static, lookup_symbol_global): Ditto.
1700 (lookup_transparent_type, lookup_block_symbol): Ditto.
1701
ff6c39cf
DE
17022014-10-25 Doug Evans <xdje42@gmail.com>
1703
1704 * symtab.c (types_info): Delete forward decl.
1705 (functions_info, variables_info, sources_info): Ditto.
1706 (_initialize_symtab): Rewrite forward decl to use
1707 initialize_file_ftype.
1708
ec201f0c
DE
17092014-10-25 Doug Evans <xdje42@gmail.com>
1710
1711 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1712
ca040673
DE
17132014-10-25 Doug Evans <xdje42@gmail.com>
1714
1715 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1716 of local var child_die.
1717
6f259a23
DB
17182014-10-24 Don Breazeal <donb@codesourcery.com>
1719
1720 * infrun.c (follow_fork_inferior): Update fork message printing
1721 to use target_terminal_ours_for_output instead of
1722 target_terminal_ours, to use _() for all format strings, to print
1723 "vfork" instead of "fork" for vforks, and to add a detach message.
1724 (handle_vfork_child_exec_or_exit): Update message printing to use
1725 target_terminal_ours_for_output instead of target_terminal_ours, to
1726 use _() for all format strings, and to fix some formatting.
1727
09dd9a69
PA
17282014-10-24 Pedro Alves <palves@redhat.com>
1729
1730 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1731 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1732 * config/vax/vax.mh: Delete.
1733 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1734 obsolete configurations section.
1735 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1736 * vax-nat.c: Delete file.
1737
5ab806de
PA
17382014-10-24 Pedro Alves <palves@redhat.com>
1739
1740 * NEWS (Removed targets): Add OS/arch column.
1741
3433cfa5
SC
17422014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1743
1744 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1745 on the arg type of a constructor only if it is of reference type.
1746
96ba4233
SL
17472014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1748
1749 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1750 accessors and constants from nios2 opcodes update.
1751 (nios2_get_next_pc): Likewise.
1752
28153fd3
DE
17532014-10-19 Doug Evans <xdje42@gmail.com>
1754
1755 * gdbthread.h (set_running): Fix comment.
1756 (set_executing, finish_thread_state): Fix comment.
1757
fc9b8e47
DE
17582014-10-18 Doug Evans <xdje42@gmail.com>
1759
1760 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1761
4ffbba72
DE
17622014-10-17 Doug Evans <dje@google.com>
1763
1764 * NEWS: Mention new event gdb.clear_objfiles.
1765 * python/py-event.h (emit_clear_objfiles_event): Clear
1766 * python/py-events.h (events_object): New member clear_objfiles.
1767 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1768 event.
1769 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1770 emit clear_objfiles event.
1771 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1772 function.
1773 (emit_clear_objfiles_event): New function.
1774 (clear_objfiles): New event.
1775 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1776 Declare.
1777 * python/python.c (_initialize_python): Call
1778 gdbpy_initialize_clear_objfiles_event.
1779
d096d8c1
DE
17802014-10-17 Doug Evans <dje@google.com>
1781
1782 * NEWS: Mention new gdb.Objfile.progspace attribute.
1783 * python/py-objfile.c (objfpy_get_progspace): New function.
1784 (objfile_getset): New entry for "progspace".
1785
6c4486e6
PA
17862014-10-17 Pedro Alves <palves@redhat.com>
1787
1788 PR gdb/17471
1789 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1790 returns a copy of the input.
1791 (run_command_1, continue_command, step_1, jump_command)
1792 (signal_command, until_command, advance_command, finish_command)
1793 (attach_command): Adjust and install a cleanup to free the
1794 stripped args.
1795
0ff33695
PA
17962014-10-17 Pedro Alves <palves@redhat.com>
1797
1798 PR gdb/17300
1799 * infcmd.c (continue_1): If continuing all threads in the
1800 foreground, make sure the inferior's terminal settings are put in
1801 effect.
1802
6fdebc3d
PA
18032014-10-17 Pedro Alves <palves@redhat.com>
1804
1805 PR gdb/17472
1806 * annotate.c (annotate_breakpoints_invalid): Use
1807 target_terminal_our_for_output instead of target_terminal_ours.
1808 Give back the terminal to the target.
1809 (annotate_frames_invalid): Likewise.
1810
5842f62a
PA
18112014-10-17 Pedro Alves <palves@redhat.com>
1812
1813 * target.c (enum terminal_state): New enum.
1814 (terminal_state): New global.
1815 (target_terminal_init): New function.
1816 (target_terminal_inferior): Skip if inferior already owns the
1817 terminal.
1818 (target_terminal_ours, target_terminal_ours_for_output): New
1819 functions.
1820 * target.h (target_terminal_init): Convert to function prototype.
1821 (target_terminal_ours_for_output): Convert to function prototype
1822 and tweak comment.
1823 (target_terminal_ours): Convert to function prototype and tweak
1824 comment.
1825 * windows-nat.c (do_initial_windows_stuff): Call
1826 target_terminal_init instead of child_terminal_init_with_pgrp.
1827
32a8097b
PA
18282014-10-17 Pedro Alves <palves@redhat.com>
1829
1830 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1831 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1832 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1833 solib-osf.c.
1834 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1835 * ada-lang.h [__alpha__ && __osf__]
1836 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1837 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1838 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1839 GDB_OSABI_OSF1.
1840 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1841 files.
1842 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1843 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1844 * configure: Regenerate.
1845 * configure.ac: Remove references to osf.
1846 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1847 section. Remove all other references to osf.
1848 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1849 Remove all other references to osf.
1850 * dec-thread.c: Delete file.
1851 * defs.h (GDB_OSABI_OSF1): Delete.
1852 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1853 defined.
1854 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1855 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1856 Delete code.
1857 (unconditionally_kill_inferior)
1858 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1859 * solib-osf.c: Delete file.
1860
80134cf5
PA
18612014-10-17 Pedro Alves <palves@redhat.com>
1862
1863 * remote.c (clear_threads_listing_context): Move higher up, out of
1864 the HAVE_LIBEXPAT guard.
1865
89c7137f
TG
18662014-10-16 Tristan Gingold <gingold@adacore.com>
1867
1868 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1869 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1870 on amd64.
1871
44ee4a52
PA
18722014-10-15 Pedro Alves <palves@redhat.com>
1873
1874 * dec-thread.c (dec_thread_count_gdb_threads)
1875 (dec_thread_add_gdb_thread): Delete.
1876 (dec_thread_update_thread_list): Delete.
1877 (dec_thread_find_new_threads): Rename to ...
1878 (dec_thread_update_thread_list): ... this. Delete GDB-size
1879 threads that are no longer found in dec_thread_list.
1880 (resync_thread_list): Delete.
1881 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1882 resync_thread_list.
1883
ab970af1
PA
18842014-10-15 Pedro Alves <palves@redhat.com>
1885
1886 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1887 * remote.c (remote_update_thread_list): Skip calling prune_threads
1888 if any thread listing method is supported, and instead walk over
1889 the set of remote threads listed, deleting those that are not
1890 found in GDB's thread list.
1891
e8032dde
PA
18922014-10-15 Pedro Alves <palves@redhat.com>
1893
1894 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1895 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1896 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1897 (bsd_uthread_target): Adjust.
1898 * corelow.c (core_open): Adjust.
1899 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1900 (dec_thread_update_thread_list): New function.
1901 (init_dec_thread_ops): Adjust.
1902 * gdbthread.h (prune_threads): New declaration.
1903 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1904 (thread_db_update_thread_list): ... this. Call prune_threads.
1905 (init_thread_db_ops): Adjust.
1906 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1907 (procfs_update_thread_list): ... this. Call prune_threads.
1908 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1909 Adjust.
1910 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1911 (obsd_update_thread_list): ... this. Call prune_threads.
1912 (obsd_add_target): Adjust.
1913 * procfs.c (procfs_target): Adjust.
1914 (procfs_notice_thread): Update comment.
1915 (procfs_find_new_threads): Rename to ...
1916 (procfs_update_thread_list): ... this. Call prune_threads.
1917 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1918 comment.
1919 (ravenscar_wait): Adjust.
1920 (ravenscar_find_new_threads): Rename to ...
1921 (ravenscar_update_thread_list): ... this. Call prune_threads.
1922 (init_ravenscar_thread_ops): Adjust.
1923 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1924 (record_btrace_update_thread_list): ... this. Adjust comment.
1925 (init_record_btrace_ops): Adjust.
1926 * remote.c (remote_threads_info): Rename to ...
1927 (remote_update_thread_list): ... this. Call prune_threads.
1928 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1929 Adjust.
1930 * sol-thread.c (check_for_thread_db): Adjust.
1931 (sol_find_new_threads_callback): Rename to ...
1932 (sol_update_thread_list_callback): ... this.
1933 (sol_find_new_threads): Rename to ...
1934 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1935 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1936 * target-delegates.c: Regenerate.
1937 * target.c (target_find_new_threads): Rename to ...
1938 (target_update_thread_list): ... this.
1939 * target.h (struct target_ops): Rename to_find_new_threads field
1940 to to_update_thread_list.
1941 (target_find_new_threads): Rename to ...
1942 (target_update_thread_list): ... this.
1943 * thread.c (prune_threads): Make extern.
1944 (update_thread_list): Adjust.
1945
6dc54d91
PA
19462014-10-15 Pedro Alves <palves@redhat.com>
1947
1948 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1949 Add describing comment. Return -1 if the qL packet is not
1950 supported.
1951 (struct thread_item, thread_item_t): Move higher up in
1952 the file. Add comments.
1953 (struct threads_parsing_context): Move higher up in
1954 the file, add comments, and remote to ...
1955 (struct threads_listing_context): ... this.
1956 (remote_newthread_step): Don't add the thread to GDB's thread
1957 database here. Instead push it to the thread_listing_context
1958 list.
1959 (remote_find_new_threads): Rename to ...
1960 (remote_get_threads_with_ql): ... this. Add target_ops and
1961 targets_listing_context parameters. Pass down context.
1962 (start_thread): Adjust.
1963 (clear_threads_parsing_context): Rename to ...
1964 (clear_threads_listing_context): ... this.
1965 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1966 remote_threads_info.
1967 (remote_get_threads_with_qthreadinfo): Ditto.
1968 (remote_threads_info): Reimplement.
1969
36728e82
PA
19702014-10-15 Pedro Alves <palves@redhat.com>
1971
1972 * infrun.c (resume): Don't force displaced-stepping for all
1973 single-steps on software single-stepping archs.
1974
34b7e8a6
PA
19752014-10-15 Pedro Alves <palves@redhat.com>
1976
1977 * breakpoint.c (single_step_breakpoints): Delete global.
1978 (insert_single_step_breakpoint): Adjust to store the breakpoint
1979 pointer in the current thread.
1980 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1981 (cancel_single_step_breakpoints): Delete functions.
1982 (breakpoint_has_location_inserted_here): Make extern.
1983 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1984 breakpoint list.
1985 * breakpoint.h (breakpoint_has_location_inserted_here): New
1986 declaration.
1987 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1988 (cancel_single_step_breakpoints): Remove declarations.
1989 * gdbthread.h (struct thread_control_state)
1990 <single_step_breakpoints>: New field.
1991 (delete_single_step_breakpoints)
1992 (thread_has_single_step_breakpoints_set)
1993 (thread_has_single_step_breakpoint_here): New declarations.
1994 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1995 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1996 (singlestep_pc): Delete globals.
1997 (infrun_thread_ptid_changed): Remove references to removed
1998 globals.
1999 (resume_cleanups): Delete the current thread's single-step
2000 breakpoints.
2001 (maybe_software_singlestep): Remove references to removed globals.
2002 (resume): Adjust to use thread_has_single_step_breakpoints_set and
2003 delete_single_step_breakpoints.
2004 (init_wait_for_inferior): Remove references to removed globals.
2005 (delete_thread_infrun_breakpoints): Delete the thread's
2006 single-step breakpoints too.
2007 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
2008 single-step breakpoints here.
2009 (delete_stopped_threads_single_step_breakpoints): New function.
2010 (adjust_pc_after_break): Adjust to use
2011 thread_has_single_step_breakpoints_set.
2012 (handle_inferior_event): Remove references to removed globals.
2013 Use delete_stopped_threads_single_step_breakpoints.
2014 (handle_signal_stop): Adjust to per-thread single-step
2015 breakpoints. Swap test order to do cheaper tests first.
2016 (switch_back_to_stepped_thread): Extend debug output. Remove
2017 references to removed globals.
2018 * record-full.c (record_full_wait_1): Adjust to per-thread
2019 single-step breakpoints.
2020 * thread.c (delete_single_step_breakpoints)
2021 (thread_has_single_step_breakpoints_set)
2022 (thread_has_single_step_breakpoint_here): New functions.
2023 (clear_thread_inferior_resources): Also delete the thread's
2024 single-step breakpoints.
2025
5b834a0a
PA
20262014-10-15 Pedro Alves <palves@redhat.com>
2027
2028 * thread.c (delete_thread_breakpoint): New function.
2029 (delete_step_resume_breakpoint)
2030 (delete_exception_resume_breakpoint): Use it.
2031 (delete_at_next_stop): New function.
2032 (clear_thread_inferior_resources): Use delete_at_next_stop.
2033
a1fd2fa5
PA
20342014-10-15 Pedro Alves <palves@redhat.com>
2035
2036 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
2037 (breakpoint_inserted_here_p): ... here. Remove special case for
2038 software single-step breakpoints.
2039 (find_non_raw_software_breakpoint_inserted_here): Inline ...
2040 (software_breakpoint_inserted_here_p): ... here. Remove special
2041 case for software single-step breakpoints.
2042 (bp_target_info_copy_insertion_state)
2043 (deprecated_insert_raw_breakpoint)
2044 (deprecated_remove_raw_breakpoint): Delete functions.
2045 * breakpoint.h (deprecated_insert_raw_breakpoint)
2046 (deprecated_remove_raw_breakpoint): Remove declarations.
2047
7c16b83e
PA
20482014-10-15 Pedro Alves <palves@redhat.com>
2049
2050 PR breakpoints/9649
2051 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
2052 Delete array globals.
2053 (single_step_breakpoints): New global.
2054 (breakpoint_xfer_memory): Remove special handling for single-step
2055 breakpoints.
2056 (update_breakpoints_after_exec): Delete bp_single_step
2057 breakpoints.
2058 (detach_breakpoints): Remove special handling for single-step
2059 breakpoints.
2060 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
2061 (bpstat_stop_status): Add comment.
2062 (bpstat_what, bptype_string, print_one_breakpoint_location)
2063 (adjust_breakpoint_address, init_bp_location): Handle
2064 bp_single_step.
2065 (new_single_step_breakpoint): New function.
2066 (set_momentary_breakpoint, bkpt_remove_location): Remove special
2067 handling for single-step breakpoints.
2068 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
2069 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
2070 Rewrite.
2071 (detach_single_step_breakpoints, find_single_step_breakpoint):
2072 Delete functions.
2073 (breakpoint_has_location_inserted_here): New function.
2074 (single_step_breakpoint_inserted_here_p): Rewrite.
2075 * breakpoint.h: Remove FIXME.
2076 (enum bptype) <bp_single_step>: New enum value.
2077 (insert_single_step_breakpoint): Update comment.
2078 * infrun.c (resume_cleanups)
2079 (delete_step_thread_step_resume_breakpoint): Remove single-step
2080 breakpoints.
2081 (fetch_inferior_event): Install a cleanup that removes infrun
2082 breakpoints.
2083 (switch_back_to_stepped_thread) <expect thread advanced also>:
2084 Clear step-over info.
2085
0cbcdb96
PA
20862014-10-15 Pedro Alves <palves@redhat.com>
2087
2088 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
2089 (delete_thread_infrun_breakpoints): New function, with parts
2090 salvaged from delete_step_resume_breakpoint_callback.
2091 (delete_step_thread_step_resume_breakpoint): Delete.
2092 (for_each_just_stopped_thread_callback_func): New typedef.
2093 (for_each_just_stopped_thread): New function.
2094 (delete_just_stopped_threads_infrun_breakpoints): New function.
2095 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
2096 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
2097 ... this. Adjust.
2098 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
2099
963f9c80
PA
21002014-10-15 Pedro Alves <palves@redhat.com>
2101
2102 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2103 trying to step past a non-steppable watchpoint.
2104 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2105 field.
2106 * infrun.c (struct step_over_info): Add new field
2107 'nonsteppable_watchpoint_p' and adjust comments.
2108 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2109 Adjust.
2110 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2111 (stepping_past_nonsteppable_watchpoint): New function.
2112 (step_over_info_valid_p): Also return true if stepping past a
2113 nonsteppable watchpoint.
2114 (proceed): Adjust call to set_step_over_info. Remove reference to
2115 init_infwait_state.
2116 (init_wait_for_inferior): Remove reference to init_infwait_state.
2117 (waiton_ptid): Delete global.
2118 (struct execution_control_state)
2119 <stepped_after_stopped_by_watchpoint>: Delete field.
2120 (wait_for_inferior, fetch_inferior_event): Always pass
2121 minus_one_ptid to target_wait.
2122 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2123 field.
2124 (init_infwait_state): Delete function.
2125 (handle_inferior_event): Remove infwait_state handling.
2126 (handle_signal_stop) <watchpoints handling>: Adjust after
2127 stepped_after_stopped_by_watchpoint removal. Don't remove
2128 breakpoints here nor set infwait_state. Set the thread's
2129 stepping_over_watchpoint flag, and call keep_going instead.
2130 (keep_going): Handle stepping_over_watchpoint. Adjust
2131 set_step_over_info calls.
2132 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2133 function.
2134
6cc83d2a
PA
21352014-10-15 Pedro Alves <palves@redhat.com>
2136
2137 * infrun.c (step_over_info_valid_p): New function.
2138 (resume): Use step_over_info_valid_p instead of checking the
2139 threads's trap_expected flag.
2140
6979730b
DE
21412014-10-15 Doug Evans <dje@google.com>
2142 Walfred Tedeschi <walfred.tedeschi@intel.com>
2143
2144 PR python/17364
2145 * python/lib/gdb/__init__.py (packages): Add "printer".
2146 * python/lib/gdb/command/bound_registers.py: Moved to ...
2147 * python/lib/gdb/printer/bound_registers.py: ... here.
2148 Add printer to global set of builtin printers. Rename printer from
2149 "bound" to "mpx_bound128".
2150 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2151 registered as global "builtin" printer.
2152 (add_builtin_pretty_printer): New function.
2153 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2154 gdb/printer/__init__.py.
2155
35a49624
IB
21562014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2157
2158 * Makefile.in (SFILES): Remove d-support.c.
2159 (COMMON_OBS): Remove d-support.o.
2160 * d-lang.h (d_parse_symbol): Remove declaration.
2161 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2162 * d-support.c: Remove file.
2163
8fa0c4f8
AA
21642014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2165
2166 * gdb/infrun.c (process_event_stop_test): Apply
2167 gdbarch_addr_bits_remove to longjmp resume address.
2168
3666da81
PA
21692014-10-15 Pedro Alves <palves@redhat.com>
2170
2171 * regformats/microblaze.dat: Delete file.
2172
449aa9df
AKA
21732014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2174
2175 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2176 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2177
ebb8ece2
SC
21782014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2179
2180 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2181 as non-trivial.
2182
82c48ac7
SC
21832014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2184
2185 PR c++/13403
2186 PR c++/15154
2187 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2188 with qualified args.
2189
c40cc657
JB
21902014-10-14 Joel Brobecker <brobecker@adacore.com>
2191
2192 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2193 of the case where the second operand is a pointer.
2194 <BINOP_SUB>: Likewise.
2195
0ea5cda8
SDJ
21962014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2197
2198 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2199 only if it is not NULL.
2200 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2201 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2202 (struct probe_ops) <clear_semaphore>: Likewise.
2203 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2204 not NULL.
2205 (stop_tracing): Likewise, for clear_semaphore.
2206
f7088df3
SDJ
22072014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2208
2209 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2210 using language_c, instead of current_language.
2211
4e1bbde0
DE
22122014-10-13 Doug Evans <dje@google.com>
2213
6ff5a0f6 2214 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 2215 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 2216 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
2217 (pspy_new, pspace_to_pspace_object): Call it.
2218
c780cc2f
JK
22192014-10-13 Miroslav Franc <mfranc@redhat.com>
2220 Jan Kratochvil <jan.kratochvil@redhat.com>
2221
2222 Fix "save breakpoints" for "catch" command.
2223 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2224 newline.
2225
99894e11
JK
22262014-10-12 Miroslav Franc <mfranc@redhat.com>
2227
2228 Fix "save breakpoints" for "disable $bpnum" command.
2229 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2230
3831839c
PA
22312014-10-10 Pedro Alves <palves@redhat.com>
2232
2233 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2234 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2235 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2236 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2237 and been removed.
2238 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2239 * configure.ac: Remove references to IRIX.
2240 * configure.host: Add *-*-irix* to the obsolete hosts section.
2241 Remove all other references to irix.
2242 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2243 Delete files.
2244
cc3afae2
AKA
22452014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2246
2247 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2248 isn't valid, release the tdesc arch data and return NULL.
2249
cdfa0b0a
PA
22502014-10-10 Pedro Alves <palves@redhat.com>
2251
2252 * linux-tdep.c: Include observer.h.
2253 (linux_inferior_data): New global.
2254 (struct linux_info): New structure.
2255 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2256 (get_linux_inferior_data): New functions.
2257 (linux_vsyscall_range): Rename to ...
2258 (linux_vsyscall_range_raw): ... this.
2259 (linux_vsyscall_range): New function; handles caching.
2260 (_initialize_linux_tdep): Register linux_inferior_data. Install
2261 inferior_exit and inferior_appeared observers.
2262
8b9a549d
PA
22632014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2264 Pedro Alves <palves@redhat.com>
2265
2266 PR symtab/14466
2267 * solib-svr4.c (svr4_read_so_list): Rename to ...
2268 (svr4_current_sos_1): ... this and change the function comment.
2269 (svr4_current_sos): New function.
2270
3437254d
PA
22712014-10-10 Pedro Alves <palves@redhat.com>
2272
2273 * arch-utils.c (default_vsyscall_range): New function.
2274 * arch-utils.h (default_vsyscall_range): New declaration.
2275 * gdbarch.sh (vsyscall_range): New hook.
2276 * gdbarch.h, gdbarch.c: Regenerate.
2277 * linux-tdep.c (linux_vsyscall_range): New function.
2278 (linux_init_abi): Install linux_vsyscall_range as
2279 vsyscall_range gdbarch hook.
2280 * memrange.c (address_in_mem_range): New function.
2281 * memrange.h (address_in_mem_range): New declaration.
2282 * symfile-mem.c (find_vdso_size): Delete function.
2283 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2284
31cc0b80
PA
22852014-10-10 Pedro Alves <palves@redhat.com>
2286
2287 * infrun.c (normal_stop): Fix typo in comment.
2288
3e3286a2
SDJ
22892014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2290
2291 PR tdep/9390
2292 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2293 typo when using logical AND to determine instruction type.
2294
fcbdedf8
YQ
22952014-10-09 Yao Qi <yao@codesourcery.com>
2296
2297 * infrun.c (handle_signal_stop): Remove local variable
2298 'printed'.
2299
db984616
SS
23002014-10-08 Stan Shebs <stan@codesourcery.com>
2301
2302 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2303
3ba37e6c
GB
23042014-10-08 Gary Benson <gbenson@redhat.com>
2305
2306 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2307
a442d071
GB
23082014-10-08 Gary Benson <gbenson@redhat.com>
2309
2310 * common/common-defs.h: Include common-exceptions.h.
2311 * exceptions.h: Do not include common-exceptions.h.
2312
6f1947e8
GB
23132014-10-08 Gary Benson <gbenson@redhat.com>
2314
2315 * common/common-defs.h: Include cleanups.h.
2316 * common/common-exceptions.c: Do not include cleanups.h.
2317 * utils.h: Likewise.
2318
c765fdb9
GB
23192014-10-08 Gary Benson <gbenson@redhat.com>
2320
2321 * ada-lang.c: Do not include exceptions.h.
2322 * ada-valprint.c: Likewise.
2323 * amd64-tdep.c: Likewise.
2324 * auto-load.c: Likewise.
2325 * block.c: Likewise.
2326 * break-catch-throw.c: Likewise.
2327 * breakpoint.c: Likewise.
2328 * btrace.c: Likewise.
2329 * c-lang.c: Likewise.
2330 * cli/cli-cmds.c: Likewise.
2331 * cli/cli-interp.c: Likewise.
2332 * cli/cli-script.c: Likewise.
2333 * completer.c: Likewise.
2334 * corefile.c: Likewise.
2335 * corelow.c: Likewise.
2336 * cp-abi.c: Likewise.
2337 * cp-support.c: Likewise.
2338 * cp-valprint.c: Likewise.
2339 * darwin-nat.c: Likewise.
2340 * dwarf2-frame-tailcall.c: Likewise.
2341 * dwarf2-frame.c: Likewise.
2342 * dwarf2loc.c: Likewise.
2343 * dwarf2read.c: Likewise.
2344 * eval.c: Likewise.
2345 * event-loop.c: Likewise.
2346 * event-top.c: Likewise.
2347 * f-valprint.c: Likewise.
2348 * frame-unwind.c: Likewise.
2349 * frame.c: Likewise.
2350 * gdbtypes.c: Likewise.
2351 * gnu-v2-abi.c: Likewise.
2352 * gnu-v3-abi.c: Likewise.
2353 * guile/scm-auto-load.c: Likewise.
2354 * guile/scm-breakpoint.c: Likewise.
2355 * guile/scm-cmd.c: Likewise.
2356 * guile/scm-frame.c: Likewise.
2357 * guile/scm-lazy-string.c: Likewise.
2358 * guile/scm-param.c: Likewise.
2359 * guile/scm-symbol.c: Likewise.
2360 * guile/scm-type.c: Likewise.
2361 * hppa-hpux-tdep.c: Likewise.
2362 * i386-tdep.c: Likewise.
2363 * inf-loop.c: Likewise.
2364 * infcall.c: Likewise.
2365 * infcmd.c: Likewise.
2366 * infrun.c: Likewise.
2367 * interps.c: Likewise.
2368 * interps.h: Likewise.
2369 * jit.c: Likewise.
2370 * linespec.c: Likewise.
2371 * linux-nat.c: Likewise.
2372 * linux-thread-db.c: Likewise.
2373 * m32r-rom.c: Likewise.
2374 * main.c: Likewise.
2375 * memory-map.c: Likewise.
2376 * mi/mi-cmd-break.c: Likewise.
2377 * mi/mi-cmd-stack.c: Likewise.
2378 * mi/mi-interp.c: Likewise.
2379 * mi/mi-main.c: Likewise.
2380 * monitor.c: Likewise.
2381 * nto-procfs.c: Likewise.
2382 * objc-lang.c: Likewise.
2383 * p-valprint.c: Likewise.
2384 * parse.c: Likewise.
2385 * ppc-linux-tdep.c: Likewise.
2386 * printcmd.c: Likewise.
2387 * probe.c: Likewise.
2388 * python/py-auto-load.c: Likewise.
2389 * python/py-breakpoint.c: Likewise.
2390 * python/py-cmd.c: Likewise.
2391 * python/py-finishbreakpoint.c: Likewise.
2392 * python/py-frame.c: Likewise.
2393 * python/py-framefilter.c: Likewise.
2394 * python/py-function.c: Likewise.
2395 * python/py-gdb-readline.c: Likewise.
2396 * python/py-inferior.c: Likewise.
2397 * python/py-infthread.c: Likewise.
2398 * python/py-lazy-string.c: Likewise.
2399 * python/py-linetable.c: Likewise.
2400 * python/py-param.c: Likewise.
2401 * python/py-prettyprint.c: Likewise.
2402 * python/py-symbol.c: Likewise.
2403 * python/py-type.c: Likewise.
2404 * python/py-value.c: Likewise.
2405 * python/python-internal.h: Likewise.
2406 * python/python.c: Likewise.
2407 * record-btrace.c: Likewise.
2408 * record-full.c: Likewise.
2409 * regcache.c: Likewise.
2410 * remote-fileio.c: Likewise.
2411 * remote-mips.c: Likewise.
2412 * remote.c: Likewise.
2413 * rs6000-aix-tdep.c: Likewise.
2414 * rs6000-nat.c: Likewise.
2415 * skip.c: Likewise.
2416 * solib-darwin.c: Likewise.
2417 * solib-dsbt.c: Likewise.
2418 * solib-frv.c: Likewise.
2419 * solib-ia64-hpux.c: Likewise.
2420 * solib-spu.c: Likewise.
2421 * solib-svr4.c: Likewise.
2422 * solib.c: Likewise.
2423 * spu-tdep.c: Likewise.
2424 * stack.c: Likewise.
2425 * stap-probe.c: Likewise.
2426 * symfile-mem.c: Likewise.
2427 * symmisc.c: Likewise.
2428 * target.c: Likewise.
2429 * thread.c: Likewise.
2430 * top.c: Likewise.
2431 * tracepoint.c: Likewise.
2432 * tui/tui-interp.c: Likewise.
2433 * typeprint.c: Likewise.
2434 * utils.c: Likewise.
2435 * valarith.c: Likewise.
2436 * valops.c: Likewise.
2437 * valprint.c: Likewise.
2438 * value.c: Likewise.
2439 * varobj.c: Likewise.
2440 * windows-nat.c: Likewise.
2441 * xml-support.c: Likewise.
2442
484933d1
MR
24432014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2444
2445 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2446 name implies.
2447 (extended_mips16_next_pc): Update accordingly.
2448
ab50adb6
MR
24492014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2450
2451 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2452 function.
2453 (micromips_instruction_is_compact_branch): Likewise.
2454 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2455 or a compact jump, reaching a jump delay slot, or seeing a
2456 second non-prologue instruction.
2457 (micromips_scan_prologue): Also terminate scanning upon seeing a
2458 compact branch or jump, or reaching a branch or jump delay slot.
2459 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2460 or jump delay slot, or seeing a second non-prologue instruction.
2461 (mips32_instruction_has_delay_slot): Retain instruction
2462 examination code only, update arguments accordingly and move
2463 instruction fetch pieces to...
2464 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2465 (micromips_instruction_has_delay_slot): Likewise and to...
2466 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2467 (mips16_instruction_has_delay_slot): Likewise and to...
2468 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2469 (mips_single_step_through_delay): Update accordingly.
2470 (mips_adjust_breakpoint_address): Likewise.
2471
ae790652
MR
24722014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2473
2474 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2475 !mustbe32 also return 1 for 32-bit instructions.
2476 (mips16_instruction_has_delay_slot): Likewise. Add an
2477 explanatory comment.
2478
9b807e7b
MR
24792014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2480
2481 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2482 symbols special.
2483
0d5ed153
MR
24842014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2485
2486 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2487 update comments.
2488 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2489 for the breakpoint's address. Don't preinitialize `placed_size'.
2490 (insert_bp_location): Set `reqstd_address' rather than
2491 `placed_address'.
2492 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2493 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2494 address.
2495 (bkpt_remove_location): Likewise.
2496 (deprecated_insert_raw_breakpoint): Likewise.
2497 (deprecated_remove_raw_breakpoint): Likewise.
2498 (find_single_step_breakpoint): Likewise.
2499 * mem-break.c (default_memory_insert_breakpoint): Use
2500 `reqstd_address' for the breakpoint's address. Don't set
2501 `placed_address' or `placed_size' if breakpoint contents couldn't
2502 have been determined.
2503 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2504 the breakpoint's address.
2505 (remote_insert_hw_breakpoint): Likewise. Don't set
2506 `placed_address' or `placed_size' if breakpoint couldn't have been
2507 set.
2508 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2509 `reqstd_address' for the breakpoint's address.
2510 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2511 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2512 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2513 * microblaze-linux-tdep.c
2514 (microblaze_linux_memory_remove_breakpoint): Likewise.
2515 * monitor.c (monitor_insert_breakpoint): Likewise.
2516 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2517 (procfs_insert_hw_breakpoint): Likewise.
2518 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2519 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2520 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2521 * remote-mips.c (mips_insert_breakpoint): Likewise.
2522 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2523
3e871532
LM
25242014-10-03 Luis Machado <lgustavo@codesourcery.com>
2525
2526 * valops.c (value_assign): Check for bit field assignments
2527 before calling architecture-specific register value
2528 conversion functions.
2529
ec48dc8b
PM
25302014-10-03 Pierre Muller <muller@sourceware.org>
2531
2532 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2533
b57bacec
PA
25342014-10-02 Pedro Alves <palves@redhat.com>
2535
2536 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2537 threads_are_executing.
2538 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2539 describing comment.
2540 * gdbthread.h (threads_are_executing): Declare.
2541 (handle_signal_stop) <random signals>: Don't print about the
2542 signal here if stopping.
2543 (end_stepping_range): Don't notify observers here.
2544 (normal_stop): Update the thread list. If stopped by a random
2545 signal or a stepping range ended, notify observers.
2546 * thread.c (threads_executing): New global.
2547 (init_thread_list): Clear 'threads_executing'.
2548 (set_executing): Set or clear 'threads_executing'.
2549 (threads_are_executing): New function.
2550 (update_threads_executing): New function.
2551 (update_thread_list): Use it.
2552
13fd3ff3
PA
25532014-10-02 Pedro Alves <palves@redhat.com>
2554
2555 PR breakpoints/17431
2556 * breakpoint.c (update_breakpoints_after_exec): Don't create
2557 overlay, longjmp, std terminate nor exception breakpoints here.
2558
32990ada
PA
25592014-10-02 Pedro Alves <palves@redhat.com>
2560
2561 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2562 Adjust comments.
2563 * inferior.c (find_inferior_for_program_space): Give preference to
2564 the current inferior.
2565 * inferior.h (find_inferior_for_program_space): Update comment.
2566 * progspace.c (switch_to_program_space_and_thread): Prefer the
2567 current inferior if it's bound to the program space requested. If
2568 the inferior found doesn't have a PID yet, don't bother looking up
2569 a thread.
2570 * progspace.h (switch_to_program_space_and_thread): Adjust
2571 comment.
2572 * thread.c (any_thread_of_process, any_live_thread_of_process):
2573 Give preference to the current thread.
2574
0fec99e8
PA
25752014-10-01 Pedro Alves <palves@redhat.com>
2576
2577 * breakpoint.c (insert_bp_location): Error out if inserting a
2578 software breakpoint at a read-only address.
2579 * target.c (memory_xfer_check_region): New function, factored out
2580 from ...
2581 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2582 ULONGEST.
2583 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2584 against the memory region attributes.
2585
2ddf4301
SM
25862014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2587
2588 * NEWS: Announce new exit-code field in -list-thread-groups
2589 output.
2590 * inferior.c (exit_inferior_1): Don't clear exit code.
2591 (inferior_appeared): Clear exit code.
2592 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2593 code.
2594
5fdeec1d
PA
25952014-10-01 Pedro Alves <palves@redhat.com>
2596
2597 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2598 GENERATED" along with emacs/vi read-only markers.
2599 * regformats/aarch64.dat: Regenerate.
2600 * regformats/arm-with-iwmmxt.dat: Regenerate.
2601 * regformats/arm-with-neon.dat: Regenerate.
2602 * regformats/arm-with-vfpv2.dat: Regenerate.
2603 * regformats/arm-with-vfpv3.dat: Regenerate.
2604 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2605 * regformats/i386/amd64-avx.dat: Regenerate.
2606 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2607 * regformats/i386/amd64-avx512.dat: Regenerate.
2608 * regformats/i386/amd64-linux.dat: Regenerate.
2609 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2610 * regformats/i386/amd64-mpx.dat: Regenerate.
2611 * regformats/i386/amd64.dat: Regenerate.
2612 * regformats/i386/i386-avx-linux.dat: Regenerate.
2613 * regformats/i386/i386-avx.dat: Regenerate.
2614 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2615 * regformats/i386/i386-avx512.dat: Regenerate.
2616 * regformats/i386/i386-linux.dat: Regenerate.
2617 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2618 * regformats/i386/i386-mmx.dat: Regenerate.
2619 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2620 * regformats/i386/i386-mpx.dat: Regenerate.
2621 * regformats/i386/i386.dat: Regenerate.
2622 * regformats/i386/x32-avx-linux.dat: Regenerate.
2623 * regformats/i386/x32-avx.dat: Regenerate.
2624 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2625 * regformats/i386/x32-avx512.dat: Regenerate.
2626 * regformats/i386/x32-linux.dat: Regenerate.
2627 * regformats/i386/x32.dat: Regenerate.
2628 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2629 * regformats/mips-dsp-linux.dat: Regenerate.
2630 * regformats/mips-linux.dat: Regenerate.
2631 * regformats/mips64-dsp-linux.dat: Regenerate.
2632 * regformats/mips64-linux.dat: Regenerate.
2633 * regformats/nios2-linux.dat: Regenerate.
2634 * regformats/rs6000/powerpc-32.dat: Regenerate.
2635 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2636 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2637 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2638 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2639 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2640 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2641 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2642 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2643 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2644 * regformats/s390-linux32.dat: Regenerate.
2645 * regformats/s390-linux32v1.dat: Regenerate.
2646 * regformats/s390-linux32v2.dat: Regenerate.
2647 * regformats/s390-linux64.dat: Regenerate.
2648 * regformats/s390-linux64v1.dat: Regenerate.
2649 * regformats/s390-linux64v2.dat: Regenerate.
2650 * regformats/s390-te-linux64.dat: Regenerate.
2651 * regformats/s390x-linux64.dat: Regenerate.
2652 * regformats/s390x-linux64v1.dat: Regenerate.
2653 * regformats/s390x-linux64v2.dat: Regenerate.
2654 * regformats/s390x-te-linux64.dat: Regenerate.
2655 * regformats/tic6x-c62x-linux.dat: Regenerate.
2656 * regformats/tic6x-c62x.dat: Regenerate.
2657 * regformats/tic6x-c64x-linux.dat: Regenerate.
2658 * regformats/tic6x-c64x.dat: Regenerate.
2659 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2660 * regformats/tic6x-c64xp.dat: Regenerate.
2661
db74e4ba
PA
26622014-10-01 Pedro Alves <palves@redhat.com>
2663
2664 * features/Makefile: Update comments.
2665 (XMLTOC): List all xml files we build C files from.
2666 (clean-cfiles): New rule.
2667
d63f2f84
PA
26682014-10-01 Pedro Alves <palves@redhat.com>
2669
2670 * features/i386/amd64-avx512-linux.c: Regenerate.
2671 * features/i386/amd64-avx512.c: Regenerate.
2672 * features/i386/x32-avx512-linux.c: Regenerate.
2673 * features/i386/x32-avx512.c: Regenerate.
2674
20ad026d
PA
26752014-10-01 Pedro Alves <palves@redhat.com>
2676
2677 * features/Makefile (WHICH): Remove arm-with-m,
2678 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2679
acc9fe45
PA
26802014-10-01 Pedro Alves <palves@redhat.com>
2681
2682 * features/Makefile (clean): New rule.
2683
e001e535
PA
26842014-10-01 Pedro Alves <palves@redhat.com>
2685
2686 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2687 (zmm14h): Add missing end quotes.
2688
bdc14417
PA
26892014-10-01 Pedro Alves <palves@redhat.com>
2690
2691 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2692 * features/aarch64.c: Regenerate.
2693
d83ad864
DB
26942014-09-30 Don Breazeal <donb@codesourcery.com>
2695
2696 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2697 code so as to work with follow_fork_inferior.
2698 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2699 (inf_ttrace_create_inferior): Remove reference to
2700 inf_ttrace_vfork_ppid.
2701 (inf_ttrace_attach): Ditto.
2702 (inf_ttrace_detach): Ditto.
2703 (inf_ttrace_kill): Use current_inferior instead of
2704 inf_ttrace_vfork_ppid.
2705 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2706 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2707 inferior away from the parent.
2708 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2709 target_follow_fork.
2710 (follow_fork_inferior): New function.
2711 (follow_inferior_reset_breakpoints): Make function static.
2712 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2713 * linux-nat.c (linux_child_follow_fork): Move target-independent
2714 code to infrun.c:follow_fork_inferior.
2715
29082443
AA
27162014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2717
2718 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2719 * gdbarch.c: Regenerate.
2720 * gdbarch.h: Likewise.
2721 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2722 gdbarch method 'regset_from_core_section'.
2723 (get_core_register_section): Remove handling for the case that
2724 regset == NULL and regset_from_core_section is defined.
2725 (get_core_registers): Drop check for deleted method.
2726 * procfs.c (procfs_do_thread_registers): Adjust comment.
2727
f968fe80
AA
27282014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2729
2730 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2731 (linux_nat_make_corefile_notes): Remove.
2732 (linux_target_install_ops): Do not set target method
2733 'make_corefile_notes'.
2734 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2735 Remove field.
2736 (linux_corefile_thread_callback): Instead of args->collect, call
2737 linux_collect_thread_registers.
2738 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2739 NULL unless there is a regset iterator.
2740 (linux_make_corefile_notes_1): Remove.
2741 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2742 by linux_make_corefile_notes.
2743 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2744
174ad59a
AA
27452014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2746
2747 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2748 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2749 Remove.
2750 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2751
97094034
AA
27522014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2753
2754 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2755 (xtensa_iterate_over_regset_sections): New.
2756 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2757
f73d3ce7
AA
27582014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2759
2760 * vax-tdep.c (vax_regset_from_core_section): Remove.
2761 (vax_iterate_over_regset_sections): New.
2762 (vax_gdbarch_init): Adjust gdbarch initialization.
2763
cb24567a
AA
27642014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2765
2766 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2767 (tilegx_regset_from_core_section): Remove.
2768 (tilegx_iterate_over_regset_sections): New.
2769 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2770
e5139de8
AA
27712014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2772
2773 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2774 (sparc_iterate_over_regset_sections): New.
2775 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2776 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2777 targets.
2778 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2779 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2780 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2781 target method 'make_corefile_notes'.
2782
c6d41a6f
AA
27832014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2784
2785 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2786 'sizeof_gregset' and 'sizeof_fpregset'.
2787 * sh-tdep.c (sh_regset_from_core_section): Remove.
2788 (sh_iterate_over_regset_sections): New.
2789 (sh_gdbarch_init): Adjust gdbarch initialization.
2790 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2791 sizeof_fpregset.
2792 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2793 'sizeof_gregset'.
2794
9845a0b5
AA
27952014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2796
2797 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2798 (score7_linux_iterate_over_regset_sections): New.
2799 (score_gdbarch_init): Adjust gdbarch initialization.
2800
23ea9aeb
AA
28012014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2802
2803 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2804 FreeBSD targets.
2805 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2806 method 'make_corefile_notes'.
2807 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2808 (ppcfbsd_regset_from_core_section): Remove.
2809 (ppcfbsd_iterate_over_regset_sections): New.
2810 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2811 initialization.
2812 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2813 (ppcnbsd_iterate_over_regset_sections): New.
2814 (ppcnbsd_init_abi): Adjust.
2815 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2816 (ppcobsd_iterate_over_regset_sections): New.
2817 (ppcobsd_init_abi): Adjust.
2818 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2819 (rs6000_aix_iterate_over_regset_sections): New.
2820 (rs6000_aix_init_osabi): Adjust.
2821
c5b8d704
AA
28222014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2823
2824 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2825 (nios2_regset_from_core_section): Remove.
2826 (nios2_iterate_over_regset_sections): New.
2827 (nios2_linux_init_abi): Adjust gdbarch initialization.
2828
3636e608
AA
28292014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2830
2831 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2832 (am33_iterate_over_regset_sections): New.
2833 (am33_linux_init_osabi): Adjust gdbarch initialization.
2834
d4036235
AA
28352014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2836
2837 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2838 (mips_linux_iterate_over_regset_sections): New.
2839 (mips_linux_init_abi): Adjust gdbarch initialization.
2840 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2841 (mips64obsd_iterate_over_regset_sections): New.
2842 (mips64obsd_init_abi): Adjust.
2843 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2844 (mipsnbsd_iterate_over_regset_sections): New.
2845 (mipsnbsd_init_abi): Adjust.
2846
b61ddd6e
AA
28472014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2848
2849 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2850 (m88k_iterate_over_regset_sections): New.
2851 (m88k_gdbarch_init): Adjust gdbarch initialization.
2852
55a2906a
AA
28532014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2854
2855 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2856 (ia64_linux_iterate_over_regset_sections): New.
2857 (ia64_linux_init_abi): Adjust gdbarch initialization.
2858
022c98ab
AA
28592014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2860
2861 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2862 (m68kbsd_iterate_over_regset_sections): New.
2863 (m68kbsd_init_abi): Adjust gdbarch initialization.
2864 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2865 (m68k_linux_iterate_over_regset_sections): New.
2866 (m68k_linux_init_abi): Adjust gdbarch initialization.
2867
5fac247f
AA
28682014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2869
2870 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2871 (m32r_linux_regset_from_core_section): Remove.
2872 (m32r_linux_iterate_over_regset_sections): New.
2873 (m32r_linux_init_abi): Adjust gdbarch initialization.
2874
490496c3
AA
28752014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2876
2877 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2878 (amd64obsd_iterate_over_regset_sections): New.
2879 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2880 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2881 Remove.
2882 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2883 regset_from_core_section initialization.
2884 * i386-tdep.c (i386_regset_from_core_section): Remove.
2885 (i386_iterate_over_regset_sections): New.
2886 (i386_gdbarch_init): Adjust gdbarch initialization.
2887 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2888 (i386_iterate_over_regset_sections): New prototype.
2889 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2890 Remove.
2891 (i386obsd_aout_iterate_over_regset_sections): New.
2892 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2893 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2894 targets.
2895 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2896 (amd64fbsd_init_abi): Call fbsd_init_abi.
2897 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2898 (i386fbsd4_init_abi): Call fbsd_init_abi.
2899 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2900 target method 'make_corefile_notes'.
2901 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2902
50c5eb53
AA
29032014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2904
2905 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2906 (hppa_hpux_iterate_over_regset_sections): New.
2907 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2908 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2909 (hppa_linux_iterate_over_regset_sections): New.
2910 (hppa_linux_init_abi): Adjust.
2911 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2912 (hppanbsd_iterate_over_regset_sections): New.
2913 (hppanbsd_init_abi): Adjust.
2914 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2915 (hppaobsd_iterate_over_regset_sections): New.
2916 (hppaobsd_init_abi): Adjust.
2917
66afae4f
AA
29182014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2919
2920 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2921 (frv_linux_iterate_over_regset_sections): New.
2922 (frv_linux_init_abi): Adjust gdbarch initialization.
2923
ed09174e
AA
29242014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2925
2926 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2927 (armbsd_iterate_over_regset_sections): New prototype.
2928 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2929 (armbsd_iterate_over_regset_sections): New.
2930 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2931 initialization.
2932
dff2166e
AA
29332014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2934
2935 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2936 (alpha_linux_iterate_over_regset_sections): New.
2937 (alpha_linux_init_abi): Adjust gdbarch initialization.
2938 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2939 prototype.
2940 (alphanbsd_iterate_over_regset_sections): New prototype.
2941
4108500a
AA
29422014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2943
2944 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2945 Remove.
2946 (aarch64_linux_iterate_over_regset_sections): New.
2947 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2948
a904c024
AA
29492014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2950
2951 * fbsd-tdep.c: New file.
2952 * fbsd-tdep.h: New file.
2953 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2954 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2955 (ALLDEPFILES): Add fbsd-tdep.c.
2956
8f0435f7
AA
29572014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2958
2959 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2960 parameter.
2961 * gdbarch.h: Regenerate.
2962 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2963 iterator.
2964 (get_core_register_section): Add parameter 'regset' and use it, if
2965 set. Add parameter 'min_size' and verify the bfd section size
2966 against it.
2967 (get_core_registers_cb): Add parameter 'regset' and pass it to
2968 get_core_register section. For the "standard" register sections
2969 ".reg" and ".reg2", set an appropriate default for human_name.
2970 (get_core_registers): Don't abort when the gdbarch has an iterator
2971 but no regset_from_core_section. Add NULL/0 for parameters
2972 'regset'/'min_size' in calls to get_core_register_section.
2973 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2974 'regset' and use it instead of calling the
2975 regset_from_core_section gdbarch method.
2976 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2977 * i386-tdep.c (i386_supply_xstateregset)
2978 (i386_collect_xstateregset, i386_xstateregset): Moved to
2979 i386-linux-tdep.c.
2980 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2981 .reg-xstate.
2982 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2983 core file support only if the regset iterator hasn't been set.
2984 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2985 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2986 Moved from i386-tdep.c and renamed to *_linux*.
2987 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2988 each callback invocation. Allow any .reg-xstate size when reading
2989 from a core file.
2990 * amd64-tdep.c (amd64_supply_xstateregset)
2991 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2992 amd64-linux-tdep.c.
2993 (amd64_regset_from_core_section): Remove.
2994 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2995 install an amd64-specific regset_from_core_section gdbarch method.
2996 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2997 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2998 Moved from amd64-tdep.c and renamed to *_linux*.
2999 (amd64_linux_iterate_over_regset_sections): Add regset parameter
3000 to each callback invocation. Allow any .reg-xstate size when
3001 reading from a core file.
3002 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
3003 (arm_linux_iterate_over_regset_sections): Add regset parameter to
3004 each callback invocation.
3005 (arm_linux_init_abi): No longer set the regset_from_core_section
3006 gdbarch method.
3007 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
3008 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
3009 each callback invocation.
3010 (ppc_linux_init_abi): No longer set the regset_from_core_section
3011 gdbarch method.
3012 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
3013 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
3014 (s390_regset_from_core_section): Remove.
3015 (s390_iterate_over_regset_sections): Add regset parameter to each
3016 callback invocation.
3017 (s390_gdbarch_init): No longer set the regset_from_core_section
3018 gdbarch method. Drop initialization of deleted tdep fields.
3019
5aa82d05
AA
30202014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
3021
3022 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
3023 (amd64_linux_iterate_over_regset_sections): New.
3024 (amd64_linux_init_abi_common): Don't install the regset section
3025 list, but the new iterator in gdbarch.
3026 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
3027 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
3028 (arm_linux_iterate_over_regset_sections): ...here. New function.
3029 (arm_linux_init_abi): Set iterator instead of section list.
3030 * corelow.c (get_core_registers_cb): New function, logic moved
3031 from...
3032 (get_core_registers): ...loop body here. Use new iterator method
3033 instead of walking through the regset section list.
3034 * gdbarch.sh: Remove 'core_regset_sections'. New method
3035 'iterate_over_regset_sections'. New typedef
3036 'iterate_over_regset_sections_cb'.
3037 * gdbarch.c: Regenerate.
3038 * gdbarch.h: Likewise.
3039 * i386-linux-tdep.c (i386_linux_regset_sections)
3040 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3041 Remove.
3042 (i386_linux_iterate_over_regset_sections): New.
3043 (i386_linux_init_abi): Don't choose a regset section list, but
3044 install new iterator in gdbarch.
3045 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
3046 (linux_collect_regset_section_cb): New function, logic moved
3047 from...
3048 (linux_collect_thread_registers): ...loop body here. Use iterator
3049 method instead of walking through list.
3050 (linux_make_corefile_notes_1): Check for presence of iterator
3051 method instead of regset section list.
3052 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
3053 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
3054 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
3055 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
3056 (ppc_linux_iterate_over_regset_sections): ...here. New function.
3057 (ppc_linux_init_abi): Don't choose from above regset section
3058 lists, but install new iterator in gdbarch.
3059 * regset.h (struct core_regset_section): Remove.
3060 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
3061 have_linux_v1, have_linux_v2, and have_tdb.
3062 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
3063 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
3064 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
3065 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
3066 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
3067 (s390_iterate_over_regset_sections): ...here. New function. Use
3068 new tdep fields.
3069 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
3070 regset section lists, but install new iterator.
3071
2eca4a8d
JK
30722014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3073
3074 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
3075
a73c2b56
SM
30762014-09-26 Simon Marchi <simon.marchi@ericsson.com>
3077
3078 * progspace.c (print_program_space): Don't prune program spaces
3079 before printing them.
3080
03d46957
PA
30812014-09-25 Pedro Alves <palves@redhat.com>
3082
3083 * infrun.c (user_visible_resume_ptid): Don't check
3084 singlestep_breakpoints_inserted_p.
3085
e558d7c1
PA
30862014-09-25 Pedro Alves <palves@redhat.com>
3087
3088 * breakpoint.c (should_be_inserted): Add debug output.
3089
7f89fd65
PA
30902014-09-25 Pedro Alves <palves@redhat.com>
3091
3092 * infrun.c (stepping_past_instruction_at)
3093 (clear_exit_convenience_vars): Point at infrun.h instead of
3094 inferior.h.
3095 (handle_signal_stop): Fix typo.
3096
b7576e5c
YQ
30972014-09-24 Yao Qi <yao@codesourcery.com>
3098
3099 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
3100 bitmask.
3101
9a6cf368
GB
31022014-09-22 Gary Benson <gbenson@redhat.com>
3103
3104 * target.c (target_stop): Updated comment.
3105
03f4463b
GB
31062014-09-22 Gary Benson <gbenson@redhat.com>
3107
3108 * target/target.h (target_stop_ptid): Renamed as...
3109 (target_stop_and_wait): New function. Updated comment.
3110 All uses updated.
3111 (target_continue_ptid): Renamed as...
3112 (target_continue_no_signal): New function. Updated comment.
3113 All uses updated.
3114
a25a5a45
PA
31152014-09-22 Pedro Alves <palves@redhat.com>
3116
3117 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3118 and "auto" merged.
3119 * breakpoint.c (enum ugll_insert_mode): New enum.
3120 (always_inserted_mode): Now a plain boolean.
3121 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3122 (breakpoints_always_inserted_mode): Delete.
3123 (breakpoints_should_be_inserted_now): New function.
3124 (insert_breakpoints): Pass UGLL_INSERT to
3125 update_global_location_list instead of calling
3126 insert_breakpoint_locations manually.
3127 (create_solib_event_breakpoint_1): New, factored out from ...
3128 (create_solib_event_breakpoint): ... this.
3129 (create_and_insert_solib_event_breakpoint): Use
3130 create_solib_event_breakpoint_1 instead of calling
3131 insert_breakpoint_locations manually.
3132 (update_global_location_list): Change parameter type from boolean
3133 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3134 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3135 (update_global_location_list_nothrow): Change parameter type from
3136 boolean to enum ugll_insert_mode.
3137 (_initialize_breakpoint): "breakpoint always-inserted" option is
3138 now a boolean command. Update help text.
3139 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3140 (breakpoints_should_be_inserted_now): New declaration.
3141 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3142 Remove breakpoints_always_inserted_mode check.
3143 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3144 * remote.c (remote_start_remote): Likewise.
3145
04086b45
PA
31462014-09-22 Pedro Alves <palves@redhat.com>
3147
3148 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3149 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3150 Instead, pass UGLL_INSERT to update_global_location_list.
3151 (update_global_location_list): Change parameter type from boolean
3152 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3153 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3154 (create_solib_event_breakpoint_1): New, factored out from ...
3155 (create_solib_event_breakpoint): ... this.
3156 (create_and_insert_solib_event_breakpoint): Use
3157 create_solib_event_breakpoint_1 instead of calling
3158 insert_breakpoint_locations manually.
3159 (update_global_location_list): Handle UGLL_INSERT.
3160
44702360
PA
31612014-09-22 Pedro Alves <palves@redhat.com>
3162
3163 * breakpoint.c (enum ugll_insert_mode): New enum.
3164 (update_global_location_list)
3165 (update_global_location_list_nothrow): Change parameter type from
3166 boolean to enum ugll_insert_mode. All callers adjusted.
3167
93c6145a
JB
31682014-09-19 Joel Brobecker <brobecker@adacore.com>
3169
3170 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3171 SystemTap support in GDB.
3172
89a5711c
DB
31732014-09-19 Don Breazeal <donb@codesourcery.com>
3174
3175 * linux-nat.c (linux_handle_extended_wait): Call
3176 linux_ptrace_get_extended_event.
3177 (wait_lwp): Call linux_is_extended_waitstatus.
3178 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3179 and linux_is_extended_waitstatus.
3180 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3181 linux_ptrace_get_extended_event.
3182 (linux_ptrace_get_extended_event): New function.
3183 (linux_is_extended_waitstatus): New function.
3184 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3185 (linux_is_extended_waitstatus): New declarations.
3186
c3b7b696
YQ
31872014-09-19 Yao Qi <yao@codesourcery.com>
3188
3189 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3190 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3191 comments. Callers update.
3192 (dwarf_decode_lines): Likewise.
3193 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3194 comments. Skip the line table if 'lowpc' is greater than
3195 'address'. Don't check
3196 dwarf2_per_objfile->has_section_at_zero.
3197
2b4fd423
DE
31982014-09-18 Doug Evans <dje@google.com>
3199
3200 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3201 * python/py-symtab.c (stpy_get_producer): New function.
3202 (symtab_object_getset): Add "producer" attribute.
3203
5e43d467
UW
32042014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
3205
3206 PR gdb/17384
3207 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3208 (do_captured_read_memory_integer): Remove.
3209 (safe_read_memory_integer): Use target_read_memory directly instead
3210 of catching errors in do_captured_read_memory_integer.
3211
04e79979
MR
32122014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3213
3214 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3215 not gdb/doc.
3216
76aeec5b
SDJ
32172014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3218
3219 * objc-lang.c (find_implementation_from_class): Remove dead code.
3220
2f693f9d
SDJ
32212014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3222
3223 PR cli/7233
3224 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3225 "fprintf_unfiltered (gdb_stdlog...)".
3226
bb9d5f81
PP
32272014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3228
3229 PR breakpoints/12526
3230 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3231 val_bitsize.
3232 * breakpoint.c (watch_command_1): Use these fields to retain
3233 bitfield information.
3234 (extract_bitfield_from_watchpoint_value): New function.
3235 (watchpoint_check): Use it.
3236 (update_watchpoint): Use it. Optimize the address and length of a
3237 HW watchpoint pointing to a bitfield.
3238 * value.h (unpack_value_bitfield): New prototype.
3239 * value.c (unpack_value_bitfield): Make extern.
3240
05db5edd
ST
32412014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3242
3243 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3244 x86-dregs.o.
3245 * gnu-nat.c (inf_threads): New function.
3246 * gnu-nat.h (inf_threads_ftype): New typedef.
3247 (inf_threads): New declaration.
3248 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3249 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3250 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3251 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3252 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3253 (i386_gnu_dr_get_control): New functions.
3254 (reg_addr): New structure.
3255 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3256 i386 debugging register hooks.
3257 * NEWS: Mention this.
3258
5a578da5
OJ
32592014-08-13 Omair Javaid <omair.javaid@linaro.org>
3260
3261 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3262 vector data transfer instructions.
3263 (arm_record_coproc_data_proc): Updated.
3264
f20f80dd
OJ
32652014-08-13 Omair Javaid <omair.javaid@linaro.org>
3266
3267 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3268 arm_record_exreg_ld_st_insn.
3269 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3270 load/store insns.
3271
851f26ae
OJ
32722014-08-13 Omair Javaid <omair.javaid@linaro.org>
3273
3274 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3275 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3276 processing instructions.
3277
1e1b6563
OJ
32782014-08-13 Omair Javaid <omair.javaid@linaro.org>
3279
3280 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3281 for advance SIMD struct ld/st insn.
3282 (thumb2_record_decode_insn_handler): Replace stub handler with
3283 thumb2_record_asimd_struct_ld_st.
3284
60cc5e93
OJ
32852014-08-13 Omair Javaid <omair.javaid@linaro.org>
3286
3287 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3288 for asimd, vfp and coprocessor insns.
3289 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3290 and coprocessor insns.
3291 (thumb2_record_coproc_insn): New function.
3292 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3293 handlers.
3294 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3295 opcode 110 insns.
3296
81219e53
DE
32972014-09-13 Doug Evans <xdje42@gmail.com>
3298
3299 * NEWS: Mention new "queue-signal" command.
3300 * infcmd.c (queue_signal_command): New function.
3301 (_initialize_infcmd): Add new queue-signal command.
3302
d36bf488
DE
33032014-09-13 Doug Evans <xdje42@gmail.com>
3304
3305 * linux-nat.c (wait_lwp): Add debugging printf.
3306 (linux_nat_wait_1): Ditto.
3307
f37f681c
PA
33082014-09-12 Pedro Alves <palves@redhat.com>
3309
3310 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3311 (create_and_insert_solib_event_breakpoint): New functions.
3312 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3313 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3314 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3315 (remove_dbx_link_breakpoint): Delete function.
3316 (insert_dbx_link_bpt_in_file): Use
3317 create_and_insert_solib_event_breakpoint instead of
3318 deprecated_insert_raw_breakpoint.
3319 (procfs_wait): Don't check whether we hit __dbx_link here.
3320 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3321 here.
3322 * solib-irix.c (base_breakpoint): Delete global.
3323 (disable_break): Delete function.
3324 (enable_break): Use create_solib_event_breakpoint
3325 instead of deprecated_insert_raw_breakpoint.
3326 (irix_solib_handle_event): New function.
3327 (irix_solib_create_inferior_hook): Don't run the target or disable
3328 the mapping-complete breakpoint here.
3329 (_initialize_irix_solib): Install irix_solib_handle_event as
3330 so_ops->handle_event hook.
3331
9d9bf2df
EBM
33322014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3333 Ulrich Weigand  <uweigand@de.ibm.com>
3334
3335 PR tdep/17379
3336 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3337 instead of read_memory_unsigned_integer.
3338
b006a80e
GB
33392014-09-12 Gary Benson <gbenson@redhat.com>
3340
3341 * nat/linux-waitpid.c: Include common-defs.h.
3342 [GDBSERVER]: Add FIXME comment.
3343 [!GDBSERVER]: Don't include defs.h or signal.h.
3344 (linux_debug) [!GDBSERVER]: Remove empty block.
3345
296b1496
GB
33462014-09-12 Gary Benson <gbenson@redhat.com>
3347
3348 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3349 Don't include defs.h or server.h.
3350
53f81362
GB
33512014-09-12 Gary Benson <gbenson@redhat.com>
3352
3353 * nat/linux-btrace.c: Include common-defs.h.
3354 Don't include defs.h, server.h or gdbthread.h.
3355 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3356
727605ca
GB
33572014-09-12 Gary Benson <gbenson@redhat.com>
3358
3359 * common/agent.c: Include common-defs.h.
3360 Don't include defs.h or server.h.
3361 * common/buffer.c: Likewise.
3362 * common/common-debug.c: Likewise.
3363 * common/common-utils.c: Likewise.
3364 * common/errors.c: Likewise.
3365 * common/filestuff.c: Likewise.
3366 * common/format.c: Likewise.
3367 * common/gdb_vecs.c: Likewise.
3368 * common/print-utils.c: Likewise.
3369 * common/ptid.c: Likewise.
3370 * common/rsp-low.c: Likewise.
3371 * common/signals.c: Likewise.
3372 * common/vec.c: Likewise.
3373 * common/xml-utils.c: Likewise.
3374 * nat/linux-osdata.c: Likewise.
3375 * nat/linux-procfs.c: Likewise.
3376 * nat/linux-ptrace.c: Likewise.
3377 * nat/mips-linux-watch.c: Likewise.
3378 * target/waitstatus.c: Likewise.
3379
361c8ade
GB
33802014-09-12 Tom Tromey <tromey@redhat.com>
3381 Gary Benson <gbenson@redhat.com>
3382
3383 * common/common-regcache.h: New file.
3384 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3385 * regcache.h: Include common-regcache.h.
3386 (regcache_read_pc): Don't declare.
3387 * regcache.c (get_thread_regcache_for_ptid): New function.
3388 * nat/linux-btrace.c: Don't include regcache.h.
3389 Include common-regcache.h.
3390 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3391
a01cbb49
TS
33922014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3393
3394 * regcache.h (struct regset): Declare.
3395
98880d46
PA
33962014-09-11 Pedro Alves <palves@redhat.com>
3397
3398 PR gdb/17347
3399 * main.c: Include "infrun.h".
3400 (catch_command_errors, catch_command_errors_const): Wait for the
3401 foreground command to complete.
3402 * top.c (maybe_wait_sync_command_done): New function, factored out
3403 from ...
3404 (maybe_wait_sync_command_done): ... here.
3405 * top.h (maybe_wait_sync_command_done): New declaration.
3406
bd9269f7
GB
34072014-09-11 Tom Tromey <tromey@redhat.com>
3408 Gary Benson <gbenson@redhat.com>
3409
3410 * common/symbol.h: New file.
3411 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3412 * minsyms.c (find_minimal_symbol_address): New function.
3413 * common/agent.c: Include common/symbol.h.
3414 [!GDBSERVER]: Don't include objfiles.h.
3415 (agent_look_up_symbols): Use find_minimal_symbol_address.
3416
f8c1d06b
GB
34172014-09-11 Gary Benson <gbenson@redhat.com>
3418
3419 * target/target.h (target_stop_ptid, target_continue_ptid):
3420 Declare.
3421 * target.c (target_stop_ptid, target_continue_ptid): New
3422 functions.
3423 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3424 (agent_run_command): Always use target_stop_ptid and
3425 target_continue_ptid.
3426
721ec300
GB
34272014-09-11 Tom Tromey <tromey@redhat.com>
3428 Gary Benson <gbenson@redhat.com>
3429
3430 * target/target.h: New file.
3431 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3432 * target.h: Include target/target.h.
3433 (target_read_memory, target_write_memory): Don't declare.
3434 * target.c (target_read_uint32): New function.
3435 * common/agent.c: Include target/target.h.
3436 [!GDBSERVER]: Don't include target.h.
3437 (helper_thread_id): Type changed to uint32_t.
3438 (agent_get_helper_thread_id): Use target_read_uint32.
3439 (agent_run_command): Always use target_read_memory and
3440 target_write_memory.
3441 (agent_capability): Type changed to uint32_t.
3442 (agent_capability_check): Use target_read_uint32.
3443
c5e92cca
GB
34442014-09-11 Gary Benson <gbenson@redhat.com>
3445
3446 * common/common-debug.h (show_debug_regs): Declare.
3447 * common/common-debug.c (show_debug_regs): Define.
3448 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3449 all uses with show_debug_regs. Replace all uses that considered
3450 debug_hw_points as a multi-value integer with straight boolean
3451 uses.
3452 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3453 with show_debug_regs.
3454 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3455 all uses with show_debug_regs.
3456 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3457 uses with show_debug_regs.
3458
eeef931a
UW
34592014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3460
3461 * findvar.c (address_from_register): Handle targets requiring
3462 a special conversion routine even for plain pointer types.
3463
8efa9855
UW
34642014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3465
3466 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3467 (store_register): Do not call exec_one_dummy_insn.
3468
eb479039
JB
34692014-09-10 Joel Brobecker <brobecker@adacore.com>
3470
3471 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3472 dereference it first. Use value_enclosing_type instead of
3473 value_type.
3474 (ada_array_length): Likewise.
3475
deede10c
JB
34762014-09-10 Joel Brobecker <brobecker@adacore.com>
3477
3478 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3479 Adjust function implementation and documentation accordingly.
3480 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3481 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3482 Update call to ada_value_ptr_subscript.
3483
7828a5f5
JB
34842014-09-10 Joel Brobecker <brobecker@adacore.com>
3485
3486 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3487 instead of VAL's type.
3488
35782f14
JB
34892014-09-10 Joel Brobecker <brobecker@adacore.com>
3490
3491 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3492
d342a0da
DE
34932014-09-09 Doug Evans <xdje42@gmail.com>
3494
3495 PR guile/17367
3496 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3497 last parameter to pkg-config, not first.
3498 * configure.ac: Pass --with-guile provided pkg-config path to
3499 GDB_GUILE_PROGRAM_NAMES.
3500 * configure: Regenerate.
3501
b4a3d263
GKB
35022014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3503
3504 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3505 Bertazi".
3506
6e466374
MR
35072014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3508
3509 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3510 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3511 the list of sections determining GDB_OSABI_IRIX.
3512
a1ada89a
JH
35132014-09-09 James Hogan <james.hogan@imgtec.com>
3514
3515 * MAINTAINERS (Write After Approval): Add "James Hogan".
3516
86db008d
JH
35172014-09-09 James Hogan <james.hogan@imgtec.com>
3518
3519 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3520
72fde3df
JB
35212014-09-09 Joel Brobecker <brobecker@adacore.com>
3522
3523 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3524
92d8d229
DE
35252014-09-08 Doug Evans <xdje42@gmail.com>
3526
3527 PR 17247
3528 * guile.c: #include <signal.h>.
3529 (_initialize_guile): Block SIGCHLD while initializing Guile.
3530
3531 Replaces the following, which is reverted.
3532
3533 2014-07-26 Doug Evans <xdje42@gmail.com>
3534
3535 PR 17185
3536 * configure.ac: Add check for header gc/gc.h.
3537 Add check for function setenv.
3538 * configure: Regenerate.
3539 * config.in: Regenerate.
3540 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3541
d81412aa
DE
35422014-09-08 Doug Evans <xdje42@gmail.com>
3543
3544 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3545 with named constant. Fix style of pointer comparison.
3546 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3547
a9f116cb
GKB
35482014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3549
3550 PR gdb/17035
3551 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3552 decide whether we display the command on "show user".
3553 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3554 printing command name.
3555 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3556 * cli/cli-decode.c (cli_user_command_p): Create helper function
3557 to verify whether cmd_list_element is a user-defined command.
3558
c75bd3a2
JK
35592014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3560
3561 PR python/17355
3562 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3563 Fix goto out of TRY_CATCH.
3564
faa42425 35652014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 3566 Tom Tromey <tromey@redhat.com>
faa42425
DE
3567
3568 PR 15276
3569 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3570 $_any_caller_matches.
3571 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3572 * python/lib/gdb/function/caller_is.py: New file.
3573
0d41ba00
DE
35742014-09-06 Doug Evans <xdje42@gmail.com>
3575
3576 * infcmd.c (program_info): Fix typo.
3577
474ca4f6
SDJ
35782014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3579
3580 PR gdb/17235
3581 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3582 'number'. New variable 'has_digit'. Rewrite code to deal with
3583 subexpressions on SDT probes.
3584
ebf13736
PA
35852014-09-04 Pedro Alves <palves@redhat.com>
3586
3587 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3588 the input is only one character long.
3589
eb0b0463
SDJ
35902014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3591
3592 PR fortran/17237
3593 * f-valprint.c (f_val_print): Specify the correct print option to
3594 use when printing integer values.
3595
5ee44bfa
GB
35962014-09-04 Gary Benson <gbenson@redhat.com>
3597
3598 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3599 Remove code to cope with LWPs wrapped as PIDs.
3600 Add assertions to ensure no wrapped LWPs are passed.
3601
4875ffdb
PA
36022014-09-04 Pedro Alves <palves@redhat.com>
3603
3604 * value.c (value_ranges_copy_adjusted): New function, factored out
3605 from ...
3606 (value_contents_copy_raw): ... here.
3607 (unpack_value_bits_as_long_1): Rename back to ...
3608 (unpack_bits_as_long): ... this. Remove 'original_value' and
3609 'result' parameters. Change return type to LONGEST.
3610 (unpack_value_bits_as_long): Delete.
3611 (unpack_value_field_as_long_1): Delete.
3612 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3613 (unpack_value_bitfield): New function.
3614 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3615 (value_fetch_lazy): Use unpack_value_bitfield.
3616 * value.h (unpack_value_bits_as_long): Delete declaration.
3617
5f3b99cf
SS
36182014-09-03 Sasha Smundak <asmundak@google.com>
3619
3620 * python/py-frame.c (frapy_read_register): New function.
3621
ac740bc7
JH
36222014-09-03 James Hogan <james.hogan@imgtec.com>
3623
3624 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3625 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3626
7d793aa9
SDJ
36272014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3628
3629 PR python/16699
3630 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3631 function.
3632 (add_cmd): Set "completer_handle_brkchars" to NULL.
3633 * cli/cli-decode.h (struct cmd_list_element)
3634 <completer_handle_brkchars>: New field.
3635 * command.h (completer_ftype_void): New typedef.
3636 (set_cmd_completer_handle_brkchars): New prototype.
3637 * completer.c (set_gdb_completion_word_break_characters): New
3638 function.
3639 (complete_line_internal): Call "completer_handle_brkchars"
3640 callback from command.
3641 * completer.h: Include "command.h".
3642 (set_gdb_completion_word_break_characters): New prototype.
3643 * python/py-cmd.c (cmdpy_completer_helper): New function.
3644 (cmdpy_completer_handle_brkchars): New function.
3645 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3646 (cmdpy_init): Set completer_handle_brkchars to
3647 cmdpy_completer_handle_brkchars.
3648
97ea6506
GB
36492014-09-03 Gary Benson <gbenson@redhat.com>
3650
3651 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3652 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3653 Loop conditions changed to equivalent form.
3654 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3655 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3656 ALL_DEBUG_ADDRESS_REGISTERS.
3657
d1437815
JB
36582014-09-03 Joel Brobecker <brobecker@adacore.com>
3659
3660 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3661 description fix.
3662
9b94fcf1
DE
36632014-09-02 Doug Evans <dje@google.com>
3664
3665 * typeprint.c (find_global_typedef): Fix comment.
3666
df7e5265
GB
36672014-09-02 Gary Benson <gbenson@redhat.com>
3668
3669 * i386-nat.h: Renamed as...
3670 * x86-nat.h: New file. All type, function and variable name
3671 prefixes changed from "i386_" to "x86_". All references updated.
3672 * i386-nat.c: Renamed as...
3673 * x86-nat.c: New file. All type, function and variable name
3674 prefixes changed from "i386_" to "x86_". All references updated.
3675 * common/i386-xstate.h: Renamed as...
3676 * common/x86-xstate.h: New file. All type, function and variable
3677 name prefixes changed from "i386_" to "x86_". All references
3678 updated.
3679 * nat/i386-cpuid.h: Renamed as...
3680 * nat/x86-cpuid.h: New file. All type, function and variable name
3681 prefixes changed from "i386_" to "x86_". All references updated.
3682 * nat/i386-gcc-cpuid.h: Renamed as...
3683 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3684 name prefixes changed from "i386_" to "x86_". All references
3685 updated.
3686 * nat/i386-dregs.h: Renamed as...
3687 * nat/x86-dregs.h: New file. All type, function and variable name
3688 prefixes changed from "i386_" to "x86_". All references updated.
3689 * nat/i386-dregs.c: Renamed as...
3690 * nat/x86-dregs.c: New file. All type, function and variable name
3691 prefixes changed from "i386_" to "x86_". All references updated.
3692
1c3569d4
MR
36932014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3694
3695 * varobj.c (_initialize_varobj): Move to the end of file.
3696
ff55e1b5
GB
36972014-08-29 Gary Benson <gbenson@redhat.com>
3698
3699 * common/common-exceptions.h: New file.
3700 * common/common-exceptions.c: Likewise.
3701 * Makefile.in (SFILES): Add common/common-exceptions.c.
3702 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3703 (COMMON_OBS): Add common-exceptions.o.
3704 (common-exceptions.o): New rule.
3705 * exceptions.h (common-exceptions.h): Include.
3706 (gdb_setjmp.h): Do not include.
3707 (return_reason): Moved to common-exceptions.h.
3708 (enum return_reason): Likewise.
3709 (RETURN_MASK): Likewise.
3710 (typedef return_mask): Likewise.
3711 (enum errors): Likewise.
3712 (struct gdb_exception): Likewise.
3713 (exceptions_state_mc_init): Likewise.
3714 (exceptions_state_mc_action_iter): Likewise.
3715 (exceptions_state_mc_action_iter_1): Likewise.
3716 (TRY_CATCH): Likewise.
3717 (throw_exception): Likewise.
3718 (throw_verror): Likewise.
3719 (throw_vquit): Likewise.
3720 (throw_error): Likewise.
3721 (throw_quit): Likewise.
3722 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3723 (enum catcher_action): Likewise.
3724 (struct catcher): Likewise.
3725 (current_catcher): Likewise.
3726 (catcher_list_size): Likewise.
3727 (exceptions_state_mc_init): Likewise.
3728 (catcher_pop): Likewise.
3729 (exceptions_state_mc): Likewise.
3730 (exceptions_state_mc_action_iter): Likewise.
3731 (exceptions_state_mc_action_iter_1): Likewise.
3732 (throw_exception): Likewise.
3733 (exception_messages): Likewise.
3734 (exception_messages_size): Likewise.
3735 (throw_it): Likewise.
3736 (throw_verror): Likewise.
3737 (throw_vquit): Likewise.
3738 (throw_error): Likewise.
3739 (throw_quit): Likewise.
3740 (prepare_to_throw_exception): New function.
3741
e9bcb658
GB
37422014-08-29 Gary Benson <gbenson@redhat.com>
3743
3744 * common/gdb_setjmp.h: New file.
3745 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3746 * configure.ac: Move sigsetjmp check...
3747 * common/common.m4: ...here.
3748 * configure: Regenerate.
3749 * cp-support.c (SIGJMP_BUF): Delete.
3750 (SIGSETJMP): Likewise.
3751 (SIGLONGJMP): Likewise.
3752 * exceptions.h (gdb_setjmp.h): Include.
3753 (setjmp.h): Do not include.
3754 (EXCEPTIONS_SIGJMP_BUF): Delete.
3755 (EXCEPTIONS_SIGSETJMP): Likewise.
3756 (EXCEPTIONS_SIGLONGJMP): Likewise.
3757 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3758 from gdb_setjmp.h.
3759 * exceptions.c: Likewise.
3760
e3180625
GB
37612014-08-29 Gary Benson <gbenson@redhat.com>
3762
3763 * cleanups.h: Moved to...
3764 * common/cleanups.h: New file.
3765 * cleanups.c: Moved to...
3766 * common/cleanups.c: New file. Include common-defs.h and
3767 cleanups.h. Do not include defs.h.
3768 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3769 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3770 (cleanups.o): New rule.
3771
e3d6ba5d
GB
37722014-08-29 Gary Benson <gbenson@redhat.com>
3773
3774 * common/errors.h (internal_warning): New declaration.
3775 (internal_vwarning): Likewise.
3776 * common/errors.c (internal_warning): New function.
3777 * utils.h (internal_warning): Don't declare.
3778 (internal_vwarning): Likewise.
3779 * utils.c (internal_warning): Removed.
3780
075c7033
GB
37812014-08-29 Gary Benson <gbenson@redhat.com>
3782
3783 * main.c (captured_main): Use warning during startup.
3784 Prefix startup warning messages with command name.
3785
91b35fd0
GB
37862014-08-29 Gary Benson <gbenson@redhat.com>
3787
3788 * main.c (captured_main): Handle usage errors with error.
3789
b1ec390e
GB
37902014-08-29 Gary Benson <gbenson@redhat.com>
3791
3792 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3793 exit pair with a call to error. Wrap the message with _().
3794
fd0ef3dd
GB
37952014-08-29 Gary Benson <gbenson@redhat.com>
3796
3797 * main.c (captured_main): Replace a fprintf/exit
3798 pair with a call to error. Wrap the message with _().
3799
e0e6bcab
GB
38002014-08-29 Gary Benson <gbenson@redhat.com>
3801
3802 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3803 pairs with calls to error. Wrap the message with _().
3804
0d2f5c07
GB
38052014-08-29 Gary Benson <gbenson@redhat.com>
3806
3807 * utils.c (vwarning): Protect calls to target_terminal_ours
3808 and wrap_here.
3809
5df43998
GB
38102014-08-29 Gary Benson <gbenson@redhat.com>
3811
3812 * exceptions.c (print_flush): Protect calls to
3813 target_terminal_ours and wrap_here.
3814
2437fd32
GB
38152014-08-29 Gary Benson <gbenson@redhat.com>
3816
3817 * utils.h (filtered_printing_initialized): New declaration.
3818 * utils.c (abort_with_message): New function.
3819 (internal_vproblem): Use abort_with_message for first level
3820 recursive internal problems, and if gdb_stderr is not set up.
3821 Protect calls to target_terminal_ours, begin_line and query.
3822
f1f58506
DE
38232014-08-28 Doug Evans <dje@google.com>
3824
3825 * symtab.c (in_prologue): Move definition to better spot.
3826 (skip_prologue_using_sal): Ditto.
3827
aab2f208
DE
38282014-08-28 Doug Evans <dje@google.com>
3829
3830 * symtab.c (find_function_start_sal): Move definition to better spot.
3831
6b65d1b6
YQ
38322014-08-28 Yao Qi <yao@codesourcery.com>
3833
3834 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3835 found_stack_adjust in forward scan. Remove condition check
3836 on found_stack_adjust which is always true. Indent the code.
3837
a1b34d15
YQ
38382014-08-28 Yao Qi <yao@codesourcery.com>
3839
3840 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3841 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3842 (dwarf_decode_lines): Remove argument
3843 want_line_info. Remove condition check on want_line_info.
3844 Callers update.
3845
d5962de5
DE
38462014-08-27 Doug Evans <dje@google.com>
3847
3848 * dwarf2read.c (dwarf_record_line): Fix typo.
3849
9b139002
SDJ
38502014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3851
3852 * target.h (struct target_ops::to_terminal_save_ours): Remove
3853 declaration.
3854 (target_terminal_save_ours): Remove macro.
3855 * target-delegates.c: Regenerate.
3856 * inf-child.c (inf_child_target): Don't set the nonexistent
3857 field to_terminal_save_ours.
3858 * inferior.h (child_terminal_save_ours): Remove declaration.
3859 * terminal.h (gdb_save_tty_state): New declaration.
3860 * inflow.c (child_terminal_save_ours): Rename to ...
3861 (gdb_save_tty_state): ... this.
3862 * tui/tui.c: Include terminal.h.
3863 (tui_enable): Use gdb_save_tty_state instead of
3864 target_terminal_save_ours.
3865 (tui_disable): Likewise.
3866
9debeba0
DE
38672014-08-25 Doug Evans <dje@google.com>
3868
3869 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3870 Pass NULL instead of 0 for context pointer.
3871
428fc5fc
YQ
38722014-08-25 Yao Qi <yao@codesourcery.com>
3873
3874 * dwarf2read.c: Fix grammatical error.
3875
cdc07690
YQ
38762014-08-24 Yao Qi <yao@codesourcery.com>
3877
3878 * dwarf2read.c (scan_partial_symbols): Update comments.
3879 Rename argument 'need_pc' with 'set_addrmap'.
3880 (add_partial_namespace): Rename argument 'need_pc' with
3881 'set_addrmap'.
3882 (add_partial_module): Likewise.
3883 (add_partial_subprogram): Likewise. Update comments.
3884 (dwarf2_name): Fix typo.
3885
a05a36a5
DE
38862014-08-22 Doug Evans <dje@google.com>
3887
3888 PR 17276
3889 * dwarf2read.c (dwarf_record_line_p): New function.
3890 (dwarf_decode_lines_1): Ignore subsequent line number entries
3891 for the same line if any entry had a non-zero discriminator.
3892
252a6764
DE
38932014-08-22 Doug Evans <dje@google.com>
3894
3895 * buildsym.h (record_line_ftype): New typedef.
3896 (record_line): Use it.
3897 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3898 (dwarf_decode_lines_1): Call them.
3899
510db052
YQ
39002014-08-22 Yao Qi <yao@codesourcery.com>
3901
3902 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3903 (ctf_end): Remove code.
3904
22fd09ae
JK
39052014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3906
3907 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3908 (linux_make_corefile_notes): call update_thread_list, protected against
3909 exceptions.
3910
656e8868
PA
39112014-08-21 Pedro Alves <palves@redhat.com>
3912
3913 * infcmd.c (attach_command): Remove comment.
3914
de589d04
WN
39152014-08-21 Bin Cheng <bin.cheng@arm.com>
3916
3917 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3918 unsigned LONGEST to ULONGEST.
3919
2a31c623
PA
39202014-08-20 Pedro Alves <palves@redhat.com>
3921
3922 * Makefile.in (check-read1): New rule.
3923
d36430db
JB
39242014-08-20 Joel Brobecker <brobecker@adacore.com>
3925
3926 * value.c (value_from_contents_and_address): Strip resolved_type's
3927 typedef layers before checking its TYPE_DATA_LOCATION.
3928
000339af
PA
39292014-08-20 Pedro Alves <palves@redhat.com>
3930
3931 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3932
5f52445b
YQ
39332014-08-20 Yao Qi <yao@codesourcery.com>
3934
3935 * amd64-tdep.c (amd64_classify): Add a blank line after the
3936 example. Move "*/" to a new line.
3937 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3938 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3939 * dwarf2read.c (psymtab_include_file_name): Likewise.
3940
9a0dc9e3
PA
39412014-08-19 Andrew Burgess <aburgess@broadcom.com>
3942 Pedro Alves <palves@redhat.com>
3943
3944 PR symtab/14604
3945 PR symtab/14605
3946 * ada-lang.c (coerce_unspec_val_to_type): Use
3947 value_contents_copy_raw.
3948 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3949 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3950 * cp-valprint.c (cp_print_value_fields): Let the common printing
3951 code handle optimized out values.
3952 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3953 * d-valprint.c (dynamic_array_type): Use
3954 value_bits_any_optimized_out.
3955 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3956 check_any_valid fields.
3957 (check_pieced_value_bits): Delete and inline ...
3958 (check_pieced_synthetic_pointer): ... here.
3959 (check_pieced_value_validity): Delete.
3960 (check_pieced_value_invalid): Delete.
3961 (pieced_value_funcs): Remove check_validity and check_any_valid
3962 fields.
3963 (read_pieced_value): Use mark_value_bits_optimized_out.
3964 (write_pieced_value): Switch to use
3965 mark_value_bytes_optimized_out.
3966 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3967 of assuming the whole value is optimized out.
3968 * findvar.c (read_frame_register_value): Remove special handling
3969 of optimized out registers.
3970 (value_from_register): Use mark_value_bytes_optimized_out.
3971 * frame-unwind.c (frame_unwind_got_optimized): Use
3972 mark_value_bytes_optimized_out.
3973 * jv-valprint.c (java_value_print): Adjust.
3974 (java_print_value_fields): Let the common printing code handle
3975 optimized out values.
3976 * mips-tdep.c (mips_print_register): Remove special handling of
3977 optimized out registers.
3978 * opencl-lang.c (lval_func_check_validity): Delete.
3979 (lval_func_check_any_valid): Delete.
3980 (opencl_value_funcs): Remove check_validity and check_any_valid
3981 fields.
3982 * p-valprint.c (pascal_object_print_value_fields): Let the common
3983 printing code handle optimized out values.
3984 * stack.c (read_frame_arg): Remove special handling of optimized
3985 out values. Fetch both VAL and ENTRYVAL before comparing
3986 contents. Adjust to value_available_contents_eq rename.
3987 * valprint.c (valprint_check_validity)
3988 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3989 (val_print_array_elements): Adjust.
3990 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3991 (value_bits_any_optimized_out): New function.
3992 (value_entirely_covered_by_range_vector): New function, factored
3993 out from value_entirely_unavailable.
3994 (value_entirely_unavailable): Reimplement.
3995 (value_entirely_optimized_out): New function.
3996 (insert_into_bit_range_vector): New function, factored out from
3997 mark_value_bits_unavailable.
3998 (mark_value_bits_unavailable): Reimplement.
3999 (struct ranges_and_idx): New struct.
4000 (find_first_range_overlap_and_match): New function, factored out
4001 from value_available_contents_bits_eq.
4002 (value_available_contents_bits_eq): Rename to ...
4003 (value_contents_bits_eq): ... this. Check both unavailable
4004 contents and optimized out contents.
4005 (value_available_contents_eq): Rename to ...
4006 (value_contents_eq): ... this.
4007 (allocate_value_lazy): Remove reference to the old optimized_out
4008 boolean.
4009 (allocate_optimized_out_value): Use
4010 mark_value_bytes_optimized_out.
4011 (require_not_optimized_out): Adjust to check whether the
4012 optimized_out vec is empty.
4013 (ranges_copy_adjusted): New function, factored out from
4014 value_contents_copy_raw.
4015 (value_contents_copy_raw): Also copy the optimized out ranges.
4016 Assert the destination ranges aren't optimized out.
4017 (value_contents_copy): Update comment, remove call to
4018 require_not_optimized_out.
4019 (value_contents_equal): Adjust to check whether the optimized_out
4020 vec is empty.
4021 (set_value_optimized_out, value_optimized_out_const): Delete.
4022 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4023 New functions.
4024 (value_entirely_optimized_out, value_bits_valid): Delete.
4025 (value_copy): Take a VEC copy of the 'optimized_out' field.
4026 (value_primitive_field): Remove special handling of optimized out.
4027 (value_fetch_lazy): Assert that lazy values have no unavailable
4028 regions. Use value_bits_any_optimized_out. Remove some special
4029 handling for optimized out values.
4030 * value.h: Add intro comment about <optimized out> and
4031 <unavailable>.
4032 (struct lval_funcs): Remove check_validity and check_any_valid
4033 fields.
4034 (set_value_optimized_out, value_optimized_out_const): Remove.
4035 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4036 New declarations.
4037 (value_bits_any_optimized_out): New declaration.
4038 (value_bits_valid): Delete declaration.
4039 (value_available_contents_eq): Rename to ...
4040 (value_contents_eq): ... this, and extend comments.
4041
6694c411
JK
40422014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4043
4044 Fix -fsanitize=address on unreadable inferior strings.
4045 * valprint.c (val_print_string): Fix access before BUFFER.
4046
89a1c21a
SM
40472014-08-19 Simon Marchi <simon.marchi@ericsson.com>
4048
4049 * target.c (target_struct_size): Remove.
4050 (target_struct_allocsize): Remove.
4051 (DEFAULT_ALLOCSIZE): Remove.
4052 (target_ops_p): New typedef.
4053 (DEF_VEC_P (target_ops_p)): New vector type.
4054 (target_structs): Change type to VEC (target_ops_p).
4055 (add_target_with_completer): Replace "push" code by VEC_safe_push.
4056 (find_default_run_target): Rewrite for loop following changes to
4057 target_structs.
4058
cb417230
JB
40592014-08-19 Joel Brobecker <brobecker@adacore.com>
4060
4061 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
4062 Adjust code accordingly. Adjust function description comment.
4063
817e0957
YQ
40642014-08-19 Yao Qi <yao@codesourcery.com>
4065
4066 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
4067 types.
4068
2974be62
AM
40692014-08-19 Alan Modra <amodra@gmail.com>
4070
4071 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
4072 * config.in: Regenerate.
4073 * configure: Regenerate.
4074
34abf635
GB
40752014-08-19 Tom Tromey <tromey@redhat.com>
4076 Gary Benson <gbenson@redhat.com>
4077
4078 * common/common-debug.h: New file.
4079 * common/common-debug.c: Likewise.
4080 * debug.c: Likewise.
4081 * Makefile.in (SFILES): Add common/common-debug.c.
4082 (HFILES_NO_SRCDIR): Add common/common-debug.h.
4083 (COMMON_OBS): Add common-debug.o and debug.o.
4084 (common-debug.o): New rule.
4085 * common/common-defs.h: Include common-debug.h.
4086 * common/agent.c (debug_agent_printf): New function.
4087 (DEBUG_AGENT): Redefine.
4088 * nat/i386-dregs.c (debug_printf): Undefine.
4089
f6e94d78
GB
40902014-08-19 Gary Benson <gbenson@redhat.com>
4091
4092 * common/common-defs.h: Include print-utils.h.
4093 * utils.h: Do not include print-utils.h.
4094
9239eeab
GB
40952014-08-19 Tom Tromey <tromey@redhat.com>
4096 Gary Benson <gbenson@redhat.com>
4097
4098 * common/common-types.h: New file.
4099 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
4100 * common/common-defs.h: Include common-types.h.
4101 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4102 (ULONGEST): Remove.
4103
ef87c8bb
GB
41042014-08-19 Tom Tromey <tromey@redhat.com>
4105 Gary Benson <gbenson@redhat.com>
4106
4107 * common/errors.h: New file.
4108 * common/errors.c: Likewise.
4109 * Makefile.in (SFILES): Add common/errors.c.
4110 (HFILES_NO_SRCDIR): Add common/errors.h.
4111 (COMMON_OBS): Add errors.o.
4112 (errors.o): New rule.
4113 * common/common-defs.h: Include errors.h.
4114 * utils.h (perror_with_name, error, verror, warning, vwarning):
4115 Don't declare.
4116 * common/common-utils.h: (malloc_failure, internal_error):
4117 Likewise.
4118
196a707b
GB
41192014-08-19 Gary Benson <gbenson@redhat.com>
4120
4121 * utils.c (internal_vproblem): Always print the message.
4122
ded4fc8f
DE
41232014-08-18 Doug Evans <dje@google.com>
4124
4125 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4126
950c97d8
JB
41272014-08-18 Joel Brobecker <brobecker@adacore.com>
4128
4129 * ada-typeprint.c (type_is_full_subrange_of_target_type):
4130 Return 0 if TYPE is dynamic.
4131 (print_range): Add handling of dynamic ranges.
4132
3cdcd0ce
JB
41332014-08-18 Keven Boell <keven.boell@intel.com>
4134 Joel Brobecker <brobecker@adacore.com>
4135
4136 * gdbtypes.h (struct main_type): Add field "data_location".
4137 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4138 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4139 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4140 a dynamic data location.
4141 (resolve_dynamic_type): Add DW_AT_data_location handling.
4142 (copy_recursive, copy_type): Copy the data_location information
4143 when present.
4144 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4145 * value.c (value_from_contents_and_address): Add
4146 DW_AT_data_location handling.
4147
08412b07
JB
41482014-08-18 Keven Boell <keven.boell@intel.com>
4149 Joel Brobecker <brobecker@adacore.com>
4150
4151 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4152 field "get_object_address".
4153 * dwarf2expr.c (execute_stack_op): Add handling for
4154 DW_OP_push_object_address.
4155 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4156 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4157 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4158 (dwarf_expr_get_obj_addr): New function.
4159 (dwarf_expr_ctx_funcs): Add get_object_address field.
4160 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4161 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4162 (dwarf2_evaluate_property): Add parameter "address". Use it.
4163 (needs_get_obj_addr): New function.
4164 (needs_frame_ctx_funcs): Add get_object_address field.
4165 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4166 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4167 (resolve_dynamic_array): Likewise.
4168
84754697
JB
41692014-08-18 Joel Brobecker <brobecker@adacore.com>
4170
4171 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4172 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4173 fixed value for records and unions for which some GNAT encodings
4174 are present.
4175
da5c522f
JB
41762014-08-18 Joel Brobecker <brobecker@adacore.com>
4177
4178 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4179 rewrite to avoid "else if" and "else" constructs. Should be
4180 a no-op in practice.
4181
0d72a7c3
JB
41822014-08-18 Joel Brobecker <brobecker@adacore.com>
4183
4184 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4185 of lexical block.
4186
e66d4446
SC
41872014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4188
4189 PR c++/17132
4190 * eval.c: Update all calls to find_overload_match.
4191 * valarith.c: Likewise.
4192 (value_user_defined_cpp_op, value_user_defined_op): New
4193 argument NOSIDE. Update all callers.
4194 * valops.c (find_overload_match): New argument NOSIDE.
4195 * value.h (find_overload_match): Update signature.
4196
940df408
SC
41972014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4198
4199 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4200 'items' methods instead of 'iteritems' method on dictionaries.
4201
699ca60a
DE
42022014-08-15 Doug Evans <dje@google.com>
4203
4204 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4205 closer to use.
4206
37780ee5
DE
42072014-08-15 Doug Evans <dje@google.com>
4208
4209 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4210
0ad93d4f
DE
42112014-08-15 Doug Evans <dje@google.com>
4212
4213 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4214
20d8c372
DE
42152014-08-15 Doug Evans <dje@google.com>
4216
4217 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4218 unused.
4219
cb039ba4
EZ
42202014-08-15 Eli Zaretskii <eliz@gnu.org>
4221
4222 * dcache.h: Include target.h, to avoid compile time warnings.
4223
eb7a547a
JB
42242014-08-15 Joel Brobecker <brobecker@adacore.com>
4225
4226 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4227 frame_info" partial declaration.
4228 * gdbarch.h: Regenerate.
4229
783cecc8
YQ
42302014-08-15 Yao Qi <yao@codesourcery.com>
4231
4232 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4233 Add parameter 'decode_for_pst_p'. Callers update.
4234
65c749e7
YQ
42352014-08-13 Yao Qi <yao@codesourcery.com>
4236
4237 PR build/17104
4238 * configure.ac: Use local variable 'pos'.
4239 * configure: Regenerated.
4240
d769e349
DE
42412014-08-11 Doug Evans <dje@google.com>
4242
4243 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4244 message, it is redundant with "Reading symbols from ..." message.
4245
24f1235e
DE
42462014-08-10 Doug Evans <xdje42@gmail.com>
4247
4248 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4249
dcd2e6ef
YQ
42502014-08-09 Yao Qi <yao@codesourcery.com>
4251
4252 PR remote/9053
4253 * remote.c (remote_xfer_partial): Remove dead code.
4254
070bdf0b
AA
42552014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4256
4257 * ia64-linux-tdep.c: Include "regset.h".
4258 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4259 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4260 (ia64_linux_supply_fpregset): New function.
4261 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4262 (ia64_linux_regset_from_core_section): New function.
4263 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4264 method.
4265
08f9f542
AA
42662014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4267
4268 * m68klinux-tdep.c: Include "regset.h".
4269 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4270 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4271 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4272 (m68k_linux_regset_from_core_section): New function.
4273 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4274 method.
4275
8f1cee41
AA
42762014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4277
4278 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4279 function. Move logic to...
4280 (tilegx_linux_regmap): ... this new register map.
4281 (tilegx_linux_regset): Refer to register map, replace supply
4282 method by regcache_supply_regset, and add collect method.
4283 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4284 TILEGX_FIRST_EASY_REGNUM.
4285
c5741217
AA
42862014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4287
4288 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4289 that calls regcache_supply_regset and handles the EPC register
4290 separately. Move main logic to...
4291 (score7_linux_gregmap): ... this new register map.
4292 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4293 (score7_linux_gregset): Refer to register map. Add collect method.
4294 (score7_linux_regset_from_core_section): Replace
4295 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4296 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4297 (struct regset): Delete unused forward declaraction.
4298 (struct pt_regs): Delete structure definition.
4299 (elf_gregset_t): Delete typedef.
4300
81580573
AA
43012014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4302
4303 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4304 (nios2_core_regset): Add collect method.
4305
ba199d7d
AA
43062014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4307
4308 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4309 platform-independent and don't write to read-only input buffer.
4310 (m32r_linux_collect_gregset): New function.
4311 (m32r_linux_gregset): Add collect method.
4312
0006a9da
AA
43132014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4314
4315 * hppa-linux-tdep.c (greg_map): Rename to...
4316 (hppa_linux_gregmap): ... this. Also convert to
4317 regcache_map_entry format.
4318 (hppa_linux_supply_regset): Delete function.
4319 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4320 (hppa_linux_fpregmap): ... this new register map.
4321 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4322 register map, replace supply method by regcache_supply_regset, and
4323 add collect method regcache_collect_regset.
4324
901e1b23
AA
43252014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4326
4327 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4328 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4329 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4330 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4331 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4332 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4333 (frv_linux_supply_gregset): Replace main logic by call to
4334 regcache_supply_regset, but keep clearing gr32-gr63.
4335 (frv_linux_supply_fpregset): Delete function.
4336 (frv_linux_gregset): Refer to appropriate register map and add
4337 regcache_collect_regset as the collect method.
4338 (frv_linux_fpregset): Likewise. Also exchange the supply method
4339 by regcache_supply_regset.
4340
1d6e7555
AA
43412014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4342
4343 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4344 by call to alpha_supply_int_regs.
4345 (alpha_linux_collect_gregset): New function.
4346 (alpha_linux_supply_fpregset): Replace logic by call to
4347 alpha_supply_fp_regs.
4348 (alpha_linux_collect_fpregset): New function.
4349 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4350
d4d793bf
AA
43512014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4352
4353 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4354 by call to regcache_collect_regset.
4355 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4356 instead of aarch64_linux_supply_gregset/_fpregset.
4357 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4358 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4359 header file instead.
4360 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4361 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4362 functions. Move logic to ...
4363 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4364 register maps.
4365 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4366 refer to new register maps, replace *_regset_from_core by
4367 regcache_supply_regset, and also use regcache_collect_regset.
4368 * aarch64-linux-tdep.h: Include "regset.h".
4369 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4370 Delete prototypes.
4371 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4372 macros, moved from C source file.
4373 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4374 variable declarations.
4375
99b7da5d
AA
43762014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4377
4378 * s390-linux-nat.c: Include "regset.h".
4379 (regmap_gregset): Delete macro.
4380 (s390_64_regmap_gregset): New register map for
4381 regcache_supply/_collect_regset.
4382 (s390_64_gregset): New regset.
4383 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4384 (regmap_fpregset): Delete macro.
4385 (s390_native_supply, s390_native_collect): Delete functions.
4386 (supply_gregset, fill_gregset): Replace s390-specific regmap
4387 handling by a call to regcache_supply/_collect_regset.
4388 (supply_fpregset, fill_fpregset): Call regcache_supply/
4389 _collect_regset instead of s390_native_supply/_collect.
4390 (fetch_regset, store_regset): Likewise. Also change the last
4391 parameter to a regset instead of a regmap.
4392 (s390_linux_fetch_inferior_registers)
4393 (390_linux_store_inferior_registers): Adjust last parameter in
4394 calls to fetch_regset and store_regset.
4395 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4396 (s390_gregmap): ... this. Also make static const and convert to
4397 regcache_map_entry format.
4398 (s390x_regmap_gregset): Delete.
4399 (s390_regmap_fpregset): Rename to...
4400 (s390_fpregmap): ... this. Make static const and convert to
4401 regcache_map_entry format.
4402 (s390_regmap_upper, s390_regmap_last_break)
4403 (s390x_regmap_last_break, s390_regmap_system_call)
4404 (s390_regmap_tdb): Likewise.
4405 (s390_supply_regset, s390_collect_regset): Remove functions.
4406 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4407 s390_supply_regset.
4408 (s390_gregset, s390_fpregset, s390_upper_regset)
4409 (s390_last_break_regset, s390x_last_break_regset)
4410 (s390_system_call_regset, s390_tdb_regset): Make global and
4411 replace s390_supply/_collect_regset by regcache_supply/
4412 _collect_regset.
4413 (s390x_gregset): Delete.
4414 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4415 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4416 (s390_regmap_fpregset, s390_regmap_last_break)
4417 (s390x_regmap_last_break, s390_regmap_system_call)
4418 (s390_regmap_tdb): Delete global variable declarations.
4419 (s390_gregset, s390_fpregset, s390_last_break_regset)
4420 (s390x_last_break_regset, s390_system_call_regset)
4421 (s390_tdb_regset): New global variable declarations.
4422
0b309272
AA
44232014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4424
4425 * regcache.c: Include "regset.h".
4426 (regcache_transfer_regset): New local function.
4427 (regcache_supply_regset, regcache_collect_regset): New functions.
4428 * regcache.h (struct regcache_map_entry): New structure.
4429 (REGCACHE_MAP_SKIP): New enum value.
4430 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4431
7fefa8d7
AA
44322014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4433
4434 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4435 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4436 (ppc_linux_collect_gregset ): Likewise.
4437 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4438 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4439 (ppc_collect_vrregset): Likewise.
4440 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4441 Likewise.
4442
96c4f946
YQ
44432014-08-07 Yao Qi <yao@codesourcery.com>
4444
4445 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4446 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4447 * remote.c (remote_read_bytes): Likewise.
4448
fffbe6a8
YQ
44492014-08-07 Yao Qi <yao@codesourcery.com>
4450
4451 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4452
5ee8a82c
YQ
44532014-08-07 Yao Qi <yao@codesourcery.com>
4454
4455 PR remote/17230
4456 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4457 TARGET_XFER_OK instead of 0.
4458
bb974a24
GB
44592014-08-07 Gary Benson <gbenson@redhat.com>
4460
4461 * common/common-defs.h: Include errno.h.
4462 * defs.h: Do not include errno.h.
4463 * ada-typeprint.c: Likewise.
4464 * c-typeprint.c: Likewise.
4465 * core-regset.c: Likewise.
4466 * corefile.c: Likewise.
4467 * corelow.c: Likewise.
4468 * event-loop.c: Likewise.
4469 * f-typeprint.c: Likewise.
4470 * gnu-nat.c: Likewise.
4471 * go32-nat.c: Likewise.
4472 * i386gnu-nat.c: Likewise.
4473 * m2-typeprint.c: Likewise.
4474 * nat/linux-btrace.c: Likewise.
4475 * p-typeprint.c: Likewise.
4476 * procfs.c: Likewise.
4477 * remote-sim.c: Likewise.
4478 * rs6000-nat.c: Likewise.
4479 * target.c: Likewise.
4480 * typeprint.c: Likewise.
4481 * ui-file.c: Likewise.
4482 * valops.c: Likewise.
4483 * valprint.c: Likewise.
4484
6d3d12eb
GB
44852014-08-07 Gary Benson <gbenson@redhat.com>
4486
4487 * common/common-defs.h: Include string.h.
4488 * aarch64-tdep.c: Do not include string.h.
4489 * ada-exp.y: Likewise.
4490 * ada-lang.c: Likewise.
4491 * ada-lex.l: Likewise.
4492 * ada-typeprint.c: Likewise.
4493 * ada-valprint.c: Likewise.
4494 * aix-thread.c: Likewise.
4495 * alpha-linux-tdep.c: Likewise.
4496 * alpha-mdebug-tdep.c: Likewise.
4497 * alpha-nat.c: Likewise.
4498 * alpha-osf1-tdep.c: Likewise.
4499 * alpha-tdep.c: Likewise.
4500 * alphanbsd-tdep.c: Likewise.
4501 * amd64-dicos-tdep.c: Likewise.
4502 * amd64-linux-tdep.c: Likewise.
4503 * amd64-nat.c: Likewise.
4504 * amd64-sol2-tdep.c: Likewise.
4505 * amd64fbsd-tdep.c: Likewise.
4506 * amd64obsd-tdep.c: Likewise.
4507 * arch-utils.c: Likewise.
4508 * arm-linux-nat.c: Likewise.
4509 * arm-linux-tdep.c: Likewise.
4510 * arm-tdep.c: Likewise.
4511 * arm-wince-tdep.c: Likewise.
4512 * armbsd-tdep.c: Likewise.
4513 * armnbsd-nat.c: Likewise.
4514 * armnbsd-tdep.c: Likewise.
4515 * armobsd-tdep.c: Likewise.
4516 * avr-tdep.c: Likewise.
4517 * ax-gdb.c: Likewise.
4518 * ax-general.c: Likewise.
4519 * bcache.c: Likewise.
4520 * bfin-tdep.c: Likewise.
4521 * breakpoint.c: Likewise.
4522 * build-id.c: Likewise.
4523 * buildsym.c: Likewise.
4524 * c-exp.y: Likewise.
4525 * c-lang.c: Likewise.
4526 * c-typeprint.c: Likewise.
4527 * c-valprint.c: Likewise.
4528 * charset.c: Likewise.
4529 * cli-out.c: Likewise.
4530 * cli/cli-cmds.c: Likewise.
4531 * cli/cli-decode.c: Likewise.
4532 * cli/cli-dump.c: Likewise.
4533 * cli/cli-interp.c: Likewise.
4534 * cli/cli-logging.c: Likewise.
4535 * cli/cli-script.c: Likewise.
4536 * cli/cli-setshow.c: Likewise.
4537 * cli/cli-utils.c: Likewise.
4538 * coffread.c: Likewise.
4539 * common/agent.c: Likewise.
4540 * common/buffer.c: Likewise.
4541 * common/buffer.h: Likewise.
4542 * common/common-utils.c: Likewise.
4543 * common/filestuff.c: Likewise.
4544 * common/filestuff.c: Likewise.
4545 * common/format.c: Likewise.
4546 * common/print-utils.c: Likewise.
4547 * common/rsp-low.c: Likewise.
4548 * common/signals.c: Likewise.
4549 * common/vec.h: Likewise.
4550 * common/xml-utils.c: Likewise.
4551 * core-regset.c: Likewise.
4552 * corefile.c: Likewise.
4553 * corelow.c: Likewise.
4554 * cp-abi.c: Likewise.
4555 * cp-name-parser.y: Likewise.
4556 * cp-support.c: Likewise.
4557 * cp-valprint.c: Likewise.
4558 * cris-tdep.c: Likewise.
4559 * d-exp.y: Likewise.
4560 * darwin-nat.c: Likewise.
4561 * dbxread.c: Likewise.
4562 * dcache.c: Likewise.
4563 * demangle.c: Likewise.
4564 * dicos-tdep.c: Likewise.
4565 * disasm.c: Likewise.
4566 * doublest.c: Likewise.
4567 * dsrec.c: Likewise.
4568 * dummy-frame.c: Likewise.
4569 * dwarf2-frame.c: Likewise.
4570 * dwarf2loc.c: Likewise.
4571 * dwarf2read.c: Likewise.
4572 * elfread.c: Likewise.
4573 * environ.c: Likewise.
4574 * eval.c: Likewise.
4575 * event-loop.c: Likewise.
4576 * exceptions.c: Likewise.
4577 * exec.c: Likewise.
4578 * expprint.c: Likewise.
4579 * f-exp.y: Likewise.
4580 * f-lang.c: Likewise.
4581 * f-typeprint.c: Likewise.
4582 * f-valprint.c: Likewise.
4583 * fbsd-nat.c: Likewise.
4584 * findcmd.c: Likewise.
4585 * findvar.c: Likewise.
4586 * fork-child.c: Likewise.
4587 * frame.c: Likewise.
4588 * frv-linux-tdep.c: Likewise.
4589 * frv-tdep.c: Likewise.
4590 * gdb.c: Likewise.
4591 * gdb_bfd.c: Likewise.
4592 * gdbarch.c: Likewise.
4593 * gdbarch.sh: Likewise.
4594 * gdbtypes.c: Likewise.
4595 * gnu-nat.c: Likewise.
4596 * gnu-v2-abi.c: Likewise.
4597 * gnu-v3-abi.c: Likewise.
4598 * go-exp.y: Likewise.
4599 * go-lang.c: Likewise.
4600 * go32-nat.c: Likewise.
4601 * guile/guile.c: Likewise.
4602 * guile/scm-auto-load.c: Likewise.
4603 * hppa-hpux-tdep.c: Likewise.
4604 * hppa-linux-nat.c: Likewise.
4605 * hppanbsd-tdep.c: Likewise.
4606 * hppaobsd-tdep.c: Likewise.
4607 * i386-cygwin-tdep.c: Likewise.
4608 * i386-dicos-tdep.c: Likewise.
4609 * i386-linux-tdep.c: Likewise.
4610 * i386-nto-tdep.c: Likewise.
4611 * i386-sol2-tdep.c: Likewise.
4612 * i386-tdep.c: Likewise.
4613 * i386bsd-tdep.c: Likewise.
4614 * i386gnu-nat.c: Likewise.
4615 * i386nbsd-tdep.c: Likewise.
4616 * i386obsd-tdep.c: Likewise.
4617 * i387-tdep.c: Likewise.
4618 * ia64-libunwind-tdep.c: Likewise.
4619 * ia64-linux-nat.c: Likewise.
4620 * inf-child.c: Likewise.
4621 * inf-ptrace.c: Likewise.
4622 * inf-ttrace.c: Likewise.
4623 * infcall.c: Likewise.
4624 * infcmd.c: Likewise.
4625 * inflow.c: Likewise.
4626 * infrun.c: Likewise.
4627 * interps.c: Likewise.
4628 * iq2000-tdep.c: Likewise.
4629 * irix5-nat.c: Likewise.
4630 * jv-exp.y: Likewise.
4631 * jv-lang.c: Likewise.
4632 * jv-typeprint.c: Likewise.
4633 * jv-valprint.c: Likewise.
4634 * language.c: Likewise.
4635 * linux-fork.c: Likewise.
4636 * linux-nat.c: Likewise.
4637 * lm32-tdep.c: Likewise.
4638 * m2-exp.y: Likewise.
4639 * m2-typeprint.c: Likewise.
4640 * m32c-tdep.c: Likewise.
4641 * m32r-linux-nat.c: Likewise.
4642 * m32r-linux-tdep.c: Likewise.
4643 * m32r-rom.c: Likewise.
4644 * m32r-tdep.c: Likewise.
4645 * m68hc11-tdep.c: Likewise.
4646 * m68k-tdep.c: Likewise.
4647 * m68kbsd-tdep.c: Likewise.
4648 * m68klinux-nat.c: Likewise.
4649 * m68klinux-tdep.c: Likewise.
4650 * m88k-tdep.c: Likewise.
4651 * machoread.c: Likewise.
4652 * macrocmd.c: Likewise.
4653 * main.c: Likewise.
4654 * mdebugread.c: Likewise.
4655 * mem-break.c: Likewise.
4656 * memattr.c: Likewise.
4657 * memory-map.c: Likewise.
4658 * mep-tdep.c: Likewise.
4659 * mi/mi-cmd-break.c: Likewise.
4660 * mi/mi-cmd-disas.c: Likewise.
4661 * mi/mi-cmd-env.c: Likewise.
4662 * mi/mi-cmd-stack.c: Likewise.
4663 * mi/mi-cmd-var.c: Likewise.
4664 * mi/mi-cmds.c: Likewise.
4665 * mi/mi-console.c: Likewise.
4666 * mi/mi-getopt.c: Likewise.
4667 * mi/mi-interp.c: Likewise.
4668 * mi/mi-main.c: Likewise.
4669 * mi/mi-parse.c: Likewise.
4670 * microblaze-rom.c: Likewise.
4671 * microblaze-tdep.c: Likewise.
4672 * mingw-hdep.c: Likewise.
4673 * minidebug.c: Likewise.
4674 * minsyms.c: Likewise.
4675 * mips-irix-tdep.c: Likewise.
4676 * mips-linux-tdep.c: Likewise.
4677 * mips-tdep.c: Likewise.
4678 * mips64obsd-tdep.c: Likewise.
4679 * mipsnbsd-tdep.c: Likewise.
4680 * mipsread.c: Likewise.
4681 * mn10300-linux-tdep.c: Likewise.
4682 * mn10300-tdep.c: Likewise.
4683 * monitor.c: Likewise.
4684 * moxie-tdep.c: Likewise.
4685 * mt-tdep.c: Likewise.
4686 * nat/linux-btrace.c: Likewise.
4687 * nat/linux-osdata.c: Likewise.
4688 * nat/linux-procfs.c: Likewise.
4689 * nat/linux-ptrace.c: Likewise.
4690 * nat/linux-waitpid.c: Likewise.
4691 * nbsd-tdep.c: Likewise.
4692 * nios2-linux-tdep.c: Likewise.
4693 * nto-procfs.c: Likewise.
4694 * nto-tdep.c: Likewise.
4695 * objc-lang.c: Likewise.
4696 * objfiles.c: Likewise.
4697 * opencl-lang.c: Likewise.
4698 * osabi.c: Likewise.
4699 * osdata.c: Likewise.
4700 * p-exp.y: Likewise.
4701 * p-lang.c: Likewise.
4702 * p-typeprint.c: Likewise.
4703 * parse.c: Likewise.
4704 * posix-hdep.c: Likewise.
4705 * ppc-linux-nat.c: Likewise.
4706 * ppc-sysv-tdep.c: Likewise.
4707 * ppcfbsd-tdep.c: Likewise.
4708 * ppcnbsd-tdep.c: Likewise.
4709 * ppcobsd-tdep.c: Likewise.
4710 * printcmd.c: Likewise.
4711 * procfs.c: Likewise.
4712 * prologue-value.c: Likewise.
4713 * python/py-auto-load.c: Likewise.
4714 * python/py-gdb-readline.c: Likewise.
4715 * ravenscar-thread.c: Likewise.
4716 * regcache.c: Likewise.
4717 * registry.c: Likewise.
4718 * remote-fileio.c: Likewise.
4719 * remote-m32r-sdi.c: Likewise.
4720 * remote-mips.c: Likewise.
4721 * remote-notif.c: Likewise.
4722 * remote-sim.c: Likewise.
4723 * remote.c: Likewise.
4724 * reverse.c: Likewise.
4725 * rs6000-aix-tdep.c: Likewise.
4726 * ser-base.c: Likewise.
4727 * ser-go32.c: Likewise.
4728 * ser-mingw.c: Likewise.
4729 * ser-pipe.c: Likewise.
4730 * ser-tcp.c: Likewise.
4731 * ser-unix.c: Likewise.
4732 * serial.c: Likewise.
4733 * sh-tdep.c: Likewise.
4734 * sh64-tdep.c: Likewise.
4735 * shnbsd-tdep.c: Likewise.
4736 * skip.c: Likewise.
4737 * sol-thread.c: Likewise.
4738 * solib-dsbt.c: Likewise.
4739 * solib-frv.c: Likewise.
4740 * solib-osf.c: Likewise.
4741 * solib-som.c: Likewise.
4742 * solib-spu.c: Likewise.
4743 * solib-target.c: Likewise.
4744 * solib.c: Likewise.
4745 * somread.c: Likewise.
4746 * source.c: Likewise.
4747 * sparc-nat.c: Likewise.
4748 * sparc-sol2-tdep.c: Likewise.
4749 * sparc-tdep.c: Likewise.
4750 * sparc64-tdep.c: Likewise.
4751 * sparc64fbsd-tdep.c: Likewise.
4752 * sparc64nbsd-tdep.c: Likewise.
4753 * sparcnbsd-tdep.c: Likewise.
4754 * spu-linux-nat.c: Likewise.
4755 * spu-multiarch.c: Likewise.
4756 * spu-tdep.c: Likewise.
4757 * stabsread.c: Likewise.
4758 * stack.c: Likewise.
4759 * std-regs.c: Likewise.
4760 * symfile.c: Likewise.
4761 * symmisc.c: Likewise.
4762 * symtab.c: Likewise.
4763 * target.c: Likewise.
4764 * thread.c: Likewise.
4765 * tilegx-linux-nat.c: Likewise.
4766 * tilegx-tdep.c: Likewise.
4767 * top.c: Likewise.
4768 * tracepoint.c: Likewise.
4769 * tui/tui-command.c: Likewise.
4770 * tui/tui-data.c: Likewise.
4771 * tui/tui-disasm.c: Likewise.
4772 * tui/tui-file.c: Likewise.
4773 * tui/tui-layout.c: Likewise.
4774 * tui/tui-out.c: Likewise.
4775 * tui/tui-regs.c: Likewise.
4776 * tui/tui-source.c: Likewise.
4777 * tui/tui-stack.c: Likewise.
4778 * tui/tui-win.c: Likewise.
4779 * tui/tui-windata.c: Likewise.
4780 * tui/tui-winsource.c: Likewise.
4781 * typeprint.c: Likewise.
4782 * ui-file.c: Likewise.
4783 * ui-out.c: Likewise.
4784 * user-regs.c: Likewise.
4785 * utils.c: Likewise.
4786 * v850-tdep.c: Likewise.
4787 * valarith.c: Likewise.
4788 * valops.c: Likewise.
4789 * valprint.c: Likewise.
4790 * value.c: Likewise.
4791 * varobj.c: Likewise.
4792 * vax-tdep.c: Likewise.
4793 * vaxnbsd-tdep.c: Likewise.
4794 * vaxobsd-tdep.c: Likewise.
4795 * windows-nat.c: Likewise.
4796 * xcoffread.c: Likewise.
4797 * xml-support.c: Likewise.
4798 * xstormy16-tdep.c: Likewise.
4799 * xtensa-linux-nat.c: Likewise.
4800
dccbb609
GB
48012014-08-07 Gary Benson <gbenson@redhat.com>
4802
4803 * common/common-defs.h: Include gdb_assert.h.
4804 * aarch64-tdep.c: Do not include gdb_assert.h.
4805 * addrmap.c: Likewise.
4806 * aix-thread.c: Likewise.
4807 * alpha-linux-tdep.c: Likewise.
4808 * alpha-mdebug-tdep.c: Likewise.
4809 * alphanbsd-tdep.c: Likewise.
4810 * amd64-nat.c: Likewise.
4811 * amd64-tdep.c: Likewise.
4812 * amd64bsd-nat.c: Likewise.
4813 * amd64fbsd-nat.c: Likewise.
4814 * amd64fbsd-tdep.c: Likewise.
4815 * amd64nbsd-nat.c: Likewise.
4816 * amd64nbsd-tdep.c: Likewise.
4817 * amd64obsd-nat.c: Likewise.
4818 * amd64obsd-tdep.c: Likewise.
4819 * arch-utils.c: Likewise.
4820 * arm-tdep.c: Likewise.
4821 * armbsd-tdep.c: Likewise.
4822 * auxv.c: Likewise.
4823 * bcache.c: Likewise.
4824 * bfin-tdep.c: Likewise.
4825 * blockframe.c: Likewise.
4826 * breakpoint.c: Likewise.
4827 * bsd-kvm.c: Likewise.
4828 * bsd-uthread.c: Likewise.
4829 * buildsym.c: Likewise.
4830 * c-exp.y: Likewise.
4831 * c-lang.c: Likewise.
4832 * charset.c: Likewise.
4833 * cleanups.c: Likewise.
4834 * cli-out.c: Likewise.
4835 * cli/cli-decode.c: Likewise.
4836 * cli/cli-dump.c: Likewise.
4837 * cli/cli-logging.c: Likewise.
4838 * cli/cli-script.c: Likewise.
4839 * cli/cli-utils.c: Likewise.
4840 * coffread.c: Likewise.
4841 * common/common-utils.c: Likewise.
4842 * common/queue.h: Likewise.
4843 * common/signals.c: Likewise.
4844 * common/vec.h: Likewise.
4845 * complaints.c: Likewise.
4846 * completer.c: Likewise.
4847 * corelow.c: Likewise.
4848 * cp-abi.c: Likewise.
4849 * cp-name-parser.y: Likewise.
4850 * cp-namespace.c: Likewise.
4851 * cp-support.c: Likewise.
4852 * cris-tdep.c: Likewise.
4853 * dbxread.c: Likewise.
4854 * dictionary.c: Likewise.
4855 * doublest.c: Likewise.
4856 * dsrec.c: Likewise.
4857 * dummy-frame.c: Likewise.
4858 * dwarf2-frame-tailcall.c: Likewise.
4859 * dwarf2-frame.c: Likewise.
4860 * dwarf2expr.c: Likewise.
4861 * dwarf2loc.c: Likewise.
4862 * dwarf2read.c: Likewise.
4863 * eval.c: Likewise.
4864 * event-loop.c: Likewise.
4865 * exceptions.c: Likewise.
4866 * expprint.c: Likewise.
4867 * f-valprint.c: Likewise.
4868 * fbsd-nat.c: Likewise.
4869 * findvar.c: Likewise.
4870 * frame-unwind.c: Likewise.
4871 * frame.c: Likewise.
4872 * frv-tdep.c: Likewise.
4873 * gcore.c: Likewise.
4874 * gdb-dlfcn.c: Likewise.
4875 * gdb_bfd.c: Likewise.
4876 * gdbarch.c: Likewise.
4877 * gdbarch.sh: Likewise.
4878 * gdbtypes.c: Likewise.
4879 * gnu-nat.c: Likewise.
4880 * gnu-v3-abi.c: Likewise.
4881 * go-lang.c: Likewise.
4882 * guile/scm-exception.c: Likewise.
4883 * guile/scm-gsmob.c: Likewise.
4884 * guile/scm-lazy-string.c: Likewise.
4885 * guile/scm-math.c: Likewise.
4886 * guile/scm-pretty-print.c: Likewise.
4887 * guile/scm-safe-call.c: Likewise.
4888 * guile/scm-utils.c: Likewise.
4889 * guile/scm-value.c: Likewise.
4890 * h8300-tdep.c: Likewise.
4891 * hppa-hpux-nat.c: Likewise.
4892 * hppa-tdep.c: Likewise.
4893 * hppanbsd-tdep.c: Likewise.
4894 * hppaobsd-tdep.c: Likewise.
4895 * i386-darwin-nat.c: Likewise.
4896 * i386-darwin-tdep.c: Likewise.
4897 * i386-nto-tdep.c: Likewise.
4898 * i386-tdep.c: Likewise.
4899 * i386bsd-nat.c: Likewise.
4900 * i386fbsd-tdep.c: Likewise.
4901 * i386gnu-nat.c: Likewise.
4902 * i386nbsd-tdep.c: Likewise.
4903 * i386obsd-tdep.c: Likewise.
4904 * i387-tdep.c: Likewise.
4905 * ia64-libunwind-tdep.c: Likewise.
4906 * ia64-tdep.c: Likewise.
4907 * inf-ptrace.c: Likewise.
4908 * inf-ttrace.c: Likewise.
4909 * infcall.c: Likewise.
4910 * infcmd.c: Likewise.
4911 * infrun.c: Likewise.
4912 * inline-frame.c: Likewise.
4913 * interps.c: Likewise.
4914 * jv-lang.c: Likewise.
4915 * jv-typeprint.c: Likewise.
4916 * linux-fork.c: Likewise.
4917 * linux-nat.c: Likewise.
4918 * linux-thread-db.c: Likewise.
4919 * m32c-tdep.c: Likewise.
4920 * m32r-linux-nat.c: Likewise.
4921 * m32r-tdep.c: Likewise.
4922 * m68k-tdep.c: Likewise.
4923 * m68kbsd-nat.c: Likewise.
4924 * m68kbsd-tdep.c: Likewise.
4925 * m88k-tdep.c: Likewise.
4926 * machoread.c: Likewise.
4927 * macroexp.c: Likewise.
4928 * macrotab.c: Likewise.
4929 * maint.c: Likewise.
4930 * mdebugread.c: Likewise.
4931 * memory-map.c: Likewise.
4932 * mep-tdep.c: Likewise.
4933 * mi/mi-common.c: Likewise.
4934 * microblaze-tdep.c: Likewise.
4935 * mingw-hdep.c: Likewise.
4936 * mips-linux-nat.c: Likewise.
4937 * mips-linux-tdep.c: Likewise.
4938 * mips-tdep.c: Likewise.
4939 * mips64obsd-tdep.c: Likewise.
4940 * mipsnbsd-tdep.c: Likewise.
4941 * mn10300-linux-tdep.c: Likewise.
4942 * mn10300-tdep.c: Likewise.
4943 * moxie-tdep.c: Likewise.
4944 * mt-tdep.c: Likewise.
4945 * nat/linux-btrace.c: Likewise.
4946 * nat/linux-osdata.c: Likewise.
4947 * nat/linux-ptrace.c: Likewise.
4948 * nat/mips-linux-watch.c: Likewise.
4949 * nios2-linux-tdep.c: Likewise.
4950 * nios2-tdep.c: Likewise.
4951 * objc-lang.c: Likewise.
4952 * objfiles.c: Likewise.
4953 * obsd-nat.c: Likewise.
4954 * opencl-lang.c: Likewise.
4955 * osabi.c: Likewise.
4956 * parse.c: Likewise.
4957 * ppc-linux-nat.c: Likewise.
4958 * ppc-sysv-tdep.c: Likewise.
4959 * ppcfbsd-nat.c: Likewise.
4960 * ppcfbsd-tdep.c: Likewise.
4961 * ppcnbsd-nat.c: Likewise.
4962 * ppcnbsd-tdep.c: Likewise.
4963 * ppcobsd-nat.c: Likewise.
4964 * ppcobsd-tdep.c: Likewise.
4965 * printcmd.c: Likewise.
4966 * procfs.c: Likewise.
4967 * prologue-value.c: Likewise.
4968 * psymtab.c: Likewise.
4969 * python/py-lazy-string.c: Likewise.
4970 * python/py-value.c: Likewise.
4971 * regcache.c: Likewise.
4972 * reggroups.c: Likewise.
4973 * registry.c: Likewise.
4974 * remote-sim.c: Likewise.
4975 * remote.c: Likewise.
4976 * rs6000-aix-tdep.c: Likewise.
4977 * rs6000-tdep.c: Likewise.
4978 * s390-linux-tdep.c: Likewise.
4979 * score-tdep.c: Likewise.
4980 * ser-base.c: Likewise.
4981 * ser-mingw.c: Likewise.
4982 * sh-tdep.c: Likewise.
4983 * sh64-tdep.c: Likewise.
4984 * solib-darwin.c: Likewise.
4985 * solib-spu.c: Likewise.
4986 * solib-svr4.c: Likewise.
4987 * source.c: Likewise.
4988 * sparc-nat.c: Likewise.
4989 * sparc-sol2-tdep.c: Likewise.
4990 * sparc-tdep.c: Likewise.
4991 * sparc64-sol2-tdep.c: Likewise.
4992 * sparc64-tdep.c: Likewise.
4993 * sparc64fbsd-tdep.c: Likewise.
4994 * sparc64nbsd-tdep.c: Likewise.
4995 * sparc64obsd-tdep.c: Likewise.
4996 * sparcnbsd-tdep.c: Likewise.
4997 * sparcobsd-tdep.c: Likewise.
4998 * spu-multiarch.c: Likewise.
4999 * spu-tdep.c: Likewise.
5000 * stabsread.c: Likewise.
5001 * stack.c: Likewise.
5002 * symfile.c: Likewise.
5003 * symtab.c: Likewise.
5004 * target-descriptions.c: Likewise.
5005 * target-memory.c: Likewise.
5006 * target.c: Likewise.
5007 * tic6x-linux-tdep.c: Likewise.
5008 * tic6x-tdep.c: Likewise.
5009 * tilegx-linux-nat.c: Likewise.
5010 * tilegx-tdep.c: Likewise.
5011 * top.c: Likewise.
5012 * tramp-frame.c: Likewise.
5013 * tui/tui-out.c: Likewise.
5014 * tui/tui-winsource.c: Likewise.
5015 * ui-out.c: Likewise.
5016 * user-regs.c: Likewise.
5017 * utils.c: Likewise.
5018 * v850-tdep.c: Likewise.
5019 * valops.c: Likewise.
5020 * value.c: Likewise.
5021 * varobj.c: Likewise.
5022 * vax-nat.c: Likewise.
5023 * xml-syscall.c: Likewise.
5024 * xml-tdesc.c: Likewise.
5025 * xstormy16-tdep.c: Likewise.
5026 * xtensa-linux-nat.c: Likewise.
5027 * xtensa-tdep.c: Likewise.
5028
e76df0d0
GB
50292014-08-07 Gary Benson <gbenson@redhat.com>
5030
5031 * common/common-defs.h: Include common-utils.h.
5032 * defs.h: Do not include common-utils.h.
5033 * common/gdb_assert.h: Likewise.
5034 * darwin-nat.h: Likewise.
5035 * nat/linux-btrace.c: Likewise.
5036 * target/waitstatus.h: Likewise.
5037
4cb9c816
GB
50382014-08-07 Gary Benson <gbenson@redhat.com>
5039
5040 * common/common-defs.h: Include ptid.h.
5041 * defs.h: Do not include ptid.h.
5042 * inferior.h: Likewise.
5043 * infrun.h: Likewise.
5044 * nat/linux-btrace.h: Likewise.
5045 * nat/linux-osdata.h: Likewise.
5046 * target/waitstatus.h: Likewise.
5047
3995eeee
GB
50482014-08-07 Gary Benson <gbenson@redhat.com>
5049
5050 * common/common-defs.h: Include gdb_locale.h.
5051 * defs.h: Do not include gdb_locale.h.
5052
cb9f1a9b
GB
50532014-08-07 Gary Benson <gbenson@redhat.com>
5054
5055 * common/common-defs.h: Include gdb/signals.h.
5056 * defs.h: Do not include gdb/signals.h.
5057
a5fceff8
GB
50582014-08-07 Gary Benson <gbenson@redhat.com>
5059
5060 * common/common-defs.h: Include pathmax.h.
5061 * defs.h: Do not include pathmax.h.
5062
b9391142
GB
50632014-08-07 Gary Benson <gbenson@redhat.com>
5064
5065 * common/common-defs.h: Include libiberty.h.
5066 * defs.h: Do not include libiberty.h.
5067 * common/queue.h: Likewise.
5068 * cp-name-parser.y: Likewise.
5069 * mi/mi-cmd-catch.c: Likewise.
5070 * python/python.c: Likewise.
5071
0e443c87
GB
50722014-08-07 Gary Benson <gbenson@redhat.com>
5073
5074 * common/common-defs.h: Include ansidecl.h.
5075 * defs.h: Do not include ansidecl.h.
5076 * common/buffer.h: Likewise.
5077 * common/common-utils.h: Likewise.
5078
8ebb3f56
GB
50792014-08-07 Gary Benson <gbenson@redhat.com>
5080
5081 * common/common-defs.h: Include stddef.h.
5082 * defs.h: Do not include stddef.h.
5083 * common/common-utils.h: Likewise.
5084 * amd64fbsd-nat.c: Likewise.
5085 * bcache.c: Likewise.
5086 * charset.c: Likewise.
5087 * common/buffer.h: Likewise.
5088 * common/vec.h: Likewise.
5089 * i386bsd-nat.c: Likewise.
5090 * nat/linux-btrace.h: Likewise.
5091 * ppcfbsd-nat.c: Likewise.
5092 * ppcnbsd-tdep.h: Likewise.
5093 * ppcobsd-nat.c: Likewise.
5094 * ppcobsd-tdep.h: Likewise.
5095 * python/py-gdb-readline.c: Likewise.
5096
8980bdf6
GB
50972014-08-07 Gary Benson <gbenson@redhat.com>
5098
5099 * common/common-defs.h: Include stdarg.h.
5100 * defs.h: Do not include stdarg.h.
5101 * ada-lang.c: Likewise.
5102 * common/common-utils.h: Likewise.
5103 * guile/scm-string.c: Likewise.
5104 * guile/scm-utils.c: Likewise.
5105 * m32c-tdep.c: Likewise.
5106
d7096f71
GB
51072014-08-07 Gary Benson <gbenson@redhat.com>
5108
5109 * common/common-defs.h: Include stdlib.h.
5110 * defs.h: Do not include stdlib.h.
5111 * addrmap.c: Likewise.
5112 * bcache.c: Likewise.
5113 * common/buffer.c: Likewise.
5114 * common/common-utils.c: Likewise.
5115 * cp-name-parser.y: Likewise.
5116 * go32-nat.c: Likewise.
5117 * mn10300-linux-tdep.c: Likewise.
5118 * nat/linux-osdata.c: Likewise.
5119 * tui/tui.c: Likewise.
5120 * windows-nat.c: Likewise.
5121
d02f550d
GB
51222014-08-07 Gary Benson <gbenson@redhat.com>
5123
5124 * common/common-defs.h: Include stdio.h.
5125 * defs.h: Do not include stdio.h.
5126 * ada-lang.c: Likewise.
5127 * common/buffer.c: Likewise.
5128 * common/common-utils.c: Likewise.
5129 * cp-name-parser.y: Likewise.
5130 * gnu-nat.c: Likewise.
5131 * go32-nat.c: Likewise.
5132 * i386gnu-nat.c: Likewise.
5133 * proc-api.c: Likewise.
5134 * proc-events.c: Likewise.
5135 * proc-flags.c: Likewise.
5136 * proc-why.c: Likewise.
5137 * python/python-internal.h: Likewise.
5138 * target-memory.c: Likewise.
5139 * tui/tui-io.c: Likewise.
5140 * tui/tui.c: Likewise.
5141
b6d7a4bf
SM
51422014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5143
5144 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5145 (scan_dyntag_auxv): Same.
5146
af19829b
YQ
51472014-08-06 Yao Qi <yao@codesourcery.com>
5148
5149 * amd64-linux-nat.c: Remove duplicated include
5150 "x86-linux-nat.h".
5151 * i386-linux-nat.c: Likewise.
5152
8e07a239
YQ
51532014-08-06 Yao Qi <yao@codesourcery.com>
5154
5155 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5156 operand" with "Special opcode" in comments.
5157
7bfe8241
GB
51582014-08-05 Gary Benson <gbenson@redhat.com>
5159
5160 * interps.c (initialize_interps): Remove prototype.
5161 (interpreter_initialized): Remove static global.
5162 (interp_add): Do not call initialize_interps.
5163 (initialize_interps): Remove function.
5164
d6c95504
GB
51652014-08-05 Gary Benson <gbenson@redhat.com>
5166
5167 * utils.c (vwarning): Remove spurious va_end.
5168
241fd515
AM
51692014-08-05 Alan Modra <amodra@gmail.com>
5170
5171 * charset.c (convert_between_encodings): Cast result of obstack_base.
5172 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5173 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5174 (read_unwind_info): Use size_t for some locals.
5175 * jit.c (finalize_symtab): Likewise.
5176 * utils.c (hashtab_obstack_allocate): Likewise.
5177 * symmisc.c (print_objfile_statistics): Update format strings.
5178
dc304a94
JK
51792014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5180
5181 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5182 (Changes in GDB 7.8): ... here.
5183
3cecbbbe
TT
51842014-08-04 Tom Tromey <tromey@redhat.com>
5185
5186 * target.c (set_targetdebug): New function.
5187 (initialize_targets): Pass set_targetdebug when creating "set
5188 debug target".
5189
6908c509
JB
51902014-08-01 Joel Brobecker <brobecker@adacore.com>
5191
5192 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5193 if detecting a variable-sized field that is not the last field.
5194 Fix struct type length computation.
5195
53e8f97d
JB
51962014-08-01 Joel Brobecker <brobecker@adacore.com>
5197
5198 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5199 Add debug trace.
5200
e068c55d
JB
52012014-08-01 Joel Brobecker <brobecker@adacore.com>
5202
5203 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5204 Remove "+ 8" offset in computation of CHAIN_VMA.
5205
4d4ca2a1
DE
52062014-07-31 Doug Evans <dje@google.com>
5207
5208 * inflow.c (child_terminal_inferior): Add comment.
5209 (child_terminal_ours_for_output): Add comment.
5210 (child_terminal_ours): Add comment.
5211 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5212 (linux_nat_terminal_ours): Add comment.
5213
462f517e
GB
52142014-07-31 Gary Benson <gbenson@redhat.com>
5215
5216 * common/btrace-common.h: Do not include defs.h or server.h.
5217 * nat/mips-linux-watch.h: Likewise.
5218 * gdb-dlfcn.h: Do not include defs.h.
5219 * tracefile.h: Likewise.
5220
74228e77
RM
52212014-07-30 Roland McGrath <mcgrathr@google.com>
5222
5223 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5224
014f9477
TT
52252014-07-30 Tom Tromey <tromey@redhat.com>
5226
5227 * bsd-kvm.c (bsd_kvm_open): Constify.
5228 * corelow.c (core_open): Constify.
5229 * ctf.c (ctf_open): Constify.
5230 * dbug-rom.c (dbug_open): Constify.
5231 * exec.c (exec_open): Constify.
5232 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5233 * microblaze-rom.c (picobug_open): Constify.
5234 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5235 Constify.
5236 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5237 * record-btrace.c (record_btrace_open): Constify.
5238 * record-full.c (record_full_core_open_1, record_full_open_1)
5239 (record_full_open): Constify.
5240 * remote-m32r-sdi.c (m32r_open): Constify.
5241 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5242 (rockhopper_open, lsi_open): Constify.
5243 * remote-sim.c (gdbsim_open): Constify.
5244 * remote.c (remote_open, extended_remote_open, remote_open_1):
5245 Constify.
5246 * target.h (struct target_ops) <to_open>: Make "arg" const.
5247 * tracefile-tfile.c (tfile_open): Constify.
5248
e799154c
TT
52492014-07-30 Tom Tromey <tromey@redhat.com>
5250
5251 * breakpoint.c (map_breakpoint_numbers): Update.
5252 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5253 (get_number_const): New function.
5254 (get_number): Rewrite using get_number_const.
5255 (init_number_or_range): Make "string" const.
5256 (number_is_in_list): Make "list" const.
5257 * cli/cli-utils.h (get_number_const): Declare.
5258 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5259 (init_number_or_range, number_is_in_list): Update.
5260 * printcmd.c (map_display_numbers): Update.
5261 * value.c (value_from_history_ref): Constify.
5262 * value.h (value_from_history_ref): Update.
5263
5f08566b
TT
52642014-07-30 Tom Tromey <tromey@redhat.com>
5265
5266 * corefile.c (hook_type, call_extra_exec_file_hooks)
5267 (specify_exec_file_hook): Constify.
5268 * exec.c (exec_file_attach): Make "filename" const.
5269 * gdbcore.h (deprecated_exec_file_display_hook)
5270 (specify_exec_file_hook, exec_file_attach): Constify.
5271 * main.c (captured_main): Use catch_command_errors_const.
5272
8981c758
TT
52732014-07-30 Tom Tromey <tromey@redhat.com>
5274
5275 * target.c (open_target): New function.
5276 (add_target_with_completer, add_deprecated_target_alias): Use
5277 set_cmd_sfunc, set_cmd_context.
5278 (debug_to_open): Remove.
5279 (setup_target_debug): Update.
5280
a1c7835a
YQ
52812014-07-30 Yao Qi <yao@codesourcery.com>
5282
5283 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5284 comments.
5285 * parse.c (exp_iterate): Update comments.
5286
976411d6
GB
52872014-07-30 Gary Benson <gbenson@redhat.com>
5288
5289 * common/common-defs.h: New file.
5290 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5291 * defs.h: Include common-defs.h.
5292 Do not include config.h or build-gnulib/config.h.
5293
5d4848a4
GB
52942014-07-30 Gary Benson <gbenson@redhat.com>
5295
5296 * common/common-utils.h: Do not include config.h.
5297 * nat/linux-btrace.h: Likewise.
5298
d41f6d8e
GB
52992014-07-30 Gary Benson <gbenson@redhat.com>
5300
5301 * btrace.c: Include defs.h.
5302 * common/ptid.c: Include defs.h or server.h as appropriate.
5303 * nat/mips-linux-watch.c: Likewise.
5304
84202f9c
TT
53052014-07-29 Tom Tromey <tromey@redhat.com>
5306
5307 * target.c (target_is_pushed): Simplify.
5308
2530441c
JB
53092014-07-29 Joel Brobecker <brobecker@adacore.com>
5310
5311 GDB 7.8 released.
5312
7e09a223
YQ
53132014-07-29 Yao Qi <yao@codesourcery.com>
5314
5315 PR gdb/17206
5316 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5317
7ebdbe92
DE
53182014-07-28 Doug Evans <xdje42@gmail.com>
5319
5320 PR guile/17203
5321 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5322 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5323 parameters.
5324
f347ffc9
WN
53252014-07-28 Will Newton <will.newton@linaro.org>
5326
5327 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5328 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5329 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5330 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5331 (THUMB2_EABI_SYSCALL): Likewise.
5332 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5333 struct tramp_frame.
5334 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5335 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5336
37c5f1f7
DE
53372014-07-27 Doug Evans <xdje42@gmail.com>
5338
5339 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5340
0c3abbc7
DE
53412014-07-27 Doug Evans <xdje42@gmail.com>
5342
5343 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5344
e76c5d17
DE
53452014-07-26 Ludovic Courtès <ludo@gnu.org>
5346 Doug Evans <xdje42@gmail.com>
5347
5348 PR guile/17146
5349 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5350 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5351 * configure.ac: Try to use guild to compile an scm file, if it fails
5352 then disable guile support.
5353 * configure: Regenerate.
5354 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5355 GUILE_FILE_LIST.
5356 (GUILE_COMPILED_FILES): New variable.
5357 (GUILE_FILES) Update.
5358 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5359 (stamp-guile): Compile scm files.
5360 * guile/guile.c (boot_guile_support): New function.
5361 (standard_throw_args_p): New function.
5362 (print_standard_throw_error, print_throw_error): New functions.
5363 (handle_boot_error): New function.
5364 (initialize_scheme_side): Rewrite to call boot_guile_support.
5365 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5366 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5367
186fcde0
DE
53682014-07-26 Ludovic Courtès <ludo@gnu.org>
5369 Doug Evans <xdje42@gmail.com>
5370
5371 PR guile/17146
5372 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5373 * guile/lib/gdb/support.scm: New file.
5374 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5375 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5376 All uses updated.
5377 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5378 All uses updated.
5379 (%assert-type): Ditto, and renamed to assert-type.
5380 (%exception-print-style): Delete.
5381
4df42755
DE
53822014-07-26 Doug Evans <xdje42@gmail.com>
5383
5384 PR build/17105
5385 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5386 * configure: Regenerate.
5387 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5388 PYTHON_FILES.
5389 (PYTHON_FILES): New variable.
5390 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5391 (GUILE_FILES): New variable.
5392 (stamp-python, install-python, uninstall-python): Handle empty
5393 file list.
5394 (stamp-guile, install-guile, uninstall-guile): Ditto.
5395
ee7333ae
DE
53962014-07-26 Doug Evans <xdje42@gmail.com>
5397
5398 PR guile/17177
5399 * guile/lib/gdb.scm (pretty-printers): Export.
5400 (set-pretty-printers!): Export.
5401 * guile/lib/gdb/printing.scm (gdb module): Update.
5402 (prepend-pretty-printer!, append-pretty-printer!): Update.
5403 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5404 (pretty_printer_list_var): Delete.
5405 (pretty_printer_list): New static global.
5406 (gdbscm_pretty_printers): New function.
5407 (gdbscm_set_pretty_printers_x): New function.
5408 (ppscm_find_pretty_printer_from_gdb): Update.
5409 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5410 (gdbscm_initialize_pretty_printers): Update.
5411
74edf516
DE
54122014-07-26 Doug Evans <xdje42@gmail.com>
5413
5414 PR 17185
5415 * configure.ac: Add check for header gc/gc.h.
5416 Add check for function setenv.
5417 * configure: Regenerate.
5418 * config.in: Regenerate.
5419 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5420
d54398a7
MR
54212014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5422
5423 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5424 variation in gdbarch matching.
5425
ab16fce8
TT
54262014-07-25 Tom Tromey <tromey@redhat.com>
5427
5428 * exec.c (using_exec_ops): Remove.
5429 (exec_close_1): Update. Remove extraneous block, reindent.
5430 (add_target_sections): Use target_is_pushed.
5431
88056fbb
PA
54322014-07-25 Pedro Alves <palves@redhat.com>
5433
5434 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5435 * monitor.c (monitor_create_inferior): Likewise.
5436 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5437 * remote-sim.c (gdbsim_create_inferior): Likewise.
5438 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5439 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5440 * windows-nat.c (do_initial_windows_stuff): Likewise.
5441
70509625
PA
54422014-07-25 Pedro Alves <palves@redhat.com>
5443
5444 * NEWS: Mention signal passing and "signal" command changes.
5445 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5446 comment.
5447 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5448 call.
5449 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5450 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5451 (jump_command): Adjust clear_proceed_status call.
5452 (signal_command): Warn if other thread that are resumed have
5453 signals that will be delivered. Adjust clear_proceed_status call.
5454 (until_next_command, finish_command)
5455 (proceed_after_attach_callback, attach_command_post_wait)
5456 (attach_command): Adjust clear_proceed_status call.
5457 * infrun.c (proceed_after_vfork_done): Likewise.
5458 (proceed_after_attach_callback): Adjust comment.
5459 (clear_proceed_status_thread): Clear stop_signal if not in pass
5460 state.
5461 (clear_proceed_status_callback): Delete.
5462 (clear_proceed_status): New 'step' parameter. Only clear the
5463 proceed status of threads the command being prepared is about to
5464 resume.
5465 (proceed): If passed in an explicit signal, override stop_signal
5466 with it. Don't pass the last stop signal to the thread we're
5467 resuming.
5468 (init_wait_for_inferior): Adjust clear_proceed_status call.
5469 (switch_back_to_stepped_thread): Clear the signal if it should not
5470 be passed.
5471 * infrun.h (clear_proceed_status): New 'step' parameter.
5472 (user_visible_resume_ptid): Add comment.
5473 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5474 signal is in pass state.
5475 * remote.c (append_pending_thread_resumptions): Likewise.
5476 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5477
d8be2939
TT
54782014-07-25 Tom Tromey <tromey@redhat.com>
5479
5480 * target.h (target_stopped_data_address)
5481 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5482 parentheses.
5483
7d0d9d2b
PL
54842014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5485
5486 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5487 comments.
5488 (avr_pointer_to_address): Likewise.
5489
e9e7f724
TT
54902014-07-24 Tom Tromey <tromey@redhat.com>
5491
5492 * monitor.c (compile_pattern): Update.
5493 * target.h (struct target_ops) <to_shortname, to_longname,
5494 to_doc>: Now const.
5495
1947513d
TT
54962014-07-24 Tom Tromey <tromey@redhat.com>
5497
5498 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5499 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5500 (add_info_alias, add_com): Make "doc" const.
5501 (print_doc_line): Make "str" const.
5502 (delete_cmd): Update.
5503 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5504 (print_doc_line): Update.
5505 * cli/cli-script.c (document_command): Update.
5506 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5507 (add_com, add_info, add_info_alias): Update.
5508 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5509 * python/py-cmd.c (cmdpy_destroyer): Update.
5510
64e61d29
TT
55112014-07-24 Tom Tromey <tromey@redhat.com>
5512
5513 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5514 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5515 (help_cmd_list): Constify.
5516 (lookup_cmd): Update.
5517 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5518 const.
5519 (help_cmd_list, apropos_cmd): Update.
5520 * cli/cli-script.c (show_user): Update.
5521 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5522 * cli/cli-setshow.h (cmd_show_list): Update.
5523 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5524 (cmd_show_list): Update.
5525 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5526 * python/py-cmd.c (cmdpy_destroyer): Update.
5527
429e55ea
TT
55282014-07-24 Tom Tromey <tromey@redhat.com>
5529
5530 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5531 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5532 const.
5533 * command.h (deprecate_cmd): Update.
5534 * maint.c (maintenance_do_deprecate): Add casts.
5535
64669f3b
TT
55362014-07-24 Tom Tromey <tromey@redhat.com>
5537
5538 * cli/cli-decode.c (help_cmd): Make parameter "const".
5539 * cli/cli-decode.h (help_cmd): Update.
5540
d3d3328b
TT
55412014-07-24 Tom Tromey <tromey@redhat.com>
5542
5543 * stack.c (up_silently_base, down_silently_base): Make argument
5544 const.
5545
414842dc
TT
55462014-07-24 Tom Tromey <tromey@redhat.com>
5547
5548 * solib.c (solib_add): Make "pattern" const.
5549 * solib.h (solib_add): Update.
5550
baa336ce
TT
55512014-07-24 Tom Tromey <tromey@redhat.com>
5552
5553 * remote.c (remote_serial_open, print_packet, putpkt)
5554 (putpkt_binary): Constify.
5555 * remote.h (putpkt): Update.
5556
5a19e2d0
TT
55572014-07-24 Tom Tromey <tromey@redhat.com>
5558
5559 * monitor.c (monitor_open): Make "args" const.
5560 * monitor.h (monitor_open): Update.
5561
fc4baa5e
TT
55622014-07-24 Tom Tromey <tromey@redhat.com>
5563
5564 * maint.c (match_bfd_flags): Make "string" const.
5565 (print_bfd_section_info): Remove casts.
5566 (print_objfile_section_info): Make "string" const.
5567
0d5f0dbe
TT
55682014-07-24 Tom Tromey <tromey@redhat.com>
5569
5570 * inf-child.c (inf_child_open_target): Make "arg" const.
5571 * inf-child.h (inf_child_open_target): Update.
5572
41c77899
TT
55732014-07-24 Tom Tromey <tromey@redhat.com>
5574
5575 * environ.c (unset_in_environ): Make "var" const.
5576 * environ.h (unset_in_environ): Update.
5577
93db0d79
TT
55782014-07-24 Tom Tromey <tromey@redhat.com>
5579
5580 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5581 Make "cmd" const.
5582 (scan_filename_with_cleanup): Likewise.
5583 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5584 Make arguments const.
5585 (restore_command): Update.
5586
36d6eb95
PA
55872014-07-24 Pedro Alves <palves@redhat.com>
5588
5589 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5590
8009206a
TT
55912014-07-24 Tom Tromey <tromey@redhat.com>
5592 Gary Benson <gbenson@redhat.com>
5593
5594 * nat/linux-ptrace.c (additional_flags): New global.
5595 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5596 additional_flags; don't check GDBSERVER.
5597 (linux_ptrace_set_additional_flags): New function.
5598 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5599 Declare.
5600 * linux-nat.c (_initialize_linux_nat): Call
5601 linux_ptrace_set_additional_flags.
5602
a7068b60
TT
56032014-07-24 Tom Tromey <tromey@redhat.com>
5604
5605 * make-target-delegates (munge_type, write_debugmethod): New
5606 functions.
5607 (debug_names): New global.
5608 ($TARGET_DEBUG_PRINTER): New global.
5609 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5610 name.
5611 Write debug methods. Generate init_debug_target.
5612 * target-debug.h: New file.
5613 * target-delegates.c: Rebuild.
5614 * target.c: Include target-debug.h.
5615 (debug_target): Hoist definition.
5616 (target_kill, target_get_section_table, target_memory_map)
5617 (target_flash_erase, target_flash_done, target_detach)
5618 (target_disconnect, target_wait, target_resume)
5619 (target_pass_signals, target_program_signals, target_follow_fork)
5620 (target_mourn_inferior, target_search_memory)
5621 (target_thread_address_space, target_close)
5622 (target_find_new_threads, target_core_of_thread)
5623 (target_verify_memory, target_insert_mask_watchpoint)
5624 (target_remove_mask_watchpoint): Remove targetdebug code.
5625 (debug_to_post_attach, debug_to_prepare_to_store)
5626 (debug_to_files_info, debug_to_insert_breakpoint)
5627 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5628 (debug_to_region_ok_for_hw_watchpoint)
5629 (debug_to_can_accel_watchpoint_condition)
5630 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5631 (debug_to_watchpoint_addr_within_range)
5632 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5633 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5634 (debug_to_terminal_init, debug_to_terminal_inferior)
5635 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5636 (debug_to_terminal_save_ours, debug_to_terminal_info)
5637 (debug_to_load, debug_to_post_startup_inferior)
5638 (debug_to_insert_fork_catchpoint)
5639 (debug_to_remove_fork_catchpoint)
5640 (debug_to_insert_vfork_catchpoint)
5641 (debug_to_remove_vfork_catchpoint)
5642 (debug_to_insert_exec_catchpoint)
5643 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5644 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5645 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5646 (setup_target_debug): Call init_debug_target.
5647 * target.h (TARGET_DEBUG_PRINTER): New macro.
5648 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5649 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5650
2c51604d
GB
56512014-07-24 Gary Benson <gbenson@redhat.com>
5652
5653 * exceptions.h (throw_vfatal): Renamed to...
5654 (throw_vquit): New declaration.
5655 (throw_quit): Likewise.
5656 * exceptions.c (throw_vfatal): Renamed to...
5657 (throw_vquit): New function.
5658 (throw_quit): Likewise.
5659 (throw_error): Call throw_verror rather than throw_it.
5660 * utils.h (vfatal): Removed.
5661 (fatal): Likewise.
5662 * utils.c (vfatal): Removed.
5663 (fatal): Likewise.
5664 (internal_verror): Replaced call to fatal with call to throw_quit.
5665 (quit): Replaced calls to fatal with calls to throw_quit.
5666
34211963
ME
56672014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5668
5669 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5670 target_read_code.
5671
a52b4d3e
ME
56722014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5673
5674 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5675 less than zero in conditional expression.
5676
a8bdc56b
TT
56772014-07-23 Tom Tromey <tromey@redhat.com>
5678
5679 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5680 ($INTRO_PART): Don't match whitespace.
5681 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5682 argument matching.
5683 ($METHOD): Add $METHOD_TRAILER.
5684 (trim): Rewrite.
5685 (scan_target_h): New sub.
5686 Change main loop not to collect state.
5687 * target-delegates.c: Rebuild.
5688
91b52240
GB
56892014-07-23 Gary Benson <gbenson@redhat.com>
5690
5691 * cp-support.c (gdb_demangle): Fix build on systems without
5692 sigaltstack.
5693
45326f6f
JK
56942014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5695
5696 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5697 for reference entry value target data value.
5698
e214cf6c
JK
56992014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5700
5701 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5702 value_available_contents_eq.
5703
bddbbedd
PA
57042014-07-22 Pedro Alves <palves@redhat.com>
5705
5706 * value.c (allocate_optimized_out_value): Don't mark value as
5707 non-lazy.
5708
45c71484
JW
57092014-07-22 Jiong Wang <jiong.wang@arm.com>
5710
5711 * MAINTAINERS (Write After Approval): Update my email address.
5712
9597b22a
DE
57132014-07-20 Doug Evans <dje@google.com>
5714
5715 PR server/17147
5716 * remote.c (putpkt_binary): Add text to error message.
5717
91101fe5
YQ
57182014-07-20 Yao Qi <yao@codesourcery.com>
5719
5720 * eval.c: Remove "Chill" from comments.
5721 * gdbtypes.h: Likewise.
5722 * symtab.h: Likewise.
5723
c9402c95
YQ
57242014-07-20 Yao Qi <yao@codesourcery.com>
5725
5726 * std-operator.def: Update comments to TERNOP_SLICE.
5727
ae8fddda
YQ
57282014-07-20 Yao Qi <yao@codesourcery.com>
5729
5730 * std-operator.def: Remove BINOP_RANGE.
5731 * breakpoint.c (watchpoint_exp_is_const): Update.
5732 * expprint.c (dump_subexp_body_standard): Likewise.
5733 * eval.c (init_array_element): Remove dead code.
5734 (evaluate_subexp_standard): Likewise.
5735
9c816640
YQ
57362014-07-20 Yao Qi <yao@codesourcery.com>
5737
5738 * std-operator.def: Remove BINOP_IN.
5739 * breakpoint.c (watchpoint_exp_is_const): Update.
5740 * eval.c (evaluate_subexp_standard): Likewise.
5741 * expprint.c (dump_subexp_body_standard): Likewise.
5742
164224e9
ME
57432014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5744
5745 * microblaze-tdep.c (microblaze_register_names): Add
5746 the rshr and rslr register names.
5747 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5748 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5749 Use of tdesc_numbered_register. Use of
5750 microblaze_register_g_packet_guesses. Use of
5751 tdesc_use_registers. Use of set_gdbarch_register_type.
5752 (microblaze_register_g_packet_guesses): New.
5753 * microblaze-tdep.h (microblaze_reg_num): Add
5754 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5755 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5756 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5757 * features/microblaze-core.xml: New file.
5758 * features/microblaze-stack-protect.xml: New file.
5759 * features/microblaze-with-stack-protect.c: New file.
5760 * features/microblaze-with-stack-protect.xml: New file.
5761 * features/microblaze.xml: New file.
5762 * features/microblaze.c: New file.
5763 * features/Makefile (microblaze-with-stack-protect): Add
5764 microblaze-with-stack-protect microblaze and microblaze-expedite.
5765 * regformats/microblaze-with-stack-protect.dat: New file.
5766 * regformats/microblaze.dat: New file.
5767 * doc/gdb.texinfo (MicroBlaze Features): Added.
5768
e8b2341c
TT
57692014-07-18 Tom Tromey <tromey@redhat.com>
5770
5771 * exec.c (exec_ops): Now static.
5772 * exec.h (exec_ops): Don't declare.
5773
44e89118
TT
57742014-07-18 Tom Tromey <tromey@redhat.com>
5775
5776 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5777 to find_target_beneath.
5778 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5779 find_target_beneath.
5780 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5781
b0ed115f
TT
57822014-07-18 Tom Tromey <tromey@redhat.com>
5783
5784 PR gdb/17130:
5785 * utils.c (quit): Use target_supports_terminal_ours.
5786 * target.h (target_supports_terminal_ours): Declare.
5787 * target.c (target_supports_delete_record): Don't check
5788 to_delete_record against NULL.
5789 (target_supports_terminal_ours): New function.
5790
e75fdfca
TT
57912014-07-18 Tom Tromey <tromey@redhat.com>
5792
5793 PR gdb/17130:
5794 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5795 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5796 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5797 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5798 * windows-nat.c (windows_xfer_partial): Always delegate.
5799 * record-btrace.c (record_btrace_xfer_partial): Simplify
5800 delegation.
5801 (record_btrace_fetch_registers, record_btrace_store_registers)
5802 (record_btrace_prepare_to_store, record_btrace_resume)
5803 (record_btrace_wait, record_btrace_find_new_threads)
5804 (record_btrace_thread_alive): Likewise.
5805 * procfs.c (procfs_xfer_partial): Always delegate.
5806 * corelow.c (core_xfer_partial): Always delegate.
5807 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5808
83814951
TT
58092014-07-18 Tom Tromey <tromey@redhat.com>
5810
5811 * exec.c (exec_make_note_section): Move earlier.
5812
b8b8facf
DE
58132014-07-17 Doug Evans <dje@google.com>
5814
74b49205 5815 PR gdb/17170
b8b8facf
DE
5816 * maint.c (count_symtabs_and_blocks): Handle NULL
5817 current_program_space.
5818 (report_command_stats): Check global enabled flag in addition to
5819 recorded enabled flag.
5820 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5821
69ff6be5
PA
58222014-07-16 Pedro Alves <palves@redhat.com>
5823
5824 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5825
252db1b5
TT
58262014-07-16 Tom Tromey <tromey@redhat.com>
5827
5828 * target.h (struct target_ops) <to_delete_record>: Reformat
5829 comment.
5830
a432721e
TT
58312014-07-16 Tom Tromey <tromey@redhat.com>
5832
5833 * target-delegates.c: Rebuild.
5834
487d9753
PL
58352014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5836
5837 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5838 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5839 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5840 (avr_pointer_to_address): Likewise.
5841 (avr_address_class_type_flags): New function.
5842 (avr_address_class_type_flags_to_name): Likewise.
5843 (avr_address_class_name_to_type_flags): Likewise.
5844 (avr_gdbarch_init): Set address_class_type_flags,
5845 address_class_type_flags_to_name and
5846 address_class_name_to_type_flags.
5847
57745c90
PA
58482014-07-15 Pedro Alves <palves@redhat.com>
5849
5850 * linux-nat.c (kill_callback): Save errno and work with saved
5851 copy.
5852
2d40be18
SM
58532014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5854
5855 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5856
572f6555
EBM
58572014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5858
5859 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5860 breakpoint support correctly.
5861
cc1c52ad
PA
58622014-07-14 Pedro Alves <palves@redhat.com>
5863
5864 * utils.c (prompt_for_continue): Call target_terminal_ours.
5865
1e973570
PA
58662014-07-14 Pedro Alves <palves@redhat.com>
5867
5868 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5869 catch_errors. Don't re-enable stdin or notify observers where,
5870 and rethrow error.
5871 (fetch_inferior_event_wrapper): Delete.
5872
93d6eb10
PA
58732014-07-14 Pedro Alves <palves@redhat.com>
5874
5875 PR gdb/17072
5876 * top.c: Include "inf-loop.h".
5877 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5878 field.
5879 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5880 was async before.
5881 (gdb_readline_wrapper): Store whether the target is async, and
5882 make it sync.
5883
0017922d
PA
58842014-07-14 Pedro Alves <palves@redhat.com>
5885
5886 PR gdb/17072
5887 * top.c (gdb_readline_wrapper_line): Tweak comment.
5888 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5889 the input handler callback.
5890
94696ad3
PA
58912014-07-14 Pedro Alves <palves@redhat.com>
5892
5893 PR gdb/17072
5894 * main.c: Include event-top.h.
5895 (handle_command_errors): New function.
5896 (catch_command_errors, catch_command_errors_const): Use it.
5897
9d1e69a2
PA
58982014-07-14 Pedro Alves <palves@redhat.com>
5899
5900 * exceptions.c (catch_command_errors, catch_command_errors_const):
5901 Moved to main.c.
5902 * exceptions.h (catch_command_errors_ftype)
5903 (catch_command_errors_const_ftype): Moved to main.c.
5904 (catch_command_errors, catch_command_errors_const): Delete
5905 declarations.
5906 * main.c (catch_command_errors_ftype)
5907 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5908 (catch_command_errors, catch_command_errors_const)): Moved here
5909 from exceptions.c and make static.
5910
feefc97b
PA
59112014-07-14 Pedro Alves <palves@redhat.com>
5912
5913 * exceptions.c (print_any_exception): Delete.
5914 (catch_exceptions_with_msg): Use exception_print instead of
5915 print_any_exception.
5916 (catch_errors): Use exception_fprintf instead of
5917 print_any_exception.
5918 (catch_command_errors, catch_command_errors_const): Use
5919 exception_print instead of print_any_exception.
5920
c933f875
PA
59212014-07-14 Pedro Alves <palves@redhat.com>
5922
5923 * infcall.c (run_inferior_call): Set 'sync_execution' while
5924 running the inferior call.
5925
feb6f816
PA
59262014-07-14 Pedro Alves <palves@redhat.com>
5927
5928 * value.c (value_contents_equal): Delete function.
5929 * value.h (value_contents_equal): Delete declaration.
5930
d98b7a16
TT
59312014-07-14 Tom Tromey <tromey@redhat.com>
5932
5933 PR exp/17106:
5934 * gdbtypes.c (is_dynamic_type_internal): New function, from
5935 is_dynamic_type.
5936 (is_dynamic_type): Rewrite.
5937 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5938 (resolve_dynamic_struct): Likewise.
5939 (resolve_dynamic_type_internal): New function, from
5940 resolve_dynamic_type.
5941 (resolve_dynamic_type): Rewrite.
5942
548740d6
TT
59432014-07-14 Tom Tromey <tromey@redhat.com>
5944
5945 * target.c (target_require_runnable): Also check record_stratum.
5946 Update comment.
5947
808f7ab1
YQ
59482014-07-11 Yao Qi <yao@codesourcery.com>
5949
5950 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5951 thumb_instruction_restores_sp return true.
5952
540314bd
YQ
59532014-07-11 Yao Qi <yao@codesourcery.com>
5954
5955 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5956 (thumb_in_function_epilogue_p): Call
5957 thumb_instruction_restores_sp.
5958
1db01f22
YQ
59592014-07-11 Yao Qi <yao@codesourcery.com>
5960
5961 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5962 'add sp, #imm'.
5963 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5964
3116063b
GB
59652014-07-11 Gary Benson <gbenson@redhat.com>
5966
5967 * amd64-linux-nat.c (gdbcore.h): Remove include.
5968 (regset.h): Likewise.
5969 (nat/linux-btrace.h): Likewise.
5970 (btrace.h): Likewise.
5971 (gdb_assert.h): Likewise.
5972 (string.h): Likewise.
5973 (sys/uio.h): Likewise.
5974 (sys/debugreg.h): Likewise.
5975 (sys/syscall.h): Likewise.
5976 (sys/procfs.h): Likewise.
5977 (sys/user.h): Likewise.
5978 (asm/ptrace.h): Likewise.
5979 (i386-nat.h): Likewise.
5980 * i386-linux-nat.c (i386-nat.h): Likewise.
5981 (regset.h): Likewise.
5982 (target.h): Likewise.
5983 (linux-nat.h): Likewise.
5984 (nat/linux-btrace.h): Likewise.
5985 (btrace.h): Likewise.
5986 (gdb_assert.h): Likewise.
5987 (string.h): Likewise.
5988 (sys/uio.h): Likewise.
5989 (sys/user.h): Likewise.
5990 (sys/procfs.h): Likewise.
5991 (sys/reg.h): Likewise.
5992 (sys/debugreg.h): Likewise.
5993 (ORIG_EAX): Remove definition.
5994
040baaf6
GB
59952014-07-11 Gary Benson <gbenson@redhat.com>
5996
5997 * i386-linux-nat.h: New file.
5998 * x86-linux-nat.h: Likewise.
5999 * x86-linux-nat.c: Likewise.
6000 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
6001 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
6002 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6003 * amd64-linux-nat.c (x86-linux-nat.h): New include.
6004 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6005 (PTRACE_SETREGSET): Likewise.
6006 (arch_lwp_info): Now in x86-linux-nat.c.
6007 (have_ptrace_getregset): Now in x86-linux-nat.h.
6008 (x86_linux_dr_get): Now in x86-linux-nat.c.
6009 (x86_linux_dr_set): Likewise.
6010 (x86_linux_dr_get_addr): Likewise.
6011 (x86_linux_dr_get_control): Likewise.
6012 (x86_linux_dr_get_status): Likewise.
6013 (update_debug_registers_callback): Likewise.
6014 (x86_linux_dr_set_control): Likewise.
6015 (x86_linux_dr_set_addr): Likewise.
6016 (x86_linux_prepare_to_resume): Likewise.
6017 (x86_linux_new_thread): Likewise.
6018 (x86_linux_new_fork): Likewise.
6019 (x86_linux_get_thread_area): Likewise.
6020 (super_post_startup_inferior): Likewise.
6021 (x86_linux_child_post_startup_inferior): Likewise.
6022 (AMD64_LINUX_USER64_CS): Likewise.
6023 (AMD64_LINUX_X32_DS): Likewise.
6024 (x86_linux_read_description): Likewise.
6025 (x86_linux_enable_btrace): Likewise.
6026 (x86_linux_disable_btrace): Likewise.
6027 (x86_linux_teardown_btrace): Likewise.
6028 (x86_linux_read_btrace): Likewise.
6029 (x86_linux_create_target): Likewise.
6030 (x86_linux_add_target): Likewise.
6031 * i386-linux-nat.c (x86-linux-nat.h): New include.
6032 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6033 (PTRACE_SETREGSET): Likewise.
6034 (arch_lwp_info): Now in x86-linux-nat.c.
6035 (have_ptrace_getregset): Now in x86-linux-nat.h.
6036 (x86_linux_dr_get): Now in x86-linux-nat.c.
6037 (x86_linux_dr_set): Likewise.
6038 (x86_linux_dr_get_addr): Likewise.
6039 (x86_linux_dr_get_control): Likewise.
6040 (x86_linux_dr_get_status): Likewise.
6041 (update_debug_registers_callback): Likewise.
6042 (x86_linux_dr_set_control): Likewise.
6043 (x86_linux_dr_set_addr): Likewise.
6044 (x86_linux_prepare_to_resume): Likewise.
6045 (x86_linux_new_thread): Likewise.
6046 (x86_linux_new_fork): Likewise.
6047 (x86_linux_get_thread_area): Likewise.
6048 (super_post_startup_inferior): Likewise.
6049 (x86_linux_child_post_startup_inferior): Likewise.
6050 (AMD64_LINUX_USER64_CS): Likewise.
6051 (AMD64_LINUX_X32_DS): Likewise.
6052 (x86_linux_read_description): Likewise.
6053 (x86_linux_enable_btrace): Likewise.
6054 (x86_linux_disable_btrace): Likewise.
6055 (x86_linux_teardown_btrace): Likewise.
6056 (x86_linux_read_btrace): Likewise.
6057 (x86_linux_create_target): Likewise.
6058 (x86_linux_add_target): Likewise.
6059
1aa7e42c
GB
60602014-07-11 Gary Benson <gbenson@redhat.com>
6061
6062 * amd64-linux-nat.c: Comment and whitespace changes.
6063 * i386-linux-nat.c: Comment and whitespace changes.
6064
c1e246a0
GB
60652014-07-11 Gary Benson <gbenson@redhat.com>
6066
6067 * amd64-linux-nat.c (x86_linux_create_target): New function.
6068 (x86_linux_add_target): Likewise.
6069 (_initialize_amd64_linux_nat): Delegate to the above new functions.
6070 * i386-linux-nat.c (x86_linux_create_target): New function.
6071 (x86_linux_add_target): Likewise.
6072 (_initialize_i386_linux_nat): Delegate to the above new functions.
6073
8c420b8d
GB
60742014-07-11 Gary Benson <gbenson@redhat.com>
6075
6076 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
6077 (ps_get_thread_area): Delegate to the above in 32-bit mode.
6078 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
6079 (ps_get_thread_area): Delegate to the above.
6080
cb1da100
GB
60812014-07-11 Gary Benson <gbenson@redhat.com>
6082
6083 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
6084 x86_linux_read_description. All uses updated. amd64-specific
6085 code conditionalized. Conditionalized i386-specific code added.
6086 Redundant cast removed.
6087 * i386-linux-nat.c (i386_linux_read_description): Renamed to
6088 x86_linux_read_description. All uses updated. i386-specific
6089 code conditionalized. Conditionalized amd64-specific code added.
6090 One sizeof replaced with the actual type it is describing.
6091
2acf3cd0
GB
60922014-07-11 Gary Benson <gbenson@redhat.com>
6093
6094 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
6095 x86_linux_dr_get. All uses updated.
6096 (amd64_linux_dr_set): Renamed to
6097 x86_linux_dr_set. All uses updated.
6098 (amd64_linux_dr_get_addr): Renamed to
6099 x86_linux_dr_get_addr. All uses updated.
6100 (amd64_linux_dr_get_control): Renamed to
6101 x86_linux_dr_get_control. All uses updated.
6102 (amd64_linux_dr_get_status): Renamed to
6103 x86_linux_dr_get_status. All uses updated.
6104 (amd64_linux_dr_set_control): Renamed to
6105 x86_linux_dr_set_control. All uses updated.
6106 (amd64_linux_dr_set_addr): Renamed to
6107 x86_linux_dr_set_addr. All uses updated.
6108 (amd64_linux_prepare_to_resume): Renamed to
6109 x86_linux_prepare_to_resume. All uses updated.
6110 (amd64_linux_new_thread): Renamed to
6111 x86_linux_new_thread. All uses updated.
6112 (amd64_linux_new_fork): Renamed to
6113 x86_linux_new_fork. All uses updated.
6114 (amd64_linux_child_post_startup_inferior): Renamed to
6115 x86_linux_child_post_startup_inferior. All uses updated.
6116 (amd64_linux_enable_btrace): Renamed to
6117 x86_linux_enable_btrace. All uses updated.
6118 (amd64_linux_disable_btrace): Renamed to
6119 x86_linux_disable_btrace. All uses updated.
6120 (amd64_linux_teardown_btrace): Renamed to
6121 x86_linux_teardown_btrace. All uses updated.
6122 (amd64_linux_read_btrace): Renamed to
6123 x86_linux_read_btrace. All uses updated.
6124 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6125 x86_linux_dr_get. All uses updated.
6126 (i386_linux_dr_set): Renamed to
6127 x86_linux_dr_set. All uses updated.
6128 (i386_linux_dr_get_addr): Renamed to
6129 x86_linux_dr_get_addr. All uses updated.
6130 (i386_linux_dr_get_control): Renamed to
6131 x86_linux_dr_get_control. All uses updated.
6132 (i386_linux_dr_get_status): Renamed to
6133 x86_linux_dr_get_status. All uses updated.
6134 (i386_linux_dr_set_control): Renamed to
6135 x86_linux_dr_set_control. All uses updated.
6136 (i386_linux_dr_set_addr): Renamed to
6137 x86_linux_dr_set_addr. All uses updated.
6138 (i386_linux_prepare_to_resume): Renamed to
6139 x86_linux_prepare_to_resume. All uses updated.
6140 (i386_linux_new_thread): Renamed to
6141 x86_linux_new_thread. All uses updated.
6142 (i386_linux_new_fork): Renamed to
6143 x86_linux_new_fork. All uses updated.
6144 (i386_linux_child_post_startup_inferior): Renamed to
6145 x86_linux_child_post_startup_inferior. All uses updated.
6146 (i386_linux_enable_btrace): Renamed to
6147 x86_linux_enable_btrace. All uses updated.
6148 (i386_linux_disable_btrace): Renamed to
6149 x86_linux_disable_btrace. All uses updated.
6150 (i386_linux_teardown_btrace): Renamed to
6151 x86_linux_teardown_btrace. All uses updated.
6152 (i386_linux_read_btrace): Renamed to
6153 x86_linux_read_btrace. All uses updated.
6154
b9c1d481
AS
61552014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6156
6157 * remote.c (extended_remote_post_attach): New function.
6158 (init_extended_remote_ops): Install it as to_post_attach method.
6159
7180e04a
PA
61602014-07-09 Pedro Alves <palves@redhat.com>
6161
6162 * infcmd.c (attach_command_post_wait): Don't call
6163 target_terminal_inferior here.
6164 (attach_command): Call it here instead.
6165
9a9a7608
AB
61662014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6167
6168 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6169 field.
6170 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6171 from varobj.c, with additional checks.
6172 (c_varobj_ops): Fill in is_path_expr_parent field.
6173 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6174 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6175 field.
6176 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6177 ops method.
6178 (varobj_default_is_path_expr_parent): New function.
6179 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6180 (varobj_default_is_path_expr_parent): Declare new function.
6181
1f267ae3
MM
61822014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6183
6184 * infcmd.c (finish_backward): Turn internal error into normal error.
6185
b2ee242b
PA
61862014-07-07 Pedro Alves <palves@redhat.com>
6187
8a869bca 6188 PR gdb/17096
b2ee242b
PA
6189 * remote.c (async_handle_remote_sigint)
6190 (async_handle_remote_sigint_twice): Call
6191 gdb_call_async_signal_handler instead of
6192 mark_async_signal_handler.
6193
38e229b2
TT
61942014-07-07 Tom Tromey <tromey@redhat.com>
6195
6196 * target-delegates.c: Rebuild.
6197 * target.c (target_info_record): Remove.
6198 * record.c (info_record_command): Unconditionally call
6199 to_info_record.
6200 * target.h (struct target_ops) <to_info_record>: Use
6201 TARGET_DEFAULT_IGNORE.
6202 (target_info_record): Remove.
6203
f0f9ff95
TT
62042014-07-07 Tom Tromey <tromey@redhat.com>
6205
6206 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6207 TARGET_DEFAULT_NORETURN.
6208 * target.c (generic_tls_error): New function.
6209 (target_translate_tls_address): Don't search target stack.
6210 * target-delegates.c: Rebuild.
6211 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6212 stack.
6213 * linux-thread-db.c (thread_db_get_thread_local_address):
6214 Unconditionally call beneath target.
6215
4a5be5ee
MK
62162014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6217
6218 * cli/cli-logging.c (pop_output_files): Assign targerr to
6219 gdb_stdtargerr.
6220
92c3b204
AB
62212014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6222
6223 * MAINTAINERS (Write After Approval): Update my email address.
6224
9b11e3a7
GB
62252014-07-02 Gary Benson <gbenson@redhat.com>
6226
6227 * proc-service.c (ps_xfer_memory): Update comment.
6228 (ps_pstop): Remove unused function.
6229 (ps_pcontinue): Likewise.
6230 (ps_lstop): Likewise.
6231 (ps_lcontinue): Likewise.
6232 (ps_lgetxregsize): Likewise.
6233 (ps_lgetxregs): Likewise.
6234 (ps_lsetxregs): Likewise.
6235 (ps_plog): Likewise.
6236 (ps_ptread): Likewise.
6237 (ps_ptwrite): Likewise.
6238
cf363f18
MW
62392014-07-01 Mark Wielaard <mjw@redhat.com>
6240
6241 * dwarf2read.c (add_array_cv_type): New function.
6242 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6243 (read_tag_volatile_type): Likewise.
6244
82ae6c8d
TT
62452014-07-01 Tom Tromey <tromey@redhat.com>
6246
6247 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6248 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6249 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6250 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6251 * command.h (cmd_cfunc_ftype): Move earlier.
6252 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6253 (add_com, add_info): Use cmd_cfunc_ftype.
6254
96142726
TT
62552014-06-30 Tom Tromey <tromey@redhat.com>
6256
6257 * symtab.c (operator_chars): Make parameters and return type
6258 const.
6259 (file_matches): Make "files" const.
6260 (struct search_symbols_data) <files>: Now const.
6261 (search_symbols): Make "regexp" and "files" parameters const.
6262 Update.
6263 (symtab_symbol_info): Remove cast.
6264 (rbreak_command): Update.
6265 * symtab.h (search_symbols): Update.
6266
b67a2c6f
YQ
62672014-06-27 Yao Qi <yao@codesourcery.com>
6268
6269 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6270 Change parameter type to 'struct thread_info *'. Caller
6271 updated.
6272 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6273 Update declaration.
6274 * dummy-frame.c (struct dummy_frame_id): New.
6275 (dummy_frame_id_eq): New function.
6276 (struct dummy_frame) <id>: Change its type to 'struct
6277 dummy_frame_id'.
6278 (dummy_frame_push): Add parameter ptid and save it in
6279 dummy_frame_id.
6280 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6281 inferior_ptid.
6282 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6283 to inferior_ptid.
6284 (lookup_dummy_frame): Change parameter type to 'struct
6285 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6286 instead of frame_id_eq.
6287 (dummy_frame_pop): Add parameter ptid. Callers updated.
6288 Update comments. Compose dummy_frame_id and pass it to
6289 lookup_dummy_frame.
6290 (dummy_frame_discard): Add parameter ptid.
6291 (dummy_frame_sniffer): Compose dummy_frame_id and call
6292 dummy_frame_id_eq instead of frame_id_eq.
6293 (fprint_dummy_frames): Print ptid.
6294 * dummy-frame.h: Remove comments.
6295 (dummy_frame_push): Add ptid in declaration.
6296 (dummy_frame_pop, dummy_frame_discard): Likewise.
6297
5b10184c
TT
62982014-06-26 Tom Tromey <tromey@redhat.com>
6299
6300 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6301 * command.h (error_no_arg): Update.
6302
06900326
TT
63032014-06-26 Tom Tromey <tromey@redhat.com>
6304
6305 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6306 (do_show_command): Make "arg" const.
6307 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6308
c2bcbb1d
TT
63092014-06-26 Tom Tromey <tromey@redhat.com>
6310
6311 * record-full.c (record_full_get_bookmark): Make "args" const.
6312 (record_full_goto_bookmark): Make "raw_bookmark" const.
6313 * record.c (record_goto): New function.
6314 (cmd_record_goto): Use it. Now static.
6315 * record.h (record_goto): Declare.
6316 (cmd_record_goto): Remove declaration.
6317 * target-delegates.c: Rebuild.
6318 * target.h (struct target_ops) <to_get_bookmark,
6319 to_goto_bookmark>: Make parameter const.
6320
9cbe5fff
TT
63212014-06-26 Tom Tromey <tromey@redhat.com>
6322
6323 * defs.h (generic_load): Update.
6324 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6325 * monitor.c (monitor_load): Make "args" const.
6326 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6327 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6328 const.
6329 (mips_load): Make "file" const.
6330 * remote-sim.c (gdbsim_load): Make "args" const.
6331 * remote.c (remote_load): Make "name" const.
6332 * symfile.c (generic_load): Make "args" const.
6333 * target-delegates.c: Rebuild.
6334 * target.c (target_load): Make "arg" const.
6335 (debug_to_load): Make "args" const.
6336 * target.h (struct target_ops) <to_load>: Make parameter const.
6337 (target_load): Update.
6338
34a68019
TT
63392014-06-26 Tom Tromey <tromey@redhat.com>
6340
6341 PR symtab/16902:
6342 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6343 (dwarf2_physname, read_partial_die)
6344 (guess_partial_die_structure_name, fixup_partial_die)
6345 (guess_full_die_structure_name, anonymous_struct_prefix)
6346 (dwarf2_name): Use per-BFD obstack.
6347
efc889c1
YQ
63482014-06-26 Yao Qi <yao@codesourcery.com>
6349
6350 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6351 dummyframe and this_id into inner block below.
6352
4395285e
YQ
63532014-06-26 Yao Qi <yao@codesourcery.com>
6354
6355 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6356 with "signal_pass[0]" in the initialization of signal_pass.
6357
aef92902
MM
63582014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6359
6360 * record-btrace.c (record_btrace_generating_corefile)
6361 (record_btrace_prepare_to_generate_core)
6362 (record_btrace_done_generating_core): New.
6363 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6364 (record_btrace_store_registers, record_btrace_prepare_to_store):
6365 Forward request when generating a core file.
6366 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6367 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6368 to_done_generating_core.
6369
5fff78c4
MM
63702014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6371
6372 * target.h (target_ops) <to_prepare_to_generate_core>
6373 <to_done_generating_core>: New.
6374 (target_prepare_to_generate_core, target_done_generating_core): New.
6375 * target.c (target_prepare_to_generate_core)
6376 (target_done_generating_core): New.
6377 * target-delegates.c: Regenerate.
6378 * gcore.c: (write_gcore_file): Rename to ...
6379 (write_gcore_file_1): ...this.
6380 (write_gcore_file): Call target_prepare_to_generate_core
6381 and target_done_generating_core.
6382
1d1f1ccb
MM
63832014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6384
6385 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6386 * gcore.c (write_gcore_file): Free memory returned from
6387 make_corefile_notes.
6388 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6389 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6390
3343ef86
YQ
63912014-06-24 Yao Qi <yao@codesourcery.com>
6392
6393 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6394 (arm_linux_init_abi): Set skip_trampoline_code with
6395 gdbarch_skip_trampoline_code instead of
6396 find_solib_trampoline_target.
6397
18d18ac8
YQ
63982014-06-24 Yao Qi <yao@codesourcery.com>
6399
6400 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6401 arm_skip_bx_reg returns non-zero.
6402
80d8d390
YQ
64032014-06-24 Yao Qi <yao@codesourcery.com>
6404
6405 * arm-tdep.c (arm_skip_bx_reg): New function.
6406 (arm_skip_stub): Call arm_skip_bx_reg.
6407
6a18a01c
DB
64082014-06-23 Don Breazeal <donb@codesourcery.com>
6409
6410 * MAINTAINERS: Add myself as write-after-approval maintainer.
6411
8e9db26e
PA
64122014-06-23 Pedro Alves <palves@redhat.com>
6413
6414 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6415 DR_CONTROL before setting DR0..DR3.
6416 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6417 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6418 bits of DR_CONTROL related to the debug register slot being
6419 disabled. If all slots are vacant, clear local slowdown as well,
6420 and assert DR_CONTROL is 0.
6421
70afc5b7
SC
64222014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6423
6424 * python/lib/gdb/command/xmethods.py
6425 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6426 current progspace only if the string "progspace" matches LOCUS_RE.
6427
840ed64d
JK
64282014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6429
6430 Fix --with-system-readline with readline-6.3 patch 5.
6431 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6432 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6433 types.
6434
26f2dc30
TT
64352014-06-20 Tom Tromey <tromey@redhat.com>
6436
6437 * dwarf2read.c (dw2_get_real_path): Use correct type in
6438 OBSTACK_CALLOC.
6439 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6440
125f8a3d
GB
64412014-06-20 Gary Benson <gbenson@redhat.com>
6442
6443 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6444 * common/glibc_thread_db.h: Likewise.
6445 * common/i386-cpuid.h: Likewise.
6446 * common/i386-gcc-cpuid.h: Likewise.
6447 * common/linux-btrace.h: Likewise.
6448 * common/linux-osdata.h: Likewise.
6449 * common/linux-procfs.h: Likewise.
6450 * common/linux-ptrace.h: Likewise.
6451 * common/mips-linux-watch.h: Likewise.
6452 * common/linux-btrace.c: Moved to nat.
6453 * common/linux-osdata.c: Likewise.
6454 * common/linux-procfs.c: Likewise.
6455 * common/linux-ptrace.c: Likewise.
6456 * common/mips-linux-watch.c: Likewise.
6457 * nat/gdb_thread_db.h: Moved from common.
6458 * nat/glibc_thread_db.h: Likewise.
6459 * nat/i386-cpuid.h: Likewise.
6460 * nat/i386-gcc-cpuid.h: Likewise.
6461 * nat/linux-btrace.c: Likewise.
6462 * nat/linux-btrace.h: Likewise.
6463 * nat/linux-osdata.c: Likewise.
6464 * nat/linux-osdata.h: Likewise.
6465 * nat/linux-procfs.c: Likewise.
6466 * nat/linux-procfs.h: Likewise.
6467 * nat/linux-ptrace.c: Likewise.
6468 * nat/linux-ptrace.h: Likewise.
6469 * nat/mips-linux-watch.c: Likewise.
6470 * nat/mips-linux-watch.h: Likewise.
6471 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6472 (object file files): Reordered.
6473 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6474 of glibc_thread_db.h.
6475
42995dbd
GB
64762014-06-20 Gary Benson <gbenson@redhat.com>
6477
6478 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6479 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6480 (i386_dr_low): Likewise.
6481 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6482 (i386_dr_low_set_addr): Likewise.
6483 (i386_dr_low_get_addr): Likewise.
6484 (i386_dr_low_can_set_control): Likewise.
6485 (i386_dr_low_set_control): Likewise.
6486 (i386_dr_low_get_control): Likewise.
6487 (i386_dr_low_get_status): Likewise.
6488 (i386_get_debug_register_length): Likewise.
6489 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6490 (i386_dr_low): Likewise.
6491 * nat/i386-dregs.c (i386-low.h): Remove include.
6492 (i386-nat.h): Likewise.
6493 (nat/i386-dregs.h): New include.
6494 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6495 (i386_dr_low_set_addr): Likewise.
6496 (i386_dr_low_get_addr): Likewise.
6497 (i386_dr_low_can_set_control): Likewise.
6498 (i386_dr_low_set_control): Likewise.
6499 (i386_dr_low_get_control): Likewise.
6500 (i386_dr_low_get_status): Likewise.
6501 (i386_get_debug_register_length): Likewise.
6502 (debug_hw_points): Likewise.
6503
3ed9baed
IB
65042014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6505
6506 * Makefile.in (SFILES): Add d-exp.y.
6507 (YYFILES): Add d-exp.c.
6508 (YYOBJ): Add d-exp.o.
6509 (local-maintainer-clean): Delete d-exp.c.
6510 * d-exp.y: New file.
6511 * d-lang.h (d_parse): New declaration.
6512 (d_error): New declaration.
6513 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6514 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6515 PREC_ORDER operators.
6516 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6517
78c164b0
YQ
65182014-06-19 Yao Qi <yao@codesourcery.com>
6519
6520 * gdbthread.h (any_running): Remove the declaration.
6521 * thread.c (any_running): Remove.
6522
f6e29b6e
YQ
65232014-06-19 Yao Qi <yao@codesourcery.com>
6524
6525 * gdbthread.h (struct thread_info) <state>: Change its type to
6526 'enum thread_state'. Update comments.
6527
034f788c
PA
65282014-06-19 Pedro Alves <palves@redhat.com>
6529
6530 * gdbthread.h (ALL_THREADS): Delete.
6531 (ALL_NON_EXITED_THREADS): New macro.
6532 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6533 instead of ALL_THREADS.
6534 * infrun.c (find_thread_needs_step_over)
6535 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6536 instead of ALL_THREADS.
6537 * record-btrace.c (record_btrace_open)
6538 (record_btrace_stop_recording, record_btrace_close)
6539 (record_btrace_is_replaying, record_btrace_resume)
6540 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6541 * remote.c (append_pending_thread_resumptions): Likewise.
6542 * thread.c (thread_apply_all_command): Likewise.
6543
46e33252
GB
65442014-06-19 Gary Benson <gbenson@redhat.com>
6545
6546 * i386-nat.c (i386_stopped_by_watchpoint):
6547 Use i386_dr_stopped_by_watchpoint.
6548 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6549 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6550
3a8ee006
GB
65512014-06-19 Gary Benson <gbenson@redhat.com>
6552
6553 * nat/i386-dregs.c: New file.
6554 * Makefile.in (i386-dregs.o): New rule.
6555 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6556 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6557 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6558 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6559 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6560 * config/i386/go32.mh (NATDEPFILES): Likewise.
6561 * config/i386/linux.mh (NATDEPFILES): Likewise.
6562 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6563 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6564 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6565 * i386-nat.h (debug_hw_points): New declaration.
6566 * i386-nat.c (breakpoint.h): Remove include.
6567 (command.h): Likewise.
6568 (target.h): Likewise.
6569 (gdb_assert.h): Likewise.
6570 (debug_hw_points): Made nonstatic.
6571 (debug_printf): Now in i386-dregs.c.
6572 (TARGET_HAS_DR_LEN_8): Likewise.
6573 (DR_CONTROL_SHIFT): Likewise.
6574 (DR_CONTROL_SIZE): Likewise.
6575 (DR_RW_EXECUTE): Likewise.
6576 (DR_RW_WRITE): Likewise.
6577 (DR_RW_READ): Likewise.
6578 (DR_RW_IORW): Likewise.
6579 (DR_LEN_1): Likewise.
6580 (DR_LEN_2): Likewise.
6581 (DR_LEN_4): Likewise.
6582 (DR_LEN_8): Likewise.
6583 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6584 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6585 (DR_ENABLE_SIZE): Likewise.
6586 (DR_LOCAL_SLOWDOWN): Likewise.
6587 (DR_GLOBAL_SLOWDOWN): Likewise.
6588 (DR_CONTROL_RESERVED): Likewise.
6589 (I386_DR_CONTROL_MASK): Likewise.
6590 (I386_DR_VACANT): Likewise.
6591 (I386_DR_LOCAL_ENABLE): Likewise.
6592 (I386_DR_GLOBAL_ENABLE): Likewise.
6593 (I386_DR_DISABLE): Likewise.
6594 (I386_DR_SET_RW_LEN): Likewise.
6595 (I386_DR_GET_RW_LEN): Likewise.
6596 (I386_DR_WATCH_HIT): Likewise.
6597 (i386_wp_op_t): Likewise.
6598 (i386_show_dr): Likewise.
6599 (i386_length_and_rw_bits): Likewise.
6600 (i386_insert_aligned_watchpoint): Likewise.
6601 (i386_remove_aligned_watchpoint): Likewise.
6602 (i386_handle_nonaligned_watchpoint): Likewise.
6603 (i386_update_inferior_debug_regs): Likewise.
6604 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6605 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6606 (i386_region_ok_for_watchpoint):
6607 Use i386_dr_region_ok_for_watchpoint.
6608 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6609
322a8e06
GB
66102014-06-19 Gary Benson <gbenson@redhat.com>
6611
6612 * i386-nat.c (i386_insert_hw_breakpoint): Use
6613 i386_insert_watchpoint.
6614 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6615
8f26655c
GB
66162014-06-19 Gary Benson <gbenson@redhat.com>
6617
6618 * i386-nat.c (i386_dr_show): Renamed to
6619 i386_show_dr and made static. All uses updated.
6620 (i386_dr_length_and_rw_bits): Renamed to
6621 i386_length_and_rw_bits and made static.
6622 All uses updated.
6623 (i386_dr_insert_aligned_watchpoint): Renamed to
6624 i386_insert_aligned_watchpoint and made static.
6625 All uses updated.
6626 (i386_dr_remove_aligned_watchpoint): Renamed to
6627 i386_remove_aligned_watchpoint and made static.
6628 All uses updated.
6629 (i386_dr_update_inferior_debug_regs): Renamed to
6630 i386_update_inferior_debug_regs and made static.
6631 All uses updated.
6632 * nat/i386-dregs.h (i386_dr_show): Removed.
6633 (i386_dr_length_and_rw_bits): Likewise.
6634 (i386_dr_insert_aligned_watchpoint): Likewise.
6635 (i386_dr_remove_aligned_watchpoint): Likewise.
6636 (i386_dr_update_inferior_debug_regs): Likewise.
6637
992c7d70
GB
66382014-06-19 Gary Benson <gbenson@redhat.com>
6639
6640 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6641 * configure: Regenerate.
6642 * config.in: Likewise.
6643 * main.c (signal.h): New include.
6644 (setup_alternate_signal_stack): New function.
6645 (captured_main): Call the above.
6646 * cp-support.c (signal.h): New include.
6647 (catch_demangler_crashes): New flag.
6648 (SIGJMP_BUF): New define.
6649 (SIGSETJMP): Likewise.
6650 (SIGLONGJMP): Likewise.
6651 (gdb_demangle_jmp_buf): New static global.
6652 (gdb_demangle_attempt_core_dump): Likewise.
6653 (gdb_demangle_signal_handler): New function.
6654 (gdb_demangle): If catch_demangler_crashes is set, install the
6655 above signal handler before calling bfd_demangle, and restore
6656 the original signal handler afterwards. Display the offending
6657 symbol and call demangler_warning the first time a segmentation
6658 fault is caught.
6659 (_initialize_cp_support): New maint set/show command.
6660
eae7090b
GB
66612014-06-19 Gary Benson <gbenson@redhat.com>
6662
6663 * utils.h (resource_limit_kind): New enum.
6664 (can_dump_core): New declaration.
6665 (warn_cant_dump_core): Likewise.
6666 (dump_core): Likewise.
6667 * utils.c (dump_core): Made nonstatic. Added new
6668 parameter "limit_kind".
6669 (can_dump_core): Made nonstatic. Moved printing code to...
6670 (warn_cant_dump_core): New function.
6671 (can_dump_core_warn): Likewise.
6672 (internal_vproblem): Replace calls to can_dump_core with
6673 calls to can_dump_core_warn. Supply new argument to each.
6674
57fcfb1b
GB
66752014-06-19 Gary Benson <gbenson@redhat.com>
6676
6677 * utils.h (demangler_vwarning): New declaration.
6678 (demangler_warning): Likewise.
6679 * utils.c (struct internal_problem)
6680 <user_settable_should_quit>: New field.
6681 <user_settable_should_dump_core>: Likewise
6682 (internal_error_problem): Add values for above new fields.
6683 (internal_warning_problem): Likewise.
6684 (demangler_warning_problem): New static global.
6685 (demangler_vwarning): New function.
6686 (demangler_warning): Likewise.
6687 (add_internal_problem_command): Selectively add commands.
6688 (_initialize_utils): New internal problem command.
6689 * maint.c (maintenance_demangler_warning): New function.
6690 (_initialize_maint_cmds): New command.
6691
17a40b44
TT
66922014-06-18 Tom Tromey <tromey@redhat.com>
6693
6694 * f-valprint.c (info_common_command_for_block): Update.
6695 * symtab.h (struct general_symbol_info) <common_block>: Now
6696 const.
6697
346d1dfe
TT
66982014-06-18 Tom Tromey <tromey@redhat.com>
6699
6700 * symtab.h (struct symtab) <blockvector>: Now const.
6701 * ada-lang.c (ada_add_global_exceptions): Update.
6702 * buildsym.c (augment_type_symtab): Update.
6703 * dwarf2read.c (dw2_lookup_symbol): Update.
6704 * jit.c (finalize_symtab): Update.
6705 * jv-lang.c (add_class_symtab_symbol): Update.
6706 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6707 Update.
6708 * objfiles.c (objfile_relocate1): Update.
6709 * psymtab.c (lookup_symbol_aux_psymtabs)
6710 (maintenance_check_psymtabs): Update.
6711 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6712 Update.
6713 * spu-tdep.c (spu_catch_start): Update.
6714 * symmisc.c (dump_symtab_1): Update.
6715 * symtab.c (lookup_global_symbol_from_objfile)
6716 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6717 (basic_lookup_transparent_type_quick)
6718 (basic_lookup_transparent_type, find_pc_sect_symtab)
6719 (find_pc_sect_line, search_symbols): Update.
6720 * block.c (find_block_in_blockvector): Make "bl" const.
6721 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6722 const.
6723 (blockvector_contains_pc): Make "bv" const.
6724 (block_for_pc_sect): Update.
6725 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6726 (blockvector_contains_pc): Update.
6727 * breakpoint.c (resolve_sal_pc): Update.
6728 * inline-frame.c (block_starting_point_at): Update.
6729
1834676b
TT
67302014-06-18 Tom Tromey <tromey@redhat.com>
6731
6732 * completer.c (complete_line): Make "line_buffer" const.
6733 * completer.h (complete_line): Update.
6734
ac1a991b
TT
67352014-06-18 Tom Tromey <tromey@redhat.com>
6736
6737 * symtab.c (add_macro_name): Remove unneeded cast.
6738
5bc98e52
TT
67392014-06-18 Tom Tromey <tromey@redhat.com>
6740
6741 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6742 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6743
8236def8
TT
67442014-06-18 Tom Tromey <tromey@redhat.com>
6745
6746 * probe.c (info_probes_for_ops): Make "arg" const.
6747 * probe.h (info_probes_for_ops): Update.
6748
3977b71f
TT
67492014-06-18 Tom Tromey <tromey@redhat.com>
6750
6751 * varobj.c (varobj_create): Update.
6752 * valops.c (value_of_this): Update.
6753 * tracepoint.c (add_local_symbols, scope_info): Update.
6754 * symtab.h (struct general_symbol_info) <block>: Now const.
6755 * symtab.c (skip_prologue_sal)
6756 (default_make_symbol_completion_list_break_on)
6757 (skip_prologue_using_sal): Update.
6758 * stack.h (iterate_over_block_locals)
6759 (iterate_over_block_local_vars): Update.
6760 * stack.c (print_frame_args): Update.
6761 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6762 parameter const.
6763 (get_selected_block): Make return type const.
6764 * python/py-frame.c (frapy_block): Update.
6765 * python/py-block.c (gdbpy_block_for_pc): Update.
6766 * p-exp.y (%union) <bval>: Now const.
6767 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6768 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6769 * m2-exp.y (%union) <bval>: Now const.
6770 * linespec.c (get_current_search_block): Make return type const.
6771 (create_sals_line_offset, find_label_symbols): Update.
6772 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6773 Update.
6774 (block_starting_point_at): Make "block" const.
6775 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6776 (check_exception_resume): Update.
6777 * guile/scm-frame.c (gdbscm_frame_block): Update.
6778 * guile/scm-block.c (gdbscm_lookup_block): Update.
6779 * frame.h (get_frame_block): Update.
6780 (get_selected_block): Make return type const.
6781 * frame.c (frame_id_inner): Update.
6782 * f-valprint.c (info_common_command_for_block)
6783 (info_common_command): Update.
6784 * dwarf2loc.c (dwarf2_find_location_expression)
6785 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6786 (locexpr_describe_location_piece): Update.
6787 * c-exp.y (%union) <bval>: Now const.
6788 * breakpoint.c (resolve_sal_pc): Update.
6789 * blockframe.c (get_frame_block):Make return type const.
6790 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6791 (block_innermost_frame): Update.
6792 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6793 (block_for_pc, block_for_pc_sect): Update.
6794 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6795 'pblock' const.
6796 (block_for_pc_sect, block_for_pc): Make return type const.
6797 * ax-gdb.c (gen_expr): Update.
6798 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6799 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6800 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6801 (ada_read_var_value): Update.
6802 * ada-exp.y (struct name_info) <block>: Now const.
6803 (%union): Likewise.
6804 (block_lookup): Constify.
6805
b9228891
GB
68062014-06-18 Gary Benson <gbenson@redhat.com>
6807
6808 * nat/i386-dregs.h: New file.
6809 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6810 * i386-nat.h (i386-dregs.h): New include.
6811 (DR_FIRSTADDR): Now in i386-dregs.h.
6812 (DR_LASTADDR): Likewise.
6813 (DR_NADDR): Likewise.
6814 (DR_STATUS): Likewise.
6815 (DR_CONTROL): Likewise.
6816 (i386_debug_reg_state): Likewise.
6817 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6818
a1aa2221
LM
68192014-06-18 Don Breazeal <donb@codesourcery.com>
6820
6821 * breakpoint.c (set_longjmp_breakpoint): Call
6822 momentary_breakpoint_from_master with additional argument.
6823 (set_longjmp_breakpoint_for_call_dummy): Call
6824 momentary_breakpoint_from_master with additional argument.
6825 (set_std_terminate_breakpoint): Call
6826 momentary_breakpoint_from_master with additional argument.
6827 (momentary_breakpoint_from_master): Add argument to function
6828 definition and use it to initialize structure member flag.
74228e77 6829 (clone_momentary_breakpoint): Call
a1aa2221
LM
6830 momentary_breakpoint_from_master with additional argument.
6831 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6832 member flags set in momentary_breakpoint_from_master.
6833
4be83cc2
GB
68342014-06-18 Gary Benson <gbenson@redhat.com>
6835
6836 * i386-nat.c (i386_show_dr): Renamed to
6837 i386_dr_show and made nonstatic. All uses updated.
6838 (i386_length_and_rw_bits): Renamed to
6839 i386_dr_length_and_rw_bits and made nonstatic.
6840 All uses updated.
6841 (i386_insert_aligned_watchpoint): Renamed to
6842 i386_dr_insert_aligned_watchpoint and made nonstatic.
6843 All uses updated.
6844 (i386_remove_aligned_watchpoint): Renamed to
6845 i386_dr_remove_aligned_watchpoint and made nonstatic.
6846 All uses updated.
6847 (i386_update_inferior_debug_regs): Renamed to
6848 i386_dr_update_inferior_debug_regs and made nonstatic.
6849 All uses updated.
6850
131aa0d4
GB
68512014-06-18 Gary Benson <gbenson@redhat.com>
6852
6853 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6854 (i386_dr_low_can_set_control): Likewise.
6855 (i386_dr_low_set_addr): Likewise.
6856 (i386_dr_low_set_control): Likewise.
6857 (i386_dr_low_get_addr): Likewise.
6858 (i386_dr_low_get_status): Likewise.
6859 (i386_dr_low_get_control): Likewise.
6860 (i386_insert_aligned_watchpoint): Use new macros.
6861 (i386_update_inferior_debug_regs): Likewise.
6862 (i386_stopped_data_address): Likewise.
6863
d9305f7f
GB
68642014-06-18 Gary Benson <gbenson@redhat.com>
6865
6866 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6867 New parameter. All uses updated.
6868
ea008da4
GB
68692014-06-18 Gary Benson <gbenson@redhat.com>
6870
6871 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6872 All uses updated.
6873
1b6d4134
GB
68742014-06-18 Gary Benson <gbenson@redhat.com>
6875
6876 * i386-nat.c (debug_printf): New macro.
6877 (i386_get_debug_register_length): Likewise.
6878 (TARGET_HAS_DR_LEN_8): Use above macro.
6879 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6880 and printf_unfiltered. Use phex to format values.
6881
9b4550ef
GB
68822014-06-18 Gary Benson <gbenson@redhat.com>
6883
6884 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6885 Make const.
6886
6e62758f
GB
68872014-06-18 Gary Benson <gbenson@redhat.com>
6888
6889 * i386-nat.c: Comment changes.
6890
51c79e94
GB
68912014-06-18 Gary Benson <gbenson@redhat.com>
6892
6893 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6894
3e11889a
GB
68952014-06-18 Gary Benson <gbenson@redhat.com>
6896
6897 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6898 (i386_insert_aligned_watchpoint): Likewise.
6899 (i386_remove_aligned_watchpoint): Likewise.
6900 (i386_handle_nonaligned_watchpoint): Likewise.
6901
fc6e2f03
GB
69022014-06-18 Gary Benson <gbenson@redhat.com>
6903
6904 * i386-nat.c: Whitespace changes.
6905
2afe7d50
SB
69062014-06-17 Samuel Bronson <naesten@gmail.com>
6907
6908 * MAINTAINERS: Update Roland McGrath's email address.
6909 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 6910 Red Hat a while ago, and giving me a current address.
2afe7d50 6911
3bca49ee
TT
69122014-06-17 Tom Tromey <tromey@redhat.com>
6913
6914 * utils.h (savestring): Remove declaration.
6915
6e366df1
TT
69162014-06-17 Tom Tromey <tromey@redhat.com>
6917
6918 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6919
6be47f0c
KS
69202014-06-16 Keith Seitz <keiths@redhat.com>
6921
6922 PR mi/15863
6923 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6924 to update the varobj if inferior_ptid is null_ptid.
6925
7bc112c1
TT
69262014-06-16 Tom Tromey <tromey@redhat.com>
6927
6928 * target.h (struct target_ops) <to_info_proc>: Make parameter
6929 const.
6930 (target_info_proc): Update.
6931 * target.c (target_info_proc): Make "args" const.
6932 * procfs.c (procfs_info_proc): Update.
6933 * linux-tdep.c (linux_info_proc): Update.
6934 (linux_core_info_proc_mappings): Make "args" const.
6935 (linux_core_info_proc): Update.
6936 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6937 * gdbarch.c: Rebuild.
6938 * gdbarch.h: Rebuild.
6939 * corelow.c (core_info_proc): Update.
6940
fee354ee
TT
69412014-06-16 Tom Tromey <tromey@redhat.com>
6942
6943 * target.h (struct target_ops) <to_disconnect>: Make parameter
6944 const.
6945 (target_disconnect): Update.
6946 * target.c (target_disconnect): Make "args" const.
6947 * target-delegates.c: Rebuild.
6948 * remote.c (remote_disconnect): Update.
6949 * record.h (record_disconnect): Update.
6950 * record.c (record_disconnect): Update.
6951 * inf-child.c (inf_child_disconnect): Update.
6952
a30bf1f1
TT
69532014-06-16 Tom Tromey <tromey@redhat.com>
6954
6955 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6956 * target.c (debug_to_rcmd, default_rcmd): Update.
6957 * target-delegates.c: Rebuild.
6958 * remote.c (remote_rcmd): Update.
6959 * monitor.c (monitor_rcmd): Update.
6960
d03de421
PA
69612014-06-16 Pedro Alves <palves@redhat.com>
6962
6963 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6964 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6965 have OBJF_SHARED set.
6966 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6967 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6968 instead of OBJF_USERLOADED.
6969 * objfiles.h (OBJF_SHARED): Update comment.
6970 (userloaded_objfile_contains_address_p): Rename to ...
6971 (shared_objfile_contains_address_p): ... this, and update
6972 comments.
6973 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6974 new objfile.
6975 (remove_symbol_file_command): Skip objfiles that don't have
6976 OBJF_SHARED set.
6977
99f4262f
TT
69782014-06-16 Tom Tromey <tromey@redhat.com>
6979
6980 * minsyms.h (prim_record_minimal_symbol)
6981 (prim_record_minimal_symbol_and_info): Update comments.
6982
97d66cc6
EZ
69832014-06-14 Eli Zaretskii <eliz@gnu.org>
6984
6985 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6986 or --without-guile, according to how GDB was built.
6987
635c7e8a
TT
69882014-06-13 Tom Tromey <tromey@redhat.com>
6989
6990 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6991 to help_list.
6992 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6993 to help_list.
6994 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6995 help_list.
6996 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6997 help_list.Pass all_commands, not -1, to help_list.
6998 * cli/cli-dump.c (dump_command, append_command)
6999 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
7000 (binary_dump_command, binary_append_command): Pass all_commands,
7001 not -1, to help_list.
7002 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
7003 -1, to help_list.
7004 * valprint.c (set_print, set_print_raw): Pass all_commands, not
7005 -1, to help_list.
7006 * typeprint.c (set_print_type): Pass all_commands, not -1, to
7007 help_list.
7008 * top.c (set_history): Pass all_commands, not -1, to help_list.
7009 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
7010 all_commands, not -1, to help_list.
7011 * symfile.c (overlay_command): Pass all_commands, not -1, to
7012 help_list.
7013 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
7014 help_list.
7015 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
7016 help_list.
7017 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
7018 -1, to help_list.
7019 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
7020 not -1, to help_list.
7021 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
7022 not -1, to help_list.
7023 * maint.c (maintenance_command, maintenance_info_command)
7024 (maintenance_print_command, maintenance_set_cmd): Pass
7025 all_commands, not -1, to help_list.
7026 * macrocmd.c (macro_command): Pass all_commands, not -1, to
7027 help_list.
7028 * language.c (set_check): Pass all_commands, not -1, to help_list.
7029 * infcmd.c (unset_command): Pass all_commands, not -1, to
7030 help_list.
7031 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
7032 help_list.
7033 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
7034 help_list.
7035 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
7036 help_list.
7037 * breakpoint.c (save_command): Pass all_commands, not -1, to
7038 help_list.
7039 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
7040 all_commands, not -1, to help_list.
7041
b94ade42
PL
70422014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
7043
7044 * regcache.c (struct register_to_invalidate): New structure.
7045 (do_register_invalidate, make_cleanup_regcache_invalidate): New
7046 functions.
7047 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
7048
31f628ae
YQ
70492014-06-12 Yao Qi <yao@codesourcery.com>
7050
7051 * varobj.c (varobj_get_num_children): Call
7052 varobj_is_dynamic_p.
7053 (varobj_list_children): Likewise.
7054 (varobj_update): Likewise. Update comments.
7055
cde5ef40
YQ
70562014-06-12 Yao Qi <yao@codesourcery.com>
7057
7058 * varobj.c (varobj_pretty_printed_p): Rename to ...
7059 (varobj_is_dynamic_p): ... this. New function.
7060 * varobj.h (varobj_pretty_printed_p): Remove declaration.
7061 (varobj_is_dynamic_p): Declare.
7062 * mi/mi-cmd-var.c (print_varobj): All callers updated.
7063 (mi_print_value_p, varobj_update_one): Likewise.
7064
576ea091
YQ
70652014-06-12 Pedro Alves <pedro@codesourcery.com>
7066 Yao Qi <yao@codesourcery.com>
7067
7068 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
7069 (varobj_get_iterator): Wrap up code for pretty-printer by
7070 "#if HAVE_PYTHON" and "#endif".
7071 (update_dynamic_varobj_children): Likewise.
7072
827f100c
YQ
70732014-06-12 Pedro Alves <pedro@codesourcery.com>
7074 Yao Qi <yao@codesourcery.com>
7075
7076 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
7077 gdb_python_initialized is false. Move some code from varobj.c.
7078 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
7079 * varobj.c: Move "varobj-iter.h" inclusion earlier.
7080 (struct varobj_item): Moved to varobj-iter.h".
7081 (varobj_clear_saved_item): New function.
7082 (update_dynamic_varobj_children): Move python-related code to
7083 py-varobj.c.
7084 (free_variable): Call varobj_clear_saved_item and
7085 varobj_iter_delete.
7086
e5250216
YQ
70872014-06-12 Pedro Alves <pedro@codesourcery.com>
7088 Yao Qi <yao@codesourcery.com>
7089
7090 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
7091 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
7092 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
7093 (py-varobj.o): New rule.
7094 * python/py-varobj.c: New file.
7095 * python/python-internal.h (py_varobj_get_iterator): Declare.
7096 * varobj-iter.h: New file.
7097 * varobj.c: Include "varobj-iter.h"
7098 (struct varobj) <child_iter>: Change its type from "PyObject *"
7099 to "struct varobj_iter *".
7100 <saved_item>: Likewise.
7101 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
7102 [HAVE_PYTHON] (varobj_get_iterator): New function.
7103 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7104 python-specific code to python/py-varobj.c.
7105 (install_visualizer): Call varobj_iter_delete instead of
7106 Py_XDECREF.
7107 * varobj.h (varobj_ensure_python_env): Declare.
7108
5a2e0d6e
YQ
71092014-06-12 Yao Qi <yao@codesourcery.com>
7110
7111 * varobj.c (struct varobj_item): New structure.
7112 (create_child_with_value): Update declaration.
7113 (varobj_add_child): Replace arguments 'name' and 'value' with
7114 'item'. All callers updated.
7115 (install_dynamic_child): Likewise.
7116 (update_dynamic_varobj_children): Likewise.
7117 (varobj_add_child): Likewise.
7118 (create_child_with_value): Likewise.
7119
919b9a93
JB
71202014-06-11 Joel Brobecker <brobecker@adacore.com>
7121
7122 * NEWS: Create a new section for the next release branch.
7123 Rename the section of the current branch, now that it has
7124 been cut.
7125
71a55bdf
JB
71262014-06-11 Joel Brobecker <brobecker@adacore.com>
7127
7128 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7129 * version.in: Bump version to 7.8.50.DATE-cvs.
7130
364fe1f7
PA
71312014-06-11 Pedro Alves <palves@redhat.com>
7132
7133 PR remote/17028
7134 * ser-mingw.c (net_windows_socket_check_pending): New function.
7135 (net_windows_select_thread): Ignore spurious wakeups. Use
7136 net_windows_socket_check_pending.
7137 (net_windows_wait_handle): Check for pending events with
7138 ioctlsocket, through net_windows_socket_check_pending, instead of
7139 checking the socket's event.
7140
5a6c7709
SC
71412014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7142
7143 * python/python-internal.h (gdb_PyObject_GetAttrString)
7144 (gdb_PyObject_HasAttrString): New inline function definitions.
7145 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7146 char * of the second argument to PyObject_GetAttrString.
74228e77 7147
0e58ee40
JB
71482014-06-10 Joel Brobecker <brobecker@adacore.com>
7149
7150 * serial.c (serial_write): Fix index of character to be printed
7151 in call to serial_logchar when serial debug traces are enabled.
7152
d190df30
JB
71532014-06-10 Joel Brobecker <brobecker@adacore.com>
7154
7155 * gdbtypes (resolve_dynamic_range): Add function description.
7156
b4b01d36
PA
71572014-06-09 Pedro Alves <palves@redhat.com>
7158
7159 * linux-nat.c (linux_child_follow_fork): Initialize status with
7160 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7161 inner block. Only pass the signal to PTRACE_DETACH if in pass
7162 state.
7163
3657956b
GB
71642014-06-09 Gary Benson <gbenson@redhat.com>
7165
7166 * common/signals.c (gdb_signal_from_host): Reorder to separate
7167 the always-available ANSI-standard signals from the signals that
7168 require checking.
7169 (do_gdb_signal_to_host): Likewise.
7170 * proc-events.c (signal_table): Likewise.
7171
c077881a
HZ
71722014-06-08 Hui Zhu <hui@codesourcery.com>
7173
7174 * common/linux-ptrace.c (linux_disable_event_reporting): New
7175 function.
7176 * common/linux-ptrace.h (linux_disable_event_reporting): New
7177 declaration.
7178 * linux-nat.c (linux_child_follow_fork): Do a single step before
7179 detach.
7180
4186eb54
KS
71812014-06-07 Keith Seitz <keiths@redhat.com>
7182
7183 Revert:
7184 PR c++/16253
7185 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7186 from symbol_matches_domain in symtab.c. All local callers
7187 of symbol_matches_domain updated.
7188 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7189 search STRUCT_DOMAIN.
7190 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7191 independently. standard_lookup will do that automatically.
7192 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7193 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7194 (cp_lookup_symbol_in_namespace): Likewise.
7195 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7196 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7197 may return a STRUCT_DOMAIN match.
7198 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7199 * cp-support.c: Include language.h.
7200 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7201 VAR_DOMAIN.
7202 * psymtab.c (match_partial_symbol): Compare the requested
7203 domain with the symbol's domain directly.
7204 (lookup_partial_symbol): Likewise.
7205 * symtab.c (lookup_symbol_in_language): Explain when/why
7206 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7207 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7208 appropriate languages.
7209 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7210 and moved to ada-lang.c
7211 (lookup_block_symbol): Explain that this function only returns
7212 symbol matching the requested DOMAIN.
7213 Compare the requested domain with the symbol's domain directly.
7214 (iterate_over_symbols): Compare the requested domain with the
7215 symbol's domain directly.
7216 * symtab.h (symbol_matches_domain): Remove.
7217
25326a28 72182014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
7219
7220 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7221 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7222 (gdbscm_guile_version_is_at_least): Declare.
7223 (gdbscm_scm_string_to_int): Declare.
7224 * guile/guile.c (gdbscm_guile_major_version): New global.
7225 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7226 (guile_datadir): New static global.
7227 (gdbscm_guile_data_directory): New function.
7228 (initialize_scheme_side): Update.
7229 (misc_guile_functions): Add guile-data-directory.
7230 (initialize_gdb_module): Fetch guile version number.
7231 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7232 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7233 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7234 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7235 comments.
7236 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7237 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7238 * guile/scm-value.c (gdbscm_value_to_string): Only call
7239 scm_port_conversion_strategy if Guile version >= 2.0.6.
7240
0a770bb2 72412014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7242
7243 * main.c (print_gdb_help): Add -q and --silent.
7244
73ba372c
GB
72452014-06-06 Gary Benson <gbenson@redhat.com>
7246
7247 * common/signals.c: Remove preprocessor conditionals for
7248 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7249 SIGSEGV and SIGTERM.
7250 * proc-events.c: Likewise.
7251
c33b2f12
MM
72522014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7253
7254 * symfile.c (symfile_free_objfile): Remove restriction to
7255 OBJF_USERLOADED.
7256 * symfile-mem.c (symbol_file_add_from_memory): Call
7257 add_target_sections_of_objfile.
7258
fb934770
LC
72592014-06-05 Ludovic Courtès <ludo@gnu.org>
7260
7261 * guile/scm-value.c (gdbscm_history_append_x): Use
7262 'vlscm_get_value_smob_arg_unsafe' instead of
7263 'vlscm_scm_to_value'.
7264
6ef284bd
SM
72652014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7266
7267 PR mi/15806
7268 * utils.c (printchar): Don't escape at all if quoter is NUL.
7269 Update function documentation to clarify effect of parameter
7270 QUOTER.
7271 * remote.c (escape_buffer): Pass '\\' as the quoter to
7272 fputstrn_unfiltered.
7273 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7274 generate the output.
7275 (mi_solib_unloaded): Same.
7276
270c9937
JB
72772014-06-05 Joel Brobecker <brobecker@adacore.com>
7278
7279 * development.sh: Delete.
7280 * Makefile.in (config.status): Adjust dependency on development.sh.
7281 * configure.ac: Adjust development.sh source call.
7282 * configure: Regenerate.
7283
16f691fb
DE
72842014-06-04 Doug Evans <xdje42@gmail.com>
7285
7286 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7287 is_scheme_bkpt, spec.
7288 (bpscm_make_breakpoint_smob): Initialize new members.
7289 (gdbscm_create_breakpoint_x): Split into two ...
7290 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7291 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7292 (scheme_function breakpoint_functions): Update.
7293 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7294 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7295 register-breakpoint!.
7296
ef7cab6b
JB
72972014-06-04 Joel Brobecker <brobecker@adacorer.com>
7298
7299 PR server/17023
7300 * mem-break.c (z_type_supported): Return zero if
7301 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7302
012370f6
TT
73032014-06-04 Tom Tromey <tromey@redhat.com>
7304
7305 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7306 value_from_contents_and_address_unresolved.
7307 (ada_template_to_fixed_record_type_1): Likewise.
7308 (ada_which_variant_applies): Likewise.
7309 * value.h (value_from_contents_and_address_unresolved): Declare.
7310 * value.c (value_from_contents_and_address_unresolved): New
7311 function.
7312 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7313 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7314 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7315
92e2a17f
TT
73162014-06-04 Tom Tromey <tromey@redhat.com>
7317
7318 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7319
c0939df1
TT
73202014-06-04 Tom Tromey <tromey@redhat.com>
7321
7322 * procfs.c (procfs_attach): Make "args" const.
7323 * windows-nat.c (windows_attach): Make "args" const.
7324 * nto-procfs.c (procfs_attach): Make "args" const.
7325 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7326 * go32-nat.c (go32_attach): Make "args" const.
7327 * gnu-nat.c (gnu_attach): Make "args" const.
7328 * darwin-nat.c (darwin_attach): Make "args" const.
7329 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7330 * linux-nat.c (linux_nat_attach): Make "args" const.
7331 * remote.c (extended_remote_attach_1, extended_remote_attach):
7332 Make "args" const.
7333 * target.h (struct target_ops) <to_attach>: Make "args" const.
7334 (find_default_attach): Likewise.
7335 * utils.c (parse_pid_to_attach): Make "args" const.
7336 * utils.h (parse_pid_to_attach): Update.
7337
8eaff7cd
TT
73382014-06-04 Tom Tromey <tromey@redhat.com>
7339
7340 * target-delegates.c: Rebuild.
7341 * target.c (default_thread_address_space): New function.
7342 (target_thread_address_space): Simplify.
7343 * target.h (struct target_ops) <to_thread_address_space>: Add
7344 TARGET_DEFAULT_FUNC.
7345
1913f160
DE
73462014-06-04 Doug Evans <xdje42@gmail.com>
7347
7348 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7349
70ad5bff
MM
73502014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7351
7352 * record-btrace.c: Include event-loop.h and inf-loop.h.
7353 (record_btrace_resume_exec_dir)
7354 (record_btrace_async_inferior_event_handler)
7355 (record_btrace_handle_async_inferior_event): New.
7356 (record_btrace_open): Create async event handler.
7357 (record_btrace_close): Delete async event handler.
7358 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7359 Mark async event handler.
7360 (record_btrace_execution_direction): New.
7361 (init_record_btrace_ops): Initialize to_execution_direction.
7362
b6210538
DE
73632014-06-03 Doug Evans <xdje42@gmail.com>
7364
7365 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7366 (gdbscm_make_parameter): Ditto.
7367
a5b1fd27
DE
73682014-06-03 Doug Evans <dje@google.com>
7369
7370 * exec.c (exec_close_1): Call clear_section_table instead of
7371 resize_section_table.
7372 (clear_section_table): New function.
7373 (resize_section_table): Make static. Rename arg num_added to
7374 adjustment.
7375 * exec.h (clear_section_table): Declare.
7376 (resize_section_table): Delete.
7377 * progspace.c (release_program_space): Call clear_section_table
7378 instead of resize_section_table.
7379
0c6e92a5
SC
73802014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7381
7382 * NEWS (Python Scripting): Add entry about the new xmethods
7383 feature.
7384
883964a7
SC
73852014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7386
7387 * python/py-xmethods.c: New file.
7388 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7389 (objfpy_dealloc): XDECREF on the new xmethods field.
7390 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7391 field.
7392 (objfpy_get_xmethods): New function.
7393 (objfile_getset): New entry 'xmethods'.
7394 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7395 (pspy_dealloc): XDECREF on the new xmethods field.
7396 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7397 field.
7398 (pspy_get_xmethods): New function.
7399 (pspace_getset): New entry 'xmethods'.
7400 * python/python-internal.h: Add declarations for new functions.
7401 * python/python.c (_initialize_python): Invoke
7402 gdbpy_initialize_xmethods.
7403 * python/lib/gdb/__init__.py (xmethods): New
7404 attribute.
7405 * python/lib/gdb/xmethod.py: New file.
7406 * python/lib/gdb/command/xmethods.py: New file.
7407
58992dc5
SC
74082014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7409
7410 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7411 best match method returned by find_overload_match is an xmethod.
7412 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7413 the best matching operator returned by find_overload_match is an
7414 xmethod.
7415 * valops.c: #include "extension.h".
7416 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7417 Return void. The list of matching source methods is returned in
7418 "fn_list" and a vector of matching debug method workers is
7419 returned in "xm_worker_vec". Update all callers.
7420 (value_find_oload_method_list): Likewise.
7421 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7422 non-NULL, then the index of the best matching method in this
7423 vector is returned. Update all callers.
7424 (find_overload_match): Include xmethods while performing overload
7425 resolution.
7426
e81e7f5e
SC
74272014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7428
7429 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7430 * extension-priv.h (struct extension_language_ops): Add the
7431 xmethod interface.
7432 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7433 get_matching_xmethod_workers, get_xmethod_argtypes,
7434 invoke_xmethod, free_xmethod_worker,
7435 free_xmethod_worker_vec): New functions.
7436 * extension.h: #include "common/vec.h".
7437 New function declarations.
7438 (struct xmethod_worker): New struct.
7439 (VEC (xmethod_worker_ptr)): New vector type.
7440 (xmethod_worker_ptr): New typedef.
7441 (xmethod_worker_vec): Likewise.
7442 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7443 builtin_type.
7444 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7445 (struct builtin_type): New field "xmethod".
7446 * valarith.c (value_ptradd): Assert that the value argument is not
7447 lval_xcallable.
7448 * valops.c (value_must_coerce_to_target): Return 0 for
7449 lval_xcallable values.
7450 * value.c (struct value): New field XM_WORKER in the field
7451 LOCATION.
7452 (value_address, value_raw_address): Return 0 for lval_xcallable
7453 values.
7454 (set_value_address): Assert that the value is not an
7455 lval_xcallable.
7456 (value_free): Free the associated xmethod worker when freeing
7457 lval_xcallable values.
7458 (set_value_component_location): Assert that the WHOLE value is not
7459 lval_xcallable.
7460 (value_of_xmethod, call_xmethod): New functions.
7461 * value.h: Declare "struct xmethod_worker".
7462 Declare new functions value_of_xmethod, call_xmethod.
7463
ef370185
JB
74642014-06-03 Joel Brobecker <brobecker@adacore.com>
7465 Pedro Alves <palves@redhat.com>
7466
7467 PR breakpoints/17000
7468 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7469 New function, extracted from software_breakpoint_inserted_here_p.
7470 (software_breakpoint_inserted_here_p): Replace factored out code
7471 by call to find_non_raw_software_breakpoint_inserted_here.
7472 (bp_target_info_copy_insertion_state): New function.
7473 (bkpt_insert_location): Handle the case of a single-step
7474 breakpoint already inserted at the same address.
7475 (bkpt_remove_location): Handle the case of a single-step
7476 breakpoint still inserted at the same address.
7477 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7478 breakpoint already inserted at the same address.
7479 (deprecated_remove_raw_breakpoint): Handle the case of a
7480 non-raw breakpoint still inserted at the same address.
7481 (find_single_step_breakpoint): New function, extracted from
7482 single_step_breakpoint_inserted_here_p.
7483 (find_single_step_breakpoint): New function,
7484 factored out from single_step_breakpoint_inserted_here_p.
7485 (single_step_breakpoint_inserted_here_p): Reimplement.
7486
1e2ccb61
BM
74872014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7488
7489 Pushed by Joel Brobecker <brobecker@adacore.com>
7490 * source.c (show_substitute_path_command): Fix display of matching
7491 substitution rules.
7492
d3448d85
GB
74932014-06-03 Gary Benson <gbenson@redhat.com>
7494
7495 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7496
06eb1586
DE
74972014-06-02 Doug Evans <xdje42@gmail.com>
7498
7499 Add parameter support for Guile.
7500 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7501 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7502 (scm-param.o): New rule.
7503 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7504 (gdbscm_misc_error): Declare.
7505 (gdbscm_canonicalize_command_name): Declare.
7506 (gdbscm_scm_to_host_string): Declare.
7507 (gdbscm_scm_from_host_string): Declare.
7508 (gdbscm_initialize_parameters): Declare.
7509 * guile/guile.c (initialize_gdb_module): Call
7510 gdbscm_initialize_parameters.
7511 * guile/lib/gdb.scm: Export parameter symbols.
7512 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7513 cmdscm_canonicalize_name and made public. All callers updated.
7514 * guile/scm-exception.c (gdbscm_misc_error): New function.
7515 * guile/scm-param.c: New file.
7516 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7517 (gdbscm_scm_to_host_string): New function.
7518 (gdbscm_scm_from_host_string): New function.
7519 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7520
e698b8c4
DE
75212014-06-02 Doug Evans <xdje42@gmail.com>
7522
7523 Add command support for Guile.
7524 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7525 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7526 (scm-cmd.o): New rule.
7527 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7528 (gdbscm_user_error_p): Declare.
7529 (gdbscm_parse_command_name): Declare.
7530 (gdbscm_valid_command_class_p): Declare.
7531 (gdbscm_initialize_commands): Declare.
7532 * guile/guile.c (initialize_gdb_module): Call
7533 gdbscm_initialize_commands.
7534 * guile/lib/gdb.scm: Export command symbols.
7535 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7536 (throw-user-error): New function.
7537 * guile/scm-cmd.c: New file.
7538 * guile/scm-exception.c (user_error_symbol): New static global.
7539 (gdbscm_user_error_p): New function.
7540 (gdbscm_initialize_exceptions): Set user_error_symbol.
7541 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7542
fb1f94b0
PM
75432014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7544
7545 * top.c (command_loop): Handle comments here...
7546 (command_line_input): ... not here.
7547
ded03782
DE
75482014-06-02 Doug Evans <xdje42@gmail.com>
7549
7550 Add progspace support for Guile.
7551 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7552 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7553 (scm-progspace.o): New rule.
7554 * guile/guile-internal.h (pspace_smob): New typedef.
7555 (psscm_pspace_smob_pretty_printers): Declare.
7556 (psscm_pspace_smob_from_pspace): Declare.
7557 (psscm_scm_from_pspace): Declare.
7558 * guile/guile.c (initialize_gdb_module): Call
7559 gdbscm_initialize_pspaces.
7560 * guile/lib/gdb.scm: Export progspace symbols.
7561 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7562 support.
7563 (append-pretty-printer!): Ditto.
7564 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7565 Implement.
7566 * guile/scm-progspace.c: New file.
7567
397998fc
AM
75682014-06-03 Alan Modra <amodra@gmail.com>
7569
7570 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7571 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7572
6aa5f3a6
DE
75732014-06-02 Doug Evans <dje@google.com>
7574
7575 Add support for skeletonless type units.
7576 * dwarf2read.c (struct dwarf2_per_objfile): New member
7577 n_allocated_type_units.
7578 (struct dwarf2_per_objfile) <tu_stats>: New member
7579 nr_all_type_units_reallocs.
7580 (create_signatured_type_table_from_index): Initialize
7581 n_allocated_type_units
7582 (create_all_type_units): Ditto.
7583 (add_type_unit): Move up in file. New arg slot.
7584 All callers updated. Increase space for all_type_units more
7585 efficiently.
7586 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7587 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7588 (lookup_dwp_signatured_type): Ditto.
7589 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7590 All callers updated.
7591 (build_type_psymtabs_1): Leave type_unit_groups as
7592 NULL if no TUs present.
7593 (print_tu_stats): New function.
7594 (process_skeletonless_type_unit): New function.
7595 (process_dwo_file_for_skeletonless_type_units): New
7596 function.
7597 (process_skeletonless_type_units): New function.
7598 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7599 Call print tu_stats if debugging enabled.
7600
41fac0cf
PA
76012014-06-02 Pedro Alves <palves@redhat.com>
7602
7603 * breakpoint.c (build_target_command_list): Don't build a command
7604 list if we have any duplicate location that isn't a dprintf.
7605
cd1608cc
PA
76062014-06-02 Pedro Alves <palves@redhat.com>
7607
7608 * breakpoint.c (dprintf_breakpoint_hit): New function.
7609 (initialize_breakpoint_ops): Install it as dprintf's
7610 breakpoint_hit method.
7611
486ef3b9
JB
76122014-06-02 Joel Brobecker <brobecker@adacore.com>
7613
7614 * source.c (substitute_path_rule_matches): Simplify using
7615 filename_ncmp instead of FILENAME_CMP.
7616
230cd560
JB
76172014-06-02 Joel Brobecker <brobecker@adacore.com>
7618
7619 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7620
16954d5d
LC
76212014-06-01 Ludovic Courtès <ludo@gnu.org>
7622
7623 * configure.ac: When Guile is available, check for the
7624 availability of 'scm_new_smob'.
7625 * configure, config.h.in: Regenerate.
7626 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7627 function.
7628
53e8a631
AB
76292014-05-30 Andrew Burgess <aburgess@broadcom.com>
7630
7631 * frame.c (struct frame_info): Add stop_string field.
7632 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7633 (get_prev_frame_always): Old content moved into
7634 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7635 TRY_CATCH, handle MEMORY_ERROR exceptions.
7636 (frame_stop_reason_string): New function definition.
7637 * frame.h (unwind_stop_reason_to_string): Extend comment to
7638 mention frame_stop_reason_string.
7639 (frame_stop_reason_string): New function declaration.
7640 * stack.c (frame_info): Switch to frame_stop_reason_string.
7641 (backtrace_command_1): Switch to frame_stop_reason_string.
7642 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7643 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7644 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7645
70e38b8e
AB
76462014-05-30 Andrew Burgess <aburgess@broadcom.com>
7647
7648 * frame.c (frame_stop_reason_string): Rename to ...
7649 (unwind_stop_reason_to_string): this.
7650 * frame.h (frame_stop_reason_string): Rename to ...
7651 (unwind_stop_reason_to_string): this.
7652 * stack.c (frame_info): Update call to frame_stop_reason_string.
7653 (backtrace_command_1): Likewise.
7654 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7655 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7656
938f0e2f
AB
76572014-05-30 Andrew Burgess <aburgess@broadcom.com>
7658
7659 * frame.c (remove_prev_frame): New function.
7660 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7661 remove_prev_frame.
7662
a09dd441
PA
76632014-05-29 Pedro Alves <palves@redhat.com>
7664
7665 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7666 and make it const. When a single-step decays to a continue,
7667 clear 'step', not 'hw_step'. Pass whether the caller wanted
7668 to step to user_visible_resume_ptid, not what we ask the
7669 target to do.
7670
bdc36728
PA
76712014-05-29 Pedro Alves <palves@redhat.com>
7672
7673 * infrun.c (process_event_stop_test, handle_step_into_function)
7674 (handle_step_into_function_backward): Adjust.
7675 Don't set the even thread's stop_step and call stop_waiting before
7676 calling end_stepping_range. Instead do that ...
7677 (end_stepping_range): ... here. Take an ecs pointer parameter.
7678
22bcd14b
PA
76792014-05-29 Pedro Alves <palves@redhat.com>
7680
7681 * infrun.c (stop_stepping): Rename to ...
7682 (stop_waiting): ... this.
7683 (proceed): Update comment.
7684 (process_event_stop_test, handle_inferior_event)
7685 (handle_signal_stop, handle_step_into_function)
7686 (handle_step_into_function_backward): Update.
7687
4ae57c05
PA
76882014-05-29 Pedro Alves <palves@redhat.com>
7689
7690 * infcall.c (run_inferior_call): Don't check whether the current
7691 thread is running after the proceed call.
7692
329ea579
PA
76932014-05-29 Pedro Alves <palves@redhat.com>
7694 Tom Tromey <tromey@redhat.com>
7695
7696 * NEWS: Mention "maint set target-async", "set mi-async", and that
7697 background execution commands are now always available.
7698 * target.h (target_async_permitted): Update comment.
7699 * target.c (target_async_permitted, target_async_permitted_1):
7700 Default to 1.
7701 (set_target_async_command): Rename to ...
7702 (maint_set_target_async_command): ... this.
7703 (show_target_async_command): Rename to ...
7704 (maint_show_target_async_command): ... this.
7705 (_initialize_target): Adjust.
7706 * infcmd.c (prepare_execution_command): Make extern.
7707 * inferior.h (prepare_execution_command): Declare.
7708 * infrun.c (set_observer_mode): Leave target async alone.
7709 * mi/mi-interp.c (mi_interpreter_init): Install
7710 mi_on_sync_execution_done as sync_execution_done observer.
7711 (mi_on_sync_execution_done): New function.
7712 (mi_execute_command_input_handler): Don't print the prompt if we
7713 just started a synchronous command with an async target.
7714 (mi_on_resume): Check sync_execution before printing prompt.
7715 * mi/mi-main.h (mi_async_p): Declare.
7716 * mi/mi-main.c: Include gdbcmd.h.
7717 (mi_async_p): New function.
7718 (mi_async, mi_async_1): New globals.
7719 (set_mi_async_command, show_mi_async_command, mi_async): New
7720 functions.
7721 (exec_continue): Call prepare_execution_command.
7722 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7723 (mi_execute_async_cli_command): Use mi_async_p.
7724 (_initialize_mi_main): Install "set mi-async". Make
7725 "target-async" a deprecated alias.
7726
92bcb5f9
PA
77272014-05-29 Pedro Alves <palves@redhat.com>
7728
7729 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7730 (_initialize_cli_interp): Adjust.
7731 * event-loop.c: Include "observer.h".
7732 (start_event_loop): Notify 'command_error' observers instead of
7733 calling display_gdb_prompt. Remove FIXME comment.
7734 * event-top.c (display_gdb_prompt): Remove call into the
7735 interpreters.
7736 * inf-loop.c: Include "observer.h".
7737 (inferior_event_handler): Notify 'command_error' observers instead
7738 of calling display_gdb_prompt.
7739 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7740 observers instead of calling display_gdb_prompt.
7741 * interps.c (interp_set): Don't call display_gdb_prompt.
7742 (current_interp_display_prompt_p): Delete.
7743 * interps.h (interp_prompt_p): Delete declaration.
7744 (interp_prompt_p_ftype): Delete.
7745 (struct interp_procs) <prompt_proc_p>: Delete field.
7746 (current_interp_display_prompt_p): Delete declaration.
7747 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7748 (_initialize_mi_interp): Adjust.
7749 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7750 'command_error' observers.
7751 (tui_on_sync_execution_done, tui_on_command_error): New
7752 functions.
7753 (tui_display_prompt_p): Delete.
7754 (_initialize_tui_interp): Adjust.
7755
fd664c91
PA
77562014-05-29 Pedro Alves <palves@redhat.com>
7757
7758 PR gdb/13860
7759 * cli/cli-interp.c: Include infrun.h and observer.h.
7760 (cli_uiout, cli_interp): New globals.
7761 (cli_on_signal_received, cli_on_end_stepping_range)
7762 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7763 functions.
7764 (cli_interpreter_init): Install them as 'end_stepping_range',
7765 'signal_received' 'signal_exited', 'exited' and 'no_history'
7766 observers.
7767 (_initialize_cli_interp): Remove cli_interp local.
7768 * infrun.c (handle_inferior_event): Call the several stop reason
7769 observers instead of printing the stop reason directly.
7770 (end_stepping_range): New function.
7771 (print_end_stepping_range_reason, print_signal_exited_reason)
7772 (print_exited_reason, print_signal_received_reason)
7773 (print_no_history_reason): Make static, and add an uiout
7774 parameter. Print to that instead of to CURRENT_UIOUT.
7775 * infrun.h (print_end_stepping_range_reason)
7776 (print_signal_exited_reason, print_exited_reason)
7777 (print_signal_received_reason print_no_history_reason): New
7778 declarations.
7779 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7780 'mi_uiout'.
7781 <cli_uiout>: New field.
7782 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7783 uiout for CLI output. Install 'signal_received',
7784 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7785 observers.
7786 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7787 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7788 (mi_on_no_history): New functions.
7789 (ui_out_free_cleanup): Delete function.
7790 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7791 instead use the one already stored in the MI interpreter data.
7792 (mi_ui_out): Adjust.
7793 * tui/tui-interp.c: Include infrun.h and observer.h.
7794 (tui_interp): New global.
7795 (tui_on_signal_received, tui_on_end_stepping_range)
7796 (tui_on_signal_exited, tui_on_exited)
7797 (tui_on_no_history): New functions.
7798 (tui_init): Install them as 'end_stepping_range',
7799 'signal_received' 'signal_exited', 'exited' and 'no_history'
7800 observers.
7801 (_initialize_tui_interp): Delete tui_interp local.
7802
8817a6f2
PA
78032014-05-29 Pedro Alves <palves@redhat.com>
7804
7805 PR gdb/15713
7806 * linux-nat.c (linux_nat_resume_callback): Rename the second
7807 parameter to 'except'. Skip LP if it points to EXCEPT.
7808 (linux_nat_resume): Don't mark the event lwp as not stopped
7809 before resuming sibling lwps. Instead ask
7810 linux_nat_resume_callback to skip the event lwp. Mark it as not
7811 stopped after actually resuming it.
7812 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7813 resuming it.
7814 (wait_lwp): Mark the lwp as stopped here.
7815 (stop_wait_callback): Mark the lwp as not stopped right after
7816 resuming it. Don't mark lwps as stopped here.
7817 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7818 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7819
251bde03
PA
78202014-05-29 Pedro Alves <palves@redhat.com>
7821
7822 PR PR15693
7823 * infrun.c (resume): Determine how much to resume depending on
7824 whether the caller wanted a step, not whether we can hardware step
7825 the target. Mark all threads that we intend to run as running,
7826 unless we're calling an inferior function.
7827 (normal_stop): If the thread is running an infcall, don't finish
7828 thread state.
7829 * target.c (target_resume): Don't mark threads as running here.
7830
7f3c0343
JB
78312014-05-28 Joel Brobecker <brobecker@adacore.com>
7832
7833 * serial.c (_initialize_serial): Remove support for
7834 the "set remotebaud" and "show remotebaud" commands.
7835 * NEWS: Add entry documenting the removal of that command.
7836
ee34b3f9
YQ
78372014-05-28 Yao Qi <yao@codesourcery.com>
7838
7839 * charset.c: Fix typo in comments.
7840
add6c04d
GB
78412014-05-27 Gary Benson <gbenson@redhat.com>
7842
7843 * utils.c (internal_vproblem): Prompt for a bug report.
7844
92c48fc5
AW
78452014-05-26 Andy Wingo <wingo@igalia.com>
7846
7847 * guile/scm-arch.c (arscm_mark_arch_smob):
7848 * guile/scm-block.c (bkscm_mark_block_smob)
7849 (bkscm_mark_block_syms_progress_smob):
7850 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7851 * guile/scm-exception.c (exscm_mark_exception_smob):
7852 * guile/scm-frame.c (frscm_mark_frame_smob):
7853 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7854 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7855 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7856 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7857 (ppscm_mark_pretty_printer_worker_smob):
7858 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7859 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7860 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7861 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7862 mark functions.
7863 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7864 function.
7865
b2715b27
AW
78662014-05-26 Andy Wingo <wingo@igalia.com>
7867 Doug Evans <xdje42@gmail.com>
7868
7869 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7870 empty_base_class. All uses updated.
7871 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7872 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7873 Adapt all callers.
7874 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7875 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7876 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7877 (gdbscm_gsmob_has_property_p, add_property_name)
7878 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7879 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7880 (gdb-object-has-property?, gdb-object-properties): Remove.
7881 (gdb-object-kind): Renamed from gsmob-kind.
7882
214ab2da
AW
78832014-05-26 Andy Wingo <wingo@igalia.com>
7884
7885 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7886 * configure: Regenerate.
7887
589fdceb
MM
78882014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7889
7890 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7891
67b5c0c1
MM
78922014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7893
7894 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7895 (replay_memory_access_read_only, replay_memory_access_read_write)
7896 (replay_memory_access_types, replay_memory_access)
7897 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7898 (cmd_set_record_btrace, cmd_show_record_btrace)
7899 (cmd_show_replay_memory_access): New.
7900 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7901 (record_btrace_remove_breakpoint): Replace
7902 record_btrace_allow_memory_access with replay_memory_access.
7903 (_initialize_record_btrace): Add commands.
7904 * NEWS: Announce it.
7905
036cd381
RR
79062014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7907
7908 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7909
c77c1e42
RR
79102014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7911
7912 * MAINTAINERS (Write After Approval): Move self back from
7913 paper trail.
7914
45741a9c
PA
79152014-05-22 Pedro Alves <palves@redhat.com>
7916
7917 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7918 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7919 (disable_randomization, enum exec_direction_kind)
7920 (execution_direction, stop_registers, start_remote)
7921 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7922 (wait_for_inferior, normal_stop, get_last_target_status)
7923 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7924 (insert_step_resume_breakpoint_at_sal)
7925 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7926 (set_step_info, print_stop_event, signal_stop_state)
7927 (signal_print_state, signal_pass_state, signal_stop_update)
7928 (signal_print_update, signal_pass_update)
7929 (update_signals_program_target, clear_exit_convenience_vars)
7930 (displaced_step_dump_bytes, update_observer_mode)
7931 (signal_catch_update, gdb_signal_from_command): Move
7932 declarations ...
7933 * infrun.h: ... to this new file.
7934 * amd64-tdep.c: Include infrun.h.
7935 * annotate.c: Include infrun.h.
7936 * arch-utils.c: Include infrun.h.
7937 * arm-linux-tdep.c: Include infrun.h.
7938 * arm-tdep.c: Include infrun.h.
7939 * break-catch-sig.c: Include infrun.h.
7940 * breakpoint.c: Include infrun.h.
7941 * common/agent.c: Include infrun.h instead of inferior.h.
7942 * corelow.c: Include infrun.h.
7943 * event-top.c: Include infrun.h.
7944 * go32-nat.c: Include infrun.h.
7945 * i386-tdep.c: Include infrun.h.
7946 * inf-loop.c: Include infrun.h.
7947 * infcall.c: Include infrun.h.
7948 * infcmd.c: Include infrun.h.
7949 * infrun.c: Include infrun.h.
7950 * linux-fork.c: Include infrun.h.
7951 * linux-nat.c: Include infrun.h.
7952 * linux-thread-db.c: Include infrun.h.
7953 * monitor.c: Include infrun.h.
7954 * nto-tdep.c: Include infrun.h.
7955 * procfs.c: Include infrun.h.
7956 * record-btrace.c: Include infrun.h.
7957 * record-full.c: Include infrun.h.
7958 * remote-m32r-sdi.c: Include infrun.h.
7959 * remote-mips.c: Include infrun.h.
7960 * remote-notif.c: Include infrun.h.
7961 * remote-sim.c: Include infrun.h.
7962 * remote.c: Include infrun.h.
7963 * reverse.c: Include infrun.h.
7964 * rs6000-tdep.c: Include infrun.h.
7965 * s390-linux-tdep.c: Include infrun.h.
7966 * solib-irix.c: Include infrun.h.
7967 * solib-osf.c: Include infrun.h.
7968 * solib-svr4.c: Include infrun.h.
7969 * target.c: Include infrun.h.
7970 * top.c: Include infrun.h.
7971 * windows-nat.c: Include infrun.h.
7972 * mi/mi-interp.c: Include infrun.h.
7973 * mi/mi-main.c: Include infrun.h.
7974 * python/py-threadevent.c: Include infrun.h.
7975
98eb56a4
PA
79762014-05-22 Pedro Alves <palves@redhat.com>
7977
7978 * infrun.c (handle_inferior_event): Store the exit code for
7979 --return-child-result here, instead of ...
7980 (print_exited_reason): ... here.
7981
17b2616c
PA
79822014-05-21 Pedro Alves <palves@redhat.com>
7983
7984 PR gdb/13860
7985 * gdbthread.h (struct thread_control_state): New field
7986 `command_interp'.
7987 * infrun.c (follow_fork): Copy the new thread control field to the
7988 child fork thread.
7989 (clear_proceed_status_thread): Clear the new thread control field.
7990 (proceed): Set the new thread control field.
7991 * interps.h (command_interp): Declare.
7992 * interps.c (command_interpreter): New global.
7993 (command_interp): New function.
7994 (interp_exec): Set `command_interpreter' while here.
7995 * cli-out.c (cli_uiout_dtor): New function.
7996 (cli_ui_out_impl): Install it.
7997 * mi/mi-interp.c: Include cli-out.h.
7998 (mi_cmd_interpreter_exec): Add comment.
7999 (restore_current_uiout_cleanup): New function.
8000 (ui_out_free_cleanup): New function.
8001 (mi_on_normal_stop): If finishing an execution command started by
8002 a CLI command, or any kind of breakpoint-like event triggered,
8003 print the stop event to the output (CLI) stream.
8004 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
8005
5166082f
PA
80062014-05-21 Pedro Alves <palves@redhat.com>
8007
8008 * cli/cli-cmds.c (list_command): Handle the first "list" after the
8009 current source line having changed.
8010 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
8011 * infrun.c (normal_stop): Adjust call to
8012 set_current_sal_from_frame.
8013 * source.c (clear_lines_listed_range): New function.
8014 (set_current_source_symtab_and_line, identify_source_line): Clear
8015 the lines listed range.
8016 (line_info): Handle the first "info line" after the current source
8017 line having changed.
8018 * stack.c (print_stack_frame): Remove center handling.
8019 (set_current_sal_from_frame): Remove 'center' parameter. Don't
8020 center sal.line.
8021
c1ee2fb3
PA
80222014-05-21 Pedro Alves <palves@redhat.com>
8023
8024 * inf-child.c (inf_child_mourn_inferior): New function.
8025 * inf-child.h (inf_child_mourn_inferior): New declaration.
8026 * darwin-nat.c (darwin_mourn_inferior): Use
8027 inf_child_mourn_inferior.
8028 * gnu-nat.c (gnu_mourn_inferior): Likewise.
8029 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
8030 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
8031 * nto-procfs.c (procfs_mourn_inferior): Likewise.
8032 * windows-nat.c (windows_mourn_inferior): Likewise.
8033
5c6d4fb2
DE
80342014-05-21 Doug Evans <xdje42@gmail.com>
8035
250748cb 8036 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 8037
4a2722c5
DE
80382014-05-21 Doug Evans <xdje42@gmail.com>
8039
17292b30 8040 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
8041 (gdbscm_out_of_range_error): Ditto.
8042 (gdbscm_memory_error): Ditto.
250748cb
DE
8043 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
8044 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
8045 (gdbscm_out_of_range_error): Update.
8046 (gdbscm_memory_error): Update.
8047 (gdbscm_scm_to_target_string_unsafe): Delete.
8048
6a3cb8e8
PA
80492014-05-21 Pedro Alves <palves@redhat.com>
8050
8051 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
8052 globals.
8053 (inf_child_open_target): New function.
8054 (inf_child_open): Use inf_child_open_target to push the target
8055 instead of erroring out.
8056 (inf_child_disconnect, inf_child_close)
8057 (inf_child_maybe_unpush_target): New functions.
8058 (inf_child_target): Install inf_child_disconnect and
8059 inf_child_close. Store a pointer to the returned object.
8060 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
8061 declarations.
8062 * target.c (auto_connect_native_target): New global.
8063 (show_default_run_target): New function.
8064 (find_default_run_target): Return NULL if automatically connecting
8065 to the native target is disabled.
8066 (_initialize_target): Install set/show auto-connect-native-target.
8067 * NEWS: Mention "set auto-connect-native-target", and "target
8068 native".
8069 * linux-nat.c (super_close): New global.
8070 (linux_nat_close): Call super_close.
8071 (linux_nat_add_target): Store a pointer to the base class's
8072 to_close method.
8073 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
8074 inf_child_maybe_unpush.
8075 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
8076 already pushed.
8077 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
8078 the inferior. Use inf_child_maybe_unpush_target.
8079 (inf_ttrace_attach): Don't push the target if it is already
8080 pushed.
8081 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
8082 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
8083 after mourning the inferior. Use inf_child_maybe_unpush_target.
8084 (darwin_attach_pid): Don't push the target if it is already
8085 pushed.
8086 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
8087 mourning the inferior. Use inf_child_maybe_unpush_target.
8088 (gnu_detach): Use inf_child_maybe_unpush_target.
8089 * go32-nat.c (go32_create_inferior): Don't push the target if it
8090 is already pushed.
8091 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
8092 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
8093 (procfs_open): Rename to ...
8094 (procfs_open_1): ... this. Add target_ops parameter. Adjust
8095 comments. Can target_preopen before changing node. Call
8096 inf_child_open_target to push the target explicitly.
8097 (procfs_attach): Don't push the target if it is already pushed.
8098 (procfs_detach): Use inf_child_maybe_unpush_target.
8099 (procfs_create_inferior): Don't push the target if it is already
8100 pushed.
8101 (nto_native_ops): New global.
8102 (procfs_open): Reimplement.
8103 (procfs_native_open): New function.
8104 (init_procfs_targets): Install procfs_native_open as to_open of
8105 "target native". Store a pointer to the "native" target in
8106 nto_native_ops.
8107 * procfs.c (procfs_attach): Don't push the target if it is already
8108 pushed.
8109 (procfs_detach): Use inf_child_maybe_unpush_target.
8110 (procfs_mourn_inferior): Only unpush the target after mourning the
8111 inferior. Use inf_child_maybe_unpush_target.
8112 (procfs_init_inferior): Don't push the target if it is already
8113 pushed.
8114 * windows-nat.c (do_initial_windows_stuff): Don't push the target
8115 if it is already pushed.
8116
930ee1b1
PA
81172014-05-21 Pedro Alves <palves@redhat.com>
8118
8119 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8120 and "procfs" targets are now called "native" instead.
8121
1f5d1b13
PA
81222014-05-21 Pedro Alves <palves@redhat.com>
8123
8124 * go32-nat.c (go32_open): Delete.
8125 (go32_target): Don't override the to_open method.
8126
132f8e03
PA
81272014-05-21 Pedro Alves <palves@redhat.com>
8128
8129 * nto-procfs.c (procfs_can_run): New function.
8130 (nto_procfs_ops): New global.
8131 (init_procfs_targets): New, based on procfs_target. Install
8132 "target native" in addition to "target procfs".
8133 (_initialize_procfs): Call init_procfs_targets instead of adding
8134 the target here.
8135
03c136c3
PA
81362014-05-21 Pedro Alves <palves@redhat.com>
8137
8138 * windows-nat.c (windows_target): Don't override to_shortname,
8139 to_longname or to_doc.
8140
a635d0f3
PA
81412014-05-21 Pedro Alves <palves@redhat.com>
8142
8143 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8144 to_doc.
8145
4f9b5133
PA
81462014-05-21 Pedro Alves <palves@redhat.com>
8147
8148 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8149 to_shortname, to_longname or to_doc.
8150
bc85afde
PA
81512014-05-21 Pedro Alves <palves@redhat.com>
8152
8153 * go32-nat.c (go32_target): Don't override to_shortname,
8154 to_longname or to_doc.
8155
4ebfc96e
PA
81562014-05-21 Pedro Alves <palves@redhat.com>
8157
8158 * inf-child.c (inf_child_open): Remove mention of "child".
8159 (inf_child_target): Rename target to "native" instead of "child".
8160
2648dfed
AA
81612014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8162
8163 * Makefile.in (SFILES): Delete "regset.c".
8164 (COMMON_OBS): Delete "regset.o".
8165 * regset.c: Remove.
8166 * regset.h (regset_alloc): Delete prototype.
8167
b13feb94
AA
81682014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8169
8170 * sparc-linux-tdep.c (sparc32_linux_gregset)
8171 (sparc32_linux_fpregset): New static regset structures.
8172 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8173 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8174 'fpregset' fields.
8175 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8176 (sparc64_linux_fpregset): New static regset structures.
8177 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8178 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8179 New static regset structures.
8180 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8181 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8182 New static regset structures.
8183 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8184 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8185 New static regset structures.
8186 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8187 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8188 New static regset structures.
8189 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8190
b4fd25c9
AA
81912014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8192
8193 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8194 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8195 register maps ("regmaps") from "*regset" to "*regmap". Do this
8196 for all regmap types and variables.
8197 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8198 (sparc32_linux_supply_core_gregset)
8199 (sparc32_linux_collect_core_gregset)
8200 (sparc32_linux_supply_core_fpregset)
8201 (sparc32_linux_collect_core_fpregset): Likewise.
8202 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8203 (sparc_gregmap, sparc_fpregmap): ... these.
8204 (sparc_supply_gregset, sparc_collect_gregset)
8205 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8206 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8207 (_initialize_sparc_nat): Rename regmaps.
8208 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8209 (sparc_gregmap, sparc_fpregmap): ... these.
8210 (sparc_supply_gregset, sparc_collect_gregset)
8211 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8212 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8213 Rename macros to...
8214 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8215 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8216 Likewise.
8217 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8218 Rename to...
8219 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8220 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8221 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8222 regmaps.
8223 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8224 (sparc32_bsd_fpregset): Rename to...
8225 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8226 (sparc32_bsd_fpregmap): ... these.
8227 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8228 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8229 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8230 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8231 (struct sparc_gregmap, struct sparc_fpregmap)
8232 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8233 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8234 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8235 (sparc32_supply_regset, sparc32_collect_gregset)
8236 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8237 prototypes.
8238 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8239 (sparc64_linux_ptrace_gregmap): ... this.
8240 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8241 (_initialize_sparc64_linux_nat): Rename regmaps.
8242 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8243 (sparc64_linux_core_gregmap): ... this.
8244 (sparc64_linux_supply_core_gregset)
8245 (sparc64_linux_collect_core_gregset)
8246 (sparc64_linux_supply_core_fpregset)
8247 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8248 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8249 (sparc64_sol2_fpregset): Rename to...
8250 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8251 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8252 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8253 regmaps.
8254 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8255 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8256 (sparc64_bsd_fpregset): Rename to...
8257 (struct sparc_gregmap, sparc64_sol2_gregmap)
8258 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8259 (sparc64_bsd_fpregmap): ... these.
8260 (sparc64_supply_gregset, sparc64_collect_gregset)
8261 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8262 prototypes.
8263 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8264 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8265 (sparc64fbsd_gregmap): ... this.
8266 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8267 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8268 Rename regmaps.
8269 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8270 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8271 (sparc64nbsd_collect_fpregset): Likewise.
8272 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8273 (sparc64nbsd_gregmap): ... this.
8274 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8275 regmaps.
8276 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8277 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8278 (sparc64obsd_gregmap): ... this.
8279 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8280 regmaps.
8281 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8282 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8283 (sparc32nbsd_gregmap): ... this.
8284 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8285 regmaps.
8286
8fea3224
AA
82872014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8288
8289 * score-tdep.c (score7_linux_gregset): New static regset
8290 structure.
8291 (score7_linux_regset_from_core_section): Remove dynamic regset
8292 allocation.
8293 (score_gdbarch_init): Drop allocation of tdep structure.
8294 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8295
24534243
AA
82962014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8297
8298 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8299 regset structures.
8300 (am33_regset_from_core_section): Remove dynamic regset
8301 allocations.
8302
b7195f27
AA
83032014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8304
8305 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8306 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8307 structures.
8308 (mips_linux_regset_from_core_section): Remove dynamic regset
8309 allocations.
8310 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8311 'gregset64', 'fpregset', and 'fpregset64'.
8312 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8313 deleted tdep fields.
8314
ecc37a5a
AA
83152014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8316
8317 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8318 regset structures.
8319 (amd64_regset_from_core_section): Remove dynamic regset
8320 allocations.
8321 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8322 structure.
8323 (amd64obsd_regset_from_core_section): Remove dynamic regset
8324 allocation.
8325 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8326 Likewise.
8327 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8328 x86-common regset supply function.
8329 * i386-tdep.c (i386_collect_gregset): Make static.
8330 (i386_gregset): New global regset structure.
8331 (i386_fpregset, i386_xstateregset): New static regset structures.
8332 (i386_regset_from_core_section): Remove dynamic regset
8333 allocations.
8334 (i386_gdbarch_init): Remove initialization of tdep fields
8335 'gregset', 'fpregset', and 'xstateregset'.
8336 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8337 'fpregset', and 'xstateregset'.
8338 (i386_collect_gregset): Remove prototype.
8339 (i386_gregset): New declaration.
8340 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8341 structure.
8342 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8343 allocation.
8344
b7611c43
AA
83452014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8346
8347 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8348 (arm_linux_vfpregset): New static regset structures.
8349 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8350 regset structures.
8351 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8352 and 'vfpregset' fields.
8353
a069a2bd
AA
83542014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8355
8356 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8357 (aarch64_linux_fpregset): New static regset structures.
8358 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8359 of regset structures.
8360 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8361 'fpregset' fields.
8362
09424cff
AA
83632014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8364
8365 * regset.h (struct regset): Remove gdbarch field.
8366 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8367 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8368 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8369 Likewise.
8370 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8371 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8372 (ppc32_linux_vsxregset): Likewise.
8373 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8374 via the regcache instead of the regset.
8375 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8376 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8377 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8378 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8379 Likewise.
8380
3ca7dae4
AA
83812014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8382
8383 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8384 Constify structures.
8385 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8386 (alphanbsd_aout_gregset): Likewise.
8387 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8388 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8389 Likewise.
8390 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8391 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8392 Likewise.
8393 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8394 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8395 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8396 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8397 * m88k-tdep.c (m88k_gregset): Likewise.
8398 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8399 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8400 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8401 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8402 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8403 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8404 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8405 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8406 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8407 Likewise.
8408 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8409 * sh-tdep.h (sh_corefile_gregset): Likewise.
8410 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8411 * vax-tdep.c (vax_gregset): Likewise.
8412
5876f503
JK
84132014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8414
8415 Fix TLS access for -static -pthread.
8416 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8417 (try_thread_db_load_1): Initialize it.
8418 (thread_db_get_thread_local_address): Call it if LM is zero.
8419 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8420 * target.h (struct target_ops) (to_get_thread_local_address): Add
8421 load_module_addr comment.
8422
0256a6ac
PA
84232014-05-21 Pedro Alves <palves@redhat.com>
8424
8425 * dcache.c (dcache_read_memory_partial): If reading the cache line
8426 fails, fallback to reading just the memory the caller wanted.
8427
227533ac
DE
84282014-05-20 Doug Evans <dje@google.com>
8429
8430 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8431 instead of get_current_arch.
8432
936d2992
PA
84332014-05-20 Pedro Alves <palves@redhat.com>
8434
8435 * NEWS: Mention that compare-sections now works with all targets.
8436
8437 * remote.c (PACKET_qCRC): New enum value.
8438 (remote_verify_memory): Don't send qCRC if the target has no
8439 execution. Use packet_support/packet_ok. If the target doesn't
8440 support the qCRC packet, fallback to a deep memory copy.
8441 (compare_sections_command): Say "target image" instead of "remote
8442 executable".
8443 (_initialize_remote): Add PACKET_qCRC to the list of config
8444 packets that have no associated command. Extend comment.
8445 * target.c (simple_verify_memory, default_verify_memory): New
8446 function.
8447 * target.h (struct target_ops) <to_verify_memory>: Default to
8448 default_verify_memory.
8449 (simple_verify_memory): New declaration.
8450 * target-delegates.c: Regenerate.
8451
e59fa00f
MM
84522014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8453
8454 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8455
f2205de0
HZ
84562014-05-20 Hui Zhu <hui@codesourcery.com>
8457 Yao Qi <yao@codesourcery.com>
8458
8459 PR backtrace/16558
8460 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8461 and change address of sp and pc.
8462
c4e54771
TT
84632014-05-19 Tom Tromey <tromey@redhat.com>
8464
8465 * gdbtypes.c (rank_function): Use XNEWVEC.
8466 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8467
73051182
DE
84682014-05-19 Doug Evans <dje@google.com>
8469
8470 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8471 build_type_unit_groups and moved closer to only caller. Remove
8472 arguments. All references updated. Remove outdated .gdb_index
8473 comment.
8474 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8475 build_type_psymtabs_1.
8476
8832e7e3
DE
84772014-05-19 Doug Evans <dje@google.com>
8478
8479 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8480 n_type_unit_groups, all_type_unit_groups. All uses removed.
8481 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8482 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8483 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8484 (add_type_unit_group_to_table): Delete.
8485
cd8ae15e
DE
84862014-05-19 Doug Evans <dje@google.com>
8487
8488 * eval.c (evaluate_subexp_standard): Add some comments.
8489
08f4850b
DE
84902014-05-17 Doug Evans <xdje42@gmail.com>
8491
8492 * progspace.c (remove_program_space): Delete, unused.
8493 * progspace.h (remove_program_space): Ditto.
8494
bed8455c
DE
84952014-05-17 Doug Evans <xdje42@gmail.com>
8496
8497 * inferior.c (prune_inferiors): Fix comment.
8498 (remove_inferior_command): Call prune_program_spaces.
8499
8d551b02
DE
85002014-05-16 Doug Evans <dje@google.com>
8501
8502 New command line option -D.
8503 * NEWS: Mention it.
8504 * main.c (set_gdb_data_directory): New function.
8505 (captured_main): Recognize -D. Flag error for --data-directory "".
8506 Call set_gdb_data_directory.
8507 (print_gdb_help): Print --data-directory, -D.
8508 * main.h (set_gdb_data_directory): Declare.
8509 * top.c (staged_gdb_datadir): New static global.
8510 (set_gdb_datadir): Call set_gdb_data_directory
8511 (show_gdb_datadir): New function.
8512 (init_main): Update init of data-directory parameter.
8513
18848e28
GF
85142014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8515
8516 Import the "dirfd" gnulib module.
8517 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8518 * gnulib/aclocal.m4: Update.
8519 * gnulib/config.in: Update.
8520 * gnulib/configure: Update.
8521 * gnulib/import/Makefile.am: Update.
8522 * gnulib/import/Makefile.in: Update.
8523 * gnulib/import/dirfd.c: New.
8524 * gnulib/import/m4/dirfd.m4: New.
8525 * gnulib/import/m4/gnulib-cache.m4: Update.
8526 * gnulib/import/m4/gnulib-comp.m4: Update.
8527
95c64f92
YQ
85282014-05-16 Pierre Muller <muller@sourceware.org>
8529 Yao Qi <yao@codesourcery.com>
8530
8531 * valprint.c (print_wchar): Move the code on checking whether
8532 W is a printable wide char to the default branch of switch
8533 statement below. Call wchar_printable instead of gdb_iswprint.
8534
cac395ea
TM
85352014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8536
19679eca 8537 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
8538 ldr.w and ldrd instructions.
8539
83655187
DE
85402014-05-15 Doug Evans <dje@google.com>
8541
8542 * dwarf2read.c (read_structure_type): Delete outdated comments.
8543
dd756689
TT
85442014-05-14 Tom Tromey <tromey@redhat.com>
8545
8546 * macrocmd.c (print_macro_definition): Reindent.
8547
75ddda77
DE
85482014-05-13 Doug Evans <xdje42@gmail.com>
8549
8550 * python/py-cmd.c (cmdpy_completer): Add comment.
8551 (completers): Make const.
8552
b0f16a3e
SM
85532014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8554
8555 * infrun.c (resume): Remove should_resume (unused). Move up
8556 declaration of resume_ptid.
8557
033c3379
TT
85582014-05-13 Tom Tromey <tromey@redhat.com>
8559
8560 * language.h (unop_type_check): Remove.
8561 (binop_type_check): Don't declare.
8562
9b44a3a5
AA
85632014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8564
8565 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8566 call to regcache_raw_collect.
8567
303a33fa
SM
85682014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8569
8570 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8571 mi_console->quote as the quoting character.
8572
196100a0
SM
85732014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8574
8575 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8576
f989a1c8
TT
85772014-04-29 Tom Tromey <tromey@redhat.com>
8578
8579 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8580 "show debug varobj".
8581
9404b58f
KM
85822014-05-07 Kyle McMartin <kyle@redhat.com>
8583
8584 Pushed by Joel Brobecker <brobecker@adacore.com>.
8585 * aarch64-tdep.c (aarch64_software_single_step): New function.
8586 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8587 with aarch64_software_single_step.
8588
5e49ba57
JB
85892014-05-05 Joel Brobecker <brobecker@adacore.com>
8590
8591 GDB 7.7.1 released.
8592
c888a17d
KS
85932014-05-05 Keith Seitz <keiths@redhat.com>
8594
8595 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8596 variable or history value is successfully parsed.
8597
290a839c
YQ
85982014-05-05 Yao Qi <yao@codesourcery.com>
8599 Pedro Alves <palves@redhat.com>
8600
8601 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8602 address of blocks that intersects the requested range. Trim
8603 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8604 sections.
8605 * ctf.c (ctf_xfer_partial): Likewise.
8606
91256dc2
YQ
86072014-05-05 Yao Qi <yao@codesourcery.com>
8608
8609 * printcmd.c (display_command): Remove the check to
8610 target_has_execution.
8611
07284463
MK
86122014-05-03 Mark Kettenis <kettenis@gnu.org>
8613
8614 * ppcobsd-nat.c: Include "obsd-nat.h".
8615 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8616 add_target.
8617 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8618
30a1e6cc
SDJ
86192014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8620
8621 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8622 and 16-bit signed and unsigned arguments. Update comment.
8623 (stap_parse_probe_arguments): Extend code to handle such
8624 arguments. Use warning instead of complaint to notify about
8625 unrecognized bitness.
8626
f33da99a
SDJ
86272014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8628
8629 PR breakpoints/16889
8630 * stap-probe.c (stap_parse_probe_arguments): Simplify
8631 check for non-prefixed probes (i.e., probes whose
8632 arguments do not start with "N@"). Always set the
8633 argument type to a sane value.
8634
95cf3b38
DT
86352014-05-01 David Taylor <dtaylor@emc.com>
8636
8637 * remote.c (compare_sections_command): Add -r option to compare
8638 all loadable read-only sections.
8639
1cfdf534
SC
86402014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8641
8642 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8643 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8644 Update all callers.
8645 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8646 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8647 Remove unused CORE_ADDR argument. Update all callers.
8648
ca4f7f8b
PA
86492014-04-29 Pedro Alves <palves@redhat.com>
8650
8651 * remote.c (struct packet_config) <detect>: Extend comment.
8652 (add_packet_config_cmd): Don't set the config's detect or support
8653 fields here.
8654 (init_all_packet_configs): Also initialize the config's 'detect'
8655 field.
8656 (reset_all_packet_configs_support): New function.
8657 (remote_open_1): Call reset_all_packet_configs_support instead of
8658 init_all_packet_configs.
8659 (_initialize_remote): Initialize all packet configs. Assert that
8660 all packets have an associated command, except a few known
8661 outliers.
8662
11c1ba78
JB
86632014-04-28 Joel Brobecker <brobecker@adacore.com>
8664
8665 * dwarf2read.c (read_subrange_type): Handle dynamic
8666 DW_AT_lower_bound attributes.
8667
8739bc53
JB
86682014-04-28 Joel Brobecker <brobecker@adacore.com>
8669
8670 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8671 dynamic bounds before computing its upper bound.
8672 (ada_discrete_type_low_bound): Same as above with the lower bound.
8673
6f8a3220
JB
86742014-04-28 Joel Brobecker <brobecker@adacore.com>
8675
8676 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8677 range types. Adjust the array handling implementation to
8678 take advantage of this change.
8679 (resolve_dynamic_range): New function, mostly extracted from
8680 resolve_dynamic_bounds.
8681 (resolve_dynamic_array): New function, mostly extracted from
8682 resolve_dynamic_bounds.
8683 (resolve_dynamic_bounds): Delete.
8684 (resolve_dynamic_type): Reimplement. Add handling of
8685 TYPE_CODE_RANGE types.
8686
4d072ce4
JB
86872014-04-28 Joel Brobecker <brobecker@adacore.com>
8688
8689 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8690 handling of parallel ___XA types.
8691
52865325
JB
86922014-04-28 Joel Brobecker <brobecker@adacore.com>
8693
8694 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8695 unnecessary second call to static_unwrap_type.
8696
433e77fa
HZ
86972014-04-27 Hui Zhu <hui@codesourcery.com>
8698
8699 * stack.c (print_frame_info): Call do_gdb_disassembly with
8700 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8701
b51a69ee
DE
87022014-04-26 Doug Evans <xdje42@gmail.com>
8703
8704 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8705
7ae1a6a6
PA
87062014-04-25 Pedro Alves <palves@redhat.com>
8707
8708 PR server/16255
8709 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8710 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8711 and newline from built string.
8712 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8713 (linux_ptrace_attach_fail_reason): ... this.
8714 * linux-nat.c (linux_nat_attach): Adjust to use
8715 linux_ptrace_attach_fail_reason.
8716
4082afcc
PA
87172014-04-25 Pedro Alves <palves@redhat.com>
8718
8719 * remote.c (struct remote_state): Remove multi_process_aware,
8720 non_stop_aware, cond_tracepoints, cond_breakpoints,
8721 breakpoint_commands, fast_tracepoints, static_tracepoints,
8722 install_in_trace, disconnected_tracing,
8723 enable_disable_tracepoints, string_tracing, and
8724 augmented_libraries_svr4_read fields.
8725 (remote_multi_process_p): Move further below in the file.
8726 (struct packet_config): Add comments.
8727 (update_packet_config): Delete function.
8728 (show_packet_config_cmd): Use packet_config_support.
8729 (add_packet_config_cmd): Use NULL as set callback.
8730 (packet_ok): "set remote foo-packet"-style commands no longer
8731 change config->supported -- adjust.
8732 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8733 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8734 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8735 (PACKET_QNonStop, PACKET_multiprocess_feature)
8736 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8737 (PACKET_DisconnectedTracing_feature)
8738 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8739 (set_remote_protocol_packet_cmd): Delete function.
8740 (packet_config_support, packet_support): New functions.
8741 (set_remote_protocol_Z_packet_cmd): Don't call
8742 update_packet_config.
8743 (remote_query_attached, remote_pass_signals)
8744 (remote_program_signals, remote_threads_info)
8745 (remote_threads_extra_info, remote_start_remote): Use
8746 packet_support.
8747 (remote_start_remote): Use packet_config_support and
8748 packet_support.
8749 (init_all_packet_configs): Set all packets to unknown support,
8750 instead of calling update_packet_config.
8751 (remote_check_symbols): Use packet_support.
8752 (remote_supported_packet): Unconditionally set the packet config's
8753 support status.
8754 (remote_multi_process_feature, remote_non_stop_feature)
8755 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8756 (remote_breakpoint_commands_feature)
8757 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8758 (remote_install_in_trace_feature)
8759 (remote_disconnected_tracing_feature)
8760 (remote_enable_disable_tracepoint_feature)
8761 (remote_string_tracing_feature)
8762 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8763 (remote_protocol_features): Adjust to use remote_supported_packet
8764 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8765 "ConditionalTracepoints", "ConditionalBreakpoints",
8766 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8767 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8768 "EnableDisableTracepoints", and "tracenz".
8769 (remote_query_supported): Use packet_support.
8770 (remote_open_1): Adjust.
8771 (extended_remote_attach_1): Use packet_support. Switch on the
8772 result of packet_ok instead of checking whether the packet ended
8773 up disabled.
8774 (remote_vcont_resume): Use packet_support.
8775 (remote_resume, remote_stop_ns, fetch_register_using_p)
8776 (remote_prepare_to_store, store_register_using_P)
8777 (check_binary_download, remote_write_bytes): Use packet_support.
8778 (remote_vkill): Use packet_support. Switch on the result of
8779 packet_ok instead of checking whether the packet ended up
8780 disabled.
8781 (extended_remote_supports_disable_randomization): Use
8782 packet_support.
8783 (extended_remote_run): Switch on the result of packet_ok instead
8784 of checking whether the packet ended up disabled.
8785 (remote_insert_breakpoint, remote_remove_breakpoint)
8786 (remote_insert_watchpoint, remote_remove_watchpoint)
8787 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8788 packet_support.
8789 (remote_search_memory): Use packet_config_support.
8790 (remote_get_thread_local_address, remote_get_tib_address)
8791 (remote_hostio_send_command, remote_can_execute_reverse): Use
8792 packet_support.
8793 (remote_supports_cond_tracepoints)
8794 (remote_supports_cond_breakpoints)
8795 (remote_supports_fast_tracepoints)
8796 (remote_supports_static_tracepoints)
8797 (remote_supports_install_in_trace)
8798 (remote_supports_enable_disable_tracepoint)
8799 (remote_supports_string_tracing)
8800 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8801 the packet config says the feature is enabled or disabled.
8802 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8803 (remote_get_trace_status): Use packet_support.
8804 (remote_set_disconnected_tracing): Adjust to check whether the
8805 feature is enabled with packet_support.
8806 (remote_set_trace_buffer_size, remote_use_agent)
8807 (remote_can_use_agent, remote_supports_btrace): Use
8808 packet_support.
8809 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8810 Use packet_config_support.
8811 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8812 the packet config says the feature is enabled or disabled.
8813 (set_range_stepping): Use packet_support.
8814
bdb52a22
TT
88152014-04-25 Tom Tromey <tromey@redhat.com>
8816
8817 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8818 argument.
8819
e9475ead
SA
88202014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8821
8822 * NEWS: Mention support for C99 variable length arrays.
8823
82eacd52
JB
88242014-04-24 Joel Brobecker <brobecker@adacore.com>
8825
8826 * ada-lang.c (standard_exc): Expand introductory comment.
8827
01f9f808
MS
88282014-04-24 Michael Sturm <michael.sturm@mintel.com>
8829 Walfred Tedeschi <walfred.tedeschi@intel.com>
8830
8831 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8832 AVX512 registers.
8833 (amd64_linux_read_description): Add code to handle AVX512 xstate
8834 mask and return respective tdesc.
8835 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8836 and features/i386/x32-avx512-linux.c.
8837 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8838 (amd64_linux_core_read_description): Add code to handle AVX512
8839 xstate mask and return respective tdesc.
8840 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8841 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8842 calculation.
8843 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8844 (tdesc_amd64_avx512_linux): New prototype.
8845 (tdesc_x32_avx512_linux): Likewise.
8846 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8847 features/i386/x32-avx512.c.
8848 (amd64_ymm_avx512_names): New register names for pseudo
8849 registers YMM16-31.
8850 (amd64_ymmh_avx512_names): New register names for raw registers
8851 YMMH16-31.
8852 (amd64_k_names): New register names for K registers.
8853 (amd64_zmmh_names): New register names for ZMM raw registers.
8854 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8855 (amd64_xmm_avx512_names): New register names for XMM16-31
8856 registers.
8857 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8858 registers.
8859 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8860 if feature is present.
8861 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8862 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8863 (AMD64_NUM_REGS): Adjust to new number of registers.
8864 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8865 registers supplied via XSTATE by AVX512 registers.
8866 (i386_linux_read_description): Add case for AVX512.
8867 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8868 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8869 (i386_linux_core_read_description): Add case for AVX512.
8870 (i386_linux_init_abi): Install supported register note section
8871 for AVX512.
8872 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8873 AVX512.
8874 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8875 registers to be number of zmm7h + 1.
8876 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8877 * i386-tdep.c: Include features/i386/i386-avx512.c.
8878 (i386_zmm_names): Add ZMM pseudo register names array.
8879 (i386_zmmh_names): Add ZMM raw register names array.
8880 (i386_k_names): Add K raw register names array.
8881 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8882 registers. AVX512 has 16 more ZMM registers than there are YMM
8883 registers.
8884 (i386_zmmh_regnum_p): Add function to look up register number of
8885 ZMM raw registers.
8886 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8887 (i386_k_regnum_p): Likewise for K raw registers.
8888 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8889 registers added by AVX512.
8890 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8891 registers added by AVX512.
8892 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8893 added by AVX512.
8894 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8895 (i386_pseudo_register_name): Add ZMM pseudo registers.
8896 (i386_zmm_type): Construct and return vector registers type for ZMM
8897 registers.
8898 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8899 ZMM0-31 pseudo registers and K registers.
8900 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8901 and YMM16-31 registers from register cache.
8902 (i386_pseudo_register_write): Add code to write K, ZMM and
8903 YMM16-31 registers.
8904 (i386_register_reggroup_p): Add code to include/exclude AVX512
8905 registers in/from respective register groups.
8906 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8907 registers if feature is present in xcr0.
8908 (i386_gdbarch_init): Add code to initialize AVX512 feature
8909 variables in tdep structure, wire in pseudo registers and call
8910 initialize_tdesc_i386_avx512.
8911 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8912 variables.
8913 (i386_regnum): Add AVX512 registers.
8914 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8915 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8916 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8917 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8918 512 bits wide.
8919 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8920 (i386_ymm_avx512_regnum_p): Likewise.
8921 (i386_k_regnum_p): Likewise.
8922 (i386_zmm_regnum_p): Likewise.
8923 (i386_zmmh_regnum_p): Likewise.
8924 * i387-tdep.c : Update year in copyright notice.
8925 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8926 XSAVE buffer.
8927 (XSAVE_YMM_AVX512_ADDR): New macro.
8928 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8929 XSAVE buffer.
8930 (XSAVE_XMM_AVX512_ADDR): New macro.
8931 (xsave_avx512_k_offset): New table for K register offsets in
8932 XSAVE buffer.
8933 (XSAVE_AVX512_K_ADDR): New macro.
8934 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8935 in XSAVE buffer.
8936 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8937 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8938 buffer.
8939 (i387_collect_xsave): Add code to collect AVX512 registers from
8940 XSAVE buffer.
8941 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8942 of XMM16-31 registers.
8943 (I387_NUM_K_REGS): New define for number of K registers.
8944 (I387_K0_REGNUM): New define for K0 register number.
8945 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8946 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8947 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8948 registers.
8949 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8950 (I387_XMM16_REGNUM): New define for XMM16 register number.
8951 (I387_YMM0_REGNUM): New define for YMM0 register number.
8952 (I387_KEND_REGNUM): New define for last K register number.
8953 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8954 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8955 number.
8956 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8957 number.
8958 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8959 size.
8960 * features/Makefile: Add AVX512 related files.
8961 * features/i386/32bit-avx512.xml: New file.
8962 * features/i386/64bit-avx512.xml: Likewise.
8963 * features/i386/amd64-avx512-linux.c: Likewise.
8964 * features/i386/amd64-avx512-linux.xml: Likewise.
8965 * features/i386/amd64-avx512.c: Likewise.
8966 * features/i386/amd64-avx512.xml: Likewise.
8967 * features/i386/i386-avx512-linux.c: Likewise.
8968 * features/i386/i386-avx512-linux.xml: Likewise.
8969 * features/i386/i386-avx512.c: Likewise.
8970 * features/i386/i386-avx512.xml: Likewise.
8971 * features/i386/x32-avx512-linux.c: Likewise.
8972 * features/i386/x32-avx512-linux.xml: Likewise.
8973 * features/i386/x32-avx512.c: Likewise.
8974 * features/i386/x32-avx512.xml: Likewise.
8975 * regformats/i386/amd64-avx512-linux.dat: New file.
8976 * regformats/i386/amd64-avx512.dat: Likewise.
8977 * regformats/i386/i386-avx512-linux.dat: Likewise.
8978 * regformats/i386/i386-avx512.dat: Likewise.
8979 * regformats/i386/x32-avx512-linux.dat: Likewise.
8980 * regformats/i386/x32-avx512.dat: Likewise.
8981 * NEWS: Add note about new support for AVX512.
8982
8983
08351840
PA
89842014-04-23 Pedro Alves <palves@redhat.com>
8985
8986 * breakpoint.c (insert_bp_location): Tolerate errors if the
8987 breakpoint is set in a user-loaded objfile.
8988 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8989 location is marked shlib_disabled. If the breakpoint is set in a
8990 user-loaded objfile is a GDB-side memory breakpoint, validate it
8991 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8992 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8993 flag.
8994 * mem-break.c (memory_validate_breakpoint): New function.
8995 * objfiles.c (userloaded_objfile_contains_address_p): New
8996 function.
8997 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8998 * target.h (memory_validate_breakpoint): New declaration.
8999
076855f9
PA
90002014-04-23 Pedro Alves <palves@redhat.com>
9001
9002 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
9003 the breakpoint is set in a shared library, only suppress
9004 errors for software breakpoints, not hardware breakpoints.
9005
483805cf
PA
90062014-04-22 Pedro Alves <palves@redhat.com>
9007
9008 * infrun.c (schedlock_applies): New function, factored out from
9009 find_thread_needs_step_over.
9010 (find_thread_needs_step_over): Use it.
9011 (switch_back_to_stepped_thread): Always clear trap_expected if the
9012 step over is finished. Return early if scheduler locking applies.
9013 Look for the stepping thread and a potential step-over thread with
9014 a single loop.
9015 (currently_stepping_or_nexting_callback): Delete.
9016
a75fef0e
NC
90172014-04-22 Nick Clifton <nickc@redhat.com>
9018
9019 * NEWS: Mention that ARM sim now supports tracing.
9020
48b6e87e
YQ
90212014-04-22 Yao Qi <yao@codesourcery.com>
9022
9023 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
9024 to ...
9025 * tracefile.c (tracefile_fetch_registers): ... it. New
9026 function.
9027 * tracefile.h (tracefile_fetch_registers): Declare.
9028 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
9029 tracefile_fetch_registers.
9030
17617f2d
EZ
90312014-04-19 Eli Zaretskii <eliz@gnu.org>
9032
9033 PR gdb/14018
9034 * windows-nat.c (thread_rec): Don't display a warning when
9035 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
9036 fails for any reason, set th->suspended to -1, so that we don't
9037 try to resume such a thread. Also, don't return NULL in these
9038 cases, to avoid completely ruin the session due to "PC register is
9039 not available" error.
9040 (do_windows_fetch_inferior_registers): Check errors in
9041 GetThreadContext call.
9042 (windows_continue): Accept an additional argument KILLED; if not
9043 zero, ignore errors in the SetThreadContext call, since the
9044 inferior was killed and is shutting down.
9045 (windows_resume, get_windows_debug_event)
9046 (windows_create_inferior, windows_mourn_inferior)
9047 (windows_kill_inferior): All callers of windows_continue changed
9048 to adjust to its new calling sequence.
9049
5723a6fd
YQ
90502014-04-19 Yao Qi <yao@codesourcery.com>
9051
9052 * ctf.c (ctf_open): Call post_create_inferior.
9053
614d5099
YQ
90542014-04-19 Yao Qi <yao@codesourcery.com>
9055
9056 * ctf.c (handle_id): New static variable.
9057 (ctf_open_dir): Get handle_id from bt_context_add_trace return
9058 value. Get the declaration of event "register" and get length
9059 of field "contents".
9060
dac3e710
YQ
90612014-04-19 Yao Qi <yao@codesourcery.com>
9062
9063 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
9064
2bca57ba
SC
90652014-04-18 Siva Chandra Reddy <sivachandra@google.com>
9066
9067 * valops.c (oload_method_static): Remove unnecessary argument
9068 METHOD. Update all callers.
9069
51d48146
PA
90702014-04-18 Pedro alves <palves@redhat.com>
9071 Tom Tromey <tromey@redhat.com>
9072
9073 PR backtrace/15558
9074 * frame.c (get_prev_frame_1): Rename to ...
9075 (get_prev_frame_always): ... this, and make extern. Adjust.
9076 (skip_artificial_frames): Use get_prev_frame_always.
9077 (frame_unwind_caller_id, frame_pop, get_prev_frame)
9078 (get_frame_unwind_stop_reason): Adjust to rename.
9079 * frame.h (get_prev_frame_always): Declare.
9080 * inline-frame.c: Include frame.h.
9081 (inline_frame_this_id): Use get_prev_frame_always.
9082
1bdad2e0
TG
90832014-04-18 Tristan Gingold <gingold@adacore.com>
9084
9085 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
9086 code by using bfd_mach_o_get_base_address.
9087
7ce16bd4
UW
90882014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
9089
9090 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
9091 (spu_ax_pseudo_register_collect): New function.
9092 (spu_ax_pseudo_register_push_stack): Likewise.
9093 (spu_dwarf_reg_to_regnum): Likewise.
9094 (spu_gdbarch_init): Install them. Append DWARF unwinders.
9095
2ed3c037
UW
90962014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
9097
9098 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
9099 Replace FRAME argument with FRAME_ID.
9100 * gdbarch.c, gdbarch.h: Regenerate.
9101 * findvar.c (default_value_from_register): Add GDBARCH argument;
9102 replace FRAME by FRAME_ID. No longer call get_frame_id.
9103 (value_from_register): Update call to gdbarch_value_from_register.
9104 * value.h (default_value_from_register): Update prototype.
9105 * s390-linux-tdep.c (s390_value_from_register): Update interface
9106 and call to default_value_from_register.
9107 * spu-tdep.c (spu_value_from_register): Likewise.
9108
9109 * findvar.c (address_from_register): Remove TYPE argument.
9110 Do not call value_from_register; use gdbarch_value_from_register
9111 with null_frame_id instead.
9112 * value.h (address_from_register): Update prototype.
9113 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9114 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9115 address_from_register interface change.
9116
71e50e83
YQ
91172014-04-17 Yao Qi <yao@codesourcery.com>
9118
9119 * gdbtypes.h: Update comments to link to types and macros'
9120 definitions.
9121
7a23c549
SC
91222014-04-16 Siva Chandra Reddy <sivachandra@google.com>
9123
9124 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9125
22869d73
KS
91262014-04-16 Keith Seitz <keiths@redhat.com>
9127
9128 PR gdb/15827
9129 * dwarf2read.c (skip_one_die): Check that all relative-offset
9130 sibling DIEs fall within range of the current reader's buffer.
9131 (read_partial_die): Likewise.
9132
c4f87ca6
KS
91332014-04-16 Keith Seitz <keiths@redhat.com>
9134
9135 PR c++/16597
9136 * cp-namespace.c (lookup_symbol_file): If the type name of
9137 `this' is NULL, return immediately.
9138
b50c8614
KS
91392014-04-14 Keith Seitz <keiths@redhat.com>
9140
9141 PR c++/16253
9142 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9143 from symbol_matches_domain in symtab.c. All local callers
9144 of symbol_matches_domain updated.
9145 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9146 search STRUCT_DOMAIN.
9147 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9148 independently. standard_lookup will do that automatically.
9149 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9150 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9151 (cp_lookup_symbol_in_namespace): Likewise.
9152 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9153 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9154 may return a STRUCT_DOMAIN match.
9155 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9156 * cp-support.c: Include language.h.
9157 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9158 VAR_DOMAIN.
9159 * psymtab.c (match_partial_symbol): Compare the requested
9160 domain with the symbol's domain directly.
9161 (lookup_partial_symbol): Likewise.
9162 * symtab.c (lookup_symbol_in_language): Explain when/why
9163 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9164 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9165 appropriate languages.
9166 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9167 and moved to ada-lang.c
9168 (lookup_block_symbol): Explain that this function only returns
9169 symbol matching the requested DOMAIN.
9170 Compare the requested domain with the symbol's domain directly.
9171 (iterate_over_symbols): Compare the requested domain with the
9172 symbol's domain directly.
9173 * symtab.h (symbol_matches_domain): Remove.
9174
3d567982
TT
91752014-04-14 Tom Tromey <tromey@redhat.com>
9176
9177 PR c++/15246:
9178 * c-exp.y (type_aggregate_p): New function.
9179 (qualified_name, classify_inner_name): Use it.
9180 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9181 and TYPE_TARGET_TYPE of an enum type.
9182 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9183 an enum type.
9184 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9185 handle TYPE_DECLARED_CLASS.
9186 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9187 types.
9188 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9189 * valops.c (enum_constant_from_type): New function.
9190 (value_aggregate_elt): Use it.
9191 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9192 TYPE_CODE_ENUM.
9193
c848d642
TT
91942014-04-14 Tom Tromey <tromey@redhat.com>
9195
9196 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9197 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9198 const.
9199 * value.h (value_aggregate_elt): Update.
9200
0626fc76
TT
92012014-04-14 Tom Tromey <tromey@redhat.com>
9202
9203 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9204
5ecaaa66
SA
92052014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9206
9207 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9208 (evaluate_subexp_standard): Pass noside argument.
9209 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9210 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9211 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9212 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9213 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9214
1612e0c0
SA
92152014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9216
9217 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9218 points to a constant blob.
9219
c451ebe5
SA
92202014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9221
9222 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9223 property and store it as the high bound and flag the range accordingly.
9224 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9225 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9226 * gdbtypes.h (enum range_flags): New enum.
9227 (struct range_bounds): Add flags member.
9228
1d42e4c4
SA
92292014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9230
9231 * c-typeprint.c (c_type_print_varspec_suffix): Added
9232 check for not yet resolved high bound. If unresolved, print
9233 "variable length" string to the console instead of random
9234 length.
9235
9f1f738a
SA
92362014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9237
9238 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9239 value.
9240 (ada_template_to_fixed_record_type_1): Likewise.
9241 (ada_to_fixed_type_1): Likewise.
9242 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9243 (cp_print_value): Likewise.
9244 * d-valprint.c (dynamic_array_type): Likewise.
9245 * findvar.c (address_of_variable): Likewise.
9246 * jv-valprint.c (java_value_print): Likewise.
9247 * valops.c (value_ind): Likewise.
9248 * value.c (coerce_ref): Likewise.
9249
3c8452d4
SA
92502014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9251
9252 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9253 value and retrieve the dynamic type size.
9254
4ad88275
SA
92552014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9256
9257 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9258 passed to sizeof is dynamic evaluate the argument to compute the length.
9259
80180f79
SA
92602014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9261 Joel Brobecker <brobecker@adacore.com>
9262
9263 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9264 (dwarf2_evaluate_property): New function.
9265 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9266 * dwarf2read.c (attr_to_dynamic_prop): New function.
9267 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9268 attribute.
9269 * gdbtypes.c: Include dwarf2loc.h.
9270 (is_dynamic_type): New function.
9271 (resolve_dynamic_type): New function.
9272 (resolve_dynamic_bounds): New function.
9273 (get_type_length): New function.
9274 (check_typedef): Use get_type_length to compute type length.
9275 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9276 (TYPE_LOW_BOUND_KIND): New macro.
9277 (is_dynamic_type): New function prototype.
9278 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9279 to resolve dynamic properties of the type. Update comment.
9280 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9281
a1556843
RH
92822014-04-14 Richard Henderson <rth@redhat.com>
9283
9284 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9285
0be03e84
DE
92862014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9287 Doug Evans <xdje42@gmail.com>
9288
9289 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9290 dereference TYPE_CODE_REF values.
9291
6b662e19
JB
92922014-04-11 Joel Brobecker <brobecker@adacore.com>
9293
9294 Revert the following changes due to regressions:
9295
9296 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9297 (dwarf2_evaluate_property): New function.
9298 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9299 * dwarf2read.c (attr_to_dynamic_prop): New function.
9300 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9301 attribute.
9302 * gdbtypes.c: Include dwarf2loc.h.
9303 (is_dynamic_type): New function.
9304 (resolve_dynamic_type): New function.
9305 (resolve_dynamic_bounds): New function.
9306 (get_type_length): New function.
9307 (check_typedef): Use get_type_length to compute type length.
9308 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9309 (TYPE_LOW_BOUND_KIND): New macro.
9310 (is_dynamic_type): New function prototype.
9311 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9312 to resolve dynamic properties of the type. Update comment.
9313 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9314
9315 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9316 passed to sizeof is dynamic evaluate the argument to compute the length.
9317
9318 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9319 value and retrieve the dynamic type size.
9320
9321 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9322 (ada_template_to_fixed_record_type_1): Likewise.
9323 (ada_to_fixed_type_1): Likewise.
9324 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9325 (cp_print_value): Likewise.
9326 * d-valprint.c (dynamic_array_type): Likewise.
9327 * eval.c (evaluate_subexp_with_coercion): Likewise.
9328 * findvar.c (address_of_variable): Likewise.
9329 * jv-valprint.c (java_value_print): Likewise.
9330 * valops.c (value_ind): Likewise.
9331 * value.c (coerce_ref): Likewise.
9332
9333 * c-typeprint.c (c_type_print_varspec_suffix): Added
9334 check for not yet resolved high bound. If unresolved, print
9335 "variable length" string to the console instead of random
9336 length.
9337
9338 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9339 property and store it as the high bound and flag the range accordingly.
9340 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9341 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9342 * gdbtypes.h (enum range_flags): New enum.
9343 (struct range_bounds): Add flags member.
9344
9345 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9346 points to a constant blob.
9347
9348 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9349 (evaluate_subexp_standard): Pass noside argument.
9350 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9351 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9352 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9353 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9354 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9355
245a5f0b
KS
93562014-04-11 Keith Seitz <keiths@redhat.com>
9357
9358 PR c++/16675
9359 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9360 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9361 reference types.
9362
3bce8237
SA
93632014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9364
9365 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9366 (evaluate_subexp_standard): Pass noside argument.
9367 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9368 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9369 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9370 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9371 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9372
92b09522
SA
93732014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9374
9375 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9376 points to a constant blob.
9377
e1969afb
SA
93782014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9379
9380 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9381 property and store it as the high bound and flag the range accordingly.
9382 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9383 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9384 * gdbtypes.h (enum range_flags): New enum.
9385 (struct range_bounds): Add flags member.
9386
b86138fb
SA
93872014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9388
9389 * c-typeprint.c (c_type_print_varspec_suffix): Added
9390 check for not yet resolved high bound. If unresolved, print
9391 "variable length" string to the console instead of random
9392 length.
9393
bcd629a4
SA
93942014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9395
9396 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9397 (ada_template_to_fixed_record_type_1): Likewise.
9398 (ada_to_fixed_type_1): Likewise.
9399 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9400 (cp_print_value): Likewise.
9401 * d-valprint.c (dynamic_array_type): Likewise.
9402 * eval.c (evaluate_subexp_with_coercion): Likewise.
9403 * findvar.c (address_of_variable): Likewise.
9404 * jv-valprint.c (java_value_print): Likewise.
9405 * valops.c (value_ind): Likewise.
9406 * value.c (coerce_ref): Likewise.
9407
04b19544
SA
94082014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9409
9410 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9411 value and retrieve the dynamic type size.
9412
26cb189f
SA
94132014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9414
9415 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9416 passed to sizeof is dynamic evaluate the argument to compute the length.
9417
37c1ab67
SA
94182014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9419
9420 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9421 (dwarf2_evaluate_property): New function.
9422 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9423 * dwarf2read.c (attr_to_dynamic_prop): New function.
9424 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9425 attribute.
9426 * gdbtypes.c: Include dwarf2loc.h.
9427 (is_dynamic_type): New function.
9428 (resolve_dynamic_type): New function.
9429 (resolve_dynamic_bounds): New function.
9430 (get_type_length): New function.
9431 (check_typedef): Use get_type_length to compute type length.
9432 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9433 (TYPE_LOW_BOUND_KIND): New macro.
9434 (is_dynamic_type): New function prototype.
9435 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9436 to resolve dynamic properties of the type. Update comment.
9437 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9438
729efb13
SA
94392014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9440
9441 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9442 declaring high/low bounds and change uses accordingly. Call
9443 create_range_type instead of create_static_range_type.
9444 * gdbtypes.c (create_range_type): New function.
9445 (create_range_type): Convert bounds into struct bound_prop and pass
9446 them to create_range_type.
9447 * gdbtypes.h (struct bound_prop): New struct.
9448 (create_range_type): New function prototype.
9449 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9450 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9451 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9452 part of the bound.
9453 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9454
0c9c3474
SA
94552014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9456
9457 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9458 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9459 * ada-lang.c: All uses of create_range_type updated.
9460 * coffread.c: All uses of create_range_type updated.
9461 * dwarf2read.c: All uses of create_range_type updated.
9462 * f-exp.y: All uses of create_range_type updated.
9463 * m2-valprint.c: All uses of create_range_type updated.
9464 * mdebugread.c: All uses of create_range_type updated.
9465 * stabsread.c: All uses of create_range_type updated.
9466 * valops.c: All uses of create_range_type updated.
9467 * valprint.c: All uses of create_range_type updated.
9468
9d497a19
PA
94692014-04-10 Pedro Alves <palves@redhat.com>
9470
9471 * breakpoint.c (single_step_breakpoints)
9472 (single_step_gdbarch): Move up in the file.
9473 (one_breakpoint_xfer_memory): New function, factored out from ...
9474 (breakpoint_xfer_memory): ... here. Also process single-step
9475 breakpoints.
9476
15a9128a
TG
94772014-04-09 Tristan Gingold <gingold@adacore.com>
9478
9479 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9480 comments.
9481 (darwin_decode_exception_message): Free port only after use.
9482
9c97a070
PL
94832014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9484
9485 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9486 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9487 when setting the size of call_length.
9488
7af389b8
SC
94892014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9490
9491 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9492 dereference TYPE_CODE_REF values.
9493
86ad98c3
JB
94942014-04-07 Joel Brobecker <brobecker@adacore.com>
9495
9496 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9497 end of warning message.
9498
b0aeadb3
DE
94992014-04-03 Doug Evans <dje@google.com>
9500
9501 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9502 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9503
5979d6b6
AM
95042014-04-02 Alan Modra <amodra@gmail.com>
9505
9506 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9507 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9508 (struct symbol_file_add_from_memory_args): Add size field.
9509 (find_vdso_size): New function.
9510 (add_vsyscall_page): Attempt to find vdso size.
9511
0d60c288
DE
95122014-04-01 Doug Evans <dje@google.com>
9513
9514 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9515
a41f2563
TG
95162014-04-01 Tristan Gingold <gingold@adacore.com>
9517
9518 * darwin-nat.c (darwin_encode_reply): Add prototype.
9519 (darwin_decode_exception_message): Reply to unknown inferiors.
9520 (darwin_decode_message): Handle message by id. Ignore message
9521 to unknown inferior.
9522 (darwin_wait): Discard unknown messages, add debug trace.
9523
11a865c8
DE
95242014-03-31 Doug Evans <dje@google.com>
9525
9526 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9527 comp_dir_string.
9528
770e7fc7
DE
95292014-03-31 Doug Evans <dje@google.com>
9530
9531 New option "set print symbol-loading".
9532 * NEWS: Mention it.
9533 * solib.c (solib_read_symbols): Only print symbol loading messages
9534 if requested.
9535 (solib_add): If symbol loading is in "brief" mode, notify user
9536 symbols are being loaded.
9537 (reload_shared_libraries_1): Ditto.
9538 * symfile.c (print_symbol_loading_off): New static global.
9539 (print_symbol_loading_brief): New static global.
9540 (print_symbol_loading_full): New static global.
9541 (print_symbol_loading_enums): New static global.
9542 (print_symbol_loading): New static global.
9543 (print_symbol_loading_p): New function.
9544 (symbol_file_add_with_addrs): Only print symbol loading messages
9545 if requested.
9546 (_initialize_symfile): Register "print symbol-loading" set/show
9547 command.
9548 * symfile.h (print_symbol_loading_p): Declare.
9549
c32c64b7
DE
95502014-03-30 Doug Evans <xdje42@gmail.com>
9551
9552 * infrun.c (set_last_target_status): New function.
9553 (handle_inferior_event): Call it.
9554
7c0bc051
DE
95552014-03-30 Doug Evans <xdje42@gmail.com>
9556
9557 * inferior.h (enum stop_kind): Improve comment.
9558
8776cfe9
JB
95592014-03-28 Joel Brobecker <brobecker@adacore.com>
9560
9561 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9562 a reference, strip the reference layer before calling
9563 the lang_ops value_has_mutated callback.
9564
410a0ff2
SDJ
95652014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9566
9567 Remove some globals from our parser.
9568 * language.c (unk_lang_parser): Add "struct parser_state"
9569 argument.
9570 * language.h (struct language_defn) <la_parser>: Likewise.
9571 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9572 (initialize_expout): Add "struct parser_state" argument.
9573 Rewrite function to use the parser state.
9574 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9575 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9576 write_exp_elt_longcst, write_exp_elt_dblcst,
9577 write_exp_elt_decfloatcst, write_exp_elt_type,
9578 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9579 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9580 write_dollar_variable): Likewise.
9581 (parse_exp_in_context_1): Use parser state.
9582 (insert_type_address_space): Add "struct parser_state" argument.
9583 Use parser state.
9584 (increase_expout_size): New function.
9585 * parser-defs.h: Forward declare "struct language_defn" and
9586 "struct parser_state".
9587 (expout, expout_size, expout_ptr): Remove extern declarations.
9588 (parse_gdbarch, parse_language): Rewrite macro declarations to
9589 accept the parser state.
9590 (struct parser_state): New struct.
9591 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9592 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9593 write_exp_elt_decfloatcst, write_exp_elt_type,
9594 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9595 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9596 write_exp_msymbol, write_dollar_variable,
9597 mark_struct_expression, insert_type_address_space): Add "struct
9598 parser_state" argument.
9599 (increase_expout_size): New function.
9600 * utils.c (do_clear_parser_state): New function.
9601 (make_cleanup_clear_parser_state): Likewise.
9602 * utils.h (make_cleanup_clear_parser_state): New function
9603 prototype.
9604 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9605 Update calls to write_exp* in order to pass the parser state.
9606 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9607 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9608 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9609 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9610 * stap-probe.c (stap_parse_register_operand): Likewise.
9611 (stap_parse_single_operand): Likewise.
9612 (stap_parse_argument_1): Likewise.
9613 (stap_parse_argument): Use parser state.
9614 * stap-probe.h: Include "parser-defs.h".
9615 (struct stap_parse_info) <pstate>: New field.
9616 * c-exp.y (parse_type): Rewrite to use parser state.
9617 (yyparse): Redefine to c_parse_internal.
9618 (pstate): New global variable.
9619 (parse_number): Add "struct parser_state" argument.
9620 (write_destructor_name): Likewise.
9621 (type_exp): Update calls to write_exp* and similars in order to
9622 use parser state.
9623 (exp1, exp, variable, qualified_name, space_identifier,
9624 typename, typebase): Likewise.
9625 (write_destructor_name, parse_number, lex_one_token,
9626 classify_name, classify_inner_name, c_parse): Add "struct
9627 parser_state" argument. Update function to use parser state.
9628 * c-lang.h: Forward declare "struct parser_state".
9629 (c_parse): Add "struct parser_state" argument.
9630 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9631 (yyparse): Redefine macro to ada_parse_internal.
9632 (pstate): New variable.
9633 (write_int, write_object_renaming, write_var_or_type,
9634 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9635 type_int, type_long, type_long_long, type_float, type_double,
9636 type_long_double, type_char, type_boolean, type_system_address):
9637 Add "struct parser_state" argument.
9638 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9639 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9640 var_or_type, aggregate, aggregate_component_list,
9641 positional_list, others, component_group,
9642 component_associations): Update calls to write_exp* and similar
9643 functions in order to use parser state.
9644 (ada_parse, write_var_from_sym, write_int,
9645 write_exp_op_with_string, write_object_renaming,
9646 find_primitive_type, write_selectors, write_ambiguous_var,
9647 write_var_or_type, write_name_assoc, type_int, type_long,
9648 type_long_long, type_float, type_double, type_long_double,
9649 type_char, type_boolean, type_system_address): Add "struct
9650 parser_state" argument. Adjust function to use parser state.
9651 * ada-lang.c (parse): Likewise.
9652 * ada-lang.h: Forward declare "struct parser_state".
9653 (ada_parse): Add "struct parser_state" argument.
9654 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9655 calls to both functions.
9656 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9657 parser state.
9658 (yyparse): Redefine macro to f_parse_internal.
9659 (pstate): New variable.
9660 (parse_number): Add "struct parser_state" argument.
9661 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9662 and similars in order to use parser state.
9663 (parse_number): Adjust code to use parser state.
9664 (yylex): Likewise.
9665 (f_parse): New function.
9666 * f-lang.h: Forward declare "struct parser_state".
9667 (f_parse): Add "struct parser_state" argument.
9668 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9669 parser state.
9670 (yyparse): Redefine macro for java_parse_internal.
9671 (pstate): New variable.
9672 (push_expression_name, push_expression_name, insert_exp): Add
9673 "struct parser_state" argument.
9674 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9675 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9676 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9677 PostIncrementExpression, PostDecrementExpression,
9678 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9679 UnaryExpressionNotPlusMinus, CastExpression,
9680 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9681 RelationalExpression, EqualityExpression, AndExpression,
9682 ExclusiveOrExpression, InclusiveOrExpression,
9683 ConditionalAndExpression, ConditionalOrExpression,
9684 ConditionalExpression, Assignment, LeftHandSide): Update
9685 calls to write_exp* and similars in order to use parser state.
9686 (parse_number): Ajust code to use parser state.
9687 (yylex): Likewise.
9688 (java_parse): New function.
9689 (push_variable): Add "struct parser_state" argument. Adjust
9690 code to user parser state.
9691 (push_fieldnames, push_qualified_expression_name,
9692 push_expression_name, insert_exp): Likewise.
9693 * jv-lang.h: Forward declare "struct parser_state".
9694 (java_parse): Add "struct parser_state" argument.
9695 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9696 parser state.
9697 (yyparse): Redefine macro to m2_parse_internal.
9698 (pstate): New variable.
9699 (type_exp, exp, fblock, variable, type): Update calls to
9700 write_exp* and similars to use parser state.
9701 (yylex): Likewise.
9702 (m2_parse): New function.
9703 * m2-lang.h: Forward declare "struct parser_state".
9704 (m2_parse): Add "struct parser_state" argument.
9705 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9706 * objc-lang.h: Forward declare "struct parser_state".
9707 (end_msglist): Add "struct parser_state" argument.
9708 * p-exp.y (parse_type): Rewrite macro to use parser state.
9709 (yyparse): Redefine macro to pascal_parse_internal.
9710 (pstate): New variable.
9711 (parse_number): Add "struct parser_state" argument.
9712 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9713 write_exp* and similars in order to use parser state.
9714 (parse_number, yylex): Adjust code to use parser state.
9715 (pascal_parse): New function.
9716 * p-lang.h: Forward declare "struct parser_state".
9717 (pascal_parse): Add "struct parser_state" argument.
9718 * go-exp.y (parse_type): Rewrite macro to use parser state.
9719 (yyparse): Redefine macro to go_parse_internal.
9720 (pstate): New variable.
9721 (parse_number): Add "struct parser_state" argument.
9722 (type_exp, exp1, exp, variable, type): Update calls to
9723 write_exp* and similars in order to use parser state.
9724 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9725 to use parser state.
9726 (go_parse): Likewise.
9727 * go-lang.h: Forward declare "struct parser_state".
9728 (go_parse): Add "struct parser_state" argument.
9729
342587c4
DE
97302014-03-27 Doug Evans <dje@google.com>
9731
9732 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9733
33e80786
DE
97342014-03-27 Doug Evans <dje@google.com>
9735
9736 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9737 Remove argument abbrev_section. All callers updated.
9738
1dbab08b
DE
97392014-03-27 Doug Evans <dje@google.com>
9740
9741 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9742 addr_base, ranges_base.
9743
318d3177
KS
97442014-03-26 Keith Seitz <keiths@redhat.com>
9745
9746 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9747 types, not VAR_DOMAIN.
9748
1e54db15
SL
97492014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9750
9751 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9752 "ra" registers.
9753 * features/nios2-linux.c: Regenerated.
9754 * features/nios2.c: Regenerated.
9755
d3839ede
PA
97562014-03-25 Pedro Alves <palves@redhat.com>
9757
9758 * cli/cli-script.c (script_from_file): Force the interpreter to
9759 sync mode.
9760
7588d2ec
PL
97612014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9762
9763 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9764 small stack allocation.
9765
a6290449
TG
97662014-03-24 Tristan Gingold <gingold@adacore.com>
9767
9768 * darwin-nat.c (exc_server): Remove unused prototype.
9769 (darwin_dump_message): Correctly display data on x86_64.
9770 (darwin_encode_reply): Fix style.
9771 Add comments and fix indentation.
9772
31ae9d24 97732014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
9774
9775 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9776
6339bfc4
DE
97772014-03-22 Doug Evans <xdje42@gmail.com>
9778
9779 * infcmd.c: Whitespace fixes.
9780 (interrupt_command): Merge two function comments into one.
9781
0a07590b
DE
97822014-03-22 Doug Evans <xdje42@gmail.com>
9783
9784 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9785 All uses updated.
9786
b55fbac4
YQ
97872014-03-22 Yao Qi <yao@codesourcery.com>
9788
9789 * remote.c (target_read_live_memory): Remove.
9790 (memory_xfer_live_readonly_partial): Rename it to
9791 remote_xfer_live_readonly_partial. Remove argument 'object'.
9792 All callers updated. Call remote_read_bytes_1
9793 instead of target_read_live_memory.
9794 * tracepoint.c (set_traceframe_number): Remove.
9795 (make_cleanup_restore_traceframe_number): Likewise .
9796 * tracepoint.h (set_traceframe_number): Remove declaration.
9797 (make_cleanup_restore_traceframe_number): Likewise.
9798
9217e74e
YQ
97992014-03-22 Yao Qi <yao@codesourcery.com>
9800
9801 * remote.c (remote_read_bytes): Move code on reading from the
9802 remote stub to ...
9803 (remote_read_bytes_1): ... here. New function.
9804
8acf9577
YQ
98052014-03-22 Yao Qi <yao@codesourcery.com>
9806
9807 * ctf.c (ctf_xfer_partial): Check the return value of
9808 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9809 return TARGET_XFER_UNAVAILABLE.
9810 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9811 * target.c (target_read_live_memory): Move it to remote.c.
9812 (memory_xfer_live_readonly_partial): Likewise.
9813 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9814 * remote.c (target_read_live_memory): Moved from target.c.
9815 (memory_xfer_live_readonly_partial): Likewise.
9816 (remote_read_bytes): Factored out from
9817 memory_xfer_partial_1.
9818
feef67ab
DE
98192014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9820
9821 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9822 NULL pointer.
9823
b65dc60b
PA
98242014-03-21 Pedro Alves <palves@redhat.com>
9825
9826 * infrun.c (normal_stop): Extend comment.
9827
b4ab256d
HZ
98282014-03-21 Hui Zhu <hui@codesourcery.com>
9829 Pedro Alves <palves@redhat.com>
9830
9831 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9832 static buffer.
9833 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9834 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9835 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9836
deba7593
MR
98372014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9838
9839 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9840 `z' formatted output modifier.
9841
1bff71c3
SDJ
98422014-03-20 Tom Tromey <tromey@redhat.com>
9843 Sergio Durigan Junior <sergiodj@redhat.com>
9844
9845 * probe.c (parse_probes): Turn assert into an ordinary error.
9846 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9847 exceptions when parsing probes. Rearrange the code for clarity.
9848
90e28950
TT
98492014-03-20 Tom Tromey <tromey@redhat.com>
9850
9851 PR gdb/14135
9852 * top.c (execute_command): Only dispatch events if the command
9853 started the target.
9854
beb460e8
PA
98552014-03-20 Tom Tromey <tromey@redhat.com>
9856
9857 PR cli/15718
9858 * infcall.c: Include event-top.h.
9859 (run_inferior_call): Call async_disable_stdin if needed.
9860
99619bea
PA
98612014-03-20 Pedro Alves <palves@redhat.com>
9862
9863 * infrun.c (prepare_to_proceed): Delete.
9864 (thread_still_needs_step_over): New function.
9865 (find_thread_needs_step_over): New function.
9866 (proceed): If the current thread needs a step-over, set its
9867 steping_over_breakpoint flag. Adjust to use
9868 find_thread_needs_step_over instead of prepare_to_proceed.
9869 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9870 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9871 breakpoint.
9872 (switch_back_to_stepped_thread): Step over breakpoints of all
9873 threads not the stepping thread, before switching back to the
9874 stepping thread.
9875
2adfaa28
PA
98762014-03-20 Pedro Alves <palves@redhat.com>
9877
9878 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9879 extern.
9880 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9881 * infrun.c (saved_singlestep_ptid)
9882 (stepping_past_singlestep_breakpoint): Delete.
9883 (resume): Remove stepping_past_singlestep_breakpoint handling.
9884 (proceed): Store the prev_pc of the stepping thread too.
9885 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9886 singlestep_pc.
9887 (enum infwait_states): Delete infwait_thread_hop_state.
9888 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9889 field.
9890 (handle_inferior_event): Adjust.
9891 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9892 handling and the thread-hop code. Before removing single-step
9893 breakpoints, check whether the thread hit a single-step breakpoint
9894 of another thread. If it did, the trap is not a random signal.
9895 (switch_back_to_stepped_thread): If the event thread hit a
9896 single-step breakpoint, unblock it before switching to the
9897 stepping thread. Handle the case of the stepped thread having
9898 advanced already.
9899 (keep_going): Handle the case of the current thread moving past a
9900 single-step breakpoint.
9901
31e77af2
PA
99022014-03-20 Pedro Alves <palves@redhat.com>
9903
9904 PR breakpoints/7143
9905 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9906 are being stepped over.
9907 (breakpoint_address_match): Make extern.
9908 * breakpoint.h (breakpoint_address_match): New declaration.
9909 * inferior.h (stepping_past_instruction_at): New declaration.
9910 * infrun.c (struct step_over_info): New type.
9911 (step_over_info): New global.
9912 (set_step_over_info, clear_step_over_info)
9913 (stepping_past_instruction_at): New functions.
9914 (handle_inferior_event): Clear the step-over info when
9915 trap_expected is cleared.
9916 (resume): Remove now stale comment.
9917 (clear_proceed_status): Clear step-over info.
9918 (proceed): Adjust step-over handling to set or clear the step-over
9919 info instead of removing all breakpoints.
9920 (handle_signal_stop): When setting up a thread-hop, don't remove
9921 breakpoints here.
9922 (stop_stepping): Clear step-over info.
9923 (keep_going): Adjust step-over handling to set or clear step-over
9924 info and then always inserting breakpoints, instead of removing
9925 all breakpoints when stepping over one.
9926
b9f437de
PA
99272014-03-20 Pedro Alves <palves@redhat.com>
9928
9929 * infrun.c (previous_inferior_ptid): Adjust comment.
9930 (deferred_step_ptid): Delete.
9931 (infrun_thread_ptid_changed, prepare_to_proceed)
9932 (init_wait_for_inferior): Adjust.
9933 (handle_signal_stop): Delete deferred_step_ptid handling.
9934
06c868a8
JK
99352014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9936
9937 PR gdb/15358
9938 * defs.h (sync_quit_force_run): New declaration.
9939 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9940 * event-top.c (async_sigterm_handler): New declaration.
9941 (async_sigterm_token): New variable.
9942 (async_init_signals): Create also async_sigterm_token.
9943 (async_sigterm_handler): New function.
9944 (sync_quit_force_run): New variable.
9945 (handle_sigterm): Replace quit_force call by other calls.
9946 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9947
dea80df0
MR
99482014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9949
9950 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9951 offset into SPE pseudo registers.
9952
0c7e1a46
PA
99532014-03-18 Pedro Alves <palves@redhat.com>
9954
9955 PR gdb/13860
9956 * inferior.h (print_stop_event): Declare.
9957 * infrun.c (print_stop_event): New, factored out from ...
9958 (normal_stop): ... this.
9959 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9960 of bpstat_print/print_stack_frame.
9961
9c1fcd01
TT
99622014-03-17 Tom Tromey <tromey@redhat.com>
9963
9964 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9965
11aa919a
PMR
99662014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9967
9968 * ada-lang.c (decode_constrained_packed_array): Perform a
9969 minimal coercion for reference with coerce_ref instead of
9970 ada_coerce_ref.
9971
d4ccb5e0
TG
99722014-03-17 Tristan Gingold <gingold@adacore.com>
9973
9974 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9975 (darwin_solib_create_inferior_hook): Emit a warning if version
9976 is unhandled.
9977
49840f2a
UW
99782014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9979
9980 * python/py-value.c (get_field_flag): Cast flag_name argument to
9981 PyObject_GetAttrString to support Python 2.4.
9982
ed4123e5
JK
99832014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9984
9985 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9986 (Global Maintainers): Remove Jan Kratochvil.
9987
d6b64346
PA
99882014-03-14 Pedro Alves <palves@redhat.com>
9989
9990 * inferior.h (terminal_ours_for_output): Rename to ...
9991 (child_terminal_ours_for_output): ... this.
9992 (terminal_save_ours): Rename to ...
9993 (child_terminal_save_ours): ... this.
9994 (terminal_ours): Rename to ...
9995 (child_terminal_ours): ... this.
9996 (terminal_inferior): Rename to ...
9997 (child_terminal_inferior): ... this.
9998 (terminal_init_inferior): Rename to ...
9999 (child_terminal_init_inferior): ... this.
10000 (terminal_init_inferior_with_pgrp): Rename to ...
10001 (child_terminal_init_inferior_with_pgrp): ... this.
10002 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
10003 (child_terminal_init_with_pgrp): ... this.
10004 (terminal_save_ours): Rename to ...
10005 (child_terminal_save_ours): ... this.
10006 (terminal_init_inferior): Rename to ...
10007 (child_terminal_init): ... this. Adjust.
10008 (terminal_inferior): Rename to ...
10009 (child_terminal_inferior): ... this.
10010 (terminal_ours_for_output): Rename to ...
10011 (child_terminal_ours_for_output): ... this. Adjust.
10012 (terminal_ours): Rename to ...
10013 (child_terminal_ours): ... this.
10014 (terminal_ours_1): Rename to ...
10015 (child_terminal_ours_1): ... this. Adjust.
10016 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
10017 * windows-nat.c (do_initial_windows_stuff): Adjust.
10018 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
10019 (gnu_terminal_init): ... this. Adjust.
10020 (gnu_target): Adjust.
10021 * inf-child.c (inf_child_target): Adjust.
10022
5a1e8c7a
DE
100232014-03-13 Doug Evans <xdje42@gmail.com>
10024
10025 PR guile/16612
10026 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
10027 new eq?-hashtab.
10028
350e1a76
DE
100292014-03-13 Doug Evans <xdje42@gmail.com>
10030
10031 * value.c (record_latest_value): Call release_value_or_incref
10032 instead of release_value.
10033
a69900ae
PA
100342014-03-13 Pedro Alves <palves@redhat.com>
10035
10036 * procfs.c (procfs_target): Don't override to_shortname,
10037 to_longname or to_doc.
10038
5db9f0bd
PA
100392014-03-13 Pedro Alves <palves@redhat.com>
10040
10041 * inf-child.c (inf_child_open, inf_child_target): Don't mention
10042 Unix in user visible strings.
10043
5e3a2c38
SS
100442014-03-12 Stan Shebs <stan@codesourcery.com>
10045
10046 * gdbtypes.h: Annotate comments for Doxygen, add a page
10047 block comment with some general info.
10048
8bc2fe48
PA
100492014-03-12 Pedro Alves <palves@redhat.com>
10050
10051 * infcmd.c (prepare_execution_command): New function, factored out
10052 from several execution commands.
10053 (run_command_1, continue_command, step_1, jump_command)
10054 (signal_command, until_command, advance_command, finish_command)
10055 (attach_command): Use prepare_execution_command.
10056
638c5f49
OJ
100572014-03-12 Omair Javaid <omair.javaid@linaro.org>
10058
10059 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
10060 (MAX_BPTS): Define.
10061 (MAX_WPTS): Define.
10062 (struct arm_linux_thread_points): Removed.
10063 (struct arm_linux_process_info): New.
10064 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
10065 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
10066 (arm_linux_find_breakpoints_by_tid): Removed.
10067 (struct arch_lwp_info): New.
10068 (arm_linux_find_process_pid): New functions.
10069 (arm_linux_add_process): New functions.
10070 (arm_linux_process_info_get): New functions.
10071 (arm_linux_forget_process): New function.
10072 (arm_linux_get_debug_reg_state): New function.
10073 (struct update_registers_data): New.
10074 (update_registers_callback): New function.
10075 (arm_linux_insert_hw_breakpoint1): Updated.
10076 (arm_linux_remove_hw_breakpoint1): Updated.
10077 (arm_linux_insert_hw_breakpoint): Updated.
10078 (arm_linux_remove_hw_breakpoint): Updated.
10079 (arm_linux_insert_watchpoint): Updated.
10080 (arm_linux_remove_watchpoint): Updated.
10081 (arm_linux_new_thread): Updated.
10082 (arm_linux_prepare_to_resume): New function.
10083 (arm_linux_new_fork): New function.
10084 (_initialize_arm_linux_nat): Updated.
10085
6d03af93
PA
100862014-03-12 Pedro Alves <palves@redhat.com>
10087
10088 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
10089
b3ccfe11
TT
100902014-03-12 Tom Tromey <tromey@redhat.com>
10091
10092 * inf-child.c (return_zero): New function.
10093 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
10094 * aix-thread.c (aix_thread_inferior_created): New function.
10095 (aix_thread_attach): Remove.
10096 (init_aix_thread_ops): Don't set to_attach.
10097 (_initialize_aix_thread): Register inferior_created observer.
10098 * corelow.c (init_core_ops): Don't set to_attach or
10099 to_create_inferior.
10100 * exec.c (init_exec_ops): Don't set to_attach or
10101 to_create_inferior.
10102 * infcmd.c (run_command_1): Use find_run_target. Make direct
10103 target calls.
10104 (attach_command): Use find_attach_target. Make direct target
10105 calls.
10106 * record-btrace.c (init_record_btrace_ops): Don't set
10107 to_create_inferior.
10108 * record-full.c (record_full_can_async_p, record_full_is_async_p):
10109 Remove.
10110 (init_record_full_ops, init_record_full_core_ops): Update. Don't
10111 set to_create_inferior.
10112 * target.c (complete_target_initialization): Add assertion.
10113 (target_create_inferior): Remove.
10114 (find_default_attach, find_default_create_inferior): Remove.
10115 (find_attach_target, find_run_target): New functions.
10116 (find_default_is_async_p, find_default_can_async_p)
10117 (target_supports_non_stop, target_attach): Remove.
10118 (init_dummy_target): Don't set to_create_inferior or
10119 to_supports_non_stop.
10120 * target.h (struct target_ops) <to_attach>: Add comment. Remove
10121 TARGET_DEFAULT_FUNC.
10122 <to_create_inferior>: Add comment.
10123 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10124 TARGET_DEFAULT_RETURN.
10125 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10126 (find_attach_target, find_run_target): Declare.
10127 (target_create_inferior): Remove.
10128 (target_has_execution_1): Update comment.
10129 (target_supports_non_stop): Remove.
10130 * target-delegates.c: Rebuild.
10131
91f83b02
PA
101322014-03-12 Pedro Alves <palves@redhat.com>
10133
10134 * inf-child.h: Update comment to not mention Unix.
10135
f1aea813
PA
101362014-03-12 Pedro Alves <palves@redhat.com>
10137
10138 * inf-child.c: Update top comment to not mention Unix. Add
10139 generic comment describing how this target is meant to be used.
10140 (inf_child_post_attach, inf_child_post_startup_inferior)
10141 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10142 Unix in comment.
10143
ee8e9165
PA
101442014-03-12 Pedro Alves <palves@redhat.com>
10145
10146 * nto-procfs.c: Include inf-child.h.
10147 (procfs_ops): Delete global.
10148 (procfs_can_run): Delete method.
10149 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10150 target pointer instead of referencing procfs_ops.
10151 (procfs_prepare_to_store): Delete.
10152 (init_procfs_ops): Delete function.
10153 (procfs_target): New function, based on init_procfs_ops, but
10154 inherit inf_child_target.
10155 (_initialize_procfs): Use procfs_target.
10156
51a9c8c5
PA
101572014-03-12 Pedro Alves <palves@redhat.com>
10158
10159 * windows-nat.c: Include inf-child.h.
10160 (windows_ops): Delete global.
10161 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10162 methods.
10163 (init_windows_ops): Delete function.
10164 (windows_target): New function, based on init_windows_ops, but
10165 inherit inf_child_target.
10166 (_initialize_windows_nat): Use windows_target. Install x86
10167 specific target methods here.
10168
c1966e26
DE
101692014-03-10 Doug Evans <xdje42@gmail.com>
10170
10171 * guile/guile.c (call_initialize_gdb_module): New function.
10172 (initialize_guile): Replace call to scm_init_guile with call to
10173 scm_with_guile.
10174
023db19c
JB
101752014-03-10 Joel Brobecker <brobecker@adacore.com>
10176
10177 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10178 in call to TYPE_CODE macro.
10179
5ec18f2b
JG
101802014-03-10 Jerome Guitton <guitton@adacore.com>
10181
8668be63
JB
10182 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10183 Resolve tagged types to full view.
5ec18f2b 10184
7d03f2eb
HZ
101852014-03-10 Hui Zhu <hui@codesourcery.com>
10186
10187 * target.h (target_insert_breakpoint): Remove "hardware" from its
10188 comments.
10189
c5164cbc
DE
101902014-03-07 Doug Evans <dje@google.com>
10191
10192 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10193
c4a3fee2
DE
101942014-03-07 Doug Evans <dje@google.com>
10195
10196 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10197 Remove unused local comp_dir_attr. Assert exactly one of
10198 stub_comp_unit_die, stub_comp_dir is non-NULL.
10199
3156469c
JB
102002014-03-07 Joel Brobecker <brobecker@adacore.com>
10201
10202 * target.h (complete_target_initialization, add_target):
10203 Add comment.
10204
c1a7b7c6
PA
102052014-03-07 Pedro Alves <palves@redhat.com>
10206
10207 * go32-nat.c: Include inf-child.h.
10208 (go32_ops): Delete global.
10209 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10210 Delete methods.
10211 (go32_create_inferior): Push the passed in target pointer instead
10212 of referencing go32_ops.
10213 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10214 (go32_target): New function, based on init_go32_ops, but inherit
10215 inf_child_target.
10216 (_initialize_go32_nat): Use go32_target. Move parts of
10217 init_go32_ops here.
10218
d3c1a85f
JB
102192014-03-06 Joel Brobecker <brobecker@adacore.com>
10220
10221 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10222 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10223 SYMBOL_VALUE_ADDRESS.
10224 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10225
5fa1d40e
YQ
102262014-03-06 Yao Qi <yao@codesourcery.com>
10227
10228 * breakpoint.c (get_tracepoint_by_number): Remove argument
10229 optional_p. All callers updated. Adjust comments. Update
10230 output message.
10231 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10232
0c13193f
YQ
102332014-03-06 Yao Qi <yao@codesourcery.com>
10234
10235 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10236 early if get_number returns zero. Use 'p' instead of 'args'.
10237
2217da06
YQ
102382014-03-06 Yao Qi <yao@codesourcery.com>
10239
10240 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10241 message.
10242
cc3da688
YQ
102432014-03-06 Yao Qi <yao@codesourcery.com>
10244
10245 PR breakpoints/16508
10246 * tracepoint.c (check_trace_running): New function.
10247 (trace_find_command): Move code to check_trace_running and
10248 call check_trace_running.
10249 (trace_find_pc_command): Likewise.
10250 (trace_find_tracepoint_command): Likewise.
10251 (trace_find_line_command): Likewise.
10252 (trace_find_range_command): Likewise.
10253 * tracepoint.h (check_trace_running): Likewise.
10254 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10255
6a5f844b
YQ
102562014-03-06 Yao Qi <yao@codesourcery.com>
10257
10258 * target.h (struct target_ops) <to_traceframe_info>: Use
10259 TARGET_DEFAULT_NORETURN (tcomplain ()).
10260 * target-delegates.c: Regenerated.
10261
0f26cec1
PA
102622014-03-05 Pedro Alves <palves@redhat.com>
10263
10264 PR gdb/16575
10265 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10266 void. Update comment.
10267 (dcache_xfer_memory): Delete.
10268 (dcache_read_memory_partial): New, based on the read bits of
10269 dcache_xfer_memory.
10270 (dcache_update): Add status parameter. Use ULONGEST for len, and
10271 adjust. Discard cache lines if the reason for the update was
10272 error.
10273 * dcache.h (dcache_xfer_memory): Delete declaration.
10274 (dcache_read_memory_partial): New declaration.
10275 (dcache_update): Update prototype.
10276 * target.c (raw_memory_xfer_partial): Update the dcache here.
10277 (memory_xfer_partial_1): Don't handle dcache writes here.
10278
b2b255bd
MF
102792014-03-05 Mike Frysinger <vapier@gentoo.org>
10280
10281 * remote-sim.c (gdbsim_load): Add const to prog.
10282
5d9cf8a4
TT
102832014-03-03 Tom Tromey <tromey@redhat.com>
10284
10285 * elfread.c (probe_key): Change to bfd_data.
10286 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10287 now per-BFD, not per-objfile.
10288 * stap-probe.c (stap_probe_destroy): Update comment.
10289 (handle_stap_probe): Allocate on the per-BFD obstack.
10290
729662a5
TT
102912014-03-03 Tom Tromey <tromey@redhat.com>
10292
10293 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10294 * breakpoint.c (create_longjmp_master_breakpoint): Use
10295 get_probe_address.
10296 (add_location_to_breakpoint, bkpt_probe_insert_location)
10297 (bkpt_probe_remove_location): Update.
10298 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10299 * elfread.c (elf_symfile_relocate_probe): Remove.
10300 (elf_probe_fns): Update.
10301 (insert_exception_resume_breakpoint): Change type of "probe"
10302 parameter to bound_probe.
10303 (check_exception_resume): Update.
10304 * objfiles.c (objfile_relocate1): Don't relocate probes.
10305 * probe.c (bound_probe_s): New typedef.
10306 (parse_probes): Use get_probe_address. Set sal's objfile.
10307 (find_probe_by_pc): Return a bound_probe.
10308 (collect_probes): Return a VEC(bound_probe_s).
10309 (compare_probes): Update.
10310 (gen_ui_out_table_header_info): Change type of "probes"
10311 parameter. Update.
10312 (info_probes_for_ops): Update.
10313 (get_probe_address): New function.
10314 (probe_safe_evaluate_at_pc): Update.
10315 * probe.h (struct probe_ops) <get_probe_address>: New field.
10316 <set_semaphore, clear_semaphore>: Add objfile parameter.
10317 (struct probe) <objfile>: Remove field.
10318 <arch>: New field.
10319 <address>: Update comment.
10320 (struct bound_probe): New.
10321 (find_probe_by_pc): Return a bound_probe.
10322 (get_probe_address): Declare.
10323 * solib-svr4.c (struct probe_and_action) <address>: New field.
10324 (hash_probe_and_action, equal_probe_and_action): Update.
10325 (register_solib_event_probe): Add address parameter.
10326 (solib_event_probe_at): Update.
10327 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10328 get_probe_address.
10329 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10330 (stap_get_probe_address): New function.
10331 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10332 (compile_probe_arg): Update.
10333 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10334 address.
10335 (handle_stap_probe): Don't relocate the probe.
10336 (stap_relocate): Remove.
10337 (stap_gen_info_probes_table_values): Update.
10338 (stap_probe_ops): Remove stap_relocate.
10339 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10340 (debug_sym_probe_fns): Update.
10341 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10342 * symtab.c (init_sal): Use memset.
10343 * symtab.h (struct symtab_and_line) <objfile>: New field.
10344 * tracepoint.c (start_tracing, stop_tracing): Update.
10345
ff887920
TT
103462014-03-03 Tom Tromey <tromey@redhat.com>
10347
10348 * probe.h (parse_probes, find_probe_by_pc)
10349 (find_probes_in_objfile): Fix comments.
10350
f0407826
DE
103512014-03-02 Doug Evans <xdje42@gmail.com>
10352
10353 * infrun.c (handle_signal_stop): Replace test for
10354 TARGET_WAITKIND_STOPPED with an assert.
10355
35e6a711
DE
103562014-03-02 Doug Evans <xdje42@gmail.com>
10357
10358 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10359
667f9d0b
DE
103602014-03-02 Doug Evans <xdje42@gmail.com>
10361
10362 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10363
dc92ace0
MK
103642014-03-01 Mark Kettenis <kettenis@gnu.org>
10365
10366 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10367
a900370f
MK
103682014-03-01 Mark Kettenis <kettenis@gnu.org>
10369
10370 * i386obsd-nat.c: Include "obsd-nat.h".
10371 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10372 add_target.
10373 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10374
b72a7981
MK
103752014-03-01 Mark Kettenis <kettenis@gnu.org>
10376
10377 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10378
96c70aba
MK
103792014-03-01 Mark Kettenis <kettenis@gnu.org>
10380
10381 * mips64obsd-nat.c: Include "obsd-nath".
10382 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10383 add_target
10384 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10385
874a80af
MK
103862014-03-01 Mark Kettenis <kettenis@gnu.org>
10387
8fd408f1
MK
10388 * amd64obsd-nat.c: Include "obsd-nat,h.
10389 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10390 add_target.
874a80af
MK
10391 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10392
9cf95373
SC
103932014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10394
10395 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10396 (find_overload_match): Update call to find_oload_champ.
10397 (find_oload_champ_namespace_loop): Likewise
10398
863e4da4
MK
103992014-02-28 Mark Kettenis <kettenis@gnu.org>
10400
025cac40
MK
10401 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10402
1ed586ce
MK
10403 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10404 * config/sparc/obsd64.mh: New file.
10405 * sparc64obsd-nat.c: New file.
10406
863e4da4
MK
10407 * obsd-nat.h: New file.
10408 * obsd-nat.c: New file.
10409 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10410 (ALLDEPFILES): Add obsd-nat.c.
10411
89de4da4
TT
104122014-02-28 Tom Tromey <tromey@redhat.com>
10413
10414 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10415 * cli-out.h (cli_ui_out_impl): Now const.
10416 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10417 * ui-out.c (struct ui_out) <impl>: Now const.
10418 (default_ui_out_impl): Now const.
10419 (ui_out_new): Make 'impl' parameter const.
10420 * ui-out.h (ui_out_new): Update.
10421
c725e7b6
MK
104222014-02-27 Mark Kettenis <kettenis@gnu.org>
10423
10424 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10425
670b46b3
MK
104262014-02-27 Mark Kettenis <kettenis@gnu.org>
10427
10428 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10429
c91550fc
JK
104302014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10431
10432 Additional PR 8882 fix.
10433 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10434
2fa0369e
PA
104352014-02-27 Pedro Alves <palves@redhat.com>
10436
10437 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10438 isn't set.
10439
d632a097
PA
104402014-02-27 Pedro Alves <palves@redhat.com>
10441
10442 PR 12702
10443 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10444 * nat/linux-waitpid.c: Include string.h.
10445 (status_to_str): Moved here and made extern.
10446 * nat/linux-waitpid.h (status_to_str): New declaration.
10447
2ebd5a35
HZ
104482014-02-27 Hui Zhu <hui@codesourcery.com>
10449
10450 PR 12702
10451 * infrun.c (ptid_match): Move ...
10452 * common/ptid.c (ptid_match): ... here.
10453 * inferior.h (ptid_match): Move ...
10454 * common/ptid.h (ptid_match): ... here.
10455
3cdd631f
MK
104562014-02-27 Mark Kettenis <kettenis@gnu.org>
10457
10458 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10459 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10460 gdb_target_obs.
10461
bee30a64
MK
104622014-02-27 Mark Kettenis <kettenis@gnu.org>
10463
10464 * obsd-tdep.c (obsd_auxv_parse): New function.
10465 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
10466
10467 * gdbarch.sh (auxv_parse): New.
10468 * gdbarch.h: Regenerated.
10469 * gdbarch.c: Regenerated.
10470 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10471
7a5a839f
LC
104722014-02-26 Ludovic Courtès <ludo@gnu.org>
10473
10474 * guile/scm-value.c (gdbscm_history_append_x): New function.
10475 (value_functions): Add it.
10476
31aa7e4e
JB
104772014-02-27 Joel Brobecker <brobecker@adacore.com>
10478
10479 * dwarf2read.c (attr_value_as_address): New function.
10480 (dwarf2_find_base_address, read_call_site_scope): Use
10481 attr_value_as_address in place of DW_ADDR.
10482 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10483 the low and high addresses. Slight rework of the handling
10484 of the high pc being a constant form, and limit it to
10485 DWARF verson 4 or higher.
10486 (dwarf2_record_block_ranges): Likewise.
10487 (read_partial_die): Likewise.
10488 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10489
9b333ba3
TT
104902014-02-26 Tom Tromey <tromey@redhat.com>
10491
10492 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10493
5f6cac40
TT
104942014-02-26 Tom Tromey <tromey@redhat.com>
10495
10496 * elfread.c (elf_read_minimal_symbols): Return early if
10497 minimal symbols have already been read. Add "ei" parameter.
10498 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10499 * minsyms.c (prim_record_minimal_symbol_full): Update.
10500 * objfiles.h (struct objstats) <n_minsyms>: Move...
10501 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10502 * symmisc.c (print_objfile_statistics): Update.
10503
2750ef27
TT
105042014-02-26 Tom Tromey <tromey@redhat.com>
10505
10506 * elfread.c (elf_read_minimal_symbols): New function, from
10507 elf_symfile_read.
10508 (elf_symfile_read): Call it.
10509
34643a32
TT
105102014-02-26 Tom Tromey <tromey@redhat.com>
10511
10512 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10513 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10514 (lookup_minimal_symbol_solib_trampoline)
10515 (lookup_minimal_symbol_by_pc_section_1)
10516 (lookup_minimal_symbol_and_objfile): Update.
10517 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10518 Don't allocate a minimal symbol if minsyms have already been read.
10519 (build_minimal_symbol_hash_tables): Update.
10520 (install_minimal_symbols): Do nothing if minsyms already read.
10521 Use the per-BFD obstack.
10522 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10523 * objfiles.c (allocate_objfile): Call
10524 terminate_minimal_symbol_table later.
10525 (have_minimal_symbols): Update.
10526 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10527 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10528 Move from struct objfile.
10529 <minsyms_read>: New field.
10530 (struct objfile) <msymbols, minimal_symbol_count,
10531 msymbol_hash, msymbol_demangled_hash>: Move.
10532 (ALL_OBJFILE_MSYMBOLS): Update.
10533 * symfile.c (read_symbols): Set minsyms_read.
10534 (reread_symbols): Update.
10535 * symmisc.c (dump_objfile, dump_msymbols): Update.
10536
2273f0ac
TT
105372014-02-26 Tom Tromey <tromey@redhat.com>
10538
10539 * minsyms.c (msymbols_sort): Remove.
10540 * minsyms.h (msymbols_sort): Remove.
10541 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10542 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10543 * elfread.c (elf_symtab_read): Don't add section offsets.
10544 * xcoffread.c (record_minimal_symbol): Don't add section offset
10545 to minimal symbol address.
10546 * somread.c (text_offset, data_offset): Remove.
10547 (som_symtab_read): Don't add section offsets to minimal symbol
10548 addresses.
10549 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10550 Don't add section offsets to minimal symbols.
10551 * coffread.c (coff_symtab_read): Don't add section offsets
10552 to minimal symbol addresses.
10553 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10554 to minimal symbol addresses.
10555 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10556 section offset to minimal symbol addresses.
10557 * mdebugread.c (parse_partial_symbols): Don't add section
10558 offset to minimal symbol addresses.
10559 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10560 offset to minimal symbol addresses.
10561
77e371c0
TT
105622014-02-26 Tom Tromey <tromey@redhat.com>
10563
10564 * ada-lang.c (ada_main_name): Update.
10565 (ada_add_standard_exceptions): Update.
10566 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10567 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10568 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10569 * auxv.c (ld_so_xfer_auxv): Update.
10570 * avr-tdep.c (avr_scan_prologue): Update.
10571 * ax-gdb.c (gen_var_ref): Update.
10572 * blockframe.c (get_pc_function_start)
10573 (find_pc_partial_function_gnu_ifunc): Update.
10574 * breakpoint.c (create_overlay_event_breakpoint)
10575 (create_longjmp_master_breakpoint)
10576 (create_std_terminate_master_breakpoint)
10577 (create_exception_master_breakpoint): Update.
10578 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10579 * c-valprint.c (c_val_print): Update.
10580 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10581 * common/agent.c (agent_look_up_symbols): Update.
10582 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10583 * dwarf2loc.c (call_site_to_target_addr): Update.
10584 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10585 * elfread.c (elf_gnu_ifunc_record_cache)
10586 (elf_gnu_ifunc_resolve_by_got): Update.
10587 * findvar.c (default_read_var_value): Update.
10588 * frame.c (inside_main_func): Update.
10589 * frv-tdep.c (frv_frame_this_id): Update.
10590 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10591 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10592 Update.
10593 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10594 (hppa_hpux_find_dummy_bpaddr): Update.
10595 * hppa-tdep.c (hppa_symbol_address): Update.
10596 * infcmd.c (until_next_command): Update.
10597 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10598 Update.
10599 * linespec.c (minsym_found, add_minsym): Update.
10600 * linux-nat.c (get_signo): Update.
10601 * linux-thread-db.c (inferior_has_bug): Update.
10602 * m32c-tdep.c (m32c_return_value)
10603 (m32c_m16c_address_to_pointer): Update.
10604 * m32r-tdep.c (m32r_frame_this_id): Update.
10605 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10606 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10607 * maint.c (maintenance_translate_address): Update.
10608 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10609 (frob_address): New function.
10610 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10611 frob_address. Rename parameter to "pc_in".
10612 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10613 addresses.
10614 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10615 Update.
10616 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10617 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10618 * objc-lang.c (find_objc_msgsend): Update.
10619 * objfiles.c (objfile_relocate1): Update.
10620 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10621 * p-valprint.c (pascal_val_print): Update.
10622 * parse.c (write_exp_msymbol): Update.
10623 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10624 (ppc_elfv2_skip_entrypoint): Update.
10625 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10626 * printcmd.c (build_address_symbolic, msym_info)
10627 (address_info): Update.
10628 * proc-service.c (ps_pglobal_lookup): Update.
10629 * psymtab.c (find_pc_sect_psymtab_closer)
10630 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10631 Change msymbol parameter to bound_minimal_symbol.
10632 * ravenscar-thread.c (get_running_thread_id): Update.
10633 * remote.c (remote_check_symbols): Update.
10634 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10635 address.
10636 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10637 * solib-dsbt.c (lm_base): Update.
10638 * solib-frv.c (lm_base, main_got): Update.
10639 * solib-irix.c (locate_base): Update.
10640 * solib-som.c (som_solib_create_inferior_hook)
10641 (link_map_start): Update.
10642 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10643 * solib-svr4.c (elf_locate_base, enable_break): Update.
10644 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10645 (flush_ea_cache): Update.
10646 * stabsread.c (define_symbol, scan_file_globals): Update.
10647 * stack.c (find_frame_funname): Update.
10648 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10649 (debug_qf_find_pc_sect_symtab): Update.
10650 * symfile.c (simple_read_overlay_table)
10651 (simple_overlay_update): Update.
10652 * symfile.h (struct quick_symbol_functions)
10653 <find_pc_sect_symtab>: Change type of msymbol to
10654 bound_minimal_symbol.
10655 * symmisc.c (dump_msymbols): Update.
10656 * symtab.c (find_pc_sect_symtab_via_partial)
10657 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10658 (search_symbols, print_msymbol_info): Update.
10659 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10660 (MSYMBOL_VALUE_ADDRESS): Redefine.
10661 (BMSYMBOL_VALUE_ADDRESS): New macro.
10662 * tracepoint.c (scope_info): Update.
10663 * tui/tui-disasm.c (tui_find_disassembly_address)
10664 (tui_get_begin_asm_address): Update.
10665 * valops.c (find_function_in_inferior): Update.
10666 * value.c (value_static_field, value_fn_field): Update.
10667
3b7344d5
TT
106682014-02-26 Tom Tromey <tromey@redhat.com>
10669
10670 * ada-lang.c (ada_update_initial_language): Update.
10671 (ada_main_name, ada_has_this_exception_support): Update.
10672 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10673 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10674 * arm-tdep.c (arm_skip_stub): Update.
10675 * auxv.c (ld_so_xfer_auxv): Update.
10676 * avr-tdep.c (avr_scan_prologue): Update.
10677 * ax-gdb.c (gen_var_ref): Update.
10678 * breakpoint.c (struct breakpoint_objfile_data)
10679 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10680 type to bound_minimal_symbol.
10681 (create_overlay_event_breakpoint)
10682 (create_longjmp_master_breakpoint)
10683 (create_std_terminate_master_breakpoint)
10684 (create_exception_master_breakpoint): Update.
10685 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10686 * c-exp.y (classify_name): Update.
10687 * coffread.c (coff_symfile_read): Update.
10688 * common/agent.c (agent_look_up_symbols): Update.
10689 * d-lang.c (d_main_name): Update.
10690 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10691 * dec-thread.c (enable_dec_thread): Update.
10692 * dwarf2loc.c (call_site_to_target_addr): Update.
10693 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10694 * eval.c (evaluate_subexp_standard): Update.
10695 * findvar.c (struct minsym_lookup_data) <result>: Change type
10696 to bound_minimal_symbol.
10697 <objfile>: Remove.
10698 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10699 * frame.c (inside_main_func): Update.
10700 * frv-tdep.c (frv_frame_this_id): Update.
10701 * gcore.c (call_target_sbrk): Update.
10702 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10703 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10704 Update.
10705 * go-lang.c (go_main_name): Update.
10706 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10707 (hppa_hpux_find_import_stub_for_addr): Update.
10708 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10709 Update. Change return type.
10710 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10711 type.
10712 * jit.c (jit_breakpoint_re_set_internal): Update.
10713 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10714 Update.
10715 * linux-nat.c (get_signo): Update.
10716 * linux-thread-db.c (inferior_has_bug): Update
10717 * m32c-tdep.c (m32c_return_value)
10718 (m32c_m16c_address_to_pointer): Update.
10719 * m32r-tdep.c (m32r_frame_this_id): Update.
10720 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10721 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10722 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10723 lookup_minimal_symbol. Change return type.
10724 (lookup_minimal_symbol): Remove.
10725 (lookup_bound_minimal_symbol): Update.
10726 (lookup_minimal_symbol_text): Change return type.
10727 (lookup_minimal_symbol_solib_trampoline): Change return type.
10728 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10729 (lookup_minimal_symbol_solib_trampoline): Change return type.
10730 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10731 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10732 (value_nsstring, find_imps): Update.
10733 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10734 * p-lang.c (pascal_main_name): Update.
10735 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10736 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10737 * proc-service.c (ps_pglobal_lookup): Update.
10738 * ravenscar-thread.c (get_running_thread_msymbol): Change
10739 return type.
10740 (has_ravenscar_runtime, get_running_thread_id): Update.
10741 * remote.c (remote_check_symbols): Update.
10742 * sol-thread.c (ps_pglobal_lookup): Update.
10743 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10744 * solib-dsbt.c (lm_base): Update.
10745 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10746 Update.
10747 * solib-irix.c (locate_base): Update.
10748 * solib-som.c (som_solib_create_inferior_hook)
10749 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10750 Update.
10751 * solib-spu.c (spu_enable_break): Update.
10752 * solib-svr4.c (elf_locate_base, enable_break): Update.
10753 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10754 (flush_ea_cache): Update.
10755 * stabsread.c (define_symbol): Update.
10756 * symfile.c (simple_read_overlay_table): Update.
10757 * symtab.c (find_pc_sect_line): Update.
10758 * tracepoint.c (scope_info): Update.
10759 * tui-disasm.c (tui_get_begin_asm_address): Update.
10760 * value.c (value_static_field): Update.
10761
40c1a007
TT
107622014-02-26 Tom Tromey <tromey@redhat.com>
10763
10764 * minsyms.c (prim_record_minimal_symbol_full): Use
10765 SET_MSYMBOL_VALUE_ADDRESS.
10766 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10767 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10768 SET_MSYMBOL_VALUE_ADDRESS.
10769 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10770 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10771
efd66ac6
TT
107722014-02-26 Tom Tromey <tromey@redhat.com>
10773
10774 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10775 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10776 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10777 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10778 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10779 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10780 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10781 * ada-lang.c (ada_main_name): Update.
10782 (ada_lookup_simple_minsym): Update.
10783 (ada_make_symbol_completion_list): Update.
10784 (ada_add_standard_exceptions): Update.
10785 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10786 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10787 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10788 * arm-tdep.c (skip_prologue_function): Update.
10789 (arm_skip_stack_protector, arm_skip_stub): Update.
10790 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10791 (arm_wince_skip_main_prologue): Update.
10792 * auxv.c (ld_so_xfer_auxv): Update.
10793 * avr-tdep.c (avr_scan_prologue): Update.
10794 * ax-gdb.c (gen_var_ref): Update.
10795 * block.c (call_site_for_pc): Update.
10796 * blockframe.c (get_pc_function_start): Update.
10797 (find_pc_partial_function_gnu_ifunc): Update.
10798 * breakpoint.c (create_overlay_event_breakpoint): Update.
10799 (create_longjmp_master_breakpoint): Update.
10800 (create_std_terminate_master_breakpoint): Update.
10801 (create_exception_master_breakpoint): Update.
10802 (resolve_sal_pc): Update.
10803 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10804 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10805 Update.
10806 * c-valprint.c (c_val_print): Update.
10807 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10808 * coffread.c (coff_symfile_read): Update.
10809 * common/agent.c (agent_look_up_symbols): Update.
10810 * dbxread.c (find_stab_function_addr): Update.
10811 (end_psymtab): Update.
10812 * dwarf2loc.c (call_site_to_target_addr): Update.
10813 (func_verify_no_selftailcall): Update.
10814 (tailcall_dump): Update.
10815 (call_site_find_chain_1): Update.
10816 (dwarf_expr_reg_to_entry_parameter): Update.
10817 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10818 (elf_gnu_ifunc_resolve_by_got): Update.
10819 * f-valprint.c (info_common_command): Update.
10820 * findvar.c (read_var_value): Update.
10821 * frame.c (get_prev_frame_1): Update.
10822 (inside_main_func): Update.
10823 * frv-tdep.c (frv_skip_main_prologue): Update.
10824 (frv_frame_this_id): Update.
10825 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10826 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10827 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10828 (gnuv3_skip_trampoline): Update.
10829 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10830 (hppa64_hpux_in_solib_call_trampoline): Update.
10831 (hppa_hpux_skip_trampoline_code): Update.
10832 (hppa64_hpux_search_dummy_call_sequence): Update.
10833 (hppa_hpux_find_import_stub_for_addr): Update.
10834 (hppa_hpux_find_dummy_bpaddr): Update.
10835 * hppa-tdep.c (hppa_symbol_address)
10836 (hppa_lookup_stub_minimal_symbol): Update.
10837 * i386-tdep.c (i386_skip_main_prologue): Update.
10838 (i386_pe_skip_trampoline_code): Update.
10839 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10840 * infcall.c (get_function_name): Update.
10841 * infcmd.c (until_next_command): Update.
10842 * jit.c (jit_breakpoint_re_set_internal): Update.
10843 (jit_inferior_init): Update.
10844 * linespec.c (minsym_found): Update.
10845 (add_minsym): Update.
10846 * linux-fork.c (info_checkpoints_command): Update.
10847 * linux-nat.c (get_signo): Update.
10848 * linux-thread-db.c (inferior_has_bug): Update.
10849 * m32c-tdep.c (m32c_return_value): Update.
10850 (m32c_m16c_address_to_pointer): Update.
10851 (m32c_m16c_pointer_to_address): Update.
10852 * m32r-tdep.c (m32r_frame_this_id): Update.
10853 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10854 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10855 * maint.c (maintenance_translate_address): Update.
10856 * minsyms.c (add_minsym_to_hash_table): Update.
10857 (add_minsym_to_demangled_hash_table): Update.
10858 (msymbol_objfile): Update.
10859 (lookup_minimal_symbol): Update.
10860 (iterate_over_minimal_symbols): Update.
10861 (lookup_minimal_symbol_text): Update.
10862 (lookup_minimal_symbol_by_pc_name): Update.
10863 (lookup_minimal_symbol_solib_trampoline): Update.
10864 (lookup_minimal_symbol_by_pc_section_1): Update.
10865 (lookup_minimal_symbol_and_objfile): Update.
10866 (prim_record_minimal_symbol_full): Update.
10867 (compare_minimal_symbols): Update.
10868 (compact_minimal_symbols): Update.
10869 (build_minimal_symbol_hash_tables): Update.
10870 (install_minimal_symbols): Update.
10871 (terminate_minimal_symbol_table): Update.
10872 (find_solib_trampoline_target): Update.
10873 (minimal_symbol_upper_bound): Update.
10874 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10875 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10876 (mips_skip_pic_trampoline_code): Update.
10877 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10878 * objc-lang.c (selectors_info): Update.
10879 (classes_info): Update.
10880 (find_methods): Update.
10881 (find_imps): Update.
10882 (find_objc_msgsend): Update.
10883 * objfiles.c (objfile_relocate1): Update.
10884 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10885 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10886 * p-valprint.c (pascal_val_print): Update.
10887 * parse.c (write_exp_msymbol): Update.
10888 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10889 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10890 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10891 * printcmd.c (build_address_symbolic): Update.
10892 (sym_info): Update.
10893 (address_info): Update.
10894 * proc-service.c (ps_pglobal_lookup): Update.
10895 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10896 (find_pc_sect_psymtab): Update.
10897 * python/py-framefilter.c (py_print_frame): Update.
10898 * ravenscar-thread.c (get_running_thread_id): Update.
10899 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10900 Update.
10901 * remote.c (remote_check_symbols): Update.
10902 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10903 (rs6000_skip_trampoline_code): Update.
10904 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10905 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10906 * solib-dsbt.c (lm_base): Update.
10907 * solib-frv.c (lm_base): Update.
10908 (main_got): Update.
10909 * solib-irix.c (locate_base): Update.
10910 * solib-som.c (som_solib_create_inferior_hook): Update.
10911 (som_solib_desire_dynamic_linker_symbols): Update.
10912 (link_map_start): Update.
10913 * solib-spu.c (spu_enable_break): Update.
10914 (ocl_enable_break): Update.
10915 * solib-svr4.c (elf_locate_base): Update.
10916 (enable_break): Update.
10917 * spu-tdep.c (spu_get_overlay_table): Update.
10918 (spu_catch_start): Update.
10919 (flush_ea_cache): Update.
10920 * stabsread.c (define_symbol): Update.
10921 (scan_file_globals): Update.
10922 * stack.c (find_frame_funname): Update.
10923 (frame_info): Update.
10924 * symfile.c (simple_read_overlay_table): Update.
10925 (simple_overlay_update): Update.
10926 * symmisc.c (dump_msymbols): Update.
10927 * symtab.c (fixup_section): Update.
10928 (find_pc_sect_line): Update.
10929 (skip_prologue_sal): Update.
10930 (search_symbols): Update.
10931 (print_msymbol_info): Update.
10932 (rbreak_command): Update.
10933 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10934 (completion_list_objc_symbol): Update.
10935 (default_make_symbol_completion_list_break_on): Update.
10936 * tracepoint.c (scope_info): Update.
10937 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10938 (tui_get_begin_asm_address): Update.
10939 * valops.c (find_function_in_inferior): Update.
10940 * value.c (value_static_field): Update.
10941 (value_fn_field): Update.
10942
50e65b17
TT
109432014-02-26 Tom Tromey <tromey@redhat.com>
10944
10945 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10946 bound minimal symbols. Move code that knows about minsym
10947 table layout...
10948 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10949 function.
10950 * minsyms.h (minimal_symbol_upper_bound): Declare.
10951 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10952 minimal_symbol_upper_bound.
10953
1b588015
JB
109542014-02-27 Joel Brobecker <brobecker@adacore.com>
10955
10956 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10957 Use the type's name if its basic type does not have a tag.
10958
dbb9c2b1
JB
109592014-02-27 Joel Brobecker <brobecker@adacore.com>
10960
10961 * dwarf2read.c (read_subrange_type): Add comment.
10962
55426c9d
JB
109632014-02-27 Joel Brobecker <brobecker@adacore.com>
10964
10965 * dwarf2read.c (update_enumeration_type_from_children): New
10966 function, mostly extracted from process_structure_scope.
10967 (read_enumeration_type): Call update_enumeration_type_from_children.
10968 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10969 and flag_flag_enum fields.
10970
f2fce0ca
PA
109712014-02-26 Pedro Alves <palves@redhat.com>
10972
10973 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10974 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10975 to_xfer_partial method.
10976
7a44e40e
PA
109772014-02-26 Pedro Alves <palves@redhat.com>
10978
10979 * target.c (complete_target_initialization): Don't install
10980 default_xfer_partial as to_xfer_partial hook.
10981 (nomemory): Delete.
10982 (update_current_target): Don't INHERIT nor de_fault
10983 deprecated_xfer_memory. Delete de_fault macro.
10984 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10985 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10986 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10987 field.
10988
bd265cd0
PA
109892014-02-26 Pedro Alves <palves@redhat.com>
10990
10991 * go32-nat.c (my_write_child): New function.
10992 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10993 (go32_xfer_partial): New function.
10994 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10995 Instead install a to_xfer_partial hook.
10996
9d46c4e5
PA
109972014-02-26 Pedro Alves <palves@redhat.com>
10998
10999 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
11000 to_xfer_partial helper. Rewrite.
11001 (procfs_xfer_partial): New function.
11002 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
11003 Install a to_xfer_partial hook.
11004
a1583b1f
PA
110052014-02-26 Pedro Alves <palves@redhat.com>
11006
11007 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
11008 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
11009 (m32r_xfer_partial): New function.
11010 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
11011 Install a to_xfer_partial hook.
11012
6df1b29f
PA
110132014-02-26 Pedro Alves <palves@redhat.com>
11014
11015 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
11016 helper.
11017 (mips_xfer_partial): New function.
11018 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
11019 hook. Install a to_xfer_partial hook.
11020
dc53a7ad
JB
110212014-02-26 Joel Brobecker <brobecker@adacore.com>
11022
11023 * gdbtypes.h (create_array_type_with_stride): Add declaration.
11024 * gdbtypes.c (create_array_type_with_stride): New function,
11025 renaming create_array_type, but with an added parameter
11026 called "bit_stride".
11027 (create_array_type): Re-implement using
11028 create_array_type_with_stride.
11029 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
11030 and DW_AT_bit_stride attributes.
11031
12ab52e9
PA
110322014-02-26 Pedro Alves <palves@redhat.com>
11033
11034 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
11035 task-specific breakpoints.
11036
d16461ae
PA
110372014-02-25 Pedro Alves <palves@redhat.com>
11038
11039 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
11040 handling of object == TARGET_OBJECT_UNWIND_TABLE.
11041
a8b16220
SS
110422014-02-25 Stan Shebs <stan@codesourcery.com>
11043
11044 * defs.h: Annotate comments for Doxygen.
11045
b9e795ee
TT
110462014-02-25 Tom Tromey <tromey@redhat.com>
11047
11048 * target.h (target_ignore): Don't declare.
11049 * target.c (target_ignore): Remove.
11050
849c862e
JK
110512014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11052
11053 PR gdb/16626
11054 * auto-load.c (auto_load_objfile_script_1): Change filename to
11055 debugfile.
11056
475109d8
JB
110572014-02-25 Joel Brobecker <brobecker@adacore.com>
11058
11059 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
11060 documentation. Adjust prototype to match the target_ops
11061 to_xfer_partial method. Adjust implementation accordingly.
11062
e186c3bd
HZ
110632014-02-25 Hui Zhu <hui@codesourcery.com>
11064
11065 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
11066 to_traceframe_info.
11067
6d451942
KB
110682014-02-25 Kevin Buettner <kevinb@redhat.com>
11069
041ab8b4 11070 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
11071 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
11072 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
11073 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
11074 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
11075 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
11076 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
11077 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
11078 New constants.
11079 (rl78_register_type): Use a data pointer type for SP and
11080 new pseudo registers mentioned above. Use a 16 bit integer
11081 type for all other register pairs.
11082 (rl78_register_name, rl78_g10_register_name): Update for
11083 new pseudo registers.
11084 (rl78_pseudo_register_read): Likewise.
11085 (rl78_pseudo_register_write): Likewise.
11086 (rl78_dwarf_reg_to_regnum): Return register numbers representing
11087 to the newly added pseudo registers.
11088
eddf0bae
DE
110892014-02-24 Doug Evans <dje@google.com>
11090
11091 * value.c (record_latest_value): Fix comment.
11092 * printcmd.c (print_command_1): Remove code to handle -1 return from
11093 record_latest_value.
11094
e96027e0
PA
110952014-02-24 Pedro Alves <palves@redhat.com>
11096
11097 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
11098 deprecated_xfer_memory hook.
11099 (procfs_xfer_partial): Call procfs_xfer_memory instead
11100 of the deprecated_xfer_memory target hook.
11101 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11102 helper.
11103
0837c976
YZ
111042014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
11105
11106 * windows-nat.c (windows_xfer_shared_libraries): Return
11107 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11108 requested object is TARGET_OBJECT_LIBRARIES.
11109
bc113b4e
YQ
111102014-02-24 Yao Qi <yao@codesourcery.com>
11111
11112 * target.h (enum target_xfer_status)
11113 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11114 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11115 explicitly. New.
11116 * corefile.c (memory_error_message): User updated.
11117 * exec.c (section_table_read_available_memory): Likewise.
11118 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11119 * target.c (target_xfer_status_to_string): Likewise.
11120 (raw_memory_xfer_partial): Likewise.
11121 (memory_xfer_partial_1, target_xfer_partial): Likewise.
11122 * valops.c (read_value_memory): Likewise.
11123 * exec.h: Update comments.
11124
01cb8804
YQ
111252014-02-24 Yao Qi <yao@codesourcery.com>
11126
11127 * target.c (target_xfer_status_to_string): Rename argument err
11128 to status.
11129 * target.h (target_xfer_status_to_string): Update declaration.
11130 Replace target_xfer_error_to_string with
11131 target_xfer_status_to_string in comment.
11132
93063aa6
YQ
111332014-02-24 Yao Qi <yao@codesourcery.com>
11134
11135 * mips-linux-nat.c (super_close): Update its type.
11136 (mips_linux_close): Pass 'self' to super_close.
11137
5c328c05
YQ
111382014-02-24 Yao Qi <yao@codesourcery.com>
11139
11140 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11141 * corefile.c (read_memory): Adjusted.
11142 * target.c (target_write_with_progress): Adjusted.
11143
f73023dd
YQ
111442014-02-23 Yao Qi <yao@codesourcery.com>
11145
11146 Revert two patches:
11147
11148 2013-10-25 Yao Qi <yao@codesourcery.com>
11149
11150 * remote.c (remote_traceframe_info): Return early if
11151 traceframe is not selected.
11152
11153 2013-07-19 Yao Qi <yao@codesourcery.com>
11154
11155 * target.c (update_current_target): Change the default action
11156 of 'to_traceframe_info' from tcomplain to return_zero.
11157 * target.h (struct target_ops) <to_traceframe_info>: Add more
11158 comments.
11159
5a2eb0ef
YQ
111602014-02-23 Yao Qi <yao@codesourcery.com>
11161
11162 * valops.c (read_value_memory): Rewrite it. Call
11163 target_xfer_partial in a loop.
11164 * exec.h (section_table_available_memory): Remove declaration.
11165 Move comments to ...
11166 * exec.c (section_table_available_memory): ... here. Make it
11167 static.
11168
1ee79381
YQ
111692014-02-23 Yao Qi <yao@codesourcery.com>
11170
11171 * exec.c (section_table_read_available_memory): New function.
11172 * exec.h (section_table_read_available_memory): Declare.
11173 * ctf.c (ctf_xfer_partial): Call
11174 section_table_read_available_memory.
11175 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11176
1ca49d37
YQ
111772014-02-23 Yao Qi <yao@codesourcery.com>
11178
11179 * ctf.c (ctf_xfer_partial): Move code to ...
11180 * exec.c (exec_read_partial_read_only): ... it. New function.
11181 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11182 * tracefile.c: Include "exec.h".
11183 * exec.h (exec_read_partial_read_only): Declare.
11184
a283690e
YQ
111852014-02-23 Yao Qi <yao@codesourcery.com>
11186
11187 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11188 (tfile_has_memory): Remove.
11189 (init_tfile_ops): Don't set fields to_has_all_memory and
11190 to_has_memory of tfile_ops.
11191 * tracefile.c (tracefile_has_all_memory): New function.
11192 (tracefile_has_memory): New function.
11193 (init_tracefile_ops): Initialize fields to_has_all_memory and
11194 to_has_memory of 'ops'.
11195
12e03cd0
YQ
111962014-02-23 Yao Qi <yao@codesourcery.com>
11197
11198 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11199 (ctf_thread_alive, ctf_get_trace_status): Remove.
11200 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11201 init_tracefile_ops.
11202 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11203 (tfile_has_stack, tfile_has_registers): Remove.
11204 (tfile_thread_alive): Remove.
11205 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11206 init_tracefile_ops.
11207 * tracefile.c (tracefile_has_stack): New function.
11208 (tracefile_has_registers): New function.
11209 (tracefile_thread_alive): New function.
11210 (tracefile_get_trace_status): New function.
11211 (init_tracefile_ops): New function.
11212 * tracefile.h (init_tracefile_ops): Declare.
11213
11395323
YQ
112142014-02-23 Yao Qi <yao@codesourcery.com>
11215
11216 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11217 (O_LARGEFILE): Likewise.
11218 (tfile_ops): Likewise.
11219 (TRACE_HEADER_SIZE): Likewise.
11220 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11221 (cur_data_size): Likewise.
11222 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11223 (tfile_close, tfile_files_info): Likewise.
11224 (tfile_get_trace_status): Likewise.
11225 (tfile_get_tracepoint_status): Likewise.
11226 (tfile_get_traceframe_address): Likewise.
11227 (tfile_trace_find, match_blocktype): Likewise.
11228 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11229 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11230 (tfile_get_trace_state_variable_value): Likewise.
11231 (tfile_has_all_memory, tfile_has_memory): Likewise.
11232 (tfile_has_stack, tfile_has_registers): Likewise.
11233 (tfile_thread_alive, build_traceframe_info): Likewise.
11234 (tfile_traceframe_info, init_tfile_ops): Likewise.
11235 (_initialize_tracepoint): Don't call init_tfile_ops
11236 and add_target_with_completer.
11237 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11238 exec.h, completer.h and filenames.h.
11239 (_initialize_tracefile_tfile): New function.
11240
7951c4eb
YQ
112412014-02-23 Yao Qi <yao@codesourcery.com>
11242
11243 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11244 tracefile-tfile.o.
11245 (HFILES_NO_SRCDIR): Add tracefile.h.
11246 * ctf.c: Include "tracefile.h".
11247 * tracefile.h: New file.
11248 * tracefile.c: New file
11249 * tracefile-tfile.c: New file.
11250 * tracepoint.c: Include "tracefile.h".
11251 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11252 (stop_reason_names): Add const.
11253 (trace_file_writer_xfree): Move it to tracefile.c.
11254 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11255 (trace_save_ctf): Likewise.
11256 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11257 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11258 (tfile_write_header, tfile_write_regblock_type): Likewise.
11259 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11260 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11261 (tfile_write_raw_data, tfile_end): Likewise.
11262 (tfile_trace_file_writer_new): Likewise.
11263 (free_uploaded_tp): Make it extern.
11264 (free_uploaded_tsv): Make it extern.
11265 (_initialize_tracepoint): Move code to register command 'tsave'
11266 to tracefile.c.
11267 * tracepoint.h (stop_reason_names): Declare.
11268 (struct trace_frame_write_ops): Move it to tracefile.h.
11269 (struct trace_file_write_ops): Likewise.
11270 (struct trace_file_writer): Likewise.
11271 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11272
184cd072
JK
112732014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11274
11275 PR gdb/16594
11276 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11277 process name.
11278 (get_cores_used_by_process): New parameter num_cores, use it.
11279 (linux_xfer_osdata_processes): Pass num_cores to it.
11280 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11281 process name.
11282
c63528fc
AK
112832014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11284
11285 * target.c (memory_xfer_partial): Fix length arg in call to
11286 breakpoint_xfer_memory.
11287
d7b30f67
SDJ
112882014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11289
11290 PR tdep/16397
11291 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11292 number comes after the + or - signs. Adjust length of register
11293 name to be extracted.
11294
8838afaf
TT
112952014-02-20 Tom Tromey <tromey@redhat.com>
11296
11297 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11298 (ada_varobj_ops): Mark "extern".
11299
05227d14
TT
113002014-02-20 Tom Tromey <tromey@redhat.com>
11301
11302 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11303
1254eefc
DE
113042014-02-20 Doug Evans <xdje42@gmail.com>
11305
11306 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11307 All callers updated.
11308 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11309 All callers updated.
11310 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11311 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11312
adde2bff
DE
113132014-02-20 lin zuojian <manjian2006@gmail.com>
11314 Joel Brobecker <brobecker@adacore.com>
11315 Doug Evans <xdje42@gmail.com>
11316
11317 PR symtab/16581
11318 * dwarf2read.c (struct die_info): New member in_process.
11319 (reset_die_in_process): New function.
11320 (process_die): Set it at the start, reset when returning.
11321 (inherit_abstract_dies): Only call process_die if origin_child_die
11322 not already being processed.
11323
3be75f87
JB
113242014-02-20 Joel Brobecker <brobecker@adacore.com>
11325
11326 * windows-nat.c (handle_unload_dll): Add function documentation.
11327 (do_initial_windows_stuff): Add comment explaining why we wait
11328 until after inferior initialization has finished before
11329 processing all DLLs.
11330
47f7ffdb
JB
113312014-02-20 Joel Brobecker <brobecker@adacore.com>
11332
11333 * windows-nat.c (get_module_name): Delete.
11334 (windows_get_exec_module_filename): New function, mostly
11335 inspired from get_module_name.
11336 (windows_pid_to_exec_file): Replace call to get_module_name
11337 by call to windows_get_exec_module_filename.
11338
1cd9feab
JB
113392014-02-20 Joel Brobecker <brobecker@adacore.com>
11340
11341 * windows-nat.c (handle_load_dll): Rewrite this function's
11342 introductory comment. Remove code using get_module_name
11343 to get the DLL's name.
11344
ea39ad35
JB
113452014-02-20 Joel Brobecker <brobecker@adacore.com>
11346
11347 * windows-nat.c (get_windows_debug_event): Ignore
11348 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11349 if windows_initialization_done == 0.
11350 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11351 Adjust implementation to always load all DLLs.
11352 (do_initial_windows_stuff): Replace call to
11353 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11354
95060284
JB
113552014-02-20 Joel Brobecker <brobecker@adacore.com>
11356
11357 * windows-nat.c (_initialize_windows_nat): Deprecate the
11358 "dll-symbols" command. Turn the "add-shared-symbol-files"
11359 and "assf" aliases into commands, and deprecate them as well.
11360 * NEWS: Add entry explaining that "dll-symbols" and its two
11361 aliases are now deprecated.
11362
8d4fdb12
JB
113632014-02-20 Joel Brobecker <brobecker@adacore.com>
11364
11365 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11366 new-line in debug string. Remove trailing spaces.
11367
1b281443
SS
113682014-02-19 Stan Shebs <stan@codesourcery.com>
11369
11370 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11371
f7bd0f78
SC
113722014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11373
11374 * NEWS: Add entry for the new feature
11375 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11376 and class values.
11377
399ebc3d
SS
113782014-02-19 Stan Shebs <stan@codesourcery.com>
11379
11380 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11381
c658158d
PA
113822014-02-19 Pedro Alves <palves@redhat.com>
11383
11384 * common/ptid.h (struct ptid): Mention that process_stratum
11385 targets should prefer ptid.lwp.
11386
ba348170
PA
113872014-02-19 Pedro Alves <palves@redhat.com>
11388
11389 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11390 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11391 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11392 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11393 store remote thread ids rather than ptid.tid.
11394 (_initialize_remote): Adjust.
11395
ac01945b
TT
113962014-02-19 Tom Tromey <tromey@redhat.com>
11397
11398 * target.c (target_get_unwinder): Rewrite.
11399 (target_get_tailcall_unwinder): Rewrite.
11400 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11401 (record_btrace_to_get_tailcall_unwinder): New function.
11402 (init_record_btrace_ops): Update.
11403 * target.h (struct target_ops) <to_get_unwinder,
11404 to_get_tailcall_unwinder>: Now function pointers. Use
11405 TARGET_DEFAULT_RETURN.
11406
8476dc92
TT
114072014-02-19 Tom Tromey <tromey@redhat.com>
11408
11409 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11410 argument.
11411 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11412
c0eca49f
TT
114132014-02-19 Tom Tromey <tromey@redhat.com>
11414
11415 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11416 directly.
11417 * target-delegates.c: Rebuild.
11418 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11419 TARGET_DEFAULT_FUNC.
11420 * target.c (default_target_decr_pc_after_break): Rename from
11421 forward_target_decr_pc_after_break. Simplify.
11422 (target_decr_pc_after_break): Rely on delegation.
11423
596b6b39
TT
114242014-02-19 Tom Tromey <tromey@redhat.com>
11425
11426 * target.c (update_current_target): Do not INHERIT to_doc or
11427 to_magic. Do not de_fault to_open or to_close.
11428
b427c1bc
TT
114292014-02-19 Tom Tromey <tromey@redhat.com>
11430
11431 * gcore.h (objfile_find_memory_regions): Declare.
11432 * gcore.c (objfile_find_memory_regions): No longer static. Add
11433 "self" argument.
11434 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11435 * exec.c: Include gcore.h.
11436 (exec_set_find_memory_regions): Remove.
11437 (exec_find_memory_regions): Remove.
11438 (exec_do_find_memory_regions): Remove.
11439 (init_exec_ops): Update.
11440 * defs.h (exec_set_find_memory_regions): Remove.
11441
9b144037
TT
114422014-02-19 Tom Tromey <tromey@redhat.com>
11443
11444 * target-delegates.c: Rebuild.
11445 * target.h (struct target_ops) <to_extra_thread_info,
11446 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11447 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11448 not 0, in TARGET_DEFAULT_RETURN.
11449
555bbdeb
TT
114502014-02-19 Tom Tromey <tromey@redhat.com>
11451
11452 * target.c (complete_target_initialization): Remove casts. Use
11453 return_zero_has_execution.
11454 (return_zero): Add "ignore" argument.
11455 (return_zero_has_execution): New function.
11456 (init_dummy_target): Remove casts. Use
11457 return_zero_has_execution.
11458
be4ddd36
TT
114592014-02-19 Tom Tromey <tromey@redhat.com>
11460
11461 * target.c (update_current_target): Update comments. Do not
11462 INHERIT to_stratum.
11463
2117c711
TT
114642014-02-19 Tom Tromey <tromey@redhat.com>
11465
11466 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11467 needed.
11468 * corelow.c (core_read_description): Delegate when needed.
11469 * remote.c (remote_read_description): Delegate when needed.
11470 * target-delegates.c: Rebuild.
11471 * target.c (target_read_description): Rewrite.
11472 * target.h (struct target_ops) <to_read_description>: Update
11473 comment. Use TARGET_DEFAULT_RETURN.
11474
e88ef65c
TT
114752014-02-19 Tom Tromey <tromey@redhat.com>
11476
11477 * target-delegates.c: Rebuild.
11478 * target.c (update_current_target): Don't inherit or default
11479 to_can_run.
11480 (find_default_run_target): Check against delegate_can_run.
11481 * target.h (struct target_ops) <to_can_run>: Use
11482 TARGET_DEFAULT_RETURN.
11483
86a0854a
TT
114842014-02-19 Tom Tromey <tromey@redhat.com>
11485
11486 * target-delegates.c: Rebuild.
11487 * target.c (target_disconnect): Unconditionally delegate.
11488 * target.h (struct target_ops) <to_disconnect>: Use
11489 TARGET_DEFAULT_NORETURN.
11490
ee97f592
TT
114912014-02-19 Tom Tromey <tromey@redhat.com>
11492
11493 * record.c (record_stop): Unconditionally delegate.
11494 * target-delegates.c: Rebuild.
11495 * target.c (target_stop_recording): Unconditionally delegate.
11496 * target.h (struct target_ops) <to_stop_recording>: Use
11497 TARGET_DEFAULT_IGNORE.
11498
6dc7fcf4
TT
114992014-02-19 Tom Tromey <tromey@redhat.com>
11500
11501 * target-delegates.c: Rebuild.
11502 * target.c (target_enable_btrace): Unconditionally delegate.
11503 * target.h (struct target_ops) <to_enable_btrace>: Use
11504 TARGET_DEFAULT_NORETURN.
11505
eb5b20d4
TT
115062014-02-19 Tom Tromey <tromey@redhat.com>
11507
11508 * target-delegates.c: Rebuild.
11509 * target.c (target_read_btrace): Unconditionally delegate.
11510 * target.h (struct target_ops) <to_read_btrace>: Use
11511 TARGET_DEFAULT_NORETURN.
11512
9ace480d
TT
115132014-02-19 Tom Tromey <tromey@redhat.com>
11514
11515 * target-delegates.c: Rebuild.
11516 * target.c (target_teardown_btrace): Unconditionally delegate.
11517 * target.h (struct target_ops) <to_teardown_btrace>: Use
11518 TARGET_DEFAULT_NORETURN.
11519
8dc292d3
TT
115202014-02-19 Tom Tromey <tromey@redhat.com>
11521
11522 * target-delegates.c: Rebuild.
11523 * target.c (target_disable_btrace): Unconditionally delegate.
11524 * target.h (struct target_ops) <to_disable_btrace>: Use
11525 TARGET_DEFAULT_NORETURN.
11526
58a5184e
TT
115272014-02-19 Tom Tromey <tromey@redhat.com>
11528
11529 * target-delegates.c: Rebuild.
11530 * target.c (default_search_memory): New function.
11531 (simple_search_memory): Update comment.
11532 (target_search_memory): Unconditionally delegate.
11533 * target.h (struct target_ops) <to_search_memory>: Use
11534 TARGET_DEFAULT_FUNC.
11535
8de71aab
TT
115362014-02-19 Tom Tromey <tromey@redhat.com>
11537
11538 * auxv.c (default_auxv_parse): No longer static.
11539 (target_auxv_parse): Unconditionally delegate.
11540 * auxv.h (default_auxv_parse): Declare.
11541 * target-delegates.c: Rebuild.
11542 * target.c: Include auxv.h.
11543 * target.h (struct target_ops) <to_auxv_parse>: Use
11544 TARGET_DEFAULT_FUNC.
11545
6b2c5a57
TT
115462014-02-19 Tom Tromey <tromey@redhat.com>
11547
11548 * target-delegates.c: Rebuild.
11549 * target.c (target_memory_map): Unconditionally delegate.
11550 * target.h (struct target_ops) <to_memory_map>: Use
11551 TARGET_DEFAULT_RETURN.
11552
cbffc065
TT
115532014-02-19 Tom Tromey <tromey@redhat.com>
11554
11555 * target-delegates.c: Rebuild.
11556 * target.c (target_thread_alive): Unconditionally delegate.
11557 * target.h (struct target_ops) <to_thread_alive>: Use
11558 TARGET_DEFAULT_RETURN.
11559
f09e2107
TT
115602014-02-19 Tom Tromey <tromey@redhat.com>
11561
11562 * target-delegates.c: Rebuild.
11563 * target.c (target_save_record): Unconditionally delegate.
11564 * target.h (struct target_ops) <to_save_record>: Use
11565 TARGET_DEFAULT_NORETURN.
11566
07366925
TT
115672014-02-19 Tom Tromey <tromey@redhat.com>
11568
11569 * target-delegates.c: Rebuild.
11570 * target.c (target_delete_record): Unconditionally delegate.
11571 * target.h (struct target_ops) <to_delete_record>: Use
11572 TARGET_DEFAULT_NORETURN.
11573
dd2e9d25
TT
115742014-02-19 Tom Tromey <tromey@redhat.com>
11575
11576 * target-delegates.c: Rebuild.
11577 * target.c (target_record_is_replaying): Unconditionally
11578 delegate.
11579 * target.h (struct target_ops) <to_record_is_replaying>: Use
11580 TARGET_DEFAULT_RETURN.
11581
671e76cc
TT
115822014-02-19 Tom Tromey <tromey@redhat.com>
11583
11584 * target-delegates.c: Rebuild.
11585 * target.c (target_goto_record_begin): Unconditionally delegate.
11586 * target.h (struct target_ops) <to_goto_record_begin>: Use
11587 TARGET_DEFAULT_NORETURN.
11588
e9179bb3
TT
115892014-02-19 Tom Tromey <tromey@redhat.com>
11590
11591 * target-delegates.c: Rebuild.
11592 * target.c (target_goto_record_end): Unconditionally delegate.
11593 * target.h (struct target_ops) <to_goto_record_end>: Use
11594 TARGET_DEFAULT_NORETURN.
11595
05969c84
TT
115962014-02-19 Tom Tromey <tromey@redhat.com>
11597
11598 * target-delegates.c: Rebuild.
11599 * target.c (target_goto_record): Unconditionally delegate.
11600 * target.h (struct target_ops) <to_goto_record>: Use
11601 TARGET_DEFAULT_NORETURN.
11602
3679abfa
TT
116032014-02-19 Tom Tromey <tromey@redhat.com>
11604
11605 * target-delegates.c: Rebuild.
11606 * target.c (target_insn_history): Unconditionally delegate.
11607 * target.h (struct target_ops) <to_insn_history>: Use
11608 TARGET_DEFAULT_NORETURN.
11609
8444ab58
TT
116102014-02-19 Tom Tromey <tromey@redhat.com>
11611
11612 * target-delegates.c: Rebuild.
11613 * target.c (target_insn_history_from): Unconditionally delegate.
11614 * target.h (struct target_ops) <to_insn_history_from>: Use
11615 TARGET_DEFAULT_NORETURN.
11616
c29302cc
TT
116172014-02-19 Tom Tromey <tromey@redhat.com>
11618
11619 * target-delegates.c: Rebuild.
11620 * target.c (target_insn_history_range): Unconditionally delegate.
11621 * target.h (struct target_ops) <to_insn_history_range>: Use
11622 TARGET_DEFAULT_NORETURN.
11623
170049d4
TT
116242014-02-19 Tom Tromey <tromey@redhat.com>
11625
11626 * target-delegates.c: Rebuild.
11627 * target.c (target_call_history): Unconditionally delegate.
11628 * target.h (struct target_ops) <to_call_history>: Use
11629 TARGET_DEFAULT_NORETURN.
11630
16fc27d6
TT
116312014-02-19 Tom Tromey <tromey@redhat.com>
11632
11633 * target-delegates.c: Rebuild.
11634 * target.c (target_call_history_from): Unconditionally delegate.
11635 * target.h (struct target_ops) <to_call_history_from>: Use
11636 TARGET_DEFAULT_NORETURN.
11637
115d9817
TT
116382014-02-19 Tom Tromey <tromey@redhat.com>
11639
11640 * target-delegates.c: Rebuild.
11641 * target.c (target_call_history_range): Unconditionally delegate.
11642 * target.h (struct target_ops) <to_call_history_range>: Use
11643 TARGET_DEFAULT_NORETURN.
11644
eb276a6b
TT
116452014-02-19 Tom Tromey <tromey@redhat.com>
11646
11647 * target-delegates.c: Rebuild.
11648 * target.c (target_verify_memory): Unconditionally delegate.
11649 * target.h (struct target_ops) <to_verify_memory>: Use
11650 TARGET_DEFAULT_NORETURN.
11651
9e538d0d
TT
116522014-02-19 Tom Tromey <tromey@redhat.com>
11653
11654 * target-delegates.c: Rebuild.
11655 * target.c (target_core_of_thread): Unconditionally delegate.
11656 * target.h (struct target_ops) <to_core_of_thread>: Use
11657 TARGET_DEFAULT_RETURN.
11658
f6fb2925
TT
116592014-02-19 Tom Tromey <tromey@redhat.com>
11660
11661 * target-delegates.c: Rebuild.
11662 * target.c (target_flash_done): Unconditionally delegate.
11663 * target.h (struct target_ops) <to_flash_done>: Use
11664 TARGET_DEFAULT_NORETURN.
11665
e8a6c6ac
TT
116662014-02-19 Tom Tromey <tromey@redhat.com>
11667
11668 * target-delegates.c: Rebuild.
11669 * target.c (target_flash_erase): Unconditionally delegate.
11670 * target.h (struct target_ops) <to_flash_erase>: Use
11671 TARGET_DEFAULT_NORETURN.
11672
7e35c012
TT
116732014-02-19 Tom Tromey <tromey@redhat.com>
11674
11675 * target-delegates.c: Rebuild.
11676 * target.c (target_get_section_table): Unconditionally delegate.
11677 * target.h (struct target_ops) <to_get_section_table>: Use
11678 TARGET_DEFAULT_RETURN.
11679
770234d3
TT
116802014-02-19 Tom Tromey <tromey@redhat.com>
11681
11682 * target-delegates.c: Rebuild.
11683 * target.c (target_pid_to_str): Unconditionally delegate.
11684 (init_dummy_target): Don't initialize to_pid_to_str.
11685 (default_pid_to_str): Rename from dummy_pid_to_str.
11686 * target.h (struct target_ops) <to_pid_to_str>: Use
11687 TARGET_DEFAULT_FUNC.
11688
09b0dc2b
TT
116892014-02-19 Tom Tromey <tromey@redhat.com>
11690
11691 * target-delegates.c: Rebuild.
11692 * target.c (target_find_new_threads): Unconditionally delegate.
11693 * target.h (struct target_ops) <to_find_new_threads>: Use
11694 TARGET_DEFAULT_RETURN.
11695
7d4f8efa
TT
116962014-02-19 Tom Tromey <tromey@redhat.com>
11697
11698 * target-delegates.c: Rebuild.
11699 * target.c (target_program_signals): Unconditionally delegate.
11700 * target.h (struct target_ops) <to_program_signals>: Use
11701 TARGET_DEFAULT_IGNORE.
11702
035cad7f
TT
117032014-02-19 Tom Tromey <tromey@redhat.com>
11704
11705 * target-delegates.c: Rebuild.
11706 * target.c (target_pass_signals): Unconditionally delegate.
11707 * target.h (struct target_ops) <to_pass_signals>: Use
11708 TARGET_DEFAULT_IGNORE.
11709
8d657035
TT
117102014-02-19 Tom Tromey <tromey@redhat.com>
11711
11712 * target-delegates.c: Rebuild.
11713 * target.c (default_mourn_inferior): New function.
11714 (target_mourn_inferior): Unconditionally delegate.
11715 * target.h (struct target_ops) <to_mourn_inferior>: Use
11716 TARGET_DEFAULT_FUNC.
11717
098dba18
TT
117182014-02-19 Tom Tromey <tromey@redhat.com>
11719
11720 * target-delegates.c: Rebuild.
11721 * target.c (default_follow_fork): New function.
11722 (target_follow_fork): Unconditionally delegate.
11723 * target.h (struct target_ops) <to_follow_fork>: Use
11724 TARGET_DEFAULT_FUNC.
11725
423a4807
TT
117262014-02-19 Tom Tromey <tromey@redhat.com>
11727
11728 * target-delegates.c: Rebuild.
11729 * target.c (target_kill): Unconditionally delegate.
11730 * target.h (struct target_ops) <to_kill>: Use
11731 TARGET_DEFAULT_NORETURN.
11732
6c7e5e5c
TT
117332014-02-19 Tom Tromey <tromey@redhat.com>
11734
11735 * target-delegates.c: Rebuild.
11736 * target.c (target_masked_watch_num_registers): Unconditionally
11737 delegate.
11738 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11739 Use TARGET_DEFAULT_RETURN.
11740
8b1c364c
TT
117412014-02-19 Tom Tromey <tromey@redhat.com>
11742
11743 * target-delegates.c: Rebuild.
11744 * target.c (target_remove_mask_watchpoint): Unconditionally
11745 delegate.
11746 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11747 TARGET_DEFAULT_RETURN.
11748
cd4ae029
TT
117492014-02-19 Tom Tromey <tromey@redhat.com>
11750
11751 * target-delegates.c: Rebuild.
11752 * target.c (target_insert_mask_watchpoint): Unconditionally
11753 delegate.
11754 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11755 TARGET_DEFAULT_RETURN.
11756
a134316b
TT
117572014-02-19 Tom Tromey <tromey@redhat.com>
11758
11759 * target-delegates.c: Rebuild.
11760 * target.c (target_ranged_break_num_registers): Unconditionally
11761 delegate.
11762 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11763 Use TARGET_DEFAULT_RETURN.
11764
ad5989bd
TT
117652014-02-19 Tom Tromey <tromey@redhat.com>
11766
11767 * target-delegates.c: Rebuild.
11768 * target.c (target_fetch_registers): Unconditionally delegate.
11769 * target.h (struct target_ops) <to_fetch_registers>: Use
11770 TARGET_DEFAULT_NORETURN.
11771
46ee7e8d
TT
117722014-02-19 Tom Tromey <tromey@redhat.com>
11773
11774 * target-delegates.c: Rebuild.
11775 * target.c (update_current_target): Don't inherit or default
11776 to_stop.
11777 * target.h (struct target_ops) <to_stop>: Use
11778 TARGET_DEFAULT_IGNORE.
11779
843f59ed
TT
117802014-02-19 Tom Tromey <tromey@redhat.com>
11781
11782 * target-delegates.c: Rebuild.
11783 * target.c (update_current_target): Don't inherit or default
11784 to_can_run_breakpoint_commands.
11785 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11786 Use TARGET_DEFAULT_RETURN.
11787
ccfde2a0
TT
117882014-02-19 Tom Tromey <tromey@redhat.com>
11789
11790 * target-delegates.c: Rebuild.
11791 * target.c (update_current_target): Don't inherit or default
11792 to_supports_evaluation_of_breakpoint_conditions.
11793 * target.h (struct target_ops)
11794 <to_supports_evaluation_of_breakpoint_conditions>: Use
11795 TARGET_DEFAULT_RETURN.
11796
0de91722
TT
117972014-02-19 Tom Tromey <tromey@redhat.com>
11798
11799 * target-delegates.c: Rebuild.
11800 * target.c (update_current_target): Don't inherit or default
11801 to_augmented_libraries_svr4_read.
11802 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11803 Use TARGET_DEFAULT_RETURN.
11804
9a7d8b48
TT
118052014-02-19 Tom Tromey <tromey@redhat.com>
11806
11807 * target-delegates.c: Rebuild.
11808 * target.c (update_current_target): Don't inherit or default
11809 to_can_use_agent.
11810 * target.h (struct target_ops) <to_can_use_agent>: Use
11811 TARGET_DEFAULT_RETURN.
11812
d9db5b21
TT
118132014-02-19 Tom Tromey <tromey@redhat.com>
11814
11815 * target-delegates.c: Rebuild.
11816 * target.c (update_current_target): Don't inherit or default
11817 to_use_agent.
11818 * target.h (struct target_ops) <to_use_agent>: Use
11819 TARGET_DEFAULT_NORETURN.
11820
92155eeb
TT
118212014-02-19 Tom Tromey <tromey@redhat.com>
11822
11823 * target-delegates.c: Rebuild.
11824 * target.c (update_current_target): Don't inherit or default
11825 to_traceframe_info.
11826 (return_null): Remove.
11827 * target.h (struct target_ops) <to_traceframe_info>: Use
11828 TARGET_DEFAULT_RETURN.
11829
d6522a22
TT
118302014-02-19 Tom Tromey <tromey@redhat.com>
11831
11832 * target-delegates.c: Rebuild.
11833 * target.c (update_current_target): Don't inherit or default
11834 to_static_tracepoint_markers_by_strid.
11835 * target.h (struct target_ops)
11836 <to_static_tracepoint_markers_by_strid>: Use
11837 TARGET_DEFAULT_NORETURN.
11838
4c3e4425
TT
118392014-02-19 Tom Tromey <tromey@redhat.com>
11840
11841 * target-delegates.c: Rebuild.
11842 * target.c (update_current_target): Don't inherit or default
11843 to_static_tracepoint_marker_at.
11844 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11845 Use TARGET_DEFAULT_RETURN.
11846
dcd6917f
TT
118472014-02-19 Tom Tromey <tromey@redhat.com>
11848
11849 * target-delegates.c: Rebuild.
11850 * target.c (update_current_target): Don't inherit or default
11851 to_set_permissions.
11852 * target.h (struct target_ops) <to_set_permissions>: Use
11853 TARGET_DEFAULT_IGNORE.
11854
22bcceee
TT
118552014-02-19 Tom Tromey <tromey@redhat.com>
11856
11857 * target-delegates.c: Rebuild.
11858 * target.c (update_current_target): Don't inherit or default
11859 to_get_tib_address.
11860 * target.h (struct target_ops) <to_get_tib_address>: Use
11861 TARGET_DEFAULT_NORETURN.
11862
8586ccaa
TT
118632014-02-19 Tom Tromey <tromey@redhat.com>
11864
11865 * target-delegates.c: Rebuild.
11866 * target.c (update_current_target): Don't inherit or default
11867 to_set_trace_notes.
11868 * target.h (struct target_ops) <to_set_trace_notes>: Use
11869 TARGET_DEFAULT_RETURN.
11870
91df8d1d
TT
118712014-02-19 Tom Tromey <tromey@redhat.com>
11872
11873 * target-delegates.c: Rebuild.
11874 * target.c (update_current_target): Don't initialize
11875 to_set_trace_buffer_size.
11876 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11877 TARGET_DEFAULT_IGNORE.
11878
8d526939
TT
118792014-02-19 Tom Tromey <tromey@redhat.com>
11880
11881 * target-delegates.c: Rebuild.
11882 * target.c (update_current_target): Don't inherit or default
11883 to_set_circular_trace_buffer.
11884 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11885 TARGET_DEFAULT_IGNORE.
11886
0bcfeddf
TT
118872014-02-19 Tom Tromey <tromey@redhat.com>
11888
11889 * target-delegates.c: Rebuild.
11890 * target.c (update_current_target): Don't inherit or default
11891 to_set_disconnected_tracing.
11892 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11893 TARGET_DEFAULT_IGNORE.
11894
9249843f
TT
118952014-02-19 Tom Tromey <tromey@redhat.com>
11896
11897 * target-delegates.c: Rebuild.
11898 * target.c (update_current_target): Don't inherit or default
11899 to_get_min_fast_tracepoint_insn_len.
11900 (return_minus_one): Remove.
11901 * target.h (struct target_ops)
11902 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11903
ace92e7d
TT
119042014-02-19 Tom Tromey <tromey@redhat.com>
11905
11906 * target-delegates.c: Rebuild.
11907 * target.c (update_current_target): Don't inherit or default
11908 to_get_raw_trace_data.
11909 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11910 TARGET_DEFAULT_NORETURN.
11911
08120467
TT
119122014-02-19 Tom Tromey <tromey@redhat.com>
11913
11914 * target-delegates.c: Rebuild.
11915 * target.c (update_current_target): Don't inherit or default
11916 to_upload_trace_state_variables.
11917 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11918 Use TARGET_DEFAULT_RETURN.
11919
1e949b00
TT
119202014-02-19 Tom Tromey <tromey@redhat.com>
11921
11922 * target-delegates.c: Rebuild.
11923 * target.c (update_current_target): Don't inherit or default
11924 to_upload_tracepoints.
11925 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11926 TARGET_DEFAULT_RETURN.
11927
a2e6c147
TT
119282014-02-19 Tom Tromey <tromey@redhat.com>
11929
11930 * target-delegates.c: Rebuild.
11931 * target.c (update_current_target): Don't inherit or default
11932 to_save_trace_data.
11933 * target.h (struct target_ops) <to_save_trace_data>: Use
11934 TARGET_DEFAULT_NORETURN.
11935
959bcd0b
TT
119362014-02-19 Tom Tromey <tromey@redhat.com>
11937
11938 * target-delegates.c: Rebuild.
11939 * target.c (update_current_target): Don't inherit or default
11940 to_get_trace_state_variable_value.
11941 * target.h (struct target_ops)
11942 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11943
afc94e66
TT
119442014-02-19 Tom Tromey <tromey@redhat.com>
11945
11946 * target-delegates.c: Rebuild.
11947 * target.c (update_current_target): Don't inherit or default
11948 to_trace_find.
11949 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11950
e51c07ea
TT
119512014-02-19 Tom Tromey <tromey@redhat.com>
11952
11953 * target-delegates.c: Rebuild.
11954 * target.c (update_current_target): Don't inherit or default
11955 to_trace_stop.
11956 * target.h (struct target_ops) <to_trace_stop>: Use
11957 TARGET_DEFAULT_NORETURN.
11958
6fea14cd
TT
119592014-02-19 Tom Tromey <tromey@redhat.com>
11960
11961 * target-delegates.c: Rebuild.
11962 * target.c (update_current_target): Don't inherit or default
11963 to_get_tracepoint_status.
11964 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11965 TARGET_DEFAULT_NORETURN.
11966
4072d4ff
TT
119672014-02-19 Tom Tromey <tromey@redhat.com>
11968
11969 * target-delegates.c: Rebuild.
11970 * target.c (update_current_target): Don't inherit or default
11971 to_get_trace_status.
11972 * target.h (struct target_ops) <to_get_trace_status>: Use
11973 TARGET_DEFAULT_RETURN.
11974
25da2e80
TT
119752014-02-19 Tom Tromey <tromey@redhat.com>
11976
11977 * target-delegates.c: Rebuild.
11978 * target.c (update_current_target): Don't inherit or default
11979 to_trace_start.
11980 * target.h (struct target_ops) <to_trace_start>: Use
11981 TARGET_DEFAULT_NORETURN.
11982
86dd181d
TT
119832014-02-19 Tom Tromey <tromey@redhat.com>
11984
11985 * target-delegates.c: Rebuild.
11986 * target.c (update_current_target): Don't inherit or default
11987 to_trace_set_readonly_regions.
11988 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11989 Use TARGET_DEFAULT_NORETURN.
11990
05c41993
TT
119912014-02-19 Tom Tromey <tromey@redhat.com>
11992
11993 * target-delegates.c: Rebuild.
11994 * target.c (update_current_target): Don't inherit or default
11995 to_disable_tracepoint.
11996 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11997 TARGET_DEFAULT_NORETURN.
11998
151f70f1
TT
119992014-02-19 Tom Tromey <tromey@redhat.com>
12000
12001 * target-delegates.c: Rebuild.
12002 * target.c (update_current_target): Don't inherit or default
12003 to_enable_tracepoint.
12004 * target.h (struct target_ops) <to_enable_tracepoint>: Use
12005 TARGET_DEFAULT_NORETURN.
12006
94eb98b9
TT
120072014-02-19 Tom Tromey <tromey@redhat.com>
12008
12009 * target-delegates.c: Rebuild.
12010 * target.c (update_current_target): Don't inherit or default
12011 to_download_trace_state_variable.
12012 * target.h (struct target_ops) <to_download_trace_state_variable>:
12013 Use TARGET_DEFAULT_NORETURN.
12014
719acc4a
TT
120152014-02-19 Tom Tromey <tromey@redhat.com>
12016
12017 * target-delegates.c: Rebuild.
12018 * target.c (update_current_target): Don't inherit or default
12019 to_can_download_tracepoint.
12020 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
12021 TARGET_DEFAULT_RETURN.
12022
9a980a22
TT
120232014-02-19 Tom Tromey <tromey@redhat.com>
12024
12025 * target-delegates.c: Rebuild.
12026 * target.c (update_current_target): Don't inherit or default
12027 to_download_tracepoint.
12028 * target.h (struct target_ops) <to_download_tracepoint>: Use
12029 TARGET_DEFAULT_NORETURN.
12030
5536135b
TT
120312014-02-19 Tom Tromey <tromey@redhat.com>
12032
12033 * target-delegates.c: Rebuild.
12034 * target.c (update_current_target): Don't inherit or default
12035 to_trace_init.
12036 * target.h (struct target_ops) <to_trace_init>: Use
12037 TARGET_DEFAULT_RETURN.
12038
9409d39e
TT
120392014-02-19 Tom Tromey <tromey@redhat.com>
12040
12041 * target-delegates.c: Rebuild.
12042 * target.c (update_current_target): Don't inherit or default
12043 to_supports_string_tracing.
12044 * target.h (struct target_ops) <to_supports_string_tracing>: Use
12045 TARGET_DEFAULT_RETURN.
12046
aab1b22d
TT
120472014-02-19 Tom Tromey <tromey@redhat.com>
12048
12049 * target-delegates.c: Rebuild.
12050 * target.c (update_current_target): Don't inherit or default
12051 to_supports_enable_disable_tracepoint.
12052 * target.h (struct target_ops)
12053 <to_supports_enable_disable_tracepoint>: Use
12054 TARGET_DEFAULT_RETURN.
12055
a7304748
TT
120562014-02-19 Tom Tromey <tromey@redhat.com>
12057
12058 * target-delegates.c: Rebuild.
12059 * target.c (update_current_target): Don't inherit or default
12060 to_supports_multi_process.
12061 * target.h (struct target_ops) <to_supports_multi_process>: Use
12062 TARGET_DEFAULT_RETURN.
12063
4229b31d
TT
120642014-02-19 Tom Tromey <tromey@redhat.com>
12065
12066 * target-delegates.c: Rebuild.
12067 * target.c (update_current_target): Don't inherit or default
12068 to_get_ada_task_ptid.
12069 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
12070 TARGET_DEFAULT_FUNC.
12071
43eba180
TT
120722014-02-19 Tom Tromey <tromey@redhat.com>
12073
12074 * target-delegates.c: Rebuild.
12075 * target.c (update_current_target): Don't inherit or default
12076 to_thread_architecture.
12077 * target.h (struct target_ops) <to_thread_architecture>: Use
12078 TARGET_DEFAULT_FUNC.
12079
fe31bf5b
TT
120802014-02-19 Tom Tromey <tromey@redhat.com>
12081
12082 * target-delegates.c: Rebuild.
12083 * target.c (update_current_target): Don't inherit or default
12084 to_execution_direction.
12085 * target.h (struct target_ops) <to_execution_direction>: Use
12086 TARGET_DEFAULT_FUNC.
12087
53e1cfc7
TT
120882014-02-19 Tom Tromey <tromey@redhat.com>
12089
12090 * target-delegates.c: Rebuild.
12091 * target.c (update_current_target): Don't inherit or default
12092 to_can_execute_reverse.
12093 * target.h (struct target_ops) <to_can_execute_reverse>: Use
12094 TARGET_DEFAULT_RETURN.
12095 (target_can_execute_reverse): Unconditionally delegate.
12096
9bb9d61d
TT
120972014-02-19 Tom Tromey <tromey@redhat.com>
12098
12099 * target-delegates.c: Rebuild.
12100 * target.c (update_current_target): Don't inherit or default
12101 to_goto_bookmark.
12102 (dummy_goto_bookmark): Remove.
12103 (init_dummy_target): Don't inherit or default to_goto_bookmark.
12104 * target.h (struct target_ops) <to_goto_bookmark>: Use
12105 TARGET_DEFAULT_NORETURN.
12106
3dbafbbb
TT
121072014-02-19 Tom Tromey <tromey@redhat.com>
12108
12109 * target-delegates.c: Rebuild.
12110 * target.c (update_current_target): Don't inherit or default
12111 to_get_bookmark.
12112 (dummy_get_bookmark): Remove.
12113 (init_dummy_target): Don't inherit or default to_get_bookmark.
12114 * target.h (struct target_ops) <to_get_bookmark>: Use
12115 TARGET_DEFAULT_NORETURN
12116
16f796b1
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_make_corefile_notes.
12122 (init_dummy_target): Don't initialize to_make_corefile_notes.
12123 * target.h (struct target_ops) <to_make_corefile_notes>: Use
12124 TARGET_DEFAULT_FUNC.
12125
0b5a2719
TT
121262014-02-19 Tom Tromey <tromey@redhat.com>
12127
12128 * target-delegates.c: Rebuild.
12129 * target.c (update_current_target): Don't inherit or default
12130 to_find_memory_regions.
12131 (init_dummy_target): Don't initialize to_find_memory_regions.
12132 * target.h (struct target_ops) <to_find_memory_regions>: Use
12133 TARGET_DEFAULT_FUNC.
12134
d9cb0195
TT
121352014-02-19 Tom Tromey <tromey@redhat.com>
12136
12137 * target-delegates.c: Rebuild.
12138 * target.c (update_current_target): Don't inherit or default
12139 to_log_command.
12140 * target.h (struct target_ops) <to_log_command>: Use
12141 TARGET_DEFAULT_IGNORE.
12142 (target_log_command): Unconditionally delegate.
12143
830ca330
TT
121442014-02-19 Tom Tromey <tromey@redhat.com>
12145
12146 * target-delegates.c: Rebuild.
12147 * target.c (update_current_target): Don't inherit or default
12148 to_pid_to_exec_file.
12149 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12150 TARGET_DEFAULT_RETURN.
12151
825828fc
TT
121522014-02-19 Tom Tromey <tromey@redhat.com>
12153
12154 * target-delegates.c: Rebuild.
12155 * target.c (update_current_target): Don't inherit or default
12156 to_thread_name.
12157 (target_thread_name): Unconditionally delegate.
12158 * target.h (struct target_ops) <to_thread_name>: Use
12159 TARGET_DEFAULT_RETURN.
12160
4a7e6dda
TT
121612014-02-19 Tom Tromey <tromey@redhat.com>
12162
12163 * target-delegates.c: Rebuild.
12164 * target.c (update_current_target): Don't inherit or default
12165 to_extra_thread_info.
12166 * target.h (struct target_ops) <to_extra_thread_info>: Use
12167 TARGET_DEFAULT_RETURN.
12168
0db88c1d
TT
121692014-02-19 Tom Tromey <tromey@redhat.com>
12170
12171 * target-delegates.c: Rebuild.
12172 * target.c (update_current_target): Don't inherit or default
12173 to_has_exited.
12174 * target.h (struct target_ops) <to_has_exited>: Use
12175 TARGET_DEFAULT_RETURN..
12176
6a9fa051
TT
121772014-02-19 Tom Tromey <tromey@redhat.com>
12178
12179 * target-delegates.c: Rebuild.
12180 * target.c (update_current_target): Don't inherit or default
12181 to_set_syscall_catchpoint.
12182 (return_one): Remove.
12183 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12184 TARGET_DEFAULT_RETURN.
12185
62f64d7a
TT
121862014-02-19 Tom Tromey <tromey@redhat.com>
12187
12188 * target-delegates.c: Rebuild.
12189 * target.c (update_current_target): Don't inherit or default
12190 to_insert_exec_catchpoint.
12191 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12192 TARGET_DEFAULT_RETURN.
12193
cda0f38c
TT
121942014-01-08 Tom Tromey <tromey@redhat.com>
12195
12196 * target-delegates.c: Rebuild.
12197 * target.c (update_current_target): Don't inherit or default
12198 to_insert_exec_catchpoint.
12199 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12200 TARGET_DEFAULT_RETURN.
12201
95c3375e
TT
122022014-02-19 Tom Tromey <tromey@redhat.com>
12203
12204 * target-delegates.c: Rebuild.
12205 * target.c (update_current_target): Don't inherit or default
12206 to_remove_vfork_catchpoint.
12207 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12208 TARGET_DEFAULT_RETURN.
12209
7e18a8dc
TT
122102014-02-19 Tom Tromey <tromey@redhat.com>
12211
12212 * target-delegates.c: Rebuild.
12213 * target.c (update_current_target): Don't inherit or default
12214 to_insert_vfork_catchpoint.
12215 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12216 TARGET_DEFAULT_RETURN.
12217
e1a21fb7
TT
122182014-02-19 Tom Tromey <tromey@redhat.com>
12219
12220 * target-delegates.c: Rebuild.
12221 * target.c (update_current_target): Don't inherit or default
12222 to_remove_fork_catchpoint.
12223 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12224 TARGET_DEFAULT_RETURN.
12225
5958ebeb
TT
122262014-02-19 Tom Tromey <tromey@redhat.com>
12227
12228 * target-delegates.c: Rebuild.
12229 * target.c (update_current_target): Don't inherit or default
12230 to_insert_fork_catchpoint.
12231 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12232 TARGET_DEFAULT_RETURN.
12233
340ba4bf
TT
122342014-02-19 Tom Tromey <tromey@redhat.com>
12235
12236 * target-delegates.c: Rebuild.
12237 * target.c (update_current_target): Don't inherit or default
12238 to_post_startup_inferior.
12239 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12240 TARGET_DEFAULT_IGNORE.
12241
7634da87
TT
122422014-02-19 Tom Tromey <tromey@redhat.com>
12243
12244 * target-delegates.c: Rebuild.
12245 * target.c (update_current_target): Don't inherit or default
12246 to_load.
12247 * target.h (struct target_ops) <to_load>: Use
12248 TARGET_DEFAULT_NORETURN.
12249
e19e919f
TT
122502014-02-19 Tom Tromey <tromey@redhat.com>
12251
12252 * target-delegates.c: Rebuild.
12253 * target.c (update_current_target): Don't inherit or default
12254 to_terminal_info.
12255 * target.h (struct target_ops) <to_terminal_info>: Use
12256 TARGET_DEFAULT_FUNC.
12257
c6ea8f79
TT
122582014-02-19 Tom Tromey <tromey@redhat.com>
12259
12260 * target-delegates.c: Rebuild.
12261 * target.c (update_current_target): Don't inherit or default
12262 to_terminal_save_ours.
12263 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12264 TARGET_DEFAULT_IGNORE.
12265
e4a733f1
TT
122662014-02-19 Tom Tromey <tromey@redhat.com>
12267
12268 * target-delegates.c: Rebuild.
12269 * target.c (update_current_target): Don't inherit or default
12270 to_terminal_ours.
12271 * target.h (struct target_ops) <to_terminal_ours>: Use
12272 TARGET_DEFAULT_IGNORE.
12273
74fcbef9
TT
122742014-02-19 Tom Tromey <tromey@redhat.com>
12275
12276 * target-delegates.c: Rebuild.
12277 * target.c (update_current_target): Don't inherit or default
12278 to_terminal_ours_for_output.
12279 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12280 TARGET_DEFAULT_IGNORE.
12281
ddeaacc9
TT
122822014-02-19 Tom Tromey <tromey@redhat.com>
12283
12284 * target-delegates.c: Rebuild.
12285 * target.c (update_current_target): Don't inherit or default
12286 to_terminal_inferior.
12287 * target.h (struct target_ops) <to_terminal_inferior>: Use
12288 TARGET_DEFAULT_IGNORE.
12289
0343661d
TT
122902014-02-19 Tom Tromey <tromey@redhat.com>
12291
12292 * target-delegates.c: Rebuild.
12293 * target.c (update_current_target): Don't inherit or default
12294 to_terminal_init.
12295 * target.h (struct target_ops) <to_terminal_init>: Use
12296 TARGET_DEFAULT_IGNORE.
12297
77cdffe9
TT
122982014-02-19 Tom Tromey <tromey@redhat.com>
12299
12300 * target-delegates.c: Rebuild.
12301 * target.c (update_current_target): Don't inherit or default
12302 to_can_accel_watchpoint_condition.
12303 * target.h (struct target_ops)
12304 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12305
d03655e4
TT
123062014-02-19 Tom Tromey <tromey@redhat.com>
12307
12308 * target-delegates.c: Rebuild.
12309 * target.c (update_current_target): Don't inherit or default
12310 to_region_ok_for_hw_watchpoint.
12311 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12312 Use TARGET_DEFAULT_FUNC.
12313
65f160a9
TT
123142014-02-19 Tom Tromey <tromey@redhat.com>
12315
12316 * target-delegates.c: Rebuild.
12317 * target.c (update_current_target): Don't inherit or default
12318 to_watchpoint_addr_within_range.
12319 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12320 Use TARGET_DEFAULT_FUNC.
12321
61dd109f
TT
123222014-02-19 Tom Tromey <tromey@redhat.com>
12323
12324 * target-delegates.c: Rebuild.
12325 * target.c (update_current_target): Don't inherit or default
12326 to_remove_watchpoint.
12327 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12328 TARGET_DEFAULT_NORETURN.
12329
016facd4
TT
123302014-02-19 Tom Tromey <tromey@redhat.com>
12331
12332 * target-delegates.c: Rebuild.
12333 * target.c (update_current_target): Don't inherit or default
12334 to_insert_watchpoint.
12335 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12336 TARGET_DEFAULT_RETURN.
12337
418dabac
TT
123382014-02-19 Tom Tromey <tromey@redhat.com>
12339
12340 * target-delegates.c: Rebuild.
12341 * target.c (update_current_target): Don't inherit or default
12342 to_remove_hw_breakpoint.
12343 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12344 TARGET_DEFAULT_RETURN.
12345
61b371f9
TT
123462014-02-19 Tom Tromey <tromey@redhat.com>
12347
12348 * target-delegates.c: Rebuild.
12349 * target.c (update_current_target): Don't inherit or default
12350 to_insert_hw_breakpoint.
12351 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12352 TARGET_DEFAULT_RETURN.
12353
52b51d06
TT
123542014-02-19 Tom Tromey <tromey@redhat.com>
12355
12356 * target-delegates.c: Rebuild.
12357 * target.c (update_current_target): Don't inherit or default
12358 to_can_use_hw_breakpoint.
12359 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12360 TARGET_DEFAULT_RETURN.
12361
f86e59b2
TT
123622014-02-19 Tom Tromey <tromey@redhat.com>
12363
12364 * target-delegates.c: Rebuild.
12365 * target.c (update_current_target): Don't inherit or default
12366 to_files_info.
12367 * target.h (struct target_ops) <to_files_info>: Use
12368 TARGET_DEFAULT_IGNORE.
12369
6c628163
TT
123702014-02-19 Tom Tromey <tromey@redhat.com>
12371
12372 * target-delegates.c: Rebuild.
12373 * target.c (update_current_target): Don't inherit or default
12374 to_store.
12375 * target.h (struct target_ops) <to_store>: Use
12376 TARGET_DEFAULT_NORETURN.
12377
bebd3233
TT
123782014-02-19 Tom Tromey <tromey@redhat.com>
12379
12380 * target-delegates.c: Rebuild.
12381 * target.c (update_current_target): Don't inherit or default
12382 to_post_attach.
12383 * target.h (struct target_ops) <to_post_attach>: Use
12384 TARGET_DEFAULT_IGNORE.
12385
a53f3625
TT
123862014-02-19 Tom Tromey <tromey@redhat.com>
12387
12388 * target-delegates.c: Rebuild.
12389 * target.c (update_current_target): Don't inherit or default
12390 to_rcmd.
12391 (default_rcmd): New function.
12392 (do_monitor_command): Unconditionally delegate.
12393 * target.h (struct target_ops) <to_rmcd>: Use
12394 TARGET_DEFAULT_FUNC.
12395
e9a29200
TT
123962014-02-19 Tom Tromey <tromey@redhat.com>
12397
12398 * target-delegates.c: Rebuild.
12399 * target.c (init_dummy_target): Don't initialize to_attach.
12400 (target_attach): Unconditionally delegate.
12401 * target.h (struct target_ops) <to_attach>: Use
12402 TARGET_DEFAULT_FUNC.
12403
09da0d0a
TT
124042014-02-19 Tom Tromey <tromey@redhat.com>
12405
12406 * target-delegates.c: Rebuild.
12407 * target.c (target_detach): Unconditionally delegate.
12408 (init_dummy_target): Don't initialize to_detach.
12409 * target.h (struct target_ops) <to_detach>: Use
12410 TARGET_DEFAULT_IGNORE.
12411
5436ff03
TT
124122014-02-19 Tom Tromey <tromey@redhat.com>
12413
12414 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12415 Add argument.
12416 (target_augmented_libraries_svr4_read): Add argument.
12417 * target.c (update_current_target): Update.
12418 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12419 argument.
12420
f0d960ea
TT
124212014-02-19 Tom Tromey <tromey@redhat.com>
12422
12423 * target.h (struct target_ops) <to_call_history_range>: Add
12424 argument.
12425 * target.c (target_call_history_range): Add argument.
12426 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12427 argument.
12428 (record_btrace_call_history_from): Update.
12429
ec0aea04
TT
124302014-02-19 Tom Tromey <tromey@redhat.com>
12431
12432 * target.h (struct target_ops) <to_call_history_from>: Add
12433 argument.
12434 * target.c (target_call_history_from): Add argument.
12435 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12436 argument.
12437
5df2fcba
TT
124382014-02-19 Tom Tromey <tromey@redhat.com>
12439
12440 * target.h (struct target_ops) <to_call_history>: Add argument.
12441 * target.c (target_call_history): Add argument.
12442 * record-btrace.c (record_btrace_call_history): Add 'self'
12443 argument.
12444
4e99c6b7
TT
124452014-02-19 Tom Tromey <tromey@redhat.com>
12446
12447 * target.h (struct target_ops) <to_insn_history_range>: Add
12448 argument.
12449 * target.c (target_insn_history_range): Add argument.
12450 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12451 argument.
12452 (record_btrace_insn_history_from): Update.
12453
9abc3ff3
TT
124542014-02-19 Tom Tromey <tromey@redhat.com>
12455
12456 * target.h (struct target_ops) <to_insn_history_from>: Add
12457 argument.
12458 * target.c (target_insn_history_from): Add argument.
12459 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12460 argument.
12461
7a6c5609
TT
124622014-02-19 Tom Tromey <tromey@redhat.com>
12463
12464 * target.h (struct target_ops) <to_insn_history>: Add argument.
12465 * target.c (target_insn_history): Add argument.
12466 * record-btrace.c (record_btrace_insn_history): Add 'self'
12467 argument.
12468
606183ac
TT
124692014-02-19 Tom Tromey <tromey@redhat.com>
12470
12471 * target.h (struct target_ops) <to_goto_record>: Add argument.
12472 * target.c (target_goto_record): Add argument.
12473 * record-full.c (record_full_goto): Add 'self' argument.
12474 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12475
307a1b91
TT
124762014-02-19 Tom Tromey <tromey@redhat.com>
12477
12478 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12479 * target.c (target_goto_record_end): Add argument.
12480 * record-full.c (record_full_goto_end): Add 'self' argument.
12481 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12482
08475817
TT
124832014-02-19 Tom Tromey <tromey@redhat.com>
12484
12485 * target.h (struct target_ops) <to_goto_record_begin>: Add
12486 argument.
12487 * target.c (target_goto_record_begin): Add argument.
12488 * record-full.c (record_full_goto_begin): Add 'self' argument.
12489 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12490 argument.
12491
1c63c994
TT
124922014-02-19 Tom Tromey <tromey@redhat.com>
12493
12494 * target.h (struct target_ops) <to_record_is_replaying>: Add
12495 argument.
12496 * target.c (target_record_is_replaying): Add argument.
12497 * record-full.c (record_full_is_replaying): Add 'self' argument.
12498 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12499 argument.
12500 (record_btrace_xfer_partial, record_btrace_store_registers)
12501 (record_btrace_prepare_to_store, record_btrace_resume)
12502 (record_btrace_wait, record_btrace_decr_pc_after_break)
12503 (record_btrace_find_new_threads, record_btrace_thread_alive):
12504 Update.
12505
d1b55219
TT
125062014-02-19 Tom Tromey <tromey@redhat.com>
12507
12508 * target.h (struct target_ops) <to_delete_record>: Add argument.
12509 * target.c (target_delete_record): Add argument.
12510 * record-full.c (record_full_delete): Add 'self' argument.
12511
1390f529
TT
125122014-02-19 Tom Tromey <tromey@redhat.com>
12513
12514 * target.h (struct target_ops) <to_save_record>: Add argument.
12515 * target.c (target_save_record): Add argument.
12516 * record-full.c (record_full_save): Add 'self' argument.
12517 (record_full_save): Add 'self' argument.
12518
630d6a4a
TT
125192014-02-19 Tom Tromey <tromey@redhat.com>
12520
12521 * target.h (struct target_ops) <to_info_record>: Add argument.
12522 * target.c (target_info_record): Add argument.
12523 * record.c (info_record_command): Add argument.
12524 * record-full.c (record_full_info): Add 'self' argument.
12525 * record-btrace.c (record_btrace_info): Add 'self' argument.
12526
c6cd7c02
TT
125272014-02-19 Tom Tromey <tromey@redhat.com>
12528
12529 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12530 * target.c (target_stop_recording): Add argument.
12531 * record.c (record_stop): Add argument.
12532 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12533 argument.
12534
39c49f83
TT
125352014-02-19 Tom Tromey <tromey@redhat.com>
12536
12537 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12538 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12539 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12540 argument.
12541 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12542 (_initialize_amd64_linux_nat): Use it.
12543 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12544 (_initialize_i386_linux_nat): Use it.
12545
1777056d
TT
125462014-02-19 Tom Tromey <tromey@redhat.com>
12547
12548 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12549 * target.c (target_teardown_btrace): Add argument.
12550 * remote.c (remote_teardown_btrace): Add 'self' argument.
12551 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12552 argument.
12553 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12554 argument.
12555
25e95349
TT
125562014-02-19 Tom Tromey <tromey@redhat.com>
12557
12558 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12559 * target.c (target_disable_btrace): Add argument.
12560 * remote.c (remote_disable_btrace): Add 'self' argument.
12561 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12562 argument.
12563 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12564 argument.
12565
e3c49f88
TT
125662014-02-19 Tom Tromey <tromey@redhat.com>
12567
12568 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12569 * target.c (target_enable_btrace): Add argument.
12570 * remote.c (remote_enable_btrace): Add 'self' argument.
12571 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12572 argument.
12573 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12574 argument.
12575
fe38f897
TT
125762014-02-19 Tom Tromey <tromey@redhat.com>
12577
12578 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12579 (target_can_use_agent): Add argument.
12580 * target.c (update_current_target): Update.
12581 * remote.c (remote_can_use_agent): Add 'self' argument.
12582 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12583
2c152180
TT
125842014-02-19 Tom Tromey <tromey@redhat.com>
12585
12586 * target.h (struct target_ops) <to_use_agent>: Add argument.
12587 (target_use_agent): Add argument.
12588 * target.c (update_current_target): Update.
12589 * remote.c (remote_use_agent): Add 'self' argument.
12590 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12591
a893e81f
TT
125922014-02-19 Tom Tromey <tromey@redhat.com>
12593
12594 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12595 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12596 (target_traceframe_info): Add argument.
12597 * target.c (update_current_target): Update.
12598 * remote.c (remote_traceframe_info): Add 'self' argument.
12599 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12600
c686c57f
TT
126012014-02-19 Tom Tromey <tromey@redhat.com>
12602
12603 * target.h (target_static_tracepoint_markers_by_strid): Add
12604 argument.
12605 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12606 'self' argument.
12607 * target.c (update_current_target): Update.
12608 * remote.c (struct target_ops)
12609 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12610 * linux-nat.c (struct target_ops)
12611 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12612
61fc905d
TT
126132014-02-19 Tom Tromey <tromey@redhat.com>
12614
12615 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12616 Add argument.
12617 (target_static_tracepoint_marker_at): Add argument.
12618 * target.c (update_current_target): Update.
12619 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12620 argument.
12621
c378d69d
TT
126222014-02-19 Tom Tromey <tromey@redhat.com>
12623
12624 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12625 (target_set_permissions): Add argument.
12626 * target.c (update_current_target): Update.
12627 * remote.c (remote_set_permissions): Add 'self' argument.
12628 (remote_start_remote): Update.
12629
bd7ae0f5
TT
126302014-02-19 Tom Tromey <tromey@redhat.com>
12631
12632 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12633 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12634 (target_get_tib_address): Add argument.
12635 * target.c (update_current_target): Update.
12636 * remote.c (remote_get_tib_address): Add 'self' argument.
12637
d9e68a2c
TT
126382014-02-19 Tom Tromey <tromey@redhat.com>
12639
12640 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12641 (target_set_trace_notes): Add argument.
12642 * target.c (update_current_target): Update.
12643 * remote.c (remote_set_trace_notes): Add 'self' argument.
12644
4da384be
TT
126452014-02-19 Tom Tromey <tromey@redhat.com>
12646
12647 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12648 argument.
12649 (target_set_trace_buffer_size): Add argument.
12650 * target.c (update_current_target): Update.
12651 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12652
736d5b1f
TT
126532014-02-19 Tom Tromey <tromey@redhat.com>
12654
12655 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12656 argument.
12657 (target_set_circular_trace_buffer): Add argument.
12658 * target.c (update_current_target): Update.
12659 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12660 argument.
12661
37b25738
TT
126622014-02-19 Tom Tromey <tromey@redhat.com>
12663
12664 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12665 argument.
12666 (target_set_disconnected_tracing): Add argument.
12667 * target.c (update_current_target): Update.
12668 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12669
0e67620a
TT
126702014-02-19 Tom Tromey <tromey@redhat.com>
12671
12672 * target.h (struct target_ops)
12673 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12674 (target_get_min_fast_tracepoint_insn_len): Add argument.
12675 * target.c (update_current_target): Update.
12676 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12677 argument.
12678
88ee6f45
TT
126792014-02-19 Tom Tromey <tromey@redhat.com>
12680
12681 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12682 argument.
12683 (target_get_raw_trace_data): Add argument.
12684 * target.c (update_current_target): Update.
12685 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12686
181e3713
TT
126872014-02-19 Tom Tromey <tromey@redhat.com>
12688
12689 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12690 Add argument.
12691 (target_upload_trace_state_variables): Add argument.
12692 * target.c (update_current_target): Update.
12693 * remote.c (remote_upload_trace_state_variables): Add 'self'
12694 argument.
12695 (remote_start_remote): Update.
12696
ab6617cc
TT
126972014-02-19 Tom Tromey <tromey@redhat.com>
12698
12699 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12700 argument.
12701 (target_upload_tracepoints): Add argument.
12702 * target.c (update_current_target): Update.
12703 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12704 (remote_start_remote): Update.
12705
dc3decaf
TT
127062014-02-19 Tom Tromey <tromey@redhat.com>
12707
12708 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12709 (target_save_trace_data): Add argument.
12710 * target.c (update_current_target): Update.
12711 * remote.c (remote_save_trace_data): Add 'self' argument.
12712
4011015b
TT
127132014-02-19 Tom Tromey <tromey@redhat.com>
12714
12715 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12716 argument.
12717 * target.h (struct target_ops)
12718 <to_get_trace_state_variable_value>: Add argument.
12719 (target_get_trace_state_variable_value): Add argument.
12720 * target.c (update_current_target): Update.
12721 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12722 argument.
12723 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12724
bd4c6793
TT
127252014-02-19 Tom Tromey <tromey@redhat.com>
12726
12727 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12728 * target.h (struct target_ops) <to_trace_find>: Add argument.
12729 (target_trace_find): Add argument.
12730 * target.c (update_current_target): Update.
12731 * remote.c (remote_trace_find): Add 'self' argument.
12732 * ctf.c (ctf_trace_find): Add 'self' argument.
12733
74499f1b
TT
127342014-02-19 Tom Tromey <tromey@redhat.com>
12735
12736 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12737 (target_trace_stop): Add argument.
12738 * target.c (update_current_target): Update.
12739 * remote.c (remote_trace_stop): Add 'self' argument.
12740
db90e85c
TT
127412014-02-19 Tom Tromey <tromey@redhat.com>
12742
12743 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12744 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12745 argument.
12746 (target_get_tracepoint_status): Add argument.
12747 * target.c (update_current_target): Update.
12748 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12749
8bd200f1
TT
127502014-02-19 Tom Tromey <tromey@redhat.com>
12751
12752 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12753 * target.h (struct target_ops) <to_get_trace_status>: Add
12754 argument.
12755 (target_get_trace_status): Add argument.
12756 * target.c (update_current_target): Update.
12757 * remote.c (remote_get_trace_status): Add 'self' argument.
12758 (remote_start_remote, remote_can_download_tracepoint): Update.
12759 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12760
e2d1aae3
TT
127612014-02-19 Tom Tromey <tromey@redhat.com>
12762
12763 * target.h (struct target_ops) <to_trace_start>: Add argument.
12764 (target_trace_start): Add argument.
12765 * target.c (update_current_target): Update.
12766 * remote.c (remote_trace_start): Add 'self' argument.
12767
583f9a86
TT
127682014-02-19 Tom Tromey <tromey@redhat.com>
12769
12770 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12771 Add argument.
12772 (target_trace_set_readonly_regions): Add argument.
12773 * target.c (update_current_target): Update.
12774 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12775 argument.
12776
780b049c
TT
127772014-02-19 Tom Tromey <tromey@redhat.com>
12778
12779 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12780 argument.
12781 (target_disable_tracepoint): Add argument.
12782 * target.c (update_current_target): Update.
12783 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12784
46670d57
TT
127852014-02-19 Tom Tromey <tromey@redhat.com>
12786
12787 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12788 argument.
12789 (target_enable_tracepoint): Add argument.
12790 * target.c (update_current_target): Update.
12791 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12792
559d2b81
TT
127932014-02-19 Tom Tromey <tromey@redhat.com>
12794
12795 * target.h (struct target_ops) <to_download_trace_state_variable>:
12796 Add argument.
12797 (target_download_trace_state_variable): Add argument.
12798 * target.c (update_current_target): Update.
12799 * remote.c (remote_download_trace_state_variable): Add 'self'
12800 argument.
12801
a52a8357
TT
128022014-02-19 Tom Tromey <tromey@redhat.com>
12803
12804 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12805 argument.
12806 (target_can_download_tracepoint): Add argument.
12807 * target.c (update_current_target): Update.
12808 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12809
548f7808
TT
128102014-02-19 Tom Tromey <tromey@redhat.com>
12811
12812 * target.h (struct target_ops) <to_download_tracepoint>: Add
12813 argument.
12814 (target_download_tracepoint): Add argument.
12815 * target.c (update_current_target): Update.
12816 * remote.c (remote_download_tracepoint): Add 'self' argument.
12817
ecae04e1
TT
128182014-02-19 Tom Tromey <tromey@redhat.com>
12819
12820 * target.h (struct target_ops) <to_trace_init>: Add argument.
12821 (target_trace_init): Add argument.
12822 * target.c (update_current_target): Update.
12823 * remote.c (remote_trace_init): Add 'self' argument.
12824
fab5aa7c
TT
128252014-02-19 Tom Tromey <tromey@redhat.com>
12826
12827 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12828 * target.c (target_fileio_readlink): Add argument.
12829 * remote.c (remote_hostio_readlink): Add 'self' argument.
12830 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12831
dbbca37d
TT
128322014-02-19 Tom Tromey <tromey@redhat.com>
12833
12834 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12835 * target.c (target_fileio_unlink): Add argument.
12836 * remote.c (remote_hostio_unlink): Add 'self' argument.
12837 (remote_file_delete): Update.
12838 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12839
df39ea25
TT
128402014-02-19 Tom Tromey <tromey@redhat.com>
12841
12842 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12843 * target.c (target_fileio_close): Add argument.
12844 * remote.c (remote_hostio_close): Add 'self' argument.
12845 (remote_hostio_close_cleanup): Update.
12846 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12847 Update.
12848 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12849
a3be983c
TT
128502014-02-19 Tom Tromey <tromey@redhat.com>
12851
12852 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12853 * target.c (target_fileio_pread): Add argument.
12854 * remote.c (remote_hostio_pread): Add 'self' argument.
12855 (remote_bfd_iovec_pread, remote_file_get): Update.
12856 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12857
0d866f62
TT
128582014-02-19 Tom Tromey <tromey@redhat.com>
12859
12860 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12861 * target.c (target_fileio_pwrite): Add argument.
12862 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12863 (remote_file_put): Update.
12864 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12865
cd897586
TT
128662014-02-19 Tom Tromey <tromey@redhat.com>
12867
12868 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12869 * target.c (target_fileio_open): Add argument.
12870 * remote.c (remote_hostio_open): Add 'self' argument.
12871 (remote_bfd_iovec_open): Add 'self' argument.
12872 (remote_file_put): Add 'self' argument.
12873 (remote_file_get): Add 'self' argument.
12874 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12875
78eff0ec
TT
128762014-02-19 Tom Tromey <tromey@redhat.com>
12877
12878 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12879 Add argument.
12880 (target_can_run_breakpoint_commands): Add argument.
12881 * target.c (update_current_target): Update.
12882 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12883 argument.
12884 (remote_insert_breakpoint): Add 'self' argument.
12885 (remote_insert_hw_breakpoint): Add 'self' argument.
12886 (remote_can_run_breakpoint_commands): Add 'self' argument.
12887
efcc2da7
TT
128882014-02-19 Tom Tromey <tromey@redhat.com>
12889
12890 * target.h (struct target_ops)
12891 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12892 (target_supports_evaluation_of_breakpoint_conditions): Add
12893 argument.
12894 * target.c (update_current_target): Update.
12895 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12896 argument.
12897 (remote_insert_breakpoint): Add 'self' argument.
12898 (remote_insert_hw_breakpoint): Add 'self' argument.
12899 (remote_supports_cond_breakpoints): Add 'self' argument.
12900
6de37a3a
TT
129012014-02-19 Tom Tromey <tromey@redhat.com>
12902
12903 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12904 argument.
12905 (target_supports_string_tracing): Add argument.
12906 * target.c (update_current_target): Update.
12907 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12908
2bfc0540
TT
129092014-02-19 Tom Tromey <tromey@redhat.com>
12910
12911 * target.h (struct target_ops)
12912 <to_supports_disable_randomization>: Add argument.
12913 * target.c (find_default_supports_disable_randomization): Add
12914 argument.
12915 (target_supports_disable_randomization): Add argument.
12916 (find_default_supports_disable_randomization): Add 'self'
12917 argument.
12918 * remote.c (extended_remote_supports_disable_randomization): Add
12919 'self' argument.
12920 (remote_supports_disable_randomization): Add 'self' argument.
12921 (extended_remote_create_inferior): Update.
12922 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12923 'self' argument.
12924
7d178d6a
TT
129252014-02-19 Tom Tromey <tromey@redhat.com>
12926
12927 * target.h (struct target_ops)
12928 <to_supports_enable_disable_tracepoint>: Add argument.
12929 (target_supports_enable_disable_tracepoint): Add argument.
12930 * target.c (update_current_target): Update.
12931 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12932 argument.
12933
86ce2668
TT
129342014-02-19 Tom Tromey <tromey@redhat.com>
12935
12936 * target.h (struct target_ops) <to_supports_multi_process>: Add
12937 argument.
12938 (target_supports_multi_process): Add argument.
12939 * target.c (update_current_target): Update.
12940 * remote.c (remote_supports_multi_process): Add 'self' argument.
12941 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12942 argument.
12943 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12944 argument.
12945
4c612759
TT
129462014-02-19 Tom Tromey <tromey@redhat.com>
12947
12948 * target.h (struct target_ops) <to_execution_direction>: Add
12949 argument.
12950 (target_execution_direction): Add argument.
12951 * target.c (default_execution_direction): Add 'self' argument.
12952 * record-full.c (record_full_execution_direction): Add 'self'
12953 argument.
12954
19db3e69
TT
129552014-02-19 Tom Tromey <tromey@redhat.com>
12956
12957 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12958 argument.
12959 (target_can_execute_reverse): Add argument.
12960 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12961 * record-full.c (record_full_can_execute_reverse): Add 'self'
12962 argument.
12963 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12964 argument.
12965
1e6b91a4
TT
129662014-02-19 Tom Tromey <tromey@redhat.com>
12967
12968 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12969 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12970 argument.
12971 (target_get_ada_task_ptid): Add argument.
12972 * target.c (update_current_target): Update.
12973 (default_get_ada_task_ptid): Add 'self' argument.
12974 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12975 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12976 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12977 argument.
12978 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12979 argument.
12980 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12981 argument.
12982 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12983 argument.
12984 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12985 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12986 argument.
12987
3c80fb48
TT
129882014-02-19 Tom Tromey <tromey@redhat.com>
12989
12990 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12991 (target_goto_bookmark): Add argument.
12992 * target.c (dummy_goto_bookmark): Add 'self' argument.
12993 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12994
dd0e2830
TT
129952014-02-19 Tom Tromey <tromey@redhat.com>
12996
12997 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12998 (target_get_bookmark): Add argument.
12999 * target.c (dummy_get_bookmark): Add 'self' argument.
13000 * record-full.c (record_full_get_bookmark): Add 'self' argument.
13001
fc6691b2
TT
130022014-02-19 Tom Tromey <tromey@redhat.com>
13003
13004 * target.h (struct target_ops) <to_make_corefile_notes>: Add
13005 argument.
13006 (target_make_corefile_notes): Add argument.
13007 * target.c (dummy_make_corefile_notes): Add 'self' argument.
13008 * procfs.c (procfs_make_note_section): Add 'self' argument.
13009 (procfs_make_note_section): Add 'self' argument.
13010 (procfs_make_note_section): Add 'self' argument.
13011 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
13012 argument.
13013 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
13014 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
13015 * exec.c (exec_make_note_section): Add 'self' argument.
13016 (exec_make_note_section): Add 'self' argument.
13017
2e73927c
TT
130182014-02-19 Tom Tromey <tromey@redhat.com>
13019
13020 * target.h (struct target_ops) <to_find_memory_regions>: Add
13021 argument.
13022 (target_find_memory_regions): Add argument.
13023 * target.c (dummy_find_memory_regions): Add 'self' argument.
13024 * procfs.c (proc_find_memory_regions): Add 'self' argument.
13025 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
13026 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
13027 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
13028 * exec. (exec_do_find_memory_regions): New global.
13029 (exec_set_find_memory_regions): Rewrite.
13030 (exec_find_memory_regions): New function.
13031 (init_exec_ops): Use exec_find_memory_regions.
13032
2a9a2795
TT
130332014-02-19 Tom Tromey <tromey@redhat.com>
13034
13035 * target.h (struct target_ops) <to_supports_non_stop>: Add
13036 argument.
13037 * target.c (find_default_supports_non_stop): Add argument.
13038 (target_supports_non_stop): Add argument.
13039 (find_default_supports_non_stop): Add 'self' argument.
13040 * remote.c (remote_supports_non_stop): Add 'self' argument.
13041 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
13042
4ab76ea3
TT
130432014-02-19 Tom Tromey <tromey@redhat.com>
13044
13045 * target.h (struct target_ops) <to_log_command>: Add argument.
13046 (target_log_command): Add argument.
13047 * serial.h (serial_log_command): Add 'self' argument.
13048 * serial.c (serial_log_command): Add 'self' argument.
13049
8dd27370
TT
130502014-02-19 Tom Tromey <tromey@redhat.com>
13051
13052 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
13053 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
13054 argument.
13055 (target_pid_to_exec_file): Add argument.
13056 * target.c (debug_to_pid_to_exec_file): Add argument.
13057 (update_current_target): Update.
13058 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
13059 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
13060 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
13061 (linux_handle_extended_wait): Update.
13062 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
13063 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
13064 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
13065 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
13066
1aac633b
TT
130672014-02-19 Tom Tromey <tromey@redhat.com>
13068
13069 * target.h (struct target_ops) <to_rcmd>: Add argument.
13070 (target_rcmd): Add argument.
13071 * target.c (debug_to_rcmd): Add argument.
13072 (update_current_target, do_monitor_command): Update.
13073 * remote.c (remote_rcmd): Add 'self' argument.
13074 * monitor.c (monitor_rcmd): Add 'self' argument.
13075
1eab8a48
TT
130762014-02-19 Tom Tromey <tromey@redhat.com>
13077
13078 * windows-nat.c (windows_stop): Add 'self' argument.
13079 * target.h (struct target_ops) <to_stop>: Add argument.
13080 * target.c (target_stop): Add argument.
13081 (debug_to_stop): Add argument.
13082 (update_current_target): Update.
13083 * remote.c (remote_stop): Add 'self' argument.
13084 * remote-sim.c (gdbsim_stop): Add 'self' argument.
13085 (gdbsim_cntrl_c): Update.
13086 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
13087 * procfs.c (procfs_stop): Add 'self' argument.
13088 * nto-procfs.c (procfs_stop): Add 'self' argument.
13089 * monitor.c (monitor_stop): Add 'self' argument.
13090 (monitor_open): Update.
13091 * linux-nat.c (linux_nat_stop): Add argument.
13092 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
13093 * gnu-nat.c (gnu_stop): Add 'self' argument.
13094 * darwin-nat.c (darwin_stop): Add 'self' argument.
13095
503a628d
TT
130962014-02-19 Tom Tromey <tromey@redhat.com>
13097
13098 * target.h (struct target_ops) <to_thread_name>: Add argument.
13099 * target.c (target_thread_name): Add argument.
13100 (update_current_target): Update.
13101 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13102
c15906d8
TT
131032014-02-19 Tom Tromey <tromey@redhat.com>
13104
13105 * target.h (struct target_ops) <to_extra_thread_info>: Add
13106 argument.
13107 (target_extra_thread_info): Add argument.
13108 * target.c (update_current_target): Update.
13109 * remote.c (remote_threads_extra_info): Add 'self' argument.
13110 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13111 argument.
13112 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13113 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13114 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13115 argument.
13116 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13117 argument.
13118 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13119 argument.
13120 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13121 argument.
13122
daf5e9b6
TT
131232014-02-19 Tom Tromey <tromey@redhat.com>
13124
13125 * target.h (struct target_ops) <to_program_signals>: Add argument.
13126 * target.c (target_program_signals): Add argument.
13127 * remote.c (remote_program_signals): Add 'self' argument.
13128
94bedb42
TT
131292014-02-19 Tom Tromey <tromey@redhat.com>
13130
13131 * target.h (struct target_ops) <to_pass_signals>: Add argument.
13132 * target.c (target_pass_signals): Add argument.
13133 * remote.c (remote_pass_signals): Add 'self' argument.
13134 (remote_start_remote): Update.
13135 * procfs.c (procfs_pass_signals): Add 'self' argument.
13136 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13137 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13138 (linux_nat_create_inferior, linux_nat_attach): Update.
13139
da82bd6b
TT
131402014-02-19 Tom Tromey <tromey@redhat.com>
13141
13142 * windows-nat.c (windows_can_run): Add 'self' argument.
13143 * target.h (struct target_ops) <to_can_run>: Add argument.
13144 (target_can_run): Add argument.
13145 * target.c (debug_to_can_run): Add argument.
13146 (update_current_target): Update.
13147 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13148 * inf-child.c (inf_child_can_run): Add 'self' argument.
13149 * go32-nat.c (go32_can_run): Add 'self' argument.
13150
d796e1d6
TT
131512014-02-19 Tom Tromey <tromey@redhat.com>
13152
13153 * target.h (struct target_ops) <to_has_exited>: Add argument.
13154 (target_has_exited): Add argument.
13155 * target.c (debug_to_has_exited): Add argument.
13156 (update_current_target): Update.
13157
ff214e67
TT
131582014-02-19 Tom Tromey <tromey@redhat.com>
13159
13160 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13161 argument.
13162 (target_set_syscall_catchpoint): Add argument.
13163 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13164 argument.
13165 * target.c (update_current_target): Update.
13166
758e29d2
TT
131672014-02-19 Tom Tromey <tromey@redhat.com>
13168
13169 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13170 argument.
13171 (target_remove_exec_catchpoint): Add argument.
13172 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13173 (update_current_target): Update.
13174 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13175 argument.
13176
ba025e51
TT
131772014-02-19 Tom Tromey <tromey@redhat.com>
13178
13179 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13180 argument.
13181 (target_insert_exec_catchpoint): Add argument.
13182 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13183 (update_current_target): Update.
13184 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13185 argument.
13186
e98cf0cd
TT
131872014-02-19 Tom Tromey <tromey@redhat.com>
13188
13189 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13190 argument.
13191 (target_remove_vfork_catchpoint): Add argument.
13192 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13193 (update_current_target): Update.
13194 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13195 argument.
13196
3ecc7da0
TT
131972014-02-19 Tom Tromey <tromey@redhat.com>
13198
13199 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13200 argument.
13201 (target_insert_vfork_catchpoint): Add argument.
13202 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13203 (update_current_target): Update.
13204 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13205 argument.
13206
973fc227
TT
132072014-02-19 Tom Tromey <tromey@redhat.com>
13208
13209 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13210 argument.
13211 (target_remove_fork_catchpoint): Add argument.
13212 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13213 (update_current_target): Update.
13214 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13215 argument.
13216
a863b201
TT
132172014-02-19 Tom Tromey <tromey@redhat.com>
13218
13219 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13220 argument.
13221 (target_insert_fork_catchpoint): Add argument.
13222 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13223 (update_current_target): Update.
13224 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13225 argument.
13226
2e97a79e
TT
132272014-02-19 Tom Tromey <tromey@redhat.com>
13228
13229 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13230 argument.
13231 (target_post_startup_inferior): Add argument.
13232 * target.c (debug_to_post_startup_inferior): Add argument.
13233 (update_current_target): Update.
13234 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13235 argument.
13236 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13237 argument.
13238 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13239 argument.
13240 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13241 argument.
13242 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13243 'self' argument.
13244 (super_post_startup_inferior): Likewise.
13245 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13246 'self' argument.
13247 (super_post_startup_inferior): Likewise.
13248 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13249 Add 'self' argument.
13250 (super_post_startup_inferior): Likewise.
13251
71a9f134
TT
132522014-02-19 Tom Tromey <tromey@redhat.com>
13253
13254 * target.h (struct target_ops) <to_load>: Add argument.
13255 * target.c (target_load): Add argument.
13256 (debug_to_load): Add argument.
13257 (update_current_target): Update.
13258 * remote.c (remote_load): Add 'self' argument.
13259 * remote-sim.c (gdbsim_load): Add 'self' argument.
13260 * remote-mips.c (mips_load): Add 'self' argument.
13261 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13262 * monitor.c (monitor_load): Add 'self' argument.
13263 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13264
0a4f40a2
TT
132652014-02-19 Tom Tromey <tromey@redhat.com>
13266
13267 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13268 (target_terminal_info): Add argument.
13269 * target.c (debug_to_terminal_info): Add argument.
13270 (default_terminal_info): Likewise.
13271 * inflow.c (child_terminal_info): Add 'self' argument.
13272 * inferior.h (child_terminal_info): Add 'self' argument.
13273 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13274
ae3bd431
TT
132752014-02-19 Tom Tromey <tromey@redhat.com>
13276
13277 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13278 argument.
13279 (target_terminal_save_ours): Add argument.
13280 * target.c (debug_to_terminal_save_ours): Add argument.
13281 (update_current_target): Update.
13282 * inflow.c (terminal_save_ours): Add 'self' argument.
13283 * inferior.h (terminal_save_ours): Add 'self' argument.
13284
e3594fd1
TT
132852014-02-19 Tom Tromey <tromey@redhat.com>
13286
13287 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13288 (target_terminal_ours): Add argument.
13289 * target.c (debug_to_terminal_ours): Add argument.
13290 (update_current_target): Update.
13291 * remote.c (remote_terminal_ours): Add 'self' argument.
13292 (remote_close): Update.
13293 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13294 * inflow.c (terminal_ours): Add 'self' argument.
13295 * inferior.h (terminal_ours): Add 'self' argument.
13296 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13297
2e1e1a19
TT
132982014-02-19 Pedro Alves <palves@redhat.com>
13299 Tom Tromey <tromey@redhat.com>
13300
13301 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13302 argument.
13303 (target_terminal_ours_for_output): Add argument.
13304 * target.c (debug_to_terminal_ours_for_output): Add argument.
13305 (update_current_target): Update.
13306 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13307 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13308 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13309
d2f640d4
TT
133102014-02-19 Tom Tromey <tromey@redhat.com>
13311
13312 * target.h (struct target_ops) <to_terminal_inferior>: Add
13313 argument.
13314 * target.c (target_terminal_inferior): Add argument.
13315 (update_current_target): Update.
13316 * remote.c (remote_terminal_inferior): Add 'self' argument.
13317 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13318 * inflow.c (terminal_inferior): Add 'self' argument.
13319 * inferior.h (terminal_inferior): Add 'self' argument.
13320 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13321 (go32_terminal_inferior): Add 'self' argument.
13322
c42bf286
TT
133232014-02-19 Tom Tromey <tromey@redhat.com>
13324
13325 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13326 (target_terminal_init): Add argument.
13327 * target.c (debug_to_terminal_init): Add argument.
13328 (update_current_target): Update.
13329 * inflow.c (terminal_init_inferior): Add 'self' argument.
13330 * inferior.h (terminal_init_inferior): Add 'self' argument.
13331 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13332 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13333
c3a5ff89
TT
133342014-02-19 Tom Tromey <tromey@redhat.com>
13335
13336 * target.h (struct target_ops)
13337 <to_can_accel_watchpoint_condition>: Add argument.
13338 (target_can_accel_watchpoint_condition): Add argument.
13339 * target.c (debug_to_can_accel_watchpoint_condition): Add
13340 argument.
13341 (update_current_target): Update.
13342 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13343 'self' argument.
13344
31568a15
TT
133452014-02-19 Tom Tromey <tromey@redhat.com>
13346
13347 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13348 Add argument.
13349 (target_region_ok_for_hw_watchpoint): Add argument.
13350 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13351 (default_region_ok_for_hw_watchpoint): Add argument.
13352 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13353 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13354 argument.
13355 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13356 argument.
13357 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13358 argument.
13359 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13360 'self' argument.
13361 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13362 'self' argument.
13363 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13364 'self' argument.
13365 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13366 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13367 'self' argument.
13368 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13369 Add 'self' argument.
13370
7bb99c53
TT
133712014-02-19 Tom Tromey <tromey@redhat.com>
13372
13373 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13374 argument.
13375 (target_insert_watchpoint): Add argument.
13376 * target.c (debug_to_insert_watchpoint): Add argument.
13377 (update_current_target): Update.
13378 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13379 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13380 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13381 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13382 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13383 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13384 argument.
13385 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13386 (procfs_insert_hw_watchpoint): Add 'self' argument.
13387 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13388 argument.
13389 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13390 argument.
13391 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13392 argument.
13393 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13394 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13395 argument.
13396 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13397 'self' argument.
13398
11b5219a
TT
133992014-02-19 Tom Tromey <tromey@redhat.com>
13400
13401 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13402 argument.
13403 (target_remove_watchpoint): Add argument.
13404 * target.c (debug_to_remove_watchpoint): Add argument.
13405 (update_current_target): Update.
13406 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13407 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13408 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13409 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13410 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13411 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13412 argument.
13413 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13414 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13415 argument.
13416 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13417 argument.
13418 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13419 argument.
13420 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13421 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13422 argument.
13423 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13424 'self' argument.
13425
a64dc96c
TT
134262014-02-19 Tom Tromey <tromey@redhat.com>
13427
13428 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13429 argument.
13430 (target_remove_hw_breakpoint): Add argument.
13431 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13432 (update_current_target): Update.
13433 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13434 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13435 argument.
13436 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13437 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13438 argument.
13439 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13440 'self' argument.
13441
23a26771
TT
134422014-02-19 Tom Tromey <tromey@redhat.com>
13443
13444 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13445 argument.
13446 (target_insert_hw_breakpoint): Add argument.
13447 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13448 (update_current_target): Update.
13449 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13450 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13451 argument.
13452 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13453 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13454 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13455 argument.
13456 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13457 'self' argument.
13458
5461485a
TT
134592014-02-19 Tom Tromey <tromey@redhat.com>
13460
13461 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13462 argument.
13463 (target_can_use_hardware_watchpoint): Add argument.
13464 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13465 (update_current_target): Update.
13466 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13467 argument.
13468 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13469 argument.
13470 * remote.c (remote_check_watch_resources): Add 'self' argument.
13471 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13472 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13473 argument.
13474 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13475 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13476 argument.
13477 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13478 argument.
13479 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13480 argument.
13481 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13482 argument.
13483 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13484 argument.
13485 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13486 argument.
13487 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13488 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13489 argument.
13490 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13491 'self' argument.
13492
f045800c
TT
134932014-02-19 Tom Tromey <tromey@redhat.com>
13494
13495 * target.h (struct target_ops) <to_post_attach>: Add argument.
13496 (target_post_attach): Add argument.
13497 * target.c (debug_to_post_attach): Add argument.
13498 (update_current_target): Update.
13499 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13500 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13501 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13502 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13503 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13504
de90e03d
TT
135052014-02-19 Tom Tromey <tromey@redhat.com>
13506
13507 * windows-nat.c (windows_close): Add 'self' argument.
13508 * tracepoint.c (tfile_close): Add 'self' argument.
13509 * target.h (struct target_ops) <to_close>: Add argument.
13510 * target.c (target_close): Add argument.
13511 (update_current_target): Update.
13512 * remote.c (remote_close): Add 'self' argument.
13513 * remote-sim.c (gdbsim_close): Add 'self' argument.
13514 * remote-mips.c (mips_close): Add 'self' argument.
13515 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13516 * record-full.c (record_full_close): Add 'self' argument.
13517 * record-btrace.c (record_btrace_close): Add 'self' argument.
13518 * monitor.h (monitor_close): Add 'self' argument.
13519 * monitor.c (monitor_close): Add 'self' argument.
13520 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13521 * linux-nat.c (linux_nat_close): Add argument.
13522 * go32-nat.c (go32_close): Add 'self' argument.
13523 * exec.c (exec_close_1): Add 'self' argument.
13524 * ctf.c (ctf_close): Add 'self' argument.
13525 * corelow.c (core_close): Add 'self' argument.
13526 (core_close_cleanup): Update.
13527 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13528 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13529
9dd130a0
TT
135302014-02-19 Tom Tromey <tromey@redhat.com>
13531
13532 * remote.c (remote_load): New function.
13533 (init_remote_ops): Use it.
13534
46917d26
TT
135352014-02-19 Tom Tromey <tromey@redhat.com>
13536
13537 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13538 argument.
13539 * common/linux-btrace.h (linux_supports_btrace): Update.
13540 * remote.c (remote_supports_btrace): Add "self" argument.
13541 * target-delegates.c: Rebuild.
13542 * target.c (target_supports_btrace): Remove.
13543 * target.h (struct target_ops) <to_supports_btrace>: Add
13544 target_ops argument.
13545 (target_supports_btrace): New define.
13546
6b84065d
TT
135472014-02-19 Tom Tromey <tromey@redhat.com>
13548
13549 * record-full.c (record_full_beneath_to_resume_ops)
13550 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13551 (record_full_beneath_to_wait)
13552 (record_full_beneath_to_store_registers_ops)
13553 (record_full_beneath_to_store_registers)
13554 (record_full_beneath_to_xfer_partial_ops)
13555 (record_full_beneath_to_xfer_partial)
13556 (record_full_beneath_to_insert_breakpoint_ops)
13557 (record_full_beneath_to_insert_breakpoint)
13558 (record_full_beneath_to_remove_breakpoint_ops)
13559 (record_full_beneath_to_remove_breakpoint)
13560 (record_full_beneath_to_stopped_by_watchpoint)
13561 (record_full_beneath_to_stopped_data_address)
13562 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13563 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13564 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13565 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13566 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13567 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13568 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13569 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13570 (record_full_resume, record_full_wait_1)
13571 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13572 (record_full_store_registers, record_full_xfer_partial)
13573 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13574 (record_full_async, record_full_core_xfer_partial): Use target
13575 delegation.
13576 * target-delegates.c: Rebuild.
13577 * target.c (current_xfer_partial): Remove.
13578 (update_current_target): Do not INHERIT or de_fault
13579 to_insert_breakpoint, to_remove_breakpoint,
13580 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13581 to_is_async_p, to_async. Do not set to_xfer_partial field.
13582 (default_xfer_partial): Simplify.
13583 (current_xfer_partial): Remove.
13584 (target_wait, target_resume): Simplify.
13585 (find_default_can_async_p, find_default_is_async_p): Update.
13586 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13587 to_xfer_partial, to_stopped_by_watchpoint,
13588 to_stopped_data_address.
13589 (target_store_registers): Simplify.
13590 (forward_target_remove_breakpoint)
13591 (forward_target_insert_breakpoint): Remove.
13592 (target_remove_breakpoint, target_insert_breakpoint)
13593 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13594 * target.h (struct target_ops) <to_resume, to_wait,
13595 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13596 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13597 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13598 markup.
13599 (forward_target_remove_breakpoint)
13600 (forward_target_insert_breakpoint): Remove.
13601 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13602 directly.
13603 (record_btrace_insert_breakpoint): Delegate directly.
13604
1101cb7b
TT
136052014-02-19 Tom Tromey <tromey@redhat.com>
13606
13607 PR build/7701:
13608 * target-delegates.c: New file.
13609 * target.c: Include target-delegates.c.
13610 (init_dummy_target): Call install_dummy_methods.
13611 (complete_target_initialization): Call install_delegators.
13612 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13613 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13614 * make-target-delegates: New file.
13615
8b06beed
TT
136162014-02-19 Tom Tromey <tromey@redhat.com>
13617
13618 * record.c (find_record_target): Use find_target_at.
13619 * target.c (find_target_at): New function.
13620 * target.h (find_target_at): Declare.
13621
6a109b6b
TT
136222014-02-19 Tom Tromey <tromey@redhat.com>
13623
13624 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13625 Add 'ops' argument.
13626 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13627 'ops' argument.
13628 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13629 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13630 'ops' argument.
13631 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13632 argument.
13633 * linux-nat.c (save_sigtrap): Update.
13634 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13635 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13636 (linux_nat_close): Update.
13637 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13638 argument.
13639 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13640 argument.
13641 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13642 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13643 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13644 (tmp_to_async): Add 'ops' argument.
13645 (record_full_stopped_by_watchpoint, record_full_async)
13646 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13647 argument.
13648 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13649 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13650 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13651 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13652 (remote_is_async_p, remote_async): Add 'ops' argument.
13653 (remote_stopped_data_address): Update.
13654 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13655 * target.c (update_current_target)
13656 (find_default_can_async_p, find_default_is_async_p): Update.
13657 (init_dummy_target): Update.
13658 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13659 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13660 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13661 (target_can_async_p, target_is_async_p, target_async)
13662 (target_stopped_by_watchpoint): Update.
13663
e095146b
YQ
136642014-02-19 Yao Qi <yao@codesourcery.com>
13665
13666 PR gdb/16220
13667 * gdbarch.sh: Remove startup_gdbarch.
13668 * gdbarch.c: Regenerated.
13669 * gdbarch.h: Likewise.
13670
bc3c6b36
KB
136712014-02-17 Kevin Buettner <kevinb@redhat.com>
13672
13673 * rl78-tdep.c (rl78_g10_register_name): New function.
13674 (rl78_return_value): Add g10 support.
13675 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13676 g10.
13677
98dc0167 136782014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
13679
13680 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13681 (SUBDIR_GUILE_SRCS): Ditto.
13682 (scm-gsmob.o): Ditto.
13683
842c05cd
YQ
136842014-02-17 Yao Qi <yao@codesourcery.com>
13685
13686 * gnu-nat.c (ILL_RPC): Declare defined function.
13687
25c0bd04
YQ
136882014-02-17 Yao Qi <yao@codesourcery.com>
13689
13690 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13691 mach_msg_type_number_t.
13692 (gnu_write_inferior): Likewise.
13693
a9a758e3
YQ
136942014-02-17 Yao Qi <yao@codesourcery.com>
13695
13696 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13697 in format string.
13698 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13699 (inf_validate_procs, inf_signal): Likewise.
13700 (S_exception_raise_request): Likewise.
13701 (do_mach_notify_dead_name): Likewise.
13702 (steal_exc_port): Likewise.
13703 (gnu_read_inferior): Change 'copy_count''s type to
13704 mach_msg_type_number_t.
13705 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13706 format string.
13707
bae8023e
TS
137082014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13709
c82f56d9
TS
13710 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13711 flag. Adjust all users; in particular...
13712 (gnu_wait): ..., don't decrement its value in here...
13713 (gnu_create_inferior): ..., and instead set the flag in here,
13714 around the startup_inferior call, and call that one with
13715 START_INFERIOR_TRAPS_EXPECTED.
13716
3398af6a
TS
13717 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13718 (ILL_RPC): ... new macro.
13719 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13720 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13721 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13722 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13723 functions with ILL_RPC macro.
13724 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13725 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13726 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13727 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13728 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13729 (S_proc_getlogin_reply, S_proc_getsid_reply)
13730 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13731 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13732 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13733 (S_proc_getnports_reply, S_proc_is_important_reply)
13734 (S_proc_get_code_reply): New stub functions, generated with
13735 ILL_RPC macro.
13736
d47642c9
TS
13737 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13738 collected the type check structures.
13739
bae8023e
TS
13740 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13741
8a55ffb0
DE
137422014-02-14 Doug Evans <dje@google.com>
13743
13744 * target.c (target_write_partial): Fix result type.
13745
c2853f3d
JM
137462014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13747
13748 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13749 the proper offsets to access fpregset_t.
13750
ac61d2db
SA
137512014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13752
13753 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13754 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13755 * h8300-tdep.c (setmachinelist): Remove global.
13756 * hppa-tdep.c (hppa_sigtramp): Remove global.
13757 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13758 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13759 * ravenscar-thread.c (update_target_observer): Remove global.
13760 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13761
9d2d0b8b
TT
137622014-02-12 Tom Tromey <tromey@redhat.com>
13763
13764 * common/rsp-low.c: Update comments.
13765 * common/rsp-low.h: Update comments.
13766
a7191e8b
TT
137672014-02-12 Tom Tromey <tromey@redhat.com>
13768
13769 * common/rsp-low.c (convert_ascii_to_int): Remove.
13770 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13771
ff0e980e
TT
137722014-02-12 Tom Tromey <tromey@redhat.com>
13773
13774 * common/rsp-low.h (unhexify): Don't declare.
13775 * common/rsp-low.c (unhexify): Remove.
13776
e9371aff
TT
137772014-02-12 Tom Tromey <tromey@redhat.com>
13778
13779 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13780 * common/rsp-low.c (convert_int_to_ascii): Remove.
13781
971dc0b8
TT
137822014-02-12 Tom Tromey <tromey@redhat.com>
13783
13784 * common/rsp-low.h (hexify): Don't declare.
13785 * common/rsp-low.c (hexify): Remove.
13786
0a822afb
TT
137872014-02-12 Tom Tromey <tromey@redhat.com>
13788
13789 * common/rsp-low.c (hexify): Never take strlen of argument.
13790
9f1b45b0
TT
137912014-02-12 Tom Tromey <tromey@redhat.com>
13792
13793 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13794 * remote.c (extended_remote_run, remote_rcmd)
13795 (remote_download_trace_state_variable, remote_save_trace_data)
13796 (remote_set_trace_notes): Update.
13797 * tracepoint.c (encode_source_string, tfile_write_status)
13798 (tfile_write_uploaded_tsv): Update.
13799
9c3d6531
TT
138002014-02-12 Tom Tromey <tromey@redhat.com>
13801
13802 * tracepoint.c: Include rsp-low.h.
13803 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13804 * remote.c: Include rsp-low.h.
13805 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13806 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13807 (remote_unescape_input): Move to common/rsp-low.c.
13808 * common/rsp-low.h: New file.
13809 * common/rsp-low.c: New file.
13810 * Makefile.in (SFILES): Add common/rsp-low.c.
13811 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13812 (COMMON_OBS): Add rsp-low.o.
13813 (rsp-low.o): New target.
13814
01fd3ea5
TT
138152014-02-12 Tom Tromey <tromey@redhat.com>
13816
13817 * utils.h: Include print-utils.h.
13818 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13819 (int_string, core_addr_to_string, core_addr_to_string_nz)
13820 (hex_string, hex_string_custom): Don't declare.
13821 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13822 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13823 (hex_string_custom, int_string, core_addr_to_string)
13824 (core_addr_to_string_nz, host_address_to_string): Move to
13825 common/print-utils.c.
13826 * common/print-utils.h: New file.
13827 * common/print-utils.c: New file
13828 * Makefile.in (SFILES): Add common/print-utils.c.
13829 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13830 (COMMON_OBS): Add print-utils.o.
13831 (print-utils.o): New target.
13832
9fb50108
TT
138332014-02-12 Tom Tromey <tromey@redhat.com>
13834
13835 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13836
0548b5db
MK
138372014-02-12 Mark Kettenis <kettenis@gnu.org>
13838
13839 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13840
493443a4
MK
138412014-02-12 Mark Kettenis <kettenis@gnu.org>
13842
13843 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13844 if a PT_IO ptrace request returns sucessfully but indicates that 0
13845 bytes were transferred.
13846
706d0883
PA
138472014-02-12 Pedro Alves <palves@redhat.com>
13848 Kevin Buettner <kevinb@redhat.com>
13849
13850 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13851 TYPE_INSTANCE_FLAG_CODE_SPACE.
13852
5caa2f0b
PA
138532014-02-12 Pedro Alves <palves@redhat.com>
13854
13855 * h8300-tdep.c (pseudo_from_raw_register)
13856 (raw_from_pseudo_register): New functions.
13857 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13858 them.
13859
76fd5f74
PA
138602014-02-12 Pedro Alves <palves@redhat.com>
13861
13862 * h8300-tdep.c (h8300_register_sim_regno): New function.
13863 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13864 gdbarch_register_sim_regno hook.
13865
8f008406
SA
138662014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13867
13868 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13869
195abc10
SA
138702014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13871
13872 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13873
93ffa5b9
MK
138742014-02-12 Mark Kettenis <kettenis@gnu.org>
13875
13876 * obsd-tdep.h (obsd_init_abi): New prototype.
13877 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13878 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13879 (obsd_init_abi): New functions.
13880 * i386obsd-tdep.c: Include "obsd-tdep.h".
13881 (i386obsd_init_abi): Call obsd_init_abi.
13882 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13883 (amd64obsd_init_abi): Call obsd_init_abi.
13884 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13885 obsd-tdep.c to gdb_target_obs.
13886
49caec94
JM
138872014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13888
13889 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13890 double float arguments to 16-byte in the argument slots.
13891
e1402065
DE
138922014-02-11 Doug Evans <xdje42@gmail.com>
13893
13894 * configure.ac: Don't crash if pkg-config is not found and guile
13895 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13896 in guile checks.
13897 * configure: Regenerate.
13898
edcc890f
YQ
138992014-02-11 Yao Qi <yao@codesourcery.com>
13900
13901 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13902 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13903 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13904 * gnu-nat.c (gnu_xfer_memory): Likewise.
13905 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13906 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13907 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13908 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13909
9b409511
YQ
139102014-02-11 Yao Qi <yao@codesourcery.com>
13911
13912 * target.h (enum target_xfer_error): Rename to ...
13913 (enum target_xfer_status): ... it. New. All users updated.
13914 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13915 New.
13916 (TARGET_XFER_STATUS_ERROR_P): New macro.
13917 (target_xfer_error_to_string): Remove declaration.
13918 (target_xfer_status_to_string): Declare.
13919 (target_xfer_partial_ftype): Adjust it.
13920 (struct target_ops) <to_xfer_partial>: Return
13921 target_xfer_status. Add argument xfered_len. Update
13922 comments.
13923 * target.c (target_xfer_error_to_string): Rename to ...
13924 (target_xfer_status_to_string): ... it. New. All callers
13925 updated.
13926 (target_read_live_memory): Likewise. Call target_xfer_partial
13927 instead of target_read.
13928 (memory_xfer_live_readonly_partial): Return
13929 target_xfer_status. Add argument xfered_len.
13930 (raw_memory_xfer_partial): Likewise.
13931 (memory_xfer_partial_1): Likewise.
13932 (memory_xfer_partial): Likewise.
13933 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13934 properly. Update debug message.
13935 (default_xfer_partial, current_xfer_partial): Likewise.
13936 (target_write_partial): Likewise.
13937 (target_read_partial): Likewise. All callers updated.
13938 (read_whatever_is_readable): Likewise.
13939 (target_write_with_progress): Likewise.
13940 (target_read_alloc_1): Likewise.
13941
13942 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13943 * auxv.c (procfs_xfer_auxv): Likewise.
13944 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13945 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13946 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13947 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13948 * corefile.c (read_memory): Adjust.
13949 * corelow.c (core_xfer_partial): Likewise.
13950 * ctf.c (ctf_xfer_partial): Likewise.
13951 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13952 updated.
13953 (darwin_xfer_partial): Likewise.
13954 * exec.c (section_table_xfer_memory_partial): Likewise. All
13955 callers updated.
13956 (exec_xfer_partial): Likewise.
13957 * exec.h (section_table_xfer_memory_partial): Update
13958 declaration.
13959 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13960 negative.
13961 (gnu_xfer_partial): Likewise.
13962 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13963 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13964 (ia64_hpux_xfer_solib_got): Likewise.
13965 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13966 type of 'partial_len' to ULONGEST.
13967 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13968 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13969 (linux_nat_xfer_partial): Likewise.
13970 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13971 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13972 * monitor.c (monitor_xfer_memory): Likewise.
13973 (monitor_xfer_partial): Likewise.
13974 * procfs.c (procfs_xfer_partial): Likewise.
13975 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13976 * record-full.c (record_full_xfer_partial): Likewise.
13977 (record_full_core_xfer_partial): Likewise.
13978 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13979 (gdbsim_xfer_partial): Likewise.
13980 * remote.c (remote_write_bytes_aux): Likewise. All callers
13981 updated.
13982 (remote_write_bytes, remote_read_bytes): Likewise. All
13983 callers updated.
13984 (remote_flash_erase): Likewise. All callers updated.
13985 (remote_write_qxfer): Likewise. All callers updated.
13986 (remote_read_qxfer): Likewise. All callers updated.
13987 (remote_xfer_partial): Likewise.
13988 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13989 (rs6000_xfer_shared_libraries): Likewise.
13990 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13991 (sol_thread_xfer_partial): Likewise.
13992 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13993 (sparc_xfer_partial): Likewise.
13994 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13995 updated.
13996 (spu_xfer_partial): Likewise.
13997 * spu-multiarch.c (spu_xfer_partial): Likewise.
13998 * tracepoint.c (tfile_xfer_partial): Likewise.
13999 * windows-nat.c (windows_xfer_memory): Likewise.
14000 (windows_xfer_shared_libraries): Likewise.
14001 (windows_xfer_partial): Likewise.
14002 * valprint.c: Replace 'target_xfer_error' with
14003 'target_xfer_status' in comments.
14004
a8e63083
JB
140052014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
14006
14007 Checked in by Joel Brobecker <brobecker@adacore.com>.
14008 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
14009
e86b67d3
JB
140102014-02-11 Joel Brobecker <brobecker@adacore.com>
14011
14012 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
14013 function parameters.
14014
4b7d1f7f
WN
140152014-02-10 Will Newton <will.newton@linaro.org>
14016
14017 * elfread.c (elf_rel_plt_read): Look for a .got section if
14018 looking up .got.plt fails.
14019 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
14020 on address passed to elf_gnu_ifunc_record_cache.
14021 (elf_gnu_ifunc_resolve_addr): Likewise.
14022 (elf_gnu_ifunc_resolver_return_stop): Likewise.
14023
961842b2
JM
140242014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
14025
14026 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
14027 (X_RETTURN): New macro.
14028 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
14029
14030 * sparc64-tdep.c (sparc64_init_abi): Hook
14031 sparc_in_function_epilogue_p.
14032
3f03e7b1
GB
140332014-02-10 Gary Benson <gbenson@redhat.com>
14034
14035 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14036 Rename name_matcher to symbol_matcher.
14037
96f861ef
GB
140382014-02-10 Gary Benson <gbenson@redhat.com>
14039
14040 * symfile-debug.c (debug_qf_expand_symtabs_matching):
14041 Use expand_symtabs_file_matcher_ftype and
14042 expand_symtabs_symbol_matcher_ftype.
14043
ee01b665
JB
140442014-02-10 Joel Brobecker <brobecker@adacore.com>
14045
14046 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
14047 (struct ada_symbol_cache): New.
14048 (ada_free_symbol_cache): Forward declare.
14049 (struct ada_pspace_data): New.
14050 (ada_pspace_data_handle): New static global.
14051 (get_ada_pspace_data, ada_pspace_data_cleanup)
14052 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
14053 (cache_space, cache): Delete, now folded inside struct
14054 ada_pspace_data.
14055 (ada_get_symbol_cache): New function.
14056 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
14057 implementation.
14058 (_initialize_ada_language): Remove initialization of cache_space.
14059 Move call to observer_attach_inferior_exit up, grouping it
14060 with the other observer registrations inside this function.
14061 Rename command to be more general. Add call to
14062 register_program_space_data_with_cleanup.
14063
143adbbf
JB
140642014-02-10 Joel Brobecker <brobecker@adacore.com>
14065
14066 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
14067 ada_new_objfile_observer.
14068 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
14069 (_initialize_tasks): Update uses of ada_new_objfile_observer
14070 and ada_tasks_normal_stop_observer.
14071
aa4fb036
JB
140722014-02-10 Joel Brobecker <brobecker@adacore.com>
14073
14074 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
14075 returned by the 'Length attribute to integer.
14076
9dee8cc6
JB
140772014-02-10 Joel Brobecker <brobecker@adacore.com>
14078
14079 * ada-lang.c (_initialize_ada_language): Initialize
14080 cache_space obstack.
14081
3d9434b5
JB
140822014-02-10 Joel Brobecker <brobecker@adacore.com>
14083
14084 * ada-lang.c (HASH_SIZE): New macro.
14085 (struct cache_entry): New type.
14086 (cache_space, cache): New static globals.
14087 (ada_clear_symbol_cache, find_entry): New functions.
14088 (lookup_cached_symbol, cache_symbol): Implement.
14089 (ada_new_objfile_observer, ada_free_objfile_observer): New.
14090 (_initialize_ada_language): Attach ada_new_objfile_observer
14091 and ada_free_objfile_observer.
14092
f0c5f9b2
JB
140932014-02-10 Joel Brobecker <brobecker@adacore.com>
14094
14095 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
14096 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
14097 struct block * parameter.
14098 (ada_lookup_symbol_list_worker): Constify local variable "block".
14099 Remove cast which is no longer necessary.
14100
ed3ef339
DE
141012014-02-10 Doug Evans <xdje42@gmail.com>
14102
14103 Add Guile as an extension language.
14104 * NEWS: Mention Guile scripting.
14105 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14106 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14107 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14108 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14109 (CLIBS): Add GUILE_LIBS.
14110 (install-guile): New rule.
14111 (guile.o): New rule.
14112 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14113 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14114 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14115 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14116 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14117 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14118 (scm-type.o, scm-utils.o, scm-value.o): New rules.
14119 * configure.ac: New option --with-guile.
14120 * configure: Regenerate.
14121 * config.in: Regenerate.
14122 * auto-load.c: Remove #include "python/python.h". Add #include
14123 "gdb/section-scripts.h".
14124 (source_section_scripts): Handle Guile scripts.
14125 (_initialize_auto_load): Add name of Guile objfile script to
14126 scripts-directory help text.
14127 * breakpoint.c (condition_command): Tweak comment to include Scheme.
14128 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14129 (struct breakpoint): New member scm_bp_object.
14130 * defs.h (enum command_control_type): New value guile_control.
14131 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
14132 "extension.h".
14133 (show_user): Update comment.
14134 (_initialize_cli_cmds): Update help text for "show user". Update help
14135 text for max-user-call-depth.
14136 * cli/cli-script.c: Remove #include "python/python.h". Add #include
14137 "extension.h".
14138 (multi_line_command_p): Add guile_control.
14139 (print_command_lines): Handle guile_control.
14140 (execute_control_command, recurse_read_control_structure): Ditto.
14141 (process_next_line): Recognize "guile" commands.
14142 * disasm.c (gdb_disassemble_info): Make non-static.
14143 * disasm.h: #include "dis-asm.h".
14144 (struct gdbarch): Add forward decl.
14145 (gdb_disassemble_info): Declare.
14146 * extension.c: #include "guile/guile.h".
14147 (extension_languages): Add guile.
14148 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14149 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14150 * gdbtypes.c (get_unsigned_type_max): New function.
14151 (get_signed_type_minmax): New function.
14152 * gdbtypes.h (get_unsigned_type_max): Declare.
14153 (get_signed_type_minmax): Declare.
14154 * guile/README: New file.
14155 * guile/guile-internal.h: New file.
14156 * guile/guile.c: New file.
14157 * guile/guile.h: New file.
14158 * guile/scm-arch.c: New file.
14159 * guile/scm-auto-load.c: New file.
14160 * guile/scm-block.c: New file.
14161 * guile/scm-breakpoint.c: New file.
14162 * guile/scm-disasm.c: New file.
14163 * guile/scm-exception.c: New file.
14164 * guile/scm-frame.c: New file.
14165 * guile/scm-gsmob.c: New file.
14166 * guile/scm-iterator.c: New file.
14167 * guile/scm-lazy-string.c: New file.
14168 * guile/scm-math.c: New file.
14169 * guile/scm-objfile.c: New file.
14170 * guile/scm-ports.c: New file.
14171 * guile/scm-pretty-print.c: New file.
14172 * guile/scm-safe-call.c: New file.
14173 * guile/scm-string.c: New file.
14174 * guile/scm-symbol.c: New file.
14175 * guile/scm-symtab.c: New file.
14176 * guile/scm-type.c: New file.
14177 * guile/scm-utils.c: New file.
14178 * guile/scm-value.c: New file.
14179 * guile/lib/gdb.scm: New file.
14180 * guile/lib/gdb/boot.scm: New file.
14181 * guile/lib/gdb/experimental.scm: New file.
14182 * guile/lib/gdb/init.scm: New file.
14183 * guile/lib/gdb/iterator.scm: New file.
14184 * guile/lib/gdb/printing.scm: New file.
14185 * guile/lib/gdb/types.scm: New file.
14186 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14187 (VPATH): Add $(GUILE_SRCDIR).
14188 (GUILE_DIR): New variable.
14189 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14190 (all): Add stamp-guile dependency.
14191 (stamp-guile): New rule.
14192 (clean-guile, install-guile, uninstall-guile): New rules.
14193 (install-only): Add install-guile dependency.
14194 (uninstall): Add uninstall-guile dependency.
14195 (clean): Add clean-guile dependency.
14196
ac020ec5
DE
141972014-02-09 Doug Evans <xdje42@gmail.com>
14198
14199 Revert this patch (which I approved, mea culpa).
14200
14201 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14202
14203 * Makefile.in (all-lib): Remove.
14204 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14205
2a081c59
JK
142062014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14207
14208 Fix Python stack corruption.
14209 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14210 gdb_py_longest.
14211
0a6bd22d
MK
142122014-02-08 Mark Kettenis <kettenis@gnu.org>
14213
14214 * Makefile.in (all-lib): Remove.
14215 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14216
1a860409
DE
142172014-02-07 Doug Evans <dje@google.com>
14218
14219 * extension-priv.h (extension_language_script_ops): Add comment.
14220 (extension_language_ops): Add comment.
caf5a491 14221 (active_ext_lang_state): Fix typo in comment.
1a860409 14222
d137e6dc
PA
142232014-02-07 Pedro Alves <palves@redhat.com>
14224
0dcb32c3 14225 PR breakpoints/16292
d137e6dc
PA
14226 * infrun.c (handle_signal_stop) <signal arrives while stepping
14227 over a breakpoint>: Switch back to the stepping thread.
14228
ce6d0892
YQ
142292014-02-07 Yao Qi <yao@codesourcery.com>
14230
14231 * target.c (target_xfer_partial): Return zero if LEN is zero.
14232
2ed4b548
YQ
142332014-02-07 Yao Qi <yao@codesourcery.com>
14234
14235 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14236 (ld_so_xfer_auxv): Likewise.
14237 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14238 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14239 * corelow.c (core_xfer_partial): Likewise.
14240 * ctf.c (ctf_xfer_partial): Likewise.
14241 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14242 (darwin_xfer_partial): Likewise.
14243 * exec.c (exec_xfer_partial): Likewise.
14244 * gnu-nat.c (gnu_xfer_partial): Likewise.
14245 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14246 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14247 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14248 * linux-nat.c (linux_xfer_siginfo): Likewise.
14249 (linux_proc_xfer_spu): Likewise.
14250 * procfs.c (procfs_xfer_partial): Likewise.
14251 * record-full.c (record_full_xfer_partial): Likewise.
14252 (record_full_core_xfer_partial): Likewise.
14253 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14254 * remote.c (remote_write_qxfer): Likewise.
14255 (remote_write_qxfer, remote_read_qxfer): Likewise.
14256 (remote_xfer_partial): Likewise.
14257 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14258 (rs6000_xfer_shared_libraries): Likewise.
14259 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14260 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14261 (spu_xfer_partial): Likewise.
14262 * target.c (memory_xfer_partial_1): Likewise.
14263 * tracepoint.c (tfile_xfer_partial): Likewise.
14264 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14265 (windows_xfer_partial): Likewise.
14266
c09f20e4
YQ
142672014-02-07 Yao Qi <yao@codesourcery.com>
14268
14269 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14270 comments.
14271 (core_xfer_shared_libraries_aix): Likewise.
14272 * gdbarch.c, gdbarch.h: Regenerated.
14273 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14274 ULONGEST. Change 'len_avail' type to ULONGEST.
14275 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14276 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14277 declaration.
14278 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14279
8635b3bf
YQ
142802014-02-07 Yao Qi <yao@codesourcery.com>
14281
14282 * corefile.c (memory_error): Get 'exception' from ERR and pass
14283 'exception' to throw_error.
14284
6dddc817
DE
142852014-02-06 Doug Evans <xdje42@gmail.com>
14286
14287 * configure.ac (libpython checking): Remove all but python.o from
14288 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14289 * configure: Regenerate.
14290
14291 * Makefile.in (SFILES): Add extension.c.
14292 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14293 (COMMON_OBS): Add extension.o.
14294 * extension.h: New file.
14295 * extension-priv.h: New file.
14296 * extension.c: New file.
14297
14298 * python/python-internal.h: #include "extension.h".
14299 (gdbpy_auto_load_enabled): Declare.
14300 (gdbpy_apply_val_pretty_printer): Declare.
14301 (gdbpy_apply_frame_filter): Declare.
14302 (gdbpy_preserve_values): Declare.
14303 (gdbpy_breakpoint_cond_says_stop): Declare.
14304 (gdbpy_breakpoint_has_cond): Declare.
14305 (void source_python_script_for_objfile): Delete.
14306 * python/python.c: #include "extension-priv.h".
14307 Delete inclusion of "observer.h".
14308 (extension_language_python): Moved here and renamed from
14309 script_language_python in py-auto-load.c.
14310 Redefined to be of type extension_language_defn.
14311 (python_extension_script_ops): New global.
14312 (python_extension_ops): New global.
14313 (struct python_env): New member previous_active.
14314 (restore_python_env): Call restore_active_ext_lang.
14315 (ensure_python_env): Call set_active_ext_lang.
14316 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14317 New arg extlang.
14318 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14319 New arg extlang.
14320 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14321 New arg extlang.
14322 (gdbpy_eval_from_control_command): Renamed from
14323 eval_python_from_control_command, made static. New arg extlang.
14324 (gdbpy_source_script) Renamed from source_python_script, made static.
14325 New arg extlang.
14326 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14327 result to int. New arg extlang.
14328 (gdbpy_source_objfile_script): Renamed from
14329 source_python_script_for_objfile, made static. New arg extlang.
14330 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14331 static. New args extlang, extlang_printers. Change result type to
14332 "void".
14333 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14334 static. New arg extlang. Rename arg printers to extlang_printers
14335 and change type to ext_lang_type_printers *.
14336 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14337 static. Replace argument arg with extlang, extlang_printers.
14338 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14339 (!HAVE_PYTHON, source_python_script): Delete.
14340 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14341 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14342 (!HAVE_PYTHON, start_type_printers): Delete.
14343 (!HAVE_PYTHON, apply_type_printers): Delete.
14344 (!HAVE_PYTHON, free_type_printers): Delete.
14345 (_initialize_python): Delete call to observer_attach_before_prompt.
14346 (finalize_python): Set/restore active extension language.
14347 (gdbpy_finish_initialization) Renamed from
14348 finish_python_initialization, made static. New arg extlang.
14349 (gdbpy_initialized): New function.
14350 * python/python.h: #include "extension.h". Delete #include
14351 "value.h", "mi/mi-cmds.h".
14352 (extension_language_python): Declare.
14353 (GDBPY_AUTO_FILE_NAME): Delete.
14354 (enum py_bt_status): Moved to extension.h and renamed to
14355 ext_lang_bt_status.
14356 (enum frame_filter_flags): Moved to extension.h.
14357 (enum py_frame_args): Moved to extension.h and renamed to
14358 ext_lang_frame_args.
14359 (finish_python_initialization): Delete.
14360 (eval_python_from_control_command): Delete.
14361 (source_python_script): Delete.
14362 (apply_val_pretty_printer): Delete.
14363 (apply_frame_filter): Delete.
14364 (preserve_python_values): Delete.
14365 (gdbpy_script_language_defn): Delete.
14366 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14367 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14368
14369 * auto-load.c: #include "extension.h".
14370 (GDB_AUTO_FILE_NAME): Delete.
14371 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14372 (script_language_gdb): Delete, moved to extension.c and renamed to
14373 extension_language_gdb.
14374 (source_gdb_script_for_objfile): Delete.
14375 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14376 (loaded_script): Change type of language member to
14377 struct extension_language_defn *.
14378 (init_loaded_scripts_info): Initialize
14379 unsupported_script_warning_printed.
14380 (maybe_add_script): Make static. Change type of language arg to
14381 struct extension_language_defn *.
14382 (clear_section_scripts): Reset unsupported_script_warning_printed.
14383 (auto_load_objfile_script_1): Rewrite to use extension language API.
14384 (auto_load_objfile_script): Make public. Remove support-compiled-in
14385 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14386 (source_section_scripts): Rewrite to use extension language API.
14387 (load_auto_scripts_for_objfile): Rewrite to use
14388 auto_load_scripts_for_objfile.
14389 (collect_matching_scripts_data): Change type of language member to
14390 struct extension_language_defn *.
14391 (auto_load_info_scripts): Change type of language arg to
14392 struct extension_language_defn *.
14393 (unsupported_script_warning_print): New function.
14394 (script_not_found_warning_print): Make static.
14395 (_initialize_auto_load): Rewrite construction of scripts-directory
14396 help.
14397 * auto-load.h (struct objfile): Add forward decl.
14398 (struct script_language): Delete.
14399 (struct auto_load_pspace_info): Add forward decl.
14400 (struct extension_language_defn): Add forward decl.
14401 (maybe_add_script): Delete.
14402 (auto_load_objfile_script): Declare.
14403 (script_not_found_warning_print): Delete.
14404 (auto_load_info_scripts): Update prototype.
14405 (auto_load_gdb_scripts_enabled): Declare.
14406 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14407 auto_load_python_scripts_enabled and made public.
14408 (script_language_python): Delete, moved to python.c.
14409 (gdbpy_script_language_defn): Delete.
14410 (info_auto_load_python_scripts): Update to use
14411 extension_language_python.
14412
14413 * breakpoint.c (condition_command): Replace call to
14414 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14415 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14416 with call to breakpoint_ext_lang_cond_says_stop.
14417 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14418 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14419 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14420 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14421 New arg slang.
14422 (local_setattro): Print name of extension language with existing
14423 stop condition.
14424
14425 * valprint.c (val_print, value_print): Update to call
14426 apply_ext_lang_val_pretty_printer.
14427 * cp-valprint.c (cp_print_value): Update call to
14428 apply_ext_lang_val_pretty_printer.
14429 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14430 (gdbpy_apply_val_pretty_printer): Renamed from
14431 apply_val_pretty_printer. New arg extlang.
14432 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14433
14434 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14435 extension language API.
14436 * cli/cli-script.c (execute_control_command): Update to call
14437 eval_ext_lang_from_control_command.
14438
14439 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14440 enum ext_lang_bt_status values. Update call to
14441 apply_ext_lang_frame_filter.
14442 (mi_cmd_stack_list_locals): Ditto.
14443 (mi_cmd_stack_list_args): Ditto.
14444 (mi_cmd_stack_list_variables): Ditto.
14445 * mi/mi-main.c: Delete #include "python/python-internal.h".
14446 Add #include "extension.h".
14447 (mi_cmd_list_features): Replace reference to python internal variable
14448 gdb_python_initialized with call to ext_lang_initialized_p.
14449
14450 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14451 Update to use enum ext_lang_frame_args. Update to call
14452 apply_ext_lang_frame_filter.
14453 * python/py-framefilter.c (extract_sym): Update to use enum
14454 ext_lang_bt_status.
14455 (extract_value, py_print_type, py_print_value): Ditto.
14456 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14457 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14458 (py_print_frame): Ditto.
14459 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14460 New arg extlang. Update to use enum ext_lang_bt_status.
14461
14462 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14463 finish_python_initialization. Replace with call to
14464 finish_ext_lang_initialization.
14465
14466 * typeprint.c (do_free_global_table): Update to call
14467 free_ext_lang_type_printers.
14468 (create_global_typedef_table): Update to call
14469 start_ext_lang_type_printers.
14470 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14471 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14472 (type_print_options): Change type of global_printers from "void *"
14473 to "struct ext_lang_type_printers *".
14474
14475 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14476 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14477 (gdbpy_preserve_values): Renamed from preserve_python_values.
14478 New arg extlang.
14479 (!HAVE_PYTHON, preserve_python_values): Delete.
14480
14481 * utils.c (quit_flag): Delete, moved to extension.c.
14482 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14483 extension.c.
14484
14485 * eval.c: Delete #include "python/python.h".
14486 * main.c: Delete #include "python/python.h".
14487
14488 * defs.h: Update comment.
14489
6af79985
JB
144902014-02-06 Joel Brobecker <brobecker@adacore.com>
14491
14492 GDB 7.7 released.
14493
12c5175d
MK
144942014-02-05 Mark Kettenis <kettenis@gnu.org>
14495
14496 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14497 defined.
14498
8dc5b319
YQ
144992014-02-05 Yao Qi <yao@codesourcery.com>
14500
14501 * remote.c (remote_pass_signals): Remove local 'buf' and use
14502 rs->buf.
14503 (remote_program_signals): Likewise.
14504
de7b2893
YQ
145052014-02-05 Yao Qi <yao@codesourcery.com>
14506
14507 * ctf.c: Include "inferior.h" and "gdbthread.h".
14508 (CTF_PID): A new macro.
14509 (ctf_open): Call inferior_appeared and add_thread_silent.
14510 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14511 (ctf_thread_alive): New function.
14512 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14513
66d032ac
YQ
145142014-02-05 Yao Qi <yao@codesourcery.com>
14515
14516 Revert this patch:
14517
14518 2013-05-24 Yao Qi <yao@codesourcery.com>
14519
14520 * tracepoint.c (TFILE_PID): Remove.
14521 (tfile_open): Don't add thread and inferior.
14522 (tfile_close): Don't set 'inferior_ptid'. Don't call
14523 exit_inferior_silent.
14524 (tfile_thread_alive): Remove.
14525 (init_tfile_ops): Don't set field 'to_thread_alive' of
14526 tfile_ops.
14527
f4ccffad
CE
145282014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14529
14530 * remote.c (remote_start_remote): Call remote_check_symbols even
14531 if only symbol-file (not file) has been given.
14532
591a12a1
UW
145332014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14534
14535 * gdbarch.sh (skip_entrypoint): New callback.
14536 * gdbarch.c, gdbarch.h: Regenerate.
14537 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14538 * infrun.c (fill_in_stop_func): Likewise.
14539 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14540 (ppc_elfv2_elf_make_msymbol_special): New function.
14541 (ppc_elfv2_skip_entrypoint): Likewise.
14542 (ppc_linux_init_abi): Install them for ELFv2.
14543
cc0e89c5
UW
145442014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14545
14546 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14547 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14548 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14549 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14550 structures returned in GPRs.
14551
52f548e4
UW
145522014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14553
14554 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14555 offset to the stack parameter list for the ELFv2 ABI.
14556
d4094b6a
UW
145572014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14558
14559 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14560 set_gdbarch_convert_from_func_ptr_addr and
14561 set_gdbarch_elf_make_msymbol_special for ELFv1.
14562 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14563 function descriptors on ELFv1.
14564 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14565 set up r12 at function entry.
14566
cd453cd0
UW
145672014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14568
14569 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14570 (struct gdbarch_tdep): New member elf_abi.
14571
14572 * rs6000-tdep.c: Include "elf/ppc64.h".
14573 (rs6000_gdbarch_init): Detect ELF ABI version.
14574
0ff3e01f
UW
145752014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14576
14577 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14578 within a register pair holding a DFP 128-bit value on little-endian.
14579 (ppc64_sysv_abi_return_value_base): Likewise.
14580 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14581 (dfp_pseudo_register_write): Likewise.
14582
5b757e5d
UW
145832014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14584
14585 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14586 offset on little-endian when passing _Decimal32.
14587 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14588
084ee545
UW
145892014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14590
14591 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14592 of the overlapped FP register within the VSX register on little-
14593 endian platforms.
14594 (efpr_pseudo_register_write): Likewise.
14595
d63167af
UW
145962014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14597
14598 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14599 offset on little-endian when passing small structures.
14600
e765b44c
UW
146012014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14602
14603 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14604 (struct ppc64_sysv_argpos): New data structure.
14605 (ppc64_sysv_abi_push_float): Remove.
14606 (ppc64_sysv_abi_push_val): New function.
14607 (ppc64_sysv_abi_push_integer): Likewise.
14608 (ppc64_sysv_abi_push_freg): Likewise.
14609 (ppc64_sysv_abi_push_vreg): Likewise.
14610 (ppc64_sysv_abi_push_param): Likewise.
14611 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14612 (ppc64_sysv_abi_return_value_base): New function.
14613 (ppc64_sysv_abi_return_value): Refactor to use it.
14614
36c24d95
UW
146152014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14616
14617 * NEWS: Document new target powerpc64le-*-linux*.
14618
26fd9228
MK
146192014-02-04 Mark Kettenis <kettenis@gnu.org>
14620
14621 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14622 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14623 core dumps.
14624 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14625 register set used in ELF core dumps. Add floating-point register set.
14626
c5bb7362
KB
146272014-02-03 Kevin Buettner <kevinb@redhat.com>
14628
74228e77 14629 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
14630 dwarf2_to_gdb[] table using symbolic constants. Adjust
14631 penultimate entry from number representing the PC register
14632 to symbolic constant representing the MDR register. Add
14633 constant for the PC register to the end of the table.
14634
af09351e
MK
146352014-02-03 Mark Kettenis <kettenis@gnu.org>
14636
14637 * bsd-kvm.c: Include <sys/param.h>
14638
8507e05d
MK
146392014-02-03 Mark Kettenis <kettenis@gnu.org>
14640
14641 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14642
ae56bfb8
JB
146432014-01-31 Joel Brobecker <brobecker@adacore.com>
14644
14645 * ada-lang.h (clear_ada_sym_cache): Delete.
14646
718ee4dc
UW
146472014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14648
14649 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14650
401e27fd
JM
146512014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14652
14653 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14654 the sigreturn register save area only if the syscall is
14655 sigreturn.
14656
a7c88acd
JB
146572014-01-29 Joel Brobecker <brobecker@adacore.com>
14658
14659 * valops.c (value_slice): Minor reformatting.
14660
fa0079ea
UW
146612014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14662
14663 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14664
c6044dd1
JB
146652014-01-28 Joel Brobecker <brobecker@adacore.com>
14666
14667 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14668 New static globals.
14669 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14670 (ada_ignore_descriptive_types_p): New static global.
14671 (find_parallel_type_by_descriptive_type): Return immediately
14672 if ada_ignore_descriptive_types_p is set.
14673 (_initialize_ada_language): Register new commands "maintenance
14674 set ada", "maintenance show ada", "maintenance set ada
14675 ignore-descriptive-types" and "maintenance show ada
14676 ignore-descriptive-types".
14677 * NEWS: Add entry for new "maint ada set/show
14678 ignore-descriptive-types" commands.
14679
568e808b
MM
146802014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14681
14682 * record-btrace.c (record_btrace_close): Call btrace_teardown
14683 for all threads.
14684
467d141b
JB
146852014-01-27 Joel Brobecker <brobecker@adacore.com>
14686
14687 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14688 "ui-out.h".
14689
fb151210
JB
146902014-01-27 Joel Brobecker <brobecker@adacore.com>
14691
14692 * ada-typeprint (type_is_full_subrange_of_target_type):
14693 New function.
14694 (print_range): Add parameter bounds_prefered_p. If not set,
14695 try printing range types using the name of their base type.
14696 (print_range_type): Add parameter bounds_prefered_p.
14697 Use it in call to print_range.
14698 (print_array_type, ada_print_type): Update calls to print_range
14699 and print_range_type.
14700
aba02109
JB
147012014-01-27 Joel Brobecker <brobecker@adacore.com>
14702
14703 * ada-typeprint.c (print_array_type, print_choices, print_range)
14704 (print_range_bound, print_dynamic_range_bound, print_range_type):
14705 Remove declaration.
14706
e62e21fd
JB
147072014-01-27 Joel Brobecker <brobecker@adacore.com>
14708
14709 * ada-typeprint.c (print_range): Add missing empty line
14710 after local declaration.
14711
859cf5d1
JB
147122014-01-27 Joel Brobecker <brobecker@adacore.com>
14713
14714 * ada-valprint.c (print_optional_low_bound): Get index_type's
14715 target type for as long as it is a TYPE_CODE_RANGE.
14716
25790f6f
JB
147172014-01-27 Joel Brobecker <brobecker@adacore.com>
14718
14719 * procfs.c (procfs_make_note_section): Remove assertion and
14720 associated comment.
14721
6b6aa828
YQ
147222014-01-24 Yao Qi <yao@codesourcery.com>
14723
14724 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14725 * corelow.c (get_core_siginfo): Likewise.
14726
5d6df423
YQ
147272014-01-24 Yao Qi <yao@codesourcery.com>
14728
14729 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14730 ULONGEST. Don't check 'len' is negative.
14731 (remote_write_bytes): Change type of 'len' to ULONGEST.
14732
83b645b8
TT
147332014-01-23 Tom Tromey <tromey@redhat.com>
14734
14735 PR python/16485:
14736 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14737 Handle exception from frame.block.
14738 (FrameVars.fetch_frame_locals): Likewise.
14739
0740f8d8
TT
147402014-01-23 Tom Tromey <tromey@redhat.com>
14741
14742 PR python/16487:
14743 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14744 on a NULL pointer. Move "goto error" to correct place.
14745
21909fa1
TT
147462014-01-23 Tom Tromey <tromey@redhat.com>
14747
14748 PR python/16491:
14749 * python/py-framefilter.c (apply_frame_filter): Call
14750 ensure_python_env after computing gdbarch.
14751
17fde6d0
YQ
147522014-01-23 Yao Qi <yao@codesourcery.com>
14753
14754 * target.c (raw_memory_xfer_partial): Change argument type
14755 from void * to gdb_byte *.
14756 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14757
87ce2a04
DE
147582014-01-22 Doug Evans <dje@google.com>
14759
14760 New gdbserver option --debug-format=timestamp.
14761 * NEWS: Mention it.
14762
237b092b
AA
147632014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14764
14765 * syscalls/s390x-linux.xml: New file.
14766 * syscalls/s390-linux.xml: New file.
14767 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14768 (XML_SYSCALL_FILENAME_S390X): Likewise.
14769 (op_svc): New enum value for SVC opcode.
14770 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14771 (s390_linux_get_syscall_number): New function.
14772 (s390_gdbarch_init): Register '*get_syscall_number' and the
14773 syscall xml file name.
14774 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14775 "s390-linux.xml" and "s390x-linux.xml".
14776 * NEWS: Announce new feature.
14777
54bff650
BS
147782014-01-22 Baruch Siach <baruch@tkos.co.il>
14779
14780 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14781
14e361d7
PA
147822014-01-22 Pedro Alves <palves@redhat.com>
14783
14784 * xtensa-config.c: Include defs.h.
14785
46bbb3ed
JB
147862014-01-22 Joel Brobecker <brobecker@adacore.com>
14787
14788 * common/common-utils.h: Add "ARI:" comment beside __func__
14789 reference.
14790
3a80edfc
JB
147912014-01-22 Joel Brobecker <brobecker@adacore.com>
14792
14793 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14794 documentation a bit.
14795
4869db5e
RM
147962014-01-21 Roland McGrath <mcgrathr@google.com>
14797
14798 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14799 * configure: Regenerate.
14800 * aclocal.m4: Regenerate.
14801 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14802 New substituted variables.
14803 (install-strip): New target.
14804 (INSTALL_SCRIPT): New substituted variable.
14805 (FLAGS_TO_PASS): Add it.
14806 (install-only): Use $(INSTALL_SCRIPT) rather than
14807 $(INSTALL_PROGRAM) for gcore.
14808
9ea4267d
TT
148092014-01-20 Tom Tromey <tromey@redhat.com>
14810
14811 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14812 together.
14813
1f2bdf09
TT
148142014-01-20 Tom Tromey <tromey@redhat.com>
14815
14816 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14817 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14818 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14819 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14820 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14821 (struct cmd_list_element) <flags>: Remove.
14822 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14823 doc_allocated>: New fields.
14824 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14825 bitfields.
14826 * maint.c (maintenance_do_deprecate): Update.
14827 * top.c (execute_command): Update.
14828
e671835b
BS
148292014-01-20 Baruch Siach <baruch@tkos.co.il>
14830
14831 * xtensa-linux-nat.c: Include asm/ptrace.h.
14832
50367cd2
IB
148332014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14834
14835 * Makefile.in (SFILES): Add d-support.c.
14836 (COMMON_OBS): Add d-support.o.
14837 * d-lang.h (d_parse_symbol): Add comment, now defined in
14838 d-support.c.
14839 * d-lang.c (parse_call_convention)
14840 (parse_attributes, parse_function_types)
14841 (parse_function_args, parse_type, parse_identifier)
14842 (call_convention_p, d_parse_symbol): Move functions to ...
14843 * d-support.c: ... New file.
14844
ec9f644a
IB
148452014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14846
14847 * d-lang.h (d_parse_symbol): Add declaration.
14848 * d-lang.c (extract_identifiers)
14849 (extract_type_info): Remove functions.
14850 (parse_call_convention, parse_attributes)
14851 (parse_function_types, parse_function_args)
14852 (parse_type, parse_identifier, call_convention_p)
14853 (d_parse_symbol): New functions.
14854 (d_demangle): Use d_parse_symbol to demangle D symbols.
14855
94b1b47e
IB
148562014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14857
14858 * d-lang.h (struct builtin_d_type): New data type.
14859 (builtin_d_type): Add declaration.
14860 * d-lang.c (d_language_arch_info, build_d_types)
14861 (builtin_d_type): New functions.
14862 (enum d_primitive_types): New data type.
14863 (d_language_defn): Change c_language_arch_info to
14864 d_language_arch_info.
14865 (d_type_data): New static variable.
14866 (_initialize_d_language): Initialize d_type_data.
14867
63778547
IB
148682014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14869
14870 * d-lang.h (d_main_name): Add declaration.
14871 * d-lang.c (d_main_name): New function.
14872 * symtab.c (find_main_name): Add call to d_main_name.
14873
3271ba66
IB
148742014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14875
14876 * d-lang.c (d_language_defn): Change macro_expansion_c to
14877 macro_expansion_no.
14878
d36b3012
IB
148792014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14880
14881 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14882
c90a6fb7
SDJ
148832014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14884
14885 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14886 gdb_exception" declaration.
14887 * remote.c (getpkt_or_notif_sane): Likewise.
14888
749234e5
DE
148892014-01-17 Doug Evans <dje@google.com>
14890
14891 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14892 function, contents of dirnames_to_char_ptr_vec_append moved here.
14893 (delim_string_to_char_ptr_vec): New function.
14894 (dirnames_to_char_ptr_vec_append): Rewrite.
14895 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14896
df049a58
DE
148972014-01-17 Doug Evans <dje@google.com>
14898
14899 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14900 and moved here ...
14901 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14902 #include "common-utils.h".
14903 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14904 * common/vec.h (VEC_ASSERT_PASS): Update.
14905 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14906 (MACH_CHECK_ERROR): Update.
14907
69f97648
SM
149082014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14909
14910 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14911 comments.
14912 * gdbarch.h: Regenerate.
14913
98b1cfdc
TT
149142014-01-16 Tom Tromey <tromey@redhat.com>
14915
14916 * value.c (struct value) <regnum>: Move earlier.
14917
77a19445
TT
149182014-01-16 Tom Tromey <tromey@redhat.com>
14919
14920 * remote.c (extended_remote_create_inferior): Rename from
14921 extended_remote_create_inferior_1. Add "ops" argument. Remove
14922 old implementation.
14923
62261490
PA
149242014-01-16 Pedro Alves <palves@redhat.com>
14925
14926 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14927 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14928 the backchain.
14929
4d65956b
DE
149302014-01-16 Doug Evans <dje@google.com>
14931
14932 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14933
52834460
MM
149342014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14935
14936 * btrace.h (btrace_thread_flag): New.
14937 (struct btrace_thread_info) <flags>: New.
14938 * record-btrace.c (record_btrace_resume_thread)
14939 (record_btrace_find_thread_to_move, btrace_step_no_history)
14940 (btrace_step_stopped, record_btrace_start_replaying)
14941 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14942 (record_btrace_find_resume_thread): New.
14943 (record_btrace_resume, record_btrace_wait): Extend.
14944 (record_btrace_can_execute_reverse): New.
14945 (record_btrace_open): Fail in non-stop mode.
14946 (record_btrace_set_replay): Split into this, ...
14947 (record_btrace_stop_replaying): ... this, ...
14948 (record_btrace_clear_histories): ... and this.
14949 (init_record_btrace_ops): Init to_can_execute_reverse.
14950 * NEWS: Announce it.
14951
118e6252
MM
149522014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14953
14954 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14955 (forward_target_decr_pc_after_break)
14956 (target_decr_pc_after_break): New.
14957 * target.c (forward_target_decr_pc_after_break)
14958 (target_decr_pc_after_break): New.
14959 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14960 instead of gdbarch_decr_pc_after_break.
14961 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14962 instead of gdbarch_decr_pc_after_break.
14963 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14964 instead of gdbarch_decr_pc_after_break.
14965 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14966 instead of gdbarch_decr_pc_after_break.
14967 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14968 instead of gdbarch_decr_pc_after_break.
14969 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14970 instead of gdbarch_decr_pc_after_break.
14971
6e07b1d2
MM
149722014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14973
14974 * btrace.c: Include regcache.h.
14975 (btrace_add_pc): New.
14976 (btrace_enable): Call btrace_add_pc.
14977 (btrace_is_empty): New.
14978 * btrace.h (btrace_is_empty): New.
14979 * record-btrace.c (require_btrace, record_btrace_info): Call
14980 btrace_is_empty.
14981
969c39fb
MM
149822014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14983
14984 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14985 Support delta reads.
14986 (linux_disable_btrace): Change return type.
14987 * common/linux-btrace.h (linux_read_btrace): Change parameters
14988 and return type to allow error reporting. Update users.
14989 (linux_disable_btrace): Change return type. Update users.
14990 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14991 New.
14992 (btrace_error): New.
14993 (btrace_block) <begin>: Comment on BEGIN == 0.
14994 * btrace.c (btrace_compute_ftrace): Start from the end of
14995 the current trace.
14996 (btrace_stitch_trace, btrace_clear_history): New.
14997 (btrace_fetch): Read delta trace, return if replaying.
14998 (btrace_clear): Move clear history code to btrace_clear_history.
14999 (parse_xml_btrace): Throw an error if parsing failed.
15000 * target.h (struct target_ops) <to_read_btrace>: Change parameters
15001 and return type to allow error reporting.
15002 (target_read_btrace): Change parameters and return type to allow
15003 error reporting.
15004 * target.c (target_read_btrace): Update.
15005 * remote.c (remote_read_btrace): Support delta reads. Pass
15006 errors on.
15007 * NEWS: Announce it.
15008
0b722aec
MM
150092014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15010
15011 * record.h (record_btrace_frame_unwind)
15012 (record_btrace_tailcall_frame_unwind): New declarations.
15013 * dwarf2-frame: Include record.h
15014 (dwarf2_frame_cfa): Throw an error for btrace frames.
15015 * record-btrace.c: Include hashtab.h.
15016 (btrace_get_bfun_name): New.
15017 (btrace_call_history): Call btrace_get_bfun_name.
15018 (struct btrace_frame_cache): New.
15019 (bfcache): New.
15020 (bfcache_hash, bfcache_eq, bfcache_new): New.
15021 (btrace_get_frame_function): New.
15022 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
15023 (record_btrace_frame_this_id): Compute own id.
15024 (record_btrace_frame_prev_register): Provide PC, throw_error
15025 for all other registers.
15026 (record_btrace_frame_sniffer): Detect btrace frames.
15027 (record_btrace_tailcall_frame_sniffer): New.
15028 (record_btrace_frame_dealloc_cache): New.
15029 (record_btrace_frame_unwind): Add new functions.
15030 (record_btrace_tailcall_frame_unwind): New.
15031 (_initialize_record_btrace): Allocate cache.
15032 * btrace.c (btrace_clear): Call reinit_frame_cache.
15033 * NEWS: Announce it.
15034
066ce621
MM
150352014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15036
15037 * record-btrace.c (record_btrace_set_replay)
15038 (record_btrace_goto_begin, record_btrace_goto_end)
15039 (record_btrace_goto): New.
15040 (init_record_btrace_ops): Initialize them.
15041 * NEWS: Announce it.
15042
e2887aa3
MM
150432014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15044
15045 * record-btrace.c (record_btrace_find_new_threads)
15046 (record_btrace_thread_alive): New.
15047 (init_record_btrace_ops): Initialize to_find_new_threads and
15048 to_thread_alive.
15049
b2f4cfde
MM
150502014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15051
15052 * record-btrace.c (record_btrace_resume): New.
15053 (record_btrace_wait): New.
15054 (init_record_btrace_ops): Initialize to_wait and to_resume.
15055
633785ff
MM
150562014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15057
15058 * record-btrace.c (record_btrace_xfer_partial)
15059 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
15060 (record_btrace_allow_memory_access): New.
15061 (init_record_btrace_ops): Initialize new methods.
15062 * target.c (raw_memory_xfer_partial): Bail out if target reports
15063 that this memory is not available.
15064
3db08215
MM
150652014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15066
15067 * target.h (target_ops) <to_insert_breakpoint>
15068 <to_remove_breakpoint>: Add target_ops parameter.
15069 (forward_target_insert_breakpoint): New.
15070 (forward_target_remove_breakpoint): New.
15071 (memory_remove_breakpoint, memory_insert_breakpoint):
15072 Add target_ops parameter.
15073 * target.c (target_insert_breakpoint): Split into this and ...
15074 (forward_target_insert_breakpoint): ... this.
15075 (target_remove_breakpoint): Split into this and ...
15076 (forward_target_remove_breakpoint): ... this.
15077 (debug_to_insert_breakpoint): Add target_ops parameter.
15078 Call forward_target_insert_breakpoint.
15079 (debug_to_remove_breakpoint): Add target_ops parameter.
15080 Call forward_target_remove_breakpoint.
15081 (update_current_target): Do not inherit or default to_insert_breakpoint
15082 and to_remove_breakpoint.
15083 * corelow.c (ignore): Add target_ops parameter.
15084 * exec.c (ignore): Add target_ops parameter.
15085 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
15086 Add target_ops parameter.
15087 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
15088 Add target_ops parameter.
15089 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
15090 Add target_ops parameter.
15091 * record-full.c (record_full_beneath_to_insert_breakpoint)
15092 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
15093 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
15094 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
15095 (record_full_core_remove_breakpoint): Add target_ops parameter.
15096 Update users.
15097 (record_full_beneath_to_insert_breakpoint_ops)
15098 (record_full_beneath_to_remove_breakpoint_ops)
15099 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
15100 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
15101 tmp_to_remove_breakpoint_ops,
15102 record_full_beneath_to_insert_breakpoint_ops, and
15103 record_full_beneath_to_remove_breakpoint_ops.
15104 * remote-m32r-sdi.c (m32r_insert_breakpoint)
15105 (m32r_remove_breakpoint): Add target_ops parameter.
15106 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15107 Add target_ops parameter.
15108 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15109 Add target_ops parameter.
15110
cecac1ab
MM
151112014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15112 Markus Metzger <markus.t.metzger@intel.com>
15113
15114 * record-btrace.c: Include frame-unwind.h.
15115 (record_btrace_frame_unwind_stop_reason)
15116 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15117 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15118 New.
15119 (init_record_btrace_ops): Install it.
15120
824344ca
MM
151212014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15122
15123 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15124 get_prev_frame_1.
15125
32261e52
MM
151262014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15127
15128 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15129 earlier.
15130
ea001bdc
MM
151312014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15132
15133 * frame-unwind.c: Include target.h.
15134 (frame_unwind_try_unwinder): New function with code from ...
15135 (frame_unwind_find_by_frame): ... here. New variable
15136 unwinder_from_target, call also target_get_unwinder)
15137 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15138 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15139 * target.h (struct target_ops): New fields to_get_unwinder and
15140 to_get_tailcall_unwinder.
15141 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15142
1f3ef581
MM
151432014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15144
15145 * record-btrace.c (record_btrace_fetch_registers)
15146 (record_btrace_store_registers)
15147 (record_btrace_to_prepare_to_store): New.
15148 (init_record_btrace_ops): Add the above.
15149
f32dbf8c
MM
151502014-01-16 Tom Tromey <tromey@redhat.com>
15151
15152 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15153 * target.h (struct target_ops) <to_prepare_to_store>: Add
15154 argument.
15155 (target_prepare_to_store): Add argument.
15156 * target.c (debug_to_prepare_to_store): Add argument.
15157 (update_current_target): Update.
15158 * remote.c (remote_prepare_to_store): Add 'self' argument.
15159 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15160 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15161 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15162 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15163 argument.
15164 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15165 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15166 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15167 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15168 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15169
07bbe694
MM
151702014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15171
15172 * btrace.h (replay) <replay>: New.
15173 (btrace_is_replaying): New.
15174 * btrace.c (btrace_clear): Free replay iterator.
15175 (btrace_is_replaying): New.
15176 * record-btrace.c (record_btrace_is_replaying): New.
15177 (record_btrace_info): Print insn number if replaying.
15178 (record_btrace_insn_history): Start at replay position.
15179 (record_btrace_call_history): Start at replay position.
15180 (init_record_btrace_ops): Init to_record_is_replaying.
15181
0688d04e
MM
151822014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15183
15184 * record-btrace.c (record_btrace_insn_history_range): Include
15185 end.
15186 (record_btrace_insn_history_from): Adjust range.
15187 (record_btrace_call_history_range): Include
15188 end.
15189 (record_btrace_call_history_from): Adjust range.
15190 * NEWS: Announce changes.
15191
8710b709
MM
151922014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15193
15194 * record.h (enum record_print_flag)
15195 <record_print_indent_calls>: New.
15196 * record.c (get_call_history_modifiers): Recognize /c modifier.
15197 (_initialize_record): Document /c modifier.
15198 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15199 Reorder fields. Optionally indent the function name. Update
15200 all users.
15201 * NEWS: Announce changes.
15202
d0fa7535
MM
152032014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15204
15205 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15206
5de9129b
MM
152072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15208
15209 * btrace.c (ftrace_new_function): Start counting at one.
15210 * record-btrace.c (record_btrace_info): Adjust number of calls
15211 and insns.
15212 * NEWS: Announce it.
15213
7acbe133
MM
152142014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15215
15216 * record-btrace.c (btrace_call_history_insn_range): Print
15217 insn range as [begin, end].
15218
23a7fe75
MM
152192014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15220
15221 * btrace.h (struct btrace_func_link): New.
15222 (enum btrace_function_flag): New.
15223 (struct btrace_inst): Rename to ...
15224 (struct btrace_insn): ...this. Update all users.
15225 (struct btrace_func) <ibegin, iend>: Remove.
15226 (struct btrace_func_link): New.
15227 (struct btrace_func): Rename to ...
15228 (struct btrace_function): ...this. Update all users.
15229 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15230 (number, level, flags>: New.
15231 (struct btrace_insn_iterator): Rename to ...
15232 (struct btrace_insn_history): ...this.
15233 Update all users.
15234 (struct btrace_insn_iterator, btrace_call_iterator): New.
15235 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15236 (struct btrace_target_info) <begin, end, level>
15237 <insn_history, call_history>: New.
15238 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15239 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15240 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15241 (btrace_call_number, btrace_call_begin, btrace_call_end)
15242 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15243 (btrace_find_function_by_number, btrace_set_insn_history)
15244 (btrace_set_call_history): New.
15245 * btrace.c (btrace_init_insn_iterator)
15246 (btrace_init_func_iterator, compute_itrace): Remove.
15247 (ftrace_print_function_name, ftrace_print_filename)
15248 (ftrace_skip_file): Change
15249 parameter to const.
15250 (ftrace_init_func): Remove.
15251 (ftrace_debug): Use new btrace_function fields.
15252 (ftrace_function_switched): Also consider gaining and
15253 losing symbol information).
15254 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15255 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15256 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15257 New.
15258 (ftrace_new_function): Move. Remove debug print.
15259 (ftrace_update_lines, ftrace_update_insns): New.
15260 (ftrace_update_function): Check for call, ret, and jump.
15261 (compute_ftrace): Renamed to ...
15262 (btrace_compute_ftrace): ...this. Rewritten to compute call
15263 stack.
15264 (btrace_fetch, btrace_clear): Updated.
15265 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15266 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15267 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15268 (btrace_call_number, btrace_call_begin, btrace_call_end)
15269 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15270 (btrace_find_function_by_number, btrace_set_insn_history)
15271 (btrace_set_call_history): New.
15272 * record-btrace.c (require_btrace): Use new btrace thread
15273 info fields.
15274 (record_btrace_info, btrace_insn_history)
15275 (record_btrace_insn_history, record_btrace_insn_history_range):
15276 Use new btrace thread info fields and new iterator.
15277 (btrace_func_history_src_line): Rename to ...
15278 (btrace_call_history_src_line): ...this. Use new btrace
15279 thread info fields.
15280 (btrace_func_history): Rename to ...
15281 (btrace_call_history): ...this. Use new btrace thread info
15282 fields and new iterator.
15283 (record_btrace_call_history, record_btrace_call_history_range):
15284 Use new btrace thread info fields and new iterator.
15285
8372a7cb
MM
152862014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15287
15288 * frame.h (frame_id_build_unavailable_stack_special): New.
15289 * frame.c (frame_id_build_unavailable_stack_special): New.
15290
c2170eef
MM
152912014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15292
15293 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15294 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15295 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15296 to gdbarch.
15297 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15298 (i386_insn_is_jump, i386_jmp_p): New.
15299 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15300 insn_is_jump to gdbarch.
15301 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15302 * gdbarch.h: Regenerated.
15303 * gdbarch.c: Regenerated.
15304 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15305 (default_insn_is_jump): New.
15306 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15307 (default_insn_is_jump): New.
15308
864089d2
MM
153092014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15310
15311 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15312 Change to ...
15313 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15314 (btrace_read_type) <btrace_read_new>: Change to ...
15315 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15316
ed9edfb5
MM
153172014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15318
15319 * common/linux-btrace.c (linux_read_btrace): Free trace from
15320 previous iteration.
15321
fbcbc3fd
DE
153222014-01-15 Doug Evans <dje@google.com>
15323
15324 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15325 uint32_t.
15326
3d548a53
TT
153272014-01-15 Tom Tromey <tromey@redhat.com>
15328
15329 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15330 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15331 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15332 (set_objfile_main_name): New function.
15333 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15334 language_of_main>: New fields.
15335 (set_objfile_main_name): Declare.
15336 * symtab.c (find_main_name): Loop over objfiles to find the main
15337 name and language.
15338 (set_main_name): Now static.
15339 (get_main_info): Add comment.
15340 * symtab.h (set_main_name): Don't declare.
15341
32ac0d11
TT
153422014-01-15 Tom Tromey <tromey@redhat.com>
15343
15344 * symtab.c (main_progspace_key): New global.
15345 (struct main_info): New.
15346 (name_of_main, language_of_main): Remove.
15347 (get_main_info, main_info_cleanup): New function.
15348 (set_main_name, main_name, main_language): Use get_main_info.
15349 (_initialize_symtab): Initialize main_progspace_key.
15350
9e6c82ad
TT
153512014-01-15 Tom Tromey <tromey@redhat.com>
15352
15353 * dbxread.c (process_one_symbol): Update.
15354 * dwarf2read.c (read_partial_die): Update.
15355 * symfile.c (set_initial_language): Call main_language.
15356 * symtab.c (language_of_main): Now static.
15357 (set_main_name): Add 'lang' parameter.
15358 (find_main_name): Update.
15359 (main_language): New function.
15360 (symtab_observer_executable_changed): Update.
15361 * symtab.h (set_main_name): Update.
15362 (language_of_main): Remove.
15363 (main_language): Declare.
15364
6ef55de7
TT
153652014-01-15 Tom Tromey <tromey@redhat.com>
15366
15367 * symfile.c (init_entry_point_info): Use new "initialized" field.
15368 Update.
15369 * objfiles.h (struct entry_point) <initialized>: New field.
15370 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15371 (struct objfile) <ei>: ...here. Remove.
15372 * objfiles.c (entry_point_address_query): Update.
15373
53eddfa6
TT
153742014-01-15 Tom Tromey <tromey@redhat.com>
15375
15376 * objfiles.c (entry_point_address_query): Relocate entry point
15377 address.
15378 (objfile_relocate1): Do not relocate entry point address.
15379 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15380 <the_bfd_section_index>: New field.
15381 * symfile.c (init_entry_point_info): Find the entry point's
15382 section.
15383
d56e56aa
TT
153842014-01-15 Tom Tromey <tromey@redhat.com>
15385
15386 * solib-frv.c (enable_break): Use entry_point_address_query.
15387
33a97bbe
OJ
153882014-01-15 Omair Javaid <omair.javaid@linaro.org>
15389
15390 * NEWS: Add note on improved process record-replay on
15391 arm*-linux* targets.
15392
c6ec2b30
OJ
153932014-01-15 Omair Javaid <omair.javaid@linaro.org>
15394
15395 * arm-tdep.c (enum arm_record_result): New enum.
15396 (arm_record_unsupported_insn): New function.
15397 (arm_record_coproc_data_proc): Removed.
15398 (thumb2_record_ld_st_multiple): New function.
15399 (thumb2_record_ld_st_dual_ex_tbb): New function.
15400 (thumb2_record_data_proc_sreg_mimm): New function.
15401 (thumb2_record_ps_dest_generic): New function.
15402 (thumb2_record_branch_misc_cntrl): New function.
15403 (thumb2_record_str_single_data): New function.
15404 (thumb2_record_ld_mem_hints): New function.
15405 (thumb2_record_ld_word): New function.
15406 (thumb2_record_lmul_lmla_div): New function.
15407 (thumb2_record_decode_insn_handler): New function.
15408 (decode_insn): Add thumb32 instruction handlers.
15409
97dfe206
OJ
154102014-01-15 Omair Javaid <omair.javaid@linaro.org>
15411
15412 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15413 (struct arm_linux_record_tdep): Declare.
15414 (arm_canonicalize_syscall): New function.
15415 (arm_all_but_pc_registers_record): New function.
15416 (arm_linux_syscall_record): New function.
15417 (arm_linux_init_abi): Add syscall recording constructs.
15418 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15419 decoding. (arm_record_coproc_data_proc): Update arm syscall
15420 decoding.
15421 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15422 <arm_syscall_record>: New field.
15423 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15424 gdb_target_obs.
15425
9904a494
OJ
154262014-01-15 Omair Javaid <omair.javaid@linaro.org>
15427
15428 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15429 register for push instruction recording.
15430
f969241e
OJ
154312014-01-15 Omair Javaid <omair.javaid@linaro.org>
15432
15433 * arm-tdep.c (thumb_record_misc): Update to correct logical
15434 error while recording ldm, ldmia and pop instructions.
15435
bfbbec00
OJ
154362014-01-15 Omair Javaid <omair.javaid@linaro.org>
15437
15438 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15439
e40adcc9
PA
154402014-01-15 Pedro Alves <palves@redhat.com>
15441
15442 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15443 (go32_resume, go32_fetch_registers, store_register)
15444 (go32_store_registers, go32_prepare_to_store)
15445 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15446 (go32_create_inferior, go32_can_run, go32_terminal_init)
15447 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15448 declarations.
15449
b0a16e66
TT
154502014-01-15 Tom Tromey <tromey@redhat.com>
15451
15452 * target.h (async_callback_ftype): New typedef.
15453 (struct target_ops) <to_async>: Use it.
15454
bf7105a4
JB
154552014-01-15 Joel Brobecker <brobecker@adacore.com>
15456
15457 * python/py-value.c (get_field_type): Remove unnecessary curly
15458 braces for single-statement if block.
15459
a8f35c2e
JB
154602014-01-15 Joel Brobecker <brobecker@adacore.com>
15461
15462 * python/py-type.c (convert_field): Add missing empty line
15463 after declarations.
15464
bb4142cf
DE
154652014-01-14 Doug Evans <dje@google.com>
15466
15467 * symfile.h (expand_symtabs_matching): Renamed from
15468 expand_partial_symbol_names. Update prototype.
15469 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15470 * symfile.c (expand_symtabs_matching): Renamed from
15471 expand_partial_symbol_names. New args file_matcher, kind.
15472 Rename arg fun to symbol_matcher.
15473 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15474 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15475 ada_expand_partial_symbol_name.
15476 (ada_make_symbol_completion_list): Update to call
15477 expand_symtabs_matching.
15478 (ada_add_global_exceptions): Call expand_symtabs_matching.
15479 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15480 call map_symbol_filenames.
15481 * symtab.c (sources_info): Update to call map_symbol_filenames.
15482 (search_symbols): Call expand_symtabs_matching.
15483 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15484 (default_make_symbol_completion_list_break_on): Update to call
15485 expand_symtabs_matching.
15486 (make_source_files_completion_list): Update to call
15487 map_symbol_filenames.
15488
206f2a57
DE
154892014-01-14 Doug Evans <dje@google.com>
15490
15491 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15492 (expand_symtabs_symbol_matcher_ftype): New typedef.
15493 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15494 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15495 * symfile.c (expand_partial_symbol_names): Update to use
15496 expand_symtabs_symbol_matcher_ftype.
15497 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15498 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15499 Arg name_matcher renamed to symbol_matcher.
15500 * psymtab.c (recursively_search_psymtabs): Update to use
15501 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15502 sym_matcher.
15503 (expand_symtabs_matching_via_partial): Update to use
15504 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15505 Arg name_matcher renamed to symbol_matcher.
15506
540c2971
DE
155072014-01-14 Doug Evans <dje@google.com>
15508
15509 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15510 (map_partial_symbol_filenames): Ditto.
15511 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15512 (map_partial_symbol_filenames): Ditto.
15513 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15514 (map_partial_symbol_filenames): Ditto.
15515 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15516 (map_partial_symbol_filenames): Ditto.
15517 * symtab.c: Delete #include "psymtab.h".
15518
8213266a
PA
155192014-01-14 Pedro Alves <palves@redhat.com>
15520 Tom Tromey <tromey@redhat.com>
15521
15522 * infrun.c (use_displaced_stepping): Use find_record_target
15523 instead of RECORD_IS_USED.
15524 (adjust_pc_after_break): Use record_full_is_used instead of
15525 RECORD_IS_USED.
15526 * record-btrace.c (record_btrace_open): Call record_preopen
15527 instead of checking RECORD_IS_USED.
15528 * record-full.c (record_full_shortname)
15529 (record_full_core_shortname): New globals.
15530 (record_full_is_used): New function.
15531 (find_full_open): Call record_preopen instead of checking
15532 RECORD_IS_USED.
15533 (init_record_full_ops): Set the target's shortname to
15534 record_full_shortname.
15535 (init_record_full_core_ops): Set the target's shortname to
15536 record_full_core_shortname.
15537 * record-full.h (record_full_is_used): Declare.
15538 * record.c (find_record_target): Make extern.
15539 (record_preopen): New function.
15540 * record.h (RECORD_IS_USED): Delete macro.
15541 (find_record_target, record_preopen): Declare functions.
15542
7ec1862d
YQ
155432014-01-14 Yao Qi <yao@codesourcery.com>
15544
15545 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15546 'len''s type to ULONGEST.
15547 (core_xfer_shared_libraries_aix): Likewise.
15548 * gdbarch.c, gdbarch.h: Regenerated.
15549 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15550 Change type of 'len' to ULONGEST.
15551 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15552 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15553
dea80a27
YQ
155542014-01-14 Yao Qi <yao@codesourcery.com>
15555
15556 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15557 type of 'len' to ULONGEST.
15558 (linux_xfer_osdata_processgroups): Likewise.
15559 (linux_xfer_osdata_threads): Likewise.
15560 (linux_xfer_osdata_fds): Likewise.
15561 (linux_xfer_osdata_isockets): Likewise.
15562 (linux_xfer_osdata_shm): Likewise.
15563 (linux_xfer_osdata_sem): Likewise.
15564 (linux_xfer_osdata_msg): Likewise.
15565 (linux_common_xfer_osdata): Likewise.
15566 (struct osdata_type) <getter>: Likewise.
15567 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15568 the declaration.
15569
b55e14c7
YQ
155702014-01-14 Yao Qi <yao@codesourcery.com>
15571
15572 * target.h (target_xfer_partial_ftype): Update.
15573 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15574 ULONGEST.
15575 * aix-thread.c (aix_thread_xfer_partial): Change type of
15576 argument 'len' to ULONGEST.
15577 * auxv.c (procfs_xfer_auxv): Likewise.
15578 (ld_so_xfer_auxv): Likewise.
15579 (memory_xfer_auxv): Likewise.
15580 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15581 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15582 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15583 * corelow.c (core_xfer_partial): Likewise.
15584 * ctf.c (ctf_xfer_partial): Likewise.
15585 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15586 '%u'.
15587 (darwin_read_dyld_info): Likewise.
15588 (darwin_xfer_partial): Likewise.
15589 * exec.c (section_table_xfer_memory_partial): Likewise.
15590 (exec_xfer_partial): Likewise.
15591 * exec.h (section_table_xfer_memory_partial): Update
15592 declaration.
15593 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15594 instead of plongest.
15595 (gnu_xfer_partial): Likewise.
15596 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15597 (ia64_hpux_xfer_solib_got): Likewise.
15598 (ia64_hpux_xfer_partial): Likewise.
15599 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15600 * inf-ptrace.c (inf_ptrace_xfer_partial):
15601 * inf-ttrace.c (inf_ttrace_xfer_partial):
15602 * linux-nat.c (linux_xfer_siginfo): Likewise.
15603 (linux_nat_xfer_partial): Likewise.
15604 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15605 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15606 * monitor.c (monitor_xfer_memory): Likewise.
15607 (monitor_xfer_partial): Likewise.
15608 * procfs.c (procfs_xfer_partial): Likewise.
15609 * record-full.c (record_full_xfer_partial): Likewise.
15610 (record_full_core_xfer_partial): Likewise.
15611 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15612 instead of plongest.
15613 (gdbsim_xfer_partial): Likewise.
15614 * remote.c (remote_xfer_partial): Likewise.
15615 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15616 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15617 declaration.
15618 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15619 (rs6000_xfer_shared_libraries): Likewise.
15620 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15621 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15622 (sparc_xfer_partial): Likewise.
15623 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15624 (spu_xfer_partial): Likewise.
15625 * spu-multiarch.c (spu_xfer_partial): Likewise.
15626 * target.c (target_read_live_memory): Likewise.
15627 (memory_xfer_live_readonly_partial): Likewise.
15628 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15629 (target_xfer_partial, default_xfer_partial): Likewise.
15630 (current_xfer_partial): Likewise.
15631 * tracepoint.c (tfile_xfer_partial): Likewise.
15632 * windows-nat.c (windows_xfer_memory): Likewise. Call
15633 pulongest instead of plongest.
15634 (windows_xfer_partial): Likewise.
15635 (windows_xfer_shared_libraries): Likewise.
15636
05804640
YQ
156372014-01-14 Yao Qi <yao@codesourcery.com>
15638
15639 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15640 target_xfer_partial_ftype.
15641
b5b08fb4
SC
156422014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15643
15644 PR python/15464
15645 PR python/16113
15646 * valops.c (value_struct_elt_bitpos): New function
15647 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15648 object to 'None' if the field name is an empty string ("").
15649 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15650 attribute to look for a field when 'name' is 'None'.
15651 (get_field_type): New function
15652
13aaf454
DE
156532014-01-13 Doug Evans <dje@google.com>
15654
15655 PR symtab/16426
15656 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15657 (try_open_dwop_file): Ditto.
15658 * gdb_bfd.c: #include "vec.h".
15659 (bfdp): New typedef.
15660 (struct gdb_bfd_data): New member included_bfds.
15661 (gdb_bfd_unref): Unref all included bfds.
15662 (gdb_bfd_record_inclusion): New function.
15663 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15664
c2cec97c
TT
156652014-01-13 Tom Tromey <tromey@redhat.com>
15666
15667 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15668
78e5999d
TT
156692014-01-13 Tom Tromey <tromey@redhat.com>
15670
15671 * defs.h (use_windows): Remove.
15672 * gdb.c (main): Update.
15673 * main.c (captured_main, gdb_main): Update.
15674 * main.h (struct captured_main_args) <use_windows>: Remove.
15675 * top.c (use_windows): Remove.
15676
f2052bbe
TT
156772014-01-13 Tom Tromey <tromey@redhat.com>
15678
15679 * defs.h (deprecated_flush_hook): Remove.
15680
fde4f8ed
JK
156812014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15682
15683 PR threads/16216
15684 * linux-thread-db.c (try_thread_db_load): Add parameter
15685 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15686 (try_thread_db_load_from_pdir_1): Move it there from here.
15687 (try_thread_db_load_from_sdir): Update caller.
15688 (try_thread_db_load_from_dir): Move it there from here.
15689
bdf61915
PP
156902014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15691
15692 * regformats/regdat.sh: Always rewrite the register file.
15693
f71e1a8d
PA
156942014-01-13 Pedro Alves <palves@redhat.com>
15695
15696 * Makefile.in (CHECK_HEADERS): New variable.
15697 (check-headers:): New rule.
15698
42c85435
TT
156992014-01-13 Tom Tromey <tromey@redhat.com>
15700
15701 * cli/cli-setshow.c (do_set_command): Update.
15702 * defs.h (deprecated_set_hook): Remove.
15703 * top.c (deprecated_set_hook): Remove.
15704
f8de5129
PA
157052014-01-13 Pedro Alves <palves@redhat.com>
15706
15707 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15708 the tracepoint if the PC is a pseudo-register.
15709
fc270c35
TT
157102014-01-13 Tom Tromey <tromey@redhat.com>
15711
15712 * defs.h (XCALLOC): Remove.
15713 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15714 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15715 * dwarf2loc.c (allocate_piece_closure): Likewise.
15716 * elfread.c (elf_symfile_segments): Likewise.
15717 (elf_symfile_segments): Likewise.
15718 * gdbtypes.c (copy_type_recursive): Likewise.
15719 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15720 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15721 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15722 XCALLOC.
15723 * mt-tdep.c (mt_gdbarch_init): Likewise.
15724 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15725 XCALLOC.
15726 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15727 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15728 * registry.c (registry_alloc_data): Likewise.
15729 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15730 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15731 * serial.c (serial_fdopen_ops): Likewise.
15732 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15733 XCALLOC.
15734 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15735 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15736 not XCALLOC.
15737
70ba0933
TT
157382014-01-13 Tom Tromey <tromey@redhat.com>
15739
15740 * defs.h (XMALLOC): Remove.
15741 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15742 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15743 * cli-out.c (struct ui_out *): Likewise.
15744 * cli/cli-dump.c (add_dump_command): Likewise.
15745 (add_dump_command): Likewise.
15746 * complaints.c (get_complaints): Likewise.
15747 (find_complaint): Likewise.
15748 * dwarf2-frame.c (execute_cfa_program): Likewise.
15749 * dwarf2read.c (abbrev_table_read_table): Likewise.
15750 * gdbarch.sh: Likewise.
15751 * gdbarch.c: Rebuild.
15752 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15753 * interps.c (interp_new): Likewise.
15754 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15755 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15756 * mi/mi-console.c (mi_console_file_new): Likewise.
15757 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15758 * mi/mi-out.c (mi_out_new): Likewise.
15759 * mi/mi-parse.c (mi_parse): Likewise.
15760 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15761 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15762 * observer.c (xalloc_observer_list_node): Likewise.
15763 * regcache.c (regcache_xmalloc_1): Likewise.
15764 * reggroups.c (reggroup_new): Likewise.
15765 (_initialize_reggroup): Likewise.
15766 * registry.c (register_data_with_cleanup): Likewise.
15767 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15768 * ser-base.c (serial_ttystate): Likewise.
15769 * ser-mingw.c (make_pipe_state): Likewise.
15770 * ser-pipe.c (pipe_open): Likewise.
15771 * serial.c (serial_open): Likewise.
15772 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15773 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15774 (tui_alloc_win_info): Likewise.
15775 (tui_add_content_elements): Likewise.
15776 * tui/tui-file.c (tui_file_new): Likewise.
15777 * tui/tui-out.c (tui_out_new): Likewise.
15778 * ui-file.c (mem_file_new): Likewise.
15779 * ui-out.c (push_level): Likewise.
15780 (make_cleanup_ui_out_end): Likewise.
15781 (append_header_to_list): Likewise.
15782 (ui_out_new): Likewise.
15783 * user-regs.c (user_reg_add_builtin): Likewise.
15784
41bf6aca
TT
157852014-01-13 Tom Tromey <tromey@redhat.com>
15786
15787 * defs.h (XZALLOC): Remove.
15788 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15789 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15790 (get_ada_tasks_inferior_data): Likewise.
15791 * auto-load.c (get_auto_load_pspace_data): Likewise.
15792 * auxv.c (get_auxv_inferior_data): Likewise.
15793 * bfd-target.c (target_bfd_reopen): Likewise.
15794 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15795 (deprecated_insert_raw_breakpoint): Likewise.
15796 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15797 * corelow.c (core_open): Likewise.
15798 * darwin-nat.c (darwin_check_new_threads): Likewise.
15799 (darwin_attach_pid): Likewise.
15800 * dummy-frame.c (dummy_frame_push): Likewise.
15801 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15802 * dwarf2loc.c (allocate_piece_closure): Likewise.
15803 * elfread.c (elf_symfile_segments): Likewise.
15804 * eval.c (ptrmath_type_p): Likewise.
15805 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15806 * gdbtypes.c (alloc_type_arch): Likewise.
15807 (alloc_type_instance): Likewise.
15808 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15809 * inf-child.c (inf_child_can_use_agent): Likewise.
15810 * inflow.c (get_inflow_inferior_data): Likewise.
15811 * infrun.c (save_infcall_suspend_state): Likewise.
15812 * jit.c (jit_reader_load): Likewise.
15813 (get_jit_objfile_data): Likewise.
15814 (get_jit_program_space_data): Likewise.
15815 (jit_object_open_impl): Likewise.
15816 (jit_symtab_open_impl): Likewise.
15817 (jit_block_open_impl): Likewise.
15818 (jit_frame_sniffer): Likewise.
15819 * linux-fork.c (add_fork): Likewise.
15820 * maint.c (make_command_stats_cleanup): Likewise.
15821 * objfiles.c (get_objfile_pspace_data): Likewise.
15822 * opencl-lang.c (struct lval_closure): Likewise.
15823 * osdata.c (osdata_start_osdata): Likewise.
15824 * progspace.c (new_address_space): Likewise.
15825 (add_program_space): Likewise.
15826 * remote-sim.c (get_sim_inferior_data): Likewise.
15827 * sh-tdep.c (sh_gdbarch_init): Likewise.
15828 * skip.c (Ignore): Likewise.
15829 (skip_delete_command): Likewise.
15830 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15831 (library_list_start_library): Likewise.
15832 (solib_aix_current_sos): Likewise.
15833 * solib-darwin.c (get_darwin_info): Likewise.
15834 (darwin_current_sos): Likewise.
15835 * solib-dsbt.c (get_dsbt_info): Likewise.
15836 * solib-ia64-hpux.c (new_so_list): Likewise.
15837 (ia64_hpux_get_solib_linkage_addr): Likewise.
15838 * solib-spu.c (append_ocl_sos): Likewise.
15839 (spu_current_sos): Likewise.
15840 * solib-svr4.c (get_svr4_info): Likewise.
15841 (svr4_keep_data_in_core): Likewise.
15842 (library_list_start_library): Likewise.
15843 (svr4_default_sos): Likewise.
15844 (svr4_read_so_list): Likewise.
15845 * solib-target.c (library_list_start_library): Likewise.
15846 (solib_target_current_sos): Likewise.
15847 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15848 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15849 * symfile.c (default_symfile_segments): Likewise.
15850 * target-descriptions.c (tdesc_data_init): Likewise.
15851 (tdesc_create_reg): Likewise.
15852 (struct tdesc_type *): Likewise.
15853 (tdesc_create_vector): Likewise.
15854 (tdesc_set_struct_size): Likewise.
15855 (struct tdesc_type *): Likewise.
15856 (tdesc_free_feature): Likewise.
15857 (tdesc_create_feature): Likewise.
15858 * windows-nat.c (windows_add_thread): Likewise.
15859 (windows_make_so): Likewise.
15860 * xml-support.c (gdb_xml_body_text): Likewise.
15861 (gdb_xml_create_parser_and_cleanup): Likewise.
15862 (xml_process_xincludes): Likewise.
15863 * xml-syscall.c (allocate_syscalls_info): Likewise.
15864 (syscall_create_syscall_desc): Likewise.
15865
5acfdbae
SDJ
158662014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15867
15868 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15869 function, with code from i386_stap_parse_special_token.
15870 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15871 (i386_stap_parse_special_token): Move code to the two functions
15872 above; simplify it.
15873
0000e5cc
PA
158742014-01-09 Pedro Alves <palves@redhat.com>
15875 Hui Zhu <hui@codesourcery.com>
15876
15877 PR gdb/16101
15878 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15879 bp_err_string. Don't mark the location shlib_disabled if the
15880 error thrown wasn't a generic or memory error. Catch errors
15881 thrown while inserting breakpoints in overlayed code. Output
15882 error message of software breakpoints.
15883 * remote.c (remote_insert_breakpoint): If this breakpoint has
15884 target-side commands but this stub doesn't support Z0 packets,
15885 throw NOT_SUPPORTED_ERROR error.
15886 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15887 * target.h (target_insert_breakpoint): Extend comment.
15888 (target_insert_hw_breakpoint): Add comment.
15889
b7ea362b
PA
158902014-01-08 Pedro Alves <palves@redhat.com>
15891
15892 * remote.c (remote_add_thread): Add threads silently if starting
15893 up.
15894 (remote_notice_new_inferior): If in all-stop, and starting up,
15895 don't call notice_new_inferior.
15896 (get_current_thread): New function, factored out from ...
15897 (add_current_inferior_and_thread): ... this. Adjust.
15898 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15899 found any thread, then select the remote's current thread as GDB's
15900 current thread too.
15901
b7bba001
JB
159022014-01-08 Joel Brobecker <brobecker@adacore.com>
15903
15904 * NEWS: Create a new section for the next release branch.
15905 Rename the section of the current branch, now that it has
15906 been cut.
15907
16dfbded
JB
159082014-01-08 Joel Brobecker <brobecker@adacore.com>
15909
15910 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15911 * version.in: Bump version to 7.7.50.DATE-cvs.
15912
22c90ac1
YQ
159132014-01-08 Yao Qi <yao@codesourcery.com>
15914
15915 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15916 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15917 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15918
d64ad97c
YQ
159192014-01-08 Yao Qi <yao@codesourcery.com>
15920
15921 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15922 return value of bfd_get_filename to symbol_file_add_from_bfd.
15923
f93ba80c
PM
159242014-01-08 Pierre Muller <muller@sourceware.org>
15925
15926 Fix PR16201.
15927 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15928 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15929 to prim_record_mininal_symbol_and_info.
15930 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15931 in call to prim_record_minimal_symbol_and_info.
15932 (read_pe_exported_syms): Set index field of section_data.
15933
a4d9ba85
AP
159342014-01-07 Andrew Pinski <apinski@cavium.com>
15935
15936 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15937 * features/aarch64.c: Regenerate.
15938
1b67eb02
AS
159392014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15940
15941 * target.c (return_null): Define.
15942 (update_current_target): Use it instead of return_zero for
15943 functions that return a pointer.
15944
5e3f4fab
EBM
159452014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15946
15947 * source.c (add_path): Fix check for duplicated paths in the previously
15948 included paths.
15949
e2616788
HK
159502014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15951
15952 * ada-lang.c: Remove duplicated include statements.
15953 * alphabsd-nat.c: Ditto.
15954 * amd64-darwin-tdep.c: Ditto.
15955 * amd64fbsd-nat.c: Ditto.
15956 * auto-load.c: Ditto.
15957 * ax-gdb.c: Ditto.
15958 * breakpoint.c: Ditto.
15959 * dbxread.c: Ditto.
15960 * fork-child.c: Ditto.
15961 * gdb_usleep.c: Ditto.
15962 * i386-darwin-tdep.c: Ditto.
15963 * i386fbsd-nat.c: Ditto.
15964 * infcmd.c: Ditto.
15965 * inferior.c: Ditto.
15966 * jv-lang.c: Ditto.
15967 * linux-nat.c: Ditto.
15968 * linux-tdep.c: Ditto.
15969 * m68kbsd-nat.c: Ditto.
15970 * m68klinux-nat.c: Ditto.
15971 * microblaze-tdep.c: Ditto.
15972 * mips-linux-tdep.c: Ditto.
15973 * mn10300-tdep.c: Ditto.
15974 * nto-tdep.c: Ditto.
15975 * opencl-lang.c: Ditto.
15976 * osdata.c: Ditto.
15977 * printcmd.c: Ditto.
15978 * regcache.c: Ditto.
15979 * remote-m32r-sdi.c: Ditto.
15980 * remote.c: Ditto.
15981 * symfile.c: Ditto.
15982 * symtab.c: Ditto.
15983 * tilegx-linux-nat.c: Ditto.
15984 * tilegx-tdep.c: Ditto.
15985 * tracepoint.c: Ditto.
15986 * valops.c: Ditto.
15987 * vaxbsd-nat.c: Ditto.
15988 * windows-nat.c: Ditto.
15989 * xtensa-tdep.c: Ditto.
15990
bd1f7788
YQ
159912014-01-07 Yao Qi <yao@codesourcery.com>
15992
15993 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15994
79301218
JB
159952014-01-07 Yao Qi <yao@codesourcery.com>
15996 Joel Brobecker <brobecker@adacore.com>
15997
15998 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15999 (pdc_write_regs): Likewise.
16000 (fetch_regs_kernel_thread): Likewise.
16001 (store_regs_kernel_thread): Likewise.
16002
160032014-01-07 Joel Brobecker <brobecker@adacore.com>
16004
16005 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
16006 tagged type objects to their actual type.
16007
8e355c5d
JB
160082014-01-07 Joel Brobecker <brobecker@adacore.com>
16009
16010 * ada-valprint.c (print_field_values): Add "language" parameter.
16011 Update calls to print_field_values and print_variant_part.
16012 Pass new parameter "language" in call to val_print instead
16013 of "current_language". Replace call to ada_val_print by call
16014 to val_print.
16015 (print_variant_part): Add "language" parameter.
16016 (ada_val_print_struct_union): Update call to print_field_values.
16017
4fbf5aa5
JB
160182014-01-07 Joel Brobecker <brobecker@adacore.com>
16019
16020 * ada-valprint.c (ui_memcpy): Delete.
16021 (ada_print_floating): Update documentation. Add empty line
16022 between between function documentation and implementation.
16023 Delete variable "buffer". Use ui_file_xstrdup in place of
16024 ui_file_put. Minor adjustments following this change.
16025
71855601
JB
160262014-01-07 Joel Brobecker <brobecker@adacore.com>
16027
16028 * ada-valprint.c (ada_val_print_string): New function,
16029 extracted from ada_val_print_array.
16030 (ada_val_print_array): Replace extracted code by call
16031 to ada_val_print_string followed by a return. Move
16032 "else" branch to the function's top block.
16033
4eb27a30
JB
160342014-01-07 Joel Brobecker <brobecker@adacore.com>
16035
16036 * ada-valprint.c (ada_val_print_array): Move implementation
16037 down. Rename parameter "offset" and "val" into "offset_aligned"
16038 and "original_value" respectively. Add parameter "offset".
16039
34b27950
JB
160402014-01-07 Joel Brobecker <brobecker@adacore.com>
16041
16042 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
16043 re-organizing the code. Change the "???" message printed
16044 when target type is a TYPE_CODE_UNDEF into
16045 "<ref to undefined type>".
16046
079e4591
JB
160472014-01-07 Joel Brobecker <brobecker@adacore.com>
16048
16049 * ada-valprint.c (print_record): Delete, implementation inlined...
16050 (ada_val_print_struct_union): ... here. Remove call to
16051 ada_check_typedef in inlined implementation.
16052
8004dfd1
JB
160532014-01-07 Joel Brobecker <brobecker@adacore.com>
16054
16055 * ada-valprint.c (ada_val_print_gnat_array): New function,
16056 extracted from ada_val_print_1;
16057 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
16058 (ada_val_print_flt, ada_val_print_struct_union)
16059 (ada_val_print_ref): Likewise.
16060 (ada_val_print_1): Delete variables i and elttype.
16061 Replace extracted-out code by call to corresponding
16062 new functions.
16063
760a2db0
JB
160642014-01-07 Joel Brobecker <brobecker@adacore.com>
16065
16066 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
16067
3a92c861
JB
160682014-01-07 Joel Brobecker <brobecker@adacore.com>
16069
16070 * ada-valprint.c (ada_val_print_1): Replace calls to
16071 ada_val_print_1 by calls to val_print.
16072
cd1630f9
JB
160732014-01-07 Joel Brobecker <brobecker@adacore.com>
16074
16075 * ada-valprint.c (ada_val_print_1): Add parameter "language".
16076 Update calls to self accordingly. Replace calls to c_val_print
16077 by calls to val_print.
16078
bdf779a0
JB
160792014-01-07 Joel Brobecker <brobecker@adacore.com>
16080
16081 * ada-valprint.c (print_record): Delete declaration.
16082 (adjust_type_signedness, ada_val_print_1): Likewise.
16083 (ada_val_print): Move function implementation down.
16084 (print_variant_part, print_field_values, print_record):
16085 Move function implementation up.
16086
c0d48811
JB
160872014-01-07 Joel Brobecker <brobecker@adacore.com>
16088
16089 * python/py-type.c (typy_get_name): New function.
16090 (type_object_getset): Add entry for attribute "name".
16091 * NEWS: Add entry mentioning this new attribute.
16092
c26e9cbb
YQ
160932014-01-07 Yao Qi <yao@codesourcery.com>
16094
16095 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
16096 statement.
16097
0cc6f43d
YQ
160982014-01-07 Yao Qi <yao@codesourcery.com>
16099
16100 * gnu-nat.c (info_port_rights): Add qualifier const to
16101 argument args.
16102
eec03155
YQ
161032014-01-07 Yao Qi <yao@codesourcery.com>
16104
16105 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16106
f04a82ef
YQ
161072014-01-07 Yao Qi <yao@codesourcery.com>
16108
16109 * gnu-nat.c (make_inf) Update declaration.
16110 (make_inf): Make it static.
16111 (inf_set_traced): Likewise.
16112 (inf_port_to_thread, inf_task_died_status): Likewise.
16113
d57dda0a
YQ
161142014-01-07 Yao Qi <yao@codesourcery.com>
16115
16116 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16117
3aa8c969
YQ
161182014-01-07 Yao Qi <yao@codesourcery.com>
16119
16120 * gnu-nat.c (_initialize_gnu_nat): Declare.
16121
94123b4f
YQ
161222014-01-07 Yao Qi <yao@codesourcery.com>
16123
16124 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16125 'enum bfd_endian'.
16126 (struct gdbarch_info) <byte_order>: Change type to
16127 'enum bfd_endian'.
16128 <byte_order_for_code>: Likewise.
16129 * gdbarch.c, gdbarch.h: Regenerated.
16130
dc81d70a
TT
161312014-01-06 Sasha Smundak <asmundak@google.com>
16132
16133 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16134
cc2f3c35
TT
161352014-01-06 Tom Tromey <tromey@redhat.com>
16136
16137 * doublest.c (convert_doublest_to_floatformat): Use const, not
16138 CONST.
16139 * somread.c (som_symtab_read): Likewise.
16140
adcf2eed
HZ
161412014-01-07 Hui Zhu <hui@codesourcery.com>
16142
16143 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16144 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16145 (gdb_bfd_fopen): Ditto.
16146 (gdb_bfd_openr): Ditto.
16147 (gdb_bfd_openw): Ditto.
16148 (gdb_bfd_openr_iovec): Ditto.
16149 (gdb_bfd_fdopenr): Ditto.
16150 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16151 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16152 with xstrdup.
16153 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16154 with xstrdup.
16155 * symfile-mem.c (symbol_file_add_from_memory): Removed
16156 gdb_bfd_stash_filename.
16157
50722198
DE
161582014-01-03 Doug Evans <dje@google.com>
16159
16160 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16161 output.
16162
2fa4b862
JB
161632014-01-01 Joel Brobecker <brobecker@adacore.com>
16164
16165 Update year range in copyright notice of all files.
16166
28498c42
JB
161672014-01-01 Joel Brobecker <brobecker@adacore.com>
16168
16169 * top.c (print_gdb_version): Set copyright year to 2014.
16170
7b6e1046
JB
161712014-01-01 Joel Brobecker <brobecker@adacore.com>
16172
16173 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16174
df96af55 16175For older changes see ChangeLog-2013.
c906108c
SS
16176\f
16177Local Variables:
16178mode: change-log
16179left-margin: 8
16180fill-column: 74
16181version-control: never
57da7796 16182coding: utf-8
c906108c 16183End:
This page took 2.384647 seconds and 4 git commands to generate.