]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
introduce call_function_by_hand_dummy
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 * infcall.h (call_function_by_hand_dummy): Declare.
4 * infcall.c (call_function_by_hand): Use
5 call_function_by_hand_dummy.
6 (call_function_by_hand_dummy): Rename from call_function_by_hand.
7 Add arguments. Register a destructor.
8
9 2014-12-12 Tom Tromey <tromey@redhat.com>
10 Jan Kratochvil <jan.kratochvil@redhat.com>
11
12 * osabi.h (osabi_triplet_regexp): Declare.
13 * osabi.c (struct osabi_names): New.
14 (gdb_osabi_names): Change type to struct osabi_names. Update
15 values.
16 (gdbarch_osabi_name): Update.
17 (osabi_triplet_regexp): New function.
18 (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
19 * i386-tdep.c (i386_gnu_triplet_regexp): New method.
20 (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
21 set_gdbarch_gnu_triplet_regexp.
22 * gdbarch.sh (gnu_triplet_regexp): New method.
23 * gdbarch.c, gdbarch.h: Rebuild.
24 * arch-utils.h (default_gnu_triplet_regexp): Declare.
25 * arch-utils.c (default_gnu_triplet_regexp): New function.
26
27 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
28
29 * arch-utils.c (default_infcall_mmap)
30 (default_gcc_target_options): New functions.
31 * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
32 (GDB_MMAP_PROT_EXEC): Define.
33 (default_infcall_mmap, default_gcc_target_options): Declare.
34 * gdbarch.h: Rebuild.
35 * gdbarch.c: Rebuild.
36 * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
37
38 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
39
40 * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
41 fields.
42 (pop_dummy_frame): Call the destructor if it exists.
43 (register_dummy_frame_dtor, find_dummy_frame_dtor): New
44 functions.
45 * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
46 (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
47
48 2014-12-12 Tom Tromey <tromey@redhat.com>
49
50 * gdbtypes.h (make_unqualified_type): Declare.
51 * gdbtypes.c (make_unqualified_type): New function.
52
53 2014-12-12 Tom Tromey <tromey@redhat.com>
54
55 * ui-file.h (ui_file_write_for_put): Declare.
56 * ui-file.c (ui_file_write_for_put): New function.
57 * mi/mi-out.c (do_write): Remove.
58 (mi_out_put): Use ui_file_write_for_put.
59
60 2014-12-12 Doug Evans <dje@google.com>
61
62 * NEWS: Mention gdb.lookup_objfile.
63 * python/python.c (GdbMethods): Add lookup_objfile.
64 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
65 * python/py-objfile.c: #include "symtab.h".
66 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
67 (objfpy_lookup_objfile_by_name): New function.
68 (objfpy_lookup_objfile_by_build_id): New function.
69 (gdbpy_lookup_objfile): New function.
70
71 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
72
73 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
74 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
75 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
76 macros.
77 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
78 Likewise.
79
80 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
81
82 * completer.c: Include "target.h", "reggroups.h", and
83 "user-regs.h".
84 (reg_or_group_completer): New.
85 * completer.h (reg_or_group_completer): Declare.
86 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
87 the "info registers" and "info all-registers" commands and the
88 dbx-mode "lr" command.
89
90 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
91
92 * user-regs.c: Include "arch-utils.h", "command.h", and
93 "cli/cli-cmds.h".
94 (maintenance_print_user_registers): New.
95 (_initialize_user_regs): Register new "maint print user-registers"
96 subcommand.
97 * NEWS: Mention new GDB command "maint print user-registers".
98
99 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
100 Maciej W. Rozycki <macro@mips.com>
101 Pedro Alves <pedro@codesourcery.com>
102
103 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
104 remove `predefault' and `invalid_p' initializers.
105 (make_symbol_special): New architecture method.
106 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
107 (objfile, symbol): New declarations.
108 * arch-utils.h (default_elf_make_msymbol_special): Remove
109 prototype.
110 (default_make_symbol_special): New prototype.
111 (default_adjust_dwarf2_addr): Likewise.
112 (default_adjust_dwarf2_line): Likewise.
113 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
114 * arch-utils.c (default_elf_make_msymbol_special): Remove
115 function.
116 (default_make_symbol_special): New function.
117 (default_adjust_dwarf2_addr): Likewise.
118 (default_adjust_dwarf2_line): Likewise.
119 * dwarf2-frame.c (decode_frame_entry_1): Call
120 `gdbarch_adjust_dwarf2_addr'.
121 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
122 * dwarf2read.c (create_addrmap_from_index): Likewise.
123 (process_psymtab_comp_unit_reader): Likewise.
124 (add_partial_symbol): Likewise.
125 (add_partial_subprogram): Likewise.
126 (process_full_comp_unit): Likewise.
127 (read_file_scope): Likewise.
128 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
129 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
130 (read_call_site_scope): Likewise.
131 (dwarf2_ranges_read): Likewise.
132 (dwarf2_record_block_ranges): Likewise.
133 (read_attribute_value): Likewise.
134 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
135 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
136 * elfread.c (elf_symtab_read): Don't call
137 `gdbarch_elf_make_msymbol_special' if unset.
138 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
139 the ISA bit from the PC.
140 * mips-tdep.c (mips_unmake_compact_addr): New function.
141 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
142 address appropriately.
143 (mips_make_symbol_special): New function.
144 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
145 (mips_pc_is_mips16): Likewise.
146 (mips_pc_is_micromips): Likewise.
147 (mips_pc_isa): Likewise.
148 (mips_adjust_dwarf2_addr): New function.
149 (mips_adjust_dwarf2_line): Likewise.
150 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
151 (mips_addr_bits_remove): Likewise.
152 (mips_skip_trampoline_code): Likewise.
153 (mips_write_pc): Don't set the ISA bit.
154 (mips_eabi_push_dummy_call): Likewise.
155 (mips_o64_push_dummy_call): Likewise.
156 (mips_gdbarch_init): Install `mips_make_symbol_special',
157 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
158 handlers.
159 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
160 target-specific symbol address adjustments.
161 * gdbarch.h: Regenerate.
162 * gdbarch.c: Regenerate.
163
164 2014-12-12 Yao Qi <yao@codesourcery.com>
165
166 PR tdep/14261
167 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
168 'skip_pc'. Remove code skipping prologue instructions, use
169 arm_analyze_prologue instead.
170 (arm_analyze_prologue): Stop the scanning for unrecognized
171 instruction when skipping prologue.
172
173 2014-12-12 Yao Qi <yao@codesourcery.com>
174
175 * arm-tdep.c (arm_instruction_restores_sp): New function.
176 (arm_analyze_prologue): Call arm_instruction_restores_sp.
177 (arm_in_function_epilogue_p): Move code to
178 arm_instruction_restores_sp.
179
180 2014-12-11 Doug Evans <xdje42@gmail.com>
181
182 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
183
184 2014-12-11 Doug Evans <xdje42@gmail.com>
185
186 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
187 (symbol *lookup_symbol_via_quick_fns): Ditto.
188 (lookup_symbol_in_objfile): Add forward decl.
189 (lookup_global_symbol_from_objfile): Simplify, call
190 lookup_symbol_in_objfile.
191
192 2014-12-11 Doug Evans <xdje42@gmail.com>
193
194 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
195
196 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
197
198 PR breakpoints/17012
199 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
200 it is marked as persistent.
201
202 2014-12-10 Doug Evans <xdje42@gmail.com>
203
204 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
205 closer to its subroutines.
206
207 2014-12-10 Doug Evans <xdje42@gmail.com>
208
209 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
210
211 2014-12-10 Doug Evans <xdje42@gmail.com>
212
213 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
214 * cp-support.c (cp_lookup_symbol_imports): Delete.
215
216 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
217
218 PR gdb/17627
219 * target.c (cleanup_restore_target_terminal): New function.
220 (make_cleanup_restore_target_terminal): New function.
221 * target.h (make_cleanup_restore_target_terminal): New declaration.
222 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
223
224 2014-12-08 Doug Evans <dje@google.com>
225
226 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
227
228 2014-12-08 Doug Evans <dje@google.com>
229
230 * NEWS: Mention gdb.Objfile.owner.
231 * python/py-objfile.c (objfpy_get_owner): New function.
232 (objfile_getset): Add "owner".
233
234 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
235
236 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
237 (lookup_global_symbol_from_objfile): Call it.
238
239 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
240
241 Remove const from struct objfile *.
242 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
243 symtab.c, symtab.h: In these files.
244
245 2014-12-05 Andreas From <andreas.from@ericsson.com>
246
247 * MAINTAINERS (Write After Approval): Add "Andreas From"
248
249 2014-12-05 Doug Evans <xdje42@gmail.com>
250
251 Revert:
252 PR symtab/17602
253 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
254
255 2014-12-04 Doug Evans <dje@google.com>
256
257 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
258 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
259 (objfile_getset): Add "add_separate_debug_file".
260
261 2014-12-04 Doug Evans <dje@google.com>
262
263 * NEWS: Mention gdb.Objfile.build_id.
264 * build-id.c (build_id_bfd_get): Make non-static.
265 * build-id.h (build_id_bfd_get): Add declaration.
266 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
267 (OBJFPY_REQUIRE_VALID): New macro.
268 (objfpy_get_build_id): New function.
269 (objfile_getset): Add "build_id".
270 * utils.c (make_hex_string): New function.
271 * utils.h (make_hex_string): Add declaration.
272
273 2014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
274
275 * block.c (block_lookup_symbol_primary): New function.
276 * block.h (block_lookup_symbol_primary): New declaration.
277 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
278 Call block_lookup_symbol_primary.
279
280 2014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
281
282 * tramp-frame.h (tramp_frame): Add `validate' member.
283 * tramp-frame.c (tramp_frame_start): Validate trampoline before
284 scanning.
285 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
286 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
287 (mips_linux_o32_sigframe): Initialize `validate' member.
288 (mips_linux_o32_rt_sigframe): Likewise.
289 (mips_linux_n32_rt_sigframe): Likewise.
290 (mips_linux_n64_rt_sigframe): Likewise.
291 (micromips_linux_o32_sigframe): New variable.
292 (micromips_linux_o32_rt_sigframe): Likewise.
293 (micromips_linux_n32_rt_sigframe): Likewise.
294 (micromips_linux_n64_rt_sigframe): Likewise.
295 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
296 (mips_linux_n32n64_sigframe_init): Likewise.
297 (mips_linux_sigframe_validate): New function.
298 (micromips_linux_sigframe_validate): Likewise.
299 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
300
301 2014-12-03 Ulrich Weigand  <uweigand@de.ibm.com>
302
303 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
304 * sparc-sol2-tdep.c: Include "regset.h".
305 (sparc32_sol2_supply_core_gregset): New function.
306 (sparc32_sol2_collect_core_gregset): Likewise.
307 (sparc32_sol2_supply_core_fpregset): Likewise.
308 (sparc32_sol2_collect_core_fpregset): Likewise.
309 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
310 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
311 tdep->fpregset/sizeof_fpregset.
312 * sparc64-sol2-tdep.c: Include "regset.h".
313 (sparc64_sol2_supply_core_gregset): New function.
314 (sparc64_sol2_collect_core_gregset): Likewise.
315 (sparc64_sol2_supply_core_fpregset): Likewise.
316 (sparc64_sol2_collect_core_fpregset): Likewise.
317 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
318 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
319 tdep->fpregset/sizeof_fpregset.
320
321 2014-12-03 Simon Marchi <simon.marchi@ericsson.com>
322
323 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
324 type.
325
326 2014-12-02 Doug Evans <dje@google.com>
327
328 * symtab.c (symbol_init_cplus_specific): Delete.
329 (symbol_set_demangled_name): Remove special c++ support.
330 (symbol_get_demangled_name, symbol_set_language): Ditto.
331 * symtab.h (struct cplus_specific): Delete.
332 (struct general_symbol_info) <language_specific>: Remove
333 cplus_specific.
334
335 2014-12-02 Doug Evans <dje@google.com>
336
337 PR symtab/17602
338 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
339
340 2014-12-02 Doug Evans <dje@google.com>
341
342 PR symtab/17591
343 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
344 to strip parameters.
345
346 2014-12-02 Doug Evans <dje@google.com>
347
348 * dwarf2read.c (peek_die_abbrev): Improve error message text.
349
350 2014-12-02 Doug Evans <dje@google.com>
351
352 * valops.c (do_search_struct_field): Remove remnant of Chill support.
353 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
354
355 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
356
357 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
358
359 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
360
361 * NEWS: Mention new Python events.
362 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
363 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
364 (py-infevents.o): New rule.
365 * doc/observer.texi (inferior_call_pre, inferior_call_post)
366 (memory_changed, register_changed): New observers.
367 * infcall.c (call_function_by_hand): Notify observer before and
368 after inferior call.
369 * python/py-event.h (inferior_call_kind): New enum.
370 (emit_inferior_call_event): New prototype.
371 (emit_register_changed_event): New prototype.
372 (emit_memory_changed_event): New prototype.
373 * python/py-events.h (events_object): New registries
374 inferior_call, memory_changed and register_changed.
375 * python/py-evts.c (gdbpy_initialize_py_events): Add the
376 inferior_call, memory_changed and register_changed registries.
377 * python/py-infevents.c: New.
378 * python/py-inferior.c (python_on_inferior_call_pre)
379 (python_on_inferior_call_post, python_on_register_change)
380 (python_on_memory_change): New functions.
381 (gdbpy_initialize_inferior): Attach python handler to new
382 observers.
383 * python/py-infthread.c(gdbpy_create_ptid_object): New.
384 (thpy_get_ptid) Use gdbpy_create_ptid_object.
385 * python/python-internal.h:
386 (gdbpy_create_ptid_object)
387 (gdbpy_initialize_inferior_call_pre_event)
388 (gdbpy_initialize_inferior_call_post_event)
389 (gdbpy_initialize_register_changed_event)
390 (gdbpy_initialize_memory_changed_event): New prototypes.
391 * python/python.c (_initialize_python): Initialize new events.
392 * valops.c (value_assign): Notify register_changed observer.
393
394 2014-12-02 Doug Evans <dje@google.com>
395
396 * python/py-infthread.c: Whitespace fixes.
397
398 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
399
400 * features/Makefile (s390-te-linux64-expedite): Replace
401 non-existant r14 and r15 by r14l and r15l, respectively.
402 * regformats/s390-te-linux64.dat: Regenerate.
403
404 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
405
406 * objfiles.c (allocate_objfile): Remove duplicate comment.
407
408 2014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
409
410 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
411 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
412 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
413 (supply_gregset, supply_fpregset): Remove.
414 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
415 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
416 and sizeof_gregset.
417
418 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
419
420 Add add-auto-load-scripts-directory.
421 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
422 * auto-load.c (add_auto_load_dir): New function.
423 (_initialize_auto_load): Install it.
424
425 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
426
427 Pushed by Joel Brobecker <brobecker@adacore.com>.
428 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
429
430 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
431
432 * eval.c (evaluate_subexp): Check that the thread stack temporaries
433 are not already enabled before enabling them.
434
435 2014-11-29 Yao Qi <yao@codesourcery.com>
436
437 * arm-tdep.c (arm_analyze_prologue): Move local variables
438 'framereg' and 'framesize' to inner block. Move code to
439 inner block too.
440
441 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
442
443 * eval.c: Include gdbthread.h.
444 (evaluate_subexp): Enable thread stack temporaries before
445 evaluating a complete expression and clean them up after the
446 evaluation is complete.
447 * gdbthread.h: Include common/vec.h.
448 (value_ptr): New typedef.
449 (VEC (value_ptr)): New vector type.
450 (value_vec): New typedef.
451 (struct thread_info): Add new fields stack_temporaries_enabled
452 and stack_temporaries.
453 (enable_thread_stack_temporaries)
454 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
455 (get_last_thread_stack_temporary)
456 (value_in_thread_stack_temporaries): Declare.
457 * gdbtypes.c (class_or_union_p): New function.
458 * gdbtypes.h (class_or_union_p): Declare.
459 * infcall.c (call_function_by_hand): Store return values of class
460 type as temporaries on stack.
461 * thread.c (enable_thread_stack_temporaries): New function.
462 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
463 (get_last_thread_stack_temporary): Likewise.
464 (value_in_thread_stack_temporaries): Likewise.
465 * value.c (value_force_lval): New function.
466 * value.h (value_force_lval): Declare.
467
468 2014-11-28 Pierre Muller <muller@sourceware.org>
469
470 Pushed by Joel Brobecker <brobecker@adacore.com>.
471 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
472 registers.
473
474 2014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
475
476 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
477 * config/sparc/linux.mh (NATDEPFILES): Likewise.
478 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
479 * m68klinux-nat.c (fetch_core_registers): Remove.
480 (linux_elf_core_fns): Remove.
481 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
482
483 2014-11-28 Joel Brobecker <brobecker@adacore.com>
484
485 * utils.c (gdb_realpath): Rework comment about handling on
486 Windows.
487
488 2014-11-28 Yao Qi <yao@codesourcery.com>
489
490 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
491 rename.
492 * gnulib/aclocal.m4: Re-generated.
493 * gnulib/config.in: Re-generated.
494 * gnulib/configure: Re-generated.
495 * gnulib/import/Makefile.am: Re-generated.
496 * gnulib/import/Makefile.in: Re-generated.
497 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
498 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
499 * import/basename-lgpl.c: New file.
500 * import/dirname-lgpl.c: New file.
501 * import/dirname.h: New file.
502 * import/m4/dirname.m4: New file.
503 * import/m4/malloc.m4: New file.
504 * import/m4/rename.m4: New file.
505 * import/m4/rmdir.m4: New file.
506 * import/m4/stdio_h.m4: New file.
507 * import/malloc.c: New file.
508 * import/rename.c: New file.
509 * import/rmdir.c: New file.
510 * import/same-inode.h: New file.
511 * import/stdio.c: New file.
512 * import/stdio.in.h: New file.
513 * import/stripslash.c: New file.
514
515 2014-11-28 Yao Qi <yao@codesourcery.com>
516
517 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
518 and realpath.
519 * config.in: Re-generated.
520 * configure: Re-generated.
521 * utils.c (gdb_realpath): Remove code calling realpath,
522 canonicalize_file_name and pathconf.
523 [!_WIN32]: Call canonicalize_file_name.
524
525 2014-11-28 Yao Qi <yao@codesourcery.com>
526
527 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
528 canonicalize-lgpl.
529 * aclocal.m4: Re-generated.
530 * config.in: Re-generated.
531 * configure: Re-generated.
532 * import/Makefile.am: Re-generated.
533 * import/Makefile.in: Re-generated.
534 * import/m4/gnulib-cache.m4: Re-generated.
535 * import/m4/gnulib-comp.m4: Re-generated.
536 * import/canonicalize-lgpl.c: New file.
537 * import/extra/snippet/_Noreturn.h: New file.
538 * import/m4/canonicalize.m4: New file.
539 * import/m4/double-slash-root.m4: New file.
540 * import/m4/eealloc.m4: New file.
541 * import/m4/malloca.m4: New file.
542 * import/m4/nocrash.m4: New file.
543 * import/m4/stdlib_h.m4: New file.
544 * import/malloca.c: New file.
545 * import/malloca.h: New file.
546 * import/malloca.valgrind: New file.
547
548 2014-11-28 Yao Qi <yao@codesourcery.com>
549
550 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
551 * config.in, configure: Regenerate.
552 * symfile.c (find_separate_debug_file_by_debuglink): Remove
553 code checking HAVE_LSTAT is defined.
554
555 2014-11-28 Yao Qi <yao@codesourcery.com>
556
557 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
558 lstat.
559 * gnulib/aclocal.m4: Re-generated.
560 * gnulib/config.in: Re-generated.
561 * gnulib/configure: Re-generated.
562 * gnulib/import/Makefile.am: Re-generated.
563 * gnulib/import/Makefile.in: Re-generated.
564 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
565 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
566 * gnulib/import/lstat.c: New file.
567 * gnulib/import/m4/lstat.m4: New file.
568
569 2014-11-28 Yao Qi <yao@codesourcery.com>
570
571 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
572 * config.in, configure: Re-generate.
573 * inf-child.c (inf_child_fileio_readlink): Don't check
574 HAVE_READLINK is defined.
575
576 2014-11-28 Yao Qi <yao@codesourcery.com>
577
578 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
579 * gnulib/aclocal.m4: Re-generated.
580 * gnulib/config.in: Likewise.
581 * gnulib/configure: Likewise.
582 * gnulib/import/Makefile.am: Likewise.
583 * gnulib/import/Makefile.in: Likewise.
584 * gnulib/import/m4/gnulib-cache.m4: Likewise.
585 * gnulib/import/m4/gnulib-comp.m4: Likewise.
586 * gnulib/import/dosname.h: New file
587 * gnulib/import/m4/largefile.m4: New file.
588 * gnulib/import/m4/readlink.m4: New file.
589 * gnulib/import/m4/stat.m4: New file.
590 * gnulib/import/readlink.c: New file.
591 * gnulib/import/stat.c: New file.
592
593 2014-11-26 Mark Wielaard <mjw@redhat.com>
594
595 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
596 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
597
598 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
599
600 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
601 that there can be only one stack adjustment in the prologue
602 with tests to detect specific disallowed stack adjustments.
603
604 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
605
606 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
607 adjustments.
608
609 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
610
611 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
612 the instruction as well as reading it from memory.
613 (nios2_match_add): New.
614 (nios2_match_sub): New.
615 (nios2_match_addi): New.
616 (nios2_match_orhi): New.
617 (nios2_match_stw): New.
618 (nios2_match_ldw): New.
619 (nios2_match_rdctl): New.
620 (enum branch_condition): New.
621 (nios2_match_branch): New.
622 (nios2_match_jmpi): New.
623 (nios2_match_calli): New.
624 (nios2_match_jmpr): New.
625 (nios2_match_callr): New.
626 (nios2_match_break): New.
627 (nios2_match_trap): New.
628 (nios2_in_epilogue_p): Rewrite to use new functions.
629 (nios2_analyze_prologue): Likewise.
630 (nios2_skip_prologue): Delete unused local limit_pc.
631 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
632 (nios2_get_next_pc): Rewrite to use new functions.
633
634 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
635
636 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
637
638 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
639
640 Pushed by Joel Brobecker <brobecker@adacore.com>
641 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
642 elements pi_len by the size of the elements before calling
643 vm_deallocate.
644 (inf_validate_task_sc): Likewise, and properly deallocate the
645 noise array.
646
647 2014-11-23 Doug Evans <xdje42@gmail.com>
648
649 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
650 number and name if present. All callers updated.
651 (dump_fn_fieldlists): Fix indentation of args.
652
653 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
654
655 * MAINTAINERS (Write After Approval): Add myself.
656
657 2014-11-23 Joel Brobecker <brobecker@adacore.com>
658
659 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
660 to a bp_call_dummy breakpoint type.
661
662 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
663
664 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
665 registering the signal handler.
666
667 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
668
669 * event-top.h (call_stdin_event_handler_again_p): Declare.
670 * event-top.c (call_stdin_event_handler_again_p): Define.
671 (stdin_event_handler): Use it.
672 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
673 handler again if there is pending input following a
674 start sequence.
675
676 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
677
678 Pushed by Joel Brobecker <brobecker@adacore.com>
679 * linux-fork.c (checkpoint_command): Print index of new
680 checkpoint in response message.
681
682 2014-11-23 Yao Qi <yao@codesourcery.com>
683
684 * valprint.c (read_string): Move local variables 'found_nul',
685 'chunksize' and 'limit' to inner scope. Update comments.
686
687 2014-11-22 Doug Evans <xdje42@gmail.com>
688
689 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
690 function comment.
691 (search_symbols): Fix comments and whitespace.
692
693 2014-11-22 Doug Evans <xdje42@gmail.com>
694
695 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
696
697 2014-11-21 Doug Evans <dje@google.com>
698
699 * psymtab.c (psymtab_search_name): Fix whitespace.
700
701 2014-11-21 Yao Qi <yao@codesourcery.com>
702
703 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
704 errno.
705 * gnulib/import/Makefile.am: Re-generated.
706 * gnulib/import/Makefile.in: Likewise.
707 * gnulib/import/m4/gnulib-cache.m4: Likewise.
708
709 2014-11-21 Yao Qi <yao@codesourcery.com>
710
711 * gdb_wchar.h: Include wchar.h and wctype.h.
712 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
713 include wchar.h and wctype.h.
714 Don't check HAVE_WCHAR_H.
715
716 2014-11-21 Yao Qi <yao@codesourcery.com>
717
718 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
719 and wctype-h.
720 * gnulib/import/Makefile.am: Re-generated.
721 * gnulib/import/Makefile.in: Likewise.
722 * gnulib/import/m4/gnulib-cache.m4: Likewise.
723
724 2014-11-21 Yao Qi <yao@codesourcery.com>
725
726 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
727 memchr.
728 * gnulib/import/Makefile.am: Re-generated.
729 * gnulib/import/Makefile.in: Likewise.
730 * gnulib/import/m4/gnulib-cache.m4: Likewise.
731
732 2014-11-21 Yao Qi <yao@codesourcery.com>
733
734 * common/common-defs.h: Include alloca.h
735 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
736 * configure: Re-generated.
737 * defs.h: Remove code handling alloca.
738 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
739 or not.
740
741 2014-11-21 Yao Qi <yao@codesourcery.com>
742
743 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
744 alloca.
745 * gnulib/import/Makefile.am: Re-generated.
746 * gnulib/import/Makefile.in: Likewise..
747 * gnulib/import/m4/gnulib-cache.m4: Likewise.
748
749 2014-11-21 Yao Qi <yao@codesourcery.com>
750
751 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
752 alphabetical order.
753
754 2014-11-21 Joel Brobecker <brobecker@adacore.com>
755
756 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
757 flag_unsigned if HIGH_BOUND is constant and negative.
758
759 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
760
761 PR breakpoints/10737
762 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
763 modifier from "struct gdbarch" when compiling without Expat (XML)
764 support.
765 (get_syscall_by_number): Likewise.
766 (get_syscall_by_name): Likewise.
767 (get_syscall_names): Likewise.
768
769 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
770
771 PR breakpoints/10737
772 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
773 set_xml_syscall_file_name to provide gdbarch.
774 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
775 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
776 * breakpoint.c (print_it_catch_syscall): Adjust call to
777 get_syscall_by_number to provide gdbarch.
778 (print_one_catch_syscall): Likewise.
779 (print_mention_catch_syscall): Likewise.
780 (print_recreate_catch_syscall): Likewise.
781 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
782 and get_syscall_by_name to provide gdbarch.
783 (catch_syscall_completer): Adjust call to get_syscall_names to
784 provide gdbarch.
785 * gdbarch.c: Regenerate.
786 * gdbarch.h: Likewise.
787 * gdbarch.sh: Forward declare "struct syscalls_info".
788 (xml_syscall_file): New variable.
789 (syscalls_info): Likewise.
790 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
791 set_xml_syscall_file_name to provide gdbarch.
792 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
793 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
794 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
795 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
796 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
797 * xml-syscall.c: Include gdbarch.h.
798 (set_xml_syscall_file_name): Accept gdbarch parameter.
799 (get_syscall_by_number): Likewise.
800 (get_syscall_by_name): Likewise.
801 (get_syscall_names): Likewise.
802 (my_gdb_datadir): Delete global variable.
803 (struct syscalls_info) <my_gdb_datadir>: New variable.
804 (struct syscalls_info) <sysinfo>: Rename variable to
805 "syscalls_info".
806 (sysinfo): Delete global variable.
807 (have_initialized_sysinfo): Likewise.
808 (xml_syscall_file): Likewise.
809 (sysinfo_free_syscalls_desc): Rename to...
810 (syscalls_info_free_syscalls_desc): ... this.
811 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
812 code to the new layout of "struct syscalls_info".
813 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
814 "syscalls_info".
815 (syscall_create_syscall_desc): Likewise.
816 (syscall_start_syscall): Likewise.
817 (syscall_parse_xml): Likewise.
818 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
819 (init_sysinfo): Rename to...
820 (init_syscalls_info): ...this. Add gdbarch as a parameter.
821 Adjust function to deal with gdbarch.
822 (xml_get_syscall_number): Delete parameter sysinfo. Accept
823 gdbarch as a parameter. Adjust code.
824 (xml_get_syscall_name): Likewise.
825 (xml_list_of_syscalls): Likewise.
826 (set_xml_syscall_file_name): Accept gdbarch as parameter.
827 (get_syscall_by_number): Likewise.
828 (get_syscall_by_name): Likewise.
829 (get_syscall_names): Likewise.
830 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
831 (get_syscall_by_number): Likewise.
832 (get_syscall_by_name): Likewise.
833 (get_syscall_names): Likewise.
834
835 2014-11-20 Doug Evans <xdje42@gmail.com>
836
837 Split struct symtab into two: struct symtab and compunit_symtab.
838 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
839 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
840 to "struct compunit_symtab *". All callers updated.
841 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
842 "struct symtab *" argument to "struct compunit_symtab *".
843 All callers updated.
844 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
845 result to "struct compunit_symtab *". All callers updated.
846 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
847 Change result to "struct compunit_symtab *". All callers updated.
848 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
849 hange type to "struct compunit_symtab *". All uses updated.
850 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
851 Change type to "struct compunit_symtab *". All uses updated.
852 * buildsym.c (struct buildsym_compunit): New struct.
853 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
854 (buildsym_compunit): New static global.
855 (finish_block_internal): Update to fetch objfile from
856 buildsym_compunit.
857 (make_blockvector): Delete objfile argument.
858 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
859 debugformat, producer.
860 (start_buildsym_compunit): New function.
861 (free_buildsym_compunit): Renamed from free_subfiles_list.
862 All callers updated.
863 (patch_subfile_names): Rewrite to use buildsym_compunit.
864 (get_compunit_symtab): New function.
865 (get_macro_table): Delete argument comp_dir. All callers updated.
866 (start_symtab): Change result to "struct compunit_symtab *".
867 All callers updated. Create the subfile of the main source file.
868 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
869 (reset_symtab_globals): Update.
870 (end_symtab_get_static_block): Update to use buildsym_compunit.
871 (end_symtab_without_blockvector): Rewrite.
872 (end_symtab_with_blockvector): Change result to
873 "struct compunit_symtab *". All callers updated.
874 Update to use buildsym_compunit. Don't set symtab->dirname,
875 instead set it in the compunit.
876 Explicitly make sure main symtab is first in its list.
877 Set debugformat, producer, blockvector, block_line_section, and
878 macrotable in the compunit.
879 (end_symtab_from_static_block): Change result to
880 "struct compunit_symtab *". All callers updated.
881 (end_symtab, end_expandable_symtab): Ditto.
882 (set_missing_symtab): Change symtab argument to
883 "struct compunit_symtab *". All callers updated.
884 (augment_type_symtab): Ditto.
885 (record_debugformat): Update to use buildsym_compunit.
886 (record_producer): Update to use buildsym_compunit.
887 * buildsym.h (struct subfile) <dirname>: Delete.
888 <producer, debugformat>: Delete.
889 <buildsym_compunit>: New member.
890 (get_compunit_symtab): Declare.
891 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
892 from primary_symtab. Change type to "struct compunit_symtab *".
893 All uses updated.
894 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
895 All callers updated.
896 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
897 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
898 symtab. Change type to "struct compunit_symtab *". All uses updated.
899 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
900 All callers updated.
901 (dw2_find_last_source_symtab): Ditto.
902 (dw2_lookup_symbol): Ditto.
903 (recursively_find_pc_sect_compunit_symtab): Renamed from
904 recursively_find_pc_sect_symtab. Change result to
905 "struct compunit_symtab *". All callers updated.
906 (dw2_find_pc_sect_compunit_symtab): Renamed from
907 dw2_find_pc_sect_symtab. Change result to
908 "struct compunit_symtab *". All callers updated.
909 (get_compunit_symtab): Renamed from get_symtab. Change result to
910 "struct compunit_symtab *". All callers updated.
911 (recursively_compute_inclusions): Change type of immediate_parent
912 argument to "struct compunit_symtab *". All callers updated.
913 (compute_compunit_symtab_includes): Renamed from
914 compute_symtab_includes. All callers updated. Rewrite to compute
915 includes of compunit_symtabs and not symtabs.
916 (process_full_comp_unit): Update to work with struct compunit_symtab.
917 (process_full_type_unit): Ditto.
918 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
919 (dwarf_decode_lines): Remove special case handling of main subfile.
920 (macro_start_file): Delete argument comp_dir. All callers updated.
921 (dwarf_decode_macro_bytes): Ditto.
922 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
923 use struct compunit_symtab.
924 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
925 * jit.c (finalize_symtab): Build compunit_symtab.
926 * jv-lang.c (get_java_class_symtab): Change result to
927 "struct compunit_symtab *". All callers updated.
928 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
929 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
930 comp_dir. Change type to "struct compunit_symtab *".
931 All uses updated.
932 (new_macro_table): Change comp_dir argument to cust,
933 "struct compunit_symtab *". All callers updated.
934 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
935 nr_primary_symtabs. All uses updated.
936 (count_symtabs_and_blocks): Update to handle compunits.
937 (report_command_stats): Update output, "primary symtabs" renamed to
938 "compunits".
939 * mdebugread.c (new_symtab): Change result to
940 "struct compunit_symtab *". All callers updated.
941 (parse_procedure): Change type of search_symtab argument to
942 "struct compunit_symtab *". All callers updated.
943 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
944 separate loop.
945 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
946 symtabs. Change type to "struct compunit_symtab *". All uses updated.
947 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
948 All uses updated.
949 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
950 All uses updated.
951 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
952 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
953 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
954 symtab. Change type to "struct compunit_symtab *". All uses updated.
955 * psymtab.c (psymtab_to_symtab): Change result type to
956 "struct compunit_symtab *". All callers updated.
957 (find_pc_sect_compunit_symtab_from_partial): Renamed from
958 find_pc_sect_symtab_from_partial. Change result type to
959 "struct compunit_symtab *". All callers updated.
960 (lookup_symbol_aux_psymtabs): Change result type to
961 "struct compunit_symtab *". All callers updated.
962 (find_last_source_symtab_from_partial): Ditto.
963 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
964 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
965 and macro_table from compunit.
966 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
967 type to "struct compunit_symtab *". All callers updated.
968 (debug_qf_lookup_symbol): Ditto.
969 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
970 debug_qf_find_pc_sect_symtab, change result type to
971 "struct compunit_symtab *". All callers updated.
972 * symfile.c (allocate_symtab): Delete objfile argument.
973 New argument cust.
974 (allocate_compunit_symtab): New function.
975 (add_compunit_symtab_to_objfile): New function.
976 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
977 Change result type to "struct compunit_symtab *". All uses updated.
978 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
979 Change result type to "struct compunit_symtab *". All uses updated.
980 * symmisc.c (print_objfile_statistics): Compute blockvector count in
981 separate loop.
982 (dump_symtab_1): Update test for primary source symtab.
983 (maintenance_info_symtabs): Update to handle compunit symtabs.
984 (maintenance_check_symtabs): Ditto.
985 * symtab.c (set_primary_symtab): Delete.
986 (compunit_primary_filetab): New function.
987 (compunit_language): New function.
988 (iterate_over_some_symtabs): Change type of arguments "first",
989 "after_last" to "struct compunit_symtab *". All callers updated.
990 Update to loop over symtabs in each compunit.
991 (error_in_psymtab_expansion): Rename symtab argument to cust,
992 and change type to "struct compunit_symtab *". All callers updated.
993 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
994 Change result type to "struct compunit_symtab *". All callers updated.
995 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
996 Change result type to "struct compunit_symtab *". All callers updated.
997 (find_pc_sect_line): Only loop over symtabs within selected compunit
998 instead of all symtabs in the objfile.
999 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
1000 <compunit_symtab> New member.
1001 <block_line_section>: Moved to compunit_symtab.
1002 <locations_valid>: Ditto.
1003 <epilogue_unwind_valid>: Ditto.
1004 <macro_table>: Ditto.
1005 <dirname>: Ditto.
1006 <debugformat>: Ditto.
1007 <producer>: Ditto.
1008 <objfile>: Ditto.
1009 <call_site_htab>: Ditto.
1010 <includes>: Ditto.
1011 <user>: Ditto.
1012 <primary>: Delete
1013 (SYMTAB_COMPUNIT): New macro.
1014 (SYMTAB_BLOCKVECTOR): Update definition.
1015 (SYMTAB_OBJFILE): Update definition.
1016 (SYMTAB_DIRNAME): Update definition.
1017 (struct compunit_symtab): New type. Common members among all source
1018 symtabs within a compilation unit moved here. All uses updated.
1019 (COMPUNIT_OBJFILE): New macro.
1020 (COMPUNIT_FILETABS): New macro.
1021 (COMPUNIT_DEBUGFORMAT): New macro.
1022 (COMPUNIT_PRODUCER): New macro.
1023 (COMPUNIT_DIRNAME): New macro.
1024 (COMPUNIT_BLOCKVECTOR): New macro.
1025 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1026 (COMPUNIT_LOCATIONS_VALID): New macro.
1027 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1028 (COMPUNIT_CALL_SITE_HTAB): New macro.
1029 (COMPUNIT_MACRO_TABLE): New macro.
1030 (ALL_COMPUNIT_FILETABS): New macro.
1031 (compunit_symtab_ptr): New typedef.
1032 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1033
1034 2014-11-20 Joel Brobecker <brobecker@adacore.com>
1035
1036 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1037 if the TYPE_CODE of range_type's base type does not match
1038 the TYPE_CODE of encoding_type's base type.
1039
1040 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1041
1042 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1043 it starts with '<'.
1044
1045 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1046
1047 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1048 (ada_is_redundant_index_type_desc): New function.
1049 (to_fixed_array_type): Ignore parallel XA type if redundant.
1050
1051 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1052
1053 * ada-lang.c (constrained_packed_array_type): Set the length
1054 of the return array as if both bounds where zero if that
1055 returned array's index type is dynamic.
1056
1057 2014-11-19 Yao Qi <yao@codesourcery.com>
1058
1059 * config/i386/go32.mh (CC): Remove.
1060
1061 2014-11-18 Doug Evans <xdje42@gmail.com>
1062
1063 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1064 updated.
1065
1066 2014-11-18 Doug Evans <xdje42@gmail.com>
1067
1068 * buildsym.c (buildsym_objfile): New static global.
1069 (buildsym_comp_dir): New static global.
1070 (finish_block_internal): Delete arg objfile. All callers updated.
1071 (finish_block): Delete arg objfile. All callers updated.
1072 (start_subfile): Delete arg dirname. All callers updated.
1073 (patch_subfile_names): Update buildsym_comp_dir.
1074 (get_macro_table): Delete arg objfile. All callers updated.
1075 (start_symtab): New arg objfile. All callers updated.
1076 Rename arg dirname to comp_dir.
1077 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1078 (end_symtab_get_static_block): Delete arg objfile. All callers
1079 updated.
1080 (end_symtab_without_blockvector): Ditto.
1081 (end_symtab_with_blockvector): Ditto.
1082 (end_symtab_from_static_block): Ditto.
1083 (end_symtab): Ditto.
1084 (end_expandable_symtab): Ditto.
1085 (augment_type_symtab): Ditto.
1086 * coffread.c (coff_start_symtab): New arg objfile. All callers
1087 updated.
1088
1089 2014-11-18 Doug Evans <xdje42@gmail.com>
1090
1091 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1092 updated.
1093
1094 2014-11-18 Doug Evans <xdje42@gmail.com>
1095
1096 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1097 symtab.dirname updated to use it.
1098
1099 2014-11-18 Doug Evans <xdje42@gmail.com>
1100
1101 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1102 symtab.objfile updated to use it.
1103
1104 2014-11-18 Doug Evans <xdje42@gmail.com>
1105
1106 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1107
1108 2014-11-18 Doug Evans <xdje42@gmail.com>
1109
1110 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1111 SYMBOL_OBJFILE.
1112 * findvar.c (default_read_var_value): Ditto.
1113 * jv-lang.c (add_class_symtab_symbol): Ditto.
1114 * parse.c (operator_check_standard): Ditto.
1115 * printcmd.c (address_info): Ditto.
1116 * symtab.c (fixup_symbol_section): Ditto.
1117 (skip_prologue_sal): Ditto.
1118 * tracepoint.c (scope_info): Ditto.
1119 * valops.c (find_function_in_inferior): Ditto.
1120 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1121 * python/py-symbol.c (set_symbol): Ditto.
1122
1123 2014-11-18 Doug Evans <xdje42@gmail.com>
1124
1125 * buildsym.c (main_subfile): New static global.
1126 (free_subfiles_list): New function.
1127 (start_symtab): Set main_subfile.
1128 (restart_symtab): Replace init of subfiles, current_subfile with
1129 call to free_subfiles_list.
1130 (watch_main_source_file_lossage): Use main_subfile.
1131 (reset_symtab_globals): Replace init of current_subfile with call
1132 to free_subfiles_list.
1133 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1134 functions, split out from ...
1135 (end_symtab_from_static_block): ... here. Rewrite to call them.
1136
1137 2014-11-18 Doug Evans <xdje42@gmail.com>
1138
1139 The result of symtab expansion is always a primary symtab.
1140 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1141 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1142 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1143 (psymtab_to_symtab): Add comment and assert.
1144 (map_matching_symbols_psymtab): Remove unnecessary test for
1145 non-primary symtab.
1146
1147 2014-11-15 Doug Evans <xdje42@gmail.com>
1148
1149 PR symtab/17559
1150 * symtab.c (find_pc_line_symtab): New function.
1151 * symtab.h (find_pc_line_symtab): Declare.
1152 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1153 find_pc_symtab.
1154 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1155 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1156 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1157 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1158 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1159 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1160
1161 2014-11-15 Doug Evans <xdje42@gmail.com>
1162
1163 * symtab.c (expand_symtab_containing_pc): Renamed from
1164 find_pc_sect_symtab_via_partial. All callers updated.
1165
1166 2014-11-15 Yao Qi <yao@codesourcery.com>
1167
1168 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1169
1170 2014-11-14 Joel Brobecker <brobecker@adacore.com>
1171
1172 * common/common-defs.h: Move <stdarg.h> #include ahead of
1173 <stdio.h> #include.
1174
1175 2014-11-14 Pedro Alves <palves@redhat.com>
1176
1177 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1178 [!PHONY_ICONV] (gdb_iconv): New function.
1179 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1180
1181 2014-11-13 Doug Evans <dje@google.com>
1182
1183 PR symtab/17591
1184 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1185 "(anonymous namespace)".
1186
1187 2014-11-13 Doug Evans <dje@google.com>
1188
1189 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1190 infinite loop.
1191
1192 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1193
1194 * NEWS (maint set target-async): Fix typo.
1195
1196 2014-11-12 Pedro Alves <palves@redhat.com>
1197
1198 * infrun.c (enum infwait_states, infwait_state): Delete.
1199
1200 2014-11-12 Pedro Alves <palves@redhat.com>
1201
1202 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1203 Rewrite stepping over a permanent breakpoint.
1204 (thread_still_needs_step_over, proceed): Don't set
1205 stepping_over_breakpoint for permanent breakpoints.
1206 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1207 single-step breakpoints out of the target on hardware step
1208 targets.
1209 (process_event_stop_test): If stepping a permanent breakpoint
1210 doesn't hit the step-resume breakpoint, delete the step-resume
1211 breakpoint.
1212 (switch_back_to_stepped_thread): Also check if the stepped thread
1213 has advanced already on hardware step targets.
1214 (currently_stepping): Return true if the thread stepped a
1215 breakpoint.
1216
1217 2014-11-12 Pedro Alves <palves@redhat.com>
1218
1219 Mark locations as permanent, not the whole breakpoint.
1220 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1221 (mark_breakpoints_out): Don't mark permanent breakpoints as
1222 uninserted.
1223 (breakpoint_init_inferior): Use mark_breakpoints_out.
1224 (breakpoint_here_p): Adjust.
1225 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1226 of permanent breakpoints.
1227 (make_breakpoint_permanent): Mark each location as permanent,
1228 instead of marking the breakpoint.
1229 (add_location_to_breakpoint): If the location is permanent, mark
1230 it as such, and as inserted.
1231 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1232 (bp_location_compare, update_global_location_list): Adjust.
1233 (update_breakpoint_locations): Don't make the breakpoint permanent
1234 here.
1235 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1236 breakpoints.
1237 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1238 (struct bp_location) <permanent>: New field.
1239 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1240 reference to bp_permanent.
1241
1242 2014-11-12 Pedro Alves <palves@redhat.com>
1243
1244 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1245 * arch-utils.h (default_skip_permanent_breakpoint): New
1246 declaration.
1247 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1248 Install default_skip_permanent_breakpoint as default method.
1249 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1250 (i386_gdbarch_init): Don't install it.
1251 * infrun.c (resume): Assume there's always a
1252 gdbarch_skip_permanent_breakpoint implementation.
1253 * gdbarch.h, gdbarch.c: Regenerate.
1254
1255 2014-11-11 Daniel Colascione <dancol@dancol.org>
1256
1257 Warn about cross-PID-namespace debugging.
1258 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1259 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1260 * linux-thread-db.c (check_pid_namespace_match): New function.
1261 (thread_db_inferior_created): Call it.
1262
1263 2014-11-10 Doug Evans <xdje42@gmail.com>
1264
1265 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1266 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1267
1268 2014-11-10 Doug Evans <xdje42@gmail.com>
1269
1270 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1271
1272 2014-11-10 Doug Evans <xdje42@gmail.com>
1273
1274 PR symtab/17564
1275 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1276 (lookup_static_symbol): Move definition to new location and rewrite.
1277 (lookup_symbol_in_objfile): New function.
1278 (lookup_symbol_global_iterator_cb): Call it.
1279
1280 2014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
1281
1282 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1283
1284 2014-11-07 Pedro Alves <palves@redhat.com>
1285
1286 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1287 check if we did a "nexti" inside a prologue.
1288 * symtab.c (in_prologue): Delete function.
1289 * symtab.h (in_prologue): Delete declaration.
1290
1291 2014-11-06 Doug Evans <xdje42@gmail.com>
1292
1293 * symtab.h (lookup_global_symbol): Improve function comment.
1294
1295 2014-11-06 Doug Evans <xdje42@gmail.com>
1296
1297 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1298 All callers updated.
1299 * symtab.h (lookup_global_symbol): Update decl.
1300 (lookup_static_symbol): Move decl to better location.
1301
1302 2014-11-06 Doug Evans <xdje42@gmail.com>
1303
1304 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1305
1306 2014-11-06 Doug Evans <xdje42@gmail.com>
1307
1308 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1309 All callers updated.
1310 (lookup_symbol_in_all_objfiles): Renamed from
1311 lookup_symbol_aux_symtabs. All callers updated.
1312 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1313 All callers updated.
1314 (lookup_symbol_in_objfile_symtabs): Renamed from
1315 lookup_symbol_aux_objfile. All callers updated.
1316
1317 2014-11-06 Doug Evans <xdje42@gmail.com>
1318
1319 * symtab.c (lookup_symbol_in_block): Renamed from
1320 lookup_symbol_aux_block. All callers updated.
1321
1322 2014-11-06 Doug Evans <xdje42@gmail.com>
1323
1324 * symtab.c (lookup_static_symbol): Renamed from
1325 lookup_static_symbol_aux. All callers updated.
1326 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1327 All callers updated.
1328
1329 2014-11-06 Doug Evans <xdje42@gmail.com>
1330
1331 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1332 * block.c (block_lookup_symbol): Use it.
1333 * cp-support.c (make_symbol_overload_list_block): Use it.
1334 * symtab.c (iterate_over_symbols): Use it.
1335
1336 2014-11-06 Doug Evans <xdje42@gmail.com>
1337
1338 * symtab.c (lookup_block_symbol): Moved to ...
1339 * block.c (block_lookup_symbol): ... here and renamed.
1340 All callers updated.
1341 * block.h (block_lookup_symbol): Declare.
1342 * symtab.h (lookup_block_symbol): Delete.
1343
1344 2014-11-06 Doug Evans <xdje42@gmail.com>
1345
1346 * ada-lang.c (ada_make_symbol_completion_list): Use
1347 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1348 * symtab.c (lookup_objfile_from_block): Ditto.
1349
1350 2014-11-06 Doug Evans <xdje42@gmail.com>
1351
1352 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1353 TYPE_CODE_STRUCT.
1354
1355 2014-11-06 Doug Evans <xdje42@gmail.com>
1356
1357 * objfiles.c (get_objfile_arch): Constify.
1358 * objfiles.h (get_objfile_arch): Update prototype.
1359 * solib.c (solib_global_lookup): Fetch arch from objfile,
1360 not target_gdbarch.
1361
1362 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1363
1364 * nios2-tdep.c (wild_insn): Delete.
1365 (profiler_insn, irqentry_insn): Delete.
1366 (nios2_match_sequence): Delete.
1367 (nios2_analyze_prologue): Update comments. Remove matching
1368 of obsolete profiler_insn and irqentry_insn sequences.
1369
1370 2014-11-05 Alan Modra <amodra@gmail.com>
1371
1372 * charset.c (convert_between_encodings): Shrink obstack using
1373 obstack_blank_fast.
1374 * minsyms.c (install_minimal_symbols): Likewise.
1375 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1376 to char* before doing pointer arithmetic.
1377
1378 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1379
1380 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1381
1382 2014-11-04 Pedro Alves <palves@redhat.com>
1383
1384 * breakpoint.c (breakpoint_thread_match): Delete function.
1385 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1386
1387 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1388
1389 PR c++/17494
1390 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1391 the method args also under EVAL_SKIP when evaluating method
1392 calls under EVAL_SKIP.
1393
1394 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1395
1396 * dwarf2loc.c (read_pieced_value): Do big endian
1397 processing only if gdb_regnum is not -1.
1398 (write_pieced_value): Ditto.
1399
1400 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1401
1402 * arm-linux-tdep.c (arm_linux_init_abi): Use
1403 info.byte_order_for_code to choose endianity of breakpoint
1404 instructions snippets.
1405
1406 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1407
1408 * arm-tdep.c (extract_arm_insn): Use
1409 gdbarch_byte_order_for_code to read arm instruction.
1410
1411 2014-11-02 Doug Evans <xdje42@gmail.com>
1412
1413 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1414
1415 2014-11-02 Doug Evans <xdje42@gmail.com>
1416
1417 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1418 main_subfile before returning.
1419
1420 2014-10-31 Doug Evans <xdje42@gmail.com>
1421
1422 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1423 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1424
1425 2014-10-31 Doug Evans <xdje42@gmail.com>
1426
1427 * valops.c (value_cast_pointers): Fix whitespace.
1428 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1429 Ditto.
1430
1431 2014-10-30 Doug Evans <dje@google.com>
1432
1433 * NEWS: Mention ability add attributes to gdb.Objfile and
1434 gdb.Progspace objects.
1435 * python/py-objfile.c (objfile_object): New member dict.
1436 (objfpy_dealloc): Py_XDECREF dict.
1437 (objfpy_initialize): Initialize dict.
1438 (objfile_getset): Add __dict__.
1439 (objfile_object_type): Set tp_dictoffset member.
1440 * python/py-progspace.c (progspace_object): New member dict.
1441 (pspy_dealloc): Py_XDECREF dict.
1442 (pspy_initialize): Initialize dict.
1443 (pspace_getset): Add __dict__.
1444 (pspace_object_type): Set tp_dictoffset member.
1445
1446 2014-10-30 Yao Qi <yao@codesourcery.com>
1447
1448 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1449 replace '\\' with '\\\\'.
1450
1451 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1452
1453 GDB 7.8.1 released.
1454
1455 2014-10-29 Pedro Alves <palves@redhat.com>
1456
1457 PR gdb/17408
1458 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1459 instead of assuming a thread with a stepping range is always
1460 stepping.
1461
1462 2014-10-29 Pedro Alves <palves@redhat.com>
1463
1464 PR python/17372
1465 * event-top.c (change_line_handler): Call
1466 gdb_rl_callback_handler_remove instead of
1467 rl_callback_handler_remove.
1468 (callback_handler_installed): New global.
1469 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1470 (gdb_rl_callback_handler_reinstall): New functions.
1471 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1472 gdb_rl_callback_handler_install instead of
1473 rl_callback_handler_remove and rl_callback_handler_install.
1474 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1475 instead of rl_callback_handler_remove.
1476 * event-top.h (gdb_rl_callback_handler_remove)
1477 (gdb_rl_callback_handler_install)
1478 (gdb_rl_callback_handler_reinstall): New declarations.
1479 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1480 cleanup function.
1481 (fetch_inferior_event): Install it.
1482 * top.c (gdb_readline_wrapper_line) Call
1483 gdb_rl_callback_handler_remove instead of
1484 rl_callback_handler_remove.
1485 (gdb_readline_wrapper_cleanup): Don't call
1486 rl_callback_handler_install.
1487
1488 2014-10-29 Pedro Alves <palves@redhat.com>
1489
1490 * event-top.c (command_line_handler): Clear the first byte of
1491 linebuffer, when it is first allocated.
1492
1493 2014-10-29 Pedro Alves <palves@redhat.com>
1494
1495 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1496 TRY_CATCH.
1497
1498 2014-10-29 Pedro Alves <palves@redhat.com>
1499
1500 PR tui/16138
1501 PR tui/17519
1502 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1503 (tui_allowed_p): Delete function.
1504 * tui/tui.c: Include "interps.h".
1505 (tui_enable): Don't use tui_allowed_p. Error out here with
1506 detailed error messages if the TUI is the top level interpreter,
1507 or if output is not a terminal. Use newterm instead of initscr,
1508 and error out if initializing the terminal fails. Also error out if
1509 the terminal doesn't support cursor addressing.
1510 * tui/tui.h (tui_allowed_p): Delete declaration.
1511
1512 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1513
1514 * arm-tdep.c (arm_skip_stack_protector): Return early if
1515 address loaded by first "ldr" instruction does not have
1516 a corresponding minimal symbol. Update comment.
1517
1518 2014-10-29 Yao Qi <yao@codesourcery.com>
1519
1520 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1521 loaded address correctly of ldr instruction.
1522
1523 2014-10-28 Pedro Alves <palves@redhat.com>
1524
1525 PR gdb/12623
1526 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1527 field.
1528 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1529 thread's stepped_breakpoint field. Skip if reverse debugging.
1530 Add comment.
1531 (init_thread_stepping_state, handle_signal_stop): Clear the
1532 thread's stepped_breakpoint field.
1533
1534 2014-10-27 Pedro Alves <palves@redhat.com>
1535
1536 * remote.c (remote_thread_alive): New, factored out from ...
1537 (remote_thread_alive): ... this.
1538 (remote_update_thread_list): Bail out before deleting threads if
1539 the target returned an empty list, and, the current thread has a
1540 magic/fake ptid.
1541
1542 2014-10-27 Pedro Alves <palves@redhat.com>
1543
1544 * infrun.c (handle_signal_stop): Also skip handlers when a random
1545 signal arrives while handling a "stepi" or a "nexti". Set the
1546 thread's 'step_after_step_resume_breakpoint' flag.
1547
1548 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
1549
1550 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1551 (arm_record_ld_st_imm_offset): Reimplement to cover all
1552 load/store cases for ARM opcode 010.
1553 (arm_record_ld_st_multiple): Reimplement to cover all
1554 load/store cases for ARM opcode 100.
1555
1556 2014-10-26 Doug Evans <xdje42@gmail.com>
1557
1558 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1559
1560 2014-10-26 Doug Evans <xdje42@gmail.com>
1561
1562 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1563 parameter "kind" to "block_index".
1564 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1565 "block_index".
1566 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1567
1568 2014-10-26 Doug Evans <xdje42@gmail.com>
1569
1570 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1571
1572 2014-10-26 Doug Evans <xdje42@gmail.com>
1573
1574 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1575 obstack_alloc.
1576
1577 2014-10-26 Doug Evans <xdje42@gmail.com>
1578
1579 * parser-defs.h (block_found): Move decl from here ...
1580 * symtab.h (block_found): ... to here.
1581
1582 2014-10-26 Doug Evans <xdje42@gmail.com>
1583
1584 * symtab.h (struct field_of_this_result): Fix typo in comment.
1585 (lookup_symbol_in_language): Move function comment here.
1586 (lookup_symbol): Improve function comment.
1587 (basic_lookup_symbol_nonlocal): Ditto.
1588 (lookup_symbol_static, lookup_symbol_global): Ditto.
1589 (lookup_symbol_aux_block): Ditto.
1590 (lookup_language_this): Add function comment.
1591 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1592 function comment.
1593 (lookup_block_symbol): Improve function comment.
1594 (lookup_struct): Fix capitalization in function comment.
1595 (lookup_transparent_type): Add function comment.
1596 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1597 Improve function comment.
1598 (lookup_objfile_from_block): Add function comment.
1599 * symtab.c (lookup_symbol_in_language): Update function comment.
1600 (lookup_symbol, lookup_language_this): Ditto.
1601 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1602 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1603 (basic_lookup_symbol_nonlocal): Ditto.
1604 (lookup_symbol_static, lookup_symbol_global): Ditto.
1605 (lookup_transparent_type, lookup_block_symbol): Ditto.
1606
1607 2014-10-25 Doug Evans <xdje42@gmail.com>
1608
1609 * symtab.c (types_info): Delete forward decl.
1610 (functions_info, variables_info, sources_info): Ditto.
1611 (_initialize_symtab): Rewrite forward decl to use
1612 initialize_file_ftype.
1613
1614 2014-10-25 Doug Evans <xdje42@gmail.com>
1615
1616 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1617
1618 2014-10-25 Doug Evans <xdje42@gmail.com>
1619
1620 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1621 of local var child_die.
1622
1623 2014-10-24 Don Breazeal <donb@codesourcery.com>
1624
1625 * infrun.c (follow_fork_inferior): Update fork message printing
1626 to use target_terminal_ours_for_output instead of
1627 target_terminal_ours, to use _() for all format strings, to print
1628 "vfork" instead of "fork" for vforks, and to add a detach message.
1629 (handle_vfork_child_exec_or_exit): Update message printing to use
1630 target_terminal_ours_for_output instead of target_terminal_ours, to
1631 use _() for all format strings, and to fix some formatting.
1632
1633 2014-10-24 Pedro Alves <palves@redhat.com>
1634
1635 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1636 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1637 * config/vax/vax.mh: Delete.
1638 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1639 obsolete configurations section.
1640 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1641 * vax-nat.c: Delete file.
1642
1643 2014-10-24 Pedro Alves <palves@redhat.com>
1644
1645 * NEWS (Removed targets): Add OS/arch column.
1646
1647 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1648
1649 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1650 on the arg type of a constructor only if it is of reference type.
1651
1652 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1653
1654 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1655 accessors and constants from nios2 opcodes update.
1656 (nios2_get_next_pc): Likewise.
1657
1658 2014-10-19 Doug Evans <xdje42@gmail.com>
1659
1660 * gdbthread.h (set_running): Fix comment.
1661 (set_executing, finish_thread_state): Fix comment.
1662
1663 2014-10-18 Doug Evans <xdje42@gmail.com>
1664
1665 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1666
1667 2014-10-17 Doug Evans <dje@google.com>
1668
1669 * NEWS: Mention new event gdb.clear_objfiles.
1670 * python/py-event.h (emit_clear_objfiles_event): Clear
1671 * python/py-events.h (events_object): New member clear_objfiles.
1672 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1673 event.
1674 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1675 emit clear_objfiles event.
1676 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1677 function.
1678 (emit_clear_objfiles_event): New function.
1679 (clear_objfiles): New event.
1680 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1681 Declare.
1682 * python/python.c (_initialize_python): Call
1683 gdbpy_initialize_clear_objfiles_event.
1684
1685 2014-10-17 Doug Evans <dje@google.com>
1686
1687 * NEWS: Mention new gdb.Objfile.progspace attribute.
1688 * python/py-objfile.c (objfpy_get_progspace): New function.
1689 (objfile_getset): New entry for "progspace".
1690
1691 2014-10-17 Pedro Alves <palves@redhat.com>
1692
1693 PR gdb/17471
1694 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1695 returns a copy of the input.
1696 (run_command_1, continue_command, step_1, jump_command)
1697 (signal_command, until_command, advance_command, finish_command)
1698 (attach_command): Adjust and install a cleanup to free the
1699 stripped args.
1700
1701 2014-10-17 Pedro Alves <palves@redhat.com>
1702
1703 PR gdb/17300
1704 * infcmd.c (continue_1): If continuing all threads in the
1705 foreground, make sure the inferior's terminal settings are put in
1706 effect.
1707
1708 2014-10-17 Pedro Alves <palves@redhat.com>
1709
1710 PR gdb/17472
1711 * annotate.c (annotate_breakpoints_invalid): Use
1712 target_terminal_our_for_output instead of target_terminal_ours.
1713 Give back the terminal to the target.
1714 (annotate_frames_invalid): Likewise.
1715
1716 2014-10-17 Pedro Alves <palves@redhat.com>
1717
1718 * target.c (enum terminal_state): New enum.
1719 (terminal_state): New global.
1720 (target_terminal_init): New function.
1721 (target_terminal_inferior): Skip if inferior already owns the
1722 terminal.
1723 (target_terminal_ours, target_terminal_ours_for_output): New
1724 functions.
1725 * target.h (target_terminal_init): Convert to function prototype.
1726 (target_terminal_ours_for_output): Convert to function prototype
1727 and tweak comment.
1728 (target_terminal_ours): Convert to function prototype and tweak
1729 comment.
1730 * windows-nat.c (do_initial_windows_stuff): Call
1731 target_terminal_init instead of child_terminal_init_with_pgrp.
1732
1733 2014-10-17 Pedro Alves <palves@redhat.com>
1734
1735 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1736 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1737 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1738 solib-osf.c.
1739 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1740 * ada-lang.h [__alpha__ && __osf__]
1741 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1742 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1743 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1744 GDB_OSABI_OSF1.
1745 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1746 files.
1747 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1748 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1749 * configure: Regenerate.
1750 * configure.ac: Remove references to osf.
1751 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1752 section. Remove all other references to osf.
1753 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1754 Remove all other references to osf.
1755 * dec-thread.c: Delete file.
1756 * defs.h (GDB_OSABI_OSF1): Delete.
1757 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1758 defined.
1759 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1760 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1761 Delete code.
1762 (unconditionally_kill_inferior)
1763 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1764 * solib-osf.c: Delete file.
1765
1766 2014-10-17 Pedro Alves <palves@redhat.com>
1767
1768 * remote.c (clear_threads_listing_context): Move higher up, out of
1769 the HAVE_LIBEXPAT guard.
1770
1771 2014-10-16 Tristan Gingold <gingold@adacore.com>
1772
1773 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1774 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1775 on amd64.
1776
1777 2014-10-15 Pedro Alves <palves@redhat.com>
1778
1779 * dec-thread.c (dec_thread_count_gdb_threads)
1780 (dec_thread_add_gdb_thread): Delete.
1781 (dec_thread_update_thread_list): Delete.
1782 (dec_thread_find_new_threads): Rename to ...
1783 (dec_thread_update_thread_list): ... this. Delete GDB-size
1784 threads that are no longer found in dec_thread_list.
1785 (resync_thread_list): Delete.
1786 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1787 resync_thread_list.
1788
1789 2014-10-15 Pedro Alves <palves@redhat.com>
1790
1791 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1792 * remote.c (remote_update_thread_list): Skip calling prune_threads
1793 if any thread listing method is supported, and instead walk over
1794 the set of remote threads listed, deleting those that are not
1795 found in GDB's thread list.
1796
1797 2014-10-15 Pedro Alves <palves@redhat.com>
1798
1799 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1800 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1801 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1802 (bsd_uthread_target): Adjust.
1803 * corelow.c (core_open): Adjust.
1804 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1805 (dec_thread_update_thread_list): New function.
1806 (init_dec_thread_ops): Adjust.
1807 * gdbthread.h (prune_threads): New declaration.
1808 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1809 (thread_db_update_thread_list): ... this. Call prune_threads.
1810 (init_thread_db_ops): Adjust.
1811 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1812 (procfs_update_thread_list): ... this. Call prune_threads.
1813 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1814 Adjust.
1815 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1816 (obsd_update_thread_list): ... this. Call prune_threads.
1817 (obsd_add_target): Adjust.
1818 * procfs.c (procfs_target): Adjust.
1819 (procfs_notice_thread): Update comment.
1820 (procfs_find_new_threads): Rename to ...
1821 (procfs_update_thread_list): ... this. Call prune_threads.
1822 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1823 comment.
1824 (ravenscar_wait): Adjust.
1825 (ravenscar_find_new_threads): Rename to ...
1826 (ravenscar_update_thread_list): ... this. Call prune_threads.
1827 (init_ravenscar_thread_ops): Adjust.
1828 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1829 (record_btrace_update_thread_list): ... this. Adjust comment.
1830 (init_record_btrace_ops): Adjust.
1831 * remote.c (remote_threads_info): Rename to ...
1832 (remote_update_thread_list): ... this. Call prune_threads.
1833 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1834 Adjust.
1835 * sol-thread.c (check_for_thread_db): Adjust.
1836 (sol_find_new_threads_callback): Rename to ...
1837 (sol_update_thread_list_callback): ... this.
1838 (sol_find_new_threads): Rename to ...
1839 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1840 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1841 * target-delegates.c: Regenerate.
1842 * target.c (target_find_new_threads): Rename to ...
1843 (target_update_thread_list): ... this.
1844 * target.h (struct target_ops): Rename to_find_new_threads field
1845 to to_update_thread_list.
1846 (target_find_new_threads): Rename to ...
1847 (target_update_thread_list): ... this.
1848 * thread.c (prune_threads): Make extern.
1849 (update_thread_list): Adjust.
1850
1851 2014-10-15 Pedro Alves <palves@redhat.com>
1852
1853 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1854 Add describing comment. Return -1 if the qL packet is not
1855 supported.
1856 (struct thread_item, thread_item_t): Move higher up in
1857 the file. Add comments.
1858 (struct threads_parsing_context): Move higher up in
1859 the file, add comments, and remote to ...
1860 (struct threads_listing_context): ... this.
1861 (remote_newthread_step): Don't add the thread to GDB's thread
1862 database here. Instead push it to the thread_listing_context
1863 list.
1864 (remote_find_new_threads): Rename to ...
1865 (remote_get_threads_with_ql): ... this. Add target_ops and
1866 targets_listing_context parameters. Pass down context.
1867 (start_thread): Adjust.
1868 (clear_threads_parsing_context): Rename to ...
1869 (clear_threads_listing_context): ... this.
1870 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1871 remote_threads_info.
1872 (remote_get_threads_with_qthreadinfo): Ditto.
1873 (remote_threads_info): Reimplement.
1874
1875 2014-10-15 Pedro Alves <palves@redhat.com>
1876
1877 * infrun.c (resume): Don't force displaced-stepping for all
1878 single-steps on software single-stepping archs.
1879
1880 2014-10-15 Pedro Alves <palves@redhat.com>
1881
1882 * breakpoint.c (single_step_breakpoints): Delete global.
1883 (insert_single_step_breakpoint): Adjust to store the breakpoint
1884 pointer in the current thread.
1885 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1886 (cancel_single_step_breakpoints): Delete functions.
1887 (breakpoint_has_location_inserted_here): Make extern.
1888 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1889 breakpoint list.
1890 * breakpoint.h (breakpoint_has_location_inserted_here): New
1891 declaration.
1892 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1893 (cancel_single_step_breakpoints): Remove declarations.
1894 * gdbthread.h (struct thread_control_state)
1895 <single_step_breakpoints>: New field.
1896 (delete_single_step_breakpoints)
1897 (thread_has_single_step_breakpoints_set)
1898 (thread_has_single_step_breakpoint_here): New declarations.
1899 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1900 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1901 (singlestep_pc): Delete globals.
1902 (infrun_thread_ptid_changed): Remove references to removed
1903 globals.
1904 (resume_cleanups): Delete the current thread's single-step
1905 breakpoints.
1906 (maybe_software_singlestep): Remove references to removed globals.
1907 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1908 delete_single_step_breakpoints.
1909 (init_wait_for_inferior): Remove references to removed globals.
1910 (delete_thread_infrun_breakpoints): Delete the thread's
1911 single-step breakpoints too.
1912 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1913 single-step breakpoints here.
1914 (delete_stopped_threads_single_step_breakpoints): New function.
1915 (adjust_pc_after_break): Adjust to use
1916 thread_has_single_step_breakpoints_set.
1917 (handle_inferior_event): Remove references to removed globals.
1918 Use delete_stopped_threads_single_step_breakpoints.
1919 (handle_signal_stop): Adjust to per-thread single-step
1920 breakpoints. Swap test order to do cheaper tests first.
1921 (switch_back_to_stepped_thread): Extend debug output. Remove
1922 references to removed globals.
1923 * record-full.c (record_full_wait_1): Adjust to per-thread
1924 single-step breakpoints.
1925 * thread.c (delete_single_step_breakpoints)
1926 (thread_has_single_step_breakpoints_set)
1927 (thread_has_single_step_breakpoint_here): New functions.
1928 (clear_thread_inferior_resources): Also delete the thread's
1929 single-step breakpoints.
1930
1931 2014-10-15 Pedro Alves <palves@redhat.com>
1932
1933 * thread.c (delete_thread_breakpoint): New function.
1934 (delete_step_resume_breakpoint)
1935 (delete_exception_resume_breakpoint): Use it.
1936 (delete_at_next_stop): New function.
1937 (clear_thread_inferior_resources): Use delete_at_next_stop.
1938
1939 2014-10-15 Pedro Alves <palves@redhat.com>
1940
1941 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1942 (breakpoint_inserted_here_p): ... here. Remove special case for
1943 software single-step breakpoints.
1944 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1945 (software_breakpoint_inserted_here_p): ... here. Remove special
1946 case for software single-step breakpoints.
1947 (bp_target_info_copy_insertion_state)
1948 (deprecated_insert_raw_breakpoint)
1949 (deprecated_remove_raw_breakpoint): Delete functions.
1950 * breakpoint.h (deprecated_insert_raw_breakpoint)
1951 (deprecated_remove_raw_breakpoint): Remove declarations.
1952
1953 2014-10-15 Pedro Alves <palves@redhat.com>
1954
1955 PR breakpoints/9649
1956 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1957 Delete array globals.
1958 (single_step_breakpoints): New global.
1959 (breakpoint_xfer_memory): Remove special handling for single-step
1960 breakpoints.
1961 (update_breakpoints_after_exec): Delete bp_single_step
1962 breakpoints.
1963 (detach_breakpoints): Remove special handling for single-step
1964 breakpoints.
1965 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1966 (bpstat_stop_status): Add comment.
1967 (bpstat_what, bptype_string, print_one_breakpoint_location)
1968 (adjust_breakpoint_address, init_bp_location): Handle
1969 bp_single_step.
1970 (new_single_step_breakpoint): New function.
1971 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1972 handling for single-step breakpoints.
1973 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1974 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1975 Rewrite.
1976 (detach_single_step_breakpoints, find_single_step_breakpoint):
1977 Delete functions.
1978 (breakpoint_has_location_inserted_here): New function.
1979 (single_step_breakpoint_inserted_here_p): Rewrite.
1980 * breakpoint.h: Remove FIXME.
1981 (enum bptype) <bp_single_step>: New enum value.
1982 (insert_single_step_breakpoint): Update comment.
1983 * infrun.c (resume_cleanups)
1984 (delete_step_thread_step_resume_breakpoint): Remove single-step
1985 breakpoints.
1986 (fetch_inferior_event): Install a cleanup that removes infrun
1987 breakpoints.
1988 (switch_back_to_stepped_thread) <expect thread advanced also>:
1989 Clear step-over info.
1990
1991 2014-10-15 Pedro Alves <palves@redhat.com>
1992
1993 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1994 (delete_thread_infrun_breakpoints): New function, with parts
1995 salvaged from delete_step_resume_breakpoint_callback.
1996 (delete_step_thread_step_resume_breakpoint): Delete.
1997 (for_each_just_stopped_thread_callback_func): New typedef.
1998 (for_each_just_stopped_thread): New function.
1999 (delete_just_stopped_threads_infrun_breakpoints): New function.
2000 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
2001 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
2002 ... this. Adjust.
2003 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
2004
2005 2014-10-15 Pedro Alves <palves@redhat.com>
2006
2007 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2008 trying to step past a non-steppable watchpoint.
2009 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2010 field.
2011 * infrun.c (struct step_over_info): Add new field
2012 'nonsteppable_watchpoint_p' and adjust comments.
2013 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2014 Adjust.
2015 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2016 (stepping_past_nonsteppable_watchpoint): New function.
2017 (step_over_info_valid_p): Also return true if stepping past a
2018 nonsteppable watchpoint.
2019 (proceed): Adjust call to set_step_over_info. Remove reference to
2020 init_infwait_state.
2021 (init_wait_for_inferior): Remove reference to init_infwait_state.
2022 (waiton_ptid): Delete global.
2023 (struct execution_control_state)
2024 <stepped_after_stopped_by_watchpoint>: Delete field.
2025 (wait_for_inferior, fetch_inferior_event): Always pass
2026 minus_one_ptid to target_wait.
2027 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2028 field.
2029 (init_infwait_state): Delete function.
2030 (handle_inferior_event): Remove infwait_state handling.
2031 (handle_signal_stop) <watchpoints handling>: Adjust after
2032 stepped_after_stopped_by_watchpoint removal. Don't remove
2033 breakpoints here nor set infwait_state. Set the thread's
2034 stepping_over_watchpoint flag, and call keep_going instead.
2035 (keep_going): Handle stepping_over_watchpoint. Adjust
2036 set_step_over_info calls.
2037 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2038 function.
2039
2040 2014-10-15 Pedro Alves <palves@redhat.com>
2041
2042 * infrun.c (step_over_info_valid_p): New function.
2043 (resume): Use step_over_info_valid_p instead of checking the
2044 threads's trap_expected flag.
2045
2046 2014-10-15 Doug Evans <dje@google.com>
2047 Walfred Tedeschi <walfred.tedeschi@intel.com>
2048
2049 PR python/17364
2050 * python/lib/gdb/__init__.py (packages): Add "printer".
2051 * python/lib/gdb/command/bound_registers.py: Moved to ...
2052 * python/lib/gdb/printer/bound_registers.py: ... here.
2053 Add printer to global set of builtin printers. Rename printer from
2054 "bound" to "mpx_bound128".
2055 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2056 registered as global "builtin" printer.
2057 (add_builtin_pretty_printer): New function.
2058 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2059 gdb/printer/__init__.py.
2060
2061 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2062
2063 * Makefile.in (SFILES): Remove d-support.c.
2064 (COMMON_OBS): Remove d-support.o.
2065 * d-lang.h (d_parse_symbol): Remove declaration.
2066 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2067 * d-support.c: Remove file.
2068
2069 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2070
2071 * gdb/infrun.c (process_event_stop_test): Apply
2072 gdbarch_addr_bits_remove to longjmp resume address.
2073
2074 2014-10-15 Pedro Alves <palves@redhat.com>
2075
2076 * regformats/microblaze.dat: Delete file.
2077
2078 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2079
2080 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2081 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2082
2083 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2084
2085 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2086 as non-trivial.
2087
2088 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2089
2090 PR c++/13403
2091 PR c++/15154
2092 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2093 with qualified args.
2094
2095 2014-10-14 Joel Brobecker <brobecker@adacore.com>
2096
2097 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2098 of the case where the second operand is a pointer.
2099 <BINOP_SUB>: Likewise.
2100
2101 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2102
2103 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2104 only if it is not NULL.
2105 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2106 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2107 (struct probe_ops) <clear_semaphore>: Likewise.
2108 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2109 not NULL.
2110 (stop_tracing): Likewise, for clear_semaphore.
2111
2112 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2113
2114 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2115 using language_c, instead of current_language.
2116
2117 2014-10-13 Doug Evans <dje@google.com>
2118
2119 * python/py-objfile.c (objfpy_initialize): New function.
2120 (objfpy_new, objfile_to_objfile_object): Call it.
2121 * python/py-progspace.c (pspy_initialize): New function.
2122 (pspy_new, pspace_to_pspace_object): Call it.
2123
2124 2014-10-13 Miroslav Franc <mfranc@redhat.com>
2125 Jan Kratochvil <jan.kratochvil@redhat.com>
2126
2127 Fix "save breakpoints" for "catch" command.
2128 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2129 newline.
2130
2131 2014-10-12 Miroslav Franc <mfranc@redhat.com>
2132
2133 Fix "save breakpoints" for "disable $bpnum" command.
2134 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2135
2136 2014-10-10 Pedro Alves <palves@redhat.com>
2137
2138 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2139 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2140 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2141 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2142 and been removed.
2143 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2144 * configure.ac: Remove references to IRIX.
2145 * configure.host: Add *-*-irix* to the obsolete hosts section.
2146 Remove all other references to irix.
2147 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2148 Delete files.
2149
2150 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2151
2152 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2153 isn't valid, release the tdesc arch data and return NULL.
2154
2155 2014-10-10 Pedro Alves <palves@redhat.com>
2156
2157 * linux-tdep.c: Include observer.h.
2158 (linux_inferior_data): New global.
2159 (struct linux_info): New structure.
2160 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2161 (get_linux_inferior_data): New functions.
2162 (linux_vsyscall_range): Rename to ...
2163 (linux_vsyscall_range_raw): ... this.
2164 (linux_vsyscall_range): New function; handles caching.
2165 (_initialize_linux_tdep): Register linux_inferior_data. Install
2166 inferior_exit and inferior_appeared observers.
2167
2168 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2169 Pedro Alves <palves@redhat.com>
2170
2171 PR symtab/14466
2172 * solib-svr4.c (svr4_read_so_list): Rename to ...
2173 (svr4_current_sos_1): ... this and change the function comment.
2174 (svr4_current_sos): New function.
2175
2176 2014-10-10 Pedro Alves <palves@redhat.com>
2177
2178 * arch-utils.c (default_vsyscall_range): New function.
2179 * arch-utils.h (default_vsyscall_range): New declaration.
2180 * gdbarch.sh (vsyscall_range): New hook.
2181 * gdbarch.h, gdbarch.c: Regenerate.
2182 * linux-tdep.c (linux_vsyscall_range): New function.
2183 (linux_init_abi): Install linux_vsyscall_range as
2184 vsyscall_range gdbarch hook.
2185 * memrange.c (address_in_mem_range): New function.
2186 * memrange.h (address_in_mem_range): New declaration.
2187 * symfile-mem.c (find_vdso_size): Delete function.
2188 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2189
2190 2014-10-10 Pedro Alves <palves@redhat.com>
2191
2192 * infrun.c (normal_stop): Fix typo in comment.
2193
2194 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2195
2196 PR tdep/9390
2197 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2198 typo when using logical AND to determine instruction type.
2199
2200 2014-10-09 Yao Qi <yao@codesourcery.com>
2201
2202 * infrun.c (handle_signal_stop): Remove local variable
2203 'printed'.
2204
2205 2014-10-08 Stan Shebs <stan@codesourcery.com>
2206
2207 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2208
2209 2014-10-08 Gary Benson <gbenson@redhat.com>
2210
2211 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2212
2213 2014-10-08 Gary Benson <gbenson@redhat.com>
2214
2215 * common/common-defs.h: Include common-exceptions.h.
2216 * exceptions.h: Do not include common-exceptions.h.
2217
2218 2014-10-08 Gary Benson <gbenson@redhat.com>
2219
2220 * common/common-defs.h: Include cleanups.h.
2221 * common/common-exceptions.c: Do not include cleanups.h.
2222 * utils.h: Likewise.
2223
2224 2014-10-08 Gary Benson <gbenson@redhat.com>
2225
2226 * ada-lang.c: Do not include exceptions.h.
2227 * ada-valprint.c: Likewise.
2228 * amd64-tdep.c: Likewise.
2229 * auto-load.c: Likewise.
2230 * block.c: Likewise.
2231 * break-catch-throw.c: Likewise.
2232 * breakpoint.c: Likewise.
2233 * btrace.c: Likewise.
2234 * c-lang.c: Likewise.
2235 * cli/cli-cmds.c: Likewise.
2236 * cli/cli-interp.c: Likewise.
2237 * cli/cli-script.c: Likewise.
2238 * completer.c: Likewise.
2239 * corefile.c: Likewise.
2240 * corelow.c: Likewise.
2241 * cp-abi.c: Likewise.
2242 * cp-support.c: Likewise.
2243 * cp-valprint.c: Likewise.
2244 * darwin-nat.c: Likewise.
2245 * dwarf2-frame-tailcall.c: Likewise.
2246 * dwarf2-frame.c: Likewise.
2247 * dwarf2loc.c: Likewise.
2248 * dwarf2read.c: Likewise.
2249 * eval.c: Likewise.
2250 * event-loop.c: Likewise.
2251 * event-top.c: Likewise.
2252 * f-valprint.c: Likewise.
2253 * frame-unwind.c: Likewise.
2254 * frame.c: Likewise.
2255 * gdbtypes.c: Likewise.
2256 * gnu-v2-abi.c: Likewise.
2257 * gnu-v3-abi.c: Likewise.
2258 * guile/scm-auto-load.c: Likewise.
2259 * guile/scm-breakpoint.c: Likewise.
2260 * guile/scm-cmd.c: Likewise.
2261 * guile/scm-frame.c: Likewise.
2262 * guile/scm-lazy-string.c: Likewise.
2263 * guile/scm-param.c: Likewise.
2264 * guile/scm-symbol.c: Likewise.
2265 * guile/scm-type.c: Likewise.
2266 * hppa-hpux-tdep.c: Likewise.
2267 * i386-tdep.c: Likewise.
2268 * inf-loop.c: Likewise.
2269 * infcall.c: Likewise.
2270 * infcmd.c: Likewise.
2271 * infrun.c: Likewise.
2272 * interps.c: Likewise.
2273 * interps.h: Likewise.
2274 * jit.c: Likewise.
2275 * linespec.c: Likewise.
2276 * linux-nat.c: Likewise.
2277 * linux-thread-db.c: Likewise.
2278 * m32r-rom.c: Likewise.
2279 * main.c: Likewise.
2280 * memory-map.c: Likewise.
2281 * mi/mi-cmd-break.c: Likewise.
2282 * mi/mi-cmd-stack.c: Likewise.
2283 * mi/mi-interp.c: Likewise.
2284 * mi/mi-main.c: Likewise.
2285 * monitor.c: Likewise.
2286 * nto-procfs.c: Likewise.
2287 * objc-lang.c: Likewise.
2288 * p-valprint.c: Likewise.
2289 * parse.c: Likewise.
2290 * ppc-linux-tdep.c: Likewise.
2291 * printcmd.c: Likewise.
2292 * probe.c: Likewise.
2293 * python/py-auto-load.c: Likewise.
2294 * python/py-breakpoint.c: Likewise.
2295 * python/py-cmd.c: Likewise.
2296 * python/py-finishbreakpoint.c: Likewise.
2297 * python/py-frame.c: Likewise.
2298 * python/py-framefilter.c: Likewise.
2299 * python/py-function.c: Likewise.
2300 * python/py-gdb-readline.c: Likewise.
2301 * python/py-inferior.c: Likewise.
2302 * python/py-infthread.c: Likewise.
2303 * python/py-lazy-string.c: Likewise.
2304 * python/py-linetable.c: Likewise.
2305 * python/py-param.c: Likewise.
2306 * python/py-prettyprint.c: Likewise.
2307 * python/py-symbol.c: Likewise.
2308 * python/py-type.c: Likewise.
2309 * python/py-value.c: Likewise.
2310 * python/python-internal.h: Likewise.
2311 * python/python.c: Likewise.
2312 * record-btrace.c: Likewise.
2313 * record-full.c: Likewise.
2314 * regcache.c: Likewise.
2315 * remote-fileio.c: Likewise.
2316 * remote-mips.c: Likewise.
2317 * remote.c: Likewise.
2318 * rs6000-aix-tdep.c: Likewise.
2319 * rs6000-nat.c: Likewise.
2320 * skip.c: Likewise.
2321 * solib-darwin.c: Likewise.
2322 * solib-dsbt.c: Likewise.
2323 * solib-frv.c: Likewise.
2324 * solib-ia64-hpux.c: Likewise.
2325 * solib-spu.c: Likewise.
2326 * solib-svr4.c: Likewise.
2327 * solib.c: Likewise.
2328 * spu-tdep.c: Likewise.
2329 * stack.c: Likewise.
2330 * stap-probe.c: Likewise.
2331 * symfile-mem.c: Likewise.
2332 * symmisc.c: Likewise.
2333 * target.c: Likewise.
2334 * thread.c: Likewise.
2335 * top.c: Likewise.
2336 * tracepoint.c: Likewise.
2337 * tui/tui-interp.c: Likewise.
2338 * typeprint.c: Likewise.
2339 * utils.c: Likewise.
2340 * valarith.c: Likewise.
2341 * valops.c: Likewise.
2342 * valprint.c: Likewise.
2343 * value.c: Likewise.
2344 * varobj.c: Likewise.
2345 * windows-nat.c: Likewise.
2346 * xml-support.c: Likewise.
2347
2348 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2349
2350 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2351 name implies.
2352 (extended_mips16_next_pc): Update accordingly.
2353
2354 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2355
2356 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2357 function.
2358 (micromips_instruction_is_compact_branch): Likewise.
2359 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2360 or a compact jump, reaching a jump delay slot, or seeing a
2361 second non-prologue instruction.
2362 (micromips_scan_prologue): Also terminate scanning upon seeing a
2363 compact branch or jump, or reaching a branch or jump delay slot.
2364 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2365 or jump delay slot, or seeing a second non-prologue instruction.
2366 (mips32_instruction_has_delay_slot): Retain instruction
2367 examination code only, update arguments accordingly and move
2368 instruction fetch pieces to...
2369 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2370 (micromips_instruction_has_delay_slot): Likewise and to...
2371 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2372 (mips16_instruction_has_delay_slot): Likewise and to...
2373 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2374 (mips_single_step_through_delay): Update accordingly.
2375 (mips_adjust_breakpoint_address): Likewise.
2376
2377 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2378
2379 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2380 !mustbe32 also return 1 for 32-bit instructions.
2381 (mips16_instruction_has_delay_slot): Likewise. Add an
2382 explanatory comment.
2383
2384 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2385
2386 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2387 symbols special.
2388
2389 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2390
2391 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2392 update comments.
2393 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2394 for the breakpoint's address. Don't preinitialize `placed_size'.
2395 (insert_bp_location): Set `reqstd_address' rather than
2396 `placed_address'.
2397 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2398 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2399 address.
2400 (bkpt_remove_location): Likewise.
2401 (deprecated_insert_raw_breakpoint): Likewise.
2402 (deprecated_remove_raw_breakpoint): Likewise.
2403 (find_single_step_breakpoint): Likewise.
2404 * mem-break.c (default_memory_insert_breakpoint): Use
2405 `reqstd_address' for the breakpoint's address. Don't set
2406 `placed_address' or `placed_size' if breakpoint contents couldn't
2407 have been determined.
2408 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2409 the breakpoint's address.
2410 (remote_insert_hw_breakpoint): Likewise. Don't set
2411 `placed_address' or `placed_size' if breakpoint couldn't have been
2412 set.
2413 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2414 `reqstd_address' for the breakpoint's address.
2415 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2416 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2417 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2418 * microblaze-linux-tdep.c
2419 (microblaze_linux_memory_remove_breakpoint): Likewise.
2420 * monitor.c (monitor_insert_breakpoint): Likewise.
2421 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2422 (procfs_insert_hw_breakpoint): Likewise.
2423 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2424 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2425 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2426 * remote-mips.c (mips_insert_breakpoint): Likewise.
2427 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2428
2429 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2430
2431 * valops.c (value_assign): Check for bit field assignments
2432 before calling architecture-specific register value
2433 conversion functions.
2434
2435 2014-10-03 Pierre Muller <muller@sourceware.org>
2436
2437 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2438
2439 2014-10-02 Pedro Alves <palves@redhat.com>
2440
2441 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2442 threads_are_executing.
2443 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2444 describing comment.
2445 * gdbthread.h (threads_are_executing): Declare.
2446 (handle_signal_stop) <random signals>: Don't print about the
2447 signal here if stopping.
2448 (end_stepping_range): Don't notify observers here.
2449 (normal_stop): Update the thread list. If stopped by a random
2450 signal or a stepping range ended, notify observers.
2451 * thread.c (threads_executing): New global.
2452 (init_thread_list): Clear 'threads_executing'.
2453 (set_executing): Set or clear 'threads_executing'.
2454 (threads_are_executing): New function.
2455 (update_threads_executing): New function.
2456 (update_thread_list): Use it.
2457
2458 2014-10-02 Pedro Alves <palves@redhat.com>
2459
2460 PR breakpoints/17431
2461 * breakpoint.c (update_breakpoints_after_exec): Don't create
2462 overlay, longjmp, std terminate nor exception breakpoints here.
2463
2464 2014-10-02 Pedro Alves <palves@redhat.com>
2465
2466 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2467 Adjust comments.
2468 * inferior.c (find_inferior_for_program_space): Give preference to
2469 the current inferior.
2470 * inferior.h (find_inferior_for_program_space): Update comment.
2471 * progspace.c (switch_to_program_space_and_thread): Prefer the
2472 current inferior if it's bound to the program space requested. If
2473 the inferior found doesn't have a PID yet, don't bother looking up
2474 a thread.
2475 * progspace.h (switch_to_program_space_and_thread): Adjust
2476 comment.
2477 * thread.c (any_thread_of_process, any_live_thread_of_process):
2478 Give preference to the current thread.
2479
2480 2014-10-01 Pedro Alves <palves@redhat.com>
2481
2482 * breakpoint.c (insert_bp_location): Error out if inserting a
2483 software breakpoint at a read-only address.
2484 * target.c (memory_xfer_check_region): New function, factored out
2485 from ...
2486 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2487 ULONGEST.
2488 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2489 against the memory region attributes.
2490
2491 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2492
2493 * NEWS: Announce new exit-code field in -list-thread-groups
2494 output.
2495 * inferior.c (exit_inferior_1): Don't clear exit code.
2496 (inferior_appeared): Clear exit code.
2497 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2498 code.
2499
2500 2014-10-01 Pedro Alves <palves@redhat.com>
2501
2502 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2503 GENERATED" along with emacs/vi read-only markers.
2504 * regformats/aarch64.dat: Regenerate.
2505 * regformats/arm-with-iwmmxt.dat: Regenerate.
2506 * regformats/arm-with-neon.dat: Regenerate.
2507 * regformats/arm-with-vfpv2.dat: Regenerate.
2508 * regformats/arm-with-vfpv3.dat: Regenerate.
2509 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2510 * regformats/i386/amd64-avx.dat: Regenerate.
2511 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2512 * regformats/i386/amd64-avx512.dat: Regenerate.
2513 * regformats/i386/amd64-linux.dat: Regenerate.
2514 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2515 * regformats/i386/amd64-mpx.dat: Regenerate.
2516 * regformats/i386/amd64.dat: Regenerate.
2517 * regformats/i386/i386-avx-linux.dat: Regenerate.
2518 * regformats/i386/i386-avx.dat: Regenerate.
2519 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2520 * regformats/i386/i386-avx512.dat: Regenerate.
2521 * regformats/i386/i386-linux.dat: Regenerate.
2522 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2523 * regformats/i386/i386-mmx.dat: Regenerate.
2524 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2525 * regformats/i386/i386-mpx.dat: Regenerate.
2526 * regformats/i386/i386.dat: Regenerate.
2527 * regformats/i386/x32-avx-linux.dat: Regenerate.
2528 * regformats/i386/x32-avx.dat: Regenerate.
2529 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2530 * regformats/i386/x32-avx512.dat: Regenerate.
2531 * regformats/i386/x32-linux.dat: Regenerate.
2532 * regformats/i386/x32.dat: Regenerate.
2533 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2534 * regformats/mips-dsp-linux.dat: Regenerate.
2535 * regformats/mips-linux.dat: Regenerate.
2536 * regformats/mips64-dsp-linux.dat: Regenerate.
2537 * regformats/mips64-linux.dat: Regenerate.
2538 * regformats/nios2-linux.dat: Regenerate.
2539 * regformats/rs6000/powerpc-32.dat: Regenerate.
2540 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2541 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2542 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2543 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2544 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2545 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2546 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2547 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2548 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2549 * regformats/s390-linux32.dat: Regenerate.
2550 * regformats/s390-linux32v1.dat: Regenerate.
2551 * regformats/s390-linux32v2.dat: Regenerate.
2552 * regformats/s390-linux64.dat: Regenerate.
2553 * regformats/s390-linux64v1.dat: Regenerate.
2554 * regformats/s390-linux64v2.dat: Regenerate.
2555 * regformats/s390-te-linux64.dat: Regenerate.
2556 * regformats/s390x-linux64.dat: Regenerate.
2557 * regformats/s390x-linux64v1.dat: Regenerate.
2558 * regformats/s390x-linux64v2.dat: Regenerate.
2559 * regformats/s390x-te-linux64.dat: Regenerate.
2560 * regformats/tic6x-c62x-linux.dat: Regenerate.
2561 * regformats/tic6x-c62x.dat: Regenerate.
2562 * regformats/tic6x-c64x-linux.dat: Regenerate.
2563 * regformats/tic6x-c64x.dat: Regenerate.
2564 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2565 * regformats/tic6x-c64xp.dat: Regenerate.
2566
2567 2014-10-01 Pedro Alves <palves@redhat.com>
2568
2569 * features/Makefile: Update comments.
2570 (XMLTOC): List all xml files we build C files from.
2571 (clean-cfiles): New rule.
2572
2573 2014-10-01 Pedro Alves <palves@redhat.com>
2574
2575 * features/i386/amd64-avx512-linux.c: Regenerate.
2576 * features/i386/amd64-avx512.c: Regenerate.
2577 * features/i386/x32-avx512-linux.c: Regenerate.
2578 * features/i386/x32-avx512.c: Regenerate.
2579
2580 2014-10-01 Pedro Alves <palves@redhat.com>
2581
2582 * features/Makefile (WHICH): Remove arm-with-m,
2583 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2584
2585 2014-10-01 Pedro Alves <palves@redhat.com>
2586
2587 * features/Makefile (clean): New rule.
2588
2589 2014-10-01 Pedro Alves <palves@redhat.com>
2590
2591 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2592 (zmm14h): Add missing end quotes.
2593
2594 2014-10-01 Pedro Alves <palves@redhat.com>
2595
2596 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2597 * features/aarch64.c: Regenerate.
2598
2599 2014-09-30 Don Breazeal <donb@codesourcery.com>
2600
2601 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2602 code so as to work with follow_fork_inferior.
2603 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2604 (inf_ttrace_create_inferior): Remove reference to
2605 inf_ttrace_vfork_ppid.
2606 (inf_ttrace_attach): Ditto.
2607 (inf_ttrace_detach): Ditto.
2608 (inf_ttrace_kill): Use current_inferior instead of
2609 inf_ttrace_vfork_ppid.
2610 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2611 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2612 inferior away from the parent.
2613 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2614 target_follow_fork.
2615 (follow_fork_inferior): New function.
2616 (follow_inferior_reset_breakpoints): Make function static.
2617 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2618 * linux-nat.c (linux_child_follow_fork): Move target-independent
2619 code to infrun.c:follow_fork_inferior.
2620
2621 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2622
2623 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2624 * gdbarch.c: Regenerate.
2625 * gdbarch.h: Likewise.
2626 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2627 gdbarch method 'regset_from_core_section'.
2628 (get_core_register_section): Remove handling for the case that
2629 regset == NULL and regset_from_core_section is defined.
2630 (get_core_registers): Drop check for deleted method.
2631 * procfs.c (procfs_do_thread_registers): Adjust comment.
2632
2633 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2634
2635 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2636 (linux_nat_make_corefile_notes): Remove.
2637 (linux_target_install_ops): Do not set target method
2638 'make_corefile_notes'.
2639 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2640 Remove field.
2641 (linux_corefile_thread_callback): Instead of args->collect, call
2642 linux_collect_thread_registers.
2643 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2644 NULL unless there is a regset iterator.
2645 (linux_make_corefile_notes_1): Remove.
2646 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2647 by linux_make_corefile_notes.
2648 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2649
2650 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2651
2652 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2653 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2654 Remove.
2655 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2656
2657 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2658
2659 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2660 (xtensa_iterate_over_regset_sections): New.
2661 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2662
2663 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2664
2665 * vax-tdep.c (vax_regset_from_core_section): Remove.
2666 (vax_iterate_over_regset_sections): New.
2667 (vax_gdbarch_init): Adjust gdbarch initialization.
2668
2669 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2670
2671 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2672 (tilegx_regset_from_core_section): Remove.
2673 (tilegx_iterate_over_regset_sections): New.
2674 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2675
2676 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2677
2678 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2679 (sparc_iterate_over_regset_sections): New.
2680 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2681 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2682 targets.
2683 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2684 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2685 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2686 target method 'make_corefile_notes'.
2687
2688 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2689
2690 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2691 'sizeof_gregset' and 'sizeof_fpregset'.
2692 * sh-tdep.c (sh_regset_from_core_section): Remove.
2693 (sh_iterate_over_regset_sections): New.
2694 (sh_gdbarch_init): Adjust gdbarch initialization.
2695 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2696 sizeof_fpregset.
2697 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2698 'sizeof_gregset'.
2699
2700 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2701
2702 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2703 (score7_linux_iterate_over_regset_sections): New.
2704 (score_gdbarch_init): Adjust gdbarch initialization.
2705
2706 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2707
2708 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2709 FreeBSD targets.
2710 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2711 method 'make_corefile_notes'.
2712 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2713 (ppcfbsd_regset_from_core_section): Remove.
2714 (ppcfbsd_iterate_over_regset_sections): New.
2715 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2716 initialization.
2717 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2718 (ppcnbsd_iterate_over_regset_sections): New.
2719 (ppcnbsd_init_abi): Adjust.
2720 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2721 (ppcobsd_iterate_over_regset_sections): New.
2722 (ppcobsd_init_abi): Adjust.
2723 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2724 (rs6000_aix_iterate_over_regset_sections): New.
2725 (rs6000_aix_init_osabi): Adjust.
2726
2727 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2728
2729 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2730 (nios2_regset_from_core_section): Remove.
2731 (nios2_iterate_over_regset_sections): New.
2732 (nios2_linux_init_abi): Adjust gdbarch initialization.
2733
2734 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2735
2736 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2737 (am33_iterate_over_regset_sections): New.
2738 (am33_linux_init_osabi): Adjust gdbarch initialization.
2739
2740 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2741
2742 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2743 (mips_linux_iterate_over_regset_sections): New.
2744 (mips_linux_init_abi): Adjust gdbarch initialization.
2745 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2746 (mips64obsd_iterate_over_regset_sections): New.
2747 (mips64obsd_init_abi): Adjust.
2748 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2749 (mipsnbsd_iterate_over_regset_sections): New.
2750 (mipsnbsd_init_abi): Adjust.
2751
2752 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2753
2754 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2755 (m88k_iterate_over_regset_sections): New.
2756 (m88k_gdbarch_init): Adjust gdbarch initialization.
2757
2758 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2759
2760 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2761 (ia64_linux_iterate_over_regset_sections): New.
2762 (ia64_linux_init_abi): Adjust gdbarch initialization.
2763
2764 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2765
2766 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2767 (m68kbsd_iterate_over_regset_sections): New.
2768 (m68kbsd_init_abi): Adjust gdbarch initialization.
2769 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2770 (m68k_linux_iterate_over_regset_sections): New.
2771 (m68k_linux_init_abi): Adjust gdbarch initialization.
2772
2773 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2774
2775 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2776 (m32r_linux_regset_from_core_section): Remove.
2777 (m32r_linux_iterate_over_regset_sections): New.
2778 (m32r_linux_init_abi): Adjust gdbarch initialization.
2779
2780 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2781
2782 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2783 (amd64obsd_iterate_over_regset_sections): New.
2784 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2785 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2786 Remove.
2787 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2788 regset_from_core_section initialization.
2789 * i386-tdep.c (i386_regset_from_core_section): Remove.
2790 (i386_iterate_over_regset_sections): New.
2791 (i386_gdbarch_init): Adjust gdbarch initialization.
2792 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2793 (i386_iterate_over_regset_sections): New prototype.
2794 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2795 Remove.
2796 (i386obsd_aout_iterate_over_regset_sections): New.
2797 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2798 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2799 targets.
2800 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2801 (amd64fbsd_init_abi): Call fbsd_init_abi.
2802 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2803 (i386fbsd4_init_abi): Call fbsd_init_abi.
2804 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2805 target method 'make_corefile_notes'.
2806 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2807
2808 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2809
2810 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2811 (hppa_hpux_iterate_over_regset_sections): New.
2812 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2813 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2814 (hppa_linux_iterate_over_regset_sections): New.
2815 (hppa_linux_init_abi): Adjust.
2816 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2817 (hppanbsd_iterate_over_regset_sections): New.
2818 (hppanbsd_init_abi): Adjust.
2819 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2820 (hppaobsd_iterate_over_regset_sections): New.
2821 (hppaobsd_init_abi): Adjust.
2822
2823 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2824
2825 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2826 (frv_linux_iterate_over_regset_sections): New.
2827 (frv_linux_init_abi): Adjust gdbarch initialization.
2828
2829 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2830
2831 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2832 (armbsd_iterate_over_regset_sections): New prototype.
2833 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2834 (armbsd_iterate_over_regset_sections): New.
2835 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2836 initialization.
2837
2838 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2839
2840 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2841 (alpha_linux_iterate_over_regset_sections): New.
2842 (alpha_linux_init_abi): Adjust gdbarch initialization.
2843 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2844 prototype.
2845 (alphanbsd_iterate_over_regset_sections): New prototype.
2846
2847 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2848
2849 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2850 Remove.
2851 (aarch64_linux_iterate_over_regset_sections): New.
2852 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2853
2854 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2855
2856 * fbsd-tdep.c: New file.
2857 * fbsd-tdep.h: New file.
2858 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2859 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2860 (ALLDEPFILES): Add fbsd-tdep.c.
2861
2862 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2863
2864 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2865 parameter.
2866 * gdbarch.h: Regenerate.
2867 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2868 iterator.
2869 (get_core_register_section): Add parameter 'regset' and use it, if
2870 set. Add parameter 'min_size' and verify the bfd section size
2871 against it.
2872 (get_core_registers_cb): Add parameter 'regset' and pass it to
2873 get_core_register section. For the "standard" register sections
2874 ".reg" and ".reg2", set an appropriate default for human_name.
2875 (get_core_registers): Don't abort when the gdbarch has an iterator
2876 but no regset_from_core_section. Add NULL/0 for parameters
2877 'regset'/'min_size' in calls to get_core_register_section.
2878 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2879 'regset' and use it instead of calling the
2880 regset_from_core_section gdbarch method.
2881 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2882 * i386-tdep.c (i386_supply_xstateregset)
2883 (i386_collect_xstateregset, i386_xstateregset): Moved to
2884 i386-linux-tdep.c.
2885 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2886 .reg-xstate.
2887 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2888 core file support only if the regset iterator hasn't been set.
2889 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2890 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2891 Moved from i386-tdep.c and renamed to *_linux*.
2892 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2893 each callback invocation. Allow any .reg-xstate size when reading
2894 from a core file.
2895 * amd64-tdep.c (amd64_supply_xstateregset)
2896 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2897 amd64-linux-tdep.c.
2898 (amd64_regset_from_core_section): Remove.
2899 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2900 install an amd64-specific regset_from_core_section gdbarch method.
2901 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2902 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2903 Moved from amd64-tdep.c and renamed to *_linux*.
2904 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2905 to each callback invocation. Allow any .reg-xstate size when
2906 reading from a core file.
2907 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2908 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2909 each callback invocation.
2910 (arm_linux_init_abi): No longer set the regset_from_core_section
2911 gdbarch method.
2912 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2913 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2914 each callback invocation.
2915 (ppc_linux_init_abi): No longer set the regset_from_core_section
2916 gdbarch method.
2917 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2918 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2919 (s390_regset_from_core_section): Remove.
2920 (s390_iterate_over_regset_sections): Add regset parameter to each
2921 callback invocation.
2922 (s390_gdbarch_init): No longer set the regset_from_core_section
2923 gdbarch method. Drop initialization of deleted tdep fields.
2924
2925 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2926
2927 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2928 (amd64_linux_iterate_over_regset_sections): New.
2929 (amd64_linux_init_abi_common): Don't install the regset section
2930 list, but the new iterator in gdbarch.
2931 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2932 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2933 (arm_linux_iterate_over_regset_sections): ...here. New function.
2934 (arm_linux_init_abi): Set iterator instead of section list.
2935 * corelow.c (get_core_registers_cb): New function, logic moved
2936 from...
2937 (get_core_registers): ...loop body here. Use new iterator method
2938 instead of walking through the regset section list.
2939 * gdbarch.sh: Remove 'core_regset_sections'. New method
2940 'iterate_over_regset_sections'. New typedef
2941 'iterate_over_regset_sections_cb'.
2942 * gdbarch.c: Regenerate.
2943 * gdbarch.h: Likewise.
2944 * i386-linux-tdep.c (i386_linux_regset_sections)
2945 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2946 Remove.
2947 (i386_linux_iterate_over_regset_sections): New.
2948 (i386_linux_init_abi): Don't choose a regset section list, but
2949 install new iterator in gdbarch.
2950 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2951 (linux_collect_regset_section_cb): New function, logic moved
2952 from...
2953 (linux_collect_thread_registers): ...loop body here. Use iterator
2954 method instead of walking through list.
2955 (linux_make_corefile_notes_1): Check for presence of iterator
2956 method instead of regset section list.
2957 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2958 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2959 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2960 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2961 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2962 (ppc_linux_init_abi): Don't choose from above regset section
2963 lists, but install new iterator in gdbarch.
2964 * regset.h (struct core_regset_section): Remove.
2965 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2966 have_linux_v1, have_linux_v2, and have_tdb.
2967 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2968 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2969 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2970 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2971 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2972 (s390_iterate_over_regset_sections): ...here. New function. Use
2973 new tdep fields.
2974 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2975 regset section lists, but install new iterator.
2976
2977 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2978
2979 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2980
2981 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2982
2983 * progspace.c (print_program_space): Don't prune program spaces
2984 before printing them.
2985
2986 2014-09-25 Pedro Alves <palves@redhat.com>
2987
2988 * infrun.c (user_visible_resume_ptid): Don't check
2989 singlestep_breakpoints_inserted_p.
2990
2991 2014-09-25 Pedro Alves <palves@redhat.com>
2992
2993 * breakpoint.c (should_be_inserted): Add debug output.
2994
2995 2014-09-25 Pedro Alves <palves@redhat.com>
2996
2997 * infrun.c (stepping_past_instruction_at)
2998 (clear_exit_convenience_vars): Point at infrun.h instead of
2999 inferior.h.
3000 (handle_signal_stop): Fix typo.
3001
3002 2014-09-24 Yao Qi <yao@codesourcery.com>
3003
3004 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
3005 bitmask.
3006
3007 2014-09-22 Gary Benson <gbenson@redhat.com>
3008
3009 * target.c (target_stop): Updated comment.
3010
3011 2014-09-22 Gary Benson <gbenson@redhat.com>
3012
3013 * target/target.h (target_stop_ptid): Renamed as...
3014 (target_stop_and_wait): New function. Updated comment.
3015 All uses updated.
3016 (target_continue_ptid): Renamed as...
3017 (target_continue_no_signal): New function. Updated comment.
3018 All uses updated.
3019
3020 2014-09-22 Pedro Alves <palves@redhat.com>
3021
3022 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3023 and "auto" merged.
3024 * breakpoint.c (enum ugll_insert_mode): New enum.
3025 (always_inserted_mode): Now a plain boolean.
3026 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3027 (breakpoints_always_inserted_mode): Delete.
3028 (breakpoints_should_be_inserted_now): New function.
3029 (insert_breakpoints): Pass UGLL_INSERT to
3030 update_global_location_list instead of calling
3031 insert_breakpoint_locations manually.
3032 (create_solib_event_breakpoint_1): New, factored out from ...
3033 (create_solib_event_breakpoint): ... this.
3034 (create_and_insert_solib_event_breakpoint): Use
3035 create_solib_event_breakpoint_1 instead of calling
3036 insert_breakpoint_locations manually.
3037 (update_global_location_list): Change parameter type from boolean
3038 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3039 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3040 (update_global_location_list_nothrow): Change parameter type from
3041 boolean to enum ugll_insert_mode.
3042 (_initialize_breakpoint): "breakpoint always-inserted" option is
3043 now a boolean command. Update help text.
3044 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3045 (breakpoints_should_be_inserted_now): New declaration.
3046 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3047 Remove breakpoints_always_inserted_mode check.
3048 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3049 * remote.c (remote_start_remote): Likewise.
3050
3051 2014-09-22 Pedro Alves <palves@redhat.com>
3052
3053 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3054 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3055 Instead, pass UGLL_INSERT to update_global_location_list.
3056 (update_global_location_list): Change parameter type from boolean
3057 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3058 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3059 (create_solib_event_breakpoint_1): New, factored out from ...
3060 (create_solib_event_breakpoint): ... this.
3061 (create_and_insert_solib_event_breakpoint): Use
3062 create_solib_event_breakpoint_1 instead of calling
3063 insert_breakpoint_locations manually.
3064 (update_global_location_list): Handle UGLL_INSERT.
3065
3066 2014-09-22 Pedro Alves <palves@redhat.com>
3067
3068 * breakpoint.c (enum ugll_insert_mode): New enum.
3069 (update_global_location_list)
3070 (update_global_location_list_nothrow): Change parameter type from
3071 boolean to enum ugll_insert_mode. All callers adjusted.
3072
3073 2014-09-19 Joel Brobecker <brobecker@adacore.com>
3074
3075 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3076 SystemTap support in GDB.
3077
3078 2014-09-19 Don Breazeal <donb@codesourcery.com>
3079
3080 * linux-nat.c (linux_handle_extended_wait): Call
3081 linux_ptrace_get_extended_event.
3082 (wait_lwp): Call linux_is_extended_waitstatus.
3083 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3084 and linux_is_extended_waitstatus.
3085 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3086 linux_ptrace_get_extended_event.
3087 (linux_ptrace_get_extended_event): New function.
3088 (linux_is_extended_waitstatus): New function.
3089 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3090 (linux_is_extended_waitstatus): New declarations.
3091
3092 2014-09-19 Yao Qi <yao@codesourcery.com>
3093
3094 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3095 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3096 comments. Callers update.
3097 (dwarf_decode_lines): Likewise.
3098 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3099 comments. Skip the line table if 'lowpc' is greater than
3100 'address'. Don't check
3101 dwarf2_per_objfile->has_section_at_zero.
3102
3103 2014-09-18 Doug Evans <dje@google.com>
3104
3105 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3106 * python/py-symtab.c (stpy_get_producer): New function.
3107 (symtab_object_getset): Add "producer" attribute.
3108
3109 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
3110
3111 PR gdb/17384
3112 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3113 (do_captured_read_memory_integer): Remove.
3114 (safe_read_memory_integer): Use target_read_memory directly instead
3115 of catching errors in do_captured_read_memory_integer.
3116
3117 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3118
3119 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3120 not gdb/doc.
3121
3122 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3123
3124 * objc-lang.c (find_implementation_from_class): Remove dead code.
3125
3126 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3127
3128 PR cli/7233
3129 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3130 "fprintf_unfiltered (gdb_stdlog...)".
3131
3132 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3133
3134 PR breakpoints/12526
3135 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3136 val_bitsize.
3137 * breakpoint.c (watch_command_1): Use these fields to retain
3138 bitfield information.
3139 (extract_bitfield_from_watchpoint_value): New function.
3140 (watchpoint_check): Use it.
3141 (update_watchpoint): Use it. Optimize the address and length of a
3142 HW watchpoint pointing to a bitfield.
3143 * value.h (unpack_value_bitfield): New prototype.
3144 * value.c (unpack_value_bitfield): Make extern.
3145
3146 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3147
3148 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3149 x86-dregs.o.
3150 * gnu-nat.c (inf_threads): New function.
3151 * gnu-nat.h (inf_threads_ftype): New typedef.
3152 (inf_threads): New declaration.
3153 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3154 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3155 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3156 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3157 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3158 (i386_gnu_dr_get_control): New functions.
3159 (reg_addr): New structure.
3160 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3161 i386 debugging register hooks.
3162 * NEWS: Mention this.
3163
3164 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3165
3166 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3167 vector data transfer instructions.
3168 (arm_record_coproc_data_proc): Updated.
3169
3170 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3171
3172 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3173 arm_record_exreg_ld_st_insn.
3174 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3175 load/store insns.
3176
3177 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3178
3179 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3180 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3181 processing instructions.
3182
3183 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3184
3185 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3186 for advance SIMD struct ld/st insn.
3187 (thumb2_record_decode_insn_handler): Replace stub handler with
3188 thumb2_record_asimd_struct_ld_st.
3189
3190 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3191
3192 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3193 for asimd, vfp and coprocessor insns.
3194 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3195 and coprocessor insns.
3196 (thumb2_record_coproc_insn): New function.
3197 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3198 handlers.
3199 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3200 opcode 110 insns.
3201
3202 2014-09-13 Doug Evans <xdje42@gmail.com>
3203
3204 * NEWS: Mention new "queue-signal" command.
3205 * infcmd.c (queue_signal_command): New function.
3206 (_initialize_infcmd): Add new queue-signal command.
3207
3208 2014-09-13 Doug Evans <xdje42@gmail.com>
3209
3210 * linux-nat.c (wait_lwp): Add debugging printf.
3211 (linux_nat_wait_1): Ditto.
3212
3213 2014-09-12 Pedro Alves <palves@redhat.com>
3214
3215 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3216 (create_and_insert_solib_event_breakpoint): New functions.
3217 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3218 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3219 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3220 (remove_dbx_link_breakpoint): Delete function.
3221 (insert_dbx_link_bpt_in_file): Use
3222 create_and_insert_solib_event_breakpoint instead of
3223 deprecated_insert_raw_breakpoint.
3224 (procfs_wait): Don't check whether we hit __dbx_link here.
3225 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3226 here.
3227 * solib-irix.c (base_breakpoint): Delete global.
3228 (disable_break): Delete function.
3229 (enable_break): Use create_solib_event_breakpoint
3230 instead of deprecated_insert_raw_breakpoint.
3231 (irix_solib_handle_event): New function.
3232 (irix_solib_create_inferior_hook): Don't run the target or disable
3233 the mapping-complete breakpoint here.
3234 (_initialize_irix_solib): Install irix_solib_handle_event as
3235 so_ops->handle_event hook.
3236
3237 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3238 Ulrich Weigand  <uweigand@de.ibm.com>
3239
3240 PR tdep/17379
3241 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3242 instead of read_memory_unsigned_integer.
3243
3244 2014-09-12 Gary Benson <gbenson@redhat.com>
3245
3246 * nat/linux-waitpid.c: Include common-defs.h.
3247 [GDBSERVER]: Add FIXME comment.
3248 [!GDBSERVER]: Don't include defs.h or signal.h.
3249 (linux_debug) [!GDBSERVER]: Remove empty block.
3250
3251 2014-09-12 Gary Benson <gbenson@redhat.com>
3252
3253 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3254 Don't include defs.h or server.h.
3255
3256 2014-09-12 Gary Benson <gbenson@redhat.com>
3257
3258 * nat/linux-btrace.c: Include common-defs.h.
3259 Don't include defs.h, server.h or gdbthread.h.
3260 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3261
3262 2014-09-12 Gary Benson <gbenson@redhat.com>
3263
3264 * common/agent.c: Include common-defs.h.
3265 Don't include defs.h or server.h.
3266 * common/buffer.c: Likewise.
3267 * common/common-debug.c: Likewise.
3268 * common/common-utils.c: Likewise.
3269 * common/errors.c: Likewise.
3270 * common/filestuff.c: Likewise.
3271 * common/format.c: Likewise.
3272 * common/gdb_vecs.c: Likewise.
3273 * common/print-utils.c: Likewise.
3274 * common/ptid.c: Likewise.
3275 * common/rsp-low.c: Likewise.
3276 * common/signals.c: Likewise.
3277 * common/vec.c: Likewise.
3278 * common/xml-utils.c: Likewise.
3279 * nat/linux-osdata.c: Likewise.
3280 * nat/linux-procfs.c: Likewise.
3281 * nat/linux-ptrace.c: Likewise.
3282 * nat/mips-linux-watch.c: Likewise.
3283 * target/waitstatus.c: Likewise.
3284
3285 2014-09-12 Tom Tromey <tromey@redhat.com>
3286 Gary Benson <gbenson@redhat.com>
3287
3288 * common/common-regcache.h: New file.
3289 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3290 * regcache.h: Include common-regcache.h.
3291 (regcache_read_pc): Don't declare.
3292 * regcache.c (get_thread_regcache_for_ptid): New function.
3293 * nat/linux-btrace.c: Don't include regcache.h.
3294 Include common-regcache.h.
3295 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3296
3297 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3298
3299 * regcache.h (struct regset): Declare.
3300
3301 2014-09-11 Pedro Alves <palves@redhat.com>
3302
3303 PR gdb/17347
3304 * main.c: Include "infrun.h".
3305 (catch_command_errors, catch_command_errors_const): Wait for the
3306 foreground command to complete.
3307 * top.c (maybe_wait_sync_command_done): New function, factored out
3308 from ...
3309 (maybe_wait_sync_command_done): ... here.
3310 * top.h (maybe_wait_sync_command_done): New declaration.
3311
3312 2014-09-11 Tom Tromey <tromey@redhat.com>
3313 Gary Benson <gbenson@redhat.com>
3314
3315 * common/symbol.h: New file.
3316 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3317 * minsyms.c (find_minimal_symbol_address): New function.
3318 * common/agent.c: Include common/symbol.h.
3319 [!GDBSERVER]: Don't include objfiles.h.
3320 (agent_look_up_symbols): Use find_minimal_symbol_address.
3321
3322 2014-09-11 Gary Benson <gbenson@redhat.com>
3323
3324 * target/target.h (target_stop_ptid, target_continue_ptid):
3325 Declare.
3326 * target.c (target_stop_ptid, target_continue_ptid): New
3327 functions.
3328 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3329 (agent_run_command): Always use target_stop_ptid and
3330 target_continue_ptid.
3331
3332 2014-09-11 Tom Tromey <tromey@redhat.com>
3333 Gary Benson <gbenson@redhat.com>
3334
3335 * target/target.h: New file.
3336 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3337 * target.h: Include target/target.h.
3338 (target_read_memory, target_write_memory): Don't declare.
3339 * target.c (target_read_uint32): New function.
3340 * common/agent.c: Include target/target.h.
3341 [!GDBSERVER]: Don't include target.h.
3342 (helper_thread_id): Type changed to uint32_t.
3343 (agent_get_helper_thread_id): Use target_read_uint32.
3344 (agent_run_command): Always use target_read_memory and
3345 target_write_memory.
3346 (agent_capability): Type changed to uint32_t.
3347 (agent_capability_check): Use target_read_uint32.
3348
3349 2014-09-11 Gary Benson <gbenson@redhat.com>
3350
3351 * common/common-debug.h (show_debug_regs): Declare.
3352 * common/common-debug.c (show_debug_regs): Define.
3353 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3354 all uses with show_debug_regs. Replace all uses that considered
3355 debug_hw_points as a multi-value integer with straight boolean
3356 uses.
3357 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3358 with show_debug_regs.
3359 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3360 all uses with show_debug_regs.
3361 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3362 uses with show_debug_regs.
3363
3364 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3365
3366 * findvar.c (address_from_register): Handle targets requiring
3367 a special conversion routine even for plain pointer types.
3368
3369 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3370
3371 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3372 (store_register): Do not call exec_one_dummy_insn.
3373
3374 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3375
3376 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3377 dereference it first. Use value_enclosing_type instead of
3378 value_type.
3379 (ada_array_length): Likewise.
3380
3381 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3382
3383 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3384 Adjust function implementation and documentation accordingly.
3385 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3386 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3387 Update call to ada_value_ptr_subscript.
3388
3389 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3390
3391 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3392 instead of VAL's type.
3393
3394 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3395
3396 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3397
3398 2014-09-09 Doug Evans <xdje42@gmail.com>
3399
3400 PR guile/17367
3401 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3402 last parameter to pkg-config, not first.
3403 * configure.ac: Pass --with-guile provided pkg-config path to
3404 GDB_GUILE_PROGRAM_NAMES.
3405 * configure: Regenerate.
3406
3407 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3408
3409 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3410 Bertazi".
3411
3412 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3413
3414 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3415 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3416 the list of sections determining GDB_OSABI_IRIX.
3417
3418 2014-09-09 James Hogan <james.hogan@imgtec.com>
3419
3420 * MAINTAINERS (Write After Approval): Add "James Hogan".
3421
3422 2014-09-09 James Hogan <james.hogan@imgtec.com>
3423
3424 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3425
3426 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3427
3428 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3429
3430 2014-09-08 Doug Evans <xdje42@gmail.com>
3431
3432 PR 17247
3433 * guile.c: #include <signal.h>.
3434 (_initialize_guile): Block SIGCHLD while initializing Guile.
3435
3436 Replaces the following, which is reverted.
3437
3438 2014-07-26 Doug Evans <xdje42@gmail.com>
3439
3440 PR 17185
3441 * configure.ac: Add check for header gc/gc.h.
3442 Add check for function setenv.
3443 * configure: Regenerate.
3444 * config.in: Regenerate.
3445 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3446
3447 2014-09-08 Doug Evans <xdje42@gmail.com>
3448
3449 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3450 with named constant. Fix style of pointer comparison.
3451 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3452
3453 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3454
3455 PR gdb/17035
3456 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3457 decide whether we display the command on "show user".
3458 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3459 printing command name.
3460 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3461 * cli/cli-decode.c (cli_user_command_p): Create helper function
3462 to verify whether cmd_list_element is a user-defined command.
3463
3464 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3465
3466 PR python/17355
3467 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3468 Fix goto out of TRY_CATCH.
3469
3470 2014-09-06 Doug Evans <xdje42@gmail.com>
3471 Tom Tromey <tromey@redhat.com>
3472
3473 PR 15276
3474 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3475 $_any_caller_matches.
3476 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3477 * python/lib/gdb/function/caller_is.py: New file.
3478
3479 2014-09-06 Doug Evans <xdje42@gmail.com>
3480
3481 * infcmd.c (program_info): Fix typo.
3482
3483 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3484
3485 PR gdb/17235
3486 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3487 'number'. New variable 'has_digit'. Rewrite code to deal with
3488 subexpressions on SDT probes.
3489
3490 2014-09-04 Pedro Alves <palves@redhat.com>
3491
3492 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3493 the input is only one character long.
3494
3495 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3496
3497 PR fortran/17237
3498 * f-valprint.c (f_val_print): Specify the correct print option to
3499 use when printing integer values.
3500
3501 2014-09-04 Gary Benson <gbenson@redhat.com>
3502
3503 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3504 Remove code to cope with LWPs wrapped as PIDs.
3505 Add assertions to ensure no wrapped LWPs are passed.
3506
3507 2014-09-04 Pedro Alves <palves@redhat.com>
3508
3509 * value.c (value_ranges_copy_adjusted): New function, factored out
3510 from ...
3511 (value_contents_copy_raw): ... here.
3512 (unpack_value_bits_as_long_1): Rename back to ...
3513 (unpack_bits_as_long): ... this. Remove 'original_value' and
3514 'result' parameters. Change return type to LONGEST.
3515 (unpack_value_bits_as_long): Delete.
3516 (unpack_value_field_as_long_1): Delete.
3517 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3518 (unpack_value_bitfield): New function.
3519 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3520 (value_fetch_lazy): Use unpack_value_bitfield.
3521 * value.h (unpack_value_bits_as_long): Delete declaration.
3522
3523 2014-09-03 Sasha Smundak <asmundak@google.com>
3524
3525 * python/py-frame.c (frapy_read_register): New function.
3526
3527 2014-09-03 James Hogan <james.hogan@imgtec.com>
3528
3529 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3530 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3531
3532 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3533
3534 PR python/16699
3535 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3536 function.
3537 (add_cmd): Set "completer_handle_brkchars" to NULL.
3538 * cli/cli-decode.h (struct cmd_list_element)
3539 <completer_handle_brkchars>: New field.
3540 * command.h (completer_ftype_void): New typedef.
3541 (set_cmd_completer_handle_brkchars): New prototype.
3542 * completer.c (set_gdb_completion_word_break_characters): New
3543 function.
3544 (complete_line_internal): Call "completer_handle_brkchars"
3545 callback from command.
3546 * completer.h: Include "command.h".
3547 (set_gdb_completion_word_break_characters): New prototype.
3548 * python/py-cmd.c (cmdpy_completer_helper): New function.
3549 (cmdpy_completer_handle_brkchars): New function.
3550 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3551 (cmdpy_init): Set completer_handle_brkchars to
3552 cmdpy_completer_handle_brkchars.
3553
3554 2014-09-03 Gary Benson <gbenson@redhat.com>
3555
3556 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3557 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3558 Loop conditions changed to equivalent form.
3559 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3560 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3561 ALL_DEBUG_ADDRESS_REGISTERS.
3562
3563 2014-09-03 Joel Brobecker <brobecker@adacore.com>
3564
3565 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3566 description fix.
3567
3568 2014-09-02 Doug Evans <dje@google.com>
3569
3570 * typeprint.c (find_global_typedef): Fix comment.
3571
3572 2014-09-02 Gary Benson <gbenson@redhat.com>
3573
3574 * i386-nat.h: Renamed as...
3575 * x86-nat.h: New file. All type, function and variable name
3576 prefixes changed from "i386_" to "x86_". All references updated.
3577 * i386-nat.c: Renamed as...
3578 * x86-nat.c: New file. All type, function and variable name
3579 prefixes changed from "i386_" to "x86_". All references updated.
3580 * common/i386-xstate.h: Renamed as...
3581 * common/x86-xstate.h: New file. All type, function and variable
3582 name prefixes changed from "i386_" to "x86_". All references
3583 updated.
3584 * nat/i386-cpuid.h: Renamed as...
3585 * nat/x86-cpuid.h: New file. All type, function and variable name
3586 prefixes changed from "i386_" to "x86_". All references updated.
3587 * nat/i386-gcc-cpuid.h: Renamed as...
3588 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3589 name prefixes changed from "i386_" to "x86_". All references
3590 updated.
3591 * nat/i386-dregs.h: Renamed as...
3592 * nat/x86-dregs.h: New file. All type, function and variable name
3593 prefixes changed from "i386_" to "x86_". All references updated.
3594 * nat/i386-dregs.c: Renamed as...
3595 * nat/x86-dregs.c: New file. All type, function and variable name
3596 prefixes changed from "i386_" to "x86_". All references updated.
3597
3598 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3599
3600 * varobj.c (_initialize_varobj): Move to the end of file.
3601
3602 2014-08-29 Gary Benson <gbenson@redhat.com>
3603
3604 * common/common-exceptions.h: New file.
3605 * common/common-exceptions.c: Likewise.
3606 * Makefile.in (SFILES): Add common/common-exceptions.c.
3607 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3608 (COMMON_OBS): Add common-exceptions.o.
3609 (common-exceptions.o): New rule.
3610 * exceptions.h (common-exceptions.h): Include.
3611 (gdb_setjmp.h): Do not include.
3612 (return_reason): Moved to common-exceptions.h.
3613 (enum return_reason): Likewise.
3614 (RETURN_MASK): Likewise.
3615 (typedef return_mask): Likewise.
3616 (enum errors): Likewise.
3617 (struct gdb_exception): Likewise.
3618 (exceptions_state_mc_init): Likewise.
3619 (exceptions_state_mc_action_iter): Likewise.
3620 (exceptions_state_mc_action_iter_1): Likewise.
3621 (TRY_CATCH): Likewise.
3622 (throw_exception): Likewise.
3623 (throw_verror): Likewise.
3624 (throw_vquit): Likewise.
3625 (throw_error): Likewise.
3626 (throw_quit): Likewise.
3627 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3628 (enum catcher_action): Likewise.
3629 (struct catcher): Likewise.
3630 (current_catcher): Likewise.
3631 (catcher_list_size): Likewise.
3632 (exceptions_state_mc_init): Likewise.
3633 (catcher_pop): Likewise.
3634 (exceptions_state_mc): Likewise.
3635 (exceptions_state_mc_action_iter): Likewise.
3636 (exceptions_state_mc_action_iter_1): Likewise.
3637 (throw_exception): Likewise.
3638 (exception_messages): Likewise.
3639 (exception_messages_size): Likewise.
3640 (throw_it): Likewise.
3641 (throw_verror): Likewise.
3642 (throw_vquit): Likewise.
3643 (throw_error): Likewise.
3644 (throw_quit): Likewise.
3645 (prepare_to_throw_exception): New function.
3646
3647 2014-08-29 Gary Benson <gbenson@redhat.com>
3648
3649 * common/gdb_setjmp.h: New file.
3650 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3651 * configure.ac: Move sigsetjmp check...
3652 * common/common.m4: ...here.
3653 * configure: Regenerate.
3654 * cp-support.c (SIGJMP_BUF): Delete.
3655 (SIGSETJMP): Likewise.
3656 (SIGLONGJMP): Likewise.
3657 * exceptions.h (gdb_setjmp.h): Include.
3658 (setjmp.h): Do not include.
3659 (EXCEPTIONS_SIGJMP_BUF): Delete.
3660 (EXCEPTIONS_SIGSETJMP): Likewise.
3661 (EXCEPTIONS_SIGLONGJMP): Likewise.
3662 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3663 from gdb_setjmp.h.
3664 * exceptions.c: Likewise.
3665
3666 2014-08-29 Gary Benson <gbenson@redhat.com>
3667
3668 * cleanups.h: Moved to...
3669 * common/cleanups.h: New file.
3670 * cleanups.c: Moved to...
3671 * common/cleanups.c: New file. Include common-defs.h and
3672 cleanups.h. Do not include defs.h.
3673 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3674 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3675 (cleanups.o): New rule.
3676
3677 2014-08-29 Gary Benson <gbenson@redhat.com>
3678
3679 * common/errors.h (internal_warning): New declaration.
3680 (internal_vwarning): Likewise.
3681 * common/errors.c (internal_warning): New function.
3682 * utils.h (internal_warning): Don't declare.
3683 (internal_vwarning): Likewise.
3684 * utils.c (internal_warning): Removed.
3685
3686 2014-08-29 Gary Benson <gbenson@redhat.com>
3687
3688 * main.c (captured_main): Use warning during startup.
3689 Prefix startup warning messages with command name.
3690
3691 2014-08-29 Gary Benson <gbenson@redhat.com>
3692
3693 * main.c (captured_main): Handle usage errors with error.
3694
3695 2014-08-29 Gary Benson <gbenson@redhat.com>
3696
3697 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3698 exit pair with a call to error. Wrap the message with _().
3699
3700 2014-08-29 Gary Benson <gbenson@redhat.com>
3701
3702 * main.c (captured_main): Replace a fprintf/exit
3703 pair with a call to error. Wrap the message with _().
3704
3705 2014-08-29 Gary Benson <gbenson@redhat.com>
3706
3707 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3708 pairs with calls to error. Wrap the message with _().
3709
3710 2014-08-29 Gary Benson <gbenson@redhat.com>
3711
3712 * utils.c (vwarning): Protect calls to target_terminal_ours
3713 and wrap_here.
3714
3715 2014-08-29 Gary Benson <gbenson@redhat.com>
3716
3717 * exceptions.c (print_flush): Protect calls to
3718 target_terminal_ours and wrap_here.
3719
3720 2014-08-29 Gary Benson <gbenson@redhat.com>
3721
3722 * utils.h (filtered_printing_initialized): New declaration.
3723 * utils.c (abort_with_message): New function.
3724 (internal_vproblem): Use abort_with_message for first level
3725 recursive internal problems, and if gdb_stderr is not set up.
3726 Protect calls to target_terminal_ours, begin_line and query.
3727
3728 2014-08-28 Doug Evans <dje@google.com>
3729
3730 * symtab.c (in_prologue): Move definition to better spot.
3731 (skip_prologue_using_sal): Ditto.
3732
3733 2014-08-28 Doug Evans <dje@google.com>
3734
3735 * symtab.c (find_function_start_sal): Move definition to better spot.
3736
3737 2014-08-28 Yao Qi <yao@codesourcery.com>
3738
3739 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3740 found_stack_adjust in forward scan. Remove condition check
3741 on found_stack_adjust which is always true. Indent the code.
3742
3743 2014-08-28 Yao Qi <yao@codesourcery.com>
3744
3745 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3746 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3747 (dwarf_decode_lines): Remove argument
3748 want_line_info. Remove condition check on want_line_info.
3749 Callers update.
3750
3751 2014-08-27 Doug Evans <dje@google.com>
3752
3753 * dwarf2read.c (dwarf_record_line): Fix typo.
3754
3755 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3756
3757 * target.h (struct target_ops::to_terminal_save_ours): Remove
3758 declaration.
3759 (target_terminal_save_ours): Remove macro.
3760 * target-delegates.c: Regenerate.
3761 * inf-child.c (inf_child_target): Don't set the nonexistent
3762 field to_terminal_save_ours.
3763 * inferior.h (child_terminal_save_ours): Remove declaration.
3764 * terminal.h (gdb_save_tty_state): New declaration.
3765 * inflow.c (child_terminal_save_ours): Rename to ...
3766 (gdb_save_tty_state): ... this.
3767 * tui/tui.c: Include terminal.h.
3768 (tui_enable): Use gdb_save_tty_state instead of
3769 target_terminal_save_ours.
3770 (tui_disable): Likewise.
3771
3772 2014-08-25 Doug Evans <dje@google.com>
3773
3774 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3775 Pass NULL instead of 0 for context pointer.
3776
3777 2014-08-25 Yao Qi <yao@codesourcery.com>
3778
3779 * dwarf2read.c: Fix grammatical error.
3780
3781 2014-08-24 Yao Qi <yao@codesourcery.com>
3782
3783 * dwarf2read.c (scan_partial_symbols): Update comments.
3784 Rename argument 'need_pc' with 'set_addrmap'.
3785 (add_partial_namespace): Rename argument 'need_pc' with
3786 'set_addrmap'.
3787 (add_partial_module): Likewise.
3788 (add_partial_subprogram): Likewise. Update comments.
3789 (dwarf2_name): Fix typo.
3790
3791 2014-08-22 Doug Evans <dje@google.com>
3792
3793 PR 17276
3794 * dwarf2read.c (dwarf_record_line_p): New function.
3795 (dwarf_decode_lines_1): Ignore subsequent line number entries
3796 for the same line if any entry had a non-zero discriminator.
3797
3798 2014-08-22 Doug Evans <dje@google.com>
3799
3800 * buildsym.h (record_line_ftype): New typedef.
3801 (record_line): Use it.
3802 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3803 (dwarf_decode_lines_1): Call them.
3804
3805 2014-08-22 Yao Qi <yao@codesourcery.com>
3806
3807 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3808 (ctf_end): Remove code.
3809
3810 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3811
3812 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3813 (linux_make_corefile_notes): call update_thread_list, protected against
3814 exceptions.
3815
3816 2014-08-21 Pedro Alves <palves@redhat.com>
3817
3818 * infcmd.c (attach_command): Remove comment.
3819
3820 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3821
3822 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3823 unsigned LONGEST to ULONGEST.
3824
3825 2014-08-20 Pedro Alves <palves@redhat.com>
3826
3827 * Makefile.in (check-read1): New rule.
3828
3829 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3830
3831 * value.c (value_from_contents_and_address): Strip resolved_type's
3832 typedef layers before checking its TYPE_DATA_LOCATION.
3833
3834 2014-08-20 Pedro Alves <palves@redhat.com>
3835
3836 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3837
3838 2014-08-20 Yao Qi <yao@codesourcery.com>
3839
3840 * amd64-tdep.c (amd64_classify): Add a blank line after the
3841 example. Move "*/" to a new line.
3842 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3843 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3844 * dwarf2read.c (psymtab_include_file_name): Likewise.
3845
3846 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3847 Pedro Alves <palves@redhat.com>
3848
3849 PR symtab/14604
3850 PR symtab/14605
3851 * ada-lang.c (coerce_unspec_val_to_type): Use
3852 value_contents_copy_raw.
3853 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3854 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3855 * cp-valprint.c (cp_print_value_fields): Let the common printing
3856 code handle optimized out values.
3857 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3858 * d-valprint.c (dynamic_array_type): Use
3859 value_bits_any_optimized_out.
3860 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3861 check_any_valid fields.
3862 (check_pieced_value_bits): Delete and inline ...
3863 (check_pieced_synthetic_pointer): ... here.
3864 (check_pieced_value_validity): Delete.
3865 (check_pieced_value_invalid): Delete.
3866 (pieced_value_funcs): Remove check_validity and check_any_valid
3867 fields.
3868 (read_pieced_value): Use mark_value_bits_optimized_out.
3869 (write_pieced_value): Switch to use
3870 mark_value_bytes_optimized_out.
3871 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3872 of assuming the whole value is optimized out.
3873 * findvar.c (read_frame_register_value): Remove special handling
3874 of optimized out registers.
3875 (value_from_register): Use mark_value_bytes_optimized_out.
3876 * frame-unwind.c (frame_unwind_got_optimized): Use
3877 mark_value_bytes_optimized_out.
3878 * jv-valprint.c (java_value_print): Adjust.
3879 (java_print_value_fields): Let the common printing code handle
3880 optimized out values.
3881 * mips-tdep.c (mips_print_register): Remove special handling of
3882 optimized out registers.
3883 * opencl-lang.c (lval_func_check_validity): Delete.
3884 (lval_func_check_any_valid): Delete.
3885 (opencl_value_funcs): Remove check_validity and check_any_valid
3886 fields.
3887 * p-valprint.c (pascal_object_print_value_fields): Let the common
3888 printing code handle optimized out values.
3889 * stack.c (read_frame_arg): Remove special handling of optimized
3890 out values. Fetch both VAL and ENTRYVAL before comparing
3891 contents. Adjust to value_available_contents_eq rename.
3892 * valprint.c (valprint_check_validity)
3893 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3894 (val_print_array_elements): Adjust.
3895 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3896 (value_bits_any_optimized_out): New function.
3897 (value_entirely_covered_by_range_vector): New function, factored
3898 out from value_entirely_unavailable.
3899 (value_entirely_unavailable): Reimplement.
3900 (value_entirely_optimized_out): New function.
3901 (insert_into_bit_range_vector): New function, factored out from
3902 mark_value_bits_unavailable.
3903 (mark_value_bits_unavailable): Reimplement.
3904 (struct ranges_and_idx): New struct.
3905 (find_first_range_overlap_and_match): New function, factored out
3906 from value_available_contents_bits_eq.
3907 (value_available_contents_bits_eq): Rename to ...
3908 (value_contents_bits_eq): ... this. Check both unavailable
3909 contents and optimized out contents.
3910 (value_available_contents_eq): Rename to ...
3911 (value_contents_eq): ... this.
3912 (allocate_value_lazy): Remove reference to the old optimized_out
3913 boolean.
3914 (allocate_optimized_out_value): Use
3915 mark_value_bytes_optimized_out.
3916 (require_not_optimized_out): Adjust to check whether the
3917 optimized_out vec is empty.
3918 (ranges_copy_adjusted): New function, factored out from
3919 value_contents_copy_raw.
3920 (value_contents_copy_raw): Also copy the optimized out ranges.
3921 Assert the destination ranges aren't optimized out.
3922 (value_contents_copy): Update comment, remove call to
3923 require_not_optimized_out.
3924 (value_contents_equal): Adjust to check whether the optimized_out
3925 vec is empty.
3926 (set_value_optimized_out, value_optimized_out_const): Delete.
3927 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3928 New functions.
3929 (value_entirely_optimized_out, value_bits_valid): Delete.
3930 (value_copy): Take a VEC copy of the 'optimized_out' field.
3931 (value_primitive_field): Remove special handling of optimized out.
3932 (value_fetch_lazy): Assert that lazy values have no unavailable
3933 regions. Use value_bits_any_optimized_out. Remove some special
3934 handling for optimized out values.
3935 * value.h: Add intro comment about <optimized out> and
3936 <unavailable>.
3937 (struct lval_funcs): Remove check_validity and check_any_valid
3938 fields.
3939 (set_value_optimized_out, value_optimized_out_const): Remove.
3940 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3941 New declarations.
3942 (value_bits_any_optimized_out): New declaration.
3943 (value_bits_valid): Delete declaration.
3944 (value_available_contents_eq): Rename to ...
3945 (value_contents_eq): ... this, and extend comments.
3946
3947 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3948
3949 Fix -fsanitize=address on unreadable inferior strings.
3950 * valprint.c (val_print_string): Fix access before BUFFER.
3951
3952 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3953
3954 * target.c (target_struct_size): Remove.
3955 (target_struct_allocsize): Remove.
3956 (DEFAULT_ALLOCSIZE): Remove.
3957 (target_ops_p): New typedef.
3958 (DEF_VEC_P (target_ops_p)): New vector type.
3959 (target_structs): Change type to VEC (target_ops_p).
3960 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3961 (find_default_run_target): Rewrite for loop following changes to
3962 target_structs.
3963
3964 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3965
3966 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3967 Adjust code accordingly. Adjust function description comment.
3968
3969 2014-08-19 Yao Qi <yao@codesourcery.com>
3970
3971 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3972 types.
3973
3974 2014-08-19 Alan Modra <amodra@gmail.com>
3975
3976 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3977 * config.in: Regenerate.
3978 * configure: Regenerate.
3979
3980 2014-08-19 Tom Tromey <tromey@redhat.com>
3981 Gary Benson <gbenson@redhat.com>
3982
3983 * common/common-debug.h: New file.
3984 * common/common-debug.c: Likewise.
3985 * debug.c: Likewise.
3986 * Makefile.in (SFILES): Add common/common-debug.c.
3987 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3988 (COMMON_OBS): Add common-debug.o and debug.o.
3989 (common-debug.o): New rule.
3990 * common/common-defs.h: Include common-debug.h.
3991 * common/agent.c (debug_agent_printf): New function.
3992 (DEBUG_AGENT): Redefine.
3993 * nat/i386-dregs.c (debug_printf): Undefine.
3994
3995 2014-08-19 Gary Benson <gbenson@redhat.com>
3996
3997 * common/common-defs.h: Include print-utils.h.
3998 * utils.h: Do not include print-utils.h.
3999
4000 2014-08-19 Tom Tromey <tromey@redhat.com>
4001 Gary Benson <gbenson@redhat.com>
4002
4003 * common/common-types.h: New file.
4004 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
4005 * common/common-defs.h: Include common-types.h.
4006 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4007 (ULONGEST): Remove.
4008
4009 2014-08-19 Tom Tromey <tromey@redhat.com>
4010 Gary Benson <gbenson@redhat.com>
4011
4012 * common/errors.h: New file.
4013 * common/errors.c: Likewise.
4014 * Makefile.in (SFILES): Add common/errors.c.
4015 (HFILES_NO_SRCDIR): Add common/errors.h.
4016 (COMMON_OBS): Add errors.o.
4017 (errors.o): New rule.
4018 * common/common-defs.h: Include errors.h.
4019 * utils.h (perror_with_name, error, verror, warning, vwarning):
4020 Don't declare.
4021 * common/common-utils.h: (malloc_failure, internal_error):
4022 Likewise.
4023
4024 2014-08-19 Gary Benson <gbenson@redhat.com>
4025
4026 * utils.c (internal_vproblem): Always print the message.
4027
4028 2014-08-18 Doug Evans <dje@google.com>
4029
4030 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4031
4032 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4033
4034 * ada-typeprint.c (type_is_full_subrange_of_target_type):
4035 Return 0 if TYPE is dynamic.
4036 (print_range): Add handling of dynamic ranges.
4037
4038 2014-08-18 Keven Boell <keven.boell@intel.com>
4039 Joel Brobecker <brobecker@adacore.com>
4040
4041 * gdbtypes.h (struct main_type): Add field "data_location".
4042 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4043 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4044 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4045 a dynamic data location.
4046 (resolve_dynamic_type): Add DW_AT_data_location handling.
4047 (copy_recursive, copy_type): Copy the data_location information
4048 when present.
4049 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4050 * value.c (value_from_contents_and_address): Add
4051 DW_AT_data_location handling.
4052
4053 2014-08-18 Keven Boell <keven.boell@intel.com>
4054 Joel Brobecker <brobecker@adacore.com>
4055
4056 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4057 field "get_object_address".
4058 * dwarf2expr.c (execute_stack_op): Add handling for
4059 DW_OP_push_object_address.
4060 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4061 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4062 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4063 (dwarf_expr_get_obj_addr): New function.
4064 (dwarf_expr_ctx_funcs): Add get_object_address field.
4065 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4066 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4067 (dwarf2_evaluate_property): Add parameter "address". Use it.
4068 (needs_get_obj_addr): New function.
4069 (needs_frame_ctx_funcs): Add get_object_address field.
4070 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4071 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4072 (resolve_dynamic_array): Likewise.
4073
4074 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4075
4076 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4077 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4078 fixed value for records and unions for which some GNAT encodings
4079 are present.
4080
4081 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4082
4083 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4084 rewrite to avoid "else if" and "else" constructs. Should be
4085 a no-op in practice.
4086
4087 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4088
4089 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4090 of lexical block.
4091
4092 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4093
4094 PR c++/17132
4095 * eval.c: Update all calls to find_overload_match.
4096 * valarith.c: Likewise.
4097 (value_user_defined_cpp_op, value_user_defined_op): New
4098 argument NOSIDE. Update all callers.
4099 * valops.c (find_overload_match): New argument NOSIDE.
4100 * value.h (find_overload_match): Update signature.
4101
4102 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4103
4104 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4105 'items' methods instead of 'iteritems' method on dictionaries.
4106
4107 2014-08-15 Doug Evans <dje@google.com>
4108
4109 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4110 closer to use.
4111
4112 2014-08-15 Doug Evans <dje@google.com>
4113
4114 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4115
4116 2014-08-15 Doug Evans <dje@google.com>
4117
4118 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4119
4120 2014-08-15 Doug Evans <dje@google.com>
4121
4122 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4123 unused.
4124
4125 2014-08-15 Eli Zaretskii <eliz@gnu.org>
4126
4127 * dcache.h: Include target.h, to avoid compile time warnings.
4128
4129 2014-08-15 Joel Brobecker <brobecker@adacore.com>
4130
4131 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4132 frame_info" partial declaration.
4133 * gdbarch.h: Regenerate.
4134
4135 2014-08-15 Yao Qi <yao@codesourcery.com>
4136
4137 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4138 Add parameter 'decode_for_pst_p'. Callers update.
4139
4140 2014-08-13 Yao Qi <yao@codesourcery.com>
4141
4142 PR build/17104
4143 * configure.ac: Use local variable 'pos'.
4144 * configure: Regenerated.
4145
4146 2014-08-11 Doug Evans <dje@google.com>
4147
4148 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4149 message, it is redundant with "Reading symbols from ..." message.
4150
4151 2014-08-10 Doug Evans <xdje42@gmail.com>
4152
4153 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4154
4155 2014-08-09 Yao Qi <yao@codesourcery.com>
4156
4157 PR remote/9053
4158 * remote.c (remote_xfer_partial): Remove dead code.
4159
4160 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4161
4162 * ia64-linux-tdep.c: Include "regset.h".
4163 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4164 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4165 (ia64_linux_supply_fpregset): New function.
4166 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4167 (ia64_linux_regset_from_core_section): New function.
4168 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4169 method.
4170
4171 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4172
4173 * m68klinux-tdep.c: Include "regset.h".
4174 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4175 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4176 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4177 (m68k_linux_regset_from_core_section): New function.
4178 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4179 method.
4180
4181 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4182
4183 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4184 function. Move logic to...
4185 (tilegx_linux_regmap): ... this new register map.
4186 (tilegx_linux_regset): Refer to register map, replace supply
4187 method by regcache_supply_regset, and add collect method.
4188 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4189 TILEGX_FIRST_EASY_REGNUM.
4190
4191 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4192
4193 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4194 that calls regcache_supply_regset and handles the EPC register
4195 separately. Move main logic to...
4196 (score7_linux_gregmap): ... this new register map.
4197 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4198 (score7_linux_gregset): Refer to register map. Add collect method.
4199 (score7_linux_regset_from_core_section): Replace
4200 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4201 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4202 (struct regset): Delete unused forward declaraction.
4203 (struct pt_regs): Delete structure definition.
4204 (elf_gregset_t): Delete typedef.
4205
4206 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4207
4208 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4209 (nios2_core_regset): Add collect method.
4210
4211 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4212
4213 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4214 platform-independent and don't write to read-only input buffer.
4215 (m32r_linux_collect_gregset): New function.
4216 (m32r_linux_gregset): Add collect method.
4217
4218 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4219
4220 * hppa-linux-tdep.c (greg_map): Rename to...
4221 (hppa_linux_gregmap): ... this. Also convert to
4222 regcache_map_entry format.
4223 (hppa_linux_supply_regset): Delete function.
4224 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4225 (hppa_linux_fpregmap): ... this new register map.
4226 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4227 register map, replace supply method by regcache_supply_regset, and
4228 add collect method regcache_collect_regset.
4229
4230 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4231
4232 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4233 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4234 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4235 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4236 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4237 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4238 (frv_linux_supply_gregset): Replace main logic by call to
4239 regcache_supply_regset, but keep clearing gr32-gr63.
4240 (frv_linux_supply_fpregset): Delete function.
4241 (frv_linux_gregset): Refer to appropriate register map and add
4242 regcache_collect_regset as the collect method.
4243 (frv_linux_fpregset): Likewise. Also exchange the supply method
4244 by regcache_supply_regset.
4245
4246 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4247
4248 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4249 by call to alpha_supply_int_regs.
4250 (alpha_linux_collect_gregset): New function.
4251 (alpha_linux_supply_fpregset): Replace logic by call to
4252 alpha_supply_fp_regs.
4253 (alpha_linux_collect_fpregset): New function.
4254 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4255
4256 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4257
4258 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4259 by call to regcache_collect_regset.
4260 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4261 instead of aarch64_linux_supply_gregset/_fpregset.
4262 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4263 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4264 header file instead.
4265 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4266 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4267 functions. Move logic to ...
4268 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4269 register maps.
4270 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4271 refer to new register maps, replace *_regset_from_core by
4272 regcache_supply_regset, and also use regcache_collect_regset.
4273 * aarch64-linux-tdep.h: Include "regset.h".
4274 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4275 Delete prototypes.
4276 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4277 macros, moved from C source file.
4278 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4279 variable declarations.
4280
4281 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4282
4283 * s390-linux-nat.c: Include "regset.h".
4284 (regmap_gregset): Delete macro.
4285 (s390_64_regmap_gregset): New register map for
4286 regcache_supply/_collect_regset.
4287 (s390_64_gregset): New regset.
4288 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4289 (regmap_fpregset): Delete macro.
4290 (s390_native_supply, s390_native_collect): Delete functions.
4291 (supply_gregset, fill_gregset): Replace s390-specific regmap
4292 handling by a call to regcache_supply/_collect_regset.
4293 (supply_fpregset, fill_fpregset): Call regcache_supply/
4294 _collect_regset instead of s390_native_supply/_collect.
4295 (fetch_regset, store_regset): Likewise. Also change the last
4296 parameter to a regset instead of a regmap.
4297 (s390_linux_fetch_inferior_registers)
4298 (390_linux_store_inferior_registers): Adjust last parameter in
4299 calls to fetch_regset and store_regset.
4300 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4301 (s390_gregmap): ... this. Also make static const and convert to
4302 regcache_map_entry format.
4303 (s390x_regmap_gregset): Delete.
4304 (s390_regmap_fpregset): Rename to...
4305 (s390_fpregmap): ... this. Make static const and convert to
4306 regcache_map_entry format.
4307 (s390_regmap_upper, s390_regmap_last_break)
4308 (s390x_regmap_last_break, s390_regmap_system_call)
4309 (s390_regmap_tdb): Likewise.
4310 (s390_supply_regset, s390_collect_regset): Remove functions.
4311 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4312 s390_supply_regset.
4313 (s390_gregset, s390_fpregset, s390_upper_regset)
4314 (s390_last_break_regset, s390x_last_break_regset)
4315 (s390_system_call_regset, s390_tdb_regset): Make global and
4316 replace s390_supply/_collect_regset by regcache_supply/
4317 _collect_regset.
4318 (s390x_gregset): Delete.
4319 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4320 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4321 (s390_regmap_fpregset, s390_regmap_last_break)
4322 (s390x_regmap_last_break, s390_regmap_system_call)
4323 (s390_regmap_tdb): Delete global variable declarations.
4324 (s390_gregset, s390_fpregset, s390_last_break_regset)
4325 (s390x_last_break_regset, s390_system_call_regset)
4326 (s390_tdb_regset): New global variable declarations.
4327
4328 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4329
4330 * regcache.c: Include "regset.h".
4331 (regcache_transfer_regset): New local function.
4332 (regcache_supply_regset, regcache_collect_regset): New functions.
4333 * regcache.h (struct regcache_map_entry): New structure.
4334 (REGCACHE_MAP_SKIP): New enum value.
4335 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4336
4337 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4338
4339 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4340 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4341 (ppc_linux_collect_gregset ): Likewise.
4342 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4343 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4344 (ppc_collect_vrregset): Likewise.
4345 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4346 Likewise.
4347
4348 2014-08-07 Yao Qi <yao@codesourcery.com>
4349
4350 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4351 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4352 * remote.c (remote_read_bytes): Likewise.
4353
4354 2014-08-07 Yao Qi <yao@codesourcery.com>
4355
4356 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4357
4358 2014-08-07 Yao Qi <yao@codesourcery.com>
4359
4360 PR remote/17230
4361 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4362 TARGET_XFER_OK instead of 0.
4363
4364 2014-08-07 Gary Benson <gbenson@redhat.com>
4365
4366 * common/common-defs.h: Include errno.h.
4367 * defs.h: Do not include errno.h.
4368 * ada-typeprint.c: Likewise.
4369 * c-typeprint.c: Likewise.
4370 * core-regset.c: Likewise.
4371 * corefile.c: Likewise.
4372 * corelow.c: Likewise.
4373 * event-loop.c: Likewise.
4374 * f-typeprint.c: Likewise.
4375 * gnu-nat.c: Likewise.
4376 * go32-nat.c: Likewise.
4377 * i386gnu-nat.c: Likewise.
4378 * m2-typeprint.c: Likewise.
4379 * nat/linux-btrace.c: Likewise.
4380 * p-typeprint.c: Likewise.
4381 * procfs.c: Likewise.
4382 * remote-sim.c: Likewise.
4383 * rs6000-nat.c: Likewise.
4384 * target.c: Likewise.
4385 * typeprint.c: Likewise.
4386 * ui-file.c: Likewise.
4387 * valops.c: Likewise.
4388 * valprint.c: Likewise.
4389
4390 2014-08-07 Gary Benson <gbenson@redhat.com>
4391
4392 * common/common-defs.h: Include string.h.
4393 * aarch64-tdep.c: Do not include string.h.
4394 * ada-exp.y: Likewise.
4395 * ada-lang.c: Likewise.
4396 * ada-lex.l: Likewise.
4397 * ada-typeprint.c: Likewise.
4398 * ada-valprint.c: Likewise.
4399 * aix-thread.c: Likewise.
4400 * alpha-linux-tdep.c: Likewise.
4401 * alpha-mdebug-tdep.c: Likewise.
4402 * alpha-nat.c: Likewise.
4403 * alpha-osf1-tdep.c: Likewise.
4404 * alpha-tdep.c: Likewise.
4405 * alphanbsd-tdep.c: Likewise.
4406 * amd64-dicos-tdep.c: Likewise.
4407 * amd64-linux-tdep.c: Likewise.
4408 * amd64-nat.c: Likewise.
4409 * amd64-sol2-tdep.c: Likewise.
4410 * amd64fbsd-tdep.c: Likewise.
4411 * amd64obsd-tdep.c: Likewise.
4412 * arch-utils.c: Likewise.
4413 * arm-linux-nat.c: Likewise.
4414 * arm-linux-tdep.c: Likewise.
4415 * arm-tdep.c: Likewise.
4416 * arm-wince-tdep.c: Likewise.
4417 * armbsd-tdep.c: Likewise.
4418 * armnbsd-nat.c: Likewise.
4419 * armnbsd-tdep.c: Likewise.
4420 * armobsd-tdep.c: Likewise.
4421 * avr-tdep.c: Likewise.
4422 * ax-gdb.c: Likewise.
4423 * ax-general.c: Likewise.
4424 * bcache.c: Likewise.
4425 * bfin-tdep.c: Likewise.
4426 * breakpoint.c: Likewise.
4427 * build-id.c: Likewise.
4428 * buildsym.c: Likewise.
4429 * c-exp.y: Likewise.
4430 * c-lang.c: Likewise.
4431 * c-typeprint.c: Likewise.
4432 * c-valprint.c: Likewise.
4433 * charset.c: Likewise.
4434 * cli-out.c: Likewise.
4435 * cli/cli-cmds.c: Likewise.
4436 * cli/cli-decode.c: Likewise.
4437 * cli/cli-dump.c: Likewise.
4438 * cli/cli-interp.c: Likewise.
4439 * cli/cli-logging.c: Likewise.
4440 * cli/cli-script.c: Likewise.
4441 * cli/cli-setshow.c: Likewise.
4442 * cli/cli-utils.c: Likewise.
4443 * coffread.c: Likewise.
4444 * common/agent.c: Likewise.
4445 * common/buffer.c: Likewise.
4446 * common/buffer.h: Likewise.
4447 * common/common-utils.c: Likewise.
4448 * common/filestuff.c: Likewise.
4449 * common/filestuff.c: Likewise.
4450 * common/format.c: Likewise.
4451 * common/print-utils.c: Likewise.
4452 * common/rsp-low.c: Likewise.
4453 * common/signals.c: Likewise.
4454 * common/vec.h: Likewise.
4455 * common/xml-utils.c: Likewise.
4456 * core-regset.c: Likewise.
4457 * corefile.c: Likewise.
4458 * corelow.c: Likewise.
4459 * cp-abi.c: Likewise.
4460 * cp-name-parser.y: Likewise.
4461 * cp-support.c: Likewise.
4462 * cp-valprint.c: Likewise.
4463 * cris-tdep.c: Likewise.
4464 * d-exp.y: Likewise.
4465 * darwin-nat.c: Likewise.
4466 * dbxread.c: Likewise.
4467 * dcache.c: Likewise.
4468 * demangle.c: Likewise.
4469 * dicos-tdep.c: Likewise.
4470 * disasm.c: Likewise.
4471 * doublest.c: Likewise.
4472 * dsrec.c: Likewise.
4473 * dummy-frame.c: Likewise.
4474 * dwarf2-frame.c: Likewise.
4475 * dwarf2loc.c: Likewise.
4476 * dwarf2read.c: Likewise.
4477 * elfread.c: Likewise.
4478 * environ.c: Likewise.
4479 * eval.c: Likewise.
4480 * event-loop.c: Likewise.
4481 * exceptions.c: Likewise.
4482 * exec.c: Likewise.
4483 * expprint.c: Likewise.
4484 * f-exp.y: Likewise.
4485 * f-lang.c: Likewise.
4486 * f-typeprint.c: Likewise.
4487 * f-valprint.c: Likewise.
4488 * fbsd-nat.c: Likewise.
4489 * findcmd.c: Likewise.
4490 * findvar.c: Likewise.
4491 * fork-child.c: Likewise.
4492 * frame.c: Likewise.
4493 * frv-linux-tdep.c: Likewise.
4494 * frv-tdep.c: Likewise.
4495 * gdb.c: Likewise.
4496 * gdb_bfd.c: Likewise.
4497 * gdbarch.c: Likewise.
4498 * gdbarch.sh: Likewise.
4499 * gdbtypes.c: Likewise.
4500 * gnu-nat.c: Likewise.
4501 * gnu-v2-abi.c: Likewise.
4502 * gnu-v3-abi.c: Likewise.
4503 * go-exp.y: Likewise.
4504 * go-lang.c: Likewise.
4505 * go32-nat.c: Likewise.
4506 * guile/guile.c: Likewise.
4507 * guile/scm-auto-load.c: Likewise.
4508 * hppa-hpux-tdep.c: Likewise.
4509 * hppa-linux-nat.c: Likewise.
4510 * hppanbsd-tdep.c: Likewise.
4511 * hppaobsd-tdep.c: Likewise.
4512 * i386-cygwin-tdep.c: Likewise.
4513 * i386-dicos-tdep.c: Likewise.
4514 * i386-linux-tdep.c: Likewise.
4515 * i386-nto-tdep.c: Likewise.
4516 * i386-sol2-tdep.c: Likewise.
4517 * i386-tdep.c: Likewise.
4518 * i386bsd-tdep.c: Likewise.
4519 * i386gnu-nat.c: Likewise.
4520 * i386nbsd-tdep.c: Likewise.
4521 * i386obsd-tdep.c: Likewise.
4522 * i387-tdep.c: Likewise.
4523 * ia64-libunwind-tdep.c: Likewise.
4524 * ia64-linux-nat.c: Likewise.
4525 * inf-child.c: Likewise.
4526 * inf-ptrace.c: Likewise.
4527 * inf-ttrace.c: Likewise.
4528 * infcall.c: Likewise.
4529 * infcmd.c: Likewise.
4530 * inflow.c: Likewise.
4531 * infrun.c: Likewise.
4532 * interps.c: Likewise.
4533 * iq2000-tdep.c: Likewise.
4534 * irix5-nat.c: Likewise.
4535 * jv-exp.y: Likewise.
4536 * jv-lang.c: Likewise.
4537 * jv-typeprint.c: Likewise.
4538 * jv-valprint.c: Likewise.
4539 * language.c: Likewise.
4540 * linux-fork.c: Likewise.
4541 * linux-nat.c: Likewise.
4542 * lm32-tdep.c: Likewise.
4543 * m2-exp.y: Likewise.
4544 * m2-typeprint.c: Likewise.
4545 * m32c-tdep.c: Likewise.
4546 * m32r-linux-nat.c: Likewise.
4547 * m32r-linux-tdep.c: Likewise.
4548 * m32r-rom.c: Likewise.
4549 * m32r-tdep.c: Likewise.
4550 * m68hc11-tdep.c: Likewise.
4551 * m68k-tdep.c: Likewise.
4552 * m68kbsd-tdep.c: Likewise.
4553 * m68klinux-nat.c: Likewise.
4554 * m68klinux-tdep.c: Likewise.
4555 * m88k-tdep.c: Likewise.
4556 * machoread.c: Likewise.
4557 * macrocmd.c: Likewise.
4558 * main.c: Likewise.
4559 * mdebugread.c: Likewise.
4560 * mem-break.c: Likewise.
4561 * memattr.c: Likewise.
4562 * memory-map.c: Likewise.
4563 * mep-tdep.c: Likewise.
4564 * mi/mi-cmd-break.c: Likewise.
4565 * mi/mi-cmd-disas.c: Likewise.
4566 * mi/mi-cmd-env.c: Likewise.
4567 * mi/mi-cmd-stack.c: Likewise.
4568 * mi/mi-cmd-var.c: Likewise.
4569 * mi/mi-cmds.c: Likewise.
4570 * mi/mi-console.c: Likewise.
4571 * mi/mi-getopt.c: Likewise.
4572 * mi/mi-interp.c: Likewise.
4573 * mi/mi-main.c: Likewise.
4574 * mi/mi-parse.c: Likewise.
4575 * microblaze-rom.c: Likewise.
4576 * microblaze-tdep.c: Likewise.
4577 * mingw-hdep.c: Likewise.
4578 * minidebug.c: Likewise.
4579 * minsyms.c: Likewise.
4580 * mips-irix-tdep.c: Likewise.
4581 * mips-linux-tdep.c: Likewise.
4582 * mips-tdep.c: Likewise.
4583 * mips64obsd-tdep.c: Likewise.
4584 * mipsnbsd-tdep.c: Likewise.
4585 * mipsread.c: Likewise.
4586 * mn10300-linux-tdep.c: Likewise.
4587 * mn10300-tdep.c: Likewise.
4588 * monitor.c: Likewise.
4589 * moxie-tdep.c: Likewise.
4590 * mt-tdep.c: Likewise.
4591 * nat/linux-btrace.c: Likewise.
4592 * nat/linux-osdata.c: Likewise.
4593 * nat/linux-procfs.c: Likewise.
4594 * nat/linux-ptrace.c: Likewise.
4595 * nat/linux-waitpid.c: Likewise.
4596 * nbsd-tdep.c: Likewise.
4597 * nios2-linux-tdep.c: Likewise.
4598 * nto-procfs.c: Likewise.
4599 * nto-tdep.c: Likewise.
4600 * objc-lang.c: Likewise.
4601 * objfiles.c: Likewise.
4602 * opencl-lang.c: Likewise.
4603 * osabi.c: Likewise.
4604 * osdata.c: Likewise.
4605 * p-exp.y: Likewise.
4606 * p-lang.c: Likewise.
4607 * p-typeprint.c: Likewise.
4608 * parse.c: Likewise.
4609 * posix-hdep.c: Likewise.
4610 * ppc-linux-nat.c: Likewise.
4611 * ppc-sysv-tdep.c: Likewise.
4612 * ppcfbsd-tdep.c: Likewise.
4613 * ppcnbsd-tdep.c: Likewise.
4614 * ppcobsd-tdep.c: Likewise.
4615 * printcmd.c: Likewise.
4616 * procfs.c: Likewise.
4617 * prologue-value.c: Likewise.
4618 * python/py-auto-load.c: Likewise.
4619 * python/py-gdb-readline.c: Likewise.
4620 * ravenscar-thread.c: Likewise.
4621 * regcache.c: Likewise.
4622 * registry.c: Likewise.
4623 * remote-fileio.c: Likewise.
4624 * remote-m32r-sdi.c: Likewise.
4625 * remote-mips.c: Likewise.
4626 * remote-notif.c: Likewise.
4627 * remote-sim.c: Likewise.
4628 * remote.c: Likewise.
4629 * reverse.c: Likewise.
4630 * rs6000-aix-tdep.c: Likewise.
4631 * ser-base.c: Likewise.
4632 * ser-go32.c: Likewise.
4633 * ser-mingw.c: Likewise.
4634 * ser-pipe.c: Likewise.
4635 * ser-tcp.c: Likewise.
4636 * ser-unix.c: Likewise.
4637 * serial.c: Likewise.
4638 * sh-tdep.c: Likewise.
4639 * sh64-tdep.c: Likewise.
4640 * shnbsd-tdep.c: Likewise.
4641 * skip.c: Likewise.
4642 * sol-thread.c: Likewise.
4643 * solib-dsbt.c: Likewise.
4644 * solib-frv.c: Likewise.
4645 * solib-osf.c: Likewise.
4646 * solib-som.c: Likewise.
4647 * solib-spu.c: Likewise.
4648 * solib-target.c: Likewise.
4649 * solib.c: Likewise.
4650 * somread.c: Likewise.
4651 * source.c: Likewise.
4652 * sparc-nat.c: Likewise.
4653 * sparc-sol2-tdep.c: Likewise.
4654 * sparc-tdep.c: Likewise.
4655 * sparc64-tdep.c: Likewise.
4656 * sparc64fbsd-tdep.c: Likewise.
4657 * sparc64nbsd-tdep.c: Likewise.
4658 * sparcnbsd-tdep.c: Likewise.
4659 * spu-linux-nat.c: Likewise.
4660 * spu-multiarch.c: Likewise.
4661 * spu-tdep.c: Likewise.
4662 * stabsread.c: Likewise.
4663 * stack.c: Likewise.
4664 * std-regs.c: Likewise.
4665 * symfile.c: Likewise.
4666 * symmisc.c: Likewise.
4667 * symtab.c: Likewise.
4668 * target.c: Likewise.
4669 * thread.c: Likewise.
4670 * tilegx-linux-nat.c: Likewise.
4671 * tilegx-tdep.c: Likewise.
4672 * top.c: Likewise.
4673 * tracepoint.c: Likewise.
4674 * tui/tui-command.c: Likewise.
4675 * tui/tui-data.c: Likewise.
4676 * tui/tui-disasm.c: Likewise.
4677 * tui/tui-file.c: Likewise.
4678 * tui/tui-layout.c: Likewise.
4679 * tui/tui-out.c: Likewise.
4680 * tui/tui-regs.c: Likewise.
4681 * tui/tui-source.c: Likewise.
4682 * tui/tui-stack.c: Likewise.
4683 * tui/tui-win.c: Likewise.
4684 * tui/tui-windata.c: Likewise.
4685 * tui/tui-winsource.c: Likewise.
4686 * typeprint.c: Likewise.
4687 * ui-file.c: Likewise.
4688 * ui-out.c: Likewise.
4689 * user-regs.c: Likewise.
4690 * utils.c: Likewise.
4691 * v850-tdep.c: Likewise.
4692 * valarith.c: Likewise.
4693 * valops.c: Likewise.
4694 * valprint.c: Likewise.
4695 * value.c: Likewise.
4696 * varobj.c: Likewise.
4697 * vax-tdep.c: Likewise.
4698 * vaxnbsd-tdep.c: Likewise.
4699 * vaxobsd-tdep.c: Likewise.
4700 * windows-nat.c: Likewise.
4701 * xcoffread.c: Likewise.
4702 * xml-support.c: Likewise.
4703 * xstormy16-tdep.c: Likewise.
4704 * xtensa-linux-nat.c: Likewise.
4705
4706 2014-08-07 Gary Benson <gbenson@redhat.com>
4707
4708 * common/common-defs.h: Include gdb_assert.h.
4709 * aarch64-tdep.c: Do not include gdb_assert.h.
4710 * addrmap.c: Likewise.
4711 * aix-thread.c: Likewise.
4712 * alpha-linux-tdep.c: Likewise.
4713 * alpha-mdebug-tdep.c: Likewise.
4714 * alphanbsd-tdep.c: Likewise.
4715 * amd64-nat.c: Likewise.
4716 * amd64-tdep.c: Likewise.
4717 * amd64bsd-nat.c: Likewise.
4718 * amd64fbsd-nat.c: Likewise.
4719 * amd64fbsd-tdep.c: Likewise.
4720 * amd64nbsd-nat.c: Likewise.
4721 * amd64nbsd-tdep.c: Likewise.
4722 * amd64obsd-nat.c: Likewise.
4723 * amd64obsd-tdep.c: Likewise.
4724 * arch-utils.c: Likewise.
4725 * arm-tdep.c: Likewise.
4726 * armbsd-tdep.c: Likewise.
4727 * auxv.c: Likewise.
4728 * bcache.c: Likewise.
4729 * bfin-tdep.c: Likewise.
4730 * blockframe.c: Likewise.
4731 * breakpoint.c: Likewise.
4732 * bsd-kvm.c: Likewise.
4733 * bsd-uthread.c: Likewise.
4734 * buildsym.c: Likewise.
4735 * c-exp.y: Likewise.
4736 * c-lang.c: Likewise.
4737 * charset.c: Likewise.
4738 * cleanups.c: Likewise.
4739 * cli-out.c: Likewise.
4740 * cli/cli-decode.c: Likewise.
4741 * cli/cli-dump.c: Likewise.
4742 * cli/cli-logging.c: Likewise.
4743 * cli/cli-script.c: Likewise.
4744 * cli/cli-utils.c: Likewise.
4745 * coffread.c: Likewise.
4746 * common/common-utils.c: Likewise.
4747 * common/queue.h: Likewise.
4748 * common/signals.c: Likewise.
4749 * common/vec.h: Likewise.
4750 * complaints.c: Likewise.
4751 * completer.c: Likewise.
4752 * corelow.c: Likewise.
4753 * cp-abi.c: Likewise.
4754 * cp-name-parser.y: Likewise.
4755 * cp-namespace.c: Likewise.
4756 * cp-support.c: Likewise.
4757 * cris-tdep.c: Likewise.
4758 * dbxread.c: Likewise.
4759 * dictionary.c: Likewise.
4760 * doublest.c: Likewise.
4761 * dsrec.c: Likewise.
4762 * dummy-frame.c: Likewise.
4763 * dwarf2-frame-tailcall.c: Likewise.
4764 * dwarf2-frame.c: Likewise.
4765 * dwarf2expr.c: Likewise.
4766 * dwarf2loc.c: Likewise.
4767 * dwarf2read.c: Likewise.
4768 * eval.c: Likewise.
4769 * event-loop.c: Likewise.
4770 * exceptions.c: Likewise.
4771 * expprint.c: Likewise.
4772 * f-valprint.c: Likewise.
4773 * fbsd-nat.c: Likewise.
4774 * findvar.c: Likewise.
4775 * frame-unwind.c: Likewise.
4776 * frame.c: Likewise.
4777 * frv-tdep.c: Likewise.
4778 * gcore.c: Likewise.
4779 * gdb-dlfcn.c: Likewise.
4780 * gdb_bfd.c: Likewise.
4781 * gdbarch.c: Likewise.
4782 * gdbarch.sh: Likewise.
4783 * gdbtypes.c: Likewise.
4784 * gnu-nat.c: Likewise.
4785 * gnu-v3-abi.c: Likewise.
4786 * go-lang.c: Likewise.
4787 * guile/scm-exception.c: Likewise.
4788 * guile/scm-gsmob.c: Likewise.
4789 * guile/scm-lazy-string.c: Likewise.
4790 * guile/scm-math.c: Likewise.
4791 * guile/scm-pretty-print.c: Likewise.
4792 * guile/scm-safe-call.c: Likewise.
4793 * guile/scm-utils.c: Likewise.
4794 * guile/scm-value.c: Likewise.
4795 * h8300-tdep.c: Likewise.
4796 * hppa-hpux-nat.c: Likewise.
4797 * hppa-tdep.c: Likewise.
4798 * hppanbsd-tdep.c: Likewise.
4799 * hppaobsd-tdep.c: Likewise.
4800 * i386-darwin-nat.c: Likewise.
4801 * i386-darwin-tdep.c: Likewise.
4802 * i386-nto-tdep.c: Likewise.
4803 * i386-tdep.c: Likewise.
4804 * i386bsd-nat.c: Likewise.
4805 * i386fbsd-tdep.c: Likewise.
4806 * i386gnu-nat.c: Likewise.
4807 * i386nbsd-tdep.c: Likewise.
4808 * i386obsd-tdep.c: Likewise.
4809 * i387-tdep.c: Likewise.
4810 * ia64-libunwind-tdep.c: Likewise.
4811 * ia64-tdep.c: Likewise.
4812 * inf-ptrace.c: Likewise.
4813 * inf-ttrace.c: Likewise.
4814 * infcall.c: Likewise.
4815 * infcmd.c: Likewise.
4816 * infrun.c: Likewise.
4817 * inline-frame.c: Likewise.
4818 * interps.c: Likewise.
4819 * jv-lang.c: Likewise.
4820 * jv-typeprint.c: Likewise.
4821 * linux-fork.c: Likewise.
4822 * linux-nat.c: Likewise.
4823 * linux-thread-db.c: Likewise.
4824 * m32c-tdep.c: Likewise.
4825 * m32r-linux-nat.c: Likewise.
4826 * m32r-tdep.c: Likewise.
4827 * m68k-tdep.c: Likewise.
4828 * m68kbsd-nat.c: Likewise.
4829 * m68kbsd-tdep.c: Likewise.
4830 * m88k-tdep.c: Likewise.
4831 * machoread.c: Likewise.
4832 * macroexp.c: Likewise.
4833 * macrotab.c: Likewise.
4834 * maint.c: Likewise.
4835 * mdebugread.c: Likewise.
4836 * memory-map.c: Likewise.
4837 * mep-tdep.c: Likewise.
4838 * mi/mi-common.c: Likewise.
4839 * microblaze-tdep.c: Likewise.
4840 * mingw-hdep.c: Likewise.
4841 * mips-linux-nat.c: Likewise.
4842 * mips-linux-tdep.c: Likewise.
4843 * mips-tdep.c: Likewise.
4844 * mips64obsd-tdep.c: Likewise.
4845 * mipsnbsd-tdep.c: Likewise.
4846 * mn10300-linux-tdep.c: Likewise.
4847 * mn10300-tdep.c: Likewise.
4848 * moxie-tdep.c: Likewise.
4849 * mt-tdep.c: Likewise.
4850 * nat/linux-btrace.c: Likewise.
4851 * nat/linux-osdata.c: Likewise.
4852 * nat/linux-ptrace.c: Likewise.
4853 * nat/mips-linux-watch.c: Likewise.
4854 * nios2-linux-tdep.c: Likewise.
4855 * nios2-tdep.c: Likewise.
4856 * objc-lang.c: Likewise.
4857 * objfiles.c: Likewise.
4858 * obsd-nat.c: Likewise.
4859 * opencl-lang.c: Likewise.
4860 * osabi.c: Likewise.
4861 * parse.c: Likewise.
4862 * ppc-linux-nat.c: Likewise.
4863 * ppc-sysv-tdep.c: Likewise.
4864 * ppcfbsd-nat.c: Likewise.
4865 * ppcfbsd-tdep.c: Likewise.
4866 * ppcnbsd-nat.c: Likewise.
4867 * ppcnbsd-tdep.c: Likewise.
4868 * ppcobsd-nat.c: Likewise.
4869 * ppcobsd-tdep.c: Likewise.
4870 * printcmd.c: Likewise.
4871 * procfs.c: Likewise.
4872 * prologue-value.c: Likewise.
4873 * psymtab.c: Likewise.
4874 * python/py-lazy-string.c: Likewise.
4875 * python/py-value.c: Likewise.
4876 * regcache.c: Likewise.
4877 * reggroups.c: Likewise.
4878 * registry.c: Likewise.
4879 * remote-sim.c: Likewise.
4880 * remote.c: Likewise.
4881 * rs6000-aix-tdep.c: Likewise.
4882 * rs6000-tdep.c: Likewise.
4883 * s390-linux-tdep.c: Likewise.
4884 * score-tdep.c: Likewise.
4885 * ser-base.c: Likewise.
4886 * ser-mingw.c: Likewise.
4887 * sh-tdep.c: Likewise.
4888 * sh64-tdep.c: Likewise.
4889 * solib-darwin.c: Likewise.
4890 * solib-spu.c: Likewise.
4891 * solib-svr4.c: Likewise.
4892 * source.c: Likewise.
4893 * sparc-nat.c: Likewise.
4894 * sparc-sol2-tdep.c: Likewise.
4895 * sparc-tdep.c: Likewise.
4896 * sparc64-sol2-tdep.c: Likewise.
4897 * sparc64-tdep.c: Likewise.
4898 * sparc64fbsd-tdep.c: Likewise.
4899 * sparc64nbsd-tdep.c: Likewise.
4900 * sparc64obsd-tdep.c: Likewise.
4901 * sparcnbsd-tdep.c: Likewise.
4902 * sparcobsd-tdep.c: Likewise.
4903 * spu-multiarch.c: Likewise.
4904 * spu-tdep.c: Likewise.
4905 * stabsread.c: Likewise.
4906 * stack.c: Likewise.
4907 * symfile.c: Likewise.
4908 * symtab.c: Likewise.
4909 * target-descriptions.c: Likewise.
4910 * target-memory.c: Likewise.
4911 * target.c: Likewise.
4912 * tic6x-linux-tdep.c: Likewise.
4913 * tic6x-tdep.c: Likewise.
4914 * tilegx-linux-nat.c: Likewise.
4915 * tilegx-tdep.c: Likewise.
4916 * top.c: Likewise.
4917 * tramp-frame.c: Likewise.
4918 * tui/tui-out.c: Likewise.
4919 * tui/tui-winsource.c: Likewise.
4920 * ui-out.c: Likewise.
4921 * user-regs.c: Likewise.
4922 * utils.c: Likewise.
4923 * v850-tdep.c: Likewise.
4924 * valops.c: Likewise.
4925 * value.c: Likewise.
4926 * varobj.c: Likewise.
4927 * vax-nat.c: Likewise.
4928 * xml-syscall.c: Likewise.
4929 * xml-tdesc.c: Likewise.
4930 * xstormy16-tdep.c: Likewise.
4931 * xtensa-linux-nat.c: Likewise.
4932 * xtensa-tdep.c: Likewise.
4933
4934 2014-08-07 Gary Benson <gbenson@redhat.com>
4935
4936 * common/common-defs.h: Include common-utils.h.
4937 * defs.h: Do not include common-utils.h.
4938 * common/gdb_assert.h: Likewise.
4939 * darwin-nat.h: Likewise.
4940 * nat/linux-btrace.c: Likewise.
4941 * target/waitstatus.h: Likewise.
4942
4943 2014-08-07 Gary Benson <gbenson@redhat.com>
4944
4945 * common/common-defs.h: Include ptid.h.
4946 * defs.h: Do not include ptid.h.
4947 * inferior.h: Likewise.
4948 * infrun.h: Likewise.
4949 * nat/linux-btrace.h: Likewise.
4950 * nat/linux-osdata.h: Likewise.
4951 * target/waitstatus.h: Likewise.
4952
4953 2014-08-07 Gary Benson <gbenson@redhat.com>
4954
4955 * common/common-defs.h: Include gdb_locale.h.
4956 * defs.h: Do not include gdb_locale.h.
4957
4958 2014-08-07 Gary Benson <gbenson@redhat.com>
4959
4960 * common/common-defs.h: Include gdb/signals.h.
4961 * defs.h: Do not include gdb/signals.h.
4962
4963 2014-08-07 Gary Benson <gbenson@redhat.com>
4964
4965 * common/common-defs.h: Include pathmax.h.
4966 * defs.h: Do not include pathmax.h.
4967
4968 2014-08-07 Gary Benson <gbenson@redhat.com>
4969
4970 * common/common-defs.h: Include libiberty.h.
4971 * defs.h: Do not include libiberty.h.
4972 * common/queue.h: Likewise.
4973 * cp-name-parser.y: Likewise.
4974 * mi/mi-cmd-catch.c: Likewise.
4975 * python/python.c: Likewise.
4976
4977 2014-08-07 Gary Benson <gbenson@redhat.com>
4978
4979 * common/common-defs.h: Include ansidecl.h.
4980 * defs.h: Do not include ansidecl.h.
4981 * common/buffer.h: Likewise.
4982 * common/common-utils.h: Likewise.
4983
4984 2014-08-07 Gary Benson <gbenson@redhat.com>
4985
4986 * common/common-defs.h: Include stddef.h.
4987 * defs.h: Do not include stddef.h.
4988 * common/common-utils.h: Likewise.
4989 * amd64fbsd-nat.c: Likewise.
4990 * bcache.c: Likewise.
4991 * charset.c: Likewise.
4992 * common/buffer.h: Likewise.
4993 * common/vec.h: Likewise.
4994 * i386bsd-nat.c: Likewise.
4995 * nat/linux-btrace.h: Likewise.
4996 * ppcfbsd-nat.c: Likewise.
4997 * ppcnbsd-tdep.h: Likewise.
4998 * ppcobsd-nat.c: Likewise.
4999 * ppcobsd-tdep.h: Likewise.
5000 * python/py-gdb-readline.c: Likewise.
5001
5002 2014-08-07 Gary Benson <gbenson@redhat.com>
5003
5004 * common/common-defs.h: Include stdarg.h.
5005 * defs.h: Do not include stdarg.h.
5006 * ada-lang.c: Likewise.
5007 * common/common-utils.h: Likewise.
5008 * guile/scm-string.c: Likewise.
5009 * guile/scm-utils.c: Likewise.
5010 * m32c-tdep.c: Likewise.
5011
5012 2014-08-07 Gary Benson <gbenson@redhat.com>
5013
5014 * common/common-defs.h: Include stdlib.h.
5015 * defs.h: Do not include stdlib.h.
5016 * addrmap.c: Likewise.
5017 * bcache.c: Likewise.
5018 * common/buffer.c: Likewise.
5019 * common/common-utils.c: Likewise.
5020 * cp-name-parser.y: Likewise.
5021 * go32-nat.c: Likewise.
5022 * mn10300-linux-tdep.c: Likewise.
5023 * nat/linux-osdata.c: Likewise.
5024 * tui/tui.c: Likewise.
5025 * windows-nat.c: Likewise.
5026
5027 2014-08-07 Gary Benson <gbenson@redhat.com>
5028
5029 * common/common-defs.h: Include stdio.h.
5030 * defs.h: Do not include stdio.h.
5031 * ada-lang.c: Likewise.
5032 * common/buffer.c: Likewise.
5033 * common/common-utils.c: Likewise.
5034 * cp-name-parser.y: Likewise.
5035 * gnu-nat.c: Likewise.
5036 * go32-nat.c: Likewise.
5037 * i386gnu-nat.c: Likewise.
5038 * proc-api.c: Likewise.
5039 * proc-events.c: Likewise.
5040 * proc-flags.c: Likewise.
5041 * proc-why.c: Likewise.
5042 * python/python-internal.h: Likewise.
5043 * target-memory.c: Likewise.
5044 * tui/tui-io.c: Likewise.
5045 * tui/tui.c: Likewise.
5046
5047 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5048
5049 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5050 (scan_dyntag_auxv): Same.
5051
5052 2014-08-06 Yao Qi <yao@codesourcery.com>
5053
5054 * amd64-linux-nat.c: Remove duplicated include
5055 "x86-linux-nat.h".
5056 * i386-linux-nat.c: Likewise.
5057
5058 2014-08-06 Yao Qi <yao@codesourcery.com>
5059
5060 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5061 operand" with "Special opcode" in comments.
5062
5063 2014-08-05 Gary Benson <gbenson@redhat.com>
5064
5065 * interps.c (initialize_interps): Remove prototype.
5066 (interpreter_initialized): Remove static global.
5067 (interp_add): Do not call initialize_interps.
5068 (initialize_interps): Remove function.
5069
5070 2014-08-05 Gary Benson <gbenson@redhat.com>
5071
5072 * utils.c (vwarning): Remove spurious va_end.
5073
5074 2014-08-05 Alan Modra <amodra@gmail.com>
5075
5076 * charset.c (convert_between_encodings): Cast result of obstack_base.
5077 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5078 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5079 (read_unwind_info): Use size_t for some locals.
5080 * jit.c (finalize_symtab): Likewise.
5081 * utils.c (hashtab_obstack_allocate): Likewise.
5082 * symmisc.c (print_objfile_statistics): Update format strings.
5083
5084 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5085
5086 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5087 (Changes in GDB 7.8): ... here.
5088
5089 2014-08-04 Tom Tromey <tromey@redhat.com>
5090
5091 * target.c (set_targetdebug): New function.
5092 (initialize_targets): Pass set_targetdebug when creating "set
5093 debug target".
5094
5095 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5096
5097 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5098 if detecting a variable-sized field that is not the last field.
5099 Fix struct type length computation.
5100
5101 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5102
5103 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5104 Add debug trace.
5105
5106 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5107
5108 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5109 Remove "+ 8" offset in computation of CHAIN_VMA.
5110
5111 2014-07-31 Doug Evans <dje@google.com>
5112
5113 * inflow.c (child_terminal_inferior): Add comment.
5114 (child_terminal_ours_for_output): Add comment.
5115 (child_terminal_ours): Add comment.
5116 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5117 (linux_nat_terminal_ours): Add comment.
5118
5119 2014-07-31 Gary Benson <gbenson@redhat.com>
5120
5121 * common/btrace-common.h: Do not include defs.h or server.h.
5122 * nat/mips-linux-watch.h: Likewise.
5123 * gdb-dlfcn.h: Do not include defs.h.
5124 * tracefile.h: Likewise.
5125
5126 2014-07-30 Roland McGrath <mcgrathr@google.com>
5127
5128 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5129
5130 2014-07-30 Tom Tromey <tromey@redhat.com>
5131
5132 * bsd-kvm.c (bsd_kvm_open): Constify.
5133 * corelow.c (core_open): Constify.
5134 * ctf.c (ctf_open): Constify.
5135 * dbug-rom.c (dbug_open): Constify.
5136 * exec.c (exec_open): Constify.
5137 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5138 * microblaze-rom.c (picobug_open): Constify.
5139 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5140 Constify.
5141 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5142 * record-btrace.c (record_btrace_open): Constify.
5143 * record-full.c (record_full_core_open_1, record_full_open_1)
5144 (record_full_open): Constify.
5145 * remote-m32r-sdi.c (m32r_open): Constify.
5146 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5147 (rockhopper_open, lsi_open): Constify.
5148 * remote-sim.c (gdbsim_open): Constify.
5149 * remote.c (remote_open, extended_remote_open, remote_open_1):
5150 Constify.
5151 * target.h (struct target_ops) <to_open>: Make "arg" const.
5152 * tracefile-tfile.c (tfile_open): Constify.
5153
5154 2014-07-30 Tom Tromey <tromey@redhat.com>
5155
5156 * breakpoint.c (map_breakpoint_numbers): Update.
5157 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5158 (get_number_const): New function.
5159 (get_number): Rewrite using get_number_const.
5160 (init_number_or_range): Make "string" const.
5161 (number_is_in_list): Make "list" const.
5162 * cli/cli-utils.h (get_number_const): Declare.
5163 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5164 (init_number_or_range, number_is_in_list): Update.
5165 * printcmd.c (map_display_numbers): Update.
5166 * value.c (value_from_history_ref): Constify.
5167 * value.h (value_from_history_ref): Update.
5168
5169 2014-07-30 Tom Tromey <tromey@redhat.com>
5170
5171 * corefile.c (hook_type, call_extra_exec_file_hooks)
5172 (specify_exec_file_hook): Constify.
5173 * exec.c (exec_file_attach): Make "filename" const.
5174 * gdbcore.h (deprecated_exec_file_display_hook)
5175 (specify_exec_file_hook, exec_file_attach): Constify.
5176 * main.c (captured_main): Use catch_command_errors_const.
5177
5178 2014-07-30 Tom Tromey <tromey@redhat.com>
5179
5180 * target.c (open_target): New function.
5181 (add_target_with_completer, add_deprecated_target_alias): Use
5182 set_cmd_sfunc, set_cmd_context.
5183 (debug_to_open): Remove.
5184 (setup_target_debug): Update.
5185
5186 2014-07-30 Yao Qi <yao@codesourcery.com>
5187
5188 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5189 comments.
5190 * parse.c (exp_iterate): Update comments.
5191
5192 2014-07-30 Gary Benson <gbenson@redhat.com>
5193
5194 * common/common-defs.h: New file.
5195 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5196 * defs.h: Include common-defs.h.
5197 Do not include config.h or build-gnulib/config.h.
5198
5199 2014-07-30 Gary Benson <gbenson@redhat.com>
5200
5201 * common/common-utils.h: Do not include config.h.
5202 * nat/linux-btrace.h: Likewise.
5203
5204 2014-07-30 Gary Benson <gbenson@redhat.com>
5205
5206 * btrace.c: Include defs.h.
5207 * common/ptid.c: Include defs.h or server.h as appropriate.
5208 * nat/mips-linux-watch.c: Likewise.
5209
5210 2014-07-29 Tom Tromey <tromey@redhat.com>
5211
5212 * target.c (target_is_pushed): Simplify.
5213
5214 2014-07-29 Joel Brobecker <brobecker@adacore.com>
5215
5216 GDB 7.8 released.
5217
5218 2014-07-29 Yao Qi <yao@codesourcery.com>
5219
5220 PR gdb/17206
5221 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5222
5223 2014-07-28 Doug Evans <xdje42@gmail.com>
5224
5225 PR guile/17203
5226 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5227 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5228 parameters.
5229
5230 2014-07-28 Will Newton <will.newton@linaro.org>
5231
5232 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5233 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5234 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5235 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5236 (THUMB2_EABI_SYSCALL): Likewise.
5237 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5238 struct tramp_frame.
5239 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5240 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5241
5242 2014-07-27 Doug Evans <xdje42@gmail.com>
5243
5244 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5245
5246 2014-07-27 Doug Evans <xdje42@gmail.com>
5247
5248 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5249
5250 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5251 Doug Evans <xdje42@gmail.com>
5252
5253 PR guile/17146
5254 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5255 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5256 * configure.ac: Try to use guild to compile an scm file, if it fails
5257 then disable guile support.
5258 * configure: Regenerate.
5259 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5260 GUILE_FILE_LIST.
5261 (GUILE_COMPILED_FILES): New variable.
5262 (GUILE_FILES) Update.
5263 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5264 (stamp-guile): Compile scm files.
5265 * guile/guile.c (boot_guile_support): New function.
5266 (standard_throw_args_p): New function.
5267 (print_standard_throw_error, print_throw_error): New functions.
5268 (handle_boot_error): New function.
5269 (initialize_scheme_side): Rewrite to call boot_guile_support.
5270 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5271 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5272
5273 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5274 Doug Evans <xdje42@gmail.com>
5275
5276 PR guile/17146
5277 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5278 * guile/lib/gdb/support.scm: New file.
5279 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5280 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5281 All uses updated.
5282 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5283 All uses updated.
5284 (%assert-type): Ditto, and renamed to assert-type.
5285 (%exception-print-style): Delete.
5286
5287 2014-07-26 Doug Evans <xdje42@gmail.com>
5288
5289 PR build/17105
5290 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5291 * configure: Regenerate.
5292 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5293 PYTHON_FILES.
5294 (PYTHON_FILES): New variable.
5295 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5296 (GUILE_FILES): New variable.
5297 (stamp-python, install-python, uninstall-python): Handle empty
5298 file list.
5299 (stamp-guile, install-guile, uninstall-guile): Ditto.
5300
5301 2014-07-26 Doug Evans <xdje42@gmail.com>
5302
5303 PR guile/17177
5304 * guile/lib/gdb.scm (pretty-printers): Export.
5305 (set-pretty-printers!): Export.
5306 * guile/lib/gdb/printing.scm (gdb module): Update.
5307 (prepend-pretty-printer!, append-pretty-printer!): Update.
5308 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5309 (pretty_printer_list_var): Delete.
5310 (pretty_printer_list): New static global.
5311 (gdbscm_pretty_printers): New function.
5312 (gdbscm_set_pretty_printers_x): New function.
5313 (ppscm_find_pretty_printer_from_gdb): Update.
5314 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5315 (gdbscm_initialize_pretty_printers): Update.
5316
5317 2014-07-26 Doug Evans <xdje42@gmail.com>
5318
5319 PR 17185
5320 * configure.ac: Add check for header gc/gc.h.
5321 Add check for function setenv.
5322 * configure: Regenerate.
5323 * config.in: Regenerate.
5324 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5325
5326 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5327
5328 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5329 variation in gdbarch matching.
5330
5331 2014-07-25 Tom Tromey <tromey@redhat.com>
5332
5333 * exec.c (using_exec_ops): Remove.
5334 (exec_close_1): Update. Remove extraneous block, reindent.
5335 (add_target_sections): Use target_is_pushed.
5336
5337 2014-07-25 Pedro Alves <palves@redhat.com>
5338
5339 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5340 * monitor.c (monitor_create_inferior): Likewise.
5341 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5342 * remote-sim.c (gdbsim_create_inferior): Likewise.
5343 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5344 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5345 * windows-nat.c (do_initial_windows_stuff): Likewise.
5346
5347 2014-07-25 Pedro Alves <palves@redhat.com>
5348
5349 * NEWS: Mention signal passing and "signal" command changes.
5350 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5351 comment.
5352 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5353 call.
5354 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5355 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5356 (jump_command): Adjust clear_proceed_status call.
5357 (signal_command): Warn if other thread that are resumed have
5358 signals that will be delivered. Adjust clear_proceed_status call.
5359 (until_next_command, finish_command)
5360 (proceed_after_attach_callback, attach_command_post_wait)
5361 (attach_command): Adjust clear_proceed_status call.
5362 * infrun.c (proceed_after_vfork_done): Likewise.
5363 (proceed_after_attach_callback): Adjust comment.
5364 (clear_proceed_status_thread): Clear stop_signal if not in pass
5365 state.
5366 (clear_proceed_status_callback): Delete.
5367 (clear_proceed_status): New 'step' parameter. Only clear the
5368 proceed status of threads the command being prepared is about to
5369 resume.
5370 (proceed): If passed in an explicit signal, override stop_signal
5371 with it. Don't pass the last stop signal to the thread we're
5372 resuming.
5373 (init_wait_for_inferior): Adjust clear_proceed_status call.
5374 (switch_back_to_stepped_thread): Clear the signal if it should not
5375 be passed.
5376 * infrun.h (clear_proceed_status): New 'step' parameter.
5377 (user_visible_resume_ptid): Add comment.
5378 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5379 signal is in pass state.
5380 * remote.c (append_pending_thread_resumptions): Likewise.
5381 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5382
5383 2014-07-25 Tom Tromey <tromey@redhat.com>
5384
5385 * target.h (target_stopped_data_address)
5386 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5387 parentheses.
5388
5389 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5390
5391 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5392 comments.
5393 (avr_pointer_to_address): Likewise.
5394
5395 2014-07-24 Tom Tromey <tromey@redhat.com>
5396
5397 * monitor.c (compile_pattern): Update.
5398 * target.h (struct target_ops) <to_shortname, to_longname,
5399 to_doc>: Now const.
5400
5401 2014-07-24 Tom Tromey <tromey@redhat.com>
5402
5403 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5404 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5405 (add_info_alias, add_com): Make "doc" const.
5406 (print_doc_line): Make "str" const.
5407 (delete_cmd): Update.
5408 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5409 (print_doc_line): Update.
5410 * cli/cli-script.c (document_command): Update.
5411 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5412 (add_com, add_info, add_info_alias): Update.
5413 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5414 * python/py-cmd.c (cmdpy_destroyer): Update.
5415
5416 2014-07-24 Tom Tromey <tromey@redhat.com>
5417
5418 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5419 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5420 (help_cmd_list): Constify.
5421 (lookup_cmd): Update.
5422 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5423 const.
5424 (help_cmd_list, apropos_cmd): Update.
5425 * cli/cli-script.c (show_user): Update.
5426 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5427 * cli/cli-setshow.h (cmd_show_list): Update.
5428 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5429 (cmd_show_list): Update.
5430 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5431 * python/py-cmd.c (cmdpy_destroyer): Update.
5432
5433 2014-07-24 Tom Tromey <tromey@redhat.com>
5434
5435 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5436 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5437 const.
5438 * command.h (deprecate_cmd): Update.
5439 * maint.c (maintenance_do_deprecate): Add casts.
5440
5441 2014-07-24 Tom Tromey <tromey@redhat.com>
5442
5443 * cli/cli-decode.c (help_cmd): Make parameter "const".
5444 * cli/cli-decode.h (help_cmd): Update.
5445
5446 2014-07-24 Tom Tromey <tromey@redhat.com>
5447
5448 * stack.c (up_silently_base, down_silently_base): Make argument
5449 const.
5450
5451 2014-07-24 Tom Tromey <tromey@redhat.com>
5452
5453 * solib.c (solib_add): Make "pattern" const.
5454 * solib.h (solib_add): Update.
5455
5456 2014-07-24 Tom Tromey <tromey@redhat.com>
5457
5458 * remote.c (remote_serial_open, print_packet, putpkt)
5459 (putpkt_binary): Constify.
5460 * remote.h (putpkt): Update.
5461
5462 2014-07-24 Tom Tromey <tromey@redhat.com>
5463
5464 * monitor.c (monitor_open): Make "args" const.
5465 * monitor.h (monitor_open): Update.
5466
5467 2014-07-24 Tom Tromey <tromey@redhat.com>
5468
5469 * maint.c (match_bfd_flags): Make "string" const.
5470 (print_bfd_section_info): Remove casts.
5471 (print_objfile_section_info): Make "string" const.
5472
5473 2014-07-24 Tom Tromey <tromey@redhat.com>
5474
5475 * inf-child.c (inf_child_open_target): Make "arg" const.
5476 * inf-child.h (inf_child_open_target): Update.
5477
5478 2014-07-24 Tom Tromey <tromey@redhat.com>
5479
5480 * environ.c (unset_in_environ): Make "var" const.
5481 * environ.h (unset_in_environ): Update.
5482
5483 2014-07-24 Tom Tromey <tromey@redhat.com>
5484
5485 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5486 Make "cmd" const.
5487 (scan_filename_with_cleanup): Likewise.
5488 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5489 Make arguments const.
5490 (restore_command): Update.
5491
5492 2014-07-24 Pedro Alves <palves@redhat.com>
5493
5494 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5495
5496 2014-07-24 Tom Tromey <tromey@redhat.com>
5497 Gary Benson <gbenson@redhat.com>
5498
5499 * nat/linux-ptrace.c (additional_flags): New global.
5500 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5501 additional_flags; don't check GDBSERVER.
5502 (linux_ptrace_set_additional_flags): New function.
5503 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5504 Declare.
5505 * linux-nat.c (_initialize_linux_nat): Call
5506 linux_ptrace_set_additional_flags.
5507
5508 2014-07-24 Tom Tromey <tromey@redhat.com>
5509
5510 * make-target-delegates (munge_type, write_debugmethod): New
5511 functions.
5512 (debug_names): New global.
5513 ($TARGET_DEBUG_PRINTER): New global.
5514 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5515 name.
5516 Write debug methods. Generate init_debug_target.
5517 * target-debug.h: New file.
5518 * target-delegates.c: Rebuild.
5519 * target.c: Include target-debug.h.
5520 (debug_target): Hoist definition.
5521 (target_kill, target_get_section_table, target_memory_map)
5522 (target_flash_erase, target_flash_done, target_detach)
5523 (target_disconnect, target_wait, target_resume)
5524 (target_pass_signals, target_program_signals, target_follow_fork)
5525 (target_mourn_inferior, target_search_memory)
5526 (target_thread_address_space, target_close)
5527 (target_find_new_threads, target_core_of_thread)
5528 (target_verify_memory, target_insert_mask_watchpoint)
5529 (target_remove_mask_watchpoint): Remove targetdebug code.
5530 (debug_to_post_attach, debug_to_prepare_to_store)
5531 (debug_to_files_info, debug_to_insert_breakpoint)
5532 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5533 (debug_to_region_ok_for_hw_watchpoint)
5534 (debug_to_can_accel_watchpoint_condition)
5535 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5536 (debug_to_watchpoint_addr_within_range)
5537 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5538 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5539 (debug_to_terminal_init, debug_to_terminal_inferior)
5540 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5541 (debug_to_terminal_save_ours, debug_to_terminal_info)
5542 (debug_to_load, debug_to_post_startup_inferior)
5543 (debug_to_insert_fork_catchpoint)
5544 (debug_to_remove_fork_catchpoint)
5545 (debug_to_insert_vfork_catchpoint)
5546 (debug_to_remove_vfork_catchpoint)
5547 (debug_to_insert_exec_catchpoint)
5548 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5549 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5550 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5551 (setup_target_debug): Call init_debug_target.
5552 * target.h (TARGET_DEBUG_PRINTER): New macro.
5553 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5554 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5555
5556 2014-07-24 Gary Benson <gbenson@redhat.com>
5557
5558 * exceptions.h (throw_vfatal): Renamed to...
5559 (throw_vquit): New declaration.
5560 (throw_quit): Likewise.
5561 * exceptions.c (throw_vfatal): Renamed to...
5562 (throw_vquit): New function.
5563 (throw_quit): Likewise.
5564 (throw_error): Call throw_verror rather than throw_it.
5565 * utils.h (vfatal): Removed.
5566 (fatal): Likewise.
5567 * utils.c (vfatal): Removed.
5568 (fatal): Likewise.
5569 (internal_verror): Replaced call to fatal with call to throw_quit.
5570 (quit): Replaced calls to fatal with calls to throw_quit.
5571
5572 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5573
5574 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5575 target_read_code.
5576
5577 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5578
5579 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5580 less than zero in conditional expression.
5581
5582 2014-07-23 Tom Tromey <tromey@redhat.com>
5583
5584 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5585 ($INTRO_PART): Don't match whitespace.
5586 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5587 argument matching.
5588 ($METHOD): Add $METHOD_TRAILER.
5589 (trim): Rewrite.
5590 (scan_target_h): New sub.
5591 Change main loop not to collect state.
5592 * target-delegates.c: Rebuild.
5593
5594 2014-07-23 Gary Benson <gbenson@redhat.com>
5595
5596 * cp-support.c (gdb_demangle): Fix build on systems without
5597 sigaltstack.
5598
5599 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5600
5601 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5602 for reference entry value target data value.
5603
5604 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5605
5606 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5607 value_available_contents_eq.
5608
5609 2014-07-22 Pedro Alves <palves@redhat.com>
5610
5611 * value.c (allocate_optimized_out_value): Don't mark value as
5612 non-lazy.
5613
5614 2014-07-22 Jiong Wang <jiong.wang@arm.com>
5615
5616 * MAINTAINERS (Write After Approval): Update my email address.
5617
5618 2014-07-20 Doug Evans <dje@google.com>
5619
5620 PR server/17147
5621 * remote.c (putpkt_binary): Add text to error message.
5622
5623 2014-07-20 Yao Qi <yao@codesourcery.com>
5624
5625 * eval.c: Remove "Chill" from comments.
5626 * gdbtypes.h: Likewise.
5627 * symtab.h: Likewise.
5628
5629 2014-07-20 Yao Qi <yao@codesourcery.com>
5630
5631 * std-operator.def: Update comments to TERNOP_SLICE.
5632
5633 2014-07-20 Yao Qi <yao@codesourcery.com>
5634
5635 * std-operator.def: Remove BINOP_RANGE.
5636 * breakpoint.c (watchpoint_exp_is_const): Update.
5637 * expprint.c (dump_subexp_body_standard): Likewise.
5638 * eval.c (init_array_element): Remove dead code.
5639 (evaluate_subexp_standard): Likewise.
5640
5641 2014-07-20 Yao Qi <yao@codesourcery.com>
5642
5643 * std-operator.def: Remove BINOP_IN.
5644 * breakpoint.c (watchpoint_exp_is_const): Update.
5645 * eval.c (evaluate_subexp_standard): Likewise.
5646 * expprint.c (dump_subexp_body_standard): Likewise.
5647
5648 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5649
5650 * microblaze-tdep.c (microblaze_register_names): Add
5651 the rshr and rslr register names.
5652 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5653 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5654 Use of tdesc_numbered_register. Use of
5655 microblaze_register_g_packet_guesses. Use of
5656 tdesc_use_registers. Use of set_gdbarch_register_type.
5657 (microblaze_register_g_packet_guesses): New.
5658 * microblaze-tdep.h (microblaze_reg_num): Add
5659 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5660 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5661 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5662 * features/microblaze-core.xml: New file.
5663 * features/microblaze-stack-protect.xml: New file.
5664 * features/microblaze-with-stack-protect.c: New file.
5665 * features/microblaze-with-stack-protect.xml: New file.
5666 * features/microblaze.xml: New file.
5667 * features/microblaze.c: New file.
5668 * features/Makefile (microblaze-with-stack-protect): Add
5669 microblaze-with-stack-protect microblaze and microblaze-expedite.
5670 * regformats/microblaze-with-stack-protect.dat: New file.
5671 * regformats/microblaze.dat: New file.
5672 * doc/gdb.texinfo (MicroBlaze Features): Added.
5673
5674 2014-07-18 Tom Tromey <tromey@redhat.com>
5675
5676 * exec.c (exec_ops): Now static.
5677 * exec.h (exec_ops): Don't declare.
5678
5679 2014-07-18 Tom Tromey <tromey@redhat.com>
5680
5681 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5682 to find_target_beneath.
5683 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5684 find_target_beneath.
5685 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5686
5687 2014-07-18 Tom Tromey <tromey@redhat.com>
5688
5689 PR gdb/17130:
5690 * utils.c (quit): Use target_supports_terminal_ours.
5691 * target.h (target_supports_terminal_ours): Declare.
5692 * target.c (target_supports_delete_record): Don't check
5693 to_delete_record against NULL.
5694 (target_supports_terminal_ours): New function.
5695
5696 2014-07-18 Tom Tromey <tromey@redhat.com>
5697
5698 PR gdb/17130:
5699 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5700 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5701 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5702 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5703 * windows-nat.c (windows_xfer_partial): Always delegate.
5704 * record-btrace.c (record_btrace_xfer_partial): Simplify
5705 delegation.
5706 (record_btrace_fetch_registers, record_btrace_store_registers)
5707 (record_btrace_prepare_to_store, record_btrace_resume)
5708 (record_btrace_wait, record_btrace_find_new_threads)
5709 (record_btrace_thread_alive): Likewise.
5710 * procfs.c (procfs_xfer_partial): Always delegate.
5711 * corelow.c (core_xfer_partial): Always delegate.
5712 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5713
5714 2014-07-18 Tom Tromey <tromey@redhat.com>
5715
5716 * exec.c (exec_make_note_section): Move earlier.
5717
5718 2014-07-17 Doug Evans <dje@google.com>
5719
5720 PR gdb/17170
5721 * maint.c (count_symtabs_and_blocks): Handle NULL
5722 current_program_space.
5723 (report_command_stats): Check global enabled flag in addition to
5724 recorded enabled flag.
5725 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5726
5727 2014-07-16 Pedro Alves <palves@redhat.com>
5728
5729 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5730
5731 2014-07-16 Tom Tromey <tromey@redhat.com>
5732
5733 * target.h (struct target_ops) <to_delete_record>: Reformat
5734 comment.
5735
5736 2014-07-16 Tom Tromey <tromey@redhat.com>
5737
5738 * target-delegates.c: Rebuild.
5739
5740 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5741
5742 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5743 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5744 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5745 (avr_pointer_to_address): Likewise.
5746 (avr_address_class_type_flags): New function.
5747 (avr_address_class_type_flags_to_name): Likewise.
5748 (avr_address_class_name_to_type_flags): Likewise.
5749 (avr_gdbarch_init): Set address_class_type_flags,
5750 address_class_type_flags_to_name and
5751 address_class_name_to_type_flags.
5752
5753 2014-07-15 Pedro Alves <palves@redhat.com>
5754
5755 * linux-nat.c (kill_callback): Save errno and work with saved
5756 copy.
5757
5758 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5759
5760 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5761
5762 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5763
5764 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5765 breakpoint support correctly.
5766
5767 2014-07-14 Pedro Alves <palves@redhat.com>
5768
5769 * utils.c (prompt_for_continue): Call target_terminal_ours.
5770
5771 2014-07-14 Pedro Alves <palves@redhat.com>
5772
5773 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5774 catch_errors. Don't re-enable stdin or notify observers where,
5775 and rethrow error.
5776 (fetch_inferior_event_wrapper): Delete.
5777
5778 2014-07-14 Pedro Alves <palves@redhat.com>
5779
5780 PR gdb/17072
5781 * top.c: Include "inf-loop.h".
5782 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5783 field.
5784 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5785 was async before.
5786 (gdb_readline_wrapper): Store whether the target is async, and
5787 make it sync.
5788
5789 2014-07-14 Pedro Alves <palves@redhat.com>
5790
5791 PR gdb/17072
5792 * top.c (gdb_readline_wrapper_line): Tweak comment.
5793 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5794 the input handler callback.
5795
5796 2014-07-14 Pedro Alves <palves@redhat.com>
5797
5798 PR gdb/17072
5799 * main.c: Include event-top.h.
5800 (handle_command_errors): New function.
5801 (catch_command_errors, catch_command_errors_const): Use it.
5802
5803 2014-07-14 Pedro Alves <palves@redhat.com>
5804
5805 * exceptions.c (catch_command_errors, catch_command_errors_const):
5806 Moved to main.c.
5807 * exceptions.h (catch_command_errors_ftype)
5808 (catch_command_errors_const_ftype): Moved to main.c.
5809 (catch_command_errors, catch_command_errors_const): Delete
5810 declarations.
5811 * main.c (catch_command_errors_ftype)
5812 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5813 (catch_command_errors, catch_command_errors_const)): Moved here
5814 from exceptions.c and make static.
5815
5816 2014-07-14 Pedro Alves <palves@redhat.com>
5817
5818 * exceptions.c (print_any_exception): Delete.
5819 (catch_exceptions_with_msg): Use exception_print instead of
5820 print_any_exception.
5821 (catch_errors): Use exception_fprintf instead of
5822 print_any_exception.
5823 (catch_command_errors, catch_command_errors_const): Use
5824 exception_print instead of print_any_exception.
5825
5826 2014-07-14 Pedro Alves <palves@redhat.com>
5827
5828 * infcall.c (run_inferior_call): Set 'sync_execution' while
5829 running the inferior call.
5830
5831 2014-07-14 Pedro Alves <palves@redhat.com>
5832
5833 * value.c (value_contents_equal): Delete function.
5834 * value.h (value_contents_equal): Delete declaration.
5835
5836 2014-07-14 Tom Tromey <tromey@redhat.com>
5837
5838 PR exp/17106:
5839 * gdbtypes.c (is_dynamic_type_internal): New function, from
5840 is_dynamic_type.
5841 (is_dynamic_type): Rewrite.
5842 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5843 (resolve_dynamic_struct): Likewise.
5844 (resolve_dynamic_type_internal): New function, from
5845 resolve_dynamic_type.
5846 (resolve_dynamic_type): Rewrite.
5847
5848 2014-07-14 Tom Tromey <tromey@redhat.com>
5849
5850 * target.c (target_require_runnable): Also check record_stratum.
5851 Update comment.
5852
5853 2014-07-11 Yao Qi <yao@codesourcery.com>
5854
5855 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5856 thumb_instruction_restores_sp return true.
5857
5858 2014-07-11 Yao Qi <yao@codesourcery.com>
5859
5860 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5861 (thumb_in_function_epilogue_p): Call
5862 thumb_instruction_restores_sp.
5863
5864 2014-07-11 Yao Qi <yao@codesourcery.com>
5865
5866 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5867 'add sp, #imm'.
5868 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5869
5870 2014-07-11 Gary Benson <gbenson@redhat.com>
5871
5872 * amd64-linux-nat.c (gdbcore.h): Remove include.
5873 (regset.h): Likewise.
5874 (nat/linux-btrace.h): Likewise.
5875 (btrace.h): Likewise.
5876 (gdb_assert.h): Likewise.
5877 (string.h): Likewise.
5878 (sys/uio.h): Likewise.
5879 (sys/debugreg.h): Likewise.
5880 (sys/syscall.h): Likewise.
5881 (sys/procfs.h): Likewise.
5882 (sys/user.h): Likewise.
5883 (asm/ptrace.h): Likewise.
5884 (i386-nat.h): Likewise.
5885 * i386-linux-nat.c (i386-nat.h): Likewise.
5886 (regset.h): Likewise.
5887 (target.h): Likewise.
5888 (linux-nat.h): Likewise.
5889 (nat/linux-btrace.h): Likewise.
5890 (btrace.h): Likewise.
5891 (gdb_assert.h): Likewise.
5892 (string.h): Likewise.
5893 (sys/uio.h): Likewise.
5894 (sys/user.h): Likewise.
5895 (sys/procfs.h): Likewise.
5896 (sys/reg.h): Likewise.
5897 (sys/debugreg.h): Likewise.
5898 (ORIG_EAX): Remove definition.
5899
5900 2014-07-11 Gary Benson <gbenson@redhat.com>
5901
5902 * i386-linux-nat.h: New file.
5903 * x86-linux-nat.h: Likewise.
5904 * x86-linux-nat.c: Likewise.
5905 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5906 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5907 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5908 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5909 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5910 (PTRACE_SETREGSET): Likewise.
5911 (arch_lwp_info): Now in x86-linux-nat.c.
5912 (have_ptrace_getregset): Now in x86-linux-nat.h.
5913 (x86_linux_dr_get): Now in x86-linux-nat.c.
5914 (x86_linux_dr_set): Likewise.
5915 (x86_linux_dr_get_addr): Likewise.
5916 (x86_linux_dr_get_control): Likewise.
5917 (x86_linux_dr_get_status): Likewise.
5918 (update_debug_registers_callback): Likewise.
5919 (x86_linux_dr_set_control): Likewise.
5920 (x86_linux_dr_set_addr): Likewise.
5921 (x86_linux_prepare_to_resume): Likewise.
5922 (x86_linux_new_thread): Likewise.
5923 (x86_linux_new_fork): Likewise.
5924 (x86_linux_get_thread_area): Likewise.
5925 (super_post_startup_inferior): Likewise.
5926 (x86_linux_child_post_startup_inferior): Likewise.
5927 (AMD64_LINUX_USER64_CS): Likewise.
5928 (AMD64_LINUX_X32_DS): Likewise.
5929 (x86_linux_read_description): Likewise.
5930 (x86_linux_enable_btrace): Likewise.
5931 (x86_linux_disable_btrace): Likewise.
5932 (x86_linux_teardown_btrace): Likewise.
5933 (x86_linux_read_btrace): Likewise.
5934 (x86_linux_create_target): Likewise.
5935 (x86_linux_add_target): Likewise.
5936 * i386-linux-nat.c (x86-linux-nat.h): New include.
5937 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5938 (PTRACE_SETREGSET): Likewise.
5939 (arch_lwp_info): Now in x86-linux-nat.c.
5940 (have_ptrace_getregset): Now in x86-linux-nat.h.
5941 (x86_linux_dr_get): Now in x86-linux-nat.c.
5942 (x86_linux_dr_set): Likewise.
5943 (x86_linux_dr_get_addr): Likewise.
5944 (x86_linux_dr_get_control): Likewise.
5945 (x86_linux_dr_get_status): Likewise.
5946 (update_debug_registers_callback): Likewise.
5947 (x86_linux_dr_set_control): Likewise.
5948 (x86_linux_dr_set_addr): Likewise.
5949 (x86_linux_prepare_to_resume): Likewise.
5950 (x86_linux_new_thread): Likewise.
5951 (x86_linux_new_fork): Likewise.
5952 (x86_linux_get_thread_area): Likewise.
5953 (super_post_startup_inferior): Likewise.
5954 (x86_linux_child_post_startup_inferior): Likewise.
5955 (AMD64_LINUX_USER64_CS): Likewise.
5956 (AMD64_LINUX_X32_DS): Likewise.
5957 (x86_linux_read_description): Likewise.
5958 (x86_linux_enable_btrace): Likewise.
5959 (x86_linux_disable_btrace): Likewise.
5960 (x86_linux_teardown_btrace): Likewise.
5961 (x86_linux_read_btrace): Likewise.
5962 (x86_linux_create_target): Likewise.
5963 (x86_linux_add_target): Likewise.
5964
5965 2014-07-11 Gary Benson <gbenson@redhat.com>
5966
5967 * amd64-linux-nat.c: Comment and whitespace changes.
5968 * i386-linux-nat.c: Comment and whitespace changes.
5969
5970 2014-07-11 Gary Benson <gbenson@redhat.com>
5971
5972 * amd64-linux-nat.c (x86_linux_create_target): New function.
5973 (x86_linux_add_target): Likewise.
5974 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5975 * i386-linux-nat.c (x86_linux_create_target): New function.
5976 (x86_linux_add_target): Likewise.
5977 (_initialize_i386_linux_nat): Delegate to the above new functions.
5978
5979 2014-07-11 Gary Benson <gbenson@redhat.com>
5980
5981 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5982 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5983 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5984 (ps_get_thread_area): Delegate to the above.
5985
5986 2014-07-11 Gary Benson <gbenson@redhat.com>
5987
5988 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5989 x86_linux_read_description. All uses updated. amd64-specific
5990 code conditionalized. Conditionalized i386-specific code added.
5991 Redundant cast removed.
5992 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5993 x86_linux_read_description. All uses updated. i386-specific
5994 code conditionalized. Conditionalized amd64-specific code added.
5995 One sizeof replaced with the actual type it is describing.
5996
5997 2014-07-11 Gary Benson <gbenson@redhat.com>
5998
5999 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
6000 x86_linux_dr_get. All uses updated.
6001 (amd64_linux_dr_set): Renamed to
6002 x86_linux_dr_set. All uses updated.
6003 (amd64_linux_dr_get_addr): Renamed to
6004 x86_linux_dr_get_addr. All uses updated.
6005 (amd64_linux_dr_get_control): Renamed to
6006 x86_linux_dr_get_control. All uses updated.
6007 (amd64_linux_dr_get_status): Renamed to
6008 x86_linux_dr_get_status. All uses updated.
6009 (amd64_linux_dr_set_control): Renamed to
6010 x86_linux_dr_set_control. All uses updated.
6011 (amd64_linux_dr_set_addr): Renamed to
6012 x86_linux_dr_set_addr. All uses updated.
6013 (amd64_linux_prepare_to_resume): Renamed to
6014 x86_linux_prepare_to_resume. All uses updated.
6015 (amd64_linux_new_thread): Renamed to
6016 x86_linux_new_thread. All uses updated.
6017 (amd64_linux_new_fork): Renamed to
6018 x86_linux_new_fork. All uses updated.
6019 (amd64_linux_child_post_startup_inferior): Renamed to
6020 x86_linux_child_post_startup_inferior. All uses updated.
6021 (amd64_linux_enable_btrace): Renamed to
6022 x86_linux_enable_btrace. All uses updated.
6023 (amd64_linux_disable_btrace): Renamed to
6024 x86_linux_disable_btrace. All uses updated.
6025 (amd64_linux_teardown_btrace): Renamed to
6026 x86_linux_teardown_btrace. All uses updated.
6027 (amd64_linux_read_btrace): Renamed to
6028 x86_linux_read_btrace. All uses updated.
6029 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6030 x86_linux_dr_get. All uses updated.
6031 (i386_linux_dr_set): Renamed to
6032 x86_linux_dr_set. All uses updated.
6033 (i386_linux_dr_get_addr): Renamed to
6034 x86_linux_dr_get_addr. All uses updated.
6035 (i386_linux_dr_get_control): Renamed to
6036 x86_linux_dr_get_control. All uses updated.
6037 (i386_linux_dr_get_status): Renamed to
6038 x86_linux_dr_get_status. All uses updated.
6039 (i386_linux_dr_set_control): Renamed to
6040 x86_linux_dr_set_control. All uses updated.
6041 (i386_linux_dr_set_addr): Renamed to
6042 x86_linux_dr_set_addr. All uses updated.
6043 (i386_linux_prepare_to_resume): Renamed to
6044 x86_linux_prepare_to_resume. All uses updated.
6045 (i386_linux_new_thread): Renamed to
6046 x86_linux_new_thread. All uses updated.
6047 (i386_linux_new_fork): Renamed to
6048 x86_linux_new_fork. All uses updated.
6049 (i386_linux_child_post_startup_inferior): Renamed to
6050 x86_linux_child_post_startup_inferior. All uses updated.
6051 (i386_linux_enable_btrace): Renamed to
6052 x86_linux_enable_btrace. All uses updated.
6053 (i386_linux_disable_btrace): Renamed to
6054 x86_linux_disable_btrace. All uses updated.
6055 (i386_linux_teardown_btrace): Renamed to
6056 x86_linux_teardown_btrace. All uses updated.
6057 (i386_linux_read_btrace): Renamed to
6058 x86_linux_read_btrace. All uses updated.
6059
6060 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6061
6062 * remote.c (extended_remote_post_attach): New function.
6063 (init_extended_remote_ops): Install it as to_post_attach method.
6064
6065 2014-07-09 Pedro Alves <palves@redhat.com>
6066
6067 * infcmd.c (attach_command_post_wait): Don't call
6068 target_terminal_inferior here.
6069 (attach_command): Call it here instead.
6070
6071 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6072
6073 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6074 field.
6075 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6076 from varobj.c, with additional checks.
6077 (c_varobj_ops): Fill in is_path_expr_parent field.
6078 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6079 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6080 field.
6081 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6082 ops method.
6083 (varobj_default_is_path_expr_parent): New function.
6084 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6085 (varobj_default_is_path_expr_parent): Declare new function.
6086
6087 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6088
6089 * infcmd.c (finish_backward): Turn internal error into normal error.
6090
6091 2014-07-07 Pedro Alves <palves@redhat.com>
6092
6093 PR gdb/17096
6094 * remote.c (async_handle_remote_sigint)
6095 (async_handle_remote_sigint_twice): Call
6096 gdb_call_async_signal_handler instead of
6097 mark_async_signal_handler.
6098
6099 2014-07-07 Tom Tromey <tromey@redhat.com>
6100
6101 * target-delegates.c: Rebuild.
6102 * target.c (target_info_record): Remove.
6103 * record.c (info_record_command): Unconditionally call
6104 to_info_record.
6105 * target.h (struct target_ops) <to_info_record>: Use
6106 TARGET_DEFAULT_IGNORE.
6107 (target_info_record): Remove.
6108
6109 2014-07-07 Tom Tromey <tromey@redhat.com>
6110
6111 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6112 TARGET_DEFAULT_NORETURN.
6113 * target.c (generic_tls_error): New function.
6114 (target_translate_tls_address): Don't search target stack.
6115 * target-delegates.c: Rebuild.
6116 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6117 stack.
6118 * linux-thread-db.c (thread_db_get_thread_local_address):
6119 Unconditionally call beneath target.
6120
6121 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6122
6123 * cli/cli-logging.c (pop_output_files): Assign targerr to
6124 gdb_stdtargerr.
6125
6126 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6127
6128 * MAINTAINERS (Write After Approval): Update my email address.
6129
6130 2014-07-02 Gary Benson <gbenson@redhat.com>
6131
6132 * proc-service.c (ps_xfer_memory): Update comment.
6133 (ps_pstop): Remove unused function.
6134 (ps_pcontinue): Likewise.
6135 (ps_lstop): Likewise.
6136 (ps_lcontinue): Likewise.
6137 (ps_lgetxregsize): Likewise.
6138 (ps_lgetxregs): Likewise.
6139 (ps_lsetxregs): Likewise.
6140 (ps_plog): Likewise.
6141 (ps_ptread): Likewise.
6142 (ps_ptwrite): Likewise.
6143
6144 2014-07-01 Mark Wielaard <mjw@redhat.com>
6145
6146 * dwarf2read.c (add_array_cv_type): New function.
6147 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6148 (read_tag_volatile_type): Likewise.
6149
6150 2014-07-01 Tom Tromey <tromey@redhat.com>
6151
6152 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6153 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6154 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6155 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6156 * command.h (cmd_cfunc_ftype): Move earlier.
6157 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6158 (add_com, add_info): Use cmd_cfunc_ftype.
6159
6160 2014-06-30 Tom Tromey <tromey@redhat.com>
6161
6162 * symtab.c (operator_chars): Make parameters and return type
6163 const.
6164 (file_matches): Make "files" const.
6165 (struct search_symbols_data) <files>: Now const.
6166 (search_symbols): Make "regexp" and "files" parameters const.
6167 Update.
6168 (symtab_symbol_info): Remove cast.
6169 (rbreak_command): Update.
6170 * symtab.h (search_symbols): Update.
6171
6172 2014-06-27 Yao Qi <yao@codesourcery.com>
6173
6174 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6175 Change parameter type to 'struct thread_info *'. Caller
6176 updated.
6177 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6178 Update declaration.
6179 * dummy-frame.c (struct dummy_frame_id): New.
6180 (dummy_frame_id_eq): New function.
6181 (struct dummy_frame) <id>: Change its type to 'struct
6182 dummy_frame_id'.
6183 (dummy_frame_push): Add parameter ptid and save it in
6184 dummy_frame_id.
6185 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6186 inferior_ptid.
6187 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6188 to inferior_ptid.
6189 (lookup_dummy_frame): Change parameter type to 'struct
6190 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6191 instead of frame_id_eq.
6192 (dummy_frame_pop): Add parameter ptid. Callers updated.
6193 Update comments. Compose dummy_frame_id and pass it to
6194 lookup_dummy_frame.
6195 (dummy_frame_discard): Add parameter ptid.
6196 (dummy_frame_sniffer): Compose dummy_frame_id and call
6197 dummy_frame_id_eq instead of frame_id_eq.
6198 (fprint_dummy_frames): Print ptid.
6199 * dummy-frame.h: Remove comments.
6200 (dummy_frame_push): Add ptid in declaration.
6201 (dummy_frame_pop, dummy_frame_discard): Likewise.
6202
6203 2014-06-26 Tom Tromey <tromey@redhat.com>
6204
6205 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6206 * command.h (error_no_arg): Update.
6207
6208 2014-06-26 Tom Tromey <tromey@redhat.com>
6209
6210 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6211 (do_show_command): Make "arg" const.
6212 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6213
6214 2014-06-26 Tom Tromey <tromey@redhat.com>
6215
6216 * record-full.c (record_full_get_bookmark): Make "args" const.
6217 (record_full_goto_bookmark): Make "raw_bookmark" const.
6218 * record.c (record_goto): New function.
6219 (cmd_record_goto): Use it. Now static.
6220 * record.h (record_goto): Declare.
6221 (cmd_record_goto): Remove declaration.
6222 * target-delegates.c: Rebuild.
6223 * target.h (struct target_ops) <to_get_bookmark,
6224 to_goto_bookmark>: Make parameter const.
6225
6226 2014-06-26 Tom Tromey <tromey@redhat.com>
6227
6228 * defs.h (generic_load): Update.
6229 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6230 * monitor.c (monitor_load): Make "args" const.
6231 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6232 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6233 const.
6234 (mips_load): Make "file" const.
6235 * remote-sim.c (gdbsim_load): Make "args" const.
6236 * remote.c (remote_load): Make "name" const.
6237 * symfile.c (generic_load): Make "args" const.
6238 * target-delegates.c: Rebuild.
6239 * target.c (target_load): Make "arg" const.
6240 (debug_to_load): Make "args" const.
6241 * target.h (struct target_ops) <to_load>: Make parameter const.
6242 (target_load): Update.
6243
6244 2014-06-26 Tom Tromey <tromey@redhat.com>
6245
6246 PR symtab/16902:
6247 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6248 (dwarf2_physname, read_partial_die)
6249 (guess_partial_die_structure_name, fixup_partial_die)
6250 (guess_full_die_structure_name, anonymous_struct_prefix)
6251 (dwarf2_name): Use per-BFD obstack.
6252
6253 2014-06-26 Yao Qi <yao@codesourcery.com>
6254
6255 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6256 dummyframe and this_id into inner block below.
6257
6258 2014-06-26 Yao Qi <yao@codesourcery.com>
6259
6260 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6261 with "signal_pass[0]" in the initialization of signal_pass.
6262
6263 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6264
6265 * record-btrace.c (record_btrace_generating_corefile)
6266 (record_btrace_prepare_to_generate_core)
6267 (record_btrace_done_generating_core): New.
6268 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6269 (record_btrace_store_registers, record_btrace_prepare_to_store):
6270 Forward request when generating a core file.
6271 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6272 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6273 to_done_generating_core.
6274
6275 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6276
6277 * target.h (target_ops) <to_prepare_to_generate_core>
6278 <to_done_generating_core>: New.
6279 (target_prepare_to_generate_core, target_done_generating_core): New.
6280 * target.c (target_prepare_to_generate_core)
6281 (target_done_generating_core): New.
6282 * target-delegates.c: Regenerate.
6283 * gcore.c: (write_gcore_file): Rename to ...
6284 (write_gcore_file_1): ...this.
6285 (write_gcore_file): Call target_prepare_to_generate_core
6286 and target_done_generating_core.
6287
6288 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6289
6290 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6291 * gcore.c (write_gcore_file): Free memory returned from
6292 make_corefile_notes.
6293 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6294 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6295
6296 2014-06-24 Yao Qi <yao@codesourcery.com>
6297
6298 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6299 (arm_linux_init_abi): Set skip_trampoline_code with
6300 gdbarch_skip_trampoline_code instead of
6301 find_solib_trampoline_target.
6302
6303 2014-06-24 Yao Qi <yao@codesourcery.com>
6304
6305 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6306 arm_skip_bx_reg returns non-zero.
6307
6308 2014-06-24 Yao Qi <yao@codesourcery.com>
6309
6310 * arm-tdep.c (arm_skip_bx_reg): New function.
6311 (arm_skip_stub): Call arm_skip_bx_reg.
6312
6313 2014-06-23 Don Breazeal <donb@codesourcery.com>
6314
6315 * MAINTAINERS: Add myself as write-after-approval maintainer.
6316
6317 2014-06-23 Pedro Alves <palves@redhat.com>
6318
6319 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6320 DR_CONTROL before setting DR0..DR3.
6321 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6322 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6323 bits of DR_CONTROL related to the debug register slot being
6324 disabled. If all slots are vacant, clear local slowdown as well,
6325 and assert DR_CONTROL is 0.
6326
6327 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6328
6329 * python/lib/gdb/command/xmethods.py
6330 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6331 current progspace only if the string "progspace" matches LOCUS_RE.
6332
6333 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6334
6335 Fix --with-system-readline with readline-6.3 patch 5.
6336 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6337 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6338 types.
6339
6340 2014-06-20 Tom Tromey <tromey@redhat.com>
6341
6342 * dwarf2read.c (dw2_get_real_path): Use correct type in
6343 OBSTACK_CALLOC.
6344 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6345
6346 2014-06-20 Gary Benson <gbenson@redhat.com>
6347
6348 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6349 * common/glibc_thread_db.h: Likewise.
6350 * common/i386-cpuid.h: Likewise.
6351 * common/i386-gcc-cpuid.h: Likewise.
6352 * common/linux-btrace.h: Likewise.
6353 * common/linux-osdata.h: Likewise.
6354 * common/linux-procfs.h: Likewise.
6355 * common/linux-ptrace.h: Likewise.
6356 * common/mips-linux-watch.h: Likewise.
6357 * common/linux-btrace.c: Moved to nat.
6358 * common/linux-osdata.c: Likewise.
6359 * common/linux-procfs.c: Likewise.
6360 * common/linux-ptrace.c: Likewise.
6361 * common/mips-linux-watch.c: Likewise.
6362 * nat/gdb_thread_db.h: Moved from common.
6363 * nat/glibc_thread_db.h: Likewise.
6364 * nat/i386-cpuid.h: Likewise.
6365 * nat/i386-gcc-cpuid.h: Likewise.
6366 * nat/linux-btrace.c: Likewise.
6367 * nat/linux-btrace.h: Likewise.
6368 * nat/linux-osdata.c: Likewise.
6369 * nat/linux-osdata.h: Likewise.
6370 * nat/linux-procfs.c: Likewise.
6371 * nat/linux-procfs.h: Likewise.
6372 * nat/linux-ptrace.c: Likewise.
6373 * nat/linux-ptrace.h: Likewise.
6374 * nat/mips-linux-watch.c: Likewise.
6375 * nat/mips-linux-watch.h: Likewise.
6376 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6377 (object file files): Reordered.
6378 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6379 of glibc_thread_db.h.
6380
6381 2014-06-20 Gary Benson <gbenson@redhat.com>
6382
6383 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6384 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6385 (i386_dr_low): Likewise.
6386 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6387 (i386_dr_low_set_addr): Likewise.
6388 (i386_dr_low_get_addr): Likewise.
6389 (i386_dr_low_can_set_control): Likewise.
6390 (i386_dr_low_set_control): Likewise.
6391 (i386_dr_low_get_control): Likewise.
6392 (i386_dr_low_get_status): Likewise.
6393 (i386_get_debug_register_length): Likewise.
6394 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6395 (i386_dr_low): Likewise.
6396 * nat/i386-dregs.c (i386-low.h): Remove include.
6397 (i386-nat.h): Likewise.
6398 (nat/i386-dregs.h): New include.
6399 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6400 (i386_dr_low_set_addr): Likewise.
6401 (i386_dr_low_get_addr): Likewise.
6402 (i386_dr_low_can_set_control): Likewise.
6403 (i386_dr_low_set_control): Likewise.
6404 (i386_dr_low_get_control): Likewise.
6405 (i386_dr_low_get_status): Likewise.
6406 (i386_get_debug_register_length): Likewise.
6407 (debug_hw_points): Likewise.
6408
6409 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6410
6411 * Makefile.in (SFILES): Add d-exp.y.
6412 (YYFILES): Add d-exp.c.
6413 (YYOBJ): Add d-exp.o.
6414 (local-maintainer-clean): Delete d-exp.c.
6415 * d-exp.y: New file.
6416 * d-lang.h (d_parse): New declaration.
6417 (d_error): New declaration.
6418 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6419 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6420 PREC_ORDER operators.
6421 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6422
6423 2014-06-19 Yao Qi <yao@codesourcery.com>
6424
6425 * gdbthread.h (any_running): Remove the declaration.
6426 * thread.c (any_running): Remove.
6427
6428 2014-06-19 Yao Qi <yao@codesourcery.com>
6429
6430 * gdbthread.h (struct thread_info) <state>: Change its type to
6431 'enum thread_state'. Update comments.
6432
6433 2014-06-19 Pedro Alves <palves@redhat.com>
6434
6435 * gdbthread.h (ALL_THREADS): Delete.
6436 (ALL_NON_EXITED_THREADS): New macro.
6437 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6438 instead of ALL_THREADS.
6439 * infrun.c (find_thread_needs_step_over)
6440 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6441 instead of ALL_THREADS.
6442 * record-btrace.c (record_btrace_open)
6443 (record_btrace_stop_recording, record_btrace_close)
6444 (record_btrace_is_replaying, record_btrace_resume)
6445 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6446 * remote.c (append_pending_thread_resumptions): Likewise.
6447 * thread.c (thread_apply_all_command): Likewise.
6448
6449 2014-06-19 Gary Benson <gbenson@redhat.com>
6450
6451 * i386-nat.c (i386_stopped_by_watchpoint):
6452 Use i386_dr_stopped_by_watchpoint.
6453 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6454 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6455
6456 2014-06-19 Gary Benson <gbenson@redhat.com>
6457
6458 * nat/i386-dregs.c: New file.
6459 * Makefile.in (i386-dregs.o): New rule.
6460 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6461 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6462 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6463 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6464 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6465 * config/i386/go32.mh (NATDEPFILES): Likewise.
6466 * config/i386/linux.mh (NATDEPFILES): Likewise.
6467 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6468 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6469 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6470 * i386-nat.h (debug_hw_points): New declaration.
6471 * i386-nat.c (breakpoint.h): Remove include.
6472 (command.h): Likewise.
6473 (target.h): Likewise.
6474 (gdb_assert.h): Likewise.
6475 (debug_hw_points): Made nonstatic.
6476 (debug_printf): Now in i386-dregs.c.
6477 (TARGET_HAS_DR_LEN_8): Likewise.
6478 (DR_CONTROL_SHIFT): Likewise.
6479 (DR_CONTROL_SIZE): Likewise.
6480 (DR_RW_EXECUTE): Likewise.
6481 (DR_RW_WRITE): Likewise.
6482 (DR_RW_READ): Likewise.
6483 (DR_RW_IORW): Likewise.
6484 (DR_LEN_1): Likewise.
6485 (DR_LEN_2): Likewise.
6486 (DR_LEN_4): Likewise.
6487 (DR_LEN_8): Likewise.
6488 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6489 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6490 (DR_ENABLE_SIZE): Likewise.
6491 (DR_LOCAL_SLOWDOWN): Likewise.
6492 (DR_GLOBAL_SLOWDOWN): Likewise.
6493 (DR_CONTROL_RESERVED): Likewise.
6494 (I386_DR_CONTROL_MASK): Likewise.
6495 (I386_DR_VACANT): Likewise.
6496 (I386_DR_LOCAL_ENABLE): Likewise.
6497 (I386_DR_GLOBAL_ENABLE): Likewise.
6498 (I386_DR_DISABLE): Likewise.
6499 (I386_DR_SET_RW_LEN): Likewise.
6500 (I386_DR_GET_RW_LEN): Likewise.
6501 (I386_DR_WATCH_HIT): Likewise.
6502 (i386_wp_op_t): Likewise.
6503 (i386_show_dr): Likewise.
6504 (i386_length_and_rw_bits): Likewise.
6505 (i386_insert_aligned_watchpoint): Likewise.
6506 (i386_remove_aligned_watchpoint): Likewise.
6507 (i386_handle_nonaligned_watchpoint): Likewise.
6508 (i386_update_inferior_debug_regs): Likewise.
6509 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6510 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6511 (i386_region_ok_for_watchpoint):
6512 Use i386_dr_region_ok_for_watchpoint.
6513 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6514
6515 2014-06-19 Gary Benson <gbenson@redhat.com>
6516
6517 * i386-nat.c (i386_insert_hw_breakpoint): Use
6518 i386_insert_watchpoint.
6519 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6520
6521 2014-06-19 Gary Benson <gbenson@redhat.com>
6522
6523 * i386-nat.c (i386_dr_show): Renamed to
6524 i386_show_dr and made static. All uses updated.
6525 (i386_dr_length_and_rw_bits): Renamed to
6526 i386_length_and_rw_bits and made static.
6527 All uses updated.
6528 (i386_dr_insert_aligned_watchpoint): Renamed to
6529 i386_insert_aligned_watchpoint and made static.
6530 All uses updated.
6531 (i386_dr_remove_aligned_watchpoint): Renamed to
6532 i386_remove_aligned_watchpoint and made static.
6533 All uses updated.
6534 (i386_dr_update_inferior_debug_regs): Renamed to
6535 i386_update_inferior_debug_regs and made static.
6536 All uses updated.
6537 * nat/i386-dregs.h (i386_dr_show): Removed.
6538 (i386_dr_length_and_rw_bits): Likewise.
6539 (i386_dr_insert_aligned_watchpoint): Likewise.
6540 (i386_dr_remove_aligned_watchpoint): Likewise.
6541 (i386_dr_update_inferior_debug_regs): Likewise.
6542
6543 2014-06-19 Gary Benson <gbenson@redhat.com>
6544
6545 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6546 * configure: Regenerate.
6547 * config.in: Likewise.
6548 * main.c (signal.h): New include.
6549 (setup_alternate_signal_stack): New function.
6550 (captured_main): Call the above.
6551 * cp-support.c (signal.h): New include.
6552 (catch_demangler_crashes): New flag.
6553 (SIGJMP_BUF): New define.
6554 (SIGSETJMP): Likewise.
6555 (SIGLONGJMP): Likewise.
6556 (gdb_demangle_jmp_buf): New static global.
6557 (gdb_demangle_attempt_core_dump): Likewise.
6558 (gdb_demangle_signal_handler): New function.
6559 (gdb_demangle): If catch_demangler_crashes is set, install the
6560 above signal handler before calling bfd_demangle, and restore
6561 the original signal handler afterwards. Display the offending
6562 symbol and call demangler_warning the first time a segmentation
6563 fault is caught.
6564 (_initialize_cp_support): New maint set/show command.
6565
6566 2014-06-19 Gary Benson <gbenson@redhat.com>
6567
6568 * utils.h (resource_limit_kind): New enum.
6569 (can_dump_core): New declaration.
6570 (warn_cant_dump_core): Likewise.
6571 (dump_core): Likewise.
6572 * utils.c (dump_core): Made nonstatic. Added new
6573 parameter "limit_kind".
6574 (can_dump_core): Made nonstatic. Moved printing code to...
6575 (warn_cant_dump_core): New function.
6576 (can_dump_core_warn): Likewise.
6577 (internal_vproblem): Replace calls to can_dump_core with
6578 calls to can_dump_core_warn. Supply new argument to each.
6579
6580 2014-06-19 Gary Benson <gbenson@redhat.com>
6581
6582 * utils.h (demangler_vwarning): New declaration.
6583 (demangler_warning): Likewise.
6584 * utils.c (struct internal_problem)
6585 <user_settable_should_quit>: New field.
6586 <user_settable_should_dump_core>: Likewise
6587 (internal_error_problem): Add values for above new fields.
6588 (internal_warning_problem): Likewise.
6589 (demangler_warning_problem): New static global.
6590 (demangler_vwarning): New function.
6591 (demangler_warning): Likewise.
6592 (add_internal_problem_command): Selectively add commands.
6593 (_initialize_utils): New internal problem command.
6594 * maint.c (maintenance_demangler_warning): New function.
6595 (_initialize_maint_cmds): New command.
6596
6597 2014-06-18 Tom Tromey <tromey@redhat.com>
6598
6599 * f-valprint.c (info_common_command_for_block): Update.
6600 * symtab.h (struct general_symbol_info) <common_block>: Now
6601 const.
6602
6603 2014-06-18 Tom Tromey <tromey@redhat.com>
6604
6605 * symtab.h (struct symtab) <blockvector>: Now const.
6606 * ada-lang.c (ada_add_global_exceptions): Update.
6607 * buildsym.c (augment_type_symtab): Update.
6608 * dwarf2read.c (dw2_lookup_symbol): Update.
6609 * jit.c (finalize_symtab): Update.
6610 * jv-lang.c (add_class_symtab_symbol): Update.
6611 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6612 Update.
6613 * objfiles.c (objfile_relocate1): Update.
6614 * psymtab.c (lookup_symbol_aux_psymtabs)
6615 (maintenance_check_psymtabs): Update.
6616 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6617 Update.
6618 * spu-tdep.c (spu_catch_start): Update.
6619 * symmisc.c (dump_symtab_1): Update.
6620 * symtab.c (lookup_global_symbol_from_objfile)
6621 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6622 (basic_lookup_transparent_type_quick)
6623 (basic_lookup_transparent_type, find_pc_sect_symtab)
6624 (find_pc_sect_line, search_symbols): Update.
6625 * block.c (find_block_in_blockvector): Make "bl" const.
6626 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6627 const.
6628 (blockvector_contains_pc): Make "bv" const.
6629 (block_for_pc_sect): Update.
6630 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6631 (blockvector_contains_pc): Update.
6632 * breakpoint.c (resolve_sal_pc): Update.
6633 * inline-frame.c (block_starting_point_at): Update.
6634
6635 2014-06-18 Tom Tromey <tromey@redhat.com>
6636
6637 * completer.c (complete_line): Make "line_buffer" const.
6638 * completer.h (complete_line): Update.
6639
6640 2014-06-18 Tom Tromey <tromey@redhat.com>
6641
6642 * symtab.c (add_macro_name): Remove unneeded cast.
6643
6644 2014-06-18 Tom Tromey <tromey@redhat.com>
6645
6646 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6647 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6648
6649 2014-06-18 Tom Tromey <tromey@redhat.com>
6650
6651 * probe.c (info_probes_for_ops): Make "arg" const.
6652 * probe.h (info_probes_for_ops): Update.
6653
6654 2014-06-18 Tom Tromey <tromey@redhat.com>
6655
6656 * varobj.c (varobj_create): Update.
6657 * valops.c (value_of_this): Update.
6658 * tracepoint.c (add_local_symbols, scope_info): Update.
6659 * symtab.h (struct general_symbol_info) <block>: Now const.
6660 * symtab.c (skip_prologue_sal)
6661 (default_make_symbol_completion_list_break_on)
6662 (skip_prologue_using_sal): Update.
6663 * stack.h (iterate_over_block_locals)
6664 (iterate_over_block_local_vars): Update.
6665 * stack.c (print_frame_args): Update.
6666 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6667 parameter const.
6668 (get_selected_block): Make return type const.
6669 * python/py-frame.c (frapy_block): Update.
6670 * python/py-block.c (gdbpy_block_for_pc): Update.
6671 * p-exp.y (%union) <bval>: Now const.
6672 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6673 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6674 * m2-exp.y (%union) <bval>: Now const.
6675 * linespec.c (get_current_search_block): Make return type const.
6676 (create_sals_line_offset, find_label_symbols): Update.
6677 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6678 Update.
6679 (block_starting_point_at): Make "block" const.
6680 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6681 (check_exception_resume): Update.
6682 * guile/scm-frame.c (gdbscm_frame_block): Update.
6683 * guile/scm-block.c (gdbscm_lookup_block): Update.
6684 * frame.h (get_frame_block): Update.
6685 (get_selected_block): Make return type const.
6686 * frame.c (frame_id_inner): Update.
6687 * f-valprint.c (info_common_command_for_block)
6688 (info_common_command): Update.
6689 * dwarf2loc.c (dwarf2_find_location_expression)
6690 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6691 (locexpr_describe_location_piece): Update.
6692 * c-exp.y (%union) <bval>: Now const.
6693 * breakpoint.c (resolve_sal_pc): Update.
6694 * blockframe.c (get_frame_block):Make return type const.
6695 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6696 (block_innermost_frame): Update.
6697 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6698 (block_for_pc, block_for_pc_sect): Update.
6699 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6700 'pblock' const.
6701 (block_for_pc_sect, block_for_pc): Make return type const.
6702 * ax-gdb.c (gen_expr): Update.
6703 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6704 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6705 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6706 (ada_read_var_value): Update.
6707 * ada-exp.y (struct name_info) <block>: Now const.
6708 (%union): Likewise.
6709 (block_lookup): Constify.
6710
6711 2014-06-18 Gary Benson <gbenson@redhat.com>
6712
6713 * nat/i386-dregs.h: New file.
6714 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6715 * i386-nat.h (i386-dregs.h): New include.
6716 (DR_FIRSTADDR): Now in i386-dregs.h.
6717 (DR_LASTADDR): Likewise.
6718 (DR_NADDR): Likewise.
6719 (DR_STATUS): Likewise.
6720 (DR_CONTROL): Likewise.
6721 (i386_debug_reg_state): Likewise.
6722 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6723
6724 2014-06-18 Don Breazeal <donb@codesourcery.com>
6725
6726 * breakpoint.c (set_longjmp_breakpoint): Call
6727 momentary_breakpoint_from_master with additional argument.
6728 (set_longjmp_breakpoint_for_call_dummy): Call
6729 momentary_breakpoint_from_master with additional argument.
6730 (set_std_terminate_breakpoint): Call
6731 momentary_breakpoint_from_master with additional argument.
6732 (momentary_breakpoint_from_master): Add argument to function
6733 definition and use it to initialize structure member flag.
6734 (clone_momentary_breakpoint): Call
6735 momentary_breakpoint_from_master with additional argument.
6736 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6737 member flags set in momentary_breakpoint_from_master.
6738
6739 2014-06-18 Gary Benson <gbenson@redhat.com>
6740
6741 * i386-nat.c (i386_show_dr): Renamed to
6742 i386_dr_show and made nonstatic. All uses updated.
6743 (i386_length_and_rw_bits): Renamed to
6744 i386_dr_length_and_rw_bits and made nonstatic.
6745 All uses updated.
6746 (i386_insert_aligned_watchpoint): Renamed to
6747 i386_dr_insert_aligned_watchpoint and made nonstatic.
6748 All uses updated.
6749 (i386_remove_aligned_watchpoint): Renamed to
6750 i386_dr_remove_aligned_watchpoint and made nonstatic.
6751 All uses updated.
6752 (i386_update_inferior_debug_regs): Renamed to
6753 i386_dr_update_inferior_debug_regs and made nonstatic.
6754 All uses updated.
6755
6756 2014-06-18 Gary Benson <gbenson@redhat.com>
6757
6758 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6759 (i386_dr_low_can_set_control): Likewise.
6760 (i386_dr_low_set_addr): Likewise.
6761 (i386_dr_low_set_control): Likewise.
6762 (i386_dr_low_get_addr): Likewise.
6763 (i386_dr_low_get_status): Likewise.
6764 (i386_dr_low_get_control): Likewise.
6765 (i386_insert_aligned_watchpoint): Use new macros.
6766 (i386_update_inferior_debug_regs): Likewise.
6767 (i386_stopped_data_address): Likewise.
6768
6769 2014-06-18 Gary Benson <gbenson@redhat.com>
6770
6771 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6772 New parameter. All uses updated.
6773
6774 2014-06-18 Gary Benson <gbenson@redhat.com>
6775
6776 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6777 All uses updated.
6778
6779 2014-06-18 Gary Benson <gbenson@redhat.com>
6780
6781 * i386-nat.c (debug_printf): New macro.
6782 (i386_get_debug_register_length): Likewise.
6783 (TARGET_HAS_DR_LEN_8): Use above macro.
6784 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6785 and printf_unfiltered. Use phex to format values.
6786
6787 2014-06-18 Gary Benson <gbenson@redhat.com>
6788
6789 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6790 Make const.
6791
6792 2014-06-18 Gary Benson <gbenson@redhat.com>
6793
6794 * i386-nat.c: Comment changes.
6795
6796 2014-06-18 Gary Benson <gbenson@redhat.com>
6797
6798 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6799
6800 2014-06-18 Gary Benson <gbenson@redhat.com>
6801
6802 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6803 (i386_insert_aligned_watchpoint): Likewise.
6804 (i386_remove_aligned_watchpoint): Likewise.
6805 (i386_handle_nonaligned_watchpoint): Likewise.
6806
6807 2014-06-18 Gary Benson <gbenson@redhat.com>
6808
6809 * i386-nat.c: Whitespace changes.
6810
6811 2014-06-17 Samuel Bronson <naesten@gmail.com>
6812
6813 * MAINTAINERS: Update Roland McGrath's email address.
6814 Thanks to Sergio Durigan Junior for pointing out that he left
6815 Red Hat a while ago, and giving me a current address.
6816
6817 2014-06-17 Tom Tromey <tromey@redhat.com>
6818
6819 * utils.h (savestring): Remove declaration.
6820
6821 2014-06-17 Tom Tromey <tromey@redhat.com>
6822
6823 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6824
6825 2014-06-16 Keith Seitz <keiths@redhat.com>
6826
6827 PR mi/15863
6828 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6829 to update the varobj if inferior_ptid is null_ptid.
6830
6831 2014-06-16 Tom Tromey <tromey@redhat.com>
6832
6833 * target.h (struct target_ops) <to_info_proc>: Make parameter
6834 const.
6835 (target_info_proc): Update.
6836 * target.c (target_info_proc): Make "args" const.
6837 * procfs.c (procfs_info_proc): Update.
6838 * linux-tdep.c (linux_info_proc): Update.
6839 (linux_core_info_proc_mappings): Make "args" const.
6840 (linux_core_info_proc): Update.
6841 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6842 * gdbarch.c: Rebuild.
6843 * gdbarch.h: Rebuild.
6844 * corelow.c (core_info_proc): Update.
6845
6846 2014-06-16 Tom Tromey <tromey@redhat.com>
6847
6848 * target.h (struct target_ops) <to_disconnect>: Make parameter
6849 const.
6850 (target_disconnect): Update.
6851 * target.c (target_disconnect): Make "args" const.
6852 * target-delegates.c: Rebuild.
6853 * remote.c (remote_disconnect): Update.
6854 * record.h (record_disconnect): Update.
6855 * record.c (record_disconnect): Update.
6856 * inf-child.c (inf_child_disconnect): Update.
6857
6858 2014-06-16 Tom Tromey <tromey@redhat.com>
6859
6860 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6861 * target.c (debug_to_rcmd, default_rcmd): Update.
6862 * target-delegates.c: Rebuild.
6863 * remote.c (remote_rcmd): Update.
6864 * monitor.c (monitor_rcmd): Update.
6865
6866 2014-06-16 Pedro Alves <palves@redhat.com>
6867
6868 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6869 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6870 have OBJF_SHARED set.
6871 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6872 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6873 instead of OBJF_USERLOADED.
6874 * objfiles.h (OBJF_SHARED): Update comment.
6875 (userloaded_objfile_contains_address_p): Rename to ...
6876 (shared_objfile_contains_address_p): ... this, and update
6877 comments.
6878 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6879 new objfile.
6880 (remove_symbol_file_command): Skip objfiles that don't have
6881 OBJF_SHARED set.
6882
6883 2014-06-16 Tom Tromey <tromey@redhat.com>
6884
6885 * minsyms.h (prim_record_minimal_symbol)
6886 (prim_record_minimal_symbol_and_info): Update comments.
6887
6888 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6889
6890 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6891 or --without-guile, according to how GDB was built.
6892
6893 2014-06-13 Tom Tromey <tromey@redhat.com>
6894
6895 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6896 to help_list.
6897 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6898 to help_list.
6899 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6900 help_list.
6901 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6902 help_list.Pass all_commands, not -1, to help_list.
6903 * cli/cli-dump.c (dump_command, append_command)
6904 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6905 (binary_dump_command, binary_append_command): Pass all_commands,
6906 not -1, to help_list.
6907 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6908 -1, to help_list.
6909 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6910 -1, to help_list.
6911 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6912 help_list.
6913 * top.c (set_history): Pass all_commands, not -1, to help_list.
6914 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6915 all_commands, not -1, to help_list.
6916 * symfile.c (overlay_command): Pass all_commands, not -1, to
6917 help_list.
6918 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6919 help_list.
6920 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6921 help_list.
6922 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6923 -1, to help_list.
6924 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6925 not -1, to help_list.
6926 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6927 not -1, to help_list.
6928 * maint.c (maintenance_command, maintenance_info_command)
6929 (maintenance_print_command, maintenance_set_cmd): Pass
6930 all_commands, not -1, to help_list.
6931 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6932 help_list.
6933 * language.c (set_check): Pass all_commands, not -1, to help_list.
6934 * infcmd.c (unset_command): Pass all_commands, not -1, to
6935 help_list.
6936 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6937 help_list.
6938 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6939 help_list.
6940 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6941 help_list.
6942 * breakpoint.c (save_command): Pass all_commands, not -1, to
6943 help_list.
6944 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6945 all_commands, not -1, to help_list.
6946
6947 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6948
6949 * regcache.c (struct register_to_invalidate): New structure.
6950 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6951 functions.
6952 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6953
6954 2014-06-12 Yao Qi <yao@codesourcery.com>
6955
6956 * varobj.c (varobj_get_num_children): Call
6957 varobj_is_dynamic_p.
6958 (varobj_list_children): Likewise.
6959 (varobj_update): Likewise. Update comments.
6960
6961 2014-06-12 Yao Qi <yao@codesourcery.com>
6962
6963 * varobj.c (varobj_pretty_printed_p): Rename to ...
6964 (varobj_is_dynamic_p): ... this. New function.
6965 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6966 (varobj_is_dynamic_p): Declare.
6967 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6968 (mi_print_value_p, varobj_update_one): Likewise.
6969
6970 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6971 Yao Qi <yao@codesourcery.com>
6972
6973 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6974 (varobj_get_iterator): Wrap up code for pretty-printer by
6975 "#if HAVE_PYTHON" and "#endif".
6976 (update_dynamic_varobj_children): Likewise.
6977
6978 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6979 Yao Qi <yao@codesourcery.com>
6980
6981 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6982 gdb_python_initialized is false. Move some code from varobj.c.
6983 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6984 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6985 (struct varobj_item): Moved to varobj-iter.h".
6986 (varobj_clear_saved_item): New function.
6987 (update_dynamic_varobj_children): Move python-related code to
6988 py-varobj.c.
6989 (free_variable): Call varobj_clear_saved_item and
6990 varobj_iter_delete.
6991
6992 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6993 Yao Qi <yao@codesourcery.com>
6994
6995 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6996 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6997 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6998 (py-varobj.o): New rule.
6999 * python/py-varobj.c: New file.
7000 * python/python-internal.h (py_varobj_get_iterator): Declare.
7001 * varobj-iter.h: New file.
7002 * varobj.c: Include "varobj-iter.h"
7003 (struct varobj) <child_iter>: Change its type from "PyObject *"
7004 to "struct varobj_iter *".
7005 <saved_item>: Likewise.
7006 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
7007 [HAVE_PYTHON] (varobj_get_iterator): New function.
7008 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7009 python-specific code to python/py-varobj.c.
7010 (install_visualizer): Call varobj_iter_delete instead of
7011 Py_XDECREF.
7012 * varobj.h (varobj_ensure_python_env): Declare.
7013
7014 2014-06-12 Yao Qi <yao@codesourcery.com>
7015
7016 * varobj.c (struct varobj_item): New structure.
7017 (create_child_with_value): Update declaration.
7018 (varobj_add_child): Replace arguments 'name' and 'value' with
7019 'item'. All callers updated.
7020 (install_dynamic_child): Likewise.
7021 (update_dynamic_varobj_children): Likewise.
7022 (varobj_add_child): Likewise.
7023 (create_child_with_value): Likewise.
7024
7025 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7026
7027 * NEWS: Create a new section for the next release branch.
7028 Rename the section of the current branch, now that it has
7029 been cut.
7030
7031 2014-06-11 Joel Brobecker <brobecker@adacore.com>
7032
7033 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7034 * version.in: Bump version to 7.8.50.DATE-cvs.
7035
7036 2014-06-11 Pedro Alves <palves@redhat.com>
7037
7038 PR remote/17028
7039 * ser-mingw.c (net_windows_socket_check_pending): New function.
7040 (net_windows_select_thread): Ignore spurious wakeups. Use
7041 net_windows_socket_check_pending.
7042 (net_windows_wait_handle): Check for pending events with
7043 ioctlsocket, through net_windows_socket_check_pending, instead of
7044 checking the socket's event.
7045
7046 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7047
7048 * python/python-internal.h (gdb_PyObject_GetAttrString)
7049 (gdb_PyObject_HasAttrString): New inline function definitions.
7050 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7051 char * of the second argument to PyObject_GetAttrString.
7052
7053 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7054
7055 * serial.c (serial_write): Fix index of character to be printed
7056 in call to serial_logchar when serial debug traces are enabled.
7057
7058 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7059
7060 * gdbtypes (resolve_dynamic_range): Add function description.
7061
7062 2014-06-09 Pedro Alves <palves@redhat.com>
7063
7064 * linux-nat.c (linux_child_follow_fork): Initialize status with
7065 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7066 inner block. Only pass the signal to PTRACE_DETACH if in pass
7067 state.
7068
7069 2014-06-09 Gary Benson <gbenson@redhat.com>
7070
7071 * common/signals.c (gdb_signal_from_host): Reorder to separate
7072 the always-available ANSI-standard signals from the signals that
7073 require checking.
7074 (do_gdb_signal_to_host): Likewise.
7075 * proc-events.c (signal_table): Likewise.
7076
7077 2014-06-08 Hui Zhu <hui@codesourcery.com>
7078
7079 * common/linux-ptrace.c (linux_disable_event_reporting): New
7080 function.
7081 * common/linux-ptrace.h (linux_disable_event_reporting): New
7082 declaration.
7083 * linux-nat.c (linux_child_follow_fork): Do a single step before
7084 detach.
7085
7086 2014-06-07 Keith Seitz <keiths@redhat.com>
7087
7088 Revert:
7089 PR c++/16253
7090 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7091 from symbol_matches_domain in symtab.c. All local callers
7092 of symbol_matches_domain updated.
7093 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7094 search STRUCT_DOMAIN.
7095 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7096 independently. standard_lookup will do that automatically.
7097 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7098 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7099 (cp_lookup_symbol_in_namespace): Likewise.
7100 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7101 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7102 may return a STRUCT_DOMAIN match.
7103 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7104 * cp-support.c: Include language.h.
7105 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7106 VAR_DOMAIN.
7107 * psymtab.c (match_partial_symbol): Compare the requested
7108 domain with the symbol's domain directly.
7109 (lookup_partial_symbol): Likewise.
7110 * symtab.c (lookup_symbol_in_language): Explain when/why
7111 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7112 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7113 appropriate languages.
7114 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7115 and moved to ada-lang.c
7116 (lookup_block_symbol): Explain that this function only returns
7117 symbol matching the requested DOMAIN.
7118 Compare the requested domain with the symbol's domain directly.
7119 (iterate_over_symbols): Compare the requested domain with the
7120 symbol's domain directly.
7121 * symtab.h (symbol_matches_domain): Remove.
7122
7123 2014-06-06 Doug Evans <xdje42@gmail.com>
7124
7125 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7126 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7127 (gdbscm_guile_version_is_at_least): Declare.
7128 (gdbscm_scm_string_to_int): Declare.
7129 * guile/guile.c (gdbscm_guile_major_version): New global.
7130 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7131 (guile_datadir): New static global.
7132 (gdbscm_guile_data_directory): New function.
7133 (initialize_scheme_side): Update.
7134 (misc_guile_functions): Add guile-data-directory.
7135 (initialize_gdb_module): Fetch guile version number.
7136 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7137 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7138 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7139 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7140 comments.
7141 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7142 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7143 * guile/scm-value.c (gdbscm_value_to_string): Only call
7144 scm_port_conversion_strategy if Guile version >= 2.0.6.
7145
7146 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7147
7148 * main.c (print_gdb_help): Add -q and --silent.
7149
7150 2014-06-06 Gary Benson <gbenson@redhat.com>
7151
7152 * common/signals.c: Remove preprocessor conditionals for
7153 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7154 SIGSEGV and SIGTERM.
7155 * proc-events.c: Likewise.
7156
7157 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7158
7159 * symfile.c (symfile_free_objfile): Remove restriction to
7160 OBJF_USERLOADED.
7161 * symfile-mem.c (symbol_file_add_from_memory): Call
7162 add_target_sections_of_objfile.
7163
7164 2014-06-05 Ludovic Courtès <ludo@gnu.org>
7165
7166 * guile/scm-value.c (gdbscm_history_append_x): Use
7167 'vlscm_get_value_smob_arg_unsafe' instead of
7168 'vlscm_scm_to_value'.
7169
7170 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7171
7172 PR mi/15806
7173 * utils.c (printchar): Don't escape at all if quoter is NUL.
7174 Update function documentation to clarify effect of parameter
7175 QUOTER.
7176 * remote.c (escape_buffer): Pass '\\' as the quoter to
7177 fputstrn_unfiltered.
7178 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7179 generate the output.
7180 (mi_solib_unloaded): Same.
7181
7182 2014-06-05 Joel Brobecker <brobecker@adacore.com>
7183
7184 * development.sh: Delete.
7185 * Makefile.in (config.status): Adjust dependency on development.sh.
7186 * configure.ac: Adjust development.sh source call.
7187 * configure: Regenerate.
7188
7189 2014-06-04 Doug Evans <xdje42@gmail.com>
7190
7191 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7192 is_scheme_bkpt, spec.
7193 (bpscm_make_breakpoint_smob): Initialize new members.
7194 (gdbscm_create_breakpoint_x): Split into two ...
7195 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7196 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7197 (scheme_function breakpoint_functions): Update.
7198 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7199 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7200 register-breakpoint!.
7201
7202 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
7203
7204 PR server/17023
7205 * mem-break.c (z_type_supported): Return zero if
7206 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7207
7208 2014-06-04 Tom Tromey <tromey@redhat.com>
7209
7210 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7211 value_from_contents_and_address_unresolved.
7212 (ada_template_to_fixed_record_type_1): Likewise.
7213 (ada_which_variant_applies): Likewise.
7214 * value.h (value_from_contents_and_address_unresolved): Declare.
7215 * value.c (value_from_contents_and_address_unresolved): New
7216 function.
7217 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7218 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7219 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7220
7221 2014-06-04 Tom Tromey <tromey@redhat.com>
7222
7223 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7224
7225 2014-06-04 Tom Tromey <tromey@redhat.com>
7226
7227 * procfs.c (procfs_attach): Make "args" const.
7228 * windows-nat.c (windows_attach): Make "args" const.
7229 * nto-procfs.c (procfs_attach): Make "args" const.
7230 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7231 * go32-nat.c (go32_attach): Make "args" const.
7232 * gnu-nat.c (gnu_attach): Make "args" const.
7233 * darwin-nat.c (darwin_attach): Make "args" const.
7234 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7235 * linux-nat.c (linux_nat_attach): Make "args" const.
7236 * remote.c (extended_remote_attach_1, extended_remote_attach):
7237 Make "args" const.
7238 * target.h (struct target_ops) <to_attach>: Make "args" const.
7239 (find_default_attach): Likewise.
7240 * utils.c (parse_pid_to_attach): Make "args" const.
7241 * utils.h (parse_pid_to_attach): Update.
7242
7243 2014-06-04 Tom Tromey <tromey@redhat.com>
7244
7245 * target-delegates.c: Rebuild.
7246 * target.c (default_thread_address_space): New function.
7247 (target_thread_address_space): Simplify.
7248 * target.h (struct target_ops) <to_thread_address_space>: Add
7249 TARGET_DEFAULT_FUNC.
7250
7251 2014-06-04 Doug Evans <xdje42@gmail.com>
7252
7253 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7254
7255 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7256
7257 * record-btrace.c: Include event-loop.h and inf-loop.h.
7258 (record_btrace_resume_exec_dir)
7259 (record_btrace_async_inferior_event_handler)
7260 (record_btrace_handle_async_inferior_event): New.
7261 (record_btrace_open): Create async event handler.
7262 (record_btrace_close): Delete async event handler.
7263 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7264 Mark async event handler.
7265 (record_btrace_execution_direction): New.
7266 (init_record_btrace_ops): Initialize to_execution_direction.
7267
7268 2014-06-03 Doug Evans <xdje42@gmail.com>
7269
7270 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7271 (gdbscm_make_parameter): Ditto.
7272
7273 2014-06-03 Doug Evans <dje@google.com>
7274
7275 * exec.c (exec_close_1): Call clear_section_table instead of
7276 resize_section_table.
7277 (clear_section_table): New function.
7278 (resize_section_table): Make static. Rename arg num_added to
7279 adjustment.
7280 * exec.h (clear_section_table): Declare.
7281 (resize_section_table): Delete.
7282 * progspace.c (release_program_space): Call clear_section_table
7283 instead of resize_section_table.
7284
7285 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7286
7287 * NEWS (Python Scripting): Add entry about the new xmethods
7288 feature.
7289
7290 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7291
7292 * python/py-xmethods.c: New file.
7293 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7294 (objfpy_dealloc): XDECREF on the new xmethods field.
7295 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7296 field.
7297 (objfpy_get_xmethods): New function.
7298 (objfile_getset): New entry 'xmethods'.
7299 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7300 (pspy_dealloc): XDECREF on the new xmethods field.
7301 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7302 field.
7303 (pspy_get_xmethods): New function.
7304 (pspace_getset): New entry 'xmethods'.
7305 * python/python-internal.h: Add declarations for new functions.
7306 * python/python.c (_initialize_python): Invoke
7307 gdbpy_initialize_xmethods.
7308 * python/lib/gdb/__init__.py (xmethods): New
7309 attribute.
7310 * python/lib/gdb/xmethod.py: New file.
7311 * python/lib/gdb/command/xmethods.py: New file.
7312
7313 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7314
7315 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7316 best match method returned by find_overload_match is an xmethod.
7317 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7318 the best matching operator returned by find_overload_match is an
7319 xmethod.
7320 * valops.c: #include "extension.h".
7321 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7322 Return void. The list of matching source methods is returned in
7323 "fn_list" and a vector of matching debug method workers is
7324 returned in "xm_worker_vec". Update all callers.
7325 (value_find_oload_method_list): Likewise.
7326 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7327 non-NULL, then the index of the best matching method in this
7328 vector is returned. Update all callers.
7329 (find_overload_match): Include xmethods while performing overload
7330 resolution.
7331
7332 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7333
7334 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7335 * extension-priv.h (struct extension_language_ops): Add the
7336 xmethod interface.
7337 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7338 get_matching_xmethod_workers, get_xmethod_argtypes,
7339 invoke_xmethod, free_xmethod_worker,
7340 free_xmethod_worker_vec): New functions.
7341 * extension.h: #include "common/vec.h".
7342 New function declarations.
7343 (struct xmethod_worker): New struct.
7344 (VEC (xmethod_worker_ptr)): New vector type.
7345 (xmethod_worker_ptr): New typedef.
7346 (xmethod_worker_vec): Likewise.
7347 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7348 builtin_type.
7349 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7350 (struct builtin_type): New field "xmethod".
7351 * valarith.c (value_ptradd): Assert that the value argument is not
7352 lval_xcallable.
7353 * valops.c (value_must_coerce_to_target): Return 0 for
7354 lval_xcallable values.
7355 * value.c (struct value): New field XM_WORKER in the field
7356 LOCATION.
7357 (value_address, value_raw_address): Return 0 for lval_xcallable
7358 values.
7359 (set_value_address): Assert that the value is not an
7360 lval_xcallable.
7361 (value_free): Free the associated xmethod worker when freeing
7362 lval_xcallable values.
7363 (set_value_component_location): Assert that the WHOLE value is not
7364 lval_xcallable.
7365 (value_of_xmethod, call_xmethod): New functions.
7366 * value.h: Declare "struct xmethod_worker".
7367 Declare new functions value_of_xmethod, call_xmethod.
7368
7369 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7370 Pedro Alves <palves@redhat.com>
7371
7372 PR breakpoints/17000
7373 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7374 New function, extracted from software_breakpoint_inserted_here_p.
7375 (software_breakpoint_inserted_here_p): Replace factored out code
7376 by call to find_non_raw_software_breakpoint_inserted_here.
7377 (bp_target_info_copy_insertion_state): New function.
7378 (bkpt_insert_location): Handle the case of a single-step
7379 breakpoint already inserted at the same address.
7380 (bkpt_remove_location): Handle the case of a single-step
7381 breakpoint still inserted at the same address.
7382 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7383 breakpoint already inserted at the same address.
7384 (deprecated_remove_raw_breakpoint): Handle the case of a
7385 non-raw breakpoint still inserted at the same address.
7386 (find_single_step_breakpoint): New function, extracted from
7387 single_step_breakpoint_inserted_here_p.
7388 (find_single_step_breakpoint): New function,
7389 factored out from single_step_breakpoint_inserted_here_p.
7390 (single_step_breakpoint_inserted_here_p): Reimplement.
7391
7392 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7393
7394 Pushed by Joel Brobecker <brobecker@adacore.com>
7395 * source.c (show_substitute_path_command): Fix display of matching
7396 substitution rules.
7397
7398 2014-06-03 Gary Benson <gbenson@redhat.com>
7399
7400 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7401
7402 2014-06-02 Doug Evans <xdje42@gmail.com>
7403
7404 Add parameter support for Guile.
7405 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7406 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7407 (scm-param.o): New rule.
7408 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7409 (gdbscm_misc_error): Declare.
7410 (gdbscm_canonicalize_command_name): Declare.
7411 (gdbscm_scm_to_host_string): Declare.
7412 (gdbscm_scm_from_host_string): Declare.
7413 (gdbscm_initialize_parameters): Declare.
7414 * guile/guile.c (initialize_gdb_module): Call
7415 gdbscm_initialize_parameters.
7416 * guile/lib/gdb.scm: Export parameter symbols.
7417 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7418 cmdscm_canonicalize_name and made public. All callers updated.
7419 * guile/scm-exception.c (gdbscm_misc_error): New function.
7420 * guile/scm-param.c: New file.
7421 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7422 (gdbscm_scm_to_host_string): New function.
7423 (gdbscm_scm_from_host_string): New function.
7424 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7425
7426 2014-06-02 Doug Evans <xdje42@gmail.com>
7427
7428 Add command support for Guile.
7429 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7430 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7431 (scm-cmd.o): New rule.
7432 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7433 (gdbscm_user_error_p): Declare.
7434 (gdbscm_parse_command_name): Declare.
7435 (gdbscm_valid_command_class_p): Declare.
7436 (gdbscm_initialize_commands): Declare.
7437 * guile/guile.c (initialize_gdb_module): Call
7438 gdbscm_initialize_commands.
7439 * guile/lib/gdb.scm: Export command symbols.
7440 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7441 (throw-user-error): New function.
7442 * guile/scm-cmd.c: New file.
7443 * guile/scm-exception.c (user_error_symbol): New static global.
7444 (gdbscm_user_error_p): New function.
7445 (gdbscm_initialize_exceptions): Set user_error_symbol.
7446 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7447
7448 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7449
7450 * top.c (command_loop): Handle comments here...
7451 (command_line_input): ... not here.
7452
7453 2014-06-02 Doug Evans <xdje42@gmail.com>
7454
7455 Add progspace support for Guile.
7456 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7457 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7458 (scm-progspace.o): New rule.
7459 * guile/guile-internal.h (pspace_smob): New typedef.
7460 (psscm_pspace_smob_pretty_printers): Declare.
7461 (psscm_pspace_smob_from_pspace): Declare.
7462 (psscm_scm_from_pspace): Declare.
7463 * guile/guile.c (initialize_gdb_module): Call
7464 gdbscm_initialize_pspaces.
7465 * guile/lib/gdb.scm: Export progspace symbols.
7466 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7467 support.
7468 (append-pretty-printer!): Ditto.
7469 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7470 Implement.
7471 * guile/scm-progspace.c: New file.
7472
7473 2014-06-03 Alan Modra <amodra@gmail.com>
7474
7475 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7476 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7477
7478 2014-06-02 Doug Evans <dje@google.com>
7479
7480 Add support for skeletonless type units.
7481 * dwarf2read.c (struct dwarf2_per_objfile): New member
7482 n_allocated_type_units.
7483 (struct dwarf2_per_objfile) <tu_stats>: New member
7484 nr_all_type_units_reallocs.
7485 (create_signatured_type_table_from_index): Initialize
7486 n_allocated_type_units
7487 (create_all_type_units): Ditto.
7488 (add_type_unit): Move up in file. New arg slot.
7489 All callers updated. Increase space for all_type_units more
7490 efficiently.
7491 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7492 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7493 (lookup_dwp_signatured_type): Ditto.
7494 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7495 All callers updated.
7496 (build_type_psymtabs_1): Leave type_unit_groups as
7497 NULL if no TUs present.
7498 (print_tu_stats): New function.
7499 (process_skeletonless_type_unit): New function.
7500 (process_dwo_file_for_skeletonless_type_units): New
7501 function.
7502 (process_skeletonless_type_units): New function.
7503 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7504 Call print tu_stats if debugging enabled.
7505
7506 2014-06-02 Pedro Alves <palves@redhat.com>
7507
7508 * breakpoint.c (build_target_command_list): Don't build a command
7509 list if we have any duplicate location that isn't a dprintf.
7510
7511 2014-06-02 Pedro Alves <palves@redhat.com>
7512
7513 * breakpoint.c (dprintf_breakpoint_hit): New function.
7514 (initialize_breakpoint_ops): Install it as dprintf's
7515 breakpoint_hit method.
7516
7517 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7518
7519 * source.c (substitute_path_rule_matches): Simplify using
7520 filename_ncmp instead of FILENAME_CMP.
7521
7522 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7523
7524 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7525
7526 2014-06-01 Ludovic Courtès <ludo@gnu.org>
7527
7528 * configure.ac: When Guile is available, check for the
7529 availability of 'scm_new_smob'.
7530 * configure, config.h.in: Regenerate.
7531 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7532 function.
7533
7534 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7535
7536 * frame.c (struct frame_info): Add stop_string field.
7537 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7538 (get_prev_frame_always): Old content moved into
7539 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7540 TRY_CATCH, handle MEMORY_ERROR exceptions.
7541 (frame_stop_reason_string): New function definition.
7542 * frame.h (unwind_stop_reason_to_string): Extend comment to
7543 mention frame_stop_reason_string.
7544 (frame_stop_reason_string): New function declaration.
7545 * stack.c (frame_info): Switch to frame_stop_reason_string.
7546 (backtrace_command_1): Switch to frame_stop_reason_string.
7547 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7548 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7549 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7550
7551 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7552
7553 * frame.c (frame_stop_reason_string): Rename to ...
7554 (unwind_stop_reason_to_string): this.
7555 * frame.h (frame_stop_reason_string): Rename to ...
7556 (unwind_stop_reason_to_string): this.
7557 * stack.c (frame_info): Update call to frame_stop_reason_string.
7558 (backtrace_command_1): Likewise.
7559 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7560 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7561
7562 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7563
7564 * frame.c (remove_prev_frame): New function.
7565 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7566 remove_prev_frame.
7567
7568 2014-05-29 Pedro Alves <palves@redhat.com>
7569
7570 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7571 and make it const. When a single-step decays to a continue,
7572 clear 'step', not 'hw_step'. Pass whether the caller wanted
7573 to step to user_visible_resume_ptid, not what we ask the
7574 target to do.
7575
7576 2014-05-29 Pedro Alves <palves@redhat.com>
7577
7578 * infrun.c (process_event_stop_test, handle_step_into_function)
7579 (handle_step_into_function_backward): Adjust.
7580 Don't set the even thread's stop_step and call stop_waiting before
7581 calling end_stepping_range. Instead do that ...
7582 (end_stepping_range): ... here. Take an ecs pointer parameter.
7583
7584 2014-05-29 Pedro Alves <palves@redhat.com>
7585
7586 * infrun.c (stop_stepping): Rename to ...
7587 (stop_waiting): ... this.
7588 (proceed): Update comment.
7589 (process_event_stop_test, handle_inferior_event)
7590 (handle_signal_stop, handle_step_into_function)
7591 (handle_step_into_function_backward): Update.
7592
7593 2014-05-29 Pedro Alves <palves@redhat.com>
7594
7595 * infcall.c (run_inferior_call): Don't check whether the current
7596 thread is running after the proceed call.
7597
7598 2014-05-29 Pedro Alves <palves@redhat.com>
7599 Tom Tromey <tromey@redhat.com>
7600
7601 * NEWS: Mention "maint set target-async", "set mi-async", and that
7602 background execution commands are now always available.
7603 * target.h (target_async_permitted): Update comment.
7604 * target.c (target_async_permitted, target_async_permitted_1):
7605 Default to 1.
7606 (set_target_async_command): Rename to ...
7607 (maint_set_target_async_command): ... this.
7608 (show_target_async_command): Rename to ...
7609 (maint_show_target_async_command): ... this.
7610 (_initialize_target): Adjust.
7611 * infcmd.c (prepare_execution_command): Make extern.
7612 * inferior.h (prepare_execution_command): Declare.
7613 * infrun.c (set_observer_mode): Leave target async alone.
7614 * mi/mi-interp.c (mi_interpreter_init): Install
7615 mi_on_sync_execution_done as sync_execution_done observer.
7616 (mi_on_sync_execution_done): New function.
7617 (mi_execute_command_input_handler): Don't print the prompt if we
7618 just started a synchronous command with an async target.
7619 (mi_on_resume): Check sync_execution before printing prompt.
7620 * mi/mi-main.h (mi_async_p): Declare.
7621 * mi/mi-main.c: Include gdbcmd.h.
7622 (mi_async_p): New function.
7623 (mi_async, mi_async_1): New globals.
7624 (set_mi_async_command, show_mi_async_command, mi_async): New
7625 functions.
7626 (exec_continue): Call prepare_execution_command.
7627 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7628 (mi_execute_async_cli_command): Use mi_async_p.
7629 (_initialize_mi_main): Install "set mi-async". Make
7630 "target-async" a deprecated alias.
7631
7632 2014-05-29 Pedro Alves <palves@redhat.com>
7633
7634 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7635 (_initialize_cli_interp): Adjust.
7636 * event-loop.c: Include "observer.h".
7637 (start_event_loop): Notify 'command_error' observers instead of
7638 calling display_gdb_prompt. Remove FIXME comment.
7639 * event-top.c (display_gdb_prompt): Remove call into the
7640 interpreters.
7641 * inf-loop.c: Include "observer.h".
7642 (inferior_event_handler): Notify 'command_error' observers instead
7643 of calling display_gdb_prompt.
7644 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7645 observers instead of calling display_gdb_prompt.
7646 * interps.c (interp_set): Don't call display_gdb_prompt.
7647 (current_interp_display_prompt_p): Delete.
7648 * interps.h (interp_prompt_p): Delete declaration.
7649 (interp_prompt_p_ftype): Delete.
7650 (struct interp_procs) <prompt_proc_p>: Delete field.
7651 (current_interp_display_prompt_p): Delete declaration.
7652 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7653 (_initialize_mi_interp): Adjust.
7654 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7655 'command_error' observers.
7656 (tui_on_sync_execution_done, tui_on_command_error): New
7657 functions.
7658 (tui_display_prompt_p): Delete.
7659 (_initialize_tui_interp): Adjust.
7660
7661 2014-05-29 Pedro Alves <palves@redhat.com>
7662
7663 PR gdb/13860
7664 * cli/cli-interp.c: Include infrun.h and observer.h.
7665 (cli_uiout, cli_interp): New globals.
7666 (cli_on_signal_received, cli_on_end_stepping_range)
7667 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7668 functions.
7669 (cli_interpreter_init): Install them as 'end_stepping_range',
7670 'signal_received' 'signal_exited', 'exited' and 'no_history'
7671 observers.
7672 (_initialize_cli_interp): Remove cli_interp local.
7673 * infrun.c (handle_inferior_event): Call the several stop reason
7674 observers instead of printing the stop reason directly.
7675 (end_stepping_range): New function.
7676 (print_end_stepping_range_reason, print_signal_exited_reason)
7677 (print_exited_reason, print_signal_received_reason)
7678 (print_no_history_reason): Make static, and add an uiout
7679 parameter. Print to that instead of to CURRENT_UIOUT.
7680 * infrun.h (print_end_stepping_range_reason)
7681 (print_signal_exited_reason, print_exited_reason)
7682 (print_signal_received_reason print_no_history_reason): New
7683 declarations.
7684 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7685 'mi_uiout'.
7686 <cli_uiout>: New field.
7687 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7688 uiout for CLI output. Install 'signal_received',
7689 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7690 observers.
7691 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7692 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7693 (mi_on_no_history): New functions.
7694 (ui_out_free_cleanup): Delete function.
7695 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7696 instead use the one already stored in the MI interpreter data.
7697 (mi_ui_out): Adjust.
7698 * tui/tui-interp.c: Include infrun.h and observer.h.
7699 (tui_interp): New global.
7700 (tui_on_signal_received, tui_on_end_stepping_range)
7701 (tui_on_signal_exited, tui_on_exited)
7702 (tui_on_no_history): New functions.
7703 (tui_init): Install them as 'end_stepping_range',
7704 'signal_received' 'signal_exited', 'exited' and 'no_history'
7705 observers.
7706 (_initialize_tui_interp): Delete tui_interp local.
7707
7708 2014-05-29 Pedro Alves <palves@redhat.com>
7709
7710 PR gdb/15713
7711 * linux-nat.c (linux_nat_resume_callback): Rename the second
7712 parameter to 'except'. Skip LP if it points to EXCEPT.
7713 (linux_nat_resume): Don't mark the event lwp as not stopped
7714 before resuming sibling lwps. Instead ask
7715 linux_nat_resume_callback to skip the event lwp. Mark it as not
7716 stopped after actually resuming it.
7717 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7718 resuming it.
7719 (wait_lwp): Mark the lwp as stopped here.
7720 (stop_wait_callback): Mark the lwp as not stopped right after
7721 resuming it. Don't mark lwps as stopped here.
7722 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7723 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7724
7725 2014-05-29 Pedro Alves <palves@redhat.com>
7726
7727 PR PR15693
7728 * infrun.c (resume): Determine how much to resume depending on
7729 whether the caller wanted a step, not whether we can hardware step
7730 the target. Mark all threads that we intend to run as running,
7731 unless we're calling an inferior function.
7732 (normal_stop): If the thread is running an infcall, don't finish
7733 thread state.
7734 * target.c (target_resume): Don't mark threads as running here.
7735
7736 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7737
7738 * serial.c (_initialize_serial): Remove support for
7739 the "set remotebaud" and "show remotebaud" commands.
7740 * NEWS: Add entry documenting the removal of that command.
7741
7742 2014-05-28 Yao Qi <yao@codesourcery.com>
7743
7744 * charset.c: Fix typo in comments.
7745
7746 2014-05-27 Gary Benson <gbenson@redhat.com>
7747
7748 * utils.c (internal_vproblem): Prompt for a bug report.
7749
7750 2014-05-26 Andy Wingo <wingo@igalia.com>
7751
7752 * guile/scm-arch.c (arscm_mark_arch_smob):
7753 * guile/scm-block.c (bkscm_mark_block_smob)
7754 (bkscm_mark_block_syms_progress_smob):
7755 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7756 * guile/scm-exception.c (exscm_mark_exception_smob):
7757 * guile/scm-frame.c (frscm_mark_frame_smob):
7758 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7759 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7760 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7761 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7762 (ppscm_mark_pretty_printer_worker_smob):
7763 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7764 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7765 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7766 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7767 mark functions.
7768 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7769 function.
7770
7771 2014-05-26 Andy Wingo <wingo@igalia.com>
7772 Doug Evans <xdje42@gmail.com>
7773
7774 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7775 empty_base_class. All uses updated.
7776 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7777 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7778 Adapt all callers.
7779 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7780 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7781 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7782 (gdbscm_gsmob_has_property_p, add_property_name)
7783 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7784 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7785 (gdb-object-has-property?, gdb-object-properties): Remove.
7786 (gdb-object-kind): Renamed from gsmob-kind.
7787
7788 2014-05-26 Andy Wingo <wingo@igalia.com>
7789
7790 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7791 * configure: Regenerate.
7792
7793 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7794
7795 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7796
7797 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7798
7799 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7800 (replay_memory_access_read_only, replay_memory_access_read_write)
7801 (replay_memory_access_types, replay_memory_access)
7802 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7803 (cmd_set_record_btrace, cmd_show_record_btrace)
7804 (cmd_show_replay_memory_access): New.
7805 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7806 (record_btrace_remove_breakpoint): Replace
7807 record_btrace_allow_memory_access with replay_memory_access.
7808 (_initialize_record_btrace): Add commands.
7809 * NEWS: Announce it.
7810
7811 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7812
7813 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7814
7815 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7816
7817 * MAINTAINERS (Write After Approval): Move self back from
7818 paper trail.
7819
7820 2014-05-22 Pedro Alves <palves@redhat.com>
7821
7822 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7823 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7824 (disable_randomization, enum exec_direction_kind)
7825 (execution_direction, stop_registers, start_remote)
7826 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7827 (wait_for_inferior, normal_stop, get_last_target_status)
7828 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7829 (insert_step_resume_breakpoint_at_sal)
7830 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7831 (set_step_info, print_stop_event, signal_stop_state)
7832 (signal_print_state, signal_pass_state, signal_stop_update)
7833 (signal_print_update, signal_pass_update)
7834 (update_signals_program_target, clear_exit_convenience_vars)
7835 (displaced_step_dump_bytes, update_observer_mode)
7836 (signal_catch_update, gdb_signal_from_command): Move
7837 declarations ...
7838 * infrun.h: ... to this new file.
7839 * amd64-tdep.c: Include infrun.h.
7840 * annotate.c: Include infrun.h.
7841 * arch-utils.c: Include infrun.h.
7842 * arm-linux-tdep.c: Include infrun.h.
7843 * arm-tdep.c: Include infrun.h.
7844 * break-catch-sig.c: Include infrun.h.
7845 * breakpoint.c: Include infrun.h.
7846 * common/agent.c: Include infrun.h instead of inferior.h.
7847 * corelow.c: Include infrun.h.
7848 * event-top.c: Include infrun.h.
7849 * go32-nat.c: Include infrun.h.
7850 * i386-tdep.c: Include infrun.h.
7851 * inf-loop.c: Include infrun.h.
7852 * infcall.c: Include infrun.h.
7853 * infcmd.c: Include infrun.h.
7854 * infrun.c: Include infrun.h.
7855 * linux-fork.c: Include infrun.h.
7856 * linux-nat.c: Include infrun.h.
7857 * linux-thread-db.c: Include infrun.h.
7858 * monitor.c: Include infrun.h.
7859 * nto-tdep.c: Include infrun.h.
7860 * procfs.c: Include infrun.h.
7861 * record-btrace.c: Include infrun.h.
7862 * record-full.c: Include infrun.h.
7863 * remote-m32r-sdi.c: Include infrun.h.
7864 * remote-mips.c: Include infrun.h.
7865 * remote-notif.c: Include infrun.h.
7866 * remote-sim.c: Include infrun.h.
7867 * remote.c: Include infrun.h.
7868 * reverse.c: Include infrun.h.
7869 * rs6000-tdep.c: Include infrun.h.
7870 * s390-linux-tdep.c: Include infrun.h.
7871 * solib-irix.c: Include infrun.h.
7872 * solib-osf.c: Include infrun.h.
7873 * solib-svr4.c: Include infrun.h.
7874 * target.c: Include infrun.h.
7875 * top.c: Include infrun.h.
7876 * windows-nat.c: Include infrun.h.
7877 * mi/mi-interp.c: Include infrun.h.
7878 * mi/mi-main.c: Include infrun.h.
7879 * python/py-threadevent.c: Include infrun.h.
7880
7881 2014-05-22 Pedro Alves <palves@redhat.com>
7882
7883 * infrun.c (handle_inferior_event): Store the exit code for
7884 --return-child-result here, instead of ...
7885 (print_exited_reason): ... here.
7886
7887 2014-05-21 Pedro Alves <palves@redhat.com>
7888
7889 PR gdb/13860
7890 * gdbthread.h (struct thread_control_state): New field
7891 `command_interp'.
7892 * infrun.c (follow_fork): Copy the new thread control field to the
7893 child fork thread.
7894 (clear_proceed_status_thread): Clear the new thread control field.
7895 (proceed): Set the new thread control field.
7896 * interps.h (command_interp): Declare.
7897 * interps.c (command_interpreter): New global.
7898 (command_interp): New function.
7899 (interp_exec): Set `command_interpreter' while here.
7900 * cli-out.c (cli_uiout_dtor): New function.
7901 (cli_ui_out_impl): Install it.
7902 * mi/mi-interp.c: Include cli-out.h.
7903 (mi_cmd_interpreter_exec): Add comment.
7904 (restore_current_uiout_cleanup): New function.
7905 (ui_out_free_cleanup): New function.
7906 (mi_on_normal_stop): If finishing an execution command started by
7907 a CLI command, or any kind of breakpoint-like event triggered,
7908 print the stop event to the output (CLI) stream.
7909 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7910
7911 2014-05-21 Pedro Alves <palves@redhat.com>
7912
7913 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7914 current source line having changed.
7915 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7916 * infrun.c (normal_stop): Adjust call to
7917 set_current_sal_from_frame.
7918 * source.c (clear_lines_listed_range): New function.
7919 (set_current_source_symtab_and_line, identify_source_line): Clear
7920 the lines listed range.
7921 (line_info): Handle the first "info line" after the current source
7922 line having changed.
7923 * stack.c (print_stack_frame): Remove center handling.
7924 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7925 center sal.line.
7926
7927 2014-05-21 Pedro Alves <palves@redhat.com>
7928
7929 * inf-child.c (inf_child_mourn_inferior): New function.
7930 * inf-child.h (inf_child_mourn_inferior): New declaration.
7931 * darwin-nat.c (darwin_mourn_inferior): Use
7932 inf_child_mourn_inferior.
7933 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7934 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7935 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7936 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7937 * windows-nat.c (windows_mourn_inferior): Likewise.
7938
7939 2014-05-21 Doug Evans <xdje42@gmail.com>
7940
7941 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7942
7943 2014-05-21 Doug Evans <xdje42@gmail.com>
7944
7945 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7946 (gdbscm_out_of_range_error): Ditto.
7947 (gdbscm_memory_error): Ditto.
7948 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7949 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7950 (gdbscm_out_of_range_error): Update.
7951 (gdbscm_memory_error): Update.
7952 (gdbscm_scm_to_target_string_unsafe): Delete.
7953
7954 2014-05-21 Pedro Alves <palves@redhat.com>
7955
7956 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7957 globals.
7958 (inf_child_open_target): New function.
7959 (inf_child_open): Use inf_child_open_target to push the target
7960 instead of erroring out.
7961 (inf_child_disconnect, inf_child_close)
7962 (inf_child_maybe_unpush_target): New functions.
7963 (inf_child_target): Install inf_child_disconnect and
7964 inf_child_close. Store a pointer to the returned object.
7965 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7966 declarations.
7967 * target.c (auto_connect_native_target): New global.
7968 (show_default_run_target): New function.
7969 (find_default_run_target): Return NULL if automatically connecting
7970 to the native target is disabled.
7971 (_initialize_target): Install set/show auto-connect-native-target.
7972 * NEWS: Mention "set auto-connect-native-target", and "target
7973 native".
7974 * linux-nat.c (super_close): New global.
7975 (linux_nat_close): Call super_close.
7976 (linux_nat_add_target): Store a pointer to the base class's
7977 to_close method.
7978 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7979 inf_child_maybe_unpush.
7980 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7981 already pushed.
7982 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7983 the inferior. Use inf_child_maybe_unpush_target.
7984 (inf_ttrace_attach): Don't push the target if it is already
7985 pushed.
7986 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7987 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7988 after mourning the inferior. Use inf_child_maybe_unpush_target.
7989 (darwin_attach_pid): Don't push the target if it is already
7990 pushed.
7991 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7992 mourning the inferior. Use inf_child_maybe_unpush_target.
7993 (gnu_detach): Use inf_child_maybe_unpush_target.
7994 * go32-nat.c (go32_create_inferior): Don't push the target if it
7995 is already pushed.
7996 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7997 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7998 (procfs_open): Rename to ...
7999 (procfs_open_1): ... this. Add target_ops parameter. Adjust
8000 comments. Can target_preopen before changing node. Call
8001 inf_child_open_target to push the target explicitly.
8002 (procfs_attach): Don't push the target if it is already pushed.
8003 (procfs_detach): Use inf_child_maybe_unpush_target.
8004 (procfs_create_inferior): Don't push the target if it is already
8005 pushed.
8006 (nto_native_ops): New global.
8007 (procfs_open): Reimplement.
8008 (procfs_native_open): New function.
8009 (init_procfs_targets): Install procfs_native_open as to_open of
8010 "target native". Store a pointer to the "native" target in
8011 nto_native_ops.
8012 * procfs.c (procfs_attach): Don't push the target if it is already
8013 pushed.
8014 (procfs_detach): Use inf_child_maybe_unpush_target.
8015 (procfs_mourn_inferior): Only unpush the target after mourning the
8016 inferior. Use inf_child_maybe_unpush_target.
8017 (procfs_init_inferior): Don't push the target if it is already
8018 pushed.
8019 * windows-nat.c (do_initial_windows_stuff): Don't push the target
8020 if it is already pushed.
8021
8022 2014-05-21 Pedro Alves <palves@redhat.com>
8023
8024 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8025 and "procfs" targets are now called "native" instead.
8026
8027 2014-05-21 Pedro Alves <palves@redhat.com>
8028
8029 * go32-nat.c (go32_open): Delete.
8030 (go32_target): Don't override the to_open method.
8031
8032 2014-05-21 Pedro Alves <palves@redhat.com>
8033
8034 * nto-procfs.c (procfs_can_run): New function.
8035 (nto_procfs_ops): New global.
8036 (init_procfs_targets): New, based on procfs_target. Install
8037 "target native" in addition to "target procfs".
8038 (_initialize_procfs): Call init_procfs_targets instead of adding
8039 the target here.
8040
8041 2014-05-21 Pedro Alves <palves@redhat.com>
8042
8043 * windows-nat.c (windows_target): Don't override to_shortname,
8044 to_longname or to_doc.
8045
8046 2014-05-21 Pedro Alves <palves@redhat.com>
8047
8048 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8049 to_doc.
8050
8051 2014-05-21 Pedro Alves <palves@redhat.com>
8052
8053 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8054 to_shortname, to_longname or to_doc.
8055
8056 2014-05-21 Pedro Alves <palves@redhat.com>
8057
8058 * go32-nat.c (go32_target): Don't override to_shortname,
8059 to_longname or to_doc.
8060
8061 2014-05-21 Pedro Alves <palves@redhat.com>
8062
8063 * inf-child.c (inf_child_open): Remove mention of "child".
8064 (inf_child_target): Rename target to "native" instead of "child".
8065
8066 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8067
8068 * Makefile.in (SFILES): Delete "regset.c".
8069 (COMMON_OBS): Delete "regset.o".
8070 * regset.c: Remove.
8071 * regset.h (regset_alloc): Delete prototype.
8072
8073 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8074
8075 * sparc-linux-tdep.c (sparc32_linux_gregset)
8076 (sparc32_linux_fpregset): New static regset structures.
8077 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8078 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8079 'fpregset' fields.
8080 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8081 (sparc64_linux_fpregset): New static regset structures.
8082 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8083 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8084 New static regset structures.
8085 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8086 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8087 New static regset structures.
8088 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8089 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8090 New static regset structures.
8091 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8092 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8093 New static regset structures.
8094 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8095
8096 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8097
8098 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8099 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8100 register maps ("regmaps") from "*regset" to "*regmap". Do this
8101 for all regmap types and variables.
8102 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8103 (sparc32_linux_supply_core_gregset)
8104 (sparc32_linux_collect_core_gregset)
8105 (sparc32_linux_supply_core_fpregset)
8106 (sparc32_linux_collect_core_fpregset): Likewise.
8107 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8108 (sparc_gregmap, sparc_fpregmap): ... these.
8109 (sparc_supply_gregset, sparc_collect_gregset)
8110 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8111 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8112 (_initialize_sparc_nat): Rename regmaps.
8113 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8114 (sparc_gregmap, sparc_fpregmap): ... these.
8115 (sparc_supply_gregset, sparc_collect_gregset)
8116 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8117 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8118 Rename macros to...
8119 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8120 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8121 Likewise.
8122 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8123 Rename to...
8124 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8125 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8126 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8127 regmaps.
8128 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8129 (sparc32_bsd_fpregset): Rename to...
8130 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8131 (sparc32_bsd_fpregmap): ... these.
8132 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8133 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8134 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8135 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8136 (struct sparc_gregmap, struct sparc_fpregmap)
8137 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8138 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8139 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8140 (sparc32_supply_regset, sparc32_collect_gregset)
8141 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8142 prototypes.
8143 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8144 (sparc64_linux_ptrace_gregmap): ... this.
8145 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8146 (_initialize_sparc64_linux_nat): Rename regmaps.
8147 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8148 (sparc64_linux_core_gregmap): ... this.
8149 (sparc64_linux_supply_core_gregset)
8150 (sparc64_linux_collect_core_gregset)
8151 (sparc64_linux_supply_core_fpregset)
8152 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8153 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8154 (sparc64_sol2_fpregset): Rename to...
8155 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8156 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8157 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8158 regmaps.
8159 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8160 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8161 (sparc64_bsd_fpregset): Rename to...
8162 (struct sparc_gregmap, sparc64_sol2_gregmap)
8163 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8164 (sparc64_bsd_fpregmap): ... these.
8165 (sparc64_supply_gregset, sparc64_collect_gregset)
8166 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8167 prototypes.
8168 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8169 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8170 (sparc64fbsd_gregmap): ... this.
8171 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8172 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8173 Rename regmaps.
8174 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8175 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8176 (sparc64nbsd_collect_fpregset): Likewise.
8177 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8178 (sparc64nbsd_gregmap): ... this.
8179 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8180 regmaps.
8181 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8182 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8183 (sparc64obsd_gregmap): ... this.
8184 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8185 regmaps.
8186 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8187 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8188 (sparc32nbsd_gregmap): ... this.
8189 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8190 regmaps.
8191
8192 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8193
8194 * score-tdep.c (score7_linux_gregset): New static regset
8195 structure.
8196 (score7_linux_regset_from_core_section): Remove dynamic regset
8197 allocation.
8198 (score_gdbarch_init): Drop allocation of tdep structure.
8199 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8200
8201 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8202
8203 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8204 regset structures.
8205 (am33_regset_from_core_section): Remove dynamic regset
8206 allocations.
8207
8208 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8209
8210 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8211 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8212 structures.
8213 (mips_linux_regset_from_core_section): Remove dynamic regset
8214 allocations.
8215 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8216 'gregset64', 'fpregset', and 'fpregset64'.
8217 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8218 deleted tdep fields.
8219
8220 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8221
8222 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8223 regset structures.
8224 (amd64_regset_from_core_section): Remove dynamic regset
8225 allocations.
8226 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8227 structure.
8228 (amd64obsd_regset_from_core_section): Remove dynamic regset
8229 allocation.
8230 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8231 Likewise.
8232 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8233 x86-common regset supply function.
8234 * i386-tdep.c (i386_collect_gregset): Make static.
8235 (i386_gregset): New global regset structure.
8236 (i386_fpregset, i386_xstateregset): New static regset structures.
8237 (i386_regset_from_core_section): Remove dynamic regset
8238 allocations.
8239 (i386_gdbarch_init): Remove initialization of tdep fields
8240 'gregset', 'fpregset', and 'xstateregset'.
8241 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8242 'fpregset', and 'xstateregset'.
8243 (i386_collect_gregset): Remove prototype.
8244 (i386_gregset): New declaration.
8245 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8246 structure.
8247 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8248 allocation.
8249
8250 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8251
8252 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8253 (arm_linux_vfpregset): New static regset structures.
8254 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8255 regset structures.
8256 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8257 and 'vfpregset' fields.
8258
8259 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8260
8261 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8262 (aarch64_linux_fpregset): New static regset structures.
8263 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8264 of regset structures.
8265 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8266 'fpregset' fields.
8267
8268 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8269
8270 * regset.h (struct regset): Remove gdbarch field.
8271 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8272 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8273 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8274 Likewise.
8275 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8276 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8277 (ppc32_linux_vsxregset): Likewise.
8278 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8279 via the regcache instead of the regset.
8280 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8281 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8282 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8283 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8284 Likewise.
8285
8286 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8287
8288 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8289 Constify structures.
8290 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8291 (alphanbsd_aout_gregset): Likewise.
8292 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8293 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8294 Likewise.
8295 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8296 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8297 Likewise.
8298 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8299 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8300 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8301 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8302 * m88k-tdep.c (m88k_gregset): Likewise.
8303 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8304 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8305 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8306 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8307 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8308 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8309 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8310 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8311 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8312 Likewise.
8313 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8314 * sh-tdep.h (sh_corefile_gregset): Likewise.
8315 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8316 * vax-tdep.c (vax_gregset): Likewise.
8317
8318 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8319
8320 Fix TLS access for -static -pthread.
8321 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8322 (try_thread_db_load_1): Initialize it.
8323 (thread_db_get_thread_local_address): Call it if LM is zero.
8324 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8325 * target.h (struct target_ops) (to_get_thread_local_address): Add
8326 load_module_addr comment.
8327
8328 2014-05-21 Pedro Alves <palves@redhat.com>
8329
8330 * dcache.c (dcache_read_memory_partial): If reading the cache line
8331 fails, fallback to reading just the memory the caller wanted.
8332
8333 2014-05-20 Doug Evans <dje@google.com>
8334
8335 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8336 instead of get_current_arch.
8337
8338 2014-05-20 Pedro Alves <palves@redhat.com>
8339
8340 * NEWS: Mention that compare-sections now works with all targets.
8341
8342 * remote.c (PACKET_qCRC): New enum value.
8343 (remote_verify_memory): Don't send qCRC if the target has no
8344 execution. Use packet_support/packet_ok. If the target doesn't
8345 support the qCRC packet, fallback to a deep memory copy.
8346 (compare_sections_command): Say "target image" instead of "remote
8347 executable".
8348 (_initialize_remote): Add PACKET_qCRC to the list of config
8349 packets that have no associated command. Extend comment.
8350 * target.c (simple_verify_memory, default_verify_memory): New
8351 function.
8352 * target.h (struct target_ops) <to_verify_memory>: Default to
8353 default_verify_memory.
8354 (simple_verify_memory): New declaration.
8355 * target-delegates.c: Regenerate.
8356
8357 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8358
8359 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8360
8361 2014-05-20 Hui Zhu <hui@codesourcery.com>
8362 Yao Qi <yao@codesourcery.com>
8363
8364 PR backtrace/16558
8365 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8366 and change address of sp and pc.
8367
8368 2014-05-19 Tom Tromey <tromey@redhat.com>
8369
8370 * gdbtypes.c (rank_function): Use XNEWVEC.
8371 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8372
8373 2014-05-19 Doug Evans <dje@google.com>
8374
8375 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8376 build_type_unit_groups and moved closer to only caller. Remove
8377 arguments. All references updated. Remove outdated .gdb_index
8378 comment.
8379 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8380 build_type_psymtabs_1.
8381
8382 2014-05-19 Doug Evans <dje@google.com>
8383
8384 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8385 n_type_unit_groups, all_type_unit_groups. All uses removed.
8386 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8387 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8388 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8389 (add_type_unit_group_to_table): Delete.
8390
8391 2014-05-19 Doug Evans <dje@google.com>
8392
8393 * eval.c (evaluate_subexp_standard): Add some comments.
8394
8395 2014-05-17 Doug Evans <xdje42@gmail.com>
8396
8397 * progspace.c (remove_program_space): Delete, unused.
8398 * progspace.h (remove_program_space): Ditto.
8399
8400 2014-05-17 Doug Evans <xdje42@gmail.com>
8401
8402 * inferior.c (prune_inferiors): Fix comment.
8403 (remove_inferior_command): Call prune_program_spaces.
8404
8405 2014-05-16 Doug Evans <dje@google.com>
8406
8407 New command line option -D.
8408 * NEWS: Mention it.
8409 * main.c (set_gdb_data_directory): New function.
8410 (captured_main): Recognize -D. Flag error for --data-directory "".
8411 Call set_gdb_data_directory.
8412 (print_gdb_help): Print --data-directory, -D.
8413 * main.h (set_gdb_data_directory): Declare.
8414 * top.c (staged_gdb_datadir): New static global.
8415 (set_gdb_datadir): Call set_gdb_data_directory
8416 (show_gdb_datadir): New function.
8417 (init_main): Update init of data-directory parameter.
8418
8419 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8420
8421 Import the "dirfd" gnulib module.
8422 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8423 * gnulib/aclocal.m4: Update.
8424 * gnulib/config.in: Update.
8425 * gnulib/configure: Update.
8426 * gnulib/import/Makefile.am: Update.
8427 * gnulib/import/Makefile.in: Update.
8428 * gnulib/import/dirfd.c: New.
8429 * gnulib/import/m4/dirfd.m4: New.
8430 * gnulib/import/m4/gnulib-cache.m4: Update.
8431 * gnulib/import/m4/gnulib-comp.m4: Update.
8432
8433 2014-05-16 Pierre Muller <muller@sourceware.org>
8434 Yao Qi <yao@codesourcery.com>
8435
8436 * valprint.c (print_wchar): Move the code on checking whether
8437 W is a printable wide char to the default branch of switch
8438 statement below. Call wchar_printable instead of gdb_iswprint.
8439
8440 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8441
8442 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8443 ldr.w and ldrd instructions.
8444
8445 2014-05-15 Doug Evans <dje@google.com>
8446
8447 * dwarf2read.c (read_structure_type): Delete outdated comments.
8448
8449 2014-05-14 Tom Tromey <tromey@redhat.com>
8450
8451 * macrocmd.c (print_macro_definition): Reindent.
8452
8453 2014-05-13 Doug Evans <xdje42@gmail.com>
8454
8455 * python/py-cmd.c (cmdpy_completer): Add comment.
8456 (completers): Make const.
8457
8458 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8459
8460 * infrun.c (resume): Remove should_resume (unused). Move up
8461 declaration of resume_ptid.
8462
8463 2014-05-13 Tom Tromey <tromey@redhat.com>
8464
8465 * language.h (unop_type_check): Remove.
8466 (binop_type_check): Don't declare.
8467
8468 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8469
8470 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8471 call to regcache_raw_collect.
8472
8473 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8474
8475 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8476 mi_console->quote as the quoting character.
8477
8478 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8479
8480 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8481
8482 2014-04-29 Tom Tromey <tromey@redhat.com>
8483
8484 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8485 "show debug varobj".
8486
8487 2014-05-07 Kyle McMartin <kyle@redhat.com>
8488
8489 Pushed by Joel Brobecker <brobecker@adacore.com>.
8490 * aarch64-tdep.c (aarch64_software_single_step): New function.
8491 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8492 with aarch64_software_single_step.
8493
8494 2014-05-05 Joel Brobecker <brobecker@adacore.com>
8495
8496 GDB 7.7.1 released.
8497
8498 2014-05-05 Keith Seitz <keiths@redhat.com>
8499
8500 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8501 variable or history value is successfully parsed.
8502
8503 2014-05-05 Yao Qi <yao@codesourcery.com>
8504 Pedro Alves <palves@redhat.com>
8505
8506 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8507 address of blocks that intersects the requested range. Trim
8508 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8509 sections.
8510 * ctf.c (ctf_xfer_partial): Likewise.
8511
8512 2014-05-05 Yao Qi <yao@codesourcery.com>
8513
8514 * printcmd.c (display_command): Remove the check to
8515 target_has_execution.
8516
8517 2014-05-03 Mark Kettenis <kettenis@gnu.org>
8518
8519 * ppcobsd-nat.c: Include "obsd-nat.h".
8520 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8521 add_target.
8522 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8523
8524 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8525
8526 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8527 and 16-bit signed and unsigned arguments. Update comment.
8528 (stap_parse_probe_arguments): Extend code to handle such
8529 arguments. Use warning instead of complaint to notify about
8530 unrecognized bitness.
8531
8532 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8533
8534 PR breakpoints/16889
8535 * stap-probe.c (stap_parse_probe_arguments): Simplify
8536 check for non-prefixed probes (i.e., probes whose
8537 arguments do not start with "N@"). Always set the
8538 argument type to a sane value.
8539
8540 2014-05-01 David Taylor <dtaylor@emc.com>
8541
8542 * remote.c (compare_sections_command): Add -r option to compare
8543 all loadable read-only sections.
8544
8545 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8546
8547 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8548 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8549 Update all callers.
8550 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8551 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8552 Remove unused CORE_ADDR argument. Update all callers.
8553
8554 2014-04-29 Pedro Alves <palves@redhat.com>
8555
8556 * remote.c (struct packet_config) <detect>: Extend comment.
8557 (add_packet_config_cmd): Don't set the config's detect or support
8558 fields here.
8559 (init_all_packet_configs): Also initialize the config's 'detect'
8560 field.
8561 (reset_all_packet_configs_support): New function.
8562 (remote_open_1): Call reset_all_packet_configs_support instead of
8563 init_all_packet_configs.
8564 (_initialize_remote): Initialize all packet configs. Assert that
8565 all packets have an associated command, except a few known
8566 outliers.
8567
8568 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8569
8570 * dwarf2read.c (read_subrange_type): Handle dynamic
8571 DW_AT_lower_bound attributes.
8572
8573 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8574
8575 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8576 dynamic bounds before computing its upper bound.
8577 (ada_discrete_type_low_bound): Same as above with the lower bound.
8578
8579 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8580
8581 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8582 range types. Adjust the array handling implementation to
8583 take advantage of this change.
8584 (resolve_dynamic_range): New function, mostly extracted from
8585 resolve_dynamic_bounds.
8586 (resolve_dynamic_array): New function, mostly extracted from
8587 resolve_dynamic_bounds.
8588 (resolve_dynamic_bounds): Delete.
8589 (resolve_dynamic_type): Reimplement. Add handling of
8590 TYPE_CODE_RANGE types.
8591
8592 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8593
8594 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8595 handling of parallel ___XA types.
8596
8597 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8598
8599 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8600 unnecessary second call to static_unwrap_type.
8601
8602 2014-04-27 Hui Zhu <hui@codesourcery.com>
8603
8604 * stack.c (print_frame_info): Call do_gdb_disassembly with
8605 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8606
8607 2014-04-26 Doug Evans <xdje42@gmail.com>
8608
8609 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8610
8611 2014-04-25 Pedro Alves <palves@redhat.com>
8612
8613 PR server/16255
8614 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8615 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8616 and newline from built string.
8617 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8618 (linux_ptrace_attach_fail_reason): ... this.
8619 * linux-nat.c (linux_nat_attach): Adjust to use
8620 linux_ptrace_attach_fail_reason.
8621
8622 2014-04-25 Pedro Alves <palves@redhat.com>
8623
8624 * remote.c (struct remote_state): Remove multi_process_aware,
8625 non_stop_aware, cond_tracepoints, cond_breakpoints,
8626 breakpoint_commands, fast_tracepoints, static_tracepoints,
8627 install_in_trace, disconnected_tracing,
8628 enable_disable_tracepoints, string_tracing, and
8629 augmented_libraries_svr4_read fields.
8630 (remote_multi_process_p): Move further below in the file.
8631 (struct packet_config): Add comments.
8632 (update_packet_config): Delete function.
8633 (show_packet_config_cmd): Use packet_config_support.
8634 (add_packet_config_cmd): Use NULL as set callback.
8635 (packet_ok): "set remote foo-packet"-style commands no longer
8636 change config->supported -- adjust.
8637 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8638 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8639 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8640 (PACKET_QNonStop, PACKET_multiprocess_feature)
8641 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8642 (PACKET_DisconnectedTracing_feature)
8643 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8644 (set_remote_protocol_packet_cmd): Delete function.
8645 (packet_config_support, packet_support): New functions.
8646 (set_remote_protocol_Z_packet_cmd): Don't call
8647 update_packet_config.
8648 (remote_query_attached, remote_pass_signals)
8649 (remote_program_signals, remote_threads_info)
8650 (remote_threads_extra_info, remote_start_remote): Use
8651 packet_support.
8652 (remote_start_remote): Use packet_config_support and
8653 packet_support.
8654 (init_all_packet_configs): Set all packets to unknown support,
8655 instead of calling update_packet_config.
8656 (remote_check_symbols): Use packet_support.
8657 (remote_supported_packet): Unconditionally set the packet config's
8658 support status.
8659 (remote_multi_process_feature, remote_non_stop_feature)
8660 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8661 (remote_breakpoint_commands_feature)
8662 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8663 (remote_install_in_trace_feature)
8664 (remote_disconnected_tracing_feature)
8665 (remote_enable_disable_tracepoint_feature)
8666 (remote_string_tracing_feature)
8667 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8668 (remote_protocol_features): Adjust to use remote_supported_packet
8669 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8670 "ConditionalTracepoints", "ConditionalBreakpoints",
8671 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8672 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8673 "EnableDisableTracepoints", and "tracenz".
8674 (remote_query_supported): Use packet_support.
8675 (remote_open_1): Adjust.
8676 (extended_remote_attach_1): Use packet_support. Switch on the
8677 result of packet_ok instead of checking whether the packet ended
8678 up disabled.
8679 (remote_vcont_resume): Use packet_support.
8680 (remote_resume, remote_stop_ns, fetch_register_using_p)
8681 (remote_prepare_to_store, store_register_using_P)
8682 (check_binary_download, remote_write_bytes): Use packet_support.
8683 (remote_vkill): Use packet_support. Switch on the result of
8684 packet_ok instead of checking whether the packet ended up
8685 disabled.
8686 (extended_remote_supports_disable_randomization): Use
8687 packet_support.
8688 (extended_remote_run): Switch on the result of packet_ok instead
8689 of checking whether the packet ended up disabled.
8690 (remote_insert_breakpoint, remote_remove_breakpoint)
8691 (remote_insert_watchpoint, remote_remove_watchpoint)
8692 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8693 packet_support.
8694 (remote_search_memory): Use packet_config_support.
8695 (remote_get_thread_local_address, remote_get_tib_address)
8696 (remote_hostio_send_command, remote_can_execute_reverse): Use
8697 packet_support.
8698 (remote_supports_cond_tracepoints)
8699 (remote_supports_cond_breakpoints)
8700 (remote_supports_fast_tracepoints)
8701 (remote_supports_static_tracepoints)
8702 (remote_supports_install_in_trace)
8703 (remote_supports_enable_disable_tracepoint)
8704 (remote_supports_string_tracing)
8705 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8706 the packet config says the feature is enabled or disabled.
8707 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8708 (remote_get_trace_status): Use packet_support.
8709 (remote_set_disconnected_tracing): Adjust to check whether the
8710 feature is enabled with packet_support.
8711 (remote_set_trace_buffer_size, remote_use_agent)
8712 (remote_can_use_agent, remote_supports_btrace): Use
8713 packet_support.
8714 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8715 Use packet_config_support.
8716 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8717 the packet config says the feature is enabled or disabled.
8718 (set_range_stepping): Use packet_support.
8719
8720 2014-04-25 Tom Tromey <tromey@redhat.com>
8721
8722 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8723 argument.
8724
8725 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8726
8727 * NEWS: Mention support for C99 variable length arrays.
8728
8729 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8730
8731 * ada-lang.c (standard_exc): Expand introductory comment.
8732
8733 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8734 Walfred Tedeschi <walfred.tedeschi@intel.com>
8735
8736 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8737 AVX512 registers.
8738 (amd64_linux_read_description): Add code to handle AVX512 xstate
8739 mask and return respective tdesc.
8740 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8741 and features/i386/x32-avx512-linux.c.
8742 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8743 (amd64_linux_core_read_description): Add code to handle AVX512
8744 xstate mask and return respective tdesc.
8745 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8746 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8747 calculation.
8748 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8749 (tdesc_amd64_avx512_linux): New prototype.
8750 (tdesc_x32_avx512_linux): Likewise.
8751 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8752 features/i386/x32-avx512.c.
8753 (amd64_ymm_avx512_names): New register names for pseudo
8754 registers YMM16-31.
8755 (amd64_ymmh_avx512_names): New register names for raw registers
8756 YMMH16-31.
8757 (amd64_k_names): New register names for K registers.
8758 (amd64_zmmh_names): New register names for ZMM raw registers.
8759 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8760 (amd64_xmm_avx512_names): New register names for XMM16-31
8761 registers.
8762 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8763 registers.
8764 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8765 if feature is present.
8766 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8767 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8768 (AMD64_NUM_REGS): Adjust to new number of registers.
8769 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8770 registers supplied via XSTATE by AVX512 registers.
8771 (i386_linux_read_description): Add case for AVX512.
8772 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8773 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8774 (i386_linux_core_read_description): Add case for AVX512.
8775 (i386_linux_init_abi): Install supported register note section
8776 for AVX512.
8777 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8778 AVX512.
8779 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8780 registers to be number of zmm7h + 1.
8781 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8782 * i386-tdep.c: Include features/i386/i386-avx512.c.
8783 (i386_zmm_names): Add ZMM pseudo register names array.
8784 (i386_zmmh_names): Add ZMM raw register names array.
8785 (i386_k_names): Add K raw register names array.
8786 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8787 registers. AVX512 has 16 more ZMM registers than there are YMM
8788 registers.
8789 (i386_zmmh_regnum_p): Add function to look up register number of
8790 ZMM raw registers.
8791 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8792 (i386_k_regnum_p): Likewise for K raw registers.
8793 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8794 registers added by AVX512.
8795 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8796 registers added by AVX512.
8797 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8798 added by AVX512.
8799 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8800 (i386_pseudo_register_name): Add ZMM pseudo registers.
8801 (i386_zmm_type): Construct and return vector registers type for ZMM
8802 registers.
8803 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8804 ZMM0-31 pseudo registers and K registers.
8805 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8806 and YMM16-31 registers from register cache.
8807 (i386_pseudo_register_write): Add code to write K, ZMM and
8808 YMM16-31 registers.
8809 (i386_register_reggroup_p): Add code to include/exclude AVX512
8810 registers in/from respective register groups.
8811 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8812 registers if feature is present in xcr0.
8813 (i386_gdbarch_init): Add code to initialize AVX512 feature
8814 variables in tdep structure, wire in pseudo registers and call
8815 initialize_tdesc_i386_avx512.
8816 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8817 variables.
8818 (i386_regnum): Add AVX512 registers.
8819 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8820 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8821 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8822 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8823 512 bits wide.
8824 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8825 (i386_ymm_avx512_regnum_p): Likewise.
8826 (i386_k_regnum_p): Likewise.
8827 (i386_zmm_regnum_p): Likewise.
8828 (i386_zmmh_regnum_p): Likewise.
8829 * i387-tdep.c : Update year in copyright notice.
8830 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8831 XSAVE buffer.
8832 (XSAVE_YMM_AVX512_ADDR): New macro.
8833 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8834 XSAVE buffer.
8835 (XSAVE_XMM_AVX512_ADDR): New macro.
8836 (xsave_avx512_k_offset): New table for K register offsets in
8837 XSAVE buffer.
8838 (XSAVE_AVX512_K_ADDR): New macro.
8839 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8840 in XSAVE buffer.
8841 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8842 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8843 buffer.
8844 (i387_collect_xsave): Add code to collect AVX512 registers from
8845 XSAVE buffer.
8846 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8847 of XMM16-31 registers.
8848 (I387_NUM_K_REGS): New define for number of K registers.
8849 (I387_K0_REGNUM): New define for K0 register number.
8850 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8851 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8852 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8853 registers.
8854 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8855 (I387_XMM16_REGNUM): New define for XMM16 register number.
8856 (I387_YMM0_REGNUM): New define for YMM0 register number.
8857 (I387_KEND_REGNUM): New define for last K register number.
8858 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8859 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8860 number.
8861 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8862 number.
8863 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8864 size.
8865 * features/Makefile: Add AVX512 related files.
8866 * features/i386/32bit-avx512.xml: New file.
8867 * features/i386/64bit-avx512.xml: Likewise.
8868 * features/i386/amd64-avx512-linux.c: Likewise.
8869 * features/i386/amd64-avx512-linux.xml: Likewise.
8870 * features/i386/amd64-avx512.c: Likewise.
8871 * features/i386/amd64-avx512.xml: Likewise.
8872 * features/i386/i386-avx512-linux.c: Likewise.
8873 * features/i386/i386-avx512-linux.xml: Likewise.
8874 * features/i386/i386-avx512.c: Likewise.
8875 * features/i386/i386-avx512.xml: Likewise.
8876 * features/i386/x32-avx512-linux.c: Likewise.
8877 * features/i386/x32-avx512-linux.xml: Likewise.
8878 * features/i386/x32-avx512.c: Likewise.
8879 * features/i386/x32-avx512.xml: Likewise.
8880 * regformats/i386/amd64-avx512-linux.dat: New file.
8881 * regformats/i386/amd64-avx512.dat: Likewise.
8882 * regformats/i386/i386-avx512-linux.dat: Likewise.
8883 * regformats/i386/i386-avx512.dat: Likewise.
8884 * regformats/i386/x32-avx512-linux.dat: Likewise.
8885 * regformats/i386/x32-avx512.dat: Likewise.
8886 * NEWS: Add note about new support for AVX512.
8887
8888
8889 2014-04-23 Pedro Alves <palves@redhat.com>
8890
8891 * breakpoint.c (insert_bp_location): Tolerate errors if the
8892 breakpoint is set in a user-loaded objfile.
8893 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8894 location is marked shlib_disabled. If the breakpoint is set in a
8895 user-loaded objfile is a GDB-side memory breakpoint, validate it
8896 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8897 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8898 flag.
8899 * mem-break.c (memory_validate_breakpoint): New function.
8900 * objfiles.c (userloaded_objfile_contains_address_p): New
8901 function.
8902 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8903 * target.h (memory_validate_breakpoint): New declaration.
8904
8905 2014-04-23 Pedro Alves <palves@redhat.com>
8906
8907 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8908 the breakpoint is set in a shared library, only suppress
8909 errors for software breakpoints, not hardware breakpoints.
8910
8911 2014-04-22 Pedro Alves <palves@redhat.com>
8912
8913 * infrun.c (schedlock_applies): New function, factored out from
8914 find_thread_needs_step_over.
8915 (find_thread_needs_step_over): Use it.
8916 (switch_back_to_stepped_thread): Always clear trap_expected if the
8917 step over is finished. Return early if scheduler locking applies.
8918 Look for the stepping thread and a potential step-over thread with
8919 a single loop.
8920 (currently_stepping_or_nexting_callback): Delete.
8921
8922 2014-04-22 Nick Clifton <nickc@redhat.com>
8923
8924 * NEWS: Mention that ARM sim now supports tracing.
8925
8926 2014-04-22 Yao Qi <yao@codesourcery.com>
8927
8928 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8929 to ...
8930 * tracefile.c (tracefile_fetch_registers): ... it. New
8931 function.
8932 * tracefile.h (tracefile_fetch_registers): Declare.
8933 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8934 tracefile_fetch_registers.
8935
8936 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8937
8938 PR gdb/14018
8939 * windows-nat.c (thread_rec): Don't display a warning when
8940 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8941 fails for any reason, set th->suspended to -1, so that we don't
8942 try to resume such a thread. Also, don't return NULL in these
8943 cases, to avoid completely ruin the session due to "PC register is
8944 not available" error.
8945 (do_windows_fetch_inferior_registers): Check errors in
8946 GetThreadContext call.
8947 (windows_continue): Accept an additional argument KILLED; if not
8948 zero, ignore errors in the SetThreadContext call, since the
8949 inferior was killed and is shutting down.
8950 (windows_resume, get_windows_debug_event)
8951 (windows_create_inferior, windows_mourn_inferior)
8952 (windows_kill_inferior): All callers of windows_continue changed
8953 to adjust to its new calling sequence.
8954
8955 2014-04-19 Yao Qi <yao@codesourcery.com>
8956
8957 * ctf.c (ctf_open): Call post_create_inferior.
8958
8959 2014-04-19 Yao Qi <yao@codesourcery.com>
8960
8961 * ctf.c (handle_id): New static variable.
8962 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8963 value. Get the declaration of event "register" and get length
8964 of field "contents".
8965
8966 2014-04-19 Yao Qi <yao@codesourcery.com>
8967
8968 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8969
8970 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8971
8972 * valops.c (oload_method_static): Remove unnecessary argument
8973 METHOD. Update all callers.
8974
8975 2014-04-18 Pedro alves <palves@redhat.com>
8976 Tom Tromey <tromey@redhat.com>
8977
8978 PR backtrace/15558
8979 * frame.c (get_prev_frame_1): Rename to ...
8980 (get_prev_frame_always): ... this, and make extern. Adjust.
8981 (skip_artificial_frames): Use get_prev_frame_always.
8982 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8983 (get_frame_unwind_stop_reason): Adjust to rename.
8984 * frame.h (get_prev_frame_always): Declare.
8985 * inline-frame.c: Include frame.h.
8986 (inline_frame_this_id): Use get_prev_frame_always.
8987
8988 2014-04-18 Tristan Gingold <gingold@adacore.com>
8989
8990 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8991 code by using bfd_mach_o_get_base_address.
8992
8993 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8994
8995 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8996 (spu_ax_pseudo_register_collect): New function.
8997 (spu_ax_pseudo_register_push_stack): Likewise.
8998 (spu_dwarf_reg_to_regnum): Likewise.
8999 (spu_gdbarch_init): Install them. Append DWARF unwinders.
9000
9001 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
9002
9003 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
9004 Replace FRAME argument with FRAME_ID.
9005 * gdbarch.c, gdbarch.h: Regenerate.
9006 * findvar.c (default_value_from_register): Add GDBARCH argument;
9007 replace FRAME by FRAME_ID. No longer call get_frame_id.
9008 (value_from_register): Update call to gdbarch_value_from_register.
9009 * value.h (default_value_from_register): Update prototype.
9010 * s390-linux-tdep.c (s390_value_from_register): Update interface
9011 and call to default_value_from_register.
9012 * spu-tdep.c (spu_value_from_register): Likewise.
9013
9014 * findvar.c (address_from_register): Remove TYPE argument.
9015 Do not call value_from_register; use gdbarch_value_from_register
9016 with null_frame_id instead.
9017 * value.h (address_from_register): Update prototype.
9018 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9019 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9020 address_from_register interface change.
9021
9022 2014-04-17 Yao Qi <yao@codesourcery.com>
9023
9024 * gdbtypes.h: Update comments to link to types and macros'
9025 definitions.
9026
9027 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
9028
9029 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9030
9031 2014-04-16 Keith Seitz <keiths@redhat.com>
9032
9033 PR gdb/15827
9034 * dwarf2read.c (skip_one_die): Check that all relative-offset
9035 sibling DIEs fall within range of the current reader's buffer.
9036 (read_partial_die): Likewise.
9037
9038 2014-04-16 Keith Seitz <keiths@redhat.com>
9039
9040 PR c++/16597
9041 * cp-namespace.c (lookup_symbol_file): If the type name of
9042 `this' is NULL, return immediately.
9043
9044 2014-04-14 Keith Seitz <keiths@redhat.com>
9045
9046 PR c++/16253
9047 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9048 from symbol_matches_domain in symtab.c. All local callers
9049 of symbol_matches_domain updated.
9050 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9051 search STRUCT_DOMAIN.
9052 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9053 independently. standard_lookup will do that automatically.
9054 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9055 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9056 (cp_lookup_symbol_in_namespace): Likewise.
9057 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9058 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9059 may return a STRUCT_DOMAIN match.
9060 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9061 * cp-support.c: Include language.h.
9062 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9063 VAR_DOMAIN.
9064 * psymtab.c (match_partial_symbol): Compare the requested
9065 domain with the symbol's domain directly.
9066 (lookup_partial_symbol): Likewise.
9067 * symtab.c (lookup_symbol_in_language): Explain when/why
9068 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9069 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9070 appropriate languages.
9071 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9072 and moved to ada-lang.c
9073 (lookup_block_symbol): Explain that this function only returns
9074 symbol matching the requested DOMAIN.
9075 Compare the requested domain with the symbol's domain directly.
9076 (iterate_over_symbols): Compare the requested domain with the
9077 symbol's domain directly.
9078 * symtab.h (symbol_matches_domain): Remove.
9079
9080 2014-04-14 Tom Tromey <tromey@redhat.com>
9081
9082 PR c++/15246:
9083 * c-exp.y (type_aggregate_p): New function.
9084 (qualified_name, classify_inner_name): Use it.
9085 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9086 and TYPE_TARGET_TYPE of an enum type.
9087 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9088 an enum type.
9089 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9090 handle TYPE_DECLARED_CLASS.
9091 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9092 types.
9093 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9094 * valops.c (enum_constant_from_type): New function.
9095 (value_aggregate_elt): Use it.
9096 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9097 TYPE_CODE_ENUM.
9098
9099 2014-04-14 Tom Tromey <tromey@redhat.com>
9100
9101 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9102 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9103 const.
9104 * value.h (value_aggregate_elt): Update.
9105
9106 2014-04-14 Tom Tromey <tromey@redhat.com>
9107
9108 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9109
9110 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9111
9112 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9113 (evaluate_subexp_standard): Pass noside argument.
9114 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9115 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9116 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9117 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9118 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9119
9120 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9121
9122 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9123 points to a constant blob.
9124
9125 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9126
9127 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9128 property and store it as the high bound and flag the range accordingly.
9129 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9130 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9131 * gdbtypes.h (enum range_flags): New enum.
9132 (struct range_bounds): Add flags member.
9133
9134 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9135
9136 * c-typeprint.c (c_type_print_varspec_suffix): Added
9137 check for not yet resolved high bound. If unresolved, print
9138 "variable length" string to the console instead of random
9139 length.
9140
9141 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9142
9143 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9144 value.
9145 (ada_template_to_fixed_record_type_1): Likewise.
9146 (ada_to_fixed_type_1): Likewise.
9147 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9148 (cp_print_value): Likewise.
9149 * d-valprint.c (dynamic_array_type): Likewise.
9150 * findvar.c (address_of_variable): Likewise.
9151 * jv-valprint.c (java_value_print): Likewise.
9152 * valops.c (value_ind): Likewise.
9153 * value.c (coerce_ref): Likewise.
9154
9155 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9156
9157 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9158 value and retrieve the dynamic type size.
9159
9160 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9161
9162 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9163 passed to sizeof is dynamic evaluate the argument to compute the length.
9164
9165 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9166 Joel Brobecker <brobecker@adacore.com>
9167
9168 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9169 (dwarf2_evaluate_property): New function.
9170 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9171 * dwarf2read.c (attr_to_dynamic_prop): New function.
9172 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9173 attribute.
9174 * gdbtypes.c: Include dwarf2loc.h.
9175 (is_dynamic_type): New function.
9176 (resolve_dynamic_type): New function.
9177 (resolve_dynamic_bounds): New function.
9178 (get_type_length): New function.
9179 (check_typedef): Use get_type_length to compute type length.
9180 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9181 (TYPE_LOW_BOUND_KIND): New macro.
9182 (is_dynamic_type): New function prototype.
9183 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9184 to resolve dynamic properties of the type. Update comment.
9185 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9186
9187 2014-04-14 Richard Henderson <rth@redhat.com>
9188
9189 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9190
9191 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9192 Doug Evans <xdje42@gmail.com>
9193
9194 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9195 dereference TYPE_CODE_REF values.
9196
9197 2014-04-11 Joel Brobecker <brobecker@adacore.com>
9198
9199 Revert the following changes due to regressions:
9200
9201 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9202 (dwarf2_evaluate_property): New function.
9203 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9204 * dwarf2read.c (attr_to_dynamic_prop): New function.
9205 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9206 attribute.
9207 * gdbtypes.c: Include dwarf2loc.h.
9208 (is_dynamic_type): New function.
9209 (resolve_dynamic_type): New function.
9210 (resolve_dynamic_bounds): New function.
9211 (get_type_length): New function.
9212 (check_typedef): Use get_type_length to compute type length.
9213 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9214 (TYPE_LOW_BOUND_KIND): New macro.
9215 (is_dynamic_type): New function prototype.
9216 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9217 to resolve dynamic properties of the type. Update comment.
9218 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9219
9220 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9221 passed to sizeof is dynamic evaluate the argument to compute the length.
9222
9223 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9224 value and retrieve the dynamic type size.
9225
9226 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9227 (ada_template_to_fixed_record_type_1): Likewise.
9228 (ada_to_fixed_type_1): Likewise.
9229 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9230 (cp_print_value): Likewise.
9231 * d-valprint.c (dynamic_array_type): Likewise.
9232 * eval.c (evaluate_subexp_with_coercion): Likewise.
9233 * findvar.c (address_of_variable): Likewise.
9234 * jv-valprint.c (java_value_print): Likewise.
9235 * valops.c (value_ind): Likewise.
9236 * value.c (coerce_ref): Likewise.
9237
9238 * c-typeprint.c (c_type_print_varspec_suffix): Added
9239 check for not yet resolved high bound. If unresolved, print
9240 "variable length" string to the console instead of random
9241 length.
9242
9243 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9244 property and store it as the high bound and flag the range accordingly.
9245 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9246 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9247 * gdbtypes.h (enum range_flags): New enum.
9248 (struct range_bounds): Add flags member.
9249
9250 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9251 points to a constant blob.
9252
9253 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9254 (evaluate_subexp_standard): Pass noside argument.
9255 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9256 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9257 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9258 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9259 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9260
9261 2014-04-11 Keith Seitz <keiths@redhat.com>
9262
9263 PR c++/16675
9264 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9265 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9266 reference types.
9267
9268 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9269
9270 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9271 (evaluate_subexp_standard): Pass noside argument.
9272 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9273 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9274 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9275 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9276 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9277
9278 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9279
9280 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9281 points to a constant blob.
9282
9283 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9284
9285 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9286 property and store it as the high bound and flag the range accordingly.
9287 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9288 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9289 * gdbtypes.h (enum range_flags): New enum.
9290 (struct range_bounds): Add flags member.
9291
9292 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9293
9294 * c-typeprint.c (c_type_print_varspec_suffix): Added
9295 check for not yet resolved high bound. If unresolved, print
9296 "variable length" string to the console instead of random
9297 length.
9298
9299 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9300
9301 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9302 (ada_template_to_fixed_record_type_1): Likewise.
9303 (ada_to_fixed_type_1): Likewise.
9304 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9305 (cp_print_value): Likewise.
9306 * d-valprint.c (dynamic_array_type): Likewise.
9307 * eval.c (evaluate_subexp_with_coercion): Likewise.
9308 * findvar.c (address_of_variable): Likewise.
9309 * jv-valprint.c (java_value_print): Likewise.
9310 * valops.c (value_ind): Likewise.
9311 * value.c (coerce_ref): Likewise.
9312
9313 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9314
9315 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9316 value and retrieve the dynamic type size.
9317
9318 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9319
9320 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9321 passed to sizeof is dynamic evaluate the argument to compute the length.
9322
9323 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9324
9325 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9326 (dwarf2_evaluate_property): New function.
9327 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9328 * dwarf2read.c (attr_to_dynamic_prop): New function.
9329 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9330 attribute.
9331 * gdbtypes.c: Include dwarf2loc.h.
9332 (is_dynamic_type): New function.
9333 (resolve_dynamic_type): New function.
9334 (resolve_dynamic_bounds): New function.
9335 (get_type_length): New function.
9336 (check_typedef): Use get_type_length to compute type length.
9337 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9338 (TYPE_LOW_BOUND_KIND): New macro.
9339 (is_dynamic_type): New function prototype.
9340 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9341 to resolve dynamic properties of the type. Update comment.
9342 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9343
9344 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9345
9346 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9347 declaring high/low bounds and change uses accordingly. Call
9348 create_range_type instead of create_static_range_type.
9349 * gdbtypes.c (create_range_type): New function.
9350 (create_range_type): Convert bounds into struct bound_prop and pass
9351 them to create_range_type.
9352 * gdbtypes.h (struct bound_prop): New struct.
9353 (create_range_type): New function prototype.
9354 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9355 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9356 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9357 part of the bound.
9358 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9359
9360 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9361
9362 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9363 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9364 * ada-lang.c: All uses of create_range_type updated.
9365 * coffread.c: All uses of create_range_type updated.
9366 * dwarf2read.c: All uses of create_range_type updated.
9367 * f-exp.y: All uses of create_range_type updated.
9368 * m2-valprint.c: All uses of create_range_type updated.
9369 * mdebugread.c: All uses of create_range_type updated.
9370 * stabsread.c: All uses of create_range_type updated.
9371 * valops.c: All uses of create_range_type updated.
9372 * valprint.c: All uses of create_range_type updated.
9373
9374 2014-04-10 Pedro Alves <palves@redhat.com>
9375
9376 * breakpoint.c (single_step_breakpoints)
9377 (single_step_gdbarch): Move up in the file.
9378 (one_breakpoint_xfer_memory): New function, factored out from ...
9379 (breakpoint_xfer_memory): ... here. Also process single-step
9380 breakpoints.
9381
9382 2014-04-09 Tristan Gingold <gingold@adacore.com>
9383
9384 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9385 comments.
9386 (darwin_decode_exception_message): Free port only after use.
9387
9388 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9389
9390 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9391 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9392 when setting the size of call_length.
9393
9394 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9395
9396 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9397 dereference TYPE_CODE_REF values.
9398
9399 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9400
9401 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9402 end of warning message.
9403
9404 2014-04-03 Doug Evans <dje@google.com>
9405
9406 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9407 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9408
9409 2014-04-02 Alan Modra <amodra@gmail.com>
9410
9411 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9412 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9413 (struct symbol_file_add_from_memory_args): Add size field.
9414 (find_vdso_size): New function.
9415 (add_vsyscall_page): Attempt to find vdso size.
9416
9417 2014-04-01 Doug Evans <dje@google.com>
9418
9419 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9420
9421 2014-04-01 Tristan Gingold <gingold@adacore.com>
9422
9423 * darwin-nat.c (darwin_encode_reply): Add prototype.
9424 (darwin_decode_exception_message): Reply to unknown inferiors.
9425 (darwin_decode_message): Handle message by id. Ignore message
9426 to unknown inferior.
9427 (darwin_wait): Discard unknown messages, add debug trace.
9428
9429 2014-03-31 Doug Evans <dje@google.com>
9430
9431 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9432 comp_dir_string.
9433
9434 2014-03-31 Doug Evans <dje@google.com>
9435
9436 New option "set print symbol-loading".
9437 * NEWS: Mention it.
9438 * solib.c (solib_read_symbols): Only print symbol loading messages
9439 if requested.
9440 (solib_add): If symbol loading is in "brief" mode, notify user
9441 symbols are being loaded.
9442 (reload_shared_libraries_1): Ditto.
9443 * symfile.c (print_symbol_loading_off): New static global.
9444 (print_symbol_loading_brief): New static global.
9445 (print_symbol_loading_full): New static global.
9446 (print_symbol_loading_enums): New static global.
9447 (print_symbol_loading): New static global.
9448 (print_symbol_loading_p): New function.
9449 (symbol_file_add_with_addrs): Only print symbol loading messages
9450 if requested.
9451 (_initialize_symfile): Register "print symbol-loading" set/show
9452 command.
9453 * symfile.h (print_symbol_loading_p): Declare.
9454
9455 2014-03-30 Doug Evans <xdje42@gmail.com>
9456
9457 * infrun.c (set_last_target_status): New function.
9458 (handle_inferior_event): Call it.
9459
9460 2014-03-30 Doug Evans <xdje42@gmail.com>
9461
9462 * inferior.h (enum stop_kind): Improve comment.
9463
9464 2014-03-28 Joel Brobecker <brobecker@adacore.com>
9465
9466 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9467 a reference, strip the reference layer before calling
9468 the lang_ops value_has_mutated callback.
9469
9470 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9471
9472 Remove some globals from our parser.
9473 * language.c (unk_lang_parser): Add "struct parser_state"
9474 argument.
9475 * language.h (struct language_defn) <la_parser>: Likewise.
9476 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9477 (initialize_expout): Add "struct parser_state" argument.
9478 Rewrite function to use the parser state.
9479 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9480 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9481 write_exp_elt_longcst, write_exp_elt_dblcst,
9482 write_exp_elt_decfloatcst, write_exp_elt_type,
9483 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9484 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9485 write_dollar_variable): Likewise.
9486 (parse_exp_in_context_1): Use parser state.
9487 (insert_type_address_space): Add "struct parser_state" argument.
9488 Use parser state.
9489 (increase_expout_size): New function.
9490 * parser-defs.h: Forward declare "struct language_defn" and
9491 "struct parser_state".
9492 (expout, expout_size, expout_ptr): Remove extern declarations.
9493 (parse_gdbarch, parse_language): Rewrite macro declarations to
9494 accept the parser state.
9495 (struct parser_state): New struct.
9496 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9497 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9498 write_exp_elt_decfloatcst, write_exp_elt_type,
9499 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9500 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9501 write_exp_msymbol, write_dollar_variable,
9502 mark_struct_expression, insert_type_address_space): Add "struct
9503 parser_state" argument.
9504 (increase_expout_size): New function.
9505 * utils.c (do_clear_parser_state): New function.
9506 (make_cleanup_clear_parser_state): Likewise.
9507 * utils.h (make_cleanup_clear_parser_state): New function
9508 prototype.
9509 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9510 Update calls to write_exp* in order to pass the parser state.
9511 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9512 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9513 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9514 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9515 * stap-probe.c (stap_parse_register_operand): Likewise.
9516 (stap_parse_single_operand): Likewise.
9517 (stap_parse_argument_1): Likewise.
9518 (stap_parse_argument): Use parser state.
9519 * stap-probe.h: Include "parser-defs.h".
9520 (struct stap_parse_info) <pstate>: New field.
9521 * c-exp.y (parse_type): Rewrite to use parser state.
9522 (yyparse): Redefine to c_parse_internal.
9523 (pstate): New global variable.
9524 (parse_number): Add "struct parser_state" argument.
9525 (write_destructor_name): Likewise.
9526 (type_exp): Update calls to write_exp* and similars in order to
9527 use parser state.
9528 (exp1, exp, variable, qualified_name, space_identifier,
9529 typename, typebase): Likewise.
9530 (write_destructor_name, parse_number, lex_one_token,
9531 classify_name, classify_inner_name, c_parse): Add "struct
9532 parser_state" argument. Update function to use parser state.
9533 * c-lang.h: Forward declare "struct parser_state".
9534 (c_parse): Add "struct parser_state" argument.
9535 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9536 (yyparse): Redefine macro to ada_parse_internal.
9537 (pstate): New variable.
9538 (write_int, write_object_renaming, write_var_or_type,
9539 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9540 type_int, type_long, type_long_long, type_float, type_double,
9541 type_long_double, type_char, type_boolean, type_system_address):
9542 Add "struct parser_state" argument.
9543 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9544 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9545 var_or_type, aggregate, aggregate_component_list,
9546 positional_list, others, component_group,
9547 component_associations): Update calls to write_exp* and similar
9548 functions in order to use parser state.
9549 (ada_parse, write_var_from_sym, write_int,
9550 write_exp_op_with_string, write_object_renaming,
9551 find_primitive_type, write_selectors, write_ambiguous_var,
9552 write_var_or_type, write_name_assoc, type_int, type_long,
9553 type_long_long, type_float, type_double, type_long_double,
9554 type_char, type_boolean, type_system_address): Add "struct
9555 parser_state" argument. Adjust function to use parser state.
9556 * ada-lang.c (parse): Likewise.
9557 * ada-lang.h: Forward declare "struct parser_state".
9558 (ada_parse): Add "struct parser_state" argument.
9559 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9560 calls to both functions.
9561 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9562 parser state.
9563 (yyparse): Redefine macro to f_parse_internal.
9564 (pstate): New variable.
9565 (parse_number): Add "struct parser_state" argument.
9566 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9567 and similars in order to use parser state.
9568 (parse_number): Adjust code to use parser state.
9569 (yylex): Likewise.
9570 (f_parse): New function.
9571 * f-lang.h: Forward declare "struct parser_state".
9572 (f_parse): Add "struct parser_state" argument.
9573 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9574 parser state.
9575 (yyparse): Redefine macro for java_parse_internal.
9576 (pstate): New variable.
9577 (push_expression_name, push_expression_name, insert_exp): Add
9578 "struct parser_state" argument.
9579 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9580 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9581 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9582 PostIncrementExpression, PostDecrementExpression,
9583 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9584 UnaryExpressionNotPlusMinus, CastExpression,
9585 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9586 RelationalExpression, EqualityExpression, AndExpression,
9587 ExclusiveOrExpression, InclusiveOrExpression,
9588 ConditionalAndExpression, ConditionalOrExpression,
9589 ConditionalExpression, Assignment, LeftHandSide): Update
9590 calls to write_exp* and similars in order to use parser state.
9591 (parse_number): Ajust code to use parser state.
9592 (yylex): Likewise.
9593 (java_parse): New function.
9594 (push_variable): Add "struct parser_state" argument. Adjust
9595 code to user parser state.
9596 (push_fieldnames, push_qualified_expression_name,
9597 push_expression_name, insert_exp): Likewise.
9598 * jv-lang.h: Forward declare "struct parser_state".
9599 (java_parse): Add "struct parser_state" argument.
9600 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9601 parser state.
9602 (yyparse): Redefine macro to m2_parse_internal.
9603 (pstate): New variable.
9604 (type_exp, exp, fblock, variable, type): Update calls to
9605 write_exp* and similars to use parser state.
9606 (yylex): Likewise.
9607 (m2_parse): New function.
9608 * m2-lang.h: Forward declare "struct parser_state".
9609 (m2_parse): Add "struct parser_state" argument.
9610 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9611 * objc-lang.h: Forward declare "struct parser_state".
9612 (end_msglist): Add "struct parser_state" argument.
9613 * p-exp.y (parse_type): Rewrite macro to use parser state.
9614 (yyparse): Redefine macro to pascal_parse_internal.
9615 (pstate): New variable.
9616 (parse_number): Add "struct parser_state" argument.
9617 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9618 write_exp* and similars in order to use parser state.
9619 (parse_number, yylex): Adjust code to use parser state.
9620 (pascal_parse): New function.
9621 * p-lang.h: Forward declare "struct parser_state".
9622 (pascal_parse): Add "struct parser_state" argument.
9623 * go-exp.y (parse_type): Rewrite macro to use parser state.
9624 (yyparse): Redefine macro to go_parse_internal.
9625 (pstate): New variable.
9626 (parse_number): Add "struct parser_state" argument.
9627 (type_exp, exp1, exp, variable, type): Update calls to
9628 write_exp* and similars in order to use parser state.
9629 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9630 to use parser state.
9631 (go_parse): Likewise.
9632 * go-lang.h: Forward declare "struct parser_state".
9633 (go_parse): Add "struct parser_state" argument.
9634
9635 2014-03-27 Doug Evans <dje@google.com>
9636
9637 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9638
9639 2014-03-27 Doug Evans <dje@google.com>
9640
9641 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9642 Remove argument abbrev_section. All callers updated.
9643
9644 2014-03-27 Doug Evans <dje@google.com>
9645
9646 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9647 addr_base, ranges_base.
9648
9649 2014-03-26 Keith Seitz <keiths@redhat.com>
9650
9651 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9652 types, not VAR_DOMAIN.
9653
9654 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9655
9656 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9657 "ra" registers.
9658 * features/nios2-linux.c: Regenerated.
9659 * features/nios2.c: Regenerated.
9660
9661 2014-03-25 Pedro Alves <palves@redhat.com>
9662
9663 * cli/cli-script.c (script_from_file): Force the interpreter to
9664 sync mode.
9665
9666 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9667
9668 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9669 small stack allocation.
9670
9671 2014-03-24 Tristan Gingold <gingold@adacore.com>
9672
9673 * darwin-nat.c (exc_server): Remove unused prototype.
9674 (darwin_dump_message): Correctly display data on x86_64.
9675 (darwin_encode_reply): Fix style.
9676 Add comments and fix indentation.
9677
9678 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9679
9680 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9681
9682 2014-03-22 Doug Evans <xdje42@gmail.com>
9683
9684 * infcmd.c: Whitespace fixes.
9685 (interrupt_command): Merge two function comments into one.
9686
9687 2014-03-22 Doug Evans <xdje42@gmail.com>
9688
9689 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9690 All uses updated.
9691
9692 2014-03-22 Yao Qi <yao@codesourcery.com>
9693
9694 * remote.c (target_read_live_memory): Remove.
9695 (memory_xfer_live_readonly_partial): Rename it to
9696 remote_xfer_live_readonly_partial. Remove argument 'object'.
9697 All callers updated. Call remote_read_bytes_1
9698 instead of target_read_live_memory.
9699 * tracepoint.c (set_traceframe_number): Remove.
9700 (make_cleanup_restore_traceframe_number): Likewise .
9701 * tracepoint.h (set_traceframe_number): Remove declaration.
9702 (make_cleanup_restore_traceframe_number): Likewise.
9703
9704 2014-03-22 Yao Qi <yao@codesourcery.com>
9705
9706 * remote.c (remote_read_bytes): Move code on reading from the
9707 remote stub to ...
9708 (remote_read_bytes_1): ... here. New function.
9709
9710 2014-03-22 Yao Qi <yao@codesourcery.com>
9711
9712 * ctf.c (ctf_xfer_partial): Check the return value of
9713 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9714 return TARGET_XFER_UNAVAILABLE.
9715 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9716 * target.c (target_read_live_memory): Move it to remote.c.
9717 (memory_xfer_live_readonly_partial): Likewise.
9718 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9719 * remote.c (target_read_live_memory): Moved from target.c.
9720 (memory_xfer_live_readonly_partial): Likewise.
9721 (remote_read_bytes): Factored out from
9722 memory_xfer_partial_1.
9723
9724 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9725
9726 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9727 NULL pointer.
9728
9729 2014-03-21 Pedro Alves <palves@redhat.com>
9730
9731 * infrun.c (normal_stop): Extend comment.
9732
9733 2014-03-21 Hui Zhu <hui@codesourcery.com>
9734 Pedro Alves <palves@redhat.com>
9735
9736 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9737 static buffer.
9738 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9739 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9740 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9741
9742 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9743
9744 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9745 `z' formatted output modifier.
9746
9747 2014-03-20 Tom Tromey <tromey@redhat.com>
9748 Sergio Durigan Junior <sergiodj@redhat.com>
9749
9750 * probe.c (parse_probes): Turn assert into an ordinary error.
9751 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9752 exceptions when parsing probes. Rearrange the code for clarity.
9753
9754 2014-03-20 Tom Tromey <tromey@redhat.com>
9755
9756 PR gdb/14135
9757 * top.c (execute_command): Only dispatch events if the command
9758 started the target.
9759
9760 2014-03-20 Tom Tromey <tromey@redhat.com>
9761
9762 PR cli/15718
9763 * infcall.c: Include event-top.h.
9764 (run_inferior_call): Call async_disable_stdin if needed.
9765
9766 2014-03-20 Pedro Alves <palves@redhat.com>
9767
9768 * infrun.c (prepare_to_proceed): Delete.
9769 (thread_still_needs_step_over): New function.
9770 (find_thread_needs_step_over): New function.
9771 (proceed): If the current thread needs a step-over, set its
9772 steping_over_breakpoint flag. Adjust to use
9773 find_thread_needs_step_over instead of prepare_to_proceed.
9774 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9775 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9776 breakpoint.
9777 (switch_back_to_stepped_thread): Step over breakpoints of all
9778 threads not the stepping thread, before switching back to the
9779 stepping thread.
9780
9781 2014-03-20 Pedro Alves <palves@redhat.com>
9782
9783 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9784 extern.
9785 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9786 * infrun.c (saved_singlestep_ptid)
9787 (stepping_past_singlestep_breakpoint): Delete.
9788 (resume): Remove stepping_past_singlestep_breakpoint handling.
9789 (proceed): Store the prev_pc of the stepping thread too.
9790 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9791 singlestep_pc.
9792 (enum infwait_states): Delete infwait_thread_hop_state.
9793 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9794 field.
9795 (handle_inferior_event): Adjust.
9796 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9797 handling and the thread-hop code. Before removing single-step
9798 breakpoints, check whether the thread hit a single-step breakpoint
9799 of another thread. If it did, the trap is not a random signal.
9800 (switch_back_to_stepped_thread): If the event thread hit a
9801 single-step breakpoint, unblock it before switching to the
9802 stepping thread. Handle the case of the stepped thread having
9803 advanced already.
9804 (keep_going): Handle the case of the current thread moving past a
9805 single-step breakpoint.
9806
9807 2014-03-20 Pedro Alves <palves@redhat.com>
9808
9809 PR breakpoints/7143
9810 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9811 are being stepped over.
9812 (breakpoint_address_match): Make extern.
9813 * breakpoint.h (breakpoint_address_match): New declaration.
9814 * inferior.h (stepping_past_instruction_at): New declaration.
9815 * infrun.c (struct step_over_info): New type.
9816 (step_over_info): New global.
9817 (set_step_over_info, clear_step_over_info)
9818 (stepping_past_instruction_at): New functions.
9819 (handle_inferior_event): Clear the step-over info when
9820 trap_expected is cleared.
9821 (resume): Remove now stale comment.
9822 (clear_proceed_status): Clear step-over info.
9823 (proceed): Adjust step-over handling to set or clear the step-over
9824 info instead of removing all breakpoints.
9825 (handle_signal_stop): When setting up a thread-hop, don't remove
9826 breakpoints here.
9827 (stop_stepping): Clear step-over info.
9828 (keep_going): Adjust step-over handling to set or clear step-over
9829 info and then always inserting breakpoints, instead of removing
9830 all breakpoints when stepping over one.
9831
9832 2014-03-20 Pedro Alves <palves@redhat.com>
9833
9834 * infrun.c (previous_inferior_ptid): Adjust comment.
9835 (deferred_step_ptid): Delete.
9836 (infrun_thread_ptid_changed, prepare_to_proceed)
9837 (init_wait_for_inferior): Adjust.
9838 (handle_signal_stop): Delete deferred_step_ptid handling.
9839
9840 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9841
9842 PR gdb/15358
9843 * defs.h (sync_quit_force_run): New declaration.
9844 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9845 * event-top.c (async_sigterm_handler): New declaration.
9846 (async_sigterm_token): New variable.
9847 (async_init_signals): Create also async_sigterm_token.
9848 (async_sigterm_handler): New function.
9849 (sync_quit_force_run): New variable.
9850 (handle_sigterm): Replace quit_force call by other calls.
9851 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9852
9853 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9854
9855 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9856 offset into SPE pseudo registers.
9857
9858 2014-03-18 Pedro Alves <palves@redhat.com>
9859
9860 PR gdb/13860
9861 * inferior.h (print_stop_event): Declare.
9862 * infrun.c (print_stop_event): New, factored out from ...
9863 (normal_stop): ... this.
9864 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9865 of bpstat_print/print_stack_frame.
9866
9867 2014-03-17 Tom Tromey <tromey@redhat.com>
9868
9869 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9870
9871 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9872
9873 * ada-lang.c (decode_constrained_packed_array): Perform a
9874 minimal coercion for reference with coerce_ref instead of
9875 ada_coerce_ref.
9876
9877 2014-03-17 Tristan Gingold <gingold@adacore.com>
9878
9879 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9880 (darwin_solib_create_inferior_hook): Emit a warning if version
9881 is unhandled.
9882
9883 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9884
9885 * python/py-value.c (get_field_flag): Cast flag_name argument to
9886 PyObject_GetAttrString to support Python 2.4.
9887
9888 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9889
9890 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9891 (Global Maintainers): Remove Jan Kratochvil.
9892
9893 2014-03-14 Pedro Alves <palves@redhat.com>
9894
9895 * inferior.h (terminal_ours_for_output): Rename to ...
9896 (child_terminal_ours_for_output): ... this.
9897 (terminal_save_ours): Rename to ...
9898 (child_terminal_save_ours): ... this.
9899 (terminal_ours): Rename to ...
9900 (child_terminal_ours): ... this.
9901 (terminal_inferior): Rename to ...
9902 (child_terminal_inferior): ... this.
9903 (terminal_init_inferior): Rename to ...
9904 (child_terminal_init_inferior): ... this.
9905 (terminal_init_inferior_with_pgrp): Rename to ...
9906 (child_terminal_init_inferior_with_pgrp): ... this.
9907 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9908 (child_terminal_init_with_pgrp): ... this.
9909 (terminal_save_ours): Rename to ...
9910 (child_terminal_save_ours): ... this.
9911 (terminal_init_inferior): Rename to ...
9912 (child_terminal_init): ... this. Adjust.
9913 (terminal_inferior): Rename to ...
9914 (child_terminal_inferior): ... this.
9915 (terminal_ours_for_output): Rename to ...
9916 (child_terminal_ours_for_output): ... this. Adjust.
9917 (terminal_ours): Rename to ...
9918 (child_terminal_ours): ... this.
9919 (terminal_ours_1): Rename to ...
9920 (child_terminal_ours_1): ... this. Adjust.
9921 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9922 * windows-nat.c (do_initial_windows_stuff): Adjust.
9923 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9924 (gnu_terminal_init): ... this. Adjust.
9925 (gnu_target): Adjust.
9926 * inf-child.c (inf_child_target): Adjust.
9927
9928 2014-03-13 Doug Evans <xdje42@gmail.com>
9929
9930 PR guile/16612
9931 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9932 new eq?-hashtab.
9933
9934 2014-03-13 Doug Evans <xdje42@gmail.com>
9935
9936 * value.c (record_latest_value): Call release_value_or_incref
9937 instead of release_value.
9938
9939 2014-03-13 Pedro Alves <palves@redhat.com>
9940
9941 * procfs.c (procfs_target): Don't override to_shortname,
9942 to_longname or to_doc.
9943
9944 2014-03-13 Pedro Alves <palves@redhat.com>
9945
9946 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9947 Unix in user visible strings.
9948
9949 2014-03-12 Stan Shebs <stan@codesourcery.com>
9950
9951 * gdbtypes.h: Annotate comments for Doxygen, add a page
9952 block comment with some general info.
9953
9954 2014-03-12 Pedro Alves <palves@redhat.com>
9955
9956 * infcmd.c (prepare_execution_command): New function, factored out
9957 from several execution commands.
9958 (run_command_1, continue_command, step_1, jump_command)
9959 (signal_command, until_command, advance_command, finish_command)
9960 (attach_command): Use prepare_execution_command.
9961
9962 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9963
9964 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9965 (MAX_BPTS): Define.
9966 (MAX_WPTS): Define.
9967 (struct arm_linux_thread_points): Removed.
9968 (struct arm_linux_process_info): New.
9969 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9970 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9971 (arm_linux_find_breakpoints_by_tid): Removed.
9972 (struct arch_lwp_info): New.
9973 (arm_linux_find_process_pid): New functions.
9974 (arm_linux_add_process): New functions.
9975 (arm_linux_process_info_get): New functions.
9976 (arm_linux_forget_process): New function.
9977 (arm_linux_get_debug_reg_state): New function.
9978 (struct update_registers_data): New.
9979 (update_registers_callback): New function.
9980 (arm_linux_insert_hw_breakpoint1): Updated.
9981 (arm_linux_remove_hw_breakpoint1): Updated.
9982 (arm_linux_insert_hw_breakpoint): Updated.
9983 (arm_linux_remove_hw_breakpoint): Updated.
9984 (arm_linux_insert_watchpoint): Updated.
9985 (arm_linux_remove_watchpoint): Updated.
9986 (arm_linux_new_thread): Updated.
9987 (arm_linux_prepare_to_resume): New function.
9988 (arm_linux_new_fork): New function.
9989 (_initialize_arm_linux_nat): Updated.
9990
9991 2014-03-12 Pedro Alves <palves@redhat.com>
9992
9993 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9994
9995 2014-03-12 Tom Tromey <tromey@redhat.com>
9996
9997 * inf-child.c (return_zero): New function.
9998 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9999 * aix-thread.c (aix_thread_inferior_created): New function.
10000 (aix_thread_attach): Remove.
10001 (init_aix_thread_ops): Don't set to_attach.
10002 (_initialize_aix_thread): Register inferior_created observer.
10003 * corelow.c (init_core_ops): Don't set to_attach or
10004 to_create_inferior.
10005 * exec.c (init_exec_ops): Don't set to_attach or
10006 to_create_inferior.
10007 * infcmd.c (run_command_1): Use find_run_target. Make direct
10008 target calls.
10009 (attach_command): Use find_attach_target. Make direct target
10010 calls.
10011 * record-btrace.c (init_record_btrace_ops): Don't set
10012 to_create_inferior.
10013 * record-full.c (record_full_can_async_p, record_full_is_async_p):
10014 Remove.
10015 (init_record_full_ops, init_record_full_core_ops): Update. Don't
10016 set to_create_inferior.
10017 * target.c (complete_target_initialization): Add assertion.
10018 (target_create_inferior): Remove.
10019 (find_default_attach, find_default_create_inferior): Remove.
10020 (find_attach_target, find_run_target): New functions.
10021 (find_default_is_async_p, find_default_can_async_p)
10022 (target_supports_non_stop, target_attach): Remove.
10023 (init_dummy_target): Don't set to_create_inferior or
10024 to_supports_non_stop.
10025 * target.h (struct target_ops) <to_attach>: Add comment. Remove
10026 TARGET_DEFAULT_FUNC.
10027 <to_create_inferior>: Add comment.
10028 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10029 TARGET_DEFAULT_RETURN.
10030 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10031 (find_attach_target, find_run_target): Declare.
10032 (target_create_inferior): Remove.
10033 (target_has_execution_1): Update comment.
10034 (target_supports_non_stop): Remove.
10035 * target-delegates.c: Rebuild.
10036
10037 2014-03-12 Pedro Alves <palves@redhat.com>
10038
10039 * inf-child.h: Update comment to not mention Unix.
10040
10041 2014-03-12 Pedro Alves <palves@redhat.com>
10042
10043 * inf-child.c: Update top comment to not mention Unix. Add
10044 generic comment describing how this target is meant to be used.
10045 (inf_child_post_attach, inf_child_post_startup_inferior)
10046 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10047 Unix in comment.
10048
10049 2014-03-12 Pedro Alves <palves@redhat.com>
10050
10051 * nto-procfs.c: Include inf-child.h.
10052 (procfs_ops): Delete global.
10053 (procfs_can_run): Delete method.
10054 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10055 target pointer instead of referencing procfs_ops.
10056 (procfs_prepare_to_store): Delete.
10057 (init_procfs_ops): Delete function.
10058 (procfs_target): New function, based on init_procfs_ops, but
10059 inherit inf_child_target.
10060 (_initialize_procfs): Use procfs_target.
10061
10062 2014-03-12 Pedro Alves <palves@redhat.com>
10063
10064 * windows-nat.c: Include inf-child.h.
10065 (windows_ops): Delete global.
10066 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10067 methods.
10068 (init_windows_ops): Delete function.
10069 (windows_target): New function, based on init_windows_ops, but
10070 inherit inf_child_target.
10071 (_initialize_windows_nat): Use windows_target. Install x86
10072 specific target methods here.
10073
10074 2014-03-10 Doug Evans <xdje42@gmail.com>
10075
10076 * guile/guile.c (call_initialize_gdb_module): New function.
10077 (initialize_guile): Replace call to scm_init_guile with call to
10078 scm_with_guile.
10079
10080 2014-03-10 Joel Brobecker <brobecker@adacore.com>
10081
10082 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10083 in call to TYPE_CODE macro.
10084
10085 2014-03-10 Jerome Guitton <guitton@adacore.com>
10086
10087 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10088 Resolve tagged types to full view.
10089
10090 2014-03-10 Hui Zhu <hui@codesourcery.com>
10091
10092 * target.h (target_insert_breakpoint): Remove "hardware" from its
10093 comments.
10094
10095 2014-03-07 Doug Evans <dje@google.com>
10096
10097 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10098
10099 2014-03-07 Doug Evans <dje@google.com>
10100
10101 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10102 Remove unused local comp_dir_attr. Assert exactly one of
10103 stub_comp_unit_die, stub_comp_dir is non-NULL.
10104
10105 2014-03-07 Joel Brobecker <brobecker@adacore.com>
10106
10107 * target.h (complete_target_initialization, add_target):
10108 Add comment.
10109
10110 2014-03-07 Pedro Alves <palves@redhat.com>
10111
10112 * go32-nat.c: Include inf-child.h.
10113 (go32_ops): Delete global.
10114 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10115 Delete methods.
10116 (go32_create_inferior): Push the passed in target pointer instead
10117 of referencing go32_ops.
10118 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10119 (go32_target): New function, based on init_go32_ops, but inherit
10120 inf_child_target.
10121 (_initialize_go32_nat): Use go32_target. Move parts of
10122 init_go32_ops here.
10123
10124 2014-03-06 Joel Brobecker <brobecker@adacore.com>
10125
10126 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10127 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10128 SYMBOL_VALUE_ADDRESS.
10129 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10130
10131 2014-03-06 Yao Qi <yao@codesourcery.com>
10132
10133 * breakpoint.c (get_tracepoint_by_number): Remove argument
10134 optional_p. All callers updated. Adjust comments. Update
10135 output message.
10136 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10137
10138 2014-03-06 Yao Qi <yao@codesourcery.com>
10139
10140 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10141 early if get_number returns zero. Use 'p' instead of 'args'.
10142
10143 2014-03-06 Yao Qi <yao@codesourcery.com>
10144
10145 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10146 message.
10147
10148 2014-03-06 Yao Qi <yao@codesourcery.com>
10149
10150 PR breakpoints/16508
10151 * tracepoint.c (check_trace_running): New function.
10152 (trace_find_command): Move code to check_trace_running and
10153 call check_trace_running.
10154 (trace_find_pc_command): Likewise.
10155 (trace_find_tracepoint_command): Likewise.
10156 (trace_find_line_command): Likewise.
10157 (trace_find_range_command): Likewise.
10158 * tracepoint.h (check_trace_running): Likewise.
10159 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10160
10161 2014-03-06 Yao Qi <yao@codesourcery.com>
10162
10163 * target.h (struct target_ops) <to_traceframe_info>: Use
10164 TARGET_DEFAULT_NORETURN (tcomplain ()).
10165 * target-delegates.c: Regenerated.
10166
10167 2014-03-05 Pedro Alves <palves@redhat.com>
10168
10169 PR gdb/16575
10170 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10171 void. Update comment.
10172 (dcache_xfer_memory): Delete.
10173 (dcache_read_memory_partial): New, based on the read bits of
10174 dcache_xfer_memory.
10175 (dcache_update): Add status parameter. Use ULONGEST for len, and
10176 adjust. Discard cache lines if the reason for the update was
10177 error.
10178 * dcache.h (dcache_xfer_memory): Delete declaration.
10179 (dcache_read_memory_partial): New declaration.
10180 (dcache_update): Update prototype.
10181 * target.c (raw_memory_xfer_partial): Update the dcache here.
10182 (memory_xfer_partial_1): Don't handle dcache writes here.
10183
10184 2014-03-05 Mike Frysinger <vapier@gentoo.org>
10185
10186 * remote-sim.c (gdbsim_load): Add const to prog.
10187
10188 2014-03-03 Tom Tromey <tromey@redhat.com>
10189
10190 * elfread.c (probe_key): Change to bfd_data.
10191 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10192 now per-BFD, not per-objfile.
10193 * stap-probe.c (stap_probe_destroy): Update comment.
10194 (handle_stap_probe): Allocate on the per-BFD obstack.
10195
10196 2014-03-03 Tom Tromey <tromey@redhat.com>
10197
10198 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10199 * breakpoint.c (create_longjmp_master_breakpoint): Use
10200 get_probe_address.
10201 (add_location_to_breakpoint, bkpt_probe_insert_location)
10202 (bkpt_probe_remove_location): Update.
10203 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10204 * elfread.c (elf_symfile_relocate_probe): Remove.
10205 (elf_probe_fns): Update.
10206 (insert_exception_resume_breakpoint): Change type of "probe"
10207 parameter to bound_probe.
10208 (check_exception_resume): Update.
10209 * objfiles.c (objfile_relocate1): Don't relocate probes.
10210 * probe.c (bound_probe_s): New typedef.
10211 (parse_probes): Use get_probe_address. Set sal's objfile.
10212 (find_probe_by_pc): Return a bound_probe.
10213 (collect_probes): Return a VEC(bound_probe_s).
10214 (compare_probes): Update.
10215 (gen_ui_out_table_header_info): Change type of "probes"
10216 parameter. Update.
10217 (info_probes_for_ops): Update.
10218 (get_probe_address): New function.
10219 (probe_safe_evaluate_at_pc): Update.
10220 * probe.h (struct probe_ops) <get_probe_address>: New field.
10221 <set_semaphore, clear_semaphore>: Add objfile parameter.
10222 (struct probe) <objfile>: Remove field.
10223 <arch>: New field.
10224 <address>: Update comment.
10225 (struct bound_probe): New.
10226 (find_probe_by_pc): Return a bound_probe.
10227 (get_probe_address): Declare.
10228 * solib-svr4.c (struct probe_and_action) <address>: New field.
10229 (hash_probe_and_action, equal_probe_and_action): Update.
10230 (register_solib_event_probe): Add address parameter.
10231 (solib_event_probe_at): Update.
10232 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10233 get_probe_address.
10234 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10235 (stap_get_probe_address): New function.
10236 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10237 (compile_probe_arg): Update.
10238 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10239 address.
10240 (handle_stap_probe): Don't relocate the probe.
10241 (stap_relocate): Remove.
10242 (stap_gen_info_probes_table_values): Update.
10243 (stap_probe_ops): Remove stap_relocate.
10244 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10245 (debug_sym_probe_fns): Update.
10246 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10247 * symtab.c (init_sal): Use memset.
10248 * symtab.h (struct symtab_and_line) <objfile>: New field.
10249 * tracepoint.c (start_tracing, stop_tracing): Update.
10250
10251 2014-03-03 Tom Tromey <tromey@redhat.com>
10252
10253 * probe.h (parse_probes, find_probe_by_pc)
10254 (find_probes_in_objfile): Fix comments.
10255
10256 2014-03-02 Doug Evans <xdje42@gmail.com>
10257
10258 * infrun.c (handle_signal_stop): Replace test for
10259 TARGET_WAITKIND_STOPPED with an assert.
10260
10261 2014-03-02 Doug Evans <xdje42@gmail.com>
10262
10263 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10264
10265 2014-03-02 Doug Evans <xdje42@gmail.com>
10266
10267 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10268
10269 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10270
10271 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10272
10273 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10274
10275 * i386obsd-nat.c: Include "obsd-nat.h".
10276 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10277 add_target.
10278 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10279
10280 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10281
10282 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10283
10284 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10285
10286 * mips64obsd-nat.c: Include "obsd-nath".
10287 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10288 add_target
10289 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10290
10291 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10292
10293 * amd64obsd-nat.c: Include "obsd-nat,h.
10294 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10295 add_target.
10296 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10297
10298 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10299
10300 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10301 (find_overload_match): Update call to find_oload_champ.
10302 (find_oload_champ_namespace_loop): Likewise
10303
10304 2014-02-28 Mark Kettenis <kettenis@gnu.org>
10305
10306 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10307
10308 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10309 * config/sparc/obsd64.mh: New file.
10310 * sparc64obsd-nat.c: New file.
10311
10312 * obsd-nat.h: New file.
10313 * obsd-nat.c: New file.
10314 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10315 (ALLDEPFILES): Add obsd-nat.c.
10316
10317 2014-02-28 Tom Tromey <tromey@redhat.com>
10318
10319 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10320 * cli-out.h (cli_ui_out_impl): Now const.
10321 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10322 * ui-out.c (struct ui_out) <impl>: Now const.
10323 (default_ui_out_impl): Now const.
10324 (ui_out_new): Make 'impl' parameter const.
10325 * ui-out.h (ui_out_new): Update.
10326
10327 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10328
10329 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10330
10331 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10332
10333 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10334
10335 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10336
10337 Additional PR 8882 fix.
10338 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10339
10340 2014-02-27 Pedro Alves <palves@redhat.com>
10341
10342 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10343 isn't set.
10344
10345 2014-02-27 Pedro Alves <palves@redhat.com>
10346
10347 PR 12702
10348 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10349 * nat/linux-waitpid.c: Include string.h.
10350 (status_to_str): Moved here and made extern.
10351 * nat/linux-waitpid.h (status_to_str): New declaration.
10352
10353 2014-02-27 Hui Zhu <hui@codesourcery.com>
10354
10355 PR 12702
10356 * infrun.c (ptid_match): Move ...
10357 * common/ptid.c (ptid_match): ... here.
10358 * inferior.h (ptid_match): Move ...
10359 * common/ptid.h (ptid_match): ... here.
10360
10361 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10362
10363 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10364 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10365 gdb_target_obs.
10366
10367 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10368
10369 * obsd-tdep.c (obsd_auxv_parse): New function.
10370 (obsd_init_abi): Set auxv_parse.
10371
10372 * gdbarch.sh (auxv_parse): New.
10373 * gdbarch.h: Regenerated.
10374 * gdbarch.c: Regenerated.
10375 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10376
10377 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10378
10379 * guile/scm-value.c (gdbscm_history_append_x): New function.
10380 (value_functions): Add it.
10381
10382 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10383
10384 * dwarf2read.c (attr_value_as_address): New function.
10385 (dwarf2_find_base_address, read_call_site_scope): Use
10386 attr_value_as_address in place of DW_ADDR.
10387 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10388 the low and high addresses. Slight rework of the handling
10389 of the high pc being a constant form, and limit it to
10390 DWARF verson 4 or higher.
10391 (dwarf2_record_block_ranges): Likewise.
10392 (read_partial_die): Likewise.
10393 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10394
10395 2014-02-26 Tom Tromey <tromey@redhat.com>
10396
10397 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10398
10399 2014-02-26 Tom Tromey <tromey@redhat.com>
10400
10401 * elfread.c (elf_read_minimal_symbols): Return early if
10402 minimal symbols have already been read. Add "ei" parameter.
10403 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10404 * minsyms.c (prim_record_minimal_symbol_full): Update.
10405 * objfiles.h (struct objstats) <n_minsyms>: Move...
10406 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10407 * symmisc.c (print_objfile_statistics): Update.
10408
10409 2014-02-26 Tom Tromey <tromey@redhat.com>
10410
10411 * elfread.c (elf_read_minimal_symbols): New function, from
10412 elf_symfile_read.
10413 (elf_symfile_read): Call it.
10414
10415 2014-02-26 Tom Tromey <tromey@redhat.com>
10416
10417 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10418 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10419 (lookup_minimal_symbol_solib_trampoline)
10420 (lookup_minimal_symbol_by_pc_section_1)
10421 (lookup_minimal_symbol_and_objfile): Update.
10422 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10423 Don't allocate a minimal symbol if minsyms have already been read.
10424 (build_minimal_symbol_hash_tables): Update.
10425 (install_minimal_symbols): Do nothing if minsyms already read.
10426 Use the per-BFD obstack.
10427 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10428 * objfiles.c (allocate_objfile): Call
10429 terminate_minimal_symbol_table later.
10430 (have_minimal_symbols): Update.
10431 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10432 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10433 Move from struct objfile.
10434 <minsyms_read>: New field.
10435 (struct objfile) <msymbols, minimal_symbol_count,
10436 msymbol_hash, msymbol_demangled_hash>: Move.
10437 (ALL_OBJFILE_MSYMBOLS): Update.
10438 * symfile.c (read_symbols): Set minsyms_read.
10439 (reread_symbols): Update.
10440 * symmisc.c (dump_objfile, dump_msymbols): Update.
10441
10442 2014-02-26 Tom Tromey <tromey@redhat.com>
10443
10444 * minsyms.c (msymbols_sort): Remove.
10445 * minsyms.h (msymbols_sort): Remove.
10446 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10447 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10448 * elfread.c (elf_symtab_read): Don't add section offsets.
10449 * xcoffread.c (record_minimal_symbol): Don't add section offset
10450 to minimal symbol address.
10451 * somread.c (text_offset, data_offset): Remove.
10452 (som_symtab_read): Don't add section offsets to minimal symbol
10453 addresses.
10454 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10455 Don't add section offsets to minimal symbols.
10456 * coffread.c (coff_symtab_read): Don't add section offsets
10457 to minimal symbol addresses.
10458 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10459 to minimal symbol addresses.
10460 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10461 section offset to minimal symbol addresses.
10462 * mdebugread.c (parse_partial_symbols): Don't add section
10463 offset to minimal symbol addresses.
10464 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10465 offset to minimal symbol addresses.
10466
10467 2014-02-26 Tom Tromey <tromey@redhat.com>
10468
10469 * ada-lang.c (ada_main_name): Update.
10470 (ada_add_standard_exceptions): Update.
10471 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10472 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10473 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10474 * auxv.c (ld_so_xfer_auxv): Update.
10475 * avr-tdep.c (avr_scan_prologue): Update.
10476 * ax-gdb.c (gen_var_ref): Update.
10477 * blockframe.c (get_pc_function_start)
10478 (find_pc_partial_function_gnu_ifunc): Update.
10479 * breakpoint.c (create_overlay_event_breakpoint)
10480 (create_longjmp_master_breakpoint)
10481 (create_std_terminate_master_breakpoint)
10482 (create_exception_master_breakpoint): Update.
10483 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10484 * c-valprint.c (c_val_print): Update.
10485 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10486 * common/agent.c (agent_look_up_symbols): Update.
10487 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10488 * dwarf2loc.c (call_site_to_target_addr): Update.
10489 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10490 * elfread.c (elf_gnu_ifunc_record_cache)
10491 (elf_gnu_ifunc_resolve_by_got): Update.
10492 * findvar.c (default_read_var_value): Update.
10493 * frame.c (inside_main_func): Update.
10494 * frv-tdep.c (frv_frame_this_id): Update.
10495 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10496 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10497 Update.
10498 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10499 (hppa_hpux_find_dummy_bpaddr): Update.
10500 * hppa-tdep.c (hppa_symbol_address): Update.
10501 * infcmd.c (until_next_command): Update.
10502 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10503 Update.
10504 * linespec.c (minsym_found, add_minsym): Update.
10505 * linux-nat.c (get_signo): Update.
10506 * linux-thread-db.c (inferior_has_bug): Update.
10507 * m32c-tdep.c (m32c_return_value)
10508 (m32c_m16c_address_to_pointer): Update.
10509 * m32r-tdep.c (m32r_frame_this_id): Update.
10510 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10511 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10512 * maint.c (maintenance_translate_address): Update.
10513 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10514 (frob_address): New function.
10515 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10516 frob_address. Rename parameter to "pc_in".
10517 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10518 addresses.
10519 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10520 Update.
10521 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10522 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10523 * objc-lang.c (find_objc_msgsend): Update.
10524 * objfiles.c (objfile_relocate1): Update.
10525 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10526 * p-valprint.c (pascal_val_print): Update.
10527 * parse.c (write_exp_msymbol): Update.
10528 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10529 (ppc_elfv2_skip_entrypoint): Update.
10530 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10531 * printcmd.c (build_address_symbolic, msym_info)
10532 (address_info): Update.
10533 * proc-service.c (ps_pglobal_lookup): Update.
10534 * psymtab.c (find_pc_sect_psymtab_closer)
10535 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10536 Change msymbol parameter to bound_minimal_symbol.
10537 * ravenscar-thread.c (get_running_thread_id): Update.
10538 * remote.c (remote_check_symbols): Update.
10539 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10540 address.
10541 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10542 * solib-dsbt.c (lm_base): Update.
10543 * solib-frv.c (lm_base, main_got): Update.
10544 * solib-irix.c (locate_base): Update.
10545 * solib-som.c (som_solib_create_inferior_hook)
10546 (link_map_start): Update.
10547 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10548 * solib-svr4.c (elf_locate_base, enable_break): Update.
10549 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10550 (flush_ea_cache): Update.
10551 * stabsread.c (define_symbol, scan_file_globals): Update.
10552 * stack.c (find_frame_funname): Update.
10553 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10554 (debug_qf_find_pc_sect_symtab): Update.
10555 * symfile.c (simple_read_overlay_table)
10556 (simple_overlay_update): Update.
10557 * symfile.h (struct quick_symbol_functions)
10558 <find_pc_sect_symtab>: Change type of msymbol to
10559 bound_minimal_symbol.
10560 * symmisc.c (dump_msymbols): Update.
10561 * symtab.c (find_pc_sect_symtab_via_partial)
10562 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10563 (search_symbols, print_msymbol_info): Update.
10564 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10565 (MSYMBOL_VALUE_ADDRESS): Redefine.
10566 (BMSYMBOL_VALUE_ADDRESS): New macro.
10567 * tracepoint.c (scope_info): Update.
10568 * tui/tui-disasm.c (tui_find_disassembly_address)
10569 (tui_get_begin_asm_address): Update.
10570 * valops.c (find_function_in_inferior): Update.
10571 * value.c (value_static_field, value_fn_field): Update.
10572
10573 2014-02-26 Tom Tromey <tromey@redhat.com>
10574
10575 * ada-lang.c (ada_update_initial_language): Update.
10576 (ada_main_name, ada_has_this_exception_support): Update.
10577 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10578 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10579 * arm-tdep.c (arm_skip_stub): Update.
10580 * auxv.c (ld_so_xfer_auxv): Update.
10581 * avr-tdep.c (avr_scan_prologue): Update.
10582 * ax-gdb.c (gen_var_ref): Update.
10583 * breakpoint.c (struct breakpoint_objfile_data)
10584 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10585 type to bound_minimal_symbol.
10586 (create_overlay_event_breakpoint)
10587 (create_longjmp_master_breakpoint)
10588 (create_std_terminate_master_breakpoint)
10589 (create_exception_master_breakpoint): Update.
10590 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10591 * c-exp.y (classify_name): Update.
10592 * coffread.c (coff_symfile_read): Update.
10593 * common/agent.c (agent_look_up_symbols): Update.
10594 * d-lang.c (d_main_name): Update.
10595 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10596 * dec-thread.c (enable_dec_thread): Update.
10597 * dwarf2loc.c (call_site_to_target_addr): Update.
10598 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10599 * eval.c (evaluate_subexp_standard): Update.
10600 * findvar.c (struct minsym_lookup_data) <result>: Change type
10601 to bound_minimal_symbol.
10602 <objfile>: Remove.
10603 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10604 * frame.c (inside_main_func): Update.
10605 * frv-tdep.c (frv_frame_this_id): Update.
10606 * gcore.c (call_target_sbrk): Update.
10607 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10608 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10609 Update.
10610 * go-lang.c (go_main_name): Update.
10611 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10612 (hppa_hpux_find_import_stub_for_addr): Update.
10613 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10614 Update. Change return type.
10615 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10616 type.
10617 * jit.c (jit_breakpoint_re_set_internal): Update.
10618 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10619 Update.
10620 * linux-nat.c (get_signo): Update.
10621 * linux-thread-db.c (inferior_has_bug): Update
10622 * m32c-tdep.c (m32c_return_value)
10623 (m32c_m16c_address_to_pointer): Update.
10624 * m32r-tdep.c (m32r_frame_this_id): Update.
10625 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10626 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10627 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10628 lookup_minimal_symbol. Change return type.
10629 (lookup_minimal_symbol): Remove.
10630 (lookup_bound_minimal_symbol): Update.
10631 (lookup_minimal_symbol_text): Change return type.
10632 (lookup_minimal_symbol_solib_trampoline): Change return type.
10633 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10634 (lookup_minimal_symbol_solib_trampoline): Change return type.
10635 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10636 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10637 (value_nsstring, find_imps): Update.
10638 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10639 * p-lang.c (pascal_main_name): Update.
10640 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10641 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10642 * proc-service.c (ps_pglobal_lookup): Update.
10643 * ravenscar-thread.c (get_running_thread_msymbol): Change
10644 return type.
10645 (has_ravenscar_runtime, get_running_thread_id): Update.
10646 * remote.c (remote_check_symbols): Update.
10647 * sol-thread.c (ps_pglobal_lookup): Update.
10648 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10649 * solib-dsbt.c (lm_base): Update.
10650 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10651 Update.
10652 * solib-irix.c (locate_base): Update.
10653 * solib-som.c (som_solib_create_inferior_hook)
10654 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10655 Update.
10656 * solib-spu.c (spu_enable_break): Update.
10657 * solib-svr4.c (elf_locate_base, enable_break): Update.
10658 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10659 (flush_ea_cache): Update.
10660 * stabsread.c (define_symbol): Update.
10661 * symfile.c (simple_read_overlay_table): Update.
10662 * symtab.c (find_pc_sect_line): Update.
10663 * tracepoint.c (scope_info): Update.
10664 * tui-disasm.c (tui_get_begin_asm_address): Update.
10665 * value.c (value_static_field): Update.
10666
10667 2014-02-26 Tom Tromey <tromey@redhat.com>
10668
10669 * minsyms.c (prim_record_minimal_symbol_full): Use
10670 SET_MSYMBOL_VALUE_ADDRESS.
10671 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10672 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10673 SET_MSYMBOL_VALUE_ADDRESS.
10674 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10675 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10676
10677 2014-02-26 Tom Tromey <tromey@redhat.com>
10678
10679 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10680 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10681 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10682 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10683 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10684 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10685 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10686 * ada-lang.c (ada_main_name): Update.
10687 (ada_lookup_simple_minsym): Update.
10688 (ada_make_symbol_completion_list): Update.
10689 (ada_add_standard_exceptions): Update.
10690 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10691 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10692 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10693 * arm-tdep.c (skip_prologue_function): Update.
10694 (arm_skip_stack_protector, arm_skip_stub): Update.
10695 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10696 (arm_wince_skip_main_prologue): Update.
10697 * auxv.c (ld_so_xfer_auxv): Update.
10698 * avr-tdep.c (avr_scan_prologue): Update.
10699 * ax-gdb.c (gen_var_ref): Update.
10700 * block.c (call_site_for_pc): Update.
10701 * blockframe.c (get_pc_function_start): Update.
10702 (find_pc_partial_function_gnu_ifunc): Update.
10703 * breakpoint.c (create_overlay_event_breakpoint): Update.
10704 (create_longjmp_master_breakpoint): Update.
10705 (create_std_terminate_master_breakpoint): Update.
10706 (create_exception_master_breakpoint): Update.
10707 (resolve_sal_pc): Update.
10708 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10709 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10710 Update.
10711 * c-valprint.c (c_val_print): Update.
10712 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10713 * coffread.c (coff_symfile_read): Update.
10714 * common/agent.c (agent_look_up_symbols): Update.
10715 * dbxread.c (find_stab_function_addr): Update.
10716 (end_psymtab): Update.
10717 * dwarf2loc.c (call_site_to_target_addr): Update.
10718 (func_verify_no_selftailcall): Update.
10719 (tailcall_dump): Update.
10720 (call_site_find_chain_1): Update.
10721 (dwarf_expr_reg_to_entry_parameter): Update.
10722 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10723 (elf_gnu_ifunc_resolve_by_got): Update.
10724 * f-valprint.c (info_common_command): Update.
10725 * findvar.c (read_var_value): Update.
10726 * frame.c (get_prev_frame_1): Update.
10727 (inside_main_func): Update.
10728 * frv-tdep.c (frv_skip_main_prologue): Update.
10729 (frv_frame_this_id): Update.
10730 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10731 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10732 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10733 (gnuv3_skip_trampoline): Update.
10734 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10735 (hppa64_hpux_in_solib_call_trampoline): Update.
10736 (hppa_hpux_skip_trampoline_code): Update.
10737 (hppa64_hpux_search_dummy_call_sequence): Update.
10738 (hppa_hpux_find_import_stub_for_addr): Update.
10739 (hppa_hpux_find_dummy_bpaddr): Update.
10740 * hppa-tdep.c (hppa_symbol_address)
10741 (hppa_lookup_stub_minimal_symbol): Update.
10742 * i386-tdep.c (i386_skip_main_prologue): Update.
10743 (i386_pe_skip_trampoline_code): Update.
10744 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10745 * infcall.c (get_function_name): Update.
10746 * infcmd.c (until_next_command): Update.
10747 * jit.c (jit_breakpoint_re_set_internal): Update.
10748 (jit_inferior_init): Update.
10749 * linespec.c (minsym_found): Update.
10750 (add_minsym): Update.
10751 * linux-fork.c (info_checkpoints_command): Update.
10752 * linux-nat.c (get_signo): Update.
10753 * linux-thread-db.c (inferior_has_bug): Update.
10754 * m32c-tdep.c (m32c_return_value): Update.
10755 (m32c_m16c_address_to_pointer): Update.
10756 (m32c_m16c_pointer_to_address): Update.
10757 * m32r-tdep.c (m32r_frame_this_id): Update.
10758 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10759 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10760 * maint.c (maintenance_translate_address): Update.
10761 * minsyms.c (add_minsym_to_hash_table): Update.
10762 (add_minsym_to_demangled_hash_table): Update.
10763 (msymbol_objfile): Update.
10764 (lookup_minimal_symbol): Update.
10765 (iterate_over_minimal_symbols): Update.
10766 (lookup_minimal_symbol_text): Update.
10767 (lookup_minimal_symbol_by_pc_name): Update.
10768 (lookup_minimal_symbol_solib_trampoline): Update.
10769 (lookup_minimal_symbol_by_pc_section_1): Update.
10770 (lookup_minimal_symbol_and_objfile): Update.
10771 (prim_record_minimal_symbol_full): Update.
10772 (compare_minimal_symbols): Update.
10773 (compact_minimal_symbols): Update.
10774 (build_minimal_symbol_hash_tables): Update.
10775 (install_minimal_symbols): Update.
10776 (terminate_minimal_symbol_table): Update.
10777 (find_solib_trampoline_target): Update.
10778 (minimal_symbol_upper_bound): Update.
10779 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10780 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10781 (mips_skip_pic_trampoline_code): Update.
10782 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10783 * objc-lang.c (selectors_info): Update.
10784 (classes_info): Update.
10785 (find_methods): Update.
10786 (find_imps): Update.
10787 (find_objc_msgsend): Update.
10788 * objfiles.c (objfile_relocate1): Update.
10789 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10790 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10791 * p-valprint.c (pascal_val_print): Update.
10792 * parse.c (write_exp_msymbol): Update.
10793 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10794 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10795 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10796 * printcmd.c (build_address_symbolic): Update.
10797 (sym_info): Update.
10798 (address_info): Update.
10799 * proc-service.c (ps_pglobal_lookup): Update.
10800 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10801 (find_pc_sect_psymtab): Update.
10802 * python/py-framefilter.c (py_print_frame): Update.
10803 * ravenscar-thread.c (get_running_thread_id): Update.
10804 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10805 Update.
10806 * remote.c (remote_check_symbols): Update.
10807 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10808 (rs6000_skip_trampoline_code): Update.
10809 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10810 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10811 * solib-dsbt.c (lm_base): Update.
10812 * solib-frv.c (lm_base): Update.
10813 (main_got): Update.
10814 * solib-irix.c (locate_base): Update.
10815 * solib-som.c (som_solib_create_inferior_hook): Update.
10816 (som_solib_desire_dynamic_linker_symbols): Update.
10817 (link_map_start): Update.
10818 * solib-spu.c (spu_enable_break): Update.
10819 (ocl_enable_break): Update.
10820 * solib-svr4.c (elf_locate_base): Update.
10821 (enable_break): Update.
10822 * spu-tdep.c (spu_get_overlay_table): Update.
10823 (spu_catch_start): Update.
10824 (flush_ea_cache): Update.
10825 * stabsread.c (define_symbol): Update.
10826 (scan_file_globals): Update.
10827 * stack.c (find_frame_funname): Update.
10828 (frame_info): Update.
10829 * symfile.c (simple_read_overlay_table): Update.
10830 (simple_overlay_update): Update.
10831 * symmisc.c (dump_msymbols): Update.
10832 * symtab.c (fixup_section): Update.
10833 (find_pc_sect_line): Update.
10834 (skip_prologue_sal): Update.
10835 (search_symbols): Update.
10836 (print_msymbol_info): Update.
10837 (rbreak_command): Update.
10838 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10839 (completion_list_objc_symbol): Update.
10840 (default_make_symbol_completion_list_break_on): Update.
10841 * tracepoint.c (scope_info): Update.
10842 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10843 (tui_get_begin_asm_address): Update.
10844 * valops.c (find_function_in_inferior): Update.
10845 * value.c (value_static_field): Update.
10846 (value_fn_field): Update.
10847
10848 2014-02-26 Tom Tromey <tromey@redhat.com>
10849
10850 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10851 bound minimal symbols. Move code that knows about minsym
10852 table layout...
10853 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10854 function.
10855 * minsyms.h (minimal_symbol_upper_bound): Declare.
10856 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10857 minimal_symbol_upper_bound.
10858
10859 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10860
10861 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10862 Use the type's name if its basic type does not have a tag.
10863
10864 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10865
10866 * dwarf2read.c (read_subrange_type): Add comment.
10867
10868 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10869
10870 * dwarf2read.c (update_enumeration_type_from_children): New
10871 function, mostly extracted from process_structure_scope.
10872 (read_enumeration_type): Call update_enumeration_type_from_children.
10873 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10874 and flag_flag_enum fields.
10875
10876 2014-02-26 Pedro Alves <palves@redhat.com>
10877
10878 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10879 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10880 to_xfer_partial method.
10881
10882 2014-02-26 Pedro Alves <palves@redhat.com>
10883
10884 * target.c (complete_target_initialization): Don't install
10885 default_xfer_partial as to_xfer_partial hook.
10886 (nomemory): Delete.
10887 (update_current_target): Don't INHERIT nor de_fault
10888 deprecated_xfer_memory. Delete de_fault macro.
10889 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10890 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10891 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10892 field.
10893
10894 2014-02-26 Pedro Alves <palves@redhat.com>
10895
10896 * go32-nat.c (my_write_child): New function.
10897 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10898 (go32_xfer_partial): New function.
10899 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10900 Instead install a to_xfer_partial hook.
10901
10902 2014-02-26 Pedro Alves <palves@redhat.com>
10903
10904 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10905 to_xfer_partial helper. Rewrite.
10906 (procfs_xfer_partial): New function.
10907 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10908 Install a to_xfer_partial hook.
10909
10910 2014-02-26 Pedro Alves <palves@redhat.com>
10911
10912 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10913 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10914 (m32r_xfer_partial): New function.
10915 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10916 Install a to_xfer_partial hook.
10917
10918 2014-02-26 Pedro Alves <palves@redhat.com>
10919
10920 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10921 helper.
10922 (mips_xfer_partial): New function.
10923 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10924 hook. Install a to_xfer_partial hook.
10925
10926 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10927
10928 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10929 * gdbtypes.c (create_array_type_with_stride): New function,
10930 renaming create_array_type, but with an added parameter
10931 called "bit_stride".
10932 (create_array_type): Re-implement using
10933 create_array_type_with_stride.
10934 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10935 and DW_AT_bit_stride attributes.
10936
10937 2014-02-26 Pedro Alves <palves@redhat.com>
10938
10939 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10940 task-specific breakpoints.
10941
10942 2014-02-25 Pedro Alves <palves@redhat.com>
10943
10944 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10945 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10946
10947 2014-02-25 Stan Shebs <stan@codesourcery.com>
10948
10949 * defs.h: Annotate comments for Doxygen.
10950
10951 2014-02-25 Tom Tromey <tromey@redhat.com>
10952
10953 * target.h (target_ignore): Don't declare.
10954 * target.c (target_ignore): Remove.
10955
10956 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10957
10958 PR gdb/16626
10959 * auto-load.c (auto_load_objfile_script_1): Change filename to
10960 debugfile.
10961
10962 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10963
10964 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10965 documentation. Adjust prototype to match the target_ops
10966 to_xfer_partial method. Adjust implementation accordingly.
10967
10968 2014-02-25 Hui Zhu <hui@codesourcery.com>
10969
10970 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10971 to_traceframe_info.
10972
10973 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10974
10975 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10976 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10977 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10978 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10979 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10980 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10981 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10982 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10983 New constants.
10984 (rl78_register_type): Use a data pointer type for SP and
10985 new pseudo registers mentioned above. Use a 16 bit integer
10986 type for all other register pairs.
10987 (rl78_register_name, rl78_g10_register_name): Update for
10988 new pseudo registers.
10989 (rl78_pseudo_register_read): Likewise.
10990 (rl78_pseudo_register_write): Likewise.
10991 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10992 to the newly added pseudo registers.
10993
10994 2014-02-24 Doug Evans <dje@google.com>
10995
10996 * value.c (record_latest_value): Fix comment.
10997 * printcmd.c (print_command_1): Remove code to handle -1 return from
10998 record_latest_value.
10999
11000 2014-02-24 Pedro Alves <palves@redhat.com>
11001
11002 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
11003 deprecated_xfer_memory hook.
11004 (procfs_xfer_partial): Call procfs_xfer_memory instead
11005 of the deprecated_xfer_memory target hook.
11006 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11007 helper.
11008
11009 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
11010
11011 * windows-nat.c (windows_xfer_shared_libraries): Return
11012 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11013 requested object is TARGET_OBJECT_LIBRARIES.
11014
11015 2014-02-24 Yao Qi <yao@codesourcery.com>
11016
11017 * target.h (enum target_xfer_status)
11018 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11019 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11020 explicitly. New.
11021 * corefile.c (memory_error_message): User updated.
11022 * exec.c (section_table_read_available_memory): Likewise.
11023 * record-btrace.c (record_btrace_xfer_partial): Likewise.
11024 * target.c (target_xfer_status_to_string): Likewise.
11025 (raw_memory_xfer_partial): Likewise.
11026 (memory_xfer_partial_1, target_xfer_partial): Likewise.
11027 * valops.c (read_value_memory): Likewise.
11028 * exec.h: Update comments.
11029
11030 2014-02-24 Yao Qi <yao@codesourcery.com>
11031
11032 * target.c (target_xfer_status_to_string): Rename argument err
11033 to status.
11034 * target.h (target_xfer_status_to_string): Update declaration.
11035 Replace target_xfer_error_to_string with
11036 target_xfer_status_to_string in comment.
11037
11038 2014-02-24 Yao Qi <yao@codesourcery.com>
11039
11040 * mips-linux-nat.c (super_close): Update its type.
11041 (mips_linux_close): Pass 'self' to super_close.
11042
11043 2014-02-24 Yao Qi <yao@codesourcery.com>
11044
11045 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11046 * corefile.c (read_memory): Adjusted.
11047 * target.c (target_write_with_progress): Adjusted.
11048
11049 2014-02-23 Yao Qi <yao@codesourcery.com>
11050
11051 Revert two patches:
11052
11053 2013-10-25 Yao Qi <yao@codesourcery.com>
11054
11055 * remote.c (remote_traceframe_info): Return early if
11056 traceframe is not selected.
11057
11058 2013-07-19 Yao Qi <yao@codesourcery.com>
11059
11060 * target.c (update_current_target): Change the default action
11061 of 'to_traceframe_info' from tcomplain to return_zero.
11062 * target.h (struct target_ops) <to_traceframe_info>: Add more
11063 comments.
11064
11065 2014-02-23 Yao Qi <yao@codesourcery.com>
11066
11067 * valops.c (read_value_memory): Rewrite it. Call
11068 target_xfer_partial in a loop.
11069 * exec.h (section_table_available_memory): Remove declaration.
11070 Move comments to ...
11071 * exec.c (section_table_available_memory): ... here. Make it
11072 static.
11073
11074 2014-02-23 Yao Qi <yao@codesourcery.com>
11075
11076 * exec.c (section_table_read_available_memory): New function.
11077 * exec.h (section_table_read_available_memory): Declare.
11078 * ctf.c (ctf_xfer_partial): Call
11079 section_table_read_available_memory.
11080 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11081
11082 2014-02-23 Yao Qi <yao@codesourcery.com>
11083
11084 * ctf.c (ctf_xfer_partial): Move code to ...
11085 * exec.c (exec_read_partial_read_only): ... it. New function.
11086 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11087 * tracefile.c: Include "exec.h".
11088 * exec.h (exec_read_partial_read_only): Declare.
11089
11090 2014-02-23 Yao Qi <yao@codesourcery.com>
11091
11092 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11093 (tfile_has_memory): Remove.
11094 (init_tfile_ops): Don't set fields to_has_all_memory and
11095 to_has_memory of tfile_ops.
11096 * tracefile.c (tracefile_has_all_memory): New function.
11097 (tracefile_has_memory): New function.
11098 (init_tracefile_ops): Initialize fields to_has_all_memory and
11099 to_has_memory of 'ops'.
11100
11101 2014-02-23 Yao Qi <yao@codesourcery.com>
11102
11103 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11104 (ctf_thread_alive, ctf_get_trace_status): Remove.
11105 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11106 init_tracefile_ops.
11107 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11108 (tfile_has_stack, tfile_has_registers): Remove.
11109 (tfile_thread_alive): Remove.
11110 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11111 init_tracefile_ops.
11112 * tracefile.c (tracefile_has_stack): New function.
11113 (tracefile_has_registers): New function.
11114 (tracefile_thread_alive): New function.
11115 (tracefile_get_trace_status): New function.
11116 (init_tracefile_ops): New function.
11117 * tracefile.h (init_tracefile_ops): Declare.
11118
11119 2014-02-23 Yao Qi <yao@codesourcery.com>
11120
11121 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11122 (O_LARGEFILE): Likewise.
11123 (tfile_ops): Likewise.
11124 (TRACE_HEADER_SIZE): Likewise.
11125 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11126 (cur_data_size): Likewise.
11127 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11128 (tfile_close, tfile_files_info): Likewise.
11129 (tfile_get_trace_status): Likewise.
11130 (tfile_get_tracepoint_status): Likewise.
11131 (tfile_get_traceframe_address): Likewise.
11132 (tfile_trace_find, match_blocktype): Likewise.
11133 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11134 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11135 (tfile_get_trace_state_variable_value): Likewise.
11136 (tfile_has_all_memory, tfile_has_memory): Likewise.
11137 (tfile_has_stack, tfile_has_registers): Likewise.
11138 (tfile_thread_alive, build_traceframe_info): Likewise.
11139 (tfile_traceframe_info, init_tfile_ops): Likewise.
11140 (_initialize_tracepoint): Don't call init_tfile_ops
11141 and add_target_with_completer.
11142 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11143 exec.h, completer.h and filenames.h.
11144 (_initialize_tracefile_tfile): New function.
11145
11146 2014-02-23 Yao Qi <yao@codesourcery.com>
11147
11148 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11149 tracefile-tfile.o.
11150 (HFILES_NO_SRCDIR): Add tracefile.h.
11151 * ctf.c: Include "tracefile.h".
11152 * tracefile.h: New file.
11153 * tracefile.c: New file
11154 * tracefile-tfile.c: New file.
11155 * tracepoint.c: Include "tracefile.h".
11156 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11157 (stop_reason_names): Add const.
11158 (trace_file_writer_xfree): Move it to tracefile.c.
11159 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11160 (trace_save_ctf): Likewise.
11161 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11162 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11163 (tfile_write_header, tfile_write_regblock_type): Likewise.
11164 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11165 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11166 (tfile_write_raw_data, tfile_end): Likewise.
11167 (tfile_trace_file_writer_new): Likewise.
11168 (free_uploaded_tp): Make it extern.
11169 (free_uploaded_tsv): Make it extern.
11170 (_initialize_tracepoint): Move code to register command 'tsave'
11171 to tracefile.c.
11172 * tracepoint.h (stop_reason_names): Declare.
11173 (struct trace_frame_write_ops): Move it to tracefile.h.
11174 (struct trace_file_write_ops): Likewise.
11175 (struct trace_file_writer): Likewise.
11176 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11177
11178 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11179
11180 PR gdb/16594
11181 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11182 process name.
11183 (get_cores_used_by_process): New parameter num_cores, use it.
11184 (linux_xfer_osdata_processes): Pass num_cores to it.
11185 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11186 process name.
11187
11188 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11189
11190 * target.c (memory_xfer_partial): Fix length arg in call to
11191 breakpoint_xfer_memory.
11192
11193 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11194
11195 PR tdep/16397
11196 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11197 number comes after the + or - signs. Adjust length of register
11198 name to be extracted.
11199
11200 2014-02-20 Tom Tromey <tromey@redhat.com>
11201
11202 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11203 (ada_varobj_ops): Mark "extern".
11204
11205 2014-02-20 Tom Tromey <tromey@redhat.com>
11206
11207 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11208
11209 2014-02-20 Doug Evans <xdje42@gmail.com>
11210
11211 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11212 All callers updated.
11213 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11214 All callers updated.
11215 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11216 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11217
11218 2014-02-20 lin zuojian <manjian2006@gmail.com>
11219 Joel Brobecker <brobecker@adacore.com>
11220 Doug Evans <xdje42@gmail.com>
11221
11222 PR symtab/16581
11223 * dwarf2read.c (struct die_info): New member in_process.
11224 (reset_die_in_process): New function.
11225 (process_die): Set it at the start, reset when returning.
11226 (inherit_abstract_dies): Only call process_die if origin_child_die
11227 not already being processed.
11228
11229 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11230
11231 * windows-nat.c (handle_unload_dll): Add function documentation.
11232 (do_initial_windows_stuff): Add comment explaining why we wait
11233 until after inferior initialization has finished before
11234 processing all DLLs.
11235
11236 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11237
11238 * windows-nat.c (get_module_name): Delete.
11239 (windows_get_exec_module_filename): New function, mostly
11240 inspired from get_module_name.
11241 (windows_pid_to_exec_file): Replace call to get_module_name
11242 by call to windows_get_exec_module_filename.
11243
11244 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11245
11246 * windows-nat.c (handle_load_dll): Rewrite this function's
11247 introductory comment. Remove code using get_module_name
11248 to get the DLL's name.
11249
11250 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11251
11252 * windows-nat.c (get_windows_debug_event): Ignore
11253 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11254 if windows_initialization_done == 0.
11255 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11256 Adjust implementation to always load all DLLs.
11257 (do_initial_windows_stuff): Replace call to
11258 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11259
11260 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11261
11262 * windows-nat.c (_initialize_windows_nat): Deprecate the
11263 "dll-symbols" command. Turn the "add-shared-symbol-files"
11264 and "assf" aliases into commands, and deprecate them as well.
11265 * NEWS: Add entry explaining that "dll-symbols" and its two
11266 aliases are now deprecated.
11267
11268 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11269
11270 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11271 new-line in debug string. Remove trailing spaces.
11272
11273 2014-02-19 Stan Shebs <stan@codesourcery.com>
11274
11275 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11276
11277 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11278
11279 * NEWS: Add entry for the new feature
11280 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11281 and class values.
11282
11283 2014-02-19 Stan Shebs <stan@codesourcery.com>
11284
11285 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11286
11287 2014-02-19 Pedro Alves <palves@redhat.com>
11288
11289 * common/ptid.h (struct ptid): Mention that process_stratum
11290 targets should prefer ptid.lwp.
11291
11292 2014-02-19 Pedro Alves <palves@redhat.com>
11293
11294 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11295 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11296 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11297 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11298 store remote thread ids rather than ptid.tid.
11299 (_initialize_remote): Adjust.
11300
11301 2014-02-19 Tom Tromey <tromey@redhat.com>
11302
11303 * target.c (target_get_unwinder): Rewrite.
11304 (target_get_tailcall_unwinder): Rewrite.
11305 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11306 (record_btrace_to_get_tailcall_unwinder): New function.
11307 (init_record_btrace_ops): Update.
11308 * target.h (struct target_ops) <to_get_unwinder,
11309 to_get_tailcall_unwinder>: Now function pointers. Use
11310 TARGET_DEFAULT_RETURN.
11311
11312 2014-02-19 Tom Tromey <tromey@redhat.com>
11313
11314 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11315 argument.
11316 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11317
11318 2014-02-19 Tom Tromey <tromey@redhat.com>
11319
11320 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11321 directly.
11322 * target-delegates.c: Rebuild.
11323 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11324 TARGET_DEFAULT_FUNC.
11325 * target.c (default_target_decr_pc_after_break): Rename from
11326 forward_target_decr_pc_after_break. Simplify.
11327 (target_decr_pc_after_break): Rely on delegation.
11328
11329 2014-02-19 Tom Tromey <tromey@redhat.com>
11330
11331 * target.c (update_current_target): Do not INHERIT to_doc or
11332 to_magic. Do not de_fault to_open or to_close.
11333
11334 2014-02-19 Tom Tromey <tromey@redhat.com>
11335
11336 * gcore.h (objfile_find_memory_regions): Declare.
11337 * gcore.c (objfile_find_memory_regions): No longer static. Add
11338 "self" argument.
11339 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11340 * exec.c: Include gcore.h.
11341 (exec_set_find_memory_regions): Remove.
11342 (exec_find_memory_regions): Remove.
11343 (exec_do_find_memory_regions): Remove.
11344 (init_exec_ops): Update.
11345 * defs.h (exec_set_find_memory_regions): Remove.
11346
11347 2014-02-19 Tom Tromey <tromey@redhat.com>
11348
11349 * target-delegates.c: Rebuild.
11350 * target.h (struct target_ops) <to_extra_thread_info,
11351 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11352 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11353 not 0, in TARGET_DEFAULT_RETURN.
11354
11355 2014-02-19 Tom Tromey <tromey@redhat.com>
11356
11357 * target.c (complete_target_initialization): Remove casts. Use
11358 return_zero_has_execution.
11359 (return_zero): Add "ignore" argument.
11360 (return_zero_has_execution): New function.
11361 (init_dummy_target): Remove casts. Use
11362 return_zero_has_execution.
11363
11364 2014-02-19 Tom Tromey <tromey@redhat.com>
11365
11366 * target.c (update_current_target): Update comments. Do not
11367 INHERIT to_stratum.
11368
11369 2014-02-19 Tom Tromey <tromey@redhat.com>
11370
11371 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11372 needed.
11373 * corelow.c (core_read_description): Delegate when needed.
11374 * remote.c (remote_read_description): Delegate when needed.
11375 * target-delegates.c: Rebuild.
11376 * target.c (target_read_description): Rewrite.
11377 * target.h (struct target_ops) <to_read_description>: Update
11378 comment. Use TARGET_DEFAULT_RETURN.
11379
11380 2014-02-19 Tom Tromey <tromey@redhat.com>
11381
11382 * target-delegates.c: Rebuild.
11383 * target.c (update_current_target): Don't inherit or default
11384 to_can_run.
11385 (find_default_run_target): Check against delegate_can_run.
11386 * target.h (struct target_ops) <to_can_run>: Use
11387 TARGET_DEFAULT_RETURN.
11388
11389 2014-02-19 Tom Tromey <tromey@redhat.com>
11390
11391 * target-delegates.c: Rebuild.
11392 * target.c (target_disconnect): Unconditionally delegate.
11393 * target.h (struct target_ops) <to_disconnect>: Use
11394 TARGET_DEFAULT_NORETURN.
11395
11396 2014-02-19 Tom Tromey <tromey@redhat.com>
11397
11398 * record.c (record_stop): Unconditionally delegate.
11399 * target-delegates.c: Rebuild.
11400 * target.c (target_stop_recording): Unconditionally delegate.
11401 * target.h (struct target_ops) <to_stop_recording>: Use
11402 TARGET_DEFAULT_IGNORE.
11403
11404 2014-02-19 Tom Tromey <tromey@redhat.com>
11405
11406 * target-delegates.c: Rebuild.
11407 * target.c (target_enable_btrace): Unconditionally delegate.
11408 * target.h (struct target_ops) <to_enable_btrace>: Use
11409 TARGET_DEFAULT_NORETURN.
11410
11411 2014-02-19 Tom Tromey <tromey@redhat.com>
11412
11413 * target-delegates.c: Rebuild.
11414 * target.c (target_read_btrace): Unconditionally delegate.
11415 * target.h (struct target_ops) <to_read_btrace>: Use
11416 TARGET_DEFAULT_NORETURN.
11417
11418 2014-02-19 Tom Tromey <tromey@redhat.com>
11419
11420 * target-delegates.c: Rebuild.
11421 * target.c (target_teardown_btrace): Unconditionally delegate.
11422 * target.h (struct target_ops) <to_teardown_btrace>: Use
11423 TARGET_DEFAULT_NORETURN.
11424
11425 2014-02-19 Tom Tromey <tromey@redhat.com>
11426
11427 * target-delegates.c: Rebuild.
11428 * target.c (target_disable_btrace): Unconditionally delegate.
11429 * target.h (struct target_ops) <to_disable_btrace>: Use
11430 TARGET_DEFAULT_NORETURN.
11431
11432 2014-02-19 Tom Tromey <tromey@redhat.com>
11433
11434 * target-delegates.c: Rebuild.
11435 * target.c (default_search_memory): New function.
11436 (simple_search_memory): Update comment.
11437 (target_search_memory): Unconditionally delegate.
11438 * target.h (struct target_ops) <to_search_memory>: Use
11439 TARGET_DEFAULT_FUNC.
11440
11441 2014-02-19 Tom Tromey <tromey@redhat.com>
11442
11443 * auxv.c (default_auxv_parse): No longer static.
11444 (target_auxv_parse): Unconditionally delegate.
11445 * auxv.h (default_auxv_parse): Declare.
11446 * target-delegates.c: Rebuild.
11447 * target.c: Include auxv.h.
11448 * target.h (struct target_ops) <to_auxv_parse>: Use
11449 TARGET_DEFAULT_FUNC.
11450
11451 2014-02-19 Tom Tromey <tromey@redhat.com>
11452
11453 * target-delegates.c: Rebuild.
11454 * target.c (target_memory_map): Unconditionally delegate.
11455 * target.h (struct target_ops) <to_memory_map>: Use
11456 TARGET_DEFAULT_RETURN.
11457
11458 2014-02-19 Tom Tromey <tromey@redhat.com>
11459
11460 * target-delegates.c: Rebuild.
11461 * target.c (target_thread_alive): Unconditionally delegate.
11462 * target.h (struct target_ops) <to_thread_alive>: Use
11463 TARGET_DEFAULT_RETURN.
11464
11465 2014-02-19 Tom Tromey <tromey@redhat.com>
11466
11467 * target-delegates.c: Rebuild.
11468 * target.c (target_save_record): Unconditionally delegate.
11469 * target.h (struct target_ops) <to_save_record>: Use
11470 TARGET_DEFAULT_NORETURN.
11471
11472 2014-02-19 Tom Tromey <tromey@redhat.com>
11473
11474 * target-delegates.c: Rebuild.
11475 * target.c (target_delete_record): Unconditionally delegate.
11476 * target.h (struct target_ops) <to_delete_record>: Use
11477 TARGET_DEFAULT_NORETURN.
11478
11479 2014-02-19 Tom Tromey <tromey@redhat.com>
11480
11481 * target-delegates.c: Rebuild.
11482 * target.c (target_record_is_replaying): Unconditionally
11483 delegate.
11484 * target.h (struct target_ops) <to_record_is_replaying>: Use
11485 TARGET_DEFAULT_RETURN.
11486
11487 2014-02-19 Tom Tromey <tromey@redhat.com>
11488
11489 * target-delegates.c: Rebuild.
11490 * target.c (target_goto_record_begin): Unconditionally delegate.
11491 * target.h (struct target_ops) <to_goto_record_begin>: Use
11492 TARGET_DEFAULT_NORETURN.
11493
11494 2014-02-19 Tom Tromey <tromey@redhat.com>
11495
11496 * target-delegates.c: Rebuild.
11497 * target.c (target_goto_record_end): Unconditionally delegate.
11498 * target.h (struct target_ops) <to_goto_record_end>: Use
11499 TARGET_DEFAULT_NORETURN.
11500
11501 2014-02-19 Tom Tromey <tromey@redhat.com>
11502
11503 * target-delegates.c: Rebuild.
11504 * target.c (target_goto_record): Unconditionally delegate.
11505 * target.h (struct target_ops) <to_goto_record>: Use
11506 TARGET_DEFAULT_NORETURN.
11507
11508 2014-02-19 Tom Tromey <tromey@redhat.com>
11509
11510 * target-delegates.c: Rebuild.
11511 * target.c (target_insn_history): Unconditionally delegate.
11512 * target.h (struct target_ops) <to_insn_history>: Use
11513 TARGET_DEFAULT_NORETURN.
11514
11515 2014-02-19 Tom Tromey <tromey@redhat.com>
11516
11517 * target-delegates.c: Rebuild.
11518 * target.c (target_insn_history_from): Unconditionally delegate.
11519 * target.h (struct target_ops) <to_insn_history_from>: Use
11520 TARGET_DEFAULT_NORETURN.
11521
11522 2014-02-19 Tom Tromey <tromey@redhat.com>
11523
11524 * target-delegates.c: Rebuild.
11525 * target.c (target_insn_history_range): Unconditionally delegate.
11526 * target.h (struct target_ops) <to_insn_history_range>: Use
11527 TARGET_DEFAULT_NORETURN.
11528
11529 2014-02-19 Tom Tromey <tromey@redhat.com>
11530
11531 * target-delegates.c: Rebuild.
11532 * target.c (target_call_history): Unconditionally delegate.
11533 * target.h (struct target_ops) <to_call_history>: Use
11534 TARGET_DEFAULT_NORETURN.
11535
11536 2014-02-19 Tom Tromey <tromey@redhat.com>
11537
11538 * target-delegates.c: Rebuild.
11539 * target.c (target_call_history_from): Unconditionally delegate.
11540 * target.h (struct target_ops) <to_call_history_from>: Use
11541 TARGET_DEFAULT_NORETURN.
11542
11543 2014-02-19 Tom Tromey <tromey@redhat.com>
11544
11545 * target-delegates.c: Rebuild.
11546 * target.c (target_call_history_range): Unconditionally delegate.
11547 * target.h (struct target_ops) <to_call_history_range>: Use
11548 TARGET_DEFAULT_NORETURN.
11549
11550 2014-02-19 Tom Tromey <tromey@redhat.com>
11551
11552 * target-delegates.c: Rebuild.
11553 * target.c (target_verify_memory): Unconditionally delegate.
11554 * target.h (struct target_ops) <to_verify_memory>: Use
11555 TARGET_DEFAULT_NORETURN.
11556
11557 2014-02-19 Tom Tromey <tromey@redhat.com>
11558
11559 * target-delegates.c: Rebuild.
11560 * target.c (target_core_of_thread): Unconditionally delegate.
11561 * target.h (struct target_ops) <to_core_of_thread>: Use
11562 TARGET_DEFAULT_RETURN.
11563
11564 2014-02-19 Tom Tromey <tromey@redhat.com>
11565
11566 * target-delegates.c: Rebuild.
11567 * target.c (target_flash_done): Unconditionally delegate.
11568 * target.h (struct target_ops) <to_flash_done>: Use
11569 TARGET_DEFAULT_NORETURN.
11570
11571 2014-02-19 Tom Tromey <tromey@redhat.com>
11572
11573 * target-delegates.c: Rebuild.
11574 * target.c (target_flash_erase): Unconditionally delegate.
11575 * target.h (struct target_ops) <to_flash_erase>: Use
11576 TARGET_DEFAULT_NORETURN.
11577
11578 2014-02-19 Tom Tromey <tromey@redhat.com>
11579
11580 * target-delegates.c: Rebuild.
11581 * target.c (target_get_section_table): Unconditionally delegate.
11582 * target.h (struct target_ops) <to_get_section_table>: Use
11583 TARGET_DEFAULT_RETURN.
11584
11585 2014-02-19 Tom Tromey <tromey@redhat.com>
11586
11587 * target-delegates.c: Rebuild.
11588 * target.c (target_pid_to_str): Unconditionally delegate.
11589 (init_dummy_target): Don't initialize to_pid_to_str.
11590 (default_pid_to_str): Rename from dummy_pid_to_str.
11591 * target.h (struct target_ops) <to_pid_to_str>: Use
11592 TARGET_DEFAULT_FUNC.
11593
11594 2014-02-19 Tom Tromey <tromey@redhat.com>
11595
11596 * target-delegates.c: Rebuild.
11597 * target.c (target_find_new_threads): Unconditionally delegate.
11598 * target.h (struct target_ops) <to_find_new_threads>: Use
11599 TARGET_DEFAULT_RETURN.
11600
11601 2014-02-19 Tom Tromey <tromey@redhat.com>
11602
11603 * target-delegates.c: Rebuild.
11604 * target.c (target_program_signals): Unconditionally delegate.
11605 * target.h (struct target_ops) <to_program_signals>: Use
11606 TARGET_DEFAULT_IGNORE.
11607
11608 2014-02-19 Tom Tromey <tromey@redhat.com>
11609
11610 * target-delegates.c: Rebuild.
11611 * target.c (target_pass_signals): Unconditionally delegate.
11612 * target.h (struct target_ops) <to_pass_signals>: Use
11613 TARGET_DEFAULT_IGNORE.
11614
11615 2014-02-19 Tom Tromey <tromey@redhat.com>
11616
11617 * target-delegates.c: Rebuild.
11618 * target.c (default_mourn_inferior): New function.
11619 (target_mourn_inferior): Unconditionally delegate.
11620 * target.h (struct target_ops) <to_mourn_inferior>: Use
11621 TARGET_DEFAULT_FUNC.
11622
11623 2014-02-19 Tom Tromey <tromey@redhat.com>
11624
11625 * target-delegates.c: Rebuild.
11626 * target.c (default_follow_fork): New function.
11627 (target_follow_fork): Unconditionally delegate.
11628 * target.h (struct target_ops) <to_follow_fork>: Use
11629 TARGET_DEFAULT_FUNC.
11630
11631 2014-02-19 Tom Tromey <tromey@redhat.com>
11632
11633 * target-delegates.c: Rebuild.
11634 * target.c (target_kill): Unconditionally delegate.
11635 * target.h (struct target_ops) <to_kill>: Use
11636 TARGET_DEFAULT_NORETURN.
11637
11638 2014-02-19 Tom Tromey <tromey@redhat.com>
11639
11640 * target-delegates.c: Rebuild.
11641 * target.c (target_masked_watch_num_registers): Unconditionally
11642 delegate.
11643 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11644 Use TARGET_DEFAULT_RETURN.
11645
11646 2014-02-19 Tom Tromey <tromey@redhat.com>
11647
11648 * target-delegates.c: Rebuild.
11649 * target.c (target_remove_mask_watchpoint): Unconditionally
11650 delegate.
11651 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11652 TARGET_DEFAULT_RETURN.
11653
11654 2014-02-19 Tom Tromey <tromey@redhat.com>
11655
11656 * target-delegates.c: Rebuild.
11657 * target.c (target_insert_mask_watchpoint): Unconditionally
11658 delegate.
11659 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11660 TARGET_DEFAULT_RETURN.
11661
11662 2014-02-19 Tom Tromey <tromey@redhat.com>
11663
11664 * target-delegates.c: Rebuild.
11665 * target.c (target_ranged_break_num_registers): Unconditionally
11666 delegate.
11667 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11668 Use TARGET_DEFAULT_RETURN.
11669
11670 2014-02-19 Tom Tromey <tromey@redhat.com>
11671
11672 * target-delegates.c: Rebuild.
11673 * target.c (target_fetch_registers): Unconditionally delegate.
11674 * target.h (struct target_ops) <to_fetch_registers>: Use
11675 TARGET_DEFAULT_NORETURN.
11676
11677 2014-02-19 Tom Tromey <tromey@redhat.com>
11678
11679 * target-delegates.c: Rebuild.
11680 * target.c (update_current_target): Don't inherit or default
11681 to_stop.
11682 * target.h (struct target_ops) <to_stop>: Use
11683 TARGET_DEFAULT_IGNORE.
11684
11685 2014-02-19 Tom Tromey <tromey@redhat.com>
11686
11687 * target-delegates.c: Rebuild.
11688 * target.c (update_current_target): Don't inherit or default
11689 to_can_run_breakpoint_commands.
11690 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11691 Use TARGET_DEFAULT_RETURN.
11692
11693 2014-02-19 Tom Tromey <tromey@redhat.com>
11694
11695 * target-delegates.c: Rebuild.
11696 * target.c (update_current_target): Don't inherit or default
11697 to_supports_evaluation_of_breakpoint_conditions.
11698 * target.h (struct target_ops)
11699 <to_supports_evaluation_of_breakpoint_conditions>: Use
11700 TARGET_DEFAULT_RETURN.
11701
11702 2014-02-19 Tom Tromey <tromey@redhat.com>
11703
11704 * target-delegates.c: Rebuild.
11705 * target.c (update_current_target): Don't inherit or default
11706 to_augmented_libraries_svr4_read.
11707 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11708 Use TARGET_DEFAULT_RETURN.
11709
11710 2014-02-19 Tom Tromey <tromey@redhat.com>
11711
11712 * target-delegates.c: Rebuild.
11713 * target.c (update_current_target): Don't inherit or default
11714 to_can_use_agent.
11715 * target.h (struct target_ops) <to_can_use_agent>: Use
11716 TARGET_DEFAULT_RETURN.
11717
11718 2014-02-19 Tom Tromey <tromey@redhat.com>
11719
11720 * target-delegates.c: Rebuild.
11721 * target.c (update_current_target): Don't inherit or default
11722 to_use_agent.
11723 * target.h (struct target_ops) <to_use_agent>: Use
11724 TARGET_DEFAULT_NORETURN.
11725
11726 2014-02-19 Tom Tromey <tromey@redhat.com>
11727
11728 * target-delegates.c: Rebuild.
11729 * target.c (update_current_target): Don't inherit or default
11730 to_traceframe_info.
11731 (return_null): Remove.
11732 * target.h (struct target_ops) <to_traceframe_info>: Use
11733 TARGET_DEFAULT_RETURN.
11734
11735 2014-02-19 Tom Tromey <tromey@redhat.com>
11736
11737 * target-delegates.c: Rebuild.
11738 * target.c (update_current_target): Don't inherit or default
11739 to_static_tracepoint_markers_by_strid.
11740 * target.h (struct target_ops)
11741 <to_static_tracepoint_markers_by_strid>: Use
11742 TARGET_DEFAULT_NORETURN.
11743
11744 2014-02-19 Tom Tromey <tromey@redhat.com>
11745
11746 * target-delegates.c: Rebuild.
11747 * target.c (update_current_target): Don't inherit or default
11748 to_static_tracepoint_marker_at.
11749 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11750 Use TARGET_DEFAULT_RETURN.
11751
11752 2014-02-19 Tom Tromey <tromey@redhat.com>
11753
11754 * target-delegates.c: Rebuild.
11755 * target.c (update_current_target): Don't inherit or default
11756 to_set_permissions.
11757 * target.h (struct target_ops) <to_set_permissions>: Use
11758 TARGET_DEFAULT_IGNORE.
11759
11760 2014-02-19 Tom Tromey <tromey@redhat.com>
11761
11762 * target-delegates.c: Rebuild.
11763 * target.c (update_current_target): Don't inherit or default
11764 to_get_tib_address.
11765 * target.h (struct target_ops) <to_get_tib_address>: Use
11766 TARGET_DEFAULT_NORETURN.
11767
11768 2014-02-19 Tom Tromey <tromey@redhat.com>
11769
11770 * target-delegates.c: Rebuild.
11771 * target.c (update_current_target): Don't inherit or default
11772 to_set_trace_notes.
11773 * target.h (struct target_ops) <to_set_trace_notes>: Use
11774 TARGET_DEFAULT_RETURN.
11775
11776 2014-02-19 Tom Tromey <tromey@redhat.com>
11777
11778 * target-delegates.c: Rebuild.
11779 * target.c (update_current_target): Don't initialize
11780 to_set_trace_buffer_size.
11781 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11782 TARGET_DEFAULT_IGNORE.
11783
11784 2014-02-19 Tom Tromey <tromey@redhat.com>
11785
11786 * target-delegates.c: Rebuild.
11787 * target.c (update_current_target): Don't inherit or default
11788 to_set_circular_trace_buffer.
11789 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11790 TARGET_DEFAULT_IGNORE.
11791
11792 2014-02-19 Tom Tromey <tromey@redhat.com>
11793
11794 * target-delegates.c: Rebuild.
11795 * target.c (update_current_target): Don't inherit or default
11796 to_set_disconnected_tracing.
11797 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11798 TARGET_DEFAULT_IGNORE.
11799
11800 2014-02-19 Tom Tromey <tromey@redhat.com>
11801
11802 * target-delegates.c: Rebuild.
11803 * target.c (update_current_target): Don't inherit or default
11804 to_get_min_fast_tracepoint_insn_len.
11805 (return_minus_one): Remove.
11806 * target.h (struct target_ops)
11807 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11808
11809 2014-02-19 Tom Tromey <tromey@redhat.com>
11810
11811 * target-delegates.c: Rebuild.
11812 * target.c (update_current_target): Don't inherit or default
11813 to_get_raw_trace_data.
11814 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11815 TARGET_DEFAULT_NORETURN.
11816
11817 2014-02-19 Tom Tromey <tromey@redhat.com>
11818
11819 * target-delegates.c: Rebuild.
11820 * target.c (update_current_target): Don't inherit or default
11821 to_upload_trace_state_variables.
11822 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11823 Use TARGET_DEFAULT_RETURN.
11824
11825 2014-02-19 Tom Tromey <tromey@redhat.com>
11826
11827 * target-delegates.c: Rebuild.
11828 * target.c (update_current_target): Don't inherit or default
11829 to_upload_tracepoints.
11830 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11831 TARGET_DEFAULT_RETURN.
11832
11833 2014-02-19 Tom Tromey <tromey@redhat.com>
11834
11835 * target-delegates.c: Rebuild.
11836 * target.c (update_current_target): Don't inherit or default
11837 to_save_trace_data.
11838 * target.h (struct target_ops) <to_save_trace_data>: Use
11839 TARGET_DEFAULT_NORETURN.
11840
11841 2014-02-19 Tom Tromey <tromey@redhat.com>
11842
11843 * target-delegates.c: Rebuild.
11844 * target.c (update_current_target): Don't inherit or default
11845 to_get_trace_state_variable_value.
11846 * target.h (struct target_ops)
11847 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11848
11849 2014-02-19 Tom Tromey <tromey@redhat.com>
11850
11851 * target-delegates.c: Rebuild.
11852 * target.c (update_current_target): Don't inherit or default
11853 to_trace_find.
11854 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11855
11856 2014-02-19 Tom Tromey <tromey@redhat.com>
11857
11858 * target-delegates.c: Rebuild.
11859 * target.c (update_current_target): Don't inherit or default
11860 to_trace_stop.
11861 * target.h (struct target_ops) <to_trace_stop>: Use
11862 TARGET_DEFAULT_NORETURN.
11863
11864 2014-02-19 Tom Tromey <tromey@redhat.com>
11865
11866 * target-delegates.c: Rebuild.
11867 * target.c (update_current_target): Don't inherit or default
11868 to_get_tracepoint_status.
11869 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11870 TARGET_DEFAULT_NORETURN.
11871
11872 2014-02-19 Tom Tromey <tromey@redhat.com>
11873
11874 * target-delegates.c: Rebuild.
11875 * target.c (update_current_target): Don't inherit or default
11876 to_get_trace_status.
11877 * target.h (struct target_ops) <to_get_trace_status>: Use
11878 TARGET_DEFAULT_RETURN.
11879
11880 2014-02-19 Tom Tromey <tromey@redhat.com>
11881
11882 * target-delegates.c: Rebuild.
11883 * target.c (update_current_target): Don't inherit or default
11884 to_trace_start.
11885 * target.h (struct target_ops) <to_trace_start>: Use
11886 TARGET_DEFAULT_NORETURN.
11887
11888 2014-02-19 Tom Tromey <tromey@redhat.com>
11889
11890 * target-delegates.c: Rebuild.
11891 * target.c (update_current_target): Don't inherit or default
11892 to_trace_set_readonly_regions.
11893 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11894 Use TARGET_DEFAULT_NORETURN.
11895
11896 2014-02-19 Tom Tromey <tromey@redhat.com>
11897
11898 * target-delegates.c: Rebuild.
11899 * target.c (update_current_target): Don't inherit or default
11900 to_disable_tracepoint.
11901 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11902 TARGET_DEFAULT_NORETURN.
11903
11904 2014-02-19 Tom Tromey <tromey@redhat.com>
11905
11906 * target-delegates.c: Rebuild.
11907 * target.c (update_current_target): Don't inherit or default
11908 to_enable_tracepoint.
11909 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11910 TARGET_DEFAULT_NORETURN.
11911
11912 2014-02-19 Tom Tromey <tromey@redhat.com>
11913
11914 * target-delegates.c: Rebuild.
11915 * target.c (update_current_target): Don't inherit or default
11916 to_download_trace_state_variable.
11917 * target.h (struct target_ops) <to_download_trace_state_variable>:
11918 Use TARGET_DEFAULT_NORETURN.
11919
11920 2014-02-19 Tom Tromey <tromey@redhat.com>
11921
11922 * target-delegates.c: Rebuild.
11923 * target.c (update_current_target): Don't inherit or default
11924 to_can_download_tracepoint.
11925 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11926 TARGET_DEFAULT_RETURN.
11927
11928 2014-02-19 Tom Tromey <tromey@redhat.com>
11929
11930 * target-delegates.c: Rebuild.
11931 * target.c (update_current_target): Don't inherit or default
11932 to_download_tracepoint.
11933 * target.h (struct target_ops) <to_download_tracepoint>: Use
11934 TARGET_DEFAULT_NORETURN.
11935
11936 2014-02-19 Tom Tromey <tromey@redhat.com>
11937
11938 * target-delegates.c: Rebuild.
11939 * target.c (update_current_target): Don't inherit or default
11940 to_trace_init.
11941 * target.h (struct target_ops) <to_trace_init>: Use
11942 TARGET_DEFAULT_RETURN.
11943
11944 2014-02-19 Tom Tromey <tromey@redhat.com>
11945
11946 * target-delegates.c: Rebuild.
11947 * target.c (update_current_target): Don't inherit or default
11948 to_supports_string_tracing.
11949 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11950 TARGET_DEFAULT_RETURN.
11951
11952 2014-02-19 Tom Tromey <tromey@redhat.com>
11953
11954 * target-delegates.c: Rebuild.
11955 * target.c (update_current_target): Don't inherit or default
11956 to_supports_enable_disable_tracepoint.
11957 * target.h (struct target_ops)
11958 <to_supports_enable_disable_tracepoint>: Use
11959 TARGET_DEFAULT_RETURN.
11960
11961 2014-02-19 Tom Tromey <tromey@redhat.com>
11962
11963 * target-delegates.c: Rebuild.
11964 * target.c (update_current_target): Don't inherit or default
11965 to_supports_multi_process.
11966 * target.h (struct target_ops) <to_supports_multi_process>: Use
11967 TARGET_DEFAULT_RETURN.
11968
11969 2014-02-19 Tom Tromey <tromey@redhat.com>
11970
11971 * target-delegates.c: Rebuild.
11972 * target.c (update_current_target): Don't inherit or default
11973 to_get_ada_task_ptid.
11974 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11975 TARGET_DEFAULT_FUNC.
11976
11977 2014-02-19 Tom Tromey <tromey@redhat.com>
11978
11979 * target-delegates.c: Rebuild.
11980 * target.c (update_current_target): Don't inherit or default
11981 to_thread_architecture.
11982 * target.h (struct target_ops) <to_thread_architecture>: Use
11983 TARGET_DEFAULT_FUNC.
11984
11985 2014-02-19 Tom Tromey <tromey@redhat.com>
11986
11987 * target-delegates.c: Rebuild.
11988 * target.c (update_current_target): Don't inherit or default
11989 to_execution_direction.
11990 * target.h (struct target_ops) <to_execution_direction>: Use
11991 TARGET_DEFAULT_FUNC.
11992
11993 2014-02-19 Tom Tromey <tromey@redhat.com>
11994
11995 * target-delegates.c: Rebuild.
11996 * target.c (update_current_target): Don't inherit or default
11997 to_can_execute_reverse.
11998 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11999 TARGET_DEFAULT_RETURN.
12000 (target_can_execute_reverse): Unconditionally delegate.
12001
12002 2014-02-19 Tom Tromey <tromey@redhat.com>
12003
12004 * target-delegates.c: Rebuild.
12005 * target.c (update_current_target): Don't inherit or default
12006 to_goto_bookmark.
12007 (dummy_goto_bookmark): Remove.
12008 (init_dummy_target): Don't inherit or default to_goto_bookmark.
12009 * target.h (struct target_ops) <to_goto_bookmark>: Use
12010 TARGET_DEFAULT_NORETURN.
12011
12012 2014-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_get_bookmark.
12017 (dummy_get_bookmark): Remove.
12018 (init_dummy_target): Don't inherit or default to_get_bookmark.
12019 * target.h (struct target_ops) <to_get_bookmark>: Use
12020 TARGET_DEFAULT_NORETURN
12021
12022 2014-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_make_corefile_notes.
12027 (init_dummy_target): Don't initialize to_make_corefile_notes.
12028 * target.h (struct target_ops) <to_make_corefile_notes>: Use
12029 TARGET_DEFAULT_FUNC.
12030
12031 2014-02-19 Tom Tromey <tromey@redhat.com>
12032
12033 * target-delegates.c: Rebuild.
12034 * target.c (update_current_target): Don't inherit or default
12035 to_find_memory_regions.
12036 (init_dummy_target): Don't initialize to_find_memory_regions.
12037 * target.h (struct target_ops) <to_find_memory_regions>: Use
12038 TARGET_DEFAULT_FUNC.
12039
12040 2014-02-19 Tom Tromey <tromey@redhat.com>
12041
12042 * target-delegates.c: Rebuild.
12043 * target.c (update_current_target): Don't inherit or default
12044 to_log_command.
12045 * target.h (struct target_ops) <to_log_command>: Use
12046 TARGET_DEFAULT_IGNORE.
12047 (target_log_command): Unconditionally delegate.
12048
12049 2014-02-19 Tom Tromey <tromey@redhat.com>
12050
12051 * target-delegates.c: Rebuild.
12052 * target.c (update_current_target): Don't inherit or default
12053 to_pid_to_exec_file.
12054 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12055 TARGET_DEFAULT_RETURN.
12056
12057 2014-02-19 Tom Tromey <tromey@redhat.com>
12058
12059 * target-delegates.c: Rebuild.
12060 * target.c (update_current_target): Don't inherit or default
12061 to_thread_name.
12062 (target_thread_name): Unconditionally delegate.
12063 * target.h (struct target_ops) <to_thread_name>: Use
12064 TARGET_DEFAULT_RETURN.
12065
12066 2014-02-19 Tom Tromey <tromey@redhat.com>
12067
12068 * target-delegates.c: Rebuild.
12069 * target.c (update_current_target): Don't inherit or default
12070 to_extra_thread_info.
12071 * target.h (struct target_ops) <to_extra_thread_info>: Use
12072 TARGET_DEFAULT_RETURN.
12073
12074 2014-02-19 Tom Tromey <tromey@redhat.com>
12075
12076 * target-delegates.c: Rebuild.
12077 * target.c (update_current_target): Don't inherit or default
12078 to_has_exited.
12079 * target.h (struct target_ops) <to_has_exited>: Use
12080 TARGET_DEFAULT_RETURN..
12081
12082 2014-02-19 Tom Tromey <tromey@redhat.com>
12083
12084 * target-delegates.c: Rebuild.
12085 * target.c (update_current_target): Don't inherit or default
12086 to_set_syscall_catchpoint.
12087 (return_one): Remove.
12088 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12089 TARGET_DEFAULT_RETURN.
12090
12091 2014-02-19 Tom Tromey <tromey@redhat.com>
12092
12093 * target-delegates.c: Rebuild.
12094 * target.c (update_current_target): Don't inherit or default
12095 to_insert_exec_catchpoint.
12096 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12097 TARGET_DEFAULT_RETURN.
12098
12099 2014-01-08 Tom Tromey <tromey@redhat.com>
12100
12101 * target-delegates.c: Rebuild.
12102 * target.c (update_current_target): Don't inherit or default
12103 to_insert_exec_catchpoint.
12104 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12105 TARGET_DEFAULT_RETURN.
12106
12107 2014-02-19 Tom Tromey <tromey@redhat.com>
12108
12109 * target-delegates.c: Rebuild.
12110 * target.c (update_current_target): Don't inherit or default
12111 to_remove_vfork_catchpoint.
12112 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12113 TARGET_DEFAULT_RETURN.
12114
12115 2014-02-19 Tom Tromey <tromey@redhat.com>
12116
12117 * target-delegates.c: Rebuild.
12118 * target.c (update_current_target): Don't inherit or default
12119 to_insert_vfork_catchpoint.
12120 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12121 TARGET_DEFAULT_RETURN.
12122
12123 2014-02-19 Tom Tromey <tromey@redhat.com>
12124
12125 * target-delegates.c: Rebuild.
12126 * target.c (update_current_target): Don't inherit or default
12127 to_remove_fork_catchpoint.
12128 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12129 TARGET_DEFAULT_RETURN.
12130
12131 2014-02-19 Tom Tromey <tromey@redhat.com>
12132
12133 * target-delegates.c: Rebuild.
12134 * target.c (update_current_target): Don't inherit or default
12135 to_insert_fork_catchpoint.
12136 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12137 TARGET_DEFAULT_RETURN.
12138
12139 2014-02-19 Tom Tromey <tromey@redhat.com>
12140
12141 * target-delegates.c: Rebuild.
12142 * target.c (update_current_target): Don't inherit or default
12143 to_post_startup_inferior.
12144 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12145 TARGET_DEFAULT_IGNORE.
12146
12147 2014-02-19 Tom Tromey <tromey@redhat.com>
12148
12149 * target-delegates.c: Rebuild.
12150 * target.c (update_current_target): Don't inherit or default
12151 to_load.
12152 * target.h (struct target_ops) <to_load>: Use
12153 TARGET_DEFAULT_NORETURN.
12154
12155 2014-02-19 Tom Tromey <tromey@redhat.com>
12156
12157 * target-delegates.c: Rebuild.
12158 * target.c (update_current_target): Don't inherit or default
12159 to_terminal_info.
12160 * target.h (struct target_ops) <to_terminal_info>: Use
12161 TARGET_DEFAULT_FUNC.
12162
12163 2014-02-19 Tom Tromey <tromey@redhat.com>
12164
12165 * target-delegates.c: Rebuild.
12166 * target.c (update_current_target): Don't inherit or default
12167 to_terminal_save_ours.
12168 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12169 TARGET_DEFAULT_IGNORE.
12170
12171 2014-02-19 Tom Tromey <tromey@redhat.com>
12172
12173 * target-delegates.c: Rebuild.
12174 * target.c (update_current_target): Don't inherit or default
12175 to_terminal_ours.
12176 * target.h (struct target_ops) <to_terminal_ours>: Use
12177 TARGET_DEFAULT_IGNORE.
12178
12179 2014-02-19 Tom Tromey <tromey@redhat.com>
12180
12181 * target-delegates.c: Rebuild.
12182 * target.c (update_current_target): Don't inherit or default
12183 to_terminal_ours_for_output.
12184 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12185 TARGET_DEFAULT_IGNORE.
12186
12187 2014-02-19 Tom Tromey <tromey@redhat.com>
12188
12189 * target-delegates.c: Rebuild.
12190 * target.c (update_current_target): Don't inherit or default
12191 to_terminal_inferior.
12192 * target.h (struct target_ops) <to_terminal_inferior>: Use
12193 TARGET_DEFAULT_IGNORE.
12194
12195 2014-02-19 Tom Tromey <tromey@redhat.com>
12196
12197 * target-delegates.c: Rebuild.
12198 * target.c (update_current_target): Don't inherit or default
12199 to_terminal_init.
12200 * target.h (struct target_ops) <to_terminal_init>: Use
12201 TARGET_DEFAULT_IGNORE.
12202
12203 2014-02-19 Tom Tromey <tromey@redhat.com>
12204
12205 * target-delegates.c: Rebuild.
12206 * target.c (update_current_target): Don't inherit or default
12207 to_can_accel_watchpoint_condition.
12208 * target.h (struct target_ops)
12209 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12210
12211 2014-02-19 Tom Tromey <tromey@redhat.com>
12212
12213 * target-delegates.c: Rebuild.
12214 * target.c (update_current_target): Don't inherit or default
12215 to_region_ok_for_hw_watchpoint.
12216 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12217 Use TARGET_DEFAULT_FUNC.
12218
12219 2014-02-19 Tom Tromey <tromey@redhat.com>
12220
12221 * target-delegates.c: Rebuild.
12222 * target.c (update_current_target): Don't inherit or default
12223 to_watchpoint_addr_within_range.
12224 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12225 Use TARGET_DEFAULT_FUNC.
12226
12227 2014-02-19 Tom Tromey <tromey@redhat.com>
12228
12229 * target-delegates.c: Rebuild.
12230 * target.c (update_current_target): Don't inherit or default
12231 to_remove_watchpoint.
12232 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12233 TARGET_DEFAULT_NORETURN.
12234
12235 2014-02-19 Tom Tromey <tromey@redhat.com>
12236
12237 * target-delegates.c: Rebuild.
12238 * target.c (update_current_target): Don't inherit or default
12239 to_insert_watchpoint.
12240 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12241 TARGET_DEFAULT_RETURN.
12242
12243 2014-02-19 Tom Tromey <tromey@redhat.com>
12244
12245 * target-delegates.c: Rebuild.
12246 * target.c (update_current_target): Don't inherit or default
12247 to_remove_hw_breakpoint.
12248 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12249 TARGET_DEFAULT_RETURN.
12250
12251 2014-02-19 Tom Tromey <tromey@redhat.com>
12252
12253 * target-delegates.c: Rebuild.
12254 * target.c (update_current_target): Don't inherit or default
12255 to_insert_hw_breakpoint.
12256 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12257 TARGET_DEFAULT_RETURN.
12258
12259 2014-02-19 Tom Tromey <tromey@redhat.com>
12260
12261 * target-delegates.c: Rebuild.
12262 * target.c (update_current_target): Don't inherit or default
12263 to_can_use_hw_breakpoint.
12264 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12265 TARGET_DEFAULT_RETURN.
12266
12267 2014-02-19 Tom Tromey <tromey@redhat.com>
12268
12269 * target-delegates.c: Rebuild.
12270 * target.c (update_current_target): Don't inherit or default
12271 to_files_info.
12272 * target.h (struct target_ops) <to_files_info>: Use
12273 TARGET_DEFAULT_IGNORE.
12274
12275 2014-02-19 Tom Tromey <tromey@redhat.com>
12276
12277 * target-delegates.c: Rebuild.
12278 * target.c (update_current_target): Don't inherit or default
12279 to_store.
12280 * target.h (struct target_ops) <to_store>: Use
12281 TARGET_DEFAULT_NORETURN.
12282
12283 2014-02-19 Tom Tromey <tromey@redhat.com>
12284
12285 * target-delegates.c: Rebuild.
12286 * target.c (update_current_target): Don't inherit or default
12287 to_post_attach.
12288 * target.h (struct target_ops) <to_post_attach>: Use
12289 TARGET_DEFAULT_IGNORE.
12290
12291 2014-02-19 Tom Tromey <tromey@redhat.com>
12292
12293 * target-delegates.c: Rebuild.
12294 * target.c (update_current_target): Don't inherit or default
12295 to_rcmd.
12296 (default_rcmd): New function.
12297 (do_monitor_command): Unconditionally delegate.
12298 * target.h (struct target_ops) <to_rmcd>: Use
12299 TARGET_DEFAULT_FUNC.
12300
12301 2014-02-19 Tom Tromey <tromey@redhat.com>
12302
12303 * target-delegates.c: Rebuild.
12304 * target.c (init_dummy_target): Don't initialize to_attach.
12305 (target_attach): Unconditionally delegate.
12306 * target.h (struct target_ops) <to_attach>: Use
12307 TARGET_DEFAULT_FUNC.
12308
12309 2014-02-19 Tom Tromey <tromey@redhat.com>
12310
12311 * target-delegates.c: Rebuild.
12312 * target.c (target_detach): Unconditionally delegate.
12313 (init_dummy_target): Don't initialize to_detach.
12314 * target.h (struct target_ops) <to_detach>: Use
12315 TARGET_DEFAULT_IGNORE.
12316
12317 2014-02-19 Tom Tromey <tromey@redhat.com>
12318
12319 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12320 Add argument.
12321 (target_augmented_libraries_svr4_read): Add argument.
12322 * target.c (update_current_target): Update.
12323 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12324 argument.
12325
12326 2014-02-19 Tom Tromey <tromey@redhat.com>
12327
12328 * target.h (struct target_ops) <to_call_history_range>: Add
12329 argument.
12330 * target.c (target_call_history_range): Add argument.
12331 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12332 argument.
12333 (record_btrace_call_history_from): Update.
12334
12335 2014-02-19 Tom Tromey <tromey@redhat.com>
12336
12337 * target.h (struct target_ops) <to_call_history_from>: Add
12338 argument.
12339 * target.c (target_call_history_from): Add argument.
12340 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12341 argument.
12342
12343 2014-02-19 Tom Tromey <tromey@redhat.com>
12344
12345 * target.h (struct target_ops) <to_call_history>: Add argument.
12346 * target.c (target_call_history): Add argument.
12347 * record-btrace.c (record_btrace_call_history): Add 'self'
12348 argument.
12349
12350 2014-02-19 Tom Tromey <tromey@redhat.com>
12351
12352 * target.h (struct target_ops) <to_insn_history_range>: Add
12353 argument.
12354 * target.c (target_insn_history_range): Add argument.
12355 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12356 argument.
12357 (record_btrace_insn_history_from): Update.
12358
12359 2014-02-19 Tom Tromey <tromey@redhat.com>
12360
12361 * target.h (struct target_ops) <to_insn_history_from>: Add
12362 argument.
12363 * target.c (target_insn_history_from): Add argument.
12364 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12365 argument.
12366
12367 2014-02-19 Tom Tromey <tromey@redhat.com>
12368
12369 * target.h (struct target_ops) <to_insn_history>: Add argument.
12370 * target.c (target_insn_history): Add argument.
12371 * record-btrace.c (record_btrace_insn_history): Add 'self'
12372 argument.
12373
12374 2014-02-19 Tom Tromey <tromey@redhat.com>
12375
12376 * target.h (struct target_ops) <to_goto_record>: Add argument.
12377 * target.c (target_goto_record): Add argument.
12378 * record-full.c (record_full_goto): Add 'self' argument.
12379 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12380
12381 2014-02-19 Tom Tromey <tromey@redhat.com>
12382
12383 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12384 * target.c (target_goto_record_end): Add argument.
12385 * record-full.c (record_full_goto_end): Add 'self' argument.
12386 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12387
12388 2014-02-19 Tom Tromey <tromey@redhat.com>
12389
12390 * target.h (struct target_ops) <to_goto_record_begin>: Add
12391 argument.
12392 * target.c (target_goto_record_begin): Add argument.
12393 * record-full.c (record_full_goto_begin): Add 'self' argument.
12394 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12395 argument.
12396
12397 2014-02-19 Tom Tromey <tromey@redhat.com>
12398
12399 * target.h (struct target_ops) <to_record_is_replaying>: Add
12400 argument.
12401 * target.c (target_record_is_replaying): Add argument.
12402 * record-full.c (record_full_is_replaying): Add 'self' argument.
12403 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12404 argument.
12405 (record_btrace_xfer_partial, record_btrace_store_registers)
12406 (record_btrace_prepare_to_store, record_btrace_resume)
12407 (record_btrace_wait, record_btrace_decr_pc_after_break)
12408 (record_btrace_find_new_threads, record_btrace_thread_alive):
12409 Update.
12410
12411 2014-02-19 Tom Tromey <tromey@redhat.com>
12412
12413 * target.h (struct target_ops) <to_delete_record>: Add argument.
12414 * target.c (target_delete_record): Add argument.
12415 * record-full.c (record_full_delete): Add 'self' argument.
12416
12417 2014-02-19 Tom Tromey <tromey@redhat.com>
12418
12419 * target.h (struct target_ops) <to_save_record>: Add argument.
12420 * target.c (target_save_record): Add argument.
12421 * record-full.c (record_full_save): Add 'self' argument.
12422 (record_full_save): Add 'self' argument.
12423
12424 2014-02-19 Tom Tromey <tromey@redhat.com>
12425
12426 * target.h (struct target_ops) <to_info_record>: Add argument.
12427 * target.c (target_info_record): Add argument.
12428 * record.c (info_record_command): Add argument.
12429 * record-full.c (record_full_info): Add 'self' argument.
12430 * record-btrace.c (record_btrace_info): Add 'self' argument.
12431
12432 2014-02-19 Tom Tromey <tromey@redhat.com>
12433
12434 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12435 * target.c (target_stop_recording): Add argument.
12436 * record.c (record_stop): Add argument.
12437 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12438 argument.
12439
12440 2014-02-19 Tom Tromey <tromey@redhat.com>
12441
12442 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12443 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12444 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12445 argument.
12446 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12447 (_initialize_amd64_linux_nat): Use it.
12448 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12449 (_initialize_i386_linux_nat): Use it.
12450
12451 2014-02-19 Tom Tromey <tromey@redhat.com>
12452
12453 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12454 * target.c (target_teardown_btrace): Add argument.
12455 * remote.c (remote_teardown_btrace): Add 'self' argument.
12456 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12457 argument.
12458 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12459 argument.
12460
12461 2014-02-19 Tom Tromey <tromey@redhat.com>
12462
12463 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12464 * target.c (target_disable_btrace): Add argument.
12465 * remote.c (remote_disable_btrace): Add 'self' argument.
12466 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12467 argument.
12468 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12469 argument.
12470
12471 2014-02-19 Tom Tromey <tromey@redhat.com>
12472
12473 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12474 * target.c (target_enable_btrace): Add argument.
12475 * remote.c (remote_enable_btrace): Add 'self' argument.
12476 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12477 argument.
12478 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12479 argument.
12480
12481 2014-02-19 Tom Tromey <tromey@redhat.com>
12482
12483 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12484 (target_can_use_agent): Add argument.
12485 * target.c (update_current_target): Update.
12486 * remote.c (remote_can_use_agent): Add 'self' argument.
12487 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12488
12489 2014-02-19 Tom Tromey <tromey@redhat.com>
12490
12491 * target.h (struct target_ops) <to_use_agent>: Add argument.
12492 (target_use_agent): Add argument.
12493 * target.c (update_current_target): Update.
12494 * remote.c (remote_use_agent): Add 'self' argument.
12495 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12496
12497 2014-02-19 Tom Tromey <tromey@redhat.com>
12498
12499 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12500 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12501 (target_traceframe_info): Add argument.
12502 * target.c (update_current_target): Update.
12503 * remote.c (remote_traceframe_info): Add 'self' argument.
12504 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12505
12506 2014-02-19 Tom Tromey <tromey@redhat.com>
12507
12508 * target.h (target_static_tracepoint_markers_by_strid): Add
12509 argument.
12510 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12511 'self' argument.
12512 * target.c (update_current_target): Update.
12513 * remote.c (struct target_ops)
12514 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12515 * linux-nat.c (struct target_ops)
12516 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12517
12518 2014-02-19 Tom Tromey <tromey@redhat.com>
12519
12520 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12521 Add argument.
12522 (target_static_tracepoint_marker_at): Add argument.
12523 * target.c (update_current_target): Update.
12524 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12525 argument.
12526
12527 2014-02-19 Tom Tromey <tromey@redhat.com>
12528
12529 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12530 (target_set_permissions): Add argument.
12531 * target.c (update_current_target): Update.
12532 * remote.c (remote_set_permissions): Add 'self' argument.
12533 (remote_start_remote): Update.
12534
12535 2014-02-19 Tom Tromey <tromey@redhat.com>
12536
12537 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12538 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12539 (target_get_tib_address): Add argument.
12540 * target.c (update_current_target): Update.
12541 * remote.c (remote_get_tib_address): Add 'self' argument.
12542
12543 2014-02-19 Tom Tromey <tromey@redhat.com>
12544
12545 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12546 (target_set_trace_notes): Add argument.
12547 * target.c (update_current_target): Update.
12548 * remote.c (remote_set_trace_notes): Add 'self' argument.
12549
12550 2014-02-19 Tom Tromey <tromey@redhat.com>
12551
12552 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12553 argument.
12554 (target_set_trace_buffer_size): Add argument.
12555 * target.c (update_current_target): Update.
12556 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12557
12558 2014-02-19 Tom Tromey <tromey@redhat.com>
12559
12560 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12561 argument.
12562 (target_set_circular_trace_buffer): Add argument.
12563 * target.c (update_current_target): Update.
12564 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12565 argument.
12566
12567 2014-02-19 Tom Tromey <tromey@redhat.com>
12568
12569 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12570 argument.
12571 (target_set_disconnected_tracing): Add argument.
12572 * target.c (update_current_target): Update.
12573 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12574
12575 2014-02-19 Tom Tromey <tromey@redhat.com>
12576
12577 * target.h (struct target_ops)
12578 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12579 (target_get_min_fast_tracepoint_insn_len): Add argument.
12580 * target.c (update_current_target): Update.
12581 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12582 argument.
12583
12584 2014-02-19 Tom Tromey <tromey@redhat.com>
12585
12586 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12587 argument.
12588 (target_get_raw_trace_data): Add argument.
12589 * target.c (update_current_target): Update.
12590 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12591
12592 2014-02-19 Tom Tromey <tromey@redhat.com>
12593
12594 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12595 Add argument.
12596 (target_upload_trace_state_variables): Add argument.
12597 * target.c (update_current_target): Update.
12598 * remote.c (remote_upload_trace_state_variables): Add 'self'
12599 argument.
12600 (remote_start_remote): Update.
12601
12602 2014-02-19 Tom Tromey <tromey@redhat.com>
12603
12604 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12605 argument.
12606 (target_upload_tracepoints): Add argument.
12607 * target.c (update_current_target): Update.
12608 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12609 (remote_start_remote): Update.
12610
12611 2014-02-19 Tom Tromey <tromey@redhat.com>
12612
12613 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12614 (target_save_trace_data): Add argument.
12615 * target.c (update_current_target): Update.
12616 * remote.c (remote_save_trace_data): Add 'self' argument.
12617
12618 2014-02-19 Tom Tromey <tromey@redhat.com>
12619
12620 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12621 argument.
12622 * target.h (struct target_ops)
12623 <to_get_trace_state_variable_value>: Add argument.
12624 (target_get_trace_state_variable_value): Add argument.
12625 * target.c (update_current_target): Update.
12626 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12627 argument.
12628 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12629
12630 2014-02-19 Tom Tromey <tromey@redhat.com>
12631
12632 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12633 * target.h (struct target_ops) <to_trace_find>: Add argument.
12634 (target_trace_find): Add argument.
12635 * target.c (update_current_target): Update.
12636 * remote.c (remote_trace_find): Add 'self' argument.
12637 * ctf.c (ctf_trace_find): Add 'self' argument.
12638
12639 2014-02-19 Tom Tromey <tromey@redhat.com>
12640
12641 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12642 (target_trace_stop): Add argument.
12643 * target.c (update_current_target): Update.
12644 * remote.c (remote_trace_stop): Add 'self' argument.
12645
12646 2014-02-19 Tom Tromey <tromey@redhat.com>
12647
12648 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12649 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12650 argument.
12651 (target_get_tracepoint_status): Add argument.
12652 * target.c (update_current_target): Update.
12653 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12654
12655 2014-02-19 Tom Tromey <tromey@redhat.com>
12656
12657 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12658 * target.h (struct target_ops) <to_get_trace_status>: Add
12659 argument.
12660 (target_get_trace_status): Add argument.
12661 * target.c (update_current_target): Update.
12662 * remote.c (remote_get_trace_status): Add 'self' argument.
12663 (remote_start_remote, remote_can_download_tracepoint): Update.
12664 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12665
12666 2014-02-19 Tom Tromey <tromey@redhat.com>
12667
12668 * target.h (struct target_ops) <to_trace_start>: Add argument.
12669 (target_trace_start): Add argument.
12670 * target.c (update_current_target): Update.
12671 * remote.c (remote_trace_start): Add 'self' argument.
12672
12673 2014-02-19 Tom Tromey <tromey@redhat.com>
12674
12675 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12676 Add argument.
12677 (target_trace_set_readonly_regions): Add argument.
12678 * target.c (update_current_target): Update.
12679 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12680 argument.
12681
12682 2014-02-19 Tom Tromey <tromey@redhat.com>
12683
12684 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12685 argument.
12686 (target_disable_tracepoint): Add argument.
12687 * target.c (update_current_target): Update.
12688 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12689
12690 2014-02-19 Tom Tromey <tromey@redhat.com>
12691
12692 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12693 argument.
12694 (target_enable_tracepoint): Add argument.
12695 * target.c (update_current_target): Update.
12696 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12697
12698 2014-02-19 Tom Tromey <tromey@redhat.com>
12699
12700 * target.h (struct target_ops) <to_download_trace_state_variable>:
12701 Add argument.
12702 (target_download_trace_state_variable): Add argument.
12703 * target.c (update_current_target): Update.
12704 * remote.c (remote_download_trace_state_variable): Add 'self'
12705 argument.
12706
12707 2014-02-19 Tom Tromey <tromey@redhat.com>
12708
12709 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12710 argument.
12711 (target_can_download_tracepoint): Add argument.
12712 * target.c (update_current_target): Update.
12713 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12714
12715 2014-02-19 Tom Tromey <tromey@redhat.com>
12716
12717 * target.h (struct target_ops) <to_download_tracepoint>: Add
12718 argument.
12719 (target_download_tracepoint): Add argument.
12720 * target.c (update_current_target): Update.
12721 * remote.c (remote_download_tracepoint): Add 'self' argument.
12722
12723 2014-02-19 Tom Tromey <tromey@redhat.com>
12724
12725 * target.h (struct target_ops) <to_trace_init>: Add argument.
12726 (target_trace_init): Add argument.
12727 * target.c (update_current_target): Update.
12728 * remote.c (remote_trace_init): Add 'self' argument.
12729
12730 2014-02-19 Tom Tromey <tromey@redhat.com>
12731
12732 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12733 * target.c (target_fileio_readlink): Add argument.
12734 * remote.c (remote_hostio_readlink): Add 'self' argument.
12735 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12736
12737 2014-02-19 Tom Tromey <tromey@redhat.com>
12738
12739 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12740 * target.c (target_fileio_unlink): Add argument.
12741 * remote.c (remote_hostio_unlink): Add 'self' argument.
12742 (remote_file_delete): Update.
12743 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12744
12745 2014-02-19 Tom Tromey <tromey@redhat.com>
12746
12747 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12748 * target.c (target_fileio_close): Add argument.
12749 * remote.c (remote_hostio_close): Add 'self' argument.
12750 (remote_hostio_close_cleanup): Update.
12751 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12752 Update.
12753 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12754
12755 2014-02-19 Tom Tromey <tromey@redhat.com>
12756
12757 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12758 * target.c (target_fileio_pread): Add argument.
12759 * remote.c (remote_hostio_pread): Add 'self' argument.
12760 (remote_bfd_iovec_pread, remote_file_get): Update.
12761 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12762
12763 2014-02-19 Tom Tromey <tromey@redhat.com>
12764
12765 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12766 * target.c (target_fileio_pwrite): Add argument.
12767 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12768 (remote_file_put): Update.
12769 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12770
12771 2014-02-19 Tom Tromey <tromey@redhat.com>
12772
12773 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12774 * target.c (target_fileio_open): Add argument.
12775 * remote.c (remote_hostio_open): Add 'self' argument.
12776 (remote_bfd_iovec_open): Add 'self' argument.
12777 (remote_file_put): Add 'self' argument.
12778 (remote_file_get): Add 'self' argument.
12779 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12780
12781 2014-02-19 Tom Tromey <tromey@redhat.com>
12782
12783 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12784 Add argument.
12785 (target_can_run_breakpoint_commands): Add argument.
12786 * target.c (update_current_target): Update.
12787 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12788 argument.
12789 (remote_insert_breakpoint): Add 'self' argument.
12790 (remote_insert_hw_breakpoint): Add 'self' argument.
12791 (remote_can_run_breakpoint_commands): Add 'self' argument.
12792
12793 2014-02-19 Tom Tromey <tromey@redhat.com>
12794
12795 * target.h (struct target_ops)
12796 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12797 (target_supports_evaluation_of_breakpoint_conditions): Add
12798 argument.
12799 * target.c (update_current_target): Update.
12800 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12801 argument.
12802 (remote_insert_breakpoint): Add 'self' argument.
12803 (remote_insert_hw_breakpoint): Add 'self' argument.
12804 (remote_supports_cond_breakpoints): Add 'self' argument.
12805
12806 2014-02-19 Tom Tromey <tromey@redhat.com>
12807
12808 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12809 argument.
12810 (target_supports_string_tracing): Add argument.
12811 * target.c (update_current_target): Update.
12812 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12813
12814 2014-02-19 Tom Tromey <tromey@redhat.com>
12815
12816 * target.h (struct target_ops)
12817 <to_supports_disable_randomization>: Add argument.
12818 * target.c (find_default_supports_disable_randomization): Add
12819 argument.
12820 (target_supports_disable_randomization): Add argument.
12821 (find_default_supports_disable_randomization): Add 'self'
12822 argument.
12823 * remote.c (extended_remote_supports_disable_randomization): Add
12824 'self' argument.
12825 (remote_supports_disable_randomization): Add 'self' argument.
12826 (extended_remote_create_inferior): Update.
12827 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12828 'self' argument.
12829
12830 2014-02-19 Tom Tromey <tromey@redhat.com>
12831
12832 * target.h (struct target_ops)
12833 <to_supports_enable_disable_tracepoint>: Add argument.
12834 (target_supports_enable_disable_tracepoint): Add argument.
12835 * target.c (update_current_target): Update.
12836 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12837 argument.
12838
12839 2014-02-19 Tom Tromey <tromey@redhat.com>
12840
12841 * target.h (struct target_ops) <to_supports_multi_process>: Add
12842 argument.
12843 (target_supports_multi_process): Add argument.
12844 * target.c (update_current_target): Update.
12845 * remote.c (remote_supports_multi_process): Add 'self' argument.
12846 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12847 argument.
12848 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12849 argument.
12850
12851 2014-02-19 Tom Tromey <tromey@redhat.com>
12852
12853 * target.h (struct target_ops) <to_execution_direction>: Add
12854 argument.
12855 (target_execution_direction): Add argument.
12856 * target.c (default_execution_direction): Add 'self' argument.
12857 * record-full.c (record_full_execution_direction): Add 'self'
12858 argument.
12859
12860 2014-02-19 Tom Tromey <tromey@redhat.com>
12861
12862 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12863 argument.
12864 (target_can_execute_reverse): Add argument.
12865 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12866 * record-full.c (record_full_can_execute_reverse): Add 'self'
12867 argument.
12868 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12869 argument.
12870
12871 2014-02-19 Tom Tromey <tromey@redhat.com>
12872
12873 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12874 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12875 argument.
12876 (target_get_ada_task_ptid): Add argument.
12877 * target.c (update_current_target): Update.
12878 (default_get_ada_task_ptid): Add 'self' argument.
12879 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12880 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12881 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12882 argument.
12883 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12884 argument.
12885 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12886 argument.
12887 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12888 argument.
12889 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12890 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12891 argument.
12892
12893 2014-02-19 Tom Tromey <tromey@redhat.com>
12894
12895 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12896 (target_goto_bookmark): Add argument.
12897 * target.c (dummy_goto_bookmark): Add 'self' argument.
12898 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12899
12900 2014-02-19 Tom Tromey <tromey@redhat.com>
12901
12902 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12903 (target_get_bookmark): Add argument.
12904 * target.c (dummy_get_bookmark): Add 'self' argument.
12905 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12906
12907 2014-02-19 Tom Tromey <tromey@redhat.com>
12908
12909 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12910 argument.
12911 (target_make_corefile_notes): Add argument.
12912 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12913 * procfs.c (procfs_make_note_section): Add 'self' argument.
12914 (procfs_make_note_section): Add 'self' argument.
12915 (procfs_make_note_section): Add 'self' argument.
12916 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12917 argument.
12918 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12919 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12920 * exec.c (exec_make_note_section): Add 'self' argument.
12921 (exec_make_note_section): Add 'self' argument.
12922
12923 2014-02-19 Tom Tromey <tromey@redhat.com>
12924
12925 * target.h (struct target_ops) <to_find_memory_regions>: Add
12926 argument.
12927 (target_find_memory_regions): Add argument.
12928 * target.c (dummy_find_memory_regions): Add 'self' argument.
12929 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12930 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12931 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12932 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12933 * exec. (exec_do_find_memory_regions): New global.
12934 (exec_set_find_memory_regions): Rewrite.
12935 (exec_find_memory_regions): New function.
12936 (init_exec_ops): Use exec_find_memory_regions.
12937
12938 2014-02-19 Tom Tromey <tromey@redhat.com>
12939
12940 * target.h (struct target_ops) <to_supports_non_stop>: Add
12941 argument.
12942 * target.c (find_default_supports_non_stop): Add argument.
12943 (target_supports_non_stop): Add argument.
12944 (find_default_supports_non_stop): Add 'self' argument.
12945 * remote.c (remote_supports_non_stop): Add 'self' argument.
12946 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12947
12948 2014-02-19 Tom Tromey <tromey@redhat.com>
12949
12950 * target.h (struct target_ops) <to_log_command>: Add argument.
12951 (target_log_command): Add argument.
12952 * serial.h (serial_log_command): Add 'self' argument.
12953 * serial.c (serial_log_command): Add 'self' argument.
12954
12955 2014-02-19 Tom Tromey <tromey@redhat.com>
12956
12957 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12958 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12959 argument.
12960 (target_pid_to_exec_file): Add argument.
12961 * target.c (debug_to_pid_to_exec_file): Add argument.
12962 (update_current_target): Update.
12963 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12964 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12965 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12966 (linux_handle_extended_wait): Update.
12967 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12968 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12969 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12970 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12971
12972 2014-02-19 Tom Tromey <tromey@redhat.com>
12973
12974 * target.h (struct target_ops) <to_rcmd>: Add argument.
12975 (target_rcmd): Add argument.
12976 * target.c (debug_to_rcmd): Add argument.
12977 (update_current_target, do_monitor_command): Update.
12978 * remote.c (remote_rcmd): Add 'self' argument.
12979 * monitor.c (monitor_rcmd): Add 'self' argument.
12980
12981 2014-02-19 Tom Tromey <tromey@redhat.com>
12982
12983 * windows-nat.c (windows_stop): Add 'self' argument.
12984 * target.h (struct target_ops) <to_stop>: Add argument.
12985 * target.c (target_stop): Add argument.
12986 (debug_to_stop): Add argument.
12987 (update_current_target): Update.
12988 * remote.c (remote_stop): Add 'self' argument.
12989 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12990 (gdbsim_cntrl_c): Update.
12991 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12992 * procfs.c (procfs_stop): Add 'self' argument.
12993 * nto-procfs.c (procfs_stop): Add 'self' argument.
12994 * monitor.c (monitor_stop): Add 'self' argument.
12995 (monitor_open): Update.
12996 * linux-nat.c (linux_nat_stop): Add argument.
12997 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12998 * gnu-nat.c (gnu_stop): Add 'self' argument.
12999 * darwin-nat.c (darwin_stop): Add 'self' argument.
13000
13001 2014-02-19 Tom Tromey <tromey@redhat.com>
13002
13003 * target.h (struct target_ops) <to_thread_name>: Add argument.
13004 * target.c (target_thread_name): Add argument.
13005 (update_current_target): Update.
13006 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13007
13008 2014-02-19 Tom Tromey <tromey@redhat.com>
13009
13010 * target.h (struct target_ops) <to_extra_thread_info>: Add
13011 argument.
13012 (target_extra_thread_info): Add argument.
13013 * target.c (update_current_target): Update.
13014 * remote.c (remote_threads_extra_info): Add 'self' argument.
13015 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13016 argument.
13017 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13018 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13019 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13020 argument.
13021 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13022 argument.
13023 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13024 argument.
13025 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13026 argument.
13027
13028 2014-02-19 Tom Tromey <tromey@redhat.com>
13029
13030 * target.h (struct target_ops) <to_program_signals>: Add argument.
13031 * target.c (target_program_signals): Add argument.
13032 * remote.c (remote_program_signals): Add 'self' argument.
13033
13034 2014-02-19 Tom Tromey <tromey@redhat.com>
13035
13036 * target.h (struct target_ops) <to_pass_signals>: Add argument.
13037 * target.c (target_pass_signals): Add argument.
13038 * remote.c (remote_pass_signals): Add 'self' argument.
13039 (remote_start_remote): Update.
13040 * procfs.c (procfs_pass_signals): Add 'self' argument.
13041 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13042 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13043 (linux_nat_create_inferior, linux_nat_attach): Update.
13044
13045 2014-02-19 Tom Tromey <tromey@redhat.com>
13046
13047 * windows-nat.c (windows_can_run): Add 'self' argument.
13048 * target.h (struct target_ops) <to_can_run>: Add argument.
13049 (target_can_run): Add argument.
13050 * target.c (debug_to_can_run): Add argument.
13051 (update_current_target): Update.
13052 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13053 * inf-child.c (inf_child_can_run): Add 'self' argument.
13054 * go32-nat.c (go32_can_run): Add 'self' argument.
13055
13056 2014-02-19 Tom Tromey <tromey@redhat.com>
13057
13058 * target.h (struct target_ops) <to_has_exited>: Add argument.
13059 (target_has_exited): Add argument.
13060 * target.c (debug_to_has_exited): Add argument.
13061 (update_current_target): Update.
13062
13063 2014-02-19 Tom Tromey <tromey@redhat.com>
13064
13065 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13066 argument.
13067 (target_set_syscall_catchpoint): Add argument.
13068 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13069 argument.
13070 * target.c (update_current_target): Update.
13071
13072 2014-02-19 Tom Tromey <tromey@redhat.com>
13073
13074 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13075 argument.
13076 (target_remove_exec_catchpoint): Add argument.
13077 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13078 (update_current_target): Update.
13079 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13080 argument.
13081
13082 2014-02-19 Tom Tromey <tromey@redhat.com>
13083
13084 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13085 argument.
13086 (target_insert_exec_catchpoint): Add argument.
13087 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13088 (update_current_target): Update.
13089 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13090 argument.
13091
13092 2014-02-19 Tom Tromey <tromey@redhat.com>
13093
13094 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13095 argument.
13096 (target_remove_vfork_catchpoint): Add argument.
13097 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13098 (update_current_target): Update.
13099 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13100 argument.
13101
13102 2014-02-19 Tom Tromey <tromey@redhat.com>
13103
13104 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13105 argument.
13106 (target_insert_vfork_catchpoint): Add argument.
13107 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13108 (update_current_target): Update.
13109 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13110 argument.
13111
13112 2014-02-19 Tom Tromey <tromey@redhat.com>
13113
13114 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13115 argument.
13116 (target_remove_fork_catchpoint): Add argument.
13117 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13118 (update_current_target): Update.
13119 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13120 argument.
13121
13122 2014-02-19 Tom Tromey <tromey@redhat.com>
13123
13124 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13125 argument.
13126 (target_insert_fork_catchpoint): Add argument.
13127 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13128 (update_current_target): Update.
13129 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13130 argument.
13131
13132 2014-02-19 Tom Tromey <tromey@redhat.com>
13133
13134 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13135 argument.
13136 (target_post_startup_inferior): Add argument.
13137 * target.c (debug_to_post_startup_inferior): Add argument.
13138 (update_current_target): Update.
13139 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13140 argument.
13141 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13142 argument.
13143 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13144 argument.
13145 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13146 argument.
13147 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13148 'self' argument.
13149 (super_post_startup_inferior): Likewise.
13150 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13151 'self' argument.
13152 (super_post_startup_inferior): Likewise.
13153 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13154 Add 'self' argument.
13155 (super_post_startup_inferior): Likewise.
13156
13157 2014-02-19 Tom Tromey <tromey@redhat.com>
13158
13159 * target.h (struct target_ops) <to_load>: Add argument.
13160 * target.c (target_load): Add argument.
13161 (debug_to_load): Add argument.
13162 (update_current_target): Update.
13163 * remote.c (remote_load): Add 'self' argument.
13164 * remote-sim.c (gdbsim_load): Add 'self' argument.
13165 * remote-mips.c (mips_load): Add 'self' argument.
13166 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13167 * monitor.c (monitor_load): Add 'self' argument.
13168 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13169
13170 2014-02-19 Tom Tromey <tromey@redhat.com>
13171
13172 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13173 (target_terminal_info): Add argument.
13174 * target.c (debug_to_terminal_info): Add argument.
13175 (default_terminal_info): Likewise.
13176 * inflow.c (child_terminal_info): Add 'self' argument.
13177 * inferior.h (child_terminal_info): Add 'self' argument.
13178 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13179
13180 2014-02-19 Tom Tromey <tromey@redhat.com>
13181
13182 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13183 argument.
13184 (target_terminal_save_ours): Add argument.
13185 * target.c (debug_to_terminal_save_ours): Add argument.
13186 (update_current_target): Update.
13187 * inflow.c (terminal_save_ours): Add 'self' argument.
13188 * inferior.h (terminal_save_ours): Add 'self' argument.
13189
13190 2014-02-19 Tom Tromey <tromey@redhat.com>
13191
13192 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13193 (target_terminal_ours): Add argument.
13194 * target.c (debug_to_terminal_ours): Add argument.
13195 (update_current_target): Update.
13196 * remote.c (remote_terminal_ours): Add 'self' argument.
13197 (remote_close): Update.
13198 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13199 * inflow.c (terminal_ours): Add 'self' argument.
13200 * inferior.h (terminal_ours): Add 'self' argument.
13201 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13202
13203 2014-02-19 Pedro Alves <palves@redhat.com>
13204 Tom Tromey <tromey@redhat.com>
13205
13206 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13207 argument.
13208 (target_terminal_ours_for_output): Add argument.
13209 * target.c (debug_to_terminal_ours_for_output): Add argument.
13210 (update_current_target): Update.
13211 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13212 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13213 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13214
13215 2014-02-19 Tom Tromey <tromey@redhat.com>
13216
13217 * target.h (struct target_ops) <to_terminal_inferior>: Add
13218 argument.
13219 * target.c (target_terminal_inferior): Add argument.
13220 (update_current_target): Update.
13221 * remote.c (remote_terminal_inferior): Add 'self' argument.
13222 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13223 * inflow.c (terminal_inferior): Add 'self' argument.
13224 * inferior.h (terminal_inferior): Add 'self' argument.
13225 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13226 (go32_terminal_inferior): Add 'self' argument.
13227
13228 2014-02-19 Tom Tromey <tromey@redhat.com>
13229
13230 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13231 (target_terminal_init): Add argument.
13232 * target.c (debug_to_terminal_init): Add argument.
13233 (update_current_target): Update.
13234 * inflow.c (terminal_init_inferior): Add 'self' argument.
13235 * inferior.h (terminal_init_inferior): Add 'self' argument.
13236 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13237 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13238
13239 2014-02-19 Tom Tromey <tromey@redhat.com>
13240
13241 * target.h (struct target_ops)
13242 <to_can_accel_watchpoint_condition>: Add argument.
13243 (target_can_accel_watchpoint_condition): Add argument.
13244 * target.c (debug_to_can_accel_watchpoint_condition): Add
13245 argument.
13246 (update_current_target): Update.
13247 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13248 'self' argument.
13249
13250 2014-02-19 Tom Tromey <tromey@redhat.com>
13251
13252 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13253 Add argument.
13254 (target_region_ok_for_hw_watchpoint): Add argument.
13255 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13256 (default_region_ok_for_hw_watchpoint): Add argument.
13257 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13258 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13259 argument.
13260 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13261 argument.
13262 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13263 argument.
13264 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13265 'self' argument.
13266 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13267 'self' argument.
13268 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13269 'self' argument.
13270 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13271 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13272 'self' argument.
13273 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13274 Add 'self' argument.
13275
13276 2014-02-19 Tom Tromey <tromey@redhat.com>
13277
13278 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13279 argument.
13280 (target_insert_watchpoint): Add argument.
13281 * target.c (debug_to_insert_watchpoint): Add argument.
13282 (update_current_target): Update.
13283 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13284 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13285 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13286 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13287 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13288 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13289 argument.
13290 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13291 (procfs_insert_hw_watchpoint): Add 'self' argument.
13292 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13293 argument.
13294 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13295 argument.
13296 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13297 argument.
13298 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13299 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13300 argument.
13301 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13302 'self' argument.
13303
13304 2014-02-19 Tom Tromey <tromey@redhat.com>
13305
13306 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13307 argument.
13308 (target_remove_watchpoint): Add argument.
13309 * target.c (debug_to_remove_watchpoint): Add argument.
13310 (update_current_target): Update.
13311 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13312 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13313 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13314 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13315 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13316 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13317 argument.
13318 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13319 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13320 argument.
13321 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13322 argument.
13323 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13324 argument.
13325 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13326 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13327 argument.
13328 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13329 'self' argument.
13330
13331 2014-02-19 Tom Tromey <tromey@redhat.com>
13332
13333 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13334 argument.
13335 (target_remove_hw_breakpoint): Add argument.
13336 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13337 (update_current_target): Update.
13338 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13339 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13340 argument.
13341 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13342 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13343 argument.
13344 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13345 'self' argument.
13346
13347 2014-02-19 Tom Tromey <tromey@redhat.com>
13348
13349 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13350 argument.
13351 (target_insert_hw_breakpoint): Add argument.
13352 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13353 (update_current_target): Update.
13354 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13355 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13356 argument.
13357 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13358 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13359 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13360 argument.
13361 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13362 'self' argument.
13363
13364 2014-02-19 Tom Tromey <tromey@redhat.com>
13365
13366 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13367 argument.
13368 (target_can_use_hardware_watchpoint): Add argument.
13369 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13370 (update_current_target): Update.
13371 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13372 argument.
13373 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13374 argument.
13375 * remote.c (remote_check_watch_resources): Add 'self' argument.
13376 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13377 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13378 argument.
13379 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13380 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13381 argument.
13382 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13383 argument.
13384 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13385 argument.
13386 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13387 argument.
13388 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13389 argument.
13390 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13391 argument.
13392 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13393 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13394 argument.
13395 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13396 'self' argument.
13397
13398 2014-02-19 Tom Tromey <tromey@redhat.com>
13399
13400 * target.h (struct target_ops) <to_post_attach>: Add argument.
13401 (target_post_attach): Add argument.
13402 * target.c (debug_to_post_attach): Add argument.
13403 (update_current_target): Update.
13404 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13405 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13406 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13407 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13408 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13409
13410 2014-02-19 Tom Tromey <tromey@redhat.com>
13411
13412 * windows-nat.c (windows_close): Add 'self' argument.
13413 * tracepoint.c (tfile_close): Add 'self' argument.
13414 * target.h (struct target_ops) <to_close>: Add argument.
13415 * target.c (target_close): Add argument.
13416 (update_current_target): Update.
13417 * remote.c (remote_close): Add 'self' argument.
13418 * remote-sim.c (gdbsim_close): Add 'self' argument.
13419 * remote-mips.c (mips_close): Add 'self' argument.
13420 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13421 * record-full.c (record_full_close): Add 'self' argument.
13422 * record-btrace.c (record_btrace_close): Add 'self' argument.
13423 * monitor.h (monitor_close): Add 'self' argument.
13424 * monitor.c (monitor_close): Add 'self' argument.
13425 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13426 * linux-nat.c (linux_nat_close): Add argument.
13427 * go32-nat.c (go32_close): Add 'self' argument.
13428 * exec.c (exec_close_1): Add 'self' argument.
13429 * ctf.c (ctf_close): Add 'self' argument.
13430 * corelow.c (core_close): Add 'self' argument.
13431 (core_close_cleanup): Update.
13432 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13433 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13434
13435 2014-02-19 Tom Tromey <tromey@redhat.com>
13436
13437 * remote.c (remote_load): New function.
13438 (init_remote_ops): Use it.
13439
13440 2014-02-19 Tom Tromey <tromey@redhat.com>
13441
13442 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13443 argument.
13444 * common/linux-btrace.h (linux_supports_btrace): Update.
13445 * remote.c (remote_supports_btrace): Add "self" argument.
13446 * target-delegates.c: Rebuild.
13447 * target.c (target_supports_btrace): Remove.
13448 * target.h (struct target_ops) <to_supports_btrace>: Add
13449 target_ops argument.
13450 (target_supports_btrace): New define.
13451
13452 2014-02-19 Tom Tromey <tromey@redhat.com>
13453
13454 * record-full.c (record_full_beneath_to_resume_ops)
13455 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13456 (record_full_beneath_to_wait)
13457 (record_full_beneath_to_store_registers_ops)
13458 (record_full_beneath_to_store_registers)
13459 (record_full_beneath_to_xfer_partial_ops)
13460 (record_full_beneath_to_xfer_partial)
13461 (record_full_beneath_to_insert_breakpoint_ops)
13462 (record_full_beneath_to_insert_breakpoint)
13463 (record_full_beneath_to_remove_breakpoint_ops)
13464 (record_full_beneath_to_remove_breakpoint)
13465 (record_full_beneath_to_stopped_by_watchpoint)
13466 (record_full_beneath_to_stopped_data_address)
13467 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13468 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13469 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13470 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13471 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13472 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13473 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13474 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13475 (record_full_resume, record_full_wait_1)
13476 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13477 (record_full_store_registers, record_full_xfer_partial)
13478 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13479 (record_full_async, record_full_core_xfer_partial): Use target
13480 delegation.
13481 * target-delegates.c: Rebuild.
13482 * target.c (current_xfer_partial): Remove.
13483 (update_current_target): Do not INHERIT or de_fault
13484 to_insert_breakpoint, to_remove_breakpoint,
13485 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13486 to_is_async_p, to_async. Do not set to_xfer_partial field.
13487 (default_xfer_partial): Simplify.
13488 (current_xfer_partial): Remove.
13489 (target_wait, target_resume): Simplify.
13490 (find_default_can_async_p, find_default_is_async_p): Update.
13491 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13492 to_xfer_partial, to_stopped_by_watchpoint,
13493 to_stopped_data_address.
13494 (target_store_registers): Simplify.
13495 (forward_target_remove_breakpoint)
13496 (forward_target_insert_breakpoint): Remove.
13497 (target_remove_breakpoint, target_insert_breakpoint)
13498 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13499 * target.h (struct target_ops) <to_resume, to_wait,
13500 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13501 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13502 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13503 markup.
13504 (forward_target_remove_breakpoint)
13505 (forward_target_insert_breakpoint): Remove.
13506 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13507 directly.
13508 (record_btrace_insert_breakpoint): Delegate directly.
13509
13510 2014-02-19 Tom Tromey <tromey@redhat.com>
13511
13512 PR build/7701:
13513 * target-delegates.c: New file.
13514 * target.c: Include target-delegates.c.
13515 (init_dummy_target): Call install_dummy_methods.
13516 (complete_target_initialization): Call install_delegators.
13517 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13518 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13519 * make-target-delegates: New file.
13520
13521 2014-02-19 Tom Tromey <tromey@redhat.com>
13522
13523 * record.c (find_record_target): Use find_target_at.
13524 * target.c (find_target_at): New function.
13525 * target.h (find_target_at): Declare.
13526
13527 2014-02-19 Tom Tromey <tromey@redhat.com>
13528
13529 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13530 Add 'ops' argument.
13531 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13532 'ops' argument.
13533 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13534 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13535 'ops' argument.
13536 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13537 argument.
13538 * linux-nat.c (save_sigtrap): Update.
13539 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13540 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13541 (linux_nat_close): Update.
13542 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13543 argument.
13544 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13545 argument.
13546 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13547 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13548 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13549 (tmp_to_async): Add 'ops' argument.
13550 (record_full_stopped_by_watchpoint, record_full_async)
13551 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13552 argument.
13553 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13554 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13555 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13556 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13557 (remote_is_async_p, remote_async): Add 'ops' argument.
13558 (remote_stopped_data_address): Update.
13559 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13560 * target.c (update_current_target)
13561 (find_default_can_async_p, find_default_is_async_p): Update.
13562 (init_dummy_target): Update.
13563 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13564 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13565 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13566 (target_can_async_p, target_is_async_p, target_async)
13567 (target_stopped_by_watchpoint): Update.
13568
13569 2014-02-19 Yao Qi <yao@codesourcery.com>
13570
13571 PR gdb/16220
13572 * gdbarch.sh: Remove startup_gdbarch.
13573 * gdbarch.c: Regenerated.
13574 * gdbarch.h: Likewise.
13575
13576 2014-02-17 Kevin Buettner <kevinb@redhat.com>
13577
13578 * rl78-tdep.c (rl78_g10_register_name): New function.
13579 (rl78_return_value): Add g10 support.
13580 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13581 g10.
13582
13583 2014-02-17 Doug Evans <xdje42@gmail.com>
13584
13585 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13586 (SUBDIR_GUILE_SRCS): Ditto.
13587 (scm-gsmob.o): Ditto.
13588
13589 2014-02-17 Yao Qi <yao@codesourcery.com>
13590
13591 * gnu-nat.c (ILL_RPC): Declare defined function.
13592
13593 2014-02-17 Yao Qi <yao@codesourcery.com>
13594
13595 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13596 mach_msg_type_number_t.
13597 (gnu_write_inferior): Likewise.
13598
13599 2014-02-17 Yao Qi <yao@codesourcery.com>
13600
13601 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13602 in format string.
13603 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13604 (inf_validate_procs, inf_signal): Likewise.
13605 (S_exception_raise_request): Likewise.
13606 (do_mach_notify_dead_name): Likewise.
13607 (steal_exc_port): Likewise.
13608 (gnu_read_inferior): Change 'copy_count''s type to
13609 mach_msg_type_number_t.
13610 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13611 format string.
13612
13613 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13614
13615 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13616 flag. Adjust all users; in particular...
13617 (gnu_wait): ..., don't decrement its value in here...
13618 (gnu_create_inferior): ..., and instead set the flag in here,
13619 around the startup_inferior call, and call that one with
13620 START_INFERIOR_TRAPS_EXPECTED.
13621
13622 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13623 (ILL_RPC): ... new macro.
13624 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13625 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13626 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13627 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13628 functions with ILL_RPC macro.
13629 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13630 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13631 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13632 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13633 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13634 (S_proc_getlogin_reply, S_proc_getsid_reply)
13635 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13636 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13637 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13638 (S_proc_getnports_reply, S_proc_is_important_reply)
13639 (S_proc_get_code_reply): New stub functions, generated with
13640 ILL_RPC macro.
13641
13642 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13643 collected the type check structures.
13644
13645 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13646
13647 2014-02-14 Doug Evans <dje@google.com>
13648
13649 * target.c (target_write_partial): Fix result type.
13650
13651 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13652
13653 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13654 the proper offsets to access fpregset_t.
13655
13656 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13657
13658 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13659 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13660 * h8300-tdep.c (setmachinelist): Remove global.
13661 * hppa-tdep.c (hppa_sigtramp): Remove global.
13662 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13663 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13664 * ravenscar-thread.c (update_target_observer): Remove global.
13665 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13666
13667 2014-02-12 Tom Tromey <tromey@redhat.com>
13668
13669 * common/rsp-low.c: Update comments.
13670 * common/rsp-low.h: Update comments.
13671
13672 2014-02-12 Tom Tromey <tromey@redhat.com>
13673
13674 * common/rsp-low.c (convert_ascii_to_int): Remove.
13675 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13676
13677 2014-02-12 Tom Tromey <tromey@redhat.com>
13678
13679 * common/rsp-low.h (unhexify): Don't declare.
13680 * common/rsp-low.c (unhexify): Remove.
13681
13682 2014-02-12 Tom Tromey <tromey@redhat.com>
13683
13684 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13685 * common/rsp-low.c (convert_int_to_ascii): Remove.
13686
13687 2014-02-12 Tom Tromey <tromey@redhat.com>
13688
13689 * common/rsp-low.h (hexify): Don't declare.
13690 * common/rsp-low.c (hexify): Remove.
13691
13692 2014-02-12 Tom Tromey <tromey@redhat.com>
13693
13694 * common/rsp-low.c (hexify): Never take strlen of argument.
13695
13696 2014-02-12 Tom Tromey <tromey@redhat.com>
13697
13698 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13699 * remote.c (extended_remote_run, remote_rcmd)
13700 (remote_download_trace_state_variable, remote_save_trace_data)
13701 (remote_set_trace_notes): Update.
13702 * tracepoint.c (encode_source_string, tfile_write_status)
13703 (tfile_write_uploaded_tsv): Update.
13704
13705 2014-02-12 Tom Tromey <tromey@redhat.com>
13706
13707 * tracepoint.c: Include rsp-low.h.
13708 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13709 * remote.c: Include rsp-low.h.
13710 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13711 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13712 (remote_unescape_input): Move to common/rsp-low.c.
13713 * common/rsp-low.h: New file.
13714 * common/rsp-low.c: New file.
13715 * Makefile.in (SFILES): Add common/rsp-low.c.
13716 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13717 (COMMON_OBS): Add rsp-low.o.
13718 (rsp-low.o): New target.
13719
13720 2014-02-12 Tom Tromey <tromey@redhat.com>
13721
13722 * utils.h: Include print-utils.h.
13723 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13724 (int_string, core_addr_to_string, core_addr_to_string_nz)
13725 (hex_string, hex_string_custom): Don't declare.
13726 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13727 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13728 (hex_string_custom, int_string, core_addr_to_string)
13729 (core_addr_to_string_nz, host_address_to_string): Move to
13730 common/print-utils.c.
13731 * common/print-utils.h: New file.
13732 * common/print-utils.c: New file
13733 * Makefile.in (SFILES): Add common/print-utils.c.
13734 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13735 (COMMON_OBS): Add print-utils.o.
13736 (print-utils.o): New target.
13737
13738 2014-02-12 Tom Tromey <tromey@redhat.com>
13739
13740 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13741
13742 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13743
13744 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13745
13746 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13747
13748 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13749 if a PT_IO ptrace request returns sucessfully but indicates that 0
13750 bytes were transferred.
13751
13752 2014-02-12 Pedro Alves <palves@redhat.com>
13753 Kevin Buettner <kevinb@redhat.com>
13754
13755 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13756 TYPE_INSTANCE_FLAG_CODE_SPACE.
13757
13758 2014-02-12 Pedro Alves <palves@redhat.com>
13759
13760 * h8300-tdep.c (pseudo_from_raw_register)
13761 (raw_from_pseudo_register): New functions.
13762 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13763 them.
13764
13765 2014-02-12 Pedro Alves <palves@redhat.com>
13766
13767 * h8300-tdep.c (h8300_register_sim_regno): New function.
13768 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13769 gdbarch_register_sim_regno hook.
13770
13771 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13772
13773 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13774
13775 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13776
13777 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13778
13779 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13780
13781 * obsd-tdep.h (obsd_init_abi): New prototype.
13782 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13783 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13784 (obsd_init_abi): New functions.
13785 * i386obsd-tdep.c: Include "obsd-tdep.h".
13786 (i386obsd_init_abi): Call obsd_init_abi.
13787 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13788 (amd64obsd_init_abi): Call obsd_init_abi.
13789 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13790 obsd-tdep.c to gdb_target_obs.
13791
13792 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13793
13794 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13795 double float arguments to 16-byte in the argument slots.
13796
13797 2014-02-11 Doug Evans <xdje42@gmail.com>
13798
13799 * configure.ac: Don't crash if pkg-config is not found and guile
13800 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13801 in guile checks.
13802 * configure: Regenerate.
13803
13804 2014-02-11 Yao Qi <yao@codesourcery.com>
13805
13806 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13807 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13808 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13809 * gnu-nat.c (gnu_xfer_memory): Likewise.
13810 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13811 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13812 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13813 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13814
13815 2014-02-11 Yao Qi <yao@codesourcery.com>
13816
13817 * target.h (enum target_xfer_error): Rename to ...
13818 (enum target_xfer_status): ... it. New. All users updated.
13819 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13820 New.
13821 (TARGET_XFER_STATUS_ERROR_P): New macro.
13822 (target_xfer_error_to_string): Remove declaration.
13823 (target_xfer_status_to_string): Declare.
13824 (target_xfer_partial_ftype): Adjust it.
13825 (struct target_ops) <to_xfer_partial>: Return
13826 target_xfer_status. Add argument xfered_len. Update
13827 comments.
13828 * target.c (target_xfer_error_to_string): Rename to ...
13829 (target_xfer_status_to_string): ... it. New. All callers
13830 updated.
13831 (target_read_live_memory): Likewise. Call target_xfer_partial
13832 instead of target_read.
13833 (memory_xfer_live_readonly_partial): Return
13834 target_xfer_status. Add argument xfered_len.
13835 (raw_memory_xfer_partial): Likewise.
13836 (memory_xfer_partial_1): Likewise.
13837 (memory_xfer_partial): Likewise.
13838 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13839 properly. Update debug message.
13840 (default_xfer_partial, current_xfer_partial): Likewise.
13841 (target_write_partial): Likewise.
13842 (target_read_partial): Likewise. All callers updated.
13843 (read_whatever_is_readable): Likewise.
13844 (target_write_with_progress): Likewise.
13845 (target_read_alloc_1): Likewise.
13846
13847 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13848 * auxv.c (procfs_xfer_auxv): Likewise.
13849 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13850 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13851 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13852 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13853 * corefile.c (read_memory): Adjust.
13854 * corelow.c (core_xfer_partial): Likewise.
13855 * ctf.c (ctf_xfer_partial): Likewise.
13856 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13857 updated.
13858 (darwin_xfer_partial): Likewise.
13859 * exec.c (section_table_xfer_memory_partial): Likewise. All
13860 callers updated.
13861 (exec_xfer_partial): Likewise.
13862 * exec.h (section_table_xfer_memory_partial): Update
13863 declaration.
13864 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13865 negative.
13866 (gnu_xfer_partial): Likewise.
13867 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13868 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13869 (ia64_hpux_xfer_solib_got): Likewise.
13870 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13871 type of 'partial_len' to ULONGEST.
13872 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13873 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13874 (linux_nat_xfer_partial): Likewise.
13875 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13876 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13877 * monitor.c (monitor_xfer_memory): Likewise.
13878 (monitor_xfer_partial): Likewise.
13879 * procfs.c (procfs_xfer_partial): Likewise.
13880 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13881 * record-full.c (record_full_xfer_partial): Likewise.
13882 (record_full_core_xfer_partial): Likewise.
13883 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13884 (gdbsim_xfer_partial): Likewise.
13885 * remote.c (remote_write_bytes_aux): Likewise. All callers
13886 updated.
13887 (remote_write_bytes, remote_read_bytes): Likewise. All
13888 callers updated.
13889 (remote_flash_erase): Likewise. All callers updated.
13890 (remote_write_qxfer): Likewise. All callers updated.
13891 (remote_read_qxfer): Likewise. All callers updated.
13892 (remote_xfer_partial): Likewise.
13893 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13894 (rs6000_xfer_shared_libraries): Likewise.
13895 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13896 (sol_thread_xfer_partial): Likewise.
13897 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13898 (sparc_xfer_partial): Likewise.
13899 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13900 updated.
13901 (spu_xfer_partial): Likewise.
13902 * spu-multiarch.c (spu_xfer_partial): Likewise.
13903 * tracepoint.c (tfile_xfer_partial): Likewise.
13904 * windows-nat.c (windows_xfer_memory): Likewise.
13905 (windows_xfer_shared_libraries): Likewise.
13906 (windows_xfer_partial): Likewise.
13907 * valprint.c: Replace 'target_xfer_error' with
13908 'target_xfer_status' in comments.
13909
13910 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13911
13912 Checked in by Joel Brobecker <brobecker@adacore.com>.
13913 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13914
13915 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13916
13917 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13918 function parameters.
13919
13920 2014-02-10 Will Newton <will.newton@linaro.org>
13921
13922 * elfread.c (elf_rel_plt_read): Look for a .got section if
13923 looking up .got.plt fails.
13924 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13925 on address passed to elf_gnu_ifunc_record_cache.
13926 (elf_gnu_ifunc_resolve_addr): Likewise.
13927 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13928
13929 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13930
13931 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13932 (X_RETTURN): New macro.
13933 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13934
13935 * sparc64-tdep.c (sparc64_init_abi): Hook
13936 sparc_in_function_epilogue_p.
13937
13938 2014-02-10 Gary Benson <gbenson@redhat.com>
13939
13940 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13941 Rename name_matcher to symbol_matcher.
13942
13943 2014-02-10 Gary Benson <gbenson@redhat.com>
13944
13945 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13946 Use expand_symtabs_file_matcher_ftype and
13947 expand_symtabs_symbol_matcher_ftype.
13948
13949 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13950
13951 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13952 (struct ada_symbol_cache): New.
13953 (ada_free_symbol_cache): Forward declare.
13954 (struct ada_pspace_data): New.
13955 (ada_pspace_data_handle): New static global.
13956 (get_ada_pspace_data, ada_pspace_data_cleanup)
13957 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13958 (cache_space, cache): Delete, now folded inside struct
13959 ada_pspace_data.
13960 (ada_get_symbol_cache): New function.
13961 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13962 implementation.
13963 (_initialize_ada_language): Remove initialization of cache_space.
13964 Move call to observer_attach_inferior_exit up, grouping it
13965 with the other observer registrations inside this function.
13966 Rename command to be more general. Add call to
13967 register_program_space_data_with_cleanup.
13968
13969 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13970
13971 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13972 ada_new_objfile_observer.
13973 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13974 (_initialize_tasks): Update uses of ada_new_objfile_observer
13975 and ada_tasks_normal_stop_observer.
13976
13977 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13978
13979 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13980 returned by the 'Length attribute to integer.
13981
13982 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13983
13984 * ada-lang.c (_initialize_ada_language): Initialize
13985 cache_space obstack.
13986
13987 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13988
13989 * ada-lang.c (HASH_SIZE): New macro.
13990 (struct cache_entry): New type.
13991 (cache_space, cache): New static globals.
13992 (ada_clear_symbol_cache, find_entry): New functions.
13993 (lookup_cached_symbol, cache_symbol): Implement.
13994 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13995 (_initialize_ada_language): Attach ada_new_objfile_observer
13996 and ada_free_objfile_observer.
13997
13998 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13999
14000 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
14001 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
14002 struct block * parameter.
14003 (ada_lookup_symbol_list_worker): Constify local variable "block".
14004 Remove cast which is no longer necessary.
14005
14006 2014-02-10 Doug Evans <xdje42@gmail.com>
14007
14008 Add Guile as an extension language.
14009 * NEWS: Mention Guile scripting.
14010 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14011 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14012 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14013 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14014 (CLIBS): Add GUILE_LIBS.
14015 (install-guile): New rule.
14016 (guile.o): New rule.
14017 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14018 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14019 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14020 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14021 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14022 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14023 (scm-type.o, scm-utils.o, scm-value.o): New rules.
14024 * configure.ac: New option --with-guile.
14025 * configure: Regenerate.
14026 * config.in: Regenerate.
14027 * auto-load.c: Remove #include "python/python.h". Add #include
14028 "gdb/section-scripts.h".
14029 (source_section_scripts): Handle Guile scripts.
14030 (_initialize_auto_load): Add name of Guile objfile script to
14031 scripts-directory help text.
14032 * breakpoint.c (condition_command): Tweak comment to include Scheme.
14033 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14034 (struct breakpoint): New member scm_bp_object.
14035 * defs.h (enum command_control_type): New value guile_control.
14036 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
14037 "extension.h".
14038 (show_user): Update comment.
14039 (_initialize_cli_cmds): Update help text for "show user". Update help
14040 text for max-user-call-depth.
14041 * cli/cli-script.c: Remove #include "python/python.h". Add #include
14042 "extension.h".
14043 (multi_line_command_p): Add guile_control.
14044 (print_command_lines): Handle guile_control.
14045 (execute_control_command, recurse_read_control_structure): Ditto.
14046 (process_next_line): Recognize "guile" commands.
14047 * disasm.c (gdb_disassemble_info): Make non-static.
14048 * disasm.h: #include "dis-asm.h".
14049 (struct gdbarch): Add forward decl.
14050 (gdb_disassemble_info): Declare.
14051 * extension.c: #include "guile/guile.h".
14052 (extension_languages): Add guile.
14053 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14054 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14055 * gdbtypes.c (get_unsigned_type_max): New function.
14056 (get_signed_type_minmax): New function.
14057 * gdbtypes.h (get_unsigned_type_max): Declare.
14058 (get_signed_type_minmax): Declare.
14059 * guile/README: New file.
14060 * guile/guile-internal.h: New file.
14061 * guile/guile.c: New file.
14062 * guile/guile.h: New file.
14063 * guile/scm-arch.c: New file.
14064 * guile/scm-auto-load.c: New file.
14065 * guile/scm-block.c: New file.
14066 * guile/scm-breakpoint.c: New file.
14067 * guile/scm-disasm.c: New file.
14068 * guile/scm-exception.c: New file.
14069 * guile/scm-frame.c: New file.
14070 * guile/scm-gsmob.c: New file.
14071 * guile/scm-iterator.c: New file.
14072 * guile/scm-lazy-string.c: New file.
14073 * guile/scm-math.c: New file.
14074 * guile/scm-objfile.c: New file.
14075 * guile/scm-ports.c: New file.
14076 * guile/scm-pretty-print.c: New file.
14077 * guile/scm-safe-call.c: New file.
14078 * guile/scm-string.c: New file.
14079 * guile/scm-symbol.c: New file.
14080 * guile/scm-symtab.c: New file.
14081 * guile/scm-type.c: New file.
14082 * guile/scm-utils.c: New file.
14083 * guile/scm-value.c: New file.
14084 * guile/lib/gdb.scm: New file.
14085 * guile/lib/gdb/boot.scm: New file.
14086 * guile/lib/gdb/experimental.scm: New file.
14087 * guile/lib/gdb/init.scm: New file.
14088 * guile/lib/gdb/iterator.scm: New file.
14089 * guile/lib/gdb/printing.scm: New file.
14090 * guile/lib/gdb/types.scm: New file.
14091 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14092 (VPATH): Add $(GUILE_SRCDIR).
14093 (GUILE_DIR): New variable.
14094 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14095 (all): Add stamp-guile dependency.
14096 (stamp-guile): New rule.
14097 (clean-guile, install-guile, uninstall-guile): New rules.
14098 (install-only): Add install-guile dependency.
14099 (uninstall): Add uninstall-guile dependency.
14100 (clean): Add clean-guile dependency.
14101
14102 2014-02-09 Doug Evans <xdje42@gmail.com>
14103
14104 Revert this patch (which I approved, mea culpa).
14105
14106 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14107
14108 * Makefile.in (all-lib): Remove.
14109 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14110
14111 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14112
14113 Fix Python stack corruption.
14114 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14115 gdb_py_longest.
14116
14117 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14118
14119 * Makefile.in (all-lib): Remove.
14120 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14121
14122 2014-02-07 Doug Evans <dje@google.com>
14123
14124 * extension-priv.h (extension_language_script_ops): Add comment.
14125 (extension_language_ops): Add comment.
14126 (active_ext_lang_state): Fix typo in comment.
14127
14128 2014-02-07 Pedro Alves <palves@redhat.com>
14129
14130 PR breakpoints/16292
14131 * infrun.c (handle_signal_stop) <signal arrives while stepping
14132 over a breakpoint>: Switch back to the stepping thread.
14133
14134 2014-02-07 Yao Qi <yao@codesourcery.com>
14135
14136 * target.c (target_xfer_partial): Return zero if LEN is zero.
14137
14138 2014-02-07 Yao Qi <yao@codesourcery.com>
14139
14140 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14141 (ld_so_xfer_auxv): Likewise.
14142 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14143 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14144 * corelow.c (core_xfer_partial): Likewise.
14145 * ctf.c (ctf_xfer_partial): Likewise.
14146 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14147 (darwin_xfer_partial): Likewise.
14148 * exec.c (exec_xfer_partial): Likewise.
14149 * gnu-nat.c (gnu_xfer_partial): Likewise.
14150 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14151 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14152 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14153 * linux-nat.c (linux_xfer_siginfo): Likewise.
14154 (linux_proc_xfer_spu): Likewise.
14155 * procfs.c (procfs_xfer_partial): Likewise.
14156 * record-full.c (record_full_xfer_partial): Likewise.
14157 (record_full_core_xfer_partial): Likewise.
14158 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14159 * remote.c (remote_write_qxfer): Likewise.
14160 (remote_write_qxfer, remote_read_qxfer): Likewise.
14161 (remote_xfer_partial): Likewise.
14162 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14163 (rs6000_xfer_shared_libraries): Likewise.
14164 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14165 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14166 (spu_xfer_partial): Likewise.
14167 * target.c (memory_xfer_partial_1): Likewise.
14168 * tracepoint.c (tfile_xfer_partial): Likewise.
14169 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14170 (windows_xfer_partial): Likewise.
14171
14172 2014-02-07 Yao Qi <yao@codesourcery.com>
14173
14174 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14175 comments.
14176 (core_xfer_shared_libraries_aix): Likewise.
14177 * gdbarch.c, gdbarch.h: Regenerated.
14178 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14179 ULONGEST. Change 'len_avail' type to ULONGEST.
14180 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14181 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14182 declaration.
14183 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14184
14185 2014-02-07 Yao Qi <yao@codesourcery.com>
14186
14187 * corefile.c (memory_error): Get 'exception' from ERR and pass
14188 'exception' to throw_error.
14189
14190 2014-02-06 Doug Evans <xdje42@gmail.com>
14191
14192 * configure.ac (libpython checking): Remove all but python.o from
14193 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14194 * configure: Regenerate.
14195
14196 * Makefile.in (SFILES): Add extension.c.
14197 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14198 (COMMON_OBS): Add extension.o.
14199 * extension.h: New file.
14200 * extension-priv.h: New file.
14201 * extension.c: New file.
14202
14203 * python/python-internal.h: #include "extension.h".
14204 (gdbpy_auto_load_enabled): Declare.
14205 (gdbpy_apply_val_pretty_printer): Declare.
14206 (gdbpy_apply_frame_filter): Declare.
14207 (gdbpy_preserve_values): Declare.
14208 (gdbpy_breakpoint_cond_says_stop): Declare.
14209 (gdbpy_breakpoint_has_cond): Declare.
14210 (void source_python_script_for_objfile): Delete.
14211 * python/python.c: #include "extension-priv.h".
14212 Delete inclusion of "observer.h".
14213 (extension_language_python): Moved here and renamed from
14214 script_language_python in py-auto-load.c.
14215 Redefined to be of type extension_language_defn.
14216 (python_extension_script_ops): New global.
14217 (python_extension_ops): New global.
14218 (struct python_env): New member previous_active.
14219 (restore_python_env): Call restore_active_ext_lang.
14220 (ensure_python_env): Call set_active_ext_lang.
14221 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14222 New arg extlang.
14223 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14224 New arg extlang.
14225 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14226 New arg extlang.
14227 (gdbpy_eval_from_control_command): Renamed from
14228 eval_python_from_control_command, made static. New arg extlang.
14229 (gdbpy_source_script) Renamed from source_python_script, made static.
14230 New arg extlang.
14231 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14232 result to int. New arg extlang.
14233 (gdbpy_source_objfile_script): Renamed from
14234 source_python_script_for_objfile, made static. New arg extlang.
14235 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14236 static. New args extlang, extlang_printers. Change result type to
14237 "void".
14238 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14239 static. New arg extlang. Rename arg printers to extlang_printers
14240 and change type to ext_lang_type_printers *.
14241 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14242 static. Replace argument arg with extlang, extlang_printers.
14243 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14244 (!HAVE_PYTHON, source_python_script): Delete.
14245 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14246 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14247 (!HAVE_PYTHON, start_type_printers): Delete.
14248 (!HAVE_PYTHON, apply_type_printers): Delete.
14249 (!HAVE_PYTHON, free_type_printers): Delete.
14250 (_initialize_python): Delete call to observer_attach_before_prompt.
14251 (finalize_python): Set/restore active extension language.
14252 (gdbpy_finish_initialization) Renamed from
14253 finish_python_initialization, made static. New arg extlang.
14254 (gdbpy_initialized): New function.
14255 * python/python.h: #include "extension.h". Delete #include
14256 "value.h", "mi/mi-cmds.h".
14257 (extension_language_python): Declare.
14258 (GDBPY_AUTO_FILE_NAME): Delete.
14259 (enum py_bt_status): Moved to extension.h and renamed to
14260 ext_lang_bt_status.
14261 (enum frame_filter_flags): Moved to extension.h.
14262 (enum py_frame_args): Moved to extension.h and renamed to
14263 ext_lang_frame_args.
14264 (finish_python_initialization): Delete.
14265 (eval_python_from_control_command): Delete.
14266 (source_python_script): Delete.
14267 (apply_val_pretty_printer): Delete.
14268 (apply_frame_filter): Delete.
14269 (preserve_python_values): Delete.
14270 (gdbpy_script_language_defn): Delete.
14271 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14272 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14273
14274 * auto-load.c: #include "extension.h".
14275 (GDB_AUTO_FILE_NAME): Delete.
14276 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14277 (script_language_gdb): Delete, moved to extension.c and renamed to
14278 extension_language_gdb.
14279 (source_gdb_script_for_objfile): Delete.
14280 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14281 (loaded_script): Change type of language member to
14282 struct extension_language_defn *.
14283 (init_loaded_scripts_info): Initialize
14284 unsupported_script_warning_printed.
14285 (maybe_add_script): Make static. Change type of language arg to
14286 struct extension_language_defn *.
14287 (clear_section_scripts): Reset unsupported_script_warning_printed.
14288 (auto_load_objfile_script_1): Rewrite to use extension language API.
14289 (auto_load_objfile_script): Make public. Remove support-compiled-in
14290 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14291 (source_section_scripts): Rewrite to use extension language API.
14292 (load_auto_scripts_for_objfile): Rewrite to use
14293 auto_load_scripts_for_objfile.
14294 (collect_matching_scripts_data): Change type of language member to
14295 struct extension_language_defn *.
14296 (auto_load_info_scripts): Change type of language arg to
14297 struct extension_language_defn *.
14298 (unsupported_script_warning_print): New function.
14299 (script_not_found_warning_print): Make static.
14300 (_initialize_auto_load): Rewrite construction of scripts-directory
14301 help.
14302 * auto-load.h (struct objfile): Add forward decl.
14303 (struct script_language): Delete.
14304 (struct auto_load_pspace_info): Add forward decl.
14305 (struct extension_language_defn): Add forward decl.
14306 (maybe_add_script): Delete.
14307 (auto_load_objfile_script): Declare.
14308 (script_not_found_warning_print): Delete.
14309 (auto_load_info_scripts): Update prototype.
14310 (auto_load_gdb_scripts_enabled): Declare.
14311 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14312 auto_load_python_scripts_enabled and made public.
14313 (script_language_python): Delete, moved to python.c.
14314 (gdbpy_script_language_defn): Delete.
14315 (info_auto_load_python_scripts): Update to use
14316 extension_language_python.
14317
14318 * breakpoint.c (condition_command): Replace call to
14319 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14320 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14321 with call to breakpoint_ext_lang_cond_says_stop.
14322 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14323 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14324 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14325 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14326 New arg slang.
14327 (local_setattro): Print name of extension language with existing
14328 stop condition.
14329
14330 * valprint.c (val_print, value_print): Update to call
14331 apply_ext_lang_val_pretty_printer.
14332 * cp-valprint.c (cp_print_value): Update call to
14333 apply_ext_lang_val_pretty_printer.
14334 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14335 (gdbpy_apply_val_pretty_printer): Renamed from
14336 apply_val_pretty_printer. New arg extlang.
14337 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14338
14339 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14340 extension language API.
14341 * cli/cli-script.c (execute_control_command): Update to call
14342 eval_ext_lang_from_control_command.
14343
14344 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14345 enum ext_lang_bt_status values. Update call to
14346 apply_ext_lang_frame_filter.
14347 (mi_cmd_stack_list_locals): Ditto.
14348 (mi_cmd_stack_list_args): Ditto.
14349 (mi_cmd_stack_list_variables): Ditto.
14350 * mi/mi-main.c: Delete #include "python/python-internal.h".
14351 Add #include "extension.h".
14352 (mi_cmd_list_features): Replace reference to python internal variable
14353 gdb_python_initialized with call to ext_lang_initialized_p.
14354
14355 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14356 Update to use enum ext_lang_frame_args. Update to call
14357 apply_ext_lang_frame_filter.
14358 * python/py-framefilter.c (extract_sym): Update to use enum
14359 ext_lang_bt_status.
14360 (extract_value, py_print_type, py_print_value): Ditto.
14361 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14362 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14363 (py_print_frame): Ditto.
14364 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14365 New arg extlang. Update to use enum ext_lang_bt_status.
14366
14367 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14368 finish_python_initialization. Replace with call to
14369 finish_ext_lang_initialization.
14370
14371 * typeprint.c (do_free_global_table): Update to call
14372 free_ext_lang_type_printers.
14373 (create_global_typedef_table): Update to call
14374 start_ext_lang_type_printers.
14375 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14376 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14377 (type_print_options): Change type of global_printers from "void *"
14378 to "struct ext_lang_type_printers *".
14379
14380 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14381 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14382 (gdbpy_preserve_values): Renamed from preserve_python_values.
14383 New arg extlang.
14384 (!HAVE_PYTHON, preserve_python_values): Delete.
14385
14386 * utils.c (quit_flag): Delete, moved to extension.c.
14387 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14388 extension.c.
14389
14390 * eval.c: Delete #include "python/python.h".
14391 * main.c: Delete #include "python/python.h".
14392
14393 * defs.h: Update comment.
14394
14395 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14396
14397 GDB 7.7 released.
14398
14399 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14400
14401 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14402 defined.
14403
14404 2014-02-05 Yao Qi <yao@codesourcery.com>
14405
14406 * remote.c (remote_pass_signals): Remove local 'buf' and use
14407 rs->buf.
14408 (remote_program_signals): Likewise.
14409
14410 2014-02-05 Yao Qi <yao@codesourcery.com>
14411
14412 * ctf.c: Include "inferior.h" and "gdbthread.h".
14413 (CTF_PID): A new macro.
14414 (ctf_open): Call inferior_appeared and add_thread_silent.
14415 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14416 (ctf_thread_alive): New function.
14417 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14418
14419 2014-02-05 Yao Qi <yao@codesourcery.com>
14420
14421 Revert this patch:
14422
14423 2013-05-24 Yao Qi <yao@codesourcery.com>
14424
14425 * tracepoint.c (TFILE_PID): Remove.
14426 (tfile_open): Don't add thread and inferior.
14427 (tfile_close): Don't set 'inferior_ptid'. Don't call
14428 exit_inferior_silent.
14429 (tfile_thread_alive): Remove.
14430 (init_tfile_ops): Don't set field 'to_thread_alive' of
14431 tfile_ops.
14432
14433 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14434
14435 * remote.c (remote_start_remote): Call remote_check_symbols even
14436 if only symbol-file (not file) has been given.
14437
14438 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14439
14440 * gdbarch.sh (skip_entrypoint): New callback.
14441 * gdbarch.c, gdbarch.h: Regenerate.
14442 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14443 * infrun.c (fill_in_stop_func): Likewise.
14444 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14445 (ppc_elfv2_elf_make_msymbol_special): New function.
14446 (ppc_elfv2_skip_entrypoint): Likewise.
14447 (ppc_linux_init_abi): Install them for ELFv2.
14448
14449 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14450
14451 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14452 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14453 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14454 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14455 structures returned in GPRs.
14456
14457 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14458
14459 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14460 offset to the stack parameter list for the ELFv2 ABI.
14461
14462 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14463
14464 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14465 set_gdbarch_convert_from_func_ptr_addr and
14466 set_gdbarch_elf_make_msymbol_special for ELFv1.
14467 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14468 function descriptors on ELFv1.
14469 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14470 set up r12 at function entry.
14471
14472 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14473
14474 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14475 (struct gdbarch_tdep): New member elf_abi.
14476
14477 * rs6000-tdep.c: Include "elf/ppc64.h".
14478 (rs6000_gdbarch_init): Detect ELF ABI version.
14479
14480 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14481
14482 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14483 within a register pair holding a DFP 128-bit value on little-endian.
14484 (ppc64_sysv_abi_return_value_base): Likewise.
14485 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14486 (dfp_pseudo_register_write): Likewise.
14487
14488 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14489
14490 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14491 offset on little-endian when passing _Decimal32.
14492 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14493
14494 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14495
14496 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14497 of the overlapped FP register within the VSX register on little-
14498 endian platforms.
14499 (efpr_pseudo_register_write): Likewise.
14500
14501 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14502
14503 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14504 offset on little-endian when passing small structures.
14505
14506 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14507
14508 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14509 (struct ppc64_sysv_argpos): New data structure.
14510 (ppc64_sysv_abi_push_float): Remove.
14511 (ppc64_sysv_abi_push_val): New function.
14512 (ppc64_sysv_abi_push_integer): Likewise.
14513 (ppc64_sysv_abi_push_freg): Likewise.
14514 (ppc64_sysv_abi_push_vreg): Likewise.
14515 (ppc64_sysv_abi_push_param): Likewise.
14516 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14517 (ppc64_sysv_abi_return_value_base): New function.
14518 (ppc64_sysv_abi_return_value): Refactor to use it.
14519
14520 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14521
14522 * NEWS: Document new target powerpc64le-*-linux*.
14523
14524 2014-02-04 Mark Kettenis <kettenis@gnu.org>
14525
14526 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14527 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14528 core dumps.
14529 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14530 register set used in ELF core dumps. Add floating-point register set.
14531
14532 2014-02-03 Kevin Buettner <kevinb@redhat.com>
14533
14534 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14535 dwarf2_to_gdb[] table using symbolic constants. Adjust
14536 penultimate entry from number representing the PC register
14537 to symbolic constant representing the MDR register. Add
14538 constant for the PC register to the end of the table.
14539
14540 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14541
14542 * bsd-kvm.c: Include <sys/param.h>
14543
14544 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14545
14546 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14547
14548 2014-01-31 Joel Brobecker <brobecker@adacore.com>
14549
14550 * ada-lang.h (clear_ada_sym_cache): Delete.
14551
14552 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14553
14554 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14555
14556 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14557
14558 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14559 the sigreturn register save area only if the syscall is
14560 sigreturn.
14561
14562 2014-01-29 Joel Brobecker <brobecker@adacore.com>
14563
14564 * valops.c (value_slice): Minor reformatting.
14565
14566 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14567
14568 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14569
14570 2014-01-28 Joel Brobecker <brobecker@adacore.com>
14571
14572 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14573 New static globals.
14574 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14575 (ada_ignore_descriptive_types_p): New static global.
14576 (find_parallel_type_by_descriptive_type): Return immediately
14577 if ada_ignore_descriptive_types_p is set.
14578 (_initialize_ada_language): Register new commands "maintenance
14579 set ada", "maintenance show ada", "maintenance set ada
14580 ignore-descriptive-types" and "maintenance show ada
14581 ignore-descriptive-types".
14582 * NEWS: Add entry for new "maint ada set/show
14583 ignore-descriptive-types" commands.
14584
14585 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14586
14587 * record-btrace.c (record_btrace_close): Call btrace_teardown
14588 for all threads.
14589
14590 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14591
14592 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14593 "ui-out.h".
14594
14595 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14596
14597 * ada-typeprint (type_is_full_subrange_of_target_type):
14598 New function.
14599 (print_range): Add parameter bounds_prefered_p. If not set,
14600 try printing range types using the name of their base type.
14601 (print_range_type): Add parameter bounds_prefered_p.
14602 Use it in call to print_range.
14603 (print_array_type, ada_print_type): Update calls to print_range
14604 and print_range_type.
14605
14606 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14607
14608 * ada-typeprint.c (print_array_type, print_choices, print_range)
14609 (print_range_bound, print_dynamic_range_bound, print_range_type):
14610 Remove declaration.
14611
14612 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14613
14614 * ada-typeprint.c (print_range): Add missing empty line
14615 after local declaration.
14616
14617 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14618
14619 * ada-valprint.c (print_optional_low_bound): Get index_type's
14620 target type for as long as it is a TYPE_CODE_RANGE.
14621
14622 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14623
14624 * procfs.c (procfs_make_note_section): Remove assertion and
14625 associated comment.
14626
14627 2014-01-24 Yao Qi <yao@codesourcery.com>
14628
14629 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14630 * corelow.c (get_core_siginfo): Likewise.
14631
14632 2014-01-24 Yao Qi <yao@codesourcery.com>
14633
14634 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14635 ULONGEST. Don't check 'len' is negative.
14636 (remote_write_bytes): Change type of 'len' to ULONGEST.
14637
14638 2014-01-23 Tom Tromey <tromey@redhat.com>
14639
14640 PR python/16485:
14641 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14642 Handle exception from frame.block.
14643 (FrameVars.fetch_frame_locals): Likewise.
14644
14645 2014-01-23 Tom Tromey <tromey@redhat.com>
14646
14647 PR python/16487:
14648 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14649 on a NULL pointer. Move "goto error" to correct place.
14650
14651 2014-01-23 Tom Tromey <tromey@redhat.com>
14652
14653 PR python/16491:
14654 * python/py-framefilter.c (apply_frame_filter): Call
14655 ensure_python_env after computing gdbarch.
14656
14657 2014-01-23 Yao Qi <yao@codesourcery.com>
14658
14659 * target.c (raw_memory_xfer_partial): Change argument type
14660 from void * to gdb_byte *.
14661 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14662
14663 2014-01-22 Doug Evans <dje@google.com>
14664
14665 New gdbserver option --debug-format=timestamp.
14666 * NEWS: Mention it.
14667
14668 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14669
14670 * syscalls/s390x-linux.xml: New file.
14671 * syscalls/s390-linux.xml: New file.
14672 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14673 (XML_SYSCALL_FILENAME_S390X): Likewise.
14674 (op_svc): New enum value for SVC opcode.
14675 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14676 (s390_linux_get_syscall_number): New function.
14677 (s390_gdbarch_init): Register '*get_syscall_number' and the
14678 syscall xml file name.
14679 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14680 "s390-linux.xml" and "s390x-linux.xml".
14681 * NEWS: Announce new feature.
14682
14683 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14684
14685 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14686
14687 2014-01-22 Pedro Alves <palves@redhat.com>
14688
14689 * xtensa-config.c: Include defs.h.
14690
14691 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14692
14693 * common/common-utils.h: Add "ARI:" comment beside __func__
14694 reference.
14695
14696 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14697
14698 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14699 documentation a bit.
14700
14701 2014-01-21 Roland McGrath <mcgrathr@google.com>
14702
14703 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14704 * configure: Regenerate.
14705 * aclocal.m4: Regenerate.
14706 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14707 New substituted variables.
14708 (install-strip): New target.
14709 (INSTALL_SCRIPT): New substituted variable.
14710 (FLAGS_TO_PASS): Add it.
14711 (install-only): Use $(INSTALL_SCRIPT) rather than
14712 $(INSTALL_PROGRAM) for gcore.
14713
14714 2014-01-20 Tom Tromey <tromey@redhat.com>
14715
14716 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14717 together.
14718
14719 2014-01-20 Tom Tromey <tromey@redhat.com>
14720
14721 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14722 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14723 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14724 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14725 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14726 (struct cmd_list_element) <flags>: Remove.
14727 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14728 doc_allocated>: New fields.
14729 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14730 bitfields.
14731 * maint.c (maintenance_do_deprecate): Update.
14732 * top.c (execute_command): Update.
14733
14734 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14735
14736 * xtensa-linux-nat.c: Include asm/ptrace.h.
14737
14738 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14739
14740 * Makefile.in (SFILES): Add d-support.c.
14741 (COMMON_OBS): Add d-support.o.
14742 * d-lang.h (d_parse_symbol): Add comment, now defined in
14743 d-support.c.
14744 * d-lang.c (parse_call_convention)
14745 (parse_attributes, parse_function_types)
14746 (parse_function_args, parse_type, parse_identifier)
14747 (call_convention_p, d_parse_symbol): Move functions to ...
14748 * d-support.c: ... New file.
14749
14750 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14751
14752 * d-lang.h (d_parse_symbol): Add declaration.
14753 * d-lang.c (extract_identifiers)
14754 (extract_type_info): Remove functions.
14755 (parse_call_convention, parse_attributes)
14756 (parse_function_types, parse_function_args)
14757 (parse_type, parse_identifier, call_convention_p)
14758 (d_parse_symbol): New functions.
14759 (d_demangle): Use d_parse_symbol to demangle D symbols.
14760
14761 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14762
14763 * d-lang.h (struct builtin_d_type): New data type.
14764 (builtin_d_type): Add declaration.
14765 * d-lang.c (d_language_arch_info, build_d_types)
14766 (builtin_d_type): New functions.
14767 (enum d_primitive_types): New data type.
14768 (d_language_defn): Change c_language_arch_info to
14769 d_language_arch_info.
14770 (d_type_data): New static variable.
14771 (_initialize_d_language): Initialize d_type_data.
14772
14773 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14774
14775 * d-lang.h (d_main_name): Add declaration.
14776 * d-lang.c (d_main_name): New function.
14777 * symtab.c (find_main_name): Add call to d_main_name.
14778
14779 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14780
14781 * d-lang.c (d_language_defn): Change macro_expansion_c to
14782 macro_expansion_no.
14783
14784 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14785
14786 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14787
14788 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14789
14790 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14791 gdb_exception" declaration.
14792 * remote.c (getpkt_or_notif_sane): Likewise.
14793
14794 2014-01-17 Doug Evans <dje@google.com>
14795
14796 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14797 function, contents of dirnames_to_char_ptr_vec_append moved here.
14798 (delim_string_to_char_ptr_vec): New function.
14799 (dirnames_to_char_ptr_vec_append): Rewrite.
14800 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14801
14802 2014-01-17 Doug Evans <dje@google.com>
14803
14804 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14805 and moved here ...
14806 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14807 #include "common-utils.h".
14808 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14809 * common/vec.h (VEC_ASSERT_PASS): Update.
14810 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14811 (MACH_CHECK_ERROR): Update.
14812
14813 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14814
14815 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14816 comments.
14817 * gdbarch.h: Regenerate.
14818
14819 2014-01-16 Tom Tromey <tromey@redhat.com>
14820
14821 * value.c (struct value) <regnum>: Move earlier.
14822
14823 2014-01-16 Tom Tromey <tromey@redhat.com>
14824
14825 * remote.c (extended_remote_create_inferior): Rename from
14826 extended_remote_create_inferior_1. Add "ops" argument. Remove
14827 old implementation.
14828
14829 2014-01-16 Pedro Alves <palves@redhat.com>
14830
14831 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14832 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14833 the backchain.
14834
14835 2014-01-16 Doug Evans <dje@google.com>
14836
14837 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14838
14839 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14840
14841 * btrace.h (btrace_thread_flag): New.
14842 (struct btrace_thread_info) <flags>: New.
14843 * record-btrace.c (record_btrace_resume_thread)
14844 (record_btrace_find_thread_to_move, btrace_step_no_history)
14845 (btrace_step_stopped, record_btrace_start_replaying)
14846 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14847 (record_btrace_find_resume_thread): New.
14848 (record_btrace_resume, record_btrace_wait): Extend.
14849 (record_btrace_can_execute_reverse): New.
14850 (record_btrace_open): Fail in non-stop mode.
14851 (record_btrace_set_replay): Split into this, ...
14852 (record_btrace_stop_replaying): ... this, ...
14853 (record_btrace_clear_histories): ... and this.
14854 (init_record_btrace_ops): Init to_can_execute_reverse.
14855 * NEWS: Announce it.
14856
14857 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14858
14859 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14860 (forward_target_decr_pc_after_break)
14861 (target_decr_pc_after_break): New.
14862 * target.c (forward_target_decr_pc_after_break)
14863 (target_decr_pc_after_break): New.
14864 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14865 instead of gdbarch_decr_pc_after_break.
14866 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14867 instead of gdbarch_decr_pc_after_break.
14868 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14869 instead of gdbarch_decr_pc_after_break.
14870 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14871 instead of gdbarch_decr_pc_after_break.
14872 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14873 instead of gdbarch_decr_pc_after_break.
14874 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14875 instead of gdbarch_decr_pc_after_break.
14876
14877 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14878
14879 * btrace.c: Include regcache.h.
14880 (btrace_add_pc): New.
14881 (btrace_enable): Call btrace_add_pc.
14882 (btrace_is_empty): New.
14883 * btrace.h (btrace_is_empty): New.
14884 * record-btrace.c (require_btrace, record_btrace_info): Call
14885 btrace_is_empty.
14886
14887 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14888
14889 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14890 Support delta reads.
14891 (linux_disable_btrace): Change return type.
14892 * common/linux-btrace.h (linux_read_btrace): Change parameters
14893 and return type to allow error reporting. Update users.
14894 (linux_disable_btrace): Change return type. Update users.
14895 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14896 New.
14897 (btrace_error): New.
14898 (btrace_block) <begin>: Comment on BEGIN == 0.
14899 * btrace.c (btrace_compute_ftrace): Start from the end of
14900 the current trace.
14901 (btrace_stitch_trace, btrace_clear_history): New.
14902 (btrace_fetch): Read delta trace, return if replaying.
14903 (btrace_clear): Move clear history code to btrace_clear_history.
14904 (parse_xml_btrace): Throw an error if parsing failed.
14905 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14906 and return type to allow error reporting.
14907 (target_read_btrace): Change parameters and return type to allow
14908 error reporting.
14909 * target.c (target_read_btrace): Update.
14910 * remote.c (remote_read_btrace): Support delta reads. Pass
14911 errors on.
14912 * NEWS: Announce it.
14913
14914 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14915
14916 * record.h (record_btrace_frame_unwind)
14917 (record_btrace_tailcall_frame_unwind): New declarations.
14918 * dwarf2-frame: Include record.h
14919 (dwarf2_frame_cfa): Throw an error for btrace frames.
14920 * record-btrace.c: Include hashtab.h.
14921 (btrace_get_bfun_name): New.
14922 (btrace_call_history): Call btrace_get_bfun_name.
14923 (struct btrace_frame_cache): New.
14924 (bfcache): New.
14925 (bfcache_hash, bfcache_eq, bfcache_new): New.
14926 (btrace_get_frame_function): New.
14927 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14928 (record_btrace_frame_this_id): Compute own id.
14929 (record_btrace_frame_prev_register): Provide PC, throw_error
14930 for all other registers.
14931 (record_btrace_frame_sniffer): Detect btrace frames.
14932 (record_btrace_tailcall_frame_sniffer): New.
14933 (record_btrace_frame_dealloc_cache): New.
14934 (record_btrace_frame_unwind): Add new functions.
14935 (record_btrace_tailcall_frame_unwind): New.
14936 (_initialize_record_btrace): Allocate cache.
14937 * btrace.c (btrace_clear): Call reinit_frame_cache.
14938 * NEWS: Announce it.
14939
14940 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14941
14942 * record-btrace.c (record_btrace_set_replay)
14943 (record_btrace_goto_begin, record_btrace_goto_end)
14944 (record_btrace_goto): New.
14945 (init_record_btrace_ops): Initialize them.
14946 * NEWS: Announce it.
14947
14948 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14949
14950 * record-btrace.c (record_btrace_find_new_threads)
14951 (record_btrace_thread_alive): New.
14952 (init_record_btrace_ops): Initialize to_find_new_threads and
14953 to_thread_alive.
14954
14955 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14956
14957 * record-btrace.c (record_btrace_resume): New.
14958 (record_btrace_wait): New.
14959 (init_record_btrace_ops): Initialize to_wait and to_resume.
14960
14961 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14962
14963 * record-btrace.c (record_btrace_xfer_partial)
14964 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14965 (record_btrace_allow_memory_access): New.
14966 (init_record_btrace_ops): Initialize new methods.
14967 * target.c (raw_memory_xfer_partial): Bail out if target reports
14968 that this memory is not available.
14969
14970 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14971
14972 * target.h (target_ops) <to_insert_breakpoint>
14973 <to_remove_breakpoint>: Add target_ops parameter.
14974 (forward_target_insert_breakpoint): New.
14975 (forward_target_remove_breakpoint): New.
14976 (memory_remove_breakpoint, memory_insert_breakpoint):
14977 Add target_ops parameter.
14978 * target.c (target_insert_breakpoint): Split into this and ...
14979 (forward_target_insert_breakpoint): ... this.
14980 (target_remove_breakpoint): Split into this and ...
14981 (forward_target_remove_breakpoint): ... this.
14982 (debug_to_insert_breakpoint): Add target_ops parameter.
14983 Call forward_target_insert_breakpoint.
14984 (debug_to_remove_breakpoint): Add target_ops parameter.
14985 Call forward_target_remove_breakpoint.
14986 (update_current_target): Do not inherit or default to_insert_breakpoint
14987 and to_remove_breakpoint.
14988 * corelow.c (ignore): Add target_ops parameter.
14989 * exec.c (ignore): Add target_ops parameter.
14990 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14991 Add target_ops parameter.
14992 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14993 Add target_ops parameter.
14994 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14995 Add target_ops parameter.
14996 * record-full.c (record_full_beneath_to_insert_breakpoint)
14997 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14998 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14999 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
15000 (record_full_core_remove_breakpoint): Add target_ops parameter.
15001 Update users.
15002 (record_full_beneath_to_insert_breakpoint_ops)
15003 (record_full_beneath_to_remove_breakpoint_ops)
15004 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
15005 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
15006 tmp_to_remove_breakpoint_ops,
15007 record_full_beneath_to_insert_breakpoint_ops, and
15008 record_full_beneath_to_remove_breakpoint_ops.
15009 * remote-m32r-sdi.c (m32r_insert_breakpoint)
15010 (m32r_remove_breakpoint): Add target_ops parameter.
15011 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15012 Add target_ops parameter.
15013 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15014 Add target_ops parameter.
15015
15016 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15017 Markus Metzger <markus.t.metzger@intel.com>
15018
15019 * record-btrace.c: Include frame-unwind.h.
15020 (record_btrace_frame_unwind_stop_reason)
15021 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15022 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15023 New.
15024 (init_record_btrace_ops): Install it.
15025
15026 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15027
15028 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15029 get_prev_frame_1.
15030
15031 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15032
15033 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15034 earlier.
15035
15036 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15037
15038 * frame-unwind.c: Include target.h.
15039 (frame_unwind_try_unwinder): New function with code from ...
15040 (frame_unwind_find_by_frame): ... here. New variable
15041 unwinder_from_target, call also target_get_unwinder)
15042 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15043 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15044 * target.h (struct target_ops): New fields to_get_unwinder and
15045 to_get_tailcall_unwinder.
15046 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15047
15048 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15049
15050 * record-btrace.c (record_btrace_fetch_registers)
15051 (record_btrace_store_registers)
15052 (record_btrace_to_prepare_to_store): New.
15053 (init_record_btrace_ops): Add the above.
15054
15055 2014-01-16 Tom Tromey <tromey@redhat.com>
15056
15057 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15058 * target.h (struct target_ops) <to_prepare_to_store>: Add
15059 argument.
15060 (target_prepare_to_store): Add argument.
15061 * target.c (debug_to_prepare_to_store): Add argument.
15062 (update_current_target): Update.
15063 * remote.c (remote_prepare_to_store): Add 'self' argument.
15064 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15065 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15066 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15067 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15068 argument.
15069 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15070 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15071 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15072 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15073 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15074
15075 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15076
15077 * btrace.h (replay) <replay>: New.
15078 (btrace_is_replaying): New.
15079 * btrace.c (btrace_clear): Free replay iterator.
15080 (btrace_is_replaying): New.
15081 * record-btrace.c (record_btrace_is_replaying): New.
15082 (record_btrace_info): Print insn number if replaying.
15083 (record_btrace_insn_history): Start at replay position.
15084 (record_btrace_call_history): Start at replay position.
15085 (init_record_btrace_ops): Init to_record_is_replaying.
15086
15087 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15088
15089 * record-btrace.c (record_btrace_insn_history_range): Include
15090 end.
15091 (record_btrace_insn_history_from): Adjust range.
15092 (record_btrace_call_history_range): Include
15093 end.
15094 (record_btrace_call_history_from): Adjust range.
15095 * NEWS: Announce changes.
15096
15097 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15098
15099 * record.h (enum record_print_flag)
15100 <record_print_indent_calls>: New.
15101 * record.c (get_call_history_modifiers): Recognize /c modifier.
15102 (_initialize_record): Document /c modifier.
15103 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15104 Reorder fields. Optionally indent the function name. Update
15105 all users.
15106 * NEWS: Announce changes.
15107
15108 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15109
15110 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15111
15112 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15113
15114 * btrace.c (ftrace_new_function): Start counting at one.
15115 * record-btrace.c (record_btrace_info): Adjust number of calls
15116 and insns.
15117 * NEWS: Announce it.
15118
15119 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15120
15121 * record-btrace.c (btrace_call_history_insn_range): Print
15122 insn range as [begin, end].
15123
15124 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15125
15126 * btrace.h (struct btrace_func_link): New.
15127 (enum btrace_function_flag): New.
15128 (struct btrace_inst): Rename to ...
15129 (struct btrace_insn): ...this. Update all users.
15130 (struct btrace_func) <ibegin, iend>: Remove.
15131 (struct btrace_func_link): New.
15132 (struct btrace_func): Rename to ...
15133 (struct btrace_function): ...this. Update all users.
15134 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15135 (number, level, flags>: New.
15136 (struct btrace_insn_iterator): Rename to ...
15137 (struct btrace_insn_history): ...this.
15138 Update all users.
15139 (struct btrace_insn_iterator, btrace_call_iterator): New.
15140 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15141 (struct btrace_target_info) <begin, end, level>
15142 <insn_history, call_history>: New.
15143 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15144 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15145 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15146 (btrace_call_number, btrace_call_begin, btrace_call_end)
15147 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15148 (btrace_find_function_by_number, btrace_set_insn_history)
15149 (btrace_set_call_history): New.
15150 * btrace.c (btrace_init_insn_iterator)
15151 (btrace_init_func_iterator, compute_itrace): Remove.
15152 (ftrace_print_function_name, ftrace_print_filename)
15153 (ftrace_skip_file): Change
15154 parameter to const.
15155 (ftrace_init_func): Remove.
15156 (ftrace_debug): Use new btrace_function fields.
15157 (ftrace_function_switched): Also consider gaining and
15158 losing symbol information).
15159 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15160 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15161 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15162 New.
15163 (ftrace_new_function): Move. Remove debug print.
15164 (ftrace_update_lines, ftrace_update_insns): New.
15165 (ftrace_update_function): Check for call, ret, and jump.
15166 (compute_ftrace): Renamed to ...
15167 (btrace_compute_ftrace): ...this. Rewritten to compute call
15168 stack.
15169 (btrace_fetch, btrace_clear): Updated.
15170 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15171 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15172 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15173 (btrace_call_number, btrace_call_begin, btrace_call_end)
15174 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15175 (btrace_find_function_by_number, btrace_set_insn_history)
15176 (btrace_set_call_history): New.
15177 * record-btrace.c (require_btrace): Use new btrace thread
15178 info fields.
15179 (record_btrace_info, btrace_insn_history)
15180 (record_btrace_insn_history, record_btrace_insn_history_range):
15181 Use new btrace thread info fields and new iterator.
15182 (btrace_func_history_src_line): Rename to ...
15183 (btrace_call_history_src_line): ...this. Use new btrace
15184 thread info fields.
15185 (btrace_func_history): Rename to ...
15186 (btrace_call_history): ...this. Use new btrace thread info
15187 fields and new iterator.
15188 (record_btrace_call_history, record_btrace_call_history_range):
15189 Use new btrace thread info fields and new iterator.
15190
15191 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15192
15193 * frame.h (frame_id_build_unavailable_stack_special): New.
15194 * frame.c (frame_id_build_unavailable_stack_special): New.
15195
15196 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15197
15198 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15199 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15200 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15201 to gdbarch.
15202 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15203 (i386_insn_is_jump, i386_jmp_p): New.
15204 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15205 insn_is_jump to gdbarch.
15206 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15207 * gdbarch.h: Regenerated.
15208 * gdbarch.c: Regenerated.
15209 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15210 (default_insn_is_jump): New.
15211 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15212 (default_insn_is_jump): New.
15213
15214 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15215
15216 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15217 Change to ...
15218 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15219 (btrace_read_type) <btrace_read_new>: Change to ...
15220 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15221
15222 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15223
15224 * common/linux-btrace.c (linux_read_btrace): Free trace from
15225 previous iteration.
15226
15227 2014-01-15 Doug Evans <dje@google.com>
15228
15229 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15230 uint32_t.
15231
15232 2014-01-15 Tom Tromey <tromey@redhat.com>
15233
15234 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15235 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15236 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15237 (set_objfile_main_name): New function.
15238 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15239 language_of_main>: New fields.
15240 (set_objfile_main_name): Declare.
15241 * symtab.c (find_main_name): Loop over objfiles to find the main
15242 name and language.
15243 (set_main_name): Now static.
15244 (get_main_info): Add comment.
15245 * symtab.h (set_main_name): Don't declare.
15246
15247 2014-01-15 Tom Tromey <tromey@redhat.com>
15248
15249 * symtab.c (main_progspace_key): New global.
15250 (struct main_info): New.
15251 (name_of_main, language_of_main): Remove.
15252 (get_main_info, main_info_cleanup): New function.
15253 (set_main_name, main_name, main_language): Use get_main_info.
15254 (_initialize_symtab): Initialize main_progspace_key.
15255
15256 2014-01-15 Tom Tromey <tromey@redhat.com>
15257
15258 * dbxread.c (process_one_symbol): Update.
15259 * dwarf2read.c (read_partial_die): Update.
15260 * symfile.c (set_initial_language): Call main_language.
15261 * symtab.c (language_of_main): Now static.
15262 (set_main_name): Add 'lang' parameter.
15263 (find_main_name): Update.
15264 (main_language): New function.
15265 (symtab_observer_executable_changed): Update.
15266 * symtab.h (set_main_name): Update.
15267 (language_of_main): Remove.
15268 (main_language): Declare.
15269
15270 2014-01-15 Tom Tromey <tromey@redhat.com>
15271
15272 * symfile.c (init_entry_point_info): Use new "initialized" field.
15273 Update.
15274 * objfiles.h (struct entry_point) <initialized>: New field.
15275 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15276 (struct objfile) <ei>: ...here. Remove.
15277 * objfiles.c (entry_point_address_query): Update.
15278
15279 2014-01-15 Tom Tromey <tromey@redhat.com>
15280
15281 * objfiles.c (entry_point_address_query): Relocate entry point
15282 address.
15283 (objfile_relocate1): Do not relocate entry point address.
15284 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15285 <the_bfd_section_index>: New field.
15286 * symfile.c (init_entry_point_info): Find the entry point's
15287 section.
15288
15289 2014-01-15 Tom Tromey <tromey@redhat.com>
15290
15291 * solib-frv.c (enable_break): Use entry_point_address_query.
15292
15293 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15294
15295 * NEWS: Add note on improved process record-replay on
15296 arm*-linux* targets.
15297
15298 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15299
15300 * arm-tdep.c (enum arm_record_result): New enum.
15301 (arm_record_unsupported_insn): New function.
15302 (arm_record_coproc_data_proc): Removed.
15303 (thumb2_record_ld_st_multiple): New function.
15304 (thumb2_record_ld_st_dual_ex_tbb): New function.
15305 (thumb2_record_data_proc_sreg_mimm): New function.
15306 (thumb2_record_ps_dest_generic): New function.
15307 (thumb2_record_branch_misc_cntrl): New function.
15308 (thumb2_record_str_single_data): New function.
15309 (thumb2_record_ld_mem_hints): New function.
15310 (thumb2_record_ld_word): New function.
15311 (thumb2_record_lmul_lmla_div): New function.
15312 (thumb2_record_decode_insn_handler): New function.
15313 (decode_insn): Add thumb32 instruction handlers.
15314
15315 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15316
15317 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15318 (struct arm_linux_record_tdep): Declare.
15319 (arm_canonicalize_syscall): New function.
15320 (arm_all_but_pc_registers_record): New function.
15321 (arm_linux_syscall_record): New function.
15322 (arm_linux_init_abi): Add syscall recording constructs.
15323 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15324 decoding. (arm_record_coproc_data_proc): Update arm syscall
15325 decoding.
15326 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15327 <arm_syscall_record>: New field.
15328 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15329 gdb_target_obs.
15330
15331 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15332
15333 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15334 register for push instruction recording.
15335
15336 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15337
15338 * arm-tdep.c (thumb_record_misc): Update to correct logical
15339 error while recording ldm, ldmia and pop instructions.
15340
15341 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15342
15343 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15344
15345 2014-01-15 Pedro Alves <palves@redhat.com>
15346
15347 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15348 (go32_resume, go32_fetch_registers, store_register)
15349 (go32_store_registers, go32_prepare_to_store)
15350 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15351 (go32_create_inferior, go32_can_run, go32_terminal_init)
15352 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15353 declarations.
15354
15355 2014-01-15 Tom Tromey <tromey@redhat.com>
15356
15357 * target.h (async_callback_ftype): New typedef.
15358 (struct target_ops) <to_async>: Use it.
15359
15360 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15361
15362 * python/py-value.c (get_field_type): Remove unnecessary curly
15363 braces for single-statement if block.
15364
15365 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15366
15367 * python/py-type.c (convert_field): Add missing empty line
15368 after declarations.
15369
15370 2014-01-14 Doug Evans <dje@google.com>
15371
15372 * symfile.h (expand_symtabs_matching): Renamed from
15373 expand_partial_symbol_names. Update prototype.
15374 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15375 * symfile.c (expand_symtabs_matching): Renamed from
15376 expand_partial_symbol_names. New args file_matcher, kind.
15377 Rename arg fun to symbol_matcher.
15378 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15379 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15380 ada_expand_partial_symbol_name.
15381 (ada_make_symbol_completion_list): Update to call
15382 expand_symtabs_matching.
15383 (ada_add_global_exceptions): Call expand_symtabs_matching.
15384 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15385 call map_symbol_filenames.
15386 * symtab.c (sources_info): Update to call map_symbol_filenames.
15387 (search_symbols): Call expand_symtabs_matching.
15388 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15389 (default_make_symbol_completion_list_break_on): Update to call
15390 expand_symtabs_matching.
15391 (make_source_files_completion_list): Update to call
15392 map_symbol_filenames.
15393
15394 2014-01-14 Doug Evans <dje@google.com>
15395
15396 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15397 (expand_symtabs_symbol_matcher_ftype): New typedef.
15398 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15399 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15400 * symfile.c (expand_partial_symbol_names): Update to use
15401 expand_symtabs_symbol_matcher_ftype.
15402 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15403 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15404 Arg name_matcher renamed to symbol_matcher.
15405 * psymtab.c (recursively_search_psymtabs): Update to use
15406 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15407 sym_matcher.
15408 (expand_symtabs_matching_via_partial): Update to use
15409 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15410 Arg name_matcher renamed to symbol_matcher.
15411
15412 2014-01-14 Doug Evans <dje@google.com>
15413
15414 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15415 (map_partial_symbol_filenames): Ditto.
15416 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15417 (map_partial_symbol_filenames): Ditto.
15418 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15419 (map_partial_symbol_filenames): Ditto.
15420 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15421 (map_partial_symbol_filenames): Ditto.
15422 * symtab.c: Delete #include "psymtab.h".
15423
15424 2014-01-14 Pedro Alves <palves@redhat.com>
15425 Tom Tromey <tromey@redhat.com>
15426
15427 * infrun.c (use_displaced_stepping): Use find_record_target
15428 instead of RECORD_IS_USED.
15429 (adjust_pc_after_break): Use record_full_is_used instead of
15430 RECORD_IS_USED.
15431 * record-btrace.c (record_btrace_open): Call record_preopen
15432 instead of checking RECORD_IS_USED.
15433 * record-full.c (record_full_shortname)
15434 (record_full_core_shortname): New globals.
15435 (record_full_is_used): New function.
15436 (find_full_open): Call record_preopen instead of checking
15437 RECORD_IS_USED.
15438 (init_record_full_ops): Set the target's shortname to
15439 record_full_shortname.
15440 (init_record_full_core_ops): Set the target's shortname to
15441 record_full_core_shortname.
15442 * record-full.h (record_full_is_used): Declare.
15443 * record.c (find_record_target): Make extern.
15444 (record_preopen): New function.
15445 * record.h (RECORD_IS_USED): Delete macro.
15446 (find_record_target, record_preopen): Declare functions.
15447
15448 2014-01-14 Yao Qi <yao@codesourcery.com>
15449
15450 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15451 'len''s type to ULONGEST.
15452 (core_xfer_shared_libraries_aix): Likewise.
15453 * gdbarch.c, gdbarch.h: Regenerated.
15454 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15455 Change type of 'len' to ULONGEST.
15456 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15457 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15458
15459 2014-01-14 Yao Qi <yao@codesourcery.com>
15460
15461 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15462 type of 'len' to ULONGEST.
15463 (linux_xfer_osdata_processgroups): Likewise.
15464 (linux_xfer_osdata_threads): Likewise.
15465 (linux_xfer_osdata_fds): Likewise.
15466 (linux_xfer_osdata_isockets): Likewise.
15467 (linux_xfer_osdata_shm): Likewise.
15468 (linux_xfer_osdata_sem): Likewise.
15469 (linux_xfer_osdata_msg): Likewise.
15470 (linux_common_xfer_osdata): Likewise.
15471 (struct osdata_type) <getter>: Likewise.
15472 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15473 the declaration.
15474
15475 2014-01-14 Yao Qi <yao@codesourcery.com>
15476
15477 * target.h (target_xfer_partial_ftype): Update.
15478 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15479 ULONGEST.
15480 * aix-thread.c (aix_thread_xfer_partial): Change type of
15481 argument 'len' to ULONGEST.
15482 * auxv.c (procfs_xfer_auxv): Likewise.
15483 (ld_so_xfer_auxv): Likewise.
15484 (memory_xfer_auxv): Likewise.
15485 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15486 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15487 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15488 * corelow.c (core_xfer_partial): Likewise.
15489 * ctf.c (ctf_xfer_partial): Likewise.
15490 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15491 '%u'.
15492 (darwin_read_dyld_info): Likewise.
15493 (darwin_xfer_partial): Likewise.
15494 * exec.c (section_table_xfer_memory_partial): Likewise.
15495 (exec_xfer_partial): Likewise.
15496 * exec.h (section_table_xfer_memory_partial): Update
15497 declaration.
15498 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15499 instead of plongest.
15500 (gnu_xfer_partial): Likewise.
15501 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15502 (ia64_hpux_xfer_solib_got): Likewise.
15503 (ia64_hpux_xfer_partial): Likewise.
15504 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15505 * inf-ptrace.c (inf_ptrace_xfer_partial):
15506 * inf-ttrace.c (inf_ttrace_xfer_partial):
15507 * linux-nat.c (linux_xfer_siginfo): Likewise.
15508 (linux_nat_xfer_partial): Likewise.
15509 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15510 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15511 * monitor.c (monitor_xfer_memory): Likewise.
15512 (monitor_xfer_partial): Likewise.
15513 * procfs.c (procfs_xfer_partial): Likewise.
15514 * record-full.c (record_full_xfer_partial): Likewise.
15515 (record_full_core_xfer_partial): Likewise.
15516 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15517 instead of plongest.
15518 (gdbsim_xfer_partial): Likewise.
15519 * remote.c (remote_xfer_partial): Likewise.
15520 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15521 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15522 declaration.
15523 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15524 (rs6000_xfer_shared_libraries): Likewise.
15525 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15526 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15527 (sparc_xfer_partial): Likewise.
15528 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15529 (spu_xfer_partial): Likewise.
15530 * spu-multiarch.c (spu_xfer_partial): Likewise.
15531 * target.c (target_read_live_memory): Likewise.
15532 (memory_xfer_live_readonly_partial): Likewise.
15533 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15534 (target_xfer_partial, default_xfer_partial): Likewise.
15535 (current_xfer_partial): Likewise.
15536 * tracepoint.c (tfile_xfer_partial): Likewise.
15537 * windows-nat.c (windows_xfer_memory): Likewise. Call
15538 pulongest instead of plongest.
15539 (windows_xfer_partial): Likewise.
15540 (windows_xfer_shared_libraries): Likewise.
15541
15542 2014-01-14 Yao Qi <yao@codesourcery.com>
15543
15544 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15545 target_xfer_partial_ftype.
15546
15547 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15548
15549 PR python/15464
15550 PR python/16113
15551 * valops.c (value_struct_elt_bitpos): New function
15552 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15553 object to 'None' if the field name is an empty string ("").
15554 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15555 attribute to look for a field when 'name' is 'None'.
15556 (get_field_type): New function
15557
15558 2014-01-13 Doug Evans <dje@google.com>
15559
15560 PR symtab/16426
15561 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15562 (try_open_dwop_file): Ditto.
15563 * gdb_bfd.c: #include "vec.h".
15564 (bfdp): New typedef.
15565 (struct gdb_bfd_data): New member included_bfds.
15566 (gdb_bfd_unref): Unref all included bfds.
15567 (gdb_bfd_record_inclusion): New function.
15568 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15569
15570 2014-01-13 Tom Tromey <tromey@redhat.com>
15571
15572 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15573
15574 2014-01-13 Tom Tromey <tromey@redhat.com>
15575
15576 * defs.h (use_windows): Remove.
15577 * gdb.c (main): Update.
15578 * main.c (captured_main, gdb_main): Update.
15579 * main.h (struct captured_main_args) <use_windows>: Remove.
15580 * top.c (use_windows): Remove.
15581
15582 2014-01-13 Tom Tromey <tromey@redhat.com>
15583
15584 * defs.h (deprecated_flush_hook): Remove.
15585
15586 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15587
15588 PR threads/16216
15589 * linux-thread-db.c (try_thread_db_load): Add parameter
15590 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15591 (try_thread_db_load_from_pdir_1): Move it there from here.
15592 (try_thread_db_load_from_sdir): Update caller.
15593 (try_thread_db_load_from_dir): Move it there from here.
15594
15595 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15596
15597 * regformats/regdat.sh: Always rewrite the register file.
15598
15599 2014-01-13 Pedro Alves <palves@redhat.com>
15600
15601 * Makefile.in (CHECK_HEADERS): New variable.
15602 (check-headers:): New rule.
15603
15604 2014-01-13 Tom Tromey <tromey@redhat.com>
15605
15606 * cli/cli-setshow.c (do_set_command): Update.
15607 * defs.h (deprecated_set_hook): Remove.
15608 * top.c (deprecated_set_hook): Remove.
15609
15610 2014-01-13 Pedro Alves <palves@redhat.com>
15611
15612 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15613 the tracepoint if the PC is a pseudo-register.
15614
15615 2014-01-13 Tom Tromey <tromey@redhat.com>
15616
15617 * defs.h (XCALLOC): Remove.
15618 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15619 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15620 * dwarf2loc.c (allocate_piece_closure): Likewise.
15621 * elfread.c (elf_symfile_segments): Likewise.
15622 (elf_symfile_segments): Likewise.
15623 * gdbtypes.c (copy_type_recursive): Likewise.
15624 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15625 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15626 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15627 XCALLOC.
15628 * mt-tdep.c (mt_gdbarch_init): Likewise.
15629 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15630 XCALLOC.
15631 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15632 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15633 * registry.c (registry_alloc_data): Likewise.
15634 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15635 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15636 * serial.c (serial_fdopen_ops): Likewise.
15637 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15638 XCALLOC.
15639 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15640 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15641 not XCALLOC.
15642
15643 2014-01-13 Tom Tromey <tromey@redhat.com>
15644
15645 * defs.h (XMALLOC): Remove.
15646 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15647 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15648 * cli-out.c (struct ui_out *): Likewise.
15649 * cli/cli-dump.c (add_dump_command): Likewise.
15650 (add_dump_command): Likewise.
15651 * complaints.c (get_complaints): Likewise.
15652 (find_complaint): Likewise.
15653 * dwarf2-frame.c (execute_cfa_program): Likewise.
15654 * dwarf2read.c (abbrev_table_read_table): Likewise.
15655 * gdbarch.sh: Likewise.
15656 * gdbarch.c: Rebuild.
15657 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15658 * interps.c (interp_new): Likewise.
15659 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15660 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15661 * mi/mi-console.c (mi_console_file_new): Likewise.
15662 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15663 * mi/mi-out.c (mi_out_new): Likewise.
15664 * mi/mi-parse.c (mi_parse): Likewise.
15665 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15666 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15667 * observer.c (xalloc_observer_list_node): Likewise.
15668 * regcache.c (regcache_xmalloc_1): Likewise.
15669 * reggroups.c (reggroup_new): Likewise.
15670 (_initialize_reggroup): Likewise.
15671 * registry.c (register_data_with_cleanup): Likewise.
15672 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15673 * ser-base.c (serial_ttystate): Likewise.
15674 * ser-mingw.c (make_pipe_state): Likewise.
15675 * ser-pipe.c (pipe_open): Likewise.
15676 * serial.c (serial_open): Likewise.
15677 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15678 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15679 (tui_alloc_win_info): Likewise.
15680 (tui_add_content_elements): Likewise.
15681 * tui/tui-file.c (tui_file_new): Likewise.
15682 * tui/tui-out.c (tui_out_new): Likewise.
15683 * ui-file.c (mem_file_new): Likewise.
15684 * ui-out.c (push_level): Likewise.
15685 (make_cleanup_ui_out_end): Likewise.
15686 (append_header_to_list): Likewise.
15687 (ui_out_new): Likewise.
15688 * user-regs.c (user_reg_add_builtin): Likewise.
15689
15690 2014-01-13 Tom Tromey <tromey@redhat.com>
15691
15692 * defs.h (XZALLOC): Remove.
15693 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15694 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15695 (get_ada_tasks_inferior_data): Likewise.
15696 * auto-load.c (get_auto_load_pspace_data): Likewise.
15697 * auxv.c (get_auxv_inferior_data): Likewise.
15698 * bfd-target.c (target_bfd_reopen): Likewise.
15699 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15700 (deprecated_insert_raw_breakpoint): Likewise.
15701 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15702 * corelow.c (core_open): Likewise.
15703 * darwin-nat.c (darwin_check_new_threads): Likewise.
15704 (darwin_attach_pid): Likewise.
15705 * dummy-frame.c (dummy_frame_push): Likewise.
15706 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15707 * dwarf2loc.c (allocate_piece_closure): Likewise.
15708 * elfread.c (elf_symfile_segments): Likewise.
15709 * eval.c (ptrmath_type_p): Likewise.
15710 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15711 * gdbtypes.c (alloc_type_arch): Likewise.
15712 (alloc_type_instance): Likewise.
15713 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15714 * inf-child.c (inf_child_can_use_agent): Likewise.
15715 * inflow.c (get_inflow_inferior_data): Likewise.
15716 * infrun.c (save_infcall_suspend_state): Likewise.
15717 * jit.c (jit_reader_load): Likewise.
15718 (get_jit_objfile_data): Likewise.
15719 (get_jit_program_space_data): Likewise.
15720 (jit_object_open_impl): Likewise.
15721 (jit_symtab_open_impl): Likewise.
15722 (jit_block_open_impl): Likewise.
15723 (jit_frame_sniffer): Likewise.
15724 * linux-fork.c (add_fork): Likewise.
15725 * maint.c (make_command_stats_cleanup): Likewise.
15726 * objfiles.c (get_objfile_pspace_data): Likewise.
15727 * opencl-lang.c (struct lval_closure): Likewise.
15728 * osdata.c (osdata_start_osdata): Likewise.
15729 * progspace.c (new_address_space): Likewise.
15730 (add_program_space): Likewise.
15731 * remote-sim.c (get_sim_inferior_data): Likewise.
15732 * sh-tdep.c (sh_gdbarch_init): Likewise.
15733 * skip.c (Ignore): Likewise.
15734 (skip_delete_command): Likewise.
15735 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15736 (library_list_start_library): Likewise.
15737 (solib_aix_current_sos): Likewise.
15738 * solib-darwin.c (get_darwin_info): Likewise.
15739 (darwin_current_sos): Likewise.
15740 * solib-dsbt.c (get_dsbt_info): Likewise.
15741 * solib-ia64-hpux.c (new_so_list): Likewise.
15742 (ia64_hpux_get_solib_linkage_addr): Likewise.
15743 * solib-spu.c (append_ocl_sos): Likewise.
15744 (spu_current_sos): Likewise.
15745 * solib-svr4.c (get_svr4_info): Likewise.
15746 (svr4_keep_data_in_core): Likewise.
15747 (library_list_start_library): Likewise.
15748 (svr4_default_sos): Likewise.
15749 (svr4_read_so_list): Likewise.
15750 * solib-target.c (library_list_start_library): Likewise.
15751 (solib_target_current_sos): Likewise.
15752 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15753 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15754 * symfile.c (default_symfile_segments): Likewise.
15755 * target-descriptions.c (tdesc_data_init): Likewise.
15756 (tdesc_create_reg): Likewise.
15757 (struct tdesc_type *): Likewise.
15758 (tdesc_create_vector): Likewise.
15759 (tdesc_set_struct_size): Likewise.
15760 (struct tdesc_type *): Likewise.
15761 (tdesc_free_feature): Likewise.
15762 (tdesc_create_feature): Likewise.
15763 * windows-nat.c (windows_add_thread): Likewise.
15764 (windows_make_so): Likewise.
15765 * xml-support.c (gdb_xml_body_text): Likewise.
15766 (gdb_xml_create_parser_and_cleanup): Likewise.
15767 (xml_process_xincludes): Likewise.
15768 * xml-syscall.c (allocate_syscalls_info): Likewise.
15769 (syscall_create_syscall_desc): Likewise.
15770
15771 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15772
15773 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15774 function, with code from i386_stap_parse_special_token.
15775 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15776 (i386_stap_parse_special_token): Move code to the two functions
15777 above; simplify it.
15778
15779 2014-01-09 Pedro Alves <palves@redhat.com>
15780 Hui Zhu <hui@codesourcery.com>
15781
15782 PR gdb/16101
15783 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15784 bp_err_string. Don't mark the location shlib_disabled if the
15785 error thrown wasn't a generic or memory error. Catch errors
15786 thrown while inserting breakpoints in overlayed code. Output
15787 error message of software breakpoints.
15788 * remote.c (remote_insert_breakpoint): If this breakpoint has
15789 target-side commands but this stub doesn't support Z0 packets,
15790 throw NOT_SUPPORTED_ERROR error.
15791 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15792 * target.h (target_insert_breakpoint): Extend comment.
15793 (target_insert_hw_breakpoint): Add comment.
15794
15795 2014-01-08 Pedro Alves <palves@redhat.com>
15796
15797 * remote.c (remote_add_thread): Add threads silently if starting
15798 up.
15799 (remote_notice_new_inferior): If in all-stop, and starting up,
15800 don't call notice_new_inferior.
15801 (get_current_thread): New function, factored out from ...
15802 (add_current_inferior_and_thread): ... this. Adjust.
15803 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15804 found any thread, then select the remote's current thread as GDB's
15805 current thread too.
15806
15807 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15808
15809 * NEWS: Create a new section for the next release branch.
15810 Rename the section of the current branch, now that it has
15811 been cut.
15812
15813 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15814
15815 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15816 * version.in: Bump version to 7.7.50.DATE-cvs.
15817
15818 2014-01-08 Yao Qi <yao@codesourcery.com>
15819
15820 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15821 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15822 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15823
15824 2014-01-08 Yao Qi <yao@codesourcery.com>
15825
15826 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15827 return value of bfd_get_filename to symbol_file_add_from_bfd.
15828
15829 2014-01-08 Pierre Muller <muller@sourceware.org>
15830
15831 Fix PR16201.
15832 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15833 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15834 to prim_record_mininal_symbol_and_info.
15835 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15836 in call to prim_record_minimal_symbol_and_info.
15837 (read_pe_exported_syms): Set index field of section_data.
15838
15839 2014-01-07 Andrew Pinski <apinski@cavium.com>
15840
15841 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15842 * features/aarch64.c: Regenerate.
15843
15844 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15845
15846 * target.c (return_null): Define.
15847 (update_current_target): Use it instead of return_zero for
15848 functions that return a pointer.
15849
15850 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15851
15852 * source.c (add_path): Fix check for duplicated paths in the previously
15853 included paths.
15854
15855 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15856
15857 * ada-lang.c: Remove duplicated include statements.
15858 * alphabsd-nat.c: Ditto.
15859 * amd64-darwin-tdep.c: Ditto.
15860 * amd64fbsd-nat.c: Ditto.
15861 * auto-load.c: Ditto.
15862 * ax-gdb.c: Ditto.
15863 * breakpoint.c: Ditto.
15864 * dbxread.c: Ditto.
15865 * fork-child.c: Ditto.
15866 * gdb_usleep.c: Ditto.
15867 * i386-darwin-tdep.c: Ditto.
15868 * i386fbsd-nat.c: Ditto.
15869 * infcmd.c: Ditto.
15870 * inferior.c: Ditto.
15871 * jv-lang.c: Ditto.
15872 * linux-nat.c: Ditto.
15873 * linux-tdep.c: Ditto.
15874 * m68kbsd-nat.c: Ditto.
15875 * m68klinux-nat.c: Ditto.
15876 * microblaze-tdep.c: Ditto.
15877 * mips-linux-tdep.c: Ditto.
15878 * mn10300-tdep.c: Ditto.
15879 * nto-tdep.c: Ditto.
15880 * opencl-lang.c: Ditto.
15881 * osdata.c: Ditto.
15882 * printcmd.c: Ditto.
15883 * regcache.c: Ditto.
15884 * remote-m32r-sdi.c: Ditto.
15885 * remote.c: Ditto.
15886 * symfile.c: Ditto.
15887 * symtab.c: Ditto.
15888 * tilegx-linux-nat.c: Ditto.
15889 * tilegx-tdep.c: Ditto.
15890 * tracepoint.c: Ditto.
15891 * valops.c: Ditto.
15892 * vaxbsd-nat.c: Ditto.
15893 * windows-nat.c: Ditto.
15894 * xtensa-tdep.c: Ditto.
15895
15896 2014-01-07 Yao Qi <yao@codesourcery.com>
15897
15898 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15899
15900 2014-01-07 Yao Qi <yao@codesourcery.com>
15901 Joel Brobecker <brobecker@adacore.com>
15902
15903 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15904 (pdc_write_regs): Likewise.
15905 (fetch_regs_kernel_thread): Likewise.
15906 (store_regs_kernel_thread): Likewise.
15907
15908 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15909
15910 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15911 tagged type objects to their actual type.
15912
15913 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15914
15915 * ada-valprint.c (print_field_values): Add "language" parameter.
15916 Update calls to print_field_values and print_variant_part.
15917 Pass new parameter "language" in call to val_print instead
15918 of "current_language". Replace call to ada_val_print by call
15919 to val_print.
15920 (print_variant_part): Add "language" parameter.
15921 (ada_val_print_struct_union): Update call to print_field_values.
15922
15923 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15924
15925 * ada-valprint.c (ui_memcpy): Delete.
15926 (ada_print_floating): Update documentation. Add empty line
15927 between between function documentation and implementation.
15928 Delete variable "buffer". Use ui_file_xstrdup in place of
15929 ui_file_put. Minor adjustments following this change.
15930
15931 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15932
15933 * ada-valprint.c (ada_val_print_string): New function,
15934 extracted from ada_val_print_array.
15935 (ada_val_print_array): Replace extracted code by call
15936 to ada_val_print_string followed by a return. Move
15937 "else" branch to the function's top block.
15938
15939 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15940
15941 * ada-valprint.c (ada_val_print_array): Move implementation
15942 down. Rename parameter "offset" and "val" into "offset_aligned"
15943 and "original_value" respectively. Add parameter "offset".
15944
15945 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15946
15947 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15948 re-organizing the code. Change the "???" message printed
15949 when target type is a TYPE_CODE_UNDEF into
15950 "<ref to undefined type>".
15951
15952 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15953
15954 * ada-valprint.c (print_record): Delete, implementation inlined...
15955 (ada_val_print_struct_union): ... here. Remove call to
15956 ada_check_typedef in inlined implementation.
15957
15958 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15959
15960 * ada-valprint.c (ada_val_print_gnat_array): New function,
15961 extracted from ada_val_print_1;
15962 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15963 (ada_val_print_flt, ada_val_print_struct_union)
15964 (ada_val_print_ref): Likewise.
15965 (ada_val_print_1): Delete variables i and elttype.
15966 Replace extracted-out code by call to corresponding
15967 new functions.
15968
15969 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15970
15971 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15972
15973 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15974
15975 * ada-valprint.c (ada_val_print_1): Replace calls to
15976 ada_val_print_1 by calls to val_print.
15977
15978 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15979
15980 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15981 Update calls to self accordingly. Replace calls to c_val_print
15982 by calls to val_print.
15983
15984 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15985
15986 * ada-valprint.c (print_record): Delete declaration.
15987 (adjust_type_signedness, ada_val_print_1): Likewise.
15988 (ada_val_print): Move function implementation down.
15989 (print_variant_part, print_field_values, print_record):
15990 Move function implementation up.
15991
15992 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15993
15994 * python/py-type.c (typy_get_name): New function.
15995 (type_object_getset): Add entry for attribute "name".
15996 * NEWS: Add entry mentioning this new attribute.
15997
15998 2014-01-07 Yao Qi <yao@codesourcery.com>
15999
16000 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
16001 statement.
16002
16003 2014-01-07 Yao Qi <yao@codesourcery.com>
16004
16005 * gnu-nat.c (info_port_rights): Add qualifier const to
16006 argument args.
16007
16008 2014-01-07 Yao Qi <yao@codesourcery.com>
16009
16010 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16011
16012 2014-01-07 Yao Qi <yao@codesourcery.com>
16013
16014 * gnu-nat.c (make_inf) Update declaration.
16015 (make_inf): Make it static.
16016 (inf_set_traced): Likewise.
16017 (inf_port_to_thread, inf_task_died_status): Likewise.
16018
16019 2014-01-07 Yao Qi <yao@codesourcery.com>
16020
16021 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16022
16023 2014-01-07 Yao Qi <yao@codesourcery.com>
16024
16025 * gnu-nat.c (_initialize_gnu_nat): Declare.
16026
16027 2014-01-07 Yao Qi <yao@codesourcery.com>
16028
16029 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16030 'enum bfd_endian'.
16031 (struct gdbarch_info) <byte_order>: Change type to
16032 'enum bfd_endian'.
16033 <byte_order_for_code>: Likewise.
16034 * gdbarch.c, gdbarch.h: Regenerated.
16035
16036 2014-01-06 Sasha Smundak <asmundak@google.com>
16037
16038 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16039
16040 2014-01-06 Tom Tromey <tromey@redhat.com>
16041
16042 * doublest.c (convert_doublest_to_floatformat): Use const, not
16043 CONST.
16044 * somread.c (som_symtab_read): Likewise.
16045
16046 2014-01-07 Hui Zhu <hui@codesourcery.com>
16047
16048 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16049 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16050 (gdb_bfd_fopen): Ditto.
16051 (gdb_bfd_openr): Ditto.
16052 (gdb_bfd_openw): Ditto.
16053 (gdb_bfd_openr_iovec): Ditto.
16054 (gdb_bfd_fdopenr): Ditto.
16055 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16056 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16057 with xstrdup.
16058 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16059 with xstrdup.
16060 * symfile-mem.c (symbol_file_add_from_memory): Removed
16061 gdb_bfd_stash_filename.
16062
16063 2014-01-03 Doug Evans <dje@google.com>
16064
16065 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16066 output.
16067
16068 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16069
16070 Update year range in copyright notice of all files.
16071
16072 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16073
16074 * top.c (print_gdb_version): Set copyright year to 2014.
16075
16076 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16077
16078 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16079
16080 For older changes see ChangeLog-2013.
16081 \f
16082 Local Variables:
16083 mode: change-log
16084 left-margin: 8
16085 fill-column: 74
16086 version-control: never
16087 coding: utf-8
16088 End: