split dwarf2_fetch_cfa_info from dwarf2_compile_expr_to_ax
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a8fd5589
TT
12014-12-12 Tom Tromey <tromey@redhat.com>
2
3 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_call_frame_cfa>:
4 Update.
5 * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on
6 dwarf2_compile_cfa_to_ax.
7 (dwarf2_compile_cfa_to_ax): Remove.
8 * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare.
9 (dwarf2_compile_cfa_to_ax): Remove.
10
ed12ef62
JK
112014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
12
13 * infcall.h (call_function_by_hand_dummy): Declare.
14 * infcall.c (call_function_by_hand): Use
15 call_function_by_hand_dummy.
16 (call_function_by_hand_dummy): Rename from call_function_by_hand.
17 Add arguments. Register a destructor.
18
ac04f72b
TT
192014-12-12 Tom Tromey <tromey@redhat.com>
20 Jan Kratochvil <jan.kratochvil@redhat.com>
21
22 * osabi.h (osabi_triplet_regexp): Declare.
23 * osabi.c (struct osabi_names): New.
24 (gdb_osabi_names): Change type to struct osabi_names. Update
25 values.
26 (gdbarch_osabi_name): Update.
27 (osabi_triplet_regexp): New function.
28 (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
29 * i386-tdep.c (i386_gnu_triplet_regexp): New method.
30 (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
31 set_gdbarch_gnu_triplet_regexp.
32 * gdbarch.sh (gnu_triplet_regexp): New method.
33 * gdbarch.c, gdbarch.h: Rebuild.
34 * arch-utils.h (default_gnu_triplet_regexp): Declare.
35 * arch-utils.c (default_gnu_triplet_regexp): New function.
36
f208eee0
JK
372014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
38
39 * arch-utils.c (default_infcall_mmap)
40 (default_gcc_target_options): New functions.
41 * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
42 (GDB_MMAP_PROT_EXEC): Define.
43 (default_infcall_mmap, default_gcc_target_options): Declare.
44 * gdbarch.h: Rebuild.
45 * gdbarch.c: Rebuild.
46 * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
47
233a8fb3
JK
482014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49
50 * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
51 fields.
52 (pop_dummy_frame): Call the destructor if it exists.
53 (register_dummy_frame_dtor, find_dummy_frame_dtor): New
54 functions.
55 * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
56 (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
57
f1660027
TT
582014-12-12 Tom Tromey <tromey@redhat.com>
59
60 * gdbtypes.h (make_unqualified_type): Declare.
61 * gdbtypes.c (make_unqualified_type): New function.
62
de571fc5
TT
632014-12-12 Tom Tromey <tromey@redhat.com>
64
65 * ui-file.h (ui_file_write_for_put): Declare.
66 * ui-file.c (ui_file_write_for_put): New function.
67 * mi/mi-out.c (do_write): Remove.
68 (mi_out_put): Use ui_file_write_for_put.
69
6dddd6a5
DE
702014-12-12 Doug Evans <dje@google.com>
71
72 * NEWS: Mention gdb.lookup_objfile.
73 * python/python.c (GdbMethods): Add lookup_objfile.
74 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
75 * python/py-objfile.c: #include "symtab.h".
76 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
77 (objfpy_lookup_objfile_by_name): New function.
78 (objfpy_lookup_objfile_by_build_id): New function.
79 (gdbpy_lookup_objfile): New function.
80
f161c171
MR
812014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
82
83 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
84 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
85 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
86 macros.
87 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
88 Likewise.
89
71c24708
AA
902014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
91
92 * completer.c: Include "target.h", "reggroups.h", and
93 "user-regs.h".
94 (reg_or_group_completer): New.
95 * completer.h (reg_or_group_completer): Declare.
96 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
97 the "info registers" and "info all-registers" commands and the
98 dbx-mode "lr" command.
99
f5b95c01
AA
1002014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
101
102 * user-regs.c: Include "arch-utils.h", "command.h", and
103 "cli/cli-cmds.h".
104 (maintenance_print_user_registers): New.
105 (_initialize_user_regs): Register new "maint print user-registers"
106 subcommand.
107 * NEWS: Mention new GDB command "maint print user-registers".
108
3e29f34a
MR
1092014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
110 Maciej W. Rozycki <macro@mips.com>
111 Pedro Alves <pedro@codesourcery.com>
112
113 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
114 remove `predefault' and `invalid_p' initializers.
115 (make_symbol_special): New architecture method.
116 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
117 (objfile, symbol): New declarations.
118 * arch-utils.h (default_elf_make_msymbol_special): Remove
119 prototype.
120 (default_make_symbol_special): New prototype.
121 (default_adjust_dwarf2_addr): Likewise.
122 (default_adjust_dwarf2_line): Likewise.
123 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
124 * arch-utils.c (default_elf_make_msymbol_special): Remove
125 function.
126 (default_make_symbol_special): New function.
127 (default_adjust_dwarf2_addr): Likewise.
128 (default_adjust_dwarf2_line): Likewise.
129 * dwarf2-frame.c (decode_frame_entry_1): Call
130 `gdbarch_adjust_dwarf2_addr'.
131 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
132 * dwarf2read.c (create_addrmap_from_index): Likewise.
133 (process_psymtab_comp_unit_reader): Likewise.
134 (add_partial_symbol): Likewise.
135 (add_partial_subprogram): Likewise.
136 (process_full_comp_unit): Likewise.
137 (read_file_scope): Likewise.
138 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
139 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
140 (read_call_site_scope): Likewise.
141 (dwarf2_ranges_read): Likewise.
142 (dwarf2_record_block_ranges): Likewise.
143 (read_attribute_value): Likewise.
144 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
145 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
146 * elfread.c (elf_symtab_read): Don't call
147 `gdbarch_elf_make_msymbol_special' if unset.
148 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
149 the ISA bit from the PC.
150 * mips-tdep.c (mips_unmake_compact_addr): New function.
151 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
152 address appropriately.
153 (mips_make_symbol_special): New function.
154 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
155 (mips_pc_is_mips16): Likewise.
156 (mips_pc_is_micromips): Likewise.
157 (mips_pc_isa): Likewise.
158 (mips_adjust_dwarf2_addr): New function.
159 (mips_adjust_dwarf2_line): Likewise.
160 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
161 (mips_addr_bits_remove): Likewise.
162 (mips_skip_trampoline_code): Likewise.
163 (mips_write_pc): Don't set the ISA bit.
164 (mips_eabi_push_dummy_call): Likewise.
165 (mips_o64_push_dummy_call): Likewise.
166 (mips_gdbarch_init): Install `mips_make_symbol_special',
167 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
168 handlers.
169 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
170 target-specific symbol address adjustments.
171 * gdbarch.h: Regenerate.
172 * gdbarch.c: Regenerate.
173
21daaaaf
YQ
1742014-12-12 Yao Qi <yao@codesourcery.com>
175
176 PR tdep/14261
177 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
178 'skip_pc'. Remove code skipping prologue instructions, use
179 arm_analyze_prologue instead.
180 (arm_analyze_prologue): Stop the scanning for unrecognized
181 instruction when skipping prologue.
182
f303bc3e
YQ
1832014-12-12 Yao Qi <yao@codesourcery.com>
184
185 * arm-tdep.c (arm_instruction_restores_sp): New function.
186 (arm_analyze_prologue): Call arm_instruction_restores_sp.
187 (arm_in_function_epilogue_p): Move code to
188 arm_instruction_restores_sp.
189
05a6c3c8
DE
1902014-12-11 Doug Evans <xdje42@gmail.com>
191
192 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
193
fe2a438d
DE
1942014-12-11 Doug Evans <xdje42@gmail.com>
195
196 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
197 (symbol *lookup_symbol_via_quick_fns): Ditto.
198 (lookup_symbol_in_objfile): Add forward decl.
199 (lookup_global_symbol_from_objfile): Simplify, call
200 lookup_symbol_in_objfile.
201
540feddf
DE
2022014-12-11 Doug Evans <xdje42@gmail.com>
203
204 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
205
fc126975
SM
2062014-12-10 Simon Marchi <simon.marchi@ericsson.com>
207
208 PR breakpoints/17012
209 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
210 it is marked as persistent.
211
56286edf
DE
2122014-12-10 Doug Evans <xdje42@gmail.com>
213
214 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
215 closer to its subroutines.
216
34ef8452
DE
2172014-12-10 Doug Evans <xdje42@gmail.com>
218
219 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
220
9a80057a
DE
2212014-12-10 Doug Evans <xdje42@gmail.com>
222
223 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
224 * cp-support.c (cp_lookup_symbol_imports): Delete.
225
1abf3a14
SM
2262014-12-10 Simon Marchi <simon.marchi@ericsson.com>
227
228 PR gdb/17627
229 * target.c (cleanup_restore_target_terminal): New function.
230 (make_cleanup_restore_target_terminal): New function.
231 * target.h (make_cleanup_restore_target_terminal): New declaration.
232 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
233
d4d1e336
DE
2342014-12-08 Doug Evans <dje@google.com>
235
236 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
237
a0be3e44
DE
2382014-12-08 Doug Evans <dje@google.com>
239
240 * NEWS: Mention gdb.Objfile.owner.
241 * python/py-objfile.c (objfpy_get_owner): New function.
242 (objfile_getset): Add "owner".
243
6c1c7be3
JK
2442014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
245
246 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
247 (lookup_global_symbol_from_objfile): Call it.
248
efad9b6a
JK
2492014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
250
251 Remove const from struct objfile *.
252 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
253 symtab.c, symtab.h: In these files.
254
069bb7ec
AF
2552014-12-05 Andreas From <andreas.from@ericsson.com>
256
257 * MAINTAINERS (Write After Approval): Add "Andreas From"
258
642a8d80
DE
2592014-12-05 Doug Evans <xdje42@gmail.com>
260
261 Revert:
262 PR symtab/17602
263 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
264
86e4ed39
DE
2652014-12-04 Doug Evans <dje@google.com>
266
267 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
268 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
269 (objfile_getset): Add "add_separate_debug_file".
270
7c50a931
DE
2712014-12-04 Doug Evans <dje@google.com>
272
273 * NEWS: Mention gdb.Objfile.build_id.
274 * build-id.c (build_id_bfd_get): Make non-static.
275 * build-id.h (build_id_bfd_get): Add declaration.
276 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
277 (OBJFPY_REQUIRE_VALID): New macro.
278 (objfpy_get_build_id): New function.
279 (objfile_getset): Add "build_id".
280 * utils.c (make_hex_string): New function.
281 * utils.h (make_hex_string): Add declaration.
282
ba715d7f
JK
2832014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
284
285 * block.c (block_lookup_symbol_primary): New function.
286 * block.h (block_lookup_symbol_primary): New declaration.
287 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
288 Call block_lookup_symbol_primary.
289
858339f2
MR
2902014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
291
292 * tramp-frame.h (tramp_frame): Add `validate' member.
293 * tramp-frame.c (tramp_frame_start): Validate trampoline before
294 scanning.
295 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
296 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
297 (mips_linux_o32_sigframe): Initialize `validate' member.
298 (mips_linux_o32_rt_sigframe): Likewise.
299 (mips_linux_n32_rt_sigframe): Likewise.
300 (mips_linux_n64_rt_sigframe): Likewise.
301 (micromips_linux_o32_sigframe): New variable.
302 (micromips_linux_o32_rt_sigframe): Likewise.
303 (micromips_linux_n32_rt_sigframe): Likewise.
304 (micromips_linux_n64_rt_sigframe): Likewise.
305 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
306 (mips_linux_n32n64_sigframe_init): Likewise.
307 (mips_linux_sigframe_validate): New function.
308 (micromips_linux_sigframe_validate): Likewise.
309 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
310
ff1eb2b5
UW
3112014-12-03 Ulrich Weigand  <uweigand@de.ibm.com>
312
313 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
314 * sparc-sol2-tdep.c: Include "regset.h".
315 (sparc32_sol2_supply_core_gregset): New function.
316 (sparc32_sol2_collect_core_gregset): Likewise.
317 (sparc32_sol2_supply_core_fpregset): Likewise.
318 (sparc32_sol2_collect_core_fpregset): Likewise.
319 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
320 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
321 tdep->fpregset/sizeof_fpregset.
322 * sparc64-sol2-tdep.c: Include "regset.h".
323 (sparc64_sol2_supply_core_gregset): New function.
324 (sparc64_sol2_collect_core_gregset): Likewise.
325 (sparc64_sol2_supply_core_fpregset): Likewise.
326 (sparc64_sol2_collect_core_fpregset): Likewise.
327 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
328 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
329 tdep->fpregset/sizeof_fpregset.
330
75783939
SM
3312014-12-03 Simon Marchi <simon.marchi@ericsson.com>
332
333 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
334 type.
335
7c5fdd25
DE
3362014-12-02 Doug Evans <dje@google.com>
337
338 * symtab.c (symbol_init_cplus_specific): Delete.
339 (symbol_set_demangled_name): Remove special c++ support.
340 (symbol_get_demangled_name, symbol_set_language): Ditto.
341 * symtab.h (struct cplus_specific): Delete.
342 (struct general_symbol_info) <language_specific>: Remove
343 cplus_specific.
344
29f0c3b7
DE
3452014-12-02 Doug Evans <dje@google.com>
346
347 PR symtab/17602
348 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
349
72998fb3
DE
3502014-12-02 Doug Evans <dje@google.com>
351
352 PR symtab/17591
353 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
354 to strip parameters.
355
422b9917
DE
3562014-12-02 Doug Evans <dje@google.com>
357
358 * dwarf2read.c (peek_die_abbrev): Improve error message text.
359
47c6ee49
DE
3602014-12-02 Doug Evans <dje@google.com>
361
362 * valops.c (do_search_struct_field): Remove remnant of Chill support.
363 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
364
5da3ffc9
SM
3652014-12-02 Simon Marchi <simon.marchi@ericsson.com>
366
367 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
368
162078c8
NB
3692014-12-02 Nick Bull <nicholaspbull@gmail.com>
370
371 * NEWS: Mention new Python events.
372 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
373 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
374 (py-infevents.o): New rule.
375 * doc/observer.texi (inferior_call_pre, inferior_call_post)
376 (memory_changed, register_changed): New observers.
377 * infcall.c (call_function_by_hand): Notify observer before and
378 after inferior call.
379 * python/py-event.h (inferior_call_kind): New enum.
380 (emit_inferior_call_event): New prototype.
381 (emit_register_changed_event): New prototype.
382 (emit_memory_changed_event): New prototype.
383 * python/py-events.h (events_object): New registries
384 inferior_call, memory_changed and register_changed.
385 * python/py-evts.c (gdbpy_initialize_py_events): Add the
386 inferior_call, memory_changed and register_changed registries.
387 * python/py-infevents.c: New.
388 * python/py-inferior.c (python_on_inferior_call_pre)
389 (python_on_inferior_call_post, python_on_register_change)
390 (python_on_memory_change): New functions.
391 (gdbpy_initialize_inferior): Attach python handler to new
392 observers.
393 * python/py-infthread.c(gdbpy_create_ptid_object): New.
394 (thpy_get_ptid) Use gdbpy_create_ptid_object.
395 * python/python-internal.h:
396 (gdbpy_create_ptid_object)
397 (gdbpy_initialize_inferior_call_pre_event)
398 (gdbpy_initialize_inferior_call_post_event)
399 (gdbpy_initialize_register_changed_event)
400 (gdbpy_initialize_memory_changed_event): New prototypes.
401 * python/python.c (_initialize_python): Initialize new events.
402 * valops.c (value_assign): Notify register_changed observer.
403
007baf27
DE
4042014-12-02 Doug Evans <dje@google.com>
405
406 * python/py-infthread.c: Whitespace fixes.
407
d5552aab
AA
4082014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
409
410 * features/Makefile (s390-te-linux64-expedite): Replace
411 non-existant r14 and r15 by r14l and r15l, respectively.
412 * regformats/s390-te-linux64.dat: Regenerate.
413
30b5e341
SM
4142014-12-01 Simon Marchi <simon.marchi@ericsson.com>
415
416 * objfiles.c (allocate_objfile): Remove duplicate comment.
417
ac3d87c0
UW
4182014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
419
420 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
421 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
422 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
423 (supply_gregset, supply_fpregset): Remove.
424 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
425 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
426 and sizeof_gregset.
427
f10c5b19
JK
4282014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
429
430 Add add-auto-load-scripts-directory.
431 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
432 * auto-load.c (add_auto_load_dir): New function.
433 (_initialize_auto_load): Install it.
434
f0d4ba1f
MG
4352014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
436
437 Pushed by Joel Brobecker <brobecker@adacore.com>.
438 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
439
18ac6ffc
SC
4402014-11-29 Siva Chandra Reddy <sivachandra@google.com>
441
442 * eval.c (evaluate_subexp): Check that the thread stack temporaries
443 are not already enabled before enabling them.
444
4072f920
YQ
4452014-11-29 Yao Qi <yao@codesourcery.com>
446
447 * arm-tdep.c (arm_analyze_prologue): Move local variables
448 'framereg' and 'framesize' to inner block. Move code to
449 inner block too.
450
6c659fc2
SC
4512014-11-28 Siva Chandra Reddy <sivachandra@google.com>
452
453 * eval.c: Include gdbthread.h.
454 (evaluate_subexp): Enable thread stack temporaries before
455 evaluating a complete expression and clean them up after the
456 evaluation is complete.
457 * gdbthread.h: Include common/vec.h.
458 (value_ptr): New typedef.
459 (VEC (value_ptr)): New vector type.
460 (value_vec): New typedef.
461 (struct thread_info): Add new fields stack_temporaries_enabled
462 and stack_temporaries.
463 (enable_thread_stack_temporaries)
464 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
465 (get_last_thread_stack_temporary)
466 (value_in_thread_stack_temporaries): Declare.
467 * gdbtypes.c (class_or_union_p): New function.
468 * gdbtypes.h (class_or_union_p): Declare.
469 * infcall.c (call_function_by_hand): Store return values of class
470 type as temporaries on stack.
471 * thread.c (enable_thread_stack_temporaries): New function.
472 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
473 (get_last_thread_stack_temporary): Likewise.
474 (value_in_thread_stack_temporaries): Likewise.
475 * value.c (value_force_lval): New function.
476 * value.h (value_force_lval): Declare.
477
f7ca3fcf
PM
4782014-11-28 Pierre Muller <muller@sourceware.org>
479
480 Pushed by Joel Brobecker <brobecker@adacore.com>.
481 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
482 registers.
483
b2859a9a
UW
4842014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
485
486 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
487 * config/sparc/linux.mh (NATDEPFILES): Likewise.
488 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
489 * m68klinux-nat.c (fetch_core_registers): Remove.
490 (linux_elf_core_fns): Remove.
491 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
492
0fa9473f
JB
4932014-11-28 Joel Brobecker <brobecker@adacore.com>
494
495 * utils.c (gdb_realpath): Rework comment about handling on
496 Windows.
497
6a29c58e
YQ
4982014-11-28 Yao Qi <yao@codesourcery.com>
499
500 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
501 rename.
502 * gnulib/aclocal.m4: Re-generated.
503 * gnulib/config.in: Re-generated.
504 * gnulib/configure: Re-generated.
505 * gnulib/import/Makefile.am: Re-generated.
506 * gnulib/import/Makefile.in: Re-generated.
507 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
508 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
509 * import/basename-lgpl.c: New file.
510 * import/dirname-lgpl.c: New file.
511 * import/dirname.h: New file.
512 * import/m4/dirname.m4: New file.
513 * import/m4/malloc.m4: New file.
514 * import/m4/rename.m4: New file.
515 * import/m4/rmdir.m4: New file.
516 * import/m4/stdio_h.m4: New file.
517 * import/malloc.c: New file.
518 * import/rename.c: New file.
519 * import/rmdir.c: New file.
520 * import/same-inode.h: New file.
521 * import/stdio.c: New file.
522 * import/stdio.in.h: New file.
523 * import/stripslash.c: New file.
524
abbffc89
YQ
5252014-11-28 Yao Qi <yao@codesourcery.com>
526
527 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
528 and realpath.
529 * config.in: Re-generated.
530 * configure: Re-generated.
531 * utils.c (gdb_realpath): Remove code calling realpath,
532 canonicalize_file_name and pathconf.
533 [!_WIN32]: Call canonicalize_file_name.
534
98399780
YQ
5352014-11-28 Yao Qi <yao@codesourcery.com>
536
537 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
538 canonicalize-lgpl.
539 * aclocal.m4: Re-generated.
540 * config.in: Re-generated.
541 * configure: Re-generated.
542 * import/Makefile.am: Re-generated.
543 * import/Makefile.in: Re-generated.
544 * import/m4/gnulib-cache.m4: Re-generated.
545 * import/m4/gnulib-comp.m4: Re-generated.
546 * import/canonicalize-lgpl.c: New file.
547 * import/extra/snippet/_Noreturn.h: New file.
548 * import/m4/canonicalize.m4: New file.
549 * import/m4/double-slash-root.m4: New file.
550 * import/m4/eealloc.m4: New file.
551 * import/m4/malloca.m4: New file.
552 * import/m4/nocrash.m4: New file.
553 * import/m4/stdlib_h.m4: New file.
554 * import/malloca.c: New file.
555 * import/malloca.h: New file.
556 * import/malloca.valgrind: New file.
557
3332aaf2
YQ
5582014-11-28 Yao Qi <yao@codesourcery.com>
559
560 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
561 * config.in, configure: Regenerate.
562 * symfile.c (find_separate_debug_file_by_debuglink): Remove
563 code checking HAVE_LSTAT is defined.
564
f45c62c4
YQ
5652014-11-28 Yao Qi <yao@codesourcery.com>
566
567 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
568 lstat.
569 * gnulib/aclocal.m4: Re-generated.
570 * gnulib/config.in: Re-generated.
571 * gnulib/configure: Re-generated.
572 * gnulib/import/Makefile.am: Re-generated.
573 * gnulib/import/Makefile.in: Re-generated.
574 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
575 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
576 * gnulib/import/lstat.c: New file.
577 * gnulib/import/m4/lstat.m4: New file.
578
bdca27a2
YQ
5792014-11-28 Yao Qi <yao@codesourcery.com>
580
581 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
582 * config.in, configure: Re-generate.
583 * inf-child.c (inf_child_fileio_readlink): Don't check
584 HAVE_READLINK is defined.
585
2196f55f
YQ
5862014-11-28 Yao Qi <yao@codesourcery.com>
587
588 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
589 * gnulib/aclocal.m4: Re-generated.
590 * gnulib/config.in: Likewise.
591 * gnulib/configure: Likewise.
592 * gnulib/import/Makefile.am: Likewise.
593 * gnulib/import/Makefile.in: Likewise.
594 * gnulib/import/m4/gnulib-cache.m4: Likewise.
595 * gnulib/import/m4/gnulib-comp.m4: Likewise.
596 * gnulib/import/dosname.h: New file
597 * gnulib/import/m4/largefile.m4: New file.
598 * gnulib/import/m4/readlink.m4: New file.
599 * gnulib/import/m4/stat.m4: New file.
600 * gnulib/import/readlink.c: New file.
601 * gnulib/import/stat.c: New file.
602
7014e923 6032014-11-26 Mark Wielaard <mjw@redhat.com>
0cfd832f
MW
604
605 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
606 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
607
aa489395
SL
6082014-11-25 Sandra Loosemore <sandra@codesourcery.com>
609
610 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
611 that there can be only one stack adjustment in the prologue
612 with tests to detect specific disallowed stack adjustments.
613
7f1659b5
SL
6142014-11-25 Sandra Loosemore <sandra@codesourcery.com>
615
616 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
617 adjustments.
618
d53c26c7
SL
6192014-11-25 Sandra Loosemore <sandra@codesourcery.com>
620
621 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
622 the instruction as well as reading it from memory.
623 (nios2_match_add): New.
624 (nios2_match_sub): New.
625 (nios2_match_addi): New.
626 (nios2_match_orhi): New.
627 (nios2_match_stw): New.
628 (nios2_match_ldw): New.
629 (nios2_match_rdctl): New.
630 (enum branch_condition): New.
631 (nios2_match_branch): New.
632 (nios2_match_jmpi): New.
633 (nios2_match_calli): New.
634 (nios2_match_jmpr): New.
635 (nios2_match_callr): New.
636 (nios2_match_break): New.
637 (nios2_match_trap): New.
638 (nios2_in_epilogue_p): Rewrite to use new functions.
639 (nios2_analyze_prologue): Likewise.
640 (nios2_skip_prologue): Delete unused local limit_pc.
641 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
642 (nios2_get_next_pc): Rewrite to use new functions.
643
cac9b138
JK
6442014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
645
646 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
647
a441dfbc
ST
6482014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
649
650 Pushed by Joel Brobecker <brobecker@adacore.com>
651 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
652 elements pi_len by the size of the elements before calling
653 vm_deallocate.
654 (inf_validate_task_sc): Likewise, and properly deallocate the
655 noise array.
656
4c9e8482
DE
6572014-11-23 Doug Evans <xdje42@gmail.com>
658
659 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
660 number and name if present. All callers updated.
661 (dump_fn_fieldlists): Fix indentation of args.
662
15ee0bbd
PP
6632014-11-23 Patrick Palka <patrick@parcs.ath.cx>
664
665 * MAINTAINERS (Write After Approval): Add myself.
666
e8af5d7a
JB
6672014-11-23 Joel Brobecker <brobecker@adacore.com>
668
669 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
670 to a bp_call_dummy breakpoint type.
671
a344fc09
PP
6722014-11-23 Patrick Palka <patrick@parcs.ath.cx>
673
674 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
675 registering the signal handler.
676
d64e57fa
PP
6772014-11-23 Patrick Palka <patrick@parcs.ath.cx>
678
679 * event-top.h (call_stdin_event_handler_again_p): Declare.
680 * event-top.c (call_stdin_event_handler_again_p): Define.
681 (stdin_event_handler): Use it.
682 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
683 handler again if there is pending input following a
684 start sequence.
685
6f9d33d8
PP
6862014-11-23 Patrick Palka <patrick@parcs.ath.cx>
687
688 Pushed by Joel Brobecker <brobecker@adacore.com>
689 * linux-fork.c (checkpoint_command): Print index of new
690 checkpoint in response message.
691
88db67ef
YQ
6922014-11-23 Yao Qi <yao@codesourcery.com>
693
694 * valprint.c (read_string): Move local variables 'found_nul',
695 'chunksize' and 'limit' to inner scope. Update comments.
696
01465b56
DE
6972014-11-22 Doug Evans <xdje42@gmail.com>
698
699 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
700 function comment.
701 (search_symbols): Fix comments and whitespace.
702
07a1c2c3
DE
7032014-11-22 Doug Evans <xdje42@gmail.com>
704
705 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
706
b2a919a8
DE
7072014-11-21 Doug Evans <dje@google.com>
708
709 * psymtab.c (psymtab_search_name): Fix whitespace.
710
278289d5
YQ
7112014-11-21 Yao Qi <yao@codesourcery.com>
712
713 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
714 errno.
715 * gnulib/import/Makefile.am: Re-generated.
716 * gnulib/import/Makefile.in: Likewise.
717 * gnulib/import/m4/gnulib-cache.m4: Likewise.
718
e01e2baa
YQ
7192014-11-21 Yao Qi <yao@codesourcery.com>
720
721 * gdb_wchar.h: Include wchar.h and wctype.h.
722 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
723 include wchar.h and wctype.h.
724 Don't check HAVE_WCHAR_H.
725
f0c00af8
YQ
7262014-11-21 Yao Qi <yao@codesourcery.com>
727
728 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
729 and wctype-h.
730 * gnulib/import/Makefile.am: Re-generated.
731 * gnulib/import/Makefile.in: Likewise.
732 * gnulib/import/m4/gnulib-cache.m4: Likewise.
733
0cae13bb
YQ
7342014-11-21 Yao Qi <yao@codesourcery.com>
735
736 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
737 memchr.
738 * gnulib/import/Makefile.am: Re-generated.
739 * gnulib/import/Makefile.in: Likewise.
740 * gnulib/import/m4/gnulib-cache.m4: Likewise.
741
9c232dda
YQ
7422014-11-21 Yao Qi <yao@codesourcery.com>
743
744 * common/common-defs.h: Include alloca.h
745 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
746 * configure: Re-generated.
747 * defs.h: Remove code handling alloca.
748 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
749 or not.
750
00d7f58f
YQ
7512014-11-21 Yao Qi <yao@codesourcery.com>
752
753 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
754 alloca.
755 * gnulib/import/Makefile.am: Re-generated.
756 * gnulib/import/Makefile.in: Likewise..
757 * gnulib/import/m4/gnulib-cache.m4: Likewise.
758
6068ad5d
YQ
7592014-11-21 Yao Qi <yao@codesourcery.com>
760
761 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
762 alphabetical order.
763
45e44d27
JB
7642014-11-21 Joel Brobecker <brobecker@adacore.com>
765
766 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
767 flag_unsigned if HIGH_BOUND is constant and negative.
768
7e7cbeb3
SDJ
7692014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
770
771 PR breakpoints/10737
772 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
773 modifier from "struct gdbarch" when compiling without Expat (XML)
774 support.
775 (get_syscall_by_number): Likewise.
776 (get_syscall_by_name): Likewise.
777 (get_syscall_names): Likewise.
778
458c8db8
SDJ
7792014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
780
781 PR breakpoints/10737
782 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
783 set_xml_syscall_file_name to provide gdbarch.
784 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
785 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
786 * breakpoint.c (print_it_catch_syscall): Adjust call to
787 get_syscall_by_number to provide gdbarch.
788 (print_one_catch_syscall): Likewise.
789 (print_mention_catch_syscall): Likewise.
790 (print_recreate_catch_syscall): Likewise.
791 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
792 and get_syscall_by_name to provide gdbarch.
793 (catch_syscall_completer): Adjust call to get_syscall_names to
794 provide gdbarch.
795 * gdbarch.c: Regenerate.
796 * gdbarch.h: Likewise.
797 * gdbarch.sh: Forward declare "struct syscalls_info".
798 (xml_syscall_file): New variable.
799 (syscalls_info): Likewise.
800 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
801 set_xml_syscall_file_name to provide gdbarch.
802 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
803 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
804 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
805 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
806 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
807 * xml-syscall.c: Include gdbarch.h.
808 (set_xml_syscall_file_name): Accept gdbarch parameter.
809 (get_syscall_by_number): Likewise.
810 (get_syscall_by_name): Likewise.
811 (get_syscall_names): Likewise.
812 (my_gdb_datadir): Delete global variable.
813 (struct syscalls_info) <my_gdb_datadir>: New variable.
814 (struct syscalls_info) <sysinfo>: Rename variable to
815 "syscalls_info".
816 (sysinfo): Delete global variable.
817 (have_initialized_sysinfo): Likewise.
818 (xml_syscall_file): Likewise.
819 (sysinfo_free_syscalls_desc): Rename to...
820 (syscalls_info_free_syscalls_desc): ... this.
821 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
822 code to the new layout of "struct syscalls_info".
823 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
824 "syscalls_info".
825 (syscall_create_syscall_desc): Likewise.
826 (syscall_start_syscall): Likewise.
827 (syscall_parse_xml): Likewise.
828 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
829 (init_sysinfo): Rename to...
830 (init_syscalls_info): ...this. Add gdbarch as a parameter.
831 Adjust function to deal with gdbarch.
832 (xml_get_syscall_number): Delete parameter sysinfo. Accept
833 gdbarch as a parameter. Adjust code.
834 (xml_get_syscall_name): Likewise.
835 (xml_list_of_syscalls): Likewise.
836 (set_xml_syscall_file_name): Accept gdbarch as parameter.
837 (get_syscall_by_number): Likewise.
838 (get_syscall_by_name): Likewise.
839 (get_syscall_names): Likewise.
840 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
841 (get_syscall_by_number): Likewise.
842 (get_syscall_by_name): Likewise.
843 (get_syscall_names): Likewise.
844
43f3e411
DE
8452014-11-20 Doug Evans <xdje42@gmail.com>
846
847 Split struct symtab into two: struct symtab and compunit_symtab.
848 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
849 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
850 to "struct compunit_symtab *". All callers updated.
851 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
852 "struct symtab *" argument to "struct compunit_symtab *".
853 All callers updated.
854 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
855 result to "struct compunit_symtab *". All callers updated.
856 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
857 Change result to "struct compunit_symtab *". All callers updated.
858 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
859 hange type to "struct compunit_symtab *". All uses updated.
860 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
861 Change type to "struct compunit_symtab *". All uses updated.
862 * buildsym.c (struct buildsym_compunit): New struct.
863 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
864 (buildsym_compunit): New static global.
865 (finish_block_internal): Update to fetch objfile from
866 buildsym_compunit.
867 (make_blockvector): Delete objfile argument.
868 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
869 debugformat, producer.
870 (start_buildsym_compunit): New function.
871 (free_buildsym_compunit): Renamed from free_subfiles_list.
872 All callers updated.
873 (patch_subfile_names): Rewrite to use buildsym_compunit.
874 (get_compunit_symtab): New function.
875 (get_macro_table): Delete argument comp_dir. All callers updated.
876 (start_symtab): Change result to "struct compunit_symtab *".
877 All callers updated. Create the subfile of the main source file.
878 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
879 (reset_symtab_globals): Update.
880 (end_symtab_get_static_block): Update to use buildsym_compunit.
881 (end_symtab_without_blockvector): Rewrite.
882 (end_symtab_with_blockvector): Change result to
883 "struct compunit_symtab *". All callers updated.
884 Update to use buildsym_compunit. Don't set symtab->dirname,
885 instead set it in the compunit.
886 Explicitly make sure main symtab is first in its list.
887 Set debugformat, producer, blockvector, block_line_section, and
888 macrotable in the compunit.
889 (end_symtab_from_static_block): Change result to
890 "struct compunit_symtab *". All callers updated.
891 (end_symtab, end_expandable_symtab): Ditto.
892 (set_missing_symtab): Change symtab argument to
893 "struct compunit_symtab *". All callers updated.
894 (augment_type_symtab): Ditto.
895 (record_debugformat): Update to use buildsym_compunit.
896 (record_producer): Update to use buildsym_compunit.
897 * buildsym.h (struct subfile) <dirname>: Delete.
898 <producer, debugformat>: Delete.
899 <buildsym_compunit>: New member.
900 (get_compunit_symtab): Declare.
901 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
902 from primary_symtab. Change type to "struct compunit_symtab *".
903 All uses updated.
904 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
905 All callers updated.
906 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
907 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
908 symtab. Change type to "struct compunit_symtab *". All uses updated.
909 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
910 All callers updated.
911 (dw2_find_last_source_symtab): Ditto.
912 (dw2_lookup_symbol): Ditto.
913 (recursively_find_pc_sect_compunit_symtab): Renamed from
914 recursively_find_pc_sect_symtab. Change result to
915 "struct compunit_symtab *". All callers updated.
916 (dw2_find_pc_sect_compunit_symtab): Renamed from
917 dw2_find_pc_sect_symtab. Change result to
918 "struct compunit_symtab *". All callers updated.
919 (get_compunit_symtab): Renamed from get_symtab. Change result to
920 "struct compunit_symtab *". All callers updated.
921 (recursively_compute_inclusions): Change type of immediate_parent
922 argument to "struct compunit_symtab *". All callers updated.
923 (compute_compunit_symtab_includes): Renamed from
924 compute_symtab_includes. All callers updated. Rewrite to compute
925 includes of compunit_symtabs and not symtabs.
926 (process_full_comp_unit): Update to work with struct compunit_symtab.
927 (process_full_type_unit): Ditto.
928 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
929 (dwarf_decode_lines): Remove special case handling of main subfile.
930 (macro_start_file): Delete argument comp_dir. All callers updated.
931 (dwarf_decode_macro_bytes): Ditto.
932 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
933 use struct compunit_symtab.
934 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
935 * jit.c (finalize_symtab): Build compunit_symtab.
936 * jv-lang.c (get_java_class_symtab): Change result to
937 "struct compunit_symtab *". All callers updated.
938 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
939 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
940 comp_dir. Change type to "struct compunit_symtab *".
941 All uses updated.
942 (new_macro_table): Change comp_dir argument to cust,
943 "struct compunit_symtab *". All callers updated.
944 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
945 nr_primary_symtabs. All uses updated.
946 (count_symtabs_and_blocks): Update to handle compunits.
947 (report_command_stats): Update output, "primary symtabs" renamed to
948 "compunits".
949 * mdebugread.c (new_symtab): Change result to
950 "struct compunit_symtab *". All callers updated.
951 (parse_procedure): Change type of search_symtab argument to
952 "struct compunit_symtab *". All callers updated.
953 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
954 separate loop.
955 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
956 symtabs. Change type to "struct compunit_symtab *". All uses updated.
957 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
958 All uses updated.
959 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
960 All uses updated.
961 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
962 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
963 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
964 symtab. Change type to "struct compunit_symtab *". All uses updated.
965 * psymtab.c (psymtab_to_symtab): Change result type to
966 "struct compunit_symtab *". All callers updated.
967 (find_pc_sect_compunit_symtab_from_partial): Renamed from
968 find_pc_sect_symtab_from_partial. Change result type to
969 "struct compunit_symtab *". All callers updated.
970 (lookup_symbol_aux_psymtabs): Change result type to
971 "struct compunit_symtab *". All callers updated.
972 (find_last_source_symtab_from_partial): Ditto.
973 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
974 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
975 and macro_table from compunit.
976 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
977 type to "struct compunit_symtab *". All callers updated.
978 (debug_qf_lookup_symbol): Ditto.
979 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
980 debug_qf_find_pc_sect_symtab, change result type to
981 "struct compunit_symtab *". All callers updated.
982 * symfile.c (allocate_symtab): Delete objfile argument.
983 New argument cust.
984 (allocate_compunit_symtab): New function.
985 (add_compunit_symtab_to_objfile): New function.
986 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
987 Change result type to "struct compunit_symtab *". All uses updated.
988 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
989 Change result type to "struct compunit_symtab *". All uses updated.
990 * symmisc.c (print_objfile_statistics): Compute blockvector count in
991 separate loop.
992 (dump_symtab_1): Update test for primary source symtab.
993 (maintenance_info_symtabs): Update to handle compunit symtabs.
994 (maintenance_check_symtabs): Ditto.
995 * symtab.c (set_primary_symtab): Delete.
996 (compunit_primary_filetab): New function.
997 (compunit_language): New function.
998 (iterate_over_some_symtabs): Change type of arguments "first",
999 "after_last" to "struct compunit_symtab *". All callers updated.
1000 Update to loop over symtabs in each compunit.
1001 (error_in_psymtab_expansion): Rename symtab argument to cust,
1002 and change type to "struct compunit_symtab *". All callers updated.
1003 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
1004 Change result type to "struct compunit_symtab *". All callers updated.
1005 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
1006 Change result type to "struct compunit_symtab *". All callers updated.
1007 (find_pc_sect_line): Only loop over symtabs within selected compunit
1008 instead of all symtabs in the objfile.
1009 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
1010 <compunit_symtab> New member.
1011 <block_line_section>: Moved to compunit_symtab.
1012 <locations_valid>: Ditto.
1013 <epilogue_unwind_valid>: Ditto.
1014 <macro_table>: Ditto.
1015 <dirname>: Ditto.
1016 <debugformat>: Ditto.
1017 <producer>: Ditto.
1018 <objfile>: Ditto.
1019 <call_site_htab>: Ditto.
1020 <includes>: Ditto.
1021 <user>: Ditto.
1022 <primary>: Delete
1023 (SYMTAB_COMPUNIT): New macro.
1024 (SYMTAB_BLOCKVECTOR): Update definition.
1025 (SYMTAB_OBJFILE): Update definition.
1026 (SYMTAB_DIRNAME): Update definition.
1027 (struct compunit_symtab): New type. Common members among all source
1028 symtabs within a compilation unit moved here. All uses updated.
1029 (COMPUNIT_OBJFILE): New macro.
1030 (COMPUNIT_FILETABS): New macro.
1031 (COMPUNIT_DEBUGFORMAT): New macro.
1032 (COMPUNIT_PRODUCER): New macro.
1033 (COMPUNIT_DIRNAME): New macro.
1034 (COMPUNIT_BLOCKVECTOR): New macro.
1035 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1036 (COMPUNIT_LOCATIONS_VALID): New macro.
1037 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1038 (COMPUNIT_CALL_SITE_HTAB): New macro.
1039 (COMPUNIT_MACRO_TABLE): New macro.
1040 (ALL_COMPUNIT_FILETABS): New macro.
1041 (compunit_symtab_ptr): New typedef.
1042 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1043
005e2509
JB
10442014-11-20 Joel Brobecker <brobecker@adacore.com>
1045
1046 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1047 if the TYPE_CODE of range_type's base type does not match
1048 the TYPE_CODE of encoding_type's base type.
1049
2b0f535a
JB
10502014-11-19 Joel Brobecker <brobecker@adacore.com>
1051
1052 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1053 it starts with '<'.
1054
8908fca5
JB
10552014-11-19 Joel Brobecker <brobecker@adacore.com>
1056
1057 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1058 (ada_is_redundant_index_type_desc): New function.
1059 (to_fixed_array_type): Ignore parallel XA type if redundant.
1060
4a46959e
JB
10612014-11-19 Joel Brobecker <brobecker@adacore.com>
1062
1063 * ada-lang.c (constrained_packed_array_type): Set the length
1064 of the return array as if both bounds where zero if that
1065 returned array's index type is dynamic.
1066
2acf986b
YQ
10672014-11-19 Yao Qi <yao@codesourcery.com>
1068
1069 * config/i386/go32.mh (CC): Remove.
1070
439247b6
DE
10712014-11-18 Doug Evans <xdje42@gmail.com>
1072
1073 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1074 updated.
1075
4d663531
DE
10762014-11-18 Doug Evans <xdje42@gmail.com>
1077
1078 * buildsym.c (buildsym_objfile): New static global.
1079 (buildsym_comp_dir): New static global.
1080 (finish_block_internal): Delete arg objfile. All callers updated.
1081 (finish_block): Delete arg objfile. All callers updated.
1082 (start_subfile): Delete arg dirname. All callers updated.
1083 (patch_subfile_names): Update buildsym_comp_dir.
1084 (get_macro_table): Delete arg objfile. All callers updated.
1085 (start_symtab): New arg objfile. All callers updated.
1086 Rename arg dirname to comp_dir.
1087 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1088 (end_symtab_get_static_block): Delete arg objfile. All callers
1089 updated.
1090 (end_symtab_without_blockvector): Ditto.
1091 (end_symtab_with_blockvector): Ditto.
1092 (end_symtab_from_static_block): Ditto.
1093 (end_symtab): Ditto.
1094 (end_expandable_symtab): Ditto.
1095 (augment_type_symtab): Ditto.
1096 * coffread.c (coff_start_symtab): New arg objfile. All callers
1097 updated.
1098
8435453b
DE
10992014-11-18 Doug Evans <xdje42@gmail.com>
1100
1101 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1102 updated.
1103
ee6f8984
DE
11042014-11-18 Doug Evans <xdje42@gmail.com>
1105
1106 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1107 symtab.dirname updated to use it.
1108
eb822aa6
DE
11092014-11-18 Doug Evans <xdje42@gmail.com>
1110
1111 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1112 symtab.objfile updated to use it.
1113
98387a29
DE
11142014-11-18 Doug Evans <xdje42@gmail.com>
1115
1116 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1117
aff08958
DE
11182014-11-18 Doug Evans <xdje42@gmail.com>
1119
1120 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1121 SYMBOL_OBJFILE.
1122 * findvar.c (default_read_var_value): Ditto.
1123 * jv-lang.c (add_class_symtab_symbol): Ditto.
1124 * parse.c (operator_check_standard): Ditto.
1125 * printcmd.c (address_info): Ditto.
1126 * symtab.c (fixup_symbol_section): Ditto.
1127 (skip_prologue_sal): Ditto.
1128 * tracepoint.c (scope_info): Ditto.
1129 * valops.c (find_function_in_inferior): Ditto.
1130 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1131 * python/py-symbol.c (set_symbol): Ditto.
1132
7bab9b58
DE
11332014-11-18 Doug Evans <xdje42@gmail.com>
1134
1135 * buildsym.c (main_subfile): New static global.
1136 (free_subfiles_list): New function.
1137 (start_symtab): Set main_subfile.
1138 (restart_symtab): Replace init of subfiles, current_subfile with
1139 call to free_subfiles_list.
1140 (watch_main_source_file_lossage): Use main_subfile.
1141 (reset_symtab_globals): Replace init of current_subfile with call
1142 to free_subfiles_list.
1143 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1144 functions, split out from ...
1145 (end_symtab_from_static_block): ... here. Rewrite to call them.
1146
f194fefb
DE
11472014-11-18 Doug Evans <xdje42@gmail.com>
1148
1149 The result of symtab expansion is always a primary symtab.
1150 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1151 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1152 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1153 (psymtab_to_symtab): Add comment and assert.
1154 (map_matching_symbols_psymtab): Remove unnecessary test for
1155 non-primary symtab.
1156
34248c3a
DE
11572014-11-15 Doug Evans <xdje42@gmail.com>
1158
1159 PR symtab/17559
1160 * symtab.c (find_pc_line_symtab): New function.
1161 * symtab.h (find_pc_line_symtab): Declare.
1162 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1163 find_pc_symtab.
1164 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1165 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1166 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1167 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1168 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1169 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1170
2097ae25
DE
11712014-11-15 Doug Evans <xdje42@gmail.com>
1172
1173 * symtab.c (expand_symtab_containing_pc): Renamed from
1174 find_pc_sect_symtab_via_partial. All callers updated.
1175
1ada499f
YQ
11762014-11-15 Yao Qi <yao@codesourcery.com>
1177
1178 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1179
355e2102
JB
11802014-11-14 Joel Brobecker <brobecker@adacore.com>
1181
1182 * common/common-defs.h: Move <stdarg.h> #include ahead of
1183 <stdio.h> #include.
1184
83030110
PA
11852014-11-14 Pedro Alves <palves@redhat.com>
1186
1187 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1188 [!PHONY_ICONV] (gdb_iconv): New function.
1189 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1190
a8719064
DE
11912014-11-13 Doug Evans <dje@google.com>
1192
1193 PR symtab/17591
1194 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1195 "(anonymous namespace)".
1196
60f7655a
DE
11972014-11-13 Doug Evans <dje@google.com>
1198
1199 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1200 infinite loop.
1201
5784b3ca
JK
12022014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1203
1204 * NEWS (maint set target-async): Fix typo.
1205
6218dc4b
PA
12062014-11-12 Pedro Alves <palves@redhat.com>
1207
1208 * infrun.c (enum infwait_states, infwait_state): Delete.
1209
af48d08f
PA
12102014-11-12 Pedro Alves <palves@redhat.com>
1211
1212 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1213 Rewrite stepping over a permanent breakpoint.
1214 (thread_still_needs_step_over, proceed): Don't set
1215 stepping_over_breakpoint for permanent breakpoints.
1216 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1217 single-step breakpoints out of the target on hardware step
1218 targets.
1219 (process_event_stop_test): If stepping a permanent breakpoint
1220 doesn't hit the step-resume breakpoint, delete the step-resume
1221 breakpoint.
1222 (switch_back_to_stepped_thread): Also check if the stepped thread
1223 has advanced already on hardware step targets.
1224 (currently_stepping): Return true if the thread stepped a
1225 breakpoint.
1226
1a853c52
PA
12272014-11-12 Pedro Alves <palves@redhat.com>
1228
1229 Mark locations as permanent, not the whole breakpoint.
1230 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1231 (mark_breakpoints_out): Don't mark permanent breakpoints as
1232 uninserted.
1233 (breakpoint_init_inferior): Use mark_breakpoints_out.
1234 (breakpoint_here_p): Adjust.
1235 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1236 of permanent breakpoints.
1237 (make_breakpoint_permanent): Mark each location as permanent,
1238 instead of marking the breakpoint.
1239 (add_location_to_breakpoint): If the location is permanent, mark
1240 it as such, and as inserted.
1241 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1242 (bp_location_compare, update_global_location_list): Adjust.
1243 (update_breakpoint_locations): Don't make the breakpoint permanent
1244 here.
1245 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1246 breakpoints.
1247 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1248 (struct bp_location) <permanent>: New field.
1249 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1250 reference to bp_permanent.
1251
ae9bb220
PA
12522014-11-12 Pedro Alves <palves@redhat.com>
1253
1254 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1255 * arch-utils.h (default_skip_permanent_breakpoint): New
1256 declaration.
1257 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1258 Install default_skip_permanent_breakpoint as default method.
1259 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1260 (i386_gdbarch_init): Don't install it.
1261 * infrun.c (resume): Assume there's always a
1262 gdbarch_skip_permanent_breakpoint implementation.
1263 * gdbarch.h, gdbarch.c: Regenerate.
1264
015de688
DC
12652014-11-11 Daniel Colascione <dancol@dancol.org>
1266
1267 Warn about cross-PID-namespace debugging.
1268 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1269 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1270 * linux-thread-db.c (check_pid_namespace_match): New function.
1271 (thread_db_inferior_created): Call it.
1272
26a84859
DE
12732014-11-10 Doug Evans <xdje42@gmail.com>
1274
1275 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1276 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1277
712a2e6d
DE
12782014-11-10 Doug Evans <xdje42@gmail.com>
1279
1280 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1281
af3768e9
DE
12822014-11-10 Doug Evans <xdje42@gmail.com>
1283
1284 PR symtab/17564
1285 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1286 (lookup_static_symbol): Move definition to new location and rewrite.
1287 (lookup_symbol_in_objfile): New function.
1288 (lookup_symbol_global_iterator_cb): Call it.
1289
b1f28d99
UW
12902014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
1291
1292 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1293
b7a084be
PA
12942014-11-07 Pedro Alves <palves@redhat.com>
1295
1296 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1297 check if we did a "nexti" inside a prologue.
1298 * symtab.c (in_prologue): Delete function.
1299 * symtab.h (in_prologue): Delete declaration.
1300
67be31e5
DE
13012014-11-06 Doug Evans <xdje42@gmail.com>
1302
1303 * symtab.h (lookup_global_symbol): Improve function comment.
1304
08724ab7
DE
13052014-11-06 Doug Evans <xdje42@gmail.com>
1306
1307 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1308 All callers updated.
1309 * symtab.h (lookup_global_symbol): Update decl.
1310 (lookup_static_symbol): Move decl to better location.
1311
d9060ba6
DE
13122014-11-06 Doug Evans <xdje42@gmail.com>
1313
1314 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1315
74016e12
DE
13162014-11-06 Doug Evans <xdje42@gmail.com>
1317
1318 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1319 All callers updated.
1320 (lookup_symbol_in_all_objfiles): Renamed from
1321 lookup_symbol_aux_symtabs. All callers updated.
1322 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1323 All callers updated.
1324 (lookup_symbol_in_objfile_symtabs): Renamed from
1325 lookup_symbol_aux_objfile. All callers updated.
1326
d1a2d36d
DE
13272014-11-06 Doug Evans <xdje42@gmail.com>
1328
1329 * symtab.c (lookup_symbol_in_block): Renamed from
1330 lookup_symbol_aux_block. All callers updated.
1331
24d864bb
DE
13322014-11-06 Doug Evans <xdje42@gmail.com>
1333
1334 * symtab.c (lookup_static_symbol): Renamed from
1335 lookup_static_symbol_aux. All callers updated.
1336 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1337 All callers updated.
1338
358d6ab3
DE
13392014-11-06 Doug Evans <xdje42@gmail.com>
1340
1341 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1342 * block.c (block_lookup_symbol): Use it.
1343 * cp-support.c (make_symbol_overload_list_block): Use it.
1344 * symtab.c (iterate_over_symbols): Use it.
1345
16b2eaa1
DE
13462014-11-06 Doug Evans <xdje42@gmail.com>
1347
1348 * symtab.c (lookup_block_symbol): Moved to ...
1349 * block.c (block_lookup_symbol): ... here and renamed.
1350 All callers updated.
1351 * block.h (block_lookup_symbol): Declare.
1352 * symtab.h (lookup_block_symbol): Delete.
1353
2dd2cd1c
DE
13542014-11-06 Doug Evans <xdje42@gmail.com>
1355
1356 * ada-lang.c (ada_make_symbol_completion_list): Use
1357 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1358 * symtab.c (lookup_objfile_from_block): Ditto.
1359
d4c58915
DE
13602014-11-06 Doug Evans <xdje42@gmail.com>
1361
1362 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1363 TYPE_CODE_STRUCT.
1364
9c1877ea
DE
13652014-11-06 Doug Evans <xdje42@gmail.com>
1366
1367 * objfiles.c (get_objfile_arch): Constify.
1368 * objfiles.h (get_objfile_arch): Update prototype.
1369 * solib.c (solib_global_lookup): Fetch arch from objfile,
1370 not target_gdbarch.
1371
426a4079
SL
13722014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1373
1374 * nios2-tdep.c (wild_insn): Delete.
1375 (profiler_insn, irqentry_insn): Delete.
1376 (nios2_match_sequence): Delete.
1377 (nios2_analyze_prologue): Update comments. Remove matching
1378 of obsolete profiler_insn and irqentry_insn sequences.
1379
ee11262d
AM
13802014-11-05 Alan Modra <amodra@gmail.com>
1381
1382 * charset.c (convert_between_encodings): Shrink obstack using
1383 obstack_blank_fast.
1384 * minsyms.c (install_minimal_symbols): Likewise.
1ae1b8cc
AM
1385 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1386 to char* before doing pointer arithmetic.
ee11262d 1387
c87e6d00
SM
13882014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1389
1390 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1391
441ef17f
PA
13922014-11-04 Pedro Alves <palves@redhat.com>
1393
1394 * breakpoint.c (breakpoint_thread_match): Delete function.
1395 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1396
e0f52461
SC
13972014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1398
1399 PR c++/17494
1400 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1401 the method args also under EVAL_SKIP when evaluating method
1402 calls under EVAL_SKIP.
1403
a0b4d890
YQ
14042014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1405
1406 * dwarf2loc.c (read_pieced_value): Do big endian
1407 processing only if gdb_regnum is not -1.
1408 (write_pieced_value): Ditto.
1409
14102014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1411
1412 * arm-linux-tdep.c (arm_linux_init_abi): Use
1413 info.byte_order_for_code to choose endianity of breakpoint
1414 instructions snippets.
1415
14162014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1417
1418 * arm-tdep.c (extract_arm_insn): Use
1419 gdbarch_byte_order_for_code to read arm instruction.
1420
e82149ff
DE
14212014-11-02 Doug Evans <xdje42@gmail.com>
1422
1423 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1424
d7ee84f1
DE
14252014-11-02 Doug Evans <xdje42@gmail.com>
1426
1427 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1428 main_subfile before returning.
1429
4f072d17
DE
14302014-10-31 Doug Evans <xdje42@gmail.com>
1431
1432 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1433 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1434
8301c89e
DE
14352014-10-31 Doug Evans <xdje42@gmail.com>
1436
1437 * valops.c (value_cast_pointers): Fix whitespace.
1438 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1439 Ditto.
1440
02be9a71
DE
14412014-10-30 Doug Evans <dje@google.com>
1442
1443 * NEWS: Mention ability add attributes to gdb.Objfile and
1444 gdb.Progspace objects.
1445 * python/py-objfile.c (objfile_object): New member dict.
1446 (objfpy_dealloc): Py_XDECREF dict.
1447 (objfpy_initialize): Initialize dict.
1448 (objfile_getset): Add __dict__.
1449 (objfile_object_type): Set tp_dictoffset member.
1450 * python/py-progspace.c (progspace_object): New member dict.
1451 (pspy_dealloc): Py_XDECREF dict.
1452 (pspy_initialize): Initialize dict.
1453 (pspace_getset): Add __dict__.
1454 (pspace_object_type): Set tp_dictoffset member.
1455
6427bef6
YQ
14562014-10-30 Yao Qi <yao@codesourcery.com>
1457
1458 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1459 replace '\\' with '\\\\'.
1460
f60325be
JB
14612014-10-29 Joel Brobecker <brobecker@adacore.com>
1462
1463 GDB 7.8.1 released.
1464
ab917dfb
PA
14652014-10-29 Pedro Alves <palves@redhat.com>
1466
1467 PR gdb/17408
1468 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1469 instead of assuming a thread with a stepping range is always
1470 stepping.
1471
d3d4baed
PA
14722014-10-29 Pedro Alves <palves@redhat.com>
1473
1474 PR python/17372
1475 * event-top.c (change_line_handler): Call
1476 gdb_rl_callback_handler_remove instead of
1477 rl_callback_handler_remove.
1478 (callback_handler_installed): New global.
1479 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1480 (gdb_rl_callback_handler_reinstall): New functions.
1481 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1482 gdb_rl_callback_handler_install instead of
1483 rl_callback_handler_remove and rl_callback_handler_install.
1484 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1485 instead of rl_callback_handler_remove.
1486 * event-top.h (gdb_rl_callback_handler_remove)
1487 (gdb_rl_callback_handler_install)
1488 (gdb_rl_callback_handler_reinstall): New declarations.
1489 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1490 cleanup function.
1491 (fetch_inferior_event): Install it.
1492 * top.c (gdb_readline_wrapper_line) Call
1493 gdb_rl_callback_handler_remove instead of
1494 rl_callback_handler_remove.
1495 (gdb_readline_wrapper_cleanup): Don't call
1496 rl_callback_handler_install.
1497
6e5d7f39
PA
14982014-10-29 Pedro Alves <palves@redhat.com>
1499
1500 * event-top.c (command_line_handler): Clear the first byte of
1501 linebuffer, when it is first allocated.
1502
551cb6a5
PA
15032014-10-29 Pedro Alves <palves@redhat.com>
1504
1505 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1506 TRY_CATCH.
1507
1e1e619b
PA
15082014-10-29 Pedro Alves <palves@redhat.com>
1509
1510 PR tui/16138
1511 PR tui/17519
1512 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1513 (tui_allowed_p): Delete function.
1514 * tui/tui.c: Include "interps.h".
1515 (tui_enable): Don't use tui_allowed_p. Error out here with
1516 detailed error messages if the TUI is the top level interpreter,
1517 or if output is not a terminal. Use newterm instead of initscr,
1518 and error out if initializing the terminal fails. Also error out if
1519 the terminal doesn't support cursor addressing.
1520 * tui/tui.h (tui_allowed_p): Delete declaration.
1521
6041179a
JB
15222014-10-29 Joel Brobecker <brobecker@adacore.com>
1523
1524 * arm-tdep.c (arm_skip_stack_protector): Return early if
1525 address loaded by first "ldr" instruction does not have
1526 a corresponding minimal symbol. Update comment.
1527
6ae274b7
YQ
15282014-10-29 Yao Qi <yao@codesourcery.com>
1529
1530 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1531 loaded address correctly of ldr instruction.
1532
7f5ef605
PA
15332014-10-28 Pedro Alves <palves@redhat.com>
1534
1535 PR gdb/12623
1536 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1537 field.
1538 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1539 thread's stepped_breakpoint field. Skip if reverse debugging.
1540 Add comment.
1541 (init_thread_stepping_state, handle_signal_stop): Clear the
1542 thread's stepped_breakpoint field.
1543
7d1a114c
PA
15442014-10-27 Pedro Alves <palves@redhat.com>
1545
1546 * remote.c (remote_thread_alive): New, factored out from ...
1547 (remote_thread_alive): ... this.
1548 (remote_update_thread_list): Bail out before deleting threads if
1549 the target returned an empty list, and, the current thread has a
1550 magic/fake ptid.
1551
e5f8a7cc
PA
15522014-10-27 Pedro Alves <palves@redhat.com>
1553
1554 * infrun.c (handle_signal_stop): Also skip handlers when a random
1555 signal arrives while handling a "stepi" or a "nexti". Set the
1556 thread's 'step_after_step_resume_breakpoint' flag.
1557
71e396f9
LM
15582014-10-27 Luis Machado <lgustavo@codesourcery.com>
1559
1560 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1561 (arm_record_ld_st_imm_offset): Reimplement to cover all
1562 load/store cases for ARM opcode 010.
1563 (arm_record_ld_st_multiple): Reimplement to cover all
1564 load/store cases for ARM opcode 100.
1565
3aee438b
DE
15662014-10-26 Doug Evans <xdje42@gmail.com>
1567
1568 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1569
f88cb4b6
DE
15702014-10-26 Doug Evans <xdje42@gmail.com>
1571
1572 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1573 parameter "kind" to "block_index".
1574 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1575 "block_index".
1576 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1577
a023a30f
DE
15782014-10-26 Doug Evans <xdje42@gmail.com>
1579
1580 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1581
4c35218e
DE
15822014-10-26 Doug Evans <xdje42@gmail.com>
1583
1584 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1585 obstack_alloc.
1586
f08e8df3
DE
15872014-10-26 Doug Evans <xdje42@gmail.com>
1588
1589 * parser-defs.h (block_found): Move decl from here ...
1590 * symtab.h (block_found): ... to here.
1591
cf901d3b
DE
15922014-10-26 Doug Evans <xdje42@gmail.com>
1593
1594 * symtab.h (struct field_of_this_result): Fix typo in comment.
1595 (lookup_symbol_in_language): Move function comment here.
1596 (lookup_symbol): Improve function comment.
1597 (basic_lookup_symbol_nonlocal): Ditto.
1598 (lookup_symbol_static, lookup_symbol_global): Ditto.
1599 (lookup_symbol_aux_block): Ditto.
1600 (lookup_language_this): Add function comment.
1601 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1602 function comment.
1603 (lookup_block_symbol): Improve function comment.
1604 (lookup_struct): Fix capitalization in function comment.
1605 (lookup_transparent_type): Add function comment.
1606 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1607 Improve function comment.
1608 (lookup_objfile_from_block): Add function comment.
1609 * symtab.c (lookup_symbol_in_language): Update function comment.
1610 (lookup_symbol, lookup_language_this): Ditto.
1611 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1612 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1613 (basic_lookup_symbol_nonlocal): Ditto.
1614 (lookup_symbol_static, lookup_symbol_global): Ditto.
1615 (lookup_transparent_type, lookup_block_symbol): Ditto.
1616
ff6c39cf
DE
16172014-10-25 Doug Evans <xdje42@gmail.com>
1618
1619 * symtab.c (types_info): Delete forward decl.
1620 (functions_info, variables_info, sources_info): Ditto.
1621 (_initialize_symtab): Rewrite forward decl to use
1622 initialize_file_ftype.
1623
ec201f0c
DE
16242014-10-25 Doug Evans <xdje42@gmail.com>
1625
1626 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1627
ca040673
DE
16282014-10-25 Doug Evans <xdje42@gmail.com>
1629
1630 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1631 of local var child_die.
1632
6f259a23
DB
16332014-10-24 Don Breazeal <donb@codesourcery.com>
1634
1635 * infrun.c (follow_fork_inferior): Update fork message printing
1636 to use target_terminal_ours_for_output instead of
1637 target_terminal_ours, to use _() for all format strings, to print
1638 "vfork" instead of "fork" for vforks, and to add a detach message.
1639 (handle_vfork_child_exec_or_exit): Update message printing to use
1640 target_terminal_ours_for_output instead of target_terminal_ours, to
1641 use _() for all format strings, and to fix some formatting.
1642
09dd9a69
PA
16432014-10-24 Pedro Alves <palves@redhat.com>
1644
1645 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1646 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1647 * config/vax/vax.mh: Delete.
1648 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1649 obsolete configurations section.
1650 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1651 * vax-nat.c: Delete file.
1652
5ab806de
PA
16532014-10-24 Pedro Alves <palves@redhat.com>
1654
1655 * NEWS (Removed targets): Add OS/arch column.
1656
3433cfa5
SC
16572014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1658
1659 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1660 on the arg type of a constructor only if it is of reference type.
1661
96ba4233
SL
16622014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1663
1664 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1665 accessors and constants from nios2 opcodes update.
1666 (nios2_get_next_pc): Likewise.
1667
28153fd3
DE
16682014-10-19 Doug Evans <xdje42@gmail.com>
1669
1670 * gdbthread.h (set_running): Fix comment.
1671 (set_executing, finish_thread_state): Fix comment.
1672
fc9b8e47
DE
16732014-10-18 Doug Evans <xdje42@gmail.com>
1674
1675 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1676
4ffbba72
DE
16772014-10-17 Doug Evans <dje@google.com>
1678
1679 * NEWS: Mention new event gdb.clear_objfiles.
1680 * python/py-event.h (emit_clear_objfiles_event): Clear
1681 * python/py-events.h (events_object): New member clear_objfiles.
1682 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1683 event.
1684 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1685 emit clear_objfiles event.
1686 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1687 function.
1688 (emit_clear_objfiles_event): New function.
1689 (clear_objfiles): New event.
1690 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1691 Declare.
1692 * python/python.c (_initialize_python): Call
1693 gdbpy_initialize_clear_objfiles_event.
1694
d096d8c1
DE
16952014-10-17 Doug Evans <dje@google.com>
1696
1697 * NEWS: Mention new gdb.Objfile.progspace attribute.
1698 * python/py-objfile.c (objfpy_get_progspace): New function.
1699 (objfile_getset): New entry for "progspace".
1700
6c4486e6
PA
17012014-10-17 Pedro Alves <palves@redhat.com>
1702
1703 PR gdb/17471
1704 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1705 returns a copy of the input.
1706 (run_command_1, continue_command, step_1, jump_command)
1707 (signal_command, until_command, advance_command, finish_command)
1708 (attach_command): Adjust and install a cleanup to free the
1709 stripped args.
1710
0ff33695
PA
17112014-10-17 Pedro Alves <palves@redhat.com>
1712
1713 PR gdb/17300
1714 * infcmd.c (continue_1): If continuing all threads in the
1715 foreground, make sure the inferior's terminal settings are put in
1716 effect.
1717
6fdebc3d
PA
17182014-10-17 Pedro Alves <palves@redhat.com>
1719
1720 PR gdb/17472
1721 * annotate.c (annotate_breakpoints_invalid): Use
1722 target_terminal_our_for_output instead of target_terminal_ours.
1723 Give back the terminal to the target.
1724 (annotate_frames_invalid): Likewise.
1725
5842f62a
PA
17262014-10-17 Pedro Alves <palves@redhat.com>
1727
1728 * target.c (enum terminal_state): New enum.
1729 (terminal_state): New global.
1730 (target_terminal_init): New function.
1731 (target_terminal_inferior): Skip if inferior already owns the
1732 terminal.
1733 (target_terminal_ours, target_terminal_ours_for_output): New
1734 functions.
1735 * target.h (target_terminal_init): Convert to function prototype.
1736 (target_terminal_ours_for_output): Convert to function prototype
1737 and tweak comment.
1738 (target_terminal_ours): Convert to function prototype and tweak
1739 comment.
1740 * windows-nat.c (do_initial_windows_stuff): Call
1741 target_terminal_init instead of child_terminal_init_with_pgrp.
1742
32a8097b
PA
17432014-10-17 Pedro Alves <palves@redhat.com>
1744
1745 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1746 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1747 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1748 solib-osf.c.
1749 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1750 * ada-lang.h [__alpha__ && __osf__]
1751 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1752 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1753 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1754 GDB_OSABI_OSF1.
1755 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1756 files.
1757 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1758 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1759 * configure: Regenerate.
1760 * configure.ac: Remove references to osf.
1761 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1762 section. Remove all other references to osf.
1763 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1764 Remove all other references to osf.
1765 * dec-thread.c: Delete file.
1766 * defs.h (GDB_OSABI_OSF1): Delete.
1767 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1768 defined.
1769 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1770 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1771 Delete code.
1772 (unconditionally_kill_inferior)
1773 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1774 * solib-osf.c: Delete file.
1775
80134cf5
PA
17762014-10-17 Pedro Alves <palves@redhat.com>
1777
1778 * remote.c (clear_threads_listing_context): Move higher up, out of
1779 the HAVE_LIBEXPAT guard.
1780
89c7137f
TG
17812014-10-16 Tristan Gingold <gingold@adacore.com>
1782
1783 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1784 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1785 on amd64.
1786
44ee4a52
PA
17872014-10-15 Pedro Alves <palves@redhat.com>
1788
1789 * dec-thread.c (dec_thread_count_gdb_threads)
1790 (dec_thread_add_gdb_thread): Delete.
1791 (dec_thread_update_thread_list): Delete.
1792 (dec_thread_find_new_threads): Rename to ...
1793 (dec_thread_update_thread_list): ... this. Delete GDB-size
1794 threads that are no longer found in dec_thread_list.
1795 (resync_thread_list): Delete.
1796 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1797 resync_thread_list.
1798
ab970af1
PA
17992014-10-15 Pedro Alves <palves@redhat.com>
1800
1801 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1802 * remote.c (remote_update_thread_list): Skip calling prune_threads
1803 if any thread listing method is supported, and instead walk over
1804 the set of remote threads listed, deleting those that are not
1805 found in GDB's thread list.
1806
e8032dde
PA
18072014-10-15 Pedro Alves <palves@redhat.com>
1808
1809 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1810 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1811 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1812 (bsd_uthread_target): Adjust.
1813 * corelow.c (core_open): Adjust.
1814 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1815 (dec_thread_update_thread_list): New function.
1816 (init_dec_thread_ops): Adjust.
1817 * gdbthread.h (prune_threads): New declaration.
1818 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1819 (thread_db_update_thread_list): ... this. Call prune_threads.
1820 (init_thread_db_ops): Adjust.
1821 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1822 (procfs_update_thread_list): ... this. Call prune_threads.
1823 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1824 Adjust.
1825 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1826 (obsd_update_thread_list): ... this. Call prune_threads.
1827 (obsd_add_target): Adjust.
1828 * procfs.c (procfs_target): Adjust.
1829 (procfs_notice_thread): Update comment.
1830 (procfs_find_new_threads): Rename to ...
1831 (procfs_update_thread_list): ... this. Call prune_threads.
1832 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1833 comment.
1834 (ravenscar_wait): Adjust.
1835 (ravenscar_find_new_threads): Rename to ...
1836 (ravenscar_update_thread_list): ... this. Call prune_threads.
1837 (init_ravenscar_thread_ops): Adjust.
1838 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1839 (record_btrace_update_thread_list): ... this. Adjust comment.
1840 (init_record_btrace_ops): Adjust.
1841 * remote.c (remote_threads_info): Rename to ...
1842 (remote_update_thread_list): ... this. Call prune_threads.
1843 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1844 Adjust.
1845 * sol-thread.c (check_for_thread_db): Adjust.
1846 (sol_find_new_threads_callback): Rename to ...
1847 (sol_update_thread_list_callback): ... this.
1848 (sol_find_new_threads): Rename to ...
1849 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1850 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1851 * target-delegates.c: Regenerate.
1852 * target.c (target_find_new_threads): Rename to ...
1853 (target_update_thread_list): ... this.
1854 * target.h (struct target_ops): Rename to_find_new_threads field
1855 to to_update_thread_list.
1856 (target_find_new_threads): Rename to ...
1857 (target_update_thread_list): ... this.
1858 * thread.c (prune_threads): Make extern.
1859 (update_thread_list): Adjust.
1860
6dc54d91
PA
18612014-10-15 Pedro Alves <palves@redhat.com>
1862
1863 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1864 Add describing comment. Return -1 if the qL packet is not
1865 supported.
1866 (struct thread_item, thread_item_t): Move higher up in
1867 the file. Add comments.
1868 (struct threads_parsing_context): Move higher up in
1869 the file, add comments, and remote to ...
1870 (struct threads_listing_context): ... this.
1871 (remote_newthread_step): Don't add the thread to GDB's thread
1872 database here. Instead push it to the thread_listing_context
1873 list.
1874 (remote_find_new_threads): Rename to ...
1875 (remote_get_threads_with_ql): ... this. Add target_ops and
1876 targets_listing_context parameters. Pass down context.
1877 (start_thread): Adjust.
1878 (clear_threads_parsing_context): Rename to ...
1879 (clear_threads_listing_context): ... this.
1880 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1881 remote_threads_info.
1882 (remote_get_threads_with_qthreadinfo): Ditto.
1883 (remote_threads_info): Reimplement.
1884
36728e82
PA
18852014-10-15 Pedro Alves <palves@redhat.com>
1886
1887 * infrun.c (resume): Don't force displaced-stepping for all
1888 single-steps on software single-stepping archs.
1889
34b7e8a6
PA
18902014-10-15 Pedro Alves <palves@redhat.com>
1891
1892 * breakpoint.c (single_step_breakpoints): Delete global.
1893 (insert_single_step_breakpoint): Adjust to store the breakpoint
1894 pointer in the current thread.
1895 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1896 (cancel_single_step_breakpoints): Delete functions.
1897 (breakpoint_has_location_inserted_here): Make extern.
1898 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1899 breakpoint list.
1900 * breakpoint.h (breakpoint_has_location_inserted_here): New
1901 declaration.
1902 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1903 (cancel_single_step_breakpoints): Remove declarations.
1904 * gdbthread.h (struct thread_control_state)
1905 <single_step_breakpoints>: New field.
1906 (delete_single_step_breakpoints)
1907 (thread_has_single_step_breakpoints_set)
1908 (thread_has_single_step_breakpoint_here): New declarations.
1909 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1910 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1911 (singlestep_pc): Delete globals.
1912 (infrun_thread_ptid_changed): Remove references to removed
1913 globals.
1914 (resume_cleanups): Delete the current thread's single-step
1915 breakpoints.
1916 (maybe_software_singlestep): Remove references to removed globals.
1917 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1918 delete_single_step_breakpoints.
1919 (init_wait_for_inferior): Remove references to removed globals.
1920 (delete_thread_infrun_breakpoints): Delete the thread's
1921 single-step breakpoints too.
1922 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1923 single-step breakpoints here.
1924 (delete_stopped_threads_single_step_breakpoints): New function.
1925 (adjust_pc_after_break): Adjust to use
1926 thread_has_single_step_breakpoints_set.
1927 (handle_inferior_event): Remove references to removed globals.
1928 Use delete_stopped_threads_single_step_breakpoints.
1929 (handle_signal_stop): Adjust to per-thread single-step
1930 breakpoints. Swap test order to do cheaper tests first.
1931 (switch_back_to_stepped_thread): Extend debug output. Remove
1932 references to removed globals.
1933 * record-full.c (record_full_wait_1): Adjust to per-thread
1934 single-step breakpoints.
1935 * thread.c (delete_single_step_breakpoints)
1936 (thread_has_single_step_breakpoints_set)
1937 (thread_has_single_step_breakpoint_here): New functions.
1938 (clear_thread_inferior_resources): Also delete the thread's
1939 single-step breakpoints.
1940
5b834a0a
PA
19412014-10-15 Pedro Alves <palves@redhat.com>
1942
1943 * thread.c (delete_thread_breakpoint): New function.
1944 (delete_step_resume_breakpoint)
1945 (delete_exception_resume_breakpoint): Use it.
1946 (delete_at_next_stop): New function.
1947 (clear_thread_inferior_resources): Use delete_at_next_stop.
1948
a1fd2fa5
PA
19492014-10-15 Pedro Alves <palves@redhat.com>
1950
1951 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1952 (breakpoint_inserted_here_p): ... here. Remove special case for
1953 software single-step breakpoints.
1954 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1955 (software_breakpoint_inserted_here_p): ... here. Remove special
1956 case for software single-step breakpoints.
1957 (bp_target_info_copy_insertion_state)
1958 (deprecated_insert_raw_breakpoint)
1959 (deprecated_remove_raw_breakpoint): Delete functions.
1960 * breakpoint.h (deprecated_insert_raw_breakpoint)
1961 (deprecated_remove_raw_breakpoint): Remove declarations.
1962
7c16b83e
PA
19632014-10-15 Pedro Alves <palves@redhat.com>
1964
1965 PR breakpoints/9649
1966 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1967 Delete array globals.
1968 (single_step_breakpoints): New global.
1969 (breakpoint_xfer_memory): Remove special handling for single-step
1970 breakpoints.
1971 (update_breakpoints_after_exec): Delete bp_single_step
1972 breakpoints.
1973 (detach_breakpoints): Remove special handling for single-step
1974 breakpoints.
1975 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1976 (bpstat_stop_status): Add comment.
1977 (bpstat_what, bptype_string, print_one_breakpoint_location)
1978 (adjust_breakpoint_address, init_bp_location): Handle
1979 bp_single_step.
1980 (new_single_step_breakpoint): New function.
1981 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1982 handling for single-step breakpoints.
1983 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1984 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1985 Rewrite.
1986 (detach_single_step_breakpoints, find_single_step_breakpoint):
1987 Delete functions.
1988 (breakpoint_has_location_inserted_here): New function.
1989 (single_step_breakpoint_inserted_here_p): Rewrite.
1990 * breakpoint.h: Remove FIXME.
1991 (enum bptype) <bp_single_step>: New enum value.
1992 (insert_single_step_breakpoint): Update comment.
1993 * infrun.c (resume_cleanups)
1994 (delete_step_thread_step_resume_breakpoint): Remove single-step
1995 breakpoints.
1996 (fetch_inferior_event): Install a cleanup that removes infrun
1997 breakpoints.
1998 (switch_back_to_stepped_thread) <expect thread advanced also>:
1999 Clear step-over info.
2000
0cbcdb96
PA
20012014-10-15 Pedro Alves <palves@redhat.com>
2002
2003 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
2004 (delete_thread_infrun_breakpoints): New function, with parts
2005 salvaged from delete_step_resume_breakpoint_callback.
2006 (delete_step_thread_step_resume_breakpoint): Delete.
2007 (for_each_just_stopped_thread_callback_func): New typedef.
2008 (for_each_just_stopped_thread): New function.
2009 (delete_just_stopped_threads_infrun_breakpoints): New function.
2010 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
2011 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
2012 ... this. Adjust.
2013 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
2014
963f9c80
PA
20152014-10-15 Pedro Alves <palves@redhat.com>
2016
2017 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2018 trying to step past a non-steppable watchpoint.
2019 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2020 field.
2021 * infrun.c (struct step_over_info): Add new field
2022 'nonsteppable_watchpoint_p' and adjust comments.
2023 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2024 Adjust.
2025 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2026 (stepping_past_nonsteppable_watchpoint): New function.
2027 (step_over_info_valid_p): Also return true if stepping past a
2028 nonsteppable watchpoint.
2029 (proceed): Adjust call to set_step_over_info. Remove reference to
2030 init_infwait_state.
2031 (init_wait_for_inferior): Remove reference to init_infwait_state.
2032 (waiton_ptid): Delete global.
2033 (struct execution_control_state)
2034 <stepped_after_stopped_by_watchpoint>: Delete field.
2035 (wait_for_inferior, fetch_inferior_event): Always pass
2036 minus_one_ptid to target_wait.
2037 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2038 field.
2039 (init_infwait_state): Delete function.
2040 (handle_inferior_event): Remove infwait_state handling.
2041 (handle_signal_stop) <watchpoints handling>: Adjust after
2042 stepped_after_stopped_by_watchpoint removal. Don't remove
2043 breakpoints here nor set infwait_state. Set the thread's
2044 stepping_over_watchpoint flag, and call keep_going instead.
2045 (keep_going): Handle stepping_over_watchpoint. Adjust
2046 set_step_over_info calls.
2047 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2048 function.
2049
6cc83d2a
PA
20502014-10-15 Pedro Alves <palves@redhat.com>
2051
2052 * infrun.c (step_over_info_valid_p): New function.
2053 (resume): Use step_over_info_valid_p instead of checking the
2054 threads's trap_expected flag.
2055
6979730b
DE
20562014-10-15 Doug Evans <dje@google.com>
2057 Walfred Tedeschi <walfred.tedeschi@intel.com>
2058
2059 PR python/17364
2060 * python/lib/gdb/__init__.py (packages): Add "printer".
2061 * python/lib/gdb/command/bound_registers.py: Moved to ...
2062 * python/lib/gdb/printer/bound_registers.py: ... here.
2063 Add printer to global set of builtin printers. Rename printer from
2064 "bound" to "mpx_bound128".
2065 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2066 registered as global "builtin" printer.
2067 (add_builtin_pretty_printer): New function.
2068 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2069 gdb/printer/__init__.py.
2070
35a49624
IB
20712014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2072
2073 * Makefile.in (SFILES): Remove d-support.c.
2074 (COMMON_OBS): Remove d-support.o.
2075 * d-lang.h (d_parse_symbol): Remove declaration.
2076 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2077 * d-support.c: Remove file.
2078
8fa0c4f8
AA
20792014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2080
2081 * gdb/infrun.c (process_event_stop_test): Apply
2082 gdbarch_addr_bits_remove to longjmp resume address.
2083
3666da81
PA
20842014-10-15 Pedro Alves <palves@redhat.com>
2085
2086 * regformats/microblaze.dat: Delete file.
2087
449aa9df
AKA
20882014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2089
2090 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2091 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2092
ebb8ece2
SC
20932014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2094
2095 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2096 as non-trivial.
2097
82c48ac7
SC
20982014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2099
2100 PR c++/13403
2101 PR c++/15154
2102 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2103 with qualified args.
2104
c40cc657
JB
21052014-10-14 Joel Brobecker <brobecker@adacore.com>
2106
2107 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2108 of the case where the second operand is a pointer.
2109 <BINOP_SUB>: Likewise.
2110
0ea5cda8
SDJ
21112014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2112
2113 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2114 only if it is not NULL.
2115 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2116 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2117 (struct probe_ops) <clear_semaphore>: Likewise.
2118 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2119 not NULL.
2120 (stop_tracing): Likewise, for clear_semaphore.
2121
f7088df3
SDJ
21222014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2123
2124 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2125 using language_c, instead of current_language.
2126
4e1bbde0
DE
21272014-10-13 Doug Evans <dje@google.com>
2128
6ff5a0f6 2129 * python/py-objfile.c (objfpy_initialize): New function.
4e1bbde0 2130 (objfpy_new, objfile_to_objfile_object): Call it.
6ff5a0f6 2131 * python/py-progspace.c (pspy_initialize): New function.
4e1bbde0
DE
2132 (pspy_new, pspace_to_pspace_object): Call it.
2133
c780cc2f
JK
21342014-10-13 Miroslav Franc <mfranc@redhat.com>
2135 Jan Kratochvil <jan.kratochvil@redhat.com>
2136
2137 Fix "save breakpoints" for "catch" command.
2138 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2139 newline.
2140
99894e11
JK
21412014-10-12 Miroslav Franc <mfranc@redhat.com>
2142
2143 Fix "save breakpoints" for "disable $bpnum" command.
2144 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2145
3831839c
PA
21462014-10-10 Pedro Alves <palves@redhat.com>
2147
2148 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2149 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2150 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2151 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2152 and been removed.
2153 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2154 * configure.ac: Remove references to IRIX.
2155 * configure.host: Add *-*-irix* to the obsolete hosts section.
2156 Remove all other references to irix.
2157 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2158 Delete files.
2159
cc3afae2
AKA
21602014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2161
2162 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2163 isn't valid, release the tdesc arch data and return NULL.
2164
cdfa0b0a
PA
21652014-10-10 Pedro Alves <palves@redhat.com>
2166
2167 * linux-tdep.c: Include observer.h.
2168 (linux_inferior_data): New global.
2169 (struct linux_info): New structure.
2170 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2171 (get_linux_inferior_data): New functions.
2172 (linux_vsyscall_range): Rename to ...
2173 (linux_vsyscall_range_raw): ... this.
2174 (linux_vsyscall_range): New function; handles caching.
2175 (_initialize_linux_tdep): Register linux_inferior_data. Install
2176 inferior_exit and inferior_appeared observers.
2177
8b9a549d
PA
21782014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2179 Pedro Alves <palves@redhat.com>
2180
2181 PR symtab/14466
2182 * solib-svr4.c (svr4_read_so_list): Rename to ...
2183 (svr4_current_sos_1): ... this and change the function comment.
2184 (svr4_current_sos): New function.
2185
3437254d
PA
21862014-10-10 Pedro Alves <palves@redhat.com>
2187
2188 * arch-utils.c (default_vsyscall_range): New function.
2189 * arch-utils.h (default_vsyscall_range): New declaration.
2190 * gdbarch.sh (vsyscall_range): New hook.
2191 * gdbarch.h, gdbarch.c: Regenerate.
2192 * linux-tdep.c (linux_vsyscall_range): New function.
2193 (linux_init_abi): Install linux_vsyscall_range as
2194 vsyscall_range gdbarch hook.
2195 * memrange.c (address_in_mem_range): New function.
2196 * memrange.h (address_in_mem_range): New declaration.
2197 * symfile-mem.c (find_vdso_size): Delete function.
2198 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2199
31cc0b80
PA
22002014-10-10 Pedro Alves <palves@redhat.com>
2201
2202 * infrun.c (normal_stop): Fix typo in comment.
2203
3e3286a2
SDJ
22042014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2205
2206 PR tdep/9390
2207 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2208 typo when using logical AND to determine instruction type.
2209
fcbdedf8
YQ
22102014-10-09 Yao Qi <yao@codesourcery.com>
2211
2212 * infrun.c (handle_signal_stop): Remove local variable
2213 'printed'.
2214
db984616
SS
22152014-10-08 Stan Shebs <stan@codesourcery.com>
2216
2217 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2218
3ba37e6c
GB
22192014-10-08 Gary Benson <gbenson@redhat.com>
2220
2221 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2222
a442d071
GB
22232014-10-08 Gary Benson <gbenson@redhat.com>
2224
2225 * common/common-defs.h: Include common-exceptions.h.
2226 * exceptions.h: Do not include common-exceptions.h.
2227
6f1947e8
GB
22282014-10-08 Gary Benson <gbenson@redhat.com>
2229
2230 * common/common-defs.h: Include cleanups.h.
2231 * common/common-exceptions.c: Do not include cleanups.h.
2232 * utils.h: Likewise.
2233
c765fdb9
GB
22342014-10-08 Gary Benson <gbenson@redhat.com>
2235
2236 * ada-lang.c: Do not include exceptions.h.
2237 * ada-valprint.c: Likewise.
2238 * amd64-tdep.c: Likewise.
2239 * auto-load.c: Likewise.
2240 * block.c: Likewise.
2241 * break-catch-throw.c: Likewise.
2242 * breakpoint.c: Likewise.
2243 * btrace.c: Likewise.
2244 * c-lang.c: Likewise.
2245 * cli/cli-cmds.c: Likewise.
2246 * cli/cli-interp.c: Likewise.
2247 * cli/cli-script.c: Likewise.
2248 * completer.c: Likewise.
2249 * corefile.c: Likewise.
2250 * corelow.c: Likewise.
2251 * cp-abi.c: Likewise.
2252 * cp-support.c: Likewise.
2253 * cp-valprint.c: Likewise.
2254 * darwin-nat.c: Likewise.
2255 * dwarf2-frame-tailcall.c: Likewise.
2256 * dwarf2-frame.c: Likewise.
2257 * dwarf2loc.c: Likewise.
2258 * dwarf2read.c: Likewise.
2259 * eval.c: Likewise.
2260 * event-loop.c: Likewise.
2261 * event-top.c: Likewise.
2262 * f-valprint.c: Likewise.
2263 * frame-unwind.c: Likewise.
2264 * frame.c: Likewise.
2265 * gdbtypes.c: Likewise.
2266 * gnu-v2-abi.c: Likewise.
2267 * gnu-v3-abi.c: Likewise.
2268 * guile/scm-auto-load.c: Likewise.
2269 * guile/scm-breakpoint.c: Likewise.
2270 * guile/scm-cmd.c: Likewise.
2271 * guile/scm-frame.c: Likewise.
2272 * guile/scm-lazy-string.c: Likewise.
2273 * guile/scm-param.c: Likewise.
2274 * guile/scm-symbol.c: Likewise.
2275 * guile/scm-type.c: Likewise.
2276 * hppa-hpux-tdep.c: Likewise.
2277 * i386-tdep.c: Likewise.
2278 * inf-loop.c: Likewise.
2279 * infcall.c: Likewise.
2280 * infcmd.c: Likewise.
2281 * infrun.c: Likewise.
2282 * interps.c: Likewise.
2283 * interps.h: Likewise.
2284 * jit.c: Likewise.
2285 * linespec.c: Likewise.
2286 * linux-nat.c: Likewise.
2287 * linux-thread-db.c: Likewise.
2288 * m32r-rom.c: Likewise.
2289 * main.c: Likewise.
2290 * memory-map.c: Likewise.
2291 * mi/mi-cmd-break.c: Likewise.
2292 * mi/mi-cmd-stack.c: Likewise.
2293 * mi/mi-interp.c: Likewise.
2294 * mi/mi-main.c: Likewise.
2295 * monitor.c: Likewise.
2296 * nto-procfs.c: Likewise.
2297 * objc-lang.c: Likewise.
2298 * p-valprint.c: Likewise.
2299 * parse.c: Likewise.
2300 * ppc-linux-tdep.c: Likewise.
2301 * printcmd.c: Likewise.
2302 * probe.c: Likewise.
2303 * python/py-auto-load.c: Likewise.
2304 * python/py-breakpoint.c: Likewise.
2305 * python/py-cmd.c: Likewise.
2306 * python/py-finishbreakpoint.c: Likewise.
2307 * python/py-frame.c: Likewise.
2308 * python/py-framefilter.c: Likewise.
2309 * python/py-function.c: Likewise.
2310 * python/py-gdb-readline.c: Likewise.
2311 * python/py-inferior.c: Likewise.
2312 * python/py-infthread.c: Likewise.
2313 * python/py-lazy-string.c: Likewise.
2314 * python/py-linetable.c: Likewise.
2315 * python/py-param.c: Likewise.
2316 * python/py-prettyprint.c: Likewise.
2317 * python/py-symbol.c: Likewise.
2318 * python/py-type.c: Likewise.
2319 * python/py-value.c: Likewise.
2320 * python/python-internal.h: Likewise.
2321 * python/python.c: Likewise.
2322 * record-btrace.c: Likewise.
2323 * record-full.c: Likewise.
2324 * regcache.c: Likewise.
2325 * remote-fileio.c: Likewise.
2326 * remote-mips.c: Likewise.
2327 * remote.c: Likewise.
2328 * rs6000-aix-tdep.c: Likewise.
2329 * rs6000-nat.c: Likewise.
2330 * skip.c: Likewise.
2331 * solib-darwin.c: Likewise.
2332 * solib-dsbt.c: Likewise.
2333 * solib-frv.c: Likewise.
2334 * solib-ia64-hpux.c: Likewise.
2335 * solib-spu.c: Likewise.
2336 * solib-svr4.c: Likewise.
2337 * solib.c: Likewise.
2338 * spu-tdep.c: Likewise.
2339 * stack.c: Likewise.
2340 * stap-probe.c: Likewise.
2341 * symfile-mem.c: Likewise.
2342 * symmisc.c: Likewise.
2343 * target.c: Likewise.
2344 * thread.c: Likewise.
2345 * top.c: Likewise.
2346 * tracepoint.c: Likewise.
2347 * tui/tui-interp.c: Likewise.
2348 * typeprint.c: Likewise.
2349 * utils.c: Likewise.
2350 * valarith.c: Likewise.
2351 * valops.c: Likewise.
2352 * valprint.c: Likewise.
2353 * value.c: Likewise.
2354 * varobj.c: Likewise.
2355 * windows-nat.c: Likewise.
2356 * xml-support.c: Likewise.
2357
484933d1
MR
23582014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2359
2360 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2361 name implies.
2362 (extended_mips16_next_pc): Update accordingly.
2363
ab50adb6
MR
23642014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2365
2366 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2367 function.
2368 (micromips_instruction_is_compact_branch): Likewise.
2369 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2370 or a compact jump, reaching a jump delay slot, or seeing a
2371 second non-prologue instruction.
2372 (micromips_scan_prologue): Also terminate scanning upon seeing a
2373 compact branch or jump, or reaching a branch or jump delay slot.
2374 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2375 or jump delay slot, or seeing a second non-prologue instruction.
2376 (mips32_instruction_has_delay_slot): Retain instruction
2377 examination code only, update arguments accordingly and move
2378 instruction fetch pieces to...
2379 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2380 (micromips_instruction_has_delay_slot): Likewise and to...
2381 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2382 (mips16_instruction_has_delay_slot): Likewise and to...
2383 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2384 (mips_single_step_through_delay): Update accordingly.
2385 (mips_adjust_breakpoint_address): Likewise.
2386
ae790652
MR
23872014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2388
2389 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2390 !mustbe32 also return 1 for 32-bit instructions.
2391 (mips16_instruction_has_delay_slot): Likewise. Add an
2392 explanatory comment.
2393
9b807e7b
MR
23942014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2395
2396 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2397 symbols special.
2398
0d5ed153
MR
23992014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2400
2401 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2402 update comments.
2403 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2404 for the breakpoint's address. Don't preinitialize `placed_size'.
2405 (insert_bp_location): Set `reqstd_address' rather than
2406 `placed_address'.
2407 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2408 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2409 address.
2410 (bkpt_remove_location): Likewise.
2411 (deprecated_insert_raw_breakpoint): Likewise.
2412 (deprecated_remove_raw_breakpoint): Likewise.
2413 (find_single_step_breakpoint): Likewise.
2414 * mem-break.c (default_memory_insert_breakpoint): Use
2415 `reqstd_address' for the breakpoint's address. Don't set
2416 `placed_address' or `placed_size' if breakpoint contents couldn't
2417 have been determined.
2418 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2419 the breakpoint's address.
2420 (remote_insert_hw_breakpoint): Likewise. Don't set
2421 `placed_address' or `placed_size' if breakpoint couldn't have been
2422 set.
2423 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2424 `reqstd_address' for the breakpoint's address.
2425 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2426 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2427 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2428 * microblaze-linux-tdep.c
2429 (microblaze_linux_memory_remove_breakpoint): Likewise.
2430 * monitor.c (monitor_insert_breakpoint): Likewise.
2431 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2432 (procfs_insert_hw_breakpoint): Likewise.
2433 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2434 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2435 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2436 * remote-mips.c (mips_insert_breakpoint): Likewise.
2437 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2438
3e871532
LM
24392014-10-03 Luis Machado <lgustavo@codesourcery.com>
2440
2441 * valops.c (value_assign): Check for bit field assignments
2442 before calling architecture-specific register value
2443 conversion functions.
2444
ec48dc8b
PM
24452014-10-03 Pierre Muller <muller@sourceware.org>
2446
2447 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2448
b57bacec
PA
24492014-10-02 Pedro Alves <palves@redhat.com>
2450
2451 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2452 threads_are_executing.
2453 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2454 describing comment.
2455 * gdbthread.h (threads_are_executing): Declare.
2456 (handle_signal_stop) <random signals>: Don't print about the
2457 signal here if stopping.
2458 (end_stepping_range): Don't notify observers here.
2459 (normal_stop): Update the thread list. If stopped by a random
2460 signal or a stepping range ended, notify observers.
2461 * thread.c (threads_executing): New global.
2462 (init_thread_list): Clear 'threads_executing'.
2463 (set_executing): Set or clear 'threads_executing'.
2464 (threads_are_executing): New function.
2465 (update_threads_executing): New function.
2466 (update_thread_list): Use it.
2467
13fd3ff3
PA
24682014-10-02 Pedro Alves <palves@redhat.com>
2469
2470 PR breakpoints/17431
2471 * breakpoint.c (update_breakpoints_after_exec): Don't create
2472 overlay, longjmp, std terminate nor exception breakpoints here.
2473
32990ada
PA
24742014-10-02 Pedro Alves <palves@redhat.com>
2475
2476 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2477 Adjust comments.
2478 * inferior.c (find_inferior_for_program_space): Give preference to
2479 the current inferior.
2480 * inferior.h (find_inferior_for_program_space): Update comment.
2481 * progspace.c (switch_to_program_space_and_thread): Prefer the
2482 current inferior if it's bound to the program space requested. If
2483 the inferior found doesn't have a PID yet, don't bother looking up
2484 a thread.
2485 * progspace.h (switch_to_program_space_and_thread): Adjust
2486 comment.
2487 * thread.c (any_thread_of_process, any_live_thread_of_process):
2488 Give preference to the current thread.
2489
0fec99e8
PA
24902014-10-01 Pedro Alves <palves@redhat.com>
2491
2492 * breakpoint.c (insert_bp_location): Error out if inserting a
2493 software breakpoint at a read-only address.
2494 * target.c (memory_xfer_check_region): New function, factored out
2495 from ...
2496 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2497 ULONGEST.
2498 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2499 against the memory region attributes.
2500
2ddf4301
SM
25012014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2502
2503 * NEWS: Announce new exit-code field in -list-thread-groups
2504 output.
2505 * inferior.c (exit_inferior_1): Don't clear exit code.
2506 (inferior_appeared): Clear exit code.
2507 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2508 code.
2509
5fdeec1d
PA
25102014-10-01 Pedro Alves <palves@redhat.com>
2511
2512 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2513 GENERATED" along with emacs/vi read-only markers.
2514 * regformats/aarch64.dat: Regenerate.
2515 * regformats/arm-with-iwmmxt.dat: Regenerate.
2516 * regformats/arm-with-neon.dat: Regenerate.
2517 * regformats/arm-with-vfpv2.dat: Regenerate.
2518 * regformats/arm-with-vfpv3.dat: Regenerate.
2519 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2520 * regformats/i386/amd64-avx.dat: Regenerate.
2521 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2522 * regformats/i386/amd64-avx512.dat: Regenerate.
2523 * regformats/i386/amd64-linux.dat: Regenerate.
2524 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2525 * regformats/i386/amd64-mpx.dat: Regenerate.
2526 * regformats/i386/amd64.dat: Regenerate.
2527 * regformats/i386/i386-avx-linux.dat: Regenerate.
2528 * regformats/i386/i386-avx.dat: Regenerate.
2529 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2530 * regformats/i386/i386-avx512.dat: Regenerate.
2531 * regformats/i386/i386-linux.dat: Regenerate.
2532 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2533 * regformats/i386/i386-mmx.dat: Regenerate.
2534 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2535 * regformats/i386/i386-mpx.dat: Regenerate.
2536 * regformats/i386/i386.dat: Regenerate.
2537 * regformats/i386/x32-avx-linux.dat: Regenerate.
2538 * regformats/i386/x32-avx.dat: Regenerate.
2539 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2540 * regformats/i386/x32-avx512.dat: Regenerate.
2541 * regformats/i386/x32-linux.dat: Regenerate.
2542 * regformats/i386/x32.dat: Regenerate.
2543 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2544 * regformats/mips-dsp-linux.dat: Regenerate.
2545 * regformats/mips-linux.dat: Regenerate.
2546 * regformats/mips64-dsp-linux.dat: Regenerate.
2547 * regformats/mips64-linux.dat: Regenerate.
2548 * regformats/nios2-linux.dat: Regenerate.
2549 * regformats/rs6000/powerpc-32.dat: Regenerate.
2550 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2551 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2552 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2553 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2554 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2555 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2556 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2557 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2558 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2559 * regformats/s390-linux32.dat: Regenerate.
2560 * regformats/s390-linux32v1.dat: Regenerate.
2561 * regformats/s390-linux32v2.dat: Regenerate.
2562 * regformats/s390-linux64.dat: Regenerate.
2563 * regformats/s390-linux64v1.dat: Regenerate.
2564 * regformats/s390-linux64v2.dat: Regenerate.
2565 * regformats/s390-te-linux64.dat: Regenerate.
2566 * regformats/s390x-linux64.dat: Regenerate.
2567 * regformats/s390x-linux64v1.dat: Regenerate.
2568 * regformats/s390x-linux64v2.dat: Regenerate.
2569 * regformats/s390x-te-linux64.dat: Regenerate.
2570 * regformats/tic6x-c62x-linux.dat: Regenerate.
2571 * regformats/tic6x-c62x.dat: Regenerate.
2572 * regformats/tic6x-c64x-linux.dat: Regenerate.
2573 * regformats/tic6x-c64x.dat: Regenerate.
2574 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2575 * regformats/tic6x-c64xp.dat: Regenerate.
2576
db74e4ba
PA
25772014-10-01 Pedro Alves <palves@redhat.com>
2578
2579 * features/Makefile: Update comments.
2580 (XMLTOC): List all xml files we build C files from.
2581 (clean-cfiles): New rule.
2582
d63f2f84
PA
25832014-10-01 Pedro Alves <palves@redhat.com>
2584
2585 * features/i386/amd64-avx512-linux.c: Regenerate.
2586 * features/i386/amd64-avx512.c: Regenerate.
2587 * features/i386/x32-avx512-linux.c: Regenerate.
2588 * features/i386/x32-avx512.c: Regenerate.
2589
20ad026d
PA
25902014-10-01 Pedro Alves <palves@redhat.com>
2591
2592 * features/Makefile (WHICH): Remove arm-with-m,
2593 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2594
acc9fe45
PA
25952014-10-01 Pedro Alves <palves@redhat.com>
2596
2597 * features/Makefile (clean): New rule.
2598
e001e535
PA
25992014-10-01 Pedro Alves <palves@redhat.com>
2600
2601 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2602 (zmm14h): Add missing end quotes.
2603
bdc14417
PA
26042014-10-01 Pedro Alves <palves@redhat.com>
2605
2606 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2607 * features/aarch64.c: Regenerate.
2608
d83ad864
DB
26092014-09-30 Don Breazeal <donb@codesourcery.com>
2610
2611 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2612 code so as to work with follow_fork_inferior.
2613 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2614 (inf_ttrace_create_inferior): Remove reference to
2615 inf_ttrace_vfork_ppid.
2616 (inf_ttrace_attach): Ditto.
2617 (inf_ttrace_detach): Ditto.
2618 (inf_ttrace_kill): Use current_inferior instead of
2619 inf_ttrace_vfork_ppid.
2620 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2621 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2622 inferior away from the parent.
2623 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2624 target_follow_fork.
2625 (follow_fork_inferior): New function.
2626 (follow_inferior_reset_breakpoints): Make function static.
2627 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2628 * linux-nat.c (linux_child_follow_fork): Move target-independent
2629 code to infrun.c:follow_fork_inferior.
2630
29082443
AA
26312014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2632
2633 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2634 * gdbarch.c: Regenerate.
2635 * gdbarch.h: Likewise.
2636 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2637 gdbarch method 'regset_from_core_section'.
2638 (get_core_register_section): Remove handling for the case that
2639 regset == NULL and regset_from_core_section is defined.
2640 (get_core_registers): Drop check for deleted method.
2641 * procfs.c (procfs_do_thread_registers): Adjust comment.
2642
f968fe80
AA
26432014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2644
2645 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2646 (linux_nat_make_corefile_notes): Remove.
2647 (linux_target_install_ops): Do not set target method
2648 'make_corefile_notes'.
2649 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2650 Remove field.
2651 (linux_corefile_thread_callback): Instead of args->collect, call
2652 linux_collect_thread_registers.
2653 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2654 NULL unless there is a regset iterator.
2655 (linux_make_corefile_notes_1): Remove.
2656 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2657 by linux_make_corefile_notes.
2658 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2659
174ad59a
AA
26602014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2661
2662 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2663 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2664 Remove.
2665 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2666
97094034
AA
26672014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2668
2669 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2670 (xtensa_iterate_over_regset_sections): New.
2671 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2672
f73d3ce7
AA
26732014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2674
2675 * vax-tdep.c (vax_regset_from_core_section): Remove.
2676 (vax_iterate_over_regset_sections): New.
2677 (vax_gdbarch_init): Adjust gdbarch initialization.
2678
cb24567a
AA
26792014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2680
2681 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2682 (tilegx_regset_from_core_section): Remove.
2683 (tilegx_iterate_over_regset_sections): New.
2684 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2685
e5139de8
AA
26862014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2687
2688 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2689 (sparc_iterate_over_regset_sections): New.
2690 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2691 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2692 targets.
2693 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2694 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2695 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2696 target method 'make_corefile_notes'.
2697
c6d41a6f
AA
26982014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2699
2700 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2701 'sizeof_gregset' and 'sizeof_fpregset'.
2702 * sh-tdep.c (sh_regset_from_core_section): Remove.
2703 (sh_iterate_over_regset_sections): New.
2704 (sh_gdbarch_init): Adjust gdbarch initialization.
2705 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2706 sizeof_fpregset.
2707 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2708 'sizeof_gregset'.
2709
9845a0b5
AA
27102014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2711
2712 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2713 (score7_linux_iterate_over_regset_sections): New.
2714 (score_gdbarch_init): Adjust gdbarch initialization.
2715
23ea9aeb
AA
27162014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2717
2718 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2719 FreeBSD targets.
2720 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2721 method 'make_corefile_notes'.
2722 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2723 (ppcfbsd_regset_from_core_section): Remove.
2724 (ppcfbsd_iterate_over_regset_sections): New.
2725 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2726 initialization.
2727 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2728 (ppcnbsd_iterate_over_regset_sections): New.
2729 (ppcnbsd_init_abi): Adjust.
2730 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2731 (ppcobsd_iterate_over_regset_sections): New.
2732 (ppcobsd_init_abi): Adjust.
2733 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2734 (rs6000_aix_iterate_over_regset_sections): New.
2735 (rs6000_aix_init_osabi): Adjust.
2736
c5b8d704
AA
27372014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2738
2739 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2740 (nios2_regset_from_core_section): Remove.
2741 (nios2_iterate_over_regset_sections): New.
2742 (nios2_linux_init_abi): Adjust gdbarch initialization.
2743
3636e608
AA
27442014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2745
2746 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2747 (am33_iterate_over_regset_sections): New.
2748 (am33_linux_init_osabi): Adjust gdbarch initialization.
2749
d4036235
AA
27502014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2751
2752 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2753 (mips_linux_iterate_over_regset_sections): New.
2754 (mips_linux_init_abi): Adjust gdbarch initialization.
2755 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2756 (mips64obsd_iterate_over_regset_sections): New.
2757 (mips64obsd_init_abi): Adjust.
2758 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2759 (mipsnbsd_iterate_over_regset_sections): New.
2760 (mipsnbsd_init_abi): Adjust.
2761
b61ddd6e
AA
27622014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2763
2764 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2765 (m88k_iterate_over_regset_sections): New.
2766 (m88k_gdbarch_init): Adjust gdbarch initialization.
2767
55a2906a
AA
27682014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2769
2770 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2771 (ia64_linux_iterate_over_regset_sections): New.
2772 (ia64_linux_init_abi): Adjust gdbarch initialization.
2773
022c98ab
AA
27742014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2775
2776 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2777 (m68kbsd_iterate_over_regset_sections): New.
2778 (m68kbsd_init_abi): Adjust gdbarch initialization.
2779 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2780 (m68k_linux_iterate_over_regset_sections): New.
2781 (m68k_linux_init_abi): Adjust gdbarch initialization.
2782
5fac247f
AA
27832014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2784
2785 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2786 (m32r_linux_regset_from_core_section): Remove.
2787 (m32r_linux_iterate_over_regset_sections): New.
2788 (m32r_linux_init_abi): Adjust gdbarch initialization.
2789
490496c3
AA
27902014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2791
2792 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2793 (amd64obsd_iterate_over_regset_sections): New.
2794 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2795 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2796 Remove.
2797 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2798 regset_from_core_section initialization.
2799 * i386-tdep.c (i386_regset_from_core_section): Remove.
2800 (i386_iterate_over_regset_sections): New.
2801 (i386_gdbarch_init): Adjust gdbarch initialization.
2802 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2803 (i386_iterate_over_regset_sections): New prototype.
2804 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2805 Remove.
2806 (i386obsd_aout_iterate_over_regset_sections): New.
2807 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2808 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2809 targets.
2810 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2811 (amd64fbsd_init_abi): Call fbsd_init_abi.
2812 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2813 (i386fbsd4_init_abi): Call fbsd_init_abi.
2814 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2815 target method 'make_corefile_notes'.
2816 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2817
50c5eb53
AA
28182014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2819
2820 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2821 (hppa_hpux_iterate_over_regset_sections): New.
2822 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2823 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2824 (hppa_linux_iterate_over_regset_sections): New.
2825 (hppa_linux_init_abi): Adjust.
2826 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2827 (hppanbsd_iterate_over_regset_sections): New.
2828 (hppanbsd_init_abi): Adjust.
2829 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2830 (hppaobsd_iterate_over_regset_sections): New.
2831 (hppaobsd_init_abi): Adjust.
2832
66afae4f
AA
28332014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2834
2835 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2836 (frv_linux_iterate_over_regset_sections): New.
2837 (frv_linux_init_abi): Adjust gdbarch initialization.
2838
ed09174e
AA
28392014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2840
2841 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2842 (armbsd_iterate_over_regset_sections): New prototype.
2843 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2844 (armbsd_iterate_over_regset_sections): New.
2845 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2846 initialization.
2847
dff2166e
AA
28482014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2849
2850 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2851 (alpha_linux_iterate_over_regset_sections): New.
2852 (alpha_linux_init_abi): Adjust gdbarch initialization.
2853 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2854 prototype.
2855 (alphanbsd_iterate_over_regset_sections): New prototype.
2856
4108500a
AA
28572014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2858
2859 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2860 Remove.
2861 (aarch64_linux_iterate_over_regset_sections): New.
2862 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2863
a904c024
AA
28642014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2865
2866 * fbsd-tdep.c: New file.
2867 * fbsd-tdep.h: New file.
2868 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2869 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2870 (ALLDEPFILES): Add fbsd-tdep.c.
2871
8f0435f7
AA
28722014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2873
2874 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2875 parameter.
2876 * gdbarch.h: Regenerate.
2877 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2878 iterator.
2879 (get_core_register_section): Add parameter 'regset' and use it, if
2880 set. Add parameter 'min_size' and verify the bfd section size
2881 against it.
2882 (get_core_registers_cb): Add parameter 'regset' and pass it to
2883 get_core_register section. For the "standard" register sections
2884 ".reg" and ".reg2", set an appropriate default for human_name.
2885 (get_core_registers): Don't abort when the gdbarch has an iterator
2886 but no regset_from_core_section. Add NULL/0 for parameters
2887 'regset'/'min_size' in calls to get_core_register_section.
2888 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2889 'regset' and use it instead of calling the
2890 regset_from_core_section gdbarch method.
2891 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2892 * i386-tdep.c (i386_supply_xstateregset)
2893 (i386_collect_xstateregset, i386_xstateregset): Moved to
2894 i386-linux-tdep.c.
2895 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2896 .reg-xstate.
2897 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2898 core file support only if the regset iterator hasn't been set.
2899 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2900 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2901 Moved from i386-tdep.c and renamed to *_linux*.
2902 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2903 each callback invocation. Allow any .reg-xstate size when reading
2904 from a core file.
2905 * amd64-tdep.c (amd64_supply_xstateregset)
2906 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2907 amd64-linux-tdep.c.
2908 (amd64_regset_from_core_section): Remove.
2909 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2910 install an amd64-specific regset_from_core_section gdbarch method.
2911 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2912 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2913 Moved from amd64-tdep.c and renamed to *_linux*.
2914 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2915 to each callback invocation. Allow any .reg-xstate size when
2916 reading from a core file.
2917 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2918 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2919 each callback invocation.
2920 (arm_linux_init_abi): No longer set the regset_from_core_section
2921 gdbarch method.
2922 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2923 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2924 each callback invocation.
2925 (ppc_linux_init_abi): No longer set the regset_from_core_section
2926 gdbarch method.
2927 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2928 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2929 (s390_regset_from_core_section): Remove.
2930 (s390_iterate_over_regset_sections): Add regset parameter to each
2931 callback invocation.
2932 (s390_gdbarch_init): No longer set the regset_from_core_section
2933 gdbarch method. Drop initialization of deleted tdep fields.
2934
5aa82d05
AA
29352014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2936
2937 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2938 (amd64_linux_iterate_over_regset_sections): New.
2939 (amd64_linux_init_abi_common): Don't install the regset section
2940 list, but the new iterator in gdbarch.
2941 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2942 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2943 (arm_linux_iterate_over_regset_sections): ...here. New function.
2944 (arm_linux_init_abi): Set iterator instead of section list.
2945 * corelow.c (get_core_registers_cb): New function, logic moved
2946 from...
2947 (get_core_registers): ...loop body here. Use new iterator method
2948 instead of walking through the regset section list.
2949 * gdbarch.sh: Remove 'core_regset_sections'. New method
2950 'iterate_over_regset_sections'. New typedef
2951 'iterate_over_regset_sections_cb'.
2952 * gdbarch.c: Regenerate.
2953 * gdbarch.h: Likewise.
2954 * i386-linux-tdep.c (i386_linux_regset_sections)
2955 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2956 Remove.
2957 (i386_linux_iterate_over_regset_sections): New.
2958 (i386_linux_init_abi): Don't choose a regset section list, but
2959 install new iterator in gdbarch.
2960 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2961 (linux_collect_regset_section_cb): New function, logic moved
2962 from...
2963 (linux_collect_thread_registers): ...loop body here. Use iterator
2964 method instead of walking through list.
2965 (linux_make_corefile_notes_1): Check for presence of iterator
2966 method instead of regset section list.
2967 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2968 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2969 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2970 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2971 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2972 (ppc_linux_init_abi): Don't choose from above regset section
2973 lists, but install new iterator in gdbarch.
2974 * regset.h (struct core_regset_section): Remove.
2975 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2976 have_linux_v1, have_linux_v2, and have_tdb.
2977 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2978 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2979 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2980 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2981 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2982 (s390_iterate_over_regset_sections): ...here. New function. Use
2983 new tdep fields.
2984 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2985 regset section lists, but install new iterator.
2986
2eca4a8d
JK
29872014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2988
2989 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2990
a73c2b56
SM
29912014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2992
2993 * progspace.c (print_program_space): Don't prune program spaces
2994 before printing them.
2995
03d46957
PA
29962014-09-25 Pedro Alves <palves@redhat.com>
2997
2998 * infrun.c (user_visible_resume_ptid): Don't check
2999 singlestep_breakpoints_inserted_p.
3000
e558d7c1
PA
30012014-09-25 Pedro Alves <palves@redhat.com>
3002
3003 * breakpoint.c (should_be_inserted): Add debug output.
3004
7f89fd65
PA
30052014-09-25 Pedro Alves <palves@redhat.com>
3006
3007 * infrun.c (stepping_past_instruction_at)
3008 (clear_exit_convenience_vars): Point at infrun.h instead of
3009 inferior.h.
3010 (handle_signal_stop): Fix typo.
3011
b7576e5c
YQ
30122014-09-24 Yao Qi <yao@codesourcery.com>
3013
3014 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
3015 bitmask.
3016
9a6cf368
GB
30172014-09-22 Gary Benson <gbenson@redhat.com>
3018
3019 * target.c (target_stop): Updated comment.
3020
03f4463b
GB
30212014-09-22 Gary Benson <gbenson@redhat.com>
3022
3023 * target/target.h (target_stop_ptid): Renamed as...
3024 (target_stop_and_wait): New function. Updated comment.
3025 All uses updated.
3026 (target_continue_ptid): Renamed as...
3027 (target_continue_no_signal): New function. Updated comment.
3028 All uses updated.
3029
a25a5a45
PA
30302014-09-22 Pedro Alves <palves@redhat.com>
3031
3032 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3033 and "auto" merged.
3034 * breakpoint.c (enum ugll_insert_mode): New enum.
3035 (always_inserted_mode): Now a plain boolean.
3036 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3037 (breakpoints_always_inserted_mode): Delete.
3038 (breakpoints_should_be_inserted_now): New function.
3039 (insert_breakpoints): Pass UGLL_INSERT to
3040 update_global_location_list instead of calling
3041 insert_breakpoint_locations manually.
3042 (create_solib_event_breakpoint_1): New, factored out from ...
3043 (create_solib_event_breakpoint): ... this.
3044 (create_and_insert_solib_event_breakpoint): Use
3045 create_solib_event_breakpoint_1 instead of calling
3046 insert_breakpoint_locations manually.
3047 (update_global_location_list): Change parameter type from boolean
3048 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3049 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3050 (update_global_location_list_nothrow): Change parameter type from
3051 boolean to enum ugll_insert_mode.
3052 (_initialize_breakpoint): "breakpoint always-inserted" option is
3053 now a boolean command. Update help text.
3054 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3055 (breakpoints_should_be_inserted_now): New declaration.
3056 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3057 Remove breakpoints_always_inserted_mode check.
3058 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3059 * remote.c (remote_start_remote): Likewise.
3060
04086b45
PA
30612014-09-22 Pedro Alves <palves@redhat.com>
3062
3063 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3064 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3065 Instead, pass UGLL_INSERT to update_global_location_list.
3066 (update_global_location_list): Change parameter type from boolean
3067 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3068 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3069 (create_solib_event_breakpoint_1): New, factored out from ...
3070 (create_solib_event_breakpoint): ... this.
3071 (create_and_insert_solib_event_breakpoint): Use
3072 create_solib_event_breakpoint_1 instead of calling
3073 insert_breakpoint_locations manually.
3074 (update_global_location_list): Handle UGLL_INSERT.
3075
44702360
PA
30762014-09-22 Pedro Alves <palves@redhat.com>
3077
3078 * breakpoint.c (enum ugll_insert_mode): New enum.
3079 (update_global_location_list)
3080 (update_global_location_list_nothrow): Change parameter type from
3081 boolean to enum ugll_insert_mode. All callers adjusted.
3082
93c6145a
JB
30832014-09-19 Joel Brobecker <brobecker@adacore.com>
3084
3085 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3086 SystemTap support in GDB.
3087
89a5711c
DB
30882014-09-19 Don Breazeal <donb@codesourcery.com>
3089
3090 * linux-nat.c (linux_handle_extended_wait): Call
3091 linux_ptrace_get_extended_event.
3092 (wait_lwp): Call linux_is_extended_waitstatus.
3093 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3094 and linux_is_extended_waitstatus.
3095 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3096 linux_ptrace_get_extended_event.
3097 (linux_ptrace_get_extended_event): New function.
3098 (linux_is_extended_waitstatus): New function.
3099 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3100 (linux_is_extended_waitstatus): New declarations.
3101
c3b7b696
YQ
31022014-09-19 Yao Qi <yao@codesourcery.com>
3103
3104 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3105 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3106 comments. Callers update.
3107 (dwarf_decode_lines): Likewise.
3108 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3109 comments. Skip the line table if 'lowpc' is greater than
3110 'address'. Don't check
3111 dwarf2_per_objfile->has_section_at_zero.
3112
2b4fd423
DE
31132014-09-18 Doug Evans <dje@google.com>
3114
3115 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3116 * python/py-symtab.c (stpy_get_producer): New function.
3117 (symtab_object_getset): Add "producer" attribute.
3118
5e43d467
UW
31192014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
3120
3121 PR gdb/17384
3122 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3123 (do_captured_read_memory_integer): Remove.
3124 (safe_read_memory_integer): Use target_read_memory directly instead
3125 of catching errors in do_captured_read_memory_integer.
3126
04e79979
MR
31272014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3128
3129 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3130 not gdb/doc.
3131
76aeec5b
SDJ
31322014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3133
3134 * objc-lang.c (find_implementation_from_class): Remove dead code.
3135
2f693f9d
SDJ
31362014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3137
3138 PR cli/7233
3139 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3140 "fprintf_unfiltered (gdb_stdlog...)".
3141
bb9d5f81
PP
31422014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3143
3144 PR breakpoints/12526
3145 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3146 val_bitsize.
3147 * breakpoint.c (watch_command_1): Use these fields to retain
3148 bitfield information.
3149 (extract_bitfield_from_watchpoint_value): New function.
3150 (watchpoint_check): Use it.
3151 (update_watchpoint): Use it. Optimize the address and length of a
3152 HW watchpoint pointing to a bitfield.
3153 * value.h (unpack_value_bitfield): New prototype.
3154 * value.c (unpack_value_bitfield): Make extern.
3155
05db5edd
ST
31562014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3157
3158 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3159 x86-dregs.o.
3160 * gnu-nat.c (inf_threads): New function.
3161 * gnu-nat.h (inf_threads_ftype): New typedef.
3162 (inf_threads): New declaration.
3163 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3164 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3165 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3166 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3167 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3168 (i386_gnu_dr_get_control): New functions.
3169 (reg_addr): New structure.
3170 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3171 i386 debugging register hooks.
3172 * NEWS: Mention this.
3173
5a578da5
OJ
31742014-08-13 Omair Javaid <omair.javaid@linaro.org>
3175
3176 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3177 vector data transfer instructions.
3178 (arm_record_coproc_data_proc): Updated.
3179
f20f80dd
OJ
31802014-08-13 Omair Javaid <omair.javaid@linaro.org>
3181
3182 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3183 arm_record_exreg_ld_st_insn.
3184 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3185 load/store insns.
3186
851f26ae
OJ
31872014-08-13 Omair Javaid <omair.javaid@linaro.org>
3188
3189 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3190 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3191 processing instructions.
3192
1e1b6563
OJ
31932014-08-13 Omair Javaid <omair.javaid@linaro.org>
3194
3195 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3196 for advance SIMD struct ld/st insn.
3197 (thumb2_record_decode_insn_handler): Replace stub handler with
3198 thumb2_record_asimd_struct_ld_st.
3199
60cc5e93
OJ
32002014-08-13 Omair Javaid <omair.javaid@linaro.org>
3201
3202 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3203 for asimd, vfp and coprocessor insns.
3204 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3205 and coprocessor insns.
3206 (thumb2_record_coproc_insn): New function.
3207 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3208 handlers.
3209 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3210 opcode 110 insns.
3211
81219e53
DE
32122014-09-13 Doug Evans <xdje42@gmail.com>
3213
3214 * NEWS: Mention new "queue-signal" command.
3215 * infcmd.c (queue_signal_command): New function.
3216 (_initialize_infcmd): Add new queue-signal command.
3217
d36bf488
DE
32182014-09-13 Doug Evans <xdje42@gmail.com>
3219
3220 * linux-nat.c (wait_lwp): Add debugging printf.
3221 (linux_nat_wait_1): Ditto.
3222
f37f681c
PA
32232014-09-12 Pedro Alves <palves@redhat.com>
3224
3225 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3226 (create_and_insert_solib_event_breakpoint): New functions.
3227 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3228 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3229 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3230 (remove_dbx_link_breakpoint): Delete function.
3231 (insert_dbx_link_bpt_in_file): Use
3232 create_and_insert_solib_event_breakpoint instead of
3233 deprecated_insert_raw_breakpoint.
3234 (procfs_wait): Don't check whether we hit __dbx_link here.
3235 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3236 here.
3237 * solib-irix.c (base_breakpoint): Delete global.
3238 (disable_break): Delete function.
3239 (enable_break): Use create_solib_event_breakpoint
3240 instead of deprecated_insert_raw_breakpoint.
3241 (irix_solib_handle_event): New function.
3242 (irix_solib_create_inferior_hook): Don't run the target or disable
3243 the mapping-complete breakpoint here.
3244 (_initialize_irix_solib): Install irix_solib_handle_event as
3245 so_ops->handle_event hook.
3246
9d9bf2df
EBM
32472014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3248 Ulrich Weigand  <uweigand@de.ibm.com>
3249
3250 PR tdep/17379
3251 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3252 instead of read_memory_unsigned_integer.
3253
b006a80e
GB
32542014-09-12 Gary Benson <gbenson@redhat.com>
3255
3256 * nat/linux-waitpid.c: Include common-defs.h.
3257 [GDBSERVER]: Add FIXME comment.
3258 [!GDBSERVER]: Don't include defs.h or signal.h.
3259 (linux_debug) [!GDBSERVER]: Remove empty block.
3260
296b1496
GB
32612014-09-12 Gary Benson <gbenson@redhat.com>
3262
3263 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3264 Don't include defs.h or server.h.
3265
53f81362
GB
32662014-09-12 Gary Benson <gbenson@redhat.com>
3267
3268 * nat/linux-btrace.c: Include common-defs.h.
3269 Don't include defs.h, server.h or gdbthread.h.
3270 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3271
727605ca
GB
32722014-09-12 Gary Benson <gbenson@redhat.com>
3273
3274 * common/agent.c: Include common-defs.h.
3275 Don't include defs.h or server.h.
3276 * common/buffer.c: Likewise.
3277 * common/common-debug.c: Likewise.
3278 * common/common-utils.c: Likewise.
3279 * common/errors.c: Likewise.
3280 * common/filestuff.c: Likewise.
3281 * common/format.c: Likewise.
3282 * common/gdb_vecs.c: Likewise.
3283 * common/print-utils.c: Likewise.
3284 * common/ptid.c: Likewise.
3285 * common/rsp-low.c: Likewise.
3286 * common/signals.c: Likewise.
3287 * common/vec.c: Likewise.
3288 * common/xml-utils.c: Likewise.
3289 * nat/linux-osdata.c: Likewise.
3290 * nat/linux-procfs.c: Likewise.
3291 * nat/linux-ptrace.c: Likewise.
3292 * nat/mips-linux-watch.c: Likewise.
3293 * target/waitstatus.c: Likewise.
3294
361c8ade
GB
32952014-09-12 Tom Tromey <tromey@redhat.com>
3296 Gary Benson <gbenson@redhat.com>
3297
3298 * common/common-regcache.h: New file.
3299 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3300 * regcache.h: Include common-regcache.h.
3301 (regcache_read_pc): Don't declare.
3302 * regcache.c (get_thread_regcache_for_ptid): New function.
3303 * nat/linux-btrace.c: Don't include regcache.h.
3304 Include common-regcache.h.
3305 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3306
a01cbb49
TS
33072014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3308
3309 * regcache.h (struct regset): Declare.
3310
98880d46
PA
33112014-09-11 Pedro Alves <palves@redhat.com>
3312
3313 PR gdb/17347
3314 * main.c: Include "infrun.h".
3315 (catch_command_errors, catch_command_errors_const): Wait for the
3316 foreground command to complete.
3317 * top.c (maybe_wait_sync_command_done): New function, factored out
3318 from ...
3319 (maybe_wait_sync_command_done): ... here.
3320 * top.h (maybe_wait_sync_command_done): New declaration.
3321
bd9269f7
GB
33222014-09-11 Tom Tromey <tromey@redhat.com>
3323 Gary Benson <gbenson@redhat.com>
3324
3325 * common/symbol.h: New file.
3326 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3327 * minsyms.c (find_minimal_symbol_address): New function.
3328 * common/agent.c: Include common/symbol.h.
3329 [!GDBSERVER]: Don't include objfiles.h.
3330 (agent_look_up_symbols): Use find_minimal_symbol_address.
3331
f8c1d06b
GB
33322014-09-11 Gary Benson <gbenson@redhat.com>
3333
3334 * target/target.h (target_stop_ptid, target_continue_ptid):
3335 Declare.
3336 * target.c (target_stop_ptid, target_continue_ptid): New
3337 functions.
3338 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3339 (agent_run_command): Always use target_stop_ptid and
3340 target_continue_ptid.
3341
721ec300
GB
33422014-09-11 Tom Tromey <tromey@redhat.com>
3343 Gary Benson <gbenson@redhat.com>
3344
3345 * target/target.h: New file.
3346 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3347 * target.h: Include target/target.h.
3348 (target_read_memory, target_write_memory): Don't declare.
3349 * target.c (target_read_uint32): New function.
3350 * common/agent.c: Include target/target.h.
3351 [!GDBSERVER]: Don't include target.h.
3352 (helper_thread_id): Type changed to uint32_t.
3353 (agent_get_helper_thread_id): Use target_read_uint32.
3354 (agent_run_command): Always use target_read_memory and
3355 target_write_memory.
3356 (agent_capability): Type changed to uint32_t.
3357 (agent_capability_check): Use target_read_uint32.
3358
c5e92cca
GB
33592014-09-11 Gary Benson <gbenson@redhat.com>
3360
3361 * common/common-debug.h (show_debug_regs): Declare.
3362 * common/common-debug.c (show_debug_regs): Define.
3363 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3364 all uses with show_debug_regs. Replace all uses that considered
3365 debug_hw_points as a multi-value integer with straight boolean
3366 uses.
3367 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3368 with show_debug_regs.
3369 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3370 all uses with show_debug_regs.
3371 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3372 uses with show_debug_regs.
3373
eeef931a
UW
33742014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3375
3376 * findvar.c (address_from_register): Handle targets requiring
3377 a special conversion routine even for plain pointer types.
3378
8efa9855
UW
33792014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3380
3381 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3382 (store_register): Do not call exec_one_dummy_insn.
3383
eb479039
JB
33842014-09-10 Joel Brobecker <brobecker@adacore.com>
3385
3386 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3387 dereference it first. Use value_enclosing_type instead of
3388 value_type.
3389 (ada_array_length): Likewise.
3390
deede10c
JB
33912014-09-10 Joel Brobecker <brobecker@adacore.com>
3392
3393 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3394 Adjust function implementation and documentation accordingly.
3395 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3396 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3397 Update call to ada_value_ptr_subscript.
3398
7828a5f5
JB
33992014-09-10 Joel Brobecker <brobecker@adacore.com>
3400
3401 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3402 instead of VAL's type.
3403
35782f14
JB
34042014-09-10 Joel Brobecker <brobecker@adacore.com>
3405
3406 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3407
d342a0da
DE
34082014-09-09 Doug Evans <xdje42@gmail.com>
3409
3410 PR guile/17367
3411 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3412 last parameter to pkg-config, not first.
3413 * configure.ac: Pass --with-guile provided pkg-config path to
3414 GDB_GUILE_PROGRAM_NAMES.
3415 * configure: Regenerate.
3416
b4a3d263
GKB
34172014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3418
3419 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3420 Bertazi".
3421
6e466374
MR
34222014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3423
3424 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3425 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3426 the list of sections determining GDB_OSABI_IRIX.
3427
a1ada89a
JH
34282014-09-09 James Hogan <james.hogan@imgtec.com>
3429
3430 * MAINTAINERS (Write After Approval): Add "James Hogan".
3431
86db008d
JH
34322014-09-09 James Hogan <james.hogan@imgtec.com>
3433
3434 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3435
72fde3df
JB
34362014-09-09 Joel Brobecker <brobecker@adacore.com>
3437
3438 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3439
92d8d229
DE
34402014-09-08 Doug Evans <xdje42@gmail.com>
3441
3442 PR 17247
3443 * guile.c: #include <signal.h>.
3444 (_initialize_guile): Block SIGCHLD while initializing Guile.
3445
3446 Replaces the following, which is reverted.
3447
3448 2014-07-26 Doug Evans <xdje42@gmail.com>
3449
3450 PR 17185
3451 * configure.ac: Add check for header gc/gc.h.
3452 Add check for function setenv.
3453 * configure: Regenerate.
3454 * config.in: Regenerate.
3455 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3456
d81412aa
DE
34572014-09-08 Doug Evans <xdje42@gmail.com>
3458
3459 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3460 with named constant. Fix style of pointer comparison.
3461 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3462
a9f116cb
GKB
34632014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3464
3465 PR gdb/17035
3466 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3467 decide whether we display the command on "show user".
3468 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3469 printing command name.
3470 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3471 * cli/cli-decode.c (cli_user_command_p): Create helper function
3472 to verify whether cmd_list_element is a user-defined command.
3473
c75bd3a2
JK
34742014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3475
3476 PR python/17355
3477 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3478 Fix goto out of TRY_CATCH.
3479
faa42425 34802014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 3481 Tom Tromey <tromey@redhat.com>
faa42425
DE
3482
3483 PR 15276
3484 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3485 $_any_caller_matches.
3486 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3487 * python/lib/gdb/function/caller_is.py: New file.
3488
0d41ba00
DE
34892014-09-06 Doug Evans <xdje42@gmail.com>
3490
3491 * infcmd.c (program_info): Fix typo.
3492
474ca4f6
SDJ
34932014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3494
3495 PR gdb/17235
3496 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3497 'number'. New variable 'has_digit'. Rewrite code to deal with
3498 subexpressions on SDT probes.
3499
ebf13736
PA
35002014-09-04 Pedro Alves <palves@redhat.com>
3501
3502 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3503 the input is only one character long.
3504
eb0b0463
SDJ
35052014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3506
3507 PR fortran/17237
3508 * f-valprint.c (f_val_print): Specify the correct print option to
3509 use when printing integer values.
3510
5ee44bfa
GB
35112014-09-04 Gary Benson <gbenson@redhat.com>
3512
3513 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3514 Remove code to cope with LWPs wrapped as PIDs.
3515 Add assertions to ensure no wrapped LWPs are passed.
3516
4875ffdb
PA
35172014-09-04 Pedro Alves <palves@redhat.com>
3518
3519 * value.c (value_ranges_copy_adjusted): New function, factored out
3520 from ...
3521 (value_contents_copy_raw): ... here.
3522 (unpack_value_bits_as_long_1): Rename back to ...
3523 (unpack_bits_as_long): ... this. Remove 'original_value' and
3524 'result' parameters. Change return type to LONGEST.
3525 (unpack_value_bits_as_long): Delete.
3526 (unpack_value_field_as_long_1): Delete.
3527 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3528 (unpack_value_bitfield): New function.
3529 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3530 (value_fetch_lazy): Use unpack_value_bitfield.
3531 * value.h (unpack_value_bits_as_long): Delete declaration.
3532
5f3b99cf
SS
35332014-09-03 Sasha Smundak <asmundak@google.com>
3534
3535 * python/py-frame.c (frapy_read_register): New function.
3536
ac740bc7
JH
35372014-09-03 James Hogan <james.hogan@imgtec.com>
3538
3539 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3540 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3541
7d793aa9
SDJ
35422014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3543
3544 PR python/16699
3545 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3546 function.
3547 (add_cmd): Set "completer_handle_brkchars" to NULL.
3548 * cli/cli-decode.h (struct cmd_list_element)
3549 <completer_handle_brkchars>: New field.
3550 * command.h (completer_ftype_void): New typedef.
3551 (set_cmd_completer_handle_brkchars): New prototype.
3552 * completer.c (set_gdb_completion_word_break_characters): New
3553 function.
3554 (complete_line_internal): Call "completer_handle_brkchars"
3555 callback from command.
3556 * completer.h: Include "command.h".
3557 (set_gdb_completion_word_break_characters): New prototype.
3558 * python/py-cmd.c (cmdpy_completer_helper): New function.
3559 (cmdpy_completer_handle_brkchars): New function.
3560 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3561 (cmdpy_init): Set completer_handle_brkchars to
3562 cmdpy_completer_handle_brkchars.
3563
97ea6506
GB
35642014-09-03 Gary Benson <gbenson@redhat.com>
3565
3566 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3567 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3568 Loop conditions changed to equivalent form.
3569 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3570 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3571 ALL_DEBUG_ADDRESS_REGISTERS.
3572
d1437815
JB
35732014-09-03 Joel Brobecker <brobecker@adacore.com>
3574
3575 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3576 description fix.
3577
9b94fcf1
DE
35782014-09-02 Doug Evans <dje@google.com>
3579
3580 * typeprint.c (find_global_typedef): Fix comment.
3581
df7e5265
GB
35822014-09-02 Gary Benson <gbenson@redhat.com>
3583
3584 * i386-nat.h: Renamed as...
3585 * x86-nat.h: New file. All type, function and variable name
3586 prefixes changed from "i386_" to "x86_". All references updated.
3587 * i386-nat.c: Renamed as...
3588 * x86-nat.c: New file. All type, function and variable name
3589 prefixes changed from "i386_" to "x86_". All references updated.
3590 * common/i386-xstate.h: Renamed as...
3591 * common/x86-xstate.h: New file. All type, function and variable
3592 name prefixes changed from "i386_" to "x86_". All references
3593 updated.
3594 * nat/i386-cpuid.h: Renamed as...
3595 * nat/x86-cpuid.h: New file. All type, function and variable name
3596 prefixes changed from "i386_" to "x86_". All references updated.
3597 * nat/i386-gcc-cpuid.h: Renamed as...
3598 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3599 name prefixes changed from "i386_" to "x86_". All references
3600 updated.
3601 * nat/i386-dregs.h: Renamed as...
3602 * nat/x86-dregs.h: New file. All type, function and variable name
3603 prefixes changed from "i386_" to "x86_". All references updated.
3604 * nat/i386-dregs.c: Renamed as...
3605 * nat/x86-dregs.c: New file. All type, function and variable name
3606 prefixes changed from "i386_" to "x86_". All references updated.
3607
1c3569d4
MR
36082014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3609
3610 * varobj.c (_initialize_varobj): Move to the end of file.
3611
ff55e1b5
GB
36122014-08-29 Gary Benson <gbenson@redhat.com>
3613
3614 * common/common-exceptions.h: New file.
3615 * common/common-exceptions.c: Likewise.
3616 * Makefile.in (SFILES): Add common/common-exceptions.c.
3617 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3618 (COMMON_OBS): Add common-exceptions.o.
3619 (common-exceptions.o): New rule.
3620 * exceptions.h (common-exceptions.h): Include.
3621 (gdb_setjmp.h): Do not include.
3622 (return_reason): Moved to common-exceptions.h.
3623 (enum return_reason): Likewise.
3624 (RETURN_MASK): Likewise.
3625 (typedef return_mask): Likewise.
3626 (enum errors): Likewise.
3627 (struct gdb_exception): Likewise.
3628 (exceptions_state_mc_init): Likewise.
3629 (exceptions_state_mc_action_iter): Likewise.
3630 (exceptions_state_mc_action_iter_1): Likewise.
3631 (TRY_CATCH): Likewise.
3632 (throw_exception): Likewise.
3633 (throw_verror): Likewise.
3634 (throw_vquit): Likewise.
3635 (throw_error): Likewise.
3636 (throw_quit): Likewise.
3637 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3638 (enum catcher_action): Likewise.
3639 (struct catcher): Likewise.
3640 (current_catcher): Likewise.
3641 (catcher_list_size): Likewise.
3642 (exceptions_state_mc_init): Likewise.
3643 (catcher_pop): Likewise.
3644 (exceptions_state_mc): Likewise.
3645 (exceptions_state_mc_action_iter): Likewise.
3646 (exceptions_state_mc_action_iter_1): Likewise.
3647 (throw_exception): Likewise.
3648 (exception_messages): Likewise.
3649 (exception_messages_size): Likewise.
3650 (throw_it): Likewise.
3651 (throw_verror): Likewise.
3652 (throw_vquit): Likewise.
3653 (throw_error): Likewise.
3654 (throw_quit): Likewise.
3655 (prepare_to_throw_exception): New function.
3656
e9bcb658
GB
36572014-08-29 Gary Benson <gbenson@redhat.com>
3658
3659 * common/gdb_setjmp.h: New file.
3660 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3661 * configure.ac: Move sigsetjmp check...
3662 * common/common.m4: ...here.
3663 * configure: Regenerate.
3664 * cp-support.c (SIGJMP_BUF): Delete.
3665 (SIGSETJMP): Likewise.
3666 (SIGLONGJMP): Likewise.
3667 * exceptions.h (gdb_setjmp.h): Include.
3668 (setjmp.h): Do not include.
3669 (EXCEPTIONS_SIGJMP_BUF): Delete.
3670 (EXCEPTIONS_SIGSETJMP): Likewise.
3671 (EXCEPTIONS_SIGLONGJMP): Likewise.
3672 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3673 from gdb_setjmp.h.
3674 * exceptions.c: Likewise.
3675
e3180625
GB
36762014-08-29 Gary Benson <gbenson@redhat.com>
3677
3678 * cleanups.h: Moved to...
3679 * common/cleanups.h: New file.
3680 * cleanups.c: Moved to...
3681 * common/cleanups.c: New file. Include common-defs.h and
3682 cleanups.h. Do not include defs.h.
3683 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3684 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3685 (cleanups.o): New rule.
3686
e3d6ba5d
GB
36872014-08-29 Gary Benson <gbenson@redhat.com>
3688
3689 * common/errors.h (internal_warning): New declaration.
3690 (internal_vwarning): Likewise.
3691 * common/errors.c (internal_warning): New function.
3692 * utils.h (internal_warning): Don't declare.
3693 (internal_vwarning): Likewise.
3694 * utils.c (internal_warning): Removed.
3695
075c7033
GB
36962014-08-29 Gary Benson <gbenson@redhat.com>
3697
3698 * main.c (captured_main): Use warning during startup.
3699 Prefix startup warning messages with command name.
3700
91b35fd0
GB
37012014-08-29 Gary Benson <gbenson@redhat.com>
3702
3703 * main.c (captured_main): Handle usage errors with error.
3704
b1ec390e
GB
37052014-08-29 Gary Benson <gbenson@redhat.com>
3706
3707 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3708 exit pair with a call to error. Wrap the message with _().
3709
fd0ef3dd
GB
37102014-08-29 Gary Benson <gbenson@redhat.com>
3711
3712 * main.c (captured_main): Replace a fprintf/exit
3713 pair with a call to error. Wrap the message with _().
3714
e0e6bcab
GB
37152014-08-29 Gary Benson <gbenson@redhat.com>
3716
3717 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3718 pairs with calls to error. Wrap the message with _().
3719
0d2f5c07
GB
37202014-08-29 Gary Benson <gbenson@redhat.com>
3721
3722 * utils.c (vwarning): Protect calls to target_terminal_ours
3723 and wrap_here.
3724
5df43998
GB
37252014-08-29 Gary Benson <gbenson@redhat.com>
3726
3727 * exceptions.c (print_flush): Protect calls to
3728 target_terminal_ours and wrap_here.
3729
2437fd32
GB
37302014-08-29 Gary Benson <gbenson@redhat.com>
3731
3732 * utils.h (filtered_printing_initialized): New declaration.
3733 * utils.c (abort_with_message): New function.
3734 (internal_vproblem): Use abort_with_message for first level
3735 recursive internal problems, and if gdb_stderr is not set up.
3736 Protect calls to target_terminal_ours, begin_line and query.
3737
f1f58506
DE
37382014-08-28 Doug Evans <dje@google.com>
3739
3740 * symtab.c (in_prologue): Move definition to better spot.
3741 (skip_prologue_using_sal): Ditto.
3742
aab2f208
DE
37432014-08-28 Doug Evans <dje@google.com>
3744
3745 * symtab.c (find_function_start_sal): Move definition to better spot.
3746
6b65d1b6
YQ
37472014-08-28 Yao Qi <yao@codesourcery.com>
3748
3749 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3750 found_stack_adjust in forward scan. Remove condition check
3751 on found_stack_adjust which is always true. Indent the code.
3752
a1b34d15
YQ
37532014-08-28 Yao Qi <yao@codesourcery.com>
3754
3755 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3756 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3757 (dwarf_decode_lines): Remove argument
3758 want_line_info. Remove condition check on want_line_info.
3759 Callers update.
3760
d5962de5
DE
37612014-08-27 Doug Evans <dje@google.com>
3762
3763 * dwarf2read.c (dwarf_record_line): Fix typo.
3764
9b139002
SDJ
37652014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3766
3767 * target.h (struct target_ops::to_terminal_save_ours): Remove
3768 declaration.
3769 (target_terminal_save_ours): Remove macro.
3770 * target-delegates.c: Regenerate.
3771 * inf-child.c (inf_child_target): Don't set the nonexistent
3772 field to_terminal_save_ours.
3773 * inferior.h (child_terminal_save_ours): Remove declaration.
3774 * terminal.h (gdb_save_tty_state): New declaration.
3775 * inflow.c (child_terminal_save_ours): Rename to ...
3776 (gdb_save_tty_state): ... this.
3777 * tui/tui.c: Include terminal.h.
3778 (tui_enable): Use gdb_save_tty_state instead of
3779 target_terminal_save_ours.
3780 (tui_disable): Likewise.
3781
9debeba0
DE
37822014-08-25 Doug Evans <dje@google.com>
3783
3784 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3785 Pass NULL instead of 0 for context pointer.
3786
428fc5fc
YQ
37872014-08-25 Yao Qi <yao@codesourcery.com>
3788
3789 * dwarf2read.c: Fix grammatical error.
3790
cdc07690
YQ
37912014-08-24 Yao Qi <yao@codesourcery.com>
3792
3793 * dwarf2read.c (scan_partial_symbols): Update comments.
3794 Rename argument 'need_pc' with 'set_addrmap'.
3795 (add_partial_namespace): Rename argument 'need_pc' with
3796 'set_addrmap'.
3797 (add_partial_module): Likewise.
3798 (add_partial_subprogram): Likewise. Update comments.
3799 (dwarf2_name): Fix typo.
3800
a05a36a5
DE
38012014-08-22 Doug Evans <dje@google.com>
3802
3803 PR 17276
3804 * dwarf2read.c (dwarf_record_line_p): New function.
3805 (dwarf_decode_lines_1): Ignore subsequent line number entries
3806 for the same line if any entry had a non-zero discriminator.
3807
252a6764
DE
38082014-08-22 Doug Evans <dje@google.com>
3809
3810 * buildsym.h (record_line_ftype): New typedef.
3811 (record_line): Use it.
3812 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3813 (dwarf_decode_lines_1): Call them.
3814
510db052
YQ
38152014-08-22 Yao Qi <yao@codesourcery.com>
3816
3817 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3818 (ctf_end): Remove code.
3819
22fd09ae
JK
38202014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3821
3822 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3823 (linux_make_corefile_notes): call update_thread_list, protected against
3824 exceptions.
3825
656e8868
PA
38262014-08-21 Pedro Alves <palves@redhat.com>
3827
3828 * infcmd.c (attach_command): Remove comment.
3829
de589d04
WN
38302014-08-21 Bin Cheng <bin.cheng@arm.com>
3831
3832 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3833 unsigned LONGEST to ULONGEST.
3834
2a31c623
PA
38352014-08-20 Pedro Alves <palves@redhat.com>
3836
3837 * Makefile.in (check-read1): New rule.
3838
d36430db
JB
38392014-08-20 Joel Brobecker <brobecker@adacore.com>
3840
3841 * value.c (value_from_contents_and_address): Strip resolved_type's
3842 typedef layers before checking its TYPE_DATA_LOCATION.
3843
000339af
PA
38442014-08-20 Pedro Alves <palves@redhat.com>
3845
3846 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3847
5f52445b
YQ
38482014-08-20 Yao Qi <yao@codesourcery.com>
3849
3850 * amd64-tdep.c (amd64_classify): Add a blank line after the
3851 example. Move "*/" to a new line.
3852 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3853 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3854 * dwarf2read.c (psymtab_include_file_name): Likewise.
3855
9a0dc9e3
PA
38562014-08-19 Andrew Burgess <aburgess@broadcom.com>
3857 Pedro Alves <palves@redhat.com>
3858
3859 PR symtab/14604
3860 PR symtab/14605
3861 * ada-lang.c (coerce_unspec_val_to_type): Use
3862 value_contents_copy_raw.
3863 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3864 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3865 * cp-valprint.c (cp_print_value_fields): Let the common printing
3866 code handle optimized out values.
3867 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3868 * d-valprint.c (dynamic_array_type): Use
3869 value_bits_any_optimized_out.
3870 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3871 check_any_valid fields.
3872 (check_pieced_value_bits): Delete and inline ...
3873 (check_pieced_synthetic_pointer): ... here.
3874 (check_pieced_value_validity): Delete.
3875 (check_pieced_value_invalid): Delete.
3876 (pieced_value_funcs): Remove check_validity and check_any_valid
3877 fields.
3878 (read_pieced_value): Use mark_value_bits_optimized_out.
3879 (write_pieced_value): Switch to use
3880 mark_value_bytes_optimized_out.
3881 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3882 of assuming the whole value is optimized out.
3883 * findvar.c (read_frame_register_value): Remove special handling
3884 of optimized out registers.
3885 (value_from_register): Use mark_value_bytes_optimized_out.
3886 * frame-unwind.c (frame_unwind_got_optimized): Use
3887 mark_value_bytes_optimized_out.
3888 * jv-valprint.c (java_value_print): Adjust.
3889 (java_print_value_fields): Let the common printing code handle
3890 optimized out values.
3891 * mips-tdep.c (mips_print_register): Remove special handling of
3892 optimized out registers.
3893 * opencl-lang.c (lval_func_check_validity): Delete.
3894 (lval_func_check_any_valid): Delete.
3895 (opencl_value_funcs): Remove check_validity and check_any_valid
3896 fields.
3897 * p-valprint.c (pascal_object_print_value_fields): Let the common
3898 printing code handle optimized out values.
3899 * stack.c (read_frame_arg): Remove special handling of optimized
3900 out values. Fetch both VAL and ENTRYVAL before comparing
3901 contents. Adjust to value_available_contents_eq rename.
3902 * valprint.c (valprint_check_validity)
3903 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3904 (val_print_array_elements): Adjust.
3905 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3906 (value_bits_any_optimized_out): New function.
3907 (value_entirely_covered_by_range_vector): New function, factored
3908 out from value_entirely_unavailable.
3909 (value_entirely_unavailable): Reimplement.
3910 (value_entirely_optimized_out): New function.
3911 (insert_into_bit_range_vector): New function, factored out from
3912 mark_value_bits_unavailable.
3913 (mark_value_bits_unavailable): Reimplement.
3914 (struct ranges_and_idx): New struct.
3915 (find_first_range_overlap_and_match): New function, factored out
3916 from value_available_contents_bits_eq.
3917 (value_available_contents_bits_eq): Rename to ...
3918 (value_contents_bits_eq): ... this. Check both unavailable
3919 contents and optimized out contents.
3920 (value_available_contents_eq): Rename to ...
3921 (value_contents_eq): ... this.
3922 (allocate_value_lazy): Remove reference to the old optimized_out
3923 boolean.
3924 (allocate_optimized_out_value): Use
3925 mark_value_bytes_optimized_out.
3926 (require_not_optimized_out): Adjust to check whether the
3927 optimized_out vec is empty.
3928 (ranges_copy_adjusted): New function, factored out from
3929 value_contents_copy_raw.
3930 (value_contents_copy_raw): Also copy the optimized out ranges.
3931 Assert the destination ranges aren't optimized out.
3932 (value_contents_copy): Update comment, remove call to
3933 require_not_optimized_out.
3934 (value_contents_equal): Adjust to check whether the optimized_out
3935 vec is empty.
3936 (set_value_optimized_out, value_optimized_out_const): Delete.
3937 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3938 New functions.
3939 (value_entirely_optimized_out, value_bits_valid): Delete.
3940 (value_copy): Take a VEC copy of the 'optimized_out' field.
3941 (value_primitive_field): Remove special handling of optimized out.
3942 (value_fetch_lazy): Assert that lazy values have no unavailable
3943 regions. Use value_bits_any_optimized_out. Remove some special
3944 handling for optimized out values.
3945 * value.h: Add intro comment about <optimized out> and
3946 <unavailable>.
3947 (struct lval_funcs): Remove check_validity and check_any_valid
3948 fields.
3949 (set_value_optimized_out, value_optimized_out_const): Remove.
3950 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3951 New declarations.
3952 (value_bits_any_optimized_out): New declaration.
3953 (value_bits_valid): Delete declaration.
3954 (value_available_contents_eq): Rename to ...
3955 (value_contents_eq): ... this, and extend comments.
3956
6694c411
JK
39572014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3958
3959 Fix -fsanitize=address on unreadable inferior strings.
3960 * valprint.c (val_print_string): Fix access before BUFFER.
3961
89a1c21a
SM
39622014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3963
3964 * target.c (target_struct_size): Remove.
3965 (target_struct_allocsize): Remove.
3966 (DEFAULT_ALLOCSIZE): Remove.
3967 (target_ops_p): New typedef.
3968 (DEF_VEC_P (target_ops_p)): New vector type.
3969 (target_structs): Change type to VEC (target_ops_p).
3970 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3971 (find_default_run_target): Rewrite for loop following changes to
3972 target_structs.
3973
cb417230
JB
39742014-08-19 Joel Brobecker <brobecker@adacore.com>
3975
3976 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3977 Adjust code accordingly. Adjust function description comment.
3978
817e0957
YQ
39792014-08-19 Yao Qi <yao@codesourcery.com>
3980
3981 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3982 types.
3983
2974be62
AM
39842014-08-19 Alan Modra <amodra@gmail.com>
3985
3986 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3987 * config.in: Regenerate.
3988 * configure: Regenerate.
3989
34abf635
GB
39902014-08-19 Tom Tromey <tromey@redhat.com>
3991 Gary Benson <gbenson@redhat.com>
3992
3993 * common/common-debug.h: New file.
3994 * common/common-debug.c: Likewise.
3995 * debug.c: Likewise.
3996 * Makefile.in (SFILES): Add common/common-debug.c.
3997 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3998 (COMMON_OBS): Add common-debug.o and debug.o.
3999 (common-debug.o): New rule.
4000 * common/common-defs.h: Include common-debug.h.
4001 * common/agent.c (debug_agent_printf): New function.
4002 (DEBUG_AGENT): Redefine.
4003 * nat/i386-dregs.c (debug_printf): Undefine.
4004
f6e94d78
GB
40052014-08-19 Gary Benson <gbenson@redhat.com>
4006
4007 * common/common-defs.h: Include print-utils.h.
4008 * utils.h: Do not include print-utils.h.
4009
9239eeab
GB
40102014-08-19 Tom Tromey <tromey@redhat.com>
4011 Gary Benson <gbenson@redhat.com>
4012
4013 * common/common-types.h: New file.
4014 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
4015 * common/common-defs.h: Include common-types.h.
4016 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4017 (ULONGEST): Remove.
4018
ef87c8bb
GB
40192014-08-19 Tom Tromey <tromey@redhat.com>
4020 Gary Benson <gbenson@redhat.com>
4021
4022 * common/errors.h: New file.
4023 * common/errors.c: Likewise.
4024 * Makefile.in (SFILES): Add common/errors.c.
4025 (HFILES_NO_SRCDIR): Add common/errors.h.
4026 (COMMON_OBS): Add errors.o.
4027 (errors.o): New rule.
4028 * common/common-defs.h: Include errors.h.
4029 * utils.h (perror_with_name, error, verror, warning, vwarning):
4030 Don't declare.
4031 * common/common-utils.h: (malloc_failure, internal_error):
4032 Likewise.
4033
196a707b
GB
40342014-08-19 Gary Benson <gbenson@redhat.com>
4035
4036 * utils.c (internal_vproblem): Always print the message.
4037
ded4fc8f
DE
40382014-08-18 Doug Evans <dje@google.com>
4039
4040 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4041
950c97d8
JB
40422014-08-18 Joel Brobecker <brobecker@adacore.com>
4043
4044 * ada-typeprint.c (type_is_full_subrange_of_target_type):
4045 Return 0 if TYPE is dynamic.
4046 (print_range): Add handling of dynamic ranges.
4047
3cdcd0ce
JB
40482014-08-18 Keven Boell <keven.boell@intel.com>
4049 Joel Brobecker <brobecker@adacore.com>
4050
4051 * gdbtypes.h (struct main_type): Add field "data_location".
4052 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4053 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4054 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4055 a dynamic data location.
4056 (resolve_dynamic_type): Add DW_AT_data_location handling.
4057 (copy_recursive, copy_type): Copy the data_location information
4058 when present.
4059 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4060 * value.c (value_from_contents_and_address): Add
4061 DW_AT_data_location handling.
4062
08412b07
JB
40632014-08-18 Keven Boell <keven.boell@intel.com>
4064 Joel Brobecker <brobecker@adacore.com>
4065
4066 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4067 field "get_object_address".
4068 * dwarf2expr.c (execute_stack_op): Add handling for
4069 DW_OP_push_object_address.
4070 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4071 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4072 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4073 (dwarf_expr_get_obj_addr): New function.
4074 (dwarf_expr_ctx_funcs): Add get_object_address field.
4075 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4076 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4077 (dwarf2_evaluate_property): Add parameter "address". Use it.
4078 (needs_get_obj_addr): New function.
4079 (needs_frame_ctx_funcs): Add get_object_address field.
4080 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4081 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4082 (resolve_dynamic_array): Likewise.
4083
84754697
JB
40842014-08-18 Joel Brobecker <brobecker@adacore.com>
4085
4086 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4087 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4088 fixed value for records and unions for which some GNAT encodings
4089 are present.
4090
da5c522f
JB
40912014-08-18 Joel Brobecker <brobecker@adacore.com>
4092
4093 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4094 rewrite to avoid "else if" and "else" constructs. Should be
4095 a no-op in practice.
4096
0d72a7c3
JB
40972014-08-18 Joel Brobecker <brobecker@adacore.com>
4098
4099 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4100 of lexical block.
4101
e66d4446
SC
41022014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4103
4104 PR c++/17132
4105 * eval.c: Update all calls to find_overload_match.
4106 * valarith.c: Likewise.
4107 (value_user_defined_cpp_op, value_user_defined_op): New
4108 argument NOSIDE. Update all callers.
4109 * valops.c (find_overload_match): New argument NOSIDE.
4110 * value.h (find_overload_match): Update signature.
4111
940df408
SC
41122014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4113
4114 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4115 'items' methods instead of 'iteritems' method on dictionaries.
4116
699ca60a
DE
41172014-08-15 Doug Evans <dje@google.com>
4118
4119 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4120 closer to use.
4121
37780ee5
DE
41222014-08-15 Doug Evans <dje@google.com>
4123
4124 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4125
0ad93d4f
DE
41262014-08-15 Doug Evans <dje@google.com>
4127
4128 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4129
20d8c372
DE
41302014-08-15 Doug Evans <dje@google.com>
4131
4132 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4133 unused.
4134
cb039ba4
EZ
41352014-08-15 Eli Zaretskii <eliz@gnu.org>
4136
4137 * dcache.h: Include target.h, to avoid compile time warnings.
4138
eb7a547a
JB
41392014-08-15 Joel Brobecker <brobecker@adacore.com>
4140
4141 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4142 frame_info" partial declaration.
4143 * gdbarch.h: Regenerate.
4144
783cecc8
YQ
41452014-08-15 Yao Qi <yao@codesourcery.com>
4146
4147 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4148 Add parameter 'decode_for_pst_p'. Callers update.
4149
65c749e7
YQ
41502014-08-13 Yao Qi <yao@codesourcery.com>
4151
4152 PR build/17104
4153 * configure.ac: Use local variable 'pos'.
4154 * configure: Regenerated.
4155
d769e349
DE
41562014-08-11 Doug Evans <dje@google.com>
4157
4158 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4159 message, it is redundant with "Reading symbols from ..." message.
4160
24f1235e
DE
41612014-08-10 Doug Evans <xdje42@gmail.com>
4162
4163 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4164
dcd2e6ef
YQ
41652014-08-09 Yao Qi <yao@codesourcery.com>
4166
4167 PR remote/9053
4168 * remote.c (remote_xfer_partial): Remove dead code.
4169
070bdf0b
AA
41702014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4171
4172 * ia64-linux-tdep.c: Include "regset.h".
4173 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4174 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4175 (ia64_linux_supply_fpregset): New function.
4176 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4177 (ia64_linux_regset_from_core_section): New function.
4178 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4179 method.
4180
08f9f542
AA
41812014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4182
4183 * m68klinux-tdep.c: Include "regset.h".
4184 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4185 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4186 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4187 (m68k_linux_regset_from_core_section): New function.
4188 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4189 method.
4190
8f1cee41
AA
41912014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4192
4193 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4194 function. Move logic to...
4195 (tilegx_linux_regmap): ... this new register map.
4196 (tilegx_linux_regset): Refer to register map, replace supply
4197 method by regcache_supply_regset, and add collect method.
4198 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4199 TILEGX_FIRST_EASY_REGNUM.
4200
c5741217
AA
42012014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4202
4203 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4204 that calls regcache_supply_regset and handles the EPC register
4205 separately. Move main logic to...
4206 (score7_linux_gregmap): ... this new register map.
4207 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4208 (score7_linux_gregset): Refer to register map. Add collect method.
4209 (score7_linux_regset_from_core_section): Replace
4210 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4211 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4212 (struct regset): Delete unused forward declaraction.
4213 (struct pt_regs): Delete structure definition.
4214 (elf_gregset_t): Delete typedef.
4215
81580573
AA
42162014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4217
4218 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4219 (nios2_core_regset): Add collect method.
4220
ba199d7d
AA
42212014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4222
4223 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4224 platform-independent and don't write to read-only input buffer.
4225 (m32r_linux_collect_gregset): New function.
4226 (m32r_linux_gregset): Add collect method.
4227
0006a9da
AA
42282014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4229
4230 * hppa-linux-tdep.c (greg_map): Rename to...
4231 (hppa_linux_gregmap): ... this. Also convert to
4232 regcache_map_entry format.
4233 (hppa_linux_supply_regset): Delete function.
4234 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4235 (hppa_linux_fpregmap): ... this new register map.
4236 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4237 register map, replace supply method by regcache_supply_regset, and
4238 add collect method regcache_collect_regset.
4239
901e1b23
AA
42402014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4241
4242 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4243 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4244 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4245 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4246 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4247 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4248 (frv_linux_supply_gregset): Replace main logic by call to
4249 regcache_supply_regset, but keep clearing gr32-gr63.
4250 (frv_linux_supply_fpregset): Delete function.
4251 (frv_linux_gregset): Refer to appropriate register map and add
4252 regcache_collect_regset as the collect method.
4253 (frv_linux_fpregset): Likewise. Also exchange the supply method
4254 by regcache_supply_regset.
4255
1d6e7555
AA
42562014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4257
4258 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4259 by call to alpha_supply_int_regs.
4260 (alpha_linux_collect_gregset): New function.
4261 (alpha_linux_supply_fpregset): Replace logic by call to
4262 alpha_supply_fp_regs.
4263 (alpha_linux_collect_fpregset): New function.
4264 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4265
d4d793bf
AA
42662014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4267
4268 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4269 by call to regcache_collect_regset.
4270 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4271 instead of aarch64_linux_supply_gregset/_fpregset.
4272 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4273 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4274 header file instead.
4275 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4276 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4277 functions. Move logic to ...
4278 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4279 register maps.
4280 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4281 refer to new register maps, replace *_regset_from_core by
4282 regcache_supply_regset, and also use regcache_collect_regset.
4283 * aarch64-linux-tdep.h: Include "regset.h".
4284 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4285 Delete prototypes.
4286 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4287 macros, moved from C source file.
4288 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4289 variable declarations.
4290
99b7da5d
AA
42912014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4292
4293 * s390-linux-nat.c: Include "regset.h".
4294 (regmap_gregset): Delete macro.
4295 (s390_64_regmap_gregset): New register map for
4296 regcache_supply/_collect_regset.
4297 (s390_64_gregset): New regset.
4298 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4299 (regmap_fpregset): Delete macro.
4300 (s390_native_supply, s390_native_collect): Delete functions.
4301 (supply_gregset, fill_gregset): Replace s390-specific regmap
4302 handling by a call to regcache_supply/_collect_regset.
4303 (supply_fpregset, fill_fpregset): Call regcache_supply/
4304 _collect_regset instead of s390_native_supply/_collect.
4305 (fetch_regset, store_regset): Likewise. Also change the last
4306 parameter to a regset instead of a regmap.
4307 (s390_linux_fetch_inferior_registers)
4308 (390_linux_store_inferior_registers): Adjust last parameter in
4309 calls to fetch_regset and store_regset.
4310 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4311 (s390_gregmap): ... this. Also make static const and convert to
4312 regcache_map_entry format.
4313 (s390x_regmap_gregset): Delete.
4314 (s390_regmap_fpregset): Rename to...
4315 (s390_fpregmap): ... this. Make static const and convert to
4316 regcache_map_entry format.
4317 (s390_regmap_upper, s390_regmap_last_break)
4318 (s390x_regmap_last_break, s390_regmap_system_call)
4319 (s390_regmap_tdb): Likewise.
4320 (s390_supply_regset, s390_collect_regset): Remove functions.
4321 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4322 s390_supply_regset.
4323 (s390_gregset, s390_fpregset, s390_upper_regset)
4324 (s390_last_break_regset, s390x_last_break_regset)
4325 (s390_system_call_regset, s390_tdb_regset): Make global and
4326 replace s390_supply/_collect_regset by regcache_supply/
4327 _collect_regset.
4328 (s390x_gregset): Delete.
4329 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4330 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4331 (s390_regmap_fpregset, s390_regmap_last_break)
4332 (s390x_regmap_last_break, s390_regmap_system_call)
4333 (s390_regmap_tdb): Delete global variable declarations.
4334 (s390_gregset, s390_fpregset, s390_last_break_regset)
4335 (s390x_last_break_regset, s390_system_call_regset)
4336 (s390_tdb_regset): New global variable declarations.
4337
0b309272
AA
43382014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4339
4340 * regcache.c: Include "regset.h".
4341 (regcache_transfer_regset): New local function.
4342 (regcache_supply_regset, regcache_collect_regset): New functions.
4343 * regcache.h (struct regcache_map_entry): New structure.
4344 (REGCACHE_MAP_SKIP): New enum value.
4345 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4346
7fefa8d7
AA
43472014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4348
4349 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4350 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4351 (ppc_linux_collect_gregset ): Likewise.
4352 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4353 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4354 (ppc_collect_vrregset): Likewise.
4355 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4356 Likewise.
4357
96c4f946
YQ
43582014-08-07 Yao Qi <yao@codesourcery.com>
4359
4360 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4361 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4362 * remote.c (remote_read_bytes): Likewise.
4363
fffbe6a8
YQ
43642014-08-07 Yao Qi <yao@codesourcery.com>
4365
4366 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4367
5ee8a82c
YQ
43682014-08-07 Yao Qi <yao@codesourcery.com>
4369
4370 PR remote/17230
4371 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4372 TARGET_XFER_OK instead of 0.
4373
bb974a24
GB
43742014-08-07 Gary Benson <gbenson@redhat.com>
4375
4376 * common/common-defs.h: Include errno.h.
4377 * defs.h: Do not include errno.h.
4378 * ada-typeprint.c: Likewise.
4379 * c-typeprint.c: Likewise.
4380 * core-regset.c: Likewise.
4381 * corefile.c: Likewise.
4382 * corelow.c: Likewise.
4383 * event-loop.c: Likewise.
4384 * f-typeprint.c: Likewise.
4385 * gnu-nat.c: Likewise.
4386 * go32-nat.c: Likewise.
4387 * i386gnu-nat.c: Likewise.
4388 * m2-typeprint.c: Likewise.
4389 * nat/linux-btrace.c: Likewise.
4390 * p-typeprint.c: Likewise.
4391 * procfs.c: Likewise.
4392 * remote-sim.c: Likewise.
4393 * rs6000-nat.c: Likewise.
4394 * target.c: Likewise.
4395 * typeprint.c: Likewise.
4396 * ui-file.c: Likewise.
4397 * valops.c: Likewise.
4398 * valprint.c: Likewise.
4399
6d3d12eb
GB
44002014-08-07 Gary Benson <gbenson@redhat.com>
4401
4402 * common/common-defs.h: Include string.h.
4403 * aarch64-tdep.c: Do not include string.h.
4404 * ada-exp.y: Likewise.
4405 * ada-lang.c: Likewise.
4406 * ada-lex.l: Likewise.
4407 * ada-typeprint.c: Likewise.
4408 * ada-valprint.c: Likewise.
4409 * aix-thread.c: Likewise.
4410 * alpha-linux-tdep.c: Likewise.
4411 * alpha-mdebug-tdep.c: Likewise.
4412 * alpha-nat.c: Likewise.
4413 * alpha-osf1-tdep.c: Likewise.
4414 * alpha-tdep.c: Likewise.
4415 * alphanbsd-tdep.c: Likewise.
4416 * amd64-dicos-tdep.c: Likewise.
4417 * amd64-linux-tdep.c: Likewise.
4418 * amd64-nat.c: Likewise.
4419 * amd64-sol2-tdep.c: Likewise.
4420 * amd64fbsd-tdep.c: Likewise.
4421 * amd64obsd-tdep.c: Likewise.
4422 * arch-utils.c: Likewise.
4423 * arm-linux-nat.c: Likewise.
4424 * arm-linux-tdep.c: Likewise.
4425 * arm-tdep.c: Likewise.
4426 * arm-wince-tdep.c: Likewise.
4427 * armbsd-tdep.c: Likewise.
4428 * armnbsd-nat.c: Likewise.
4429 * armnbsd-tdep.c: Likewise.
4430 * armobsd-tdep.c: Likewise.
4431 * avr-tdep.c: Likewise.
4432 * ax-gdb.c: Likewise.
4433 * ax-general.c: Likewise.
4434 * bcache.c: Likewise.
4435 * bfin-tdep.c: Likewise.
4436 * breakpoint.c: Likewise.
4437 * build-id.c: Likewise.
4438 * buildsym.c: Likewise.
4439 * c-exp.y: Likewise.
4440 * c-lang.c: Likewise.
4441 * c-typeprint.c: Likewise.
4442 * c-valprint.c: Likewise.
4443 * charset.c: Likewise.
4444 * cli-out.c: Likewise.
4445 * cli/cli-cmds.c: Likewise.
4446 * cli/cli-decode.c: Likewise.
4447 * cli/cli-dump.c: Likewise.
4448 * cli/cli-interp.c: Likewise.
4449 * cli/cli-logging.c: Likewise.
4450 * cli/cli-script.c: Likewise.
4451 * cli/cli-setshow.c: Likewise.
4452 * cli/cli-utils.c: Likewise.
4453 * coffread.c: Likewise.
4454 * common/agent.c: Likewise.
4455 * common/buffer.c: Likewise.
4456 * common/buffer.h: Likewise.
4457 * common/common-utils.c: Likewise.
4458 * common/filestuff.c: Likewise.
4459 * common/filestuff.c: Likewise.
4460 * common/format.c: Likewise.
4461 * common/print-utils.c: Likewise.
4462 * common/rsp-low.c: Likewise.
4463 * common/signals.c: Likewise.
4464 * common/vec.h: Likewise.
4465 * common/xml-utils.c: Likewise.
4466 * core-regset.c: Likewise.
4467 * corefile.c: Likewise.
4468 * corelow.c: Likewise.
4469 * cp-abi.c: Likewise.
4470 * cp-name-parser.y: Likewise.
4471 * cp-support.c: Likewise.
4472 * cp-valprint.c: Likewise.
4473 * cris-tdep.c: Likewise.
4474 * d-exp.y: Likewise.
4475 * darwin-nat.c: Likewise.
4476 * dbxread.c: Likewise.
4477 * dcache.c: Likewise.
4478 * demangle.c: Likewise.
4479 * dicos-tdep.c: Likewise.
4480 * disasm.c: Likewise.
4481 * doublest.c: Likewise.
4482 * dsrec.c: Likewise.
4483 * dummy-frame.c: Likewise.
4484 * dwarf2-frame.c: Likewise.
4485 * dwarf2loc.c: Likewise.
4486 * dwarf2read.c: Likewise.
4487 * elfread.c: Likewise.
4488 * environ.c: Likewise.
4489 * eval.c: Likewise.
4490 * event-loop.c: Likewise.
4491 * exceptions.c: Likewise.
4492 * exec.c: Likewise.
4493 * expprint.c: Likewise.
4494 * f-exp.y: Likewise.
4495 * f-lang.c: Likewise.
4496 * f-typeprint.c: Likewise.
4497 * f-valprint.c: Likewise.
4498 * fbsd-nat.c: Likewise.
4499 * findcmd.c: Likewise.
4500 * findvar.c: Likewise.
4501 * fork-child.c: Likewise.
4502 * frame.c: Likewise.
4503 * frv-linux-tdep.c: Likewise.
4504 * frv-tdep.c: Likewise.
4505 * gdb.c: Likewise.
4506 * gdb_bfd.c: Likewise.
4507 * gdbarch.c: Likewise.
4508 * gdbarch.sh: Likewise.
4509 * gdbtypes.c: Likewise.
4510 * gnu-nat.c: Likewise.
4511 * gnu-v2-abi.c: Likewise.
4512 * gnu-v3-abi.c: Likewise.
4513 * go-exp.y: Likewise.
4514 * go-lang.c: Likewise.
4515 * go32-nat.c: Likewise.
4516 * guile/guile.c: Likewise.
4517 * guile/scm-auto-load.c: Likewise.
4518 * hppa-hpux-tdep.c: Likewise.
4519 * hppa-linux-nat.c: Likewise.
4520 * hppanbsd-tdep.c: Likewise.
4521 * hppaobsd-tdep.c: Likewise.
4522 * i386-cygwin-tdep.c: Likewise.
4523 * i386-dicos-tdep.c: Likewise.
4524 * i386-linux-tdep.c: Likewise.
4525 * i386-nto-tdep.c: Likewise.
4526 * i386-sol2-tdep.c: Likewise.
4527 * i386-tdep.c: Likewise.
4528 * i386bsd-tdep.c: Likewise.
4529 * i386gnu-nat.c: Likewise.
4530 * i386nbsd-tdep.c: Likewise.
4531 * i386obsd-tdep.c: Likewise.
4532 * i387-tdep.c: Likewise.
4533 * ia64-libunwind-tdep.c: Likewise.
4534 * ia64-linux-nat.c: Likewise.
4535 * inf-child.c: Likewise.
4536 * inf-ptrace.c: Likewise.
4537 * inf-ttrace.c: Likewise.
4538 * infcall.c: Likewise.
4539 * infcmd.c: Likewise.
4540 * inflow.c: Likewise.
4541 * infrun.c: Likewise.
4542 * interps.c: Likewise.
4543 * iq2000-tdep.c: Likewise.
4544 * irix5-nat.c: Likewise.
4545 * jv-exp.y: Likewise.
4546 * jv-lang.c: Likewise.
4547 * jv-typeprint.c: Likewise.
4548 * jv-valprint.c: Likewise.
4549 * language.c: Likewise.
4550 * linux-fork.c: Likewise.
4551 * linux-nat.c: Likewise.
4552 * lm32-tdep.c: Likewise.
4553 * m2-exp.y: Likewise.
4554 * m2-typeprint.c: Likewise.
4555 * m32c-tdep.c: Likewise.
4556 * m32r-linux-nat.c: Likewise.
4557 * m32r-linux-tdep.c: Likewise.
4558 * m32r-rom.c: Likewise.
4559 * m32r-tdep.c: Likewise.
4560 * m68hc11-tdep.c: Likewise.
4561 * m68k-tdep.c: Likewise.
4562 * m68kbsd-tdep.c: Likewise.
4563 * m68klinux-nat.c: Likewise.
4564 * m68klinux-tdep.c: Likewise.
4565 * m88k-tdep.c: Likewise.
4566 * machoread.c: Likewise.
4567 * macrocmd.c: Likewise.
4568 * main.c: Likewise.
4569 * mdebugread.c: Likewise.
4570 * mem-break.c: Likewise.
4571 * memattr.c: Likewise.
4572 * memory-map.c: Likewise.
4573 * mep-tdep.c: Likewise.
4574 * mi/mi-cmd-break.c: Likewise.
4575 * mi/mi-cmd-disas.c: Likewise.
4576 * mi/mi-cmd-env.c: Likewise.
4577 * mi/mi-cmd-stack.c: Likewise.
4578 * mi/mi-cmd-var.c: Likewise.
4579 * mi/mi-cmds.c: Likewise.
4580 * mi/mi-console.c: Likewise.
4581 * mi/mi-getopt.c: Likewise.
4582 * mi/mi-interp.c: Likewise.
4583 * mi/mi-main.c: Likewise.
4584 * mi/mi-parse.c: Likewise.
4585 * microblaze-rom.c: Likewise.
4586 * microblaze-tdep.c: Likewise.
4587 * mingw-hdep.c: Likewise.
4588 * minidebug.c: Likewise.
4589 * minsyms.c: Likewise.
4590 * mips-irix-tdep.c: Likewise.
4591 * mips-linux-tdep.c: Likewise.
4592 * mips-tdep.c: Likewise.
4593 * mips64obsd-tdep.c: Likewise.
4594 * mipsnbsd-tdep.c: Likewise.
4595 * mipsread.c: Likewise.
4596 * mn10300-linux-tdep.c: Likewise.
4597 * mn10300-tdep.c: Likewise.
4598 * monitor.c: Likewise.
4599 * moxie-tdep.c: Likewise.
4600 * mt-tdep.c: Likewise.
4601 * nat/linux-btrace.c: Likewise.
4602 * nat/linux-osdata.c: Likewise.
4603 * nat/linux-procfs.c: Likewise.
4604 * nat/linux-ptrace.c: Likewise.
4605 * nat/linux-waitpid.c: Likewise.
4606 * nbsd-tdep.c: Likewise.
4607 * nios2-linux-tdep.c: Likewise.
4608 * nto-procfs.c: Likewise.
4609 * nto-tdep.c: Likewise.
4610 * objc-lang.c: Likewise.
4611 * objfiles.c: Likewise.
4612 * opencl-lang.c: Likewise.
4613 * osabi.c: Likewise.
4614 * osdata.c: Likewise.
4615 * p-exp.y: Likewise.
4616 * p-lang.c: Likewise.
4617 * p-typeprint.c: Likewise.
4618 * parse.c: Likewise.
4619 * posix-hdep.c: Likewise.
4620 * ppc-linux-nat.c: Likewise.
4621 * ppc-sysv-tdep.c: Likewise.
4622 * ppcfbsd-tdep.c: Likewise.
4623 * ppcnbsd-tdep.c: Likewise.
4624 * ppcobsd-tdep.c: Likewise.
4625 * printcmd.c: Likewise.
4626 * procfs.c: Likewise.
4627 * prologue-value.c: Likewise.
4628 * python/py-auto-load.c: Likewise.
4629 * python/py-gdb-readline.c: Likewise.
4630 * ravenscar-thread.c: Likewise.
4631 * regcache.c: Likewise.
4632 * registry.c: Likewise.
4633 * remote-fileio.c: Likewise.
4634 * remote-m32r-sdi.c: Likewise.
4635 * remote-mips.c: Likewise.
4636 * remote-notif.c: Likewise.
4637 * remote-sim.c: Likewise.
4638 * remote.c: Likewise.
4639 * reverse.c: Likewise.
4640 * rs6000-aix-tdep.c: Likewise.
4641 * ser-base.c: Likewise.
4642 * ser-go32.c: Likewise.
4643 * ser-mingw.c: Likewise.
4644 * ser-pipe.c: Likewise.
4645 * ser-tcp.c: Likewise.
4646 * ser-unix.c: Likewise.
4647 * serial.c: Likewise.
4648 * sh-tdep.c: Likewise.
4649 * sh64-tdep.c: Likewise.
4650 * shnbsd-tdep.c: Likewise.
4651 * skip.c: Likewise.
4652 * sol-thread.c: Likewise.
4653 * solib-dsbt.c: Likewise.
4654 * solib-frv.c: Likewise.
4655 * solib-osf.c: Likewise.
4656 * solib-som.c: Likewise.
4657 * solib-spu.c: Likewise.
4658 * solib-target.c: Likewise.
4659 * solib.c: Likewise.
4660 * somread.c: Likewise.
4661 * source.c: Likewise.
4662 * sparc-nat.c: Likewise.
4663 * sparc-sol2-tdep.c: Likewise.
4664 * sparc-tdep.c: Likewise.
4665 * sparc64-tdep.c: Likewise.
4666 * sparc64fbsd-tdep.c: Likewise.
4667 * sparc64nbsd-tdep.c: Likewise.
4668 * sparcnbsd-tdep.c: Likewise.
4669 * spu-linux-nat.c: Likewise.
4670 * spu-multiarch.c: Likewise.
4671 * spu-tdep.c: Likewise.
4672 * stabsread.c: Likewise.
4673 * stack.c: Likewise.
4674 * std-regs.c: Likewise.
4675 * symfile.c: Likewise.
4676 * symmisc.c: Likewise.
4677 * symtab.c: Likewise.
4678 * target.c: Likewise.
4679 * thread.c: Likewise.
4680 * tilegx-linux-nat.c: Likewise.
4681 * tilegx-tdep.c: Likewise.
4682 * top.c: Likewise.
4683 * tracepoint.c: Likewise.
4684 * tui/tui-command.c: Likewise.
4685 * tui/tui-data.c: Likewise.
4686 * tui/tui-disasm.c: Likewise.
4687 * tui/tui-file.c: Likewise.
4688 * tui/tui-layout.c: Likewise.
4689 * tui/tui-out.c: Likewise.
4690 * tui/tui-regs.c: Likewise.
4691 * tui/tui-source.c: Likewise.
4692 * tui/tui-stack.c: Likewise.
4693 * tui/tui-win.c: Likewise.
4694 * tui/tui-windata.c: Likewise.
4695 * tui/tui-winsource.c: Likewise.
4696 * typeprint.c: Likewise.
4697 * ui-file.c: Likewise.
4698 * ui-out.c: Likewise.
4699 * user-regs.c: Likewise.
4700 * utils.c: Likewise.
4701 * v850-tdep.c: Likewise.
4702 * valarith.c: Likewise.
4703 * valops.c: Likewise.
4704 * valprint.c: Likewise.
4705 * value.c: Likewise.
4706 * varobj.c: Likewise.
4707 * vax-tdep.c: Likewise.
4708 * vaxnbsd-tdep.c: Likewise.
4709 * vaxobsd-tdep.c: Likewise.
4710 * windows-nat.c: Likewise.
4711 * xcoffread.c: Likewise.
4712 * xml-support.c: Likewise.
4713 * xstormy16-tdep.c: Likewise.
4714 * xtensa-linux-nat.c: Likewise.
4715
dccbb609
GB
47162014-08-07 Gary Benson <gbenson@redhat.com>
4717
4718 * common/common-defs.h: Include gdb_assert.h.
4719 * aarch64-tdep.c: Do not include gdb_assert.h.
4720 * addrmap.c: Likewise.
4721 * aix-thread.c: Likewise.
4722 * alpha-linux-tdep.c: Likewise.
4723 * alpha-mdebug-tdep.c: Likewise.
4724 * alphanbsd-tdep.c: Likewise.
4725 * amd64-nat.c: Likewise.
4726 * amd64-tdep.c: Likewise.
4727 * amd64bsd-nat.c: Likewise.
4728 * amd64fbsd-nat.c: Likewise.
4729 * amd64fbsd-tdep.c: Likewise.
4730 * amd64nbsd-nat.c: Likewise.
4731 * amd64nbsd-tdep.c: Likewise.
4732 * amd64obsd-nat.c: Likewise.
4733 * amd64obsd-tdep.c: Likewise.
4734 * arch-utils.c: Likewise.
4735 * arm-tdep.c: Likewise.
4736 * armbsd-tdep.c: Likewise.
4737 * auxv.c: Likewise.
4738 * bcache.c: Likewise.
4739 * bfin-tdep.c: Likewise.
4740 * blockframe.c: Likewise.
4741 * breakpoint.c: Likewise.
4742 * bsd-kvm.c: Likewise.
4743 * bsd-uthread.c: Likewise.
4744 * buildsym.c: Likewise.
4745 * c-exp.y: Likewise.
4746 * c-lang.c: Likewise.
4747 * charset.c: Likewise.
4748 * cleanups.c: Likewise.
4749 * cli-out.c: Likewise.
4750 * cli/cli-decode.c: Likewise.
4751 * cli/cli-dump.c: Likewise.
4752 * cli/cli-logging.c: Likewise.
4753 * cli/cli-script.c: Likewise.
4754 * cli/cli-utils.c: Likewise.
4755 * coffread.c: Likewise.
4756 * common/common-utils.c: Likewise.
4757 * common/queue.h: Likewise.
4758 * common/signals.c: Likewise.
4759 * common/vec.h: Likewise.
4760 * complaints.c: Likewise.
4761 * completer.c: Likewise.
4762 * corelow.c: Likewise.
4763 * cp-abi.c: Likewise.
4764 * cp-name-parser.y: Likewise.
4765 * cp-namespace.c: Likewise.
4766 * cp-support.c: Likewise.
4767 * cris-tdep.c: Likewise.
4768 * dbxread.c: Likewise.
4769 * dictionary.c: Likewise.
4770 * doublest.c: Likewise.
4771 * dsrec.c: Likewise.
4772 * dummy-frame.c: Likewise.
4773 * dwarf2-frame-tailcall.c: Likewise.
4774 * dwarf2-frame.c: Likewise.
4775 * dwarf2expr.c: Likewise.
4776 * dwarf2loc.c: Likewise.
4777 * dwarf2read.c: Likewise.
4778 * eval.c: Likewise.
4779 * event-loop.c: Likewise.
4780 * exceptions.c: Likewise.
4781 * expprint.c: Likewise.
4782 * f-valprint.c: Likewise.
4783 * fbsd-nat.c: Likewise.
4784 * findvar.c: Likewise.
4785 * frame-unwind.c: Likewise.
4786 * frame.c: Likewise.
4787 * frv-tdep.c: Likewise.
4788 * gcore.c: Likewise.
4789 * gdb-dlfcn.c: Likewise.
4790 * gdb_bfd.c: Likewise.
4791 * gdbarch.c: Likewise.
4792 * gdbarch.sh: Likewise.
4793 * gdbtypes.c: Likewise.
4794 * gnu-nat.c: Likewise.
4795 * gnu-v3-abi.c: Likewise.
4796 * go-lang.c: Likewise.
4797 * guile/scm-exception.c: Likewise.
4798 * guile/scm-gsmob.c: Likewise.
4799 * guile/scm-lazy-string.c: Likewise.
4800 * guile/scm-math.c: Likewise.
4801 * guile/scm-pretty-print.c: Likewise.
4802 * guile/scm-safe-call.c: Likewise.
4803 * guile/scm-utils.c: Likewise.
4804 * guile/scm-value.c: Likewise.
4805 * h8300-tdep.c: Likewise.
4806 * hppa-hpux-nat.c: Likewise.
4807 * hppa-tdep.c: Likewise.
4808 * hppanbsd-tdep.c: Likewise.
4809 * hppaobsd-tdep.c: Likewise.
4810 * i386-darwin-nat.c: Likewise.
4811 * i386-darwin-tdep.c: Likewise.
4812 * i386-nto-tdep.c: Likewise.
4813 * i386-tdep.c: Likewise.
4814 * i386bsd-nat.c: Likewise.
4815 * i386fbsd-tdep.c: Likewise.
4816 * i386gnu-nat.c: Likewise.
4817 * i386nbsd-tdep.c: Likewise.
4818 * i386obsd-tdep.c: Likewise.
4819 * i387-tdep.c: Likewise.
4820 * ia64-libunwind-tdep.c: Likewise.
4821 * ia64-tdep.c: Likewise.
4822 * inf-ptrace.c: Likewise.
4823 * inf-ttrace.c: Likewise.
4824 * infcall.c: Likewise.
4825 * infcmd.c: Likewise.
4826 * infrun.c: Likewise.
4827 * inline-frame.c: Likewise.
4828 * interps.c: Likewise.
4829 * jv-lang.c: Likewise.
4830 * jv-typeprint.c: Likewise.
4831 * linux-fork.c: Likewise.
4832 * linux-nat.c: Likewise.
4833 * linux-thread-db.c: Likewise.
4834 * m32c-tdep.c: Likewise.
4835 * m32r-linux-nat.c: Likewise.
4836 * m32r-tdep.c: Likewise.
4837 * m68k-tdep.c: Likewise.
4838 * m68kbsd-nat.c: Likewise.
4839 * m68kbsd-tdep.c: Likewise.
4840 * m88k-tdep.c: Likewise.
4841 * machoread.c: Likewise.
4842 * macroexp.c: Likewise.
4843 * macrotab.c: Likewise.
4844 * maint.c: Likewise.
4845 * mdebugread.c: Likewise.
4846 * memory-map.c: Likewise.
4847 * mep-tdep.c: Likewise.
4848 * mi/mi-common.c: Likewise.
4849 * microblaze-tdep.c: Likewise.
4850 * mingw-hdep.c: Likewise.
4851 * mips-linux-nat.c: Likewise.
4852 * mips-linux-tdep.c: Likewise.
4853 * mips-tdep.c: Likewise.
4854 * mips64obsd-tdep.c: Likewise.
4855 * mipsnbsd-tdep.c: Likewise.
4856 * mn10300-linux-tdep.c: Likewise.
4857 * mn10300-tdep.c: Likewise.
4858 * moxie-tdep.c: Likewise.
4859 * mt-tdep.c: Likewise.
4860 * nat/linux-btrace.c: Likewise.
4861 * nat/linux-osdata.c: Likewise.
4862 * nat/linux-ptrace.c: Likewise.
4863 * nat/mips-linux-watch.c: Likewise.
4864 * nios2-linux-tdep.c: Likewise.
4865 * nios2-tdep.c: Likewise.
4866 * objc-lang.c: Likewise.
4867 * objfiles.c: Likewise.
4868 * obsd-nat.c: Likewise.
4869 * opencl-lang.c: Likewise.
4870 * osabi.c: Likewise.
4871 * parse.c: Likewise.
4872 * ppc-linux-nat.c: Likewise.
4873 * ppc-sysv-tdep.c: Likewise.
4874 * ppcfbsd-nat.c: Likewise.
4875 * ppcfbsd-tdep.c: Likewise.
4876 * ppcnbsd-nat.c: Likewise.
4877 * ppcnbsd-tdep.c: Likewise.
4878 * ppcobsd-nat.c: Likewise.
4879 * ppcobsd-tdep.c: Likewise.
4880 * printcmd.c: Likewise.
4881 * procfs.c: Likewise.
4882 * prologue-value.c: Likewise.
4883 * psymtab.c: Likewise.
4884 * python/py-lazy-string.c: Likewise.
4885 * python/py-value.c: Likewise.
4886 * regcache.c: Likewise.
4887 * reggroups.c: Likewise.
4888 * registry.c: Likewise.
4889 * remote-sim.c: Likewise.
4890 * remote.c: Likewise.
4891 * rs6000-aix-tdep.c: Likewise.
4892 * rs6000-tdep.c: Likewise.
4893 * s390-linux-tdep.c: Likewise.
4894 * score-tdep.c: Likewise.
4895 * ser-base.c: Likewise.
4896 * ser-mingw.c: Likewise.
4897 * sh-tdep.c: Likewise.
4898 * sh64-tdep.c: Likewise.
4899 * solib-darwin.c: Likewise.
4900 * solib-spu.c: Likewise.
4901 * solib-svr4.c: Likewise.
4902 * source.c: Likewise.
4903 * sparc-nat.c: Likewise.
4904 * sparc-sol2-tdep.c: Likewise.
4905 * sparc-tdep.c: Likewise.
4906 * sparc64-sol2-tdep.c: Likewise.
4907 * sparc64-tdep.c: Likewise.
4908 * sparc64fbsd-tdep.c: Likewise.
4909 * sparc64nbsd-tdep.c: Likewise.
4910 * sparc64obsd-tdep.c: Likewise.
4911 * sparcnbsd-tdep.c: Likewise.
4912 * sparcobsd-tdep.c: Likewise.
4913 * spu-multiarch.c: Likewise.
4914 * spu-tdep.c: Likewise.
4915 * stabsread.c: Likewise.
4916 * stack.c: Likewise.
4917 * symfile.c: Likewise.
4918 * symtab.c: Likewise.
4919 * target-descriptions.c: Likewise.
4920 * target-memory.c: Likewise.
4921 * target.c: Likewise.
4922 * tic6x-linux-tdep.c: Likewise.
4923 * tic6x-tdep.c: Likewise.
4924 * tilegx-linux-nat.c: Likewise.
4925 * tilegx-tdep.c: Likewise.
4926 * top.c: Likewise.
4927 * tramp-frame.c: Likewise.
4928 * tui/tui-out.c: Likewise.
4929 * tui/tui-winsource.c: Likewise.
4930 * ui-out.c: Likewise.
4931 * user-regs.c: Likewise.
4932 * utils.c: Likewise.
4933 * v850-tdep.c: Likewise.
4934 * valops.c: Likewise.
4935 * value.c: Likewise.
4936 * varobj.c: Likewise.
4937 * vax-nat.c: Likewise.
4938 * xml-syscall.c: Likewise.
4939 * xml-tdesc.c: Likewise.
4940 * xstormy16-tdep.c: Likewise.
4941 * xtensa-linux-nat.c: Likewise.
4942 * xtensa-tdep.c: Likewise.
4943
e76df0d0
GB
49442014-08-07 Gary Benson <gbenson@redhat.com>
4945
4946 * common/common-defs.h: Include common-utils.h.
4947 * defs.h: Do not include common-utils.h.
4948 * common/gdb_assert.h: Likewise.
4949 * darwin-nat.h: Likewise.
4950 * nat/linux-btrace.c: Likewise.
4951 * target/waitstatus.h: Likewise.
4952
4cb9c816
GB
49532014-08-07 Gary Benson <gbenson@redhat.com>
4954
4955 * common/common-defs.h: Include ptid.h.
4956 * defs.h: Do not include ptid.h.
4957 * inferior.h: Likewise.
4958 * infrun.h: Likewise.
4959 * nat/linux-btrace.h: Likewise.
4960 * nat/linux-osdata.h: Likewise.
4961 * target/waitstatus.h: Likewise.
4962
3995eeee
GB
49632014-08-07 Gary Benson <gbenson@redhat.com>
4964
4965 * common/common-defs.h: Include gdb_locale.h.
4966 * defs.h: Do not include gdb_locale.h.
4967
cb9f1a9b
GB
49682014-08-07 Gary Benson <gbenson@redhat.com>
4969
4970 * common/common-defs.h: Include gdb/signals.h.
4971 * defs.h: Do not include gdb/signals.h.
4972
a5fceff8
GB
49732014-08-07 Gary Benson <gbenson@redhat.com>
4974
4975 * common/common-defs.h: Include pathmax.h.
4976 * defs.h: Do not include pathmax.h.
4977
b9391142
GB
49782014-08-07 Gary Benson <gbenson@redhat.com>
4979
4980 * common/common-defs.h: Include libiberty.h.
4981 * defs.h: Do not include libiberty.h.
4982 * common/queue.h: Likewise.
4983 * cp-name-parser.y: Likewise.
4984 * mi/mi-cmd-catch.c: Likewise.
4985 * python/python.c: Likewise.
4986
0e443c87
GB
49872014-08-07 Gary Benson <gbenson@redhat.com>
4988
4989 * common/common-defs.h: Include ansidecl.h.
4990 * defs.h: Do not include ansidecl.h.
4991 * common/buffer.h: Likewise.
4992 * common/common-utils.h: Likewise.
4993
8ebb3f56
GB
49942014-08-07 Gary Benson <gbenson@redhat.com>
4995
4996 * common/common-defs.h: Include stddef.h.
4997 * defs.h: Do not include stddef.h.
4998 * common/common-utils.h: Likewise.
4999 * amd64fbsd-nat.c: Likewise.
5000 * bcache.c: Likewise.
5001 * charset.c: Likewise.
5002 * common/buffer.h: Likewise.
5003 * common/vec.h: Likewise.
5004 * i386bsd-nat.c: Likewise.
5005 * nat/linux-btrace.h: Likewise.
5006 * ppcfbsd-nat.c: Likewise.
5007 * ppcnbsd-tdep.h: Likewise.
5008 * ppcobsd-nat.c: Likewise.
5009 * ppcobsd-tdep.h: Likewise.
5010 * python/py-gdb-readline.c: Likewise.
5011
8980bdf6
GB
50122014-08-07 Gary Benson <gbenson@redhat.com>
5013
5014 * common/common-defs.h: Include stdarg.h.
5015 * defs.h: Do not include stdarg.h.
5016 * ada-lang.c: Likewise.
5017 * common/common-utils.h: Likewise.
5018 * guile/scm-string.c: Likewise.
5019 * guile/scm-utils.c: Likewise.
5020 * m32c-tdep.c: Likewise.
5021
d7096f71
GB
50222014-08-07 Gary Benson <gbenson@redhat.com>
5023
5024 * common/common-defs.h: Include stdlib.h.
5025 * defs.h: Do not include stdlib.h.
5026 * addrmap.c: Likewise.
5027 * bcache.c: Likewise.
5028 * common/buffer.c: Likewise.
5029 * common/common-utils.c: Likewise.
5030 * cp-name-parser.y: Likewise.
5031 * go32-nat.c: Likewise.
5032 * mn10300-linux-tdep.c: Likewise.
5033 * nat/linux-osdata.c: Likewise.
5034 * tui/tui.c: Likewise.
5035 * windows-nat.c: Likewise.
5036
d02f550d
GB
50372014-08-07 Gary Benson <gbenson@redhat.com>
5038
5039 * common/common-defs.h: Include stdio.h.
5040 * defs.h: Do not include stdio.h.
5041 * ada-lang.c: Likewise.
5042 * common/buffer.c: Likewise.
5043 * common/common-utils.c: Likewise.
5044 * cp-name-parser.y: Likewise.
5045 * gnu-nat.c: Likewise.
5046 * go32-nat.c: Likewise.
5047 * i386gnu-nat.c: Likewise.
5048 * proc-api.c: Likewise.
5049 * proc-events.c: Likewise.
5050 * proc-flags.c: Likewise.
5051 * proc-why.c: Likewise.
5052 * python/python-internal.h: Likewise.
5053 * target-memory.c: Likewise.
5054 * tui/tui-io.c: Likewise.
5055 * tui/tui.c: Likewise.
5056
b6d7a4bf
SM
50572014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5058
5059 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5060 (scan_dyntag_auxv): Same.
5061
af19829b
YQ
50622014-08-06 Yao Qi <yao@codesourcery.com>
5063
5064 * amd64-linux-nat.c: Remove duplicated include
5065 "x86-linux-nat.h".
5066 * i386-linux-nat.c: Likewise.
5067
8e07a239
YQ
50682014-08-06 Yao Qi <yao@codesourcery.com>
5069
5070 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5071 operand" with "Special opcode" in comments.
5072
7bfe8241
GB
50732014-08-05 Gary Benson <gbenson@redhat.com>
5074
5075 * interps.c (initialize_interps): Remove prototype.
5076 (interpreter_initialized): Remove static global.
5077 (interp_add): Do not call initialize_interps.
5078 (initialize_interps): Remove function.
5079
d6c95504
GB
50802014-08-05 Gary Benson <gbenson@redhat.com>
5081
5082 * utils.c (vwarning): Remove spurious va_end.
5083
241fd515
AM
50842014-08-05 Alan Modra <amodra@gmail.com>
5085
5086 * charset.c (convert_between_encodings): Cast result of obstack_base.
5087 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5088 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5089 (read_unwind_info): Use size_t for some locals.
5090 * jit.c (finalize_symtab): Likewise.
5091 * utils.c (hashtab_obstack_allocate): Likewise.
5092 * symmisc.c (print_objfile_statistics): Update format strings.
5093
dc304a94
JK
50942014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5095
5096 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5097 (Changes in GDB 7.8): ... here.
5098
3cecbbbe
TT
50992014-08-04 Tom Tromey <tromey@redhat.com>
5100
5101 * target.c (set_targetdebug): New function.
5102 (initialize_targets): Pass set_targetdebug when creating "set
5103 debug target".
5104
6908c509
JB
51052014-08-01 Joel Brobecker <brobecker@adacore.com>
5106
5107 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5108 if detecting a variable-sized field that is not the last field.
5109 Fix struct type length computation.
5110
53e8f97d
JB
51112014-08-01 Joel Brobecker <brobecker@adacore.com>
5112
5113 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5114 Add debug trace.
5115
e068c55d
JB
51162014-08-01 Joel Brobecker <brobecker@adacore.com>
5117
5118 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5119 Remove "+ 8" offset in computation of CHAIN_VMA.
5120
4d4ca2a1
DE
51212014-07-31 Doug Evans <dje@google.com>
5122
5123 * inflow.c (child_terminal_inferior): Add comment.
5124 (child_terminal_ours_for_output): Add comment.
5125 (child_terminal_ours): Add comment.
5126 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5127 (linux_nat_terminal_ours): Add comment.
5128
462f517e
GB
51292014-07-31 Gary Benson <gbenson@redhat.com>
5130
5131 * common/btrace-common.h: Do not include defs.h or server.h.
5132 * nat/mips-linux-watch.h: Likewise.
5133 * gdb-dlfcn.h: Do not include defs.h.
5134 * tracefile.h: Likewise.
5135
74228e77
RM
51362014-07-30 Roland McGrath <mcgrathr@google.com>
5137
5138 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5139
014f9477
TT
51402014-07-30 Tom Tromey <tromey@redhat.com>
5141
5142 * bsd-kvm.c (bsd_kvm_open): Constify.
5143 * corelow.c (core_open): Constify.
5144 * ctf.c (ctf_open): Constify.
5145 * dbug-rom.c (dbug_open): Constify.
5146 * exec.c (exec_open): Constify.
5147 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5148 * microblaze-rom.c (picobug_open): Constify.
5149 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5150 Constify.
5151 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5152 * record-btrace.c (record_btrace_open): Constify.
5153 * record-full.c (record_full_core_open_1, record_full_open_1)
5154 (record_full_open): Constify.
5155 * remote-m32r-sdi.c (m32r_open): Constify.
5156 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5157 (rockhopper_open, lsi_open): Constify.
5158 * remote-sim.c (gdbsim_open): Constify.
5159 * remote.c (remote_open, extended_remote_open, remote_open_1):
5160 Constify.
5161 * target.h (struct target_ops) <to_open>: Make "arg" const.
5162 * tracefile-tfile.c (tfile_open): Constify.
5163
e799154c
TT
51642014-07-30 Tom Tromey <tromey@redhat.com>
5165
5166 * breakpoint.c (map_breakpoint_numbers): Update.
5167 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5168 (get_number_const): New function.
5169 (get_number): Rewrite using get_number_const.
5170 (init_number_or_range): Make "string" const.
5171 (number_is_in_list): Make "list" const.
5172 * cli/cli-utils.h (get_number_const): Declare.
5173 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5174 (init_number_or_range, number_is_in_list): Update.
5175 * printcmd.c (map_display_numbers): Update.
5176 * value.c (value_from_history_ref): Constify.
5177 * value.h (value_from_history_ref): Update.
5178
5f08566b
TT
51792014-07-30 Tom Tromey <tromey@redhat.com>
5180
5181 * corefile.c (hook_type, call_extra_exec_file_hooks)
5182 (specify_exec_file_hook): Constify.
5183 * exec.c (exec_file_attach): Make "filename" const.
5184 * gdbcore.h (deprecated_exec_file_display_hook)
5185 (specify_exec_file_hook, exec_file_attach): Constify.
5186 * main.c (captured_main): Use catch_command_errors_const.
5187
8981c758
TT
51882014-07-30 Tom Tromey <tromey@redhat.com>
5189
5190 * target.c (open_target): New function.
5191 (add_target_with_completer, add_deprecated_target_alias): Use
5192 set_cmd_sfunc, set_cmd_context.
5193 (debug_to_open): Remove.
5194 (setup_target_debug): Update.
5195
a1c7835a
YQ
51962014-07-30 Yao Qi <yao@codesourcery.com>
5197
5198 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5199 comments.
5200 * parse.c (exp_iterate): Update comments.
5201
976411d6
GB
52022014-07-30 Gary Benson <gbenson@redhat.com>
5203
5204 * common/common-defs.h: New file.
5205 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5206 * defs.h: Include common-defs.h.
5207 Do not include config.h or build-gnulib/config.h.
5208
5d4848a4
GB
52092014-07-30 Gary Benson <gbenson@redhat.com>
5210
5211 * common/common-utils.h: Do not include config.h.
5212 * nat/linux-btrace.h: Likewise.
5213
d41f6d8e
GB
52142014-07-30 Gary Benson <gbenson@redhat.com>
5215
5216 * btrace.c: Include defs.h.
5217 * common/ptid.c: Include defs.h or server.h as appropriate.
5218 * nat/mips-linux-watch.c: Likewise.
5219
84202f9c
TT
52202014-07-29 Tom Tromey <tromey@redhat.com>
5221
5222 * target.c (target_is_pushed): Simplify.
5223
2530441c
JB
52242014-07-29 Joel Brobecker <brobecker@adacore.com>
5225
5226 GDB 7.8 released.
5227
7e09a223
YQ
52282014-07-29 Yao Qi <yao@codesourcery.com>
5229
5230 PR gdb/17206
5231 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5232
7ebdbe92
DE
52332014-07-28 Doug Evans <xdje42@gmail.com>
5234
5235 PR guile/17203
5236 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5237 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5238 parameters.
5239
f347ffc9
WN
52402014-07-28 Will Newton <will.newton@linaro.org>
5241
5242 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5243 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5244 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5245 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5246 (THUMB2_EABI_SYSCALL): Likewise.
5247 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5248 struct tramp_frame.
5249 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5250 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5251
37c5f1f7
DE
52522014-07-27 Doug Evans <xdje42@gmail.com>
5253
5254 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5255
0c3abbc7
DE
52562014-07-27 Doug Evans <xdje42@gmail.com>
5257
5258 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5259
e76c5d17
DE
52602014-07-26 Ludovic Courtès <ludo@gnu.org>
5261 Doug Evans <xdje42@gmail.com>
5262
5263 PR guile/17146
5264 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5265 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5266 * configure.ac: Try to use guild to compile an scm file, if it fails
5267 then disable guile support.
5268 * configure: Regenerate.
5269 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5270 GUILE_FILE_LIST.
5271 (GUILE_COMPILED_FILES): New variable.
5272 (GUILE_FILES) Update.
5273 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5274 (stamp-guile): Compile scm files.
5275 * guile/guile.c (boot_guile_support): New function.
5276 (standard_throw_args_p): New function.
5277 (print_standard_throw_error, print_throw_error): New functions.
5278 (handle_boot_error): New function.
5279 (initialize_scheme_side): Rewrite to call boot_guile_support.
5280 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5281 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5282
186fcde0
DE
52832014-07-26 Ludovic Courtès <ludo@gnu.org>
5284 Doug Evans <xdje42@gmail.com>
5285
5286 PR guile/17146
5287 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5288 * guile/lib/gdb/support.scm: New file.
5289 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5290 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5291 All uses updated.
5292 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5293 All uses updated.
5294 (%assert-type): Ditto, and renamed to assert-type.
5295 (%exception-print-style): Delete.
5296
4df42755
DE
52972014-07-26 Doug Evans <xdje42@gmail.com>
5298
5299 PR build/17105
5300 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5301 * configure: Regenerate.
5302 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5303 PYTHON_FILES.
5304 (PYTHON_FILES): New variable.
5305 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5306 (GUILE_FILES): New variable.
5307 (stamp-python, install-python, uninstall-python): Handle empty
5308 file list.
5309 (stamp-guile, install-guile, uninstall-guile): Ditto.
5310
ee7333ae
DE
53112014-07-26 Doug Evans <xdje42@gmail.com>
5312
5313 PR guile/17177
5314 * guile/lib/gdb.scm (pretty-printers): Export.
5315 (set-pretty-printers!): Export.
5316 * guile/lib/gdb/printing.scm (gdb module): Update.
5317 (prepend-pretty-printer!, append-pretty-printer!): Update.
5318 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5319 (pretty_printer_list_var): Delete.
5320 (pretty_printer_list): New static global.
5321 (gdbscm_pretty_printers): New function.
5322 (gdbscm_set_pretty_printers_x): New function.
5323 (ppscm_find_pretty_printer_from_gdb): Update.
5324 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5325 (gdbscm_initialize_pretty_printers): Update.
5326
74edf516
DE
53272014-07-26 Doug Evans <xdje42@gmail.com>
5328
5329 PR 17185
5330 * configure.ac: Add check for header gc/gc.h.
5331 Add check for function setenv.
5332 * configure: Regenerate.
5333 * config.in: Regenerate.
5334 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5335
d54398a7
MR
53362014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5337
5338 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5339 variation in gdbarch matching.
5340
ab16fce8
TT
53412014-07-25 Tom Tromey <tromey@redhat.com>
5342
5343 * exec.c (using_exec_ops): Remove.
5344 (exec_close_1): Update. Remove extraneous block, reindent.
5345 (add_target_sections): Use target_is_pushed.
5346
88056fbb
PA
53472014-07-25 Pedro Alves <palves@redhat.com>
5348
5349 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5350 * monitor.c (monitor_create_inferior): Likewise.
5351 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5352 * remote-sim.c (gdbsim_create_inferior): Likewise.
5353 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5354 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5355 * windows-nat.c (do_initial_windows_stuff): Likewise.
5356
70509625
PA
53572014-07-25 Pedro Alves <palves@redhat.com>
5358
5359 * NEWS: Mention signal passing and "signal" command changes.
5360 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5361 comment.
5362 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5363 call.
5364 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5365 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5366 (jump_command): Adjust clear_proceed_status call.
5367 (signal_command): Warn if other thread that are resumed have
5368 signals that will be delivered. Adjust clear_proceed_status call.
5369 (until_next_command, finish_command)
5370 (proceed_after_attach_callback, attach_command_post_wait)
5371 (attach_command): Adjust clear_proceed_status call.
5372 * infrun.c (proceed_after_vfork_done): Likewise.
5373 (proceed_after_attach_callback): Adjust comment.
5374 (clear_proceed_status_thread): Clear stop_signal if not in pass
5375 state.
5376 (clear_proceed_status_callback): Delete.
5377 (clear_proceed_status): New 'step' parameter. Only clear the
5378 proceed status of threads the command being prepared is about to
5379 resume.
5380 (proceed): If passed in an explicit signal, override stop_signal
5381 with it. Don't pass the last stop signal to the thread we're
5382 resuming.
5383 (init_wait_for_inferior): Adjust clear_proceed_status call.
5384 (switch_back_to_stepped_thread): Clear the signal if it should not
5385 be passed.
5386 * infrun.h (clear_proceed_status): New 'step' parameter.
5387 (user_visible_resume_ptid): Add comment.
5388 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5389 signal is in pass state.
5390 * remote.c (append_pending_thread_resumptions): Likewise.
5391 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5392
d8be2939
TT
53932014-07-25 Tom Tromey <tromey@redhat.com>
5394
5395 * target.h (target_stopped_data_address)
5396 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5397 parentheses.
5398
7d0d9d2b
PL
53992014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5400
5401 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5402 comments.
5403 (avr_pointer_to_address): Likewise.
5404
e9e7f724
TT
54052014-07-24 Tom Tromey <tromey@redhat.com>
5406
5407 * monitor.c (compile_pattern): Update.
5408 * target.h (struct target_ops) <to_shortname, to_longname,
5409 to_doc>: Now const.
5410
1947513d
TT
54112014-07-24 Tom Tromey <tromey@redhat.com>
5412
5413 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5414 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5415 (add_info_alias, add_com): Make "doc" const.
5416 (print_doc_line): Make "str" const.
5417 (delete_cmd): Update.
5418 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5419 (print_doc_line): Update.
5420 * cli/cli-script.c (document_command): Update.
5421 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5422 (add_com, add_info, add_info_alias): Update.
5423 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5424 * python/py-cmd.c (cmdpy_destroyer): Update.
5425
64e61d29
TT
54262014-07-24 Tom Tromey <tromey@redhat.com>
5427
5428 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5429 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5430 (help_cmd_list): Constify.
5431 (lookup_cmd): Update.
5432 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5433 const.
5434 (help_cmd_list, apropos_cmd): Update.
5435 * cli/cli-script.c (show_user): Update.
5436 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5437 * cli/cli-setshow.h (cmd_show_list): Update.
5438 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5439 (cmd_show_list): Update.
5440 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5441 * python/py-cmd.c (cmdpy_destroyer): Update.
5442
429e55ea
TT
54432014-07-24 Tom Tromey <tromey@redhat.com>
5444
5445 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5446 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5447 const.
5448 * command.h (deprecate_cmd): Update.
5449 * maint.c (maintenance_do_deprecate): Add casts.
5450
64669f3b
TT
54512014-07-24 Tom Tromey <tromey@redhat.com>
5452
5453 * cli/cli-decode.c (help_cmd): Make parameter "const".
5454 * cli/cli-decode.h (help_cmd): Update.
5455
d3d3328b
TT
54562014-07-24 Tom Tromey <tromey@redhat.com>
5457
5458 * stack.c (up_silently_base, down_silently_base): Make argument
5459 const.
5460
414842dc
TT
54612014-07-24 Tom Tromey <tromey@redhat.com>
5462
5463 * solib.c (solib_add): Make "pattern" const.
5464 * solib.h (solib_add): Update.
5465
baa336ce
TT
54662014-07-24 Tom Tromey <tromey@redhat.com>
5467
5468 * remote.c (remote_serial_open, print_packet, putpkt)
5469 (putpkt_binary): Constify.
5470 * remote.h (putpkt): Update.
5471
5a19e2d0
TT
54722014-07-24 Tom Tromey <tromey@redhat.com>
5473
5474 * monitor.c (monitor_open): Make "args" const.
5475 * monitor.h (monitor_open): Update.
5476
fc4baa5e
TT
54772014-07-24 Tom Tromey <tromey@redhat.com>
5478
5479 * maint.c (match_bfd_flags): Make "string" const.
5480 (print_bfd_section_info): Remove casts.
5481 (print_objfile_section_info): Make "string" const.
5482
0d5f0dbe
TT
54832014-07-24 Tom Tromey <tromey@redhat.com>
5484
5485 * inf-child.c (inf_child_open_target): Make "arg" const.
5486 * inf-child.h (inf_child_open_target): Update.
5487
41c77899
TT
54882014-07-24 Tom Tromey <tromey@redhat.com>
5489
5490 * environ.c (unset_in_environ): Make "var" const.
5491 * environ.h (unset_in_environ): Update.
5492
93db0d79
TT
54932014-07-24 Tom Tromey <tromey@redhat.com>
5494
5495 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5496 Make "cmd" const.
5497 (scan_filename_with_cleanup): Likewise.
5498 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5499 Make arguments const.
5500 (restore_command): Update.
5501
36d6eb95
PA
55022014-07-24 Pedro Alves <palves@redhat.com>
5503
5504 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5505
8009206a
TT
55062014-07-24 Tom Tromey <tromey@redhat.com>
5507 Gary Benson <gbenson@redhat.com>
5508
5509 * nat/linux-ptrace.c (additional_flags): New global.
5510 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5511 additional_flags; don't check GDBSERVER.
5512 (linux_ptrace_set_additional_flags): New function.
5513 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5514 Declare.
5515 * linux-nat.c (_initialize_linux_nat): Call
5516 linux_ptrace_set_additional_flags.
5517
a7068b60
TT
55182014-07-24 Tom Tromey <tromey@redhat.com>
5519
5520 * make-target-delegates (munge_type, write_debugmethod): New
5521 functions.
5522 (debug_names): New global.
5523 ($TARGET_DEBUG_PRINTER): New global.
5524 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5525 name.
5526 Write debug methods. Generate init_debug_target.
5527 * target-debug.h: New file.
5528 * target-delegates.c: Rebuild.
5529 * target.c: Include target-debug.h.
5530 (debug_target): Hoist definition.
5531 (target_kill, target_get_section_table, target_memory_map)
5532 (target_flash_erase, target_flash_done, target_detach)
5533 (target_disconnect, target_wait, target_resume)
5534 (target_pass_signals, target_program_signals, target_follow_fork)
5535 (target_mourn_inferior, target_search_memory)
5536 (target_thread_address_space, target_close)
5537 (target_find_new_threads, target_core_of_thread)
5538 (target_verify_memory, target_insert_mask_watchpoint)
5539 (target_remove_mask_watchpoint): Remove targetdebug code.
5540 (debug_to_post_attach, debug_to_prepare_to_store)
5541 (debug_to_files_info, debug_to_insert_breakpoint)
5542 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5543 (debug_to_region_ok_for_hw_watchpoint)
5544 (debug_to_can_accel_watchpoint_condition)
5545 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5546 (debug_to_watchpoint_addr_within_range)
5547 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5548 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5549 (debug_to_terminal_init, debug_to_terminal_inferior)
5550 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5551 (debug_to_terminal_save_ours, debug_to_terminal_info)
5552 (debug_to_load, debug_to_post_startup_inferior)
5553 (debug_to_insert_fork_catchpoint)
5554 (debug_to_remove_fork_catchpoint)
5555 (debug_to_insert_vfork_catchpoint)
5556 (debug_to_remove_vfork_catchpoint)
5557 (debug_to_insert_exec_catchpoint)
5558 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5559 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5560 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5561 (setup_target_debug): Call init_debug_target.
5562 * target.h (TARGET_DEBUG_PRINTER): New macro.
5563 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5564 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5565
2c51604d
GB
55662014-07-24 Gary Benson <gbenson@redhat.com>
5567
5568 * exceptions.h (throw_vfatal): Renamed to...
5569 (throw_vquit): New declaration.
5570 (throw_quit): Likewise.
5571 * exceptions.c (throw_vfatal): Renamed to...
5572 (throw_vquit): New function.
5573 (throw_quit): Likewise.
5574 (throw_error): Call throw_verror rather than throw_it.
5575 * utils.h (vfatal): Removed.
5576 (fatal): Likewise.
5577 * utils.c (vfatal): Removed.
5578 (fatal): Likewise.
5579 (internal_verror): Replaced call to fatal with call to throw_quit.
5580 (quit): Replaced calls to fatal with calls to throw_quit.
5581
34211963
ME
55822014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5583
5584 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5585 target_read_code.
5586
a52b4d3e
ME
55872014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5588
5589 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5590 less than zero in conditional expression.
5591
a8bdc56b
TT
55922014-07-23 Tom Tromey <tromey@redhat.com>
5593
5594 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5595 ($INTRO_PART): Don't match whitespace.
5596 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5597 argument matching.
5598 ($METHOD): Add $METHOD_TRAILER.
5599 (trim): Rewrite.
5600 (scan_target_h): New sub.
5601 Change main loop not to collect state.
5602 * target-delegates.c: Rebuild.
5603
91b52240
GB
56042014-07-23 Gary Benson <gbenson@redhat.com>
5605
5606 * cp-support.c (gdb_demangle): Fix build on systems without
5607 sigaltstack.
5608
45326f6f
JK
56092014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5610
5611 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5612 for reference entry value target data value.
5613
e214cf6c
JK
56142014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5615
5616 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5617 value_available_contents_eq.
5618
bddbbedd
PA
56192014-07-22 Pedro Alves <palves@redhat.com>
5620
5621 * value.c (allocate_optimized_out_value): Don't mark value as
5622 non-lazy.
5623
45c71484
JW
56242014-07-22 Jiong Wang <jiong.wang@arm.com>
5625
5626 * MAINTAINERS (Write After Approval): Update my email address.
5627
9597b22a
DE
56282014-07-20 Doug Evans <dje@google.com>
5629
5630 PR server/17147
5631 * remote.c (putpkt_binary): Add text to error message.
5632
91101fe5
YQ
56332014-07-20 Yao Qi <yao@codesourcery.com>
5634
5635 * eval.c: Remove "Chill" from comments.
5636 * gdbtypes.h: Likewise.
5637 * symtab.h: Likewise.
5638
c9402c95
YQ
56392014-07-20 Yao Qi <yao@codesourcery.com>
5640
5641 * std-operator.def: Update comments to TERNOP_SLICE.
5642
ae8fddda
YQ
56432014-07-20 Yao Qi <yao@codesourcery.com>
5644
5645 * std-operator.def: Remove BINOP_RANGE.
5646 * breakpoint.c (watchpoint_exp_is_const): Update.
5647 * expprint.c (dump_subexp_body_standard): Likewise.
5648 * eval.c (init_array_element): Remove dead code.
5649 (evaluate_subexp_standard): Likewise.
5650
9c816640
YQ
56512014-07-20 Yao Qi <yao@codesourcery.com>
5652
5653 * std-operator.def: Remove BINOP_IN.
5654 * breakpoint.c (watchpoint_exp_is_const): Update.
5655 * eval.c (evaluate_subexp_standard): Likewise.
5656 * expprint.c (dump_subexp_body_standard): Likewise.
5657
164224e9
ME
56582014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5659
5660 * microblaze-tdep.c (microblaze_register_names): Add
5661 the rshr and rslr register names.
5662 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5663 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5664 Use of tdesc_numbered_register. Use of
5665 microblaze_register_g_packet_guesses. Use of
5666 tdesc_use_registers. Use of set_gdbarch_register_type.
5667 (microblaze_register_g_packet_guesses): New.
5668 * microblaze-tdep.h (microblaze_reg_num): Add
5669 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5670 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5671 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5672 * features/microblaze-core.xml: New file.
5673 * features/microblaze-stack-protect.xml: New file.
5674 * features/microblaze-with-stack-protect.c: New file.
5675 * features/microblaze-with-stack-protect.xml: New file.
5676 * features/microblaze.xml: New file.
5677 * features/microblaze.c: New file.
5678 * features/Makefile (microblaze-with-stack-protect): Add
5679 microblaze-with-stack-protect microblaze and microblaze-expedite.
5680 * regformats/microblaze-with-stack-protect.dat: New file.
5681 * regformats/microblaze.dat: New file.
5682 * doc/gdb.texinfo (MicroBlaze Features): Added.
5683
e8b2341c
TT
56842014-07-18 Tom Tromey <tromey@redhat.com>
5685
5686 * exec.c (exec_ops): Now static.
5687 * exec.h (exec_ops): Don't declare.
5688
44e89118
TT
56892014-07-18 Tom Tromey <tromey@redhat.com>
5690
5691 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5692 to find_target_beneath.
5693 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5694 find_target_beneath.
5695 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5696
b0ed115f
TT
56972014-07-18 Tom Tromey <tromey@redhat.com>
5698
5699 PR gdb/17130:
5700 * utils.c (quit): Use target_supports_terminal_ours.
5701 * target.h (target_supports_terminal_ours): Declare.
5702 * target.c (target_supports_delete_record): Don't check
5703 to_delete_record against NULL.
5704 (target_supports_terminal_ours): New function.
5705
e75fdfca
TT
57062014-07-18 Tom Tromey <tromey@redhat.com>
5707
5708 PR gdb/17130:
5709 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5710 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5711 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5712 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5713 * windows-nat.c (windows_xfer_partial): Always delegate.
5714 * record-btrace.c (record_btrace_xfer_partial): Simplify
5715 delegation.
5716 (record_btrace_fetch_registers, record_btrace_store_registers)
5717 (record_btrace_prepare_to_store, record_btrace_resume)
5718 (record_btrace_wait, record_btrace_find_new_threads)
5719 (record_btrace_thread_alive): Likewise.
5720 * procfs.c (procfs_xfer_partial): Always delegate.
5721 * corelow.c (core_xfer_partial): Always delegate.
5722 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5723
83814951
TT
57242014-07-18 Tom Tromey <tromey@redhat.com>
5725
5726 * exec.c (exec_make_note_section): Move earlier.
5727
b8b8facf
DE
57282014-07-17 Doug Evans <dje@google.com>
5729
74b49205 5730 PR gdb/17170
b8b8facf
DE
5731 * maint.c (count_symtabs_and_blocks): Handle NULL
5732 current_program_space.
5733 (report_command_stats): Check global enabled flag in addition to
5734 recorded enabled flag.
5735 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5736
69ff6be5
PA
57372014-07-16 Pedro Alves <palves@redhat.com>
5738
5739 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5740
252db1b5
TT
57412014-07-16 Tom Tromey <tromey@redhat.com>
5742
5743 * target.h (struct target_ops) <to_delete_record>: Reformat
5744 comment.
5745
a432721e
TT
57462014-07-16 Tom Tromey <tromey@redhat.com>
5747
5748 * target-delegates.c: Rebuild.
5749
487d9753
PL
57502014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5751
5752 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5753 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5754 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5755 (avr_pointer_to_address): Likewise.
5756 (avr_address_class_type_flags): New function.
5757 (avr_address_class_type_flags_to_name): Likewise.
5758 (avr_address_class_name_to_type_flags): Likewise.
5759 (avr_gdbarch_init): Set address_class_type_flags,
5760 address_class_type_flags_to_name and
5761 address_class_name_to_type_flags.
5762
57745c90
PA
57632014-07-15 Pedro Alves <palves@redhat.com>
5764
5765 * linux-nat.c (kill_callback): Save errno and work with saved
5766 copy.
5767
2d40be18
SM
57682014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5769
5770 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5771
572f6555
EBM
57722014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5773
5774 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5775 breakpoint support correctly.
5776
cc1c52ad
PA
57772014-07-14 Pedro Alves <palves@redhat.com>
5778
5779 * utils.c (prompt_for_continue): Call target_terminal_ours.
5780
1e973570
PA
57812014-07-14 Pedro Alves <palves@redhat.com>
5782
5783 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5784 catch_errors. Don't re-enable stdin or notify observers where,
5785 and rethrow error.
5786 (fetch_inferior_event_wrapper): Delete.
5787
93d6eb10
PA
57882014-07-14 Pedro Alves <palves@redhat.com>
5789
5790 PR gdb/17072
5791 * top.c: Include "inf-loop.h".
5792 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5793 field.
5794 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5795 was async before.
5796 (gdb_readline_wrapper): Store whether the target is async, and
5797 make it sync.
5798
0017922d
PA
57992014-07-14 Pedro Alves <palves@redhat.com>
5800
5801 PR gdb/17072
5802 * top.c (gdb_readline_wrapper_line): Tweak comment.
5803 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5804 the input handler callback.
5805
94696ad3
PA
58062014-07-14 Pedro Alves <palves@redhat.com>
5807
5808 PR gdb/17072
5809 * main.c: Include event-top.h.
5810 (handle_command_errors): New function.
5811 (catch_command_errors, catch_command_errors_const): Use it.
5812
9d1e69a2
PA
58132014-07-14 Pedro Alves <palves@redhat.com>
5814
5815 * exceptions.c (catch_command_errors, catch_command_errors_const):
5816 Moved to main.c.
5817 * exceptions.h (catch_command_errors_ftype)
5818 (catch_command_errors_const_ftype): Moved to main.c.
5819 (catch_command_errors, catch_command_errors_const): Delete
5820 declarations.
5821 * main.c (catch_command_errors_ftype)
5822 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5823 (catch_command_errors, catch_command_errors_const)): Moved here
5824 from exceptions.c and make static.
5825
feefc97b
PA
58262014-07-14 Pedro Alves <palves@redhat.com>
5827
5828 * exceptions.c (print_any_exception): Delete.
5829 (catch_exceptions_with_msg): Use exception_print instead of
5830 print_any_exception.
5831 (catch_errors): Use exception_fprintf instead of
5832 print_any_exception.
5833 (catch_command_errors, catch_command_errors_const): Use
5834 exception_print instead of print_any_exception.
5835
c933f875
PA
58362014-07-14 Pedro Alves <palves@redhat.com>
5837
5838 * infcall.c (run_inferior_call): Set 'sync_execution' while
5839 running the inferior call.
5840
feb6f816
PA
58412014-07-14 Pedro Alves <palves@redhat.com>
5842
5843 * value.c (value_contents_equal): Delete function.
5844 * value.h (value_contents_equal): Delete declaration.
5845
d98b7a16
TT
58462014-07-14 Tom Tromey <tromey@redhat.com>
5847
5848 PR exp/17106:
5849 * gdbtypes.c (is_dynamic_type_internal): New function, from
5850 is_dynamic_type.
5851 (is_dynamic_type): Rewrite.
5852 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5853 (resolve_dynamic_struct): Likewise.
5854 (resolve_dynamic_type_internal): New function, from
5855 resolve_dynamic_type.
5856 (resolve_dynamic_type): Rewrite.
5857
548740d6
TT
58582014-07-14 Tom Tromey <tromey@redhat.com>
5859
5860 * target.c (target_require_runnable): Also check record_stratum.
5861 Update comment.
5862
808f7ab1
YQ
58632014-07-11 Yao Qi <yao@codesourcery.com>
5864
5865 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5866 thumb_instruction_restores_sp return true.
5867
540314bd
YQ
58682014-07-11 Yao Qi <yao@codesourcery.com>
5869
5870 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5871 (thumb_in_function_epilogue_p): Call
5872 thumb_instruction_restores_sp.
5873
1db01f22
YQ
58742014-07-11 Yao Qi <yao@codesourcery.com>
5875
5876 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5877 'add sp, #imm'.
5878 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5879
3116063b
GB
58802014-07-11 Gary Benson <gbenson@redhat.com>
5881
5882 * amd64-linux-nat.c (gdbcore.h): Remove include.
5883 (regset.h): Likewise.
5884 (nat/linux-btrace.h): Likewise.
5885 (btrace.h): Likewise.
5886 (gdb_assert.h): Likewise.
5887 (string.h): Likewise.
5888 (sys/uio.h): Likewise.
5889 (sys/debugreg.h): Likewise.
5890 (sys/syscall.h): Likewise.
5891 (sys/procfs.h): Likewise.
5892 (sys/user.h): Likewise.
5893 (asm/ptrace.h): Likewise.
5894 (i386-nat.h): Likewise.
5895 * i386-linux-nat.c (i386-nat.h): Likewise.
5896 (regset.h): Likewise.
5897 (target.h): Likewise.
5898 (linux-nat.h): Likewise.
5899 (nat/linux-btrace.h): Likewise.
5900 (btrace.h): Likewise.
5901 (gdb_assert.h): Likewise.
5902 (string.h): Likewise.
5903 (sys/uio.h): Likewise.
5904 (sys/user.h): Likewise.
5905 (sys/procfs.h): Likewise.
5906 (sys/reg.h): Likewise.
5907 (sys/debugreg.h): Likewise.
5908 (ORIG_EAX): Remove definition.
5909
040baaf6
GB
59102014-07-11 Gary Benson <gbenson@redhat.com>
5911
5912 * i386-linux-nat.h: New file.
5913 * x86-linux-nat.h: Likewise.
5914 * x86-linux-nat.c: Likewise.
5915 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5916 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5917 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5918 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5919 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5920 (PTRACE_SETREGSET): Likewise.
5921 (arch_lwp_info): Now in x86-linux-nat.c.
5922 (have_ptrace_getregset): Now in x86-linux-nat.h.
5923 (x86_linux_dr_get): Now in x86-linux-nat.c.
5924 (x86_linux_dr_set): Likewise.
5925 (x86_linux_dr_get_addr): Likewise.
5926 (x86_linux_dr_get_control): Likewise.
5927 (x86_linux_dr_get_status): Likewise.
5928 (update_debug_registers_callback): Likewise.
5929 (x86_linux_dr_set_control): Likewise.
5930 (x86_linux_dr_set_addr): Likewise.
5931 (x86_linux_prepare_to_resume): Likewise.
5932 (x86_linux_new_thread): Likewise.
5933 (x86_linux_new_fork): Likewise.
5934 (x86_linux_get_thread_area): Likewise.
5935 (super_post_startup_inferior): Likewise.
5936 (x86_linux_child_post_startup_inferior): Likewise.
5937 (AMD64_LINUX_USER64_CS): Likewise.
5938 (AMD64_LINUX_X32_DS): Likewise.
5939 (x86_linux_read_description): Likewise.
5940 (x86_linux_enable_btrace): Likewise.
5941 (x86_linux_disable_btrace): Likewise.
5942 (x86_linux_teardown_btrace): Likewise.
5943 (x86_linux_read_btrace): Likewise.
5944 (x86_linux_create_target): Likewise.
5945 (x86_linux_add_target): Likewise.
5946 * i386-linux-nat.c (x86-linux-nat.h): New include.
5947 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5948 (PTRACE_SETREGSET): Likewise.
5949 (arch_lwp_info): Now in x86-linux-nat.c.
5950 (have_ptrace_getregset): Now in x86-linux-nat.h.
5951 (x86_linux_dr_get): Now in x86-linux-nat.c.
5952 (x86_linux_dr_set): Likewise.
5953 (x86_linux_dr_get_addr): Likewise.
5954 (x86_linux_dr_get_control): Likewise.
5955 (x86_linux_dr_get_status): Likewise.
5956 (update_debug_registers_callback): Likewise.
5957 (x86_linux_dr_set_control): Likewise.
5958 (x86_linux_dr_set_addr): Likewise.
5959 (x86_linux_prepare_to_resume): Likewise.
5960 (x86_linux_new_thread): Likewise.
5961 (x86_linux_new_fork): Likewise.
5962 (x86_linux_get_thread_area): Likewise.
5963 (super_post_startup_inferior): Likewise.
5964 (x86_linux_child_post_startup_inferior): Likewise.
5965 (AMD64_LINUX_USER64_CS): Likewise.
5966 (AMD64_LINUX_X32_DS): Likewise.
5967 (x86_linux_read_description): Likewise.
5968 (x86_linux_enable_btrace): Likewise.
5969 (x86_linux_disable_btrace): Likewise.
5970 (x86_linux_teardown_btrace): Likewise.
5971 (x86_linux_read_btrace): Likewise.
5972 (x86_linux_create_target): Likewise.
5973 (x86_linux_add_target): Likewise.
5974
1aa7e42c
GB
59752014-07-11 Gary Benson <gbenson@redhat.com>
5976
5977 * amd64-linux-nat.c: Comment and whitespace changes.
5978 * i386-linux-nat.c: Comment and whitespace changes.
5979
c1e246a0
GB
59802014-07-11 Gary Benson <gbenson@redhat.com>
5981
5982 * amd64-linux-nat.c (x86_linux_create_target): New function.
5983 (x86_linux_add_target): Likewise.
5984 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5985 * i386-linux-nat.c (x86_linux_create_target): New function.
5986 (x86_linux_add_target): Likewise.
5987 (_initialize_i386_linux_nat): Delegate to the above new functions.
5988
8c420b8d
GB
59892014-07-11 Gary Benson <gbenson@redhat.com>
5990
5991 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5992 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5993 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5994 (ps_get_thread_area): Delegate to the above.
5995
cb1da100
GB
59962014-07-11 Gary Benson <gbenson@redhat.com>
5997
5998 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5999 x86_linux_read_description. All uses updated. amd64-specific
6000 code conditionalized. Conditionalized i386-specific code added.
6001 Redundant cast removed.
6002 * i386-linux-nat.c (i386_linux_read_description): Renamed to
6003 x86_linux_read_description. All uses updated. i386-specific
6004 code conditionalized. Conditionalized amd64-specific code added.
6005 One sizeof replaced with the actual type it is describing.
6006
2acf3cd0
GB
60072014-07-11 Gary Benson <gbenson@redhat.com>
6008
6009 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
6010 x86_linux_dr_get. All uses updated.
6011 (amd64_linux_dr_set): Renamed to
6012 x86_linux_dr_set. All uses updated.
6013 (amd64_linux_dr_get_addr): Renamed to
6014 x86_linux_dr_get_addr. All uses updated.
6015 (amd64_linux_dr_get_control): Renamed to
6016 x86_linux_dr_get_control. All uses updated.
6017 (amd64_linux_dr_get_status): Renamed to
6018 x86_linux_dr_get_status. All uses updated.
6019 (amd64_linux_dr_set_control): Renamed to
6020 x86_linux_dr_set_control. All uses updated.
6021 (amd64_linux_dr_set_addr): Renamed to
6022 x86_linux_dr_set_addr. All uses updated.
6023 (amd64_linux_prepare_to_resume): Renamed to
6024 x86_linux_prepare_to_resume. All uses updated.
6025 (amd64_linux_new_thread): Renamed to
6026 x86_linux_new_thread. All uses updated.
6027 (amd64_linux_new_fork): Renamed to
6028 x86_linux_new_fork. All uses updated.
6029 (amd64_linux_child_post_startup_inferior): Renamed to
6030 x86_linux_child_post_startup_inferior. All uses updated.
6031 (amd64_linux_enable_btrace): Renamed to
6032 x86_linux_enable_btrace. All uses updated.
6033 (amd64_linux_disable_btrace): Renamed to
6034 x86_linux_disable_btrace. All uses updated.
6035 (amd64_linux_teardown_btrace): Renamed to
6036 x86_linux_teardown_btrace. All uses updated.
6037 (amd64_linux_read_btrace): Renamed to
6038 x86_linux_read_btrace. All uses updated.
6039 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6040 x86_linux_dr_get. All uses updated.
6041 (i386_linux_dr_set): Renamed to
6042 x86_linux_dr_set. All uses updated.
6043 (i386_linux_dr_get_addr): Renamed to
6044 x86_linux_dr_get_addr. All uses updated.
6045 (i386_linux_dr_get_control): Renamed to
6046 x86_linux_dr_get_control. All uses updated.
6047 (i386_linux_dr_get_status): Renamed to
6048 x86_linux_dr_get_status. All uses updated.
6049 (i386_linux_dr_set_control): Renamed to
6050 x86_linux_dr_set_control. All uses updated.
6051 (i386_linux_dr_set_addr): Renamed to
6052 x86_linux_dr_set_addr. All uses updated.
6053 (i386_linux_prepare_to_resume): Renamed to
6054 x86_linux_prepare_to_resume. All uses updated.
6055 (i386_linux_new_thread): Renamed to
6056 x86_linux_new_thread. All uses updated.
6057 (i386_linux_new_fork): Renamed to
6058 x86_linux_new_fork. All uses updated.
6059 (i386_linux_child_post_startup_inferior): Renamed to
6060 x86_linux_child_post_startup_inferior. All uses updated.
6061 (i386_linux_enable_btrace): Renamed to
6062 x86_linux_enable_btrace. All uses updated.
6063 (i386_linux_disable_btrace): Renamed to
6064 x86_linux_disable_btrace. All uses updated.
6065 (i386_linux_teardown_btrace): Renamed to
6066 x86_linux_teardown_btrace. All uses updated.
6067 (i386_linux_read_btrace): Renamed to
6068 x86_linux_read_btrace. All uses updated.
6069
b9c1d481
AS
60702014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6071
6072 * remote.c (extended_remote_post_attach): New function.
6073 (init_extended_remote_ops): Install it as to_post_attach method.
6074
7180e04a
PA
60752014-07-09 Pedro Alves <palves@redhat.com>
6076
6077 * infcmd.c (attach_command_post_wait): Don't call
6078 target_terminal_inferior here.
6079 (attach_command): Call it here instead.
6080
9a9a7608
AB
60812014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6082
6083 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6084 field.
6085 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6086 from varobj.c, with additional checks.
6087 (c_varobj_ops): Fill in is_path_expr_parent field.
6088 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6089 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6090 field.
6091 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6092 ops method.
6093 (varobj_default_is_path_expr_parent): New function.
6094 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6095 (varobj_default_is_path_expr_parent): Declare new function.
6096
1f267ae3
MM
60972014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6098
6099 * infcmd.c (finish_backward): Turn internal error into normal error.
6100
b2ee242b
PA
61012014-07-07 Pedro Alves <palves@redhat.com>
6102
8a869bca 6103 PR gdb/17096
b2ee242b
PA
6104 * remote.c (async_handle_remote_sigint)
6105 (async_handle_remote_sigint_twice): Call
6106 gdb_call_async_signal_handler instead of
6107 mark_async_signal_handler.
6108
38e229b2
TT
61092014-07-07 Tom Tromey <tromey@redhat.com>
6110
6111 * target-delegates.c: Rebuild.
6112 * target.c (target_info_record): Remove.
6113 * record.c (info_record_command): Unconditionally call
6114 to_info_record.
6115 * target.h (struct target_ops) <to_info_record>: Use
6116 TARGET_DEFAULT_IGNORE.
6117 (target_info_record): Remove.
6118
f0f9ff95
TT
61192014-07-07 Tom Tromey <tromey@redhat.com>
6120
6121 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6122 TARGET_DEFAULT_NORETURN.
6123 * target.c (generic_tls_error): New function.
6124 (target_translate_tls_address): Don't search target stack.
6125 * target-delegates.c: Rebuild.
6126 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6127 stack.
6128 * linux-thread-db.c (thread_db_get_thread_local_address):
6129 Unconditionally call beneath target.
6130
4a5be5ee
MK
61312014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6132
6133 * cli/cli-logging.c (pop_output_files): Assign targerr to
6134 gdb_stdtargerr.
6135
92c3b204
AB
61362014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6137
6138 * MAINTAINERS (Write After Approval): Update my email address.
6139
9b11e3a7
GB
61402014-07-02 Gary Benson <gbenson@redhat.com>
6141
6142 * proc-service.c (ps_xfer_memory): Update comment.
6143 (ps_pstop): Remove unused function.
6144 (ps_pcontinue): Likewise.
6145 (ps_lstop): Likewise.
6146 (ps_lcontinue): Likewise.
6147 (ps_lgetxregsize): Likewise.
6148 (ps_lgetxregs): Likewise.
6149 (ps_lsetxregs): Likewise.
6150 (ps_plog): Likewise.
6151 (ps_ptread): Likewise.
6152 (ps_ptwrite): Likewise.
6153
cf363f18
MW
61542014-07-01 Mark Wielaard <mjw@redhat.com>
6155
6156 * dwarf2read.c (add_array_cv_type): New function.
6157 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6158 (read_tag_volatile_type): Likewise.
6159
82ae6c8d
TT
61602014-07-01 Tom Tromey <tromey@redhat.com>
6161
6162 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6163 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6164 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6165 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6166 * command.h (cmd_cfunc_ftype): Move earlier.
6167 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6168 (add_com, add_info): Use cmd_cfunc_ftype.
6169
96142726
TT
61702014-06-30 Tom Tromey <tromey@redhat.com>
6171
6172 * symtab.c (operator_chars): Make parameters and return type
6173 const.
6174 (file_matches): Make "files" const.
6175 (struct search_symbols_data) <files>: Now const.
6176 (search_symbols): Make "regexp" and "files" parameters const.
6177 Update.
6178 (symtab_symbol_info): Remove cast.
6179 (rbreak_command): Update.
6180 * symtab.h (search_symbols): Update.
6181
b67a2c6f
YQ
61822014-06-27 Yao Qi <yao@codesourcery.com>
6183
6184 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6185 Change parameter type to 'struct thread_info *'. Caller
6186 updated.
6187 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6188 Update declaration.
6189 * dummy-frame.c (struct dummy_frame_id): New.
6190 (dummy_frame_id_eq): New function.
6191 (struct dummy_frame) <id>: Change its type to 'struct
6192 dummy_frame_id'.
6193 (dummy_frame_push): Add parameter ptid and save it in
6194 dummy_frame_id.
6195 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6196 inferior_ptid.
6197 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6198 to inferior_ptid.
6199 (lookup_dummy_frame): Change parameter type to 'struct
6200 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6201 instead of frame_id_eq.
6202 (dummy_frame_pop): Add parameter ptid. Callers updated.
6203 Update comments. Compose dummy_frame_id and pass it to
6204 lookup_dummy_frame.
6205 (dummy_frame_discard): Add parameter ptid.
6206 (dummy_frame_sniffer): Compose dummy_frame_id and call
6207 dummy_frame_id_eq instead of frame_id_eq.
6208 (fprint_dummy_frames): Print ptid.
6209 * dummy-frame.h: Remove comments.
6210 (dummy_frame_push): Add ptid in declaration.
6211 (dummy_frame_pop, dummy_frame_discard): Likewise.
6212
5b10184c
TT
62132014-06-26 Tom Tromey <tromey@redhat.com>
6214
6215 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6216 * command.h (error_no_arg): Update.
6217
06900326
TT
62182014-06-26 Tom Tromey <tromey@redhat.com>
6219
6220 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6221 (do_show_command): Make "arg" const.
6222 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6223
c2bcbb1d
TT
62242014-06-26 Tom Tromey <tromey@redhat.com>
6225
6226 * record-full.c (record_full_get_bookmark): Make "args" const.
6227 (record_full_goto_bookmark): Make "raw_bookmark" const.
6228 * record.c (record_goto): New function.
6229 (cmd_record_goto): Use it. Now static.
6230 * record.h (record_goto): Declare.
6231 (cmd_record_goto): Remove declaration.
6232 * target-delegates.c: Rebuild.
6233 * target.h (struct target_ops) <to_get_bookmark,
6234 to_goto_bookmark>: Make parameter const.
6235
9cbe5fff
TT
62362014-06-26 Tom Tromey <tromey@redhat.com>
6237
6238 * defs.h (generic_load): Update.
6239 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6240 * monitor.c (monitor_load): Make "args" const.
6241 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6242 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6243 const.
6244 (mips_load): Make "file" const.
6245 * remote-sim.c (gdbsim_load): Make "args" const.
6246 * remote.c (remote_load): Make "name" const.
6247 * symfile.c (generic_load): Make "args" const.
6248 * target-delegates.c: Rebuild.
6249 * target.c (target_load): Make "arg" const.
6250 (debug_to_load): Make "args" const.
6251 * target.h (struct target_ops) <to_load>: Make parameter const.
6252 (target_load): Update.
6253
34a68019
TT
62542014-06-26 Tom Tromey <tromey@redhat.com>
6255
6256 PR symtab/16902:
6257 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6258 (dwarf2_physname, read_partial_die)
6259 (guess_partial_die_structure_name, fixup_partial_die)
6260 (guess_full_die_structure_name, anonymous_struct_prefix)
6261 (dwarf2_name): Use per-BFD obstack.
6262
efc889c1
YQ
62632014-06-26 Yao Qi <yao@codesourcery.com>
6264
6265 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6266 dummyframe and this_id into inner block below.
6267
4395285e
YQ
62682014-06-26 Yao Qi <yao@codesourcery.com>
6269
6270 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6271 with "signal_pass[0]" in the initialization of signal_pass.
6272
aef92902
MM
62732014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6274
6275 * record-btrace.c (record_btrace_generating_corefile)
6276 (record_btrace_prepare_to_generate_core)
6277 (record_btrace_done_generating_core): New.
6278 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6279 (record_btrace_store_registers, record_btrace_prepare_to_store):
6280 Forward request when generating a core file.
6281 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6282 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6283 to_done_generating_core.
6284
5fff78c4
MM
62852014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6286
6287 * target.h (target_ops) <to_prepare_to_generate_core>
6288 <to_done_generating_core>: New.
6289 (target_prepare_to_generate_core, target_done_generating_core): New.
6290 * target.c (target_prepare_to_generate_core)
6291 (target_done_generating_core): New.
6292 * target-delegates.c: Regenerate.
6293 * gcore.c: (write_gcore_file): Rename to ...
6294 (write_gcore_file_1): ...this.
6295 (write_gcore_file): Call target_prepare_to_generate_core
6296 and target_done_generating_core.
6297
1d1f1ccb
MM
62982014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6299
6300 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6301 * gcore.c (write_gcore_file): Free memory returned from
6302 make_corefile_notes.
6303 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6304 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6305
3343ef86
YQ
63062014-06-24 Yao Qi <yao@codesourcery.com>
6307
6308 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6309 (arm_linux_init_abi): Set skip_trampoline_code with
6310 gdbarch_skip_trampoline_code instead of
6311 find_solib_trampoline_target.
6312
18d18ac8
YQ
63132014-06-24 Yao Qi <yao@codesourcery.com>
6314
6315 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6316 arm_skip_bx_reg returns non-zero.
6317
80d8d390
YQ
63182014-06-24 Yao Qi <yao@codesourcery.com>
6319
6320 * arm-tdep.c (arm_skip_bx_reg): New function.
6321 (arm_skip_stub): Call arm_skip_bx_reg.
6322
6a18a01c
DB
63232014-06-23 Don Breazeal <donb@codesourcery.com>
6324
6325 * MAINTAINERS: Add myself as write-after-approval maintainer.
6326
8e9db26e
PA
63272014-06-23 Pedro Alves <palves@redhat.com>
6328
6329 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6330 DR_CONTROL before setting DR0..DR3.
6331 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6332 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6333 bits of DR_CONTROL related to the debug register slot being
6334 disabled. If all slots are vacant, clear local slowdown as well,
6335 and assert DR_CONTROL is 0.
6336
70afc5b7
SC
63372014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6338
6339 * python/lib/gdb/command/xmethods.py
6340 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6341 current progspace only if the string "progspace" matches LOCUS_RE.
6342
840ed64d
JK
63432014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6344
6345 Fix --with-system-readline with readline-6.3 patch 5.
6346 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6347 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6348 types.
6349
26f2dc30
TT
63502014-06-20 Tom Tromey <tromey@redhat.com>
6351
6352 * dwarf2read.c (dw2_get_real_path): Use correct type in
6353 OBSTACK_CALLOC.
6354 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6355
125f8a3d
GB
63562014-06-20 Gary Benson <gbenson@redhat.com>
6357
6358 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6359 * common/glibc_thread_db.h: Likewise.
6360 * common/i386-cpuid.h: Likewise.
6361 * common/i386-gcc-cpuid.h: Likewise.
6362 * common/linux-btrace.h: Likewise.
6363 * common/linux-osdata.h: Likewise.
6364 * common/linux-procfs.h: Likewise.
6365 * common/linux-ptrace.h: Likewise.
6366 * common/mips-linux-watch.h: Likewise.
6367 * common/linux-btrace.c: Moved to nat.
6368 * common/linux-osdata.c: Likewise.
6369 * common/linux-procfs.c: Likewise.
6370 * common/linux-ptrace.c: Likewise.
6371 * common/mips-linux-watch.c: Likewise.
6372 * nat/gdb_thread_db.h: Moved from common.
6373 * nat/glibc_thread_db.h: Likewise.
6374 * nat/i386-cpuid.h: Likewise.
6375 * nat/i386-gcc-cpuid.h: Likewise.
6376 * nat/linux-btrace.c: Likewise.
6377 * nat/linux-btrace.h: Likewise.
6378 * nat/linux-osdata.c: Likewise.
6379 * nat/linux-osdata.h: Likewise.
6380 * nat/linux-procfs.c: Likewise.
6381 * nat/linux-procfs.h: Likewise.
6382 * nat/linux-ptrace.c: Likewise.
6383 * nat/linux-ptrace.h: Likewise.
6384 * nat/mips-linux-watch.c: Likewise.
6385 * nat/mips-linux-watch.h: Likewise.
6386 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6387 (object file files): Reordered.
6388 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6389 of glibc_thread_db.h.
6390
42995dbd
GB
63912014-06-20 Gary Benson <gbenson@redhat.com>
6392
6393 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6394 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6395 (i386_dr_low): Likewise.
6396 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6397 (i386_dr_low_set_addr): Likewise.
6398 (i386_dr_low_get_addr): Likewise.
6399 (i386_dr_low_can_set_control): Likewise.
6400 (i386_dr_low_set_control): Likewise.
6401 (i386_dr_low_get_control): Likewise.
6402 (i386_dr_low_get_status): Likewise.
6403 (i386_get_debug_register_length): Likewise.
6404 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6405 (i386_dr_low): Likewise.
6406 * nat/i386-dregs.c (i386-low.h): Remove include.
6407 (i386-nat.h): Likewise.
6408 (nat/i386-dregs.h): New include.
6409 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6410 (i386_dr_low_set_addr): Likewise.
6411 (i386_dr_low_get_addr): Likewise.
6412 (i386_dr_low_can_set_control): Likewise.
6413 (i386_dr_low_set_control): Likewise.
6414 (i386_dr_low_get_control): Likewise.
6415 (i386_dr_low_get_status): Likewise.
6416 (i386_get_debug_register_length): Likewise.
6417 (debug_hw_points): Likewise.
6418
3ed9baed
IB
64192014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6420
6421 * Makefile.in (SFILES): Add d-exp.y.
6422 (YYFILES): Add d-exp.c.
6423 (YYOBJ): Add d-exp.o.
6424 (local-maintainer-clean): Delete d-exp.c.
6425 * d-exp.y: New file.
6426 * d-lang.h (d_parse): New declaration.
6427 (d_error): New declaration.
6428 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6429 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6430 PREC_ORDER operators.
6431 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6432
78c164b0
YQ
64332014-06-19 Yao Qi <yao@codesourcery.com>
6434
6435 * gdbthread.h (any_running): Remove the declaration.
6436 * thread.c (any_running): Remove.
6437
f6e29b6e
YQ
64382014-06-19 Yao Qi <yao@codesourcery.com>
6439
6440 * gdbthread.h (struct thread_info) <state>: Change its type to
6441 'enum thread_state'. Update comments.
6442
034f788c
PA
64432014-06-19 Pedro Alves <palves@redhat.com>
6444
6445 * gdbthread.h (ALL_THREADS): Delete.
6446 (ALL_NON_EXITED_THREADS): New macro.
6447 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6448 instead of ALL_THREADS.
6449 * infrun.c (find_thread_needs_step_over)
6450 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6451 instead of ALL_THREADS.
6452 * record-btrace.c (record_btrace_open)
6453 (record_btrace_stop_recording, record_btrace_close)
6454 (record_btrace_is_replaying, record_btrace_resume)
6455 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6456 * remote.c (append_pending_thread_resumptions): Likewise.
6457 * thread.c (thread_apply_all_command): Likewise.
6458
46e33252
GB
64592014-06-19 Gary Benson <gbenson@redhat.com>
6460
6461 * i386-nat.c (i386_stopped_by_watchpoint):
6462 Use i386_dr_stopped_by_watchpoint.
6463 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6464 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6465
3a8ee006
GB
64662014-06-19 Gary Benson <gbenson@redhat.com>
6467
6468 * nat/i386-dregs.c: New file.
6469 * Makefile.in (i386-dregs.o): New rule.
6470 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6471 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6472 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6473 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6474 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6475 * config/i386/go32.mh (NATDEPFILES): Likewise.
6476 * config/i386/linux.mh (NATDEPFILES): Likewise.
6477 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6478 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6479 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6480 * i386-nat.h (debug_hw_points): New declaration.
6481 * i386-nat.c (breakpoint.h): Remove include.
6482 (command.h): Likewise.
6483 (target.h): Likewise.
6484 (gdb_assert.h): Likewise.
6485 (debug_hw_points): Made nonstatic.
6486 (debug_printf): Now in i386-dregs.c.
6487 (TARGET_HAS_DR_LEN_8): Likewise.
6488 (DR_CONTROL_SHIFT): Likewise.
6489 (DR_CONTROL_SIZE): Likewise.
6490 (DR_RW_EXECUTE): Likewise.
6491 (DR_RW_WRITE): Likewise.
6492 (DR_RW_READ): Likewise.
6493 (DR_RW_IORW): Likewise.
6494 (DR_LEN_1): Likewise.
6495 (DR_LEN_2): Likewise.
6496 (DR_LEN_4): Likewise.
6497 (DR_LEN_8): Likewise.
6498 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6499 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6500 (DR_ENABLE_SIZE): Likewise.
6501 (DR_LOCAL_SLOWDOWN): Likewise.
6502 (DR_GLOBAL_SLOWDOWN): Likewise.
6503 (DR_CONTROL_RESERVED): Likewise.
6504 (I386_DR_CONTROL_MASK): Likewise.
6505 (I386_DR_VACANT): Likewise.
6506 (I386_DR_LOCAL_ENABLE): Likewise.
6507 (I386_DR_GLOBAL_ENABLE): Likewise.
6508 (I386_DR_DISABLE): Likewise.
6509 (I386_DR_SET_RW_LEN): Likewise.
6510 (I386_DR_GET_RW_LEN): Likewise.
6511 (I386_DR_WATCH_HIT): Likewise.
6512 (i386_wp_op_t): Likewise.
6513 (i386_show_dr): Likewise.
6514 (i386_length_and_rw_bits): Likewise.
6515 (i386_insert_aligned_watchpoint): Likewise.
6516 (i386_remove_aligned_watchpoint): Likewise.
6517 (i386_handle_nonaligned_watchpoint): Likewise.
6518 (i386_update_inferior_debug_regs): Likewise.
6519 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6520 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6521 (i386_region_ok_for_watchpoint):
6522 Use i386_dr_region_ok_for_watchpoint.
6523 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6524
322a8e06
GB
65252014-06-19 Gary Benson <gbenson@redhat.com>
6526
6527 * i386-nat.c (i386_insert_hw_breakpoint): Use
6528 i386_insert_watchpoint.
6529 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6530
8f26655c
GB
65312014-06-19 Gary Benson <gbenson@redhat.com>
6532
6533 * i386-nat.c (i386_dr_show): Renamed to
6534 i386_show_dr and made static. All uses updated.
6535 (i386_dr_length_and_rw_bits): Renamed to
6536 i386_length_and_rw_bits and made static.
6537 All uses updated.
6538 (i386_dr_insert_aligned_watchpoint): Renamed to
6539 i386_insert_aligned_watchpoint and made static.
6540 All uses updated.
6541 (i386_dr_remove_aligned_watchpoint): Renamed to
6542 i386_remove_aligned_watchpoint and made static.
6543 All uses updated.
6544 (i386_dr_update_inferior_debug_regs): Renamed to
6545 i386_update_inferior_debug_regs and made static.
6546 All uses updated.
6547 * nat/i386-dregs.h (i386_dr_show): Removed.
6548 (i386_dr_length_and_rw_bits): Likewise.
6549 (i386_dr_insert_aligned_watchpoint): Likewise.
6550 (i386_dr_remove_aligned_watchpoint): Likewise.
6551 (i386_dr_update_inferior_debug_regs): Likewise.
6552
992c7d70
GB
65532014-06-19 Gary Benson <gbenson@redhat.com>
6554
6555 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6556 * configure: Regenerate.
6557 * config.in: Likewise.
6558 * main.c (signal.h): New include.
6559 (setup_alternate_signal_stack): New function.
6560 (captured_main): Call the above.
6561 * cp-support.c (signal.h): New include.
6562 (catch_demangler_crashes): New flag.
6563 (SIGJMP_BUF): New define.
6564 (SIGSETJMP): Likewise.
6565 (SIGLONGJMP): Likewise.
6566 (gdb_demangle_jmp_buf): New static global.
6567 (gdb_demangle_attempt_core_dump): Likewise.
6568 (gdb_demangle_signal_handler): New function.
6569 (gdb_demangle): If catch_demangler_crashes is set, install the
6570 above signal handler before calling bfd_demangle, and restore
6571 the original signal handler afterwards. Display the offending
6572 symbol and call demangler_warning the first time a segmentation
6573 fault is caught.
6574 (_initialize_cp_support): New maint set/show command.
6575
eae7090b
GB
65762014-06-19 Gary Benson <gbenson@redhat.com>
6577
6578 * utils.h (resource_limit_kind): New enum.
6579 (can_dump_core): New declaration.
6580 (warn_cant_dump_core): Likewise.
6581 (dump_core): Likewise.
6582 * utils.c (dump_core): Made nonstatic. Added new
6583 parameter "limit_kind".
6584 (can_dump_core): Made nonstatic. Moved printing code to...
6585 (warn_cant_dump_core): New function.
6586 (can_dump_core_warn): Likewise.
6587 (internal_vproblem): Replace calls to can_dump_core with
6588 calls to can_dump_core_warn. Supply new argument to each.
6589
57fcfb1b
GB
65902014-06-19 Gary Benson <gbenson@redhat.com>
6591
6592 * utils.h (demangler_vwarning): New declaration.
6593 (demangler_warning): Likewise.
6594 * utils.c (struct internal_problem)
6595 <user_settable_should_quit>: New field.
6596 <user_settable_should_dump_core>: Likewise
6597 (internal_error_problem): Add values for above new fields.
6598 (internal_warning_problem): Likewise.
6599 (demangler_warning_problem): New static global.
6600 (demangler_vwarning): New function.
6601 (demangler_warning): Likewise.
6602 (add_internal_problem_command): Selectively add commands.
6603 (_initialize_utils): New internal problem command.
6604 * maint.c (maintenance_demangler_warning): New function.
6605 (_initialize_maint_cmds): New command.
6606
17a40b44
TT
66072014-06-18 Tom Tromey <tromey@redhat.com>
6608
6609 * f-valprint.c (info_common_command_for_block): Update.
6610 * symtab.h (struct general_symbol_info) <common_block>: Now
6611 const.
6612
346d1dfe
TT
66132014-06-18 Tom Tromey <tromey@redhat.com>
6614
6615 * symtab.h (struct symtab) <blockvector>: Now const.
6616 * ada-lang.c (ada_add_global_exceptions): Update.
6617 * buildsym.c (augment_type_symtab): Update.
6618 * dwarf2read.c (dw2_lookup_symbol): Update.
6619 * jit.c (finalize_symtab): Update.
6620 * jv-lang.c (add_class_symtab_symbol): Update.
6621 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6622 Update.
6623 * objfiles.c (objfile_relocate1): Update.
6624 * psymtab.c (lookup_symbol_aux_psymtabs)
6625 (maintenance_check_psymtabs): Update.
6626 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6627 Update.
6628 * spu-tdep.c (spu_catch_start): Update.
6629 * symmisc.c (dump_symtab_1): Update.
6630 * symtab.c (lookup_global_symbol_from_objfile)
6631 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6632 (basic_lookup_transparent_type_quick)
6633 (basic_lookup_transparent_type, find_pc_sect_symtab)
6634 (find_pc_sect_line, search_symbols): Update.
6635 * block.c (find_block_in_blockvector): Make "bl" const.
6636 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6637 const.
6638 (blockvector_contains_pc): Make "bv" const.
6639 (block_for_pc_sect): Update.
6640 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6641 (blockvector_contains_pc): Update.
6642 * breakpoint.c (resolve_sal_pc): Update.
6643 * inline-frame.c (block_starting_point_at): Update.
6644
1834676b
TT
66452014-06-18 Tom Tromey <tromey@redhat.com>
6646
6647 * completer.c (complete_line): Make "line_buffer" const.
6648 * completer.h (complete_line): Update.
6649
ac1a991b
TT
66502014-06-18 Tom Tromey <tromey@redhat.com>
6651
6652 * symtab.c (add_macro_name): Remove unneeded cast.
6653
5bc98e52
TT
66542014-06-18 Tom Tromey <tromey@redhat.com>
6655
6656 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6657 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6658
8236def8
TT
66592014-06-18 Tom Tromey <tromey@redhat.com>
6660
6661 * probe.c (info_probes_for_ops): Make "arg" const.
6662 * probe.h (info_probes_for_ops): Update.
6663
3977b71f
TT
66642014-06-18 Tom Tromey <tromey@redhat.com>
6665
6666 * varobj.c (varobj_create): Update.
6667 * valops.c (value_of_this): Update.
6668 * tracepoint.c (add_local_symbols, scope_info): Update.
6669 * symtab.h (struct general_symbol_info) <block>: Now const.
6670 * symtab.c (skip_prologue_sal)
6671 (default_make_symbol_completion_list_break_on)
6672 (skip_prologue_using_sal): Update.
6673 * stack.h (iterate_over_block_locals)
6674 (iterate_over_block_local_vars): Update.
6675 * stack.c (print_frame_args): Update.
6676 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6677 parameter const.
6678 (get_selected_block): Make return type const.
6679 * python/py-frame.c (frapy_block): Update.
6680 * python/py-block.c (gdbpy_block_for_pc): Update.
6681 * p-exp.y (%union) <bval>: Now const.
6682 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6683 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6684 * m2-exp.y (%union) <bval>: Now const.
6685 * linespec.c (get_current_search_block): Make return type const.
6686 (create_sals_line_offset, find_label_symbols): Update.
6687 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6688 Update.
6689 (block_starting_point_at): Make "block" const.
6690 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6691 (check_exception_resume): Update.
6692 * guile/scm-frame.c (gdbscm_frame_block): Update.
6693 * guile/scm-block.c (gdbscm_lookup_block): Update.
6694 * frame.h (get_frame_block): Update.
6695 (get_selected_block): Make return type const.
6696 * frame.c (frame_id_inner): Update.
6697 * f-valprint.c (info_common_command_for_block)
6698 (info_common_command): Update.
6699 * dwarf2loc.c (dwarf2_find_location_expression)
6700 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6701 (locexpr_describe_location_piece): Update.
6702 * c-exp.y (%union) <bval>: Now const.
6703 * breakpoint.c (resolve_sal_pc): Update.
6704 * blockframe.c (get_frame_block):Make return type const.
6705 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6706 (block_innermost_frame): Update.
6707 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6708 (block_for_pc, block_for_pc_sect): Update.
6709 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6710 'pblock' const.
6711 (block_for_pc_sect, block_for_pc): Make return type const.
6712 * ax-gdb.c (gen_expr): Update.
6713 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6714 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6715 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6716 (ada_read_var_value): Update.
6717 * ada-exp.y (struct name_info) <block>: Now const.
6718 (%union): Likewise.
6719 (block_lookup): Constify.
6720
b9228891
GB
67212014-06-18 Gary Benson <gbenson@redhat.com>
6722
6723 * nat/i386-dregs.h: New file.
6724 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6725 * i386-nat.h (i386-dregs.h): New include.
6726 (DR_FIRSTADDR): Now in i386-dregs.h.
6727 (DR_LASTADDR): Likewise.
6728 (DR_NADDR): Likewise.
6729 (DR_STATUS): Likewise.
6730 (DR_CONTROL): Likewise.
6731 (i386_debug_reg_state): Likewise.
6732 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6733
a1aa2221
LM
67342014-06-18 Don Breazeal <donb@codesourcery.com>
6735
6736 * breakpoint.c (set_longjmp_breakpoint): Call
6737 momentary_breakpoint_from_master with additional argument.
6738 (set_longjmp_breakpoint_for_call_dummy): Call
6739 momentary_breakpoint_from_master with additional argument.
6740 (set_std_terminate_breakpoint): Call
6741 momentary_breakpoint_from_master with additional argument.
6742 (momentary_breakpoint_from_master): Add argument to function
6743 definition and use it to initialize structure member flag.
74228e77 6744 (clone_momentary_breakpoint): Call
a1aa2221
LM
6745 momentary_breakpoint_from_master with additional argument.
6746 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6747 member flags set in momentary_breakpoint_from_master.
6748
4be83cc2
GB
67492014-06-18 Gary Benson <gbenson@redhat.com>
6750
6751 * i386-nat.c (i386_show_dr): Renamed to
6752 i386_dr_show and made nonstatic. All uses updated.
6753 (i386_length_and_rw_bits): Renamed to
6754 i386_dr_length_and_rw_bits and made nonstatic.
6755 All uses updated.
6756 (i386_insert_aligned_watchpoint): Renamed to
6757 i386_dr_insert_aligned_watchpoint and made nonstatic.
6758 All uses updated.
6759 (i386_remove_aligned_watchpoint): Renamed to
6760 i386_dr_remove_aligned_watchpoint and made nonstatic.
6761 All uses updated.
6762 (i386_update_inferior_debug_regs): Renamed to
6763 i386_dr_update_inferior_debug_regs and made nonstatic.
6764 All uses updated.
6765
131aa0d4
GB
67662014-06-18 Gary Benson <gbenson@redhat.com>
6767
6768 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6769 (i386_dr_low_can_set_control): Likewise.
6770 (i386_dr_low_set_addr): Likewise.
6771 (i386_dr_low_set_control): Likewise.
6772 (i386_dr_low_get_addr): Likewise.
6773 (i386_dr_low_get_status): Likewise.
6774 (i386_dr_low_get_control): Likewise.
6775 (i386_insert_aligned_watchpoint): Use new macros.
6776 (i386_update_inferior_debug_regs): Likewise.
6777 (i386_stopped_data_address): Likewise.
6778
d9305f7f
GB
67792014-06-18 Gary Benson <gbenson@redhat.com>
6780
6781 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6782 New parameter. All uses updated.
6783
ea008da4
GB
67842014-06-18 Gary Benson <gbenson@redhat.com>
6785
6786 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6787 All uses updated.
6788
1b6d4134
GB
67892014-06-18 Gary Benson <gbenson@redhat.com>
6790
6791 * i386-nat.c (debug_printf): New macro.
6792 (i386_get_debug_register_length): Likewise.
6793 (TARGET_HAS_DR_LEN_8): Use above macro.
6794 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6795 and printf_unfiltered. Use phex to format values.
6796
9b4550ef
GB
67972014-06-18 Gary Benson <gbenson@redhat.com>
6798
6799 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6800 Make const.
6801
6e62758f
GB
68022014-06-18 Gary Benson <gbenson@redhat.com>
6803
6804 * i386-nat.c: Comment changes.
6805
51c79e94
GB
68062014-06-18 Gary Benson <gbenson@redhat.com>
6807
6808 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6809
3e11889a
GB
68102014-06-18 Gary Benson <gbenson@redhat.com>
6811
6812 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6813 (i386_insert_aligned_watchpoint): Likewise.
6814 (i386_remove_aligned_watchpoint): Likewise.
6815 (i386_handle_nonaligned_watchpoint): Likewise.
6816
fc6e2f03
GB
68172014-06-18 Gary Benson <gbenson@redhat.com>
6818
6819 * i386-nat.c: Whitespace changes.
6820
2afe7d50
SB
68212014-06-17 Samuel Bronson <naesten@gmail.com>
6822
6823 * MAINTAINERS: Update Roland McGrath's email address.
6824 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 6825 Red Hat a while ago, and giving me a current address.
2afe7d50 6826
3bca49ee
TT
68272014-06-17 Tom Tromey <tromey@redhat.com>
6828
6829 * utils.h (savestring): Remove declaration.
6830
6e366df1
TT
68312014-06-17 Tom Tromey <tromey@redhat.com>
6832
6833 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6834
6be47f0c
KS
68352014-06-16 Keith Seitz <keiths@redhat.com>
6836
6837 PR mi/15863
6838 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6839 to update the varobj if inferior_ptid is null_ptid.
6840
7bc112c1
TT
68412014-06-16 Tom Tromey <tromey@redhat.com>
6842
6843 * target.h (struct target_ops) <to_info_proc>: Make parameter
6844 const.
6845 (target_info_proc): Update.
6846 * target.c (target_info_proc): Make "args" const.
6847 * procfs.c (procfs_info_proc): Update.
6848 * linux-tdep.c (linux_info_proc): Update.
6849 (linux_core_info_proc_mappings): Make "args" const.
6850 (linux_core_info_proc): Update.
6851 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6852 * gdbarch.c: Rebuild.
6853 * gdbarch.h: Rebuild.
6854 * corelow.c (core_info_proc): Update.
6855
fee354ee
TT
68562014-06-16 Tom Tromey <tromey@redhat.com>
6857
6858 * target.h (struct target_ops) <to_disconnect>: Make parameter
6859 const.
6860 (target_disconnect): Update.
6861 * target.c (target_disconnect): Make "args" const.
6862 * target-delegates.c: Rebuild.
6863 * remote.c (remote_disconnect): Update.
6864 * record.h (record_disconnect): Update.
6865 * record.c (record_disconnect): Update.
6866 * inf-child.c (inf_child_disconnect): Update.
6867
a30bf1f1
TT
68682014-06-16 Tom Tromey <tromey@redhat.com>
6869
6870 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6871 * target.c (debug_to_rcmd, default_rcmd): Update.
6872 * target-delegates.c: Rebuild.
6873 * remote.c (remote_rcmd): Update.
6874 * monitor.c (monitor_rcmd): Update.
6875
d03de421
PA
68762014-06-16 Pedro Alves <palves@redhat.com>
6877
6878 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6879 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6880 have OBJF_SHARED set.
6881 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6882 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6883 instead of OBJF_USERLOADED.
6884 * objfiles.h (OBJF_SHARED): Update comment.
6885 (userloaded_objfile_contains_address_p): Rename to ...
6886 (shared_objfile_contains_address_p): ... this, and update
6887 comments.
6888 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6889 new objfile.
6890 (remove_symbol_file_command): Skip objfiles that don't have
6891 OBJF_SHARED set.
6892
99f4262f
TT
68932014-06-16 Tom Tromey <tromey@redhat.com>
6894
6895 * minsyms.h (prim_record_minimal_symbol)
6896 (prim_record_minimal_symbol_and_info): Update comments.
6897
97d66cc6
EZ
68982014-06-14 Eli Zaretskii <eliz@gnu.org>
6899
6900 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6901 or --without-guile, according to how GDB was built.
6902
635c7e8a
TT
69032014-06-13 Tom Tromey <tromey@redhat.com>
6904
6905 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6906 to help_list.
6907 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6908 to help_list.
6909 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6910 help_list.
6911 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6912 help_list.Pass all_commands, not -1, to help_list.
6913 * cli/cli-dump.c (dump_command, append_command)
6914 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6915 (binary_dump_command, binary_append_command): Pass all_commands,
6916 not -1, to help_list.
6917 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6918 -1, to help_list.
6919 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6920 -1, to help_list.
6921 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6922 help_list.
6923 * top.c (set_history): Pass all_commands, not -1, to help_list.
6924 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6925 all_commands, not -1, to help_list.
6926 * symfile.c (overlay_command): Pass all_commands, not -1, to
6927 help_list.
6928 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6929 help_list.
6930 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6931 help_list.
6932 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6933 -1, to help_list.
6934 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6935 not -1, to help_list.
6936 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6937 not -1, to help_list.
6938 * maint.c (maintenance_command, maintenance_info_command)
6939 (maintenance_print_command, maintenance_set_cmd): Pass
6940 all_commands, not -1, to help_list.
6941 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6942 help_list.
6943 * language.c (set_check): Pass all_commands, not -1, to help_list.
6944 * infcmd.c (unset_command): Pass all_commands, not -1, to
6945 help_list.
6946 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6947 help_list.
6948 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6949 help_list.
6950 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6951 help_list.
6952 * breakpoint.c (save_command): Pass all_commands, not -1, to
6953 help_list.
6954 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6955 all_commands, not -1, to help_list.
6956
b94ade42
PL
69572014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6958
6959 * regcache.c (struct register_to_invalidate): New structure.
6960 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6961 functions.
6962 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6963
31f628ae
YQ
69642014-06-12 Yao Qi <yao@codesourcery.com>
6965
6966 * varobj.c (varobj_get_num_children): Call
6967 varobj_is_dynamic_p.
6968 (varobj_list_children): Likewise.
6969 (varobj_update): Likewise. Update comments.
6970
cde5ef40
YQ
69712014-06-12 Yao Qi <yao@codesourcery.com>
6972
6973 * varobj.c (varobj_pretty_printed_p): Rename to ...
6974 (varobj_is_dynamic_p): ... this. New function.
6975 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6976 (varobj_is_dynamic_p): Declare.
6977 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6978 (mi_print_value_p, varobj_update_one): Likewise.
6979
576ea091
YQ
69802014-06-12 Pedro Alves <pedro@codesourcery.com>
6981 Yao Qi <yao@codesourcery.com>
6982
6983 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6984 (varobj_get_iterator): Wrap up code for pretty-printer by
6985 "#if HAVE_PYTHON" and "#endif".
6986 (update_dynamic_varobj_children): Likewise.
6987
827f100c
YQ
69882014-06-12 Pedro Alves <pedro@codesourcery.com>
6989 Yao Qi <yao@codesourcery.com>
6990
6991 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6992 gdb_python_initialized is false. Move some code from varobj.c.
6993 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6994 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6995 (struct varobj_item): Moved to varobj-iter.h".
6996 (varobj_clear_saved_item): New function.
6997 (update_dynamic_varobj_children): Move python-related code to
6998 py-varobj.c.
6999 (free_variable): Call varobj_clear_saved_item and
7000 varobj_iter_delete.
7001
e5250216
YQ
70022014-06-12 Pedro Alves <pedro@codesourcery.com>
7003 Yao Qi <yao@codesourcery.com>
7004
7005 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
7006 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
7007 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
7008 (py-varobj.o): New rule.
7009 * python/py-varobj.c: New file.
7010 * python/python-internal.h (py_varobj_get_iterator): Declare.
7011 * varobj-iter.h: New file.
7012 * varobj.c: Include "varobj-iter.h"
7013 (struct varobj) <child_iter>: Change its type from "PyObject *"
7014 to "struct varobj_iter *".
7015 <saved_item>: Likewise.
7016 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
7017 [HAVE_PYTHON] (varobj_get_iterator): New function.
7018 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7019 python-specific code to python/py-varobj.c.
7020 (install_visualizer): Call varobj_iter_delete instead of
7021 Py_XDECREF.
7022 * varobj.h (varobj_ensure_python_env): Declare.
7023
5a2e0d6e
YQ
70242014-06-12 Yao Qi <yao@codesourcery.com>
7025
7026 * varobj.c (struct varobj_item): New structure.
7027 (create_child_with_value): Update declaration.
7028 (varobj_add_child): Replace arguments 'name' and 'value' with
7029 'item'. All callers updated.
7030 (install_dynamic_child): Likewise.
7031 (update_dynamic_varobj_children): Likewise.
7032 (varobj_add_child): Likewise.
7033 (create_child_with_value): Likewise.
7034
919b9a93
JB
70352014-06-11 Joel Brobecker <brobecker@adacore.com>
7036
7037 * NEWS: Create a new section for the next release branch.
7038 Rename the section of the current branch, now that it has
7039 been cut.
7040
71a55bdf
JB
70412014-06-11 Joel Brobecker <brobecker@adacore.com>
7042
7043 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7044 * version.in: Bump version to 7.8.50.DATE-cvs.
7045
364fe1f7
PA
70462014-06-11 Pedro Alves <palves@redhat.com>
7047
7048 PR remote/17028
7049 * ser-mingw.c (net_windows_socket_check_pending): New function.
7050 (net_windows_select_thread): Ignore spurious wakeups. Use
7051 net_windows_socket_check_pending.
7052 (net_windows_wait_handle): Check for pending events with
7053 ioctlsocket, through net_windows_socket_check_pending, instead of
7054 checking the socket's event.
7055
5a6c7709
SC
70562014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7057
7058 * python/python-internal.h (gdb_PyObject_GetAttrString)
7059 (gdb_PyObject_HasAttrString): New inline function definitions.
7060 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7061 char * of the second argument to PyObject_GetAttrString.
74228e77 7062
0e58ee40
JB
70632014-06-10 Joel Brobecker <brobecker@adacore.com>
7064
7065 * serial.c (serial_write): Fix index of character to be printed
7066 in call to serial_logchar when serial debug traces are enabled.
7067
d190df30
JB
70682014-06-10 Joel Brobecker <brobecker@adacore.com>
7069
7070 * gdbtypes (resolve_dynamic_range): Add function description.
7071
b4b01d36
PA
70722014-06-09 Pedro Alves <palves@redhat.com>
7073
7074 * linux-nat.c (linux_child_follow_fork): Initialize status with
7075 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7076 inner block. Only pass the signal to PTRACE_DETACH if in pass
7077 state.
7078
3657956b
GB
70792014-06-09 Gary Benson <gbenson@redhat.com>
7080
7081 * common/signals.c (gdb_signal_from_host): Reorder to separate
7082 the always-available ANSI-standard signals from the signals that
7083 require checking.
7084 (do_gdb_signal_to_host): Likewise.
7085 * proc-events.c (signal_table): Likewise.
7086
c077881a
HZ
70872014-06-08 Hui Zhu <hui@codesourcery.com>
7088
7089 * common/linux-ptrace.c (linux_disable_event_reporting): New
7090 function.
7091 * common/linux-ptrace.h (linux_disable_event_reporting): New
7092 declaration.
7093 * linux-nat.c (linux_child_follow_fork): Do a single step before
7094 detach.
7095
4186eb54
KS
70962014-06-07 Keith Seitz <keiths@redhat.com>
7097
7098 Revert:
7099 PR c++/16253
7100 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7101 from symbol_matches_domain in symtab.c. All local callers
7102 of symbol_matches_domain updated.
7103 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7104 search STRUCT_DOMAIN.
7105 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7106 independently. standard_lookup will do that automatically.
7107 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7108 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7109 (cp_lookup_symbol_in_namespace): Likewise.
7110 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7111 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7112 may return a STRUCT_DOMAIN match.
7113 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7114 * cp-support.c: Include language.h.
7115 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7116 VAR_DOMAIN.
7117 * psymtab.c (match_partial_symbol): Compare the requested
7118 domain with the symbol's domain directly.
7119 (lookup_partial_symbol): Likewise.
7120 * symtab.c (lookup_symbol_in_language): Explain when/why
7121 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7122 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7123 appropriate languages.
7124 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7125 and moved to ada-lang.c
7126 (lookup_block_symbol): Explain that this function only returns
7127 symbol matching the requested DOMAIN.
7128 Compare the requested domain with the symbol's domain directly.
7129 (iterate_over_symbols): Compare the requested domain with the
7130 symbol's domain directly.
7131 * symtab.h (symbol_matches_domain): Remove.
7132
25326a28 71332014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
7134
7135 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7136 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7137 (gdbscm_guile_version_is_at_least): Declare.
7138 (gdbscm_scm_string_to_int): Declare.
7139 * guile/guile.c (gdbscm_guile_major_version): New global.
7140 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7141 (guile_datadir): New static global.
7142 (gdbscm_guile_data_directory): New function.
7143 (initialize_scheme_side): Update.
7144 (misc_guile_functions): Add guile-data-directory.
7145 (initialize_gdb_module): Fetch guile version number.
7146 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7147 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7148 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7149 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7150 comments.
7151 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7152 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7153 * guile/scm-value.c (gdbscm_value_to_string): Only call
7154 scm_port_conversion_strategy if Guile version >= 2.0.6.
7155
0a770bb2 71562014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7157
7158 * main.c (print_gdb_help): Add -q and --silent.
7159
73ba372c
GB
71602014-06-06 Gary Benson <gbenson@redhat.com>
7161
7162 * common/signals.c: Remove preprocessor conditionals for
7163 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7164 SIGSEGV and SIGTERM.
7165 * proc-events.c: Likewise.
7166
c33b2f12
MM
71672014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7168
7169 * symfile.c (symfile_free_objfile): Remove restriction to
7170 OBJF_USERLOADED.
7171 * symfile-mem.c (symbol_file_add_from_memory): Call
7172 add_target_sections_of_objfile.
7173
fb934770
LC
71742014-06-05 Ludovic Courtès <ludo@gnu.org>
7175
7176 * guile/scm-value.c (gdbscm_history_append_x): Use
7177 'vlscm_get_value_smob_arg_unsafe' instead of
7178 'vlscm_scm_to_value'.
7179
6ef284bd
SM
71802014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7181
7182 PR mi/15806
7183 * utils.c (printchar): Don't escape at all if quoter is NUL.
7184 Update function documentation to clarify effect of parameter
7185 QUOTER.
7186 * remote.c (escape_buffer): Pass '\\' as the quoter to
7187 fputstrn_unfiltered.
7188 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7189 generate the output.
7190 (mi_solib_unloaded): Same.
7191
270c9937
JB
71922014-06-05 Joel Brobecker <brobecker@adacore.com>
7193
7194 * development.sh: Delete.
7195 * Makefile.in (config.status): Adjust dependency on development.sh.
7196 * configure.ac: Adjust development.sh source call.
7197 * configure: Regenerate.
7198
16f691fb
DE
71992014-06-04 Doug Evans <xdje42@gmail.com>
7200
7201 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7202 is_scheme_bkpt, spec.
7203 (bpscm_make_breakpoint_smob): Initialize new members.
7204 (gdbscm_create_breakpoint_x): Split into two ...
7205 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7206 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7207 (scheme_function breakpoint_functions): Update.
7208 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7209 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7210 register-breakpoint!.
7211
ef7cab6b
JB
72122014-06-04 Joel Brobecker <brobecker@adacorer.com>
7213
7214 PR server/17023
7215 * mem-break.c (z_type_supported): Return zero if
7216 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7217
012370f6
TT
72182014-06-04 Tom Tromey <tromey@redhat.com>
7219
7220 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7221 value_from_contents_and_address_unresolved.
7222 (ada_template_to_fixed_record_type_1): Likewise.
7223 (ada_which_variant_applies): Likewise.
7224 * value.h (value_from_contents_and_address_unresolved): Declare.
7225 * value.c (value_from_contents_and_address_unresolved): New
7226 function.
7227 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7228 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7229 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7230
92e2a17f
TT
72312014-06-04 Tom Tromey <tromey@redhat.com>
7232
7233 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7234
c0939df1
TT
72352014-06-04 Tom Tromey <tromey@redhat.com>
7236
7237 * procfs.c (procfs_attach): Make "args" const.
7238 * windows-nat.c (windows_attach): Make "args" const.
7239 * nto-procfs.c (procfs_attach): Make "args" const.
7240 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7241 * go32-nat.c (go32_attach): Make "args" const.
7242 * gnu-nat.c (gnu_attach): Make "args" const.
7243 * darwin-nat.c (darwin_attach): Make "args" const.
7244 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7245 * linux-nat.c (linux_nat_attach): Make "args" const.
7246 * remote.c (extended_remote_attach_1, extended_remote_attach):
7247 Make "args" const.
7248 * target.h (struct target_ops) <to_attach>: Make "args" const.
7249 (find_default_attach): Likewise.
7250 * utils.c (parse_pid_to_attach): Make "args" const.
7251 * utils.h (parse_pid_to_attach): Update.
7252
8eaff7cd
TT
72532014-06-04 Tom Tromey <tromey@redhat.com>
7254
7255 * target-delegates.c: Rebuild.
7256 * target.c (default_thread_address_space): New function.
7257 (target_thread_address_space): Simplify.
7258 * target.h (struct target_ops) <to_thread_address_space>: Add
7259 TARGET_DEFAULT_FUNC.
7260
1913f160
DE
72612014-06-04 Doug Evans <xdje42@gmail.com>
7262
7263 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7264
70ad5bff
MM
72652014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7266
7267 * record-btrace.c: Include event-loop.h and inf-loop.h.
7268 (record_btrace_resume_exec_dir)
7269 (record_btrace_async_inferior_event_handler)
7270 (record_btrace_handle_async_inferior_event): New.
7271 (record_btrace_open): Create async event handler.
7272 (record_btrace_close): Delete async event handler.
7273 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7274 Mark async event handler.
7275 (record_btrace_execution_direction): New.
7276 (init_record_btrace_ops): Initialize to_execution_direction.
7277
b6210538
DE
72782014-06-03 Doug Evans <xdje42@gmail.com>
7279
7280 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7281 (gdbscm_make_parameter): Ditto.
7282
a5b1fd27
DE
72832014-06-03 Doug Evans <dje@google.com>
7284
7285 * exec.c (exec_close_1): Call clear_section_table instead of
7286 resize_section_table.
7287 (clear_section_table): New function.
7288 (resize_section_table): Make static. Rename arg num_added to
7289 adjustment.
7290 * exec.h (clear_section_table): Declare.
7291 (resize_section_table): Delete.
7292 * progspace.c (release_program_space): Call clear_section_table
7293 instead of resize_section_table.
7294
0c6e92a5
SC
72952014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7296
7297 * NEWS (Python Scripting): Add entry about the new xmethods
7298 feature.
7299
883964a7
SC
73002014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7301
7302 * python/py-xmethods.c: New file.
7303 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7304 (objfpy_dealloc): XDECREF on the new xmethods field.
7305 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7306 field.
7307 (objfpy_get_xmethods): New function.
7308 (objfile_getset): New entry 'xmethods'.
7309 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7310 (pspy_dealloc): XDECREF on the new xmethods field.
7311 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7312 field.
7313 (pspy_get_xmethods): New function.
7314 (pspace_getset): New entry 'xmethods'.
7315 * python/python-internal.h: Add declarations for new functions.
7316 * python/python.c (_initialize_python): Invoke
7317 gdbpy_initialize_xmethods.
7318 * python/lib/gdb/__init__.py (xmethods): New
7319 attribute.
7320 * python/lib/gdb/xmethod.py: New file.
7321 * python/lib/gdb/command/xmethods.py: New file.
7322
58992dc5
SC
73232014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7324
7325 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7326 best match method returned by find_overload_match is an xmethod.
7327 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7328 the best matching operator returned by find_overload_match is an
7329 xmethod.
7330 * valops.c: #include "extension.h".
7331 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7332 Return void. The list of matching source methods is returned in
7333 "fn_list" and a vector of matching debug method workers is
7334 returned in "xm_worker_vec". Update all callers.
7335 (value_find_oload_method_list): Likewise.
7336 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7337 non-NULL, then the index of the best matching method in this
7338 vector is returned. Update all callers.
7339 (find_overload_match): Include xmethods while performing overload
7340 resolution.
7341
e81e7f5e
SC
73422014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7343
7344 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7345 * extension-priv.h (struct extension_language_ops): Add the
7346 xmethod interface.
7347 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7348 get_matching_xmethod_workers, get_xmethod_argtypes,
7349 invoke_xmethod, free_xmethod_worker,
7350 free_xmethod_worker_vec): New functions.
7351 * extension.h: #include "common/vec.h".
7352 New function declarations.
7353 (struct xmethod_worker): New struct.
7354 (VEC (xmethod_worker_ptr)): New vector type.
7355 (xmethod_worker_ptr): New typedef.
7356 (xmethod_worker_vec): Likewise.
7357 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7358 builtin_type.
7359 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7360 (struct builtin_type): New field "xmethod".
7361 * valarith.c (value_ptradd): Assert that the value argument is not
7362 lval_xcallable.
7363 * valops.c (value_must_coerce_to_target): Return 0 for
7364 lval_xcallable values.
7365 * value.c (struct value): New field XM_WORKER in the field
7366 LOCATION.
7367 (value_address, value_raw_address): Return 0 for lval_xcallable
7368 values.
7369 (set_value_address): Assert that the value is not an
7370 lval_xcallable.
7371 (value_free): Free the associated xmethod worker when freeing
7372 lval_xcallable values.
7373 (set_value_component_location): Assert that the WHOLE value is not
7374 lval_xcallable.
7375 (value_of_xmethod, call_xmethod): New functions.
7376 * value.h: Declare "struct xmethod_worker".
7377 Declare new functions value_of_xmethod, call_xmethod.
7378
ef370185
JB
73792014-06-03 Joel Brobecker <brobecker@adacore.com>
7380 Pedro Alves <palves@redhat.com>
7381
7382 PR breakpoints/17000
7383 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7384 New function, extracted from software_breakpoint_inserted_here_p.
7385 (software_breakpoint_inserted_here_p): Replace factored out code
7386 by call to find_non_raw_software_breakpoint_inserted_here.
7387 (bp_target_info_copy_insertion_state): New function.
7388 (bkpt_insert_location): Handle the case of a single-step
7389 breakpoint already inserted at the same address.
7390 (bkpt_remove_location): Handle the case of a single-step
7391 breakpoint still inserted at the same address.
7392 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7393 breakpoint already inserted at the same address.
7394 (deprecated_remove_raw_breakpoint): Handle the case of a
7395 non-raw breakpoint still inserted at the same address.
7396 (find_single_step_breakpoint): New function, extracted from
7397 single_step_breakpoint_inserted_here_p.
7398 (find_single_step_breakpoint): New function,
7399 factored out from single_step_breakpoint_inserted_here_p.
7400 (single_step_breakpoint_inserted_here_p): Reimplement.
7401
1e2ccb61
BM
74022014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7403
7404 Pushed by Joel Brobecker <brobecker@adacore.com>
7405 * source.c (show_substitute_path_command): Fix display of matching
7406 substitution rules.
7407
d3448d85
GB
74082014-06-03 Gary Benson <gbenson@redhat.com>
7409
7410 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7411
06eb1586
DE
74122014-06-02 Doug Evans <xdje42@gmail.com>
7413
7414 Add parameter support for Guile.
7415 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7416 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7417 (scm-param.o): New rule.
7418 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7419 (gdbscm_misc_error): Declare.
7420 (gdbscm_canonicalize_command_name): Declare.
7421 (gdbscm_scm_to_host_string): Declare.
7422 (gdbscm_scm_from_host_string): Declare.
7423 (gdbscm_initialize_parameters): Declare.
7424 * guile/guile.c (initialize_gdb_module): Call
7425 gdbscm_initialize_parameters.
7426 * guile/lib/gdb.scm: Export parameter symbols.
7427 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7428 cmdscm_canonicalize_name and made public. All callers updated.
7429 * guile/scm-exception.c (gdbscm_misc_error): New function.
7430 * guile/scm-param.c: New file.
7431 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7432 (gdbscm_scm_to_host_string): New function.
7433 (gdbscm_scm_from_host_string): New function.
7434 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7435
e698b8c4
DE
74362014-06-02 Doug Evans <xdje42@gmail.com>
7437
7438 Add command support for Guile.
7439 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7440 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7441 (scm-cmd.o): New rule.
7442 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7443 (gdbscm_user_error_p): Declare.
7444 (gdbscm_parse_command_name): Declare.
7445 (gdbscm_valid_command_class_p): Declare.
7446 (gdbscm_initialize_commands): Declare.
7447 * guile/guile.c (initialize_gdb_module): Call
7448 gdbscm_initialize_commands.
7449 * guile/lib/gdb.scm: Export command symbols.
7450 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7451 (throw-user-error): New function.
7452 * guile/scm-cmd.c: New file.
7453 * guile/scm-exception.c (user_error_symbol): New static global.
7454 (gdbscm_user_error_p): New function.
7455 (gdbscm_initialize_exceptions): Set user_error_symbol.
7456 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7457
fb1f94b0
PM
74582014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7459
7460 * top.c (command_loop): Handle comments here...
7461 (command_line_input): ... not here.
7462
ded03782
DE
74632014-06-02 Doug Evans <xdje42@gmail.com>
7464
7465 Add progspace support for Guile.
7466 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7467 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7468 (scm-progspace.o): New rule.
7469 * guile/guile-internal.h (pspace_smob): New typedef.
7470 (psscm_pspace_smob_pretty_printers): Declare.
7471 (psscm_pspace_smob_from_pspace): Declare.
7472 (psscm_scm_from_pspace): Declare.
7473 * guile/guile.c (initialize_gdb_module): Call
7474 gdbscm_initialize_pspaces.
7475 * guile/lib/gdb.scm: Export progspace symbols.
7476 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7477 support.
7478 (append-pretty-printer!): Ditto.
7479 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7480 Implement.
7481 * guile/scm-progspace.c: New file.
7482
397998fc
AM
74832014-06-03 Alan Modra <amodra@gmail.com>
7484
7485 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7486 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7487
6aa5f3a6
DE
74882014-06-02 Doug Evans <dje@google.com>
7489
7490 Add support for skeletonless type units.
7491 * dwarf2read.c (struct dwarf2_per_objfile): New member
7492 n_allocated_type_units.
7493 (struct dwarf2_per_objfile) <tu_stats>: New member
7494 nr_all_type_units_reallocs.
7495 (create_signatured_type_table_from_index): Initialize
7496 n_allocated_type_units
7497 (create_all_type_units): Ditto.
7498 (add_type_unit): Move up in file. New arg slot.
7499 All callers updated. Increase space for all_type_units more
7500 efficiently.
7501 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7502 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7503 (lookup_dwp_signatured_type): Ditto.
7504 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7505 All callers updated.
7506 (build_type_psymtabs_1): Leave type_unit_groups as
7507 NULL if no TUs present.
7508 (print_tu_stats): New function.
7509 (process_skeletonless_type_unit): New function.
7510 (process_dwo_file_for_skeletonless_type_units): New
7511 function.
7512 (process_skeletonless_type_units): New function.
7513 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7514 Call print tu_stats if debugging enabled.
7515
41fac0cf
PA
75162014-06-02 Pedro Alves <palves@redhat.com>
7517
7518 * breakpoint.c (build_target_command_list): Don't build a command
7519 list if we have any duplicate location that isn't a dprintf.
7520
cd1608cc
PA
75212014-06-02 Pedro Alves <palves@redhat.com>
7522
7523 * breakpoint.c (dprintf_breakpoint_hit): New function.
7524 (initialize_breakpoint_ops): Install it as dprintf's
7525 breakpoint_hit method.
7526
486ef3b9
JB
75272014-06-02 Joel Brobecker <brobecker@adacore.com>
7528
7529 * source.c (substitute_path_rule_matches): Simplify using
7530 filename_ncmp instead of FILENAME_CMP.
7531
230cd560
JB
75322014-06-02 Joel Brobecker <brobecker@adacore.com>
7533
7534 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7535
16954d5d
LC
75362014-06-01 Ludovic Courtès <ludo@gnu.org>
7537
7538 * configure.ac: When Guile is available, check for the
7539 availability of 'scm_new_smob'.
7540 * configure, config.h.in: Regenerate.
7541 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7542 function.
7543
53e8a631
AB
75442014-05-30 Andrew Burgess <aburgess@broadcom.com>
7545
7546 * frame.c (struct frame_info): Add stop_string field.
7547 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7548 (get_prev_frame_always): Old content moved into
7549 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7550 TRY_CATCH, handle MEMORY_ERROR exceptions.
7551 (frame_stop_reason_string): New function definition.
7552 * frame.h (unwind_stop_reason_to_string): Extend comment to
7553 mention frame_stop_reason_string.
7554 (frame_stop_reason_string): New function declaration.
7555 * stack.c (frame_info): Switch to frame_stop_reason_string.
7556 (backtrace_command_1): Switch to frame_stop_reason_string.
7557 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7558 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7559 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7560
70e38b8e
AB
75612014-05-30 Andrew Burgess <aburgess@broadcom.com>
7562
7563 * frame.c (frame_stop_reason_string): Rename to ...
7564 (unwind_stop_reason_to_string): this.
7565 * frame.h (frame_stop_reason_string): Rename to ...
7566 (unwind_stop_reason_to_string): this.
7567 * stack.c (frame_info): Update call to frame_stop_reason_string.
7568 (backtrace_command_1): Likewise.
7569 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7570 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7571
938f0e2f
AB
75722014-05-30 Andrew Burgess <aburgess@broadcom.com>
7573
7574 * frame.c (remove_prev_frame): New function.
7575 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7576 remove_prev_frame.
7577
a09dd441
PA
75782014-05-29 Pedro Alves <palves@redhat.com>
7579
7580 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7581 and make it const. When a single-step decays to a continue,
7582 clear 'step', not 'hw_step'. Pass whether the caller wanted
7583 to step to user_visible_resume_ptid, not what we ask the
7584 target to do.
7585
bdc36728
PA
75862014-05-29 Pedro Alves <palves@redhat.com>
7587
7588 * infrun.c (process_event_stop_test, handle_step_into_function)
7589 (handle_step_into_function_backward): Adjust.
7590 Don't set the even thread's stop_step and call stop_waiting before
7591 calling end_stepping_range. Instead do that ...
7592 (end_stepping_range): ... here. Take an ecs pointer parameter.
7593
22bcd14b
PA
75942014-05-29 Pedro Alves <palves@redhat.com>
7595
7596 * infrun.c (stop_stepping): Rename to ...
7597 (stop_waiting): ... this.
7598 (proceed): Update comment.
7599 (process_event_stop_test, handle_inferior_event)
7600 (handle_signal_stop, handle_step_into_function)
7601 (handle_step_into_function_backward): Update.
7602
4ae57c05
PA
76032014-05-29 Pedro Alves <palves@redhat.com>
7604
7605 * infcall.c (run_inferior_call): Don't check whether the current
7606 thread is running after the proceed call.
7607
329ea579
PA
76082014-05-29 Pedro Alves <palves@redhat.com>
7609 Tom Tromey <tromey@redhat.com>
7610
7611 * NEWS: Mention "maint set target-async", "set mi-async", and that
7612 background execution commands are now always available.
7613 * target.h (target_async_permitted): Update comment.
7614 * target.c (target_async_permitted, target_async_permitted_1):
7615 Default to 1.
7616 (set_target_async_command): Rename to ...
7617 (maint_set_target_async_command): ... this.
7618 (show_target_async_command): Rename to ...
7619 (maint_show_target_async_command): ... this.
7620 (_initialize_target): Adjust.
7621 * infcmd.c (prepare_execution_command): Make extern.
7622 * inferior.h (prepare_execution_command): Declare.
7623 * infrun.c (set_observer_mode): Leave target async alone.
7624 * mi/mi-interp.c (mi_interpreter_init): Install
7625 mi_on_sync_execution_done as sync_execution_done observer.
7626 (mi_on_sync_execution_done): New function.
7627 (mi_execute_command_input_handler): Don't print the prompt if we
7628 just started a synchronous command with an async target.
7629 (mi_on_resume): Check sync_execution before printing prompt.
7630 * mi/mi-main.h (mi_async_p): Declare.
7631 * mi/mi-main.c: Include gdbcmd.h.
7632 (mi_async_p): New function.
7633 (mi_async, mi_async_1): New globals.
7634 (set_mi_async_command, show_mi_async_command, mi_async): New
7635 functions.
7636 (exec_continue): Call prepare_execution_command.
7637 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7638 (mi_execute_async_cli_command): Use mi_async_p.
7639 (_initialize_mi_main): Install "set mi-async". Make
7640 "target-async" a deprecated alias.
7641
92bcb5f9
PA
76422014-05-29 Pedro Alves <palves@redhat.com>
7643
7644 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7645 (_initialize_cli_interp): Adjust.
7646 * event-loop.c: Include "observer.h".
7647 (start_event_loop): Notify 'command_error' observers instead of
7648 calling display_gdb_prompt. Remove FIXME comment.
7649 * event-top.c (display_gdb_prompt): Remove call into the
7650 interpreters.
7651 * inf-loop.c: Include "observer.h".
7652 (inferior_event_handler): Notify 'command_error' observers instead
7653 of calling display_gdb_prompt.
7654 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7655 observers instead of calling display_gdb_prompt.
7656 * interps.c (interp_set): Don't call display_gdb_prompt.
7657 (current_interp_display_prompt_p): Delete.
7658 * interps.h (interp_prompt_p): Delete declaration.
7659 (interp_prompt_p_ftype): Delete.
7660 (struct interp_procs) <prompt_proc_p>: Delete field.
7661 (current_interp_display_prompt_p): Delete declaration.
7662 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7663 (_initialize_mi_interp): Adjust.
7664 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7665 'command_error' observers.
7666 (tui_on_sync_execution_done, tui_on_command_error): New
7667 functions.
7668 (tui_display_prompt_p): Delete.
7669 (_initialize_tui_interp): Adjust.
7670
fd664c91
PA
76712014-05-29 Pedro Alves <palves@redhat.com>
7672
7673 PR gdb/13860
7674 * cli/cli-interp.c: Include infrun.h and observer.h.
7675 (cli_uiout, cli_interp): New globals.
7676 (cli_on_signal_received, cli_on_end_stepping_range)
7677 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7678 functions.
7679 (cli_interpreter_init): Install them as 'end_stepping_range',
7680 'signal_received' 'signal_exited', 'exited' and 'no_history'
7681 observers.
7682 (_initialize_cli_interp): Remove cli_interp local.
7683 * infrun.c (handle_inferior_event): Call the several stop reason
7684 observers instead of printing the stop reason directly.
7685 (end_stepping_range): New function.
7686 (print_end_stepping_range_reason, print_signal_exited_reason)
7687 (print_exited_reason, print_signal_received_reason)
7688 (print_no_history_reason): Make static, and add an uiout
7689 parameter. Print to that instead of to CURRENT_UIOUT.
7690 * infrun.h (print_end_stepping_range_reason)
7691 (print_signal_exited_reason, print_exited_reason)
7692 (print_signal_received_reason print_no_history_reason): New
7693 declarations.
7694 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7695 'mi_uiout'.
7696 <cli_uiout>: New field.
7697 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7698 uiout for CLI output. Install 'signal_received',
7699 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7700 observers.
7701 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7702 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7703 (mi_on_no_history): New functions.
7704 (ui_out_free_cleanup): Delete function.
7705 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7706 instead use the one already stored in the MI interpreter data.
7707 (mi_ui_out): Adjust.
7708 * tui/tui-interp.c: Include infrun.h and observer.h.
7709 (tui_interp): New global.
7710 (tui_on_signal_received, tui_on_end_stepping_range)
7711 (tui_on_signal_exited, tui_on_exited)
7712 (tui_on_no_history): New functions.
7713 (tui_init): Install them as 'end_stepping_range',
7714 'signal_received' 'signal_exited', 'exited' and 'no_history'
7715 observers.
7716 (_initialize_tui_interp): Delete tui_interp local.
7717
8817a6f2
PA
77182014-05-29 Pedro Alves <palves@redhat.com>
7719
7720 PR gdb/15713
7721 * linux-nat.c (linux_nat_resume_callback): Rename the second
7722 parameter to 'except'. Skip LP if it points to EXCEPT.
7723 (linux_nat_resume): Don't mark the event lwp as not stopped
7724 before resuming sibling lwps. Instead ask
7725 linux_nat_resume_callback to skip the event lwp. Mark it as not
7726 stopped after actually resuming it.
7727 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7728 resuming it.
7729 (wait_lwp): Mark the lwp as stopped here.
7730 (stop_wait_callback): Mark the lwp as not stopped right after
7731 resuming it. Don't mark lwps as stopped here.
7732 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7733 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7734
251bde03
PA
77352014-05-29 Pedro Alves <palves@redhat.com>
7736
7737 PR PR15693
7738 * infrun.c (resume): Determine how much to resume depending on
7739 whether the caller wanted a step, not whether we can hardware step
7740 the target. Mark all threads that we intend to run as running,
7741 unless we're calling an inferior function.
7742 (normal_stop): If the thread is running an infcall, don't finish
7743 thread state.
7744 * target.c (target_resume): Don't mark threads as running here.
7745
7f3c0343
JB
77462014-05-28 Joel Brobecker <brobecker@adacore.com>
7747
7748 * serial.c (_initialize_serial): Remove support for
7749 the "set remotebaud" and "show remotebaud" commands.
7750 * NEWS: Add entry documenting the removal of that command.
7751
ee34b3f9
YQ
77522014-05-28 Yao Qi <yao@codesourcery.com>
7753
7754 * charset.c: Fix typo in comments.
7755
add6c04d
GB
77562014-05-27 Gary Benson <gbenson@redhat.com>
7757
7758 * utils.c (internal_vproblem): Prompt for a bug report.
7759
92c48fc5
AW
77602014-05-26 Andy Wingo <wingo@igalia.com>
7761
7762 * guile/scm-arch.c (arscm_mark_arch_smob):
7763 * guile/scm-block.c (bkscm_mark_block_smob)
7764 (bkscm_mark_block_syms_progress_smob):
7765 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7766 * guile/scm-exception.c (exscm_mark_exception_smob):
7767 * guile/scm-frame.c (frscm_mark_frame_smob):
7768 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7769 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7770 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7771 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7772 (ppscm_mark_pretty_printer_worker_smob):
7773 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7774 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7775 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7776 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7777 mark functions.
7778 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7779 function.
7780
b2715b27
AW
77812014-05-26 Andy Wingo <wingo@igalia.com>
7782 Doug Evans <xdje42@gmail.com>
7783
7784 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7785 empty_base_class. All uses updated.
7786 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7787 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7788 Adapt all callers.
7789 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7790 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7791 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7792 (gdbscm_gsmob_has_property_p, add_property_name)
7793 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7794 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7795 (gdb-object-has-property?, gdb-object-properties): Remove.
7796 (gdb-object-kind): Renamed from gsmob-kind.
7797
214ab2da
AW
77982014-05-26 Andy Wingo <wingo@igalia.com>
7799
7800 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7801 * configure: Regenerate.
7802
589fdceb
MM
78032014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7804
7805 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7806
67b5c0c1
MM
78072014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7808
7809 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7810 (replay_memory_access_read_only, replay_memory_access_read_write)
7811 (replay_memory_access_types, replay_memory_access)
7812 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7813 (cmd_set_record_btrace, cmd_show_record_btrace)
7814 (cmd_show_replay_memory_access): New.
7815 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7816 (record_btrace_remove_breakpoint): Replace
7817 record_btrace_allow_memory_access with replay_memory_access.
7818 (_initialize_record_btrace): Add commands.
7819 * NEWS: Announce it.
7820
036cd381
RR
78212014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7822
7823 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7824
c77c1e42
RR
78252014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7826
7827 * MAINTAINERS (Write After Approval): Move self back from
7828 paper trail.
7829
45741a9c
PA
78302014-05-22 Pedro Alves <palves@redhat.com>
7831
7832 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7833 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7834 (disable_randomization, enum exec_direction_kind)
7835 (execution_direction, stop_registers, start_remote)
7836 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7837 (wait_for_inferior, normal_stop, get_last_target_status)
7838 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7839 (insert_step_resume_breakpoint_at_sal)
7840 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7841 (set_step_info, print_stop_event, signal_stop_state)
7842 (signal_print_state, signal_pass_state, signal_stop_update)
7843 (signal_print_update, signal_pass_update)
7844 (update_signals_program_target, clear_exit_convenience_vars)
7845 (displaced_step_dump_bytes, update_observer_mode)
7846 (signal_catch_update, gdb_signal_from_command): Move
7847 declarations ...
7848 * infrun.h: ... to this new file.
7849 * amd64-tdep.c: Include infrun.h.
7850 * annotate.c: Include infrun.h.
7851 * arch-utils.c: Include infrun.h.
7852 * arm-linux-tdep.c: Include infrun.h.
7853 * arm-tdep.c: Include infrun.h.
7854 * break-catch-sig.c: Include infrun.h.
7855 * breakpoint.c: Include infrun.h.
7856 * common/agent.c: Include infrun.h instead of inferior.h.
7857 * corelow.c: Include infrun.h.
7858 * event-top.c: Include infrun.h.
7859 * go32-nat.c: Include infrun.h.
7860 * i386-tdep.c: Include infrun.h.
7861 * inf-loop.c: Include infrun.h.
7862 * infcall.c: Include infrun.h.
7863 * infcmd.c: Include infrun.h.
7864 * infrun.c: Include infrun.h.
7865 * linux-fork.c: Include infrun.h.
7866 * linux-nat.c: Include infrun.h.
7867 * linux-thread-db.c: Include infrun.h.
7868 * monitor.c: Include infrun.h.
7869 * nto-tdep.c: Include infrun.h.
7870 * procfs.c: Include infrun.h.
7871 * record-btrace.c: Include infrun.h.
7872 * record-full.c: Include infrun.h.
7873 * remote-m32r-sdi.c: Include infrun.h.
7874 * remote-mips.c: Include infrun.h.
7875 * remote-notif.c: Include infrun.h.
7876 * remote-sim.c: Include infrun.h.
7877 * remote.c: Include infrun.h.
7878 * reverse.c: Include infrun.h.
7879 * rs6000-tdep.c: Include infrun.h.
7880 * s390-linux-tdep.c: Include infrun.h.
7881 * solib-irix.c: Include infrun.h.
7882 * solib-osf.c: Include infrun.h.
7883 * solib-svr4.c: Include infrun.h.
7884 * target.c: Include infrun.h.
7885 * top.c: Include infrun.h.
7886 * windows-nat.c: Include infrun.h.
7887 * mi/mi-interp.c: Include infrun.h.
7888 * mi/mi-main.c: Include infrun.h.
7889 * python/py-threadevent.c: Include infrun.h.
7890
98eb56a4
PA
78912014-05-22 Pedro Alves <palves@redhat.com>
7892
7893 * infrun.c (handle_inferior_event): Store the exit code for
7894 --return-child-result here, instead of ...
7895 (print_exited_reason): ... here.
7896
17b2616c
PA
78972014-05-21 Pedro Alves <palves@redhat.com>
7898
7899 PR gdb/13860
7900 * gdbthread.h (struct thread_control_state): New field
7901 `command_interp'.
7902 * infrun.c (follow_fork): Copy the new thread control field to the
7903 child fork thread.
7904 (clear_proceed_status_thread): Clear the new thread control field.
7905 (proceed): Set the new thread control field.
7906 * interps.h (command_interp): Declare.
7907 * interps.c (command_interpreter): New global.
7908 (command_interp): New function.
7909 (interp_exec): Set `command_interpreter' while here.
7910 * cli-out.c (cli_uiout_dtor): New function.
7911 (cli_ui_out_impl): Install it.
7912 * mi/mi-interp.c: Include cli-out.h.
7913 (mi_cmd_interpreter_exec): Add comment.
7914 (restore_current_uiout_cleanup): New function.
7915 (ui_out_free_cleanup): New function.
7916 (mi_on_normal_stop): If finishing an execution command started by
7917 a CLI command, or any kind of breakpoint-like event triggered,
7918 print the stop event to the output (CLI) stream.
7919 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7920
5166082f
PA
79212014-05-21 Pedro Alves <palves@redhat.com>
7922
7923 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7924 current source line having changed.
7925 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7926 * infrun.c (normal_stop): Adjust call to
7927 set_current_sal_from_frame.
7928 * source.c (clear_lines_listed_range): New function.
7929 (set_current_source_symtab_and_line, identify_source_line): Clear
7930 the lines listed range.
7931 (line_info): Handle the first "info line" after the current source
7932 line having changed.
7933 * stack.c (print_stack_frame): Remove center handling.
7934 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7935 center sal.line.
7936
c1ee2fb3
PA
79372014-05-21 Pedro Alves <palves@redhat.com>
7938
7939 * inf-child.c (inf_child_mourn_inferior): New function.
7940 * inf-child.h (inf_child_mourn_inferior): New declaration.
7941 * darwin-nat.c (darwin_mourn_inferior): Use
7942 inf_child_mourn_inferior.
7943 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7944 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7945 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7946 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7947 * windows-nat.c (windows_mourn_inferior): Likewise.
7948
5c6d4fb2
DE
79492014-05-21 Doug Evans <xdje42@gmail.com>
7950
250748cb 7951 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 7952
4a2722c5
DE
79532014-05-21 Doug Evans <xdje42@gmail.com>
7954
17292b30 7955 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
7956 (gdbscm_out_of_range_error): Ditto.
7957 (gdbscm_memory_error): Ditto.
250748cb
DE
7958 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7959 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
7960 (gdbscm_out_of_range_error): Update.
7961 (gdbscm_memory_error): Update.
7962 (gdbscm_scm_to_target_string_unsafe): Delete.
7963
6a3cb8e8
PA
79642014-05-21 Pedro Alves <palves@redhat.com>
7965
7966 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7967 globals.
7968 (inf_child_open_target): New function.
7969 (inf_child_open): Use inf_child_open_target to push the target
7970 instead of erroring out.
7971 (inf_child_disconnect, inf_child_close)
7972 (inf_child_maybe_unpush_target): New functions.
7973 (inf_child_target): Install inf_child_disconnect and
7974 inf_child_close. Store a pointer to the returned object.
7975 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7976 declarations.
7977 * target.c (auto_connect_native_target): New global.
7978 (show_default_run_target): New function.
7979 (find_default_run_target): Return NULL if automatically connecting
7980 to the native target is disabled.
7981 (_initialize_target): Install set/show auto-connect-native-target.
7982 * NEWS: Mention "set auto-connect-native-target", and "target
7983 native".
7984 * linux-nat.c (super_close): New global.
7985 (linux_nat_close): Call super_close.
7986 (linux_nat_add_target): Store a pointer to the base class's
7987 to_close method.
7988 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7989 inf_child_maybe_unpush.
7990 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7991 already pushed.
7992 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7993 the inferior. Use inf_child_maybe_unpush_target.
7994 (inf_ttrace_attach): Don't push the target if it is already
7995 pushed.
7996 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7997 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7998 after mourning the inferior. Use inf_child_maybe_unpush_target.
7999 (darwin_attach_pid): Don't push the target if it is already
8000 pushed.
8001 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
8002 mourning the inferior. Use inf_child_maybe_unpush_target.
8003 (gnu_detach): Use inf_child_maybe_unpush_target.
8004 * go32-nat.c (go32_create_inferior): Don't push the target if it
8005 is already pushed.
8006 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
8007 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
8008 (procfs_open): Rename to ...
8009 (procfs_open_1): ... this. Add target_ops parameter. Adjust
8010 comments. Can target_preopen before changing node. Call
8011 inf_child_open_target to push the target explicitly.
8012 (procfs_attach): Don't push the target if it is already pushed.
8013 (procfs_detach): Use inf_child_maybe_unpush_target.
8014 (procfs_create_inferior): Don't push the target if it is already
8015 pushed.
8016 (nto_native_ops): New global.
8017 (procfs_open): Reimplement.
8018 (procfs_native_open): New function.
8019 (init_procfs_targets): Install procfs_native_open as to_open of
8020 "target native". Store a pointer to the "native" target in
8021 nto_native_ops.
8022 * procfs.c (procfs_attach): Don't push the target if it is already
8023 pushed.
8024 (procfs_detach): Use inf_child_maybe_unpush_target.
8025 (procfs_mourn_inferior): Only unpush the target after mourning the
8026 inferior. Use inf_child_maybe_unpush_target.
8027 (procfs_init_inferior): Don't push the target if it is already
8028 pushed.
8029 * windows-nat.c (do_initial_windows_stuff): Don't push the target
8030 if it is already pushed.
8031
930ee1b1
PA
80322014-05-21 Pedro Alves <palves@redhat.com>
8033
8034 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8035 and "procfs" targets are now called "native" instead.
8036
1f5d1b13
PA
80372014-05-21 Pedro Alves <palves@redhat.com>
8038
8039 * go32-nat.c (go32_open): Delete.
8040 (go32_target): Don't override the to_open method.
8041
132f8e03
PA
80422014-05-21 Pedro Alves <palves@redhat.com>
8043
8044 * nto-procfs.c (procfs_can_run): New function.
8045 (nto_procfs_ops): New global.
8046 (init_procfs_targets): New, based on procfs_target. Install
8047 "target native" in addition to "target procfs".
8048 (_initialize_procfs): Call init_procfs_targets instead of adding
8049 the target here.
8050
03c136c3
PA
80512014-05-21 Pedro Alves <palves@redhat.com>
8052
8053 * windows-nat.c (windows_target): Don't override to_shortname,
8054 to_longname or to_doc.
8055
a635d0f3
PA
80562014-05-21 Pedro Alves <palves@redhat.com>
8057
8058 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8059 to_doc.
8060
4f9b5133
PA
80612014-05-21 Pedro Alves <palves@redhat.com>
8062
8063 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8064 to_shortname, to_longname or to_doc.
8065
bc85afde
PA
80662014-05-21 Pedro Alves <palves@redhat.com>
8067
8068 * go32-nat.c (go32_target): Don't override to_shortname,
8069 to_longname or to_doc.
8070
4ebfc96e
PA
80712014-05-21 Pedro Alves <palves@redhat.com>
8072
8073 * inf-child.c (inf_child_open): Remove mention of "child".
8074 (inf_child_target): Rename target to "native" instead of "child".
8075
2648dfed
AA
80762014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8077
8078 * Makefile.in (SFILES): Delete "regset.c".
8079 (COMMON_OBS): Delete "regset.o".
8080 * regset.c: Remove.
8081 * regset.h (regset_alloc): Delete prototype.
8082
b13feb94
AA
80832014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8084
8085 * sparc-linux-tdep.c (sparc32_linux_gregset)
8086 (sparc32_linux_fpregset): New static regset structures.
8087 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8088 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8089 'fpregset' fields.
8090 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8091 (sparc64_linux_fpregset): New static regset structures.
8092 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8093 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8094 New static regset structures.
8095 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8096 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8097 New static regset structures.
8098 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8099 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8100 New static regset structures.
8101 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8102 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8103 New static regset structures.
8104 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8105
b4fd25c9
AA
81062014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8107
8108 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8109 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8110 register maps ("regmaps") from "*regset" to "*regmap". Do this
8111 for all regmap types and variables.
8112 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8113 (sparc32_linux_supply_core_gregset)
8114 (sparc32_linux_collect_core_gregset)
8115 (sparc32_linux_supply_core_fpregset)
8116 (sparc32_linux_collect_core_fpregset): Likewise.
8117 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8118 (sparc_gregmap, sparc_fpregmap): ... these.
8119 (sparc_supply_gregset, sparc_collect_gregset)
8120 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8121 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8122 (_initialize_sparc_nat): Rename regmaps.
8123 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8124 (sparc_gregmap, sparc_fpregmap): ... these.
8125 (sparc_supply_gregset, sparc_collect_gregset)
8126 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8127 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8128 Rename macros to...
8129 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8130 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8131 Likewise.
8132 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8133 Rename to...
8134 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8135 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8136 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8137 regmaps.
8138 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8139 (sparc32_bsd_fpregset): Rename to...
8140 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8141 (sparc32_bsd_fpregmap): ... these.
8142 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8143 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8144 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8145 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8146 (struct sparc_gregmap, struct sparc_fpregmap)
8147 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8148 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8149 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8150 (sparc32_supply_regset, sparc32_collect_gregset)
8151 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8152 prototypes.
8153 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8154 (sparc64_linux_ptrace_gregmap): ... this.
8155 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8156 (_initialize_sparc64_linux_nat): Rename regmaps.
8157 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8158 (sparc64_linux_core_gregmap): ... this.
8159 (sparc64_linux_supply_core_gregset)
8160 (sparc64_linux_collect_core_gregset)
8161 (sparc64_linux_supply_core_fpregset)
8162 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8163 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8164 (sparc64_sol2_fpregset): Rename to...
8165 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8166 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8167 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8168 regmaps.
8169 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8170 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8171 (sparc64_bsd_fpregset): Rename to...
8172 (struct sparc_gregmap, sparc64_sol2_gregmap)
8173 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8174 (sparc64_bsd_fpregmap): ... these.
8175 (sparc64_supply_gregset, sparc64_collect_gregset)
8176 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8177 prototypes.
8178 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8179 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8180 (sparc64fbsd_gregmap): ... this.
8181 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8182 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8183 Rename regmaps.
8184 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8185 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8186 (sparc64nbsd_collect_fpregset): Likewise.
8187 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8188 (sparc64nbsd_gregmap): ... this.
8189 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8190 regmaps.
8191 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8192 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8193 (sparc64obsd_gregmap): ... this.
8194 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8195 regmaps.
8196 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8197 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8198 (sparc32nbsd_gregmap): ... this.
8199 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8200 regmaps.
8201
8fea3224
AA
82022014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8203
8204 * score-tdep.c (score7_linux_gregset): New static regset
8205 structure.
8206 (score7_linux_regset_from_core_section): Remove dynamic regset
8207 allocation.
8208 (score_gdbarch_init): Drop allocation of tdep structure.
8209 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8210
24534243
AA
82112014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8212
8213 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8214 regset structures.
8215 (am33_regset_from_core_section): Remove dynamic regset
8216 allocations.
8217
b7195f27
AA
82182014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8219
8220 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8221 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8222 structures.
8223 (mips_linux_regset_from_core_section): Remove dynamic regset
8224 allocations.
8225 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8226 'gregset64', 'fpregset', and 'fpregset64'.
8227 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8228 deleted tdep fields.
8229
ecc37a5a
AA
82302014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8231
8232 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8233 regset structures.
8234 (amd64_regset_from_core_section): Remove dynamic regset
8235 allocations.
8236 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8237 structure.
8238 (amd64obsd_regset_from_core_section): Remove dynamic regset
8239 allocation.
8240 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8241 Likewise.
8242 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8243 x86-common regset supply function.
8244 * i386-tdep.c (i386_collect_gregset): Make static.
8245 (i386_gregset): New global regset structure.
8246 (i386_fpregset, i386_xstateregset): New static regset structures.
8247 (i386_regset_from_core_section): Remove dynamic regset
8248 allocations.
8249 (i386_gdbarch_init): Remove initialization of tdep fields
8250 'gregset', 'fpregset', and 'xstateregset'.
8251 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8252 'fpregset', and 'xstateregset'.
8253 (i386_collect_gregset): Remove prototype.
8254 (i386_gregset): New declaration.
8255 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8256 structure.
8257 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8258 allocation.
8259
b7611c43
AA
82602014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8261
8262 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8263 (arm_linux_vfpregset): New static regset structures.
8264 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8265 regset structures.
8266 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8267 and 'vfpregset' fields.
8268
a069a2bd
AA
82692014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8270
8271 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8272 (aarch64_linux_fpregset): New static regset structures.
8273 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8274 of regset structures.
8275 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8276 'fpregset' fields.
8277
09424cff
AA
82782014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8279
8280 * regset.h (struct regset): Remove gdbarch field.
8281 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8282 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8283 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8284 Likewise.
8285 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8286 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8287 (ppc32_linux_vsxregset): Likewise.
8288 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8289 via the regcache instead of the regset.
8290 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8291 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8292 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8293 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8294 Likewise.
8295
3ca7dae4
AA
82962014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8297
8298 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8299 Constify structures.
8300 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8301 (alphanbsd_aout_gregset): Likewise.
8302 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8303 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8304 Likewise.
8305 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8306 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8307 Likewise.
8308 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8309 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8310 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8311 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8312 * m88k-tdep.c (m88k_gregset): Likewise.
8313 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8314 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8315 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8316 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8317 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8318 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8319 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8320 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8321 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8322 Likewise.
8323 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8324 * sh-tdep.h (sh_corefile_gregset): Likewise.
8325 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8326 * vax-tdep.c (vax_gregset): Likewise.
8327
5876f503
JK
83282014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8329
8330 Fix TLS access for -static -pthread.
8331 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8332 (try_thread_db_load_1): Initialize it.
8333 (thread_db_get_thread_local_address): Call it if LM is zero.
8334 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8335 * target.h (struct target_ops) (to_get_thread_local_address): Add
8336 load_module_addr comment.
8337
0256a6ac
PA
83382014-05-21 Pedro Alves <palves@redhat.com>
8339
8340 * dcache.c (dcache_read_memory_partial): If reading the cache line
8341 fails, fallback to reading just the memory the caller wanted.
8342
227533ac
DE
83432014-05-20 Doug Evans <dje@google.com>
8344
8345 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8346 instead of get_current_arch.
8347
936d2992
PA
83482014-05-20 Pedro Alves <palves@redhat.com>
8349
8350 * NEWS: Mention that compare-sections now works with all targets.
8351
8352 * remote.c (PACKET_qCRC): New enum value.
8353 (remote_verify_memory): Don't send qCRC if the target has no
8354 execution. Use packet_support/packet_ok. If the target doesn't
8355 support the qCRC packet, fallback to a deep memory copy.
8356 (compare_sections_command): Say "target image" instead of "remote
8357 executable".
8358 (_initialize_remote): Add PACKET_qCRC to the list of config
8359 packets that have no associated command. Extend comment.
8360 * target.c (simple_verify_memory, default_verify_memory): New
8361 function.
8362 * target.h (struct target_ops) <to_verify_memory>: Default to
8363 default_verify_memory.
8364 (simple_verify_memory): New declaration.
8365 * target-delegates.c: Regenerate.
8366
e59fa00f
MM
83672014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8368
8369 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8370
f2205de0
HZ
83712014-05-20 Hui Zhu <hui@codesourcery.com>
8372 Yao Qi <yao@codesourcery.com>
8373
8374 PR backtrace/16558
8375 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8376 and change address of sp and pc.
8377
c4e54771
TT
83782014-05-19 Tom Tromey <tromey@redhat.com>
8379
8380 * gdbtypes.c (rank_function): Use XNEWVEC.
8381 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8382
73051182
DE
83832014-05-19 Doug Evans <dje@google.com>
8384
8385 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8386 build_type_unit_groups and moved closer to only caller. Remove
8387 arguments. All references updated. Remove outdated .gdb_index
8388 comment.
8389 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8390 build_type_psymtabs_1.
8391
8832e7e3
DE
83922014-05-19 Doug Evans <dje@google.com>
8393
8394 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8395 n_type_unit_groups, all_type_unit_groups. All uses removed.
8396 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8397 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8398 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8399 (add_type_unit_group_to_table): Delete.
8400
cd8ae15e
DE
84012014-05-19 Doug Evans <dje@google.com>
8402
8403 * eval.c (evaluate_subexp_standard): Add some comments.
8404
08f4850b
DE
84052014-05-17 Doug Evans <xdje42@gmail.com>
8406
8407 * progspace.c (remove_program_space): Delete, unused.
8408 * progspace.h (remove_program_space): Ditto.
8409
bed8455c
DE
84102014-05-17 Doug Evans <xdje42@gmail.com>
8411
8412 * inferior.c (prune_inferiors): Fix comment.
8413 (remove_inferior_command): Call prune_program_spaces.
8414
8d551b02
DE
84152014-05-16 Doug Evans <dje@google.com>
8416
8417 New command line option -D.
8418 * NEWS: Mention it.
8419 * main.c (set_gdb_data_directory): New function.
8420 (captured_main): Recognize -D. Flag error for --data-directory "".
8421 Call set_gdb_data_directory.
8422 (print_gdb_help): Print --data-directory, -D.
8423 * main.h (set_gdb_data_directory): Declare.
8424 * top.c (staged_gdb_datadir): New static global.
8425 (set_gdb_datadir): Call set_gdb_data_directory
8426 (show_gdb_datadir): New function.
8427 (init_main): Update init of data-directory parameter.
8428
18848e28
GF
84292014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8430
8431 Import the "dirfd" gnulib module.
8432 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8433 * gnulib/aclocal.m4: Update.
8434 * gnulib/config.in: Update.
8435 * gnulib/configure: Update.
8436 * gnulib/import/Makefile.am: Update.
8437 * gnulib/import/Makefile.in: Update.
8438 * gnulib/import/dirfd.c: New.
8439 * gnulib/import/m4/dirfd.m4: New.
8440 * gnulib/import/m4/gnulib-cache.m4: Update.
8441 * gnulib/import/m4/gnulib-comp.m4: Update.
8442
95c64f92
YQ
84432014-05-16 Pierre Muller <muller@sourceware.org>
8444 Yao Qi <yao@codesourcery.com>
8445
8446 * valprint.c (print_wchar): Move the code on checking whether
8447 W is a printable wide char to the default branch of switch
8448 statement below. Call wchar_printable instead of gdb_iswprint.
8449
cac395ea
TM
84502014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8451
19679eca 8452 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
8453 ldr.w and ldrd instructions.
8454
83655187
DE
84552014-05-15 Doug Evans <dje@google.com>
8456
8457 * dwarf2read.c (read_structure_type): Delete outdated comments.
8458
dd756689
TT
84592014-05-14 Tom Tromey <tromey@redhat.com>
8460
8461 * macrocmd.c (print_macro_definition): Reindent.
8462
75ddda77
DE
84632014-05-13 Doug Evans <xdje42@gmail.com>
8464
8465 * python/py-cmd.c (cmdpy_completer): Add comment.
8466 (completers): Make const.
8467
b0f16a3e
SM
84682014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8469
8470 * infrun.c (resume): Remove should_resume (unused). Move up
8471 declaration of resume_ptid.
8472
033c3379
TT
84732014-05-13 Tom Tromey <tromey@redhat.com>
8474
8475 * language.h (unop_type_check): Remove.
8476 (binop_type_check): Don't declare.
8477
9b44a3a5
AA
84782014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8479
8480 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8481 call to regcache_raw_collect.
8482
303a33fa
SM
84832014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8484
8485 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8486 mi_console->quote as the quoting character.
8487
196100a0
SM
84882014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8489
8490 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8491
f989a1c8
TT
84922014-04-29 Tom Tromey <tromey@redhat.com>
8493
8494 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8495 "show debug varobj".
8496
9404b58f
KM
84972014-05-07 Kyle McMartin <kyle@redhat.com>
8498
8499 Pushed by Joel Brobecker <brobecker@adacore.com>.
8500 * aarch64-tdep.c (aarch64_software_single_step): New function.
8501 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8502 with aarch64_software_single_step.
8503
5e49ba57
JB
85042014-05-05 Joel Brobecker <brobecker@adacore.com>
8505
8506 GDB 7.7.1 released.
8507
c888a17d
KS
85082014-05-05 Keith Seitz <keiths@redhat.com>
8509
8510 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8511 variable or history value is successfully parsed.
8512
290a839c
YQ
85132014-05-05 Yao Qi <yao@codesourcery.com>
8514 Pedro Alves <palves@redhat.com>
8515
8516 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8517 address of blocks that intersects the requested range. Trim
8518 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8519 sections.
8520 * ctf.c (ctf_xfer_partial): Likewise.
8521
91256dc2
YQ
85222014-05-05 Yao Qi <yao@codesourcery.com>
8523
8524 * printcmd.c (display_command): Remove the check to
8525 target_has_execution.
8526
07284463
MK
85272014-05-03 Mark Kettenis <kettenis@gnu.org>
8528
8529 * ppcobsd-nat.c: Include "obsd-nat.h".
8530 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8531 add_target.
8532 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8533
30a1e6cc
SDJ
85342014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8535
8536 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8537 and 16-bit signed and unsigned arguments. Update comment.
8538 (stap_parse_probe_arguments): Extend code to handle such
8539 arguments. Use warning instead of complaint to notify about
8540 unrecognized bitness.
8541
f33da99a
SDJ
85422014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8543
8544 PR breakpoints/16889
8545 * stap-probe.c (stap_parse_probe_arguments): Simplify
8546 check for non-prefixed probes (i.e., probes whose
8547 arguments do not start with "N@"). Always set the
8548 argument type to a sane value.
8549
95cf3b38
DT
85502014-05-01 David Taylor <dtaylor@emc.com>
8551
8552 * remote.c (compare_sections_command): Add -r option to compare
8553 all loadable read-only sections.
8554
1cfdf534
SC
85552014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8556
8557 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8558 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8559 Update all callers.
8560 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8561 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8562 Remove unused CORE_ADDR argument. Update all callers.
8563
ca4f7f8b
PA
85642014-04-29 Pedro Alves <palves@redhat.com>
8565
8566 * remote.c (struct packet_config) <detect>: Extend comment.
8567 (add_packet_config_cmd): Don't set the config's detect or support
8568 fields here.
8569 (init_all_packet_configs): Also initialize the config's 'detect'
8570 field.
8571 (reset_all_packet_configs_support): New function.
8572 (remote_open_1): Call reset_all_packet_configs_support instead of
8573 init_all_packet_configs.
8574 (_initialize_remote): Initialize all packet configs. Assert that
8575 all packets have an associated command, except a few known
8576 outliers.
8577
11c1ba78
JB
85782014-04-28 Joel Brobecker <brobecker@adacore.com>
8579
8580 * dwarf2read.c (read_subrange_type): Handle dynamic
8581 DW_AT_lower_bound attributes.
8582
8739bc53
JB
85832014-04-28 Joel Brobecker <brobecker@adacore.com>
8584
8585 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8586 dynamic bounds before computing its upper bound.
8587 (ada_discrete_type_low_bound): Same as above with the lower bound.
8588
6f8a3220
JB
85892014-04-28 Joel Brobecker <brobecker@adacore.com>
8590
8591 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8592 range types. Adjust the array handling implementation to
8593 take advantage of this change.
8594 (resolve_dynamic_range): New function, mostly extracted from
8595 resolve_dynamic_bounds.
8596 (resolve_dynamic_array): New function, mostly extracted from
8597 resolve_dynamic_bounds.
8598 (resolve_dynamic_bounds): Delete.
8599 (resolve_dynamic_type): Reimplement. Add handling of
8600 TYPE_CODE_RANGE types.
8601
4d072ce4
JB
86022014-04-28 Joel Brobecker <brobecker@adacore.com>
8603
8604 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8605 handling of parallel ___XA types.
8606
52865325
JB
86072014-04-28 Joel Brobecker <brobecker@adacore.com>
8608
8609 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8610 unnecessary second call to static_unwrap_type.
8611
433e77fa
HZ
86122014-04-27 Hui Zhu <hui@codesourcery.com>
8613
8614 * stack.c (print_frame_info): Call do_gdb_disassembly with
8615 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8616
b51a69ee
DE
86172014-04-26 Doug Evans <xdje42@gmail.com>
8618
8619 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8620
7ae1a6a6
PA
86212014-04-25 Pedro Alves <palves@redhat.com>
8622
8623 PR server/16255
8624 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8625 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8626 and newline from built string.
8627 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8628 (linux_ptrace_attach_fail_reason): ... this.
8629 * linux-nat.c (linux_nat_attach): Adjust to use
8630 linux_ptrace_attach_fail_reason.
8631
4082afcc
PA
86322014-04-25 Pedro Alves <palves@redhat.com>
8633
8634 * remote.c (struct remote_state): Remove multi_process_aware,
8635 non_stop_aware, cond_tracepoints, cond_breakpoints,
8636 breakpoint_commands, fast_tracepoints, static_tracepoints,
8637 install_in_trace, disconnected_tracing,
8638 enable_disable_tracepoints, string_tracing, and
8639 augmented_libraries_svr4_read fields.
8640 (remote_multi_process_p): Move further below in the file.
8641 (struct packet_config): Add comments.
8642 (update_packet_config): Delete function.
8643 (show_packet_config_cmd): Use packet_config_support.
8644 (add_packet_config_cmd): Use NULL as set callback.
8645 (packet_ok): "set remote foo-packet"-style commands no longer
8646 change config->supported -- adjust.
8647 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8648 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8649 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8650 (PACKET_QNonStop, PACKET_multiprocess_feature)
8651 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8652 (PACKET_DisconnectedTracing_feature)
8653 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8654 (set_remote_protocol_packet_cmd): Delete function.
8655 (packet_config_support, packet_support): New functions.
8656 (set_remote_protocol_Z_packet_cmd): Don't call
8657 update_packet_config.
8658 (remote_query_attached, remote_pass_signals)
8659 (remote_program_signals, remote_threads_info)
8660 (remote_threads_extra_info, remote_start_remote): Use
8661 packet_support.
8662 (remote_start_remote): Use packet_config_support and
8663 packet_support.
8664 (init_all_packet_configs): Set all packets to unknown support,
8665 instead of calling update_packet_config.
8666 (remote_check_symbols): Use packet_support.
8667 (remote_supported_packet): Unconditionally set the packet config's
8668 support status.
8669 (remote_multi_process_feature, remote_non_stop_feature)
8670 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8671 (remote_breakpoint_commands_feature)
8672 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8673 (remote_install_in_trace_feature)
8674 (remote_disconnected_tracing_feature)
8675 (remote_enable_disable_tracepoint_feature)
8676 (remote_string_tracing_feature)
8677 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8678 (remote_protocol_features): Adjust to use remote_supported_packet
8679 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8680 "ConditionalTracepoints", "ConditionalBreakpoints",
8681 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8682 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8683 "EnableDisableTracepoints", and "tracenz".
8684 (remote_query_supported): Use packet_support.
8685 (remote_open_1): Adjust.
8686 (extended_remote_attach_1): Use packet_support. Switch on the
8687 result of packet_ok instead of checking whether the packet ended
8688 up disabled.
8689 (remote_vcont_resume): Use packet_support.
8690 (remote_resume, remote_stop_ns, fetch_register_using_p)
8691 (remote_prepare_to_store, store_register_using_P)
8692 (check_binary_download, remote_write_bytes): Use packet_support.
8693 (remote_vkill): Use packet_support. Switch on the result of
8694 packet_ok instead of checking whether the packet ended up
8695 disabled.
8696 (extended_remote_supports_disable_randomization): Use
8697 packet_support.
8698 (extended_remote_run): Switch on the result of packet_ok instead
8699 of checking whether the packet ended up disabled.
8700 (remote_insert_breakpoint, remote_remove_breakpoint)
8701 (remote_insert_watchpoint, remote_remove_watchpoint)
8702 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8703 packet_support.
8704 (remote_search_memory): Use packet_config_support.
8705 (remote_get_thread_local_address, remote_get_tib_address)
8706 (remote_hostio_send_command, remote_can_execute_reverse): Use
8707 packet_support.
8708 (remote_supports_cond_tracepoints)
8709 (remote_supports_cond_breakpoints)
8710 (remote_supports_fast_tracepoints)
8711 (remote_supports_static_tracepoints)
8712 (remote_supports_install_in_trace)
8713 (remote_supports_enable_disable_tracepoint)
8714 (remote_supports_string_tracing)
8715 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8716 the packet config says the feature is enabled or disabled.
8717 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8718 (remote_get_trace_status): Use packet_support.
8719 (remote_set_disconnected_tracing): Adjust to check whether the
8720 feature is enabled with packet_support.
8721 (remote_set_trace_buffer_size, remote_use_agent)
8722 (remote_can_use_agent, remote_supports_btrace): Use
8723 packet_support.
8724 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8725 Use packet_config_support.
8726 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8727 the packet config says the feature is enabled or disabled.
8728 (set_range_stepping): Use packet_support.
8729
bdb52a22
TT
87302014-04-25 Tom Tromey <tromey@redhat.com>
8731
8732 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8733 argument.
8734
e9475ead
SA
87352014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8736
8737 * NEWS: Mention support for C99 variable length arrays.
8738
82eacd52
JB
87392014-04-24 Joel Brobecker <brobecker@adacore.com>
8740
8741 * ada-lang.c (standard_exc): Expand introductory comment.
8742
01f9f808
MS
87432014-04-24 Michael Sturm <michael.sturm@mintel.com>
8744 Walfred Tedeschi <walfred.tedeschi@intel.com>
8745
8746 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8747 AVX512 registers.
8748 (amd64_linux_read_description): Add code to handle AVX512 xstate
8749 mask and return respective tdesc.
8750 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8751 and features/i386/x32-avx512-linux.c.
8752 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8753 (amd64_linux_core_read_description): Add code to handle AVX512
8754 xstate mask and return respective tdesc.
8755 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8756 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8757 calculation.
8758 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8759 (tdesc_amd64_avx512_linux): New prototype.
8760 (tdesc_x32_avx512_linux): Likewise.
8761 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8762 features/i386/x32-avx512.c.
8763 (amd64_ymm_avx512_names): New register names for pseudo
8764 registers YMM16-31.
8765 (amd64_ymmh_avx512_names): New register names for raw registers
8766 YMMH16-31.
8767 (amd64_k_names): New register names for K registers.
8768 (amd64_zmmh_names): New register names for ZMM raw registers.
8769 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8770 (amd64_xmm_avx512_names): New register names for XMM16-31
8771 registers.
8772 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8773 registers.
8774 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8775 if feature is present.
8776 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8777 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8778 (AMD64_NUM_REGS): Adjust to new number of registers.
8779 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8780 registers supplied via XSTATE by AVX512 registers.
8781 (i386_linux_read_description): Add case for AVX512.
8782 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8783 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8784 (i386_linux_core_read_description): Add case for AVX512.
8785 (i386_linux_init_abi): Install supported register note section
8786 for AVX512.
8787 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8788 AVX512.
8789 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8790 registers to be number of zmm7h + 1.
8791 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8792 * i386-tdep.c: Include features/i386/i386-avx512.c.
8793 (i386_zmm_names): Add ZMM pseudo register names array.
8794 (i386_zmmh_names): Add ZMM raw register names array.
8795 (i386_k_names): Add K raw register names array.
8796 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8797 registers. AVX512 has 16 more ZMM registers than there are YMM
8798 registers.
8799 (i386_zmmh_regnum_p): Add function to look up register number of
8800 ZMM raw registers.
8801 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8802 (i386_k_regnum_p): Likewise for K raw registers.
8803 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8804 registers added by AVX512.
8805 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8806 registers added by AVX512.
8807 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8808 added by AVX512.
8809 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8810 (i386_pseudo_register_name): Add ZMM pseudo registers.
8811 (i386_zmm_type): Construct and return vector registers type for ZMM
8812 registers.
8813 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8814 ZMM0-31 pseudo registers and K registers.
8815 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8816 and YMM16-31 registers from register cache.
8817 (i386_pseudo_register_write): Add code to write K, ZMM and
8818 YMM16-31 registers.
8819 (i386_register_reggroup_p): Add code to include/exclude AVX512
8820 registers in/from respective register groups.
8821 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8822 registers if feature is present in xcr0.
8823 (i386_gdbarch_init): Add code to initialize AVX512 feature
8824 variables in tdep structure, wire in pseudo registers and call
8825 initialize_tdesc_i386_avx512.
8826 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8827 variables.
8828 (i386_regnum): Add AVX512 registers.
8829 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8830 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8831 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8832 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8833 512 bits wide.
8834 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8835 (i386_ymm_avx512_regnum_p): Likewise.
8836 (i386_k_regnum_p): Likewise.
8837 (i386_zmm_regnum_p): Likewise.
8838 (i386_zmmh_regnum_p): Likewise.
8839 * i387-tdep.c : Update year in copyright notice.
8840 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8841 XSAVE buffer.
8842 (XSAVE_YMM_AVX512_ADDR): New macro.
8843 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8844 XSAVE buffer.
8845 (XSAVE_XMM_AVX512_ADDR): New macro.
8846 (xsave_avx512_k_offset): New table for K register offsets in
8847 XSAVE buffer.
8848 (XSAVE_AVX512_K_ADDR): New macro.
8849 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8850 in XSAVE buffer.
8851 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8852 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8853 buffer.
8854 (i387_collect_xsave): Add code to collect AVX512 registers from
8855 XSAVE buffer.
8856 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8857 of XMM16-31 registers.
8858 (I387_NUM_K_REGS): New define for number of K registers.
8859 (I387_K0_REGNUM): New define for K0 register number.
8860 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8861 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8862 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8863 registers.
8864 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8865 (I387_XMM16_REGNUM): New define for XMM16 register number.
8866 (I387_YMM0_REGNUM): New define for YMM0 register number.
8867 (I387_KEND_REGNUM): New define for last K register number.
8868 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8869 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8870 number.
8871 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8872 number.
8873 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8874 size.
8875 * features/Makefile: Add AVX512 related files.
8876 * features/i386/32bit-avx512.xml: New file.
8877 * features/i386/64bit-avx512.xml: Likewise.
8878 * features/i386/amd64-avx512-linux.c: Likewise.
8879 * features/i386/amd64-avx512-linux.xml: Likewise.
8880 * features/i386/amd64-avx512.c: Likewise.
8881 * features/i386/amd64-avx512.xml: Likewise.
8882 * features/i386/i386-avx512-linux.c: Likewise.
8883 * features/i386/i386-avx512-linux.xml: Likewise.
8884 * features/i386/i386-avx512.c: Likewise.
8885 * features/i386/i386-avx512.xml: Likewise.
8886 * features/i386/x32-avx512-linux.c: Likewise.
8887 * features/i386/x32-avx512-linux.xml: Likewise.
8888 * features/i386/x32-avx512.c: Likewise.
8889 * features/i386/x32-avx512.xml: Likewise.
8890 * regformats/i386/amd64-avx512-linux.dat: New file.
8891 * regformats/i386/amd64-avx512.dat: Likewise.
8892 * regformats/i386/i386-avx512-linux.dat: Likewise.
8893 * regformats/i386/i386-avx512.dat: Likewise.
8894 * regformats/i386/x32-avx512-linux.dat: Likewise.
8895 * regformats/i386/x32-avx512.dat: Likewise.
8896 * NEWS: Add note about new support for AVX512.
8897
8898
08351840
PA
88992014-04-23 Pedro Alves <palves@redhat.com>
8900
8901 * breakpoint.c (insert_bp_location): Tolerate errors if the
8902 breakpoint is set in a user-loaded objfile.
8903 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8904 location is marked shlib_disabled. If the breakpoint is set in a
8905 user-loaded objfile is a GDB-side memory breakpoint, validate it
8906 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8907 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8908 flag.
8909 * mem-break.c (memory_validate_breakpoint): New function.
8910 * objfiles.c (userloaded_objfile_contains_address_p): New
8911 function.
8912 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8913 * target.h (memory_validate_breakpoint): New declaration.
8914
076855f9
PA
89152014-04-23 Pedro Alves <palves@redhat.com>
8916
8917 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8918 the breakpoint is set in a shared library, only suppress
8919 errors for software breakpoints, not hardware breakpoints.
8920
483805cf
PA
89212014-04-22 Pedro Alves <palves@redhat.com>
8922
8923 * infrun.c (schedlock_applies): New function, factored out from
8924 find_thread_needs_step_over.
8925 (find_thread_needs_step_over): Use it.
8926 (switch_back_to_stepped_thread): Always clear trap_expected if the
8927 step over is finished. Return early if scheduler locking applies.
8928 Look for the stepping thread and a potential step-over thread with
8929 a single loop.
8930 (currently_stepping_or_nexting_callback): Delete.
8931
a75fef0e
NC
89322014-04-22 Nick Clifton <nickc@redhat.com>
8933
8934 * NEWS: Mention that ARM sim now supports tracing.
8935
48b6e87e
YQ
89362014-04-22 Yao Qi <yao@codesourcery.com>
8937
8938 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8939 to ...
8940 * tracefile.c (tracefile_fetch_registers): ... it. New
8941 function.
8942 * tracefile.h (tracefile_fetch_registers): Declare.
8943 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8944 tracefile_fetch_registers.
8945
17617f2d
EZ
89462014-04-19 Eli Zaretskii <eliz@gnu.org>
8947
8948 PR gdb/14018
8949 * windows-nat.c (thread_rec): Don't display a warning when
8950 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8951 fails for any reason, set th->suspended to -1, so that we don't
8952 try to resume such a thread. Also, don't return NULL in these
8953 cases, to avoid completely ruin the session due to "PC register is
8954 not available" error.
8955 (do_windows_fetch_inferior_registers): Check errors in
8956 GetThreadContext call.
8957 (windows_continue): Accept an additional argument KILLED; if not
8958 zero, ignore errors in the SetThreadContext call, since the
8959 inferior was killed and is shutting down.
8960 (windows_resume, get_windows_debug_event)
8961 (windows_create_inferior, windows_mourn_inferior)
8962 (windows_kill_inferior): All callers of windows_continue changed
8963 to adjust to its new calling sequence.
8964
5723a6fd
YQ
89652014-04-19 Yao Qi <yao@codesourcery.com>
8966
8967 * ctf.c (ctf_open): Call post_create_inferior.
8968
614d5099
YQ
89692014-04-19 Yao Qi <yao@codesourcery.com>
8970
8971 * ctf.c (handle_id): New static variable.
8972 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8973 value. Get the declaration of event "register" and get length
8974 of field "contents".
8975
dac3e710
YQ
89762014-04-19 Yao Qi <yao@codesourcery.com>
8977
8978 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8979
2bca57ba
SC
89802014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8981
8982 * valops.c (oload_method_static): Remove unnecessary argument
8983 METHOD. Update all callers.
8984
51d48146
PA
89852014-04-18 Pedro alves <palves@redhat.com>
8986 Tom Tromey <tromey@redhat.com>
8987
8988 PR backtrace/15558
8989 * frame.c (get_prev_frame_1): Rename to ...
8990 (get_prev_frame_always): ... this, and make extern. Adjust.
8991 (skip_artificial_frames): Use get_prev_frame_always.
8992 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8993 (get_frame_unwind_stop_reason): Adjust to rename.
8994 * frame.h (get_prev_frame_always): Declare.
8995 * inline-frame.c: Include frame.h.
8996 (inline_frame_this_id): Use get_prev_frame_always.
8997
1bdad2e0
TG
89982014-04-18 Tristan Gingold <gingold@adacore.com>
8999
9000 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
9001 code by using bfd_mach_o_get_base_address.
9002
7ce16bd4
UW
90032014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
9004
9005 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
9006 (spu_ax_pseudo_register_collect): New function.
9007 (spu_ax_pseudo_register_push_stack): Likewise.
9008 (spu_dwarf_reg_to_regnum): Likewise.
9009 (spu_gdbarch_init): Install them. Append DWARF unwinders.
9010
2ed3c037
UW
90112014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
9012
9013 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
9014 Replace FRAME argument with FRAME_ID.
9015 * gdbarch.c, gdbarch.h: Regenerate.
9016 * findvar.c (default_value_from_register): Add GDBARCH argument;
9017 replace FRAME by FRAME_ID. No longer call get_frame_id.
9018 (value_from_register): Update call to gdbarch_value_from_register.
9019 * value.h (default_value_from_register): Update prototype.
9020 * s390-linux-tdep.c (s390_value_from_register): Update interface
9021 and call to default_value_from_register.
9022 * spu-tdep.c (spu_value_from_register): Likewise.
9023
9024 * findvar.c (address_from_register): Remove TYPE argument.
9025 Do not call value_from_register; use gdbarch_value_from_register
9026 with null_frame_id instead.
9027 * value.h (address_from_register): Update prototype.
9028 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9029 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9030 address_from_register interface change.
9031
71e50e83
YQ
90322014-04-17 Yao Qi <yao@codesourcery.com>
9033
9034 * gdbtypes.h: Update comments to link to types and macros'
9035 definitions.
9036
7a23c549
SC
90372014-04-16 Siva Chandra Reddy <sivachandra@google.com>
9038
9039 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9040
22869d73
KS
90412014-04-16 Keith Seitz <keiths@redhat.com>
9042
9043 PR gdb/15827
9044 * dwarf2read.c (skip_one_die): Check that all relative-offset
9045 sibling DIEs fall within range of the current reader's buffer.
9046 (read_partial_die): Likewise.
9047
c4f87ca6
KS
90482014-04-16 Keith Seitz <keiths@redhat.com>
9049
9050 PR c++/16597
9051 * cp-namespace.c (lookup_symbol_file): If the type name of
9052 `this' is NULL, return immediately.
9053
b50c8614
KS
90542014-04-14 Keith Seitz <keiths@redhat.com>
9055
9056 PR c++/16253
9057 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9058 from symbol_matches_domain in symtab.c. All local callers
9059 of symbol_matches_domain updated.
9060 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9061 search STRUCT_DOMAIN.
9062 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9063 independently. standard_lookup will do that automatically.
9064 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9065 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9066 (cp_lookup_symbol_in_namespace): Likewise.
9067 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9068 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9069 may return a STRUCT_DOMAIN match.
9070 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9071 * cp-support.c: Include language.h.
9072 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9073 VAR_DOMAIN.
9074 * psymtab.c (match_partial_symbol): Compare the requested
9075 domain with the symbol's domain directly.
9076 (lookup_partial_symbol): Likewise.
9077 * symtab.c (lookup_symbol_in_language): Explain when/why
9078 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9079 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9080 appropriate languages.
9081 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9082 and moved to ada-lang.c
9083 (lookup_block_symbol): Explain that this function only returns
9084 symbol matching the requested DOMAIN.
9085 Compare the requested domain with the symbol's domain directly.
9086 (iterate_over_symbols): Compare the requested domain with the
9087 symbol's domain directly.
9088 * symtab.h (symbol_matches_domain): Remove.
9089
3d567982
TT
90902014-04-14 Tom Tromey <tromey@redhat.com>
9091
9092 PR c++/15246:
9093 * c-exp.y (type_aggregate_p): New function.
9094 (qualified_name, classify_inner_name): Use it.
9095 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9096 and TYPE_TARGET_TYPE of an enum type.
9097 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9098 an enum type.
9099 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9100 handle TYPE_DECLARED_CLASS.
9101 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9102 types.
9103 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9104 * valops.c (enum_constant_from_type): New function.
9105 (value_aggregate_elt): Use it.
9106 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9107 TYPE_CODE_ENUM.
9108
c848d642
TT
91092014-04-14 Tom Tromey <tromey@redhat.com>
9110
9111 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9112 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9113 const.
9114 * value.h (value_aggregate_elt): Update.
9115
0626fc76
TT
91162014-04-14 Tom Tromey <tromey@redhat.com>
9117
9118 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9119
5ecaaa66
SA
91202014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9121
9122 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9123 (evaluate_subexp_standard): Pass noside argument.
9124 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9125 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9126 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9127 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9128 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9129
1612e0c0
SA
91302014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9131
9132 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9133 points to a constant blob.
9134
c451ebe5
SA
91352014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9136
9137 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9138 property and store it as the high bound and flag the range accordingly.
9139 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9140 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9141 * gdbtypes.h (enum range_flags): New enum.
9142 (struct range_bounds): Add flags member.
9143
1d42e4c4
SA
91442014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9145
9146 * c-typeprint.c (c_type_print_varspec_suffix): Added
9147 check for not yet resolved high bound. If unresolved, print
9148 "variable length" string to the console instead of random
9149 length.
9150
9f1f738a
SA
91512014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9152
9153 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9154 value.
9155 (ada_template_to_fixed_record_type_1): Likewise.
9156 (ada_to_fixed_type_1): Likewise.
9157 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9158 (cp_print_value): Likewise.
9159 * d-valprint.c (dynamic_array_type): Likewise.
9160 * findvar.c (address_of_variable): Likewise.
9161 * jv-valprint.c (java_value_print): Likewise.
9162 * valops.c (value_ind): Likewise.
9163 * value.c (coerce_ref): Likewise.
9164
3c8452d4
SA
91652014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9166
9167 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9168 value and retrieve the dynamic type size.
9169
4ad88275
SA
91702014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9171
9172 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9173 passed to sizeof is dynamic evaluate the argument to compute the length.
9174
80180f79
SA
91752014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9176 Joel Brobecker <brobecker@adacore.com>
9177
9178 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9179 (dwarf2_evaluate_property): New function.
9180 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9181 * dwarf2read.c (attr_to_dynamic_prop): New function.
9182 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9183 attribute.
9184 * gdbtypes.c: Include dwarf2loc.h.
9185 (is_dynamic_type): New function.
9186 (resolve_dynamic_type): New function.
9187 (resolve_dynamic_bounds): New function.
9188 (get_type_length): New function.
9189 (check_typedef): Use get_type_length to compute type length.
9190 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9191 (TYPE_LOW_BOUND_KIND): New macro.
9192 (is_dynamic_type): New function prototype.
9193 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9194 to resolve dynamic properties of the type. Update comment.
9195 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9196
a1556843
RH
91972014-04-14 Richard Henderson <rth@redhat.com>
9198
9199 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9200
0be03e84
DE
92012014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9202 Doug Evans <xdje42@gmail.com>
9203
9204 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9205 dereference TYPE_CODE_REF values.
9206
6b662e19
JB
92072014-04-11 Joel Brobecker <brobecker@adacore.com>
9208
9209 Revert the following changes due to regressions:
9210
9211 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9212 (dwarf2_evaluate_property): New function.
9213 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9214 * dwarf2read.c (attr_to_dynamic_prop): New function.
9215 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9216 attribute.
9217 * gdbtypes.c: Include dwarf2loc.h.
9218 (is_dynamic_type): New function.
9219 (resolve_dynamic_type): New function.
9220 (resolve_dynamic_bounds): New function.
9221 (get_type_length): New function.
9222 (check_typedef): Use get_type_length to compute type length.
9223 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9224 (TYPE_LOW_BOUND_KIND): New macro.
9225 (is_dynamic_type): New function prototype.
9226 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9227 to resolve dynamic properties of the type. Update comment.
9228 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9229
9230 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9231 passed to sizeof is dynamic evaluate the argument to compute the length.
9232
9233 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9234 value and retrieve the dynamic type size.
9235
9236 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9237 (ada_template_to_fixed_record_type_1): Likewise.
9238 (ada_to_fixed_type_1): Likewise.
9239 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9240 (cp_print_value): Likewise.
9241 * d-valprint.c (dynamic_array_type): Likewise.
9242 * eval.c (evaluate_subexp_with_coercion): Likewise.
9243 * findvar.c (address_of_variable): Likewise.
9244 * jv-valprint.c (java_value_print): Likewise.
9245 * valops.c (value_ind): Likewise.
9246 * value.c (coerce_ref): Likewise.
9247
9248 * c-typeprint.c (c_type_print_varspec_suffix): Added
9249 check for not yet resolved high bound. If unresolved, print
9250 "variable length" string to the console instead of random
9251 length.
9252
9253 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9254 property and store it as the high bound and flag the range accordingly.
9255 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9256 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9257 * gdbtypes.h (enum range_flags): New enum.
9258 (struct range_bounds): Add flags member.
9259
9260 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9261 points to a constant blob.
9262
9263 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9264 (evaluate_subexp_standard): Pass noside argument.
9265 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9266 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9267 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9268 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9269 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9270
245a5f0b
KS
92712014-04-11 Keith Seitz <keiths@redhat.com>
9272
9273 PR c++/16675
9274 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9275 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9276 reference types.
9277
3bce8237
SA
92782014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9279
9280 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9281 (evaluate_subexp_standard): Pass noside argument.
9282 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9283 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9284 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9285 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9286 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9287
92b09522
SA
92882014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9289
9290 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9291 points to a constant blob.
9292
e1969afb
SA
92932014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9294
9295 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9296 property and store it as the high bound and flag the range accordingly.
9297 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9298 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9299 * gdbtypes.h (enum range_flags): New enum.
9300 (struct range_bounds): Add flags member.
9301
b86138fb
SA
93022014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9303
9304 * c-typeprint.c (c_type_print_varspec_suffix): Added
9305 check for not yet resolved high bound. If unresolved, print
9306 "variable length" string to the console instead of random
9307 length.
9308
bcd629a4
SA
93092014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9310
9311 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9312 (ada_template_to_fixed_record_type_1): Likewise.
9313 (ada_to_fixed_type_1): Likewise.
9314 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9315 (cp_print_value): Likewise.
9316 * d-valprint.c (dynamic_array_type): Likewise.
9317 * eval.c (evaluate_subexp_with_coercion): Likewise.
9318 * findvar.c (address_of_variable): Likewise.
9319 * jv-valprint.c (java_value_print): Likewise.
9320 * valops.c (value_ind): Likewise.
9321 * value.c (coerce_ref): Likewise.
9322
04b19544
SA
93232014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9324
9325 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9326 value and retrieve the dynamic type size.
9327
26cb189f
SA
93282014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9329
9330 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9331 passed to sizeof is dynamic evaluate the argument to compute the length.
9332
37c1ab67
SA
93332014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9334
9335 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9336 (dwarf2_evaluate_property): New function.
9337 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9338 * dwarf2read.c (attr_to_dynamic_prop): New function.
9339 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9340 attribute.
9341 * gdbtypes.c: Include dwarf2loc.h.
9342 (is_dynamic_type): New function.
9343 (resolve_dynamic_type): New function.
9344 (resolve_dynamic_bounds): New function.
9345 (get_type_length): New function.
9346 (check_typedef): Use get_type_length to compute type length.
9347 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9348 (TYPE_LOW_BOUND_KIND): New macro.
9349 (is_dynamic_type): New function prototype.
9350 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9351 to resolve dynamic properties of the type. Update comment.
9352 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9353
729efb13
SA
93542014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9355
9356 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9357 declaring high/low bounds and change uses accordingly. Call
9358 create_range_type instead of create_static_range_type.
9359 * gdbtypes.c (create_range_type): New function.
9360 (create_range_type): Convert bounds into struct bound_prop and pass
9361 them to create_range_type.
9362 * gdbtypes.h (struct bound_prop): New struct.
9363 (create_range_type): New function prototype.
9364 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9365 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9366 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9367 part of the bound.
9368 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9369
0c9c3474
SA
93702014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9371
9372 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9373 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9374 * ada-lang.c: All uses of create_range_type updated.
9375 * coffread.c: All uses of create_range_type updated.
9376 * dwarf2read.c: All uses of create_range_type updated.
9377 * f-exp.y: All uses of create_range_type updated.
9378 * m2-valprint.c: All uses of create_range_type updated.
9379 * mdebugread.c: All uses of create_range_type updated.
9380 * stabsread.c: All uses of create_range_type updated.
9381 * valops.c: All uses of create_range_type updated.
9382 * valprint.c: All uses of create_range_type updated.
9383
9d497a19
PA
93842014-04-10 Pedro Alves <palves@redhat.com>
9385
9386 * breakpoint.c (single_step_breakpoints)
9387 (single_step_gdbarch): Move up in the file.
9388 (one_breakpoint_xfer_memory): New function, factored out from ...
9389 (breakpoint_xfer_memory): ... here. Also process single-step
9390 breakpoints.
9391
15a9128a
TG
93922014-04-09 Tristan Gingold <gingold@adacore.com>
9393
9394 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9395 comments.
9396 (darwin_decode_exception_message): Free port only after use.
9397
9c97a070
PL
93982014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9399
9400 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9401 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9402 when setting the size of call_length.
9403
7af389b8
SC
94042014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9405
9406 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9407 dereference TYPE_CODE_REF values.
9408
86ad98c3
JB
94092014-04-07 Joel Brobecker <brobecker@adacore.com>
9410
9411 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9412 end of warning message.
9413
b0aeadb3
DE
94142014-04-03 Doug Evans <dje@google.com>
9415
9416 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9417 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9418
5979d6b6
AM
94192014-04-02 Alan Modra <amodra@gmail.com>
9420
9421 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9422 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9423 (struct symbol_file_add_from_memory_args): Add size field.
9424 (find_vdso_size): New function.
9425 (add_vsyscall_page): Attempt to find vdso size.
9426
0d60c288
DE
94272014-04-01 Doug Evans <dje@google.com>
9428
9429 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9430
a41f2563
TG
94312014-04-01 Tristan Gingold <gingold@adacore.com>
9432
9433 * darwin-nat.c (darwin_encode_reply): Add prototype.
9434 (darwin_decode_exception_message): Reply to unknown inferiors.
9435 (darwin_decode_message): Handle message by id. Ignore message
9436 to unknown inferior.
9437 (darwin_wait): Discard unknown messages, add debug trace.
9438
11a865c8
DE
94392014-03-31 Doug Evans <dje@google.com>
9440
9441 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9442 comp_dir_string.
9443
770e7fc7
DE
94442014-03-31 Doug Evans <dje@google.com>
9445
9446 New option "set print symbol-loading".
9447 * NEWS: Mention it.
9448 * solib.c (solib_read_symbols): Only print symbol loading messages
9449 if requested.
9450 (solib_add): If symbol loading is in "brief" mode, notify user
9451 symbols are being loaded.
9452 (reload_shared_libraries_1): Ditto.
9453 * symfile.c (print_symbol_loading_off): New static global.
9454 (print_symbol_loading_brief): New static global.
9455 (print_symbol_loading_full): New static global.
9456 (print_symbol_loading_enums): New static global.
9457 (print_symbol_loading): New static global.
9458 (print_symbol_loading_p): New function.
9459 (symbol_file_add_with_addrs): Only print symbol loading messages
9460 if requested.
9461 (_initialize_symfile): Register "print symbol-loading" set/show
9462 command.
9463 * symfile.h (print_symbol_loading_p): Declare.
9464
c32c64b7
DE
94652014-03-30 Doug Evans <xdje42@gmail.com>
9466
9467 * infrun.c (set_last_target_status): New function.
9468 (handle_inferior_event): Call it.
9469
7c0bc051
DE
94702014-03-30 Doug Evans <xdje42@gmail.com>
9471
9472 * inferior.h (enum stop_kind): Improve comment.
9473
8776cfe9
JB
94742014-03-28 Joel Brobecker <brobecker@adacore.com>
9475
9476 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9477 a reference, strip the reference layer before calling
9478 the lang_ops value_has_mutated callback.
9479
410a0ff2
SDJ
94802014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9481
9482 Remove some globals from our parser.
9483 * language.c (unk_lang_parser): Add "struct parser_state"
9484 argument.
9485 * language.h (struct language_defn) <la_parser>: Likewise.
9486 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9487 (initialize_expout): Add "struct parser_state" argument.
9488 Rewrite function to use the parser state.
9489 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9490 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9491 write_exp_elt_longcst, write_exp_elt_dblcst,
9492 write_exp_elt_decfloatcst, write_exp_elt_type,
9493 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9494 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9495 write_dollar_variable): Likewise.
9496 (parse_exp_in_context_1): Use parser state.
9497 (insert_type_address_space): Add "struct parser_state" argument.
9498 Use parser state.
9499 (increase_expout_size): New function.
9500 * parser-defs.h: Forward declare "struct language_defn" and
9501 "struct parser_state".
9502 (expout, expout_size, expout_ptr): Remove extern declarations.
9503 (parse_gdbarch, parse_language): Rewrite macro declarations to
9504 accept the parser state.
9505 (struct parser_state): New struct.
9506 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9507 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9508 write_exp_elt_decfloatcst, write_exp_elt_type,
9509 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9510 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9511 write_exp_msymbol, write_dollar_variable,
9512 mark_struct_expression, insert_type_address_space): Add "struct
9513 parser_state" argument.
9514 (increase_expout_size): New function.
9515 * utils.c (do_clear_parser_state): New function.
9516 (make_cleanup_clear_parser_state): Likewise.
9517 * utils.h (make_cleanup_clear_parser_state): New function
9518 prototype.
9519 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9520 Update calls to write_exp* in order to pass the parser state.
9521 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9522 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9523 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9524 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9525 * stap-probe.c (stap_parse_register_operand): Likewise.
9526 (stap_parse_single_operand): Likewise.
9527 (stap_parse_argument_1): Likewise.
9528 (stap_parse_argument): Use parser state.
9529 * stap-probe.h: Include "parser-defs.h".
9530 (struct stap_parse_info) <pstate>: New field.
9531 * c-exp.y (parse_type): Rewrite to use parser state.
9532 (yyparse): Redefine to c_parse_internal.
9533 (pstate): New global variable.
9534 (parse_number): Add "struct parser_state" argument.
9535 (write_destructor_name): Likewise.
9536 (type_exp): Update calls to write_exp* and similars in order to
9537 use parser state.
9538 (exp1, exp, variable, qualified_name, space_identifier,
9539 typename, typebase): Likewise.
9540 (write_destructor_name, parse_number, lex_one_token,
9541 classify_name, classify_inner_name, c_parse): Add "struct
9542 parser_state" argument. Update function to use parser state.
9543 * c-lang.h: Forward declare "struct parser_state".
9544 (c_parse): Add "struct parser_state" argument.
9545 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9546 (yyparse): Redefine macro to ada_parse_internal.
9547 (pstate): New variable.
9548 (write_int, write_object_renaming, write_var_or_type,
9549 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9550 type_int, type_long, type_long_long, type_float, type_double,
9551 type_long_double, type_char, type_boolean, type_system_address):
9552 Add "struct parser_state" argument.
9553 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9554 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9555 var_or_type, aggregate, aggregate_component_list,
9556 positional_list, others, component_group,
9557 component_associations): Update calls to write_exp* and similar
9558 functions in order to use parser state.
9559 (ada_parse, write_var_from_sym, write_int,
9560 write_exp_op_with_string, write_object_renaming,
9561 find_primitive_type, write_selectors, write_ambiguous_var,
9562 write_var_or_type, write_name_assoc, type_int, type_long,
9563 type_long_long, type_float, type_double, type_long_double,
9564 type_char, type_boolean, type_system_address): Add "struct
9565 parser_state" argument. Adjust function to use parser state.
9566 * ada-lang.c (parse): Likewise.
9567 * ada-lang.h: Forward declare "struct parser_state".
9568 (ada_parse): Add "struct parser_state" argument.
9569 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9570 calls to both functions.
9571 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9572 parser state.
9573 (yyparse): Redefine macro to f_parse_internal.
9574 (pstate): New variable.
9575 (parse_number): Add "struct parser_state" argument.
9576 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9577 and similars in order to use parser state.
9578 (parse_number): Adjust code to use parser state.
9579 (yylex): Likewise.
9580 (f_parse): New function.
9581 * f-lang.h: Forward declare "struct parser_state".
9582 (f_parse): Add "struct parser_state" argument.
9583 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9584 parser state.
9585 (yyparse): Redefine macro for java_parse_internal.
9586 (pstate): New variable.
9587 (push_expression_name, push_expression_name, insert_exp): Add
9588 "struct parser_state" argument.
9589 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9590 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9591 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9592 PostIncrementExpression, PostDecrementExpression,
9593 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9594 UnaryExpressionNotPlusMinus, CastExpression,
9595 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9596 RelationalExpression, EqualityExpression, AndExpression,
9597 ExclusiveOrExpression, InclusiveOrExpression,
9598 ConditionalAndExpression, ConditionalOrExpression,
9599 ConditionalExpression, Assignment, LeftHandSide): Update
9600 calls to write_exp* and similars in order to use parser state.
9601 (parse_number): Ajust code to use parser state.
9602 (yylex): Likewise.
9603 (java_parse): New function.
9604 (push_variable): Add "struct parser_state" argument. Adjust
9605 code to user parser state.
9606 (push_fieldnames, push_qualified_expression_name,
9607 push_expression_name, insert_exp): Likewise.
9608 * jv-lang.h: Forward declare "struct parser_state".
9609 (java_parse): Add "struct parser_state" argument.
9610 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9611 parser state.
9612 (yyparse): Redefine macro to m2_parse_internal.
9613 (pstate): New variable.
9614 (type_exp, exp, fblock, variable, type): Update calls to
9615 write_exp* and similars to use parser state.
9616 (yylex): Likewise.
9617 (m2_parse): New function.
9618 * m2-lang.h: Forward declare "struct parser_state".
9619 (m2_parse): Add "struct parser_state" argument.
9620 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9621 * objc-lang.h: Forward declare "struct parser_state".
9622 (end_msglist): Add "struct parser_state" argument.
9623 * p-exp.y (parse_type): Rewrite macro to use parser state.
9624 (yyparse): Redefine macro to pascal_parse_internal.
9625 (pstate): New variable.
9626 (parse_number): Add "struct parser_state" argument.
9627 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9628 write_exp* and similars in order to use parser state.
9629 (parse_number, yylex): Adjust code to use parser state.
9630 (pascal_parse): New function.
9631 * p-lang.h: Forward declare "struct parser_state".
9632 (pascal_parse): Add "struct parser_state" argument.
9633 * go-exp.y (parse_type): Rewrite macro to use parser state.
9634 (yyparse): Redefine macro to go_parse_internal.
9635 (pstate): New variable.
9636 (parse_number): Add "struct parser_state" argument.
9637 (type_exp, exp1, exp, variable, type): Update calls to
9638 write_exp* and similars in order to use parser state.
9639 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9640 to use parser state.
9641 (go_parse): Likewise.
9642 * go-lang.h: Forward declare "struct parser_state".
9643 (go_parse): Add "struct parser_state" argument.
9644
342587c4
DE
96452014-03-27 Doug Evans <dje@google.com>
9646
9647 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9648
33e80786
DE
96492014-03-27 Doug Evans <dje@google.com>
9650
9651 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9652 Remove argument abbrev_section. All callers updated.
9653
1dbab08b
DE
96542014-03-27 Doug Evans <dje@google.com>
9655
9656 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9657 addr_base, ranges_base.
9658
318d3177
KS
96592014-03-26 Keith Seitz <keiths@redhat.com>
9660
9661 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9662 types, not VAR_DOMAIN.
9663
1e54db15
SL
96642014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9665
9666 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9667 "ra" registers.
9668 * features/nios2-linux.c: Regenerated.
9669 * features/nios2.c: Regenerated.
9670
d3839ede
PA
96712014-03-25 Pedro Alves <palves@redhat.com>
9672
9673 * cli/cli-script.c (script_from_file): Force the interpreter to
9674 sync mode.
9675
7588d2ec
PL
96762014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9677
9678 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9679 small stack allocation.
9680
a6290449
TG
96812014-03-24 Tristan Gingold <gingold@adacore.com>
9682
9683 * darwin-nat.c (exc_server): Remove unused prototype.
9684 (darwin_dump_message): Correctly display data on x86_64.
9685 (darwin_encode_reply): Fix style.
9686 Add comments and fix indentation.
9687
31ae9d24 96882014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
9689
9690 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9691
6339bfc4
DE
96922014-03-22 Doug Evans <xdje42@gmail.com>
9693
9694 * infcmd.c: Whitespace fixes.
9695 (interrupt_command): Merge two function comments into one.
9696
0a07590b
DE
96972014-03-22 Doug Evans <xdje42@gmail.com>
9698
9699 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9700 All uses updated.
9701
b55fbac4
YQ
97022014-03-22 Yao Qi <yao@codesourcery.com>
9703
9704 * remote.c (target_read_live_memory): Remove.
9705 (memory_xfer_live_readonly_partial): Rename it to
9706 remote_xfer_live_readonly_partial. Remove argument 'object'.
9707 All callers updated. Call remote_read_bytes_1
9708 instead of target_read_live_memory.
9709 * tracepoint.c (set_traceframe_number): Remove.
9710 (make_cleanup_restore_traceframe_number): Likewise .
9711 * tracepoint.h (set_traceframe_number): Remove declaration.
9712 (make_cleanup_restore_traceframe_number): Likewise.
9713
9217e74e
YQ
97142014-03-22 Yao Qi <yao@codesourcery.com>
9715
9716 * remote.c (remote_read_bytes): Move code on reading from the
9717 remote stub to ...
9718 (remote_read_bytes_1): ... here. New function.
9719
8acf9577
YQ
97202014-03-22 Yao Qi <yao@codesourcery.com>
9721
9722 * ctf.c (ctf_xfer_partial): Check the return value of
9723 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9724 return TARGET_XFER_UNAVAILABLE.
9725 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9726 * target.c (target_read_live_memory): Move it to remote.c.
9727 (memory_xfer_live_readonly_partial): Likewise.
9728 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9729 * remote.c (target_read_live_memory): Moved from target.c.
9730 (memory_xfer_live_readonly_partial): Likewise.
9731 (remote_read_bytes): Factored out from
9732 memory_xfer_partial_1.
9733
feef67ab
DE
97342014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9735
9736 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9737 NULL pointer.
9738
b65dc60b
PA
97392014-03-21 Pedro Alves <palves@redhat.com>
9740
9741 * infrun.c (normal_stop): Extend comment.
9742
b4ab256d
HZ
97432014-03-21 Hui Zhu <hui@codesourcery.com>
9744 Pedro Alves <palves@redhat.com>
9745
9746 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9747 static buffer.
9748 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9749 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9750 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9751
deba7593
MR
97522014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9753
9754 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9755 `z' formatted output modifier.
9756
1bff71c3
SDJ
97572014-03-20 Tom Tromey <tromey@redhat.com>
9758 Sergio Durigan Junior <sergiodj@redhat.com>
9759
9760 * probe.c (parse_probes): Turn assert into an ordinary error.
9761 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9762 exceptions when parsing probes. Rearrange the code for clarity.
9763
90e28950
TT
97642014-03-20 Tom Tromey <tromey@redhat.com>
9765
9766 PR gdb/14135
9767 * top.c (execute_command): Only dispatch events if the command
9768 started the target.
9769
beb460e8
PA
97702014-03-20 Tom Tromey <tromey@redhat.com>
9771
9772 PR cli/15718
9773 * infcall.c: Include event-top.h.
9774 (run_inferior_call): Call async_disable_stdin if needed.
9775
99619bea
PA
97762014-03-20 Pedro Alves <palves@redhat.com>
9777
9778 * infrun.c (prepare_to_proceed): Delete.
9779 (thread_still_needs_step_over): New function.
9780 (find_thread_needs_step_over): New function.
9781 (proceed): If the current thread needs a step-over, set its
9782 steping_over_breakpoint flag. Adjust to use
9783 find_thread_needs_step_over instead of prepare_to_proceed.
9784 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9785 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9786 breakpoint.
9787 (switch_back_to_stepped_thread): Step over breakpoints of all
9788 threads not the stepping thread, before switching back to the
9789 stepping thread.
9790
2adfaa28
PA
97912014-03-20 Pedro Alves <palves@redhat.com>
9792
9793 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9794 extern.
9795 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9796 * infrun.c (saved_singlestep_ptid)
9797 (stepping_past_singlestep_breakpoint): Delete.
9798 (resume): Remove stepping_past_singlestep_breakpoint handling.
9799 (proceed): Store the prev_pc of the stepping thread too.
9800 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9801 singlestep_pc.
9802 (enum infwait_states): Delete infwait_thread_hop_state.
9803 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9804 field.
9805 (handle_inferior_event): Adjust.
9806 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9807 handling and the thread-hop code. Before removing single-step
9808 breakpoints, check whether the thread hit a single-step breakpoint
9809 of another thread. If it did, the trap is not a random signal.
9810 (switch_back_to_stepped_thread): If the event thread hit a
9811 single-step breakpoint, unblock it before switching to the
9812 stepping thread. Handle the case of the stepped thread having
9813 advanced already.
9814 (keep_going): Handle the case of the current thread moving past a
9815 single-step breakpoint.
9816
31e77af2
PA
98172014-03-20 Pedro Alves <palves@redhat.com>
9818
9819 PR breakpoints/7143
9820 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9821 are being stepped over.
9822 (breakpoint_address_match): Make extern.
9823 * breakpoint.h (breakpoint_address_match): New declaration.
9824 * inferior.h (stepping_past_instruction_at): New declaration.
9825 * infrun.c (struct step_over_info): New type.
9826 (step_over_info): New global.
9827 (set_step_over_info, clear_step_over_info)
9828 (stepping_past_instruction_at): New functions.
9829 (handle_inferior_event): Clear the step-over info when
9830 trap_expected is cleared.
9831 (resume): Remove now stale comment.
9832 (clear_proceed_status): Clear step-over info.
9833 (proceed): Adjust step-over handling to set or clear the step-over
9834 info instead of removing all breakpoints.
9835 (handle_signal_stop): When setting up a thread-hop, don't remove
9836 breakpoints here.
9837 (stop_stepping): Clear step-over info.
9838 (keep_going): Adjust step-over handling to set or clear step-over
9839 info and then always inserting breakpoints, instead of removing
9840 all breakpoints when stepping over one.
9841
b9f437de
PA
98422014-03-20 Pedro Alves <palves@redhat.com>
9843
9844 * infrun.c (previous_inferior_ptid): Adjust comment.
9845 (deferred_step_ptid): Delete.
9846 (infrun_thread_ptid_changed, prepare_to_proceed)
9847 (init_wait_for_inferior): Adjust.
9848 (handle_signal_stop): Delete deferred_step_ptid handling.
9849
06c868a8
JK
98502014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9851
9852 PR gdb/15358
9853 * defs.h (sync_quit_force_run): New declaration.
9854 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9855 * event-top.c (async_sigterm_handler): New declaration.
9856 (async_sigterm_token): New variable.
9857 (async_init_signals): Create also async_sigterm_token.
9858 (async_sigterm_handler): New function.
9859 (sync_quit_force_run): New variable.
9860 (handle_sigterm): Replace quit_force call by other calls.
9861 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9862
dea80df0
MR
98632014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9864
9865 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9866 offset into SPE pseudo registers.
9867
0c7e1a46
PA
98682014-03-18 Pedro Alves <palves@redhat.com>
9869
9870 PR gdb/13860
9871 * inferior.h (print_stop_event): Declare.
9872 * infrun.c (print_stop_event): New, factored out from ...
9873 (normal_stop): ... this.
9874 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9875 of bpstat_print/print_stack_frame.
9876
9c1fcd01
TT
98772014-03-17 Tom Tromey <tromey@redhat.com>
9878
9879 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9880
11aa919a
PMR
98812014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9882
9883 * ada-lang.c (decode_constrained_packed_array): Perform a
9884 minimal coercion for reference with coerce_ref instead of
9885 ada_coerce_ref.
9886
d4ccb5e0
TG
98872014-03-17 Tristan Gingold <gingold@adacore.com>
9888
9889 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9890 (darwin_solib_create_inferior_hook): Emit a warning if version
9891 is unhandled.
9892
49840f2a
UW
98932014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9894
9895 * python/py-value.c (get_field_flag): Cast flag_name argument to
9896 PyObject_GetAttrString to support Python 2.4.
9897
ed4123e5
JK
98982014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9899
9900 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9901 (Global Maintainers): Remove Jan Kratochvil.
9902
d6b64346
PA
99032014-03-14 Pedro Alves <palves@redhat.com>
9904
9905 * inferior.h (terminal_ours_for_output): Rename to ...
9906 (child_terminal_ours_for_output): ... this.
9907 (terminal_save_ours): Rename to ...
9908 (child_terminal_save_ours): ... this.
9909 (terminal_ours): Rename to ...
9910 (child_terminal_ours): ... this.
9911 (terminal_inferior): Rename to ...
9912 (child_terminal_inferior): ... this.
9913 (terminal_init_inferior): Rename to ...
9914 (child_terminal_init_inferior): ... this.
9915 (terminal_init_inferior_with_pgrp): Rename to ...
9916 (child_terminal_init_inferior_with_pgrp): ... this.
9917 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9918 (child_terminal_init_with_pgrp): ... this.
9919 (terminal_save_ours): Rename to ...
9920 (child_terminal_save_ours): ... this.
9921 (terminal_init_inferior): Rename to ...
9922 (child_terminal_init): ... this. Adjust.
9923 (terminal_inferior): Rename to ...
9924 (child_terminal_inferior): ... this.
9925 (terminal_ours_for_output): Rename to ...
9926 (child_terminal_ours_for_output): ... this. Adjust.
9927 (terminal_ours): Rename to ...
9928 (child_terminal_ours): ... this.
9929 (terminal_ours_1): Rename to ...
9930 (child_terminal_ours_1): ... this. Adjust.
9931 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9932 * windows-nat.c (do_initial_windows_stuff): Adjust.
9933 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9934 (gnu_terminal_init): ... this. Adjust.
9935 (gnu_target): Adjust.
9936 * inf-child.c (inf_child_target): Adjust.
9937
5a1e8c7a
DE
99382014-03-13 Doug Evans <xdje42@gmail.com>
9939
9940 PR guile/16612
9941 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9942 new eq?-hashtab.
9943
350e1a76
DE
99442014-03-13 Doug Evans <xdje42@gmail.com>
9945
9946 * value.c (record_latest_value): Call release_value_or_incref
9947 instead of release_value.
9948
a69900ae
PA
99492014-03-13 Pedro Alves <palves@redhat.com>
9950
9951 * procfs.c (procfs_target): Don't override to_shortname,
9952 to_longname or to_doc.
9953
5db9f0bd
PA
99542014-03-13 Pedro Alves <palves@redhat.com>
9955
9956 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9957 Unix in user visible strings.
9958
5e3a2c38
SS
99592014-03-12 Stan Shebs <stan@codesourcery.com>
9960
9961 * gdbtypes.h: Annotate comments for Doxygen, add a page
9962 block comment with some general info.
9963
8bc2fe48
PA
99642014-03-12 Pedro Alves <palves@redhat.com>
9965
9966 * infcmd.c (prepare_execution_command): New function, factored out
9967 from several execution commands.
9968 (run_command_1, continue_command, step_1, jump_command)
9969 (signal_command, until_command, advance_command, finish_command)
9970 (attach_command): Use prepare_execution_command.
9971
638c5f49
OJ
99722014-03-12 Omair Javaid <omair.javaid@linaro.org>
9973
9974 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9975 (MAX_BPTS): Define.
9976 (MAX_WPTS): Define.
9977 (struct arm_linux_thread_points): Removed.
9978 (struct arm_linux_process_info): New.
9979 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9980 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9981 (arm_linux_find_breakpoints_by_tid): Removed.
9982 (struct arch_lwp_info): New.
9983 (arm_linux_find_process_pid): New functions.
9984 (arm_linux_add_process): New functions.
9985 (arm_linux_process_info_get): New functions.
9986 (arm_linux_forget_process): New function.
9987 (arm_linux_get_debug_reg_state): New function.
9988 (struct update_registers_data): New.
9989 (update_registers_callback): New function.
9990 (arm_linux_insert_hw_breakpoint1): Updated.
9991 (arm_linux_remove_hw_breakpoint1): Updated.
9992 (arm_linux_insert_hw_breakpoint): Updated.
9993 (arm_linux_remove_hw_breakpoint): Updated.
9994 (arm_linux_insert_watchpoint): Updated.
9995 (arm_linux_remove_watchpoint): Updated.
9996 (arm_linux_new_thread): Updated.
9997 (arm_linux_prepare_to_resume): New function.
9998 (arm_linux_new_fork): New function.
9999 (_initialize_arm_linux_nat): Updated.
10000
6d03af93
PA
100012014-03-12 Pedro Alves <palves@redhat.com>
10002
10003 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
10004
b3ccfe11
TT
100052014-03-12 Tom Tromey <tromey@redhat.com>
10006
10007 * inf-child.c (return_zero): New function.
10008 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
10009 * aix-thread.c (aix_thread_inferior_created): New function.
10010 (aix_thread_attach): Remove.
10011 (init_aix_thread_ops): Don't set to_attach.
10012 (_initialize_aix_thread): Register inferior_created observer.
10013 * corelow.c (init_core_ops): Don't set to_attach or
10014 to_create_inferior.
10015 * exec.c (init_exec_ops): Don't set to_attach or
10016 to_create_inferior.
10017 * infcmd.c (run_command_1): Use find_run_target. Make direct
10018 target calls.
10019 (attach_command): Use find_attach_target. Make direct target
10020 calls.
10021 * record-btrace.c (init_record_btrace_ops): Don't set
10022 to_create_inferior.
10023 * record-full.c (record_full_can_async_p, record_full_is_async_p):
10024 Remove.
10025 (init_record_full_ops, init_record_full_core_ops): Update. Don't
10026 set to_create_inferior.
10027 * target.c (complete_target_initialization): Add assertion.
10028 (target_create_inferior): Remove.
10029 (find_default_attach, find_default_create_inferior): Remove.
10030 (find_attach_target, find_run_target): New functions.
10031 (find_default_is_async_p, find_default_can_async_p)
10032 (target_supports_non_stop, target_attach): Remove.
10033 (init_dummy_target): Don't set to_create_inferior or
10034 to_supports_non_stop.
10035 * target.h (struct target_ops) <to_attach>: Add comment. Remove
10036 TARGET_DEFAULT_FUNC.
10037 <to_create_inferior>: Add comment.
10038 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10039 TARGET_DEFAULT_RETURN.
10040 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10041 (find_attach_target, find_run_target): Declare.
10042 (target_create_inferior): Remove.
10043 (target_has_execution_1): Update comment.
10044 (target_supports_non_stop): Remove.
10045 * target-delegates.c: Rebuild.
10046
91f83b02
PA
100472014-03-12 Pedro Alves <palves@redhat.com>
10048
10049 * inf-child.h: Update comment to not mention Unix.
10050
f1aea813
PA
100512014-03-12 Pedro Alves <palves@redhat.com>
10052
10053 * inf-child.c: Update top comment to not mention Unix. Add
10054 generic comment describing how this target is meant to be used.
10055 (inf_child_post_attach, inf_child_post_startup_inferior)
10056 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10057 Unix in comment.
10058
ee8e9165
PA
100592014-03-12 Pedro Alves <palves@redhat.com>
10060
10061 * nto-procfs.c: Include inf-child.h.
10062 (procfs_ops): Delete global.
10063 (procfs_can_run): Delete method.
10064 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10065 target pointer instead of referencing procfs_ops.
10066 (procfs_prepare_to_store): Delete.
10067 (init_procfs_ops): Delete function.
10068 (procfs_target): New function, based on init_procfs_ops, but
10069 inherit inf_child_target.
10070 (_initialize_procfs): Use procfs_target.
10071
51a9c8c5
PA
100722014-03-12 Pedro Alves <palves@redhat.com>
10073
10074 * windows-nat.c: Include inf-child.h.
10075 (windows_ops): Delete global.
10076 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10077 methods.
10078 (init_windows_ops): Delete function.
10079 (windows_target): New function, based on init_windows_ops, but
10080 inherit inf_child_target.
10081 (_initialize_windows_nat): Use windows_target. Install x86
10082 specific target methods here.
10083
c1966e26
DE
100842014-03-10 Doug Evans <xdje42@gmail.com>
10085
10086 * guile/guile.c (call_initialize_gdb_module): New function.
10087 (initialize_guile): Replace call to scm_init_guile with call to
10088 scm_with_guile.
10089
023db19c
JB
100902014-03-10 Joel Brobecker <brobecker@adacore.com>
10091
10092 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10093 in call to TYPE_CODE macro.
10094
5ec18f2b
JG
100952014-03-10 Jerome Guitton <guitton@adacore.com>
10096
8668be63
JB
10097 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10098 Resolve tagged types to full view.
5ec18f2b 10099
7d03f2eb
HZ
101002014-03-10 Hui Zhu <hui@codesourcery.com>
10101
10102 * target.h (target_insert_breakpoint): Remove "hardware" from its
10103 comments.
10104
c5164cbc
DE
101052014-03-07 Doug Evans <dje@google.com>
10106
10107 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10108
c4a3fee2
DE
101092014-03-07 Doug Evans <dje@google.com>
10110
10111 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10112 Remove unused local comp_dir_attr. Assert exactly one of
10113 stub_comp_unit_die, stub_comp_dir is non-NULL.
10114
3156469c
JB
101152014-03-07 Joel Brobecker <brobecker@adacore.com>
10116
10117 * target.h (complete_target_initialization, add_target):
10118 Add comment.
10119
c1a7b7c6
PA
101202014-03-07 Pedro Alves <palves@redhat.com>
10121
10122 * go32-nat.c: Include inf-child.h.
10123 (go32_ops): Delete global.
10124 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10125 Delete methods.
10126 (go32_create_inferior): Push the passed in target pointer instead
10127 of referencing go32_ops.
10128 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10129 (go32_target): New function, based on init_go32_ops, but inherit
10130 inf_child_target.
10131 (_initialize_go32_nat): Use go32_target. Move parts of
10132 init_go32_ops here.
10133
d3c1a85f
JB
101342014-03-06 Joel Brobecker <brobecker@adacore.com>
10135
10136 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10137 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10138 SYMBOL_VALUE_ADDRESS.
10139 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10140
5fa1d40e
YQ
101412014-03-06 Yao Qi <yao@codesourcery.com>
10142
10143 * breakpoint.c (get_tracepoint_by_number): Remove argument
10144 optional_p. All callers updated. Adjust comments. Update
10145 output message.
10146 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10147
0c13193f
YQ
101482014-03-06 Yao Qi <yao@codesourcery.com>
10149
10150 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10151 early if get_number returns zero. Use 'p' instead of 'args'.
10152
2217da06
YQ
101532014-03-06 Yao Qi <yao@codesourcery.com>
10154
10155 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10156 message.
10157
cc3da688
YQ
101582014-03-06 Yao Qi <yao@codesourcery.com>
10159
10160 PR breakpoints/16508
10161 * tracepoint.c (check_trace_running): New function.
10162 (trace_find_command): Move code to check_trace_running and
10163 call check_trace_running.
10164 (trace_find_pc_command): Likewise.
10165 (trace_find_tracepoint_command): Likewise.
10166 (trace_find_line_command): Likewise.
10167 (trace_find_range_command): Likewise.
10168 * tracepoint.h (check_trace_running): Likewise.
10169 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10170
6a5f844b
YQ
101712014-03-06 Yao Qi <yao@codesourcery.com>
10172
10173 * target.h (struct target_ops) <to_traceframe_info>: Use
10174 TARGET_DEFAULT_NORETURN (tcomplain ()).
10175 * target-delegates.c: Regenerated.
10176
0f26cec1
PA
101772014-03-05 Pedro Alves <palves@redhat.com>
10178
10179 PR gdb/16575
10180 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10181 void. Update comment.
10182 (dcache_xfer_memory): Delete.
10183 (dcache_read_memory_partial): New, based on the read bits of
10184 dcache_xfer_memory.
10185 (dcache_update): Add status parameter. Use ULONGEST for len, and
10186 adjust. Discard cache lines if the reason for the update was
10187 error.
10188 * dcache.h (dcache_xfer_memory): Delete declaration.
10189 (dcache_read_memory_partial): New declaration.
10190 (dcache_update): Update prototype.
10191 * target.c (raw_memory_xfer_partial): Update the dcache here.
10192 (memory_xfer_partial_1): Don't handle dcache writes here.
10193
b2b255bd
MF
101942014-03-05 Mike Frysinger <vapier@gentoo.org>
10195
10196 * remote-sim.c (gdbsim_load): Add const to prog.
10197
5d9cf8a4
TT
101982014-03-03 Tom Tromey <tromey@redhat.com>
10199
10200 * elfread.c (probe_key): Change to bfd_data.
10201 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10202 now per-BFD, not per-objfile.
10203 * stap-probe.c (stap_probe_destroy): Update comment.
10204 (handle_stap_probe): Allocate on the per-BFD obstack.
10205
729662a5
TT
102062014-03-03 Tom Tromey <tromey@redhat.com>
10207
10208 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10209 * breakpoint.c (create_longjmp_master_breakpoint): Use
10210 get_probe_address.
10211 (add_location_to_breakpoint, bkpt_probe_insert_location)
10212 (bkpt_probe_remove_location): Update.
10213 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10214 * elfread.c (elf_symfile_relocate_probe): Remove.
10215 (elf_probe_fns): Update.
10216 (insert_exception_resume_breakpoint): Change type of "probe"
10217 parameter to bound_probe.
10218 (check_exception_resume): Update.
10219 * objfiles.c (objfile_relocate1): Don't relocate probes.
10220 * probe.c (bound_probe_s): New typedef.
10221 (parse_probes): Use get_probe_address. Set sal's objfile.
10222 (find_probe_by_pc): Return a bound_probe.
10223 (collect_probes): Return a VEC(bound_probe_s).
10224 (compare_probes): Update.
10225 (gen_ui_out_table_header_info): Change type of "probes"
10226 parameter. Update.
10227 (info_probes_for_ops): Update.
10228 (get_probe_address): New function.
10229 (probe_safe_evaluate_at_pc): Update.
10230 * probe.h (struct probe_ops) <get_probe_address>: New field.
10231 <set_semaphore, clear_semaphore>: Add objfile parameter.
10232 (struct probe) <objfile>: Remove field.
10233 <arch>: New field.
10234 <address>: Update comment.
10235 (struct bound_probe): New.
10236 (find_probe_by_pc): Return a bound_probe.
10237 (get_probe_address): Declare.
10238 * solib-svr4.c (struct probe_and_action) <address>: New field.
10239 (hash_probe_and_action, equal_probe_and_action): Update.
10240 (register_solib_event_probe): Add address parameter.
10241 (solib_event_probe_at): Update.
10242 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10243 get_probe_address.
10244 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10245 (stap_get_probe_address): New function.
10246 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10247 (compile_probe_arg): Update.
10248 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10249 address.
10250 (handle_stap_probe): Don't relocate the probe.
10251 (stap_relocate): Remove.
10252 (stap_gen_info_probes_table_values): Update.
10253 (stap_probe_ops): Remove stap_relocate.
10254 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10255 (debug_sym_probe_fns): Update.
10256 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10257 * symtab.c (init_sal): Use memset.
10258 * symtab.h (struct symtab_and_line) <objfile>: New field.
10259 * tracepoint.c (start_tracing, stop_tracing): Update.
10260
ff887920
TT
102612014-03-03 Tom Tromey <tromey@redhat.com>
10262
10263 * probe.h (parse_probes, find_probe_by_pc)
10264 (find_probes_in_objfile): Fix comments.
10265
f0407826
DE
102662014-03-02 Doug Evans <xdje42@gmail.com>
10267
10268 * infrun.c (handle_signal_stop): Replace test for
10269 TARGET_WAITKIND_STOPPED with an assert.
10270
35e6a711
DE
102712014-03-02 Doug Evans <xdje42@gmail.com>
10272
10273 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10274
667f9d0b
DE
102752014-03-02 Doug Evans <xdje42@gmail.com>
10276
10277 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10278
dc92ace0
MK
102792014-03-01 Mark Kettenis <kettenis@gnu.org>
10280
10281 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10282
a900370f
MK
102832014-03-01 Mark Kettenis <kettenis@gnu.org>
10284
10285 * i386obsd-nat.c: Include "obsd-nat.h".
10286 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10287 add_target.
10288 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10289
b72a7981
MK
102902014-03-01 Mark Kettenis <kettenis@gnu.org>
10291
10292 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10293
96c70aba
MK
102942014-03-01 Mark Kettenis <kettenis@gnu.org>
10295
10296 * mips64obsd-nat.c: Include "obsd-nath".
10297 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10298 add_target
10299 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10300
874a80af
MK
103012014-03-01 Mark Kettenis <kettenis@gnu.org>
10302
8fd408f1
MK
10303 * amd64obsd-nat.c: Include "obsd-nat,h.
10304 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10305 add_target.
874a80af
MK
10306 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10307
9cf95373
SC
103082014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10309
10310 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10311 (find_overload_match): Update call to find_oload_champ.
10312 (find_oload_champ_namespace_loop): Likewise
10313
863e4da4
MK
103142014-02-28 Mark Kettenis <kettenis@gnu.org>
10315
025cac40
MK
10316 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10317
1ed586ce
MK
10318 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10319 * config/sparc/obsd64.mh: New file.
10320 * sparc64obsd-nat.c: New file.
10321
863e4da4
MK
10322 * obsd-nat.h: New file.
10323 * obsd-nat.c: New file.
10324 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10325 (ALLDEPFILES): Add obsd-nat.c.
10326
89de4da4
TT
103272014-02-28 Tom Tromey <tromey@redhat.com>
10328
10329 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10330 * cli-out.h (cli_ui_out_impl): Now const.
10331 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10332 * ui-out.c (struct ui_out) <impl>: Now const.
10333 (default_ui_out_impl): Now const.
10334 (ui_out_new): Make 'impl' parameter const.
10335 * ui-out.h (ui_out_new): Update.
10336
c725e7b6
MK
103372014-02-27 Mark Kettenis <kettenis@gnu.org>
10338
10339 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10340
670b46b3
MK
103412014-02-27 Mark Kettenis <kettenis@gnu.org>
10342
10343 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10344
c91550fc
JK
103452014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10346
10347 Additional PR 8882 fix.
10348 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10349
2fa0369e
PA
103502014-02-27 Pedro Alves <palves@redhat.com>
10351
10352 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10353 isn't set.
10354
d632a097
PA
103552014-02-27 Pedro Alves <palves@redhat.com>
10356
10357 PR 12702
10358 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10359 * nat/linux-waitpid.c: Include string.h.
10360 (status_to_str): Moved here and made extern.
10361 * nat/linux-waitpid.h (status_to_str): New declaration.
10362
2ebd5a35
HZ
103632014-02-27 Hui Zhu <hui@codesourcery.com>
10364
10365 PR 12702
10366 * infrun.c (ptid_match): Move ...
10367 * common/ptid.c (ptid_match): ... here.
10368 * inferior.h (ptid_match): Move ...
10369 * common/ptid.h (ptid_match): ... here.
10370
3cdd631f
MK
103712014-02-27 Mark Kettenis <kettenis@gnu.org>
10372
10373 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10374 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10375 gdb_target_obs.
10376
bee30a64
MK
103772014-02-27 Mark Kettenis <kettenis@gnu.org>
10378
10379 * obsd-tdep.c (obsd_auxv_parse): New function.
10380 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
10381
10382 * gdbarch.sh (auxv_parse): New.
10383 * gdbarch.h: Regenerated.
10384 * gdbarch.c: Regenerated.
10385 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10386
7a5a839f
LC
103872014-02-26 Ludovic Courtès <ludo@gnu.org>
10388
10389 * guile/scm-value.c (gdbscm_history_append_x): New function.
10390 (value_functions): Add it.
10391
31aa7e4e
JB
103922014-02-27 Joel Brobecker <brobecker@adacore.com>
10393
10394 * dwarf2read.c (attr_value_as_address): New function.
10395 (dwarf2_find_base_address, read_call_site_scope): Use
10396 attr_value_as_address in place of DW_ADDR.
10397 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10398 the low and high addresses. Slight rework of the handling
10399 of the high pc being a constant form, and limit it to
10400 DWARF verson 4 or higher.
10401 (dwarf2_record_block_ranges): Likewise.
10402 (read_partial_die): Likewise.
10403 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10404
9b333ba3
TT
104052014-02-26 Tom Tromey <tromey@redhat.com>
10406
10407 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10408
5f6cac40
TT
104092014-02-26 Tom Tromey <tromey@redhat.com>
10410
10411 * elfread.c (elf_read_minimal_symbols): Return early if
10412 minimal symbols have already been read. Add "ei" parameter.
10413 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10414 * minsyms.c (prim_record_minimal_symbol_full): Update.
10415 * objfiles.h (struct objstats) <n_minsyms>: Move...
10416 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10417 * symmisc.c (print_objfile_statistics): Update.
10418
2750ef27
TT
104192014-02-26 Tom Tromey <tromey@redhat.com>
10420
10421 * elfread.c (elf_read_minimal_symbols): New function, from
10422 elf_symfile_read.
10423 (elf_symfile_read): Call it.
10424
34643a32
TT
104252014-02-26 Tom Tromey <tromey@redhat.com>
10426
10427 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10428 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10429 (lookup_minimal_symbol_solib_trampoline)
10430 (lookup_minimal_symbol_by_pc_section_1)
10431 (lookup_minimal_symbol_and_objfile): Update.
10432 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10433 Don't allocate a minimal symbol if minsyms have already been read.
10434 (build_minimal_symbol_hash_tables): Update.
10435 (install_minimal_symbols): Do nothing if minsyms already read.
10436 Use the per-BFD obstack.
10437 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10438 * objfiles.c (allocate_objfile): Call
10439 terminate_minimal_symbol_table later.
10440 (have_minimal_symbols): Update.
10441 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10442 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10443 Move from struct objfile.
10444 <minsyms_read>: New field.
10445 (struct objfile) <msymbols, minimal_symbol_count,
10446 msymbol_hash, msymbol_demangled_hash>: Move.
10447 (ALL_OBJFILE_MSYMBOLS): Update.
10448 * symfile.c (read_symbols): Set minsyms_read.
10449 (reread_symbols): Update.
10450 * symmisc.c (dump_objfile, dump_msymbols): Update.
10451
2273f0ac
TT
104522014-02-26 Tom Tromey <tromey@redhat.com>
10453
10454 * minsyms.c (msymbols_sort): Remove.
10455 * minsyms.h (msymbols_sort): Remove.
10456 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10457 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10458 * elfread.c (elf_symtab_read): Don't add section offsets.
10459 * xcoffread.c (record_minimal_symbol): Don't add section offset
10460 to minimal symbol address.
10461 * somread.c (text_offset, data_offset): Remove.
10462 (som_symtab_read): Don't add section offsets to minimal symbol
10463 addresses.
10464 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10465 Don't add section offsets to minimal symbols.
10466 * coffread.c (coff_symtab_read): Don't add section offsets
10467 to minimal symbol addresses.
10468 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10469 to minimal symbol addresses.
10470 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10471 section offset to minimal symbol addresses.
10472 * mdebugread.c (parse_partial_symbols): Don't add section
10473 offset to minimal symbol addresses.
10474 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10475 offset to minimal symbol addresses.
10476
77e371c0
TT
104772014-02-26 Tom Tromey <tromey@redhat.com>
10478
10479 * ada-lang.c (ada_main_name): Update.
10480 (ada_add_standard_exceptions): Update.
10481 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10482 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10483 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10484 * auxv.c (ld_so_xfer_auxv): Update.
10485 * avr-tdep.c (avr_scan_prologue): Update.
10486 * ax-gdb.c (gen_var_ref): Update.
10487 * blockframe.c (get_pc_function_start)
10488 (find_pc_partial_function_gnu_ifunc): Update.
10489 * breakpoint.c (create_overlay_event_breakpoint)
10490 (create_longjmp_master_breakpoint)
10491 (create_std_terminate_master_breakpoint)
10492 (create_exception_master_breakpoint): Update.
10493 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10494 * c-valprint.c (c_val_print): Update.
10495 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10496 * common/agent.c (agent_look_up_symbols): Update.
10497 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10498 * dwarf2loc.c (call_site_to_target_addr): Update.
10499 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10500 * elfread.c (elf_gnu_ifunc_record_cache)
10501 (elf_gnu_ifunc_resolve_by_got): Update.
10502 * findvar.c (default_read_var_value): Update.
10503 * frame.c (inside_main_func): Update.
10504 * frv-tdep.c (frv_frame_this_id): Update.
10505 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10506 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10507 Update.
10508 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10509 (hppa_hpux_find_dummy_bpaddr): Update.
10510 * hppa-tdep.c (hppa_symbol_address): Update.
10511 * infcmd.c (until_next_command): Update.
10512 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10513 Update.
10514 * linespec.c (minsym_found, add_minsym): Update.
10515 * linux-nat.c (get_signo): Update.
10516 * linux-thread-db.c (inferior_has_bug): Update.
10517 * m32c-tdep.c (m32c_return_value)
10518 (m32c_m16c_address_to_pointer): Update.
10519 * m32r-tdep.c (m32r_frame_this_id): Update.
10520 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10521 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10522 * maint.c (maintenance_translate_address): Update.
10523 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10524 (frob_address): New function.
10525 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10526 frob_address. Rename parameter to "pc_in".
10527 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10528 addresses.
10529 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10530 Update.
10531 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10532 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10533 * objc-lang.c (find_objc_msgsend): Update.
10534 * objfiles.c (objfile_relocate1): Update.
10535 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10536 * p-valprint.c (pascal_val_print): Update.
10537 * parse.c (write_exp_msymbol): Update.
10538 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10539 (ppc_elfv2_skip_entrypoint): Update.
10540 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10541 * printcmd.c (build_address_symbolic, msym_info)
10542 (address_info): Update.
10543 * proc-service.c (ps_pglobal_lookup): Update.
10544 * psymtab.c (find_pc_sect_psymtab_closer)
10545 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10546 Change msymbol parameter to bound_minimal_symbol.
10547 * ravenscar-thread.c (get_running_thread_id): Update.
10548 * remote.c (remote_check_symbols): Update.
10549 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10550 address.
10551 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10552 * solib-dsbt.c (lm_base): Update.
10553 * solib-frv.c (lm_base, main_got): Update.
10554 * solib-irix.c (locate_base): Update.
10555 * solib-som.c (som_solib_create_inferior_hook)
10556 (link_map_start): Update.
10557 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10558 * solib-svr4.c (elf_locate_base, enable_break): Update.
10559 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10560 (flush_ea_cache): Update.
10561 * stabsread.c (define_symbol, scan_file_globals): Update.
10562 * stack.c (find_frame_funname): Update.
10563 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10564 (debug_qf_find_pc_sect_symtab): Update.
10565 * symfile.c (simple_read_overlay_table)
10566 (simple_overlay_update): Update.
10567 * symfile.h (struct quick_symbol_functions)
10568 <find_pc_sect_symtab>: Change type of msymbol to
10569 bound_minimal_symbol.
10570 * symmisc.c (dump_msymbols): Update.
10571 * symtab.c (find_pc_sect_symtab_via_partial)
10572 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10573 (search_symbols, print_msymbol_info): Update.
10574 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10575 (MSYMBOL_VALUE_ADDRESS): Redefine.
10576 (BMSYMBOL_VALUE_ADDRESS): New macro.
10577 * tracepoint.c (scope_info): Update.
10578 * tui/tui-disasm.c (tui_find_disassembly_address)
10579 (tui_get_begin_asm_address): Update.
10580 * valops.c (find_function_in_inferior): Update.
10581 * value.c (value_static_field, value_fn_field): Update.
10582
3b7344d5
TT
105832014-02-26 Tom Tromey <tromey@redhat.com>
10584
10585 * ada-lang.c (ada_update_initial_language): Update.
10586 (ada_main_name, ada_has_this_exception_support): Update.
10587 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10588 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10589 * arm-tdep.c (arm_skip_stub): Update.
10590 * auxv.c (ld_so_xfer_auxv): Update.
10591 * avr-tdep.c (avr_scan_prologue): Update.
10592 * ax-gdb.c (gen_var_ref): Update.
10593 * breakpoint.c (struct breakpoint_objfile_data)
10594 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10595 type to bound_minimal_symbol.
10596 (create_overlay_event_breakpoint)
10597 (create_longjmp_master_breakpoint)
10598 (create_std_terminate_master_breakpoint)
10599 (create_exception_master_breakpoint): Update.
10600 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10601 * c-exp.y (classify_name): Update.
10602 * coffread.c (coff_symfile_read): Update.
10603 * common/agent.c (agent_look_up_symbols): Update.
10604 * d-lang.c (d_main_name): Update.
10605 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10606 * dec-thread.c (enable_dec_thread): Update.
10607 * dwarf2loc.c (call_site_to_target_addr): Update.
10608 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10609 * eval.c (evaluate_subexp_standard): Update.
10610 * findvar.c (struct minsym_lookup_data) <result>: Change type
10611 to bound_minimal_symbol.
10612 <objfile>: Remove.
10613 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10614 * frame.c (inside_main_func): Update.
10615 * frv-tdep.c (frv_frame_this_id): Update.
10616 * gcore.c (call_target_sbrk): Update.
10617 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10618 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10619 Update.
10620 * go-lang.c (go_main_name): Update.
10621 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10622 (hppa_hpux_find_import_stub_for_addr): Update.
10623 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10624 Update. Change return type.
10625 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10626 type.
10627 * jit.c (jit_breakpoint_re_set_internal): Update.
10628 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10629 Update.
10630 * linux-nat.c (get_signo): Update.
10631 * linux-thread-db.c (inferior_has_bug): Update
10632 * m32c-tdep.c (m32c_return_value)
10633 (m32c_m16c_address_to_pointer): Update.
10634 * m32r-tdep.c (m32r_frame_this_id): Update.
10635 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10636 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10637 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10638 lookup_minimal_symbol. Change return type.
10639 (lookup_minimal_symbol): Remove.
10640 (lookup_bound_minimal_symbol): Update.
10641 (lookup_minimal_symbol_text): Change return type.
10642 (lookup_minimal_symbol_solib_trampoline): Change return type.
10643 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10644 (lookup_minimal_symbol_solib_trampoline): Change return type.
10645 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10646 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10647 (value_nsstring, find_imps): Update.
10648 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10649 * p-lang.c (pascal_main_name): Update.
10650 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10651 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10652 * proc-service.c (ps_pglobal_lookup): Update.
10653 * ravenscar-thread.c (get_running_thread_msymbol): Change
10654 return type.
10655 (has_ravenscar_runtime, get_running_thread_id): Update.
10656 * remote.c (remote_check_symbols): Update.
10657 * sol-thread.c (ps_pglobal_lookup): Update.
10658 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10659 * solib-dsbt.c (lm_base): Update.
10660 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10661 Update.
10662 * solib-irix.c (locate_base): Update.
10663 * solib-som.c (som_solib_create_inferior_hook)
10664 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10665 Update.
10666 * solib-spu.c (spu_enable_break): Update.
10667 * solib-svr4.c (elf_locate_base, enable_break): Update.
10668 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10669 (flush_ea_cache): Update.
10670 * stabsread.c (define_symbol): Update.
10671 * symfile.c (simple_read_overlay_table): Update.
10672 * symtab.c (find_pc_sect_line): Update.
10673 * tracepoint.c (scope_info): Update.
10674 * tui-disasm.c (tui_get_begin_asm_address): Update.
10675 * value.c (value_static_field): Update.
10676
40c1a007
TT
106772014-02-26 Tom Tromey <tromey@redhat.com>
10678
10679 * minsyms.c (prim_record_minimal_symbol_full): Use
10680 SET_MSYMBOL_VALUE_ADDRESS.
10681 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10682 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10683 SET_MSYMBOL_VALUE_ADDRESS.
10684 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10685 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10686
efd66ac6
TT
106872014-02-26 Tom Tromey <tromey@redhat.com>
10688
10689 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10690 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10691 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10692 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10693 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10694 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10695 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10696 * ada-lang.c (ada_main_name): Update.
10697 (ada_lookup_simple_minsym): Update.
10698 (ada_make_symbol_completion_list): Update.
10699 (ada_add_standard_exceptions): Update.
10700 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10701 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10702 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10703 * arm-tdep.c (skip_prologue_function): Update.
10704 (arm_skip_stack_protector, arm_skip_stub): Update.
10705 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10706 (arm_wince_skip_main_prologue): Update.
10707 * auxv.c (ld_so_xfer_auxv): Update.
10708 * avr-tdep.c (avr_scan_prologue): Update.
10709 * ax-gdb.c (gen_var_ref): Update.
10710 * block.c (call_site_for_pc): Update.
10711 * blockframe.c (get_pc_function_start): Update.
10712 (find_pc_partial_function_gnu_ifunc): Update.
10713 * breakpoint.c (create_overlay_event_breakpoint): Update.
10714 (create_longjmp_master_breakpoint): Update.
10715 (create_std_terminate_master_breakpoint): Update.
10716 (create_exception_master_breakpoint): Update.
10717 (resolve_sal_pc): Update.
10718 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10719 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10720 Update.
10721 * c-valprint.c (c_val_print): Update.
10722 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10723 * coffread.c (coff_symfile_read): Update.
10724 * common/agent.c (agent_look_up_symbols): Update.
10725 * dbxread.c (find_stab_function_addr): Update.
10726 (end_psymtab): Update.
10727 * dwarf2loc.c (call_site_to_target_addr): Update.
10728 (func_verify_no_selftailcall): Update.
10729 (tailcall_dump): Update.
10730 (call_site_find_chain_1): Update.
10731 (dwarf_expr_reg_to_entry_parameter): Update.
10732 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10733 (elf_gnu_ifunc_resolve_by_got): Update.
10734 * f-valprint.c (info_common_command): Update.
10735 * findvar.c (read_var_value): Update.
10736 * frame.c (get_prev_frame_1): Update.
10737 (inside_main_func): Update.
10738 * frv-tdep.c (frv_skip_main_prologue): Update.
10739 (frv_frame_this_id): Update.
10740 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10741 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10742 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10743 (gnuv3_skip_trampoline): Update.
10744 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10745 (hppa64_hpux_in_solib_call_trampoline): Update.
10746 (hppa_hpux_skip_trampoline_code): Update.
10747 (hppa64_hpux_search_dummy_call_sequence): Update.
10748 (hppa_hpux_find_import_stub_for_addr): Update.
10749 (hppa_hpux_find_dummy_bpaddr): Update.
10750 * hppa-tdep.c (hppa_symbol_address)
10751 (hppa_lookup_stub_minimal_symbol): Update.
10752 * i386-tdep.c (i386_skip_main_prologue): Update.
10753 (i386_pe_skip_trampoline_code): Update.
10754 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10755 * infcall.c (get_function_name): Update.
10756 * infcmd.c (until_next_command): Update.
10757 * jit.c (jit_breakpoint_re_set_internal): Update.
10758 (jit_inferior_init): Update.
10759 * linespec.c (minsym_found): Update.
10760 (add_minsym): Update.
10761 * linux-fork.c (info_checkpoints_command): Update.
10762 * linux-nat.c (get_signo): Update.
10763 * linux-thread-db.c (inferior_has_bug): Update.
10764 * m32c-tdep.c (m32c_return_value): Update.
10765 (m32c_m16c_address_to_pointer): Update.
10766 (m32c_m16c_pointer_to_address): Update.
10767 * m32r-tdep.c (m32r_frame_this_id): Update.
10768 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10769 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10770 * maint.c (maintenance_translate_address): Update.
10771 * minsyms.c (add_minsym_to_hash_table): Update.
10772 (add_minsym_to_demangled_hash_table): Update.
10773 (msymbol_objfile): Update.
10774 (lookup_minimal_symbol): Update.
10775 (iterate_over_minimal_symbols): Update.
10776 (lookup_minimal_symbol_text): Update.
10777 (lookup_minimal_symbol_by_pc_name): Update.
10778 (lookup_minimal_symbol_solib_trampoline): Update.
10779 (lookup_minimal_symbol_by_pc_section_1): Update.
10780 (lookup_minimal_symbol_and_objfile): Update.
10781 (prim_record_minimal_symbol_full): Update.
10782 (compare_minimal_symbols): Update.
10783 (compact_minimal_symbols): Update.
10784 (build_minimal_symbol_hash_tables): Update.
10785 (install_minimal_symbols): Update.
10786 (terminate_minimal_symbol_table): Update.
10787 (find_solib_trampoline_target): Update.
10788 (minimal_symbol_upper_bound): Update.
10789 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10790 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10791 (mips_skip_pic_trampoline_code): Update.
10792 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10793 * objc-lang.c (selectors_info): Update.
10794 (classes_info): Update.
10795 (find_methods): Update.
10796 (find_imps): Update.
10797 (find_objc_msgsend): Update.
10798 * objfiles.c (objfile_relocate1): Update.
10799 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10800 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10801 * p-valprint.c (pascal_val_print): Update.
10802 * parse.c (write_exp_msymbol): Update.
10803 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10804 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10805 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10806 * printcmd.c (build_address_symbolic): Update.
10807 (sym_info): Update.
10808 (address_info): Update.
10809 * proc-service.c (ps_pglobal_lookup): Update.
10810 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10811 (find_pc_sect_psymtab): Update.
10812 * python/py-framefilter.c (py_print_frame): Update.
10813 * ravenscar-thread.c (get_running_thread_id): Update.
10814 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10815 Update.
10816 * remote.c (remote_check_symbols): Update.
10817 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10818 (rs6000_skip_trampoline_code): Update.
10819 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10820 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10821 * solib-dsbt.c (lm_base): Update.
10822 * solib-frv.c (lm_base): Update.
10823 (main_got): Update.
10824 * solib-irix.c (locate_base): Update.
10825 * solib-som.c (som_solib_create_inferior_hook): Update.
10826 (som_solib_desire_dynamic_linker_symbols): Update.
10827 (link_map_start): Update.
10828 * solib-spu.c (spu_enable_break): Update.
10829 (ocl_enable_break): Update.
10830 * solib-svr4.c (elf_locate_base): Update.
10831 (enable_break): Update.
10832 * spu-tdep.c (spu_get_overlay_table): Update.
10833 (spu_catch_start): Update.
10834 (flush_ea_cache): Update.
10835 * stabsread.c (define_symbol): Update.
10836 (scan_file_globals): Update.
10837 * stack.c (find_frame_funname): Update.
10838 (frame_info): Update.
10839 * symfile.c (simple_read_overlay_table): Update.
10840 (simple_overlay_update): Update.
10841 * symmisc.c (dump_msymbols): Update.
10842 * symtab.c (fixup_section): Update.
10843 (find_pc_sect_line): Update.
10844 (skip_prologue_sal): Update.
10845 (search_symbols): Update.
10846 (print_msymbol_info): Update.
10847 (rbreak_command): Update.
10848 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10849 (completion_list_objc_symbol): Update.
10850 (default_make_symbol_completion_list_break_on): Update.
10851 * tracepoint.c (scope_info): Update.
10852 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10853 (tui_get_begin_asm_address): Update.
10854 * valops.c (find_function_in_inferior): Update.
10855 * value.c (value_static_field): Update.
10856 (value_fn_field): Update.
10857
50e65b17
TT
108582014-02-26 Tom Tromey <tromey@redhat.com>
10859
10860 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10861 bound minimal symbols. Move code that knows about minsym
10862 table layout...
10863 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10864 function.
10865 * minsyms.h (minimal_symbol_upper_bound): Declare.
10866 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10867 minimal_symbol_upper_bound.
10868
1b588015
JB
108692014-02-27 Joel Brobecker <brobecker@adacore.com>
10870
10871 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10872 Use the type's name if its basic type does not have a tag.
10873
dbb9c2b1
JB
108742014-02-27 Joel Brobecker <brobecker@adacore.com>
10875
10876 * dwarf2read.c (read_subrange_type): Add comment.
10877
55426c9d
JB
108782014-02-27 Joel Brobecker <brobecker@adacore.com>
10879
10880 * dwarf2read.c (update_enumeration_type_from_children): New
10881 function, mostly extracted from process_structure_scope.
10882 (read_enumeration_type): Call update_enumeration_type_from_children.
10883 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10884 and flag_flag_enum fields.
10885
f2fce0ca
PA
108862014-02-26 Pedro Alves <palves@redhat.com>
10887
10888 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10889 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10890 to_xfer_partial method.
10891
7a44e40e
PA
108922014-02-26 Pedro Alves <palves@redhat.com>
10893
10894 * target.c (complete_target_initialization): Don't install
10895 default_xfer_partial as to_xfer_partial hook.
10896 (nomemory): Delete.
10897 (update_current_target): Don't INHERIT nor de_fault
10898 deprecated_xfer_memory. Delete de_fault macro.
10899 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10900 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10901 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10902 field.
10903
bd265cd0
PA
109042014-02-26 Pedro Alves <palves@redhat.com>
10905
10906 * go32-nat.c (my_write_child): New function.
10907 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10908 (go32_xfer_partial): New function.
10909 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10910 Instead install a to_xfer_partial hook.
10911
9d46c4e5
PA
109122014-02-26 Pedro Alves <palves@redhat.com>
10913
10914 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10915 to_xfer_partial helper. Rewrite.
10916 (procfs_xfer_partial): New function.
10917 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10918 Install a to_xfer_partial hook.
10919
a1583b1f
PA
109202014-02-26 Pedro Alves <palves@redhat.com>
10921
10922 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10923 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10924 (m32r_xfer_partial): New function.
10925 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10926 Install a to_xfer_partial hook.
10927
6df1b29f
PA
109282014-02-26 Pedro Alves <palves@redhat.com>
10929
10930 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10931 helper.
10932 (mips_xfer_partial): New function.
10933 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10934 hook. Install a to_xfer_partial hook.
10935
dc53a7ad
JB
109362014-02-26 Joel Brobecker <brobecker@adacore.com>
10937
10938 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10939 * gdbtypes.c (create_array_type_with_stride): New function,
10940 renaming create_array_type, but with an added parameter
10941 called "bit_stride".
10942 (create_array_type): Re-implement using
10943 create_array_type_with_stride.
10944 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10945 and DW_AT_bit_stride attributes.
10946
12ab52e9
PA
109472014-02-26 Pedro Alves <palves@redhat.com>
10948
10949 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10950 task-specific breakpoints.
10951
d16461ae
PA
109522014-02-25 Pedro Alves <palves@redhat.com>
10953
10954 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10955 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10956
a8b16220
SS
109572014-02-25 Stan Shebs <stan@codesourcery.com>
10958
10959 * defs.h: Annotate comments for Doxygen.
10960
b9e795ee
TT
109612014-02-25 Tom Tromey <tromey@redhat.com>
10962
10963 * target.h (target_ignore): Don't declare.
10964 * target.c (target_ignore): Remove.
10965
849c862e
JK
109662014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10967
10968 PR gdb/16626
10969 * auto-load.c (auto_load_objfile_script_1): Change filename to
10970 debugfile.
10971
475109d8
JB
109722014-02-25 Joel Brobecker <brobecker@adacore.com>
10973
10974 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10975 documentation. Adjust prototype to match the target_ops
10976 to_xfer_partial method. Adjust implementation accordingly.
10977
e186c3bd
HZ
109782014-02-25 Hui Zhu <hui@codesourcery.com>
10979
10980 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10981 to_traceframe_info.
10982
6d451942
KB
109832014-02-25 Kevin Buettner <kevinb@redhat.com>
10984
041ab8b4 10985 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
10986 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10987 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10988 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10989 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10990 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10991 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10992 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10993 New constants.
10994 (rl78_register_type): Use a data pointer type for SP and
10995 new pseudo registers mentioned above. Use a 16 bit integer
10996 type for all other register pairs.
10997 (rl78_register_name, rl78_g10_register_name): Update for
10998 new pseudo registers.
10999 (rl78_pseudo_register_read): Likewise.
11000 (rl78_pseudo_register_write): Likewise.
11001 (rl78_dwarf_reg_to_regnum): Return register numbers representing
11002 to the newly added pseudo registers.
11003
eddf0bae
DE
110042014-02-24 Doug Evans <dje@google.com>
11005
11006 * value.c (record_latest_value): Fix comment.
11007 * printcmd.c (print_command_1): Remove code to handle -1 return from
11008 record_latest_value.
11009
e96027e0
PA
110102014-02-24 Pedro Alves <palves@redhat.com>
11011
11012 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
11013 deprecated_xfer_memory hook.
11014 (procfs_xfer_partial): Call procfs_xfer_memory instead
11015 of the deprecated_xfer_memory target hook.
11016 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11017 helper.
11018
0837c976
YZ
110192014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
11020
11021 * windows-nat.c (windows_xfer_shared_libraries): Return
11022 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11023 requested object is TARGET_OBJECT_LIBRARIES.
11024
bc113b4e
YQ
110252014-02-24 Yao Qi <yao@codesourcery.com>
11026
11027 * target.h (enum target_xfer_status)
11028 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11029 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11030 explicitly. New.
11031 * corefile.c (memory_error_message): User updated.
11032 * exec.c (section_table_read_available_memory): Likewise.
11033 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11034 * target.c (target_xfer_status_to_string): Likewise.
11035 (raw_memory_xfer_partial): Likewise.
11036 (memory_xfer_partial_1, target_xfer_partial): Likewise.
11037 * valops.c (read_value_memory): Likewise.
11038 * exec.h: Update comments.
11039
01cb8804
YQ
110402014-02-24 Yao Qi <yao@codesourcery.com>
11041
11042 * target.c (target_xfer_status_to_string): Rename argument err
11043 to status.
11044 * target.h (target_xfer_status_to_string): Update declaration.
11045 Replace target_xfer_error_to_string with
11046 target_xfer_status_to_string in comment.
11047
93063aa6
YQ
110482014-02-24 Yao Qi <yao@codesourcery.com>
11049
11050 * mips-linux-nat.c (super_close): Update its type.
11051 (mips_linux_close): Pass 'self' to super_close.
11052
5c328c05
YQ
110532014-02-24 Yao Qi <yao@codesourcery.com>
11054
11055 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11056 * corefile.c (read_memory): Adjusted.
11057 * target.c (target_write_with_progress): Adjusted.
11058
f73023dd
YQ
110592014-02-23 Yao Qi <yao@codesourcery.com>
11060
11061 Revert two patches:
11062
11063 2013-10-25 Yao Qi <yao@codesourcery.com>
11064
11065 * remote.c (remote_traceframe_info): Return early if
11066 traceframe is not selected.
11067
11068 2013-07-19 Yao Qi <yao@codesourcery.com>
11069
11070 * target.c (update_current_target): Change the default action
11071 of 'to_traceframe_info' from tcomplain to return_zero.
11072 * target.h (struct target_ops) <to_traceframe_info>: Add more
11073 comments.
11074
5a2eb0ef
YQ
110752014-02-23 Yao Qi <yao@codesourcery.com>
11076
11077 * valops.c (read_value_memory): Rewrite it. Call
11078 target_xfer_partial in a loop.
11079 * exec.h (section_table_available_memory): Remove declaration.
11080 Move comments to ...
11081 * exec.c (section_table_available_memory): ... here. Make it
11082 static.
11083
1ee79381
YQ
110842014-02-23 Yao Qi <yao@codesourcery.com>
11085
11086 * exec.c (section_table_read_available_memory): New function.
11087 * exec.h (section_table_read_available_memory): Declare.
11088 * ctf.c (ctf_xfer_partial): Call
11089 section_table_read_available_memory.
11090 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11091
1ca49d37
YQ
110922014-02-23 Yao Qi <yao@codesourcery.com>
11093
11094 * ctf.c (ctf_xfer_partial): Move code to ...
11095 * exec.c (exec_read_partial_read_only): ... it. New function.
11096 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11097 * tracefile.c: Include "exec.h".
11098 * exec.h (exec_read_partial_read_only): Declare.
11099
a283690e
YQ
111002014-02-23 Yao Qi <yao@codesourcery.com>
11101
11102 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11103 (tfile_has_memory): Remove.
11104 (init_tfile_ops): Don't set fields to_has_all_memory and
11105 to_has_memory of tfile_ops.
11106 * tracefile.c (tracefile_has_all_memory): New function.
11107 (tracefile_has_memory): New function.
11108 (init_tracefile_ops): Initialize fields to_has_all_memory and
11109 to_has_memory of 'ops'.
11110
12e03cd0
YQ
111112014-02-23 Yao Qi <yao@codesourcery.com>
11112
11113 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11114 (ctf_thread_alive, ctf_get_trace_status): Remove.
11115 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11116 init_tracefile_ops.
11117 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11118 (tfile_has_stack, tfile_has_registers): Remove.
11119 (tfile_thread_alive): Remove.
11120 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11121 init_tracefile_ops.
11122 * tracefile.c (tracefile_has_stack): New function.
11123 (tracefile_has_registers): New function.
11124 (tracefile_thread_alive): New function.
11125 (tracefile_get_trace_status): New function.
11126 (init_tracefile_ops): New function.
11127 * tracefile.h (init_tracefile_ops): Declare.
11128
11395323
YQ
111292014-02-23 Yao Qi <yao@codesourcery.com>
11130
11131 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11132 (O_LARGEFILE): Likewise.
11133 (tfile_ops): Likewise.
11134 (TRACE_HEADER_SIZE): Likewise.
11135 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11136 (cur_data_size): Likewise.
11137 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11138 (tfile_close, tfile_files_info): Likewise.
11139 (tfile_get_trace_status): Likewise.
11140 (tfile_get_tracepoint_status): Likewise.
11141 (tfile_get_traceframe_address): Likewise.
11142 (tfile_trace_find, match_blocktype): Likewise.
11143 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11144 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11145 (tfile_get_trace_state_variable_value): Likewise.
11146 (tfile_has_all_memory, tfile_has_memory): Likewise.
11147 (tfile_has_stack, tfile_has_registers): Likewise.
11148 (tfile_thread_alive, build_traceframe_info): Likewise.
11149 (tfile_traceframe_info, init_tfile_ops): Likewise.
11150 (_initialize_tracepoint): Don't call init_tfile_ops
11151 and add_target_with_completer.
11152 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11153 exec.h, completer.h and filenames.h.
11154 (_initialize_tracefile_tfile): New function.
11155
7951c4eb
YQ
111562014-02-23 Yao Qi <yao@codesourcery.com>
11157
11158 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11159 tracefile-tfile.o.
11160 (HFILES_NO_SRCDIR): Add tracefile.h.
11161 * ctf.c: Include "tracefile.h".
11162 * tracefile.h: New file.
11163 * tracefile.c: New file
11164 * tracefile-tfile.c: New file.
11165 * tracepoint.c: Include "tracefile.h".
11166 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11167 (stop_reason_names): Add const.
11168 (trace_file_writer_xfree): Move it to tracefile.c.
11169 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11170 (trace_save_ctf): Likewise.
11171 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11172 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11173 (tfile_write_header, tfile_write_regblock_type): Likewise.
11174 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11175 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11176 (tfile_write_raw_data, tfile_end): Likewise.
11177 (tfile_trace_file_writer_new): Likewise.
11178 (free_uploaded_tp): Make it extern.
11179 (free_uploaded_tsv): Make it extern.
11180 (_initialize_tracepoint): Move code to register command 'tsave'
11181 to tracefile.c.
11182 * tracepoint.h (stop_reason_names): Declare.
11183 (struct trace_frame_write_ops): Move it to tracefile.h.
11184 (struct trace_file_write_ops): Likewise.
11185 (struct trace_file_writer): Likewise.
11186 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11187
184cd072
JK
111882014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11189
11190 PR gdb/16594
11191 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11192 process name.
11193 (get_cores_used_by_process): New parameter num_cores, use it.
11194 (linux_xfer_osdata_processes): Pass num_cores to it.
11195 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11196 process name.
11197
c63528fc
AK
111982014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11199
11200 * target.c (memory_xfer_partial): Fix length arg in call to
11201 breakpoint_xfer_memory.
11202
d7b30f67
SDJ
112032014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11204
11205 PR tdep/16397
11206 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11207 number comes after the + or - signs. Adjust length of register
11208 name to be extracted.
11209
8838afaf
TT
112102014-02-20 Tom Tromey <tromey@redhat.com>
11211
11212 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11213 (ada_varobj_ops): Mark "extern".
11214
05227d14
TT
112152014-02-20 Tom Tromey <tromey@redhat.com>
11216
11217 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11218
1254eefc
DE
112192014-02-20 Doug Evans <xdje42@gmail.com>
11220
11221 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11222 All callers updated.
11223 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11224 All callers updated.
11225 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11226 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11227
adde2bff
DE
112282014-02-20 lin zuojian <manjian2006@gmail.com>
11229 Joel Brobecker <brobecker@adacore.com>
11230 Doug Evans <xdje42@gmail.com>
11231
11232 PR symtab/16581
11233 * dwarf2read.c (struct die_info): New member in_process.
11234 (reset_die_in_process): New function.
11235 (process_die): Set it at the start, reset when returning.
11236 (inherit_abstract_dies): Only call process_die if origin_child_die
11237 not already being processed.
11238
3be75f87
JB
112392014-02-20 Joel Brobecker <brobecker@adacore.com>
11240
11241 * windows-nat.c (handle_unload_dll): Add function documentation.
11242 (do_initial_windows_stuff): Add comment explaining why we wait
11243 until after inferior initialization has finished before
11244 processing all DLLs.
11245
47f7ffdb
JB
112462014-02-20 Joel Brobecker <brobecker@adacore.com>
11247
11248 * windows-nat.c (get_module_name): Delete.
11249 (windows_get_exec_module_filename): New function, mostly
11250 inspired from get_module_name.
11251 (windows_pid_to_exec_file): Replace call to get_module_name
11252 by call to windows_get_exec_module_filename.
11253
1cd9feab
JB
112542014-02-20 Joel Brobecker <brobecker@adacore.com>
11255
11256 * windows-nat.c (handle_load_dll): Rewrite this function's
11257 introductory comment. Remove code using get_module_name
11258 to get the DLL's name.
11259
ea39ad35
JB
112602014-02-20 Joel Brobecker <brobecker@adacore.com>
11261
11262 * windows-nat.c (get_windows_debug_event): Ignore
11263 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11264 if windows_initialization_done == 0.
11265 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11266 Adjust implementation to always load all DLLs.
11267 (do_initial_windows_stuff): Replace call to
11268 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11269
95060284
JB
112702014-02-20 Joel Brobecker <brobecker@adacore.com>
11271
11272 * windows-nat.c (_initialize_windows_nat): Deprecate the
11273 "dll-symbols" command. Turn the "add-shared-symbol-files"
11274 and "assf" aliases into commands, and deprecate them as well.
11275 * NEWS: Add entry explaining that "dll-symbols" and its two
11276 aliases are now deprecated.
11277
8d4fdb12
JB
112782014-02-20 Joel Brobecker <brobecker@adacore.com>
11279
11280 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11281 new-line in debug string. Remove trailing spaces.
11282
1b281443
SS
112832014-02-19 Stan Shebs <stan@codesourcery.com>
11284
11285 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11286
f7bd0f78
SC
112872014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11288
11289 * NEWS: Add entry for the new feature
11290 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11291 and class values.
11292
399ebc3d
SS
112932014-02-19 Stan Shebs <stan@codesourcery.com>
11294
11295 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11296
c658158d
PA
112972014-02-19 Pedro Alves <palves@redhat.com>
11298
11299 * common/ptid.h (struct ptid): Mention that process_stratum
11300 targets should prefer ptid.lwp.
11301
ba348170
PA
113022014-02-19 Pedro Alves <palves@redhat.com>
11303
11304 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11305 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11306 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11307 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11308 store remote thread ids rather than ptid.tid.
11309 (_initialize_remote): Adjust.
11310
ac01945b
TT
113112014-02-19 Tom Tromey <tromey@redhat.com>
11312
11313 * target.c (target_get_unwinder): Rewrite.
11314 (target_get_tailcall_unwinder): Rewrite.
11315 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11316 (record_btrace_to_get_tailcall_unwinder): New function.
11317 (init_record_btrace_ops): Update.
11318 * target.h (struct target_ops) <to_get_unwinder,
11319 to_get_tailcall_unwinder>: Now function pointers. Use
11320 TARGET_DEFAULT_RETURN.
11321
8476dc92
TT
113222014-02-19 Tom Tromey <tromey@redhat.com>
11323
11324 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11325 argument.
11326 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11327
c0eca49f
TT
113282014-02-19 Tom Tromey <tromey@redhat.com>
11329
11330 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11331 directly.
11332 * target-delegates.c: Rebuild.
11333 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11334 TARGET_DEFAULT_FUNC.
11335 * target.c (default_target_decr_pc_after_break): Rename from
11336 forward_target_decr_pc_after_break. Simplify.
11337 (target_decr_pc_after_break): Rely on delegation.
11338
596b6b39
TT
113392014-02-19 Tom Tromey <tromey@redhat.com>
11340
11341 * target.c (update_current_target): Do not INHERIT to_doc or
11342 to_magic. Do not de_fault to_open or to_close.
11343
b427c1bc
TT
113442014-02-19 Tom Tromey <tromey@redhat.com>
11345
11346 * gcore.h (objfile_find_memory_regions): Declare.
11347 * gcore.c (objfile_find_memory_regions): No longer static. Add
11348 "self" argument.
11349 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11350 * exec.c: Include gcore.h.
11351 (exec_set_find_memory_regions): Remove.
11352 (exec_find_memory_regions): Remove.
11353 (exec_do_find_memory_regions): Remove.
11354 (init_exec_ops): Update.
11355 * defs.h (exec_set_find_memory_regions): Remove.
11356
9b144037
TT
113572014-02-19 Tom Tromey <tromey@redhat.com>
11358
11359 * target-delegates.c: Rebuild.
11360 * target.h (struct target_ops) <to_extra_thread_info,
11361 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11362 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11363 not 0, in TARGET_DEFAULT_RETURN.
11364
555bbdeb
TT
113652014-02-19 Tom Tromey <tromey@redhat.com>
11366
11367 * target.c (complete_target_initialization): Remove casts. Use
11368 return_zero_has_execution.
11369 (return_zero): Add "ignore" argument.
11370 (return_zero_has_execution): New function.
11371 (init_dummy_target): Remove casts. Use
11372 return_zero_has_execution.
11373
be4ddd36
TT
113742014-02-19 Tom Tromey <tromey@redhat.com>
11375
11376 * target.c (update_current_target): Update comments. Do not
11377 INHERIT to_stratum.
11378
2117c711
TT
113792014-02-19 Tom Tromey <tromey@redhat.com>
11380
11381 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11382 needed.
11383 * corelow.c (core_read_description): Delegate when needed.
11384 * remote.c (remote_read_description): Delegate when needed.
11385 * target-delegates.c: Rebuild.
11386 * target.c (target_read_description): Rewrite.
11387 * target.h (struct target_ops) <to_read_description>: Update
11388 comment. Use TARGET_DEFAULT_RETURN.
11389
e88ef65c
TT
113902014-02-19 Tom Tromey <tromey@redhat.com>
11391
11392 * target-delegates.c: Rebuild.
11393 * target.c (update_current_target): Don't inherit or default
11394 to_can_run.
11395 (find_default_run_target): Check against delegate_can_run.
11396 * target.h (struct target_ops) <to_can_run>: Use
11397 TARGET_DEFAULT_RETURN.
11398
86a0854a
TT
113992014-02-19 Tom Tromey <tromey@redhat.com>
11400
11401 * target-delegates.c: Rebuild.
11402 * target.c (target_disconnect): Unconditionally delegate.
11403 * target.h (struct target_ops) <to_disconnect>: Use
11404 TARGET_DEFAULT_NORETURN.
11405
ee97f592
TT
114062014-02-19 Tom Tromey <tromey@redhat.com>
11407
11408 * record.c (record_stop): Unconditionally delegate.
11409 * target-delegates.c: Rebuild.
11410 * target.c (target_stop_recording): Unconditionally delegate.
11411 * target.h (struct target_ops) <to_stop_recording>: Use
11412 TARGET_DEFAULT_IGNORE.
11413
6dc7fcf4
TT
114142014-02-19 Tom Tromey <tromey@redhat.com>
11415
11416 * target-delegates.c: Rebuild.
11417 * target.c (target_enable_btrace): Unconditionally delegate.
11418 * target.h (struct target_ops) <to_enable_btrace>: Use
11419 TARGET_DEFAULT_NORETURN.
11420
eb5b20d4
TT
114212014-02-19 Tom Tromey <tromey@redhat.com>
11422
11423 * target-delegates.c: Rebuild.
11424 * target.c (target_read_btrace): Unconditionally delegate.
11425 * target.h (struct target_ops) <to_read_btrace>: Use
11426 TARGET_DEFAULT_NORETURN.
11427
9ace480d
TT
114282014-02-19 Tom Tromey <tromey@redhat.com>
11429
11430 * target-delegates.c: Rebuild.
11431 * target.c (target_teardown_btrace): Unconditionally delegate.
11432 * target.h (struct target_ops) <to_teardown_btrace>: Use
11433 TARGET_DEFAULT_NORETURN.
11434
8dc292d3
TT
114352014-02-19 Tom Tromey <tromey@redhat.com>
11436
11437 * target-delegates.c: Rebuild.
11438 * target.c (target_disable_btrace): Unconditionally delegate.
11439 * target.h (struct target_ops) <to_disable_btrace>: Use
11440 TARGET_DEFAULT_NORETURN.
11441
58a5184e
TT
114422014-02-19 Tom Tromey <tromey@redhat.com>
11443
11444 * target-delegates.c: Rebuild.
11445 * target.c (default_search_memory): New function.
11446 (simple_search_memory): Update comment.
11447 (target_search_memory): Unconditionally delegate.
11448 * target.h (struct target_ops) <to_search_memory>: Use
11449 TARGET_DEFAULT_FUNC.
11450
8de71aab
TT
114512014-02-19 Tom Tromey <tromey@redhat.com>
11452
11453 * auxv.c (default_auxv_parse): No longer static.
11454 (target_auxv_parse): Unconditionally delegate.
11455 * auxv.h (default_auxv_parse): Declare.
11456 * target-delegates.c: Rebuild.
11457 * target.c: Include auxv.h.
11458 * target.h (struct target_ops) <to_auxv_parse>: Use
11459 TARGET_DEFAULT_FUNC.
11460
6b2c5a57
TT
114612014-02-19 Tom Tromey <tromey@redhat.com>
11462
11463 * target-delegates.c: Rebuild.
11464 * target.c (target_memory_map): Unconditionally delegate.
11465 * target.h (struct target_ops) <to_memory_map>: Use
11466 TARGET_DEFAULT_RETURN.
11467
cbffc065
TT
114682014-02-19 Tom Tromey <tromey@redhat.com>
11469
11470 * target-delegates.c: Rebuild.
11471 * target.c (target_thread_alive): Unconditionally delegate.
11472 * target.h (struct target_ops) <to_thread_alive>: Use
11473 TARGET_DEFAULT_RETURN.
11474
f09e2107
TT
114752014-02-19 Tom Tromey <tromey@redhat.com>
11476
11477 * target-delegates.c: Rebuild.
11478 * target.c (target_save_record): Unconditionally delegate.
11479 * target.h (struct target_ops) <to_save_record>: Use
11480 TARGET_DEFAULT_NORETURN.
11481
07366925
TT
114822014-02-19 Tom Tromey <tromey@redhat.com>
11483
11484 * target-delegates.c: Rebuild.
11485 * target.c (target_delete_record): Unconditionally delegate.
11486 * target.h (struct target_ops) <to_delete_record>: Use
11487 TARGET_DEFAULT_NORETURN.
11488
dd2e9d25
TT
114892014-02-19 Tom Tromey <tromey@redhat.com>
11490
11491 * target-delegates.c: Rebuild.
11492 * target.c (target_record_is_replaying): Unconditionally
11493 delegate.
11494 * target.h (struct target_ops) <to_record_is_replaying>: Use
11495 TARGET_DEFAULT_RETURN.
11496
671e76cc
TT
114972014-02-19 Tom Tromey <tromey@redhat.com>
11498
11499 * target-delegates.c: Rebuild.
11500 * target.c (target_goto_record_begin): Unconditionally delegate.
11501 * target.h (struct target_ops) <to_goto_record_begin>: Use
11502 TARGET_DEFAULT_NORETURN.
11503
e9179bb3
TT
115042014-02-19 Tom Tromey <tromey@redhat.com>
11505
11506 * target-delegates.c: Rebuild.
11507 * target.c (target_goto_record_end): Unconditionally delegate.
11508 * target.h (struct target_ops) <to_goto_record_end>: Use
11509 TARGET_DEFAULT_NORETURN.
11510
05969c84
TT
115112014-02-19 Tom Tromey <tromey@redhat.com>
11512
11513 * target-delegates.c: Rebuild.
11514 * target.c (target_goto_record): Unconditionally delegate.
11515 * target.h (struct target_ops) <to_goto_record>: Use
11516 TARGET_DEFAULT_NORETURN.
11517
3679abfa
TT
115182014-02-19 Tom Tromey <tromey@redhat.com>
11519
11520 * target-delegates.c: Rebuild.
11521 * target.c (target_insn_history): Unconditionally delegate.
11522 * target.h (struct target_ops) <to_insn_history>: Use
11523 TARGET_DEFAULT_NORETURN.
11524
8444ab58
TT
115252014-02-19 Tom Tromey <tromey@redhat.com>
11526
11527 * target-delegates.c: Rebuild.
11528 * target.c (target_insn_history_from): Unconditionally delegate.
11529 * target.h (struct target_ops) <to_insn_history_from>: Use
11530 TARGET_DEFAULT_NORETURN.
11531
c29302cc
TT
115322014-02-19 Tom Tromey <tromey@redhat.com>
11533
11534 * target-delegates.c: Rebuild.
11535 * target.c (target_insn_history_range): Unconditionally delegate.
11536 * target.h (struct target_ops) <to_insn_history_range>: Use
11537 TARGET_DEFAULT_NORETURN.
11538
170049d4
TT
115392014-02-19 Tom Tromey <tromey@redhat.com>
11540
11541 * target-delegates.c: Rebuild.
11542 * target.c (target_call_history): Unconditionally delegate.
11543 * target.h (struct target_ops) <to_call_history>: Use
11544 TARGET_DEFAULT_NORETURN.
11545
16fc27d6
TT
115462014-02-19 Tom Tromey <tromey@redhat.com>
11547
11548 * target-delegates.c: Rebuild.
11549 * target.c (target_call_history_from): Unconditionally delegate.
11550 * target.h (struct target_ops) <to_call_history_from>: Use
11551 TARGET_DEFAULT_NORETURN.
11552
115d9817
TT
115532014-02-19 Tom Tromey <tromey@redhat.com>
11554
11555 * target-delegates.c: Rebuild.
11556 * target.c (target_call_history_range): Unconditionally delegate.
11557 * target.h (struct target_ops) <to_call_history_range>: Use
11558 TARGET_DEFAULT_NORETURN.
11559
eb276a6b
TT
115602014-02-19 Tom Tromey <tromey@redhat.com>
11561
11562 * target-delegates.c: Rebuild.
11563 * target.c (target_verify_memory): Unconditionally delegate.
11564 * target.h (struct target_ops) <to_verify_memory>: Use
11565 TARGET_DEFAULT_NORETURN.
11566
9e538d0d
TT
115672014-02-19 Tom Tromey <tromey@redhat.com>
11568
11569 * target-delegates.c: Rebuild.
11570 * target.c (target_core_of_thread): Unconditionally delegate.
11571 * target.h (struct target_ops) <to_core_of_thread>: Use
11572 TARGET_DEFAULT_RETURN.
11573
f6fb2925
TT
115742014-02-19 Tom Tromey <tromey@redhat.com>
11575
11576 * target-delegates.c: Rebuild.
11577 * target.c (target_flash_done): Unconditionally delegate.
11578 * target.h (struct target_ops) <to_flash_done>: Use
11579 TARGET_DEFAULT_NORETURN.
11580
e8a6c6ac
TT
115812014-02-19 Tom Tromey <tromey@redhat.com>
11582
11583 * target-delegates.c: Rebuild.
11584 * target.c (target_flash_erase): Unconditionally delegate.
11585 * target.h (struct target_ops) <to_flash_erase>: Use
11586 TARGET_DEFAULT_NORETURN.
11587
7e35c012
TT
115882014-02-19 Tom Tromey <tromey@redhat.com>
11589
11590 * target-delegates.c: Rebuild.
11591 * target.c (target_get_section_table): Unconditionally delegate.
11592 * target.h (struct target_ops) <to_get_section_table>: Use
11593 TARGET_DEFAULT_RETURN.
11594
770234d3
TT
115952014-02-19 Tom Tromey <tromey@redhat.com>
11596
11597 * target-delegates.c: Rebuild.
11598 * target.c (target_pid_to_str): Unconditionally delegate.
11599 (init_dummy_target): Don't initialize to_pid_to_str.
11600 (default_pid_to_str): Rename from dummy_pid_to_str.
11601 * target.h (struct target_ops) <to_pid_to_str>: Use
11602 TARGET_DEFAULT_FUNC.
11603
09b0dc2b
TT
116042014-02-19 Tom Tromey <tromey@redhat.com>
11605
11606 * target-delegates.c: Rebuild.
11607 * target.c (target_find_new_threads): Unconditionally delegate.
11608 * target.h (struct target_ops) <to_find_new_threads>: Use
11609 TARGET_DEFAULT_RETURN.
11610
7d4f8efa
TT
116112014-02-19 Tom Tromey <tromey@redhat.com>
11612
11613 * target-delegates.c: Rebuild.
11614 * target.c (target_program_signals): Unconditionally delegate.
11615 * target.h (struct target_ops) <to_program_signals>: Use
11616 TARGET_DEFAULT_IGNORE.
11617
035cad7f
TT
116182014-02-19 Tom Tromey <tromey@redhat.com>
11619
11620 * target-delegates.c: Rebuild.
11621 * target.c (target_pass_signals): Unconditionally delegate.
11622 * target.h (struct target_ops) <to_pass_signals>: Use
11623 TARGET_DEFAULT_IGNORE.
11624
8d657035
TT
116252014-02-19 Tom Tromey <tromey@redhat.com>
11626
11627 * target-delegates.c: Rebuild.
11628 * target.c (default_mourn_inferior): New function.
11629 (target_mourn_inferior): Unconditionally delegate.
11630 * target.h (struct target_ops) <to_mourn_inferior>: Use
11631 TARGET_DEFAULT_FUNC.
11632
098dba18
TT
116332014-02-19 Tom Tromey <tromey@redhat.com>
11634
11635 * target-delegates.c: Rebuild.
11636 * target.c (default_follow_fork): New function.
11637 (target_follow_fork): Unconditionally delegate.
11638 * target.h (struct target_ops) <to_follow_fork>: Use
11639 TARGET_DEFAULT_FUNC.
11640
423a4807
TT
116412014-02-19 Tom Tromey <tromey@redhat.com>
11642
11643 * target-delegates.c: Rebuild.
11644 * target.c (target_kill): Unconditionally delegate.
11645 * target.h (struct target_ops) <to_kill>: Use
11646 TARGET_DEFAULT_NORETURN.
11647
6c7e5e5c
TT
116482014-02-19 Tom Tromey <tromey@redhat.com>
11649
11650 * target-delegates.c: Rebuild.
11651 * target.c (target_masked_watch_num_registers): Unconditionally
11652 delegate.
11653 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11654 Use TARGET_DEFAULT_RETURN.
11655
8b1c364c
TT
116562014-02-19 Tom Tromey <tromey@redhat.com>
11657
11658 * target-delegates.c: Rebuild.
11659 * target.c (target_remove_mask_watchpoint): Unconditionally
11660 delegate.
11661 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11662 TARGET_DEFAULT_RETURN.
11663
cd4ae029
TT
116642014-02-19 Tom Tromey <tromey@redhat.com>
11665
11666 * target-delegates.c: Rebuild.
11667 * target.c (target_insert_mask_watchpoint): Unconditionally
11668 delegate.
11669 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11670 TARGET_DEFAULT_RETURN.
11671
a134316b
TT
116722014-02-19 Tom Tromey <tromey@redhat.com>
11673
11674 * target-delegates.c: Rebuild.
11675 * target.c (target_ranged_break_num_registers): Unconditionally
11676 delegate.
11677 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11678 Use TARGET_DEFAULT_RETURN.
11679
ad5989bd
TT
116802014-02-19 Tom Tromey <tromey@redhat.com>
11681
11682 * target-delegates.c: Rebuild.
11683 * target.c (target_fetch_registers): Unconditionally delegate.
11684 * target.h (struct target_ops) <to_fetch_registers>: Use
11685 TARGET_DEFAULT_NORETURN.
11686
46ee7e8d
TT
116872014-02-19 Tom Tromey <tromey@redhat.com>
11688
11689 * target-delegates.c: Rebuild.
11690 * target.c (update_current_target): Don't inherit or default
11691 to_stop.
11692 * target.h (struct target_ops) <to_stop>: Use
11693 TARGET_DEFAULT_IGNORE.
11694
843f59ed
TT
116952014-02-19 Tom Tromey <tromey@redhat.com>
11696
11697 * target-delegates.c: Rebuild.
11698 * target.c (update_current_target): Don't inherit or default
11699 to_can_run_breakpoint_commands.
11700 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11701 Use TARGET_DEFAULT_RETURN.
11702
ccfde2a0
TT
117032014-02-19 Tom Tromey <tromey@redhat.com>
11704
11705 * target-delegates.c: Rebuild.
11706 * target.c (update_current_target): Don't inherit or default
11707 to_supports_evaluation_of_breakpoint_conditions.
11708 * target.h (struct target_ops)
11709 <to_supports_evaluation_of_breakpoint_conditions>: Use
11710 TARGET_DEFAULT_RETURN.
11711
0de91722
TT
117122014-02-19 Tom Tromey <tromey@redhat.com>
11713
11714 * target-delegates.c: Rebuild.
11715 * target.c (update_current_target): Don't inherit or default
11716 to_augmented_libraries_svr4_read.
11717 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11718 Use TARGET_DEFAULT_RETURN.
11719
9a7d8b48
TT
117202014-02-19 Tom Tromey <tromey@redhat.com>
11721
11722 * target-delegates.c: Rebuild.
11723 * target.c (update_current_target): Don't inherit or default
11724 to_can_use_agent.
11725 * target.h (struct target_ops) <to_can_use_agent>: Use
11726 TARGET_DEFAULT_RETURN.
11727
d9db5b21
TT
117282014-02-19 Tom Tromey <tromey@redhat.com>
11729
11730 * target-delegates.c: Rebuild.
11731 * target.c (update_current_target): Don't inherit or default
11732 to_use_agent.
11733 * target.h (struct target_ops) <to_use_agent>: Use
11734 TARGET_DEFAULT_NORETURN.
11735
92155eeb
TT
117362014-02-19 Tom Tromey <tromey@redhat.com>
11737
11738 * target-delegates.c: Rebuild.
11739 * target.c (update_current_target): Don't inherit or default
11740 to_traceframe_info.
11741 (return_null): Remove.
11742 * target.h (struct target_ops) <to_traceframe_info>: Use
11743 TARGET_DEFAULT_RETURN.
11744
d6522a22
TT
117452014-02-19 Tom Tromey <tromey@redhat.com>
11746
11747 * target-delegates.c: Rebuild.
11748 * target.c (update_current_target): Don't inherit or default
11749 to_static_tracepoint_markers_by_strid.
11750 * target.h (struct target_ops)
11751 <to_static_tracepoint_markers_by_strid>: Use
11752 TARGET_DEFAULT_NORETURN.
11753
4c3e4425
TT
117542014-02-19 Tom Tromey <tromey@redhat.com>
11755
11756 * target-delegates.c: Rebuild.
11757 * target.c (update_current_target): Don't inherit or default
11758 to_static_tracepoint_marker_at.
11759 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11760 Use TARGET_DEFAULT_RETURN.
11761
dcd6917f
TT
117622014-02-19 Tom Tromey <tromey@redhat.com>
11763
11764 * target-delegates.c: Rebuild.
11765 * target.c (update_current_target): Don't inherit or default
11766 to_set_permissions.
11767 * target.h (struct target_ops) <to_set_permissions>: Use
11768 TARGET_DEFAULT_IGNORE.
11769
22bcceee
TT
117702014-02-19 Tom Tromey <tromey@redhat.com>
11771
11772 * target-delegates.c: Rebuild.
11773 * target.c (update_current_target): Don't inherit or default
11774 to_get_tib_address.
11775 * target.h (struct target_ops) <to_get_tib_address>: Use
11776 TARGET_DEFAULT_NORETURN.
11777
8586ccaa
TT
117782014-02-19 Tom Tromey <tromey@redhat.com>
11779
11780 * target-delegates.c: Rebuild.
11781 * target.c (update_current_target): Don't inherit or default
11782 to_set_trace_notes.
11783 * target.h (struct target_ops) <to_set_trace_notes>: Use
11784 TARGET_DEFAULT_RETURN.
11785
91df8d1d
TT
117862014-02-19 Tom Tromey <tromey@redhat.com>
11787
11788 * target-delegates.c: Rebuild.
11789 * target.c (update_current_target): Don't initialize
11790 to_set_trace_buffer_size.
11791 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11792 TARGET_DEFAULT_IGNORE.
11793
8d526939
TT
117942014-02-19 Tom Tromey <tromey@redhat.com>
11795
11796 * target-delegates.c: Rebuild.
11797 * target.c (update_current_target): Don't inherit or default
11798 to_set_circular_trace_buffer.
11799 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11800 TARGET_DEFAULT_IGNORE.
11801
0bcfeddf
TT
118022014-02-19 Tom Tromey <tromey@redhat.com>
11803
11804 * target-delegates.c: Rebuild.
11805 * target.c (update_current_target): Don't inherit or default
11806 to_set_disconnected_tracing.
11807 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11808 TARGET_DEFAULT_IGNORE.
11809
9249843f
TT
118102014-02-19 Tom Tromey <tromey@redhat.com>
11811
11812 * target-delegates.c: Rebuild.
11813 * target.c (update_current_target): Don't inherit or default
11814 to_get_min_fast_tracepoint_insn_len.
11815 (return_minus_one): Remove.
11816 * target.h (struct target_ops)
11817 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11818
ace92e7d
TT
118192014-02-19 Tom Tromey <tromey@redhat.com>
11820
11821 * target-delegates.c: Rebuild.
11822 * target.c (update_current_target): Don't inherit or default
11823 to_get_raw_trace_data.
11824 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11825 TARGET_DEFAULT_NORETURN.
11826
08120467
TT
118272014-02-19 Tom Tromey <tromey@redhat.com>
11828
11829 * target-delegates.c: Rebuild.
11830 * target.c (update_current_target): Don't inherit or default
11831 to_upload_trace_state_variables.
11832 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11833 Use TARGET_DEFAULT_RETURN.
11834
1e949b00
TT
118352014-02-19 Tom Tromey <tromey@redhat.com>
11836
11837 * target-delegates.c: Rebuild.
11838 * target.c (update_current_target): Don't inherit or default
11839 to_upload_tracepoints.
11840 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11841 TARGET_DEFAULT_RETURN.
11842
a2e6c147
TT
118432014-02-19 Tom Tromey <tromey@redhat.com>
11844
11845 * target-delegates.c: Rebuild.
11846 * target.c (update_current_target): Don't inherit or default
11847 to_save_trace_data.
11848 * target.h (struct target_ops) <to_save_trace_data>: Use
11849 TARGET_DEFAULT_NORETURN.
11850
959bcd0b
TT
118512014-02-19 Tom Tromey <tromey@redhat.com>
11852
11853 * target-delegates.c: Rebuild.
11854 * target.c (update_current_target): Don't inherit or default
11855 to_get_trace_state_variable_value.
11856 * target.h (struct target_ops)
11857 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11858
afc94e66
TT
118592014-02-19 Tom Tromey <tromey@redhat.com>
11860
11861 * target-delegates.c: Rebuild.
11862 * target.c (update_current_target): Don't inherit or default
11863 to_trace_find.
11864 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11865
e51c07ea
TT
118662014-02-19 Tom Tromey <tromey@redhat.com>
11867
11868 * target-delegates.c: Rebuild.
11869 * target.c (update_current_target): Don't inherit or default
11870 to_trace_stop.
11871 * target.h (struct target_ops) <to_trace_stop>: Use
11872 TARGET_DEFAULT_NORETURN.
11873
6fea14cd
TT
118742014-02-19 Tom Tromey <tromey@redhat.com>
11875
11876 * target-delegates.c: Rebuild.
11877 * target.c (update_current_target): Don't inherit or default
11878 to_get_tracepoint_status.
11879 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11880 TARGET_DEFAULT_NORETURN.
11881
4072d4ff
TT
118822014-02-19 Tom Tromey <tromey@redhat.com>
11883
11884 * target-delegates.c: Rebuild.
11885 * target.c (update_current_target): Don't inherit or default
11886 to_get_trace_status.
11887 * target.h (struct target_ops) <to_get_trace_status>: Use
11888 TARGET_DEFAULT_RETURN.
11889
25da2e80
TT
118902014-02-19 Tom Tromey <tromey@redhat.com>
11891
11892 * target-delegates.c: Rebuild.
11893 * target.c (update_current_target): Don't inherit or default
11894 to_trace_start.
11895 * target.h (struct target_ops) <to_trace_start>: Use
11896 TARGET_DEFAULT_NORETURN.
11897
86dd181d
TT
118982014-02-19 Tom Tromey <tromey@redhat.com>
11899
11900 * target-delegates.c: Rebuild.
11901 * target.c (update_current_target): Don't inherit or default
11902 to_trace_set_readonly_regions.
11903 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11904 Use TARGET_DEFAULT_NORETURN.
11905
05c41993
TT
119062014-02-19 Tom Tromey <tromey@redhat.com>
11907
11908 * target-delegates.c: Rebuild.
11909 * target.c (update_current_target): Don't inherit or default
11910 to_disable_tracepoint.
11911 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11912 TARGET_DEFAULT_NORETURN.
11913
151f70f1
TT
119142014-02-19 Tom Tromey <tromey@redhat.com>
11915
11916 * target-delegates.c: Rebuild.
11917 * target.c (update_current_target): Don't inherit or default
11918 to_enable_tracepoint.
11919 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11920 TARGET_DEFAULT_NORETURN.
11921
94eb98b9
TT
119222014-02-19 Tom Tromey <tromey@redhat.com>
11923
11924 * target-delegates.c: Rebuild.
11925 * target.c (update_current_target): Don't inherit or default
11926 to_download_trace_state_variable.
11927 * target.h (struct target_ops) <to_download_trace_state_variable>:
11928 Use TARGET_DEFAULT_NORETURN.
11929
719acc4a
TT
119302014-02-19 Tom Tromey <tromey@redhat.com>
11931
11932 * target-delegates.c: Rebuild.
11933 * target.c (update_current_target): Don't inherit or default
11934 to_can_download_tracepoint.
11935 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11936 TARGET_DEFAULT_RETURN.
11937
9a980a22
TT
119382014-02-19 Tom Tromey <tromey@redhat.com>
11939
11940 * target-delegates.c: Rebuild.
11941 * target.c (update_current_target): Don't inherit or default
11942 to_download_tracepoint.
11943 * target.h (struct target_ops) <to_download_tracepoint>: Use
11944 TARGET_DEFAULT_NORETURN.
11945
5536135b
TT
119462014-02-19 Tom Tromey <tromey@redhat.com>
11947
11948 * target-delegates.c: Rebuild.
11949 * target.c (update_current_target): Don't inherit or default
11950 to_trace_init.
11951 * target.h (struct target_ops) <to_trace_init>: Use
11952 TARGET_DEFAULT_RETURN.
11953
9409d39e
TT
119542014-02-19 Tom Tromey <tromey@redhat.com>
11955
11956 * target-delegates.c: Rebuild.
11957 * target.c (update_current_target): Don't inherit or default
11958 to_supports_string_tracing.
11959 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11960 TARGET_DEFAULT_RETURN.
11961
aab1b22d
TT
119622014-02-19 Tom Tromey <tromey@redhat.com>
11963
11964 * target-delegates.c: Rebuild.
11965 * target.c (update_current_target): Don't inherit or default
11966 to_supports_enable_disable_tracepoint.
11967 * target.h (struct target_ops)
11968 <to_supports_enable_disable_tracepoint>: Use
11969 TARGET_DEFAULT_RETURN.
11970
a7304748
TT
119712014-02-19 Tom Tromey <tromey@redhat.com>
11972
11973 * target-delegates.c: Rebuild.
11974 * target.c (update_current_target): Don't inherit or default
11975 to_supports_multi_process.
11976 * target.h (struct target_ops) <to_supports_multi_process>: Use
11977 TARGET_DEFAULT_RETURN.
11978
4229b31d
TT
119792014-02-19 Tom Tromey <tromey@redhat.com>
11980
11981 * target-delegates.c: Rebuild.
11982 * target.c (update_current_target): Don't inherit or default
11983 to_get_ada_task_ptid.
11984 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11985 TARGET_DEFAULT_FUNC.
11986
43eba180
TT
119872014-02-19 Tom Tromey <tromey@redhat.com>
11988
11989 * target-delegates.c: Rebuild.
11990 * target.c (update_current_target): Don't inherit or default
11991 to_thread_architecture.
11992 * target.h (struct target_ops) <to_thread_architecture>: Use
11993 TARGET_DEFAULT_FUNC.
11994
fe31bf5b
TT
119952014-02-19 Tom Tromey <tromey@redhat.com>
11996
11997 * target-delegates.c: Rebuild.
11998 * target.c (update_current_target): Don't inherit or default
11999 to_execution_direction.
12000 * target.h (struct target_ops) <to_execution_direction>: Use
12001 TARGET_DEFAULT_FUNC.
12002
53e1cfc7
TT
120032014-02-19 Tom Tromey <tromey@redhat.com>
12004
12005 * target-delegates.c: Rebuild.
12006 * target.c (update_current_target): Don't inherit or default
12007 to_can_execute_reverse.
12008 * target.h (struct target_ops) <to_can_execute_reverse>: Use
12009 TARGET_DEFAULT_RETURN.
12010 (target_can_execute_reverse): Unconditionally delegate.
12011
9bb9d61d
TT
120122014-02-19 Tom Tromey <tromey@redhat.com>
12013
12014 * target-delegates.c: Rebuild.
12015 * target.c (update_current_target): Don't inherit or default
12016 to_goto_bookmark.
12017 (dummy_goto_bookmark): Remove.
12018 (init_dummy_target): Don't inherit or default to_goto_bookmark.
12019 * target.h (struct target_ops) <to_goto_bookmark>: Use
12020 TARGET_DEFAULT_NORETURN.
12021
3dbafbbb
TT
120222014-02-19 Tom Tromey <tromey@redhat.com>
12023
12024 * target-delegates.c: Rebuild.
12025 * target.c (update_current_target): Don't inherit or default
12026 to_get_bookmark.
12027 (dummy_get_bookmark): Remove.
12028 (init_dummy_target): Don't inherit or default to_get_bookmark.
12029 * target.h (struct target_ops) <to_get_bookmark>: Use
12030 TARGET_DEFAULT_NORETURN
12031
16f796b1
TT
120322014-02-19 Tom Tromey <tromey@redhat.com>
12033
12034 * target-delegates.c: Rebuild.
12035 * target.c (update_current_target): Don't inherit or default
12036 to_make_corefile_notes.
12037 (init_dummy_target): Don't initialize to_make_corefile_notes.
12038 * target.h (struct target_ops) <to_make_corefile_notes>: Use
12039 TARGET_DEFAULT_FUNC.
12040
0b5a2719
TT
120412014-02-19 Tom Tromey <tromey@redhat.com>
12042
12043 * target-delegates.c: Rebuild.
12044 * target.c (update_current_target): Don't inherit or default
12045 to_find_memory_regions.
12046 (init_dummy_target): Don't initialize to_find_memory_regions.
12047 * target.h (struct target_ops) <to_find_memory_regions>: Use
12048 TARGET_DEFAULT_FUNC.
12049
d9cb0195
TT
120502014-02-19 Tom Tromey <tromey@redhat.com>
12051
12052 * target-delegates.c: Rebuild.
12053 * target.c (update_current_target): Don't inherit or default
12054 to_log_command.
12055 * target.h (struct target_ops) <to_log_command>: Use
12056 TARGET_DEFAULT_IGNORE.
12057 (target_log_command): Unconditionally delegate.
12058
830ca330
TT
120592014-02-19 Tom Tromey <tromey@redhat.com>
12060
12061 * target-delegates.c: Rebuild.
12062 * target.c (update_current_target): Don't inherit or default
12063 to_pid_to_exec_file.
12064 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12065 TARGET_DEFAULT_RETURN.
12066
825828fc
TT
120672014-02-19 Tom Tromey <tromey@redhat.com>
12068
12069 * target-delegates.c: Rebuild.
12070 * target.c (update_current_target): Don't inherit or default
12071 to_thread_name.
12072 (target_thread_name): Unconditionally delegate.
12073 * target.h (struct target_ops) <to_thread_name>: Use
12074 TARGET_DEFAULT_RETURN.
12075
4a7e6dda
TT
120762014-02-19 Tom Tromey <tromey@redhat.com>
12077
12078 * target-delegates.c: Rebuild.
12079 * target.c (update_current_target): Don't inherit or default
12080 to_extra_thread_info.
12081 * target.h (struct target_ops) <to_extra_thread_info>: Use
12082 TARGET_DEFAULT_RETURN.
12083
0db88c1d
TT
120842014-02-19 Tom Tromey <tromey@redhat.com>
12085
12086 * target-delegates.c: Rebuild.
12087 * target.c (update_current_target): Don't inherit or default
12088 to_has_exited.
12089 * target.h (struct target_ops) <to_has_exited>: Use
12090 TARGET_DEFAULT_RETURN..
12091
6a9fa051
TT
120922014-02-19 Tom Tromey <tromey@redhat.com>
12093
12094 * target-delegates.c: Rebuild.
12095 * target.c (update_current_target): Don't inherit or default
12096 to_set_syscall_catchpoint.
12097 (return_one): Remove.
12098 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12099 TARGET_DEFAULT_RETURN.
12100
62f64d7a
TT
121012014-02-19 Tom Tromey <tromey@redhat.com>
12102
12103 * target-delegates.c: Rebuild.
12104 * target.c (update_current_target): Don't inherit or default
12105 to_insert_exec_catchpoint.
12106 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12107 TARGET_DEFAULT_RETURN.
12108
cda0f38c
TT
121092014-01-08 Tom Tromey <tromey@redhat.com>
12110
12111 * target-delegates.c: Rebuild.
12112 * target.c (update_current_target): Don't inherit or default
12113 to_insert_exec_catchpoint.
12114 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12115 TARGET_DEFAULT_RETURN.
12116
95c3375e
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_remove_vfork_catchpoint.
12122 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12123 TARGET_DEFAULT_RETURN.
12124
7e18a8dc
TT
121252014-02-19 Tom Tromey <tromey@redhat.com>
12126
12127 * target-delegates.c: Rebuild.
12128 * target.c (update_current_target): Don't inherit or default
12129 to_insert_vfork_catchpoint.
12130 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12131 TARGET_DEFAULT_RETURN.
12132
e1a21fb7
TT
121332014-02-19 Tom Tromey <tromey@redhat.com>
12134
12135 * target-delegates.c: Rebuild.
12136 * target.c (update_current_target): Don't inherit or default
12137 to_remove_fork_catchpoint.
12138 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12139 TARGET_DEFAULT_RETURN.
12140
5958ebeb
TT
121412014-02-19 Tom Tromey <tromey@redhat.com>
12142
12143 * target-delegates.c: Rebuild.
12144 * target.c (update_current_target): Don't inherit or default
12145 to_insert_fork_catchpoint.
12146 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12147 TARGET_DEFAULT_RETURN.
12148
340ba4bf
TT
121492014-02-19 Tom Tromey <tromey@redhat.com>
12150
12151 * target-delegates.c: Rebuild.
12152 * target.c (update_current_target): Don't inherit or default
12153 to_post_startup_inferior.
12154 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12155 TARGET_DEFAULT_IGNORE.
12156
7634da87
TT
121572014-02-19 Tom Tromey <tromey@redhat.com>
12158
12159 * target-delegates.c: Rebuild.
12160 * target.c (update_current_target): Don't inherit or default
12161 to_load.
12162 * target.h (struct target_ops) <to_load>: Use
12163 TARGET_DEFAULT_NORETURN.
12164
e19e919f
TT
121652014-02-19 Tom Tromey <tromey@redhat.com>
12166
12167 * target-delegates.c: Rebuild.
12168 * target.c (update_current_target): Don't inherit or default
12169 to_terminal_info.
12170 * target.h (struct target_ops) <to_terminal_info>: Use
12171 TARGET_DEFAULT_FUNC.
12172
c6ea8f79
TT
121732014-02-19 Tom Tromey <tromey@redhat.com>
12174
12175 * target-delegates.c: Rebuild.
12176 * target.c (update_current_target): Don't inherit or default
12177 to_terminal_save_ours.
12178 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12179 TARGET_DEFAULT_IGNORE.
12180
e4a733f1
TT
121812014-02-19 Tom Tromey <tromey@redhat.com>
12182
12183 * target-delegates.c: Rebuild.
12184 * target.c (update_current_target): Don't inherit or default
12185 to_terminal_ours.
12186 * target.h (struct target_ops) <to_terminal_ours>: Use
12187 TARGET_DEFAULT_IGNORE.
12188
74fcbef9
TT
121892014-02-19 Tom Tromey <tromey@redhat.com>
12190
12191 * target-delegates.c: Rebuild.
12192 * target.c (update_current_target): Don't inherit or default
12193 to_terminal_ours_for_output.
12194 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12195 TARGET_DEFAULT_IGNORE.
12196
ddeaacc9
TT
121972014-02-19 Tom Tromey <tromey@redhat.com>
12198
12199 * target-delegates.c: Rebuild.
12200 * target.c (update_current_target): Don't inherit or default
12201 to_terminal_inferior.
12202 * target.h (struct target_ops) <to_terminal_inferior>: Use
12203 TARGET_DEFAULT_IGNORE.
12204
0343661d
TT
122052014-02-19 Tom Tromey <tromey@redhat.com>
12206
12207 * target-delegates.c: Rebuild.
12208 * target.c (update_current_target): Don't inherit or default
12209 to_terminal_init.
12210 * target.h (struct target_ops) <to_terminal_init>: Use
12211 TARGET_DEFAULT_IGNORE.
12212
77cdffe9
TT
122132014-02-19 Tom Tromey <tromey@redhat.com>
12214
12215 * target-delegates.c: Rebuild.
12216 * target.c (update_current_target): Don't inherit or default
12217 to_can_accel_watchpoint_condition.
12218 * target.h (struct target_ops)
12219 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12220
d03655e4
TT
122212014-02-19 Tom Tromey <tromey@redhat.com>
12222
12223 * target-delegates.c: Rebuild.
12224 * target.c (update_current_target): Don't inherit or default
12225 to_region_ok_for_hw_watchpoint.
12226 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12227 Use TARGET_DEFAULT_FUNC.
12228
65f160a9
TT
122292014-02-19 Tom Tromey <tromey@redhat.com>
12230
12231 * target-delegates.c: Rebuild.
12232 * target.c (update_current_target): Don't inherit or default
12233 to_watchpoint_addr_within_range.
12234 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12235 Use TARGET_DEFAULT_FUNC.
12236
61dd109f
TT
122372014-02-19 Tom Tromey <tromey@redhat.com>
12238
12239 * target-delegates.c: Rebuild.
12240 * target.c (update_current_target): Don't inherit or default
12241 to_remove_watchpoint.
12242 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12243 TARGET_DEFAULT_NORETURN.
12244
016facd4
TT
122452014-02-19 Tom Tromey <tromey@redhat.com>
12246
12247 * target-delegates.c: Rebuild.
12248 * target.c (update_current_target): Don't inherit or default
12249 to_insert_watchpoint.
12250 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12251 TARGET_DEFAULT_RETURN.
12252
418dabac
TT
122532014-02-19 Tom Tromey <tromey@redhat.com>
12254
12255 * target-delegates.c: Rebuild.
12256 * target.c (update_current_target): Don't inherit or default
12257 to_remove_hw_breakpoint.
12258 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12259 TARGET_DEFAULT_RETURN.
12260
61b371f9
TT
122612014-02-19 Tom Tromey <tromey@redhat.com>
12262
12263 * target-delegates.c: Rebuild.
12264 * target.c (update_current_target): Don't inherit or default
12265 to_insert_hw_breakpoint.
12266 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12267 TARGET_DEFAULT_RETURN.
12268
52b51d06
TT
122692014-02-19 Tom Tromey <tromey@redhat.com>
12270
12271 * target-delegates.c: Rebuild.
12272 * target.c (update_current_target): Don't inherit or default
12273 to_can_use_hw_breakpoint.
12274 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12275 TARGET_DEFAULT_RETURN.
12276
f86e59b2
TT
122772014-02-19 Tom Tromey <tromey@redhat.com>
12278
12279 * target-delegates.c: Rebuild.
12280 * target.c (update_current_target): Don't inherit or default
12281 to_files_info.
12282 * target.h (struct target_ops) <to_files_info>: Use
12283 TARGET_DEFAULT_IGNORE.
12284
6c628163
TT
122852014-02-19 Tom Tromey <tromey@redhat.com>
12286
12287 * target-delegates.c: Rebuild.
12288 * target.c (update_current_target): Don't inherit or default
12289 to_store.
12290 * target.h (struct target_ops) <to_store>: Use
12291 TARGET_DEFAULT_NORETURN.
12292
bebd3233
TT
122932014-02-19 Tom Tromey <tromey@redhat.com>
12294
12295 * target-delegates.c: Rebuild.
12296 * target.c (update_current_target): Don't inherit or default
12297 to_post_attach.
12298 * target.h (struct target_ops) <to_post_attach>: Use
12299 TARGET_DEFAULT_IGNORE.
12300
a53f3625
TT
123012014-02-19 Tom Tromey <tromey@redhat.com>
12302
12303 * target-delegates.c: Rebuild.
12304 * target.c (update_current_target): Don't inherit or default
12305 to_rcmd.
12306 (default_rcmd): New function.
12307 (do_monitor_command): Unconditionally delegate.
12308 * target.h (struct target_ops) <to_rmcd>: Use
12309 TARGET_DEFAULT_FUNC.
12310
e9a29200
TT
123112014-02-19 Tom Tromey <tromey@redhat.com>
12312
12313 * target-delegates.c: Rebuild.
12314 * target.c (init_dummy_target): Don't initialize to_attach.
12315 (target_attach): Unconditionally delegate.
12316 * target.h (struct target_ops) <to_attach>: Use
12317 TARGET_DEFAULT_FUNC.
12318
09da0d0a
TT
123192014-02-19 Tom Tromey <tromey@redhat.com>
12320
12321 * target-delegates.c: Rebuild.
12322 * target.c (target_detach): Unconditionally delegate.
12323 (init_dummy_target): Don't initialize to_detach.
12324 * target.h (struct target_ops) <to_detach>: Use
12325 TARGET_DEFAULT_IGNORE.
12326
5436ff03
TT
123272014-02-19 Tom Tromey <tromey@redhat.com>
12328
12329 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12330 Add argument.
12331 (target_augmented_libraries_svr4_read): Add argument.
12332 * target.c (update_current_target): Update.
12333 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12334 argument.
12335
f0d960ea
TT
123362014-02-19 Tom Tromey <tromey@redhat.com>
12337
12338 * target.h (struct target_ops) <to_call_history_range>: Add
12339 argument.
12340 * target.c (target_call_history_range): Add argument.
12341 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12342 argument.
12343 (record_btrace_call_history_from): Update.
12344
ec0aea04
TT
123452014-02-19 Tom Tromey <tromey@redhat.com>
12346
12347 * target.h (struct target_ops) <to_call_history_from>: Add
12348 argument.
12349 * target.c (target_call_history_from): Add argument.
12350 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12351 argument.
12352
5df2fcba
TT
123532014-02-19 Tom Tromey <tromey@redhat.com>
12354
12355 * target.h (struct target_ops) <to_call_history>: Add argument.
12356 * target.c (target_call_history): Add argument.
12357 * record-btrace.c (record_btrace_call_history): Add 'self'
12358 argument.
12359
4e99c6b7
TT
123602014-02-19 Tom Tromey <tromey@redhat.com>
12361
12362 * target.h (struct target_ops) <to_insn_history_range>: Add
12363 argument.
12364 * target.c (target_insn_history_range): Add argument.
12365 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12366 argument.
12367 (record_btrace_insn_history_from): Update.
12368
9abc3ff3
TT
123692014-02-19 Tom Tromey <tromey@redhat.com>
12370
12371 * target.h (struct target_ops) <to_insn_history_from>: Add
12372 argument.
12373 * target.c (target_insn_history_from): Add argument.
12374 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12375 argument.
12376
7a6c5609
TT
123772014-02-19 Tom Tromey <tromey@redhat.com>
12378
12379 * target.h (struct target_ops) <to_insn_history>: Add argument.
12380 * target.c (target_insn_history): Add argument.
12381 * record-btrace.c (record_btrace_insn_history): Add 'self'
12382 argument.
12383
606183ac
TT
123842014-02-19 Tom Tromey <tromey@redhat.com>
12385
12386 * target.h (struct target_ops) <to_goto_record>: Add argument.
12387 * target.c (target_goto_record): Add argument.
12388 * record-full.c (record_full_goto): Add 'self' argument.
12389 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12390
307a1b91
TT
123912014-02-19 Tom Tromey <tromey@redhat.com>
12392
12393 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12394 * target.c (target_goto_record_end): Add argument.
12395 * record-full.c (record_full_goto_end): Add 'self' argument.
12396 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12397
08475817
TT
123982014-02-19 Tom Tromey <tromey@redhat.com>
12399
12400 * target.h (struct target_ops) <to_goto_record_begin>: Add
12401 argument.
12402 * target.c (target_goto_record_begin): Add argument.
12403 * record-full.c (record_full_goto_begin): Add 'self' argument.
12404 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12405 argument.
12406
1c63c994
TT
124072014-02-19 Tom Tromey <tromey@redhat.com>
12408
12409 * target.h (struct target_ops) <to_record_is_replaying>: Add
12410 argument.
12411 * target.c (target_record_is_replaying): Add argument.
12412 * record-full.c (record_full_is_replaying): Add 'self' argument.
12413 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12414 argument.
12415 (record_btrace_xfer_partial, record_btrace_store_registers)
12416 (record_btrace_prepare_to_store, record_btrace_resume)
12417 (record_btrace_wait, record_btrace_decr_pc_after_break)
12418 (record_btrace_find_new_threads, record_btrace_thread_alive):
12419 Update.
12420
d1b55219
TT
124212014-02-19 Tom Tromey <tromey@redhat.com>
12422
12423 * target.h (struct target_ops) <to_delete_record>: Add argument.
12424 * target.c (target_delete_record): Add argument.
12425 * record-full.c (record_full_delete): Add 'self' argument.
12426
1390f529
TT
124272014-02-19 Tom Tromey <tromey@redhat.com>
12428
12429 * target.h (struct target_ops) <to_save_record>: Add argument.
12430 * target.c (target_save_record): Add argument.
12431 * record-full.c (record_full_save): Add 'self' argument.
12432 (record_full_save): Add 'self' argument.
12433
630d6a4a
TT
124342014-02-19 Tom Tromey <tromey@redhat.com>
12435
12436 * target.h (struct target_ops) <to_info_record>: Add argument.
12437 * target.c (target_info_record): Add argument.
12438 * record.c (info_record_command): Add argument.
12439 * record-full.c (record_full_info): Add 'self' argument.
12440 * record-btrace.c (record_btrace_info): Add 'self' argument.
12441
c6cd7c02
TT
124422014-02-19 Tom Tromey <tromey@redhat.com>
12443
12444 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12445 * target.c (target_stop_recording): Add argument.
12446 * record.c (record_stop): Add argument.
12447 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12448 argument.
12449
39c49f83
TT
124502014-02-19 Tom Tromey <tromey@redhat.com>
12451
12452 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12453 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12454 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12455 argument.
12456 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12457 (_initialize_amd64_linux_nat): Use it.
12458 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12459 (_initialize_i386_linux_nat): Use it.
12460
1777056d
TT
124612014-02-19 Tom Tromey <tromey@redhat.com>
12462
12463 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12464 * target.c (target_teardown_btrace): Add argument.
12465 * remote.c (remote_teardown_btrace): Add 'self' argument.
12466 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12467 argument.
12468 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12469 argument.
12470
25e95349
TT
124712014-02-19 Tom Tromey <tromey@redhat.com>
12472
12473 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12474 * target.c (target_disable_btrace): Add argument.
12475 * remote.c (remote_disable_btrace): Add 'self' argument.
12476 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12477 argument.
12478 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12479 argument.
12480
e3c49f88
TT
124812014-02-19 Tom Tromey <tromey@redhat.com>
12482
12483 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12484 * target.c (target_enable_btrace): Add argument.
12485 * remote.c (remote_enable_btrace): Add 'self' argument.
12486 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12487 argument.
12488 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12489 argument.
12490
fe38f897
TT
124912014-02-19 Tom Tromey <tromey@redhat.com>
12492
12493 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12494 (target_can_use_agent): Add argument.
12495 * target.c (update_current_target): Update.
12496 * remote.c (remote_can_use_agent): Add 'self' argument.
12497 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12498
2c152180
TT
124992014-02-19 Tom Tromey <tromey@redhat.com>
12500
12501 * target.h (struct target_ops) <to_use_agent>: Add argument.
12502 (target_use_agent): Add argument.
12503 * target.c (update_current_target): Update.
12504 * remote.c (remote_use_agent): Add 'self' argument.
12505 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12506
a893e81f
TT
125072014-02-19 Tom Tromey <tromey@redhat.com>
12508
12509 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12510 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12511 (target_traceframe_info): Add argument.
12512 * target.c (update_current_target): Update.
12513 * remote.c (remote_traceframe_info): Add 'self' argument.
12514 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12515
c686c57f
TT
125162014-02-19 Tom Tromey <tromey@redhat.com>
12517
12518 * target.h (target_static_tracepoint_markers_by_strid): Add
12519 argument.
12520 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12521 'self' argument.
12522 * target.c (update_current_target): Update.
12523 * remote.c (struct target_ops)
12524 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12525 * linux-nat.c (struct target_ops)
12526 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12527
61fc905d
TT
125282014-02-19 Tom Tromey <tromey@redhat.com>
12529
12530 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12531 Add argument.
12532 (target_static_tracepoint_marker_at): Add argument.
12533 * target.c (update_current_target): Update.
12534 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12535 argument.
12536
c378d69d
TT
125372014-02-19 Tom Tromey <tromey@redhat.com>
12538
12539 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12540 (target_set_permissions): Add argument.
12541 * target.c (update_current_target): Update.
12542 * remote.c (remote_set_permissions): Add 'self' argument.
12543 (remote_start_remote): Update.
12544
bd7ae0f5
TT
125452014-02-19 Tom Tromey <tromey@redhat.com>
12546
12547 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12548 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12549 (target_get_tib_address): Add argument.
12550 * target.c (update_current_target): Update.
12551 * remote.c (remote_get_tib_address): Add 'self' argument.
12552
d9e68a2c
TT
125532014-02-19 Tom Tromey <tromey@redhat.com>
12554
12555 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12556 (target_set_trace_notes): Add argument.
12557 * target.c (update_current_target): Update.
12558 * remote.c (remote_set_trace_notes): Add 'self' argument.
12559
4da384be
TT
125602014-02-19 Tom Tromey <tromey@redhat.com>
12561
12562 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12563 argument.
12564 (target_set_trace_buffer_size): Add argument.
12565 * target.c (update_current_target): Update.
12566 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12567
736d5b1f
TT
125682014-02-19 Tom Tromey <tromey@redhat.com>
12569
12570 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12571 argument.
12572 (target_set_circular_trace_buffer): Add argument.
12573 * target.c (update_current_target): Update.
12574 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12575 argument.
12576
37b25738
TT
125772014-02-19 Tom Tromey <tromey@redhat.com>
12578
12579 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12580 argument.
12581 (target_set_disconnected_tracing): Add argument.
12582 * target.c (update_current_target): Update.
12583 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12584
0e67620a
TT
125852014-02-19 Tom Tromey <tromey@redhat.com>
12586
12587 * target.h (struct target_ops)
12588 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12589 (target_get_min_fast_tracepoint_insn_len): Add argument.
12590 * target.c (update_current_target): Update.
12591 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12592 argument.
12593
88ee6f45
TT
125942014-02-19 Tom Tromey <tromey@redhat.com>
12595
12596 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12597 argument.
12598 (target_get_raw_trace_data): Add argument.
12599 * target.c (update_current_target): Update.
12600 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12601
181e3713
TT
126022014-02-19 Tom Tromey <tromey@redhat.com>
12603
12604 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12605 Add argument.
12606 (target_upload_trace_state_variables): Add argument.
12607 * target.c (update_current_target): Update.
12608 * remote.c (remote_upload_trace_state_variables): Add 'self'
12609 argument.
12610 (remote_start_remote): Update.
12611
ab6617cc
TT
126122014-02-19 Tom Tromey <tromey@redhat.com>
12613
12614 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12615 argument.
12616 (target_upload_tracepoints): Add argument.
12617 * target.c (update_current_target): Update.
12618 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12619 (remote_start_remote): Update.
12620
dc3decaf
TT
126212014-02-19 Tom Tromey <tromey@redhat.com>
12622
12623 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12624 (target_save_trace_data): Add argument.
12625 * target.c (update_current_target): Update.
12626 * remote.c (remote_save_trace_data): Add 'self' argument.
12627
4011015b
TT
126282014-02-19 Tom Tromey <tromey@redhat.com>
12629
12630 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12631 argument.
12632 * target.h (struct target_ops)
12633 <to_get_trace_state_variable_value>: Add argument.
12634 (target_get_trace_state_variable_value): Add argument.
12635 * target.c (update_current_target): Update.
12636 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12637 argument.
12638 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12639
bd4c6793
TT
126402014-02-19 Tom Tromey <tromey@redhat.com>
12641
12642 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12643 * target.h (struct target_ops) <to_trace_find>: Add argument.
12644 (target_trace_find): Add argument.
12645 * target.c (update_current_target): Update.
12646 * remote.c (remote_trace_find): Add 'self' argument.
12647 * ctf.c (ctf_trace_find): Add 'self' argument.
12648
74499f1b
TT
126492014-02-19 Tom Tromey <tromey@redhat.com>
12650
12651 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12652 (target_trace_stop): Add argument.
12653 * target.c (update_current_target): Update.
12654 * remote.c (remote_trace_stop): Add 'self' argument.
12655
db90e85c
TT
126562014-02-19 Tom Tromey <tromey@redhat.com>
12657
12658 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12659 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12660 argument.
12661 (target_get_tracepoint_status): Add argument.
12662 * target.c (update_current_target): Update.
12663 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12664
8bd200f1
TT
126652014-02-19 Tom Tromey <tromey@redhat.com>
12666
12667 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12668 * target.h (struct target_ops) <to_get_trace_status>: Add
12669 argument.
12670 (target_get_trace_status): Add argument.
12671 * target.c (update_current_target): Update.
12672 * remote.c (remote_get_trace_status): Add 'self' argument.
12673 (remote_start_remote, remote_can_download_tracepoint): Update.
12674 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12675
e2d1aae3
TT
126762014-02-19 Tom Tromey <tromey@redhat.com>
12677
12678 * target.h (struct target_ops) <to_trace_start>: Add argument.
12679 (target_trace_start): Add argument.
12680 * target.c (update_current_target): Update.
12681 * remote.c (remote_trace_start): Add 'self' argument.
12682
583f9a86
TT
126832014-02-19 Tom Tromey <tromey@redhat.com>
12684
12685 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12686 Add argument.
12687 (target_trace_set_readonly_regions): Add argument.
12688 * target.c (update_current_target): Update.
12689 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12690 argument.
12691
780b049c
TT
126922014-02-19 Tom Tromey <tromey@redhat.com>
12693
12694 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12695 argument.
12696 (target_disable_tracepoint): Add argument.
12697 * target.c (update_current_target): Update.
12698 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12699
46670d57
TT
127002014-02-19 Tom Tromey <tromey@redhat.com>
12701
12702 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12703 argument.
12704 (target_enable_tracepoint): Add argument.
12705 * target.c (update_current_target): Update.
12706 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12707
559d2b81
TT
127082014-02-19 Tom Tromey <tromey@redhat.com>
12709
12710 * target.h (struct target_ops) <to_download_trace_state_variable>:
12711 Add argument.
12712 (target_download_trace_state_variable): Add argument.
12713 * target.c (update_current_target): Update.
12714 * remote.c (remote_download_trace_state_variable): Add 'self'
12715 argument.
12716
a52a8357
TT
127172014-02-19 Tom Tromey <tromey@redhat.com>
12718
12719 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12720 argument.
12721 (target_can_download_tracepoint): Add argument.
12722 * target.c (update_current_target): Update.
12723 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12724
548f7808
TT
127252014-02-19 Tom Tromey <tromey@redhat.com>
12726
12727 * target.h (struct target_ops) <to_download_tracepoint>: Add
12728 argument.
12729 (target_download_tracepoint): Add argument.
12730 * target.c (update_current_target): Update.
12731 * remote.c (remote_download_tracepoint): Add 'self' argument.
12732
ecae04e1
TT
127332014-02-19 Tom Tromey <tromey@redhat.com>
12734
12735 * target.h (struct target_ops) <to_trace_init>: Add argument.
12736 (target_trace_init): Add argument.
12737 * target.c (update_current_target): Update.
12738 * remote.c (remote_trace_init): Add 'self' argument.
12739
fab5aa7c
TT
127402014-02-19 Tom Tromey <tromey@redhat.com>
12741
12742 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12743 * target.c (target_fileio_readlink): Add argument.
12744 * remote.c (remote_hostio_readlink): Add 'self' argument.
12745 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12746
dbbca37d
TT
127472014-02-19 Tom Tromey <tromey@redhat.com>
12748
12749 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12750 * target.c (target_fileio_unlink): Add argument.
12751 * remote.c (remote_hostio_unlink): Add 'self' argument.
12752 (remote_file_delete): Update.
12753 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12754
df39ea25
TT
127552014-02-19 Tom Tromey <tromey@redhat.com>
12756
12757 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12758 * target.c (target_fileio_close): Add argument.
12759 * remote.c (remote_hostio_close): Add 'self' argument.
12760 (remote_hostio_close_cleanup): Update.
12761 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12762 Update.
12763 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12764
a3be983c
TT
127652014-02-19 Tom Tromey <tromey@redhat.com>
12766
12767 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12768 * target.c (target_fileio_pread): Add argument.
12769 * remote.c (remote_hostio_pread): Add 'self' argument.
12770 (remote_bfd_iovec_pread, remote_file_get): Update.
12771 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12772
0d866f62
TT
127732014-02-19 Tom Tromey <tromey@redhat.com>
12774
12775 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12776 * target.c (target_fileio_pwrite): Add argument.
12777 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12778 (remote_file_put): Update.
12779 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12780
cd897586
TT
127812014-02-19 Tom Tromey <tromey@redhat.com>
12782
12783 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12784 * target.c (target_fileio_open): Add argument.
12785 * remote.c (remote_hostio_open): Add 'self' argument.
12786 (remote_bfd_iovec_open): Add 'self' argument.
12787 (remote_file_put): Add 'self' argument.
12788 (remote_file_get): Add 'self' argument.
12789 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12790
78eff0ec
TT
127912014-02-19 Tom Tromey <tromey@redhat.com>
12792
12793 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12794 Add argument.
12795 (target_can_run_breakpoint_commands): Add argument.
12796 * target.c (update_current_target): Update.
12797 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12798 argument.
12799 (remote_insert_breakpoint): Add 'self' argument.
12800 (remote_insert_hw_breakpoint): Add 'self' argument.
12801 (remote_can_run_breakpoint_commands): Add 'self' argument.
12802
efcc2da7
TT
128032014-02-19 Tom Tromey <tromey@redhat.com>
12804
12805 * target.h (struct target_ops)
12806 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12807 (target_supports_evaluation_of_breakpoint_conditions): Add
12808 argument.
12809 * target.c (update_current_target): Update.
12810 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12811 argument.
12812 (remote_insert_breakpoint): Add 'self' argument.
12813 (remote_insert_hw_breakpoint): Add 'self' argument.
12814 (remote_supports_cond_breakpoints): Add 'self' argument.
12815
6de37a3a
TT
128162014-02-19 Tom Tromey <tromey@redhat.com>
12817
12818 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12819 argument.
12820 (target_supports_string_tracing): Add argument.
12821 * target.c (update_current_target): Update.
12822 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12823
2bfc0540
TT
128242014-02-19 Tom Tromey <tromey@redhat.com>
12825
12826 * target.h (struct target_ops)
12827 <to_supports_disable_randomization>: Add argument.
12828 * target.c (find_default_supports_disable_randomization): Add
12829 argument.
12830 (target_supports_disable_randomization): Add argument.
12831 (find_default_supports_disable_randomization): Add 'self'
12832 argument.
12833 * remote.c (extended_remote_supports_disable_randomization): Add
12834 'self' argument.
12835 (remote_supports_disable_randomization): Add 'self' argument.
12836 (extended_remote_create_inferior): Update.
12837 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12838 'self' argument.
12839
7d178d6a
TT
128402014-02-19 Tom Tromey <tromey@redhat.com>
12841
12842 * target.h (struct target_ops)
12843 <to_supports_enable_disable_tracepoint>: Add argument.
12844 (target_supports_enable_disable_tracepoint): Add argument.
12845 * target.c (update_current_target): Update.
12846 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12847 argument.
12848
86ce2668
TT
128492014-02-19 Tom Tromey <tromey@redhat.com>
12850
12851 * target.h (struct target_ops) <to_supports_multi_process>: Add
12852 argument.
12853 (target_supports_multi_process): Add argument.
12854 * target.c (update_current_target): Update.
12855 * remote.c (remote_supports_multi_process): Add 'self' argument.
12856 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12857 argument.
12858 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12859 argument.
12860
4c612759
TT
128612014-02-19 Tom Tromey <tromey@redhat.com>
12862
12863 * target.h (struct target_ops) <to_execution_direction>: Add
12864 argument.
12865 (target_execution_direction): Add argument.
12866 * target.c (default_execution_direction): Add 'self' argument.
12867 * record-full.c (record_full_execution_direction): Add 'self'
12868 argument.
12869
19db3e69
TT
128702014-02-19 Tom Tromey <tromey@redhat.com>
12871
12872 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12873 argument.
12874 (target_can_execute_reverse): Add argument.
12875 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12876 * record-full.c (record_full_can_execute_reverse): Add 'self'
12877 argument.
12878 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12879 argument.
12880
1e6b91a4
TT
128812014-02-19 Tom Tromey <tromey@redhat.com>
12882
12883 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12884 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12885 argument.
12886 (target_get_ada_task_ptid): Add argument.
12887 * target.c (update_current_target): Update.
12888 (default_get_ada_task_ptid): Add 'self' argument.
12889 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12890 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12891 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12892 argument.
12893 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12894 argument.
12895 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12896 argument.
12897 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12898 argument.
12899 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12900 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12901 argument.
12902
3c80fb48
TT
129032014-02-19 Tom Tromey <tromey@redhat.com>
12904
12905 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12906 (target_goto_bookmark): Add argument.
12907 * target.c (dummy_goto_bookmark): Add 'self' argument.
12908 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12909
dd0e2830
TT
129102014-02-19 Tom Tromey <tromey@redhat.com>
12911
12912 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12913 (target_get_bookmark): Add argument.
12914 * target.c (dummy_get_bookmark): Add 'self' argument.
12915 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12916
fc6691b2
TT
129172014-02-19 Tom Tromey <tromey@redhat.com>
12918
12919 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12920 argument.
12921 (target_make_corefile_notes): Add argument.
12922 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12923 * procfs.c (procfs_make_note_section): Add 'self' argument.
12924 (procfs_make_note_section): Add 'self' argument.
12925 (procfs_make_note_section): Add 'self' argument.
12926 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12927 argument.
12928 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12929 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12930 * exec.c (exec_make_note_section): Add 'self' argument.
12931 (exec_make_note_section): Add 'self' argument.
12932
2e73927c
TT
129332014-02-19 Tom Tromey <tromey@redhat.com>
12934
12935 * target.h (struct target_ops) <to_find_memory_regions>: Add
12936 argument.
12937 (target_find_memory_regions): Add argument.
12938 * target.c (dummy_find_memory_regions): Add 'self' argument.
12939 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12940 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12941 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12942 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12943 * exec. (exec_do_find_memory_regions): New global.
12944 (exec_set_find_memory_regions): Rewrite.
12945 (exec_find_memory_regions): New function.
12946 (init_exec_ops): Use exec_find_memory_regions.
12947
2a9a2795
TT
129482014-02-19 Tom Tromey <tromey@redhat.com>
12949
12950 * target.h (struct target_ops) <to_supports_non_stop>: Add
12951 argument.
12952 * target.c (find_default_supports_non_stop): Add argument.
12953 (target_supports_non_stop): Add argument.
12954 (find_default_supports_non_stop): Add 'self' argument.
12955 * remote.c (remote_supports_non_stop): Add 'self' argument.
12956 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12957
4ab76ea3
TT
129582014-02-19 Tom Tromey <tromey@redhat.com>
12959
12960 * target.h (struct target_ops) <to_log_command>: Add argument.
12961 (target_log_command): Add argument.
12962 * serial.h (serial_log_command): Add 'self' argument.
12963 * serial.c (serial_log_command): Add 'self' argument.
12964
8dd27370
TT
129652014-02-19 Tom Tromey <tromey@redhat.com>
12966
12967 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12968 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12969 argument.
12970 (target_pid_to_exec_file): Add argument.
12971 * target.c (debug_to_pid_to_exec_file): Add argument.
12972 (update_current_target): Update.
12973 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12974 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12975 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12976 (linux_handle_extended_wait): Update.
12977 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12978 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12979 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12980 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12981
1aac633b
TT
129822014-02-19 Tom Tromey <tromey@redhat.com>
12983
12984 * target.h (struct target_ops) <to_rcmd>: Add argument.
12985 (target_rcmd): Add argument.
12986 * target.c (debug_to_rcmd): Add argument.
12987 (update_current_target, do_monitor_command): Update.
12988 * remote.c (remote_rcmd): Add 'self' argument.
12989 * monitor.c (monitor_rcmd): Add 'self' argument.
12990
1eab8a48
TT
129912014-02-19 Tom Tromey <tromey@redhat.com>
12992
12993 * windows-nat.c (windows_stop): Add 'self' argument.
12994 * target.h (struct target_ops) <to_stop>: Add argument.
12995 * target.c (target_stop): Add argument.
12996 (debug_to_stop): Add argument.
12997 (update_current_target): Update.
12998 * remote.c (remote_stop): Add 'self' argument.
12999 * remote-sim.c (gdbsim_stop): Add 'self' argument.
13000 (gdbsim_cntrl_c): Update.
13001 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
13002 * procfs.c (procfs_stop): Add 'self' argument.
13003 * nto-procfs.c (procfs_stop): Add 'self' argument.
13004 * monitor.c (monitor_stop): Add 'self' argument.
13005 (monitor_open): Update.
13006 * linux-nat.c (linux_nat_stop): Add argument.
13007 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
13008 * gnu-nat.c (gnu_stop): Add 'self' argument.
13009 * darwin-nat.c (darwin_stop): Add 'self' argument.
13010
503a628d
TT
130112014-02-19 Tom Tromey <tromey@redhat.com>
13012
13013 * target.h (struct target_ops) <to_thread_name>: Add argument.
13014 * target.c (target_thread_name): Add argument.
13015 (update_current_target): Update.
13016 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13017
c15906d8
TT
130182014-02-19 Tom Tromey <tromey@redhat.com>
13019
13020 * target.h (struct target_ops) <to_extra_thread_info>: Add
13021 argument.
13022 (target_extra_thread_info): Add argument.
13023 * target.c (update_current_target): Update.
13024 * remote.c (remote_threads_extra_info): Add 'self' argument.
13025 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13026 argument.
13027 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13028 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13029 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13030 argument.
13031 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13032 argument.
13033 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13034 argument.
13035 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13036 argument.
13037
daf5e9b6
TT
130382014-02-19 Tom Tromey <tromey@redhat.com>
13039
13040 * target.h (struct target_ops) <to_program_signals>: Add argument.
13041 * target.c (target_program_signals): Add argument.
13042 * remote.c (remote_program_signals): Add 'self' argument.
13043
94bedb42
TT
130442014-02-19 Tom Tromey <tromey@redhat.com>
13045
13046 * target.h (struct target_ops) <to_pass_signals>: Add argument.
13047 * target.c (target_pass_signals): Add argument.
13048 * remote.c (remote_pass_signals): Add 'self' argument.
13049 (remote_start_remote): Update.
13050 * procfs.c (procfs_pass_signals): Add 'self' argument.
13051 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13052 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13053 (linux_nat_create_inferior, linux_nat_attach): Update.
13054
da82bd6b
TT
130552014-02-19 Tom Tromey <tromey@redhat.com>
13056
13057 * windows-nat.c (windows_can_run): Add 'self' argument.
13058 * target.h (struct target_ops) <to_can_run>: Add argument.
13059 (target_can_run): Add argument.
13060 * target.c (debug_to_can_run): Add argument.
13061 (update_current_target): Update.
13062 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13063 * inf-child.c (inf_child_can_run): Add 'self' argument.
13064 * go32-nat.c (go32_can_run): Add 'self' argument.
13065
d796e1d6
TT
130662014-02-19 Tom Tromey <tromey@redhat.com>
13067
13068 * target.h (struct target_ops) <to_has_exited>: Add argument.
13069 (target_has_exited): Add argument.
13070 * target.c (debug_to_has_exited): Add argument.
13071 (update_current_target): Update.
13072
ff214e67
TT
130732014-02-19 Tom Tromey <tromey@redhat.com>
13074
13075 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13076 argument.
13077 (target_set_syscall_catchpoint): Add argument.
13078 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13079 argument.
13080 * target.c (update_current_target): Update.
13081
758e29d2
TT
130822014-02-19 Tom Tromey <tromey@redhat.com>
13083
13084 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13085 argument.
13086 (target_remove_exec_catchpoint): Add argument.
13087 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13088 (update_current_target): Update.
13089 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13090 argument.
13091
ba025e51
TT
130922014-02-19 Tom Tromey <tromey@redhat.com>
13093
13094 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13095 argument.
13096 (target_insert_exec_catchpoint): Add argument.
13097 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13098 (update_current_target): Update.
13099 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13100 argument.
13101
e98cf0cd
TT
131022014-02-19 Tom Tromey <tromey@redhat.com>
13103
13104 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13105 argument.
13106 (target_remove_vfork_catchpoint): Add argument.
13107 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13108 (update_current_target): Update.
13109 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13110 argument.
13111
3ecc7da0
TT
131122014-02-19 Tom Tromey <tromey@redhat.com>
13113
13114 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13115 argument.
13116 (target_insert_vfork_catchpoint): Add argument.
13117 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13118 (update_current_target): Update.
13119 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13120 argument.
13121
973fc227
TT
131222014-02-19 Tom Tromey <tromey@redhat.com>
13123
13124 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13125 argument.
13126 (target_remove_fork_catchpoint): Add argument.
13127 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13128 (update_current_target): Update.
13129 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13130 argument.
13131
a863b201
TT
131322014-02-19 Tom Tromey <tromey@redhat.com>
13133
13134 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13135 argument.
13136 (target_insert_fork_catchpoint): Add argument.
13137 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13138 (update_current_target): Update.
13139 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13140 argument.
13141
2e97a79e
TT
131422014-02-19 Tom Tromey <tromey@redhat.com>
13143
13144 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13145 argument.
13146 (target_post_startup_inferior): Add argument.
13147 * target.c (debug_to_post_startup_inferior): Add argument.
13148 (update_current_target): Update.
13149 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13150 argument.
13151 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13152 argument.
13153 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13154 argument.
13155 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13156 argument.
13157 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13158 'self' argument.
13159 (super_post_startup_inferior): Likewise.
13160 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13161 'self' argument.
13162 (super_post_startup_inferior): Likewise.
13163 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13164 Add 'self' argument.
13165 (super_post_startup_inferior): Likewise.
13166
71a9f134
TT
131672014-02-19 Tom Tromey <tromey@redhat.com>
13168
13169 * target.h (struct target_ops) <to_load>: Add argument.
13170 * target.c (target_load): Add argument.
13171 (debug_to_load): Add argument.
13172 (update_current_target): Update.
13173 * remote.c (remote_load): Add 'self' argument.
13174 * remote-sim.c (gdbsim_load): Add 'self' argument.
13175 * remote-mips.c (mips_load): Add 'self' argument.
13176 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13177 * monitor.c (monitor_load): Add 'self' argument.
13178 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13179
0a4f40a2
TT
131802014-02-19 Tom Tromey <tromey@redhat.com>
13181
13182 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13183 (target_terminal_info): Add argument.
13184 * target.c (debug_to_terminal_info): Add argument.
13185 (default_terminal_info): Likewise.
13186 * inflow.c (child_terminal_info): Add 'self' argument.
13187 * inferior.h (child_terminal_info): Add 'self' argument.
13188 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13189
ae3bd431
TT
131902014-02-19 Tom Tromey <tromey@redhat.com>
13191
13192 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13193 argument.
13194 (target_terminal_save_ours): Add argument.
13195 * target.c (debug_to_terminal_save_ours): Add argument.
13196 (update_current_target): Update.
13197 * inflow.c (terminal_save_ours): Add 'self' argument.
13198 * inferior.h (terminal_save_ours): Add 'self' argument.
13199
e3594fd1
TT
132002014-02-19 Tom Tromey <tromey@redhat.com>
13201
13202 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13203 (target_terminal_ours): Add argument.
13204 * target.c (debug_to_terminal_ours): Add argument.
13205 (update_current_target): Update.
13206 * remote.c (remote_terminal_ours): Add 'self' argument.
13207 (remote_close): Update.
13208 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13209 * inflow.c (terminal_ours): Add 'self' argument.
13210 * inferior.h (terminal_ours): Add 'self' argument.
13211 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13212
2e1e1a19
TT
132132014-02-19 Pedro Alves <palves@redhat.com>
13214 Tom Tromey <tromey@redhat.com>
13215
13216 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13217 argument.
13218 (target_terminal_ours_for_output): Add argument.
13219 * target.c (debug_to_terminal_ours_for_output): Add argument.
13220 (update_current_target): Update.
13221 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13222 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13223 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13224
d2f640d4
TT
132252014-02-19 Tom Tromey <tromey@redhat.com>
13226
13227 * target.h (struct target_ops) <to_terminal_inferior>: Add
13228 argument.
13229 * target.c (target_terminal_inferior): Add argument.
13230 (update_current_target): Update.
13231 * remote.c (remote_terminal_inferior): Add 'self' argument.
13232 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13233 * inflow.c (terminal_inferior): Add 'self' argument.
13234 * inferior.h (terminal_inferior): Add 'self' argument.
13235 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13236 (go32_terminal_inferior): Add 'self' argument.
13237
c42bf286
TT
132382014-02-19 Tom Tromey <tromey@redhat.com>
13239
13240 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13241 (target_terminal_init): Add argument.
13242 * target.c (debug_to_terminal_init): Add argument.
13243 (update_current_target): Update.
13244 * inflow.c (terminal_init_inferior): Add 'self' argument.
13245 * inferior.h (terminal_init_inferior): Add 'self' argument.
13246 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13247 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13248
c3a5ff89
TT
132492014-02-19 Tom Tromey <tromey@redhat.com>
13250
13251 * target.h (struct target_ops)
13252 <to_can_accel_watchpoint_condition>: Add argument.
13253 (target_can_accel_watchpoint_condition): Add argument.
13254 * target.c (debug_to_can_accel_watchpoint_condition): Add
13255 argument.
13256 (update_current_target): Update.
13257 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13258 'self' argument.
13259
31568a15
TT
132602014-02-19 Tom Tromey <tromey@redhat.com>
13261
13262 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13263 Add argument.
13264 (target_region_ok_for_hw_watchpoint): Add argument.
13265 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13266 (default_region_ok_for_hw_watchpoint): Add argument.
13267 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13268 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13269 argument.
13270 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13271 argument.
13272 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13273 argument.
13274 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13275 'self' argument.
13276 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13277 'self' argument.
13278 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13279 'self' argument.
13280 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13281 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13282 'self' argument.
13283 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13284 Add 'self' argument.
13285
7bb99c53
TT
132862014-02-19 Tom Tromey <tromey@redhat.com>
13287
13288 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13289 argument.
13290 (target_insert_watchpoint): Add argument.
13291 * target.c (debug_to_insert_watchpoint): Add argument.
13292 (update_current_target): Update.
13293 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13294 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13295 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13296 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13297 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13298 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13299 argument.
13300 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13301 (procfs_insert_hw_watchpoint): Add 'self' argument.
13302 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13303 argument.
13304 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13305 argument.
13306 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13307 argument.
13308 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13309 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13310 argument.
13311 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13312 'self' argument.
13313
11b5219a
TT
133142014-02-19 Tom Tromey <tromey@redhat.com>
13315
13316 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13317 argument.
13318 (target_remove_watchpoint): Add argument.
13319 * target.c (debug_to_remove_watchpoint): Add argument.
13320 (update_current_target): Update.
13321 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13322 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13323 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13324 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13325 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13326 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13327 argument.
13328 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13329 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13330 argument.
13331 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13332 argument.
13333 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13334 argument.
13335 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13336 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13337 argument.
13338 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13339 'self' argument.
13340
a64dc96c
TT
133412014-02-19 Tom Tromey <tromey@redhat.com>
13342
13343 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13344 argument.
13345 (target_remove_hw_breakpoint): Add argument.
13346 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13347 (update_current_target): Update.
13348 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13349 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13350 argument.
13351 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13352 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13353 argument.
13354 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13355 'self' argument.
13356
23a26771
TT
133572014-02-19 Tom Tromey <tromey@redhat.com>
13358
13359 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13360 argument.
13361 (target_insert_hw_breakpoint): Add argument.
13362 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13363 (update_current_target): Update.
13364 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13365 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13366 argument.
13367 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13368 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13369 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13370 argument.
13371 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13372 'self' argument.
13373
5461485a
TT
133742014-02-19 Tom Tromey <tromey@redhat.com>
13375
13376 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13377 argument.
13378 (target_can_use_hardware_watchpoint): Add argument.
13379 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13380 (update_current_target): Update.
13381 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13382 argument.
13383 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13384 argument.
13385 * remote.c (remote_check_watch_resources): Add 'self' argument.
13386 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13387 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13388 argument.
13389 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13390 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13391 argument.
13392 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13393 argument.
13394 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13395 argument.
13396 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13397 argument.
13398 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13399 argument.
13400 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13401 argument.
13402 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13403 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13404 argument.
13405 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13406 'self' argument.
13407
f045800c
TT
134082014-02-19 Tom Tromey <tromey@redhat.com>
13409
13410 * target.h (struct target_ops) <to_post_attach>: Add argument.
13411 (target_post_attach): Add argument.
13412 * target.c (debug_to_post_attach): Add argument.
13413 (update_current_target): Update.
13414 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13415 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13416 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13417 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13418 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13419
de90e03d
TT
134202014-02-19 Tom Tromey <tromey@redhat.com>
13421
13422 * windows-nat.c (windows_close): Add 'self' argument.
13423 * tracepoint.c (tfile_close): Add 'self' argument.
13424 * target.h (struct target_ops) <to_close>: Add argument.
13425 * target.c (target_close): Add argument.
13426 (update_current_target): Update.
13427 * remote.c (remote_close): Add 'self' argument.
13428 * remote-sim.c (gdbsim_close): Add 'self' argument.
13429 * remote-mips.c (mips_close): Add 'self' argument.
13430 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13431 * record-full.c (record_full_close): Add 'self' argument.
13432 * record-btrace.c (record_btrace_close): Add 'self' argument.
13433 * monitor.h (monitor_close): Add 'self' argument.
13434 * monitor.c (monitor_close): Add 'self' argument.
13435 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13436 * linux-nat.c (linux_nat_close): Add argument.
13437 * go32-nat.c (go32_close): Add 'self' argument.
13438 * exec.c (exec_close_1): Add 'self' argument.
13439 * ctf.c (ctf_close): Add 'self' argument.
13440 * corelow.c (core_close): Add 'self' argument.
13441 (core_close_cleanup): Update.
13442 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13443 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13444
9dd130a0
TT
134452014-02-19 Tom Tromey <tromey@redhat.com>
13446
13447 * remote.c (remote_load): New function.
13448 (init_remote_ops): Use it.
13449
46917d26
TT
134502014-02-19 Tom Tromey <tromey@redhat.com>
13451
13452 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13453 argument.
13454 * common/linux-btrace.h (linux_supports_btrace): Update.
13455 * remote.c (remote_supports_btrace): Add "self" argument.
13456 * target-delegates.c: Rebuild.
13457 * target.c (target_supports_btrace): Remove.
13458 * target.h (struct target_ops) <to_supports_btrace>: Add
13459 target_ops argument.
13460 (target_supports_btrace): New define.
13461
6b84065d
TT
134622014-02-19 Tom Tromey <tromey@redhat.com>
13463
13464 * record-full.c (record_full_beneath_to_resume_ops)
13465 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13466 (record_full_beneath_to_wait)
13467 (record_full_beneath_to_store_registers_ops)
13468 (record_full_beneath_to_store_registers)
13469 (record_full_beneath_to_xfer_partial_ops)
13470 (record_full_beneath_to_xfer_partial)
13471 (record_full_beneath_to_insert_breakpoint_ops)
13472 (record_full_beneath_to_insert_breakpoint)
13473 (record_full_beneath_to_remove_breakpoint_ops)
13474 (record_full_beneath_to_remove_breakpoint)
13475 (record_full_beneath_to_stopped_by_watchpoint)
13476 (record_full_beneath_to_stopped_data_address)
13477 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13478 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13479 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13480 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13481 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13482 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13483 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13484 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13485 (record_full_resume, record_full_wait_1)
13486 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13487 (record_full_store_registers, record_full_xfer_partial)
13488 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13489 (record_full_async, record_full_core_xfer_partial): Use target
13490 delegation.
13491 * target-delegates.c: Rebuild.
13492 * target.c (current_xfer_partial): Remove.
13493 (update_current_target): Do not INHERIT or de_fault
13494 to_insert_breakpoint, to_remove_breakpoint,
13495 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13496 to_is_async_p, to_async. Do not set to_xfer_partial field.
13497 (default_xfer_partial): Simplify.
13498 (current_xfer_partial): Remove.
13499 (target_wait, target_resume): Simplify.
13500 (find_default_can_async_p, find_default_is_async_p): Update.
13501 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13502 to_xfer_partial, to_stopped_by_watchpoint,
13503 to_stopped_data_address.
13504 (target_store_registers): Simplify.
13505 (forward_target_remove_breakpoint)
13506 (forward_target_insert_breakpoint): Remove.
13507 (target_remove_breakpoint, target_insert_breakpoint)
13508 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13509 * target.h (struct target_ops) <to_resume, to_wait,
13510 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13511 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13512 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13513 markup.
13514 (forward_target_remove_breakpoint)
13515 (forward_target_insert_breakpoint): Remove.
13516 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13517 directly.
13518 (record_btrace_insert_breakpoint): Delegate directly.
13519
1101cb7b
TT
135202014-02-19 Tom Tromey <tromey@redhat.com>
13521
13522 PR build/7701:
13523 * target-delegates.c: New file.
13524 * target.c: Include target-delegates.c.
13525 (init_dummy_target): Call install_dummy_methods.
13526 (complete_target_initialization): Call install_delegators.
13527 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13528 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13529 * make-target-delegates: New file.
13530
8b06beed
TT
135312014-02-19 Tom Tromey <tromey@redhat.com>
13532
13533 * record.c (find_record_target): Use find_target_at.
13534 * target.c (find_target_at): New function.
13535 * target.h (find_target_at): Declare.
13536
6a109b6b
TT
135372014-02-19 Tom Tromey <tromey@redhat.com>
13538
13539 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13540 Add 'ops' argument.
13541 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13542 'ops' argument.
13543 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13544 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13545 'ops' argument.
13546 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13547 argument.
13548 * linux-nat.c (save_sigtrap): Update.
13549 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13550 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13551 (linux_nat_close): Update.
13552 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13553 argument.
13554 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13555 argument.
13556 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13557 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13558 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13559 (tmp_to_async): Add 'ops' argument.
13560 (record_full_stopped_by_watchpoint, record_full_async)
13561 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13562 argument.
13563 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13564 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13565 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13566 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13567 (remote_is_async_p, remote_async): Add 'ops' argument.
13568 (remote_stopped_data_address): Update.
13569 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13570 * target.c (update_current_target)
13571 (find_default_can_async_p, find_default_is_async_p): Update.
13572 (init_dummy_target): Update.
13573 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13574 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13575 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13576 (target_can_async_p, target_is_async_p, target_async)
13577 (target_stopped_by_watchpoint): Update.
13578
e095146b
YQ
135792014-02-19 Yao Qi <yao@codesourcery.com>
13580
13581 PR gdb/16220
13582 * gdbarch.sh: Remove startup_gdbarch.
13583 * gdbarch.c: Regenerated.
13584 * gdbarch.h: Likewise.
13585
bc3c6b36
KB
135862014-02-17 Kevin Buettner <kevinb@redhat.com>
13587
13588 * rl78-tdep.c (rl78_g10_register_name): New function.
13589 (rl78_return_value): Add g10 support.
13590 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13591 g10.
13592
98dc0167 135932014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
13594
13595 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13596 (SUBDIR_GUILE_SRCS): Ditto.
13597 (scm-gsmob.o): Ditto.
13598
842c05cd
YQ
135992014-02-17 Yao Qi <yao@codesourcery.com>
13600
13601 * gnu-nat.c (ILL_RPC): Declare defined function.
13602
25c0bd04
YQ
136032014-02-17 Yao Qi <yao@codesourcery.com>
13604
13605 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13606 mach_msg_type_number_t.
13607 (gnu_write_inferior): Likewise.
13608
a9a758e3
YQ
136092014-02-17 Yao Qi <yao@codesourcery.com>
13610
13611 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13612 in format string.
13613 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13614 (inf_validate_procs, inf_signal): Likewise.
13615 (S_exception_raise_request): Likewise.
13616 (do_mach_notify_dead_name): Likewise.
13617 (steal_exc_port): Likewise.
13618 (gnu_read_inferior): Change 'copy_count''s type to
13619 mach_msg_type_number_t.
13620 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13621 format string.
13622
bae8023e
TS
136232014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13624
c82f56d9
TS
13625 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13626 flag. Adjust all users; in particular...
13627 (gnu_wait): ..., don't decrement its value in here...
13628 (gnu_create_inferior): ..., and instead set the flag in here,
13629 around the startup_inferior call, and call that one with
13630 START_INFERIOR_TRAPS_EXPECTED.
13631
3398af6a
TS
13632 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13633 (ILL_RPC): ... new macro.
13634 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13635 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13636 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13637 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13638 functions with ILL_RPC macro.
13639 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13640 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13641 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13642 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13643 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13644 (S_proc_getlogin_reply, S_proc_getsid_reply)
13645 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13646 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13647 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13648 (S_proc_getnports_reply, S_proc_is_important_reply)
13649 (S_proc_get_code_reply): New stub functions, generated with
13650 ILL_RPC macro.
13651
d47642c9
TS
13652 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13653 collected the type check structures.
13654
bae8023e
TS
13655 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13656
8a55ffb0
DE
136572014-02-14 Doug Evans <dje@google.com>
13658
13659 * target.c (target_write_partial): Fix result type.
13660
c2853f3d
JM
136612014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13662
13663 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13664 the proper offsets to access fpregset_t.
13665
ac61d2db
SA
136662014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13667
13668 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13669 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13670 * h8300-tdep.c (setmachinelist): Remove global.
13671 * hppa-tdep.c (hppa_sigtramp): Remove global.
13672 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13673 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13674 * ravenscar-thread.c (update_target_observer): Remove global.
13675 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13676
9d2d0b8b
TT
136772014-02-12 Tom Tromey <tromey@redhat.com>
13678
13679 * common/rsp-low.c: Update comments.
13680 * common/rsp-low.h: Update comments.
13681
a7191e8b
TT
136822014-02-12 Tom Tromey <tromey@redhat.com>
13683
13684 * common/rsp-low.c (convert_ascii_to_int): Remove.
13685 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13686
ff0e980e
TT
136872014-02-12 Tom Tromey <tromey@redhat.com>
13688
13689 * common/rsp-low.h (unhexify): Don't declare.
13690 * common/rsp-low.c (unhexify): Remove.
13691
e9371aff
TT
136922014-02-12 Tom Tromey <tromey@redhat.com>
13693
13694 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13695 * common/rsp-low.c (convert_int_to_ascii): Remove.
13696
971dc0b8
TT
136972014-02-12 Tom Tromey <tromey@redhat.com>
13698
13699 * common/rsp-low.h (hexify): Don't declare.
13700 * common/rsp-low.c (hexify): Remove.
13701
0a822afb
TT
137022014-02-12 Tom Tromey <tromey@redhat.com>
13703
13704 * common/rsp-low.c (hexify): Never take strlen of argument.
13705
9f1b45b0
TT
137062014-02-12 Tom Tromey <tromey@redhat.com>
13707
13708 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13709 * remote.c (extended_remote_run, remote_rcmd)
13710 (remote_download_trace_state_variable, remote_save_trace_data)
13711 (remote_set_trace_notes): Update.
13712 * tracepoint.c (encode_source_string, tfile_write_status)
13713 (tfile_write_uploaded_tsv): Update.
13714
9c3d6531
TT
137152014-02-12 Tom Tromey <tromey@redhat.com>
13716
13717 * tracepoint.c: Include rsp-low.h.
13718 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13719 * remote.c: Include rsp-low.h.
13720 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13721 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13722 (remote_unescape_input): Move to common/rsp-low.c.
13723 * common/rsp-low.h: New file.
13724 * common/rsp-low.c: New file.
13725 * Makefile.in (SFILES): Add common/rsp-low.c.
13726 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13727 (COMMON_OBS): Add rsp-low.o.
13728 (rsp-low.o): New target.
13729
01fd3ea5
TT
137302014-02-12 Tom Tromey <tromey@redhat.com>
13731
13732 * utils.h: Include print-utils.h.
13733 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13734 (int_string, core_addr_to_string, core_addr_to_string_nz)
13735 (hex_string, hex_string_custom): Don't declare.
13736 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13737 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13738 (hex_string_custom, int_string, core_addr_to_string)
13739 (core_addr_to_string_nz, host_address_to_string): Move to
13740 common/print-utils.c.
13741 * common/print-utils.h: New file.
13742 * common/print-utils.c: New file
13743 * Makefile.in (SFILES): Add common/print-utils.c.
13744 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13745 (COMMON_OBS): Add print-utils.o.
13746 (print-utils.o): New target.
13747
9fb50108
TT
137482014-02-12 Tom Tromey <tromey@redhat.com>
13749
13750 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13751
0548b5db
MK
137522014-02-12 Mark Kettenis <kettenis@gnu.org>
13753
13754 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13755
493443a4
MK
137562014-02-12 Mark Kettenis <kettenis@gnu.org>
13757
13758 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13759 if a PT_IO ptrace request returns sucessfully but indicates that 0
13760 bytes were transferred.
13761
706d0883
PA
137622014-02-12 Pedro Alves <palves@redhat.com>
13763 Kevin Buettner <kevinb@redhat.com>
13764
13765 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13766 TYPE_INSTANCE_FLAG_CODE_SPACE.
13767
5caa2f0b
PA
137682014-02-12 Pedro Alves <palves@redhat.com>
13769
13770 * h8300-tdep.c (pseudo_from_raw_register)
13771 (raw_from_pseudo_register): New functions.
13772 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13773 them.
13774
76fd5f74
PA
137752014-02-12 Pedro Alves <palves@redhat.com>
13776
13777 * h8300-tdep.c (h8300_register_sim_regno): New function.
13778 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13779 gdbarch_register_sim_regno hook.
13780
8f008406
SA
137812014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13782
13783 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13784
195abc10
SA
137852014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13786
13787 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13788
93ffa5b9
MK
137892014-02-12 Mark Kettenis <kettenis@gnu.org>
13790
13791 * obsd-tdep.h (obsd_init_abi): New prototype.
13792 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13793 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13794 (obsd_init_abi): New functions.
13795 * i386obsd-tdep.c: Include "obsd-tdep.h".
13796 (i386obsd_init_abi): Call obsd_init_abi.
13797 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13798 (amd64obsd_init_abi): Call obsd_init_abi.
13799 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13800 obsd-tdep.c to gdb_target_obs.
13801
49caec94
JM
138022014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13803
13804 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13805 double float arguments to 16-byte in the argument slots.
13806
e1402065
DE
138072014-02-11 Doug Evans <xdje42@gmail.com>
13808
13809 * configure.ac: Don't crash if pkg-config is not found and guile
13810 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13811 in guile checks.
13812 * configure: Regenerate.
13813
edcc890f
YQ
138142014-02-11 Yao Qi <yao@codesourcery.com>
13815
13816 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13817 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13818 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13819 * gnu-nat.c (gnu_xfer_memory): Likewise.
13820 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13821 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13822 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13823 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13824
9b409511
YQ
138252014-02-11 Yao Qi <yao@codesourcery.com>
13826
13827 * target.h (enum target_xfer_error): Rename to ...
13828 (enum target_xfer_status): ... it. New. All users updated.
13829 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13830 New.
13831 (TARGET_XFER_STATUS_ERROR_P): New macro.
13832 (target_xfer_error_to_string): Remove declaration.
13833 (target_xfer_status_to_string): Declare.
13834 (target_xfer_partial_ftype): Adjust it.
13835 (struct target_ops) <to_xfer_partial>: Return
13836 target_xfer_status. Add argument xfered_len. Update
13837 comments.
13838 * target.c (target_xfer_error_to_string): Rename to ...
13839 (target_xfer_status_to_string): ... it. New. All callers
13840 updated.
13841 (target_read_live_memory): Likewise. Call target_xfer_partial
13842 instead of target_read.
13843 (memory_xfer_live_readonly_partial): Return
13844 target_xfer_status. Add argument xfered_len.
13845 (raw_memory_xfer_partial): Likewise.
13846 (memory_xfer_partial_1): Likewise.
13847 (memory_xfer_partial): Likewise.
13848 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13849 properly. Update debug message.
13850 (default_xfer_partial, current_xfer_partial): Likewise.
13851 (target_write_partial): Likewise.
13852 (target_read_partial): Likewise. All callers updated.
13853 (read_whatever_is_readable): Likewise.
13854 (target_write_with_progress): Likewise.
13855 (target_read_alloc_1): Likewise.
13856
13857 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13858 * auxv.c (procfs_xfer_auxv): Likewise.
13859 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13860 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13861 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13862 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13863 * corefile.c (read_memory): Adjust.
13864 * corelow.c (core_xfer_partial): Likewise.
13865 * ctf.c (ctf_xfer_partial): Likewise.
13866 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13867 updated.
13868 (darwin_xfer_partial): Likewise.
13869 * exec.c (section_table_xfer_memory_partial): Likewise. All
13870 callers updated.
13871 (exec_xfer_partial): Likewise.
13872 * exec.h (section_table_xfer_memory_partial): Update
13873 declaration.
13874 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13875 negative.
13876 (gnu_xfer_partial): Likewise.
13877 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13878 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13879 (ia64_hpux_xfer_solib_got): Likewise.
13880 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13881 type of 'partial_len' to ULONGEST.
13882 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13883 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13884 (linux_nat_xfer_partial): Likewise.
13885 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13886 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13887 * monitor.c (monitor_xfer_memory): Likewise.
13888 (monitor_xfer_partial): Likewise.
13889 * procfs.c (procfs_xfer_partial): Likewise.
13890 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13891 * record-full.c (record_full_xfer_partial): Likewise.
13892 (record_full_core_xfer_partial): Likewise.
13893 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13894 (gdbsim_xfer_partial): Likewise.
13895 * remote.c (remote_write_bytes_aux): Likewise. All callers
13896 updated.
13897 (remote_write_bytes, remote_read_bytes): Likewise. All
13898 callers updated.
13899 (remote_flash_erase): Likewise. All callers updated.
13900 (remote_write_qxfer): Likewise. All callers updated.
13901 (remote_read_qxfer): Likewise. All callers updated.
13902 (remote_xfer_partial): Likewise.
13903 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13904 (rs6000_xfer_shared_libraries): Likewise.
13905 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13906 (sol_thread_xfer_partial): Likewise.
13907 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13908 (sparc_xfer_partial): Likewise.
13909 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13910 updated.
13911 (spu_xfer_partial): Likewise.
13912 * spu-multiarch.c (spu_xfer_partial): Likewise.
13913 * tracepoint.c (tfile_xfer_partial): Likewise.
13914 * windows-nat.c (windows_xfer_memory): Likewise.
13915 (windows_xfer_shared_libraries): Likewise.
13916 (windows_xfer_partial): Likewise.
13917 * valprint.c: Replace 'target_xfer_error' with
13918 'target_xfer_status' in comments.
13919
a8e63083
JB
139202014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13921
13922 Checked in by Joel Brobecker <brobecker@adacore.com>.
13923 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13924
e86b67d3
JB
139252014-02-11 Joel Brobecker <brobecker@adacore.com>
13926
13927 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13928 function parameters.
13929
4b7d1f7f
WN
139302014-02-10 Will Newton <will.newton@linaro.org>
13931
13932 * elfread.c (elf_rel_plt_read): Look for a .got section if
13933 looking up .got.plt fails.
13934 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13935 on address passed to elf_gnu_ifunc_record_cache.
13936 (elf_gnu_ifunc_resolve_addr): Likewise.
13937 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13938
961842b2
JM
139392014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13940
13941 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13942 (X_RETTURN): New macro.
13943 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13944
13945 * sparc64-tdep.c (sparc64_init_abi): Hook
13946 sparc_in_function_epilogue_p.
13947
3f03e7b1
GB
139482014-02-10 Gary Benson <gbenson@redhat.com>
13949
13950 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13951 Rename name_matcher to symbol_matcher.
13952
96f861ef
GB
139532014-02-10 Gary Benson <gbenson@redhat.com>
13954
13955 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13956 Use expand_symtabs_file_matcher_ftype and
13957 expand_symtabs_symbol_matcher_ftype.
13958
ee01b665
JB
139592014-02-10 Joel Brobecker <brobecker@adacore.com>
13960
13961 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13962 (struct ada_symbol_cache): New.
13963 (ada_free_symbol_cache): Forward declare.
13964 (struct ada_pspace_data): New.
13965 (ada_pspace_data_handle): New static global.
13966 (get_ada_pspace_data, ada_pspace_data_cleanup)
13967 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13968 (cache_space, cache): Delete, now folded inside struct
13969 ada_pspace_data.
13970 (ada_get_symbol_cache): New function.
13971 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13972 implementation.
13973 (_initialize_ada_language): Remove initialization of cache_space.
13974 Move call to observer_attach_inferior_exit up, grouping it
13975 with the other observer registrations inside this function.
13976 Rename command to be more general. Add call to
13977 register_program_space_data_with_cleanup.
13978
143adbbf
JB
139792014-02-10 Joel Brobecker <brobecker@adacore.com>
13980
13981 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13982 ada_new_objfile_observer.
13983 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13984 (_initialize_tasks): Update uses of ada_new_objfile_observer
13985 and ada_tasks_normal_stop_observer.
13986
aa4fb036
JB
139872014-02-10 Joel Brobecker <brobecker@adacore.com>
13988
13989 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13990 returned by the 'Length attribute to integer.
13991
9dee8cc6
JB
139922014-02-10 Joel Brobecker <brobecker@adacore.com>
13993
13994 * ada-lang.c (_initialize_ada_language): Initialize
13995 cache_space obstack.
13996
3d9434b5
JB
139972014-02-10 Joel Brobecker <brobecker@adacore.com>
13998
13999 * ada-lang.c (HASH_SIZE): New macro.
14000 (struct cache_entry): New type.
14001 (cache_space, cache): New static globals.
14002 (ada_clear_symbol_cache, find_entry): New functions.
14003 (lookup_cached_symbol, cache_symbol): Implement.
14004 (ada_new_objfile_observer, ada_free_objfile_observer): New.
14005 (_initialize_ada_language): Attach ada_new_objfile_observer
14006 and ada_free_objfile_observer.
14007
f0c5f9b2
JB
140082014-02-10 Joel Brobecker <brobecker@adacore.com>
14009
14010 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
14011 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
14012 struct block * parameter.
14013 (ada_lookup_symbol_list_worker): Constify local variable "block".
14014 Remove cast which is no longer necessary.
14015
ed3ef339
DE
140162014-02-10 Doug Evans <xdje42@gmail.com>
14017
14018 Add Guile as an extension language.
14019 * NEWS: Mention Guile scripting.
14020 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14021 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14022 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14023 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14024 (CLIBS): Add GUILE_LIBS.
14025 (install-guile): New rule.
14026 (guile.o): New rule.
14027 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14028 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14029 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14030 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14031 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14032 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14033 (scm-type.o, scm-utils.o, scm-value.o): New rules.
14034 * configure.ac: New option --with-guile.
14035 * configure: Regenerate.
14036 * config.in: Regenerate.
14037 * auto-load.c: Remove #include "python/python.h". Add #include
14038 "gdb/section-scripts.h".
14039 (source_section_scripts): Handle Guile scripts.
14040 (_initialize_auto_load): Add name of Guile objfile script to
14041 scripts-directory help text.
14042 * breakpoint.c (condition_command): Tweak comment to include Scheme.
14043 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14044 (struct breakpoint): New member scm_bp_object.
14045 * defs.h (enum command_control_type): New value guile_control.
14046 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
14047 "extension.h".
14048 (show_user): Update comment.
14049 (_initialize_cli_cmds): Update help text for "show user". Update help
14050 text for max-user-call-depth.
14051 * cli/cli-script.c: Remove #include "python/python.h". Add #include
14052 "extension.h".
14053 (multi_line_command_p): Add guile_control.
14054 (print_command_lines): Handle guile_control.
14055 (execute_control_command, recurse_read_control_structure): Ditto.
14056 (process_next_line): Recognize "guile" commands.
14057 * disasm.c (gdb_disassemble_info): Make non-static.
14058 * disasm.h: #include "dis-asm.h".
14059 (struct gdbarch): Add forward decl.
14060 (gdb_disassemble_info): Declare.
14061 * extension.c: #include "guile/guile.h".
14062 (extension_languages): Add guile.
14063 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14064 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14065 * gdbtypes.c (get_unsigned_type_max): New function.
14066 (get_signed_type_minmax): New function.
14067 * gdbtypes.h (get_unsigned_type_max): Declare.
14068 (get_signed_type_minmax): Declare.
14069 * guile/README: New file.
14070 * guile/guile-internal.h: New file.
14071 * guile/guile.c: New file.
14072 * guile/guile.h: New file.
14073 * guile/scm-arch.c: New file.
14074 * guile/scm-auto-load.c: New file.
14075 * guile/scm-block.c: New file.
14076 * guile/scm-breakpoint.c: New file.
14077 * guile/scm-disasm.c: New file.
14078 * guile/scm-exception.c: New file.
14079 * guile/scm-frame.c: New file.
14080 * guile/scm-gsmob.c: New file.
14081 * guile/scm-iterator.c: New file.
14082 * guile/scm-lazy-string.c: New file.
14083 * guile/scm-math.c: New file.
14084 * guile/scm-objfile.c: New file.
14085 * guile/scm-ports.c: New file.
14086 * guile/scm-pretty-print.c: New file.
14087 * guile/scm-safe-call.c: New file.
14088 * guile/scm-string.c: New file.
14089 * guile/scm-symbol.c: New file.
14090 * guile/scm-symtab.c: New file.
14091 * guile/scm-type.c: New file.
14092 * guile/scm-utils.c: New file.
14093 * guile/scm-value.c: New file.
14094 * guile/lib/gdb.scm: New file.
14095 * guile/lib/gdb/boot.scm: New file.
14096 * guile/lib/gdb/experimental.scm: New file.
14097 * guile/lib/gdb/init.scm: New file.
14098 * guile/lib/gdb/iterator.scm: New file.
14099 * guile/lib/gdb/printing.scm: New file.
14100 * guile/lib/gdb/types.scm: New file.
14101 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14102 (VPATH): Add $(GUILE_SRCDIR).
14103 (GUILE_DIR): New variable.
14104 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14105 (all): Add stamp-guile dependency.
14106 (stamp-guile): New rule.
14107 (clean-guile, install-guile, uninstall-guile): New rules.
14108 (install-only): Add install-guile dependency.
14109 (uninstall): Add uninstall-guile dependency.
14110 (clean): Add clean-guile dependency.
14111
ac020ec5
DE
141122014-02-09 Doug Evans <xdje42@gmail.com>
14113
14114 Revert this patch (which I approved, mea culpa).
14115
14116 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14117
14118 * Makefile.in (all-lib): Remove.
14119 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14120
2a081c59
JK
141212014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14122
14123 Fix Python stack corruption.
14124 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14125 gdb_py_longest.
14126
0a6bd22d
MK
141272014-02-08 Mark Kettenis <kettenis@gnu.org>
14128
14129 * Makefile.in (all-lib): Remove.
14130 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14131
1a860409
DE
141322014-02-07 Doug Evans <dje@google.com>
14133
14134 * extension-priv.h (extension_language_script_ops): Add comment.
14135 (extension_language_ops): Add comment.
caf5a491 14136 (active_ext_lang_state): Fix typo in comment.
1a860409 14137
d137e6dc
PA
141382014-02-07 Pedro Alves <palves@redhat.com>
14139
0dcb32c3 14140 PR breakpoints/16292
d137e6dc
PA
14141 * infrun.c (handle_signal_stop) <signal arrives while stepping
14142 over a breakpoint>: Switch back to the stepping thread.
14143
ce6d0892
YQ
141442014-02-07 Yao Qi <yao@codesourcery.com>
14145
14146 * target.c (target_xfer_partial): Return zero if LEN is zero.
14147
2ed4b548
YQ
141482014-02-07 Yao Qi <yao@codesourcery.com>
14149
14150 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14151 (ld_so_xfer_auxv): Likewise.
14152 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14153 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14154 * corelow.c (core_xfer_partial): Likewise.
14155 * ctf.c (ctf_xfer_partial): Likewise.
14156 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14157 (darwin_xfer_partial): Likewise.
14158 * exec.c (exec_xfer_partial): Likewise.
14159 * gnu-nat.c (gnu_xfer_partial): Likewise.
14160 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14161 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14162 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14163 * linux-nat.c (linux_xfer_siginfo): Likewise.
14164 (linux_proc_xfer_spu): Likewise.
14165 * procfs.c (procfs_xfer_partial): Likewise.
14166 * record-full.c (record_full_xfer_partial): Likewise.
14167 (record_full_core_xfer_partial): Likewise.
14168 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14169 * remote.c (remote_write_qxfer): Likewise.
14170 (remote_write_qxfer, remote_read_qxfer): Likewise.
14171 (remote_xfer_partial): Likewise.
14172 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14173 (rs6000_xfer_shared_libraries): Likewise.
14174 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14175 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14176 (spu_xfer_partial): Likewise.
14177 * target.c (memory_xfer_partial_1): Likewise.
14178 * tracepoint.c (tfile_xfer_partial): Likewise.
14179 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14180 (windows_xfer_partial): Likewise.
14181
c09f20e4
YQ
141822014-02-07 Yao Qi <yao@codesourcery.com>
14183
14184 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14185 comments.
14186 (core_xfer_shared_libraries_aix): Likewise.
14187 * gdbarch.c, gdbarch.h: Regenerated.
14188 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14189 ULONGEST. Change 'len_avail' type to ULONGEST.
14190 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14191 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14192 declaration.
14193 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14194
8635b3bf
YQ
141952014-02-07 Yao Qi <yao@codesourcery.com>
14196
14197 * corefile.c (memory_error): Get 'exception' from ERR and pass
14198 'exception' to throw_error.
14199
6dddc817
DE
142002014-02-06 Doug Evans <xdje42@gmail.com>
14201
14202 * configure.ac (libpython checking): Remove all but python.o from
14203 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14204 * configure: Regenerate.
14205
14206 * Makefile.in (SFILES): Add extension.c.
14207 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14208 (COMMON_OBS): Add extension.o.
14209 * extension.h: New file.
14210 * extension-priv.h: New file.
14211 * extension.c: New file.
14212
14213 * python/python-internal.h: #include "extension.h".
14214 (gdbpy_auto_load_enabled): Declare.
14215 (gdbpy_apply_val_pretty_printer): Declare.
14216 (gdbpy_apply_frame_filter): Declare.
14217 (gdbpy_preserve_values): Declare.
14218 (gdbpy_breakpoint_cond_says_stop): Declare.
14219 (gdbpy_breakpoint_has_cond): Declare.
14220 (void source_python_script_for_objfile): Delete.
14221 * python/python.c: #include "extension-priv.h".
14222 Delete inclusion of "observer.h".
14223 (extension_language_python): Moved here and renamed from
14224 script_language_python in py-auto-load.c.
14225 Redefined to be of type extension_language_defn.
14226 (python_extension_script_ops): New global.
14227 (python_extension_ops): New global.
14228 (struct python_env): New member previous_active.
14229 (restore_python_env): Call restore_active_ext_lang.
14230 (ensure_python_env): Call set_active_ext_lang.
14231 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14232 New arg extlang.
14233 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14234 New arg extlang.
14235 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14236 New arg extlang.
14237 (gdbpy_eval_from_control_command): Renamed from
14238 eval_python_from_control_command, made static. New arg extlang.
14239 (gdbpy_source_script) Renamed from source_python_script, made static.
14240 New arg extlang.
14241 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14242 result to int. New arg extlang.
14243 (gdbpy_source_objfile_script): Renamed from
14244 source_python_script_for_objfile, made static. New arg extlang.
14245 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14246 static. New args extlang, extlang_printers. Change result type to
14247 "void".
14248 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14249 static. New arg extlang. Rename arg printers to extlang_printers
14250 and change type to ext_lang_type_printers *.
14251 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14252 static. Replace argument arg with extlang, extlang_printers.
14253 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14254 (!HAVE_PYTHON, source_python_script): Delete.
14255 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14256 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14257 (!HAVE_PYTHON, start_type_printers): Delete.
14258 (!HAVE_PYTHON, apply_type_printers): Delete.
14259 (!HAVE_PYTHON, free_type_printers): Delete.
14260 (_initialize_python): Delete call to observer_attach_before_prompt.
14261 (finalize_python): Set/restore active extension language.
14262 (gdbpy_finish_initialization) Renamed from
14263 finish_python_initialization, made static. New arg extlang.
14264 (gdbpy_initialized): New function.
14265 * python/python.h: #include "extension.h". Delete #include
14266 "value.h", "mi/mi-cmds.h".
14267 (extension_language_python): Declare.
14268 (GDBPY_AUTO_FILE_NAME): Delete.
14269 (enum py_bt_status): Moved to extension.h and renamed to
14270 ext_lang_bt_status.
14271 (enum frame_filter_flags): Moved to extension.h.
14272 (enum py_frame_args): Moved to extension.h and renamed to
14273 ext_lang_frame_args.
14274 (finish_python_initialization): Delete.
14275 (eval_python_from_control_command): Delete.
14276 (source_python_script): Delete.
14277 (apply_val_pretty_printer): Delete.
14278 (apply_frame_filter): Delete.
14279 (preserve_python_values): Delete.
14280 (gdbpy_script_language_defn): Delete.
14281 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14282 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14283
14284 * auto-load.c: #include "extension.h".
14285 (GDB_AUTO_FILE_NAME): Delete.
14286 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14287 (script_language_gdb): Delete, moved to extension.c and renamed to
14288 extension_language_gdb.
14289 (source_gdb_script_for_objfile): Delete.
14290 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14291 (loaded_script): Change type of language member to
14292 struct extension_language_defn *.
14293 (init_loaded_scripts_info): Initialize
14294 unsupported_script_warning_printed.
14295 (maybe_add_script): Make static. Change type of language arg to
14296 struct extension_language_defn *.
14297 (clear_section_scripts): Reset unsupported_script_warning_printed.
14298 (auto_load_objfile_script_1): Rewrite to use extension language API.
14299 (auto_load_objfile_script): Make public. Remove support-compiled-in
14300 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14301 (source_section_scripts): Rewrite to use extension language API.
14302 (load_auto_scripts_for_objfile): Rewrite to use
14303 auto_load_scripts_for_objfile.
14304 (collect_matching_scripts_data): Change type of language member to
14305 struct extension_language_defn *.
14306 (auto_load_info_scripts): Change type of language arg to
14307 struct extension_language_defn *.
14308 (unsupported_script_warning_print): New function.
14309 (script_not_found_warning_print): Make static.
14310 (_initialize_auto_load): Rewrite construction of scripts-directory
14311 help.
14312 * auto-load.h (struct objfile): Add forward decl.
14313 (struct script_language): Delete.
14314 (struct auto_load_pspace_info): Add forward decl.
14315 (struct extension_language_defn): Add forward decl.
14316 (maybe_add_script): Delete.
14317 (auto_load_objfile_script): Declare.
14318 (script_not_found_warning_print): Delete.
14319 (auto_load_info_scripts): Update prototype.
14320 (auto_load_gdb_scripts_enabled): Declare.
14321 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14322 auto_load_python_scripts_enabled and made public.
14323 (script_language_python): Delete, moved to python.c.
14324 (gdbpy_script_language_defn): Delete.
14325 (info_auto_load_python_scripts): Update to use
14326 extension_language_python.
14327
14328 * breakpoint.c (condition_command): Replace call to
14329 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14330 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14331 with call to breakpoint_ext_lang_cond_says_stop.
14332 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14333 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14334 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14335 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14336 New arg slang.
14337 (local_setattro): Print name of extension language with existing
14338 stop condition.
14339
14340 * valprint.c (val_print, value_print): Update to call
14341 apply_ext_lang_val_pretty_printer.
14342 * cp-valprint.c (cp_print_value): Update call to
14343 apply_ext_lang_val_pretty_printer.
14344 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14345 (gdbpy_apply_val_pretty_printer): Renamed from
14346 apply_val_pretty_printer. New arg extlang.
14347 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14348
14349 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14350 extension language API.
14351 * cli/cli-script.c (execute_control_command): Update to call
14352 eval_ext_lang_from_control_command.
14353
14354 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14355 enum ext_lang_bt_status values. Update call to
14356 apply_ext_lang_frame_filter.
14357 (mi_cmd_stack_list_locals): Ditto.
14358 (mi_cmd_stack_list_args): Ditto.
14359 (mi_cmd_stack_list_variables): Ditto.
14360 * mi/mi-main.c: Delete #include "python/python-internal.h".
14361 Add #include "extension.h".
14362 (mi_cmd_list_features): Replace reference to python internal variable
14363 gdb_python_initialized with call to ext_lang_initialized_p.
14364
14365 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14366 Update to use enum ext_lang_frame_args. Update to call
14367 apply_ext_lang_frame_filter.
14368 * python/py-framefilter.c (extract_sym): Update to use enum
14369 ext_lang_bt_status.
14370 (extract_value, py_print_type, py_print_value): Ditto.
14371 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14372 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14373 (py_print_frame): Ditto.
14374 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14375 New arg extlang. Update to use enum ext_lang_bt_status.
14376
14377 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14378 finish_python_initialization. Replace with call to
14379 finish_ext_lang_initialization.
14380
14381 * typeprint.c (do_free_global_table): Update to call
14382 free_ext_lang_type_printers.
14383 (create_global_typedef_table): Update to call
14384 start_ext_lang_type_printers.
14385 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14386 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14387 (type_print_options): Change type of global_printers from "void *"
14388 to "struct ext_lang_type_printers *".
14389
14390 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14391 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14392 (gdbpy_preserve_values): Renamed from preserve_python_values.
14393 New arg extlang.
14394 (!HAVE_PYTHON, preserve_python_values): Delete.
14395
14396 * utils.c (quit_flag): Delete, moved to extension.c.
14397 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14398 extension.c.
14399
14400 * eval.c: Delete #include "python/python.h".
14401 * main.c: Delete #include "python/python.h".
14402
14403 * defs.h: Update comment.
14404
6af79985
JB
144052014-02-06 Joel Brobecker <brobecker@adacore.com>
14406
14407 GDB 7.7 released.
14408
12c5175d
MK
144092014-02-05 Mark Kettenis <kettenis@gnu.org>
14410
14411 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14412 defined.
14413
8dc5b319
YQ
144142014-02-05 Yao Qi <yao@codesourcery.com>
14415
14416 * remote.c (remote_pass_signals): Remove local 'buf' and use
14417 rs->buf.
14418 (remote_program_signals): Likewise.
14419
de7b2893
YQ
144202014-02-05 Yao Qi <yao@codesourcery.com>
14421
14422 * ctf.c: Include "inferior.h" and "gdbthread.h".
14423 (CTF_PID): A new macro.
14424 (ctf_open): Call inferior_appeared and add_thread_silent.
14425 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14426 (ctf_thread_alive): New function.
14427 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14428
66d032ac
YQ
144292014-02-05 Yao Qi <yao@codesourcery.com>
14430
14431 Revert this patch:
14432
14433 2013-05-24 Yao Qi <yao@codesourcery.com>
14434
14435 * tracepoint.c (TFILE_PID): Remove.
14436 (tfile_open): Don't add thread and inferior.
14437 (tfile_close): Don't set 'inferior_ptid'. Don't call
14438 exit_inferior_silent.
14439 (tfile_thread_alive): Remove.
14440 (init_tfile_ops): Don't set field 'to_thread_alive' of
14441 tfile_ops.
14442
f4ccffad
CE
144432014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14444
14445 * remote.c (remote_start_remote): Call remote_check_symbols even
14446 if only symbol-file (not file) has been given.
14447
591a12a1
UW
144482014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14449
14450 * gdbarch.sh (skip_entrypoint): New callback.
14451 * gdbarch.c, gdbarch.h: Regenerate.
14452 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14453 * infrun.c (fill_in_stop_func): Likewise.
14454 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14455 (ppc_elfv2_elf_make_msymbol_special): New function.
14456 (ppc_elfv2_skip_entrypoint): Likewise.
14457 (ppc_linux_init_abi): Install them for ELFv2.
14458
cc0e89c5
UW
144592014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14460
14461 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14462 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14463 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14464 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14465 structures returned in GPRs.
14466
52f548e4
UW
144672014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14468
14469 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14470 offset to the stack parameter list for the ELFv2 ABI.
14471
d4094b6a
UW
144722014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14473
14474 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14475 set_gdbarch_convert_from_func_ptr_addr and
14476 set_gdbarch_elf_make_msymbol_special for ELFv1.
14477 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14478 function descriptors on ELFv1.
14479 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14480 set up r12 at function entry.
14481
cd453cd0
UW
144822014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14483
14484 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14485 (struct gdbarch_tdep): New member elf_abi.
14486
14487 * rs6000-tdep.c: Include "elf/ppc64.h".
14488 (rs6000_gdbarch_init): Detect ELF ABI version.
14489
0ff3e01f
UW
144902014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14491
14492 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14493 within a register pair holding a DFP 128-bit value on little-endian.
14494 (ppc64_sysv_abi_return_value_base): Likewise.
14495 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14496 (dfp_pseudo_register_write): Likewise.
14497
5b757e5d
UW
144982014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14499
14500 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14501 offset on little-endian when passing _Decimal32.
14502 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14503
084ee545
UW
145042014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14505
14506 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14507 of the overlapped FP register within the VSX register on little-
14508 endian platforms.
14509 (efpr_pseudo_register_write): Likewise.
14510
d63167af
UW
145112014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14512
14513 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14514 offset on little-endian when passing small structures.
14515
e765b44c
UW
145162014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14517
14518 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14519 (struct ppc64_sysv_argpos): New data structure.
14520 (ppc64_sysv_abi_push_float): Remove.
14521 (ppc64_sysv_abi_push_val): New function.
14522 (ppc64_sysv_abi_push_integer): Likewise.
14523 (ppc64_sysv_abi_push_freg): Likewise.
14524 (ppc64_sysv_abi_push_vreg): Likewise.
14525 (ppc64_sysv_abi_push_param): Likewise.
14526 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14527 (ppc64_sysv_abi_return_value_base): New function.
14528 (ppc64_sysv_abi_return_value): Refactor to use it.
14529
36c24d95
UW
145302014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14531
14532 * NEWS: Document new target powerpc64le-*-linux*.
14533
26fd9228
MK
145342014-02-04 Mark Kettenis <kettenis@gnu.org>
14535
14536 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14537 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14538 core dumps.
14539 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14540 register set used in ELF core dumps. Add floating-point register set.
14541
c5bb7362
KB
145422014-02-03 Kevin Buettner <kevinb@redhat.com>
14543
74228e77 14544 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
14545 dwarf2_to_gdb[] table using symbolic constants. Adjust
14546 penultimate entry from number representing the PC register
14547 to symbolic constant representing the MDR register. Add
14548 constant for the PC register to the end of the table.
14549
af09351e
MK
145502014-02-03 Mark Kettenis <kettenis@gnu.org>
14551
14552 * bsd-kvm.c: Include <sys/param.h>
14553
8507e05d
MK
145542014-02-03 Mark Kettenis <kettenis@gnu.org>
14555
14556 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14557
ae56bfb8
JB
145582014-01-31 Joel Brobecker <brobecker@adacore.com>
14559
14560 * ada-lang.h (clear_ada_sym_cache): Delete.
14561
718ee4dc
UW
145622014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14563
14564 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14565
401e27fd
JM
145662014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14567
14568 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14569 the sigreturn register save area only if the syscall is
14570 sigreturn.
14571
a7c88acd
JB
145722014-01-29 Joel Brobecker <brobecker@adacore.com>
14573
14574 * valops.c (value_slice): Minor reformatting.
14575
fa0079ea
UW
145762014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14577
14578 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14579
c6044dd1
JB
145802014-01-28 Joel Brobecker <brobecker@adacore.com>
14581
14582 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14583 New static globals.
14584 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14585 (ada_ignore_descriptive_types_p): New static global.
14586 (find_parallel_type_by_descriptive_type): Return immediately
14587 if ada_ignore_descriptive_types_p is set.
14588 (_initialize_ada_language): Register new commands "maintenance
14589 set ada", "maintenance show ada", "maintenance set ada
14590 ignore-descriptive-types" and "maintenance show ada
14591 ignore-descriptive-types".
14592 * NEWS: Add entry for new "maint ada set/show
14593 ignore-descriptive-types" commands.
14594
568e808b
MM
145952014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14596
14597 * record-btrace.c (record_btrace_close): Call btrace_teardown
14598 for all threads.
14599
467d141b
JB
146002014-01-27 Joel Brobecker <brobecker@adacore.com>
14601
14602 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14603 "ui-out.h".
14604
fb151210
JB
146052014-01-27 Joel Brobecker <brobecker@adacore.com>
14606
14607 * ada-typeprint (type_is_full_subrange_of_target_type):
14608 New function.
14609 (print_range): Add parameter bounds_prefered_p. If not set,
14610 try printing range types using the name of their base type.
14611 (print_range_type): Add parameter bounds_prefered_p.
14612 Use it in call to print_range.
14613 (print_array_type, ada_print_type): Update calls to print_range
14614 and print_range_type.
14615
aba02109
JB
146162014-01-27 Joel Brobecker <brobecker@adacore.com>
14617
14618 * ada-typeprint.c (print_array_type, print_choices, print_range)
14619 (print_range_bound, print_dynamic_range_bound, print_range_type):
14620 Remove declaration.
14621
e62e21fd
JB
146222014-01-27 Joel Brobecker <brobecker@adacore.com>
14623
14624 * ada-typeprint.c (print_range): Add missing empty line
14625 after local declaration.
14626
859cf5d1
JB
146272014-01-27 Joel Brobecker <brobecker@adacore.com>
14628
14629 * ada-valprint.c (print_optional_low_bound): Get index_type's
14630 target type for as long as it is a TYPE_CODE_RANGE.
14631
25790f6f
JB
146322014-01-27 Joel Brobecker <brobecker@adacore.com>
14633
14634 * procfs.c (procfs_make_note_section): Remove assertion and
14635 associated comment.
14636
6b6aa828
YQ
146372014-01-24 Yao Qi <yao@codesourcery.com>
14638
14639 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14640 * corelow.c (get_core_siginfo): Likewise.
14641
5d6df423
YQ
146422014-01-24 Yao Qi <yao@codesourcery.com>
14643
14644 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14645 ULONGEST. Don't check 'len' is negative.
14646 (remote_write_bytes): Change type of 'len' to ULONGEST.
14647
83b645b8
TT
146482014-01-23 Tom Tromey <tromey@redhat.com>
14649
14650 PR python/16485:
14651 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14652 Handle exception from frame.block.
14653 (FrameVars.fetch_frame_locals): Likewise.
14654
0740f8d8
TT
146552014-01-23 Tom Tromey <tromey@redhat.com>
14656
14657 PR python/16487:
14658 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14659 on a NULL pointer. Move "goto error" to correct place.
14660
21909fa1
TT
146612014-01-23 Tom Tromey <tromey@redhat.com>
14662
14663 PR python/16491:
14664 * python/py-framefilter.c (apply_frame_filter): Call
14665 ensure_python_env after computing gdbarch.
14666
17fde6d0
YQ
146672014-01-23 Yao Qi <yao@codesourcery.com>
14668
14669 * target.c (raw_memory_xfer_partial): Change argument type
14670 from void * to gdb_byte *.
14671 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14672
87ce2a04
DE
146732014-01-22 Doug Evans <dje@google.com>
14674
14675 New gdbserver option --debug-format=timestamp.
14676 * NEWS: Mention it.
14677
237b092b
AA
146782014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14679
14680 * syscalls/s390x-linux.xml: New file.
14681 * syscalls/s390-linux.xml: New file.
14682 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14683 (XML_SYSCALL_FILENAME_S390X): Likewise.
14684 (op_svc): New enum value for SVC opcode.
14685 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14686 (s390_linux_get_syscall_number): New function.
14687 (s390_gdbarch_init): Register '*get_syscall_number' and the
14688 syscall xml file name.
14689 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14690 "s390-linux.xml" and "s390x-linux.xml".
14691 * NEWS: Announce new feature.
14692
54bff650
BS
146932014-01-22 Baruch Siach <baruch@tkos.co.il>
14694
14695 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14696
14e361d7
PA
146972014-01-22 Pedro Alves <palves@redhat.com>
14698
14699 * xtensa-config.c: Include defs.h.
14700
46bbb3ed
JB
147012014-01-22 Joel Brobecker <brobecker@adacore.com>
14702
14703 * common/common-utils.h: Add "ARI:" comment beside __func__
14704 reference.
14705
3a80edfc
JB
147062014-01-22 Joel Brobecker <brobecker@adacore.com>
14707
14708 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14709 documentation a bit.
14710
4869db5e
RM
147112014-01-21 Roland McGrath <mcgrathr@google.com>
14712
14713 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14714 * configure: Regenerate.
14715 * aclocal.m4: Regenerate.
14716 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14717 New substituted variables.
14718 (install-strip): New target.
14719 (INSTALL_SCRIPT): New substituted variable.
14720 (FLAGS_TO_PASS): Add it.
14721 (install-only): Use $(INSTALL_SCRIPT) rather than
14722 $(INSTALL_PROGRAM) for gcore.
14723
9ea4267d
TT
147242014-01-20 Tom Tromey <tromey@redhat.com>
14725
14726 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14727 together.
14728
1f2bdf09
TT
147292014-01-20 Tom Tromey <tromey@redhat.com>
14730
14731 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14732 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14733 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14734 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14735 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14736 (struct cmd_list_element) <flags>: Remove.
14737 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14738 doc_allocated>: New fields.
14739 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14740 bitfields.
14741 * maint.c (maintenance_do_deprecate): Update.
14742 * top.c (execute_command): Update.
14743
e671835b
BS
147442014-01-20 Baruch Siach <baruch@tkos.co.il>
14745
14746 * xtensa-linux-nat.c: Include asm/ptrace.h.
14747
50367cd2
IB
147482014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14749
14750 * Makefile.in (SFILES): Add d-support.c.
14751 (COMMON_OBS): Add d-support.o.
14752 * d-lang.h (d_parse_symbol): Add comment, now defined in
14753 d-support.c.
14754 * d-lang.c (parse_call_convention)
14755 (parse_attributes, parse_function_types)
14756 (parse_function_args, parse_type, parse_identifier)
14757 (call_convention_p, d_parse_symbol): Move functions to ...
14758 * d-support.c: ... New file.
14759
ec9f644a
IB
147602014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14761
14762 * d-lang.h (d_parse_symbol): Add declaration.
14763 * d-lang.c (extract_identifiers)
14764 (extract_type_info): Remove functions.
14765 (parse_call_convention, parse_attributes)
14766 (parse_function_types, parse_function_args)
14767 (parse_type, parse_identifier, call_convention_p)
14768 (d_parse_symbol): New functions.
14769 (d_demangle): Use d_parse_symbol to demangle D symbols.
14770
94b1b47e
IB
147712014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14772
14773 * d-lang.h (struct builtin_d_type): New data type.
14774 (builtin_d_type): Add declaration.
14775 * d-lang.c (d_language_arch_info, build_d_types)
14776 (builtin_d_type): New functions.
14777 (enum d_primitive_types): New data type.
14778 (d_language_defn): Change c_language_arch_info to
14779 d_language_arch_info.
14780 (d_type_data): New static variable.
14781 (_initialize_d_language): Initialize d_type_data.
14782
63778547
IB
147832014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14784
14785 * d-lang.h (d_main_name): Add declaration.
14786 * d-lang.c (d_main_name): New function.
14787 * symtab.c (find_main_name): Add call to d_main_name.
14788
3271ba66
IB
147892014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14790
14791 * d-lang.c (d_language_defn): Change macro_expansion_c to
14792 macro_expansion_no.
14793
d36b3012
IB
147942014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14795
14796 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14797
c90a6fb7
SDJ
147982014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14799
14800 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14801 gdb_exception" declaration.
14802 * remote.c (getpkt_or_notif_sane): Likewise.
14803
749234e5
DE
148042014-01-17 Doug Evans <dje@google.com>
14805
14806 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14807 function, contents of dirnames_to_char_ptr_vec_append moved here.
14808 (delim_string_to_char_ptr_vec): New function.
14809 (dirnames_to_char_ptr_vec_append): Rewrite.
14810 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14811
df049a58
DE
148122014-01-17 Doug Evans <dje@google.com>
14813
14814 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14815 and moved here ...
14816 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14817 #include "common-utils.h".
14818 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14819 * common/vec.h (VEC_ASSERT_PASS): Update.
14820 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14821 (MACH_CHECK_ERROR): Update.
14822
69f97648
SM
148232014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14824
14825 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14826 comments.
14827 * gdbarch.h: Regenerate.
14828
98b1cfdc
TT
148292014-01-16 Tom Tromey <tromey@redhat.com>
14830
14831 * value.c (struct value) <regnum>: Move earlier.
14832
77a19445
TT
148332014-01-16 Tom Tromey <tromey@redhat.com>
14834
14835 * remote.c (extended_remote_create_inferior): Rename from
14836 extended_remote_create_inferior_1. Add "ops" argument. Remove
14837 old implementation.
14838
62261490
PA
148392014-01-16 Pedro Alves <palves@redhat.com>
14840
14841 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14842 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14843 the backchain.
14844
4d65956b
DE
148452014-01-16 Doug Evans <dje@google.com>
14846
14847 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14848
52834460
MM
148492014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14850
14851 * btrace.h (btrace_thread_flag): New.
14852 (struct btrace_thread_info) <flags>: New.
14853 * record-btrace.c (record_btrace_resume_thread)
14854 (record_btrace_find_thread_to_move, btrace_step_no_history)
14855 (btrace_step_stopped, record_btrace_start_replaying)
14856 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14857 (record_btrace_find_resume_thread): New.
14858 (record_btrace_resume, record_btrace_wait): Extend.
14859 (record_btrace_can_execute_reverse): New.
14860 (record_btrace_open): Fail in non-stop mode.
14861 (record_btrace_set_replay): Split into this, ...
14862 (record_btrace_stop_replaying): ... this, ...
14863 (record_btrace_clear_histories): ... and this.
14864 (init_record_btrace_ops): Init to_can_execute_reverse.
14865 * NEWS: Announce it.
14866
118e6252
MM
148672014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14868
14869 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14870 (forward_target_decr_pc_after_break)
14871 (target_decr_pc_after_break): New.
14872 * target.c (forward_target_decr_pc_after_break)
14873 (target_decr_pc_after_break): New.
14874 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14875 instead of gdbarch_decr_pc_after_break.
14876 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14877 instead of gdbarch_decr_pc_after_break.
14878 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14879 instead of gdbarch_decr_pc_after_break.
14880 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14881 instead of gdbarch_decr_pc_after_break.
14882 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14883 instead of gdbarch_decr_pc_after_break.
14884 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14885 instead of gdbarch_decr_pc_after_break.
14886
6e07b1d2
MM
148872014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14888
14889 * btrace.c: Include regcache.h.
14890 (btrace_add_pc): New.
14891 (btrace_enable): Call btrace_add_pc.
14892 (btrace_is_empty): New.
14893 * btrace.h (btrace_is_empty): New.
14894 * record-btrace.c (require_btrace, record_btrace_info): Call
14895 btrace_is_empty.
14896
969c39fb
MM
148972014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14898
14899 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14900 Support delta reads.
14901 (linux_disable_btrace): Change return type.
14902 * common/linux-btrace.h (linux_read_btrace): Change parameters
14903 and return type to allow error reporting. Update users.
14904 (linux_disable_btrace): Change return type. Update users.
14905 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14906 New.
14907 (btrace_error): New.
14908 (btrace_block) <begin>: Comment on BEGIN == 0.
14909 * btrace.c (btrace_compute_ftrace): Start from the end of
14910 the current trace.
14911 (btrace_stitch_trace, btrace_clear_history): New.
14912 (btrace_fetch): Read delta trace, return if replaying.
14913 (btrace_clear): Move clear history code to btrace_clear_history.
14914 (parse_xml_btrace): Throw an error if parsing failed.
14915 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14916 and return type to allow error reporting.
14917 (target_read_btrace): Change parameters and return type to allow
14918 error reporting.
14919 * target.c (target_read_btrace): Update.
14920 * remote.c (remote_read_btrace): Support delta reads. Pass
14921 errors on.
14922 * NEWS: Announce it.
14923
0b722aec
MM
149242014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14925
14926 * record.h (record_btrace_frame_unwind)
14927 (record_btrace_tailcall_frame_unwind): New declarations.
14928 * dwarf2-frame: Include record.h
14929 (dwarf2_frame_cfa): Throw an error for btrace frames.
14930 * record-btrace.c: Include hashtab.h.
14931 (btrace_get_bfun_name): New.
14932 (btrace_call_history): Call btrace_get_bfun_name.
14933 (struct btrace_frame_cache): New.
14934 (bfcache): New.
14935 (bfcache_hash, bfcache_eq, bfcache_new): New.
14936 (btrace_get_frame_function): New.
14937 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14938 (record_btrace_frame_this_id): Compute own id.
14939 (record_btrace_frame_prev_register): Provide PC, throw_error
14940 for all other registers.
14941 (record_btrace_frame_sniffer): Detect btrace frames.
14942 (record_btrace_tailcall_frame_sniffer): New.
14943 (record_btrace_frame_dealloc_cache): New.
14944 (record_btrace_frame_unwind): Add new functions.
14945 (record_btrace_tailcall_frame_unwind): New.
14946 (_initialize_record_btrace): Allocate cache.
14947 * btrace.c (btrace_clear): Call reinit_frame_cache.
14948 * NEWS: Announce it.
14949
066ce621
MM
149502014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14951
14952 * record-btrace.c (record_btrace_set_replay)
14953 (record_btrace_goto_begin, record_btrace_goto_end)
14954 (record_btrace_goto): New.
14955 (init_record_btrace_ops): Initialize them.
14956 * NEWS: Announce it.
14957
e2887aa3
MM
149582014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14959
14960 * record-btrace.c (record_btrace_find_new_threads)
14961 (record_btrace_thread_alive): New.
14962 (init_record_btrace_ops): Initialize to_find_new_threads and
14963 to_thread_alive.
14964
b2f4cfde
MM
149652014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14966
14967 * record-btrace.c (record_btrace_resume): New.
14968 (record_btrace_wait): New.
14969 (init_record_btrace_ops): Initialize to_wait and to_resume.
14970
633785ff
MM
149712014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14972
14973 * record-btrace.c (record_btrace_xfer_partial)
14974 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14975 (record_btrace_allow_memory_access): New.
14976 (init_record_btrace_ops): Initialize new methods.
14977 * target.c (raw_memory_xfer_partial): Bail out if target reports
14978 that this memory is not available.
14979
3db08215
MM
149802014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14981
14982 * target.h (target_ops) <to_insert_breakpoint>
14983 <to_remove_breakpoint>: Add target_ops parameter.
14984 (forward_target_insert_breakpoint): New.
14985 (forward_target_remove_breakpoint): New.
14986 (memory_remove_breakpoint, memory_insert_breakpoint):
14987 Add target_ops parameter.
14988 * target.c (target_insert_breakpoint): Split into this and ...
14989 (forward_target_insert_breakpoint): ... this.
14990 (target_remove_breakpoint): Split into this and ...
14991 (forward_target_remove_breakpoint): ... this.
14992 (debug_to_insert_breakpoint): Add target_ops parameter.
14993 Call forward_target_insert_breakpoint.
14994 (debug_to_remove_breakpoint): Add target_ops parameter.
14995 Call forward_target_remove_breakpoint.
14996 (update_current_target): Do not inherit or default to_insert_breakpoint
14997 and to_remove_breakpoint.
14998 * corelow.c (ignore): Add target_ops parameter.
14999 * exec.c (ignore): Add target_ops parameter.
15000 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
15001 Add target_ops parameter.
15002 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
15003 Add target_ops parameter.
15004 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
15005 Add target_ops parameter.
15006 * record-full.c (record_full_beneath_to_insert_breakpoint)
15007 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
15008 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
15009 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
15010 (record_full_core_remove_breakpoint): Add target_ops parameter.
15011 Update users.
15012 (record_full_beneath_to_insert_breakpoint_ops)
15013 (record_full_beneath_to_remove_breakpoint_ops)
15014 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
15015 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
15016 tmp_to_remove_breakpoint_ops,
15017 record_full_beneath_to_insert_breakpoint_ops, and
15018 record_full_beneath_to_remove_breakpoint_ops.
15019 * remote-m32r-sdi.c (m32r_insert_breakpoint)
15020 (m32r_remove_breakpoint): Add target_ops parameter.
15021 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15022 Add target_ops parameter.
15023 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15024 Add target_ops parameter.
15025
cecac1ab
MM
150262014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15027 Markus Metzger <markus.t.metzger@intel.com>
15028
15029 * record-btrace.c: Include frame-unwind.h.
15030 (record_btrace_frame_unwind_stop_reason)
15031 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15032 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15033 New.
15034 (init_record_btrace_ops): Install it.
15035
824344ca
MM
150362014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15037
15038 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15039 get_prev_frame_1.
15040
32261e52
MM
150412014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15042
15043 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15044 earlier.
15045
ea001bdc
MM
150462014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15047
15048 * frame-unwind.c: Include target.h.
15049 (frame_unwind_try_unwinder): New function with code from ...
15050 (frame_unwind_find_by_frame): ... here. New variable
15051 unwinder_from_target, call also target_get_unwinder)
15052 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15053 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15054 * target.h (struct target_ops): New fields to_get_unwinder and
15055 to_get_tailcall_unwinder.
15056 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15057
1f3ef581
MM
150582014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15059
15060 * record-btrace.c (record_btrace_fetch_registers)
15061 (record_btrace_store_registers)
15062 (record_btrace_to_prepare_to_store): New.
15063 (init_record_btrace_ops): Add the above.
15064
f32dbf8c
MM
150652014-01-16 Tom Tromey <tromey@redhat.com>
15066
15067 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15068 * target.h (struct target_ops) <to_prepare_to_store>: Add
15069 argument.
15070 (target_prepare_to_store): Add argument.
15071 * target.c (debug_to_prepare_to_store): Add argument.
15072 (update_current_target): Update.
15073 * remote.c (remote_prepare_to_store): Add 'self' argument.
15074 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15075 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15076 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15077 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15078 argument.
15079 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15080 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15081 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15082 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15083 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15084
07bbe694
MM
150852014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15086
15087 * btrace.h (replay) <replay>: New.
15088 (btrace_is_replaying): New.
15089 * btrace.c (btrace_clear): Free replay iterator.
15090 (btrace_is_replaying): New.
15091 * record-btrace.c (record_btrace_is_replaying): New.
15092 (record_btrace_info): Print insn number if replaying.
15093 (record_btrace_insn_history): Start at replay position.
15094 (record_btrace_call_history): Start at replay position.
15095 (init_record_btrace_ops): Init to_record_is_replaying.
15096
0688d04e
MM
150972014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15098
15099 * record-btrace.c (record_btrace_insn_history_range): Include
15100 end.
15101 (record_btrace_insn_history_from): Adjust range.
15102 (record_btrace_call_history_range): Include
15103 end.
15104 (record_btrace_call_history_from): Adjust range.
15105 * NEWS: Announce changes.
15106
8710b709
MM
151072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15108
15109 * record.h (enum record_print_flag)
15110 <record_print_indent_calls>: New.
15111 * record.c (get_call_history_modifiers): Recognize /c modifier.
15112 (_initialize_record): Document /c modifier.
15113 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15114 Reorder fields. Optionally indent the function name. Update
15115 all users.
15116 * NEWS: Announce changes.
15117
d0fa7535
MM
151182014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15119
15120 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15121
5de9129b
MM
151222014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15123
15124 * btrace.c (ftrace_new_function): Start counting at one.
15125 * record-btrace.c (record_btrace_info): Adjust number of calls
15126 and insns.
15127 * NEWS: Announce it.
15128
7acbe133
MM
151292014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15130
15131 * record-btrace.c (btrace_call_history_insn_range): Print
15132 insn range as [begin, end].
15133
23a7fe75
MM
151342014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15135
15136 * btrace.h (struct btrace_func_link): New.
15137 (enum btrace_function_flag): New.
15138 (struct btrace_inst): Rename to ...
15139 (struct btrace_insn): ...this. Update all users.
15140 (struct btrace_func) <ibegin, iend>: Remove.
15141 (struct btrace_func_link): New.
15142 (struct btrace_func): Rename to ...
15143 (struct btrace_function): ...this. Update all users.
15144 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15145 (number, level, flags>: New.
15146 (struct btrace_insn_iterator): Rename to ...
15147 (struct btrace_insn_history): ...this.
15148 Update all users.
15149 (struct btrace_insn_iterator, btrace_call_iterator): New.
15150 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15151 (struct btrace_target_info) <begin, end, level>
15152 <insn_history, call_history>: New.
15153 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15154 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15155 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15156 (btrace_call_number, btrace_call_begin, btrace_call_end)
15157 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15158 (btrace_find_function_by_number, btrace_set_insn_history)
15159 (btrace_set_call_history): New.
15160 * btrace.c (btrace_init_insn_iterator)
15161 (btrace_init_func_iterator, compute_itrace): Remove.
15162 (ftrace_print_function_name, ftrace_print_filename)
15163 (ftrace_skip_file): Change
15164 parameter to const.
15165 (ftrace_init_func): Remove.
15166 (ftrace_debug): Use new btrace_function fields.
15167 (ftrace_function_switched): Also consider gaining and
15168 losing symbol information).
15169 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15170 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15171 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15172 New.
15173 (ftrace_new_function): Move. Remove debug print.
15174 (ftrace_update_lines, ftrace_update_insns): New.
15175 (ftrace_update_function): Check for call, ret, and jump.
15176 (compute_ftrace): Renamed to ...
15177 (btrace_compute_ftrace): ...this. Rewritten to compute call
15178 stack.
15179 (btrace_fetch, btrace_clear): Updated.
15180 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15181 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15182 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15183 (btrace_call_number, btrace_call_begin, btrace_call_end)
15184 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15185 (btrace_find_function_by_number, btrace_set_insn_history)
15186 (btrace_set_call_history): New.
15187 * record-btrace.c (require_btrace): Use new btrace thread
15188 info fields.
15189 (record_btrace_info, btrace_insn_history)
15190 (record_btrace_insn_history, record_btrace_insn_history_range):
15191 Use new btrace thread info fields and new iterator.
15192 (btrace_func_history_src_line): Rename to ...
15193 (btrace_call_history_src_line): ...this. Use new btrace
15194 thread info fields.
15195 (btrace_func_history): Rename to ...
15196 (btrace_call_history): ...this. Use new btrace thread info
15197 fields and new iterator.
15198 (record_btrace_call_history, record_btrace_call_history_range):
15199 Use new btrace thread info fields and new iterator.
15200
8372a7cb
MM
152012014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15202
15203 * frame.h (frame_id_build_unavailable_stack_special): New.
15204 * frame.c (frame_id_build_unavailable_stack_special): New.
15205
c2170eef
MM
152062014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15207
15208 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15209 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15210 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15211 to gdbarch.
15212 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15213 (i386_insn_is_jump, i386_jmp_p): New.
15214 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15215 insn_is_jump to gdbarch.
15216 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15217 * gdbarch.h: Regenerated.
15218 * gdbarch.c: Regenerated.
15219 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15220 (default_insn_is_jump): New.
15221 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15222 (default_insn_is_jump): New.
15223
864089d2
MM
152242014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15225
15226 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15227 Change to ...
15228 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15229 (btrace_read_type) <btrace_read_new>: Change to ...
15230 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15231
ed9edfb5
MM
152322014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15233
15234 * common/linux-btrace.c (linux_read_btrace): Free trace from
15235 previous iteration.
15236
fbcbc3fd
DE
152372014-01-15 Doug Evans <dje@google.com>
15238
15239 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15240 uint32_t.
15241
3d548a53
TT
152422014-01-15 Tom Tromey <tromey@redhat.com>
15243
15244 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15245 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15246 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15247 (set_objfile_main_name): New function.
15248 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15249 language_of_main>: New fields.
15250 (set_objfile_main_name): Declare.
15251 * symtab.c (find_main_name): Loop over objfiles to find the main
15252 name and language.
15253 (set_main_name): Now static.
15254 (get_main_info): Add comment.
15255 * symtab.h (set_main_name): Don't declare.
15256
32ac0d11
TT
152572014-01-15 Tom Tromey <tromey@redhat.com>
15258
15259 * symtab.c (main_progspace_key): New global.
15260 (struct main_info): New.
15261 (name_of_main, language_of_main): Remove.
15262 (get_main_info, main_info_cleanup): New function.
15263 (set_main_name, main_name, main_language): Use get_main_info.
15264 (_initialize_symtab): Initialize main_progspace_key.
15265
9e6c82ad
TT
152662014-01-15 Tom Tromey <tromey@redhat.com>
15267
15268 * dbxread.c (process_one_symbol): Update.
15269 * dwarf2read.c (read_partial_die): Update.
15270 * symfile.c (set_initial_language): Call main_language.
15271 * symtab.c (language_of_main): Now static.
15272 (set_main_name): Add 'lang' parameter.
15273 (find_main_name): Update.
15274 (main_language): New function.
15275 (symtab_observer_executable_changed): Update.
15276 * symtab.h (set_main_name): Update.
15277 (language_of_main): Remove.
15278 (main_language): Declare.
15279
6ef55de7
TT
152802014-01-15 Tom Tromey <tromey@redhat.com>
15281
15282 * symfile.c (init_entry_point_info): Use new "initialized" field.
15283 Update.
15284 * objfiles.h (struct entry_point) <initialized>: New field.
15285 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15286 (struct objfile) <ei>: ...here. Remove.
15287 * objfiles.c (entry_point_address_query): Update.
15288
53eddfa6
TT
152892014-01-15 Tom Tromey <tromey@redhat.com>
15290
15291 * objfiles.c (entry_point_address_query): Relocate entry point
15292 address.
15293 (objfile_relocate1): Do not relocate entry point address.
15294 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15295 <the_bfd_section_index>: New field.
15296 * symfile.c (init_entry_point_info): Find the entry point's
15297 section.
15298
d56e56aa
TT
152992014-01-15 Tom Tromey <tromey@redhat.com>
15300
15301 * solib-frv.c (enable_break): Use entry_point_address_query.
15302
33a97bbe
OJ
153032014-01-15 Omair Javaid <omair.javaid@linaro.org>
15304
15305 * NEWS: Add note on improved process record-replay on
15306 arm*-linux* targets.
15307
c6ec2b30
OJ
153082014-01-15 Omair Javaid <omair.javaid@linaro.org>
15309
15310 * arm-tdep.c (enum arm_record_result): New enum.
15311 (arm_record_unsupported_insn): New function.
15312 (arm_record_coproc_data_proc): Removed.
15313 (thumb2_record_ld_st_multiple): New function.
15314 (thumb2_record_ld_st_dual_ex_tbb): New function.
15315 (thumb2_record_data_proc_sreg_mimm): New function.
15316 (thumb2_record_ps_dest_generic): New function.
15317 (thumb2_record_branch_misc_cntrl): New function.
15318 (thumb2_record_str_single_data): New function.
15319 (thumb2_record_ld_mem_hints): New function.
15320 (thumb2_record_ld_word): New function.
15321 (thumb2_record_lmul_lmla_div): New function.
15322 (thumb2_record_decode_insn_handler): New function.
15323 (decode_insn): Add thumb32 instruction handlers.
15324
97dfe206
OJ
153252014-01-15 Omair Javaid <omair.javaid@linaro.org>
15326
15327 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15328 (struct arm_linux_record_tdep): Declare.
15329 (arm_canonicalize_syscall): New function.
15330 (arm_all_but_pc_registers_record): New function.
15331 (arm_linux_syscall_record): New function.
15332 (arm_linux_init_abi): Add syscall recording constructs.
15333 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15334 decoding. (arm_record_coproc_data_proc): Update arm syscall
15335 decoding.
15336 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15337 <arm_syscall_record>: New field.
15338 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15339 gdb_target_obs.
15340
9904a494
OJ
153412014-01-15 Omair Javaid <omair.javaid@linaro.org>
15342
15343 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15344 register for push instruction recording.
15345
f969241e
OJ
153462014-01-15 Omair Javaid <omair.javaid@linaro.org>
15347
15348 * arm-tdep.c (thumb_record_misc): Update to correct logical
15349 error while recording ldm, ldmia and pop instructions.
15350
bfbbec00
OJ
153512014-01-15 Omair Javaid <omair.javaid@linaro.org>
15352
15353 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15354
e40adcc9
PA
153552014-01-15 Pedro Alves <palves@redhat.com>
15356
15357 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15358 (go32_resume, go32_fetch_registers, store_register)
15359 (go32_store_registers, go32_prepare_to_store)
15360 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15361 (go32_create_inferior, go32_can_run, go32_terminal_init)
15362 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15363 declarations.
15364
b0a16e66
TT
153652014-01-15 Tom Tromey <tromey@redhat.com>
15366
15367 * target.h (async_callback_ftype): New typedef.
15368 (struct target_ops) <to_async>: Use it.
15369
bf7105a4
JB
153702014-01-15 Joel Brobecker <brobecker@adacore.com>
15371
15372 * python/py-value.c (get_field_type): Remove unnecessary curly
15373 braces for single-statement if block.
15374
a8f35c2e
JB
153752014-01-15 Joel Brobecker <brobecker@adacore.com>
15376
15377 * python/py-type.c (convert_field): Add missing empty line
15378 after declarations.
15379
bb4142cf
DE
153802014-01-14 Doug Evans <dje@google.com>
15381
15382 * symfile.h (expand_symtabs_matching): Renamed from
15383 expand_partial_symbol_names. Update prototype.
15384 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15385 * symfile.c (expand_symtabs_matching): Renamed from
15386 expand_partial_symbol_names. New args file_matcher, kind.
15387 Rename arg fun to symbol_matcher.
15388 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15389 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15390 ada_expand_partial_symbol_name.
15391 (ada_make_symbol_completion_list): Update to call
15392 expand_symtabs_matching.
15393 (ada_add_global_exceptions): Call expand_symtabs_matching.
15394 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15395 call map_symbol_filenames.
15396 * symtab.c (sources_info): Update to call map_symbol_filenames.
15397 (search_symbols): Call expand_symtabs_matching.
15398 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15399 (default_make_symbol_completion_list_break_on): Update to call
15400 expand_symtabs_matching.
15401 (make_source_files_completion_list): Update to call
15402 map_symbol_filenames.
15403
206f2a57
DE
154042014-01-14 Doug Evans <dje@google.com>
15405
15406 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15407 (expand_symtabs_symbol_matcher_ftype): New typedef.
15408 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15409 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15410 * symfile.c (expand_partial_symbol_names): Update to use
15411 expand_symtabs_symbol_matcher_ftype.
15412 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15413 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15414 Arg name_matcher renamed to symbol_matcher.
15415 * psymtab.c (recursively_search_psymtabs): Update to use
15416 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15417 sym_matcher.
15418 (expand_symtabs_matching_via_partial): Update to use
15419 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15420 Arg name_matcher renamed to symbol_matcher.
15421
540c2971
DE
154222014-01-14 Doug Evans <dje@google.com>
15423
15424 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15425 (map_partial_symbol_filenames): Ditto.
15426 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15427 (map_partial_symbol_filenames): Ditto.
15428 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15429 (map_partial_symbol_filenames): Ditto.
15430 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15431 (map_partial_symbol_filenames): Ditto.
15432 * symtab.c: Delete #include "psymtab.h".
15433
8213266a
PA
154342014-01-14 Pedro Alves <palves@redhat.com>
15435 Tom Tromey <tromey@redhat.com>
15436
15437 * infrun.c (use_displaced_stepping): Use find_record_target
15438 instead of RECORD_IS_USED.
15439 (adjust_pc_after_break): Use record_full_is_used instead of
15440 RECORD_IS_USED.
15441 * record-btrace.c (record_btrace_open): Call record_preopen
15442 instead of checking RECORD_IS_USED.
15443 * record-full.c (record_full_shortname)
15444 (record_full_core_shortname): New globals.
15445 (record_full_is_used): New function.
15446 (find_full_open): Call record_preopen instead of checking
15447 RECORD_IS_USED.
15448 (init_record_full_ops): Set the target's shortname to
15449 record_full_shortname.
15450 (init_record_full_core_ops): Set the target's shortname to
15451 record_full_core_shortname.
15452 * record-full.h (record_full_is_used): Declare.
15453 * record.c (find_record_target): Make extern.
15454 (record_preopen): New function.
15455 * record.h (RECORD_IS_USED): Delete macro.
15456 (find_record_target, record_preopen): Declare functions.
15457
7ec1862d
YQ
154582014-01-14 Yao Qi <yao@codesourcery.com>
15459
15460 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15461 'len''s type to ULONGEST.
15462 (core_xfer_shared_libraries_aix): Likewise.
15463 * gdbarch.c, gdbarch.h: Regenerated.
15464 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15465 Change type of 'len' to ULONGEST.
15466 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15467 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15468
dea80a27
YQ
154692014-01-14 Yao Qi <yao@codesourcery.com>
15470
15471 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15472 type of 'len' to ULONGEST.
15473 (linux_xfer_osdata_processgroups): Likewise.
15474 (linux_xfer_osdata_threads): Likewise.
15475 (linux_xfer_osdata_fds): Likewise.
15476 (linux_xfer_osdata_isockets): Likewise.
15477 (linux_xfer_osdata_shm): Likewise.
15478 (linux_xfer_osdata_sem): Likewise.
15479 (linux_xfer_osdata_msg): Likewise.
15480 (linux_common_xfer_osdata): Likewise.
15481 (struct osdata_type) <getter>: Likewise.
15482 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15483 the declaration.
15484
b55e14c7
YQ
154852014-01-14 Yao Qi <yao@codesourcery.com>
15486
15487 * target.h (target_xfer_partial_ftype): Update.
15488 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15489 ULONGEST.
15490 * aix-thread.c (aix_thread_xfer_partial): Change type of
15491 argument 'len' to ULONGEST.
15492 * auxv.c (procfs_xfer_auxv): Likewise.
15493 (ld_so_xfer_auxv): Likewise.
15494 (memory_xfer_auxv): Likewise.
15495 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15496 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15497 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15498 * corelow.c (core_xfer_partial): Likewise.
15499 * ctf.c (ctf_xfer_partial): Likewise.
15500 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15501 '%u'.
15502 (darwin_read_dyld_info): Likewise.
15503 (darwin_xfer_partial): Likewise.
15504 * exec.c (section_table_xfer_memory_partial): Likewise.
15505 (exec_xfer_partial): Likewise.
15506 * exec.h (section_table_xfer_memory_partial): Update
15507 declaration.
15508 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15509 instead of plongest.
15510 (gnu_xfer_partial): Likewise.
15511 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15512 (ia64_hpux_xfer_solib_got): Likewise.
15513 (ia64_hpux_xfer_partial): Likewise.
15514 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15515 * inf-ptrace.c (inf_ptrace_xfer_partial):
15516 * inf-ttrace.c (inf_ttrace_xfer_partial):
15517 * linux-nat.c (linux_xfer_siginfo): Likewise.
15518 (linux_nat_xfer_partial): Likewise.
15519 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15520 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15521 * monitor.c (monitor_xfer_memory): Likewise.
15522 (monitor_xfer_partial): Likewise.
15523 * procfs.c (procfs_xfer_partial): Likewise.
15524 * record-full.c (record_full_xfer_partial): Likewise.
15525 (record_full_core_xfer_partial): Likewise.
15526 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15527 instead of plongest.
15528 (gdbsim_xfer_partial): Likewise.
15529 * remote.c (remote_xfer_partial): Likewise.
15530 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15531 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15532 declaration.
15533 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15534 (rs6000_xfer_shared_libraries): Likewise.
15535 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15536 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15537 (sparc_xfer_partial): Likewise.
15538 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15539 (spu_xfer_partial): Likewise.
15540 * spu-multiarch.c (spu_xfer_partial): Likewise.
15541 * target.c (target_read_live_memory): Likewise.
15542 (memory_xfer_live_readonly_partial): Likewise.
15543 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15544 (target_xfer_partial, default_xfer_partial): Likewise.
15545 (current_xfer_partial): Likewise.
15546 * tracepoint.c (tfile_xfer_partial): Likewise.
15547 * windows-nat.c (windows_xfer_memory): Likewise. Call
15548 pulongest instead of plongest.
15549 (windows_xfer_partial): Likewise.
15550 (windows_xfer_shared_libraries): Likewise.
15551
05804640
YQ
155522014-01-14 Yao Qi <yao@codesourcery.com>
15553
15554 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15555 target_xfer_partial_ftype.
15556
b5b08fb4
SC
155572014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15558
15559 PR python/15464
15560 PR python/16113
15561 * valops.c (value_struct_elt_bitpos): New function
15562 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15563 object to 'None' if the field name is an empty string ("").
15564 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15565 attribute to look for a field when 'name' is 'None'.
15566 (get_field_type): New function
15567
13aaf454
DE
155682014-01-13 Doug Evans <dje@google.com>
15569
15570 PR symtab/16426
15571 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15572 (try_open_dwop_file): Ditto.
15573 * gdb_bfd.c: #include "vec.h".
15574 (bfdp): New typedef.
15575 (struct gdb_bfd_data): New member included_bfds.
15576 (gdb_bfd_unref): Unref all included bfds.
15577 (gdb_bfd_record_inclusion): New function.
15578 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15579
c2cec97c
TT
155802014-01-13 Tom Tromey <tromey@redhat.com>
15581
15582 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15583
78e5999d
TT
155842014-01-13 Tom Tromey <tromey@redhat.com>
15585
15586 * defs.h (use_windows): Remove.
15587 * gdb.c (main): Update.
15588 * main.c (captured_main, gdb_main): Update.
15589 * main.h (struct captured_main_args) <use_windows>: Remove.
15590 * top.c (use_windows): Remove.
15591
f2052bbe
TT
155922014-01-13 Tom Tromey <tromey@redhat.com>
15593
15594 * defs.h (deprecated_flush_hook): Remove.
15595
fde4f8ed
JK
155962014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15597
15598 PR threads/16216
15599 * linux-thread-db.c (try_thread_db_load): Add parameter
15600 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15601 (try_thread_db_load_from_pdir_1): Move it there from here.
15602 (try_thread_db_load_from_sdir): Update caller.
15603 (try_thread_db_load_from_dir): Move it there from here.
15604
bdf61915
PP
156052014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15606
15607 * regformats/regdat.sh: Always rewrite the register file.
15608
f71e1a8d
PA
156092014-01-13 Pedro Alves <palves@redhat.com>
15610
15611 * Makefile.in (CHECK_HEADERS): New variable.
15612 (check-headers:): New rule.
15613
42c85435
TT
156142014-01-13 Tom Tromey <tromey@redhat.com>
15615
15616 * cli/cli-setshow.c (do_set_command): Update.
15617 * defs.h (deprecated_set_hook): Remove.
15618 * top.c (deprecated_set_hook): Remove.
15619
f8de5129
PA
156202014-01-13 Pedro Alves <palves@redhat.com>
15621
15622 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15623 the tracepoint if the PC is a pseudo-register.
15624
fc270c35
TT
156252014-01-13 Tom Tromey <tromey@redhat.com>
15626
15627 * defs.h (XCALLOC): Remove.
15628 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15629 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15630 * dwarf2loc.c (allocate_piece_closure): Likewise.
15631 * elfread.c (elf_symfile_segments): Likewise.
15632 (elf_symfile_segments): Likewise.
15633 * gdbtypes.c (copy_type_recursive): Likewise.
15634 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15635 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15636 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15637 XCALLOC.
15638 * mt-tdep.c (mt_gdbarch_init): Likewise.
15639 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15640 XCALLOC.
15641 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15642 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15643 * registry.c (registry_alloc_data): Likewise.
15644 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15645 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15646 * serial.c (serial_fdopen_ops): Likewise.
15647 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15648 XCALLOC.
15649 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15650 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15651 not XCALLOC.
15652
70ba0933
TT
156532014-01-13 Tom Tromey <tromey@redhat.com>
15654
15655 * defs.h (XMALLOC): Remove.
15656 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15657 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15658 * cli-out.c (struct ui_out *): Likewise.
15659 * cli/cli-dump.c (add_dump_command): Likewise.
15660 (add_dump_command): Likewise.
15661 * complaints.c (get_complaints): Likewise.
15662 (find_complaint): Likewise.
15663 * dwarf2-frame.c (execute_cfa_program): Likewise.
15664 * dwarf2read.c (abbrev_table_read_table): Likewise.
15665 * gdbarch.sh: Likewise.
15666 * gdbarch.c: Rebuild.
15667 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15668 * interps.c (interp_new): Likewise.
15669 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15670 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15671 * mi/mi-console.c (mi_console_file_new): Likewise.
15672 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15673 * mi/mi-out.c (mi_out_new): Likewise.
15674 * mi/mi-parse.c (mi_parse): Likewise.
15675 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15676 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15677 * observer.c (xalloc_observer_list_node): Likewise.
15678 * regcache.c (regcache_xmalloc_1): Likewise.
15679 * reggroups.c (reggroup_new): Likewise.
15680 (_initialize_reggroup): Likewise.
15681 * registry.c (register_data_with_cleanup): Likewise.
15682 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15683 * ser-base.c (serial_ttystate): Likewise.
15684 * ser-mingw.c (make_pipe_state): Likewise.
15685 * ser-pipe.c (pipe_open): Likewise.
15686 * serial.c (serial_open): Likewise.
15687 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15688 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15689 (tui_alloc_win_info): Likewise.
15690 (tui_add_content_elements): Likewise.
15691 * tui/tui-file.c (tui_file_new): Likewise.
15692 * tui/tui-out.c (tui_out_new): Likewise.
15693 * ui-file.c (mem_file_new): Likewise.
15694 * ui-out.c (push_level): Likewise.
15695 (make_cleanup_ui_out_end): Likewise.
15696 (append_header_to_list): Likewise.
15697 (ui_out_new): Likewise.
15698 * user-regs.c (user_reg_add_builtin): Likewise.
15699
41bf6aca
TT
157002014-01-13 Tom Tromey <tromey@redhat.com>
15701
15702 * defs.h (XZALLOC): Remove.
15703 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15704 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15705 (get_ada_tasks_inferior_data): Likewise.
15706 * auto-load.c (get_auto_load_pspace_data): Likewise.
15707 * auxv.c (get_auxv_inferior_data): Likewise.
15708 * bfd-target.c (target_bfd_reopen): Likewise.
15709 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15710 (deprecated_insert_raw_breakpoint): Likewise.
15711 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15712 * corelow.c (core_open): Likewise.
15713 * darwin-nat.c (darwin_check_new_threads): Likewise.
15714 (darwin_attach_pid): Likewise.
15715 * dummy-frame.c (dummy_frame_push): Likewise.
15716 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15717 * dwarf2loc.c (allocate_piece_closure): Likewise.
15718 * elfread.c (elf_symfile_segments): Likewise.
15719 * eval.c (ptrmath_type_p): Likewise.
15720 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15721 * gdbtypes.c (alloc_type_arch): Likewise.
15722 (alloc_type_instance): Likewise.
15723 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15724 * inf-child.c (inf_child_can_use_agent): Likewise.
15725 * inflow.c (get_inflow_inferior_data): Likewise.
15726 * infrun.c (save_infcall_suspend_state): Likewise.
15727 * jit.c (jit_reader_load): Likewise.
15728 (get_jit_objfile_data): Likewise.
15729 (get_jit_program_space_data): Likewise.
15730 (jit_object_open_impl): Likewise.
15731 (jit_symtab_open_impl): Likewise.
15732 (jit_block_open_impl): Likewise.
15733 (jit_frame_sniffer): Likewise.
15734 * linux-fork.c (add_fork): Likewise.
15735 * maint.c (make_command_stats_cleanup): Likewise.
15736 * objfiles.c (get_objfile_pspace_data): Likewise.
15737 * opencl-lang.c (struct lval_closure): Likewise.
15738 * osdata.c (osdata_start_osdata): Likewise.
15739 * progspace.c (new_address_space): Likewise.
15740 (add_program_space): Likewise.
15741 * remote-sim.c (get_sim_inferior_data): Likewise.
15742 * sh-tdep.c (sh_gdbarch_init): Likewise.
15743 * skip.c (Ignore): Likewise.
15744 (skip_delete_command): Likewise.
15745 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15746 (library_list_start_library): Likewise.
15747 (solib_aix_current_sos): Likewise.
15748 * solib-darwin.c (get_darwin_info): Likewise.
15749 (darwin_current_sos): Likewise.
15750 * solib-dsbt.c (get_dsbt_info): Likewise.
15751 * solib-ia64-hpux.c (new_so_list): Likewise.
15752 (ia64_hpux_get_solib_linkage_addr): Likewise.
15753 * solib-spu.c (append_ocl_sos): Likewise.
15754 (spu_current_sos): Likewise.
15755 * solib-svr4.c (get_svr4_info): Likewise.
15756 (svr4_keep_data_in_core): Likewise.
15757 (library_list_start_library): Likewise.
15758 (svr4_default_sos): Likewise.
15759 (svr4_read_so_list): Likewise.
15760 * solib-target.c (library_list_start_library): Likewise.
15761 (solib_target_current_sos): Likewise.
15762 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15763 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15764 * symfile.c (default_symfile_segments): Likewise.
15765 * target-descriptions.c (tdesc_data_init): Likewise.
15766 (tdesc_create_reg): Likewise.
15767 (struct tdesc_type *): Likewise.
15768 (tdesc_create_vector): Likewise.
15769 (tdesc_set_struct_size): Likewise.
15770 (struct tdesc_type *): Likewise.
15771 (tdesc_free_feature): Likewise.
15772 (tdesc_create_feature): Likewise.
15773 * windows-nat.c (windows_add_thread): Likewise.
15774 (windows_make_so): Likewise.
15775 * xml-support.c (gdb_xml_body_text): Likewise.
15776 (gdb_xml_create_parser_and_cleanup): Likewise.
15777 (xml_process_xincludes): Likewise.
15778 * xml-syscall.c (allocate_syscalls_info): Likewise.
15779 (syscall_create_syscall_desc): Likewise.
15780
5acfdbae
SDJ
157812014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15782
15783 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15784 function, with code from i386_stap_parse_special_token.
15785 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15786 (i386_stap_parse_special_token): Move code to the two functions
15787 above; simplify it.
15788
0000e5cc
PA
157892014-01-09 Pedro Alves <palves@redhat.com>
15790 Hui Zhu <hui@codesourcery.com>
15791
15792 PR gdb/16101
15793 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15794 bp_err_string. Don't mark the location shlib_disabled if the
15795 error thrown wasn't a generic or memory error. Catch errors
15796 thrown while inserting breakpoints in overlayed code. Output
15797 error message of software breakpoints.
15798 * remote.c (remote_insert_breakpoint): If this breakpoint has
15799 target-side commands but this stub doesn't support Z0 packets,
15800 throw NOT_SUPPORTED_ERROR error.
15801 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15802 * target.h (target_insert_breakpoint): Extend comment.
15803 (target_insert_hw_breakpoint): Add comment.
15804
b7ea362b
PA
158052014-01-08 Pedro Alves <palves@redhat.com>
15806
15807 * remote.c (remote_add_thread): Add threads silently if starting
15808 up.
15809 (remote_notice_new_inferior): If in all-stop, and starting up,
15810 don't call notice_new_inferior.
15811 (get_current_thread): New function, factored out from ...
15812 (add_current_inferior_and_thread): ... this. Adjust.
15813 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15814 found any thread, then select the remote's current thread as GDB's
15815 current thread too.
15816
b7bba001
JB
158172014-01-08 Joel Brobecker <brobecker@adacore.com>
15818
15819 * NEWS: Create a new section for the next release branch.
15820 Rename the section of the current branch, now that it has
15821 been cut.
15822
16dfbded
JB
158232014-01-08 Joel Brobecker <brobecker@adacore.com>
15824
15825 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15826 * version.in: Bump version to 7.7.50.DATE-cvs.
15827
22c90ac1
YQ
158282014-01-08 Yao Qi <yao@codesourcery.com>
15829
15830 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15831 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15832 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15833
d64ad97c
YQ
158342014-01-08 Yao Qi <yao@codesourcery.com>
15835
15836 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15837 return value of bfd_get_filename to symbol_file_add_from_bfd.
15838
f93ba80c
PM
158392014-01-08 Pierre Muller <muller@sourceware.org>
15840
15841 Fix PR16201.
15842 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15843 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15844 to prim_record_mininal_symbol_and_info.
15845 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15846 in call to prim_record_minimal_symbol_and_info.
15847 (read_pe_exported_syms): Set index field of section_data.
15848
a4d9ba85
AP
158492014-01-07 Andrew Pinski <apinski@cavium.com>
15850
15851 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15852 * features/aarch64.c: Regenerate.
15853
1b67eb02
AS
158542014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15855
15856 * target.c (return_null): Define.
15857 (update_current_target): Use it instead of return_zero for
15858 functions that return a pointer.
15859
5e3f4fab
EBM
158602014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15861
15862 * source.c (add_path): Fix check for duplicated paths in the previously
15863 included paths.
15864
e2616788
HK
158652014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15866
15867 * ada-lang.c: Remove duplicated include statements.
15868 * alphabsd-nat.c: Ditto.
15869 * amd64-darwin-tdep.c: Ditto.
15870 * amd64fbsd-nat.c: Ditto.
15871 * auto-load.c: Ditto.
15872 * ax-gdb.c: Ditto.
15873 * breakpoint.c: Ditto.
15874 * dbxread.c: Ditto.
15875 * fork-child.c: Ditto.
15876 * gdb_usleep.c: Ditto.
15877 * i386-darwin-tdep.c: Ditto.
15878 * i386fbsd-nat.c: Ditto.
15879 * infcmd.c: Ditto.
15880 * inferior.c: Ditto.
15881 * jv-lang.c: Ditto.
15882 * linux-nat.c: Ditto.
15883 * linux-tdep.c: Ditto.
15884 * m68kbsd-nat.c: Ditto.
15885 * m68klinux-nat.c: Ditto.
15886 * microblaze-tdep.c: Ditto.
15887 * mips-linux-tdep.c: Ditto.
15888 * mn10300-tdep.c: Ditto.
15889 * nto-tdep.c: Ditto.
15890 * opencl-lang.c: Ditto.
15891 * osdata.c: Ditto.
15892 * printcmd.c: Ditto.
15893 * regcache.c: Ditto.
15894 * remote-m32r-sdi.c: Ditto.
15895 * remote.c: Ditto.
15896 * symfile.c: Ditto.
15897 * symtab.c: Ditto.
15898 * tilegx-linux-nat.c: Ditto.
15899 * tilegx-tdep.c: Ditto.
15900 * tracepoint.c: Ditto.
15901 * valops.c: Ditto.
15902 * vaxbsd-nat.c: Ditto.
15903 * windows-nat.c: Ditto.
15904 * xtensa-tdep.c: Ditto.
15905
bd1f7788
YQ
159062014-01-07 Yao Qi <yao@codesourcery.com>
15907
15908 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15909
79301218
JB
159102014-01-07 Yao Qi <yao@codesourcery.com>
15911 Joel Brobecker <brobecker@adacore.com>
15912
15913 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15914 (pdc_write_regs): Likewise.
15915 (fetch_regs_kernel_thread): Likewise.
15916 (store_regs_kernel_thread): Likewise.
15917
159182014-01-07 Joel Brobecker <brobecker@adacore.com>
15919
15920 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15921 tagged type objects to their actual type.
15922
8e355c5d
JB
159232014-01-07 Joel Brobecker <brobecker@adacore.com>
15924
15925 * ada-valprint.c (print_field_values): Add "language" parameter.
15926 Update calls to print_field_values and print_variant_part.
15927 Pass new parameter "language" in call to val_print instead
15928 of "current_language". Replace call to ada_val_print by call
15929 to val_print.
15930 (print_variant_part): Add "language" parameter.
15931 (ada_val_print_struct_union): Update call to print_field_values.
15932
4fbf5aa5
JB
159332014-01-07 Joel Brobecker <brobecker@adacore.com>
15934
15935 * ada-valprint.c (ui_memcpy): Delete.
15936 (ada_print_floating): Update documentation. Add empty line
15937 between between function documentation and implementation.
15938 Delete variable "buffer". Use ui_file_xstrdup in place of
15939 ui_file_put. Minor adjustments following this change.
15940
71855601
JB
159412014-01-07 Joel Brobecker <brobecker@adacore.com>
15942
15943 * ada-valprint.c (ada_val_print_string): New function,
15944 extracted from ada_val_print_array.
15945 (ada_val_print_array): Replace extracted code by call
15946 to ada_val_print_string followed by a return. Move
15947 "else" branch to the function's top block.
15948
4eb27a30
JB
159492014-01-07 Joel Brobecker <brobecker@adacore.com>
15950
15951 * ada-valprint.c (ada_val_print_array): Move implementation
15952 down. Rename parameter "offset" and "val" into "offset_aligned"
15953 and "original_value" respectively. Add parameter "offset".
15954
34b27950
JB
159552014-01-07 Joel Brobecker <brobecker@adacore.com>
15956
15957 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15958 re-organizing the code. Change the "???" message printed
15959 when target type is a TYPE_CODE_UNDEF into
15960 "<ref to undefined type>".
15961
079e4591
JB
159622014-01-07 Joel Brobecker <brobecker@adacore.com>
15963
15964 * ada-valprint.c (print_record): Delete, implementation inlined...
15965 (ada_val_print_struct_union): ... here. Remove call to
15966 ada_check_typedef in inlined implementation.
15967
8004dfd1
JB
159682014-01-07 Joel Brobecker <brobecker@adacore.com>
15969
15970 * ada-valprint.c (ada_val_print_gnat_array): New function,
15971 extracted from ada_val_print_1;
15972 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15973 (ada_val_print_flt, ada_val_print_struct_union)
15974 (ada_val_print_ref): Likewise.
15975 (ada_val_print_1): Delete variables i and elttype.
15976 Replace extracted-out code by call to corresponding
15977 new functions.
15978
760a2db0
JB
159792014-01-07 Joel Brobecker <brobecker@adacore.com>
15980
15981 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15982
3a92c861
JB
159832014-01-07 Joel Brobecker <brobecker@adacore.com>
15984
15985 * ada-valprint.c (ada_val_print_1): Replace calls to
15986 ada_val_print_1 by calls to val_print.
15987
cd1630f9
JB
159882014-01-07 Joel Brobecker <brobecker@adacore.com>
15989
15990 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15991 Update calls to self accordingly. Replace calls to c_val_print
15992 by calls to val_print.
15993
bdf779a0
JB
159942014-01-07 Joel Brobecker <brobecker@adacore.com>
15995
15996 * ada-valprint.c (print_record): Delete declaration.
15997 (adjust_type_signedness, ada_val_print_1): Likewise.
15998 (ada_val_print): Move function implementation down.
15999 (print_variant_part, print_field_values, print_record):
16000 Move function implementation up.
16001
c0d48811
JB
160022014-01-07 Joel Brobecker <brobecker@adacore.com>
16003
16004 * python/py-type.c (typy_get_name): New function.
16005 (type_object_getset): Add entry for attribute "name".
16006 * NEWS: Add entry mentioning this new attribute.
16007
c26e9cbb
YQ
160082014-01-07 Yao Qi <yao@codesourcery.com>
16009
16010 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
16011 statement.
16012
0cc6f43d
YQ
160132014-01-07 Yao Qi <yao@codesourcery.com>
16014
16015 * gnu-nat.c (info_port_rights): Add qualifier const to
16016 argument args.
16017
eec03155
YQ
160182014-01-07 Yao Qi <yao@codesourcery.com>
16019
16020 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16021
f04a82ef
YQ
160222014-01-07 Yao Qi <yao@codesourcery.com>
16023
16024 * gnu-nat.c (make_inf) Update declaration.
16025 (make_inf): Make it static.
16026 (inf_set_traced): Likewise.
16027 (inf_port_to_thread, inf_task_died_status): Likewise.
16028
d57dda0a
YQ
160292014-01-07 Yao Qi <yao@codesourcery.com>
16030
16031 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16032
3aa8c969
YQ
160332014-01-07 Yao Qi <yao@codesourcery.com>
16034
16035 * gnu-nat.c (_initialize_gnu_nat): Declare.
16036
94123b4f
YQ
160372014-01-07 Yao Qi <yao@codesourcery.com>
16038
16039 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16040 'enum bfd_endian'.
16041 (struct gdbarch_info) <byte_order>: Change type to
16042 'enum bfd_endian'.
16043 <byte_order_for_code>: Likewise.
16044 * gdbarch.c, gdbarch.h: Regenerated.
16045
dc81d70a
TT
160462014-01-06 Sasha Smundak <asmundak@google.com>
16047
16048 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16049
cc2f3c35
TT
160502014-01-06 Tom Tromey <tromey@redhat.com>
16051
16052 * doublest.c (convert_doublest_to_floatformat): Use const, not
16053 CONST.
16054 * somread.c (som_symtab_read): Likewise.
16055
adcf2eed
HZ
160562014-01-07 Hui Zhu <hui@codesourcery.com>
16057
16058 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16059 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16060 (gdb_bfd_fopen): Ditto.
16061 (gdb_bfd_openr): Ditto.
16062 (gdb_bfd_openw): Ditto.
16063 (gdb_bfd_openr_iovec): Ditto.
16064 (gdb_bfd_fdopenr): Ditto.
16065 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16066 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16067 with xstrdup.
16068 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16069 with xstrdup.
16070 * symfile-mem.c (symbol_file_add_from_memory): Removed
16071 gdb_bfd_stash_filename.
16072
50722198
DE
160732014-01-03 Doug Evans <dje@google.com>
16074
16075 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16076 output.
16077
2fa4b862
JB
160782014-01-01 Joel Brobecker <brobecker@adacore.com>
16079
16080 Update year range in copyright notice of all files.
16081
28498c42
JB
160822014-01-01 Joel Brobecker <brobecker@adacore.com>
16083
16084 * top.c (print_gdb_version): Set copyright year to 2014.
16085
7b6e1046
JB
160862014-01-01 Joel Brobecker <brobecker@adacore.com>
16087
16088 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16089
df96af55 16090For older changes see ChangeLog-2013.
c906108c
SS
16091\f
16092Local Variables:
16093mode: change-log
16094left-margin: 8
16095fill-column: 74
16096version-control: never
57da7796 16097coding: utf-8
c906108c 16098End:
This page took 2.648141 seconds and 4 git commands to generate.