d7f0c2d16941f4380bf4e452a1928a47f826dbd5
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-12-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
4 fields.
5 (pop_dummy_frame): Call the destructor if it exists.
6 (register_dummy_frame_dtor, find_dummy_frame_dtor): New
7 functions.
8 * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
9 (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
10
11 2014-12-12 Tom Tromey <tromey@redhat.com>
12
13 * gdbtypes.h (make_unqualified_type): Declare.
14 * gdbtypes.c (make_unqualified_type): New function.
15
16 2014-12-12 Tom Tromey <tromey@redhat.com>
17
18 * ui-file.h (ui_file_write_for_put): Declare.
19 * ui-file.c (ui_file_write_for_put): New function.
20 * mi/mi-out.c (do_write): Remove.
21 (mi_out_put): Use ui_file_write_for_put.
22
23 2014-12-12 Doug Evans <dje@google.com>
24
25 * NEWS: Mention gdb.lookup_objfile.
26 * python/python.c (GdbMethods): Add lookup_objfile.
27 * python/python-internal.h (gdbpy_lookup_objfile): Declare.
28 * python/py-objfile.c: #include "symtab.h".
29 (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
30 (objfpy_lookup_objfile_by_name): New function.
31 (objfpy_lookup_objfile_by_build_id): New function.
32 (gdbpy_lookup_objfile): New function.
33
34 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
35
36 * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
37 (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
38 * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
39 macros.
40 (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
41 Likewise.
42
43 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
44
45 * completer.c: Include "target.h", "reggroups.h", and
46 "user-regs.h".
47 (reg_or_group_completer): New.
48 * completer.h (reg_or_group_completer): Declare.
49 * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
50 the "info registers" and "info all-registers" commands and the
51 dbx-mode "lr" command.
52
53 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
54
55 * user-regs.c: Include "arch-utils.h", "command.h", and
56 "cli/cli-cmds.h".
57 (maintenance_print_user_registers): New.
58 (_initialize_user_regs): Register new "maint print user-registers"
59 subcommand.
60 * NEWS: Mention new GDB command "maint print user-registers".
61
62 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
63 Maciej W. Rozycki <macro@mips.com>
64 Pedro Alves <pedro@codesourcery.com>
65
66 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
67 remove `predefault' and `invalid_p' initializers.
68 (make_symbol_special): New architecture method.
69 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
70 (objfile, symbol): New declarations.
71 * arch-utils.h (default_elf_make_msymbol_special): Remove
72 prototype.
73 (default_make_symbol_special): New prototype.
74 (default_adjust_dwarf2_addr): Likewise.
75 (default_adjust_dwarf2_line): Likewise.
76 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
77 * arch-utils.c (default_elf_make_msymbol_special): Remove
78 function.
79 (default_make_symbol_special): New function.
80 (default_adjust_dwarf2_addr): Likewise.
81 (default_adjust_dwarf2_line): Likewise.
82 * dwarf2-frame.c (decode_frame_entry_1): Call
83 `gdbarch_adjust_dwarf2_addr'.
84 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
85 * dwarf2read.c (create_addrmap_from_index): Likewise.
86 (process_psymtab_comp_unit_reader): Likewise.
87 (add_partial_symbol): Likewise.
88 (add_partial_subprogram): Likewise.
89 (process_full_comp_unit): Likewise.
90 (read_file_scope): Likewise.
91 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
92 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
93 (read_call_site_scope): Likewise.
94 (dwarf2_ranges_read): Likewise.
95 (dwarf2_record_block_ranges): Likewise.
96 (read_attribute_value): Likewise.
97 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
98 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
99 * elfread.c (elf_symtab_read): Don't call
100 `gdbarch_elf_make_msymbol_special' if unset.
101 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
102 the ISA bit from the PC.
103 * mips-tdep.c (mips_unmake_compact_addr): New function.
104 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
105 address appropriately.
106 (mips_make_symbol_special): New function.
107 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
108 (mips_pc_is_mips16): Likewise.
109 (mips_pc_is_micromips): Likewise.
110 (mips_pc_isa): Likewise.
111 (mips_adjust_dwarf2_addr): New function.
112 (mips_adjust_dwarf2_line): Likewise.
113 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
114 (mips_addr_bits_remove): Likewise.
115 (mips_skip_trampoline_code): Likewise.
116 (mips_write_pc): Don't set the ISA bit.
117 (mips_eabi_push_dummy_call): Likewise.
118 (mips_o64_push_dummy_call): Likewise.
119 (mips_gdbarch_init): Install `mips_make_symbol_special',
120 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
121 handlers.
122 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
123 target-specific symbol address adjustments.
124 * gdbarch.h: Regenerate.
125 * gdbarch.c: Regenerate.
126
127 2014-12-12 Yao Qi <yao@codesourcery.com>
128
129 PR tdep/14261
130 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
131 'skip_pc'. Remove code skipping prologue instructions, use
132 arm_analyze_prologue instead.
133 (arm_analyze_prologue): Stop the scanning for unrecognized
134 instruction when skipping prologue.
135
136 2014-12-12 Yao Qi <yao@codesourcery.com>
137
138 * arm-tdep.c (arm_instruction_restores_sp): New function.
139 (arm_analyze_prologue): Call arm_instruction_restores_sp.
140 (arm_in_function_epilogue_p): Move code to
141 arm_instruction_restores_sp.
142
143 2014-12-11 Doug Evans <xdje42@gmail.com>
144
145 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
146
147 2014-12-11 Doug Evans <xdje42@gmail.com>
148
149 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
150 (symbol *lookup_symbol_via_quick_fns): Ditto.
151 (lookup_symbol_in_objfile): Add forward decl.
152 (lookup_global_symbol_from_objfile): Simplify, call
153 lookup_symbol_in_objfile.
154
155 2014-12-11 Doug Evans <xdje42@gmail.com>
156
157 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
158
159 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
160
161 PR breakpoints/17012
162 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
163 it is marked as persistent.
164
165 2014-12-10 Doug Evans <xdje42@gmail.com>
166
167 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
168 closer to its subroutines.
169
170 2014-12-10 Doug Evans <xdje42@gmail.com>
171
172 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
173
174 2014-12-10 Doug Evans <xdje42@gmail.com>
175
176 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
177 * cp-support.c (cp_lookup_symbol_imports): Delete.
178
179 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
180
181 PR gdb/17627
182 * target.c (cleanup_restore_target_terminal): New function.
183 (make_cleanup_restore_target_terminal): New function.
184 * target.h (make_cleanup_restore_target_terminal): New declaration.
185 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
186
187 2014-12-08 Doug Evans <dje@google.com>
188
189 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
190
191 2014-12-08 Doug Evans <dje@google.com>
192
193 * NEWS: Mention gdb.Objfile.owner.
194 * python/py-objfile.c (objfpy_get_owner): New function.
195 (objfile_getset): Add "owner".
196
197 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
198
199 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
200 (lookup_global_symbol_from_objfile): Call it.
201
202 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
203
204 Remove const from struct objfile *.
205 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
206 symtab.c, symtab.h: In these files.
207
208 2014-12-05 Andreas From <andreas.from@ericsson.com>
209
210 * MAINTAINERS (Write After Approval): Add "Andreas From"
211
212 2014-12-05 Doug Evans <xdje42@gmail.com>
213
214 Revert:
215 PR symtab/17602
216 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
217
218 2014-12-04 Doug Evans <dje@google.com>
219
220 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
221 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
222 (objfile_getset): Add "add_separate_debug_file".
223
224 2014-12-04 Doug Evans <dje@google.com>
225
226 * NEWS: Mention gdb.Objfile.build_id.
227 * build-id.c (build_id_bfd_get): Make non-static.
228 * build-id.h (build_id_bfd_get): Add declaration.
229 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
230 (OBJFPY_REQUIRE_VALID): New macro.
231 (objfpy_get_build_id): New function.
232 (objfile_getset): Add "build_id".
233 * utils.c (make_hex_string): New function.
234 * utils.h (make_hex_string): Add declaration.
235
236 2014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
237
238 * block.c (block_lookup_symbol_primary): New function.
239 * block.h (block_lookup_symbol_primary): New declaration.
240 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
241 Call block_lookup_symbol_primary.
242
243 2014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
244
245 * tramp-frame.h (tramp_frame): Add `validate' member.
246 * tramp-frame.c (tramp_frame_start): Validate trampoline before
247 scanning.
248 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
249 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
250 (mips_linux_o32_sigframe): Initialize `validate' member.
251 (mips_linux_o32_rt_sigframe): Likewise.
252 (mips_linux_n32_rt_sigframe): Likewise.
253 (mips_linux_n64_rt_sigframe): Likewise.
254 (micromips_linux_o32_sigframe): New variable.
255 (micromips_linux_o32_rt_sigframe): Likewise.
256 (micromips_linux_n32_rt_sigframe): Likewise.
257 (micromips_linux_n64_rt_sigframe): Likewise.
258 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
259 (mips_linux_n32n64_sigframe_init): Likewise.
260 (mips_linux_sigframe_validate): New function.
261 (micromips_linux_sigframe_validate): Likewise.
262 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
263
264 2014-12-03 Ulrich Weigand  <uweigand@de.ibm.com>
265
266 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
267 * sparc-sol2-tdep.c: Include "regset.h".
268 (sparc32_sol2_supply_core_gregset): New function.
269 (sparc32_sol2_collect_core_gregset): Likewise.
270 (sparc32_sol2_supply_core_fpregset): Likewise.
271 (sparc32_sol2_collect_core_fpregset): Likewise.
272 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
273 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
274 tdep->fpregset/sizeof_fpregset.
275 * sparc64-sol2-tdep.c: Include "regset.h".
276 (sparc64_sol2_supply_core_gregset): New function.
277 (sparc64_sol2_collect_core_gregset): Likewise.
278 (sparc64_sol2_supply_core_fpregset): Likewise.
279 (sparc64_sol2_collect_core_fpregset): Likewise.
280 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
281 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
282 tdep->fpregset/sizeof_fpregset.
283
284 2014-12-03 Simon Marchi <simon.marchi@ericsson.com>
285
286 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
287 type.
288
289 2014-12-02 Doug Evans <dje@google.com>
290
291 * symtab.c (symbol_init_cplus_specific): Delete.
292 (symbol_set_demangled_name): Remove special c++ support.
293 (symbol_get_demangled_name, symbol_set_language): Ditto.
294 * symtab.h (struct cplus_specific): Delete.
295 (struct general_symbol_info) <language_specific>: Remove
296 cplus_specific.
297
298 2014-12-02 Doug Evans <dje@google.com>
299
300 PR symtab/17602
301 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
302
303 2014-12-02 Doug Evans <dje@google.com>
304
305 PR symtab/17591
306 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
307 to strip parameters.
308
309 2014-12-02 Doug Evans <dje@google.com>
310
311 * dwarf2read.c (peek_die_abbrev): Improve error message text.
312
313 2014-12-02 Doug Evans <dje@google.com>
314
315 * valops.c (do_search_struct_field): Remove remnant of Chill support.
316 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
317
318 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
319
320 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
321
322 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
323
324 * NEWS: Mention new Python events.
325 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
326 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
327 (py-infevents.o): New rule.
328 * doc/observer.texi (inferior_call_pre, inferior_call_post)
329 (memory_changed, register_changed): New observers.
330 * infcall.c (call_function_by_hand): Notify observer before and
331 after inferior call.
332 * python/py-event.h (inferior_call_kind): New enum.
333 (emit_inferior_call_event): New prototype.
334 (emit_register_changed_event): New prototype.
335 (emit_memory_changed_event): New prototype.
336 * python/py-events.h (events_object): New registries
337 inferior_call, memory_changed and register_changed.
338 * python/py-evts.c (gdbpy_initialize_py_events): Add the
339 inferior_call, memory_changed and register_changed registries.
340 * python/py-infevents.c: New.
341 * python/py-inferior.c (python_on_inferior_call_pre)
342 (python_on_inferior_call_post, python_on_register_change)
343 (python_on_memory_change): New functions.
344 (gdbpy_initialize_inferior): Attach python handler to new
345 observers.
346 * python/py-infthread.c(gdbpy_create_ptid_object): New.
347 (thpy_get_ptid) Use gdbpy_create_ptid_object.
348 * python/python-internal.h:
349 (gdbpy_create_ptid_object)
350 (gdbpy_initialize_inferior_call_pre_event)
351 (gdbpy_initialize_inferior_call_post_event)
352 (gdbpy_initialize_register_changed_event)
353 (gdbpy_initialize_memory_changed_event): New prototypes.
354 * python/python.c (_initialize_python): Initialize new events.
355 * valops.c (value_assign): Notify register_changed observer.
356
357 2014-12-02 Doug Evans <dje@google.com>
358
359 * python/py-infthread.c: Whitespace fixes.
360
361 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
362
363 * features/Makefile (s390-te-linux64-expedite): Replace
364 non-existant r14 and r15 by r14l and r15l, respectively.
365 * regformats/s390-te-linux64.dat: Regenerate.
366
367 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
368
369 * objfiles.c (allocate_objfile): Remove duplicate comment.
370
371 2014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
372
373 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
374 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
375 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
376 (supply_gregset, supply_fpregset): Remove.
377 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
378 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
379 and sizeof_gregset.
380
381 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
382
383 Add add-auto-load-scripts-directory.
384 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
385 * auto-load.c (add_auto_load_dir): New function.
386 (_initialize_auto_load): Install it.
387
388 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
389
390 Pushed by Joel Brobecker <brobecker@adacore.com>.
391 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
392
393 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
394
395 * eval.c (evaluate_subexp): Check that the thread stack temporaries
396 are not already enabled before enabling them.
397
398 2014-11-29 Yao Qi <yao@codesourcery.com>
399
400 * arm-tdep.c (arm_analyze_prologue): Move local variables
401 'framereg' and 'framesize' to inner block. Move code to
402 inner block too.
403
404 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
405
406 * eval.c: Include gdbthread.h.
407 (evaluate_subexp): Enable thread stack temporaries before
408 evaluating a complete expression and clean them up after the
409 evaluation is complete.
410 * gdbthread.h: Include common/vec.h.
411 (value_ptr): New typedef.
412 (VEC (value_ptr)): New vector type.
413 (value_vec): New typedef.
414 (struct thread_info): Add new fields stack_temporaries_enabled
415 and stack_temporaries.
416 (enable_thread_stack_temporaries)
417 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
418 (get_last_thread_stack_temporary)
419 (value_in_thread_stack_temporaries): Declare.
420 * gdbtypes.c (class_or_union_p): New function.
421 * gdbtypes.h (class_or_union_p): Declare.
422 * infcall.c (call_function_by_hand): Store return values of class
423 type as temporaries on stack.
424 * thread.c (enable_thread_stack_temporaries): New function.
425 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
426 (get_last_thread_stack_temporary): Likewise.
427 (value_in_thread_stack_temporaries): Likewise.
428 * value.c (value_force_lval): New function.
429 * value.h (value_force_lval): Declare.
430
431 2014-11-28 Pierre Muller <muller@sourceware.org>
432
433 Pushed by Joel Brobecker <brobecker@adacore.com>.
434 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
435 registers.
436
437 2014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
438
439 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
440 * config/sparc/linux.mh (NATDEPFILES): Likewise.
441 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
442 * m68klinux-nat.c (fetch_core_registers): Remove.
443 (linux_elf_core_fns): Remove.
444 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
445
446 2014-11-28 Joel Brobecker <brobecker@adacore.com>
447
448 * utils.c (gdb_realpath): Rework comment about handling on
449 Windows.
450
451 2014-11-28 Yao Qi <yao@codesourcery.com>
452
453 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
454 rename.
455 * gnulib/aclocal.m4: Re-generated.
456 * gnulib/config.in: Re-generated.
457 * gnulib/configure: Re-generated.
458 * gnulib/import/Makefile.am: Re-generated.
459 * gnulib/import/Makefile.in: Re-generated.
460 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
461 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
462 * import/basename-lgpl.c: New file.
463 * import/dirname-lgpl.c: New file.
464 * import/dirname.h: New file.
465 * import/m4/dirname.m4: New file.
466 * import/m4/malloc.m4: New file.
467 * import/m4/rename.m4: New file.
468 * import/m4/rmdir.m4: New file.
469 * import/m4/stdio_h.m4: New file.
470 * import/malloc.c: New file.
471 * import/rename.c: New file.
472 * import/rmdir.c: New file.
473 * import/same-inode.h: New file.
474 * import/stdio.c: New file.
475 * import/stdio.in.h: New file.
476 * import/stripslash.c: New file.
477
478 2014-11-28 Yao Qi <yao@codesourcery.com>
479
480 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
481 and realpath.
482 * config.in: Re-generated.
483 * configure: Re-generated.
484 * utils.c (gdb_realpath): Remove code calling realpath,
485 canonicalize_file_name and pathconf.
486 [!_WIN32]: Call canonicalize_file_name.
487
488 2014-11-28 Yao Qi <yao@codesourcery.com>
489
490 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
491 canonicalize-lgpl.
492 * aclocal.m4: Re-generated.
493 * config.in: Re-generated.
494 * configure: Re-generated.
495 * import/Makefile.am: Re-generated.
496 * import/Makefile.in: Re-generated.
497 * import/m4/gnulib-cache.m4: Re-generated.
498 * import/m4/gnulib-comp.m4: Re-generated.
499 * import/canonicalize-lgpl.c: New file.
500 * import/extra/snippet/_Noreturn.h: New file.
501 * import/m4/canonicalize.m4: New file.
502 * import/m4/double-slash-root.m4: New file.
503 * import/m4/eealloc.m4: New file.
504 * import/m4/malloca.m4: New file.
505 * import/m4/nocrash.m4: New file.
506 * import/m4/stdlib_h.m4: New file.
507 * import/malloca.c: New file.
508 * import/malloca.h: New file.
509 * import/malloca.valgrind: New file.
510
511 2014-11-28 Yao Qi <yao@codesourcery.com>
512
513 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
514 * config.in, configure: Regenerate.
515 * symfile.c (find_separate_debug_file_by_debuglink): Remove
516 code checking HAVE_LSTAT is defined.
517
518 2014-11-28 Yao Qi <yao@codesourcery.com>
519
520 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
521 lstat.
522 * gnulib/aclocal.m4: Re-generated.
523 * gnulib/config.in: Re-generated.
524 * gnulib/configure: Re-generated.
525 * gnulib/import/Makefile.am: Re-generated.
526 * gnulib/import/Makefile.in: Re-generated.
527 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
528 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
529 * gnulib/import/lstat.c: New file.
530 * gnulib/import/m4/lstat.m4: New file.
531
532 2014-11-28 Yao Qi <yao@codesourcery.com>
533
534 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
535 * config.in, configure: Re-generate.
536 * inf-child.c (inf_child_fileio_readlink): Don't check
537 HAVE_READLINK is defined.
538
539 2014-11-28 Yao Qi <yao@codesourcery.com>
540
541 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
542 * gnulib/aclocal.m4: Re-generated.
543 * gnulib/config.in: Likewise.
544 * gnulib/configure: Likewise.
545 * gnulib/import/Makefile.am: Likewise.
546 * gnulib/import/Makefile.in: Likewise.
547 * gnulib/import/m4/gnulib-cache.m4: Likewise.
548 * gnulib/import/m4/gnulib-comp.m4: Likewise.
549 * gnulib/import/dosname.h: New file
550 * gnulib/import/m4/largefile.m4: New file.
551 * gnulib/import/m4/readlink.m4: New file.
552 * gnulib/import/m4/stat.m4: New file.
553 * gnulib/import/readlink.c: New file.
554 * gnulib/import/stat.c: New file.
555
556 2014-11-26 Mark Wielaard <mjw@redhat.com>
557
558 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
559 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
560
561 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
562
563 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
564 that there can be only one stack adjustment in the prologue
565 with tests to detect specific disallowed stack adjustments.
566
567 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
568
569 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
570 adjustments.
571
572 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
573
574 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
575 the instruction as well as reading it from memory.
576 (nios2_match_add): New.
577 (nios2_match_sub): New.
578 (nios2_match_addi): New.
579 (nios2_match_orhi): New.
580 (nios2_match_stw): New.
581 (nios2_match_ldw): New.
582 (nios2_match_rdctl): New.
583 (enum branch_condition): New.
584 (nios2_match_branch): New.
585 (nios2_match_jmpi): New.
586 (nios2_match_calli): New.
587 (nios2_match_jmpr): New.
588 (nios2_match_callr): New.
589 (nios2_match_break): New.
590 (nios2_match_trap): New.
591 (nios2_in_epilogue_p): Rewrite to use new functions.
592 (nios2_analyze_prologue): Likewise.
593 (nios2_skip_prologue): Delete unused local limit_pc.
594 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
595 (nios2_get_next_pc): Rewrite to use new functions.
596
597 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
598
599 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
600
601 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
602
603 Pushed by Joel Brobecker <brobecker@adacore.com>
604 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
605 elements pi_len by the size of the elements before calling
606 vm_deallocate.
607 (inf_validate_task_sc): Likewise, and properly deallocate the
608 noise array.
609
610 2014-11-23 Doug Evans <xdje42@gmail.com>
611
612 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
613 number and name if present. All callers updated.
614 (dump_fn_fieldlists): Fix indentation of args.
615
616 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
617
618 * MAINTAINERS (Write After Approval): Add myself.
619
620 2014-11-23 Joel Brobecker <brobecker@adacore.com>
621
622 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
623 to a bp_call_dummy breakpoint type.
624
625 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
626
627 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
628 registering the signal handler.
629
630 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
631
632 * event-top.h (call_stdin_event_handler_again_p): Declare.
633 * event-top.c (call_stdin_event_handler_again_p): Define.
634 (stdin_event_handler): Use it.
635 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
636 handler again if there is pending input following a
637 start sequence.
638
639 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
640
641 Pushed by Joel Brobecker <brobecker@adacore.com>
642 * linux-fork.c (checkpoint_command): Print index of new
643 checkpoint in response message.
644
645 2014-11-23 Yao Qi <yao@codesourcery.com>
646
647 * valprint.c (read_string): Move local variables 'found_nul',
648 'chunksize' and 'limit' to inner scope. Update comments.
649
650 2014-11-22 Doug Evans <xdje42@gmail.com>
651
652 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
653 function comment.
654 (search_symbols): Fix comments and whitespace.
655
656 2014-11-22 Doug Evans <xdje42@gmail.com>
657
658 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
659
660 2014-11-21 Doug Evans <dje@google.com>
661
662 * psymtab.c (psymtab_search_name): Fix whitespace.
663
664 2014-11-21 Yao Qi <yao@codesourcery.com>
665
666 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
667 errno.
668 * gnulib/import/Makefile.am: Re-generated.
669 * gnulib/import/Makefile.in: Likewise.
670 * gnulib/import/m4/gnulib-cache.m4: Likewise.
671
672 2014-11-21 Yao Qi <yao@codesourcery.com>
673
674 * gdb_wchar.h: Include wchar.h and wctype.h.
675 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
676 include wchar.h and wctype.h.
677 Don't check HAVE_WCHAR_H.
678
679 2014-11-21 Yao Qi <yao@codesourcery.com>
680
681 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
682 and wctype-h.
683 * gnulib/import/Makefile.am: Re-generated.
684 * gnulib/import/Makefile.in: Likewise.
685 * gnulib/import/m4/gnulib-cache.m4: Likewise.
686
687 2014-11-21 Yao Qi <yao@codesourcery.com>
688
689 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
690 memchr.
691 * gnulib/import/Makefile.am: Re-generated.
692 * gnulib/import/Makefile.in: Likewise.
693 * gnulib/import/m4/gnulib-cache.m4: Likewise.
694
695 2014-11-21 Yao Qi <yao@codesourcery.com>
696
697 * common/common-defs.h: Include alloca.h
698 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
699 * configure: Re-generated.
700 * defs.h: Remove code handling alloca.
701 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
702 or not.
703
704 2014-11-21 Yao Qi <yao@codesourcery.com>
705
706 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
707 alloca.
708 * gnulib/import/Makefile.am: Re-generated.
709 * gnulib/import/Makefile.in: Likewise..
710 * gnulib/import/m4/gnulib-cache.m4: Likewise.
711
712 2014-11-21 Yao Qi <yao@codesourcery.com>
713
714 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
715 alphabetical order.
716
717 2014-11-21 Joel Brobecker <brobecker@adacore.com>
718
719 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
720 flag_unsigned if HIGH_BOUND is constant and negative.
721
722 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
723
724 PR breakpoints/10737
725 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
726 modifier from "struct gdbarch" when compiling without Expat (XML)
727 support.
728 (get_syscall_by_number): Likewise.
729 (get_syscall_by_name): Likewise.
730 (get_syscall_names): Likewise.
731
732 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
733
734 PR breakpoints/10737
735 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
736 set_xml_syscall_file_name to provide gdbarch.
737 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
738 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
739 * breakpoint.c (print_it_catch_syscall): Adjust call to
740 get_syscall_by_number to provide gdbarch.
741 (print_one_catch_syscall): Likewise.
742 (print_mention_catch_syscall): Likewise.
743 (print_recreate_catch_syscall): Likewise.
744 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
745 and get_syscall_by_name to provide gdbarch.
746 (catch_syscall_completer): Adjust call to get_syscall_names to
747 provide gdbarch.
748 * gdbarch.c: Regenerate.
749 * gdbarch.h: Likewise.
750 * gdbarch.sh: Forward declare "struct syscalls_info".
751 (xml_syscall_file): New variable.
752 (syscalls_info): Likewise.
753 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
754 set_xml_syscall_file_name to provide gdbarch.
755 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
756 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
757 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
758 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
759 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
760 * xml-syscall.c: Include gdbarch.h.
761 (set_xml_syscall_file_name): Accept gdbarch parameter.
762 (get_syscall_by_number): Likewise.
763 (get_syscall_by_name): Likewise.
764 (get_syscall_names): Likewise.
765 (my_gdb_datadir): Delete global variable.
766 (struct syscalls_info) <my_gdb_datadir>: New variable.
767 (struct syscalls_info) <sysinfo>: Rename variable to
768 "syscalls_info".
769 (sysinfo): Delete global variable.
770 (have_initialized_sysinfo): Likewise.
771 (xml_syscall_file): Likewise.
772 (sysinfo_free_syscalls_desc): Rename to...
773 (syscalls_info_free_syscalls_desc): ... this.
774 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
775 code to the new layout of "struct syscalls_info".
776 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
777 "syscalls_info".
778 (syscall_create_syscall_desc): Likewise.
779 (syscall_start_syscall): Likewise.
780 (syscall_parse_xml): Likewise.
781 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
782 (init_sysinfo): Rename to...
783 (init_syscalls_info): ...this. Add gdbarch as a parameter.
784 Adjust function to deal with gdbarch.
785 (xml_get_syscall_number): Delete parameter sysinfo. Accept
786 gdbarch as a parameter. Adjust code.
787 (xml_get_syscall_name): Likewise.
788 (xml_list_of_syscalls): Likewise.
789 (set_xml_syscall_file_name): Accept gdbarch as parameter.
790 (get_syscall_by_number): Likewise.
791 (get_syscall_by_name): Likewise.
792 (get_syscall_names): Likewise.
793 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
794 (get_syscall_by_number): Likewise.
795 (get_syscall_by_name): Likewise.
796 (get_syscall_names): Likewise.
797
798 2014-11-20 Doug Evans <xdje42@gmail.com>
799
800 Split struct symtab into two: struct symtab and compunit_symtab.
801 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
802 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
803 to "struct compunit_symtab *". All callers updated.
804 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
805 "struct symtab *" argument to "struct compunit_symtab *".
806 All callers updated.
807 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
808 result to "struct compunit_symtab *". All callers updated.
809 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
810 Change result to "struct compunit_symtab *". All callers updated.
811 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
812 hange type to "struct compunit_symtab *". All uses updated.
813 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
814 Change type to "struct compunit_symtab *". All uses updated.
815 * buildsym.c (struct buildsym_compunit): New struct.
816 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
817 (buildsym_compunit): New static global.
818 (finish_block_internal): Update to fetch objfile from
819 buildsym_compunit.
820 (make_blockvector): Delete objfile argument.
821 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
822 debugformat, producer.
823 (start_buildsym_compunit): New function.
824 (free_buildsym_compunit): Renamed from free_subfiles_list.
825 All callers updated.
826 (patch_subfile_names): Rewrite to use buildsym_compunit.
827 (get_compunit_symtab): New function.
828 (get_macro_table): Delete argument comp_dir. All callers updated.
829 (start_symtab): Change result to "struct compunit_symtab *".
830 All callers updated. Create the subfile of the main source file.
831 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
832 (reset_symtab_globals): Update.
833 (end_symtab_get_static_block): Update to use buildsym_compunit.
834 (end_symtab_without_blockvector): Rewrite.
835 (end_symtab_with_blockvector): Change result to
836 "struct compunit_symtab *". All callers updated.
837 Update to use buildsym_compunit. Don't set symtab->dirname,
838 instead set it in the compunit.
839 Explicitly make sure main symtab is first in its list.
840 Set debugformat, producer, blockvector, block_line_section, and
841 macrotable in the compunit.
842 (end_symtab_from_static_block): Change result to
843 "struct compunit_symtab *". All callers updated.
844 (end_symtab, end_expandable_symtab): Ditto.
845 (set_missing_symtab): Change symtab argument to
846 "struct compunit_symtab *". All callers updated.
847 (augment_type_symtab): Ditto.
848 (record_debugformat): Update to use buildsym_compunit.
849 (record_producer): Update to use buildsym_compunit.
850 * buildsym.h (struct subfile) <dirname>: Delete.
851 <producer, debugformat>: Delete.
852 <buildsym_compunit>: New member.
853 (get_compunit_symtab): Declare.
854 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
855 from primary_symtab. Change type to "struct compunit_symtab *".
856 All uses updated.
857 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
858 All callers updated.
859 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
860 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
861 symtab. Change type to "struct compunit_symtab *". All uses updated.
862 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
863 All callers updated.
864 (dw2_find_last_source_symtab): Ditto.
865 (dw2_lookup_symbol): Ditto.
866 (recursively_find_pc_sect_compunit_symtab): Renamed from
867 recursively_find_pc_sect_symtab. Change result to
868 "struct compunit_symtab *". All callers updated.
869 (dw2_find_pc_sect_compunit_symtab): Renamed from
870 dw2_find_pc_sect_symtab. Change result to
871 "struct compunit_symtab *". All callers updated.
872 (get_compunit_symtab): Renamed from get_symtab. Change result to
873 "struct compunit_symtab *". All callers updated.
874 (recursively_compute_inclusions): Change type of immediate_parent
875 argument to "struct compunit_symtab *". All callers updated.
876 (compute_compunit_symtab_includes): Renamed from
877 compute_symtab_includes. All callers updated. Rewrite to compute
878 includes of compunit_symtabs and not symtabs.
879 (process_full_comp_unit): Update to work with struct compunit_symtab.
880 (process_full_type_unit): Ditto.
881 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
882 (dwarf_decode_lines): Remove special case handling of main subfile.
883 (macro_start_file): Delete argument comp_dir. All callers updated.
884 (dwarf_decode_macro_bytes): Ditto.
885 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
886 use struct compunit_symtab.
887 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
888 * jit.c (finalize_symtab): Build compunit_symtab.
889 * jv-lang.c (get_java_class_symtab): Change result to
890 "struct compunit_symtab *". All callers updated.
891 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
892 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
893 comp_dir. Change type to "struct compunit_symtab *".
894 All uses updated.
895 (new_macro_table): Change comp_dir argument to cust,
896 "struct compunit_symtab *". All callers updated.
897 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
898 nr_primary_symtabs. All uses updated.
899 (count_symtabs_and_blocks): Update to handle compunits.
900 (report_command_stats): Update output, "primary symtabs" renamed to
901 "compunits".
902 * mdebugread.c (new_symtab): Change result to
903 "struct compunit_symtab *". All callers updated.
904 (parse_procedure): Change type of search_symtab argument to
905 "struct compunit_symtab *". All callers updated.
906 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
907 separate loop.
908 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
909 symtabs. Change type to "struct compunit_symtab *". All uses updated.
910 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
911 All uses updated.
912 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
913 All uses updated.
914 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
915 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
916 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
917 symtab. Change type to "struct compunit_symtab *". All uses updated.
918 * psymtab.c (psymtab_to_symtab): Change result type to
919 "struct compunit_symtab *". All callers updated.
920 (find_pc_sect_compunit_symtab_from_partial): Renamed from
921 find_pc_sect_symtab_from_partial. Change result type to
922 "struct compunit_symtab *". All callers updated.
923 (lookup_symbol_aux_psymtabs): Change result type to
924 "struct compunit_symtab *". All callers updated.
925 (find_last_source_symtab_from_partial): Ditto.
926 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
927 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
928 and macro_table from compunit.
929 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
930 type to "struct compunit_symtab *". All callers updated.
931 (debug_qf_lookup_symbol): Ditto.
932 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
933 debug_qf_find_pc_sect_symtab, change result type to
934 "struct compunit_symtab *". All callers updated.
935 * symfile.c (allocate_symtab): Delete objfile argument.
936 New argument cust.
937 (allocate_compunit_symtab): New function.
938 (add_compunit_symtab_to_objfile): New function.
939 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
940 Change result type to "struct compunit_symtab *". All uses updated.
941 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
942 Change result type to "struct compunit_symtab *". All uses updated.
943 * symmisc.c (print_objfile_statistics): Compute blockvector count in
944 separate loop.
945 (dump_symtab_1): Update test for primary source symtab.
946 (maintenance_info_symtabs): Update to handle compunit symtabs.
947 (maintenance_check_symtabs): Ditto.
948 * symtab.c (set_primary_symtab): Delete.
949 (compunit_primary_filetab): New function.
950 (compunit_language): New function.
951 (iterate_over_some_symtabs): Change type of arguments "first",
952 "after_last" to "struct compunit_symtab *". All callers updated.
953 Update to loop over symtabs in each compunit.
954 (error_in_psymtab_expansion): Rename symtab argument to cust,
955 and change type to "struct compunit_symtab *". All callers updated.
956 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
957 Change result type to "struct compunit_symtab *". All callers updated.
958 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
959 Change result type to "struct compunit_symtab *". All callers updated.
960 (find_pc_sect_line): Only loop over symtabs within selected compunit
961 instead of all symtabs in the objfile.
962 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
963 <compunit_symtab> New member.
964 <block_line_section>: Moved to compunit_symtab.
965 <locations_valid>: Ditto.
966 <epilogue_unwind_valid>: Ditto.
967 <macro_table>: Ditto.
968 <dirname>: Ditto.
969 <debugformat>: Ditto.
970 <producer>: Ditto.
971 <objfile>: Ditto.
972 <call_site_htab>: Ditto.
973 <includes>: Ditto.
974 <user>: Ditto.
975 <primary>: Delete
976 (SYMTAB_COMPUNIT): New macro.
977 (SYMTAB_BLOCKVECTOR): Update definition.
978 (SYMTAB_OBJFILE): Update definition.
979 (SYMTAB_DIRNAME): Update definition.
980 (struct compunit_symtab): New type. Common members among all source
981 symtabs within a compilation unit moved here. All uses updated.
982 (COMPUNIT_OBJFILE): New macro.
983 (COMPUNIT_FILETABS): New macro.
984 (COMPUNIT_DEBUGFORMAT): New macro.
985 (COMPUNIT_PRODUCER): New macro.
986 (COMPUNIT_DIRNAME): New macro.
987 (COMPUNIT_BLOCKVECTOR): New macro.
988 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
989 (COMPUNIT_LOCATIONS_VALID): New macro.
990 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
991 (COMPUNIT_CALL_SITE_HTAB): New macro.
992 (COMPUNIT_MACRO_TABLE): New macro.
993 (ALL_COMPUNIT_FILETABS): New macro.
994 (compunit_symtab_ptr): New typedef.
995 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
996
997 2014-11-20 Joel Brobecker <brobecker@adacore.com>
998
999 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1000 if the TYPE_CODE of range_type's base type does not match
1001 the TYPE_CODE of encoding_type's base type.
1002
1003 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1004
1005 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1006 it starts with '<'.
1007
1008 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1009
1010 * ada-lang.c (ada_is_redundant_range_encoding): New function.
1011 (ada_is_redundant_index_type_desc): New function.
1012 (to_fixed_array_type): Ignore parallel XA type if redundant.
1013
1014 2014-11-19 Joel Brobecker <brobecker@adacore.com>
1015
1016 * ada-lang.c (constrained_packed_array_type): Set the length
1017 of the return array as if both bounds where zero if that
1018 returned array's index type is dynamic.
1019
1020 2014-11-19 Yao Qi <yao@codesourcery.com>
1021
1022 * config/i386/go32.mh (CC): Remove.
1023
1024 2014-11-18 Doug Evans <xdje42@gmail.com>
1025
1026 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
1027 updated.
1028
1029 2014-11-18 Doug Evans <xdje42@gmail.com>
1030
1031 * buildsym.c (buildsym_objfile): New static global.
1032 (buildsym_comp_dir): New static global.
1033 (finish_block_internal): Delete arg objfile. All callers updated.
1034 (finish_block): Delete arg objfile. All callers updated.
1035 (start_subfile): Delete arg dirname. All callers updated.
1036 (patch_subfile_names): Update buildsym_comp_dir.
1037 (get_macro_table): Delete arg objfile. All callers updated.
1038 (start_symtab): New arg objfile. All callers updated.
1039 Rename arg dirname to comp_dir.
1040 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1041 (end_symtab_get_static_block): Delete arg objfile. All callers
1042 updated.
1043 (end_symtab_without_blockvector): Ditto.
1044 (end_symtab_with_blockvector): Ditto.
1045 (end_symtab_from_static_block): Ditto.
1046 (end_symtab): Ditto.
1047 (end_expandable_symtab): Ditto.
1048 (augment_type_symtab): Ditto.
1049 * coffread.c (coff_start_symtab): New arg objfile. All callers
1050 updated.
1051
1052 2014-11-18 Doug Evans <xdje42@gmail.com>
1053
1054 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
1055 updated.
1056
1057 2014-11-18 Doug Evans <xdje42@gmail.com>
1058
1059 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
1060 symtab.dirname updated to use it.
1061
1062 2014-11-18 Doug Evans <xdje42@gmail.com>
1063
1064 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1065 symtab.objfile updated to use it.
1066
1067 2014-11-18 Doug Evans <xdje42@gmail.com>
1068
1069 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1070
1071 2014-11-18 Doug Evans <xdje42@gmail.com>
1072
1073 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1074 SYMBOL_OBJFILE.
1075 * findvar.c (default_read_var_value): Ditto.
1076 * jv-lang.c (add_class_symtab_symbol): Ditto.
1077 * parse.c (operator_check_standard): Ditto.
1078 * printcmd.c (address_info): Ditto.
1079 * symtab.c (fixup_symbol_section): Ditto.
1080 (skip_prologue_sal): Ditto.
1081 * tracepoint.c (scope_info): Ditto.
1082 * valops.c (find_function_in_inferior): Ditto.
1083 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1084 * python/py-symbol.c (set_symbol): Ditto.
1085
1086 2014-11-18 Doug Evans <xdje42@gmail.com>
1087
1088 * buildsym.c (main_subfile): New static global.
1089 (free_subfiles_list): New function.
1090 (start_symtab): Set main_subfile.
1091 (restart_symtab): Replace init of subfiles, current_subfile with
1092 call to free_subfiles_list.
1093 (watch_main_source_file_lossage): Use main_subfile.
1094 (reset_symtab_globals): Replace init of current_subfile with call
1095 to free_subfiles_list.
1096 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1097 functions, split out from ...
1098 (end_symtab_from_static_block): ... here. Rewrite to call them.
1099
1100 2014-11-18 Doug Evans <xdje42@gmail.com>
1101
1102 The result of symtab expansion is always a primary symtab.
1103 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1104 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1105 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1106 (psymtab_to_symtab): Add comment and assert.
1107 (map_matching_symbols_psymtab): Remove unnecessary test for
1108 non-primary symtab.
1109
1110 2014-11-15 Doug Evans <xdje42@gmail.com>
1111
1112 PR symtab/17559
1113 * symtab.c (find_pc_line_symtab): New function.
1114 * symtab.h (find_pc_line_symtab): Declare.
1115 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1116 find_pc_symtab.
1117 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1118 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1119 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1120 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1121 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1122 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1123
1124 2014-11-15 Doug Evans <xdje42@gmail.com>
1125
1126 * symtab.c (expand_symtab_containing_pc): Renamed from
1127 find_pc_sect_symtab_via_partial. All callers updated.
1128
1129 2014-11-15 Yao Qi <yao@codesourcery.com>
1130
1131 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1132
1133 2014-11-14 Joel Brobecker <brobecker@adacore.com>
1134
1135 * common/common-defs.h: Move <stdarg.h> #include ahead of
1136 <stdio.h> #include.
1137
1138 2014-11-14 Pedro Alves <palves@redhat.com>
1139
1140 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1141 [!PHONY_ICONV] (gdb_iconv): New function.
1142 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1143
1144 2014-11-13 Doug Evans <dje@google.com>
1145
1146 PR symtab/17591
1147 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1148 "(anonymous namespace)".
1149
1150 2014-11-13 Doug Evans <dje@google.com>
1151
1152 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1153 infinite loop.
1154
1155 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1156
1157 * NEWS (maint set target-async): Fix typo.
1158
1159 2014-11-12 Pedro Alves <palves@redhat.com>
1160
1161 * infrun.c (enum infwait_states, infwait_state): Delete.
1162
1163 2014-11-12 Pedro Alves <palves@redhat.com>
1164
1165 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1166 Rewrite stepping over a permanent breakpoint.
1167 (thread_still_needs_step_over, proceed): Don't set
1168 stepping_over_breakpoint for permanent breakpoints.
1169 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1170 single-step breakpoints out of the target on hardware step
1171 targets.
1172 (process_event_stop_test): If stepping a permanent breakpoint
1173 doesn't hit the step-resume breakpoint, delete the step-resume
1174 breakpoint.
1175 (switch_back_to_stepped_thread): Also check if the stepped thread
1176 has advanced already on hardware step targets.
1177 (currently_stepping): Return true if the thread stepped a
1178 breakpoint.
1179
1180 2014-11-12 Pedro Alves <palves@redhat.com>
1181
1182 Mark locations as permanent, not the whole breakpoint.
1183 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1184 (mark_breakpoints_out): Don't mark permanent breakpoints as
1185 uninserted.
1186 (breakpoint_init_inferior): Use mark_breakpoints_out.
1187 (breakpoint_here_p): Adjust.
1188 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1189 of permanent breakpoints.
1190 (make_breakpoint_permanent): Mark each location as permanent,
1191 instead of marking the breakpoint.
1192 (add_location_to_breakpoint): If the location is permanent, mark
1193 it as such, and as inserted.
1194 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1195 (bp_location_compare, update_global_location_list): Adjust.
1196 (update_breakpoint_locations): Don't make the breakpoint permanent
1197 here.
1198 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1199 breakpoints.
1200 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1201 (struct bp_location) <permanent>: New field.
1202 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1203 reference to bp_permanent.
1204
1205 2014-11-12 Pedro Alves <palves@redhat.com>
1206
1207 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1208 * arch-utils.h (default_skip_permanent_breakpoint): New
1209 declaration.
1210 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1211 Install default_skip_permanent_breakpoint as default method.
1212 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1213 (i386_gdbarch_init): Don't install it.
1214 * infrun.c (resume): Assume there's always a
1215 gdbarch_skip_permanent_breakpoint implementation.
1216 * gdbarch.h, gdbarch.c: Regenerate.
1217
1218 2014-11-11 Daniel Colascione <dancol@dancol.org>
1219
1220 Warn about cross-PID-namespace debugging.
1221 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1222 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1223 * linux-thread-db.c (check_pid_namespace_match): New function.
1224 (thread_db_inferior_created): Call it.
1225
1226 2014-11-10 Doug Evans <xdje42@gmail.com>
1227
1228 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1229 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1230
1231 2014-11-10 Doug Evans <xdje42@gmail.com>
1232
1233 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1234
1235 2014-11-10 Doug Evans <xdje42@gmail.com>
1236
1237 PR symtab/17564
1238 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1239 (lookup_static_symbol): Move definition to new location and rewrite.
1240 (lookup_symbol_in_objfile): New function.
1241 (lookup_symbol_global_iterator_cb): Call it.
1242
1243 2014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
1244
1245 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1246
1247 2014-11-07 Pedro Alves <palves@redhat.com>
1248
1249 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1250 check if we did a "nexti" inside a prologue.
1251 * symtab.c (in_prologue): Delete function.
1252 * symtab.h (in_prologue): Delete declaration.
1253
1254 2014-11-06 Doug Evans <xdje42@gmail.com>
1255
1256 * symtab.h (lookup_global_symbol): Improve function comment.
1257
1258 2014-11-06 Doug Evans <xdje42@gmail.com>
1259
1260 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1261 All callers updated.
1262 * symtab.h (lookup_global_symbol): Update decl.
1263 (lookup_static_symbol): Move decl to better location.
1264
1265 2014-11-06 Doug Evans <xdje42@gmail.com>
1266
1267 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1268
1269 2014-11-06 Doug Evans <xdje42@gmail.com>
1270
1271 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1272 All callers updated.
1273 (lookup_symbol_in_all_objfiles): Renamed from
1274 lookup_symbol_aux_symtabs. All callers updated.
1275 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1276 All callers updated.
1277 (lookup_symbol_in_objfile_symtabs): Renamed from
1278 lookup_symbol_aux_objfile. All callers updated.
1279
1280 2014-11-06 Doug Evans <xdje42@gmail.com>
1281
1282 * symtab.c (lookup_symbol_in_block): Renamed from
1283 lookup_symbol_aux_block. All callers updated.
1284
1285 2014-11-06 Doug Evans <xdje42@gmail.com>
1286
1287 * symtab.c (lookup_static_symbol): Renamed from
1288 lookup_static_symbol_aux. All callers updated.
1289 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1290 All callers updated.
1291
1292 2014-11-06 Doug Evans <xdje42@gmail.com>
1293
1294 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1295 * block.c (block_lookup_symbol): Use it.
1296 * cp-support.c (make_symbol_overload_list_block): Use it.
1297 * symtab.c (iterate_over_symbols): Use it.
1298
1299 2014-11-06 Doug Evans <xdje42@gmail.com>
1300
1301 * symtab.c (lookup_block_symbol): Moved to ...
1302 * block.c (block_lookup_symbol): ... here and renamed.
1303 All callers updated.
1304 * block.h (block_lookup_symbol): Declare.
1305 * symtab.h (lookup_block_symbol): Delete.
1306
1307 2014-11-06 Doug Evans <xdje42@gmail.com>
1308
1309 * ada-lang.c (ada_make_symbol_completion_list): Use
1310 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1311 * symtab.c (lookup_objfile_from_block): Ditto.
1312
1313 2014-11-06 Doug Evans <xdje42@gmail.com>
1314
1315 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1316 TYPE_CODE_STRUCT.
1317
1318 2014-11-06 Doug Evans <xdje42@gmail.com>
1319
1320 * objfiles.c (get_objfile_arch): Constify.
1321 * objfiles.h (get_objfile_arch): Update prototype.
1322 * solib.c (solib_global_lookup): Fetch arch from objfile,
1323 not target_gdbarch.
1324
1325 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1326
1327 * nios2-tdep.c (wild_insn): Delete.
1328 (profiler_insn, irqentry_insn): Delete.
1329 (nios2_match_sequence): Delete.
1330 (nios2_analyze_prologue): Update comments. Remove matching
1331 of obsolete profiler_insn and irqentry_insn sequences.
1332
1333 2014-11-05 Alan Modra <amodra@gmail.com>
1334
1335 * charset.c (convert_between_encodings): Shrink obstack using
1336 obstack_blank_fast.
1337 * minsyms.c (install_minimal_symbols): Likewise.
1338 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1339 to char* before doing pointer arithmetic.
1340
1341 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1342
1343 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1344
1345 2014-11-04 Pedro Alves <palves@redhat.com>
1346
1347 * breakpoint.c (breakpoint_thread_match): Delete function.
1348 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1349
1350 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1351
1352 PR c++/17494
1353 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1354 the method args also under EVAL_SKIP when evaluating method
1355 calls under EVAL_SKIP.
1356
1357 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1358
1359 * dwarf2loc.c (read_pieced_value): Do big endian
1360 processing only if gdb_regnum is not -1.
1361 (write_pieced_value): Ditto.
1362
1363 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1364
1365 * arm-linux-tdep.c (arm_linux_init_abi): Use
1366 info.byte_order_for_code to choose endianity of breakpoint
1367 instructions snippets.
1368
1369 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1370
1371 * arm-tdep.c (extract_arm_insn): Use
1372 gdbarch_byte_order_for_code to read arm instruction.
1373
1374 2014-11-02 Doug Evans <xdje42@gmail.com>
1375
1376 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1377
1378 2014-11-02 Doug Evans <xdje42@gmail.com>
1379
1380 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1381 main_subfile before returning.
1382
1383 2014-10-31 Doug Evans <xdje42@gmail.com>
1384
1385 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1386 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1387
1388 2014-10-31 Doug Evans <xdje42@gmail.com>
1389
1390 * valops.c (value_cast_pointers): Fix whitespace.
1391 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1392 Ditto.
1393
1394 2014-10-30 Doug Evans <dje@google.com>
1395
1396 * NEWS: Mention ability add attributes to gdb.Objfile and
1397 gdb.Progspace objects.
1398 * python/py-objfile.c (objfile_object): New member dict.
1399 (objfpy_dealloc): Py_XDECREF dict.
1400 (objfpy_initialize): Initialize dict.
1401 (objfile_getset): Add __dict__.
1402 (objfile_object_type): Set tp_dictoffset member.
1403 * python/py-progspace.c (progspace_object): New member dict.
1404 (pspy_dealloc): Py_XDECREF dict.
1405 (pspy_initialize): Initialize dict.
1406 (pspace_getset): Add __dict__.
1407 (pspace_object_type): Set tp_dictoffset member.
1408
1409 2014-10-30 Yao Qi <yao@codesourcery.com>
1410
1411 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1412 replace '\\' with '\\\\'.
1413
1414 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1415
1416 GDB 7.8.1 released.
1417
1418 2014-10-29 Pedro Alves <palves@redhat.com>
1419
1420 PR gdb/17408
1421 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1422 instead of assuming a thread with a stepping range is always
1423 stepping.
1424
1425 2014-10-29 Pedro Alves <palves@redhat.com>
1426
1427 PR python/17372
1428 * event-top.c (change_line_handler): Call
1429 gdb_rl_callback_handler_remove instead of
1430 rl_callback_handler_remove.
1431 (callback_handler_installed): New global.
1432 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1433 (gdb_rl_callback_handler_reinstall): New functions.
1434 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1435 gdb_rl_callback_handler_install instead of
1436 rl_callback_handler_remove and rl_callback_handler_install.
1437 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1438 instead of rl_callback_handler_remove.
1439 * event-top.h (gdb_rl_callback_handler_remove)
1440 (gdb_rl_callback_handler_install)
1441 (gdb_rl_callback_handler_reinstall): New declarations.
1442 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1443 cleanup function.
1444 (fetch_inferior_event): Install it.
1445 * top.c (gdb_readline_wrapper_line) Call
1446 gdb_rl_callback_handler_remove instead of
1447 rl_callback_handler_remove.
1448 (gdb_readline_wrapper_cleanup): Don't call
1449 rl_callback_handler_install.
1450
1451 2014-10-29 Pedro Alves <palves@redhat.com>
1452
1453 * event-top.c (command_line_handler): Clear the first byte of
1454 linebuffer, when it is first allocated.
1455
1456 2014-10-29 Pedro Alves <palves@redhat.com>
1457
1458 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1459 TRY_CATCH.
1460
1461 2014-10-29 Pedro Alves <palves@redhat.com>
1462
1463 PR tui/16138
1464 PR tui/17519
1465 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1466 (tui_allowed_p): Delete function.
1467 * tui/tui.c: Include "interps.h".
1468 (tui_enable): Don't use tui_allowed_p. Error out here with
1469 detailed error messages if the TUI is the top level interpreter,
1470 or if output is not a terminal. Use newterm instead of initscr,
1471 and error out if initializing the terminal fails. Also error out if
1472 the terminal doesn't support cursor addressing.
1473 * tui/tui.h (tui_allowed_p): Delete declaration.
1474
1475 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1476
1477 * arm-tdep.c (arm_skip_stack_protector): Return early if
1478 address loaded by first "ldr" instruction does not have
1479 a corresponding minimal symbol. Update comment.
1480
1481 2014-10-29 Yao Qi <yao@codesourcery.com>
1482
1483 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1484 loaded address correctly of ldr instruction.
1485
1486 2014-10-28 Pedro Alves <palves@redhat.com>
1487
1488 PR gdb/12623
1489 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1490 field.
1491 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1492 thread's stepped_breakpoint field. Skip if reverse debugging.
1493 Add comment.
1494 (init_thread_stepping_state, handle_signal_stop): Clear the
1495 thread's stepped_breakpoint field.
1496
1497 2014-10-27 Pedro Alves <palves@redhat.com>
1498
1499 * remote.c (remote_thread_alive): New, factored out from ...
1500 (remote_thread_alive): ... this.
1501 (remote_update_thread_list): Bail out before deleting threads if
1502 the target returned an empty list, and, the current thread has a
1503 magic/fake ptid.
1504
1505 2014-10-27 Pedro Alves <palves@redhat.com>
1506
1507 * infrun.c (handle_signal_stop): Also skip handlers when a random
1508 signal arrives while handling a "stepi" or a "nexti". Set the
1509 thread's 'step_after_step_resume_breakpoint' flag.
1510
1511 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
1512
1513 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1514 (arm_record_ld_st_imm_offset): Reimplement to cover all
1515 load/store cases for ARM opcode 010.
1516 (arm_record_ld_st_multiple): Reimplement to cover all
1517 load/store cases for ARM opcode 100.
1518
1519 2014-10-26 Doug Evans <xdje42@gmail.com>
1520
1521 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1522
1523 2014-10-26 Doug Evans <xdje42@gmail.com>
1524
1525 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1526 parameter "kind" to "block_index".
1527 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1528 "block_index".
1529 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1530
1531 2014-10-26 Doug Evans <xdje42@gmail.com>
1532
1533 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1534
1535 2014-10-26 Doug Evans <xdje42@gmail.com>
1536
1537 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1538 obstack_alloc.
1539
1540 2014-10-26 Doug Evans <xdje42@gmail.com>
1541
1542 * parser-defs.h (block_found): Move decl from here ...
1543 * symtab.h (block_found): ... to here.
1544
1545 2014-10-26 Doug Evans <xdje42@gmail.com>
1546
1547 * symtab.h (struct field_of_this_result): Fix typo in comment.
1548 (lookup_symbol_in_language): Move function comment here.
1549 (lookup_symbol): Improve function comment.
1550 (basic_lookup_symbol_nonlocal): Ditto.
1551 (lookup_symbol_static, lookup_symbol_global): Ditto.
1552 (lookup_symbol_aux_block): Ditto.
1553 (lookup_language_this): Add function comment.
1554 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1555 function comment.
1556 (lookup_block_symbol): Improve function comment.
1557 (lookup_struct): Fix capitalization in function comment.
1558 (lookup_transparent_type): Add function comment.
1559 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1560 Improve function comment.
1561 (lookup_objfile_from_block): Add function comment.
1562 * symtab.c (lookup_symbol_in_language): Update function comment.
1563 (lookup_symbol, lookup_language_this): Ditto.
1564 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1565 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1566 (basic_lookup_symbol_nonlocal): Ditto.
1567 (lookup_symbol_static, lookup_symbol_global): Ditto.
1568 (lookup_transparent_type, lookup_block_symbol): Ditto.
1569
1570 2014-10-25 Doug Evans <xdje42@gmail.com>
1571
1572 * symtab.c (types_info): Delete forward decl.
1573 (functions_info, variables_info, sources_info): Ditto.
1574 (_initialize_symtab): Rewrite forward decl to use
1575 initialize_file_ftype.
1576
1577 2014-10-25 Doug Evans <xdje42@gmail.com>
1578
1579 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1580
1581 2014-10-25 Doug Evans <xdje42@gmail.com>
1582
1583 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1584 of local var child_die.
1585
1586 2014-10-24 Don Breazeal <donb@codesourcery.com>
1587
1588 * infrun.c (follow_fork_inferior): Update fork message printing
1589 to use target_terminal_ours_for_output instead of
1590 target_terminal_ours, to use _() for all format strings, to print
1591 "vfork" instead of "fork" for vforks, and to add a detach message.
1592 (handle_vfork_child_exec_or_exit): Update message printing to use
1593 target_terminal_ours_for_output instead of target_terminal_ours, to
1594 use _() for all format strings, and to fix some formatting.
1595
1596 2014-10-24 Pedro Alves <palves@redhat.com>
1597
1598 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1599 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1600 * config/vax/vax.mh: Delete.
1601 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1602 obsolete configurations section.
1603 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1604 * vax-nat.c: Delete file.
1605
1606 2014-10-24 Pedro Alves <palves@redhat.com>
1607
1608 * NEWS (Removed targets): Add OS/arch column.
1609
1610 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1611
1612 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1613 on the arg type of a constructor only if it is of reference type.
1614
1615 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1616
1617 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1618 accessors and constants from nios2 opcodes update.
1619 (nios2_get_next_pc): Likewise.
1620
1621 2014-10-19 Doug Evans <xdje42@gmail.com>
1622
1623 * gdbthread.h (set_running): Fix comment.
1624 (set_executing, finish_thread_state): Fix comment.
1625
1626 2014-10-18 Doug Evans <xdje42@gmail.com>
1627
1628 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1629
1630 2014-10-17 Doug Evans <dje@google.com>
1631
1632 * NEWS: Mention new event gdb.clear_objfiles.
1633 * python/py-event.h (emit_clear_objfiles_event): Clear
1634 * python/py-events.h (events_object): New member clear_objfiles.
1635 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1636 event.
1637 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1638 emit clear_objfiles event.
1639 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1640 function.
1641 (emit_clear_objfiles_event): New function.
1642 (clear_objfiles): New event.
1643 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1644 Declare.
1645 * python/python.c (_initialize_python): Call
1646 gdbpy_initialize_clear_objfiles_event.
1647
1648 2014-10-17 Doug Evans <dje@google.com>
1649
1650 * NEWS: Mention new gdb.Objfile.progspace attribute.
1651 * python/py-objfile.c (objfpy_get_progspace): New function.
1652 (objfile_getset): New entry for "progspace".
1653
1654 2014-10-17 Pedro Alves <palves@redhat.com>
1655
1656 PR gdb/17471
1657 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1658 returns a copy of the input.
1659 (run_command_1, continue_command, step_1, jump_command)
1660 (signal_command, until_command, advance_command, finish_command)
1661 (attach_command): Adjust and install a cleanup to free the
1662 stripped args.
1663
1664 2014-10-17 Pedro Alves <palves@redhat.com>
1665
1666 PR gdb/17300
1667 * infcmd.c (continue_1): If continuing all threads in the
1668 foreground, make sure the inferior's terminal settings are put in
1669 effect.
1670
1671 2014-10-17 Pedro Alves <palves@redhat.com>
1672
1673 PR gdb/17472
1674 * annotate.c (annotate_breakpoints_invalid): Use
1675 target_terminal_our_for_output instead of target_terminal_ours.
1676 Give back the terminal to the target.
1677 (annotate_frames_invalid): Likewise.
1678
1679 2014-10-17 Pedro Alves <palves@redhat.com>
1680
1681 * target.c (enum terminal_state): New enum.
1682 (terminal_state): New global.
1683 (target_terminal_init): New function.
1684 (target_terminal_inferior): Skip if inferior already owns the
1685 terminal.
1686 (target_terminal_ours, target_terminal_ours_for_output): New
1687 functions.
1688 * target.h (target_terminal_init): Convert to function prototype.
1689 (target_terminal_ours_for_output): Convert to function prototype
1690 and tweak comment.
1691 (target_terminal_ours): Convert to function prototype and tweak
1692 comment.
1693 * windows-nat.c (do_initial_windows_stuff): Call
1694 target_terminal_init instead of child_terminal_init_with_pgrp.
1695
1696 2014-10-17 Pedro Alves <palves@redhat.com>
1697
1698 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1699 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1700 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1701 solib-osf.c.
1702 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1703 * ada-lang.h [__alpha__ && __osf__]
1704 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1705 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1706 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1707 GDB_OSABI_OSF1.
1708 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1709 files.
1710 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1711 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1712 * configure: Regenerate.
1713 * configure.ac: Remove references to osf.
1714 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1715 section. Remove all other references to osf.
1716 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1717 Remove all other references to osf.
1718 * dec-thread.c: Delete file.
1719 * defs.h (GDB_OSABI_OSF1): Delete.
1720 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1721 defined.
1722 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1723 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1724 Delete code.
1725 (unconditionally_kill_inferior)
1726 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1727 * solib-osf.c: Delete file.
1728
1729 2014-10-17 Pedro Alves <palves@redhat.com>
1730
1731 * remote.c (clear_threads_listing_context): Move higher up, out of
1732 the HAVE_LIBEXPAT guard.
1733
1734 2014-10-16 Tristan Gingold <gingold@adacore.com>
1735
1736 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1737 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1738 on amd64.
1739
1740 2014-10-15 Pedro Alves <palves@redhat.com>
1741
1742 * dec-thread.c (dec_thread_count_gdb_threads)
1743 (dec_thread_add_gdb_thread): Delete.
1744 (dec_thread_update_thread_list): Delete.
1745 (dec_thread_find_new_threads): Rename to ...
1746 (dec_thread_update_thread_list): ... this. Delete GDB-size
1747 threads that are no longer found in dec_thread_list.
1748 (resync_thread_list): Delete.
1749 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1750 resync_thread_list.
1751
1752 2014-10-15 Pedro Alves <palves@redhat.com>
1753
1754 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1755 * remote.c (remote_update_thread_list): Skip calling prune_threads
1756 if any thread listing method is supported, and instead walk over
1757 the set of remote threads listed, deleting those that are not
1758 found in GDB's thread list.
1759
1760 2014-10-15 Pedro Alves <palves@redhat.com>
1761
1762 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1763 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1764 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1765 (bsd_uthread_target): Adjust.
1766 * corelow.c (core_open): Adjust.
1767 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1768 (dec_thread_update_thread_list): New function.
1769 (init_dec_thread_ops): Adjust.
1770 * gdbthread.h (prune_threads): New declaration.
1771 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1772 (thread_db_update_thread_list): ... this. Call prune_threads.
1773 (init_thread_db_ops): Adjust.
1774 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1775 (procfs_update_thread_list): ... this. Call prune_threads.
1776 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1777 Adjust.
1778 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1779 (obsd_update_thread_list): ... this. Call prune_threads.
1780 (obsd_add_target): Adjust.
1781 * procfs.c (procfs_target): Adjust.
1782 (procfs_notice_thread): Update comment.
1783 (procfs_find_new_threads): Rename to ...
1784 (procfs_update_thread_list): ... this. Call prune_threads.
1785 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1786 comment.
1787 (ravenscar_wait): Adjust.
1788 (ravenscar_find_new_threads): Rename to ...
1789 (ravenscar_update_thread_list): ... this. Call prune_threads.
1790 (init_ravenscar_thread_ops): Adjust.
1791 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1792 (record_btrace_update_thread_list): ... this. Adjust comment.
1793 (init_record_btrace_ops): Adjust.
1794 * remote.c (remote_threads_info): Rename to ...
1795 (remote_update_thread_list): ... this. Call prune_threads.
1796 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1797 Adjust.
1798 * sol-thread.c (check_for_thread_db): Adjust.
1799 (sol_find_new_threads_callback): Rename to ...
1800 (sol_update_thread_list_callback): ... this.
1801 (sol_find_new_threads): Rename to ...
1802 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1803 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1804 * target-delegates.c: Regenerate.
1805 * target.c (target_find_new_threads): Rename to ...
1806 (target_update_thread_list): ... this.
1807 * target.h (struct target_ops): Rename to_find_new_threads field
1808 to to_update_thread_list.
1809 (target_find_new_threads): Rename to ...
1810 (target_update_thread_list): ... this.
1811 * thread.c (prune_threads): Make extern.
1812 (update_thread_list): Adjust.
1813
1814 2014-10-15 Pedro Alves <palves@redhat.com>
1815
1816 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1817 Add describing comment. Return -1 if the qL packet is not
1818 supported.
1819 (struct thread_item, thread_item_t): Move higher up in
1820 the file. Add comments.
1821 (struct threads_parsing_context): Move higher up in
1822 the file, add comments, and remote to ...
1823 (struct threads_listing_context): ... this.
1824 (remote_newthread_step): Don't add the thread to GDB's thread
1825 database here. Instead push it to the thread_listing_context
1826 list.
1827 (remote_find_new_threads): Rename to ...
1828 (remote_get_threads_with_ql): ... this. Add target_ops and
1829 targets_listing_context parameters. Pass down context.
1830 (start_thread): Adjust.
1831 (clear_threads_parsing_context): Rename to ...
1832 (clear_threads_listing_context): ... this.
1833 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1834 remote_threads_info.
1835 (remote_get_threads_with_qthreadinfo): Ditto.
1836 (remote_threads_info): Reimplement.
1837
1838 2014-10-15 Pedro Alves <palves@redhat.com>
1839
1840 * infrun.c (resume): Don't force displaced-stepping for all
1841 single-steps on software single-stepping archs.
1842
1843 2014-10-15 Pedro Alves <palves@redhat.com>
1844
1845 * breakpoint.c (single_step_breakpoints): Delete global.
1846 (insert_single_step_breakpoint): Adjust to store the breakpoint
1847 pointer in the current thread.
1848 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1849 (cancel_single_step_breakpoints): Delete functions.
1850 (breakpoint_has_location_inserted_here): Make extern.
1851 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1852 breakpoint list.
1853 * breakpoint.h (breakpoint_has_location_inserted_here): New
1854 declaration.
1855 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1856 (cancel_single_step_breakpoints): Remove declarations.
1857 * gdbthread.h (struct thread_control_state)
1858 <single_step_breakpoints>: New field.
1859 (delete_single_step_breakpoints)
1860 (thread_has_single_step_breakpoints_set)
1861 (thread_has_single_step_breakpoint_here): New declarations.
1862 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1863 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1864 (singlestep_pc): Delete globals.
1865 (infrun_thread_ptid_changed): Remove references to removed
1866 globals.
1867 (resume_cleanups): Delete the current thread's single-step
1868 breakpoints.
1869 (maybe_software_singlestep): Remove references to removed globals.
1870 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1871 delete_single_step_breakpoints.
1872 (init_wait_for_inferior): Remove references to removed globals.
1873 (delete_thread_infrun_breakpoints): Delete the thread's
1874 single-step breakpoints too.
1875 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1876 single-step breakpoints here.
1877 (delete_stopped_threads_single_step_breakpoints): New function.
1878 (adjust_pc_after_break): Adjust to use
1879 thread_has_single_step_breakpoints_set.
1880 (handle_inferior_event): Remove references to removed globals.
1881 Use delete_stopped_threads_single_step_breakpoints.
1882 (handle_signal_stop): Adjust to per-thread single-step
1883 breakpoints. Swap test order to do cheaper tests first.
1884 (switch_back_to_stepped_thread): Extend debug output. Remove
1885 references to removed globals.
1886 * record-full.c (record_full_wait_1): Adjust to per-thread
1887 single-step breakpoints.
1888 * thread.c (delete_single_step_breakpoints)
1889 (thread_has_single_step_breakpoints_set)
1890 (thread_has_single_step_breakpoint_here): New functions.
1891 (clear_thread_inferior_resources): Also delete the thread's
1892 single-step breakpoints.
1893
1894 2014-10-15 Pedro Alves <palves@redhat.com>
1895
1896 * thread.c (delete_thread_breakpoint): New function.
1897 (delete_step_resume_breakpoint)
1898 (delete_exception_resume_breakpoint): Use it.
1899 (delete_at_next_stop): New function.
1900 (clear_thread_inferior_resources): Use delete_at_next_stop.
1901
1902 2014-10-15 Pedro Alves <palves@redhat.com>
1903
1904 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1905 (breakpoint_inserted_here_p): ... here. Remove special case for
1906 software single-step breakpoints.
1907 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1908 (software_breakpoint_inserted_here_p): ... here. Remove special
1909 case for software single-step breakpoints.
1910 (bp_target_info_copy_insertion_state)
1911 (deprecated_insert_raw_breakpoint)
1912 (deprecated_remove_raw_breakpoint): Delete functions.
1913 * breakpoint.h (deprecated_insert_raw_breakpoint)
1914 (deprecated_remove_raw_breakpoint): Remove declarations.
1915
1916 2014-10-15 Pedro Alves <palves@redhat.com>
1917
1918 PR breakpoints/9649
1919 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1920 Delete array globals.
1921 (single_step_breakpoints): New global.
1922 (breakpoint_xfer_memory): Remove special handling for single-step
1923 breakpoints.
1924 (update_breakpoints_after_exec): Delete bp_single_step
1925 breakpoints.
1926 (detach_breakpoints): Remove special handling for single-step
1927 breakpoints.
1928 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1929 (bpstat_stop_status): Add comment.
1930 (bpstat_what, bptype_string, print_one_breakpoint_location)
1931 (adjust_breakpoint_address, init_bp_location): Handle
1932 bp_single_step.
1933 (new_single_step_breakpoint): New function.
1934 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1935 handling for single-step breakpoints.
1936 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1937 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1938 Rewrite.
1939 (detach_single_step_breakpoints, find_single_step_breakpoint):
1940 Delete functions.
1941 (breakpoint_has_location_inserted_here): New function.
1942 (single_step_breakpoint_inserted_here_p): Rewrite.
1943 * breakpoint.h: Remove FIXME.
1944 (enum bptype) <bp_single_step>: New enum value.
1945 (insert_single_step_breakpoint): Update comment.
1946 * infrun.c (resume_cleanups)
1947 (delete_step_thread_step_resume_breakpoint): Remove single-step
1948 breakpoints.
1949 (fetch_inferior_event): Install a cleanup that removes infrun
1950 breakpoints.
1951 (switch_back_to_stepped_thread) <expect thread advanced also>:
1952 Clear step-over info.
1953
1954 2014-10-15 Pedro Alves <palves@redhat.com>
1955
1956 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1957 (delete_thread_infrun_breakpoints): New function, with parts
1958 salvaged from delete_step_resume_breakpoint_callback.
1959 (delete_step_thread_step_resume_breakpoint): Delete.
1960 (for_each_just_stopped_thread_callback_func): New typedef.
1961 (for_each_just_stopped_thread): New function.
1962 (delete_just_stopped_threads_infrun_breakpoints): New function.
1963 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1964 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1965 ... this. Adjust.
1966 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1967
1968 2014-10-15 Pedro Alves <palves@redhat.com>
1969
1970 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1971 trying to step past a non-steppable watchpoint.
1972 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1973 field.
1974 * infrun.c (struct step_over_info): Add new field
1975 'nonsteppable_watchpoint_p' and adjust comments.
1976 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1977 Adjust.
1978 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1979 (stepping_past_nonsteppable_watchpoint): New function.
1980 (step_over_info_valid_p): Also return true if stepping past a
1981 nonsteppable watchpoint.
1982 (proceed): Adjust call to set_step_over_info. Remove reference to
1983 init_infwait_state.
1984 (init_wait_for_inferior): Remove reference to init_infwait_state.
1985 (waiton_ptid): Delete global.
1986 (struct execution_control_state)
1987 <stepped_after_stopped_by_watchpoint>: Delete field.
1988 (wait_for_inferior, fetch_inferior_event): Always pass
1989 minus_one_ptid to target_wait.
1990 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1991 field.
1992 (init_infwait_state): Delete function.
1993 (handle_inferior_event): Remove infwait_state handling.
1994 (handle_signal_stop) <watchpoints handling>: Adjust after
1995 stepped_after_stopped_by_watchpoint removal. Don't remove
1996 breakpoints here nor set infwait_state. Set the thread's
1997 stepping_over_watchpoint flag, and call keep_going instead.
1998 (keep_going): Handle stepping_over_watchpoint. Adjust
1999 set_step_over_info calls.
2000 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2001 function.
2002
2003 2014-10-15 Pedro Alves <palves@redhat.com>
2004
2005 * infrun.c (step_over_info_valid_p): New function.
2006 (resume): Use step_over_info_valid_p instead of checking the
2007 threads's trap_expected flag.
2008
2009 2014-10-15 Doug Evans <dje@google.com>
2010 Walfred Tedeschi <walfred.tedeschi@intel.com>
2011
2012 PR python/17364
2013 * python/lib/gdb/__init__.py (packages): Add "printer".
2014 * python/lib/gdb/command/bound_registers.py: Moved to ...
2015 * python/lib/gdb/printer/bound_registers.py: ... here.
2016 Add printer to global set of builtin printers. Rename printer from
2017 "bound" to "mpx_bound128".
2018 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2019 registered as global "builtin" printer.
2020 (add_builtin_pretty_printer): New function.
2021 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2022 gdb/printer/__init__.py.
2023
2024 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
2025
2026 * Makefile.in (SFILES): Remove d-support.c.
2027 (COMMON_OBS): Remove d-support.o.
2028 * d-lang.h (d_parse_symbol): Remove declaration.
2029 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2030 * d-support.c: Remove file.
2031
2032 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
2033
2034 * gdb/infrun.c (process_event_stop_test): Apply
2035 gdbarch_addr_bits_remove to longjmp resume address.
2036
2037 2014-10-15 Pedro Alves <palves@redhat.com>
2038
2039 * regformats/microblaze.dat: Delete file.
2040
2041 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
2042
2043 * features/Makefile (microblaze-expedite): Replace pc with rpc.
2044 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2045
2046 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2047
2048 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2049 as non-trivial.
2050
2051 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
2052
2053 PR c++/13403
2054 PR c++/15154
2055 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2056 with qualified args.
2057
2058 2014-10-14 Joel Brobecker <brobecker@adacore.com>
2059
2060 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2061 of the case where the second operand is a pointer.
2062 <BINOP_SUB>: Likewise.
2063
2064 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2065
2066 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2067 only if it is not NULL.
2068 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2069 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2070 (struct probe_ops) <clear_semaphore>: Likewise.
2071 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2072 not NULL.
2073 (stop_tracing): Likewise, for clear_semaphore.
2074
2075 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2076
2077 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2078 using language_c, instead of current_language.
2079
2080 2014-10-13 Doug Evans <dje@google.com>
2081
2082 * python/py-objfile.c (objfpy_initialize): New function.
2083 (objfpy_new, objfile_to_objfile_object): Call it.
2084 * python/py-progspace.c (pspy_initialize): New function.
2085 (pspy_new, pspace_to_pspace_object): Call it.
2086
2087 2014-10-13 Miroslav Franc <mfranc@redhat.com>
2088 Jan Kratochvil <jan.kratochvil@redhat.com>
2089
2090 Fix "save breakpoints" for "catch" command.
2091 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2092 newline.
2093
2094 2014-10-12 Miroslav Franc <mfranc@redhat.com>
2095
2096 Fix "save breakpoints" for "disable $bpnum" command.
2097 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2098
2099 2014-10-10 Pedro Alves <palves@redhat.com>
2100
2101 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2102 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2103 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2104 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2105 and been removed.
2106 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2107 * configure.ac: Remove references to IRIX.
2108 * configure.host: Add *-*-irix* to the obsolete hosts section.
2109 Remove all other references to irix.
2110 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2111 Delete files.
2112
2113 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2114
2115 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2116 isn't valid, release the tdesc arch data and return NULL.
2117
2118 2014-10-10 Pedro Alves <palves@redhat.com>
2119
2120 * linux-tdep.c: Include observer.h.
2121 (linux_inferior_data): New global.
2122 (struct linux_info): New structure.
2123 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2124 (get_linux_inferior_data): New functions.
2125 (linux_vsyscall_range): Rename to ...
2126 (linux_vsyscall_range_raw): ... this.
2127 (linux_vsyscall_range): New function; handles caching.
2128 (_initialize_linux_tdep): Register linux_inferior_data. Install
2129 inferior_exit and inferior_appeared observers.
2130
2131 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2132 Pedro Alves <palves@redhat.com>
2133
2134 PR symtab/14466
2135 * solib-svr4.c (svr4_read_so_list): Rename to ...
2136 (svr4_current_sos_1): ... this and change the function comment.
2137 (svr4_current_sos): New function.
2138
2139 2014-10-10 Pedro Alves <palves@redhat.com>
2140
2141 * arch-utils.c (default_vsyscall_range): New function.
2142 * arch-utils.h (default_vsyscall_range): New declaration.
2143 * gdbarch.sh (vsyscall_range): New hook.
2144 * gdbarch.h, gdbarch.c: Regenerate.
2145 * linux-tdep.c (linux_vsyscall_range): New function.
2146 (linux_init_abi): Install linux_vsyscall_range as
2147 vsyscall_range gdbarch hook.
2148 * memrange.c (address_in_mem_range): New function.
2149 * memrange.h (address_in_mem_range): New declaration.
2150 * symfile-mem.c (find_vdso_size): Delete function.
2151 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2152
2153 2014-10-10 Pedro Alves <palves@redhat.com>
2154
2155 * infrun.c (normal_stop): Fix typo in comment.
2156
2157 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2158
2159 PR tdep/9390
2160 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2161 typo when using logical AND to determine instruction type.
2162
2163 2014-10-09 Yao Qi <yao@codesourcery.com>
2164
2165 * infrun.c (handle_signal_stop): Remove local variable
2166 'printed'.
2167
2168 2014-10-08 Stan Shebs <stan@codesourcery.com>
2169
2170 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2171
2172 2014-10-08 Gary Benson <gbenson@redhat.com>
2173
2174 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2175
2176 2014-10-08 Gary Benson <gbenson@redhat.com>
2177
2178 * common/common-defs.h: Include common-exceptions.h.
2179 * exceptions.h: Do not include common-exceptions.h.
2180
2181 2014-10-08 Gary Benson <gbenson@redhat.com>
2182
2183 * common/common-defs.h: Include cleanups.h.
2184 * common/common-exceptions.c: Do not include cleanups.h.
2185 * utils.h: Likewise.
2186
2187 2014-10-08 Gary Benson <gbenson@redhat.com>
2188
2189 * ada-lang.c: Do not include exceptions.h.
2190 * ada-valprint.c: Likewise.
2191 * amd64-tdep.c: Likewise.
2192 * auto-load.c: Likewise.
2193 * block.c: Likewise.
2194 * break-catch-throw.c: Likewise.
2195 * breakpoint.c: Likewise.
2196 * btrace.c: Likewise.
2197 * c-lang.c: Likewise.
2198 * cli/cli-cmds.c: Likewise.
2199 * cli/cli-interp.c: Likewise.
2200 * cli/cli-script.c: Likewise.
2201 * completer.c: Likewise.
2202 * corefile.c: Likewise.
2203 * corelow.c: Likewise.
2204 * cp-abi.c: Likewise.
2205 * cp-support.c: Likewise.
2206 * cp-valprint.c: Likewise.
2207 * darwin-nat.c: Likewise.
2208 * dwarf2-frame-tailcall.c: Likewise.
2209 * dwarf2-frame.c: Likewise.
2210 * dwarf2loc.c: Likewise.
2211 * dwarf2read.c: Likewise.
2212 * eval.c: Likewise.
2213 * event-loop.c: Likewise.
2214 * event-top.c: Likewise.
2215 * f-valprint.c: Likewise.
2216 * frame-unwind.c: Likewise.
2217 * frame.c: Likewise.
2218 * gdbtypes.c: Likewise.
2219 * gnu-v2-abi.c: Likewise.
2220 * gnu-v3-abi.c: Likewise.
2221 * guile/scm-auto-load.c: Likewise.
2222 * guile/scm-breakpoint.c: Likewise.
2223 * guile/scm-cmd.c: Likewise.
2224 * guile/scm-frame.c: Likewise.
2225 * guile/scm-lazy-string.c: Likewise.
2226 * guile/scm-param.c: Likewise.
2227 * guile/scm-symbol.c: Likewise.
2228 * guile/scm-type.c: Likewise.
2229 * hppa-hpux-tdep.c: Likewise.
2230 * i386-tdep.c: Likewise.
2231 * inf-loop.c: Likewise.
2232 * infcall.c: Likewise.
2233 * infcmd.c: Likewise.
2234 * infrun.c: Likewise.
2235 * interps.c: Likewise.
2236 * interps.h: Likewise.
2237 * jit.c: Likewise.
2238 * linespec.c: Likewise.
2239 * linux-nat.c: Likewise.
2240 * linux-thread-db.c: Likewise.
2241 * m32r-rom.c: Likewise.
2242 * main.c: Likewise.
2243 * memory-map.c: Likewise.
2244 * mi/mi-cmd-break.c: Likewise.
2245 * mi/mi-cmd-stack.c: Likewise.
2246 * mi/mi-interp.c: Likewise.
2247 * mi/mi-main.c: Likewise.
2248 * monitor.c: Likewise.
2249 * nto-procfs.c: Likewise.
2250 * objc-lang.c: Likewise.
2251 * p-valprint.c: Likewise.
2252 * parse.c: Likewise.
2253 * ppc-linux-tdep.c: Likewise.
2254 * printcmd.c: Likewise.
2255 * probe.c: Likewise.
2256 * python/py-auto-load.c: Likewise.
2257 * python/py-breakpoint.c: Likewise.
2258 * python/py-cmd.c: Likewise.
2259 * python/py-finishbreakpoint.c: Likewise.
2260 * python/py-frame.c: Likewise.
2261 * python/py-framefilter.c: Likewise.
2262 * python/py-function.c: Likewise.
2263 * python/py-gdb-readline.c: Likewise.
2264 * python/py-inferior.c: Likewise.
2265 * python/py-infthread.c: Likewise.
2266 * python/py-lazy-string.c: Likewise.
2267 * python/py-linetable.c: Likewise.
2268 * python/py-param.c: Likewise.
2269 * python/py-prettyprint.c: Likewise.
2270 * python/py-symbol.c: Likewise.
2271 * python/py-type.c: Likewise.
2272 * python/py-value.c: Likewise.
2273 * python/python-internal.h: Likewise.
2274 * python/python.c: Likewise.
2275 * record-btrace.c: Likewise.
2276 * record-full.c: Likewise.
2277 * regcache.c: Likewise.
2278 * remote-fileio.c: Likewise.
2279 * remote-mips.c: Likewise.
2280 * remote.c: Likewise.
2281 * rs6000-aix-tdep.c: Likewise.
2282 * rs6000-nat.c: Likewise.
2283 * skip.c: Likewise.
2284 * solib-darwin.c: Likewise.
2285 * solib-dsbt.c: Likewise.
2286 * solib-frv.c: Likewise.
2287 * solib-ia64-hpux.c: Likewise.
2288 * solib-spu.c: Likewise.
2289 * solib-svr4.c: Likewise.
2290 * solib.c: Likewise.
2291 * spu-tdep.c: Likewise.
2292 * stack.c: Likewise.
2293 * stap-probe.c: Likewise.
2294 * symfile-mem.c: Likewise.
2295 * symmisc.c: Likewise.
2296 * target.c: Likewise.
2297 * thread.c: Likewise.
2298 * top.c: Likewise.
2299 * tracepoint.c: Likewise.
2300 * tui/tui-interp.c: Likewise.
2301 * typeprint.c: Likewise.
2302 * utils.c: Likewise.
2303 * valarith.c: Likewise.
2304 * valops.c: Likewise.
2305 * valprint.c: Likewise.
2306 * value.c: Likewise.
2307 * varobj.c: Likewise.
2308 * windows-nat.c: Likewise.
2309 * xml-support.c: Likewise.
2310
2311 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2312
2313 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2314 name implies.
2315 (extended_mips16_next_pc): Update accordingly.
2316
2317 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2318
2319 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2320 function.
2321 (micromips_instruction_is_compact_branch): Likewise.
2322 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2323 or a compact jump, reaching a jump delay slot, or seeing a
2324 second non-prologue instruction.
2325 (micromips_scan_prologue): Also terminate scanning upon seeing a
2326 compact branch or jump, or reaching a branch or jump delay slot.
2327 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2328 or jump delay slot, or seeing a second non-prologue instruction.
2329 (mips32_instruction_has_delay_slot): Retain instruction
2330 examination code only, update arguments accordingly and move
2331 instruction fetch pieces to...
2332 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2333 (micromips_instruction_has_delay_slot): Likewise and to...
2334 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2335 (mips16_instruction_has_delay_slot): Likewise and to...
2336 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2337 (mips_single_step_through_delay): Update accordingly.
2338 (mips_adjust_breakpoint_address): Likewise.
2339
2340 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2341
2342 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2343 !mustbe32 also return 1 for 32-bit instructions.
2344 (mips16_instruction_has_delay_slot): Likewise. Add an
2345 explanatory comment.
2346
2347 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2348
2349 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2350 symbols special.
2351
2352 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2353
2354 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2355 update comments.
2356 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2357 for the breakpoint's address. Don't preinitialize `placed_size'.
2358 (insert_bp_location): Set `reqstd_address' rather than
2359 `placed_address'.
2360 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2361 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2362 address.
2363 (bkpt_remove_location): Likewise.
2364 (deprecated_insert_raw_breakpoint): Likewise.
2365 (deprecated_remove_raw_breakpoint): Likewise.
2366 (find_single_step_breakpoint): Likewise.
2367 * mem-break.c (default_memory_insert_breakpoint): Use
2368 `reqstd_address' for the breakpoint's address. Don't set
2369 `placed_address' or `placed_size' if breakpoint contents couldn't
2370 have been determined.
2371 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2372 the breakpoint's address.
2373 (remote_insert_hw_breakpoint): Likewise. Don't set
2374 `placed_address' or `placed_size' if breakpoint couldn't have been
2375 set.
2376 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2377 `reqstd_address' for the breakpoint's address.
2378 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2379 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2380 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2381 * microblaze-linux-tdep.c
2382 (microblaze_linux_memory_remove_breakpoint): Likewise.
2383 * monitor.c (monitor_insert_breakpoint): Likewise.
2384 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2385 (procfs_insert_hw_breakpoint): Likewise.
2386 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2387 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2388 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2389 * remote-mips.c (mips_insert_breakpoint): Likewise.
2390 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2391
2392 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2393
2394 * valops.c (value_assign): Check for bit field assignments
2395 before calling architecture-specific register value
2396 conversion functions.
2397
2398 2014-10-03 Pierre Muller <muller@sourceware.org>
2399
2400 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2401
2402 2014-10-02 Pedro Alves <palves@redhat.com>
2403
2404 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2405 threads_are_executing.
2406 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2407 describing comment.
2408 * gdbthread.h (threads_are_executing): Declare.
2409 (handle_signal_stop) <random signals>: Don't print about the
2410 signal here if stopping.
2411 (end_stepping_range): Don't notify observers here.
2412 (normal_stop): Update the thread list. If stopped by a random
2413 signal or a stepping range ended, notify observers.
2414 * thread.c (threads_executing): New global.
2415 (init_thread_list): Clear 'threads_executing'.
2416 (set_executing): Set or clear 'threads_executing'.
2417 (threads_are_executing): New function.
2418 (update_threads_executing): New function.
2419 (update_thread_list): Use it.
2420
2421 2014-10-02 Pedro Alves <palves@redhat.com>
2422
2423 PR breakpoints/17431
2424 * breakpoint.c (update_breakpoints_after_exec): Don't create
2425 overlay, longjmp, std terminate nor exception breakpoints here.
2426
2427 2014-10-02 Pedro Alves <palves@redhat.com>
2428
2429 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2430 Adjust comments.
2431 * inferior.c (find_inferior_for_program_space): Give preference to
2432 the current inferior.
2433 * inferior.h (find_inferior_for_program_space): Update comment.
2434 * progspace.c (switch_to_program_space_and_thread): Prefer the
2435 current inferior if it's bound to the program space requested. If
2436 the inferior found doesn't have a PID yet, don't bother looking up
2437 a thread.
2438 * progspace.h (switch_to_program_space_and_thread): Adjust
2439 comment.
2440 * thread.c (any_thread_of_process, any_live_thread_of_process):
2441 Give preference to the current thread.
2442
2443 2014-10-01 Pedro Alves <palves@redhat.com>
2444
2445 * breakpoint.c (insert_bp_location): Error out if inserting a
2446 software breakpoint at a read-only address.
2447 * target.c (memory_xfer_check_region): New function, factored out
2448 from ...
2449 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2450 ULONGEST.
2451 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2452 against the memory region attributes.
2453
2454 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2455
2456 * NEWS: Announce new exit-code field in -list-thread-groups
2457 output.
2458 * inferior.c (exit_inferior_1): Don't clear exit code.
2459 (inferior_appeared): Clear exit code.
2460 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2461 code.
2462
2463 2014-10-01 Pedro Alves <palves@redhat.com>
2464
2465 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2466 GENERATED" along with emacs/vi read-only markers.
2467 * regformats/aarch64.dat: Regenerate.
2468 * regformats/arm-with-iwmmxt.dat: Regenerate.
2469 * regformats/arm-with-neon.dat: Regenerate.
2470 * regformats/arm-with-vfpv2.dat: Regenerate.
2471 * regformats/arm-with-vfpv3.dat: Regenerate.
2472 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2473 * regformats/i386/amd64-avx.dat: Regenerate.
2474 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2475 * regformats/i386/amd64-avx512.dat: Regenerate.
2476 * regformats/i386/amd64-linux.dat: Regenerate.
2477 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2478 * regformats/i386/amd64-mpx.dat: Regenerate.
2479 * regformats/i386/amd64.dat: Regenerate.
2480 * regformats/i386/i386-avx-linux.dat: Regenerate.
2481 * regformats/i386/i386-avx.dat: Regenerate.
2482 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2483 * regformats/i386/i386-avx512.dat: Regenerate.
2484 * regformats/i386/i386-linux.dat: Regenerate.
2485 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2486 * regformats/i386/i386-mmx.dat: Regenerate.
2487 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2488 * regformats/i386/i386-mpx.dat: Regenerate.
2489 * regformats/i386/i386.dat: Regenerate.
2490 * regformats/i386/x32-avx-linux.dat: Regenerate.
2491 * regformats/i386/x32-avx.dat: Regenerate.
2492 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2493 * regformats/i386/x32-avx512.dat: Regenerate.
2494 * regformats/i386/x32-linux.dat: Regenerate.
2495 * regformats/i386/x32.dat: Regenerate.
2496 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2497 * regformats/mips-dsp-linux.dat: Regenerate.
2498 * regformats/mips-linux.dat: Regenerate.
2499 * regformats/mips64-dsp-linux.dat: Regenerate.
2500 * regformats/mips64-linux.dat: Regenerate.
2501 * regformats/nios2-linux.dat: Regenerate.
2502 * regformats/rs6000/powerpc-32.dat: Regenerate.
2503 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2504 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2505 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2506 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2507 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2508 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2509 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2510 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2511 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2512 * regformats/s390-linux32.dat: Regenerate.
2513 * regformats/s390-linux32v1.dat: Regenerate.
2514 * regformats/s390-linux32v2.dat: Regenerate.
2515 * regformats/s390-linux64.dat: Regenerate.
2516 * regformats/s390-linux64v1.dat: Regenerate.
2517 * regformats/s390-linux64v2.dat: Regenerate.
2518 * regformats/s390-te-linux64.dat: Regenerate.
2519 * regformats/s390x-linux64.dat: Regenerate.
2520 * regformats/s390x-linux64v1.dat: Regenerate.
2521 * regformats/s390x-linux64v2.dat: Regenerate.
2522 * regformats/s390x-te-linux64.dat: Regenerate.
2523 * regformats/tic6x-c62x-linux.dat: Regenerate.
2524 * regformats/tic6x-c62x.dat: Regenerate.
2525 * regformats/tic6x-c64x-linux.dat: Regenerate.
2526 * regformats/tic6x-c64x.dat: Regenerate.
2527 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2528 * regformats/tic6x-c64xp.dat: Regenerate.
2529
2530 2014-10-01 Pedro Alves <palves@redhat.com>
2531
2532 * features/Makefile: Update comments.
2533 (XMLTOC): List all xml files we build C files from.
2534 (clean-cfiles): New rule.
2535
2536 2014-10-01 Pedro Alves <palves@redhat.com>
2537
2538 * features/i386/amd64-avx512-linux.c: Regenerate.
2539 * features/i386/amd64-avx512.c: Regenerate.
2540 * features/i386/x32-avx512-linux.c: Regenerate.
2541 * features/i386/x32-avx512.c: Regenerate.
2542
2543 2014-10-01 Pedro Alves <palves@redhat.com>
2544
2545 * features/Makefile (WHICH): Remove arm-with-m,
2546 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2547
2548 2014-10-01 Pedro Alves <palves@redhat.com>
2549
2550 * features/Makefile (clean): New rule.
2551
2552 2014-10-01 Pedro Alves <palves@redhat.com>
2553
2554 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2555 (zmm14h): Add missing end quotes.
2556
2557 2014-10-01 Pedro Alves <palves@redhat.com>
2558
2559 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2560 * features/aarch64.c: Regenerate.
2561
2562 2014-09-30 Don Breazeal <donb@codesourcery.com>
2563
2564 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2565 code so as to work with follow_fork_inferior.
2566 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2567 (inf_ttrace_create_inferior): Remove reference to
2568 inf_ttrace_vfork_ppid.
2569 (inf_ttrace_attach): Ditto.
2570 (inf_ttrace_detach): Ditto.
2571 (inf_ttrace_kill): Use current_inferior instead of
2572 inf_ttrace_vfork_ppid.
2573 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2574 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2575 inferior away from the parent.
2576 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2577 target_follow_fork.
2578 (follow_fork_inferior): New function.
2579 (follow_inferior_reset_breakpoints): Make function static.
2580 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2581 * linux-nat.c (linux_child_follow_fork): Move target-independent
2582 code to infrun.c:follow_fork_inferior.
2583
2584 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2585
2586 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2587 * gdbarch.c: Regenerate.
2588 * gdbarch.h: Likewise.
2589 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2590 gdbarch method 'regset_from_core_section'.
2591 (get_core_register_section): Remove handling for the case that
2592 regset == NULL and regset_from_core_section is defined.
2593 (get_core_registers): Drop check for deleted method.
2594 * procfs.c (procfs_do_thread_registers): Adjust comment.
2595
2596 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2597
2598 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2599 (linux_nat_make_corefile_notes): Remove.
2600 (linux_target_install_ops): Do not set target method
2601 'make_corefile_notes'.
2602 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2603 Remove field.
2604 (linux_corefile_thread_callback): Instead of args->collect, call
2605 linux_collect_thread_registers.
2606 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2607 NULL unless there is a regset iterator.
2608 (linux_make_corefile_notes_1): Remove.
2609 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2610 by linux_make_corefile_notes.
2611 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2612
2613 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2614
2615 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2616 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2617 Remove.
2618 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2619
2620 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2621
2622 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2623 (xtensa_iterate_over_regset_sections): New.
2624 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2625
2626 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2627
2628 * vax-tdep.c (vax_regset_from_core_section): Remove.
2629 (vax_iterate_over_regset_sections): New.
2630 (vax_gdbarch_init): Adjust gdbarch initialization.
2631
2632 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2633
2634 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2635 (tilegx_regset_from_core_section): Remove.
2636 (tilegx_iterate_over_regset_sections): New.
2637 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2638
2639 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2640
2641 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2642 (sparc_iterate_over_regset_sections): New.
2643 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2644 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2645 targets.
2646 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2647 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2648 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2649 target method 'make_corefile_notes'.
2650
2651 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2652
2653 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2654 'sizeof_gregset' and 'sizeof_fpregset'.
2655 * sh-tdep.c (sh_regset_from_core_section): Remove.
2656 (sh_iterate_over_regset_sections): New.
2657 (sh_gdbarch_init): Adjust gdbarch initialization.
2658 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2659 sizeof_fpregset.
2660 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2661 'sizeof_gregset'.
2662
2663 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2664
2665 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2666 (score7_linux_iterate_over_regset_sections): New.
2667 (score_gdbarch_init): Adjust gdbarch initialization.
2668
2669 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2670
2671 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2672 FreeBSD targets.
2673 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2674 method 'make_corefile_notes'.
2675 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2676 (ppcfbsd_regset_from_core_section): Remove.
2677 (ppcfbsd_iterate_over_regset_sections): New.
2678 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2679 initialization.
2680 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2681 (ppcnbsd_iterate_over_regset_sections): New.
2682 (ppcnbsd_init_abi): Adjust.
2683 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2684 (ppcobsd_iterate_over_regset_sections): New.
2685 (ppcobsd_init_abi): Adjust.
2686 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2687 (rs6000_aix_iterate_over_regset_sections): New.
2688 (rs6000_aix_init_osabi): Adjust.
2689
2690 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2691
2692 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2693 (nios2_regset_from_core_section): Remove.
2694 (nios2_iterate_over_regset_sections): New.
2695 (nios2_linux_init_abi): Adjust gdbarch initialization.
2696
2697 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2698
2699 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2700 (am33_iterate_over_regset_sections): New.
2701 (am33_linux_init_osabi): Adjust gdbarch initialization.
2702
2703 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2704
2705 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2706 (mips_linux_iterate_over_regset_sections): New.
2707 (mips_linux_init_abi): Adjust gdbarch initialization.
2708 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2709 (mips64obsd_iterate_over_regset_sections): New.
2710 (mips64obsd_init_abi): Adjust.
2711 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2712 (mipsnbsd_iterate_over_regset_sections): New.
2713 (mipsnbsd_init_abi): Adjust.
2714
2715 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2716
2717 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2718 (m88k_iterate_over_regset_sections): New.
2719 (m88k_gdbarch_init): Adjust gdbarch initialization.
2720
2721 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2722
2723 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2724 (ia64_linux_iterate_over_regset_sections): New.
2725 (ia64_linux_init_abi): Adjust gdbarch initialization.
2726
2727 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2728
2729 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2730 (m68kbsd_iterate_over_regset_sections): New.
2731 (m68kbsd_init_abi): Adjust gdbarch initialization.
2732 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2733 (m68k_linux_iterate_over_regset_sections): New.
2734 (m68k_linux_init_abi): Adjust gdbarch initialization.
2735
2736 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2737
2738 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2739 (m32r_linux_regset_from_core_section): Remove.
2740 (m32r_linux_iterate_over_regset_sections): New.
2741 (m32r_linux_init_abi): Adjust gdbarch initialization.
2742
2743 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2744
2745 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2746 (amd64obsd_iterate_over_regset_sections): New.
2747 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2748 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2749 Remove.
2750 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2751 regset_from_core_section initialization.
2752 * i386-tdep.c (i386_regset_from_core_section): Remove.
2753 (i386_iterate_over_regset_sections): New.
2754 (i386_gdbarch_init): Adjust gdbarch initialization.
2755 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2756 (i386_iterate_over_regset_sections): New prototype.
2757 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2758 Remove.
2759 (i386obsd_aout_iterate_over_regset_sections): New.
2760 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2761 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2762 targets.
2763 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2764 (amd64fbsd_init_abi): Call fbsd_init_abi.
2765 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2766 (i386fbsd4_init_abi): Call fbsd_init_abi.
2767 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2768 target method 'make_corefile_notes'.
2769 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2770
2771 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2772
2773 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2774 (hppa_hpux_iterate_over_regset_sections): New.
2775 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2776 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2777 (hppa_linux_iterate_over_regset_sections): New.
2778 (hppa_linux_init_abi): Adjust.
2779 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2780 (hppanbsd_iterate_over_regset_sections): New.
2781 (hppanbsd_init_abi): Adjust.
2782 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2783 (hppaobsd_iterate_over_regset_sections): New.
2784 (hppaobsd_init_abi): Adjust.
2785
2786 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2787
2788 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2789 (frv_linux_iterate_over_regset_sections): New.
2790 (frv_linux_init_abi): Adjust gdbarch initialization.
2791
2792 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2793
2794 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2795 (armbsd_iterate_over_regset_sections): New prototype.
2796 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2797 (armbsd_iterate_over_regset_sections): New.
2798 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2799 initialization.
2800
2801 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2802
2803 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2804 (alpha_linux_iterate_over_regset_sections): New.
2805 (alpha_linux_init_abi): Adjust gdbarch initialization.
2806 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2807 prototype.
2808 (alphanbsd_iterate_over_regset_sections): New prototype.
2809
2810 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2811
2812 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2813 Remove.
2814 (aarch64_linux_iterate_over_regset_sections): New.
2815 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2816
2817 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2818
2819 * fbsd-tdep.c: New file.
2820 * fbsd-tdep.h: New file.
2821 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2822 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2823 (ALLDEPFILES): Add fbsd-tdep.c.
2824
2825 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2826
2827 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2828 parameter.
2829 * gdbarch.h: Regenerate.
2830 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2831 iterator.
2832 (get_core_register_section): Add parameter 'regset' and use it, if
2833 set. Add parameter 'min_size' and verify the bfd section size
2834 against it.
2835 (get_core_registers_cb): Add parameter 'regset' and pass it to
2836 get_core_register section. For the "standard" register sections
2837 ".reg" and ".reg2", set an appropriate default for human_name.
2838 (get_core_registers): Don't abort when the gdbarch has an iterator
2839 but no regset_from_core_section. Add NULL/0 for parameters
2840 'regset'/'min_size' in calls to get_core_register_section.
2841 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2842 'regset' and use it instead of calling the
2843 regset_from_core_section gdbarch method.
2844 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2845 * i386-tdep.c (i386_supply_xstateregset)
2846 (i386_collect_xstateregset, i386_xstateregset): Moved to
2847 i386-linux-tdep.c.
2848 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2849 .reg-xstate.
2850 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2851 core file support only if the regset iterator hasn't been set.
2852 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2853 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2854 Moved from i386-tdep.c and renamed to *_linux*.
2855 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2856 each callback invocation. Allow any .reg-xstate size when reading
2857 from a core file.
2858 * amd64-tdep.c (amd64_supply_xstateregset)
2859 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2860 amd64-linux-tdep.c.
2861 (amd64_regset_from_core_section): Remove.
2862 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2863 install an amd64-specific regset_from_core_section gdbarch method.
2864 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2865 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2866 Moved from amd64-tdep.c and renamed to *_linux*.
2867 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2868 to each callback invocation. Allow any .reg-xstate size when
2869 reading from a core file.
2870 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2871 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2872 each callback invocation.
2873 (arm_linux_init_abi): No longer set the regset_from_core_section
2874 gdbarch method.
2875 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2876 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2877 each callback invocation.
2878 (ppc_linux_init_abi): No longer set the regset_from_core_section
2879 gdbarch method.
2880 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2881 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2882 (s390_regset_from_core_section): Remove.
2883 (s390_iterate_over_regset_sections): Add regset parameter to each
2884 callback invocation.
2885 (s390_gdbarch_init): No longer set the regset_from_core_section
2886 gdbarch method. Drop initialization of deleted tdep fields.
2887
2888 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2889
2890 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2891 (amd64_linux_iterate_over_regset_sections): New.
2892 (amd64_linux_init_abi_common): Don't install the regset section
2893 list, but the new iterator in gdbarch.
2894 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2895 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2896 (arm_linux_iterate_over_regset_sections): ...here. New function.
2897 (arm_linux_init_abi): Set iterator instead of section list.
2898 * corelow.c (get_core_registers_cb): New function, logic moved
2899 from...
2900 (get_core_registers): ...loop body here. Use new iterator method
2901 instead of walking through the regset section list.
2902 * gdbarch.sh: Remove 'core_regset_sections'. New method
2903 'iterate_over_regset_sections'. New typedef
2904 'iterate_over_regset_sections_cb'.
2905 * gdbarch.c: Regenerate.
2906 * gdbarch.h: Likewise.
2907 * i386-linux-tdep.c (i386_linux_regset_sections)
2908 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2909 Remove.
2910 (i386_linux_iterate_over_regset_sections): New.
2911 (i386_linux_init_abi): Don't choose a regset section list, but
2912 install new iterator in gdbarch.
2913 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2914 (linux_collect_regset_section_cb): New function, logic moved
2915 from...
2916 (linux_collect_thread_registers): ...loop body here. Use iterator
2917 method instead of walking through list.
2918 (linux_make_corefile_notes_1): Check for presence of iterator
2919 method instead of regset section list.
2920 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2921 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2922 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2923 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2924 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2925 (ppc_linux_init_abi): Don't choose from above regset section
2926 lists, but install new iterator in gdbarch.
2927 * regset.h (struct core_regset_section): Remove.
2928 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2929 have_linux_v1, have_linux_v2, and have_tdb.
2930 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2931 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2932 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2933 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2934 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2935 (s390_iterate_over_regset_sections): ...here. New function. Use
2936 new tdep fields.
2937 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2938 regset section lists, but install new iterator.
2939
2940 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2941
2942 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2943
2944 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2945
2946 * progspace.c (print_program_space): Don't prune program spaces
2947 before printing them.
2948
2949 2014-09-25 Pedro Alves <palves@redhat.com>
2950
2951 * infrun.c (user_visible_resume_ptid): Don't check
2952 singlestep_breakpoints_inserted_p.
2953
2954 2014-09-25 Pedro Alves <palves@redhat.com>
2955
2956 * breakpoint.c (should_be_inserted): Add debug output.
2957
2958 2014-09-25 Pedro Alves <palves@redhat.com>
2959
2960 * infrun.c (stepping_past_instruction_at)
2961 (clear_exit_convenience_vars): Point at infrun.h instead of
2962 inferior.h.
2963 (handle_signal_stop): Fix typo.
2964
2965 2014-09-24 Yao Qi <yao@codesourcery.com>
2966
2967 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2968 bitmask.
2969
2970 2014-09-22 Gary Benson <gbenson@redhat.com>
2971
2972 * target.c (target_stop): Updated comment.
2973
2974 2014-09-22 Gary Benson <gbenson@redhat.com>
2975
2976 * target/target.h (target_stop_ptid): Renamed as...
2977 (target_stop_and_wait): New function. Updated comment.
2978 All uses updated.
2979 (target_continue_ptid): Renamed as...
2980 (target_continue_no_signal): New function. Updated comment.
2981 All uses updated.
2982
2983 2014-09-22 Pedro Alves <palves@redhat.com>
2984
2985 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2986 and "auto" merged.
2987 * breakpoint.c (enum ugll_insert_mode): New enum.
2988 (always_inserted_mode): Now a plain boolean.
2989 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2990 (breakpoints_always_inserted_mode): Delete.
2991 (breakpoints_should_be_inserted_now): New function.
2992 (insert_breakpoints): Pass UGLL_INSERT to
2993 update_global_location_list instead of calling
2994 insert_breakpoint_locations manually.
2995 (create_solib_event_breakpoint_1): New, factored out from ...
2996 (create_solib_event_breakpoint): ... this.
2997 (create_and_insert_solib_event_breakpoint): Use
2998 create_solib_event_breakpoint_1 instead of calling
2999 insert_breakpoint_locations manually.
3000 (update_global_location_list): Change parameter type from boolean
3001 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3002 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3003 (update_global_location_list_nothrow): Change parameter type from
3004 boolean to enum ugll_insert_mode.
3005 (_initialize_breakpoint): "breakpoint always-inserted" option is
3006 now a boolean command. Update help text.
3007 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3008 (breakpoints_should_be_inserted_now): New declaration.
3009 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3010 Remove breakpoints_always_inserted_mode check.
3011 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3012 * remote.c (remote_start_remote): Likewise.
3013
3014 2014-09-22 Pedro Alves <palves@redhat.com>
3015
3016 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3017 (insert_breakpoints): Don't call insert_breakpoint_locations here.
3018 Instead, pass UGLL_INSERT to update_global_location_list.
3019 (update_global_location_list): Change parameter type from boolean
3020 to enum ugll_insert_mode. All callers adjusted. Adjust to use
3021 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3022 (create_solib_event_breakpoint_1): New, factored out from ...
3023 (create_solib_event_breakpoint): ... this.
3024 (create_and_insert_solib_event_breakpoint): Use
3025 create_solib_event_breakpoint_1 instead of calling
3026 insert_breakpoint_locations manually.
3027 (update_global_location_list): Handle UGLL_INSERT.
3028
3029 2014-09-22 Pedro Alves <palves@redhat.com>
3030
3031 * breakpoint.c (enum ugll_insert_mode): New enum.
3032 (update_global_location_list)
3033 (update_global_location_list_nothrow): Change parameter type from
3034 boolean to enum ugll_insert_mode. All callers adjusted.
3035
3036 2014-09-19 Joel Brobecker <brobecker@adacore.com>
3037
3038 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3039 SystemTap support in GDB.
3040
3041 2014-09-19 Don Breazeal <donb@codesourcery.com>
3042
3043 * linux-nat.c (linux_handle_extended_wait): Call
3044 linux_ptrace_get_extended_event.
3045 (wait_lwp): Call linux_is_extended_waitstatus.
3046 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3047 and linux_is_extended_waitstatus.
3048 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3049 linux_ptrace_get_extended_event.
3050 (linux_ptrace_get_extended_event): New function.
3051 (linux_is_extended_waitstatus): New function.
3052 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3053 (linux_is_extended_waitstatus): New declarations.
3054
3055 2014-09-19 Yao Qi <yao@codesourcery.com>
3056
3057 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3058 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
3059 comments. Callers update.
3060 (dwarf_decode_lines): Likewise.
3061 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3062 comments. Skip the line table if 'lowpc' is greater than
3063 'address'. Don't check
3064 dwarf2_per_objfile->has_section_at_zero.
3065
3066 2014-09-18 Doug Evans <dje@google.com>
3067
3068 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3069 * python/py-symtab.c (stpy_get_producer): New function.
3070 (symtab_object_getset): Add "producer" attribute.
3071
3072 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
3073
3074 PR gdb/17384
3075 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3076 (do_captured_read_memory_integer): Remove.
3077 (safe_read_memory_integer): Use target_read_memory directly instead
3078 of catching errors in do_captured_read_memory_integer.
3079
3080 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3081
3082 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3083 not gdb/doc.
3084
3085 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3086
3087 * objc-lang.c (find_implementation_from_class): Remove dead code.
3088
3089 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3090
3091 PR cli/7233
3092 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3093 "fprintf_unfiltered (gdb_stdlog...)".
3094
3095 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3096
3097 PR breakpoints/12526
3098 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3099 val_bitsize.
3100 * breakpoint.c (watch_command_1): Use these fields to retain
3101 bitfield information.
3102 (extract_bitfield_from_watchpoint_value): New function.
3103 (watchpoint_check): Use it.
3104 (update_watchpoint): Use it. Optimize the address and length of a
3105 HW watchpoint pointing to a bitfield.
3106 * value.h (unpack_value_bitfield): New prototype.
3107 * value.c (unpack_value_bitfield): Make extern.
3108
3109 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3110
3111 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3112 x86-dregs.o.
3113 * gnu-nat.c (inf_threads): New function.
3114 * gnu-nat.h (inf_threads_ftype): New typedef.
3115 (inf_threads): New declaration.
3116 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3117 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3118 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3119 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3120 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3121 (i386_gnu_dr_get_control): New functions.
3122 (reg_addr): New structure.
3123 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3124 i386 debugging register hooks.
3125 * NEWS: Mention this.
3126
3127 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3128
3129 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3130 vector data transfer instructions.
3131 (arm_record_coproc_data_proc): Updated.
3132
3133 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3134
3135 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3136 arm_record_exreg_ld_st_insn.
3137 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3138 load/store insns.
3139
3140 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3141
3142 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3143 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3144 processing instructions.
3145
3146 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3147
3148 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3149 for advance SIMD struct ld/st insn.
3150 (thumb2_record_decode_insn_handler): Replace stub handler with
3151 thumb2_record_asimd_struct_ld_st.
3152
3153 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3154
3155 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3156 for asimd, vfp and coprocessor insns.
3157 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3158 and coprocessor insns.
3159 (thumb2_record_coproc_insn): New function.
3160 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3161 handlers.
3162 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3163 opcode 110 insns.
3164
3165 2014-09-13 Doug Evans <xdje42@gmail.com>
3166
3167 * NEWS: Mention new "queue-signal" command.
3168 * infcmd.c (queue_signal_command): New function.
3169 (_initialize_infcmd): Add new queue-signal command.
3170
3171 2014-09-13 Doug Evans <xdje42@gmail.com>
3172
3173 * linux-nat.c (wait_lwp): Add debugging printf.
3174 (linux_nat_wait_1): Ditto.
3175
3176 2014-09-12 Pedro Alves <palves@redhat.com>
3177
3178 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3179 (create_and_insert_solib_event_breakpoint): New functions.
3180 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3181 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3182 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3183 (remove_dbx_link_breakpoint): Delete function.
3184 (insert_dbx_link_bpt_in_file): Use
3185 create_and_insert_solib_event_breakpoint instead of
3186 deprecated_insert_raw_breakpoint.
3187 (procfs_wait): Don't check whether we hit __dbx_link here.
3188 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3189 here.
3190 * solib-irix.c (base_breakpoint): Delete global.
3191 (disable_break): Delete function.
3192 (enable_break): Use create_solib_event_breakpoint
3193 instead of deprecated_insert_raw_breakpoint.
3194 (irix_solib_handle_event): New function.
3195 (irix_solib_create_inferior_hook): Don't run the target or disable
3196 the mapping-complete breakpoint here.
3197 (_initialize_irix_solib): Install irix_solib_handle_event as
3198 so_ops->handle_event hook.
3199
3200 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3201 Ulrich Weigand  <uweigand@de.ibm.com>
3202
3203 PR tdep/17379
3204 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3205 instead of read_memory_unsigned_integer.
3206
3207 2014-09-12 Gary Benson <gbenson@redhat.com>
3208
3209 * nat/linux-waitpid.c: Include common-defs.h.
3210 [GDBSERVER]: Add FIXME comment.
3211 [!GDBSERVER]: Don't include defs.h or signal.h.
3212 (linux_debug) [!GDBSERVER]: Remove empty block.
3213
3214 2014-09-12 Gary Benson <gbenson@redhat.com>
3215
3216 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3217 Don't include defs.h or server.h.
3218
3219 2014-09-12 Gary Benson <gbenson@redhat.com>
3220
3221 * nat/linux-btrace.c: Include common-defs.h.
3222 Don't include defs.h, server.h or gdbthread.h.
3223 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3224
3225 2014-09-12 Gary Benson <gbenson@redhat.com>
3226
3227 * common/agent.c: Include common-defs.h.
3228 Don't include defs.h or server.h.
3229 * common/buffer.c: Likewise.
3230 * common/common-debug.c: Likewise.
3231 * common/common-utils.c: Likewise.
3232 * common/errors.c: Likewise.
3233 * common/filestuff.c: Likewise.
3234 * common/format.c: Likewise.
3235 * common/gdb_vecs.c: Likewise.
3236 * common/print-utils.c: Likewise.
3237 * common/ptid.c: Likewise.
3238 * common/rsp-low.c: Likewise.
3239 * common/signals.c: Likewise.
3240 * common/vec.c: Likewise.
3241 * common/xml-utils.c: Likewise.
3242 * nat/linux-osdata.c: Likewise.
3243 * nat/linux-procfs.c: Likewise.
3244 * nat/linux-ptrace.c: Likewise.
3245 * nat/mips-linux-watch.c: Likewise.
3246 * target/waitstatus.c: Likewise.
3247
3248 2014-09-12 Tom Tromey <tromey@redhat.com>
3249 Gary Benson <gbenson@redhat.com>
3250
3251 * common/common-regcache.h: New file.
3252 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3253 * regcache.h: Include common-regcache.h.
3254 (regcache_read_pc): Don't declare.
3255 * regcache.c (get_thread_regcache_for_ptid): New function.
3256 * nat/linux-btrace.c: Don't include regcache.h.
3257 Include common-regcache.h.
3258 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3259
3260 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3261
3262 * regcache.h (struct regset): Declare.
3263
3264 2014-09-11 Pedro Alves <palves@redhat.com>
3265
3266 PR gdb/17347
3267 * main.c: Include "infrun.h".
3268 (catch_command_errors, catch_command_errors_const): Wait for the
3269 foreground command to complete.
3270 * top.c (maybe_wait_sync_command_done): New function, factored out
3271 from ...
3272 (maybe_wait_sync_command_done): ... here.
3273 * top.h (maybe_wait_sync_command_done): New declaration.
3274
3275 2014-09-11 Tom Tromey <tromey@redhat.com>
3276 Gary Benson <gbenson@redhat.com>
3277
3278 * common/symbol.h: New file.
3279 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3280 * minsyms.c (find_minimal_symbol_address): New function.
3281 * common/agent.c: Include common/symbol.h.
3282 [!GDBSERVER]: Don't include objfiles.h.
3283 (agent_look_up_symbols): Use find_minimal_symbol_address.
3284
3285 2014-09-11 Gary Benson <gbenson@redhat.com>
3286
3287 * target/target.h (target_stop_ptid, target_continue_ptid):
3288 Declare.
3289 * target.c (target_stop_ptid, target_continue_ptid): New
3290 functions.
3291 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3292 (agent_run_command): Always use target_stop_ptid and
3293 target_continue_ptid.
3294
3295 2014-09-11 Tom Tromey <tromey@redhat.com>
3296 Gary Benson <gbenson@redhat.com>
3297
3298 * target/target.h: New file.
3299 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3300 * target.h: Include target/target.h.
3301 (target_read_memory, target_write_memory): Don't declare.
3302 * target.c (target_read_uint32): New function.
3303 * common/agent.c: Include target/target.h.
3304 [!GDBSERVER]: Don't include target.h.
3305 (helper_thread_id): Type changed to uint32_t.
3306 (agent_get_helper_thread_id): Use target_read_uint32.
3307 (agent_run_command): Always use target_read_memory and
3308 target_write_memory.
3309 (agent_capability): Type changed to uint32_t.
3310 (agent_capability_check): Use target_read_uint32.
3311
3312 2014-09-11 Gary Benson <gbenson@redhat.com>
3313
3314 * common/common-debug.h (show_debug_regs): Declare.
3315 * common/common-debug.c (show_debug_regs): Define.
3316 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3317 all uses with show_debug_regs. Replace all uses that considered
3318 debug_hw_points as a multi-value integer with straight boolean
3319 uses.
3320 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3321 with show_debug_regs.
3322 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3323 all uses with show_debug_regs.
3324 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3325 uses with show_debug_regs.
3326
3327 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3328
3329 * findvar.c (address_from_register): Handle targets requiring
3330 a special conversion routine even for plain pointer types.
3331
3332 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3333
3334 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3335 (store_register): Do not call exec_one_dummy_insn.
3336
3337 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3338
3339 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3340 dereference it first. Use value_enclosing_type instead of
3341 value_type.
3342 (ada_array_length): Likewise.
3343
3344 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3345
3346 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3347 Adjust function implementation and documentation accordingly.
3348 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3349 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3350 Update call to ada_value_ptr_subscript.
3351
3352 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3353
3354 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3355 instead of VAL's type.
3356
3357 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3358
3359 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3360
3361 2014-09-09 Doug Evans <xdje42@gmail.com>
3362
3363 PR guile/17367
3364 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3365 last parameter to pkg-config, not first.
3366 * configure.ac: Pass --with-guile provided pkg-config path to
3367 GDB_GUILE_PROGRAM_NAMES.
3368 * configure: Regenerate.
3369
3370 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3371
3372 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3373 Bertazi".
3374
3375 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3376
3377 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3378 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3379 the list of sections determining GDB_OSABI_IRIX.
3380
3381 2014-09-09 James Hogan <james.hogan@imgtec.com>
3382
3383 * MAINTAINERS (Write After Approval): Add "James Hogan".
3384
3385 2014-09-09 James Hogan <james.hogan@imgtec.com>
3386
3387 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3388
3389 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3390
3391 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3392
3393 2014-09-08 Doug Evans <xdje42@gmail.com>
3394
3395 PR 17247
3396 * guile.c: #include <signal.h>.
3397 (_initialize_guile): Block SIGCHLD while initializing Guile.
3398
3399 Replaces the following, which is reverted.
3400
3401 2014-07-26 Doug Evans <xdje42@gmail.com>
3402
3403 PR 17185
3404 * configure.ac: Add check for header gc/gc.h.
3405 Add check for function setenv.
3406 * configure: Regenerate.
3407 * config.in: Regenerate.
3408 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3409
3410 2014-09-08 Doug Evans <xdje42@gmail.com>
3411
3412 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3413 with named constant. Fix style of pointer comparison.
3414 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3415
3416 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3417
3418 PR gdb/17035
3419 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3420 decide whether we display the command on "show user".
3421 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3422 printing command name.
3423 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3424 * cli/cli-decode.c (cli_user_command_p): Create helper function
3425 to verify whether cmd_list_element is a user-defined command.
3426
3427 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3428
3429 PR python/17355
3430 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3431 Fix goto out of TRY_CATCH.
3432
3433 2014-09-06 Doug Evans <xdje42@gmail.com>
3434 Tom Tromey <tromey@redhat.com>
3435
3436 PR 15276
3437 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3438 $_any_caller_matches.
3439 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3440 * python/lib/gdb/function/caller_is.py: New file.
3441
3442 2014-09-06 Doug Evans <xdje42@gmail.com>
3443
3444 * infcmd.c (program_info): Fix typo.
3445
3446 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3447
3448 PR gdb/17235
3449 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3450 'number'. New variable 'has_digit'. Rewrite code to deal with
3451 subexpressions on SDT probes.
3452
3453 2014-09-04 Pedro Alves <palves@redhat.com>
3454
3455 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3456 the input is only one character long.
3457
3458 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3459
3460 PR fortran/17237
3461 * f-valprint.c (f_val_print): Specify the correct print option to
3462 use when printing integer values.
3463
3464 2014-09-04 Gary Benson <gbenson@redhat.com>
3465
3466 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3467 Remove code to cope with LWPs wrapped as PIDs.
3468 Add assertions to ensure no wrapped LWPs are passed.
3469
3470 2014-09-04 Pedro Alves <palves@redhat.com>
3471
3472 * value.c (value_ranges_copy_adjusted): New function, factored out
3473 from ...
3474 (value_contents_copy_raw): ... here.
3475 (unpack_value_bits_as_long_1): Rename back to ...
3476 (unpack_bits_as_long): ... this. Remove 'original_value' and
3477 'result' parameters. Change return type to LONGEST.
3478 (unpack_value_bits_as_long): Delete.
3479 (unpack_value_field_as_long_1): Delete.
3480 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3481 (unpack_value_bitfield): New function.
3482 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3483 (value_fetch_lazy): Use unpack_value_bitfield.
3484 * value.h (unpack_value_bits_as_long): Delete declaration.
3485
3486 2014-09-03 Sasha Smundak <asmundak@google.com>
3487
3488 * python/py-frame.c (frapy_read_register): New function.
3489
3490 2014-09-03 James Hogan <james.hogan@imgtec.com>
3491
3492 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3493 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3494
3495 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3496
3497 PR python/16699
3498 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3499 function.
3500 (add_cmd): Set "completer_handle_brkchars" to NULL.
3501 * cli/cli-decode.h (struct cmd_list_element)
3502 <completer_handle_brkchars>: New field.
3503 * command.h (completer_ftype_void): New typedef.
3504 (set_cmd_completer_handle_brkchars): New prototype.
3505 * completer.c (set_gdb_completion_word_break_characters): New
3506 function.
3507 (complete_line_internal): Call "completer_handle_brkchars"
3508 callback from command.
3509 * completer.h: Include "command.h".
3510 (set_gdb_completion_word_break_characters): New prototype.
3511 * python/py-cmd.c (cmdpy_completer_helper): New function.
3512 (cmdpy_completer_handle_brkchars): New function.
3513 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3514 (cmdpy_init): Set completer_handle_brkchars to
3515 cmdpy_completer_handle_brkchars.
3516
3517 2014-09-03 Gary Benson <gbenson@redhat.com>
3518
3519 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3520 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3521 Loop conditions changed to equivalent form.
3522 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3523 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3524 ALL_DEBUG_ADDRESS_REGISTERS.
3525
3526 2014-09-03 Joel Brobecker <brobecker@adacore.com>
3527
3528 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3529 description fix.
3530
3531 2014-09-02 Doug Evans <dje@google.com>
3532
3533 * typeprint.c (find_global_typedef): Fix comment.
3534
3535 2014-09-02 Gary Benson <gbenson@redhat.com>
3536
3537 * i386-nat.h: Renamed as...
3538 * x86-nat.h: New file. All type, function and variable name
3539 prefixes changed from "i386_" to "x86_". All references updated.
3540 * i386-nat.c: Renamed as...
3541 * x86-nat.c: New file. All type, function and variable name
3542 prefixes changed from "i386_" to "x86_". All references updated.
3543 * common/i386-xstate.h: Renamed as...
3544 * common/x86-xstate.h: New file. All type, function and variable
3545 name prefixes changed from "i386_" to "x86_". All references
3546 updated.
3547 * nat/i386-cpuid.h: Renamed as...
3548 * nat/x86-cpuid.h: New file. All type, function and variable name
3549 prefixes changed from "i386_" to "x86_". All references updated.
3550 * nat/i386-gcc-cpuid.h: Renamed as...
3551 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3552 name prefixes changed from "i386_" to "x86_". All references
3553 updated.
3554 * nat/i386-dregs.h: Renamed as...
3555 * nat/x86-dregs.h: New file. All type, function and variable name
3556 prefixes changed from "i386_" to "x86_". All references updated.
3557 * nat/i386-dregs.c: Renamed as...
3558 * nat/x86-dregs.c: New file. All type, function and variable name
3559 prefixes changed from "i386_" to "x86_". All references updated.
3560
3561 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3562
3563 * varobj.c (_initialize_varobj): Move to the end of file.
3564
3565 2014-08-29 Gary Benson <gbenson@redhat.com>
3566
3567 * common/common-exceptions.h: New file.
3568 * common/common-exceptions.c: Likewise.
3569 * Makefile.in (SFILES): Add common/common-exceptions.c.
3570 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3571 (COMMON_OBS): Add common-exceptions.o.
3572 (common-exceptions.o): New rule.
3573 * exceptions.h (common-exceptions.h): Include.
3574 (gdb_setjmp.h): Do not include.
3575 (return_reason): Moved to common-exceptions.h.
3576 (enum return_reason): Likewise.
3577 (RETURN_MASK): Likewise.
3578 (typedef return_mask): Likewise.
3579 (enum errors): Likewise.
3580 (struct gdb_exception): Likewise.
3581 (exceptions_state_mc_init): Likewise.
3582 (exceptions_state_mc_action_iter): Likewise.
3583 (exceptions_state_mc_action_iter_1): Likewise.
3584 (TRY_CATCH): Likewise.
3585 (throw_exception): Likewise.
3586 (throw_verror): Likewise.
3587 (throw_vquit): Likewise.
3588 (throw_error): Likewise.
3589 (throw_quit): Likewise.
3590 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3591 (enum catcher_action): Likewise.
3592 (struct catcher): Likewise.
3593 (current_catcher): Likewise.
3594 (catcher_list_size): Likewise.
3595 (exceptions_state_mc_init): Likewise.
3596 (catcher_pop): Likewise.
3597 (exceptions_state_mc): Likewise.
3598 (exceptions_state_mc_action_iter): Likewise.
3599 (exceptions_state_mc_action_iter_1): Likewise.
3600 (throw_exception): Likewise.
3601 (exception_messages): Likewise.
3602 (exception_messages_size): Likewise.
3603 (throw_it): Likewise.
3604 (throw_verror): Likewise.
3605 (throw_vquit): Likewise.
3606 (throw_error): Likewise.
3607 (throw_quit): Likewise.
3608 (prepare_to_throw_exception): New function.
3609
3610 2014-08-29 Gary Benson <gbenson@redhat.com>
3611
3612 * common/gdb_setjmp.h: New file.
3613 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3614 * configure.ac: Move sigsetjmp check...
3615 * common/common.m4: ...here.
3616 * configure: Regenerate.
3617 * cp-support.c (SIGJMP_BUF): Delete.
3618 (SIGSETJMP): Likewise.
3619 (SIGLONGJMP): Likewise.
3620 * exceptions.h (gdb_setjmp.h): Include.
3621 (setjmp.h): Do not include.
3622 (EXCEPTIONS_SIGJMP_BUF): Delete.
3623 (EXCEPTIONS_SIGSETJMP): Likewise.
3624 (EXCEPTIONS_SIGLONGJMP): Likewise.
3625 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3626 from gdb_setjmp.h.
3627 * exceptions.c: Likewise.
3628
3629 2014-08-29 Gary Benson <gbenson@redhat.com>
3630
3631 * cleanups.h: Moved to...
3632 * common/cleanups.h: New file.
3633 * cleanups.c: Moved to...
3634 * common/cleanups.c: New file. Include common-defs.h and
3635 cleanups.h. Do not include defs.h.
3636 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3637 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3638 (cleanups.o): New rule.
3639
3640 2014-08-29 Gary Benson <gbenson@redhat.com>
3641
3642 * common/errors.h (internal_warning): New declaration.
3643 (internal_vwarning): Likewise.
3644 * common/errors.c (internal_warning): New function.
3645 * utils.h (internal_warning): Don't declare.
3646 (internal_vwarning): Likewise.
3647 * utils.c (internal_warning): Removed.
3648
3649 2014-08-29 Gary Benson <gbenson@redhat.com>
3650
3651 * main.c (captured_main): Use warning during startup.
3652 Prefix startup warning messages with command name.
3653
3654 2014-08-29 Gary Benson <gbenson@redhat.com>
3655
3656 * main.c (captured_main): Handle usage errors with error.
3657
3658 2014-08-29 Gary Benson <gbenson@redhat.com>
3659
3660 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3661 exit pair with a call to error. Wrap the message with _().
3662
3663 2014-08-29 Gary Benson <gbenson@redhat.com>
3664
3665 * main.c (captured_main): Replace a fprintf/exit
3666 pair with a call to error. Wrap the message with _().
3667
3668 2014-08-29 Gary Benson <gbenson@redhat.com>
3669
3670 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3671 pairs with calls to error. Wrap the message with _().
3672
3673 2014-08-29 Gary Benson <gbenson@redhat.com>
3674
3675 * utils.c (vwarning): Protect calls to target_terminal_ours
3676 and wrap_here.
3677
3678 2014-08-29 Gary Benson <gbenson@redhat.com>
3679
3680 * exceptions.c (print_flush): Protect calls to
3681 target_terminal_ours and wrap_here.
3682
3683 2014-08-29 Gary Benson <gbenson@redhat.com>
3684
3685 * utils.h (filtered_printing_initialized): New declaration.
3686 * utils.c (abort_with_message): New function.
3687 (internal_vproblem): Use abort_with_message for first level
3688 recursive internal problems, and if gdb_stderr is not set up.
3689 Protect calls to target_terminal_ours, begin_line and query.
3690
3691 2014-08-28 Doug Evans <dje@google.com>
3692
3693 * symtab.c (in_prologue): Move definition to better spot.
3694 (skip_prologue_using_sal): Ditto.
3695
3696 2014-08-28 Doug Evans <dje@google.com>
3697
3698 * symtab.c (find_function_start_sal): Move definition to better spot.
3699
3700 2014-08-28 Yao Qi <yao@codesourcery.com>
3701
3702 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3703 found_stack_adjust in forward scan. Remove condition check
3704 on found_stack_adjust which is always true. Indent the code.
3705
3706 2014-08-28 Yao Qi <yao@codesourcery.com>
3707
3708 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3709 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3710 (dwarf_decode_lines): Remove argument
3711 want_line_info. Remove condition check on want_line_info.
3712 Callers update.
3713
3714 2014-08-27 Doug Evans <dje@google.com>
3715
3716 * dwarf2read.c (dwarf_record_line): Fix typo.
3717
3718 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3719
3720 * target.h (struct target_ops::to_terminal_save_ours): Remove
3721 declaration.
3722 (target_terminal_save_ours): Remove macro.
3723 * target-delegates.c: Regenerate.
3724 * inf-child.c (inf_child_target): Don't set the nonexistent
3725 field to_terminal_save_ours.
3726 * inferior.h (child_terminal_save_ours): Remove declaration.
3727 * terminal.h (gdb_save_tty_state): New declaration.
3728 * inflow.c (child_terminal_save_ours): Rename to ...
3729 (gdb_save_tty_state): ... this.
3730 * tui/tui.c: Include terminal.h.
3731 (tui_enable): Use gdb_save_tty_state instead of
3732 target_terminal_save_ours.
3733 (tui_disable): Likewise.
3734
3735 2014-08-25 Doug Evans <dje@google.com>
3736
3737 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3738 Pass NULL instead of 0 for context pointer.
3739
3740 2014-08-25 Yao Qi <yao@codesourcery.com>
3741
3742 * dwarf2read.c: Fix grammatical error.
3743
3744 2014-08-24 Yao Qi <yao@codesourcery.com>
3745
3746 * dwarf2read.c (scan_partial_symbols): Update comments.
3747 Rename argument 'need_pc' with 'set_addrmap'.
3748 (add_partial_namespace): Rename argument 'need_pc' with
3749 'set_addrmap'.
3750 (add_partial_module): Likewise.
3751 (add_partial_subprogram): Likewise. Update comments.
3752 (dwarf2_name): Fix typo.
3753
3754 2014-08-22 Doug Evans <dje@google.com>
3755
3756 PR 17276
3757 * dwarf2read.c (dwarf_record_line_p): New function.
3758 (dwarf_decode_lines_1): Ignore subsequent line number entries
3759 for the same line if any entry had a non-zero discriminator.
3760
3761 2014-08-22 Doug Evans <dje@google.com>
3762
3763 * buildsym.h (record_line_ftype): New typedef.
3764 (record_line): Use it.
3765 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3766 (dwarf_decode_lines_1): Call them.
3767
3768 2014-08-22 Yao Qi <yao@codesourcery.com>
3769
3770 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3771 (ctf_end): Remove code.
3772
3773 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3774
3775 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3776 (linux_make_corefile_notes): call update_thread_list, protected against
3777 exceptions.
3778
3779 2014-08-21 Pedro Alves <palves@redhat.com>
3780
3781 * infcmd.c (attach_command): Remove comment.
3782
3783 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3784
3785 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3786 unsigned LONGEST to ULONGEST.
3787
3788 2014-08-20 Pedro Alves <palves@redhat.com>
3789
3790 * Makefile.in (check-read1): New rule.
3791
3792 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3793
3794 * value.c (value_from_contents_and_address): Strip resolved_type's
3795 typedef layers before checking its TYPE_DATA_LOCATION.
3796
3797 2014-08-20 Pedro Alves <palves@redhat.com>
3798
3799 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3800
3801 2014-08-20 Yao Qi <yao@codesourcery.com>
3802
3803 * amd64-tdep.c (amd64_classify): Add a blank line after the
3804 example. Move "*/" to a new line.
3805 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3806 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3807 * dwarf2read.c (psymtab_include_file_name): Likewise.
3808
3809 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3810 Pedro Alves <palves@redhat.com>
3811
3812 PR symtab/14604
3813 PR symtab/14605
3814 * ada-lang.c (coerce_unspec_val_to_type): Use
3815 value_contents_copy_raw.
3816 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3817 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3818 * cp-valprint.c (cp_print_value_fields): Let the common printing
3819 code handle optimized out values.
3820 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3821 * d-valprint.c (dynamic_array_type): Use
3822 value_bits_any_optimized_out.
3823 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3824 check_any_valid fields.
3825 (check_pieced_value_bits): Delete and inline ...
3826 (check_pieced_synthetic_pointer): ... here.
3827 (check_pieced_value_validity): Delete.
3828 (check_pieced_value_invalid): Delete.
3829 (pieced_value_funcs): Remove check_validity and check_any_valid
3830 fields.
3831 (read_pieced_value): Use mark_value_bits_optimized_out.
3832 (write_pieced_value): Switch to use
3833 mark_value_bytes_optimized_out.
3834 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3835 of assuming the whole value is optimized out.
3836 * findvar.c (read_frame_register_value): Remove special handling
3837 of optimized out registers.
3838 (value_from_register): Use mark_value_bytes_optimized_out.
3839 * frame-unwind.c (frame_unwind_got_optimized): Use
3840 mark_value_bytes_optimized_out.
3841 * jv-valprint.c (java_value_print): Adjust.
3842 (java_print_value_fields): Let the common printing code handle
3843 optimized out values.
3844 * mips-tdep.c (mips_print_register): Remove special handling of
3845 optimized out registers.
3846 * opencl-lang.c (lval_func_check_validity): Delete.
3847 (lval_func_check_any_valid): Delete.
3848 (opencl_value_funcs): Remove check_validity and check_any_valid
3849 fields.
3850 * p-valprint.c (pascal_object_print_value_fields): Let the common
3851 printing code handle optimized out values.
3852 * stack.c (read_frame_arg): Remove special handling of optimized
3853 out values. Fetch both VAL and ENTRYVAL before comparing
3854 contents. Adjust to value_available_contents_eq rename.
3855 * valprint.c (valprint_check_validity)
3856 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3857 (val_print_array_elements): Adjust.
3858 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3859 (value_bits_any_optimized_out): New function.
3860 (value_entirely_covered_by_range_vector): New function, factored
3861 out from value_entirely_unavailable.
3862 (value_entirely_unavailable): Reimplement.
3863 (value_entirely_optimized_out): New function.
3864 (insert_into_bit_range_vector): New function, factored out from
3865 mark_value_bits_unavailable.
3866 (mark_value_bits_unavailable): Reimplement.
3867 (struct ranges_and_idx): New struct.
3868 (find_first_range_overlap_and_match): New function, factored out
3869 from value_available_contents_bits_eq.
3870 (value_available_contents_bits_eq): Rename to ...
3871 (value_contents_bits_eq): ... this. Check both unavailable
3872 contents and optimized out contents.
3873 (value_available_contents_eq): Rename to ...
3874 (value_contents_eq): ... this.
3875 (allocate_value_lazy): Remove reference to the old optimized_out
3876 boolean.
3877 (allocate_optimized_out_value): Use
3878 mark_value_bytes_optimized_out.
3879 (require_not_optimized_out): Adjust to check whether the
3880 optimized_out vec is empty.
3881 (ranges_copy_adjusted): New function, factored out from
3882 value_contents_copy_raw.
3883 (value_contents_copy_raw): Also copy the optimized out ranges.
3884 Assert the destination ranges aren't optimized out.
3885 (value_contents_copy): Update comment, remove call to
3886 require_not_optimized_out.
3887 (value_contents_equal): Adjust to check whether the optimized_out
3888 vec is empty.
3889 (set_value_optimized_out, value_optimized_out_const): Delete.
3890 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3891 New functions.
3892 (value_entirely_optimized_out, value_bits_valid): Delete.
3893 (value_copy): Take a VEC copy of the 'optimized_out' field.
3894 (value_primitive_field): Remove special handling of optimized out.
3895 (value_fetch_lazy): Assert that lazy values have no unavailable
3896 regions. Use value_bits_any_optimized_out. Remove some special
3897 handling for optimized out values.
3898 * value.h: Add intro comment about <optimized out> and
3899 <unavailable>.
3900 (struct lval_funcs): Remove check_validity and check_any_valid
3901 fields.
3902 (set_value_optimized_out, value_optimized_out_const): Remove.
3903 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3904 New declarations.
3905 (value_bits_any_optimized_out): New declaration.
3906 (value_bits_valid): Delete declaration.
3907 (value_available_contents_eq): Rename to ...
3908 (value_contents_eq): ... this, and extend comments.
3909
3910 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3911
3912 Fix -fsanitize=address on unreadable inferior strings.
3913 * valprint.c (val_print_string): Fix access before BUFFER.
3914
3915 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3916
3917 * target.c (target_struct_size): Remove.
3918 (target_struct_allocsize): Remove.
3919 (DEFAULT_ALLOCSIZE): Remove.
3920 (target_ops_p): New typedef.
3921 (DEF_VEC_P (target_ops_p)): New vector type.
3922 (target_structs): Change type to VEC (target_ops_p).
3923 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3924 (find_default_run_target): Rewrite for loop following changes to
3925 target_structs.
3926
3927 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3928
3929 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3930 Adjust code accordingly. Adjust function description comment.
3931
3932 2014-08-19 Yao Qi <yao@codesourcery.com>
3933
3934 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3935 types.
3936
3937 2014-08-19 Alan Modra <amodra@gmail.com>
3938
3939 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3940 * config.in: Regenerate.
3941 * configure: Regenerate.
3942
3943 2014-08-19 Tom Tromey <tromey@redhat.com>
3944 Gary Benson <gbenson@redhat.com>
3945
3946 * common/common-debug.h: New file.
3947 * common/common-debug.c: Likewise.
3948 * debug.c: Likewise.
3949 * Makefile.in (SFILES): Add common/common-debug.c.
3950 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3951 (COMMON_OBS): Add common-debug.o and debug.o.
3952 (common-debug.o): New rule.
3953 * common/common-defs.h: Include common-debug.h.
3954 * common/agent.c (debug_agent_printf): New function.
3955 (DEBUG_AGENT): Redefine.
3956 * nat/i386-dregs.c (debug_printf): Undefine.
3957
3958 2014-08-19 Gary Benson <gbenson@redhat.com>
3959
3960 * common/common-defs.h: Include print-utils.h.
3961 * utils.h: Do not include print-utils.h.
3962
3963 2014-08-19 Tom Tromey <tromey@redhat.com>
3964 Gary Benson <gbenson@redhat.com>
3965
3966 * common/common-types.h: New file.
3967 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3968 * common/common-defs.h: Include common-types.h.
3969 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3970 (ULONGEST): Remove.
3971
3972 2014-08-19 Tom Tromey <tromey@redhat.com>
3973 Gary Benson <gbenson@redhat.com>
3974
3975 * common/errors.h: New file.
3976 * common/errors.c: Likewise.
3977 * Makefile.in (SFILES): Add common/errors.c.
3978 (HFILES_NO_SRCDIR): Add common/errors.h.
3979 (COMMON_OBS): Add errors.o.
3980 (errors.o): New rule.
3981 * common/common-defs.h: Include errors.h.
3982 * utils.h (perror_with_name, error, verror, warning, vwarning):
3983 Don't declare.
3984 * common/common-utils.h: (malloc_failure, internal_error):
3985 Likewise.
3986
3987 2014-08-19 Gary Benson <gbenson@redhat.com>
3988
3989 * utils.c (internal_vproblem): Always print the message.
3990
3991 2014-08-18 Doug Evans <dje@google.com>
3992
3993 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3994
3995 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3996
3997 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3998 Return 0 if TYPE is dynamic.
3999 (print_range): Add handling of dynamic ranges.
4000
4001 2014-08-18 Keven Boell <keven.boell@intel.com>
4002 Joel Brobecker <brobecker@adacore.com>
4003
4004 * gdbtypes.h (struct main_type): Add field "data_location".
4005 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4006 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4007 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4008 a dynamic data location.
4009 (resolve_dynamic_type): Add DW_AT_data_location handling.
4010 (copy_recursive, copy_type): Copy the data_location information
4011 when present.
4012 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4013 * value.c (value_from_contents_and_address): Add
4014 DW_AT_data_location handling.
4015
4016 2014-08-18 Keven Boell <keven.boell@intel.com>
4017 Joel Brobecker <brobecker@adacore.com>
4018
4019 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4020 field "get_object_address".
4021 * dwarf2expr.c (execute_stack_op): Add handling for
4022 DW_OP_push_object_address.
4023 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4024 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4025 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4026 (dwarf_expr_get_obj_addr): New function.
4027 (dwarf_expr_ctx_funcs): Add get_object_address field.
4028 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4029 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
4030 (dwarf2_evaluate_property): Add parameter "address". Use it.
4031 (needs_get_obj_addr): New function.
4032 (needs_frame_ctx_funcs): Add get_object_address field.
4033 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4034 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
4035 (resolve_dynamic_array): Likewise.
4036
4037 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4038
4039 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4040 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4041 fixed value for records and unions for which some GNAT encodings
4042 are present.
4043
4044 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4045
4046 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4047 rewrite to avoid "else if" and "else" constructs. Should be
4048 a no-op in practice.
4049
4050 2014-08-18 Joel Brobecker <brobecker@adacore.com>
4051
4052 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4053 of lexical block.
4054
4055 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4056
4057 PR c++/17132
4058 * eval.c: Update all calls to find_overload_match.
4059 * valarith.c: Likewise.
4060 (value_user_defined_cpp_op, value_user_defined_op): New
4061 argument NOSIDE. Update all callers.
4062 * valops.c (find_overload_match): New argument NOSIDE.
4063 * value.h (find_overload_match): Update signature.
4064
4065 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4066
4067 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4068 'items' methods instead of 'iteritems' method on dictionaries.
4069
4070 2014-08-15 Doug Evans <dje@google.com>
4071
4072 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4073 closer to use.
4074
4075 2014-08-15 Doug Evans <dje@google.com>
4076
4077 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4078
4079 2014-08-15 Doug Evans <dje@google.com>
4080
4081 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4082
4083 2014-08-15 Doug Evans <dje@google.com>
4084
4085 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4086 unused.
4087
4088 2014-08-15 Eli Zaretskii <eliz@gnu.org>
4089
4090 * dcache.h: Include target.h, to avoid compile time warnings.
4091
4092 2014-08-15 Joel Brobecker <brobecker@adacore.com>
4093
4094 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4095 frame_info" partial declaration.
4096 * gdbarch.h: Regenerate.
4097
4098 2014-08-15 Yao Qi <yao@codesourcery.com>
4099
4100 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4101 Add parameter 'decode_for_pst_p'. Callers update.
4102
4103 2014-08-13 Yao Qi <yao@codesourcery.com>
4104
4105 PR build/17104
4106 * configure.ac: Use local variable 'pos'.
4107 * configure: Regenerated.
4108
4109 2014-08-11 Doug Evans <dje@google.com>
4110
4111 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4112 message, it is redundant with "Reading symbols from ..." message.
4113
4114 2014-08-10 Doug Evans <xdje42@gmail.com>
4115
4116 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4117
4118 2014-08-09 Yao Qi <yao@codesourcery.com>
4119
4120 PR remote/9053
4121 * remote.c (remote_xfer_partial): Remove dead code.
4122
4123 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4124
4125 * ia64-linux-tdep.c: Include "regset.h".
4126 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4127 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4128 (ia64_linux_supply_fpregset): New function.
4129 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4130 (ia64_linux_regset_from_core_section): New function.
4131 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4132 method.
4133
4134 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4135
4136 * m68klinux-tdep.c: Include "regset.h".
4137 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4138 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4139 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4140 (m68k_linux_regset_from_core_section): New function.
4141 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4142 method.
4143
4144 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4145
4146 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4147 function. Move logic to...
4148 (tilegx_linux_regmap): ... this new register map.
4149 (tilegx_linux_regset): Refer to register map, replace supply
4150 method by regcache_supply_regset, and add collect method.
4151 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4152 TILEGX_FIRST_EASY_REGNUM.
4153
4154 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4155
4156 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4157 that calls regcache_supply_regset and handles the EPC register
4158 separately. Move main logic to...
4159 (score7_linux_gregmap): ... this new register map.
4160 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4161 (score7_linux_gregset): Refer to register map. Add collect method.
4162 (score7_linux_regset_from_core_section): Replace
4163 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4164 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4165 (struct regset): Delete unused forward declaraction.
4166 (struct pt_regs): Delete structure definition.
4167 (elf_gregset_t): Delete typedef.
4168
4169 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4170
4171 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4172 (nios2_core_regset): Add collect method.
4173
4174 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4175
4176 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4177 platform-independent and don't write to read-only input buffer.
4178 (m32r_linux_collect_gregset): New function.
4179 (m32r_linux_gregset): Add collect method.
4180
4181 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4182
4183 * hppa-linux-tdep.c (greg_map): Rename to...
4184 (hppa_linux_gregmap): ... this. Also convert to
4185 regcache_map_entry format.
4186 (hppa_linux_supply_regset): Delete function.
4187 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4188 (hppa_linux_fpregmap): ... this new register map.
4189 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4190 register map, replace supply method by regcache_supply_regset, and
4191 add collect method regcache_collect_regset.
4192
4193 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4194
4195 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4196 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4197 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4198 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4199 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4200 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4201 (frv_linux_supply_gregset): Replace main logic by call to
4202 regcache_supply_regset, but keep clearing gr32-gr63.
4203 (frv_linux_supply_fpregset): Delete function.
4204 (frv_linux_gregset): Refer to appropriate register map and add
4205 regcache_collect_regset as the collect method.
4206 (frv_linux_fpregset): Likewise. Also exchange the supply method
4207 by regcache_supply_regset.
4208
4209 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4210
4211 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4212 by call to alpha_supply_int_regs.
4213 (alpha_linux_collect_gregset): New function.
4214 (alpha_linux_supply_fpregset): Replace logic by call to
4215 alpha_supply_fp_regs.
4216 (alpha_linux_collect_fpregset): New function.
4217 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4218
4219 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4220
4221 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4222 by call to regcache_collect_regset.
4223 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4224 instead of aarch64_linux_supply_gregset/_fpregset.
4225 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4226 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4227 header file instead.
4228 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4229 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4230 functions. Move logic to ...
4231 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4232 register maps.
4233 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4234 refer to new register maps, replace *_regset_from_core by
4235 regcache_supply_regset, and also use regcache_collect_regset.
4236 * aarch64-linux-tdep.h: Include "regset.h".
4237 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4238 Delete prototypes.
4239 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4240 macros, moved from C source file.
4241 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4242 variable declarations.
4243
4244 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4245
4246 * s390-linux-nat.c: Include "regset.h".
4247 (regmap_gregset): Delete macro.
4248 (s390_64_regmap_gregset): New register map for
4249 regcache_supply/_collect_regset.
4250 (s390_64_gregset): New regset.
4251 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4252 (regmap_fpregset): Delete macro.
4253 (s390_native_supply, s390_native_collect): Delete functions.
4254 (supply_gregset, fill_gregset): Replace s390-specific regmap
4255 handling by a call to regcache_supply/_collect_regset.
4256 (supply_fpregset, fill_fpregset): Call regcache_supply/
4257 _collect_regset instead of s390_native_supply/_collect.
4258 (fetch_regset, store_regset): Likewise. Also change the last
4259 parameter to a regset instead of a regmap.
4260 (s390_linux_fetch_inferior_registers)
4261 (390_linux_store_inferior_registers): Adjust last parameter in
4262 calls to fetch_regset and store_regset.
4263 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4264 (s390_gregmap): ... this. Also make static const and convert to
4265 regcache_map_entry format.
4266 (s390x_regmap_gregset): Delete.
4267 (s390_regmap_fpregset): Rename to...
4268 (s390_fpregmap): ... this. Make static const and convert to
4269 regcache_map_entry format.
4270 (s390_regmap_upper, s390_regmap_last_break)
4271 (s390x_regmap_last_break, s390_regmap_system_call)
4272 (s390_regmap_tdb): Likewise.
4273 (s390_supply_regset, s390_collect_regset): Remove functions.
4274 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4275 s390_supply_regset.
4276 (s390_gregset, s390_fpregset, s390_upper_regset)
4277 (s390_last_break_regset, s390x_last_break_regset)
4278 (s390_system_call_regset, s390_tdb_regset): Make global and
4279 replace s390_supply/_collect_regset by regcache_supply/
4280 _collect_regset.
4281 (s390x_gregset): Delete.
4282 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4283 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4284 (s390_regmap_fpregset, s390_regmap_last_break)
4285 (s390x_regmap_last_break, s390_regmap_system_call)
4286 (s390_regmap_tdb): Delete global variable declarations.
4287 (s390_gregset, s390_fpregset, s390_last_break_regset)
4288 (s390x_last_break_regset, s390_system_call_regset)
4289 (s390_tdb_regset): New global variable declarations.
4290
4291 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4292
4293 * regcache.c: Include "regset.h".
4294 (regcache_transfer_regset): New local function.
4295 (regcache_supply_regset, regcache_collect_regset): New functions.
4296 * regcache.h (struct regcache_map_entry): New structure.
4297 (REGCACHE_MAP_SKIP): New enum value.
4298 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4299
4300 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4301
4302 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4303 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4304 (ppc_linux_collect_gregset ): Likewise.
4305 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4306 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4307 (ppc_collect_vrregset): Likewise.
4308 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4309 Likewise.
4310
4311 2014-08-07 Yao Qi <yao@codesourcery.com>
4312
4313 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4314 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4315 * remote.c (remote_read_bytes): Likewise.
4316
4317 2014-08-07 Yao Qi <yao@codesourcery.com>
4318
4319 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4320
4321 2014-08-07 Yao Qi <yao@codesourcery.com>
4322
4323 PR remote/17230
4324 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4325 TARGET_XFER_OK instead of 0.
4326
4327 2014-08-07 Gary Benson <gbenson@redhat.com>
4328
4329 * common/common-defs.h: Include errno.h.
4330 * defs.h: Do not include errno.h.
4331 * ada-typeprint.c: Likewise.
4332 * c-typeprint.c: Likewise.
4333 * core-regset.c: Likewise.
4334 * corefile.c: Likewise.
4335 * corelow.c: Likewise.
4336 * event-loop.c: Likewise.
4337 * f-typeprint.c: Likewise.
4338 * gnu-nat.c: Likewise.
4339 * go32-nat.c: Likewise.
4340 * i386gnu-nat.c: Likewise.
4341 * m2-typeprint.c: Likewise.
4342 * nat/linux-btrace.c: Likewise.
4343 * p-typeprint.c: Likewise.
4344 * procfs.c: Likewise.
4345 * remote-sim.c: Likewise.
4346 * rs6000-nat.c: Likewise.
4347 * target.c: Likewise.
4348 * typeprint.c: Likewise.
4349 * ui-file.c: Likewise.
4350 * valops.c: Likewise.
4351 * valprint.c: Likewise.
4352
4353 2014-08-07 Gary Benson <gbenson@redhat.com>
4354
4355 * common/common-defs.h: Include string.h.
4356 * aarch64-tdep.c: Do not include string.h.
4357 * ada-exp.y: Likewise.
4358 * ada-lang.c: Likewise.
4359 * ada-lex.l: Likewise.
4360 * ada-typeprint.c: Likewise.
4361 * ada-valprint.c: Likewise.
4362 * aix-thread.c: Likewise.
4363 * alpha-linux-tdep.c: Likewise.
4364 * alpha-mdebug-tdep.c: Likewise.
4365 * alpha-nat.c: Likewise.
4366 * alpha-osf1-tdep.c: Likewise.
4367 * alpha-tdep.c: Likewise.
4368 * alphanbsd-tdep.c: Likewise.
4369 * amd64-dicos-tdep.c: Likewise.
4370 * amd64-linux-tdep.c: Likewise.
4371 * amd64-nat.c: Likewise.
4372 * amd64-sol2-tdep.c: Likewise.
4373 * amd64fbsd-tdep.c: Likewise.
4374 * amd64obsd-tdep.c: Likewise.
4375 * arch-utils.c: Likewise.
4376 * arm-linux-nat.c: Likewise.
4377 * arm-linux-tdep.c: Likewise.
4378 * arm-tdep.c: Likewise.
4379 * arm-wince-tdep.c: Likewise.
4380 * armbsd-tdep.c: Likewise.
4381 * armnbsd-nat.c: Likewise.
4382 * armnbsd-tdep.c: Likewise.
4383 * armobsd-tdep.c: Likewise.
4384 * avr-tdep.c: Likewise.
4385 * ax-gdb.c: Likewise.
4386 * ax-general.c: Likewise.
4387 * bcache.c: Likewise.
4388 * bfin-tdep.c: Likewise.
4389 * breakpoint.c: Likewise.
4390 * build-id.c: Likewise.
4391 * buildsym.c: Likewise.
4392 * c-exp.y: Likewise.
4393 * c-lang.c: Likewise.
4394 * c-typeprint.c: Likewise.
4395 * c-valprint.c: Likewise.
4396 * charset.c: Likewise.
4397 * cli-out.c: Likewise.
4398 * cli/cli-cmds.c: Likewise.
4399 * cli/cli-decode.c: Likewise.
4400 * cli/cli-dump.c: Likewise.
4401 * cli/cli-interp.c: Likewise.
4402 * cli/cli-logging.c: Likewise.
4403 * cli/cli-script.c: Likewise.
4404 * cli/cli-setshow.c: Likewise.
4405 * cli/cli-utils.c: Likewise.
4406 * coffread.c: Likewise.
4407 * common/agent.c: Likewise.
4408 * common/buffer.c: Likewise.
4409 * common/buffer.h: Likewise.
4410 * common/common-utils.c: Likewise.
4411 * common/filestuff.c: Likewise.
4412 * common/filestuff.c: Likewise.
4413 * common/format.c: Likewise.
4414 * common/print-utils.c: Likewise.
4415 * common/rsp-low.c: Likewise.
4416 * common/signals.c: Likewise.
4417 * common/vec.h: Likewise.
4418 * common/xml-utils.c: Likewise.
4419 * core-regset.c: Likewise.
4420 * corefile.c: Likewise.
4421 * corelow.c: Likewise.
4422 * cp-abi.c: Likewise.
4423 * cp-name-parser.y: Likewise.
4424 * cp-support.c: Likewise.
4425 * cp-valprint.c: Likewise.
4426 * cris-tdep.c: Likewise.
4427 * d-exp.y: Likewise.
4428 * darwin-nat.c: Likewise.
4429 * dbxread.c: Likewise.
4430 * dcache.c: Likewise.
4431 * demangle.c: Likewise.
4432 * dicos-tdep.c: Likewise.
4433 * disasm.c: Likewise.
4434 * doublest.c: Likewise.
4435 * dsrec.c: Likewise.
4436 * dummy-frame.c: Likewise.
4437 * dwarf2-frame.c: Likewise.
4438 * dwarf2loc.c: Likewise.
4439 * dwarf2read.c: Likewise.
4440 * elfread.c: Likewise.
4441 * environ.c: Likewise.
4442 * eval.c: Likewise.
4443 * event-loop.c: Likewise.
4444 * exceptions.c: Likewise.
4445 * exec.c: Likewise.
4446 * expprint.c: Likewise.
4447 * f-exp.y: Likewise.
4448 * f-lang.c: Likewise.
4449 * f-typeprint.c: Likewise.
4450 * f-valprint.c: Likewise.
4451 * fbsd-nat.c: Likewise.
4452 * findcmd.c: Likewise.
4453 * findvar.c: Likewise.
4454 * fork-child.c: Likewise.
4455 * frame.c: Likewise.
4456 * frv-linux-tdep.c: Likewise.
4457 * frv-tdep.c: Likewise.
4458 * gdb.c: Likewise.
4459 * gdb_bfd.c: Likewise.
4460 * gdbarch.c: Likewise.
4461 * gdbarch.sh: Likewise.
4462 * gdbtypes.c: Likewise.
4463 * gnu-nat.c: Likewise.
4464 * gnu-v2-abi.c: Likewise.
4465 * gnu-v3-abi.c: Likewise.
4466 * go-exp.y: Likewise.
4467 * go-lang.c: Likewise.
4468 * go32-nat.c: Likewise.
4469 * guile/guile.c: Likewise.
4470 * guile/scm-auto-load.c: Likewise.
4471 * hppa-hpux-tdep.c: Likewise.
4472 * hppa-linux-nat.c: Likewise.
4473 * hppanbsd-tdep.c: Likewise.
4474 * hppaobsd-tdep.c: Likewise.
4475 * i386-cygwin-tdep.c: Likewise.
4476 * i386-dicos-tdep.c: Likewise.
4477 * i386-linux-tdep.c: Likewise.
4478 * i386-nto-tdep.c: Likewise.
4479 * i386-sol2-tdep.c: Likewise.
4480 * i386-tdep.c: Likewise.
4481 * i386bsd-tdep.c: Likewise.
4482 * i386gnu-nat.c: Likewise.
4483 * i386nbsd-tdep.c: Likewise.
4484 * i386obsd-tdep.c: Likewise.
4485 * i387-tdep.c: Likewise.
4486 * ia64-libunwind-tdep.c: Likewise.
4487 * ia64-linux-nat.c: Likewise.
4488 * inf-child.c: Likewise.
4489 * inf-ptrace.c: Likewise.
4490 * inf-ttrace.c: Likewise.
4491 * infcall.c: Likewise.
4492 * infcmd.c: Likewise.
4493 * inflow.c: Likewise.
4494 * infrun.c: Likewise.
4495 * interps.c: Likewise.
4496 * iq2000-tdep.c: Likewise.
4497 * irix5-nat.c: Likewise.
4498 * jv-exp.y: Likewise.
4499 * jv-lang.c: Likewise.
4500 * jv-typeprint.c: Likewise.
4501 * jv-valprint.c: Likewise.
4502 * language.c: Likewise.
4503 * linux-fork.c: Likewise.
4504 * linux-nat.c: Likewise.
4505 * lm32-tdep.c: Likewise.
4506 * m2-exp.y: Likewise.
4507 * m2-typeprint.c: Likewise.
4508 * m32c-tdep.c: Likewise.
4509 * m32r-linux-nat.c: Likewise.
4510 * m32r-linux-tdep.c: Likewise.
4511 * m32r-rom.c: Likewise.
4512 * m32r-tdep.c: Likewise.
4513 * m68hc11-tdep.c: Likewise.
4514 * m68k-tdep.c: Likewise.
4515 * m68kbsd-tdep.c: Likewise.
4516 * m68klinux-nat.c: Likewise.
4517 * m68klinux-tdep.c: Likewise.
4518 * m88k-tdep.c: Likewise.
4519 * machoread.c: Likewise.
4520 * macrocmd.c: Likewise.
4521 * main.c: Likewise.
4522 * mdebugread.c: Likewise.
4523 * mem-break.c: Likewise.
4524 * memattr.c: Likewise.
4525 * memory-map.c: Likewise.
4526 * mep-tdep.c: Likewise.
4527 * mi/mi-cmd-break.c: Likewise.
4528 * mi/mi-cmd-disas.c: Likewise.
4529 * mi/mi-cmd-env.c: Likewise.
4530 * mi/mi-cmd-stack.c: Likewise.
4531 * mi/mi-cmd-var.c: Likewise.
4532 * mi/mi-cmds.c: Likewise.
4533 * mi/mi-console.c: Likewise.
4534 * mi/mi-getopt.c: Likewise.
4535 * mi/mi-interp.c: Likewise.
4536 * mi/mi-main.c: Likewise.
4537 * mi/mi-parse.c: Likewise.
4538 * microblaze-rom.c: Likewise.
4539 * microblaze-tdep.c: Likewise.
4540 * mingw-hdep.c: Likewise.
4541 * minidebug.c: Likewise.
4542 * minsyms.c: Likewise.
4543 * mips-irix-tdep.c: Likewise.
4544 * mips-linux-tdep.c: Likewise.
4545 * mips-tdep.c: Likewise.
4546 * mips64obsd-tdep.c: Likewise.
4547 * mipsnbsd-tdep.c: Likewise.
4548 * mipsread.c: Likewise.
4549 * mn10300-linux-tdep.c: Likewise.
4550 * mn10300-tdep.c: Likewise.
4551 * monitor.c: Likewise.
4552 * moxie-tdep.c: Likewise.
4553 * mt-tdep.c: Likewise.
4554 * nat/linux-btrace.c: Likewise.
4555 * nat/linux-osdata.c: Likewise.
4556 * nat/linux-procfs.c: Likewise.
4557 * nat/linux-ptrace.c: Likewise.
4558 * nat/linux-waitpid.c: Likewise.
4559 * nbsd-tdep.c: Likewise.
4560 * nios2-linux-tdep.c: Likewise.
4561 * nto-procfs.c: Likewise.
4562 * nto-tdep.c: Likewise.
4563 * objc-lang.c: Likewise.
4564 * objfiles.c: Likewise.
4565 * opencl-lang.c: Likewise.
4566 * osabi.c: Likewise.
4567 * osdata.c: Likewise.
4568 * p-exp.y: Likewise.
4569 * p-lang.c: Likewise.
4570 * p-typeprint.c: Likewise.
4571 * parse.c: Likewise.
4572 * posix-hdep.c: Likewise.
4573 * ppc-linux-nat.c: Likewise.
4574 * ppc-sysv-tdep.c: Likewise.
4575 * ppcfbsd-tdep.c: Likewise.
4576 * ppcnbsd-tdep.c: Likewise.
4577 * ppcobsd-tdep.c: Likewise.
4578 * printcmd.c: Likewise.
4579 * procfs.c: Likewise.
4580 * prologue-value.c: Likewise.
4581 * python/py-auto-load.c: Likewise.
4582 * python/py-gdb-readline.c: Likewise.
4583 * ravenscar-thread.c: Likewise.
4584 * regcache.c: Likewise.
4585 * registry.c: Likewise.
4586 * remote-fileio.c: Likewise.
4587 * remote-m32r-sdi.c: Likewise.
4588 * remote-mips.c: Likewise.
4589 * remote-notif.c: Likewise.
4590 * remote-sim.c: Likewise.
4591 * remote.c: Likewise.
4592 * reverse.c: Likewise.
4593 * rs6000-aix-tdep.c: Likewise.
4594 * ser-base.c: Likewise.
4595 * ser-go32.c: Likewise.
4596 * ser-mingw.c: Likewise.
4597 * ser-pipe.c: Likewise.
4598 * ser-tcp.c: Likewise.
4599 * ser-unix.c: Likewise.
4600 * serial.c: Likewise.
4601 * sh-tdep.c: Likewise.
4602 * sh64-tdep.c: Likewise.
4603 * shnbsd-tdep.c: Likewise.
4604 * skip.c: Likewise.
4605 * sol-thread.c: Likewise.
4606 * solib-dsbt.c: Likewise.
4607 * solib-frv.c: Likewise.
4608 * solib-osf.c: Likewise.
4609 * solib-som.c: Likewise.
4610 * solib-spu.c: Likewise.
4611 * solib-target.c: Likewise.
4612 * solib.c: Likewise.
4613 * somread.c: Likewise.
4614 * source.c: Likewise.
4615 * sparc-nat.c: Likewise.
4616 * sparc-sol2-tdep.c: Likewise.
4617 * sparc-tdep.c: Likewise.
4618 * sparc64-tdep.c: Likewise.
4619 * sparc64fbsd-tdep.c: Likewise.
4620 * sparc64nbsd-tdep.c: Likewise.
4621 * sparcnbsd-tdep.c: Likewise.
4622 * spu-linux-nat.c: Likewise.
4623 * spu-multiarch.c: Likewise.
4624 * spu-tdep.c: Likewise.
4625 * stabsread.c: Likewise.
4626 * stack.c: Likewise.
4627 * std-regs.c: Likewise.
4628 * symfile.c: Likewise.
4629 * symmisc.c: Likewise.
4630 * symtab.c: Likewise.
4631 * target.c: Likewise.
4632 * thread.c: Likewise.
4633 * tilegx-linux-nat.c: Likewise.
4634 * tilegx-tdep.c: Likewise.
4635 * top.c: Likewise.
4636 * tracepoint.c: Likewise.
4637 * tui/tui-command.c: Likewise.
4638 * tui/tui-data.c: Likewise.
4639 * tui/tui-disasm.c: Likewise.
4640 * tui/tui-file.c: Likewise.
4641 * tui/tui-layout.c: Likewise.
4642 * tui/tui-out.c: Likewise.
4643 * tui/tui-regs.c: Likewise.
4644 * tui/tui-source.c: Likewise.
4645 * tui/tui-stack.c: Likewise.
4646 * tui/tui-win.c: Likewise.
4647 * tui/tui-windata.c: Likewise.
4648 * tui/tui-winsource.c: Likewise.
4649 * typeprint.c: Likewise.
4650 * ui-file.c: Likewise.
4651 * ui-out.c: Likewise.
4652 * user-regs.c: Likewise.
4653 * utils.c: Likewise.
4654 * v850-tdep.c: Likewise.
4655 * valarith.c: Likewise.
4656 * valops.c: Likewise.
4657 * valprint.c: Likewise.
4658 * value.c: Likewise.
4659 * varobj.c: Likewise.
4660 * vax-tdep.c: Likewise.
4661 * vaxnbsd-tdep.c: Likewise.
4662 * vaxobsd-tdep.c: Likewise.
4663 * windows-nat.c: Likewise.
4664 * xcoffread.c: Likewise.
4665 * xml-support.c: Likewise.
4666 * xstormy16-tdep.c: Likewise.
4667 * xtensa-linux-nat.c: Likewise.
4668
4669 2014-08-07 Gary Benson <gbenson@redhat.com>
4670
4671 * common/common-defs.h: Include gdb_assert.h.
4672 * aarch64-tdep.c: Do not include gdb_assert.h.
4673 * addrmap.c: Likewise.
4674 * aix-thread.c: Likewise.
4675 * alpha-linux-tdep.c: Likewise.
4676 * alpha-mdebug-tdep.c: Likewise.
4677 * alphanbsd-tdep.c: Likewise.
4678 * amd64-nat.c: Likewise.
4679 * amd64-tdep.c: Likewise.
4680 * amd64bsd-nat.c: Likewise.
4681 * amd64fbsd-nat.c: Likewise.
4682 * amd64fbsd-tdep.c: Likewise.
4683 * amd64nbsd-nat.c: Likewise.
4684 * amd64nbsd-tdep.c: Likewise.
4685 * amd64obsd-nat.c: Likewise.
4686 * amd64obsd-tdep.c: Likewise.
4687 * arch-utils.c: Likewise.
4688 * arm-tdep.c: Likewise.
4689 * armbsd-tdep.c: Likewise.
4690 * auxv.c: Likewise.
4691 * bcache.c: Likewise.
4692 * bfin-tdep.c: Likewise.
4693 * blockframe.c: Likewise.
4694 * breakpoint.c: Likewise.
4695 * bsd-kvm.c: Likewise.
4696 * bsd-uthread.c: Likewise.
4697 * buildsym.c: Likewise.
4698 * c-exp.y: Likewise.
4699 * c-lang.c: Likewise.
4700 * charset.c: Likewise.
4701 * cleanups.c: Likewise.
4702 * cli-out.c: Likewise.
4703 * cli/cli-decode.c: Likewise.
4704 * cli/cli-dump.c: Likewise.
4705 * cli/cli-logging.c: Likewise.
4706 * cli/cli-script.c: Likewise.
4707 * cli/cli-utils.c: Likewise.
4708 * coffread.c: Likewise.
4709 * common/common-utils.c: Likewise.
4710 * common/queue.h: Likewise.
4711 * common/signals.c: Likewise.
4712 * common/vec.h: Likewise.
4713 * complaints.c: Likewise.
4714 * completer.c: Likewise.
4715 * corelow.c: Likewise.
4716 * cp-abi.c: Likewise.
4717 * cp-name-parser.y: Likewise.
4718 * cp-namespace.c: Likewise.
4719 * cp-support.c: Likewise.
4720 * cris-tdep.c: Likewise.
4721 * dbxread.c: Likewise.
4722 * dictionary.c: Likewise.
4723 * doublest.c: Likewise.
4724 * dsrec.c: Likewise.
4725 * dummy-frame.c: Likewise.
4726 * dwarf2-frame-tailcall.c: Likewise.
4727 * dwarf2-frame.c: Likewise.
4728 * dwarf2expr.c: Likewise.
4729 * dwarf2loc.c: Likewise.
4730 * dwarf2read.c: Likewise.
4731 * eval.c: Likewise.
4732 * event-loop.c: Likewise.
4733 * exceptions.c: Likewise.
4734 * expprint.c: Likewise.
4735 * f-valprint.c: Likewise.
4736 * fbsd-nat.c: Likewise.
4737 * findvar.c: Likewise.
4738 * frame-unwind.c: Likewise.
4739 * frame.c: Likewise.
4740 * frv-tdep.c: Likewise.
4741 * gcore.c: Likewise.
4742 * gdb-dlfcn.c: Likewise.
4743 * gdb_bfd.c: Likewise.
4744 * gdbarch.c: Likewise.
4745 * gdbarch.sh: Likewise.
4746 * gdbtypes.c: Likewise.
4747 * gnu-nat.c: Likewise.
4748 * gnu-v3-abi.c: Likewise.
4749 * go-lang.c: Likewise.
4750 * guile/scm-exception.c: Likewise.
4751 * guile/scm-gsmob.c: Likewise.
4752 * guile/scm-lazy-string.c: Likewise.
4753 * guile/scm-math.c: Likewise.
4754 * guile/scm-pretty-print.c: Likewise.
4755 * guile/scm-safe-call.c: Likewise.
4756 * guile/scm-utils.c: Likewise.
4757 * guile/scm-value.c: Likewise.
4758 * h8300-tdep.c: Likewise.
4759 * hppa-hpux-nat.c: Likewise.
4760 * hppa-tdep.c: Likewise.
4761 * hppanbsd-tdep.c: Likewise.
4762 * hppaobsd-tdep.c: Likewise.
4763 * i386-darwin-nat.c: Likewise.
4764 * i386-darwin-tdep.c: Likewise.
4765 * i386-nto-tdep.c: Likewise.
4766 * i386-tdep.c: Likewise.
4767 * i386bsd-nat.c: Likewise.
4768 * i386fbsd-tdep.c: Likewise.
4769 * i386gnu-nat.c: Likewise.
4770 * i386nbsd-tdep.c: Likewise.
4771 * i386obsd-tdep.c: Likewise.
4772 * i387-tdep.c: Likewise.
4773 * ia64-libunwind-tdep.c: Likewise.
4774 * ia64-tdep.c: Likewise.
4775 * inf-ptrace.c: Likewise.
4776 * inf-ttrace.c: Likewise.
4777 * infcall.c: Likewise.
4778 * infcmd.c: Likewise.
4779 * infrun.c: Likewise.
4780 * inline-frame.c: Likewise.
4781 * interps.c: Likewise.
4782 * jv-lang.c: Likewise.
4783 * jv-typeprint.c: Likewise.
4784 * linux-fork.c: Likewise.
4785 * linux-nat.c: Likewise.
4786 * linux-thread-db.c: Likewise.
4787 * m32c-tdep.c: Likewise.
4788 * m32r-linux-nat.c: Likewise.
4789 * m32r-tdep.c: Likewise.
4790 * m68k-tdep.c: Likewise.
4791 * m68kbsd-nat.c: Likewise.
4792 * m68kbsd-tdep.c: Likewise.
4793 * m88k-tdep.c: Likewise.
4794 * machoread.c: Likewise.
4795 * macroexp.c: Likewise.
4796 * macrotab.c: Likewise.
4797 * maint.c: Likewise.
4798 * mdebugread.c: Likewise.
4799 * memory-map.c: Likewise.
4800 * mep-tdep.c: Likewise.
4801 * mi/mi-common.c: Likewise.
4802 * microblaze-tdep.c: Likewise.
4803 * mingw-hdep.c: Likewise.
4804 * mips-linux-nat.c: Likewise.
4805 * mips-linux-tdep.c: Likewise.
4806 * mips-tdep.c: Likewise.
4807 * mips64obsd-tdep.c: Likewise.
4808 * mipsnbsd-tdep.c: Likewise.
4809 * mn10300-linux-tdep.c: Likewise.
4810 * mn10300-tdep.c: Likewise.
4811 * moxie-tdep.c: Likewise.
4812 * mt-tdep.c: Likewise.
4813 * nat/linux-btrace.c: Likewise.
4814 * nat/linux-osdata.c: Likewise.
4815 * nat/linux-ptrace.c: Likewise.
4816 * nat/mips-linux-watch.c: Likewise.
4817 * nios2-linux-tdep.c: Likewise.
4818 * nios2-tdep.c: Likewise.
4819 * objc-lang.c: Likewise.
4820 * objfiles.c: Likewise.
4821 * obsd-nat.c: Likewise.
4822 * opencl-lang.c: Likewise.
4823 * osabi.c: Likewise.
4824 * parse.c: Likewise.
4825 * ppc-linux-nat.c: Likewise.
4826 * ppc-sysv-tdep.c: Likewise.
4827 * ppcfbsd-nat.c: Likewise.
4828 * ppcfbsd-tdep.c: Likewise.
4829 * ppcnbsd-nat.c: Likewise.
4830 * ppcnbsd-tdep.c: Likewise.
4831 * ppcobsd-nat.c: Likewise.
4832 * ppcobsd-tdep.c: Likewise.
4833 * printcmd.c: Likewise.
4834 * procfs.c: Likewise.
4835 * prologue-value.c: Likewise.
4836 * psymtab.c: Likewise.
4837 * python/py-lazy-string.c: Likewise.
4838 * python/py-value.c: Likewise.
4839 * regcache.c: Likewise.
4840 * reggroups.c: Likewise.
4841 * registry.c: Likewise.
4842 * remote-sim.c: Likewise.
4843 * remote.c: Likewise.
4844 * rs6000-aix-tdep.c: Likewise.
4845 * rs6000-tdep.c: Likewise.
4846 * s390-linux-tdep.c: Likewise.
4847 * score-tdep.c: Likewise.
4848 * ser-base.c: Likewise.
4849 * ser-mingw.c: Likewise.
4850 * sh-tdep.c: Likewise.
4851 * sh64-tdep.c: Likewise.
4852 * solib-darwin.c: Likewise.
4853 * solib-spu.c: Likewise.
4854 * solib-svr4.c: Likewise.
4855 * source.c: Likewise.
4856 * sparc-nat.c: Likewise.
4857 * sparc-sol2-tdep.c: Likewise.
4858 * sparc-tdep.c: Likewise.
4859 * sparc64-sol2-tdep.c: Likewise.
4860 * sparc64-tdep.c: Likewise.
4861 * sparc64fbsd-tdep.c: Likewise.
4862 * sparc64nbsd-tdep.c: Likewise.
4863 * sparc64obsd-tdep.c: Likewise.
4864 * sparcnbsd-tdep.c: Likewise.
4865 * sparcobsd-tdep.c: Likewise.
4866 * spu-multiarch.c: Likewise.
4867 * spu-tdep.c: Likewise.
4868 * stabsread.c: Likewise.
4869 * stack.c: Likewise.
4870 * symfile.c: Likewise.
4871 * symtab.c: Likewise.
4872 * target-descriptions.c: Likewise.
4873 * target-memory.c: Likewise.
4874 * target.c: Likewise.
4875 * tic6x-linux-tdep.c: Likewise.
4876 * tic6x-tdep.c: Likewise.
4877 * tilegx-linux-nat.c: Likewise.
4878 * tilegx-tdep.c: Likewise.
4879 * top.c: Likewise.
4880 * tramp-frame.c: Likewise.
4881 * tui/tui-out.c: Likewise.
4882 * tui/tui-winsource.c: Likewise.
4883 * ui-out.c: Likewise.
4884 * user-regs.c: Likewise.
4885 * utils.c: Likewise.
4886 * v850-tdep.c: Likewise.
4887 * valops.c: Likewise.
4888 * value.c: Likewise.
4889 * varobj.c: Likewise.
4890 * vax-nat.c: Likewise.
4891 * xml-syscall.c: Likewise.
4892 * xml-tdesc.c: Likewise.
4893 * xstormy16-tdep.c: Likewise.
4894 * xtensa-linux-nat.c: Likewise.
4895 * xtensa-tdep.c: Likewise.
4896
4897 2014-08-07 Gary Benson <gbenson@redhat.com>
4898
4899 * common/common-defs.h: Include common-utils.h.
4900 * defs.h: Do not include common-utils.h.
4901 * common/gdb_assert.h: Likewise.
4902 * darwin-nat.h: Likewise.
4903 * nat/linux-btrace.c: Likewise.
4904 * target/waitstatus.h: Likewise.
4905
4906 2014-08-07 Gary Benson <gbenson@redhat.com>
4907
4908 * common/common-defs.h: Include ptid.h.
4909 * defs.h: Do not include ptid.h.
4910 * inferior.h: Likewise.
4911 * infrun.h: Likewise.
4912 * nat/linux-btrace.h: Likewise.
4913 * nat/linux-osdata.h: Likewise.
4914 * target/waitstatus.h: Likewise.
4915
4916 2014-08-07 Gary Benson <gbenson@redhat.com>
4917
4918 * common/common-defs.h: Include gdb_locale.h.
4919 * defs.h: Do not include gdb_locale.h.
4920
4921 2014-08-07 Gary Benson <gbenson@redhat.com>
4922
4923 * common/common-defs.h: Include gdb/signals.h.
4924 * defs.h: Do not include gdb/signals.h.
4925
4926 2014-08-07 Gary Benson <gbenson@redhat.com>
4927
4928 * common/common-defs.h: Include pathmax.h.
4929 * defs.h: Do not include pathmax.h.
4930
4931 2014-08-07 Gary Benson <gbenson@redhat.com>
4932
4933 * common/common-defs.h: Include libiberty.h.
4934 * defs.h: Do not include libiberty.h.
4935 * common/queue.h: Likewise.
4936 * cp-name-parser.y: Likewise.
4937 * mi/mi-cmd-catch.c: Likewise.
4938 * python/python.c: Likewise.
4939
4940 2014-08-07 Gary Benson <gbenson@redhat.com>
4941
4942 * common/common-defs.h: Include ansidecl.h.
4943 * defs.h: Do not include ansidecl.h.
4944 * common/buffer.h: Likewise.
4945 * common/common-utils.h: Likewise.
4946
4947 2014-08-07 Gary Benson <gbenson@redhat.com>
4948
4949 * common/common-defs.h: Include stddef.h.
4950 * defs.h: Do not include stddef.h.
4951 * common/common-utils.h: Likewise.
4952 * amd64fbsd-nat.c: Likewise.
4953 * bcache.c: Likewise.
4954 * charset.c: Likewise.
4955 * common/buffer.h: Likewise.
4956 * common/vec.h: Likewise.
4957 * i386bsd-nat.c: Likewise.
4958 * nat/linux-btrace.h: Likewise.
4959 * ppcfbsd-nat.c: Likewise.
4960 * ppcnbsd-tdep.h: Likewise.
4961 * ppcobsd-nat.c: Likewise.
4962 * ppcobsd-tdep.h: Likewise.
4963 * python/py-gdb-readline.c: Likewise.
4964
4965 2014-08-07 Gary Benson <gbenson@redhat.com>
4966
4967 * common/common-defs.h: Include stdarg.h.
4968 * defs.h: Do not include stdarg.h.
4969 * ada-lang.c: Likewise.
4970 * common/common-utils.h: Likewise.
4971 * guile/scm-string.c: Likewise.
4972 * guile/scm-utils.c: Likewise.
4973 * m32c-tdep.c: Likewise.
4974
4975 2014-08-07 Gary Benson <gbenson@redhat.com>
4976
4977 * common/common-defs.h: Include stdlib.h.
4978 * defs.h: Do not include stdlib.h.
4979 * addrmap.c: Likewise.
4980 * bcache.c: Likewise.
4981 * common/buffer.c: Likewise.
4982 * common/common-utils.c: Likewise.
4983 * cp-name-parser.y: Likewise.
4984 * go32-nat.c: Likewise.
4985 * mn10300-linux-tdep.c: Likewise.
4986 * nat/linux-osdata.c: Likewise.
4987 * tui/tui.c: Likewise.
4988 * windows-nat.c: Likewise.
4989
4990 2014-08-07 Gary Benson <gbenson@redhat.com>
4991
4992 * common/common-defs.h: Include stdio.h.
4993 * defs.h: Do not include stdio.h.
4994 * ada-lang.c: Likewise.
4995 * common/buffer.c: Likewise.
4996 * common/common-utils.c: Likewise.
4997 * cp-name-parser.y: Likewise.
4998 * gnu-nat.c: Likewise.
4999 * go32-nat.c: Likewise.
5000 * i386gnu-nat.c: Likewise.
5001 * proc-api.c: Likewise.
5002 * proc-events.c: Likewise.
5003 * proc-flags.c: Likewise.
5004 * proc-why.c: Likewise.
5005 * python/python-internal.h: Likewise.
5006 * target-memory.c: Likewise.
5007 * tui/tui-io.c: Likewise.
5008 * tui/tui.c: Likewise.
5009
5010 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
5011
5012 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5013 (scan_dyntag_auxv): Same.
5014
5015 2014-08-06 Yao Qi <yao@codesourcery.com>
5016
5017 * amd64-linux-nat.c: Remove duplicated include
5018 "x86-linux-nat.h".
5019 * i386-linux-nat.c: Likewise.
5020
5021 2014-08-06 Yao Qi <yao@codesourcery.com>
5022
5023 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5024 operand" with "Special opcode" in comments.
5025
5026 2014-08-05 Gary Benson <gbenson@redhat.com>
5027
5028 * interps.c (initialize_interps): Remove prototype.
5029 (interpreter_initialized): Remove static global.
5030 (interp_add): Do not call initialize_interps.
5031 (initialize_interps): Remove function.
5032
5033 2014-08-05 Gary Benson <gbenson@redhat.com>
5034
5035 * utils.c (vwarning): Remove spurious va_end.
5036
5037 2014-08-05 Alan Modra <amodra@gmail.com>
5038
5039 * charset.c (convert_between_encodings): Cast result of obstack_base.
5040 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5041 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5042 (read_unwind_info): Use size_t for some locals.
5043 * jit.c (finalize_symtab): Likewise.
5044 * utils.c (hashtab_obstack_allocate): Likewise.
5045 * symmisc.c (print_objfile_statistics): Update format strings.
5046
5047 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5048
5049 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5050 (Changes in GDB 7.8): ... here.
5051
5052 2014-08-04 Tom Tromey <tromey@redhat.com>
5053
5054 * target.c (set_targetdebug): New function.
5055 (initialize_targets): Pass set_targetdebug when creating "set
5056 debug target".
5057
5058 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5059
5060 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5061 if detecting a variable-sized field that is not the last field.
5062 Fix struct type length computation.
5063
5064 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5065
5066 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5067 Add debug trace.
5068
5069 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5070
5071 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5072 Remove "+ 8" offset in computation of CHAIN_VMA.
5073
5074 2014-07-31 Doug Evans <dje@google.com>
5075
5076 * inflow.c (child_terminal_inferior): Add comment.
5077 (child_terminal_ours_for_output): Add comment.
5078 (child_terminal_ours): Add comment.
5079 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5080 (linux_nat_terminal_ours): Add comment.
5081
5082 2014-07-31 Gary Benson <gbenson@redhat.com>
5083
5084 * common/btrace-common.h: Do not include defs.h or server.h.
5085 * nat/mips-linux-watch.h: Likewise.
5086 * gdb-dlfcn.h: Do not include defs.h.
5087 * tracefile.h: Likewise.
5088
5089 2014-07-30 Roland McGrath <mcgrathr@google.com>
5090
5091 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5092
5093 2014-07-30 Tom Tromey <tromey@redhat.com>
5094
5095 * bsd-kvm.c (bsd_kvm_open): Constify.
5096 * corelow.c (core_open): Constify.
5097 * ctf.c (ctf_open): Constify.
5098 * dbug-rom.c (dbug_open): Constify.
5099 * exec.c (exec_open): Constify.
5100 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5101 * microblaze-rom.c (picobug_open): Constify.
5102 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5103 Constify.
5104 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5105 * record-btrace.c (record_btrace_open): Constify.
5106 * record-full.c (record_full_core_open_1, record_full_open_1)
5107 (record_full_open): Constify.
5108 * remote-m32r-sdi.c (m32r_open): Constify.
5109 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5110 (rockhopper_open, lsi_open): Constify.
5111 * remote-sim.c (gdbsim_open): Constify.
5112 * remote.c (remote_open, extended_remote_open, remote_open_1):
5113 Constify.
5114 * target.h (struct target_ops) <to_open>: Make "arg" const.
5115 * tracefile-tfile.c (tfile_open): Constify.
5116
5117 2014-07-30 Tom Tromey <tromey@redhat.com>
5118
5119 * breakpoint.c (map_breakpoint_numbers): Update.
5120 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5121 (get_number_const): New function.
5122 (get_number): Rewrite using get_number_const.
5123 (init_number_or_range): Make "string" const.
5124 (number_is_in_list): Make "list" const.
5125 * cli/cli-utils.h (get_number_const): Declare.
5126 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5127 (init_number_or_range, number_is_in_list): Update.
5128 * printcmd.c (map_display_numbers): Update.
5129 * value.c (value_from_history_ref): Constify.
5130 * value.h (value_from_history_ref): Update.
5131
5132 2014-07-30 Tom Tromey <tromey@redhat.com>
5133
5134 * corefile.c (hook_type, call_extra_exec_file_hooks)
5135 (specify_exec_file_hook): Constify.
5136 * exec.c (exec_file_attach): Make "filename" const.
5137 * gdbcore.h (deprecated_exec_file_display_hook)
5138 (specify_exec_file_hook, exec_file_attach): Constify.
5139 * main.c (captured_main): Use catch_command_errors_const.
5140
5141 2014-07-30 Tom Tromey <tromey@redhat.com>
5142
5143 * target.c (open_target): New function.
5144 (add_target_with_completer, add_deprecated_target_alias): Use
5145 set_cmd_sfunc, set_cmd_context.
5146 (debug_to_open): Remove.
5147 (setup_target_debug): Update.
5148
5149 2014-07-30 Yao Qi <yao@codesourcery.com>
5150
5151 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5152 comments.
5153 * parse.c (exp_iterate): Update comments.
5154
5155 2014-07-30 Gary Benson <gbenson@redhat.com>
5156
5157 * common/common-defs.h: New file.
5158 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5159 * defs.h: Include common-defs.h.
5160 Do not include config.h or build-gnulib/config.h.
5161
5162 2014-07-30 Gary Benson <gbenson@redhat.com>
5163
5164 * common/common-utils.h: Do not include config.h.
5165 * nat/linux-btrace.h: Likewise.
5166
5167 2014-07-30 Gary Benson <gbenson@redhat.com>
5168
5169 * btrace.c: Include defs.h.
5170 * common/ptid.c: Include defs.h or server.h as appropriate.
5171 * nat/mips-linux-watch.c: Likewise.
5172
5173 2014-07-29 Tom Tromey <tromey@redhat.com>
5174
5175 * target.c (target_is_pushed): Simplify.
5176
5177 2014-07-29 Joel Brobecker <brobecker@adacore.com>
5178
5179 GDB 7.8 released.
5180
5181 2014-07-29 Yao Qi <yao@codesourcery.com>
5182
5183 PR gdb/17206
5184 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5185
5186 2014-07-28 Doug Evans <xdje42@gmail.com>
5187
5188 PR guile/17203
5189 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5190 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5191 parameters.
5192
5193 2014-07-28 Will Newton <will.newton@linaro.org>
5194
5195 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5196 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5197 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5198 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5199 (THUMB2_EABI_SYSCALL): Likewise.
5200 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5201 struct tramp_frame.
5202 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5203 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5204
5205 2014-07-27 Doug Evans <xdje42@gmail.com>
5206
5207 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5208
5209 2014-07-27 Doug Evans <xdje42@gmail.com>
5210
5211 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5212
5213 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5214 Doug Evans <xdje42@gmail.com>
5215
5216 PR guile/17146
5217 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5218 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5219 * configure.ac: Try to use guild to compile an scm file, if it fails
5220 then disable guile support.
5221 * configure: Regenerate.
5222 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5223 GUILE_FILE_LIST.
5224 (GUILE_COMPILED_FILES): New variable.
5225 (GUILE_FILES) Update.
5226 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5227 (stamp-guile): Compile scm files.
5228 * guile/guile.c (boot_guile_support): New function.
5229 (standard_throw_args_p): New function.
5230 (print_standard_throw_error, print_throw_error): New functions.
5231 (handle_boot_error): New function.
5232 (initialize_scheme_side): Rewrite to call boot_guile_support.
5233 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5234 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5235
5236 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5237 Doug Evans <xdje42@gmail.com>
5238
5239 PR guile/17146
5240 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5241 * guile/lib/gdb/support.scm: New file.
5242 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5243 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5244 All uses updated.
5245 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5246 All uses updated.
5247 (%assert-type): Ditto, and renamed to assert-type.
5248 (%exception-print-style): Delete.
5249
5250 2014-07-26 Doug Evans <xdje42@gmail.com>
5251
5252 PR build/17105
5253 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5254 * configure: Regenerate.
5255 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5256 PYTHON_FILES.
5257 (PYTHON_FILES): New variable.
5258 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5259 (GUILE_FILES): New variable.
5260 (stamp-python, install-python, uninstall-python): Handle empty
5261 file list.
5262 (stamp-guile, install-guile, uninstall-guile): Ditto.
5263
5264 2014-07-26 Doug Evans <xdje42@gmail.com>
5265
5266 PR guile/17177
5267 * guile/lib/gdb.scm (pretty-printers): Export.
5268 (set-pretty-printers!): Export.
5269 * guile/lib/gdb/printing.scm (gdb module): Update.
5270 (prepend-pretty-printer!, append-pretty-printer!): Update.
5271 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5272 (pretty_printer_list_var): Delete.
5273 (pretty_printer_list): New static global.
5274 (gdbscm_pretty_printers): New function.
5275 (gdbscm_set_pretty_printers_x): New function.
5276 (ppscm_find_pretty_printer_from_gdb): Update.
5277 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5278 (gdbscm_initialize_pretty_printers): Update.
5279
5280 2014-07-26 Doug Evans <xdje42@gmail.com>
5281
5282 PR 17185
5283 * configure.ac: Add check for header gc/gc.h.
5284 Add check for function setenv.
5285 * configure: Regenerate.
5286 * config.in: Regenerate.
5287 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5288
5289 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5290
5291 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5292 variation in gdbarch matching.
5293
5294 2014-07-25 Tom Tromey <tromey@redhat.com>
5295
5296 * exec.c (using_exec_ops): Remove.
5297 (exec_close_1): Update. Remove extraneous block, reindent.
5298 (add_target_sections): Use target_is_pushed.
5299
5300 2014-07-25 Pedro Alves <palves@redhat.com>
5301
5302 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5303 * monitor.c (monitor_create_inferior): Likewise.
5304 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5305 * remote-sim.c (gdbsim_create_inferior): Likewise.
5306 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5307 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5308 * windows-nat.c (do_initial_windows_stuff): Likewise.
5309
5310 2014-07-25 Pedro Alves <palves@redhat.com>
5311
5312 * NEWS: Mention signal passing and "signal" command changes.
5313 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5314 comment.
5315 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5316 call.
5317 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5318 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5319 (jump_command): Adjust clear_proceed_status call.
5320 (signal_command): Warn if other thread that are resumed have
5321 signals that will be delivered. Adjust clear_proceed_status call.
5322 (until_next_command, finish_command)
5323 (proceed_after_attach_callback, attach_command_post_wait)
5324 (attach_command): Adjust clear_proceed_status call.
5325 * infrun.c (proceed_after_vfork_done): Likewise.
5326 (proceed_after_attach_callback): Adjust comment.
5327 (clear_proceed_status_thread): Clear stop_signal if not in pass
5328 state.
5329 (clear_proceed_status_callback): Delete.
5330 (clear_proceed_status): New 'step' parameter. Only clear the
5331 proceed status of threads the command being prepared is about to
5332 resume.
5333 (proceed): If passed in an explicit signal, override stop_signal
5334 with it. Don't pass the last stop signal to the thread we're
5335 resuming.
5336 (init_wait_for_inferior): Adjust clear_proceed_status call.
5337 (switch_back_to_stepped_thread): Clear the signal if it should not
5338 be passed.
5339 * infrun.h (clear_proceed_status): New 'step' parameter.
5340 (user_visible_resume_ptid): Add comment.
5341 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5342 signal is in pass state.
5343 * remote.c (append_pending_thread_resumptions): Likewise.
5344 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5345
5346 2014-07-25 Tom Tromey <tromey@redhat.com>
5347
5348 * target.h (target_stopped_data_address)
5349 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5350 parentheses.
5351
5352 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5353
5354 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5355 comments.
5356 (avr_pointer_to_address): Likewise.
5357
5358 2014-07-24 Tom Tromey <tromey@redhat.com>
5359
5360 * monitor.c (compile_pattern): Update.
5361 * target.h (struct target_ops) <to_shortname, to_longname,
5362 to_doc>: Now const.
5363
5364 2014-07-24 Tom Tromey <tromey@redhat.com>
5365
5366 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5367 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5368 (add_info_alias, add_com): Make "doc" const.
5369 (print_doc_line): Make "str" const.
5370 (delete_cmd): Update.
5371 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5372 (print_doc_line): Update.
5373 * cli/cli-script.c (document_command): Update.
5374 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5375 (add_com, add_info, add_info_alias): Update.
5376 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5377 * python/py-cmd.c (cmdpy_destroyer): Update.
5378
5379 2014-07-24 Tom Tromey <tromey@redhat.com>
5380
5381 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5382 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5383 (help_cmd_list): Constify.
5384 (lookup_cmd): Update.
5385 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5386 const.
5387 (help_cmd_list, apropos_cmd): Update.
5388 * cli/cli-script.c (show_user): Update.
5389 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5390 * cli/cli-setshow.h (cmd_show_list): Update.
5391 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5392 (cmd_show_list): Update.
5393 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5394 * python/py-cmd.c (cmdpy_destroyer): Update.
5395
5396 2014-07-24 Tom Tromey <tromey@redhat.com>
5397
5398 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5399 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5400 const.
5401 * command.h (deprecate_cmd): Update.
5402 * maint.c (maintenance_do_deprecate): Add casts.
5403
5404 2014-07-24 Tom Tromey <tromey@redhat.com>
5405
5406 * cli/cli-decode.c (help_cmd): Make parameter "const".
5407 * cli/cli-decode.h (help_cmd): Update.
5408
5409 2014-07-24 Tom Tromey <tromey@redhat.com>
5410
5411 * stack.c (up_silently_base, down_silently_base): Make argument
5412 const.
5413
5414 2014-07-24 Tom Tromey <tromey@redhat.com>
5415
5416 * solib.c (solib_add): Make "pattern" const.
5417 * solib.h (solib_add): Update.
5418
5419 2014-07-24 Tom Tromey <tromey@redhat.com>
5420
5421 * remote.c (remote_serial_open, print_packet, putpkt)
5422 (putpkt_binary): Constify.
5423 * remote.h (putpkt): Update.
5424
5425 2014-07-24 Tom Tromey <tromey@redhat.com>
5426
5427 * monitor.c (monitor_open): Make "args" const.
5428 * monitor.h (monitor_open): Update.
5429
5430 2014-07-24 Tom Tromey <tromey@redhat.com>
5431
5432 * maint.c (match_bfd_flags): Make "string" const.
5433 (print_bfd_section_info): Remove casts.
5434 (print_objfile_section_info): Make "string" const.
5435
5436 2014-07-24 Tom Tromey <tromey@redhat.com>
5437
5438 * inf-child.c (inf_child_open_target): Make "arg" const.
5439 * inf-child.h (inf_child_open_target): Update.
5440
5441 2014-07-24 Tom Tromey <tromey@redhat.com>
5442
5443 * environ.c (unset_in_environ): Make "var" const.
5444 * environ.h (unset_in_environ): Update.
5445
5446 2014-07-24 Tom Tromey <tromey@redhat.com>
5447
5448 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5449 Make "cmd" const.
5450 (scan_filename_with_cleanup): Likewise.
5451 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5452 Make arguments const.
5453 (restore_command): Update.
5454
5455 2014-07-24 Pedro Alves <palves@redhat.com>
5456
5457 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5458
5459 2014-07-24 Tom Tromey <tromey@redhat.com>
5460 Gary Benson <gbenson@redhat.com>
5461
5462 * nat/linux-ptrace.c (additional_flags): New global.
5463 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5464 additional_flags; don't check GDBSERVER.
5465 (linux_ptrace_set_additional_flags): New function.
5466 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5467 Declare.
5468 * linux-nat.c (_initialize_linux_nat): Call
5469 linux_ptrace_set_additional_flags.
5470
5471 2014-07-24 Tom Tromey <tromey@redhat.com>
5472
5473 * make-target-delegates (munge_type, write_debugmethod): New
5474 functions.
5475 (debug_names): New global.
5476 ($TARGET_DEBUG_PRINTER): New global.
5477 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5478 name.
5479 Write debug methods. Generate init_debug_target.
5480 * target-debug.h: New file.
5481 * target-delegates.c: Rebuild.
5482 * target.c: Include target-debug.h.
5483 (debug_target): Hoist definition.
5484 (target_kill, target_get_section_table, target_memory_map)
5485 (target_flash_erase, target_flash_done, target_detach)
5486 (target_disconnect, target_wait, target_resume)
5487 (target_pass_signals, target_program_signals, target_follow_fork)
5488 (target_mourn_inferior, target_search_memory)
5489 (target_thread_address_space, target_close)
5490 (target_find_new_threads, target_core_of_thread)
5491 (target_verify_memory, target_insert_mask_watchpoint)
5492 (target_remove_mask_watchpoint): Remove targetdebug code.
5493 (debug_to_post_attach, debug_to_prepare_to_store)
5494 (debug_to_files_info, debug_to_insert_breakpoint)
5495 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5496 (debug_to_region_ok_for_hw_watchpoint)
5497 (debug_to_can_accel_watchpoint_condition)
5498 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5499 (debug_to_watchpoint_addr_within_range)
5500 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5501 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5502 (debug_to_terminal_init, debug_to_terminal_inferior)
5503 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5504 (debug_to_terminal_save_ours, debug_to_terminal_info)
5505 (debug_to_load, debug_to_post_startup_inferior)
5506 (debug_to_insert_fork_catchpoint)
5507 (debug_to_remove_fork_catchpoint)
5508 (debug_to_insert_vfork_catchpoint)
5509 (debug_to_remove_vfork_catchpoint)
5510 (debug_to_insert_exec_catchpoint)
5511 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5512 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5513 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5514 (setup_target_debug): Call init_debug_target.
5515 * target.h (TARGET_DEBUG_PRINTER): New macro.
5516 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5517 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5518
5519 2014-07-24 Gary Benson <gbenson@redhat.com>
5520
5521 * exceptions.h (throw_vfatal): Renamed to...
5522 (throw_vquit): New declaration.
5523 (throw_quit): Likewise.
5524 * exceptions.c (throw_vfatal): Renamed to...
5525 (throw_vquit): New function.
5526 (throw_quit): Likewise.
5527 (throw_error): Call throw_verror rather than throw_it.
5528 * utils.h (vfatal): Removed.
5529 (fatal): Likewise.
5530 * utils.c (vfatal): Removed.
5531 (fatal): Likewise.
5532 (internal_verror): Replaced call to fatal with call to throw_quit.
5533 (quit): Replaced calls to fatal with calls to throw_quit.
5534
5535 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5536
5537 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5538 target_read_code.
5539
5540 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5541
5542 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5543 less than zero in conditional expression.
5544
5545 2014-07-23 Tom Tromey <tromey@redhat.com>
5546
5547 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5548 ($INTRO_PART): Don't match whitespace.
5549 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5550 argument matching.
5551 ($METHOD): Add $METHOD_TRAILER.
5552 (trim): Rewrite.
5553 (scan_target_h): New sub.
5554 Change main loop not to collect state.
5555 * target-delegates.c: Rebuild.
5556
5557 2014-07-23 Gary Benson <gbenson@redhat.com>
5558
5559 * cp-support.c (gdb_demangle): Fix build on systems without
5560 sigaltstack.
5561
5562 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5563
5564 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5565 for reference entry value target data value.
5566
5567 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5568
5569 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5570 value_available_contents_eq.
5571
5572 2014-07-22 Pedro Alves <palves@redhat.com>
5573
5574 * value.c (allocate_optimized_out_value): Don't mark value as
5575 non-lazy.
5576
5577 2014-07-22 Jiong Wang <jiong.wang@arm.com>
5578
5579 * MAINTAINERS (Write After Approval): Update my email address.
5580
5581 2014-07-20 Doug Evans <dje@google.com>
5582
5583 PR server/17147
5584 * remote.c (putpkt_binary): Add text to error message.
5585
5586 2014-07-20 Yao Qi <yao@codesourcery.com>
5587
5588 * eval.c: Remove "Chill" from comments.
5589 * gdbtypes.h: Likewise.
5590 * symtab.h: Likewise.
5591
5592 2014-07-20 Yao Qi <yao@codesourcery.com>
5593
5594 * std-operator.def: Update comments to TERNOP_SLICE.
5595
5596 2014-07-20 Yao Qi <yao@codesourcery.com>
5597
5598 * std-operator.def: Remove BINOP_RANGE.
5599 * breakpoint.c (watchpoint_exp_is_const): Update.
5600 * expprint.c (dump_subexp_body_standard): Likewise.
5601 * eval.c (init_array_element): Remove dead code.
5602 (evaluate_subexp_standard): Likewise.
5603
5604 2014-07-20 Yao Qi <yao@codesourcery.com>
5605
5606 * std-operator.def: Remove BINOP_IN.
5607 * breakpoint.c (watchpoint_exp_is_const): Update.
5608 * eval.c (evaluate_subexp_standard): Likewise.
5609 * expprint.c (dump_subexp_body_standard): Likewise.
5610
5611 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5612
5613 * microblaze-tdep.c (microblaze_register_names): Add
5614 the rshr and rslr register names.
5615 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5616 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5617 Use of tdesc_numbered_register. Use of
5618 microblaze_register_g_packet_guesses. Use of
5619 tdesc_use_registers. Use of set_gdbarch_register_type.
5620 (microblaze_register_g_packet_guesses): New.
5621 * microblaze-tdep.h (microblaze_reg_num): Add
5622 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5623 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5624 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5625 * features/microblaze-core.xml: New file.
5626 * features/microblaze-stack-protect.xml: New file.
5627 * features/microblaze-with-stack-protect.c: New file.
5628 * features/microblaze-with-stack-protect.xml: New file.
5629 * features/microblaze.xml: New file.
5630 * features/microblaze.c: New file.
5631 * features/Makefile (microblaze-with-stack-protect): Add
5632 microblaze-with-stack-protect microblaze and microblaze-expedite.
5633 * regformats/microblaze-with-stack-protect.dat: New file.
5634 * regformats/microblaze.dat: New file.
5635 * doc/gdb.texinfo (MicroBlaze Features): Added.
5636
5637 2014-07-18 Tom Tromey <tromey@redhat.com>
5638
5639 * exec.c (exec_ops): Now static.
5640 * exec.h (exec_ops): Don't declare.
5641
5642 2014-07-18 Tom Tromey <tromey@redhat.com>
5643
5644 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5645 to find_target_beneath.
5646 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5647 find_target_beneath.
5648 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5649
5650 2014-07-18 Tom Tromey <tromey@redhat.com>
5651
5652 PR gdb/17130:
5653 * utils.c (quit): Use target_supports_terminal_ours.
5654 * target.h (target_supports_terminal_ours): Declare.
5655 * target.c (target_supports_delete_record): Don't check
5656 to_delete_record against NULL.
5657 (target_supports_terminal_ours): New function.
5658
5659 2014-07-18 Tom Tromey <tromey@redhat.com>
5660
5661 PR gdb/17130:
5662 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5663 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5664 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5665 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5666 * windows-nat.c (windows_xfer_partial): Always delegate.
5667 * record-btrace.c (record_btrace_xfer_partial): Simplify
5668 delegation.
5669 (record_btrace_fetch_registers, record_btrace_store_registers)
5670 (record_btrace_prepare_to_store, record_btrace_resume)
5671 (record_btrace_wait, record_btrace_find_new_threads)
5672 (record_btrace_thread_alive): Likewise.
5673 * procfs.c (procfs_xfer_partial): Always delegate.
5674 * corelow.c (core_xfer_partial): Always delegate.
5675 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5676
5677 2014-07-18 Tom Tromey <tromey@redhat.com>
5678
5679 * exec.c (exec_make_note_section): Move earlier.
5680
5681 2014-07-17 Doug Evans <dje@google.com>
5682
5683 PR gdb/17170
5684 * maint.c (count_symtabs_and_blocks): Handle NULL
5685 current_program_space.
5686 (report_command_stats): Check global enabled flag in addition to
5687 recorded enabled flag.
5688 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5689
5690 2014-07-16 Pedro Alves <palves@redhat.com>
5691
5692 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5693
5694 2014-07-16 Tom Tromey <tromey@redhat.com>
5695
5696 * target.h (struct target_ops) <to_delete_record>: Reformat
5697 comment.
5698
5699 2014-07-16 Tom Tromey <tromey@redhat.com>
5700
5701 * target-delegates.c: Rebuild.
5702
5703 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5704
5705 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5706 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5707 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5708 (avr_pointer_to_address): Likewise.
5709 (avr_address_class_type_flags): New function.
5710 (avr_address_class_type_flags_to_name): Likewise.
5711 (avr_address_class_name_to_type_flags): Likewise.
5712 (avr_gdbarch_init): Set address_class_type_flags,
5713 address_class_type_flags_to_name and
5714 address_class_name_to_type_flags.
5715
5716 2014-07-15 Pedro Alves <palves@redhat.com>
5717
5718 * linux-nat.c (kill_callback): Save errno and work with saved
5719 copy.
5720
5721 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5722
5723 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5724
5725 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5726
5727 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5728 breakpoint support correctly.
5729
5730 2014-07-14 Pedro Alves <palves@redhat.com>
5731
5732 * utils.c (prompt_for_continue): Call target_terminal_ours.
5733
5734 2014-07-14 Pedro Alves <palves@redhat.com>
5735
5736 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5737 catch_errors. Don't re-enable stdin or notify observers where,
5738 and rethrow error.
5739 (fetch_inferior_event_wrapper): Delete.
5740
5741 2014-07-14 Pedro Alves <palves@redhat.com>
5742
5743 PR gdb/17072
5744 * top.c: Include "inf-loop.h".
5745 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5746 field.
5747 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5748 was async before.
5749 (gdb_readline_wrapper): Store whether the target is async, and
5750 make it sync.
5751
5752 2014-07-14 Pedro Alves <palves@redhat.com>
5753
5754 PR gdb/17072
5755 * top.c (gdb_readline_wrapper_line): Tweak comment.
5756 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5757 the input handler callback.
5758
5759 2014-07-14 Pedro Alves <palves@redhat.com>
5760
5761 PR gdb/17072
5762 * main.c: Include event-top.h.
5763 (handle_command_errors): New function.
5764 (catch_command_errors, catch_command_errors_const): Use it.
5765
5766 2014-07-14 Pedro Alves <palves@redhat.com>
5767
5768 * exceptions.c (catch_command_errors, catch_command_errors_const):
5769 Moved to main.c.
5770 * exceptions.h (catch_command_errors_ftype)
5771 (catch_command_errors_const_ftype): Moved to main.c.
5772 (catch_command_errors, catch_command_errors_const): Delete
5773 declarations.
5774 * main.c (catch_command_errors_ftype)
5775 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5776 (catch_command_errors, catch_command_errors_const)): Moved here
5777 from exceptions.c and make static.
5778
5779 2014-07-14 Pedro Alves <palves@redhat.com>
5780
5781 * exceptions.c (print_any_exception): Delete.
5782 (catch_exceptions_with_msg): Use exception_print instead of
5783 print_any_exception.
5784 (catch_errors): Use exception_fprintf instead of
5785 print_any_exception.
5786 (catch_command_errors, catch_command_errors_const): Use
5787 exception_print instead of print_any_exception.
5788
5789 2014-07-14 Pedro Alves <palves@redhat.com>
5790
5791 * infcall.c (run_inferior_call): Set 'sync_execution' while
5792 running the inferior call.
5793
5794 2014-07-14 Pedro Alves <palves@redhat.com>
5795
5796 * value.c (value_contents_equal): Delete function.
5797 * value.h (value_contents_equal): Delete declaration.
5798
5799 2014-07-14 Tom Tromey <tromey@redhat.com>
5800
5801 PR exp/17106:
5802 * gdbtypes.c (is_dynamic_type_internal): New function, from
5803 is_dynamic_type.
5804 (is_dynamic_type): Rewrite.
5805 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5806 (resolve_dynamic_struct): Likewise.
5807 (resolve_dynamic_type_internal): New function, from
5808 resolve_dynamic_type.
5809 (resolve_dynamic_type): Rewrite.
5810
5811 2014-07-14 Tom Tromey <tromey@redhat.com>
5812
5813 * target.c (target_require_runnable): Also check record_stratum.
5814 Update comment.
5815
5816 2014-07-11 Yao Qi <yao@codesourcery.com>
5817
5818 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5819 thumb_instruction_restores_sp return true.
5820
5821 2014-07-11 Yao Qi <yao@codesourcery.com>
5822
5823 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5824 (thumb_in_function_epilogue_p): Call
5825 thumb_instruction_restores_sp.
5826
5827 2014-07-11 Yao Qi <yao@codesourcery.com>
5828
5829 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5830 'add sp, #imm'.
5831 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5832
5833 2014-07-11 Gary Benson <gbenson@redhat.com>
5834
5835 * amd64-linux-nat.c (gdbcore.h): Remove include.
5836 (regset.h): Likewise.
5837 (nat/linux-btrace.h): Likewise.
5838 (btrace.h): Likewise.
5839 (gdb_assert.h): Likewise.
5840 (string.h): Likewise.
5841 (sys/uio.h): Likewise.
5842 (sys/debugreg.h): Likewise.
5843 (sys/syscall.h): Likewise.
5844 (sys/procfs.h): Likewise.
5845 (sys/user.h): Likewise.
5846 (asm/ptrace.h): Likewise.
5847 (i386-nat.h): Likewise.
5848 * i386-linux-nat.c (i386-nat.h): Likewise.
5849 (regset.h): Likewise.
5850 (target.h): Likewise.
5851 (linux-nat.h): Likewise.
5852 (nat/linux-btrace.h): Likewise.
5853 (btrace.h): Likewise.
5854 (gdb_assert.h): Likewise.
5855 (string.h): Likewise.
5856 (sys/uio.h): Likewise.
5857 (sys/user.h): Likewise.
5858 (sys/procfs.h): Likewise.
5859 (sys/reg.h): Likewise.
5860 (sys/debugreg.h): Likewise.
5861 (ORIG_EAX): Remove definition.
5862
5863 2014-07-11 Gary Benson <gbenson@redhat.com>
5864
5865 * i386-linux-nat.h: New file.
5866 * x86-linux-nat.h: Likewise.
5867 * x86-linux-nat.c: Likewise.
5868 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5869 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5870 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5871 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5872 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5873 (PTRACE_SETREGSET): Likewise.
5874 (arch_lwp_info): Now in x86-linux-nat.c.
5875 (have_ptrace_getregset): Now in x86-linux-nat.h.
5876 (x86_linux_dr_get): Now in x86-linux-nat.c.
5877 (x86_linux_dr_set): Likewise.
5878 (x86_linux_dr_get_addr): Likewise.
5879 (x86_linux_dr_get_control): Likewise.
5880 (x86_linux_dr_get_status): Likewise.
5881 (update_debug_registers_callback): Likewise.
5882 (x86_linux_dr_set_control): Likewise.
5883 (x86_linux_dr_set_addr): Likewise.
5884 (x86_linux_prepare_to_resume): Likewise.
5885 (x86_linux_new_thread): Likewise.
5886 (x86_linux_new_fork): Likewise.
5887 (x86_linux_get_thread_area): Likewise.
5888 (super_post_startup_inferior): Likewise.
5889 (x86_linux_child_post_startup_inferior): Likewise.
5890 (AMD64_LINUX_USER64_CS): Likewise.
5891 (AMD64_LINUX_X32_DS): Likewise.
5892 (x86_linux_read_description): Likewise.
5893 (x86_linux_enable_btrace): Likewise.
5894 (x86_linux_disable_btrace): Likewise.
5895 (x86_linux_teardown_btrace): Likewise.
5896 (x86_linux_read_btrace): Likewise.
5897 (x86_linux_create_target): Likewise.
5898 (x86_linux_add_target): Likewise.
5899 * i386-linux-nat.c (x86-linux-nat.h): New include.
5900 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5901 (PTRACE_SETREGSET): Likewise.
5902 (arch_lwp_info): Now in x86-linux-nat.c.
5903 (have_ptrace_getregset): Now in x86-linux-nat.h.
5904 (x86_linux_dr_get): Now in x86-linux-nat.c.
5905 (x86_linux_dr_set): Likewise.
5906 (x86_linux_dr_get_addr): Likewise.
5907 (x86_linux_dr_get_control): Likewise.
5908 (x86_linux_dr_get_status): Likewise.
5909 (update_debug_registers_callback): Likewise.
5910 (x86_linux_dr_set_control): Likewise.
5911 (x86_linux_dr_set_addr): Likewise.
5912 (x86_linux_prepare_to_resume): Likewise.
5913 (x86_linux_new_thread): Likewise.
5914 (x86_linux_new_fork): Likewise.
5915 (x86_linux_get_thread_area): Likewise.
5916 (super_post_startup_inferior): Likewise.
5917 (x86_linux_child_post_startup_inferior): Likewise.
5918 (AMD64_LINUX_USER64_CS): Likewise.
5919 (AMD64_LINUX_X32_DS): Likewise.
5920 (x86_linux_read_description): Likewise.
5921 (x86_linux_enable_btrace): Likewise.
5922 (x86_linux_disable_btrace): Likewise.
5923 (x86_linux_teardown_btrace): Likewise.
5924 (x86_linux_read_btrace): Likewise.
5925 (x86_linux_create_target): Likewise.
5926 (x86_linux_add_target): Likewise.
5927
5928 2014-07-11 Gary Benson <gbenson@redhat.com>
5929
5930 * amd64-linux-nat.c: Comment and whitespace changes.
5931 * i386-linux-nat.c: Comment and whitespace changes.
5932
5933 2014-07-11 Gary Benson <gbenson@redhat.com>
5934
5935 * amd64-linux-nat.c (x86_linux_create_target): New function.
5936 (x86_linux_add_target): Likewise.
5937 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5938 * i386-linux-nat.c (x86_linux_create_target): New function.
5939 (x86_linux_add_target): Likewise.
5940 (_initialize_i386_linux_nat): Delegate to the above new functions.
5941
5942 2014-07-11 Gary Benson <gbenson@redhat.com>
5943
5944 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5945 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5946 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5947 (ps_get_thread_area): Delegate to the above.
5948
5949 2014-07-11 Gary Benson <gbenson@redhat.com>
5950
5951 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5952 x86_linux_read_description. All uses updated. amd64-specific
5953 code conditionalized. Conditionalized i386-specific code added.
5954 Redundant cast removed.
5955 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5956 x86_linux_read_description. All uses updated. i386-specific
5957 code conditionalized. Conditionalized amd64-specific code added.
5958 One sizeof replaced with the actual type it is describing.
5959
5960 2014-07-11 Gary Benson <gbenson@redhat.com>
5961
5962 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5963 x86_linux_dr_get. All uses updated.
5964 (amd64_linux_dr_set): Renamed to
5965 x86_linux_dr_set. All uses updated.
5966 (amd64_linux_dr_get_addr): Renamed to
5967 x86_linux_dr_get_addr. All uses updated.
5968 (amd64_linux_dr_get_control): Renamed to
5969 x86_linux_dr_get_control. All uses updated.
5970 (amd64_linux_dr_get_status): Renamed to
5971 x86_linux_dr_get_status. All uses updated.
5972 (amd64_linux_dr_set_control): Renamed to
5973 x86_linux_dr_set_control. All uses updated.
5974 (amd64_linux_dr_set_addr): Renamed to
5975 x86_linux_dr_set_addr. All uses updated.
5976 (amd64_linux_prepare_to_resume): Renamed to
5977 x86_linux_prepare_to_resume. All uses updated.
5978 (amd64_linux_new_thread): Renamed to
5979 x86_linux_new_thread. All uses updated.
5980 (amd64_linux_new_fork): Renamed to
5981 x86_linux_new_fork. All uses updated.
5982 (amd64_linux_child_post_startup_inferior): Renamed to
5983 x86_linux_child_post_startup_inferior. All uses updated.
5984 (amd64_linux_enable_btrace): Renamed to
5985 x86_linux_enable_btrace. All uses updated.
5986 (amd64_linux_disable_btrace): Renamed to
5987 x86_linux_disable_btrace. All uses updated.
5988 (amd64_linux_teardown_btrace): Renamed to
5989 x86_linux_teardown_btrace. All uses updated.
5990 (amd64_linux_read_btrace): Renamed to
5991 x86_linux_read_btrace. All uses updated.
5992 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5993 x86_linux_dr_get. All uses updated.
5994 (i386_linux_dr_set): Renamed to
5995 x86_linux_dr_set. All uses updated.
5996 (i386_linux_dr_get_addr): Renamed to
5997 x86_linux_dr_get_addr. All uses updated.
5998 (i386_linux_dr_get_control): Renamed to
5999 x86_linux_dr_get_control. All uses updated.
6000 (i386_linux_dr_get_status): Renamed to
6001 x86_linux_dr_get_status. All uses updated.
6002 (i386_linux_dr_set_control): Renamed to
6003 x86_linux_dr_set_control. All uses updated.
6004 (i386_linux_dr_set_addr): Renamed to
6005 x86_linux_dr_set_addr. All uses updated.
6006 (i386_linux_prepare_to_resume): Renamed to
6007 x86_linux_prepare_to_resume. All uses updated.
6008 (i386_linux_new_thread): Renamed to
6009 x86_linux_new_thread. All uses updated.
6010 (i386_linux_new_fork): Renamed to
6011 x86_linux_new_fork. All uses updated.
6012 (i386_linux_child_post_startup_inferior): Renamed to
6013 x86_linux_child_post_startup_inferior. All uses updated.
6014 (i386_linux_enable_btrace): Renamed to
6015 x86_linux_enable_btrace. All uses updated.
6016 (i386_linux_disable_btrace): Renamed to
6017 x86_linux_disable_btrace. All uses updated.
6018 (i386_linux_teardown_btrace): Renamed to
6019 x86_linux_teardown_btrace. All uses updated.
6020 (i386_linux_read_btrace): Renamed to
6021 x86_linux_read_btrace. All uses updated.
6022
6023 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
6024
6025 * remote.c (extended_remote_post_attach): New function.
6026 (init_extended_remote_ops): Install it as to_post_attach method.
6027
6028 2014-07-09 Pedro Alves <palves@redhat.com>
6029
6030 * infcmd.c (attach_command_post_wait): Don't call
6031 target_terminal_inferior here.
6032 (attach_command): Call it here instead.
6033
6034 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
6035
6036 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6037 field.
6038 * c-varobj.c (c_is_path_expr_parent): New function, moved core
6039 from varobj.c, with additional checks.
6040 (c_varobj_ops): Fill in is_path_expr_parent field.
6041 (cplus_varobj_ops): Fill in is_path_expr_parent field.
6042 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6043 field.
6044 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6045 ops method.
6046 (varobj_default_is_path_expr_parent): New function.
6047 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6048 (varobj_default_is_path_expr_parent): Declare new function.
6049
6050 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
6051
6052 * infcmd.c (finish_backward): Turn internal error into normal error.
6053
6054 2014-07-07 Pedro Alves <palves@redhat.com>
6055
6056 PR gdb/17096
6057 * remote.c (async_handle_remote_sigint)
6058 (async_handle_remote_sigint_twice): Call
6059 gdb_call_async_signal_handler instead of
6060 mark_async_signal_handler.
6061
6062 2014-07-07 Tom Tromey <tromey@redhat.com>
6063
6064 * target-delegates.c: Rebuild.
6065 * target.c (target_info_record): Remove.
6066 * record.c (info_record_command): Unconditionally call
6067 to_info_record.
6068 * target.h (struct target_ops) <to_info_record>: Use
6069 TARGET_DEFAULT_IGNORE.
6070 (target_info_record): Remove.
6071
6072 2014-07-07 Tom Tromey <tromey@redhat.com>
6073
6074 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6075 TARGET_DEFAULT_NORETURN.
6076 * target.c (generic_tls_error): New function.
6077 (target_translate_tls_address): Don't search target stack.
6078 * target-delegates.c: Rebuild.
6079 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6080 stack.
6081 * linux-thread-db.c (thread_db_get_thread_local_address):
6082 Unconditionally call beneath target.
6083
6084 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6085
6086 * cli/cli-logging.c (pop_output_files): Assign targerr to
6087 gdb_stdtargerr.
6088
6089 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6090
6091 * MAINTAINERS (Write After Approval): Update my email address.
6092
6093 2014-07-02 Gary Benson <gbenson@redhat.com>
6094
6095 * proc-service.c (ps_xfer_memory): Update comment.
6096 (ps_pstop): Remove unused function.
6097 (ps_pcontinue): Likewise.
6098 (ps_lstop): Likewise.
6099 (ps_lcontinue): Likewise.
6100 (ps_lgetxregsize): Likewise.
6101 (ps_lgetxregs): Likewise.
6102 (ps_lsetxregs): Likewise.
6103 (ps_plog): Likewise.
6104 (ps_ptread): Likewise.
6105 (ps_ptwrite): Likewise.
6106
6107 2014-07-01 Mark Wielaard <mjw@redhat.com>
6108
6109 * dwarf2read.c (add_array_cv_type): New function.
6110 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6111 (read_tag_volatile_type): Likewise.
6112
6113 2014-07-01 Tom Tromey <tromey@redhat.com>
6114
6115 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6116 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6117 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6118 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6119 * command.h (cmd_cfunc_ftype): Move earlier.
6120 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6121 (add_com, add_info): Use cmd_cfunc_ftype.
6122
6123 2014-06-30 Tom Tromey <tromey@redhat.com>
6124
6125 * symtab.c (operator_chars): Make parameters and return type
6126 const.
6127 (file_matches): Make "files" const.
6128 (struct search_symbols_data) <files>: Now const.
6129 (search_symbols): Make "regexp" and "files" parameters const.
6130 Update.
6131 (symtab_symbol_info): Remove cast.
6132 (rbreak_command): Update.
6133 * symtab.h (search_symbols): Update.
6134
6135 2014-06-27 Yao Qi <yao@codesourcery.com>
6136
6137 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6138 Change parameter type to 'struct thread_info *'. Caller
6139 updated.
6140 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6141 Update declaration.
6142 * dummy-frame.c (struct dummy_frame_id): New.
6143 (dummy_frame_id_eq): New function.
6144 (struct dummy_frame) <id>: Change its type to 'struct
6145 dummy_frame_id'.
6146 (dummy_frame_push): Add parameter ptid and save it in
6147 dummy_frame_id.
6148 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6149 inferior_ptid.
6150 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6151 to inferior_ptid.
6152 (lookup_dummy_frame): Change parameter type to 'struct
6153 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6154 instead of frame_id_eq.
6155 (dummy_frame_pop): Add parameter ptid. Callers updated.
6156 Update comments. Compose dummy_frame_id and pass it to
6157 lookup_dummy_frame.
6158 (dummy_frame_discard): Add parameter ptid.
6159 (dummy_frame_sniffer): Compose dummy_frame_id and call
6160 dummy_frame_id_eq instead of frame_id_eq.
6161 (fprint_dummy_frames): Print ptid.
6162 * dummy-frame.h: Remove comments.
6163 (dummy_frame_push): Add ptid in declaration.
6164 (dummy_frame_pop, dummy_frame_discard): Likewise.
6165
6166 2014-06-26 Tom Tromey <tromey@redhat.com>
6167
6168 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6169 * command.h (error_no_arg): Update.
6170
6171 2014-06-26 Tom Tromey <tromey@redhat.com>
6172
6173 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6174 (do_show_command): Make "arg" const.
6175 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6176
6177 2014-06-26 Tom Tromey <tromey@redhat.com>
6178
6179 * record-full.c (record_full_get_bookmark): Make "args" const.
6180 (record_full_goto_bookmark): Make "raw_bookmark" const.
6181 * record.c (record_goto): New function.
6182 (cmd_record_goto): Use it. Now static.
6183 * record.h (record_goto): Declare.
6184 (cmd_record_goto): Remove declaration.
6185 * target-delegates.c: Rebuild.
6186 * target.h (struct target_ops) <to_get_bookmark,
6187 to_goto_bookmark>: Make parameter const.
6188
6189 2014-06-26 Tom Tromey <tromey@redhat.com>
6190
6191 * defs.h (generic_load): Update.
6192 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6193 * monitor.c (monitor_load): Make "args" const.
6194 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6195 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6196 const.
6197 (mips_load): Make "file" const.
6198 * remote-sim.c (gdbsim_load): Make "args" const.
6199 * remote.c (remote_load): Make "name" const.
6200 * symfile.c (generic_load): Make "args" const.
6201 * target-delegates.c: Rebuild.
6202 * target.c (target_load): Make "arg" const.
6203 (debug_to_load): Make "args" const.
6204 * target.h (struct target_ops) <to_load>: Make parameter const.
6205 (target_load): Update.
6206
6207 2014-06-26 Tom Tromey <tromey@redhat.com>
6208
6209 PR symtab/16902:
6210 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6211 (dwarf2_physname, read_partial_die)
6212 (guess_partial_die_structure_name, fixup_partial_die)
6213 (guess_full_die_structure_name, anonymous_struct_prefix)
6214 (dwarf2_name): Use per-BFD obstack.
6215
6216 2014-06-26 Yao Qi <yao@codesourcery.com>
6217
6218 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6219 dummyframe and this_id into inner block below.
6220
6221 2014-06-26 Yao Qi <yao@codesourcery.com>
6222
6223 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6224 with "signal_pass[0]" in the initialization of signal_pass.
6225
6226 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6227
6228 * record-btrace.c (record_btrace_generating_corefile)
6229 (record_btrace_prepare_to_generate_core)
6230 (record_btrace_done_generating_core): New.
6231 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6232 (record_btrace_store_registers, record_btrace_prepare_to_store):
6233 Forward request when generating a core file.
6234 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6235 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6236 to_done_generating_core.
6237
6238 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6239
6240 * target.h (target_ops) <to_prepare_to_generate_core>
6241 <to_done_generating_core>: New.
6242 (target_prepare_to_generate_core, target_done_generating_core): New.
6243 * target.c (target_prepare_to_generate_core)
6244 (target_done_generating_core): New.
6245 * target-delegates.c: Regenerate.
6246 * gcore.c: (write_gcore_file): Rename to ...
6247 (write_gcore_file_1): ...this.
6248 (write_gcore_file): Call target_prepare_to_generate_core
6249 and target_done_generating_core.
6250
6251 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6252
6253 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6254 * gcore.c (write_gcore_file): Free memory returned from
6255 make_corefile_notes.
6256 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6257 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6258
6259 2014-06-24 Yao Qi <yao@codesourcery.com>
6260
6261 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6262 (arm_linux_init_abi): Set skip_trampoline_code with
6263 gdbarch_skip_trampoline_code instead of
6264 find_solib_trampoline_target.
6265
6266 2014-06-24 Yao Qi <yao@codesourcery.com>
6267
6268 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6269 arm_skip_bx_reg returns non-zero.
6270
6271 2014-06-24 Yao Qi <yao@codesourcery.com>
6272
6273 * arm-tdep.c (arm_skip_bx_reg): New function.
6274 (arm_skip_stub): Call arm_skip_bx_reg.
6275
6276 2014-06-23 Don Breazeal <donb@codesourcery.com>
6277
6278 * MAINTAINERS: Add myself as write-after-approval maintainer.
6279
6280 2014-06-23 Pedro Alves <palves@redhat.com>
6281
6282 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6283 DR_CONTROL before setting DR0..DR3.
6284 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6285 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6286 bits of DR_CONTROL related to the debug register slot being
6287 disabled. If all slots are vacant, clear local slowdown as well,
6288 and assert DR_CONTROL is 0.
6289
6290 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6291
6292 * python/lib/gdb/command/xmethods.py
6293 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6294 current progspace only if the string "progspace" matches LOCUS_RE.
6295
6296 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6297
6298 Fix --with-system-readline with readline-6.3 patch 5.
6299 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6300 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6301 types.
6302
6303 2014-06-20 Tom Tromey <tromey@redhat.com>
6304
6305 * dwarf2read.c (dw2_get_real_path): Use correct type in
6306 OBSTACK_CALLOC.
6307 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6308
6309 2014-06-20 Gary Benson <gbenson@redhat.com>
6310
6311 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6312 * common/glibc_thread_db.h: Likewise.
6313 * common/i386-cpuid.h: Likewise.
6314 * common/i386-gcc-cpuid.h: Likewise.
6315 * common/linux-btrace.h: Likewise.
6316 * common/linux-osdata.h: Likewise.
6317 * common/linux-procfs.h: Likewise.
6318 * common/linux-ptrace.h: Likewise.
6319 * common/mips-linux-watch.h: Likewise.
6320 * common/linux-btrace.c: Moved to nat.
6321 * common/linux-osdata.c: Likewise.
6322 * common/linux-procfs.c: Likewise.
6323 * common/linux-ptrace.c: Likewise.
6324 * common/mips-linux-watch.c: Likewise.
6325 * nat/gdb_thread_db.h: Moved from common.
6326 * nat/glibc_thread_db.h: Likewise.
6327 * nat/i386-cpuid.h: Likewise.
6328 * nat/i386-gcc-cpuid.h: Likewise.
6329 * nat/linux-btrace.c: Likewise.
6330 * nat/linux-btrace.h: Likewise.
6331 * nat/linux-osdata.c: Likewise.
6332 * nat/linux-osdata.h: Likewise.
6333 * nat/linux-procfs.c: Likewise.
6334 * nat/linux-procfs.h: Likewise.
6335 * nat/linux-ptrace.c: Likewise.
6336 * nat/linux-ptrace.h: Likewise.
6337 * nat/mips-linux-watch.c: Likewise.
6338 * nat/mips-linux-watch.h: Likewise.
6339 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6340 (object file files): Reordered.
6341 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6342 of glibc_thread_db.h.
6343
6344 2014-06-20 Gary Benson <gbenson@redhat.com>
6345
6346 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6347 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6348 (i386_dr_low): Likewise.
6349 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6350 (i386_dr_low_set_addr): Likewise.
6351 (i386_dr_low_get_addr): Likewise.
6352 (i386_dr_low_can_set_control): Likewise.
6353 (i386_dr_low_set_control): Likewise.
6354 (i386_dr_low_get_control): Likewise.
6355 (i386_dr_low_get_status): Likewise.
6356 (i386_get_debug_register_length): Likewise.
6357 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6358 (i386_dr_low): Likewise.
6359 * nat/i386-dregs.c (i386-low.h): Remove include.
6360 (i386-nat.h): Likewise.
6361 (nat/i386-dregs.h): New include.
6362 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6363 (i386_dr_low_set_addr): Likewise.
6364 (i386_dr_low_get_addr): Likewise.
6365 (i386_dr_low_can_set_control): Likewise.
6366 (i386_dr_low_set_control): Likewise.
6367 (i386_dr_low_get_control): Likewise.
6368 (i386_dr_low_get_status): Likewise.
6369 (i386_get_debug_register_length): Likewise.
6370 (debug_hw_points): Likewise.
6371
6372 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6373
6374 * Makefile.in (SFILES): Add d-exp.y.
6375 (YYFILES): Add d-exp.c.
6376 (YYOBJ): Add d-exp.o.
6377 (local-maintainer-clean): Delete d-exp.c.
6378 * d-exp.y: New file.
6379 * d-lang.h (d_parse): New declaration.
6380 (d_error): New declaration.
6381 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6382 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6383 PREC_ORDER operators.
6384 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6385
6386 2014-06-19 Yao Qi <yao@codesourcery.com>
6387
6388 * gdbthread.h (any_running): Remove the declaration.
6389 * thread.c (any_running): Remove.
6390
6391 2014-06-19 Yao Qi <yao@codesourcery.com>
6392
6393 * gdbthread.h (struct thread_info) <state>: Change its type to
6394 'enum thread_state'. Update comments.
6395
6396 2014-06-19 Pedro Alves <palves@redhat.com>
6397
6398 * gdbthread.h (ALL_THREADS): Delete.
6399 (ALL_NON_EXITED_THREADS): New macro.
6400 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6401 instead of ALL_THREADS.
6402 * infrun.c (find_thread_needs_step_over)
6403 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6404 instead of ALL_THREADS.
6405 * record-btrace.c (record_btrace_open)
6406 (record_btrace_stop_recording, record_btrace_close)
6407 (record_btrace_is_replaying, record_btrace_resume)
6408 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6409 * remote.c (append_pending_thread_resumptions): Likewise.
6410 * thread.c (thread_apply_all_command): Likewise.
6411
6412 2014-06-19 Gary Benson <gbenson@redhat.com>
6413
6414 * i386-nat.c (i386_stopped_by_watchpoint):
6415 Use i386_dr_stopped_by_watchpoint.
6416 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6417 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6418
6419 2014-06-19 Gary Benson <gbenson@redhat.com>
6420
6421 * nat/i386-dregs.c: New file.
6422 * Makefile.in (i386-dregs.o): New rule.
6423 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6424 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6425 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6426 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6427 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6428 * config/i386/go32.mh (NATDEPFILES): Likewise.
6429 * config/i386/linux.mh (NATDEPFILES): Likewise.
6430 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6431 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6432 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6433 * i386-nat.h (debug_hw_points): New declaration.
6434 * i386-nat.c (breakpoint.h): Remove include.
6435 (command.h): Likewise.
6436 (target.h): Likewise.
6437 (gdb_assert.h): Likewise.
6438 (debug_hw_points): Made nonstatic.
6439 (debug_printf): Now in i386-dregs.c.
6440 (TARGET_HAS_DR_LEN_8): Likewise.
6441 (DR_CONTROL_SHIFT): Likewise.
6442 (DR_CONTROL_SIZE): Likewise.
6443 (DR_RW_EXECUTE): Likewise.
6444 (DR_RW_WRITE): Likewise.
6445 (DR_RW_READ): Likewise.
6446 (DR_RW_IORW): Likewise.
6447 (DR_LEN_1): Likewise.
6448 (DR_LEN_2): Likewise.
6449 (DR_LEN_4): Likewise.
6450 (DR_LEN_8): Likewise.
6451 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6452 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6453 (DR_ENABLE_SIZE): Likewise.
6454 (DR_LOCAL_SLOWDOWN): Likewise.
6455 (DR_GLOBAL_SLOWDOWN): Likewise.
6456 (DR_CONTROL_RESERVED): Likewise.
6457 (I386_DR_CONTROL_MASK): Likewise.
6458 (I386_DR_VACANT): Likewise.
6459 (I386_DR_LOCAL_ENABLE): Likewise.
6460 (I386_DR_GLOBAL_ENABLE): Likewise.
6461 (I386_DR_DISABLE): Likewise.
6462 (I386_DR_SET_RW_LEN): Likewise.
6463 (I386_DR_GET_RW_LEN): Likewise.
6464 (I386_DR_WATCH_HIT): Likewise.
6465 (i386_wp_op_t): Likewise.
6466 (i386_show_dr): Likewise.
6467 (i386_length_and_rw_bits): Likewise.
6468 (i386_insert_aligned_watchpoint): Likewise.
6469 (i386_remove_aligned_watchpoint): Likewise.
6470 (i386_handle_nonaligned_watchpoint): Likewise.
6471 (i386_update_inferior_debug_regs): Likewise.
6472 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6473 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6474 (i386_region_ok_for_watchpoint):
6475 Use i386_dr_region_ok_for_watchpoint.
6476 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6477
6478 2014-06-19 Gary Benson <gbenson@redhat.com>
6479
6480 * i386-nat.c (i386_insert_hw_breakpoint): Use
6481 i386_insert_watchpoint.
6482 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6483
6484 2014-06-19 Gary Benson <gbenson@redhat.com>
6485
6486 * i386-nat.c (i386_dr_show): Renamed to
6487 i386_show_dr and made static. All uses updated.
6488 (i386_dr_length_and_rw_bits): Renamed to
6489 i386_length_and_rw_bits and made static.
6490 All uses updated.
6491 (i386_dr_insert_aligned_watchpoint): Renamed to
6492 i386_insert_aligned_watchpoint and made static.
6493 All uses updated.
6494 (i386_dr_remove_aligned_watchpoint): Renamed to
6495 i386_remove_aligned_watchpoint and made static.
6496 All uses updated.
6497 (i386_dr_update_inferior_debug_regs): Renamed to
6498 i386_update_inferior_debug_regs and made static.
6499 All uses updated.
6500 * nat/i386-dregs.h (i386_dr_show): Removed.
6501 (i386_dr_length_and_rw_bits): Likewise.
6502 (i386_dr_insert_aligned_watchpoint): Likewise.
6503 (i386_dr_remove_aligned_watchpoint): Likewise.
6504 (i386_dr_update_inferior_debug_regs): Likewise.
6505
6506 2014-06-19 Gary Benson <gbenson@redhat.com>
6507
6508 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6509 * configure: Regenerate.
6510 * config.in: Likewise.
6511 * main.c (signal.h): New include.
6512 (setup_alternate_signal_stack): New function.
6513 (captured_main): Call the above.
6514 * cp-support.c (signal.h): New include.
6515 (catch_demangler_crashes): New flag.
6516 (SIGJMP_BUF): New define.
6517 (SIGSETJMP): Likewise.
6518 (SIGLONGJMP): Likewise.
6519 (gdb_demangle_jmp_buf): New static global.
6520 (gdb_demangle_attempt_core_dump): Likewise.
6521 (gdb_demangle_signal_handler): New function.
6522 (gdb_demangle): If catch_demangler_crashes is set, install the
6523 above signal handler before calling bfd_demangle, and restore
6524 the original signal handler afterwards. Display the offending
6525 symbol and call demangler_warning the first time a segmentation
6526 fault is caught.
6527 (_initialize_cp_support): New maint set/show command.
6528
6529 2014-06-19 Gary Benson <gbenson@redhat.com>
6530
6531 * utils.h (resource_limit_kind): New enum.
6532 (can_dump_core): New declaration.
6533 (warn_cant_dump_core): Likewise.
6534 (dump_core): Likewise.
6535 * utils.c (dump_core): Made nonstatic. Added new
6536 parameter "limit_kind".
6537 (can_dump_core): Made nonstatic. Moved printing code to...
6538 (warn_cant_dump_core): New function.
6539 (can_dump_core_warn): Likewise.
6540 (internal_vproblem): Replace calls to can_dump_core with
6541 calls to can_dump_core_warn. Supply new argument to each.
6542
6543 2014-06-19 Gary Benson <gbenson@redhat.com>
6544
6545 * utils.h (demangler_vwarning): New declaration.
6546 (demangler_warning): Likewise.
6547 * utils.c (struct internal_problem)
6548 <user_settable_should_quit>: New field.
6549 <user_settable_should_dump_core>: Likewise
6550 (internal_error_problem): Add values for above new fields.
6551 (internal_warning_problem): Likewise.
6552 (demangler_warning_problem): New static global.
6553 (demangler_vwarning): New function.
6554 (demangler_warning): Likewise.
6555 (add_internal_problem_command): Selectively add commands.
6556 (_initialize_utils): New internal problem command.
6557 * maint.c (maintenance_demangler_warning): New function.
6558 (_initialize_maint_cmds): New command.
6559
6560 2014-06-18 Tom Tromey <tromey@redhat.com>
6561
6562 * f-valprint.c (info_common_command_for_block): Update.
6563 * symtab.h (struct general_symbol_info) <common_block>: Now
6564 const.
6565
6566 2014-06-18 Tom Tromey <tromey@redhat.com>
6567
6568 * symtab.h (struct symtab) <blockvector>: Now const.
6569 * ada-lang.c (ada_add_global_exceptions): Update.
6570 * buildsym.c (augment_type_symtab): Update.
6571 * dwarf2read.c (dw2_lookup_symbol): Update.
6572 * jit.c (finalize_symtab): Update.
6573 * jv-lang.c (add_class_symtab_symbol): Update.
6574 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6575 Update.
6576 * objfiles.c (objfile_relocate1): Update.
6577 * psymtab.c (lookup_symbol_aux_psymtabs)
6578 (maintenance_check_psymtabs): Update.
6579 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6580 Update.
6581 * spu-tdep.c (spu_catch_start): Update.
6582 * symmisc.c (dump_symtab_1): Update.
6583 * symtab.c (lookup_global_symbol_from_objfile)
6584 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6585 (basic_lookup_transparent_type_quick)
6586 (basic_lookup_transparent_type, find_pc_sect_symtab)
6587 (find_pc_sect_line, search_symbols): Update.
6588 * block.c (find_block_in_blockvector): Make "bl" const.
6589 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6590 const.
6591 (blockvector_contains_pc): Make "bv" const.
6592 (block_for_pc_sect): Update.
6593 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6594 (blockvector_contains_pc): Update.
6595 * breakpoint.c (resolve_sal_pc): Update.
6596 * inline-frame.c (block_starting_point_at): Update.
6597
6598 2014-06-18 Tom Tromey <tromey@redhat.com>
6599
6600 * completer.c (complete_line): Make "line_buffer" const.
6601 * completer.h (complete_line): Update.
6602
6603 2014-06-18 Tom Tromey <tromey@redhat.com>
6604
6605 * symtab.c (add_macro_name): Remove unneeded cast.
6606
6607 2014-06-18 Tom Tromey <tromey@redhat.com>
6608
6609 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6610 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6611
6612 2014-06-18 Tom Tromey <tromey@redhat.com>
6613
6614 * probe.c (info_probes_for_ops): Make "arg" const.
6615 * probe.h (info_probes_for_ops): Update.
6616
6617 2014-06-18 Tom Tromey <tromey@redhat.com>
6618
6619 * varobj.c (varobj_create): Update.
6620 * valops.c (value_of_this): Update.
6621 * tracepoint.c (add_local_symbols, scope_info): Update.
6622 * symtab.h (struct general_symbol_info) <block>: Now const.
6623 * symtab.c (skip_prologue_sal)
6624 (default_make_symbol_completion_list_break_on)
6625 (skip_prologue_using_sal): Update.
6626 * stack.h (iterate_over_block_locals)
6627 (iterate_over_block_local_vars): Update.
6628 * stack.c (print_frame_args): Update.
6629 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6630 parameter const.
6631 (get_selected_block): Make return type const.
6632 * python/py-frame.c (frapy_block): Update.
6633 * python/py-block.c (gdbpy_block_for_pc): Update.
6634 * p-exp.y (%union) <bval>: Now const.
6635 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6636 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6637 * m2-exp.y (%union) <bval>: Now const.
6638 * linespec.c (get_current_search_block): Make return type const.
6639 (create_sals_line_offset, find_label_symbols): Update.
6640 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6641 Update.
6642 (block_starting_point_at): Make "block" const.
6643 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6644 (check_exception_resume): Update.
6645 * guile/scm-frame.c (gdbscm_frame_block): Update.
6646 * guile/scm-block.c (gdbscm_lookup_block): Update.
6647 * frame.h (get_frame_block): Update.
6648 (get_selected_block): Make return type const.
6649 * frame.c (frame_id_inner): Update.
6650 * f-valprint.c (info_common_command_for_block)
6651 (info_common_command): Update.
6652 * dwarf2loc.c (dwarf2_find_location_expression)
6653 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6654 (locexpr_describe_location_piece): Update.
6655 * c-exp.y (%union) <bval>: Now const.
6656 * breakpoint.c (resolve_sal_pc): Update.
6657 * blockframe.c (get_frame_block):Make return type const.
6658 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6659 (block_innermost_frame): Update.
6660 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6661 (block_for_pc, block_for_pc_sect): Update.
6662 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6663 'pblock' const.
6664 (block_for_pc_sect, block_for_pc): Make return type const.
6665 * ax-gdb.c (gen_expr): Update.
6666 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6667 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6668 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6669 (ada_read_var_value): Update.
6670 * ada-exp.y (struct name_info) <block>: Now const.
6671 (%union): Likewise.
6672 (block_lookup): Constify.
6673
6674 2014-06-18 Gary Benson <gbenson@redhat.com>
6675
6676 * nat/i386-dregs.h: New file.
6677 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6678 * i386-nat.h (i386-dregs.h): New include.
6679 (DR_FIRSTADDR): Now in i386-dregs.h.
6680 (DR_LASTADDR): Likewise.
6681 (DR_NADDR): Likewise.
6682 (DR_STATUS): Likewise.
6683 (DR_CONTROL): Likewise.
6684 (i386_debug_reg_state): Likewise.
6685 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6686
6687 2014-06-18 Don Breazeal <donb@codesourcery.com>
6688
6689 * breakpoint.c (set_longjmp_breakpoint): Call
6690 momentary_breakpoint_from_master with additional argument.
6691 (set_longjmp_breakpoint_for_call_dummy): Call
6692 momentary_breakpoint_from_master with additional argument.
6693 (set_std_terminate_breakpoint): Call
6694 momentary_breakpoint_from_master with additional argument.
6695 (momentary_breakpoint_from_master): Add argument to function
6696 definition and use it to initialize structure member flag.
6697 (clone_momentary_breakpoint): Call
6698 momentary_breakpoint_from_master with additional argument.
6699 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6700 member flags set in momentary_breakpoint_from_master.
6701
6702 2014-06-18 Gary Benson <gbenson@redhat.com>
6703
6704 * i386-nat.c (i386_show_dr): Renamed to
6705 i386_dr_show and made nonstatic. All uses updated.
6706 (i386_length_and_rw_bits): Renamed to
6707 i386_dr_length_and_rw_bits and made nonstatic.
6708 All uses updated.
6709 (i386_insert_aligned_watchpoint): Renamed to
6710 i386_dr_insert_aligned_watchpoint and made nonstatic.
6711 All uses updated.
6712 (i386_remove_aligned_watchpoint): Renamed to
6713 i386_dr_remove_aligned_watchpoint and made nonstatic.
6714 All uses updated.
6715 (i386_update_inferior_debug_regs): Renamed to
6716 i386_dr_update_inferior_debug_regs and made nonstatic.
6717 All uses updated.
6718
6719 2014-06-18 Gary Benson <gbenson@redhat.com>
6720
6721 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6722 (i386_dr_low_can_set_control): Likewise.
6723 (i386_dr_low_set_addr): Likewise.
6724 (i386_dr_low_set_control): Likewise.
6725 (i386_dr_low_get_addr): Likewise.
6726 (i386_dr_low_get_status): Likewise.
6727 (i386_dr_low_get_control): Likewise.
6728 (i386_insert_aligned_watchpoint): Use new macros.
6729 (i386_update_inferior_debug_regs): Likewise.
6730 (i386_stopped_data_address): Likewise.
6731
6732 2014-06-18 Gary Benson <gbenson@redhat.com>
6733
6734 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6735 New parameter. All uses updated.
6736
6737 2014-06-18 Gary Benson <gbenson@redhat.com>
6738
6739 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6740 All uses updated.
6741
6742 2014-06-18 Gary Benson <gbenson@redhat.com>
6743
6744 * i386-nat.c (debug_printf): New macro.
6745 (i386_get_debug_register_length): Likewise.
6746 (TARGET_HAS_DR_LEN_8): Use above macro.
6747 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6748 and printf_unfiltered. Use phex to format values.
6749
6750 2014-06-18 Gary Benson <gbenson@redhat.com>
6751
6752 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6753 Make const.
6754
6755 2014-06-18 Gary Benson <gbenson@redhat.com>
6756
6757 * i386-nat.c: Comment changes.
6758
6759 2014-06-18 Gary Benson <gbenson@redhat.com>
6760
6761 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6762
6763 2014-06-18 Gary Benson <gbenson@redhat.com>
6764
6765 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6766 (i386_insert_aligned_watchpoint): Likewise.
6767 (i386_remove_aligned_watchpoint): Likewise.
6768 (i386_handle_nonaligned_watchpoint): Likewise.
6769
6770 2014-06-18 Gary Benson <gbenson@redhat.com>
6771
6772 * i386-nat.c: Whitespace changes.
6773
6774 2014-06-17 Samuel Bronson <naesten@gmail.com>
6775
6776 * MAINTAINERS: Update Roland McGrath's email address.
6777 Thanks to Sergio Durigan Junior for pointing out that he left
6778 Red Hat a while ago, and giving me a current address.
6779
6780 2014-06-17 Tom Tromey <tromey@redhat.com>
6781
6782 * utils.h (savestring): Remove declaration.
6783
6784 2014-06-17 Tom Tromey <tromey@redhat.com>
6785
6786 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6787
6788 2014-06-16 Keith Seitz <keiths@redhat.com>
6789
6790 PR mi/15863
6791 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6792 to update the varobj if inferior_ptid is null_ptid.
6793
6794 2014-06-16 Tom Tromey <tromey@redhat.com>
6795
6796 * target.h (struct target_ops) <to_info_proc>: Make parameter
6797 const.
6798 (target_info_proc): Update.
6799 * target.c (target_info_proc): Make "args" const.
6800 * procfs.c (procfs_info_proc): Update.
6801 * linux-tdep.c (linux_info_proc): Update.
6802 (linux_core_info_proc_mappings): Make "args" const.
6803 (linux_core_info_proc): Update.
6804 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6805 * gdbarch.c: Rebuild.
6806 * gdbarch.h: Rebuild.
6807 * corelow.c (core_info_proc): Update.
6808
6809 2014-06-16 Tom Tromey <tromey@redhat.com>
6810
6811 * target.h (struct target_ops) <to_disconnect>: Make parameter
6812 const.
6813 (target_disconnect): Update.
6814 * target.c (target_disconnect): Make "args" const.
6815 * target-delegates.c: Rebuild.
6816 * remote.c (remote_disconnect): Update.
6817 * record.h (record_disconnect): Update.
6818 * record.c (record_disconnect): Update.
6819 * inf-child.c (inf_child_disconnect): Update.
6820
6821 2014-06-16 Tom Tromey <tromey@redhat.com>
6822
6823 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6824 * target.c (debug_to_rcmd, default_rcmd): Update.
6825 * target-delegates.c: Rebuild.
6826 * remote.c (remote_rcmd): Update.
6827 * monitor.c (monitor_rcmd): Update.
6828
6829 2014-06-16 Pedro Alves <palves@redhat.com>
6830
6831 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6832 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6833 have OBJF_SHARED set.
6834 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6835 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6836 instead of OBJF_USERLOADED.
6837 * objfiles.h (OBJF_SHARED): Update comment.
6838 (userloaded_objfile_contains_address_p): Rename to ...
6839 (shared_objfile_contains_address_p): ... this, and update
6840 comments.
6841 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6842 new objfile.
6843 (remove_symbol_file_command): Skip objfiles that don't have
6844 OBJF_SHARED set.
6845
6846 2014-06-16 Tom Tromey <tromey@redhat.com>
6847
6848 * minsyms.h (prim_record_minimal_symbol)
6849 (prim_record_minimal_symbol_and_info): Update comments.
6850
6851 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6852
6853 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6854 or --without-guile, according to how GDB was built.
6855
6856 2014-06-13 Tom Tromey <tromey@redhat.com>
6857
6858 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6859 to help_list.
6860 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6861 to help_list.
6862 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6863 help_list.
6864 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6865 help_list.Pass all_commands, not -1, to help_list.
6866 * cli/cli-dump.c (dump_command, append_command)
6867 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6868 (binary_dump_command, binary_append_command): Pass all_commands,
6869 not -1, to help_list.
6870 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6871 -1, to help_list.
6872 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6873 -1, to help_list.
6874 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6875 help_list.
6876 * top.c (set_history): Pass all_commands, not -1, to help_list.
6877 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6878 all_commands, not -1, to help_list.
6879 * symfile.c (overlay_command): Pass all_commands, not -1, to
6880 help_list.
6881 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6882 help_list.
6883 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6884 help_list.
6885 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6886 -1, to help_list.
6887 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6888 not -1, to help_list.
6889 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6890 not -1, to help_list.
6891 * maint.c (maintenance_command, maintenance_info_command)
6892 (maintenance_print_command, maintenance_set_cmd): Pass
6893 all_commands, not -1, to help_list.
6894 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6895 help_list.
6896 * language.c (set_check): Pass all_commands, not -1, to help_list.
6897 * infcmd.c (unset_command): Pass all_commands, not -1, to
6898 help_list.
6899 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6900 help_list.
6901 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6902 help_list.
6903 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6904 help_list.
6905 * breakpoint.c (save_command): Pass all_commands, not -1, to
6906 help_list.
6907 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6908 all_commands, not -1, to help_list.
6909
6910 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6911
6912 * regcache.c (struct register_to_invalidate): New structure.
6913 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6914 functions.
6915 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6916
6917 2014-06-12 Yao Qi <yao@codesourcery.com>
6918
6919 * varobj.c (varobj_get_num_children): Call
6920 varobj_is_dynamic_p.
6921 (varobj_list_children): Likewise.
6922 (varobj_update): Likewise. Update comments.
6923
6924 2014-06-12 Yao Qi <yao@codesourcery.com>
6925
6926 * varobj.c (varobj_pretty_printed_p): Rename to ...
6927 (varobj_is_dynamic_p): ... this. New function.
6928 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6929 (varobj_is_dynamic_p): Declare.
6930 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6931 (mi_print_value_p, varobj_update_one): Likewise.
6932
6933 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6934 Yao Qi <yao@codesourcery.com>
6935
6936 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6937 (varobj_get_iterator): Wrap up code for pretty-printer by
6938 "#if HAVE_PYTHON" and "#endif".
6939 (update_dynamic_varobj_children): Likewise.
6940
6941 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6942 Yao Qi <yao@codesourcery.com>
6943
6944 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6945 gdb_python_initialized is false. Move some code from varobj.c.
6946 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6947 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6948 (struct varobj_item): Moved to varobj-iter.h".
6949 (varobj_clear_saved_item): New function.
6950 (update_dynamic_varobj_children): Move python-related code to
6951 py-varobj.c.
6952 (free_variable): Call varobj_clear_saved_item and
6953 varobj_iter_delete.
6954
6955 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6956 Yao Qi <yao@codesourcery.com>
6957
6958 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6959 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6960 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6961 (py-varobj.o): New rule.
6962 * python/py-varobj.c: New file.
6963 * python/python-internal.h (py_varobj_get_iterator): Declare.
6964 * varobj-iter.h: New file.
6965 * varobj.c: Include "varobj-iter.h"
6966 (struct varobj) <child_iter>: Change its type from "PyObject *"
6967 to "struct varobj_iter *".
6968 <saved_item>: Likewise.
6969 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6970 [HAVE_PYTHON] (varobj_get_iterator): New function.
6971 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6972 python-specific code to python/py-varobj.c.
6973 (install_visualizer): Call varobj_iter_delete instead of
6974 Py_XDECREF.
6975 * varobj.h (varobj_ensure_python_env): Declare.
6976
6977 2014-06-12 Yao Qi <yao@codesourcery.com>
6978
6979 * varobj.c (struct varobj_item): New structure.
6980 (create_child_with_value): Update declaration.
6981 (varobj_add_child): Replace arguments 'name' and 'value' with
6982 'item'. All callers updated.
6983 (install_dynamic_child): Likewise.
6984 (update_dynamic_varobj_children): Likewise.
6985 (varobj_add_child): Likewise.
6986 (create_child_with_value): Likewise.
6987
6988 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6989
6990 * NEWS: Create a new section for the next release branch.
6991 Rename the section of the current branch, now that it has
6992 been cut.
6993
6994 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6995
6996 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6997 * version.in: Bump version to 7.8.50.DATE-cvs.
6998
6999 2014-06-11 Pedro Alves <palves@redhat.com>
7000
7001 PR remote/17028
7002 * ser-mingw.c (net_windows_socket_check_pending): New function.
7003 (net_windows_select_thread): Ignore spurious wakeups. Use
7004 net_windows_socket_check_pending.
7005 (net_windows_wait_handle): Check for pending events with
7006 ioctlsocket, through net_windows_socket_check_pending, instead of
7007 checking the socket's event.
7008
7009 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
7010
7011 * python/python-internal.h (gdb_PyObject_GetAttrString)
7012 (gdb_PyObject_HasAttrString): New inline function definitions.
7013 * py-value.c (get_field_flag): Remove the now unnecessary cast to
7014 char * of the second argument to PyObject_GetAttrString.
7015
7016 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7017
7018 * serial.c (serial_write): Fix index of character to be printed
7019 in call to serial_logchar when serial debug traces are enabled.
7020
7021 2014-06-10 Joel Brobecker <brobecker@adacore.com>
7022
7023 * gdbtypes (resolve_dynamic_range): Add function description.
7024
7025 2014-06-09 Pedro Alves <palves@redhat.com>
7026
7027 * linux-nat.c (linux_child_follow_fork): Initialize status with
7028 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
7029 inner block. Only pass the signal to PTRACE_DETACH if in pass
7030 state.
7031
7032 2014-06-09 Gary Benson <gbenson@redhat.com>
7033
7034 * common/signals.c (gdb_signal_from_host): Reorder to separate
7035 the always-available ANSI-standard signals from the signals that
7036 require checking.
7037 (do_gdb_signal_to_host): Likewise.
7038 * proc-events.c (signal_table): Likewise.
7039
7040 2014-06-08 Hui Zhu <hui@codesourcery.com>
7041
7042 * common/linux-ptrace.c (linux_disable_event_reporting): New
7043 function.
7044 * common/linux-ptrace.h (linux_disable_event_reporting): New
7045 declaration.
7046 * linux-nat.c (linux_child_follow_fork): Do a single step before
7047 detach.
7048
7049 2014-06-07 Keith Seitz <keiths@redhat.com>
7050
7051 Revert:
7052 PR c++/16253
7053 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7054 from symbol_matches_domain in symtab.c. All local callers
7055 of symbol_matches_domain updated.
7056 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7057 search STRUCT_DOMAIN.
7058 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7059 independently. standard_lookup will do that automatically.
7060 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7061 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7062 (cp_lookup_symbol_in_namespace): Likewise.
7063 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7064 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7065 may return a STRUCT_DOMAIN match.
7066 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7067 * cp-support.c: Include language.h.
7068 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7069 VAR_DOMAIN.
7070 * psymtab.c (match_partial_symbol): Compare the requested
7071 domain with the symbol's domain directly.
7072 (lookup_partial_symbol): Likewise.
7073 * symtab.c (lookup_symbol_in_language): Explain when/why
7074 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7075 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7076 appropriate languages.
7077 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7078 and moved to ada-lang.c
7079 (lookup_block_symbol): Explain that this function only returns
7080 symbol matching the requested DOMAIN.
7081 Compare the requested domain with the symbol's domain directly.
7082 (iterate_over_symbols): Compare the requested domain with the
7083 symbol's domain directly.
7084 * symtab.h (symbol_matches_domain): Remove.
7085
7086 2014-06-06 Doug Evans <xdje42@gmail.com>
7087
7088 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7089 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7090 (gdbscm_guile_version_is_at_least): Declare.
7091 (gdbscm_scm_string_to_int): Declare.
7092 * guile/guile.c (gdbscm_guile_major_version): New global.
7093 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7094 (guile_datadir): New static global.
7095 (gdbscm_guile_data_directory): New function.
7096 (initialize_scheme_side): Update.
7097 (misc_guile_functions): Add guile-data-directory.
7098 (initialize_gdb_module): Fetch guile version number.
7099 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7100 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7101 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7102 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7103 comments.
7104 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7105 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7106 * guile/scm-value.c (gdbscm_value_to_string): Only call
7107 scm_port_conversion_strategy if Guile version >= 2.0.6.
7108
7109 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7110
7111 * main.c (print_gdb_help): Add -q and --silent.
7112
7113 2014-06-06 Gary Benson <gbenson@redhat.com>
7114
7115 * common/signals.c: Remove preprocessor conditionals for
7116 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7117 SIGSEGV and SIGTERM.
7118 * proc-events.c: Likewise.
7119
7120 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7121
7122 * symfile.c (symfile_free_objfile): Remove restriction to
7123 OBJF_USERLOADED.
7124 * symfile-mem.c (symbol_file_add_from_memory): Call
7125 add_target_sections_of_objfile.
7126
7127 2014-06-05 Ludovic Courtès <ludo@gnu.org>
7128
7129 * guile/scm-value.c (gdbscm_history_append_x): Use
7130 'vlscm_get_value_smob_arg_unsafe' instead of
7131 'vlscm_scm_to_value'.
7132
7133 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7134
7135 PR mi/15806
7136 * utils.c (printchar): Don't escape at all if quoter is NUL.
7137 Update function documentation to clarify effect of parameter
7138 QUOTER.
7139 * remote.c (escape_buffer): Pass '\\' as the quoter to
7140 fputstrn_unfiltered.
7141 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7142 generate the output.
7143 (mi_solib_unloaded): Same.
7144
7145 2014-06-05 Joel Brobecker <brobecker@adacore.com>
7146
7147 * development.sh: Delete.
7148 * Makefile.in (config.status): Adjust dependency on development.sh.
7149 * configure.ac: Adjust development.sh source call.
7150 * configure: Regenerate.
7151
7152 2014-06-04 Doug Evans <xdje42@gmail.com>
7153
7154 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7155 is_scheme_bkpt, spec.
7156 (bpscm_make_breakpoint_smob): Initialize new members.
7157 (gdbscm_create_breakpoint_x): Split into two ...
7158 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7159 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7160 (scheme_function breakpoint_functions): Update.
7161 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7162 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7163 register-breakpoint!.
7164
7165 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
7166
7167 PR server/17023
7168 * mem-break.c (z_type_supported): Return zero if
7169 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7170
7171 2014-06-04 Tom Tromey <tromey@redhat.com>
7172
7173 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7174 value_from_contents_and_address_unresolved.
7175 (ada_template_to_fixed_record_type_1): Likewise.
7176 (ada_which_variant_applies): Likewise.
7177 * value.h (value_from_contents_and_address_unresolved): Declare.
7178 * value.c (value_from_contents_and_address_unresolved): New
7179 function.
7180 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7181 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7182 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7183
7184 2014-06-04 Tom Tromey <tromey@redhat.com>
7185
7186 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7187
7188 2014-06-04 Tom Tromey <tromey@redhat.com>
7189
7190 * procfs.c (procfs_attach): Make "args" const.
7191 * windows-nat.c (windows_attach): Make "args" const.
7192 * nto-procfs.c (procfs_attach): Make "args" const.
7193 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7194 * go32-nat.c (go32_attach): Make "args" const.
7195 * gnu-nat.c (gnu_attach): Make "args" const.
7196 * darwin-nat.c (darwin_attach): Make "args" const.
7197 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7198 * linux-nat.c (linux_nat_attach): Make "args" const.
7199 * remote.c (extended_remote_attach_1, extended_remote_attach):
7200 Make "args" const.
7201 * target.h (struct target_ops) <to_attach>: Make "args" const.
7202 (find_default_attach): Likewise.
7203 * utils.c (parse_pid_to_attach): Make "args" const.
7204 * utils.h (parse_pid_to_attach): Update.
7205
7206 2014-06-04 Tom Tromey <tromey@redhat.com>
7207
7208 * target-delegates.c: Rebuild.
7209 * target.c (default_thread_address_space): New function.
7210 (target_thread_address_space): Simplify.
7211 * target.h (struct target_ops) <to_thread_address_space>: Add
7212 TARGET_DEFAULT_FUNC.
7213
7214 2014-06-04 Doug Evans <xdje42@gmail.com>
7215
7216 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7217
7218 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7219
7220 * record-btrace.c: Include event-loop.h and inf-loop.h.
7221 (record_btrace_resume_exec_dir)
7222 (record_btrace_async_inferior_event_handler)
7223 (record_btrace_handle_async_inferior_event): New.
7224 (record_btrace_open): Create async event handler.
7225 (record_btrace_close): Delete async event handler.
7226 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7227 Mark async event handler.
7228 (record_btrace_execution_direction): New.
7229 (init_record_btrace_ops): Initialize to_execution_direction.
7230
7231 2014-06-03 Doug Evans <xdje42@gmail.com>
7232
7233 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7234 (gdbscm_make_parameter): Ditto.
7235
7236 2014-06-03 Doug Evans <dje@google.com>
7237
7238 * exec.c (exec_close_1): Call clear_section_table instead of
7239 resize_section_table.
7240 (clear_section_table): New function.
7241 (resize_section_table): Make static. Rename arg num_added to
7242 adjustment.
7243 * exec.h (clear_section_table): Declare.
7244 (resize_section_table): Delete.
7245 * progspace.c (release_program_space): Call clear_section_table
7246 instead of resize_section_table.
7247
7248 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7249
7250 * NEWS (Python Scripting): Add entry about the new xmethods
7251 feature.
7252
7253 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7254
7255 * python/py-xmethods.c: New file.
7256 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7257 (objfpy_dealloc): XDECREF on the new xmethods field.
7258 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7259 field.
7260 (objfpy_get_xmethods): New function.
7261 (objfile_getset): New entry 'xmethods'.
7262 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7263 (pspy_dealloc): XDECREF on the new xmethods field.
7264 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7265 field.
7266 (pspy_get_xmethods): New function.
7267 (pspace_getset): New entry 'xmethods'.
7268 * python/python-internal.h: Add declarations for new functions.
7269 * python/python.c (_initialize_python): Invoke
7270 gdbpy_initialize_xmethods.
7271 * python/lib/gdb/__init__.py (xmethods): New
7272 attribute.
7273 * python/lib/gdb/xmethod.py: New file.
7274 * python/lib/gdb/command/xmethods.py: New file.
7275
7276 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7277
7278 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7279 best match method returned by find_overload_match is an xmethod.
7280 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7281 the best matching operator returned by find_overload_match is an
7282 xmethod.
7283 * valops.c: #include "extension.h".
7284 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7285 Return void. The list of matching source methods is returned in
7286 "fn_list" and a vector of matching debug method workers is
7287 returned in "xm_worker_vec". Update all callers.
7288 (value_find_oload_method_list): Likewise.
7289 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7290 non-NULL, then the index of the best matching method in this
7291 vector is returned. Update all callers.
7292 (find_overload_match): Include xmethods while performing overload
7293 resolution.
7294
7295 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7296
7297 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7298 * extension-priv.h (struct extension_language_ops): Add the
7299 xmethod interface.
7300 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7301 get_matching_xmethod_workers, get_xmethod_argtypes,
7302 invoke_xmethod, free_xmethod_worker,
7303 free_xmethod_worker_vec): New functions.
7304 * extension.h: #include "common/vec.h".
7305 New function declarations.
7306 (struct xmethod_worker): New struct.
7307 (VEC (xmethod_worker_ptr)): New vector type.
7308 (xmethod_worker_ptr): New typedef.
7309 (xmethod_worker_vec): Likewise.
7310 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7311 builtin_type.
7312 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7313 (struct builtin_type): New field "xmethod".
7314 * valarith.c (value_ptradd): Assert that the value argument is not
7315 lval_xcallable.
7316 * valops.c (value_must_coerce_to_target): Return 0 for
7317 lval_xcallable values.
7318 * value.c (struct value): New field XM_WORKER in the field
7319 LOCATION.
7320 (value_address, value_raw_address): Return 0 for lval_xcallable
7321 values.
7322 (set_value_address): Assert that the value is not an
7323 lval_xcallable.
7324 (value_free): Free the associated xmethod worker when freeing
7325 lval_xcallable values.
7326 (set_value_component_location): Assert that the WHOLE value is not
7327 lval_xcallable.
7328 (value_of_xmethod, call_xmethod): New functions.
7329 * value.h: Declare "struct xmethod_worker".
7330 Declare new functions value_of_xmethod, call_xmethod.
7331
7332 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7333 Pedro Alves <palves@redhat.com>
7334
7335 PR breakpoints/17000
7336 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7337 New function, extracted from software_breakpoint_inserted_here_p.
7338 (software_breakpoint_inserted_here_p): Replace factored out code
7339 by call to find_non_raw_software_breakpoint_inserted_here.
7340 (bp_target_info_copy_insertion_state): New function.
7341 (bkpt_insert_location): Handle the case of a single-step
7342 breakpoint already inserted at the same address.
7343 (bkpt_remove_location): Handle the case of a single-step
7344 breakpoint still inserted at the same address.
7345 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7346 breakpoint already inserted at the same address.
7347 (deprecated_remove_raw_breakpoint): Handle the case of a
7348 non-raw breakpoint still inserted at the same address.
7349 (find_single_step_breakpoint): New function, extracted from
7350 single_step_breakpoint_inserted_here_p.
7351 (find_single_step_breakpoint): New function,
7352 factored out from single_step_breakpoint_inserted_here_p.
7353 (single_step_breakpoint_inserted_here_p): Reimplement.
7354
7355 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7356
7357 Pushed by Joel Brobecker <brobecker@adacore.com>
7358 * source.c (show_substitute_path_command): Fix display of matching
7359 substitution rules.
7360
7361 2014-06-03 Gary Benson <gbenson@redhat.com>
7362
7363 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7364
7365 2014-06-02 Doug Evans <xdje42@gmail.com>
7366
7367 Add parameter support for Guile.
7368 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7369 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7370 (scm-param.o): New rule.
7371 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7372 (gdbscm_misc_error): Declare.
7373 (gdbscm_canonicalize_command_name): Declare.
7374 (gdbscm_scm_to_host_string): Declare.
7375 (gdbscm_scm_from_host_string): Declare.
7376 (gdbscm_initialize_parameters): Declare.
7377 * guile/guile.c (initialize_gdb_module): Call
7378 gdbscm_initialize_parameters.
7379 * guile/lib/gdb.scm: Export parameter symbols.
7380 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7381 cmdscm_canonicalize_name and made public. All callers updated.
7382 * guile/scm-exception.c (gdbscm_misc_error): New function.
7383 * guile/scm-param.c: New file.
7384 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7385 (gdbscm_scm_to_host_string): New function.
7386 (gdbscm_scm_from_host_string): New function.
7387 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7388
7389 2014-06-02 Doug Evans <xdje42@gmail.com>
7390
7391 Add command support for Guile.
7392 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7393 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7394 (scm-cmd.o): New rule.
7395 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7396 (gdbscm_user_error_p): Declare.
7397 (gdbscm_parse_command_name): Declare.
7398 (gdbscm_valid_command_class_p): Declare.
7399 (gdbscm_initialize_commands): Declare.
7400 * guile/guile.c (initialize_gdb_module): Call
7401 gdbscm_initialize_commands.
7402 * guile/lib/gdb.scm: Export command symbols.
7403 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7404 (throw-user-error): New function.
7405 * guile/scm-cmd.c: New file.
7406 * guile/scm-exception.c (user_error_symbol): New static global.
7407 (gdbscm_user_error_p): New function.
7408 (gdbscm_initialize_exceptions): Set user_error_symbol.
7409 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7410
7411 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7412
7413 * top.c (command_loop): Handle comments here...
7414 (command_line_input): ... not here.
7415
7416 2014-06-02 Doug Evans <xdje42@gmail.com>
7417
7418 Add progspace support for Guile.
7419 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7420 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7421 (scm-progspace.o): New rule.
7422 * guile/guile-internal.h (pspace_smob): New typedef.
7423 (psscm_pspace_smob_pretty_printers): Declare.
7424 (psscm_pspace_smob_from_pspace): Declare.
7425 (psscm_scm_from_pspace): Declare.
7426 * guile/guile.c (initialize_gdb_module): Call
7427 gdbscm_initialize_pspaces.
7428 * guile/lib/gdb.scm: Export progspace symbols.
7429 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7430 support.
7431 (append-pretty-printer!): Ditto.
7432 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7433 Implement.
7434 * guile/scm-progspace.c: New file.
7435
7436 2014-06-03 Alan Modra <amodra@gmail.com>
7437
7438 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7439 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7440
7441 2014-06-02 Doug Evans <dje@google.com>
7442
7443 Add support for skeletonless type units.
7444 * dwarf2read.c (struct dwarf2_per_objfile): New member
7445 n_allocated_type_units.
7446 (struct dwarf2_per_objfile) <tu_stats>: New member
7447 nr_all_type_units_reallocs.
7448 (create_signatured_type_table_from_index): Initialize
7449 n_allocated_type_units
7450 (create_all_type_units): Ditto.
7451 (add_type_unit): Move up in file. New arg slot.
7452 All callers updated. Increase space for all_type_units more
7453 efficiently.
7454 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7455 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7456 (lookup_dwp_signatured_type): Ditto.
7457 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7458 All callers updated.
7459 (build_type_psymtabs_1): Leave type_unit_groups as
7460 NULL if no TUs present.
7461 (print_tu_stats): New function.
7462 (process_skeletonless_type_unit): New function.
7463 (process_dwo_file_for_skeletonless_type_units): New
7464 function.
7465 (process_skeletonless_type_units): New function.
7466 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7467 Call print tu_stats if debugging enabled.
7468
7469 2014-06-02 Pedro Alves <palves@redhat.com>
7470
7471 * breakpoint.c (build_target_command_list): Don't build a command
7472 list if we have any duplicate location that isn't a dprintf.
7473
7474 2014-06-02 Pedro Alves <palves@redhat.com>
7475
7476 * breakpoint.c (dprintf_breakpoint_hit): New function.
7477 (initialize_breakpoint_ops): Install it as dprintf's
7478 breakpoint_hit method.
7479
7480 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7481
7482 * source.c (substitute_path_rule_matches): Simplify using
7483 filename_ncmp instead of FILENAME_CMP.
7484
7485 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7486
7487 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7488
7489 2014-06-01 Ludovic Courtès <ludo@gnu.org>
7490
7491 * configure.ac: When Guile is available, check for the
7492 availability of 'scm_new_smob'.
7493 * configure, config.h.in: Regenerate.
7494 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7495 function.
7496
7497 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7498
7499 * frame.c (struct frame_info): Add stop_string field.
7500 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7501 (get_prev_frame_always): Old content moved into
7502 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7503 TRY_CATCH, handle MEMORY_ERROR exceptions.
7504 (frame_stop_reason_string): New function definition.
7505 * frame.h (unwind_stop_reason_to_string): Extend comment to
7506 mention frame_stop_reason_string.
7507 (frame_stop_reason_string): New function declaration.
7508 * stack.c (frame_info): Switch to frame_stop_reason_string.
7509 (backtrace_command_1): Switch to frame_stop_reason_string.
7510 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7511 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7512 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7513
7514 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7515
7516 * frame.c (frame_stop_reason_string): Rename to ...
7517 (unwind_stop_reason_to_string): this.
7518 * frame.h (frame_stop_reason_string): Rename to ...
7519 (unwind_stop_reason_to_string): this.
7520 * stack.c (frame_info): Update call to frame_stop_reason_string.
7521 (backtrace_command_1): Likewise.
7522 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7523 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7524
7525 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7526
7527 * frame.c (remove_prev_frame): New function.
7528 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7529 remove_prev_frame.
7530
7531 2014-05-29 Pedro Alves <palves@redhat.com>
7532
7533 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7534 and make it const. When a single-step decays to a continue,
7535 clear 'step', not 'hw_step'. Pass whether the caller wanted
7536 to step to user_visible_resume_ptid, not what we ask the
7537 target to do.
7538
7539 2014-05-29 Pedro Alves <palves@redhat.com>
7540
7541 * infrun.c (process_event_stop_test, handle_step_into_function)
7542 (handle_step_into_function_backward): Adjust.
7543 Don't set the even thread's stop_step and call stop_waiting before
7544 calling end_stepping_range. Instead do that ...
7545 (end_stepping_range): ... here. Take an ecs pointer parameter.
7546
7547 2014-05-29 Pedro Alves <palves@redhat.com>
7548
7549 * infrun.c (stop_stepping): Rename to ...
7550 (stop_waiting): ... this.
7551 (proceed): Update comment.
7552 (process_event_stop_test, handle_inferior_event)
7553 (handle_signal_stop, handle_step_into_function)
7554 (handle_step_into_function_backward): Update.
7555
7556 2014-05-29 Pedro Alves <palves@redhat.com>
7557
7558 * infcall.c (run_inferior_call): Don't check whether the current
7559 thread is running after the proceed call.
7560
7561 2014-05-29 Pedro Alves <palves@redhat.com>
7562 Tom Tromey <tromey@redhat.com>
7563
7564 * NEWS: Mention "maint set target-async", "set mi-async", and that
7565 background execution commands are now always available.
7566 * target.h (target_async_permitted): Update comment.
7567 * target.c (target_async_permitted, target_async_permitted_1):
7568 Default to 1.
7569 (set_target_async_command): Rename to ...
7570 (maint_set_target_async_command): ... this.
7571 (show_target_async_command): Rename to ...
7572 (maint_show_target_async_command): ... this.
7573 (_initialize_target): Adjust.
7574 * infcmd.c (prepare_execution_command): Make extern.
7575 * inferior.h (prepare_execution_command): Declare.
7576 * infrun.c (set_observer_mode): Leave target async alone.
7577 * mi/mi-interp.c (mi_interpreter_init): Install
7578 mi_on_sync_execution_done as sync_execution_done observer.
7579 (mi_on_sync_execution_done): New function.
7580 (mi_execute_command_input_handler): Don't print the prompt if we
7581 just started a synchronous command with an async target.
7582 (mi_on_resume): Check sync_execution before printing prompt.
7583 * mi/mi-main.h (mi_async_p): Declare.
7584 * mi/mi-main.c: Include gdbcmd.h.
7585 (mi_async_p): New function.
7586 (mi_async, mi_async_1): New globals.
7587 (set_mi_async_command, show_mi_async_command, mi_async): New
7588 functions.
7589 (exec_continue): Call prepare_execution_command.
7590 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7591 (mi_execute_async_cli_command): Use mi_async_p.
7592 (_initialize_mi_main): Install "set mi-async". Make
7593 "target-async" a deprecated alias.
7594
7595 2014-05-29 Pedro Alves <palves@redhat.com>
7596
7597 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7598 (_initialize_cli_interp): Adjust.
7599 * event-loop.c: Include "observer.h".
7600 (start_event_loop): Notify 'command_error' observers instead of
7601 calling display_gdb_prompt. Remove FIXME comment.
7602 * event-top.c (display_gdb_prompt): Remove call into the
7603 interpreters.
7604 * inf-loop.c: Include "observer.h".
7605 (inferior_event_handler): Notify 'command_error' observers instead
7606 of calling display_gdb_prompt.
7607 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7608 observers instead of calling display_gdb_prompt.
7609 * interps.c (interp_set): Don't call display_gdb_prompt.
7610 (current_interp_display_prompt_p): Delete.
7611 * interps.h (interp_prompt_p): Delete declaration.
7612 (interp_prompt_p_ftype): Delete.
7613 (struct interp_procs) <prompt_proc_p>: Delete field.
7614 (current_interp_display_prompt_p): Delete declaration.
7615 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7616 (_initialize_mi_interp): Adjust.
7617 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7618 'command_error' observers.
7619 (tui_on_sync_execution_done, tui_on_command_error): New
7620 functions.
7621 (tui_display_prompt_p): Delete.
7622 (_initialize_tui_interp): Adjust.
7623
7624 2014-05-29 Pedro Alves <palves@redhat.com>
7625
7626 PR gdb/13860
7627 * cli/cli-interp.c: Include infrun.h and observer.h.
7628 (cli_uiout, cli_interp): New globals.
7629 (cli_on_signal_received, cli_on_end_stepping_range)
7630 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7631 functions.
7632 (cli_interpreter_init): Install them as 'end_stepping_range',
7633 'signal_received' 'signal_exited', 'exited' and 'no_history'
7634 observers.
7635 (_initialize_cli_interp): Remove cli_interp local.
7636 * infrun.c (handle_inferior_event): Call the several stop reason
7637 observers instead of printing the stop reason directly.
7638 (end_stepping_range): New function.
7639 (print_end_stepping_range_reason, print_signal_exited_reason)
7640 (print_exited_reason, print_signal_received_reason)
7641 (print_no_history_reason): Make static, and add an uiout
7642 parameter. Print to that instead of to CURRENT_UIOUT.
7643 * infrun.h (print_end_stepping_range_reason)
7644 (print_signal_exited_reason, print_exited_reason)
7645 (print_signal_received_reason print_no_history_reason): New
7646 declarations.
7647 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7648 'mi_uiout'.
7649 <cli_uiout>: New field.
7650 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7651 uiout for CLI output. Install 'signal_received',
7652 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7653 observers.
7654 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7655 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7656 (mi_on_no_history): New functions.
7657 (ui_out_free_cleanup): Delete function.
7658 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7659 instead use the one already stored in the MI interpreter data.
7660 (mi_ui_out): Adjust.
7661 * tui/tui-interp.c: Include infrun.h and observer.h.
7662 (tui_interp): New global.
7663 (tui_on_signal_received, tui_on_end_stepping_range)
7664 (tui_on_signal_exited, tui_on_exited)
7665 (tui_on_no_history): New functions.
7666 (tui_init): Install them as 'end_stepping_range',
7667 'signal_received' 'signal_exited', 'exited' and 'no_history'
7668 observers.
7669 (_initialize_tui_interp): Delete tui_interp local.
7670
7671 2014-05-29 Pedro Alves <palves@redhat.com>
7672
7673 PR gdb/15713
7674 * linux-nat.c (linux_nat_resume_callback): Rename the second
7675 parameter to 'except'. Skip LP if it points to EXCEPT.
7676 (linux_nat_resume): Don't mark the event lwp as not stopped
7677 before resuming sibling lwps. Instead ask
7678 linux_nat_resume_callback to skip the event lwp. Mark it as not
7679 stopped after actually resuming it.
7680 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7681 resuming it.
7682 (wait_lwp): Mark the lwp as stopped here.
7683 (stop_wait_callback): Mark the lwp as not stopped right after
7684 resuming it. Don't mark lwps as stopped here.
7685 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7686 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7687
7688 2014-05-29 Pedro Alves <palves@redhat.com>
7689
7690 PR PR15693
7691 * infrun.c (resume): Determine how much to resume depending on
7692 whether the caller wanted a step, not whether we can hardware step
7693 the target. Mark all threads that we intend to run as running,
7694 unless we're calling an inferior function.
7695 (normal_stop): If the thread is running an infcall, don't finish
7696 thread state.
7697 * target.c (target_resume): Don't mark threads as running here.
7698
7699 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7700
7701 * serial.c (_initialize_serial): Remove support for
7702 the "set remotebaud" and "show remotebaud" commands.
7703 * NEWS: Add entry documenting the removal of that command.
7704
7705 2014-05-28 Yao Qi <yao@codesourcery.com>
7706
7707 * charset.c: Fix typo in comments.
7708
7709 2014-05-27 Gary Benson <gbenson@redhat.com>
7710
7711 * utils.c (internal_vproblem): Prompt for a bug report.
7712
7713 2014-05-26 Andy Wingo <wingo@igalia.com>
7714
7715 * guile/scm-arch.c (arscm_mark_arch_smob):
7716 * guile/scm-block.c (bkscm_mark_block_smob)
7717 (bkscm_mark_block_syms_progress_smob):
7718 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7719 * guile/scm-exception.c (exscm_mark_exception_smob):
7720 * guile/scm-frame.c (frscm_mark_frame_smob):
7721 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7722 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7723 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7724 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7725 (ppscm_mark_pretty_printer_worker_smob):
7726 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7727 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7728 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7729 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7730 mark functions.
7731 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7732 function.
7733
7734 2014-05-26 Andy Wingo <wingo@igalia.com>
7735 Doug Evans <xdje42@gmail.com>
7736
7737 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7738 empty_base_class. All uses updated.
7739 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7740 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7741 Adapt all callers.
7742 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7743 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7744 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7745 (gdbscm_gsmob_has_property_p, add_property_name)
7746 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7747 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7748 (gdb-object-has-property?, gdb-object-properties): Remove.
7749 (gdb-object-kind): Renamed from gsmob-kind.
7750
7751 2014-05-26 Andy Wingo <wingo@igalia.com>
7752
7753 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7754 * configure: Regenerate.
7755
7756 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7757
7758 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7759
7760 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7761
7762 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7763 (replay_memory_access_read_only, replay_memory_access_read_write)
7764 (replay_memory_access_types, replay_memory_access)
7765 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7766 (cmd_set_record_btrace, cmd_show_record_btrace)
7767 (cmd_show_replay_memory_access): New.
7768 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7769 (record_btrace_remove_breakpoint): Replace
7770 record_btrace_allow_memory_access with replay_memory_access.
7771 (_initialize_record_btrace): Add commands.
7772 * NEWS: Announce it.
7773
7774 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7775
7776 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7777
7778 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7779
7780 * MAINTAINERS (Write After Approval): Move self back from
7781 paper trail.
7782
7783 2014-05-22 Pedro Alves <palves@redhat.com>
7784
7785 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7786 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7787 (disable_randomization, enum exec_direction_kind)
7788 (execution_direction, stop_registers, start_remote)
7789 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7790 (wait_for_inferior, normal_stop, get_last_target_status)
7791 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7792 (insert_step_resume_breakpoint_at_sal)
7793 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7794 (set_step_info, print_stop_event, signal_stop_state)
7795 (signal_print_state, signal_pass_state, signal_stop_update)
7796 (signal_print_update, signal_pass_update)
7797 (update_signals_program_target, clear_exit_convenience_vars)
7798 (displaced_step_dump_bytes, update_observer_mode)
7799 (signal_catch_update, gdb_signal_from_command): Move
7800 declarations ...
7801 * infrun.h: ... to this new file.
7802 * amd64-tdep.c: Include infrun.h.
7803 * annotate.c: Include infrun.h.
7804 * arch-utils.c: Include infrun.h.
7805 * arm-linux-tdep.c: Include infrun.h.
7806 * arm-tdep.c: Include infrun.h.
7807 * break-catch-sig.c: Include infrun.h.
7808 * breakpoint.c: Include infrun.h.
7809 * common/agent.c: Include infrun.h instead of inferior.h.
7810 * corelow.c: Include infrun.h.
7811 * event-top.c: Include infrun.h.
7812 * go32-nat.c: Include infrun.h.
7813 * i386-tdep.c: Include infrun.h.
7814 * inf-loop.c: Include infrun.h.
7815 * infcall.c: Include infrun.h.
7816 * infcmd.c: Include infrun.h.
7817 * infrun.c: Include infrun.h.
7818 * linux-fork.c: Include infrun.h.
7819 * linux-nat.c: Include infrun.h.
7820 * linux-thread-db.c: Include infrun.h.
7821 * monitor.c: Include infrun.h.
7822 * nto-tdep.c: Include infrun.h.
7823 * procfs.c: Include infrun.h.
7824 * record-btrace.c: Include infrun.h.
7825 * record-full.c: Include infrun.h.
7826 * remote-m32r-sdi.c: Include infrun.h.
7827 * remote-mips.c: Include infrun.h.
7828 * remote-notif.c: Include infrun.h.
7829 * remote-sim.c: Include infrun.h.
7830 * remote.c: Include infrun.h.
7831 * reverse.c: Include infrun.h.
7832 * rs6000-tdep.c: Include infrun.h.
7833 * s390-linux-tdep.c: Include infrun.h.
7834 * solib-irix.c: Include infrun.h.
7835 * solib-osf.c: Include infrun.h.
7836 * solib-svr4.c: Include infrun.h.
7837 * target.c: Include infrun.h.
7838 * top.c: Include infrun.h.
7839 * windows-nat.c: Include infrun.h.
7840 * mi/mi-interp.c: Include infrun.h.
7841 * mi/mi-main.c: Include infrun.h.
7842 * python/py-threadevent.c: Include infrun.h.
7843
7844 2014-05-22 Pedro Alves <palves@redhat.com>
7845
7846 * infrun.c (handle_inferior_event): Store the exit code for
7847 --return-child-result here, instead of ...
7848 (print_exited_reason): ... here.
7849
7850 2014-05-21 Pedro Alves <palves@redhat.com>
7851
7852 PR gdb/13860
7853 * gdbthread.h (struct thread_control_state): New field
7854 `command_interp'.
7855 * infrun.c (follow_fork): Copy the new thread control field to the
7856 child fork thread.
7857 (clear_proceed_status_thread): Clear the new thread control field.
7858 (proceed): Set the new thread control field.
7859 * interps.h (command_interp): Declare.
7860 * interps.c (command_interpreter): New global.
7861 (command_interp): New function.
7862 (interp_exec): Set `command_interpreter' while here.
7863 * cli-out.c (cli_uiout_dtor): New function.
7864 (cli_ui_out_impl): Install it.
7865 * mi/mi-interp.c: Include cli-out.h.
7866 (mi_cmd_interpreter_exec): Add comment.
7867 (restore_current_uiout_cleanup): New function.
7868 (ui_out_free_cleanup): New function.
7869 (mi_on_normal_stop): If finishing an execution command started by
7870 a CLI command, or any kind of breakpoint-like event triggered,
7871 print the stop event to the output (CLI) stream.
7872 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7873
7874 2014-05-21 Pedro Alves <palves@redhat.com>
7875
7876 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7877 current source line having changed.
7878 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7879 * infrun.c (normal_stop): Adjust call to
7880 set_current_sal_from_frame.
7881 * source.c (clear_lines_listed_range): New function.
7882 (set_current_source_symtab_and_line, identify_source_line): Clear
7883 the lines listed range.
7884 (line_info): Handle the first "info line" after the current source
7885 line having changed.
7886 * stack.c (print_stack_frame): Remove center handling.
7887 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7888 center sal.line.
7889
7890 2014-05-21 Pedro Alves <palves@redhat.com>
7891
7892 * inf-child.c (inf_child_mourn_inferior): New function.
7893 * inf-child.h (inf_child_mourn_inferior): New declaration.
7894 * darwin-nat.c (darwin_mourn_inferior): Use
7895 inf_child_mourn_inferior.
7896 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7897 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7898 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7899 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7900 * windows-nat.c (windows_mourn_inferior): Likewise.
7901
7902 2014-05-21 Doug Evans <xdje42@gmail.com>
7903
7904 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7905
7906 2014-05-21 Doug Evans <xdje42@gmail.com>
7907
7908 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7909 (gdbscm_out_of_range_error): Ditto.
7910 (gdbscm_memory_error): Ditto.
7911 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7912 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7913 (gdbscm_out_of_range_error): Update.
7914 (gdbscm_memory_error): Update.
7915 (gdbscm_scm_to_target_string_unsafe): Delete.
7916
7917 2014-05-21 Pedro Alves <palves@redhat.com>
7918
7919 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7920 globals.
7921 (inf_child_open_target): New function.
7922 (inf_child_open): Use inf_child_open_target to push the target
7923 instead of erroring out.
7924 (inf_child_disconnect, inf_child_close)
7925 (inf_child_maybe_unpush_target): New functions.
7926 (inf_child_target): Install inf_child_disconnect and
7927 inf_child_close. Store a pointer to the returned object.
7928 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7929 declarations.
7930 * target.c (auto_connect_native_target): New global.
7931 (show_default_run_target): New function.
7932 (find_default_run_target): Return NULL if automatically connecting
7933 to the native target is disabled.
7934 (_initialize_target): Install set/show auto-connect-native-target.
7935 * NEWS: Mention "set auto-connect-native-target", and "target
7936 native".
7937 * linux-nat.c (super_close): New global.
7938 (linux_nat_close): Call super_close.
7939 (linux_nat_add_target): Store a pointer to the base class's
7940 to_close method.
7941 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7942 inf_child_maybe_unpush.
7943 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7944 already pushed.
7945 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7946 the inferior. Use inf_child_maybe_unpush_target.
7947 (inf_ttrace_attach): Don't push the target if it is already
7948 pushed.
7949 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7950 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7951 after mourning the inferior. Use inf_child_maybe_unpush_target.
7952 (darwin_attach_pid): Don't push the target if it is already
7953 pushed.
7954 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7955 mourning the inferior. Use inf_child_maybe_unpush_target.
7956 (gnu_detach): Use inf_child_maybe_unpush_target.
7957 * go32-nat.c (go32_create_inferior): Don't push the target if it
7958 is already pushed.
7959 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7960 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7961 (procfs_open): Rename to ...
7962 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7963 comments. Can target_preopen before changing node. Call
7964 inf_child_open_target to push the target explicitly.
7965 (procfs_attach): Don't push the target if it is already pushed.
7966 (procfs_detach): Use inf_child_maybe_unpush_target.
7967 (procfs_create_inferior): Don't push the target if it is already
7968 pushed.
7969 (nto_native_ops): New global.
7970 (procfs_open): Reimplement.
7971 (procfs_native_open): New function.
7972 (init_procfs_targets): Install procfs_native_open as to_open of
7973 "target native". Store a pointer to the "native" target in
7974 nto_native_ops.
7975 * procfs.c (procfs_attach): Don't push the target if it is already
7976 pushed.
7977 (procfs_detach): Use inf_child_maybe_unpush_target.
7978 (procfs_mourn_inferior): Only unpush the target after mourning the
7979 inferior. Use inf_child_maybe_unpush_target.
7980 (procfs_init_inferior): Don't push the target if it is already
7981 pushed.
7982 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7983 if it is already pushed.
7984
7985 2014-05-21 Pedro Alves <palves@redhat.com>
7986
7987 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7988 and "procfs" targets are now called "native" instead.
7989
7990 2014-05-21 Pedro Alves <palves@redhat.com>
7991
7992 * go32-nat.c (go32_open): Delete.
7993 (go32_target): Don't override the to_open method.
7994
7995 2014-05-21 Pedro Alves <palves@redhat.com>
7996
7997 * nto-procfs.c (procfs_can_run): New function.
7998 (nto_procfs_ops): New global.
7999 (init_procfs_targets): New, based on procfs_target. Install
8000 "target native" in addition to "target procfs".
8001 (_initialize_procfs): Call init_procfs_targets instead of adding
8002 the target here.
8003
8004 2014-05-21 Pedro Alves <palves@redhat.com>
8005
8006 * windows-nat.c (windows_target): Don't override to_shortname,
8007 to_longname or to_doc.
8008
8009 2014-05-21 Pedro Alves <palves@redhat.com>
8010
8011 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8012 to_doc.
8013
8014 2014-05-21 Pedro Alves <palves@redhat.com>
8015
8016 * darwin-nat.c (_initialize_darwin_inferior): Don't override
8017 to_shortname, to_longname or to_doc.
8018
8019 2014-05-21 Pedro Alves <palves@redhat.com>
8020
8021 * go32-nat.c (go32_target): Don't override to_shortname,
8022 to_longname or to_doc.
8023
8024 2014-05-21 Pedro Alves <palves@redhat.com>
8025
8026 * inf-child.c (inf_child_open): Remove mention of "child".
8027 (inf_child_target): Rename target to "native" instead of "child".
8028
8029 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8030
8031 * Makefile.in (SFILES): Delete "regset.c".
8032 (COMMON_OBS): Delete "regset.o".
8033 * regset.c: Remove.
8034 * regset.h (regset_alloc): Delete prototype.
8035
8036 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8037
8038 * sparc-linux-tdep.c (sparc32_linux_gregset)
8039 (sparc32_linux_fpregset): New static regset structures.
8040 (sparc32_linux_init_abi): Drop dynamic regset allocations.
8041 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8042 'fpregset' fields.
8043 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8044 (sparc64_linux_fpregset): New static regset structures.
8045 (sparc64_linux_init_abi): Drop dynamic regset allocations.
8046 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8047 New static regset structures.
8048 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8049 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8050 New static regset structures.
8051 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8052 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8053 New static regset structures.
8054 (sparc64obsd_init_abi): Drop dynamic regset allocations.
8055 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8056 New static regset structures.
8057 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8058
8059 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8060
8061 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8062 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8063 register maps ("regmaps") from "*regset" to "*regmap". Do this
8064 for all regmap types and variables.
8065 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8066 (sparc32_linux_supply_core_gregset)
8067 (sparc32_linux_collect_core_gregset)
8068 (sparc32_linux_supply_core_fpregset)
8069 (sparc32_linux_collect_core_fpregset): Likewise.
8070 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8071 (sparc_gregmap, sparc_fpregmap): ... these.
8072 (sparc_supply_gregset, sparc_collect_gregset)
8073 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8074 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8075 (_initialize_sparc_nat): Rename regmaps.
8076 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8077 (sparc_gregmap, sparc_fpregmap): ... these.
8078 (sparc_supply_gregset, sparc_collect_gregset)
8079 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8080 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8081 Rename macros to...
8082 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8083 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8084 Likewise.
8085 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8086 Rename to...
8087 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8088 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8089 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8090 regmaps.
8091 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8092 (sparc32_bsd_fpregset): Rename to...
8093 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8094 (sparc32_bsd_fpregmap): ... these.
8095 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8096 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8097 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8098 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8099 (struct sparc_gregmap, struct sparc_fpregmap)
8100 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8101 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8102 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8103 (sparc32_supply_regset, sparc32_collect_gregset)
8104 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8105 prototypes.
8106 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8107 (sparc64_linux_ptrace_gregmap): ... this.
8108 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8109 (_initialize_sparc64_linux_nat): Rename regmaps.
8110 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8111 (sparc64_linux_core_gregmap): ... this.
8112 (sparc64_linux_supply_core_gregset)
8113 (sparc64_linux_collect_core_gregset)
8114 (sparc64_linux_supply_core_fpregset)
8115 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8116 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8117 (sparc64_sol2_fpregset): Rename to...
8118 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8119 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8120 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8121 regmaps.
8122 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8123 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8124 (sparc64_bsd_fpregset): Rename to...
8125 (struct sparc_gregmap, sparc64_sol2_gregmap)
8126 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8127 (sparc64_bsd_fpregmap): ... these.
8128 (sparc64_supply_gregset, sparc64_collect_gregset)
8129 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8130 prototypes.
8131 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8132 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8133 (sparc64fbsd_gregmap): ... this.
8134 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8135 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8136 Rename regmaps.
8137 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8138 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8139 (sparc64nbsd_collect_fpregset): Likewise.
8140 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8141 (sparc64nbsd_gregmap): ... this.
8142 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8143 regmaps.
8144 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8145 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8146 (sparc64obsd_gregmap): ... this.
8147 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8148 regmaps.
8149 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8150 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8151 (sparc32nbsd_gregmap): ... this.
8152 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8153 regmaps.
8154
8155 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8156
8157 * score-tdep.c (score7_linux_gregset): New static regset
8158 structure.
8159 (score7_linux_regset_from_core_section): Remove dynamic regset
8160 allocation.
8161 (score_gdbarch_init): Drop allocation of tdep structure.
8162 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8163
8164 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8165
8166 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8167 regset structures.
8168 (am33_regset_from_core_section): Remove dynamic regset
8169 allocations.
8170
8171 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8172
8173 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8174 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8175 structures.
8176 (mips_linux_regset_from_core_section): Remove dynamic regset
8177 allocations.
8178 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8179 'gregset64', 'fpregset', and 'fpregset64'.
8180 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8181 deleted tdep fields.
8182
8183 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8184
8185 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8186 regset structures.
8187 (amd64_regset_from_core_section): Remove dynamic regset
8188 allocations.
8189 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8190 structure.
8191 (amd64obsd_regset_from_core_section): Remove dynamic regset
8192 allocation.
8193 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8194 Likewise.
8195 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8196 x86-common regset supply function.
8197 * i386-tdep.c (i386_collect_gregset): Make static.
8198 (i386_gregset): New global regset structure.
8199 (i386_fpregset, i386_xstateregset): New static regset structures.
8200 (i386_regset_from_core_section): Remove dynamic regset
8201 allocations.
8202 (i386_gdbarch_init): Remove initialization of tdep fields
8203 'gregset', 'fpregset', and 'xstateregset'.
8204 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8205 'fpregset', and 'xstateregset'.
8206 (i386_collect_gregset): Remove prototype.
8207 (i386_gregset): New declaration.
8208 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8209 structure.
8210 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8211 allocation.
8212
8213 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8214
8215 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8216 (arm_linux_vfpregset): New static regset structures.
8217 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8218 regset structures.
8219 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8220 and 'vfpregset' fields.
8221
8222 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8223
8224 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8225 (aarch64_linux_fpregset): New static regset structures.
8226 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8227 of regset structures.
8228 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8229 'fpregset' fields.
8230
8231 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8232
8233 * regset.h (struct regset): Remove gdbarch field.
8234 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8235 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8236 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8237 Likewise.
8238 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8239 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8240 (ppc32_linux_vsxregset): Likewise.
8241 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8242 via the regcache instead of the regset.
8243 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8244 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8245 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8246 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8247 Likewise.
8248
8249 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8250
8251 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8252 Constify structures.
8253 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8254 (alphanbsd_aout_gregset): Likewise.
8255 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8256 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8257 Likewise.
8258 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8259 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8260 Likewise.
8261 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8262 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8263 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8264 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8265 * m88k-tdep.c (m88k_gregset): Likewise.
8266 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8267 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8268 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8269 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8270 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8271 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8272 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8273 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8274 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8275 Likewise.
8276 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8277 * sh-tdep.h (sh_corefile_gregset): Likewise.
8278 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8279 * vax-tdep.c (vax_gregset): Likewise.
8280
8281 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8282
8283 Fix TLS access for -static -pthread.
8284 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8285 (try_thread_db_load_1): Initialize it.
8286 (thread_db_get_thread_local_address): Call it if LM is zero.
8287 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8288 * target.h (struct target_ops) (to_get_thread_local_address): Add
8289 load_module_addr comment.
8290
8291 2014-05-21 Pedro Alves <palves@redhat.com>
8292
8293 * dcache.c (dcache_read_memory_partial): If reading the cache line
8294 fails, fallback to reading just the memory the caller wanted.
8295
8296 2014-05-20 Doug Evans <dje@google.com>
8297
8298 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8299 instead of get_current_arch.
8300
8301 2014-05-20 Pedro Alves <palves@redhat.com>
8302
8303 * NEWS: Mention that compare-sections now works with all targets.
8304
8305 * remote.c (PACKET_qCRC): New enum value.
8306 (remote_verify_memory): Don't send qCRC if the target has no
8307 execution. Use packet_support/packet_ok. If the target doesn't
8308 support the qCRC packet, fallback to a deep memory copy.
8309 (compare_sections_command): Say "target image" instead of "remote
8310 executable".
8311 (_initialize_remote): Add PACKET_qCRC to the list of config
8312 packets that have no associated command. Extend comment.
8313 * target.c (simple_verify_memory, default_verify_memory): New
8314 function.
8315 * target.h (struct target_ops) <to_verify_memory>: Default to
8316 default_verify_memory.
8317 (simple_verify_memory): New declaration.
8318 * target-delegates.c: Regenerate.
8319
8320 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8321
8322 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8323
8324 2014-05-20 Hui Zhu <hui@codesourcery.com>
8325 Yao Qi <yao@codesourcery.com>
8326
8327 PR backtrace/16558
8328 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8329 and change address of sp and pc.
8330
8331 2014-05-19 Tom Tromey <tromey@redhat.com>
8332
8333 * gdbtypes.c (rank_function): Use XNEWVEC.
8334 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8335
8336 2014-05-19 Doug Evans <dje@google.com>
8337
8338 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8339 build_type_unit_groups and moved closer to only caller. Remove
8340 arguments. All references updated. Remove outdated .gdb_index
8341 comment.
8342 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8343 build_type_psymtabs_1.
8344
8345 2014-05-19 Doug Evans <dje@google.com>
8346
8347 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8348 n_type_unit_groups, all_type_unit_groups. All uses removed.
8349 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8350 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8351 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8352 (add_type_unit_group_to_table): Delete.
8353
8354 2014-05-19 Doug Evans <dje@google.com>
8355
8356 * eval.c (evaluate_subexp_standard): Add some comments.
8357
8358 2014-05-17 Doug Evans <xdje42@gmail.com>
8359
8360 * progspace.c (remove_program_space): Delete, unused.
8361 * progspace.h (remove_program_space): Ditto.
8362
8363 2014-05-17 Doug Evans <xdje42@gmail.com>
8364
8365 * inferior.c (prune_inferiors): Fix comment.
8366 (remove_inferior_command): Call prune_program_spaces.
8367
8368 2014-05-16 Doug Evans <dje@google.com>
8369
8370 New command line option -D.
8371 * NEWS: Mention it.
8372 * main.c (set_gdb_data_directory): New function.
8373 (captured_main): Recognize -D. Flag error for --data-directory "".
8374 Call set_gdb_data_directory.
8375 (print_gdb_help): Print --data-directory, -D.
8376 * main.h (set_gdb_data_directory): Declare.
8377 * top.c (staged_gdb_datadir): New static global.
8378 (set_gdb_datadir): Call set_gdb_data_directory
8379 (show_gdb_datadir): New function.
8380 (init_main): Update init of data-directory parameter.
8381
8382 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8383
8384 Import the "dirfd" gnulib module.
8385 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8386 * gnulib/aclocal.m4: Update.
8387 * gnulib/config.in: Update.
8388 * gnulib/configure: Update.
8389 * gnulib/import/Makefile.am: Update.
8390 * gnulib/import/Makefile.in: Update.
8391 * gnulib/import/dirfd.c: New.
8392 * gnulib/import/m4/dirfd.m4: New.
8393 * gnulib/import/m4/gnulib-cache.m4: Update.
8394 * gnulib/import/m4/gnulib-comp.m4: Update.
8395
8396 2014-05-16 Pierre Muller <muller@sourceware.org>
8397 Yao Qi <yao@codesourcery.com>
8398
8399 * valprint.c (print_wchar): Move the code on checking whether
8400 W is a printable wide char to the default branch of switch
8401 statement below. Call wchar_printable instead of gdb_iswprint.
8402
8403 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8404
8405 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8406 ldr.w and ldrd instructions.
8407
8408 2014-05-15 Doug Evans <dje@google.com>
8409
8410 * dwarf2read.c (read_structure_type): Delete outdated comments.
8411
8412 2014-05-14 Tom Tromey <tromey@redhat.com>
8413
8414 * macrocmd.c (print_macro_definition): Reindent.
8415
8416 2014-05-13 Doug Evans <xdje42@gmail.com>
8417
8418 * python/py-cmd.c (cmdpy_completer): Add comment.
8419 (completers): Make const.
8420
8421 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8422
8423 * infrun.c (resume): Remove should_resume (unused). Move up
8424 declaration of resume_ptid.
8425
8426 2014-05-13 Tom Tromey <tromey@redhat.com>
8427
8428 * language.h (unop_type_check): Remove.
8429 (binop_type_check): Don't declare.
8430
8431 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8432
8433 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8434 call to regcache_raw_collect.
8435
8436 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8437
8438 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8439 mi_console->quote as the quoting character.
8440
8441 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8442
8443 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8444
8445 2014-04-29 Tom Tromey <tromey@redhat.com>
8446
8447 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8448 "show debug varobj".
8449
8450 2014-05-07 Kyle McMartin <kyle@redhat.com>
8451
8452 Pushed by Joel Brobecker <brobecker@adacore.com>.
8453 * aarch64-tdep.c (aarch64_software_single_step): New function.
8454 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8455 with aarch64_software_single_step.
8456
8457 2014-05-05 Joel Brobecker <brobecker@adacore.com>
8458
8459 GDB 7.7.1 released.
8460
8461 2014-05-05 Keith Seitz <keiths@redhat.com>
8462
8463 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8464 variable or history value is successfully parsed.
8465
8466 2014-05-05 Yao Qi <yao@codesourcery.com>
8467 Pedro Alves <palves@redhat.com>
8468
8469 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8470 address of blocks that intersects the requested range. Trim
8471 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8472 sections.
8473 * ctf.c (ctf_xfer_partial): Likewise.
8474
8475 2014-05-05 Yao Qi <yao@codesourcery.com>
8476
8477 * printcmd.c (display_command): Remove the check to
8478 target_has_execution.
8479
8480 2014-05-03 Mark Kettenis <kettenis@gnu.org>
8481
8482 * ppcobsd-nat.c: Include "obsd-nat.h".
8483 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8484 add_target.
8485 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8486
8487 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8488
8489 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8490 and 16-bit signed and unsigned arguments. Update comment.
8491 (stap_parse_probe_arguments): Extend code to handle such
8492 arguments. Use warning instead of complaint to notify about
8493 unrecognized bitness.
8494
8495 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8496
8497 PR breakpoints/16889
8498 * stap-probe.c (stap_parse_probe_arguments): Simplify
8499 check for non-prefixed probes (i.e., probes whose
8500 arguments do not start with "N@"). Always set the
8501 argument type to a sane value.
8502
8503 2014-05-01 David Taylor <dtaylor@emc.com>
8504
8505 * remote.c (compare_sections_command): Add -r option to compare
8506 all loadable read-only sections.
8507
8508 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8509
8510 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8511 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8512 Update all callers.
8513 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8514 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8515 Remove unused CORE_ADDR argument. Update all callers.
8516
8517 2014-04-29 Pedro Alves <palves@redhat.com>
8518
8519 * remote.c (struct packet_config) <detect>: Extend comment.
8520 (add_packet_config_cmd): Don't set the config's detect or support
8521 fields here.
8522 (init_all_packet_configs): Also initialize the config's 'detect'
8523 field.
8524 (reset_all_packet_configs_support): New function.
8525 (remote_open_1): Call reset_all_packet_configs_support instead of
8526 init_all_packet_configs.
8527 (_initialize_remote): Initialize all packet configs. Assert that
8528 all packets have an associated command, except a few known
8529 outliers.
8530
8531 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8532
8533 * dwarf2read.c (read_subrange_type): Handle dynamic
8534 DW_AT_lower_bound attributes.
8535
8536 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8537
8538 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8539 dynamic bounds before computing its upper bound.
8540 (ada_discrete_type_low_bound): Same as above with the lower bound.
8541
8542 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8543
8544 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8545 range types. Adjust the array handling implementation to
8546 take advantage of this change.
8547 (resolve_dynamic_range): New function, mostly extracted from
8548 resolve_dynamic_bounds.
8549 (resolve_dynamic_array): New function, mostly extracted from
8550 resolve_dynamic_bounds.
8551 (resolve_dynamic_bounds): Delete.
8552 (resolve_dynamic_type): Reimplement. Add handling of
8553 TYPE_CODE_RANGE types.
8554
8555 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8556
8557 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8558 handling of parallel ___XA types.
8559
8560 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8561
8562 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8563 unnecessary second call to static_unwrap_type.
8564
8565 2014-04-27 Hui Zhu <hui@codesourcery.com>
8566
8567 * stack.c (print_frame_info): Call do_gdb_disassembly with
8568 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8569
8570 2014-04-26 Doug Evans <xdje42@gmail.com>
8571
8572 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8573
8574 2014-04-25 Pedro Alves <palves@redhat.com>
8575
8576 PR server/16255
8577 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8578 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8579 and newline from built string.
8580 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8581 (linux_ptrace_attach_fail_reason): ... this.
8582 * linux-nat.c (linux_nat_attach): Adjust to use
8583 linux_ptrace_attach_fail_reason.
8584
8585 2014-04-25 Pedro Alves <palves@redhat.com>
8586
8587 * remote.c (struct remote_state): Remove multi_process_aware,
8588 non_stop_aware, cond_tracepoints, cond_breakpoints,
8589 breakpoint_commands, fast_tracepoints, static_tracepoints,
8590 install_in_trace, disconnected_tracing,
8591 enable_disable_tracepoints, string_tracing, and
8592 augmented_libraries_svr4_read fields.
8593 (remote_multi_process_p): Move further below in the file.
8594 (struct packet_config): Add comments.
8595 (update_packet_config): Delete function.
8596 (show_packet_config_cmd): Use packet_config_support.
8597 (add_packet_config_cmd): Use NULL as set callback.
8598 (packet_ok): "set remote foo-packet"-style commands no longer
8599 change config->supported -- adjust.
8600 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8601 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8602 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8603 (PACKET_QNonStop, PACKET_multiprocess_feature)
8604 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8605 (PACKET_DisconnectedTracing_feature)
8606 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8607 (set_remote_protocol_packet_cmd): Delete function.
8608 (packet_config_support, packet_support): New functions.
8609 (set_remote_protocol_Z_packet_cmd): Don't call
8610 update_packet_config.
8611 (remote_query_attached, remote_pass_signals)
8612 (remote_program_signals, remote_threads_info)
8613 (remote_threads_extra_info, remote_start_remote): Use
8614 packet_support.
8615 (remote_start_remote): Use packet_config_support and
8616 packet_support.
8617 (init_all_packet_configs): Set all packets to unknown support,
8618 instead of calling update_packet_config.
8619 (remote_check_symbols): Use packet_support.
8620 (remote_supported_packet): Unconditionally set the packet config's
8621 support status.
8622 (remote_multi_process_feature, remote_non_stop_feature)
8623 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8624 (remote_breakpoint_commands_feature)
8625 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8626 (remote_install_in_trace_feature)
8627 (remote_disconnected_tracing_feature)
8628 (remote_enable_disable_tracepoint_feature)
8629 (remote_string_tracing_feature)
8630 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8631 (remote_protocol_features): Adjust to use remote_supported_packet
8632 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8633 "ConditionalTracepoints", "ConditionalBreakpoints",
8634 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8635 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8636 "EnableDisableTracepoints", and "tracenz".
8637 (remote_query_supported): Use packet_support.
8638 (remote_open_1): Adjust.
8639 (extended_remote_attach_1): Use packet_support. Switch on the
8640 result of packet_ok instead of checking whether the packet ended
8641 up disabled.
8642 (remote_vcont_resume): Use packet_support.
8643 (remote_resume, remote_stop_ns, fetch_register_using_p)
8644 (remote_prepare_to_store, store_register_using_P)
8645 (check_binary_download, remote_write_bytes): Use packet_support.
8646 (remote_vkill): Use packet_support. Switch on the result of
8647 packet_ok instead of checking whether the packet ended up
8648 disabled.
8649 (extended_remote_supports_disable_randomization): Use
8650 packet_support.
8651 (extended_remote_run): Switch on the result of packet_ok instead
8652 of checking whether the packet ended up disabled.
8653 (remote_insert_breakpoint, remote_remove_breakpoint)
8654 (remote_insert_watchpoint, remote_remove_watchpoint)
8655 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8656 packet_support.
8657 (remote_search_memory): Use packet_config_support.
8658 (remote_get_thread_local_address, remote_get_tib_address)
8659 (remote_hostio_send_command, remote_can_execute_reverse): Use
8660 packet_support.
8661 (remote_supports_cond_tracepoints)
8662 (remote_supports_cond_breakpoints)
8663 (remote_supports_fast_tracepoints)
8664 (remote_supports_static_tracepoints)
8665 (remote_supports_install_in_trace)
8666 (remote_supports_enable_disable_tracepoint)
8667 (remote_supports_string_tracing)
8668 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8669 the packet config says the feature is enabled or disabled.
8670 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8671 (remote_get_trace_status): Use packet_support.
8672 (remote_set_disconnected_tracing): Adjust to check whether the
8673 feature is enabled with packet_support.
8674 (remote_set_trace_buffer_size, remote_use_agent)
8675 (remote_can_use_agent, remote_supports_btrace): Use
8676 packet_support.
8677 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8678 Use packet_config_support.
8679 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8680 the packet config says the feature is enabled or disabled.
8681 (set_range_stepping): Use packet_support.
8682
8683 2014-04-25 Tom Tromey <tromey@redhat.com>
8684
8685 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8686 argument.
8687
8688 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8689
8690 * NEWS: Mention support for C99 variable length arrays.
8691
8692 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8693
8694 * ada-lang.c (standard_exc): Expand introductory comment.
8695
8696 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8697 Walfred Tedeschi <walfred.tedeschi@intel.com>
8698
8699 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8700 AVX512 registers.
8701 (amd64_linux_read_description): Add code to handle AVX512 xstate
8702 mask and return respective tdesc.
8703 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8704 and features/i386/x32-avx512-linux.c.
8705 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8706 (amd64_linux_core_read_description): Add code to handle AVX512
8707 xstate mask and return respective tdesc.
8708 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8709 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8710 calculation.
8711 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8712 (tdesc_amd64_avx512_linux): New prototype.
8713 (tdesc_x32_avx512_linux): Likewise.
8714 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8715 features/i386/x32-avx512.c.
8716 (amd64_ymm_avx512_names): New register names for pseudo
8717 registers YMM16-31.
8718 (amd64_ymmh_avx512_names): New register names for raw registers
8719 YMMH16-31.
8720 (amd64_k_names): New register names for K registers.
8721 (amd64_zmmh_names): New register names for ZMM raw registers.
8722 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8723 (amd64_xmm_avx512_names): New register names for XMM16-31
8724 registers.
8725 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8726 registers.
8727 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8728 if feature is present.
8729 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8730 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8731 (AMD64_NUM_REGS): Adjust to new number of registers.
8732 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8733 registers supplied via XSTATE by AVX512 registers.
8734 (i386_linux_read_description): Add case for AVX512.
8735 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8736 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8737 (i386_linux_core_read_description): Add case for AVX512.
8738 (i386_linux_init_abi): Install supported register note section
8739 for AVX512.
8740 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8741 AVX512.
8742 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8743 registers to be number of zmm7h + 1.
8744 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8745 * i386-tdep.c: Include features/i386/i386-avx512.c.
8746 (i386_zmm_names): Add ZMM pseudo register names array.
8747 (i386_zmmh_names): Add ZMM raw register names array.
8748 (i386_k_names): Add K raw register names array.
8749 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8750 registers. AVX512 has 16 more ZMM registers than there are YMM
8751 registers.
8752 (i386_zmmh_regnum_p): Add function to look up register number of
8753 ZMM raw registers.
8754 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8755 (i386_k_regnum_p): Likewise for K raw registers.
8756 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8757 registers added by AVX512.
8758 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8759 registers added by AVX512.
8760 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8761 added by AVX512.
8762 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8763 (i386_pseudo_register_name): Add ZMM pseudo registers.
8764 (i386_zmm_type): Construct and return vector registers type for ZMM
8765 registers.
8766 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8767 ZMM0-31 pseudo registers and K registers.
8768 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8769 and YMM16-31 registers from register cache.
8770 (i386_pseudo_register_write): Add code to write K, ZMM and
8771 YMM16-31 registers.
8772 (i386_register_reggroup_p): Add code to include/exclude AVX512
8773 registers in/from respective register groups.
8774 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8775 registers if feature is present in xcr0.
8776 (i386_gdbarch_init): Add code to initialize AVX512 feature
8777 variables in tdep structure, wire in pseudo registers and call
8778 initialize_tdesc_i386_avx512.
8779 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8780 variables.
8781 (i386_regnum): Add AVX512 registers.
8782 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8783 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8784 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8785 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8786 512 bits wide.
8787 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8788 (i386_ymm_avx512_regnum_p): Likewise.
8789 (i386_k_regnum_p): Likewise.
8790 (i386_zmm_regnum_p): Likewise.
8791 (i386_zmmh_regnum_p): Likewise.
8792 * i387-tdep.c : Update year in copyright notice.
8793 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8794 XSAVE buffer.
8795 (XSAVE_YMM_AVX512_ADDR): New macro.
8796 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8797 XSAVE buffer.
8798 (XSAVE_XMM_AVX512_ADDR): New macro.
8799 (xsave_avx512_k_offset): New table for K register offsets in
8800 XSAVE buffer.
8801 (XSAVE_AVX512_K_ADDR): New macro.
8802 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8803 in XSAVE buffer.
8804 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8805 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8806 buffer.
8807 (i387_collect_xsave): Add code to collect AVX512 registers from
8808 XSAVE buffer.
8809 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8810 of XMM16-31 registers.
8811 (I387_NUM_K_REGS): New define for number of K registers.
8812 (I387_K0_REGNUM): New define for K0 register number.
8813 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8814 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8815 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8816 registers.
8817 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8818 (I387_XMM16_REGNUM): New define for XMM16 register number.
8819 (I387_YMM0_REGNUM): New define for YMM0 register number.
8820 (I387_KEND_REGNUM): New define for last K register number.
8821 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8822 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8823 number.
8824 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8825 number.
8826 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8827 size.
8828 * features/Makefile: Add AVX512 related files.
8829 * features/i386/32bit-avx512.xml: New file.
8830 * features/i386/64bit-avx512.xml: Likewise.
8831 * features/i386/amd64-avx512-linux.c: Likewise.
8832 * features/i386/amd64-avx512-linux.xml: Likewise.
8833 * features/i386/amd64-avx512.c: Likewise.
8834 * features/i386/amd64-avx512.xml: Likewise.
8835 * features/i386/i386-avx512-linux.c: Likewise.
8836 * features/i386/i386-avx512-linux.xml: Likewise.
8837 * features/i386/i386-avx512.c: Likewise.
8838 * features/i386/i386-avx512.xml: Likewise.
8839 * features/i386/x32-avx512-linux.c: Likewise.
8840 * features/i386/x32-avx512-linux.xml: Likewise.
8841 * features/i386/x32-avx512.c: Likewise.
8842 * features/i386/x32-avx512.xml: Likewise.
8843 * regformats/i386/amd64-avx512-linux.dat: New file.
8844 * regformats/i386/amd64-avx512.dat: Likewise.
8845 * regformats/i386/i386-avx512-linux.dat: Likewise.
8846 * regformats/i386/i386-avx512.dat: Likewise.
8847 * regformats/i386/x32-avx512-linux.dat: Likewise.
8848 * regformats/i386/x32-avx512.dat: Likewise.
8849 * NEWS: Add note about new support for AVX512.
8850
8851
8852 2014-04-23 Pedro Alves <palves@redhat.com>
8853
8854 * breakpoint.c (insert_bp_location): Tolerate errors if the
8855 breakpoint is set in a user-loaded objfile.
8856 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8857 location is marked shlib_disabled. If the breakpoint is set in a
8858 user-loaded objfile is a GDB-side memory breakpoint, validate it
8859 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8860 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8861 flag.
8862 * mem-break.c (memory_validate_breakpoint): New function.
8863 * objfiles.c (userloaded_objfile_contains_address_p): New
8864 function.
8865 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8866 * target.h (memory_validate_breakpoint): New declaration.
8867
8868 2014-04-23 Pedro Alves <palves@redhat.com>
8869
8870 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8871 the breakpoint is set in a shared library, only suppress
8872 errors for software breakpoints, not hardware breakpoints.
8873
8874 2014-04-22 Pedro Alves <palves@redhat.com>
8875
8876 * infrun.c (schedlock_applies): New function, factored out from
8877 find_thread_needs_step_over.
8878 (find_thread_needs_step_over): Use it.
8879 (switch_back_to_stepped_thread): Always clear trap_expected if the
8880 step over is finished. Return early if scheduler locking applies.
8881 Look for the stepping thread and a potential step-over thread with
8882 a single loop.
8883 (currently_stepping_or_nexting_callback): Delete.
8884
8885 2014-04-22 Nick Clifton <nickc@redhat.com>
8886
8887 * NEWS: Mention that ARM sim now supports tracing.
8888
8889 2014-04-22 Yao Qi <yao@codesourcery.com>
8890
8891 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8892 to ...
8893 * tracefile.c (tracefile_fetch_registers): ... it. New
8894 function.
8895 * tracefile.h (tracefile_fetch_registers): Declare.
8896 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8897 tracefile_fetch_registers.
8898
8899 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8900
8901 PR gdb/14018
8902 * windows-nat.c (thread_rec): Don't display a warning when
8903 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8904 fails for any reason, set th->suspended to -1, so that we don't
8905 try to resume such a thread. Also, don't return NULL in these
8906 cases, to avoid completely ruin the session due to "PC register is
8907 not available" error.
8908 (do_windows_fetch_inferior_registers): Check errors in
8909 GetThreadContext call.
8910 (windows_continue): Accept an additional argument KILLED; if not
8911 zero, ignore errors in the SetThreadContext call, since the
8912 inferior was killed and is shutting down.
8913 (windows_resume, get_windows_debug_event)
8914 (windows_create_inferior, windows_mourn_inferior)
8915 (windows_kill_inferior): All callers of windows_continue changed
8916 to adjust to its new calling sequence.
8917
8918 2014-04-19 Yao Qi <yao@codesourcery.com>
8919
8920 * ctf.c (ctf_open): Call post_create_inferior.
8921
8922 2014-04-19 Yao Qi <yao@codesourcery.com>
8923
8924 * ctf.c (handle_id): New static variable.
8925 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8926 value. Get the declaration of event "register" and get length
8927 of field "contents".
8928
8929 2014-04-19 Yao Qi <yao@codesourcery.com>
8930
8931 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8932
8933 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8934
8935 * valops.c (oload_method_static): Remove unnecessary argument
8936 METHOD. Update all callers.
8937
8938 2014-04-18 Pedro alves <palves@redhat.com>
8939 Tom Tromey <tromey@redhat.com>
8940
8941 PR backtrace/15558
8942 * frame.c (get_prev_frame_1): Rename to ...
8943 (get_prev_frame_always): ... this, and make extern. Adjust.
8944 (skip_artificial_frames): Use get_prev_frame_always.
8945 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8946 (get_frame_unwind_stop_reason): Adjust to rename.
8947 * frame.h (get_prev_frame_always): Declare.
8948 * inline-frame.c: Include frame.h.
8949 (inline_frame_this_id): Use get_prev_frame_always.
8950
8951 2014-04-18 Tristan Gingold <gingold@adacore.com>
8952
8953 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8954 code by using bfd_mach_o_get_base_address.
8955
8956 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8957
8958 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8959 (spu_ax_pseudo_register_collect): New function.
8960 (spu_ax_pseudo_register_push_stack): Likewise.
8961 (spu_dwarf_reg_to_regnum): Likewise.
8962 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8963
8964 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8965
8966 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8967 Replace FRAME argument with FRAME_ID.
8968 * gdbarch.c, gdbarch.h: Regenerate.
8969 * findvar.c (default_value_from_register): Add GDBARCH argument;
8970 replace FRAME by FRAME_ID. No longer call get_frame_id.
8971 (value_from_register): Update call to gdbarch_value_from_register.
8972 * value.h (default_value_from_register): Update prototype.
8973 * s390-linux-tdep.c (s390_value_from_register): Update interface
8974 and call to default_value_from_register.
8975 * spu-tdep.c (spu_value_from_register): Likewise.
8976
8977 * findvar.c (address_from_register): Remove TYPE argument.
8978 Do not call value_from_register; use gdbarch_value_from_register
8979 with null_frame_id instead.
8980 * value.h (address_from_register): Update prototype.
8981 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8982 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8983 address_from_register interface change.
8984
8985 2014-04-17 Yao Qi <yao@codesourcery.com>
8986
8987 * gdbtypes.h: Update comments to link to types and macros'
8988 definitions.
8989
8990 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8991
8992 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8993
8994 2014-04-16 Keith Seitz <keiths@redhat.com>
8995
8996 PR gdb/15827
8997 * dwarf2read.c (skip_one_die): Check that all relative-offset
8998 sibling DIEs fall within range of the current reader's buffer.
8999 (read_partial_die): Likewise.
9000
9001 2014-04-16 Keith Seitz <keiths@redhat.com>
9002
9003 PR c++/16597
9004 * cp-namespace.c (lookup_symbol_file): If the type name of
9005 `this' is NULL, return immediately.
9006
9007 2014-04-14 Keith Seitz <keiths@redhat.com>
9008
9009 PR c++/16253
9010 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9011 from symbol_matches_domain in symtab.c. All local callers
9012 of symbol_matches_domain updated.
9013 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9014 search STRUCT_DOMAIN.
9015 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9016 independently. standard_lookup will do that automatically.
9017 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9018 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9019 (cp_lookup_symbol_in_namespace): Likewise.
9020 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9021 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9022 may return a STRUCT_DOMAIN match.
9023 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9024 * cp-support.c: Include language.h.
9025 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9026 VAR_DOMAIN.
9027 * psymtab.c (match_partial_symbol): Compare the requested
9028 domain with the symbol's domain directly.
9029 (lookup_partial_symbol): Likewise.
9030 * symtab.c (lookup_symbol_in_language): Explain when/why
9031 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9032 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9033 appropriate languages.
9034 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9035 and moved to ada-lang.c
9036 (lookup_block_symbol): Explain that this function only returns
9037 symbol matching the requested DOMAIN.
9038 Compare the requested domain with the symbol's domain directly.
9039 (iterate_over_symbols): Compare the requested domain with the
9040 symbol's domain directly.
9041 * symtab.h (symbol_matches_domain): Remove.
9042
9043 2014-04-14 Tom Tromey <tromey@redhat.com>
9044
9045 PR c++/15246:
9046 * c-exp.y (type_aggregate_p): New function.
9047 (qualified_name, classify_inner_name): Use it.
9048 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9049 and TYPE_TARGET_TYPE of an enum type.
9050 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9051 an enum type.
9052 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9053 handle TYPE_DECLARED_CLASS.
9054 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9055 types.
9056 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9057 * valops.c (enum_constant_from_type): New function.
9058 (value_aggregate_elt): Use it.
9059 * cp-namespace.c (cp_lookup_nested_symbol): Handle
9060 TYPE_CODE_ENUM.
9061
9062 2014-04-14 Tom Tromey <tromey@redhat.com>
9063
9064 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9065 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9066 const.
9067 * value.h (value_aggregate_elt): Update.
9068
9069 2014-04-14 Tom Tromey <tromey@redhat.com>
9070
9071 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9072
9073 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9074
9075 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9076 (evaluate_subexp_standard): Pass noside argument.
9077 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9078 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9079 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9080 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9081 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9082
9083 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9084
9085 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9086 points to a constant blob.
9087
9088 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9089
9090 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9091 property and store it as the high bound and flag the range accordingly.
9092 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9093 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9094 * gdbtypes.h (enum range_flags): New enum.
9095 (struct range_bounds): Add flags member.
9096
9097 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9098
9099 * c-typeprint.c (c_type_print_varspec_suffix): Added
9100 check for not yet resolved high bound. If unresolved, print
9101 "variable length" string to the console instead of random
9102 length.
9103
9104 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9105
9106 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9107 value.
9108 (ada_template_to_fixed_record_type_1): Likewise.
9109 (ada_to_fixed_type_1): Likewise.
9110 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9111 (cp_print_value): Likewise.
9112 * d-valprint.c (dynamic_array_type): Likewise.
9113 * findvar.c (address_of_variable): Likewise.
9114 * jv-valprint.c (java_value_print): Likewise.
9115 * valops.c (value_ind): Likewise.
9116 * value.c (coerce_ref): Likewise.
9117
9118 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9119
9120 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9121 value and retrieve the dynamic type size.
9122
9123 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9124
9125 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9126 passed to sizeof is dynamic evaluate the argument to compute the length.
9127
9128 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9129 Joel Brobecker <brobecker@adacore.com>
9130
9131 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9132 (dwarf2_evaluate_property): New function.
9133 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9134 * dwarf2read.c (attr_to_dynamic_prop): New function.
9135 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9136 attribute.
9137 * gdbtypes.c: Include dwarf2loc.h.
9138 (is_dynamic_type): New function.
9139 (resolve_dynamic_type): New function.
9140 (resolve_dynamic_bounds): New function.
9141 (get_type_length): New function.
9142 (check_typedef): Use get_type_length to compute type length.
9143 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9144 (TYPE_LOW_BOUND_KIND): New macro.
9145 (is_dynamic_type): New function prototype.
9146 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9147 to resolve dynamic properties of the type. Update comment.
9148 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9149
9150 2014-04-14 Richard Henderson <rth@redhat.com>
9151
9152 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9153
9154 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9155 Doug Evans <xdje42@gmail.com>
9156
9157 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9158 dereference TYPE_CODE_REF values.
9159
9160 2014-04-11 Joel Brobecker <brobecker@adacore.com>
9161
9162 Revert the following changes due to regressions:
9163
9164 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9165 (dwarf2_evaluate_property): New function.
9166 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9167 * dwarf2read.c (attr_to_dynamic_prop): New function.
9168 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9169 attribute.
9170 * gdbtypes.c: Include dwarf2loc.h.
9171 (is_dynamic_type): New function.
9172 (resolve_dynamic_type): New function.
9173 (resolve_dynamic_bounds): New function.
9174 (get_type_length): New function.
9175 (check_typedef): Use get_type_length to compute type length.
9176 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9177 (TYPE_LOW_BOUND_KIND): New macro.
9178 (is_dynamic_type): New function prototype.
9179 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9180 to resolve dynamic properties of the type. Update comment.
9181 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9182
9183 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9184 passed to sizeof is dynamic evaluate the argument to compute the length.
9185
9186 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9187 value and retrieve the dynamic type size.
9188
9189 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9190 (ada_template_to_fixed_record_type_1): Likewise.
9191 (ada_to_fixed_type_1): Likewise.
9192 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9193 (cp_print_value): Likewise.
9194 * d-valprint.c (dynamic_array_type): Likewise.
9195 * eval.c (evaluate_subexp_with_coercion): Likewise.
9196 * findvar.c (address_of_variable): Likewise.
9197 * jv-valprint.c (java_value_print): Likewise.
9198 * valops.c (value_ind): Likewise.
9199 * value.c (coerce_ref): Likewise.
9200
9201 * c-typeprint.c (c_type_print_varspec_suffix): Added
9202 check for not yet resolved high bound. If unresolved, print
9203 "variable length" string to the console instead of random
9204 length.
9205
9206 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9207 property and store it as the high bound and flag the range accordingly.
9208 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9209 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9210 * gdbtypes.h (enum range_flags): New enum.
9211 (struct range_bounds): Add flags member.
9212
9213 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9214 points to a constant blob.
9215
9216 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9217 (evaluate_subexp_standard): Pass noside argument.
9218 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9219 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9220 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9221 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9222 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9223
9224 2014-04-11 Keith Seitz <keiths@redhat.com>
9225
9226 PR c++/16675
9227 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9228 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9229 reference types.
9230
9231 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9232
9233 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9234 (evaluate_subexp_standard): Pass noside argument.
9235 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9236 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9237 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9238 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9239 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9240
9241 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9242
9243 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9244 points to a constant blob.
9245
9246 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9247
9248 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9249 property and store it as the high bound and flag the range accordingly.
9250 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9251 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9252 * gdbtypes.h (enum range_flags): New enum.
9253 (struct range_bounds): Add flags member.
9254
9255 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9256
9257 * c-typeprint.c (c_type_print_varspec_suffix): Added
9258 check for not yet resolved high bound. If unresolved, print
9259 "variable length" string to the console instead of random
9260 length.
9261
9262 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9263
9264 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9265 (ada_template_to_fixed_record_type_1): Likewise.
9266 (ada_to_fixed_type_1): Likewise.
9267 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9268 (cp_print_value): Likewise.
9269 * d-valprint.c (dynamic_array_type): Likewise.
9270 * eval.c (evaluate_subexp_with_coercion): Likewise.
9271 * findvar.c (address_of_variable): Likewise.
9272 * jv-valprint.c (java_value_print): Likewise.
9273 * valops.c (value_ind): Likewise.
9274 * value.c (coerce_ref): Likewise.
9275
9276 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9277
9278 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9279 value and retrieve the dynamic type size.
9280
9281 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9282
9283 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9284 passed to sizeof is dynamic evaluate the argument to compute the length.
9285
9286 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9287
9288 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9289 (dwarf2_evaluate_property): New function.
9290 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9291 * dwarf2read.c (attr_to_dynamic_prop): New function.
9292 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9293 attribute.
9294 * gdbtypes.c: Include dwarf2loc.h.
9295 (is_dynamic_type): New function.
9296 (resolve_dynamic_type): New function.
9297 (resolve_dynamic_bounds): New function.
9298 (get_type_length): New function.
9299 (check_typedef): Use get_type_length to compute type length.
9300 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9301 (TYPE_LOW_BOUND_KIND): New macro.
9302 (is_dynamic_type): New function prototype.
9303 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9304 to resolve dynamic properties of the type. Update comment.
9305 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9306
9307 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9308
9309 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9310 declaring high/low bounds and change uses accordingly. Call
9311 create_range_type instead of create_static_range_type.
9312 * gdbtypes.c (create_range_type): New function.
9313 (create_range_type): Convert bounds into struct bound_prop and pass
9314 them to create_range_type.
9315 * gdbtypes.h (struct bound_prop): New struct.
9316 (create_range_type): New function prototype.
9317 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9318 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9319 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9320 part of the bound.
9321 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9322
9323 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9324
9325 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9326 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9327 * ada-lang.c: All uses of create_range_type updated.
9328 * coffread.c: All uses of create_range_type updated.
9329 * dwarf2read.c: All uses of create_range_type updated.
9330 * f-exp.y: All uses of create_range_type updated.
9331 * m2-valprint.c: All uses of create_range_type updated.
9332 * mdebugread.c: All uses of create_range_type updated.
9333 * stabsread.c: All uses of create_range_type updated.
9334 * valops.c: All uses of create_range_type updated.
9335 * valprint.c: All uses of create_range_type updated.
9336
9337 2014-04-10 Pedro Alves <palves@redhat.com>
9338
9339 * breakpoint.c (single_step_breakpoints)
9340 (single_step_gdbarch): Move up in the file.
9341 (one_breakpoint_xfer_memory): New function, factored out from ...
9342 (breakpoint_xfer_memory): ... here. Also process single-step
9343 breakpoints.
9344
9345 2014-04-09 Tristan Gingold <gingold@adacore.com>
9346
9347 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9348 comments.
9349 (darwin_decode_exception_message): Free port only after use.
9350
9351 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9352
9353 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9354 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9355 when setting the size of call_length.
9356
9357 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9358
9359 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9360 dereference TYPE_CODE_REF values.
9361
9362 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9363
9364 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9365 end of warning message.
9366
9367 2014-04-03 Doug Evans <dje@google.com>
9368
9369 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9370 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9371
9372 2014-04-02 Alan Modra <amodra@gmail.com>
9373
9374 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9375 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9376 (struct symbol_file_add_from_memory_args): Add size field.
9377 (find_vdso_size): New function.
9378 (add_vsyscall_page): Attempt to find vdso size.
9379
9380 2014-04-01 Doug Evans <dje@google.com>
9381
9382 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9383
9384 2014-04-01 Tristan Gingold <gingold@adacore.com>
9385
9386 * darwin-nat.c (darwin_encode_reply): Add prototype.
9387 (darwin_decode_exception_message): Reply to unknown inferiors.
9388 (darwin_decode_message): Handle message by id. Ignore message
9389 to unknown inferior.
9390 (darwin_wait): Discard unknown messages, add debug trace.
9391
9392 2014-03-31 Doug Evans <dje@google.com>
9393
9394 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9395 comp_dir_string.
9396
9397 2014-03-31 Doug Evans <dje@google.com>
9398
9399 New option "set print symbol-loading".
9400 * NEWS: Mention it.
9401 * solib.c (solib_read_symbols): Only print symbol loading messages
9402 if requested.
9403 (solib_add): If symbol loading is in "brief" mode, notify user
9404 symbols are being loaded.
9405 (reload_shared_libraries_1): Ditto.
9406 * symfile.c (print_symbol_loading_off): New static global.
9407 (print_symbol_loading_brief): New static global.
9408 (print_symbol_loading_full): New static global.
9409 (print_symbol_loading_enums): New static global.
9410 (print_symbol_loading): New static global.
9411 (print_symbol_loading_p): New function.
9412 (symbol_file_add_with_addrs): Only print symbol loading messages
9413 if requested.
9414 (_initialize_symfile): Register "print symbol-loading" set/show
9415 command.
9416 * symfile.h (print_symbol_loading_p): Declare.
9417
9418 2014-03-30 Doug Evans <xdje42@gmail.com>
9419
9420 * infrun.c (set_last_target_status): New function.
9421 (handle_inferior_event): Call it.
9422
9423 2014-03-30 Doug Evans <xdje42@gmail.com>
9424
9425 * inferior.h (enum stop_kind): Improve comment.
9426
9427 2014-03-28 Joel Brobecker <brobecker@adacore.com>
9428
9429 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9430 a reference, strip the reference layer before calling
9431 the lang_ops value_has_mutated callback.
9432
9433 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9434
9435 Remove some globals from our parser.
9436 * language.c (unk_lang_parser): Add "struct parser_state"
9437 argument.
9438 * language.h (struct language_defn) <la_parser>: Likewise.
9439 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9440 (initialize_expout): Add "struct parser_state" argument.
9441 Rewrite function to use the parser state.
9442 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9443 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9444 write_exp_elt_longcst, write_exp_elt_dblcst,
9445 write_exp_elt_decfloatcst, write_exp_elt_type,
9446 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9447 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9448 write_dollar_variable): Likewise.
9449 (parse_exp_in_context_1): Use parser state.
9450 (insert_type_address_space): Add "struct parser_state" argument.
9451 Use parser state.
9452 (increase_expout_size): New function.
9453 * parser-defs.h: Forward declare "struct language_defn" and
9454 "struct parser_state".
9455 (expout, expout_size, expout_ptr): Remove extern declarations.
9456 (parse_gdbarch, parse_language): Rewrite macro declarations to
9457 accept the parser state.
9458 (struct parser_state): New struct.
9459 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9460 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9461 write_exp_elt_decfloatcst, write_exp_elt_type,
9462 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9463 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9464 write_exp_msymbol, write_dollar_variable,
9465 mark_struct_expression, insert_type_address_space): Add "struct
9466 parser_state" argument.
9467 (increase_expout_size): New function.
9468 * utils.c (do_clear_parser_state): New function.
9469 (make_cleanup_clear_parser_state): Likewise.
9470 * utils.h (make_cleanup_clear_parser_state): New function
9471 prototype.
9472 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9473 Update calls to write_exp* in order to pass the parser state.
9474 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9475 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9476 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9477 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9478 * stap-probe.c (stap_parse_register_operand): Likewise.
9479 (stap_parse_single_operand): Likewise.
9480 (stap_parse_argument_1): Likewise.
9481 (stap_parse_argument): Use parser state.
9482 * stap-probe.h: Include "parser-defs.h".
9483 (struct stap_parse_info) <pstate>: New field.
9484 * c-exp.y (parse_type): Rewrite to use parser state.
9485 (yyparse): Redefine to c_parse_internal.
9486 (pstate): New global variable.
9487 (parse_number): Add "struct parser_state" argument.
9488 (write_destructor_name): Likewise.
9489 (type_exp): Update calls to write_exp* and similars in order to
9490 use parser state.
9491 (exp1, exp, variable, qualified_name, space_identifier,
9492 typename, typebase): Likewise.
9493 (write_destructor_name, parse_number, lex_one_token,
9494 classify_name, classify_inner_name, c_parse): Add "struct
9495 parser_state" argument. Update function to use parser state.
9496 * c-lang.h: Forward declare "struct parser_state".
9497 (c_parse): Add "struct parser_state" argument.
9498 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9499 (yyparse): Redefine macro to ada_parse_internal.
9500 (pstate): New variable.
9501 (write_int, write_object_renaming, write_var_or_type,
9502 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9503 type_int, type_long, type_long_long, type_float, type_double,
9504 type_long_double, type_char, type_boolean, type_system_address):
9505 Add "struct parser_state" argument.
9506 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9507 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9508 var_or_type, aggregate, aggregate_component_list,
9509 positional_list, others, component_group,
9510 component_associations): Update calls to write_exp* and similar
9511 functions in order to use parser state.
9512 (ada_parse, write_var_from_sym, write_int,
9513 write_exp_op_with_string, write_object_renaming,
9514 find_primitive_type, write_selectors, write_ambiguous_var,
9515 write_var_or_type, write_name_assoc, type_int, type_long,
9516 type_long_long, type_float, type_double, type_long_double,
9517 type_char, type_boolean, type_system_address): Add "struct
9518 parser_state" argument. Adjust function to use parser state.
9519 * ada-lang.c (parse): Likewise.
9520 * ada-lang.h: Forward declare "struct parser_state".
9521 (ada_parse): Add "struct parser_state" argument.
9522 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9523 calls to both functions.
9524 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9525 parser state.
9526 (yyparse): Redefine macro to f_parse_internal.
9527 (pstate): New variable.
9528 (parse_number): Add "struct parser_state" argument.
9529 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9530 and similars in order to use parser state.
9531 (parse_number): Adjust code to use parser state.
9532 (yylex): Likewise.
9533 (f_parse): New function.
9534 * f-lang.h: Forward declare "struct parser_state".
9535 (f_parse): Add "struct parser_state" argument.
9536 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9537 parser state.
9538 (yyparse): Redefine macro for java_parse_internal.
9539 (pstate): New variable.
9540 (push_expression_name, push_expression_name, insert_exp): Add
9541 "struct parser_state" argument.
9542 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9543 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9544 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9545 PostIncrementExpression, PostDecrementExpression,
9546 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9547 UnaryExpressionNotPlusMinus, CastExpression,
9548 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9549 RelationalExpression, EqualityExpression, AndExpression,
9550 ExclusiveOrExpression, InclusiveOrExpression,
9551 ConditionalAndExpression, ConditionalOrExpression,
9552 ConditionalExpression, Assignment, LeftHandSide): Update
9553 calls to write_exp* and similars in order to use parser state.
9554 (parse_number): Ajust code to use parser state.
9555 (yylex): Likewise.
9556 (java_parse): New function.
9557 (push_variable): Add "struct parser_state" argument. Adjust
9558 code to user parser state.
9559 (push_fieldnames, push_qualified_expression_name,
9560 push_expression_name, insert_exp): Likewise.
9561 * jv-lang.h: Forward declare "struct parser_state".
9562 (java_parse): Add "struct parser_state" argument.
9563 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9564 parser state.
9565 (yyparse): Redefine macro to m2_parse_internal.
9566 (pstate): New variable.
9567 (type_exp, exp, fblock, variable, type): Update calls to
9568 write_exp* and similars to use parser state.
9569 (yylex): Likewise.
9570 (m2_parse): New function.
9571 * m2-lang.h: Forward declare "struct parser_state".
9572 (m2_parse): Add "struct parser_state" argument.
9573 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9574 * objc-lang.h: Forward declare "struct parser_state".
9575 (end_msglist): Add "struct parser_state" argument.
9576 * p-exp.y (parse_type): Rewrite macro to use parser state.
9577 (yyparse): Redefine macro to pascal_parse_internal.
9578 (pstate): New variable.
9579 (parse_number): Add "struct parser_state" argument.
9580 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9581 write_exp* and similars in order to use parser state.
9582 (parse_number, yylex): Adjust code to use parser state.
9583 (pascal_parse): New function.
9584 * p-lang.h: Forward declare "struct parser_state".
9585 (pascal_parse): Add "struct parser_state" argument.
9586 * go-exp.y (parse_type): Rewrite macro to use parser state.
9587 (yyparse): Redefine macro to go_parse_internal.
9588 (pstate): New variable.
9589 (parse_number): Add "struct parser_state" argument.
9590 (type_exp, exp1, exp, variable, type): Update calls to
9591 write_exp* and similars in order to use parser state.
9592 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9593 to use parser state.
9594 (go_parse): Likewise.
9595 * go-lang.h: Forward declare "struct parser_state".
9596 (go_parse): Add "struct parser_state" argument.
9597
9598 2014-03-27 Doug Evans <dje@google.com>
9599
9600 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9601
9602 2014-03-27 Doug Evans <dje@google.com>
9603
9604 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9605 Remove argument abbrev_section. All callers updated.
9606
9607 2014-03-27 Doug Evans <dje@google.com>
9608
9609 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9610 addr_base, ranges_base.
9611
9612 2014-03-26 Keith Seitz <keiths@redhat.com>
9613
9614 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9615 types, not VAR_DOMAIN.
9616
9617 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9618
9619 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9620 "ra" registers.
9621 * features/nios2-linux.c: Regenerated.
9622 * features/nios2.c: Regenerated.
9623
9624 2014-03-25 Pedro Alves <palves@redhat.com>
9625
9626 * cli/cli-script.c (script_from_file): Force the interpreter to
9627 sync mode.
9628
9629 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9630
9631 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9632 small stack allocation.
9633
9634 2014-03-24 Tristan Gingold <gingold@adacore.com>
9635
9636 * darwin-nat.c (exc_server): Remove unused prototype.
9637 (darwin_dump_message): Correctly display data on x86_64.
9638 (darwin_encode_reply): Fix style.
9639 Add comments and fix indentation.
9640
9641 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9642
9643 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9644
9645 2014-03-22 Doug Evans <xdje42@gmail.com>
9646
9647 * infcmd.c: Whitespace fixes.
9648 (interrupt_command): Merge two function comments into one.
9649
9650 2014-03-22 Doug Evans <xdje42@gmail.com>
9651
9652 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9653 All uses updated.
9654
9655 2014-03-22 Yao Qi <yao@codesourcery.com>
9656
9657 * remote.c (target_read_live_memory): Remove.
9658 (memory_xfer_live_readonly_partial): Rename it to
9659 remote_xfer_live_readonly_partial. Remove argument 'object'.
9660 All callers updated. Call remote_read_bytes_1
9661 instead of target_read_live_memory.
9662 * tracepoint.c (set_traceframe_number): Remove.
9663 (make_cleanup_restore_traceframe_number): Likewise .
9664 * tracepoint.h (set_traceframe_number): Remove declaration.
9665 (make_cleanup_restore_traceframe_number): Likewise.
9666
9667 2014-03-22 Yao Qi <yao@codesourcery.com>
9668
9669 * remote.c (remote_read_bytes): Move code on reading from the
9670 remote stub to ...
9671 (remote_read_bytes_1): ... here. New function.
9672
9673 2014-03-22 Yao Qi <yao@codesourcery.com>
9674
9675 * ctf.c (ctf_xfer_partial): Check the return value of
9676 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9677 return TARGET_XFER_UNAVAILABLE.
9678 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9679 * target.c (target_read_live_memory): Move it to remote.c.
9680 (memory_xfer_live_readonly_partial): Likewise.
9681 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9682 * remote.c (target_read_live_memory): Moved from target.c.
9683 (memory_xfer_live_readonly_partial): Likewise.
9684 (remote_read_bytes): Factored out from
9685 memory_xfer_partial_1.
9686
9687 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9688
9689 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9690 NULL pointer.
9691
9692 2014-03-21 Pedro Alves <palves@redhat.com>
9693
9694 * infrun.c (normal_stop): Extend comment.
9695
9696 2014-03-21 Hui Zhu <hui@codesourcery.com>
9697 Pedro Alves <palves@redhat.com>
9698
9699 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9700 static buffer.
9701 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9702 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9703 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9704
9705 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9706
9707 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9708 `z' formatted output modifier.
9709
9710 2014-03-20 Tom Tromey <tromey@redhat.com>
9711 Sergio Durigan Junior <sergiodj@redhat.com>
9712
9713 * probe.c (parse_probes): Turn assert into an ordinary error.
9714 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9715 exceptions when parsing probes. Rearrange the code for clarity.
9716
9717 2014-03-20 Tom Tromey <tromey@redhat.com>
9718
9719 PR gdb/14135
9720 * top.c (execute_command): Only dispatch events if the command
9721 started the target.
9722
9723 2014-03-20 Tom Tromey <tromey@redhat.com>
9724
9725 PR cli/15718
9726 * infcall.c: Include event-top.h.
9727 (run_inferior_call): Call async_disable_stdin if needed.
9728
9729 2014-03-20 Pedro Alves <palves@redhat.com>
9730
9731 * infrun.c (prepare_to_proceed): Delete.
9732 (thread_still_needs_step_over): New function.
9733 (find_thread_needs_step_over): New function.
9734 (proceed): If the current thread needs a step-over, set its
9735 steping_over_breakpoint flag. Adjust to use
9736 find_thread_needs_step_over instead of prepare_to_proceed.
9737 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9738 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9739 breakpoint.
9740 (switch_back_to_stepped_thread): Step over breakpoints of all
9741 threads not the stepping thread, before switching back to the
9742 stepping thread.
9743
9744 2014-03-20 Pedro Alves <palves@redhat.com>
9745
9746 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9747 extern.
9748 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9749 * infrun.c (saved_singlestep_ptid)
9750 (stepping_past_singlestep_breakpoint): Delete.
9751 (resume): Remove stepping_past_singlestep_breakpoint handling.
9752 (proceed): Store the prev_pc of the stepping thread too.
9753 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9754 singlestep_pc.
9755 (enum infwait_states): Delete infwait_thread_hop_state.
9756 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9757 field.
9758 (handle_inferior_event): Adjust.
9759 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9760 handling and the thread-hop code. Before removing single-step
9761 breakpoints, check whether the thread hit a single-step breakpoint
9762 of another thread. If it did, the trap is not a random signal.
9763 (switch_back_to_stepped_thread): If the event thread hit a
9764 single-step breakpoint, unblock it before switching to the
9765 stepping thread. Handle the case of the stepped thread having
9766 advanced already.
9767 (keep_going): Handle the case of the current thread moving past a
9768 single-step breakpoint.
9769
9770 2014-03-20 Pedro Alves <palves@redhat.com>
9771
9772 PR breakpoints/7143
9773 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9774 are being stepped over.
9775 (breakpoint_address_match): Make extern.
9776 * breakpoint.h (breakpoint_address_match): New declaration.
9777 * inferior.h (stepping_past_instruction_at): New declaration.
9778 * infrun.c (struct step_over_info): New type.
9779 (step_over_info): New global.
9780 (set_step_over_info, clear_step_over_info)
9781 (stepping_past_instruction_at): New functions.
9782 (handle_inferior_event): Clear the step-over info when
9783 trap_expected is cleared.
9784 (resume): Remove now stale comment.
9785 (clear_proceed_status): Clear step-over info.
9786 (proceed): Adjust step-over handling to set or clear the step-over
9787 info instead of removing all breakpoints.
9788 (handle_signal_stop): When setting up a thread-hop, don't remove
9789 breakpoints here.
9790 (stop_stepping): Clear step-over info.
9791 (keep_going): Adjust step-over handling to set or clear step-over
9792 info and then always inserting breakpoints, instead of removing
9793 all breakpoints when stepping over one.
9794
9795 2014-03-20 Pedro Alves <palves@redhat.com>
9796
9797 * infrun.c (previous_inferior_ptid): Adjust comment.
9798 (deferred_step_ptid): Delete.
9799 (infrun_thread_ptid_changed, prepare_to_proceed)
9800 (init_wait_for_inferior): Adjust.
9801 (handle_signal_stop): Delete deferred_step_ptid handling.
9802
9803 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9804
9805 PR gdb/15358
9806 * defs.h (sync_quit_force_run): New declaration.
9807 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9808 * event-top.c (async_sigterm_handler): New declaration.
9809 (async_sigterm_token): New variable.
9810 (async_init_signals): Create also async_sigterm_token.
9811 (async_sigterm_handler): New function.
9812 (sync_quit_force_run): New variable.
9813 (handle_sigterm): Replace quit_force call by other calls.
9814 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9815
9816 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9817
9818 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9819 offset into SPE pseudo registers.
9820
9821 2014-03-18 Pedro Alves <palves@redhat.com>
9822
9823 PR gdb/13860
9824 * inferior.h (print_stop_event): Declare.
9825 * infrun.c (print_stop_event): New, factored out from ...
9826 (normal_stop): ... this.
9827 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9828 of bpstat_print/print_stack_frame.
9829
9830 2014-03-17 Tom Tromey <tromey@redhat.com>
9831
9832 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9833
9834 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9835
9836 * ada-lang.c (decode_constrained_packed_array): Perform a
9837 minimal coercion for reference with coerce_ref instead of
9838 ada_coerce_ref.
9839
9840 2014-03-17 Tristan Gingold <gingold@adacore.com>
9841
9842 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9843 (darwin_solib_create_inferior_hook): Emit a warning if version
9844 is unhandled.
9845
9846 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9847
9848 * python/py-value.c (get_field_flag): Cast flag_name argument to
9849 PyObject_GetAttrString to support Python 2.4.
9850
9851 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9852
9853 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9854 (Global Maintainers): Remove Jan Kratochvil.
9855
9856 2014-03-14 Pedro Alves <palves@redhat.com>
9857
9858 * inferior.h (terminal_ours_for_output): Rename to ...
9859 (child_terminal_ours_for_output): ... this.
9860 (terminal_save_ours): Rename to ...
9861 (child_terminal_save_ours): ... this.
9862 (terminal_ours): Rename to ...
9863 (child_terminal_ours): ... this.
9864 (terminal_inferior): Rename to ...
9865 (child_terminal_inferior): ... this.
9866 (terminal_init_inferior): Rename to ...
9867 (child_terminal_init_inferior): ... this.
9868 (terminal_init_inferior_with_pgrp): Rename to ...
9869 (child_terminal_init_inferior_with_pgrp): ... this.
9870 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9871 (child_terminal_init_with_pgrp): ... this.
9872 (terminal_save_ours): Rename to ...
9873 (child_terminal_save_ours): ... this.
9874 (terminal_init_inferior): Rename to ...
9875 (child_terminal_init): ... this. Adjust.
9876 (terminal_inferior): Rename to ...
9877 (child_terminal_inferior): ... this.
9878 (terminal_ours_for_output): Rename to ...
9879 (child_terminal_ours_for_output): ... this. Adjust.
9880 (terminal_ours): Rename to ...
9881 (child_terminal_ours): ... this.
9882 (terminal_ours_1): Rename to ...
9883 (child_terminal_ours_1): ... this. Adjust.
9884 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9885 * windows-nat.c (do_initial_windows_stuff): Adjust.
9886 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9887 (gnu_terminal_init): ... this. Adjust.
9888 (gnu_target): Adjust.
9889 * inf-child.c (inf_child_target): Adjust.
9890
9891 2014-03-13 Doug Evans <xdje42@gmail.com>
9892
9893 PR guile/16612
9894 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9895 new eq?-hashtab.
9896
9897 2014-03-13 Doug Evans <xdje42@gmail.com>
9898
9899 * value.c (record_latest_value): Call release_value_or_incref
9900 instead of release_value.
9901
9902 2014-03-13 Pedro Alves <palves@redhat.com>
9903
9904 * procfs.c (procfs_target): Don't override to_shortname,
9905 to_longname or to_doc.
9906
9907 2014-03-13 Pedro Alves <palves@redhat.com>
9908
9909 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9910 Unix in user visible strings.
9911
9912 2014-03-12 Stan Shebs <stan@codesourcery.com>
9913
9914 * gdbtypes.h: Annotate comments for Doxygen, add a page
9915 block comment with some general info.
9916
9917 2014-03-12 Pedro Alves <palves@redhat.com>
9918
9919 * infcmd.c (prepare_execution_command): New function, factored out
9920 from several execution commands.
9921 (run_command_1, continue_command, step_1, jump_command)
9922 (signal_command, until_command, advance_command, finish_command)
9923 (attach_command): Use prepare_execution_command.
9924
9925 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9926
9927 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9928 (MAX_BPTS): Define.
9929 (MAX_WPTS): Define.
9930 (struct arm_linux_thread_points): Removed.
9931 (struct arm_linux_process_info): New.
9932 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9933 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9934 (arm_linux_find_breakpoints_by_tid): Removed.
9935 (struct arch_lwp_info): New.
9936 (arm_linux_find_process_pid): New functions.
9937 (arm_linux_add_process): New functions.
9938 (arm_linux_process_info_get): New functions.
9939 (arm_linux_forget_process): New function.
9940 (arm_linux_get_debug_reg_state): New function.
9941 (struct update_registers_data): New.
9942 (update_registers_callback): New function.
9943 (arm_linux_insert_hw_breakpoint1): Updated.
9944 (arm_linux_remove_hw_breakpoint1): Updated.
9945 (arm_linux_insert_hw_breakpoint): Updated.
9946 (arm_linux_remove_hw_breakpoint): Updated.
9947 (arm_linux_insert_watchpoint): Updated.
9948 (arm_linux_remove_watchpoint): Updated.
9949 (arm_linux_new_thread): Updated.
9950 (arm_linux_prepare_to_resume): New function.
9951 (arm_linux_new_fork): New function.
9952 (_initialize_arm_linux_nat): Updated.
9953
9954 2014-03-12 Pedro Alves <palves@redhat.com>
9955
9956 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9957
9958 2014-03-12 Tom Tromey <tromey@redhat.com>
9959
9960 * inf-child.c (return_zero): New function.
9961 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9962 * aix-thread.c (aix_thread_inferior_created): New function.
9963 (aix_thread_attach): Remove.
9964 (init_aix_thread_ops): Don't set to_attach.
9965 (_initialize_aix_thread): Register inferior_created observer.
9966 * corelow.c (init_core_ops): Don't set to_attach or
9967 to_create_inferior.
9968 * exec.c (init_exec_ops): Don't set to_attach or
9969 to_create_inferior.
9970 * infcmd.c (run_command_1): Use find_run_target. Make direct
9971 target calls.
9972 (attach_command): Use find_attach_target. Make direct target
9973 calls.
9974 * record-btrace.c (init_record_btrace_ops): Don't set
9975 to_create_inferior.
9976 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9977 Remove.
9978 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9979 set to_create_inferior.
9980 * target.c (complete_target_initialization): Add assertion.
9981 (target_create_inferior): Remove.
9982 (find_default_attach, find_default_create_inferior): Remove.
9983 (find_attach_target, find_run_target): New functions.
9984 (find_default_is_async_p, find_default_can_async_p)
9985 (target_supports_non_stop, target_attach): Remove.
9986 (init_dummy_target): Don't set to_create_inferior or
9987 to_supports_non_stop.
9988 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9989 TARGET_DEFAULT_FUNC.
9990 <to_create_inferior>: Add comment.
9991 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9992 TARGET_DEFAULT_RETURN.
9993 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9994 (find_attach_target, find_run_target): Declare.
9995 (target_create_inferior): Remove.
9996 (target_has_execution_1): Update comment.
9997 (target_supports_non_stop): Remove.
9998 * target-delegates.c: Rebuild.
9999
10000 2014-03-12 Pedro Alves <palves@redhat.com>
10001
10002 * inf-child.h: Update comment to not mention Unix.
10003
10004 2014-03-12 Pedro Alves <palves@redhat.com>
10005
10006 * inf-child.c: Update top comment to not mention Unix. Add
10007 generic comment describing how this target is meant to be used.
10008 (inf_child_post_attach, inf_child_post_startup_inferior)
10009 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10010 Unix in comment.
10011
10012 2014-03-12 Pedro Alves <palves@redhat.com>
10013
10014 * nto-procfs.c: Include inf-child.h.
10015 (procfs_ops): Delete global.
10016 (procfs_can_run): Delete method.
10017 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10018 target pointer instead of referencing procfs_ops.
10019 (procfs_prepare_to_store): Delete.
10020 (init_procfs_ops): Delete function.
10021 (procfs_target): New function, based on init_procfs_ops, but
10022 inherit inf_child_target.
10023 (_initialize_procfs): Use procfs_target.
10024
10025 2014-03-12 Pedro Alves <palves@redhat.com>
10026
10027 * windows-nat.c: Include inf-child.h.
10028 (windows_ops): Delete global.
10029 (windows_open, windows_prepare_to_store, windows_can_run): Delete
10030 methods.
10031 (init_windows_ops): Delete function.
10032 (windows_target): New function, based on init_windows_ops, but
10033 inherit inf_child_target.
10034 (_initialize_windows_nat): Use windows_target. Install x86
10035 specific target methods here.
10036
10037 2014-03-10 Doug Evans <xdje42@gmail.com>
10038
10039 * guile/guile.c (call_initialize_gdb_module): New function.
10040 (initialize_guile): Replace call to scm_init_guile with call to
10041 scm_with_guile.
10042
10043 2014-03-10 Joel Brobecker <brobecker@adacore.com>
10044
10045 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10046 in call to TYPE_CODE macro.
10047
10048 2014-03-10 Jerome Guitton <guitton@adacore.com>
10049
10050 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10051 Resolve tagged types to full view.
10052
10053 2014-03-10 Hui Zhu <hui@codesourcery.com>
10054
10055 * target.h (target_insert_breakpoint): Remove "hardware" from its
10056 comments.
10057
10058 2014-03-07 Doug Evans <dje@google.com>
10059
10060 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10061
10062 2014-03-07 Doug Evans <dje@google.com>
10063
10064 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10065 Remove unused local comp_dir_attr. Assert exactly one of
10066 stub_comp_unit_die, stub_comp_dir is non-NULL.
10067
10068 2014-03-07 Joel Brobecker <brobecker@adacore.com>
10069
10070 * target.h (complete_target_initialization, add_target):
10071 Add comment.
10072
10073 2014-03-07 Pedro Alves <palves@redhat.com>
10074
10075 * go32-nat.c: Include inf-child.h.
10076 (go32_ops): Delete global.
10077 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10078 Delete methods.
10079 (go32_create_inferior): Push the passed in target pointer instead
10080 of referencing go32_ops.
10081 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10082 (go32_target): New function, based on init_go32_ops, but inherit
10083 inf_child_target.
10084 (_initialize_go32_nat): Use go32_target. Move parts of
10085 init_go32_ops here.
10086
10087 2014-03-06 Joel Brobecker <brobecker@adacore.com>
10088
10089 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10090 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10091 SYMBOL_VALUE_ADDRESS.
10092 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10093
10094 2014-03-06 Yao Qi <yao@codesourcery.com>
10095
10096 * breakpoint.c (get_tracepoint_by_number): Remove argument
10097 optional_p. All callers updated. Adjust comments. Update
10098 output message.
10099 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10100
10101 2014-03-06 Yao Qi <yao@codesourcery.com>
10102
10103 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10104 early if get_number returns zero. Use 'p' instead of 'args'.
10105
10106 2014-03-06 Yao Qi <yao@codesourcery.com>
10107
10108 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10109 message.
10110
10111 2014-03-06 Yao Qi <yao@codesourcery.com>
10112
10113 PR breakpoints/16508
10114 * tracepoint.c (check_trace_running): New function.
10115 (trace_find_command): Move code to check_trace_running and
10116 call check_trace_running.
10117 (trace_find_pc_command): Likewise.
10118 (trace_find_tracepoint_command): Likewise.
10119 (trace_find_line_command): Likewise.
10120 (trace_find_range_command): Likewise.
10121 * tracepoint.h (check_trace_running): Likewise.
10122 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10123
10124 2014-03-06 Yao Qi <yao@codesourcery.com>
10125
10126 * target.h (struct target_ops) <to_traceframe_info>: Use
10127 TARGET_DEFAULT_NORETURN (tcomplain ()).
10128 * target-delegates.c: Regenerated.
10129
10130 2014-03-05 Pedro Alves <palves@redhat.com>
10131
10132 PR gdb/16575
10133 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10134 void. Update comment.
10135 (dcache_xfer_memory): Delete.
10136 (dcache_read_memory_partial): New, based on the read bits of
10137 dcache_xfer_memory.
10138 (dcache_update): Add status parameter. Use ULONGEST for len, and
10139 adjust. Discard cache lines if the reason for the update was
10140 error.
10141 * dcache.h (dcache_xfer_memory): Delete declaration.
10142 (dcache_read_memory_partial): New declaration.
10143 (dcache_update): Update prototype.
10144 * target.c (raw_memory_xfer_partial): Update the dcache here.
10145 (memory_xfer_partial_1): Don't handle dcache writes here.
10146
10147 2014-03-05 Mike Frysinger <vapier@gentoo.org>
10148
10149 * remote-sim.c (gdbsim_load): Add const to prog.
10150
10151 2014-03-03 Tom Tromey <tromey@redhat.com>
10152
10153 * elfread.c (probe_key): Change to bfd_data.
10154 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10155 now per-BFD, not per-objfile.
10156 * stap-probe.c (stap_probe_destroy): Update comment.
10157 (handle_stap_probe): Allocate on the per-BFD obstack.
10158
10159 2014-03-03 Tom Tromey <tromey@redhat.com>
10160
10161 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10162 * breakpoint.c (create_longjmp_master_breakpoint): Use
10163 get_probe_address.
10164 (add_location_to_breakpoint, bkpt_probe_insert_location)
10165 (bkpt_probe_remove_location): Update.
10166 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10167 * elfread.c (elf_symfile_relocate_probe): Remove.
10168 (elf_probe_fns): Update.
10169 (insert_exception_resume_breakpoint): Change type of "probe"
10170 parameter to bound_probe.
10171 (check_exception_resume): Update.
10172 * objfiles.c (objfile_relocate1): Don't relocate probes.
10173 * probe.c (bound_probe_s): New typedef.
10174 (parse_probes): Use get_probe_address. Set sal's objfile.
10175 (find_probe_by_pc): Return a bound_probe.
10176 (collect_probes): Return a VEC(bound_probe_s).
10177 (compare_probes): Update.
10178 (gen_ui_out_table_header_info): Change type of "probes"
10179 parameter. Update.
10180 (info_probes_for_ops): Update.
10181 (get_probe_address): New function.
10182 (probe_safe_evaluate_at_pc): Update.
10183 * probe.h (struct probe_ops) <get_probe_address>: New field.
10184 <set_semaphore, clear_semaphore>: Add objfile parameter.
10185 (struct probe) <objfile>: Remove field.
10186 <arch>: New field.
10187 <address>: Update comment.
10188 (struct bound_probe): New.
10189 (find_probe_by_pc): Return a bound_probe.
10190 (get_probe_address): Declare.
10191 * solib-svr4.c (struct probe_and_action) <address>: New field.
10192 (hash_probe_and_action, equal_probe_and_action): Update.
10193 (register_solib_event_probe): Add address parameter.
10194 (solib_event_probe_at): Update.
10195 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10196 get_probe_address.
10197 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10198 (stap_get_probe_address): New function.
10199 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10200 (compile_probe_arg): Update.
10201 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10202 address.
10203 (handle_stap_probe): Don't relocate the probe.
10204 (stap_relocate): Remove.
10205 (stap_gen_info_probes_table_values): Update.
10206 (stap_probe_ops): Remove stap_relocate.
10207 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10208 (debug_sym_probe_fns): Update.
10209 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10210 * symtab.c (init_sal): Use memset.
10211 * symtab.h (struct symtab_and_line) <objfile>: New field.
10212 * tracepoint.c (start_tracing, stop_tracing): Update.
10213
10214 2014-03-03 Tom Tromey <tromey@redhat.com>
10215
10216 * probe.h (parse_probes, find_probe_by_pc)
10217 (find_probes_in_objfile): Fix comments.
10218
10219 2014-03-02 Doug Evans <xdje42@gmail.com>
10220
10221 * infrun.c (handle_signal_stop): Replace test for
10222 TARGET_WAITKIND_STOPPED with an assert.
10223
10224 2014-03-02 Doug Evans <xdje42@gmail.com>
10225
10226 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10227
10228 2014-03-02 Doug Evans <xdje42@gmail.com>
10229
10230 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10231
10232 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10233
10234 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10235
10236 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10237
10238 * i386obsd-nat.c: Include "obsd-nat.h".
10239 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10240 add_target.
10241 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10242
10243 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10244
10245 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10246
10247 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10248
10249 * mips64obsd-nat.c: Include "obsd-nath".
10250 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10251 add_target
10252 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10253
10254 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10255
10256 * amd64obsd-nat.c: Include "obsd-nat,h.
10257 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10258 add_target.
10259 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10260
10261 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10262
10263 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10264 (find_overload_match): Update call to find_oload_champ.
10265 (find_oload_champ_namespace_loop): Likewise
10266
10267 2014-02-28 Mark Kettenis <kettenis@gnu.org>
10268
10269 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10270
10271 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10272 * config/sparc/obsd64.mh: New file.
10273 * sparc64obsd-nat.c: New file.
10274
10275 * obsd-nat.h: New file.
10276 * obsd-nat.c: New file.
10277 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10278 (ALLDEPFILES): Add obsd-nat.c.
10279
10280 2014-02-28 Tom Tromey <tromey@redhat.com>
10281
10282 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10283 * cli-out.h (cli_ui_out_impl): Now const.
10284 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10285 * ui-out.c (struct ui_out) <impl>: Now const.
10286 (default_ui_out_impl): Now const.
10287 (ui_out_new): Make 'impl' parameter const.
10288 * ui-out.h (ui_out_new): Update.
10289
10290 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10291
10292 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10293
10294 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10295
10296 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10297
10298 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10299
10300 Additional PR 8882 fix.
10301 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10302
10303 2014-02-27 Pedro Alves <palves@redhat.com>
10304
10305 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10306 isn't set.
10307
10308 2014-02-27 Pedro Alves <palves@redhat.com>
10309
10310 PR 12702
10311 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10312 * nat/linux-waitpid.c: Include string.h.
10313 (status_to_str): Moved here and made extern.
10314 * nat/linux-waitpid.h (status_to_str): New declaration.
10315
10316 2014-02-27 Hui Zhu <hui@codesourcery.com>
10317
10318 PR 12702
10319 * infrun.c (ptid_match): Move ...
10320 * common/ptid.c (ptid_match): ... here.
10321 * inferior.h (ptid_match): Move ...
10322 * common/ptid.h (ptid_match): ... here.
10323
10324 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10325
10326 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10327 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10328 gdb_target_obs.
10329
10330 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10331
10332 * obsd-tdep.c (obsd_auxv_parse): New function.
10333 (obsd_init_abi): Set auxv_parse.
10334
10335 * gdbarch.sh (auxv_parse): New.
10336 * gdbarch.h: Regenerated.
10337 * gdbarch.c: Regenerated.
10338 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10339
10340 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10341
10342 * guile/scm-value.c (gdbscm_history_append_x): New function.
10343 (value_functions): Add it.
10344
10345 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10346
10347 * dwarf2read.c (attr_value_as_address): New function.
10348 (dwarf2_find_base_address, read_call_site_scope): Use
10349 attr_value_as_address in place of DW_ADDR.
10350 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10351 the low and high addresses. Slight rework of the handling
10352 of the high pc being a constant form, and limit it to
10353 DWARF verson 4 or higher.
10354 (dwarf2_record_block_ranges): Likewise.
10355 (read_partial_die): Likewise.
10356 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10357
10358 2014-02-26 Tom Tromey <tromey@redhat.com>
10359
10360 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10361
10362 2014-02-26 Tom Tromey <tromey@redhat.com>
10363
10364 * elfread.c (elf_read_minimal_symbols): Return early if
10365 minimal symbols have already been read. Add "ei" parameter.
10366 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10367 * minsyms.c (prim_record_minimal_symbol_full): Update.
10368 * objfiles.h (struct objstats) <n_minsyms>: Move...
10369 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10370 * symmisc.c (print_objfile_statistics): Update.
10371
10372 2014-02-26 Tom Tromey <tromey@redhat.com>
10373
10374 * elfread.c (elf_read_minimal_symbols): New function, from
10375 elf_symfile_read.
10376 (elf_symfile_read): Call it.
10377
10378 2014-02-26 Tom Tromey <tromey@redhat.com>
10379
10380 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10381 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10382 (lookup_minimal_symbol_solib_trampoline)
10383 (lookup_minimal_symbol_by_pc_section_1)
10384 (lookup_minimal_symbol_and_objfile): Update.
10385 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10386 Don't allocate a minimal symbol if minsyms have already been read.
10387 (build_minimal_symbol_hash_tables): Update.
10388 (install_minimal_symbols): Do nothing if minsyms already read.
10389 Use the per-BFD obstack.
10390 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10391 * objfiles.c (allocate_objfile): Call
10392 terminate_minimal_symbol_table later.
10393 (have_minimal_symbols): Update.
10394 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10395 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10396 Move from struct objfile.
10397 <minsyms_read>: New field.
10398 (struct objfile) <msymbols, minimal_symbol_count,
10399 msymbol_hash, msymbol_demangled_hash>: Move.
10400 (ALL_OBJFILE_MSYMBOLS): Update.
10401 * symfile.c (read_symbols): Set minsyms_read.
10402 (reread_symbols): Update.
10403 * symmisc.c (dump_objfile, dump_msymbols): Update.
10404
10405 2014-02-26 Tom Tromey <tromey@redhat.com>
10406
10407 * minsyms.c (msymbols_sort): Remove.
10408 * minsyms.h (msymbols_sort): Remove.
10409 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10410 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10411 * elfread.c (elf_symtab_read): Don't add section offsets.
10412 * xcoffread.c (record_minimal_symbol): Don't add section offset
10413 to minimal symbol address.
10414 * somread.c (text_offset, data_offset): Remove.
10415 (som_symtab_read): Don't add section offsets to minimal symbol
10416 addresses.
10417 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10418 Don't add section offsets to minimal symbols.
10419 * coffread.c (coff_symtab_read): Don't add section offsets
10420 to minimal symbol addresses.
10421 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10422 to minimal symbol addresses.
10423 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10424 section offset to minimal symbol addresses.
10425 * mdebugread.c (parse_partial_symbols): Don't add section
10426 offset to minimal symbol addresses.
10427 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10428 offset to minimal symbol addresses.
10429
10430 2014-02-26 Tom Tromey <tromey@redhat.com>
10431
10432 * ada-lang.c (ada_main_name): Update.
10433 (ada_add_standard_exceptions): Update.
10434 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10435 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10436 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10437 * auxv.c (ld_so_xfer_auxv): Update.
10438 * avr-tdep.c (avr_scan_prologue): Update.
10439 * ax-gdb.c (gen_var_ref): Update.
10440 * blockframe.c (get_pc_function_start)
10441 (find_pc_partial_function_gnu_ifunc): Update.
10442 * breakpoint.c (create_overlay_event_breakpoint)
10443 (create_longjmp_master_breakpoint)
10444 (create_std_terminate_master_breakpoint)
10445 (create_exception_master_breakpoint): Update.
10446 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10447 * c-valprint.c (c_val_print): Update.
10448 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10449 * common/agent.c (agent_look_up_symbols): Update.
10450 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10451 * dwarf2loc.c (call_site_to_target_addr): Update.
10452 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10453 * elfread.c (elf_gnu_ifunc_record_cache)
10454 (elf_gnu_ifunc_resolve_by_got): Update.
10455 * findvar.c (default_read_var_value): Update.
10456 * frame.c (inside_main_func): Update.
10457 * frv-tdep.c (frv_frame_this_id): Update.
10458 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10459 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10460 Update.
10461 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10462 (hppa_hpux_find_dummy_bpaddr): Update.
10463 * hppa-tdep.c (hppa_symbol_address): Update.
10464 * infcmd.c (until_next_command): Update.
10465 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10466 Update.
10467 * linespec.c (minsym_found, add_minsym): Update.
10468 * linux-nat.c (get_signo): Update.
10469 * linux-thread-db.c (inferior_has_bug): Update.
10470 * m32c-tdep.c (m32c_return_value)
10471 (m32c_m16c_address_to_pointer): Update.
10472 * m32r-tdep.c (m32r_frame_this_id): Update.
10473 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10474 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10475 * maint.c (maintenance_translate_address): Update.
10476 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10477 (frob_address): New function.
10478 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10479 frob_address. Rename parameter to "pc_in".
10480 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10481 addresses.
10482 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10483 Update.
10484 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10485 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10486 * objc-lang.c (find_objc_msgsend): Update.
10487 * objfiles.c (objfile_relocate1): Update.
10488 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10489 * p-valprint.c (pascal_val_print): Update.
10490 * parse.c (write_exp_msymbol): Update.
10491 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10492 (ppc_elfv2_skip_entrypoint): Update.
10493 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10494 * printcmd.c (build_address_symbolic, msym_info)
10495 (address_info): Update.
10496 * proc-service.c (ps_pglobal_lookup): Update.
10497 * psymtab.c (find_pc_sect_psymtab_closer)
10498 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10499 Change msymbol parameter to bound_minimal_symbol.
10500 * ravenscar-thread.c (get_running_thread_id): Update.
10501 * remote.c (remote_check_symbols): Update.
10502 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10503 address.
10504 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10505 * solib-dsbt.c (lm_base): Update.
10506 * solib-frv.c (lm_base, main_got): Update.
10507 * solib-irix.c (locate_base): Update.
10508 * solib-som.c (som_solib_create_inferior_hook)
10509 (link_map_start): Update.
10510 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10511 * solib-svr4.c (elf_locate_base, enable_break): Update.
10512 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10513 (flush_ea_cache): Update.
10514 * stabsread.c (define_symbol, scan_file_globals): Update.
10515 * stack.c (find_frame_funname): Update.
10516 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10517 (debug_qf_find_pc_sect_symtab): Update.
10518 * symfile.c (simple_read_overlay_table)
10519 (simple_overlay_update): Update.
10520 * symfile.h (struct quick_symbol_functions)
10521 <find_pc_sect_symtab>: Change type of msymbol to
10522 bound_minimal_symbol.
10523 * symmisc.c (dump_msymbols): Update.
10524 * symtab.c (find_pc_sect_symtab_via_partial)
10525 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10526 (search_symbols, print_msymbol_info): Update.
10527 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10528 (MSYMBOL_VALUE_ADDRESS): Redefine.
10529 (BMSYMBOL_VALUE_ADDRESS): New macro.
10530 * tracepoint.c (scope_info): Update.
10531 * tui/tui-disasm.c (tui_find_disassembly_address)
10532 (tui_get_begin_asm_address): Update.
10533 * valops.c (find_function_in_inferior): Update.
10534 * value.c (value_static_field, value_fn_field): Update.
10535
10536 2014-02-26 Tom Tromey <tromey@redhat.com>
10537
10538 * ada-lang.c (ada_update_initial_language): Update.
10539 (ada_main_name, ada_has_this_exception_support): Update.
10540 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10541 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10542 * arm-tdep.c (arm_skip_stub): Update.
10543 * auxv.c (ld_so_xfer_auxv): Update.
10544 * avr-tdep.c (avr_scan_prologue): Update.
10545 * ax-gdb.c (gen_var_ref): Update.
10546 * breakpoint.c (struct breakpoint_objfile_data)
10547 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10548 type to bound_minimal_symbol.
10549 (create_overlay_event_breakpoint)
10550 (create_longjmp_master_breakpoint)
10551 (create_std_terminate_master_breakpoint)
10552 (create_exception_master_breakpoint): Update.
10553 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10554 * c-exp.y (classify_name): Update.
10555 * coffread.c (coff_symfile_read): Update.
10556 * common/agent.c (agent_look_up_symbols): Update.
10557 * d-lang.c (d_main_name): Update.
10558 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10559 * dec-thread.c (enable_dec_thread): Update.
10560 * dwarf2loc.c (call_site_to_target_addr): Update.
10561 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10562 * eval.c (evaluate_subexp_standard): Update.
10563 * findvar.c (struct minsym_lookup_data) <result>: Change type
10564 to bound_minimal_symbol.
10565 <objfile>: Remove.
10566 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10567 * frame.c (inside_main_func): Update.
10568 * frv-tdep.c (frv_frame_this_id): Update.
10569 * gcore.c (call_target_sbrk): Update.
10570 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10571 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10572 Update.
10573 * go-lang.c (go_main_name): Update.
10574 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10575 (hppa_hpux_find_import_stub_for_addr): Update.
10576 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10577 Update. Change return type.
10578 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10579 type.
10580 * jit.c (jit_breakpoint_re_set_internal): Update.
10581 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10582 Update.
10583 * linux-nat.c (get_signo): Update.
10584 * linux-thread-db.c (inferior_has_bug): Update
10585 * m32c-tdep.c (m32c_return_value)
10586 (m32c_m16c_address_to_pointer): Update.
10587 * m32r-tdep.c (m32r_frame_this_id): Update.
10588 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10589 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10590 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10591 lookup_minimal_symbol. Change return type.
10592 (lookup_minimal_symbol): Remove.
10593 (lookup_bound_minimal_symbol): Update.
10594 (lookup_minimal_symbol_text): Change return type.
10595 (lookup_minimal_symbol_solib_trampoline): Change return type.
10596 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10597 (lookup_minimal_symbol_solib_trampoline): Change return type.
10598 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10599 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10600 (value_nsstring, find_imps): Update.
10601 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10602 * p-lang.c (pascal_main_name): Update.
10603 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10604 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10605 * proc-service.c (ps_pglobal_lookup): Update.
10606 * ravenscar-thread.c (get_running_thread_msymbol): Change
10607 return type.
10608 (has_ravenscar_runtime, get_running_thread_id): Update.
10609 * remote.c (remote_check_symbols): Update.
10610 * sol-thread.c (ps_pglobal_lookup): Update.
10611 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10612 * solib-dsbt.c (lm_base): Update.
10613 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10614 Update.
10615 * solib-irix.c (locate_base): Update.
10616 * solib-som.c (som_solib_create_inferior_hook)
10617 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10618 Update.
10619 * solib-spu.c (spu_enable_break): Update.
10620 * solib-svr4.c (elf_locate_base, enable_break): Update.
10621 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10622 (flush_ea_cache): Update.
10623 * stabsread.c (define_symbol): Update.
10624 * symfile.c (simple_read_overlay_table): Update.
10625 * symtab.c (find_pc_sect_line): Update.
10626 * tracepoint.c (scope_info): Update.
10627 * tui-disasm.c (tui_get_begin_asm_address): Update.
10628 * value.c (value_static_field): Update.
10629
10630 2014-02-26 Tom Tromey <tromey@redhat.com>
10631
10632 * minsyms.c (prim_record_minimal_symbol_full): Use
10633 SET_MSYMBOL_VALUE_ADDRESS.
10634 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10635 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10636 SET_MSYMBOL_VALUE_ADDRESS.
10637 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10638 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10639
10640 2014-02-26 Tom Tromey <tromey@redhat.com>
10641
10642 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10643 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10644 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10645 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10646 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10647 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10648 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10649 * ada-lang.c (ada_main_name): Update.
10650 (ada_lookup_simple_minsym): Update.
10651 (ada_make_symbol_completion_list): Update.
10652 (ada_add_standard_exceptions): Update.
10653 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10654 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10655 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10656 * arm-tdep.c (skip_prologue_function): Update.
10657 (arm_skip_stack_protector, arm_skip_stub): Update.
10658 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10659 (arm_wince_skip_main_prologue): Update.
10660 * auxv.c (ld_so_xfer_auxv): Update.
10661 * avr-tdep.c (avr_scan_prologue): Update.
10662 * ax-gdb.c (gen_var_ref): Update.
10663 * block.c (call_site_for_pc): Update.
10664 * blockframe.c (get_pc_function_start): Update.
10665 (find_pc_partial_function_gnu_ifunc): Update.
10666 * breakpoint.c (create_overlay_event_breakpoint): Update.
10667 (create_longjmp_master_breakpoint): Update.
10668 (create_std_terminate_master_breakpoint): Update.
10669 (create_exception_master_breakpoint): Update.
10670 (resolve_sal_pc): Update.
10671 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10672 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10673 Update.
10674 * c-valprint.c (c_val_print): Update.
10675 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10676 * coffread.c (coff_symfile_read): Update.
10677 * common/agent.c (agent_look_up_symbols): Update.
10678 * dbxread.c (find_stab_function_addr): Update.
10679 (end_psymtab): Update.
10680 * dwarf2loc.c (call_site_to_target_addr): Update.
10681 (func_verify_no_selftailcall): Update.
10682 (tailcall_dump): Update.
10683 (call_site_find_chain_1): Update.
10684 (dwarf_expr_reg_to_entry_parameter): Update.
10685 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10686 (elf_gnu_ifunc_resolve_by_got): Update.
10687 * f-valprint.c (info_common_command): Update.
10688 * findvar.c (read_var_value): Update.
10689 * frame.c (get_prev_frame_1): Update.
10690 (inside_main_func): Update.
10691 * frv-tdep.c (frv_skip_main_prologue): Update.
10692 (frv_frame_this_id): Update.
10693 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10694 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10695 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10696 (gnuv3_skip_trampoline): Update.
10697 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10698 (hppa64_hpux_in_solib_call_trampoline): Update.
10699 (hppa_hpux_skip_trampoline_code): Update.
10700 (hppa64_hpux_search_dummy_call_sequence): Update.
10701 (hppa_hpux_find_import_stub_for_addr): Update.
10702 (hppa_hpux_find_dummy_bpaddr): Update.
10703 * hppa-tdep.c (hppa_symbol_address)
10704 (hppa_lookup_stub_minimal_symbol): Update.
10705 * i386-tdep.c (i386_skip_main_prologue): Update.
10706 (i386_pe_skip_trampoline_code): Update.
10707 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10708 * infcall.c (get_function_name): Update.
10709 * infcmd.c (until_next_command): Update.
10710 * jit.c (jit_breakpoint_re_set_internal): Update.
10711 (jit_inferior_init): Update.
10712 * linespec.c (minsym_found): Update.
10713 (add_minsym): Update.
10714 * linux-fork.c (info_checkpoints_command): Update.
10715 * linux-nat.c (get_signo): Update.
10716 * linux-thread-db.c (inferior_has_bug): Update.
10717 * m32c-tdep.c (m32c_return_value): Update.
10718 (m32c_m16c_address_to_pointer): Update.
10719 (m32c_m16c_pointer_to_address): Update.
10720 * m32r-tdep.c (m32r_frame_this_id): Update.
10721 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10722 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10723 * maint.c (maintenance_translate_address): Update.
10724 * minsyms.c (add_minsym_to_hash_table): Update.
10725 (add_minsym_to_demangled_hash_table): Update.
10726 (msymbol_objfile): Update.
10727 (lookup_minimal_symbol): Update.
10728 (iterate_over_minimal_symbols): Update.
10729 (lookup_minimal_symbol_text): Update.
10730 (lookup_minimal_symbol_by_pc_name): Update.
10731 (lookup_minimal_symbol_solib_trampoline): Update.
10732 (lookup_minimal_symbol_by_pc_section_1): Update.
10733 (lookup_minimal_symbol_and_objfile): Update.
10734 (prim_record_minimal_symbol_full): Update.
10735 (compare_minimal_symbols): Update.
10736 (compact_minimal_symbols): Update.
10737 (build_minimal_symbol_hash_tables): Update.
10738 (install_minimal_symbols): Update.
10739 (terminate_minimal_symbol_table): Update.
10740 (find_solib_trampoline_target): Update.
10741 (minimal_symbol_upper_bound): Update.
10742 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10743 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10744 (mips_skip_pic_trampoline_code): Update.
10745 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10746 * objc-lang.c (selectors_info): Update.
10747 (classes_info): Update.
10748 (find_methods): Update.
10749 (find_imps): Update.
10750 (find_objc_msgsend): Update.
10751 * objfiles.c (objfile_relocate1): Update.
10752 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10753 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10754 * p-valprint.c (pascal_val_print): Update.
10755 * parse.c (write_exp_msymbol): Update.
10756 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10757 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10758 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10759 * printcmd.c (build_address_symbolic): Update.
10760 (sym_info): Update.
10761 (address_info): Update.
10762 * proc-service.c (ps_pglobal_lookup): Update.
10763 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10764 (find_pc_sect_psymtab): Update.
10765 * python/py-framefilter.c (py_print_frame): Update.
10766 * ravenscar-thread.c (get_running_thread_id): Update.
10767 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10768 Update.
10769 * remote.c (remote_check_symbols): Update.
10770 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10771 (rs6000_skip_trampoline_code): Update.
10772 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10773 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10774 * solib-dsbt.c (lm_base): Update.
10775 * solib-frv.c (lm_base): Update.
10776 (main_got): Update.
10777 * solib-irix.c (locate_base): Update.
10778 * solib-som.c (som_solib_create_inferior_hook): Update.
10779 (som_solib_desire_dynamic_linker_symbols): Update.
10780 (link_map_start): Update.
10781 * solib-spu.c (spu_enable_break): Update.
10782 (ocl_enable_break): Update.
10783 * solib-svr4.c (elf_locate_base): Update.
10784 (enable_break): Update.
10785 * spu-tdep.c (spu_get_overlay_table): Update.
10786 (spu_catch_start): Update.
10787 (flush_ea_cache): Update.
10788 * stabsread.c (define_symbol): Update.
10789 (scan_file_globals): Update.
10790 * stack.c (find_frame_funname): Update.
10791 (frame_info): Update.
10792 * symfile.c (simple_read_overlay_table): Update.
10793 (simple_overlay_update): Update.
10794 * symmisc.c (dump_msymbols): Update.
10795 * symtab.c (fixup_section): Update.
10796 (find_pc_sect_line): Update.
10797 (skip_prologue_sal): Update.
10798 (search_symbols): Update.
10799 (print_msymbol_info): Update.
10800 (rbreak_command): Update.
10801 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10802 (completion_list_objc_symbol): Update.
10803 (default_make_symbol_completion_list_break_on): Update.
10804 * tracepoint.c (scope_info): Update.
10805 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10806 (tui_get_begin_asm_address): Update.
10807 * valops.c (find_function_in_inferior): Update.
10808 * value.c (value_static_field): Update.
10809 (value_fn_field): Update.
10810
10811 2014-02-26 Tom Tromey <tromey@redhat.com>
10812
10813 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10814 bound minimal symbols. Move code that knows about minsym
10815 table layout...
10816 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10817 function.
10818 * minsyms.h (minimal_symbol_upper_bound): Declare.
10819 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10820 minimal_symbol_upper_bound.
10821
10822 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10823
10824 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10825 Use the type's name if its basic type does not have a tag.
10826
10827 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10828
10829 * dwarf2read.c (read_subrange_type): Add comment.
10830
10831 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10832
10833 * dwarf2read.c (update_enumeration_type_from_children): New
10834 function, mostly extracted from process_structure_scope.
10835 (read_enumeration_type): Call update_enumeration_type_from_children.
10836 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10837 and flag_flag_enum fields.
10838
10839 2014-02-26 Pedro Alves <palves@redhat.com>
10840
10841 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10842 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10843 to_xfer_partial method.
10844
10845 2014-02-26 Pedro Alves <palves@redhat.com>
10846
10847 * target.c (complete_target_initialization): Don't install
10848 default_xfer_partial as to_xfer_partial hook.
10849 (nomemory): Delete.
10850 (update_current_target): Don't INHERIT nor de_fault
10851 deprecated_xfer_memory. Delete de_fault macro.
10852 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10853 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10854 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10855 field.
10856
10857 2014-02-26 Pedro Alves <palves@redhat.com>
10858
10859 * go32-nat.c (my_write_child): New function.
10860 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10861 (go32_xfer_partial): New function.
10862 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10863 Instead install a to_xfer_partial hook.
10864
10865 2014-02-26 Pedro Alves <palves@redhat.com>
10866
10867 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10868 to_xfer_partial helper. Rewrite.
10869 (procfs_xfer_partial): New function.
10870 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10871 Install a to_xfer_partial hook.
10872
10873 2014-02-26 Pedro Alves <palves@redhat.com>
10874
10875 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10876 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10877 (m32r_xfer_partial): New function.
10878 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10879 Install a to_xfer_partial hook.
10880
10881 2014-02-26 Pedro Alves <palves@redhat.com>
10882
10883 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10884 helper.
10885 (mips_xfer_partial): New function.
10886 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10887 hook. Install a to_xfer_partial hook.
10888
10889 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10890
10891 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10892 * gdbtypes.c (create_array_type_with_stride): New function,
10893 renaming create_array_type, but with an added parameter
10894 called "bit_stride".
10895 (create_array_type): Re-implement using
10896 create_array_type_with_stride.
10897 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10898 and DW_AT_bit_stride attributes.
10899
10900 2014-02-26 Pedro Alves <palves@redhat.com>
10901
10902 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10903 task-specific breakpoints.
10904
10905 2014-02-25 Pedro Alves <palves@redhat.com>
10906
10907 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10908 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10909
10910 2014-02-25 Stan Shebs <stan@codesourcery.com>
10911
10912 * defs.h: Annotate comments for Doxygen.
10913
10914 2014-02-25 Tom Tromey <tromey@redhat.com>
10915
10916 * target.h (target_ignore): Don't declare.
10917 * target.c (target_ignore): Remove.
10918
10919 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10920
10921 PR gdb/16626
10922 * auto-load.c (auto_load_objfile_script_1): Change filename to
10923 debugfile.
10924
10925 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10926
10927 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10928 documentation. Adjust prototype to match the target_ops
10929 to_xfer_partial method. Adjust implementation accordingly.
10930
10931 2014-02-25 Hui Zhu <hui@codesourcery.com>
10932
10933 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10934 to_traceframe_info.
10935
10936 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10937
10938 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10939 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10940 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10941 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10942 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10943 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10944 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10945 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10946 New constants.
10947 (rl78_register_type): Use a data pointer type for SP and
10948 new pseudo registers mentioned above. Use a 16 bit integer
10949 type for all other register pairs.
10950 (rl78_register_name, rl78_g10_register_name): Update for
10951 new pseudo registers.
10952 (rl78_pseudo_register_read): Likewise.
10953 (rl78_pseudo_register_write): Likewise.
10954 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10955 to the newly added pseudo registers.
10956
10957 2014-02-24 Doug Evans <dje@google.com>
10958
10959 * value.c (record_latest_value): Fix comment.
10960 * printcmd.c (print_command_1): Remove code to handle -1 return from
10961 record_latest_value.
10962
10963 2014-02-24 Pedro Alves <palves@redhat.com>
10964
10965 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10966 deprecated_xfer_memory hook.
10967 (procfs_xfer_partial): Call procfs_xfer_memory instead
10968 of the deprecated_xfer_memory target hook.
10969 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10970 helper.
10971
10972 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10973
10974 * windows-nat.c (windows_xfer_shared_libraries): Return
10975 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10976 requested object is TARGET_OBJECT_LIBRARIES.
10977
10978 2014-02-24 Yao Qi <yao@codesourcery.com>
10979
10980 * target.h (enum target_xfer_status)
10981 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10982 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10983 explicitly. New.
10984 * corefile.c (memory_error_message): User updated.
10985 * exec.c (section_table_read_available_memory): Likewise.
10986 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10987 * target.c (target_xfer_status_to_string): Likewise.
10988 (raw_memory_xfer_partial): Likewise.
10989 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10990 * valops.c (read_value_memory): Likewise.
10991 * exec.h: Update comments.
10992
10993 2014-02-24 Yao Qi <yao@codesourcery.com>
10994
10995 * target.c (target_xfer_status_to_string): Rename argument err
10996 to status.
10997 * target.h (target_xfer_status_to_string): Update declaration.
10998 Replace target_xfer_error_to_string with
10999 target_xfer_status_to_string in comment.
11000
11001 2014-02-24 Yao Qi <yao@codesourcery.com>
11002
11003 * mips-linux-nat.c (super_close): Update its type.
11004 (mips_linux_close): Pass 'self' to super_close.
11005
11006 2014-02-24 Yao Qi <yao@codesourcery.com>
11007
11008 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11009 * corefile.c (read_memory): Adjusted.
11010 * target.c (target_write_with_progress): Adjusted.
11011
11012 2014-02-23 Yao Qi <yao@codesourcery.com>
11013
11014 Revert two patches:
11015
11016 2013-10-25 Yao Qi <yao@codesourcery.com>
11017
11018 * remote.c (remote_traceframe_info): Return early if
11019 traceframe is not selected.
11020
11021 2013-07-19 Yao Qi <yao@codesourcery.com>
11022
11023 * target.c (update_current_target): Change the default action
11024 of 'to_traceframe_info' from tcomplain to return_zero.
11025 * target.h (struct target_ops) <to_traceframe_info>: Add more
11026 comments.
11027
11028 2014-02-23 Yao Qi <yao@codesourcery.com>
11029
11030 * valops.c (read_value_memory): Rewrite it. Call
11031 target_xfer_partial in a loop.
11032 * exec.h (section_table_available_memory): Remove declaration.
11033 Move comments to ...
11034 * exec.c (section_table_available_memory): ... here. Make it
11035 static.
11036
11037 2014-02-23 Yao Qi <yao@codesourcery.com>
11038
11039 * exec.c (section_table_read_available_memory): New function.
11040 * exec.h (section_table_read_available_memory): Declare.
11041 * ctf.c (ctf_xfer_partial): Call
11042 section_table_read_available_memory.
11043 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11044
11045 2014-02-23 Yao Qi <yao@codesourcery.com>
11046
11047 * ctf.c (ctf_xfer_partial): Move code to ...
11048 * exec.c (exec_read_partial_read_only): ... it. New function.
11049 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11050 * tracefile.c: Include "exec.h".
11051 * exec.h (exec_read_partial_read_only): Declare.
11052
11053 2014-02-23 Yao Qi <yao@codesourcery.com>
11054
11055 * tracefile-tfile.c (tfile_has_all_memory): Remove.
11056 (tfile_has_memory): Remove.
11057 (init_tfile_ops): Don't set fields to_has_all_memory and
11058 to_has_memory of tfile_ops.
11059 * tracefile.c (tracefile_has_all_memory): New function.
11060 (tracefile_has_memory): New function.
11061 (init_tracefile_ops): Initialize fields to_has_all_memory and
11062 to_has_memory of 'ops'.
11063
11064 2014-02-23 Yao Qi <yao@codesourcery.com>
11065
11066 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11067 (ctf_thread_alive, ctf_get_trace_status): Remove.
11068 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11069 init_tracefile_ops.
11070 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11071 (tfile_has_stack, tfile_has_registers): Remove.
11072 (tfile_thread_alive): Remove.
11073 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11074 init_tracefile_ops.
11075 * tracefile.c (tracefile_has_stack): New function.
11076 (tracefile_has_registers): New function.
11077 (tracefile_thread_alive): New function.
11078 (tracefile_get_trace_status): New function.
11079 (init_tracefile_ops): New function.
11080 * tracefile.h (init_tracefile_ops): Declare.
11081
11082 2014-02-23 Yao Qi <yao@codesourcery.com>
11083
11084 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11085 (O_LARGEFILE): Likewise.
11086 (tfile_ops): Likewise.
11087 (TRACE_HEADER_SIZE): Likewise.
11088 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11089 (cur_data_size): Likewise.
11090 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11091 (tfile_close, tfile_files_info): Likewise.
11092 (tfile_get_trace_status): Likewise.
11093 (tfile_get_tracepoint_status): Likewise.
11094 (tfile_get_traceframe_address): Likewise.
11095 (tfile_trace_find, match_blocktype): Likewise.
11096 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11097 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11098 (tfile_get_trace_state_variable_value): Likewise.
11099 (tfile_has_all_memory, tfile_has_memory): Likewise.
11100 (tfile_has_stack, tfile_has_registers): Likewise.
11101 (tfile_thread_alive, build_traceframe_info): Likewise.
11102 (tfile_traceframe_info, init_tfile_ops): Likewise.
11103 (_initialize_tracepoint): Don't call init_tfile_ops
11104 and add_target_with_completer.
11105 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11106 exec.h, completer.h and filenames.h.
11107 (_initialize_tracefile_tfile): New function.
11108
11109 2014-02-23 Yao Qi <yao@codesourcery.com>
11110
11111 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11112 tracefile-tfile.o.
11113 (HFILES_NO_SRCDIR): Add tracefile.h.
11114 * ctf.c: Include "tracefile.h".
11115 * tracefile.h: New file.
11116 * tracefile.c: New file
11117 * tracefile-tfile.c: New file.
11118 * tracepoint.c: Include "tracefile.h".
11119 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11120 (stop_reason_names): Add const.
11121 (trace_file_writer_xfree): Move it to tracefile.c.
11122 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11123 (trace_save_ctf): Likewise.
11124 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11125 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11126 (tfile_write_header, tfile_write_regblock_type): Likewise.
11127 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11128 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11129 (tfile_write_raw_data, tfile_end): Likewise.
11130 (tfile_trace_file_writer_new): Likewise.
11131 (free_uploaded_tp): Make it extern.
11132 (free_uploaded_tsv): Make it extern.
11133 (_initialize_tracepoint): Move code to register command 'tsave'
11134 to tracefile.c.
11135 * tracepoint.h (stop_reason_names): Declare.
11136 (struct trace_frame_write_ops): Move it to tracefile.h.
11137 (struct trace_file_write_ops): Likewise.
11138 (struct trace_file_writer): Likewise.
11139 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11140
11141 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11142
11143 PR gdb/16594
11144 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11145 process name.
11146 (get_cores_used_by_process): New parameter num_cores, use it.
11147 (linux_xfer_osdata_processes): Pass num_cores to it.
11148 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11149 process name.
11150
11151 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11152
11153 * target.c (memory_xfer_partial): Fix length arg in call to
11154 breakpoint_xfer_memory.
11155
11156 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11157
11158 PR tdep/16397
11159 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11160 number comes after the + or - signs. Adjust length of register
11161 name to be extracted.
11162
11163 2014-02-20 Tom Tromey <tromey@redhat.com>
11164
11165 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11166 (ada_varobj_ops): Mark "extern".
11167
11168 2014-02-20 Tom Tromey <tromey@redhat.com>
11169
11170 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11171
11172 2014-02-20 Doug Evans <xdje42@gmail.com>
11173
11174 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11175 All callers updated.
11176 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11177 All callers updated.
11178 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11179 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11180
11181 2014-02-20 lin zuojian <manjian2006@gmail.com>
11182 Joel Brobecker <brobecker@adacore.com>
11183 Doug Evans <xdje42@gmail.com>
11184
11185 PR symtab/16581
11186 * dwarf2read.c (struct die_info): New member in_process.
11187 (reset_die_in_process): New function.
11188 (process_die): Set it at the start, reset when returning.
11189 (inherit_abstract_dies): Only call process_die if origin_child_die
11190 not already being processed.
11191
11192 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11193
11194 * windows-nat.c (handle_unload_dll): Add function documentation.
11195 (do_initial_windows_stuff): Add comment explaining why we wait
11196 until after inferior initialization has finished before
11197 processing all DLLs.
11198
11199 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11200
11201 * windows-nat.c (get_module_name): Delete.
11202 (windows_get_exec_module_filename): New function, mostly
11203 inspired from get_module_name.
11204 (windows_pid_to_exec_file): Replace call to get_module_name
11205 by call to windows_get_exec_module_filename.
11206
11207 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11208
11209 * windows-nat.c (handle_load_dll): Rewrite this function's
11210 introductory comment. Remove code using get_module_name
11211 to get the DLL's name.
11212
11213 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11214
11215 * windows-nat.c (get_windows_debug_event): Ignore
11216 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11217 if windows_initialization_done == 0.
11218 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11219 Adjust implementation to always load all DLLs.
11220 (do_initial_windows_stuff): Replace call to
11221 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11222
11223 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11224
11225 * windows-nat.c (_initialize_windows_nat): Deprecate the
11226 "dll-symbols" command. Turn the "add-shared-symbol-files"
11227 and "assf" aliases into commands, and deprecate them as well.
11228 * NEWS: Add entry explaining that "dll-symbols" and its two
11229 aliases are now deprecated.
11230
11231 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11232
11233 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11234 new-line in debug string. Remove trailing spaces.
11235
11236 2014-02-19 Stan Shebs <stan@codesourcery.com>
11237
11238 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11239
11240 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11241
11242 * NEWS: Add entry for the new feature
11243 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11244 and class values.
11245
11246 2014-02-19 Stan Shebs <stan@codesourcery.com>
11247
11248 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11249
11250 2014-02-19 Pedro Alves <palves@redhat.com>
11251
11252 * common/ptid.h (struct ptid): Mention that process_stratum
11253 targets should prefer ptid.lwp.
11254
11255 2014-02-19 Pedro Alves <palves@redhat.com>
11256
11257 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11258 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11259 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11260 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11261 store remote thread ids rather than ptid.tid.
11262 (_initialize_remote): Adjust.
11263
11264 2014-02-19 Tom Tromey <tromey@redhat.com>
11265
11266 * target.c (target_get_unwinder): Rewrite.
11267 (target_get_tailcall_unwinder): Rewrite.
11268 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11269 (record_btrace_to_get_tailcall_unwinder): New function.
11270 (init_record_btrace_ops): Update.
11271 * target.h (struct target_ops) <to_get_unwinder,
11272 to_get_tailcall_unwinder>: Now function pointers. Use
11273 TARGET_DEFAULT_RETURN.
11274
11275 2014-02-19 Tom Tromey <tromey@redhat.com>
11276
11277 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11278 argument.
11279 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11280
11281 2014-02-19 Tom Tromey <tromey@redhat.com>
11282
11283 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11284 directly.
11285 * target-delegates.c: Rebuild.
11286 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11287 TARGET_DEFAULT_FUNC.
11288 * target.c (default_target_decr_pc_after_break): Rename from
11289 forward_target_decr_pc_after_break. Simplify.
11290 (target_decr_pc_after_break): Rely on delegation.
11291
11292 2014-02-19 Tom Tromey <tromey@redhat.com>
11293
11294 * target.c (update_current_target): Do not INHERIT to_doc or
11295 to_magic. Do not de_fault to_open or to_close.
11296
11297 2014-02-19 Tom Tromey <tromey@redhat.com>
11298
11299 * gcore.h (objfile_find_memory_regions): Declare.
11300 * gcore.c (objfile_find_memory_regions): No longer static. Add
11301 "self" argument.
11302 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11303 * exec.c: Include gcore.h.
11304 (exec_set_find_memory_regions): Remove.
11305 (exec_find_memory_regions): Remove.
11306 (exec_do_find_memory_regions): Remove.
11307 (init_exec_ops): Update.
11308 * defs.h (exec_set_find_memory_regions): Remove.
11309
11310 2014-02-19 Tom Tromey <tromey@redhat.com>
11311
11312 * target-delegates.c: Rebuild.
11313 * target.h (struct target_ops) <to_extra_thread_info,
11314 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11315 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11316 not 0, in TARGET_DEFAULT_RETURN.
11317
11318 2014-02-19 Tom Tromey <tromey@redhat.com>
11319
11320 * target.c (complete_target_initialization): Remove casts. Use
11321 return_zero_has_execution.
11322 (return_zero): Add "ignore" argument.
11323 (return_zero_has_execution): New function.
11324 (init_dummy_target): Remove casts. Use
11325 return_zero_has_execution.
11326
11327 2014-02-19 Tom Tromey <tromey@redhat.com>
11328
11329 * target.c (update_current_target): Update comments. Do not
11330 INHERIT to_stratum.
11331
11332 2014-02-19 Tom Tromey <tromey@redhat.com>
11333
11334 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11335 needed.
11336 * corelow.c (core_read_description): Delegate when needed.
11337 * remote.c (remote_read_description): Delegate when needed.
11338 * target-delegates.c: Rebuild.
11339 * target.c (target_read_description): Rewrite.
11340 * target.h (struct target_ops) <to_read_description>: Update
11341 comment. Use TARGET_DEFAULT_RETURN.
11342
11343 2014-02-19 Tom Tromey <tromey@redhat.com>
11344
11345 * target-delegates.c: Rebuild.
11346 * target.c (update_current_target): Don't inherit or default
11347 to_can_run.
11348 (find_default_run_target): Check against delegate_can_run.
11349 * target.h (struct target_ops) <to_can_run>: Use
11350 TARGET_DEFAULT_RETURN.
11351
11352 2014-02-19 Tom Tromey <tromey@redhat.com>
11353
11354 * target-delegates.c: Rebuild.
11355 * target.c (target_disconnect): Unconditionally delegate.
11356 * target.h (struct target_ops) <to_disconnect>: Use
11357 TARGET_DEFAULT_NORETURN.
11358
11359 2014-02-19 Tom Tromey <tromey@redhat.com>
11360
11361 * record.c (record_stop): Unconditionally delegate.
11362 * target-delegates.c: Rebuild.
11363 * target.c (target_stop_recording): Unconditionally delegate.
11364 * target.h (struct target_ops) <to_stop_recording>: Use
11365 TARGET_DEFAULT_IGNORE.
11366
11367 2014-02-19 Tom Tromey <tromey@redhat.com>
11368
11369 * target-delegates.c: Rebuild.
11370 * target.c (target_enable_btrace): Unconditionally delegate.
11371 * target.h (struct target_ops) <to_enable_btrace>: Use
11372 TARGET_DEFAULT_NORETURN.
11373
11374 2014-02-19 Tom Tromey <tromey@redhat.com>
11375
11376 * target-delegates.c: Rebuild.
11377 * target.c (target_read_btrace): Unconditionally delegate.
11378 * target.h (struct target_ops) <to_read_btrace>: Use
11379 TARGET_DEFAULT_NORETURN.
11380
11381 2014-02-19 Tom Tromey <tromey@redhat.com>
11382
11383 * target-delegates.c: Rebuild.
11384 * target.c (target_teardown_btrace): Unconditionally delegate.
11385 * target.h (struct target_ops) <to_teardown_btrace>: Use
11386 TARGET_DEFAULT_NORETURN.
11387
11388 2014-02-19 Tom Tromey <tromey@redhat.com>
11389
11390 * target-delegates.c: Rebuild.
11391 * target.c (target_disable_btrace): Unconditionally delegate.
11392 * target.h (struct target_ops) <to_disable_btrace>: Use
11393 TARGET_DEFAULT_NORETURN.
11394
11395 2014-02-19 Tom Tromey <tromey@redhat.com>
11396
11397 * target-delegates.c: Rebuild.
11398 * target.c (default_search_memory): New function.
11399 (simple_search_memory): Update comment.
11400 (target_search_memory): Unconditionally delegate.
11401 * target.h (struct target_ops) <to_search_memory>: Use
11402 TARGET_DEFAULT_FUNC.
11403
11404 2014-02-19 Tom Tromey <tromey@redhat.com>
11405
11406 * auxv.c (default_auxv_parse): No longer static.
11407 (target_auxv_parse): Unconditionally delegate.
11408 * auxv.h (default_auxv_parse): Declare.
11409 * target-delegates.c: Rebuild.
11410 * target.c: Include auxv.h.
11411 * target.h (struct target_ops) <to_auxv_parse>: Use
11412 TARGET_DEFAULT_FUNC.
11413
11414 2014-02-19 Tom Tromey <tromey@redhat.com>
11415
11416 * target-delegates.c: Rebuild.
11417 * target.c (target_memory_map): Unconditionally delegate.
11418 * target.h (struct target_ops) <to_memory_map>: Use
11419 TARGET_DEFAULT_RETURN.
11420
11421 2014-02-19 Tom Tromey <tromey@redhat.com>
11422
11423 * target-delegates.c: Rebuild.
11424 * target.c (target_thread_alive): Unconditionally delegate.
11425 * target.h (struct target_ops) <to_thread_alive>: Use
11426 TARGET_DEFAULT_RETURN.
11427
11428 2014-02-19 Tom Tromey <tromey@redhat.com>
11429
11430 * target-delegates.c: Rebuild.
11431 * target.c (target_save_record): Unconditionally delegate.
11432 * target.h (struct target_ops) <to_save_record>: Use
11433 TARGET_DEFAULT_NORETURN.
11434
11435 2014-02-19 Tom Tromey <tromey@redhat.com>
11436
11437 * target-delegates.c: Rebuild.
11438 * target.c (target_delete_record): Unconditionally delegate.
11439 * target.h (struct target_ops) <to_delete_record>: Use
11440 TARGET_DEFAULT_NORETURN.
11441
11442 2014-02-19 Tom Tromey <tromey@redhat.com>
11443
11444 * target-delegates.c: Rebuild.
11445 * target.c (target_record_is_replaying): Unconditionally
11446 delegate.
11447 * target.h (struct target_ops) <to_record_is_replaying>: Use
11448 TARGET_DEFAULT_RETURN.
11449
11450 2014-02-19 Tom Tromey <tromey@redhat.com>
11451
11452 * target-delegates.c: Rebuild.
11453 * target.c (target_goto_record_begin): Unconditionally delegate.
11454 * target.h (struct target_ops) <to_goto_record_begin>: Use
11455 TARGET_DEFAULT_NORETURN.
11456
11457 2014-02-19 Tom Tromey <tromey@redhat.com>
11458
11459 * target-delegates.c: Rebuild.
11460 * target.c (target_goto_record_end): Unconditionally delegate.
11461 * target.h (struct target_ops) <to_goto_record_end>: Use
11462 TARGET_DEFAULT_NORETURN.
11463
11464 2014-02-19 Tom Tromey <tromey@redhat.com>
11465
11466 * target-delegates.c: Rebuild.
11467 * target.c (target_goto_record): Unconditionally delegate.
11468 * target.h (struct target_ops) <to_goto_record>: Use
11469 TARGET_DEFAULT_NORETURN.
11470
11471 2014-02-19 Tom Tromey <tromey@redhat.com>
11472
11473 * target-delegates.c: Rebuild.
11474 * target.c (target_insn_history): Unconditionally delegate.
11475 * target.h (struct target_ops) <to_insn_history>: Use
11476 TARGET_DEFAULT_NORETURN.
11477
11478 2014-02-19 Tom Tromey <tromey@redhat.com>
11479
11480 * target-delegates.c: Rebuild.
11481 * target.c (target_insn_history_from): Unconditionally delegate.
11482 * target.h (struct target_ops) <to_insn_history_from>: Use
11483 TARGET_DEFAULT_NORETURN.
11484
11485 2014-02-19 Tom Tromey <tromey@redhat.com>
11486
11487 * target-delegates.c: Rebuild.
11488 * target.c (target_insn_history_range): Unconditionally delegate.
11489 * target.h (struct target_ops) <to_insn_history_range>: Use
11490 TARGET_DEFAULT_NORETURN.
11491
11492 2014-02-19 Tom Tromey <tromey@redhat.com>
11493
11494 * target-delegates.c: Rebuild.
11495 * target.c (target_call_history): Unconditionally delegate.
11496 * target.h (struct target_ops) <to_call_history>: Use
11497 TARGET_DEFAULT_NORETURN.
11498
11499 2014-02-19 Tom Tromey <tromey@redhat.com>
11500
11501 * target-delegates.c: Rebuild.
11502 * target.c (target_call_history_from): Unconditionally delegate.
11503 * target.h (struct target_ops) <to_call_history_from>: Use
11504 TARGET_DEFAULT_NORETURN.
11505
11506 2014-02-19 Tom Tromey <tromey@redhat.com>
11507
11508 * target-delegates.c: Rebuild.
11509 * target.c (target_call_history_range): Unconditionally delegate.
11510 * target.h (struct target_ops) <to_call_history_range>: Use
11511 TARGET_DEFAULT_NORETURN.
11512
11513 2014-02-19 Tom Tromey <tromey@redhat.com>
11514
11515 * target-delegates.c: Rebuild.
11516 * target.c (target_verify_memory): Unconditionally delegate.
11517 * target.h (struct target_ops) <to_verify_memory>: Use
11518 TARGET_DEFAULT_NORETURN.
11519
11520 2014-02-19 Tom Tromey <tromey@redhat.com>
11521
11522 * target-delegates.c: Rebuild.
11523 * target.c (target_core_of_thread): Unconditionally delegate.
11524 * target.h (struct target_ops) <to_core_of_thread>: Use
11525 TARGET_DEFAULT_RETURN.
11526
11527 2014-02-19 Tom Tromey <tromey@redhat.com>
11528
11529 * target-delegates.c: Rebuild.
11530 * target.c (target_flash_done): Unconditionally delegate.
11531 * target.h (struct target_ops) <to_flash_done>: Use
11532 TARGET_DEFAULT_NORETURN.
11533
11534 2014-02-19 Tom Tromey <tromey@redhat.com>
11535
11536 * target-delegates.c: Rebuild.
11537 * target.c (target_flash_erase): Unconditionally delegate.
11538 * target.h (struct target_ops) <to_flash_erase>: Use
11539 TARGET_DEFAULT_NORETURN.
11540
11541 2014-02-19 Tom Tromey <tromey@redhat.com>
11542
11543 * target-delegates.c: Rebuild.
11544 * target.c (target_get_section_table): Unconditionally delegate.
11545 * target.h (struct target_ops) <to_get_section_table>: Use
11546 TARGET_DEFAULT_RETURN.
11547
11548 2014-02-19 Tom Tromey <tromey@redhat.com>
11549
11550 * target-delegates.c: Rebuild.
11551 * target.c (target_pid_to_str): Unconditionally delegate.
11552 (init_dummy_target): Don't initialize to_pid_to_str.
11553 (default_pid_to_str): Rename from dummy_pid_to_str.
11554 * target.h (struct target_ops) <to_pid_to_str>: Use
11555 TARGET_DEFAULT_FUNC.
11556
11557 2014-02-19 Tom Tromey <tromey@redhat.com>
11558
11559 * target-delegates.c: Rebuild.
11560 * target.c (target_find_new_threads): Unconditionally delegate.
11561 * target.h (struct target_ops) <to_find_new_threads>: 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_program_signals): Unconditionally delegate.
11568 * target.h (struct target_ops) <to_program_signals>: Use
11569 TARGET_DEFAULT_IGNORE.
11570
11571 2014-02-19 Tom Tromey <tromey@redhat.com>
11572
11573 * target-delegates.c: Rebuild.
11574 * target.c (target_pass_signals): Unconditionally delegate.
11575 * target.h (struct target_ops) <to_pass_signals>: Use
11576 TARGET_DEFAULT_IGNORE.
11577
11578 2014-02-19 Tom Tromey <tromey@redhat.com>
11579
11580 * target-delegates.c: Rebuild.
11581 * target.c (default_mourn_inferior): New function.
11582 (target_mourn_inferior): Unconditionally delegate.
11583 * target.h (struct target_ops) <to_mourn_inferior>: Use
11584 TARGET_DEFAULT_FUNC.
11585
11586 2014-02-19 Tom Tromey <tromey@redhat.com>
11587
11588 * target-delegates.c: Rebuild.
11589 * target.c (default_follow_fork): New function.
11590 (target_follow_fork): Unconditionally delegate.
11591 * target.h (struct target_ops) <to_follow_fork>: 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_kill): Unconditionally delegate.
11598 * target.h (struct target_ops) <to_kill>: Use
11599 TARGET_DEFAULT_NORETURN.
11600
11601 2014-02-19 Tom Tromey <tromey@redhat.com>
11602
11603 * target-delegates.c: Rebuild.
11604 * target.c (target_masked_watch_num_registers): Unconditionally
11605 delegate.
11606 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11607 Use TARGET_DEFAULT_RETURN.
11608
11609 2014-02-19 Tom Tromey <tromey@redhat.com>
11610
11611 * target-delegates.c: Rebuild.
11612 * target.c (target_remove_mask_watchpoint): Unconditionally
11613 delegate.
11614 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11615 TARGET_DEFAULT_RETURN.
11616
11617 2014-02-19 Tom Tromey <tromey@redhat.com>
11618
11619 * target-delegates.c: Rebuild.
11620 * target.c (target_insert_mask_watchpoint): Unconditionally
11621 delegate.
11622 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11623 TARGET_DEFAULT_RETURN.
11624
11625 2014-02-19 Tom Tromey <tromey@redhat.com>
11626
11627 * target-delegates.c: Rebuild.
11628 * target.c (target_ranged_break_num_registers): Unconditionally
11629 delegate.
11630 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11631 Use TARGET_DEFAULT_RETURN.
11632
11633 2014-02-19 Tom Tromey <tromey@redhat.com>
11634
11635 * target-delegates.c: Rebuild.
11636 * target.c (target_fetch_registers): Unconditionally delegate.
11637 * target.h (struct target_ops) <to_fetch_registers>: Use
11638 TARGET_DEFAULT_NORETURN.
11639
11640 2014-02-19 Tom Tromey <tromey@redhat.com>
11641
11642 * target-delegates.c: Rebuild.
11643 * target.c (update_current_target): Don't inherit or default
11644 to_stop.
11645 * target.h (struct target_ops) <to_stop>: Use
11646 TARGET_DEFAULT_IGNORE.
11647
11648 2014-02-19 Tom Tromey <tromey@redhat.com>
11649
11650 * target-delegates.c: Rebuild.
11651 * target.c (update_current_target): Don't inherit or default
11652 to_can_run_breakpoint_commands.
11653 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11654 Use TARGET_DEFAULT_RETURN.
11655
11656 2014-02-19 Tom Tromey <tromey@redhat.com>
11657
11658 * target-delegates.c: Rebuild.
11659 * target.c (update_current_target): Don't inherit or default
11660 to_supports_evaluation_of_breakpoint_conditions.
11661 * target.h (struct target_ops)
11662 <to_supports_evaluation_of_breakpoint_conditions>: Use
11663 TARGET_DEFAULT_RETURN.
11664
11665 2014-02-19 Tom Tromey <tromey@redhat.com>
11666
11667 * target-delegates.c: Rebuild.
11668 * target.c (update_current_target): Don't inherit or default
11669 to_augmented_libraries_svr4_read.
11670 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11671 Use TARGET_DEFAULT_RETURN.
11672
11673 2014-02-19 Tom Tromey <tromey@redhat.com>
11674
11675 * target-delegates.c: Rebuild.
11676 * target.c (update_current_target): Don't inherit or default
11677 to_can_use_agent.
11678 * target.h (struct target_ops) <to_can_use_agent>: Use
11679 TARGET_DEFAULT_RETURN.
11680
11681 2014-02-19 Tom Tromey <tromey@redhat.com>
11682
11683 * target-delegates.c: Rebuild.
11684 * target.c (update_current_target): Don't inherit or default
11685 to_use_agent.
11686 * target.h (struct target_ops) <to_use_agent>: Use
11687 TARGET_DEFAULT_NORETURN.
11688
11689 2014-02-19 Tom Tromey <tromey@redhat.com>
11690
11691 * target-delegates.c: Rebuild.
11692 * target.c (update_current_target): Don't inherit or default
11693 to_traceframe_info.
11694 (return_null): Remove.
11695 * target.h (struct target_ops) <to_traceframe_info>: Use
11696 TARGET_DEFAULT_RETURN.
11697
11698 2014-02-19 Tom Tromey <tromey@redhat.com>
11699
11700 * target-delegates.c: Rebuild.
11701 * target.c (update_current_target): Don't inherit or default
11702 to_static_tracepoint_markers_by_strid.
11703 * target.h (struct target_ops)
11704 <to_static_tracepoint_markers_by_strid>: Use
11705 TARGET_DEFAULT_NORETURN.
11706
11707 2014-02-19 Tom Tromey <tromey@redhat.com>
11708
11709 * target-delegates.c: Rebuild.
11710 * target.c (update_current_target): Don't inherit or default
11711 to_static_tracepoint_marker_at.
11712 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11713 Use TARGET_DEFAULT_RETURN.
11714
11715 2014-02-19 Tom Tromey <tromey@redhat.com>
11716
11717 * target-delegates.c: Rebuild.
11718 * target.c (update_current_target): Don't inherit or default
11719 to_set_permissions.
11720 * target.h (struct target_ops) <to_set_permissions>: Use
11721 TARGET_DEFAULT_IGNORE.
11722
11723 2014-02-19 Tom Tromey <tromey@redhat.com>
11724
11725 * target-delegates.c: Rebuild.
11726 * target.c (update_current_target): Don't inherit or default
11727 to_get_tib_address.
11728 * target.h (struct target_ops) <to_get_tib_address>: Use
11729 TARGET_DEFAULT_NORETURN.
11730
11731 2014-02-19 Tom Tromey <tromey@redhat.com>
11732
11733 * target-delegates.c: Rebuild.
11734 * target.c (update_current_target): Don't inherit or default
11735 to_set_trace_notes.
11736 * target.h (struct target_ops) <to_set_trace_notes>: Use
11737 TARGET_DEFAULT_RETURN.
11738
11739 2014-02-19 Tom Tromey <tromey@redhat.com>
11740
11741 * target-delegates.c: Rebuild.
11742 * target.c (update_current_target): Don't initialize
11743 to_set_trace_buffer_size.
11744 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11745 TARGET_DEFAULT_IGNORE.
11746
11747 2014-02-19 Tom Tromey <tromey@redhat.com>
11748
11749 * target-delegates.c: Rebuild.
11750 * target.c (update_current_target): Don't inherit or default
11751 to_set_circular_trace_buffer.
11752 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11753 TARGET_DEFAULT_IGNORE.
11754
11755 2014-02-19 Tom Tromey <tromey@redhat.com>
11756
11757 * target-delegates.c: Rebuild.
11758 * target.c (update_current_target): Don't inherit or default
11759 to_set_disconnected_tracing.
11760 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11761 TARGET_DEFAULT_IGNORE.
11762
11763 2014-02-19 Tom Tromey <tromey@redhat.com>
11764
11765 * target-delegates.c: Rebuild.
11766 * target.c (update_current_target): Don't inherit or default
11767 to_get_min_fast_tracepoint_insn_len.
11768 (return_minus_one): Remove.
11769 * target.h (struct target_ops)
11770 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11771
11772 2014-02-19 Tom Tromey <tromey@redhat.com>
11773
11774 * target-delegates.c: Rebuild.
11775 * target.c (update_current_target): Don't inherit or default
11776 to_get_raw_trace_data.
11777 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11778 TARGET_DEFAULT_NORETURN.
11779
11780 2014-02-19 Tom Tromey <tromey@redhat.com>
11781
11782 * target-delegates.c: Rebuild.
11783 * target.c (update_current_target): Don't inherit or default
11784 to_upload_trace_state_variables.
11785 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11786 Use TARGET_DEFAULT_RETURN.
11787
11788 2014-02-19 Tom Tromey <tromey@redhat.com>
11789
11790 * target-delegates.c: Rebuild.
11791 * target.c (update_current_target): Don't inherit or default
11792 to_upload_tracepoints.
11793 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11794 TARGET_DEFAULT_RETURN.
11795
11796 2014-02-19 Tom Tromey <tromey@redhat.com>
11797
11798 * target-delegates.c: Rebuild.
11799 * target.c (update_current_target): Don't inherit or default
11800 to_save_trace_data.
11801 * target.h (struct target_ops) <to_save_trace_data>: Use
11802 TARGET_DEFAULT_NORETURN.
11803
11804 2014-02-19 Tom Tromey <tromey@redhat.com>
11805
11806 * target-delegates.c: Rebuild.
11807 * target.c (update_current_target): Don't inherit or default
11808 to_get_trace_state_variable_value.
11809 * target.h (struct target_ops)
11810 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11811
11812 2014-02-19 Tom Tromey <tromey@redhat.com>
11813
11814 * target-delegates.c: Rebuild.
11815 * target.c (update_current_target): Don't inherit or default
11816 to_trace_find.
11817 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11818
11819 2014-02-19 Tom Tromey <tromey@redhat.com>
11820
11821 * target-delegates.c: Rebuild.
11822 * target.c (update_current_target): Don't inherit or default
11823 to_trace_stop.
11824 * target.h (struct target_ops) <to_trace_stop>: Use
11825 TARGET_DEFAULT_NORETURN.
11826
11827 2014-02-19 Tom Tromey <tromey@redhat.com>
11828
11829 * target-delegates.c: Rebuild.
11830 * target.c (update_current_target): Don't inherit or default
11831 to_get_tracepoint_status.
11832 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11833 TARGET_DEFAULT_NORETURN.
11834
11835 2014-02-19 Tom Tromey <tromey@redhat.com>
11836
11837 * target-delegates.c: Rebuild.
11838 * target.c (update_current_target): Don't inherit or default
11839 to_get_trace_status.
11840 * target.h (struct target_ops) <to_get_trace_status>: Use
11841 TARGET_DEFAULT_RETURN.
11842
11843 2014-02-19 Tom Tromey <tromey@redhat.com>
11844
11845 * target-delegates.c: Rebuild.
11846 * target.c (update_current_target): Don't inherit or default
11847 to_trace_start.
11848 * target.h (struct target_ops) <to_trace_start>: Use
11849 TARGET_DEFAULT_NORETURN.
11850
11851 2014-02-19 Tom Tromey <tromey@redhat.com>
11852
11853 * target-delegates.c: Rebuild.
11854 * target.c (update_current_target): Don't inherit or default
11855 to_trace_set_readonly_regions.
11856 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11857 Use TARGET_DEFAULT_NORETURN.
11858
11859 2014-02-19 Tom Tromey <tromey@redhat.com>
11860
11861 * target-delegates.c: Rebuild.
11862 * target.c (update_current_target): Don't inherit or default
11863 to_disable_tracepoint.
11864 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11865 TARGET_DEFAULT_NORETURN.
11866
11867 2014-02-19 Tom Tromey <tromey@redhat.com>
11868
11869 * target-delegates.c: Rebuild.
11870 * target.c (update_current_target): Don't inherit or default
11871 to_enable_tracepoint.
11872 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11873 TARGET_DEFAULT_NORETURN.
11874
11875 2014-02-19 Tom Tromey <tromey@redhat.com>
11876
11877 * target-delegates.c: Rebuild.
11878 * target.c (update_current_target): Don't inherit or default
11879 to_download_trace_state_variable.
11880 * target.h (struct target_ops) <to_download_trace_state_variable>:
11881 Use TARGET_DEFAULT_NORETURN.
11882
11883 2014-02-19 Tom Tromey <tromey@redhat.com>
11884
11885 * target-delegates.c: Rebuild.
11886 * target.c (update_current_target): Don't inherit or default
11887 to_can_download_tracepoint.
11888 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11889 TARGET_DEFAULT_RETURN.
11890
11891 2014-02-19 Tom Tromey <tromey@redhat.com>
11892
11893 * target-delegates.c: Rebuild.
11894 * target.c (update_current_target): Don't inherit or default
11895 to_download_tracepoint.
11896 * target.h (struct target_ops) <to_download_tracepoint>: Use
11897 TARGET_DEFAULT_NORETURN.
11898
11899 2014-02-19 Tom Tromey <tromey@redhat.com>
11900
11901 * target-delegates.c: Rebuild.
11902 * target.c (update_current_target): Don't inherit or default
11903 to_trace_init.
11904 * target.h (struct target_ops) <to_trace_init>: Use
11905 TARGET_DEFAULT_RETURN.
11906
11907 2014-02-19 Tom Tromey <tromey@redhat.com>
11908
11909 * target-delegates.c: Rebuild.
11910 * target.c (update_current_target): Don't inherit or default
11911 to_supports_string_tracing.
11912 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11913 TARGET_DEFAULT_RETURN.
11914
11915 2014-02-19 Tom Tromey <tromey@redhat.com>
11916
11917 * target-delegates.c: Rebuild.
11918 * target.c (update_current_target): Don't inherit or default
11919 to_supports_enable_disable_tracepoint.
11920 * target.h (struct target_ops)
11921 <to_supports_enable_disable_tracepoint>: Use
11922 TARGET_DEFAULT_RETURN.
11923
11924 2014-02-19 Tom Tromey <tromey@redhat.com>
11925
11926 * target-delegates.c: Rebuild.
11927 * target.c (update_current_target): Don't inherit or default
11928 to_supports_multi_process.
11929 * target.h (struct target_ops) <to_supports_multi_process>: Use
11930 TARGET_DEFAULT_RETURN.
11931
11932 2014-02-19 Tom Tromey <tromey@redhat.com>
11933
11934 * target-delegates.c: Rebuild.
11935 * target.c (update_current_target): Don't inherit or default
11936 to_get_ada_task_ptid.
11937 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11938 TARGET_DEFAULT_FUNC.
11939
11940 2014-02-19 Tom Tromey <tromey@redhat.com>
11941
11942 * target-delegates.c: Rebuild.
11943 * target.c (update_current_target): Don't inherit or default
11944 to_thread_architecture.
11945 * target.h (struct target_ops) <to_thread_architecture>: Use
11946 TARGET_DEFAULT_FUNC.
11947
11948 2014-02-19 Tom Tromey <tromey@redhat.com>
11949
11950 * target-delegates.c: Rebuild.
11951 * target.c (update_current_target): Don't inherit or default
11952 to_execution_direction.
11953 * target.h (struct target_ops) <to_execution_direction>: Use
11954 TARGET_DEFAULT_FUNC.
11955
11956 2014-02-19 Tom Tromey <tromey@redhat.com>
11957
11958 * target-delegates.c: Rebuild.
11959 * target.c (update_current_target): Don't inherit or default
11960 to_can_execute_reverse.
11961 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11962 TARGET_DEFAULT_RETURN.
11963 (target_can_execute_reverse): Unconditionally delegate.
11964
11965 2014-02-19 Tom Tromey <tromey@redhat.com>
11966
11967 * target-delegates.c: Rebuild.
11968 * target.c (update_current_target): Don't inherit or default
11969 to_goto_bookmark.
11970 (dummy_goto_bookmark): Remove.
11971 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11972 * target.h (struct target_ops) <to_goto_bookmark>: Use
11973 TARGET_DEFAULT_NORETURN.
11974
11975 2014-02-19 Tom Tromey <tromey@redhat.com>
11976
11977 * target-delegates.c: Rebuild.
11978 * target.c (update_current_target): Don't inherit or default
11979 to_get_bookmark.
11980 (dummy_get_bookmark): Remove.
11981 (init_dummy_target): Don't inherit or default to_get_bookmark.
11982 * target.h (struct target_ops) <to_get_bookmark>: Use
11983 TARGET_DEFAULT_NORETURN
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_make_corefile_notes.
11990 (init_dummy_target): Don't initialize to_make_corefile_notes.
11991 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11992 TARGET_DEFAULT_FUNC.
11993
11994 2014-02-19 Tom Tromey <tromey@redhat.com>
11995
11996 * target-delegates.c: Rebuild.
11997 * target.c (update_current_target): Don't inherit or default
11998 to_find_memory_regions.
11999 (init_dummy_target): Don't initialize to_find_memory_regions.
12000 * target.h (struct target_ops) <to_find_memory_regions>: Use
12001 TARGET_DEFAULT_FUNC.
12002
12003 2014-02-19 Tom Tromey <tromey@redhat.com>
12004
12005 * target-delegates.c: Rebuild.
12006 * target.c (update_current_target): Don't inherit or default
12007 to_log_command.
12008 * target.h (struct target_ops) <to_log_command>: Use
12009 TARGET_DEFAULT_IGNORE.
12010 (target_log_command): Unconditionally delegate.
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_pid_to_exec_file.
12017 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12018 TARGET_DEFAULT_RETURN.
12019
12020 2014-02-19 Tom Tromey <tromey@redhat.com>
12021
12022 * target-delegates.c: Rebuild.
12023 * target.c (update_current_target): Don't inherit or default
12024 to_thread_name.
12025 (target_thread_name): Unconditionally delegate.
12026 * target.h (struct target_ops) <to_thread_name>: Use
12027 TARGET_DEFAULT_RETURN.
12028
12029 2014-02-19 Tom Tromey <tromey@redhat.com>
12030
12031 * target-delegates.c: Rebuild.
12032 * target.c (update_current_target): Don't inherit or default
12033 to_extra_thread_info.
12034 * target.h (struct target_ops) <to_extra_thread_info>: Use
12035 TARGET_DEFAULT_RETURN.
12036
12037 2014-02-19 Tom Tromey <tromey@redhat.com>
12038
12039 * target-delegates.c: Rebuild.
12040 * target.c (update_current_target): Don't inherit or default
12041 to_has_exited.
12042 * target.h (struct target_ops) <to_has_exited>: Use
12043 TARGET_DEFAULT_RETURN..
12044
12045 2014-02-19 Tom Tromey <tromey@redhat.com>
12046
12047 * target-delegates.c: Rebuild.
12048 * target.c (update_current_target): Don't inherit or default
12049 to_set_syscall_catchpoint.
12050 (return_one): Remove.
12051 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12052 TARGET_DEFAULT_RETURN.
12053
12054 2014-02-19 Tom Tromey <tromey@redhat.com>
12055
12056 * target-delegates.c: Rebuild.
12057 * target.c (update_current_target): Don't inherit or default
12058 to_insert_exec_catchpoint.
12059 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12060 TARGET_DEFAULT_RETURN.
12061
12062 2014-01-08 Tom Tromey <tromey@redhat.com>
12063
12064 * target-delegates.c: Rebuild.
12065 * target.c (update_current_target): Don't inherit or default
12066 to_insert_exec_catchpoint.
12067 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12068 TARGET_DEFAULT_RETURN.
12069
12070 2014-02-19 Tom Tromey <tromey@redhat.com>
12071
12072 * target-delegates.c: Rebuild.
12073 * target.c (update_current_target): Don't inherit or default
12074 to_remove_vfork_catchpoint.
12075 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12076 TARGET_DEFAULT_RETURN.
12077
12078 2014-02-19 Tom Tromey <tromey@redhat.com>
12079
12080 * target-delegates.c: Rebuild.
12081 * target.c (update_current_target): Don't inherit or default
12082 to_insert_vfork_catchpoint.
12083 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12084 TARGET_DEFAULT_RETURN.
12085
12086 2014-02-19 Tom Tromey <tromey@redhat.com>
12087
12088 * target-delegates.c: Rebuild.
12089 * target.c (update_current_target): Don't inherit or default
12090 to_remove_fork_catchpoint.
12091 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12092 TARGET_DEFAULT_RETURN.
12093
12094 2014-02-19 Tom Tromey <tromey@redhat.com>
12095
12096 * target-delegates.c: Rebuild.
12097 * target.c (update_current_target): Don't inherit or default
12098 to_insert_fork_catchpoint.
12099 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12100 TARGET_DEFAULT_RETURN.
12101
12102 2014-02-19 Tom Tromey <tromey@redhat.com>
12103
12104 * target-delegates.c: Rebuild.
12105 * target.c (update_current_target): Don't inherit or default
12106 to_post_startup_inferior.
12107 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12108 TARGET_DEFAULT_IGNORE.
12109
12110 2014-02-19 Tom Tromey <tromey@redhat.com>
12111
12112 * target-delegates.c: Rebuild.
12113 * target.c (update_current_target): Don't inherit or default
12114 to_load.
12115 * target.h (struct target_ops) <to_load>: Use
12116 TARGET_DEFAULT_NORETURN.
12117
12118 2014-02-19 Tom Tromey <tromey@redhat.com>
12119
12120 * target-delegates.c: Rebuild.
12121 * target.c (update_current_target): Don't inherit or default
12122 to_terminal_info.
12123 * target.h (struct target_ops) <to_terminal_info>: Use
12124 TARGET_DEFAULT_FUNC.
12125
12126 2014-02-19 Tom Tromey <tromey@redhat.com>
12127
12128 * target-delegates.c: Rebuild.
12129 * target.c (update_current_target): Don't inherit or default
12130 to_terminal_save_ours.
12131 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12132 TARGET_DEFAULT_IGNORE.
12133
12134 2014-02-19 Tom Tromey <tromey@redhat.com>
12135
12136 * target-delegates.c: Rebuild.
12137 * target.c (update_current_target): Don't inherit or default
12138 to_terminal_ours.
12139 * target.h (struct target_ops) <to_terminal_ours>: Use
12140 TARGET_DEFAULT_IGNORE.
12141
12142 2014-02-19 Tom Tromey <tromey@redhat.com>
12143
12144 * target-delegates.c: Rebuild.
12145 * target.c (update_current_target): Don't inherit or default
12146 to_terminal_ours_for_output.
12147 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12148 TARGET_DEFAULT_IGNORE.
12149
12150 2014-02-19 Tom Tromey <tromey@redhat.com>
12151
12152 * target-delegates.c: Rebuild.
12153 * target.c (update_current_target): Don't inherit or default
12154 to_terminal_inferior.
12155 * target.h (struct target_ops) <to_terminal_inferior>: Use
12156 TARGET_DEFAULT_IGNORE.
12157
12158 2014-02-19 Tom Tromey <tromey@redhat.com>
12159
12160 * target-delegates.c: Rebuild.
12161 * target.c (update_current_target): Don't inherit or default
12162 to_terminal_init.
12163 * target.h (struct target_ops) <to_terminal_init>: Use
12164 TARGET_DEFAULT_IGNORE.
12165
12166 2014-02-19 Tom Tromey <tromey@redhat.com>
12167
12168 * target-delegates.c: Rebuild.
12169 * target.c (update_current_target): Don't inherit or default
12170 to_can_accel_watchpoint_condition.
12171 * target.h (struct target_ops)
12172 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12173
12174 2014-02-19 Tom Tromey <tromey@redhat.com>
12175
12176 * target-delegates.c: Rebuild.
12177 * target.c (update_current_target): Don't inherit or default
12178 to_region_ok_for_hw_watchpoint.
12179 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12180 Use TARGET_DEFAULT_FUNC.
12181
12182 2014-02-19 Tom Tromey <tromey@redhat.com>
12183
12184 * target-delegates.c: Rebuild.
12185 * target.c (update_current_target): Don't inherit or default
12186 to_watchpoint_addr_within_range.
12187 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12188 Use TARGET_DEFAULT_FUNC.
12189
12190 2014-02-19 Tom Tromey <tromey@redhat.com>
12191
12192 * target-delegates.c: Rebuild.
12193 * target.c (update_current_target): Don't inherit or default
12194 to_remove_watchpoint.
12195 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12196 TARGET_DEFAULT_NORETURN.
12197
12198 2014-02-19 Tom Tromey <tromey@redhat.com>
12199
12200 * target-delegates.c: Rebuild.
12201 * target.c (update_current_target): Don't inherit or default
12202 to_insert_watchpoint.
12203 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12204 TARGET_DEFAULT_RETURN.
12205
12206 2014-02-19 Tom Tromey <tromey@redhat.com>
12207
12208 * target-delegates.c: Rebuild.
12209 * target.c (update_current_target): Don't inherit or default
12210 to_remove_hw_breakpoint.
12211 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12212 TARGET_DEFAULT_RETURN.
12213
12214 2014-02-19 Tom Tromey <tromey@redhat.com>
12215
12216 * target-delegates.c: Rebuild.
12217 * target.c (update_current_target): Don't inherit or default
12218 to_insert_hw_breakpoint.
12219 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12220 TARGET_DEFAULT_RETURN.
12221
12222 2014-02-19 Tom Tromey <tromey@redhat.com>
12223
12224 * target-delegates.c: Rebuild.
12225 * target.c (update_current_target): Don't inherit or default
12226 to_can_use_hw_breakpoint.
12227 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12228 TARGET_DEFAULT_RETURN.
12229
12230 2014-02-19 Tom Tromey <tromey@redhat.com>
12231
12232 * target-delegates.c: Rebuild.
12233 * target.c (update_current_target): Don't inherit or default
12234 to_files_info.
12235 * target.h (struct target_ops) <to_files_info>: Use
12236 TARGET_DEFAULT_IGNORE.
12237
12238 2014-02-19 Tom Tromey <tromey@redhat.com>
12239
12240 * target-delegates.c: Rebuild.
12241 * target.c (update_current_target): Don't inherit or default
12242 to_store.
12243 * target.h (struct target_ops) <to_store>: Use
12244 TARGET_DEFAULT_NORETURN.
12245
12246 2014-02-19 Tom Tromey <tromey@redhat.com>
12247
12248 * target-delegates.c: Rebuild.
12249 * target.c (update_current_target): Don't inherit or default
12250 to_post_attach.
12251 * target.h (struct target_ops) <to_post_attach>: Use
12252 TARGET_DEFAULT_IGNORE.
12253
12254 2014-02-19 Tom Tromey <tromey@redhat.com>
12255
12256 * target-delegates.c: Rebuild.
12257 * target.c (update_current_target): Don't inherit or default
12258 to_rcmd.
12259 (default_rcmd): New function.
12260 (do_monitor_command): Unconditionally delegate.
12261 * target.h (struct target_ops) <to_rmcd>: Use
12262 TARGET_DEFAULT_FUNC.
12263
12264 2014-02-19 Tom Tromey <tromey@redhat.com>
12265
12266 * target-delegates.c: Rebuild.
12267 * target.c (init_dummy_target): Don't initialize to_attach.
12268 (target_attach): Unconditionally delegate.
12269 * target.h (struct target_ops) <to_attach>: Use
12270 TARGET_DEFAULT_FUNC.
12271
12272 2014-02-19 Tom Tromey <tromey@redhat.com>
12273
12274 * target-delegates.c: Rebuild.
12275 * target.c (target_detach): Unconditionally delegate.
12276 (init_dummy_target): Don't initialize to_detach.
12277 * target.h (struct target_ops) <to_detach>: Use
12278 TARGET_DEFAULT_IGNORE.
12279
12280 2014-02-19 Tom Tromey <tromey@redhat.com>
12281
12282 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12283 Add argument.
12284 (target_augmented_libraries_svr4_read): Add argument.
12285 * target.c (update_current_target): Update.
12286 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12287 argument.
12288
12289 2014-02-19 Tom Tromey <tromey@redhat.com>
12290
12291 * target.h (struct target_ops) <to_call_history_range>: Add
12292 argument.
12293 * target.c (target_call_history_range): Add argument.
12294 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12295 argument.
12296 (record_btrace_call_history_from): Update.
12297
12298 2014-02-19 Tom Tromey <tromey@redhat.com>
12299
12300 * target.h (struct target_ops) <to_call_history_from>: Add
12301 argument.
12302 * target.c (target_call_history_from): Add argument.
12303 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12304 argument.
12305
12306 2014-02-19 Tom Tromey <tromey@redhat.com>
12307
12308 * target.h (struct target_ops) <to_call_history>: Add argument.
12309 * target.c (target_call_history): Add argument.
12310 * record-btrace.c (record_btrace_call_history): Add 'self'
12311 argument.
12312
12313 2014-02-19 Tom Tromey <tromey@redhat.com>
12314
12315 * target.h (struct target_ops) <to_insn_history_range>: Add
12316 argument.
12317 * target.c (target_insn_history_range): Add argument.
12318 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12319 argument.
12320 (record_btrace_insn_history_from): Update.
12321
12322 2014-02-19 Tom Tromey <tromey@redhat.com>
12323
12324 * target.h (struct target_ops) <to_insn_history_from>: Add
12325 argument.
12326 * target.c (target_insn_history_from): Add argument.
12327 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12328 argument.
12329
12330 2014-02-19 Tom Tromey <tromey@redhat.com>
12331
12332 * target.h (struct target_ops) <to_insn_history>: Add argument.
12333 * target.c (target_insn_history): Add argument.
12334 * record-btrace.c (record_btrace_insn_history): Add 'self'
12335 argument.
12336
12337 2014-02-19 Tom Tromey <tromey@redhat.com>
12338
12339 * target.h (struct target_ops) <to_goto_record>: Add argument.
12340 * target.c (target_goto_record): Add argument.
12341 * record-full.c (record_full_goto): Add 'self' argument.
12342 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12343
12344 2014-02-19 Tom Tromey <tromey@redhat.com>
12345
12346 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12347 * target.c (target_goto_record_end): Add argument.
12348 * record-full.c (record_full_goto_end): Add 'self' argument.
12349 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12350
12351 2014-02-19 Tom Tromey <tromey@redhat.com>
12352
12353 * target.h (struct target_ops) <to_goto_record_begin>: Add
12354 argument.
12355 * target.c (target_goto_record_begin): Add argument.
12356 * record-full.c (record_full_goto_begin): Add 'self' argument.
12357 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12358 argument.
12359
12360 2014-02-19 Tom Tromey <tromey@redhat.com>
12361
12362 * target.h (struct target_ops) <to_record_is_replaying>: Add
12363 argument.
12364 * target.c (target_record_is_replaying): Add argument.
12365 * record-full.c (record_full_is_replaying): Add 'self' argument.
12366 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12367 argument.
12368 (record_btrace_xfer_partial, record_btrace_store_registers)
12369 (record_btrace_prepare_to_store, record_btrace_resume)
12370 (record_btrace_wait, record_btrace_decr_pc_after_break)
12371 (record_btrace_find_new_threads, record_btrace_thread_alive):
12372 Update.
12373
12374 2014-02-19 Tom Tromey <tromey@redhat.com>
12375
12376 * target.h (struct target_ops) <to_delete_record>: Add argument.
12377 * target.c (target_delete_record): Add argument.
12378 * record-full.c (record_full_delete): Add 'self' argument.
12379
12380 2014-02-19 Tom Tromey <tromey@redhat.com>
12381
12382 * target.h (struct target_ops) <to_save_record>: Add argument.
12383 * target.c (target_save_record): Add argument.
12384 * record-full.c (record_full_save): Add 'self' argument.
12385 (record_full_save): Add 'self' argument.
12386
12387 2014-02-19 Tom Tromey <tromey@redhat.com>
12388
12389 * target.h (struct target_ops) <to_info_record>: Add argument.
12390 * target.c (target_info_record): Add argument.
12391 * record.c (info_record_command): Add argument.
12392 * record-full.c (record_full_info): Add 'self' argument.
12393 * record-btrace.c (record_btrace_info): Add 'self' argument.
12394
12395 2014-02-19 Tom Tromey <tromey@redhat.com>
12396
12397 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12398 * target.c (target_stop_recording): Add argument.
12399 * record.c (record_stop): Add argument.
12400 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12401 argument.
12402
12403 2014-02-19 Tom Tromey <tromey@redhat.com>
12404
12405 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12406 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12407 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12408 argument.
12409 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12410 (_initialize_amd64_linux_nat): Use it.
12411 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12412 (_initialize_i386_linux_nat): Use it.
12413
12414 2014-02-19 Tom Tromey <tromey@redhat.com>
12415
12416 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12417 * target.c (target_teardown_btrace): Add argument.
12418 * remote.c (remote_teardown_btrace): Add 'self' argument.
12419 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12420 argument.
12421 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12422 argument.
12423
12424 2014-02-19 Tom Tromey <tromey@redhat.com>
12425
12426 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12427 * target.c (target_disable_btrace): Add argument.
12428 * remote.c (remote_disable_btrace): Add 'self' argument.
12429 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12430 argument.
12431 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12432 argument.
12433
12434 2014-02-19 Tom Tromey <tromey@redhat.com>
12435
12436 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12437 * target.c (target_enable_btrace): Add argument.
12438 * remote.c (remote_enable_btrace): Add 'self' argument.
12439 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12440 argument.
12441 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12442 argument.
12443
12444 2014-02-19 Tom Tromey <tromey@redhat.com>
12445
12446 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12447 (target_can_use_agent): Add argument.
12448 * target.c (update_current_target): Update.
12449 * remote.c (remote_can_use_agent): Add 'self' argument.
12450 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12451
12452 2014-02-19 Tom Tromey <tromey@redhat.com>
12453
12454 * target.h (struct target_ops) <to_use_agent>: Add argument.
12455 (target_use_agent): Add argument.
12456 * target.c (update_current_target): Update.
12457 * remote.c (remote_use_agent): Add 'self' argument.
12458 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12459
12460 2014-02-19 Tom Tromey <tromey@redhat.com>
12461
12462 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12463 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12464 (target_traceframe_info): Add argument.
12465 * target.c (update_current_target): Update.
12466 * remote.c (remote_traceframe_info): Add 'self' argument.
12467 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12468
12469 2014-02-19 Tom Tromey <tromey@redhat.com>
12470
12471 * target.h (target_static_tracepoint_markers_by_strid): Add
12472 argument.
12473 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12474 'self' argument.
12475 * target.c (update_current_target): Update.
12476 * remote.c (struct target_ops)
12477 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12478 * linux-nat.c (struct target_ops)
12479 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12480
12481 2014-02-19 Tom Tromey <tromey@redhat.com>
12482
12483 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12484 Add argument.
12485 (target_static_tracepoint_marker_at): Add argument.
12486 * target.c (update_current_target): Update.
12487 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12488 argument.
12489
12490 2014-02-19 Tom Tromey <tromey@redhat.com>
12491
12492 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12493 (target_set_permissions): Add argument.
12494 * target.c (update_current_target): Update.
12495 * remote.c (remote_set_permissions): Add 'self' argument.
12496 (remote_start_remote): Update.
12497
12498 2014-02-19 Tom Tromey <tromey@redhat.com>
12499
12500 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12501 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12502 (target_get_tib_address): Add argument.
12503 * target.c (update_current_target): Update.
12504 * remote.c (remote_get_tib_address): Add 'self' argument.
12505
12506 2014-02-19 Tom Tromey <tromey@redhat.com>
12507
12508 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12509 (target_set_trace_notes): Add argument.
12510 * target.c (update_current_target): Update.
12511 * remote.c (remote_set_trace_notes): Add 'self' argument.
12512
12513 2014-02-19 Tom Tromey <tromey@redhat.com>
12514
12515 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12516 argument.
12517 (target_set_trace_buffer_size): Add argument.
12518 * target.c (update_current_target): Update.
12519 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12520
12521 2014-02-19 Tom Tromey <tromey@redhat.com>
12522
12523 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12524 argument.
12525 (target_set_circular_trace_buffer): Add argument.
12526 * target.c (update_current_target): Update.
12527 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12528 argument.
12529
12530 2014-02-19 Tom Tromey <tromey@redhat.com>
12531
12532 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12533 argument.
12534 (target_set_disconnected_tracing): Add argument.
12535 * target.c (update_current_target): Update.
12536 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12537
12538 2014-02-19 Tom Tromey <tromey@redhat.com>
12539
12540 * target.h (struct target_ops)
12541 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12542 (target_get_min_fast_tracepoint_insn_len): Add argument.
12543 * target.c (update_current_target): Update.
12544 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12545 argument.
12546
12547 2014-02-19 Tom Tromey <tromey@redhat.com>
12548
12549 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12550 argument.
12551 (target_get_raw_trace_data): Add argument.
12552 * target.c (update_current_target): Update.
12553 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12554
12555 2014-02-19 Tom Tromey <tromey@redhat.com>
12556
12557 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12558 Add argument.
12559 (target_upload_trace_state_variables): Add argument.
12560 * target.c (update_current_target): Update.
12561 * remote.c (remote_upload_trace_state_variables): Add 'self'
12562 argument.
12563 (remote_start_remote): Update.
12564
12565 2014-02-19 Tom Tromey <tromey@redhat.com>
12566
12567 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12568 argument.
12569 (target_upload_tracepoints): Add argument.
12570 * target.c (update_current_target): Update.
12571 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12572 (remote_start_remote): Update.
12573
12574 2014-02-19 Tom Tromey <tromey@redhat.com>
12575
12576 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12577 (target_save_trace_data): Add argument.
12578 * target.c (update_current_target): Update.
12579 * remote.c (remote_save_trace_data): Add 'self' argument.
12580
12581 2014-02-19 Tom Tromey <tromey@redhat.com>
12582
12583 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12584 argument.
12585 * target.h (struct target_ops)
12586 <to_get_trace_state_variable_value>: Add argument.
12587 (target_get_trace_state_variable_value): Add argument.
12588 * target.c (update_current_target): Update.
12589 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12590 argument.
12591 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12592
12593 2014-02-19 Tom Tromey <tromey@redhat.com>
12594
12595 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12596 * target.h (struct target_ops) <to_trace_find>: Add argument.
12597 (target_trace_find): Add argument.
12598 * target.c (update_current_target): Update.
12599 * remote.c (remote_trace_find): Add 'self' argument.
12600 * ctf.c (ctf_trace_find): Add 'self' argument.
12601
12602 2014-02-19 Tom Tromey <tromey@redhat.com>
12603
12604 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12605 (target_trace_stop): Add argument.
12606 * target.c (update_current_target): Update.
12607 * remote.c (remote_trace_stop): Add 'self' argument.
12608
12609 2014-02-19 Tom Tromey <tromey@redhat.com>
12610
12611 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12612 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12613 argument.
12614 (target_get_tracepoint_status): Add argument.
12615 * target.c (update_current_target): Update.
12616 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12617
12618 2014-02-19 Tom Tromey <tromey@redhat.com>
12619
12620 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12621 * target.h (struct target_ops) <to_get_trace_status>: Add
12622 argument.
12623 (target_get_trace_status): Add argument.
12624 * target.c (update_current_target): Update.
12625 * remote.c (remote_get_trace_status): Add 'self' argument.
12626 (remote_start_remote, remote_can_download_tracepoint): Update.
12627 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12628
12629 2014-02-19 Tom Tromey <tromey@redhat.com>
12630
12631 * target.h (struct target_ops) <to_trace_start>: Add argument.
12632 (target_trace_start): Add argument.
12633 * target.c (update_current_target): Update.
12634 * remote.c (remote_trace_start): Add 'self' argument.
12635
12636 2014-02-19 Tom Tromey <tromey@redhat.com>
12637
12638 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12639 Add argument.
12640 (target_trace_set_readonly_regions): Add argument.
12641 * target.c (update_current_target): Update.
12642 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12643 argument.
12644
12645 2014-02-19 Tom Tromey <tromey@redhat.com>
12646
12647 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12648 argument.
12649 (target_disable_tracepoint): Add argument.
12650 * target.c (update_current_target): Update.
12651 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12652
12653 2014-02-19 Tom Tromey <tromey@redhat.com>
12654
12655 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12656 argument.
12657 (target_enable_tracepoint): Add argument.
12658 * target.c (update_current_target): Update.
12659 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12660
12661 2014-02-19 Tom Tromey <tromey@redhat.com>
12662
12663 * target.h (struct target_ops) <to_download_trace_state_variable>:
12664 Add argument.
12665 (target_download_trace_state_variable): Add argument.
12666 * target.c (update_current_target): Update.
12667 * remote.c (remote_download_trace_state_variable): Add 'self'
12668 argument.
12669
12670 2014-02-19 Tom Tromey <tromey@redhat.com>
12671
12672 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12673 argument.
12674 (target_can_download_tracepoint): Add argument.
12675 * target.c (update_current_target): Update.
12676 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12677
12678 2014-02-19 Tom Tromey <tromey@redhat.com>
12679
12680 * target.h (struct target_ops) <to_download_tracepoint>: Add
12681 argument.
12682 (target_download_tracepoint): Add argument.
12683 * target.c (update_current_target): Update.
12684 * remote.c (remote_download_tracepoint): Add 'self' argument.
12685
12686 2014-02-19 Tom Tromey <tromey@redhat.com>
12687
12688 * target.h (struct target_ops) <to_trace_init>: Add argument.
12689 (target_trace_init): Add argument.
12690 * target.c (update_current_target): Update.
12691 * remote.c (remote_trace_init): Add 'self' argument.
12692
12693 2014-02-19 Tom Tromey <tromey@redhat.com>
12694
12695 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12696 * target.c (target_fileio_readlink): Add argument.
12697 * remote.c (remote_hostio_readlink): Add 'self' argument.
12698 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12699
12700 2014-02-19 Tom Tromey <tromey@redhat.com>
12701
12702 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12703 * target.c (target_fileio_unlink): Add argument.
12704 * remote.c (remote_hostio_unlink): Add 'self' argument.
12705 (remote_file_delete): Update.
12706 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12707
12708 2014-02-19 Tom Tromey <tromey@redhat.com>
12709
12710 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12711 * target.c (target_fileio_close): Add argument.
12712 * remote.c (remote_hostio_close): Add 'self' argument.
12713 (remote_hostio_close_cleanup): Update.
12714 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12715 Update.
12716 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12717
12718 2014-02-19 Tom Tromey <tromey@redhat.com>
12719
12720 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12721 * target.c (target_fileio_pread): Add argument.
12722 * remote.c (remote_hostio_pread): Add 'self' argument.
12723 (remote_bfd_iovec_pread, remote_file_get): Update.
12724 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12725
12726 2014-02-19 Tom Tromey <tromey@redhat.com>
12727
12728 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12729 * target.c (target_fileio_pwrite): Add argument.
12730 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12731 (remote_file_put): Update.
12732 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12733
12734 2014-02-19 Tom Tromey <tromey@redhat.com>
12735
12736 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12737 * target.c (target_fileio_open): Add argument.
12738 * remote.c (remote_hostio_open): Add 'self' argument.
12739 (remote_bfd_iovec_open): Add 'self' argument.
12740 (remote_file_put): Add 'self' argument.
12741 (remote_file_get): Add 'self' argument.
12742 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12743
12744 2014-02-19 Tom Tromey <tromey@redhat.com>
12745
12746 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12747 Add argument.
12748 (target_can_run_breakpoint_commands): Add argument.
12749 * target.c (update_current_target): Update.
12750 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12751 argument.
12752 (remote_insert_breakpoint): Add 'self' argument.
12753 (remote_insert_hw_breakpoint): Add 'self' argument.
12754 (remote_can_run_breakpoint_commands): Add 'self' argument.
12755
12756 2014-02-19 Tom Tromey <tromey@redhat.com>
12757
12758 * target.h (struct target_ops)
12759 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12760 (target_supports_evaluation_of_breakpoint_conditions): Add
12761 argument.
12762 * target.c (update_current_target): Update.
12763 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12764 argument.
12765 (remote_insert_breakpoint): Add 'self' argument.
12766 (remote_insert_hw_breakpoint): Add 'self' argument.
12767 (remote_supports_cond_breakpoints): Add 'self' argument.
12768
12769 2014-02-19 Tom Tromey <tromey@redhat.com>
12770
12771 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12772 argument.
12773 (target_supports_string_tracing): Add argument.
12774 * target.c (update_current_target): Update.
12775 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12776
12777 2014-02-19 Tom Tromey <tromey@redhat.com>
12778
12779 * target.h (struct target_ops)
12780 <to_supports_disable_randomization>: Add argument.
12781 * target.c (find_default_supports_disable_randomization): Add
12782 argument.
12783 (target_supports_disable_randomization): Add argument.
12784 (find_default_supports_disable_randomization): Add 'self'
12785 argument.
12786 * remote.c (extended_remote_supports_disable_randomization): Add
12787 'self' argument.
12788 (remote_supports_disable_randomization): Add 'self' argument.
12789 (extended_remote_create_inferior): Update.
12790 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12791 'self' argument.
12792
12793 2014-02-19 Tom Tromey <tromey@redhat.com>
12794
12795 * target.h (struct target_ops)
12796 <to_supports_enable_disable_tracepoint>: Add argument.
12797 (target_supports_enable_disable_tracepoint): Add argument.
12798 * target.c (update_current_target): Update.
12799 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12800 argument.
12801
12802 2014-02-19 Tom Tromey <tromey@redhat.com>
12803
12804 * target.h (struct target_ops) <to_supports_multi_process>: Add
12805 argument.
12806 (target_supports_multi_process): Add argument.
12807 * target.c (update_current_target): Update.
12808 * remote.c (remote_supports_multi_process): Add 'self' argument.
12809 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12810 argument.
12811 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12812 argument.
12813
12814 2014-02-19 Tom Tromey <tromey@redhat.com>
12815
12816 * target.h (struct target_ops) <to_execution_direction>: Add
12817 argument.
12818 (target_execution_direction): Add argument.
12819 * target.c (default_execution_direction): Add 'self' argument.
12820 * record-full.c (record_full_execution_direction): Add 'self'
12821 argument.
12822
12823 2014-02-19 Tom Tromey <tromey@redhat.com>
12824
12825 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12826 argument.
12827 (target_can_execute_reverse): Add argument.
12828 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12829 * record-full.c (record_full_can_execute_reverse): Add 'self'
12830 argument.
12831 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12832 argument.
12833
12834 2014-02-19 Tom Tromey <tromey@redhat.com>
12835
12836 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12837 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12838 argument.
12839 (target_get_ada_task_ptid): Add argument.
12840 * target.c (update_current_target): Update.
12841 (default_get_ada_task_ptid): Add 'self' argument.
12842 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12843 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12844 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12845 argument.
12846 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12847 argument.
12848 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12849 argument.
12850 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12851 argument.
12852 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12853 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12854 argument.
12855
12856 2014-02-19 Tom Tromey <tromey@redhat.com>
12857
12858 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12859 (target_goto_bookmark): Add argument.
12860 * target.c (dummy_goto_bookmark): Add 'self' argument.
12861 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12862
12863 2014-02-19 Tom Tromey <tromey@redhat.com>
12864
12865 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12866 (target_get_bookmark): Add argument.
12867 * target.c (dummy_get_bookmark): Add 'self' argument.
12868 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12869
12870 2014-02-19 Tom Tromey <tromey@redhat.com>
12871
12872 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12873 argument.
12874 (target_make_corefile_notes): Add argument.
12875 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12876 * procfs.c (procfs_make_note_section): Add 'self' argument.
12877 (procfs_make_note_section): Add 'self' argument.
12878 (procfs_make_note_section): Add 'self' argument.
12879 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12880 argument.
12881 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12882 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12883 * exec.c (exec_make_note_section): Add 'self' argument.
12884 (exec_make_note_section): Add 'self' argument.
12885
12886 2014-02-19 Tom Tromey <tromey@redhat.com>
12887
12888 * target.h (struct target_ops) <to_find_memory_regions>: Add
12889 argument.
12890 (target_find_memory_regions): Add argument.
12891 * target.c (dummy_find_memory_regions): Add 'self' argument.
12892 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12893 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12894 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12895 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12896 * exec. (exec_do_find_memory_regions): New global.
12897 (exec_set_find_memory_regions): Rewrite.
12898 (exec_find_memory_regions): New function.
12899 (init_exec_ops): Use exec_find_memory_regions.
12900
12901 2014-02-19 Tom Tromey <tromey@redhat.com>
12902
12903 * target.h (struct target_ops) <to_supports_non_stop>: Add
12904 argument.
12905 * target.c (find_default_supports_non_stop): Add argument.
12906 (target_supports_non_stop): Add argument.
12907 (find_default_supports_non_stop): Add 'self' argument.
12908 * remote.c (remote_supports_non_stop): Add 'self' argument.
12909 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12910
12911 2014-02-19 Tom Tromey <tromey@redhat.com>
12912
12913 * target.h (struct target_ops) <to_log_command>: Add argument.
12914 (target_log_command): Add argument.
12915 * serial.h (serial_log_command): Add 'self' argument.
12916 * serial.c (serial_log_command): Add 'self' argument.
12917
12918 2014-02-19 Tom Tromey <tromey@redhat.com>
12919
12920 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12921 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12922 argument.
12923 (target_pid_to_exec_file): Add argument.
12924 * target.c (debug_to_pid_to_exec_file): Add argument.
12925 (update_current_target): Update.
12926 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12927 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12928 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12929 (linux_handle_extended_wait): Update.
12930 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12931 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12932 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12933 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12934
12935 2014-02-19 Tom Tromey <tromey@redhat.com>
12936
12937 * target.h (struct target_ops) <to_rcmd>: Add argument.
12938 (target_rcmd): Add argument.
12939 * target.c (debug_to_rcmd): Add argument.
12940 (update_current_target, do_monitor_command): Update.
12941 * remote.c (remote_rcmd): Add 'self' argument.
12942 * monitor.c (monitor_rcmd): Add 'self' argument.
12943
12944 2014-02-19 Tom Tromey <tromey@redhat.com>
12945
12946 * windows-nat.c (windows_stop): Add 'self' argument.
12947 * target.h (struct target_ops) <to_stop>: Add argument.
12948 * target.c (target_stop): Add argument.
12949 (debug_to_stop): Add argument.
12950 (update_current_target): Update.
12951 * remote.c (remote_stop): Add 'self' argument.
12952 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12953 (gdbsim_cntrl_c): Update.
12954 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12955 * procfs.c (procfs_stop): Add 'self' argument.
12956 * nto-procfs.c (procfs_stop): Add 'self' argument.
12957 * monitor.c (monitor_stop): Add 'self' argument.
12958 (monitor_open): Update.
12959 * linux-nat.c (linux_nat_stop): Add argument.
12960 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12961 * gnu-nat.c (gnu_stop): Add 'self' argument.
12962 * darwin-nat.c (darwin_stop): Add 'self' argument.
12963
12964 2014-02-19 Tom Tromey <tromey@redhat.com>
12965
12966 * target.h (struct target_ops) <to_thread_name>: Add argument.
12967 * target.c (target_thread_name): Add argument.
12968 (update_current_target): Update.
12969 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12970
12971 2014-02-19 Tom Tromey <tromey@redhat.com>
12972
12973 * target.h (struct target_ops) <to_extra_thread_info>: Add
12974 argument.
12975 (target_extra_thread_info): Add argument.
12976 * target.c (update_current_target): Update.
12977 * remote.c (remote_threads_extra_info): Add 'self' argument.
12978 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12979 argument.
12980 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12981 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12982 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12983 argument.
12984 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12985 argument.
12986 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12987 argument.
12988 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12989 argument.
12990
12991 2014-02-19 Tom Tromey <tromey@redhat.com>
12992
12993 * target.h (struct target_ops) <to_program_signals>: Add argument.
12994 * target.c (target_program_signals): Add argument.
12995 * remote.c (remote_program_signals): Add 'self' argument.
12996
12997 2014-02-19 Tom Tromey <tromey@redhat.com>
12998
12999 * target.h (struct target_ops) <to_pass_signals>: Add argument.
13000 * target.c (target_pass_signals): Add argument.
13001 * remote.c (remote_pass_signals): Add 'self' argument.
13002 (remote_start_remote): Update.
13003 * procfs.c (procfs_pass_signals): Add 'self' argument.
13004 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13005 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13006 (linux_nat_create_inferior, linux_nat_attach): Update.
13007
13008 2014-02-19 Tom Tromey <tromey@redhat.com>
13009
13010 * windows-nat.c (windows_can_run): Add 'self' argument.
13011 * target.h (struct target_ops) <to_can_run>: Add argument.
13012 (target_can_run): Add argument.
13013 * target.c (debug_to_can_run): Add argument.
13014 (update_current_target): Update.
13015 * nto-procfs.c (procfs_can_run): Add 'self' argument.
13016 * inf-child.c (inf_child_can_run): Add 'self' argument.
13017 * go32-nat.c (go32_can_run): Add 'self' argument.
13018
13019 2014-02-19 Tom Tromey <tromey@redhat.com>
13020
13021 * target.h (struct target_ops) <to_has_exited>: Add argument.
13022 (target_has_exited): Add argument.
13023 * target.c (debug_to_has_exited): Add argument.
13024 (update_current_target): Update.
13025
13026 2014-02-19 Tom Tromey <tromey@redhat.com>
13027
13028 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13029 argument.
13030 (target_set_syscall_catchpoint): Add argument.
13031 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13032 argument.
13033 * target.c (update_current_target): Update.
13034
13035 2014-02-19 Tom Tromey <tromey@redhat.com>
13036
13037 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13038 argument.
13039 (target_remove_exec_catchpoint): Add argument.
13040 * target.c (debug_to_remove_exec_catchpoint): Add argument.
13041 (update_current_target): Update.
13042 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13043 argument.
13044
13045 2014-02-19 Tom Tromey <tromey@redhat.com>
13046
13047 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13048 argument.
13049 (target_insert_exec_catchpoint): Add argument.
13050 * target.c (debug_to_insert_exec_catchpoint): Add argument.
13051 (update_current_target): Update.
13052 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13053 argument.
13054
13055 2014-02-19 Tom Tromey <tromey@redhat.com>
13056
13057 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13058 argument.
13059 (target_remove_vfork_catchpoint): Add argument.
13060 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13061 (update_current_target): Update.
13062 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13063 argument.
13064
13065 2014-02-19 Tom Tromey <tromey@redhat.com>
13066
13067 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13068 argument.
13069 (target_insert_vfork_catchpoint): Add argument.
13070 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13071 (update_current_target): Update.
13072 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13073 argument.
13074
13075 2014-02-19 Tom Tromey <tromey@redhat.com>
13076
13077 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13078 argument.
13079 (target_remove_fork_catchpoint): Add argument.
13080 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13081 (update_current_target): Update.
13082 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13083 argument.
13084
13085 2014-02-19 Tom Tromey <tromey@redhat.com>
13086
13087 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13088 argument.
13089 (target_insert_fork_catchpoint): Add argument.
13090 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13091 (update_current_target): Update.
13092 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13093 argument.
13094
13095 2014-02-19 Tom Tromey <tromey@redhat.com>
13096
13097 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13098 argument.
13099 (target_post_startup_inferior): Add argument.
13100 * target.c (debug_to_post_startup_inferior): Add argument.
13101 (update_current_target): Update.
13102 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13103 argument.
13104 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13105 argument.
13106 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13107 argument.
13108 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13109 argument.
13110 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13111 'self' argument.
13112 (super_post_startup_inferior): Likewise.
13113 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13114 'self' argument.
13115 (super_post_startup_inferior): Likewise.
13116 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13117 Add 'self' argument.
13118 (super_post_startup_inferior): Likewise.
13119
13120 2014-02-19 Tom Tromey <tromey@redhat.com>
13121
13122 * target.h (struct target_ops) <to_load>: Add argument.
13123 * target.c (target_load): Add argument.
13124 (debug_to_load): Add argument.
13125 (update_current_target): Update.
13126 * remote.c (remote_load): Add 'self' argument.
13127 * remote-sim.c (gdbsim_load): Add 'self' argument.
13128 * remote-mips.c (mips_load): Add 'self' argument.
13129 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13130 * monitor.c (monitor_load): Add 'self' argument.
13131 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13132
13133 2014-02-19 Tom Tromey <tromey@redhat.com>
13134
13135 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13136 (target_terminal_info): Add argument.
13137 * target.c (debug_to_terminal_info): Add argument.
13138 (default_terminal_info): Likewise.
13139 * inflow.c (child_terminal_info): Add 'self' argument.
13140 * inferior.h (child_terminal_info): Add 'self' argument.
13141 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13142
13143 2014-02-19 Tom Tromey <tromey@redhat.com>
13144
13145 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13146 argument.
13147 (target_terminal_save_ours): Add argument.
13148 * target.c (debug_to_terminal_save_ours): Add argument.
13149 (update_current_target): Update.
13150 * inflow.c (terminal_save_ours): Add 'self' argument.
13151 * inferior.h (terminal_save_ours): Add 'self' argument.
13152
13153 2014-02-19 Tom Tromey <tromey@redhat.com>
13154
13155 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13156 (target_terminal_ours): Add argument.
13157 * target.c (debug_to_terminal_ours): Add argument.
13158 (update_current_target): Update.
13159 * remote.c (remote_terminal_ours): Add 'self' argument.
13160 (remote_close): Update.
13161 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13162 * inflow.c (terminal_ours): Add 'self' argument.
13163 * inferior.h (terminal_ours): Add 'self' argument.
13164 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13165
13166 2014-02-19 Pedro Alves <palves@redhat.com>
13167 Tom Tromey <tromey@redhat.com>
13168
13169 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13170 argument.
13171 (target_terminal_ours_for_output): Add argument.
13172 * target.c (debug_to_terminal_ours_for_output): Add argument.
13173 (update_current_target): Update.
13174 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13175 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13176 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13177
13178 2014-02-19 Tom Tromey <tromey@redhat.com>
13179
13180 * target.h (struct target_ops) <to_terminal_inferior>: Add
13181 argument.
13182 * target.c (target_terminal_inferior): Add argument.
13183 (update_current_target): Update.
13184 * remote.c (remote_terminal_inferior): Add 'self' argument.
13185 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13186 * inflow.c (terminal_inferior): Add 'self' argument.
13187 * inferior.h (terminal_inferior): Add 'self' argument.
13188 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13189 (go32_terminal_inferior): Add 'self' argument.
13190
13191 2014-02-19 Tom Tromey <tromey@redhat.com>
13192
13193 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13194 (target_terminal_init): Add argument.
13195 * target.c (debug_to_terminal_init): Add argument.
13196 (update_current_target): Update.
13197 * inflow.c (terminal_init_inferior): Add 'self' argument.
13198 * inferior.h (terminal_init_inferior): Add 'self' argument.
13199 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13200 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13201
13202 2014-02-19 Tom Tromey <tromey@redhat.com>
13203
13204 * target.h (struct target_ops)
13205 <to_can_accel_watchpoint_condition>: Add argument.
13206 (target_can_accel_watchpoint_condition): Add argument.
13207 * target.c (debug_to_can_accel_watchpoint_condition): Add
13208 argument.
13209 (update_current_target): Update.
13210 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13211 'self' argument.
13212
13213 2014-02-19 Tom Tromey <tromey@redhat.com>
13214
13215 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13216 Add argument.
13217 (target_region_ok_for_hw_watchpoint): Add argument.
13218 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13219 (default_region_ok_for_hw_watchpoint): Add argument.
13220 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13221 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13222 argument.
13223 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13224 argument.
13225 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13226 argument.
13227 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13228 'self' argument.
13229 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13230 'self' argument.
13231 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13232 'self' argument.
13233 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13234 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13235 'self' argument.
13236 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13237 Add 'self' argument.
13238
13239 2014-02-19 Tom Tromey <tromey@redhat.com>
13240
13241 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13242 argument.
13243 (target_insert_watchpoint): Add argument.
13244 * target.c (debug_to_insert_watchpoint): Add argument.
13245 (update_current_target): Update.
13246 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13247 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13248 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13249 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13250 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13251 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13252 argument.
13253 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13254 (procfs_insert_hw_watchpoint): Add 'self' argument.
13255 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13256 argument.
13257 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13258 argument.
13259 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13260 argument.
13261 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13262 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13263 argument.
13264 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13265 'self' argument.
13266
13267 2014-02-19 Tom Tromey <tromey@redhat.com>
13268
13269 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13270 argument.
13271 (target_remove_watchpoint): Add argument.
13272 * target.c (debug_to_remove_watchpoint): Add argument.
13273 (update_current_target): Update.
13274 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13275 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13276 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13277 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13278 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13279 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13280 argument.
13281 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13282 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13283 argument.
13284 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13285 argument.
13286 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13287 argument.
13288 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13289 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13290 argument.
13291 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13292 'self' argument.
13293
13294 2014-02-19 Tom Tromey <tromey@redhat.com>
13295
13296 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13297 argument.
13298 (target_remove_hw_breakpoint): Add argument.
13299 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13300 (update_current_target): Update.
13301 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13302 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13303 argument.
13304 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13305 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13306 argument.
13307 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13308 'self' argument.
13309
13310 2014-02-19 Tom Tromey <tromey@redhat.com>
13311
13312 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13313 argument.
13314 (target_insert_hw_breakpoint): Add argument.
13315 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13316 (update_current_target): Update.
13317 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13318 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13319 argument.
13320 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13321 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13322 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13323 argument.
13324 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13325 'self' argument.
13326
13327 2014-02-19 Tom Tromey <tromey@redhat.com>
13328
13329 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13330 argument.
13331 (target_can_use_hardware_watchpoint): Add argument.
13332 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13333 (update_current_target): Update.
13334 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13335 argument.
13336 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13337 argument.
13338 * remote.c (remote_check_watch_resources): Add 'self' argument.
13339 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13340 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13341 argument.
13342 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13343 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13344 argument.
13345 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13346 argument.
13347 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13348 argument.
13349 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13350 argument.
13351 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13352 argument.
13353 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13354 argument.
13355 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13356 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13357 argument.
13358 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13359 'self' argument.
13360
13361 2014-02-19 Tom Tromey <tromey@redhat.com>
13362
13363 * target.h (struct target_ops) <to_post_attach>: Add argument.
13364 (target_post_attach): Add argument.
13365 * target.c (debug_to_post_attach): Add argument.
13366 (update_current_target): Update.
13367 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13368 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13369 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13370 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13371 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13372
13373 2014-02-19 Tom Tromey <tromey@redhat.com>
13374
13375 * windows-nat.c (windows_close): Add 'self' argument.
13376 * tracepoint.c (tfile_close): Add 'self' argument.
13377 * target.h (struct target_ops) <to_close>: Add argument.
13378 * target.c (target_close): Add argument.
13379 (update_current_target): Update.
13380 * remote.c (remote_close): Add 'self' argument.
13381 * remote-sim.c (gdbsim_close): Add 'self' argument.
13382 * remote-mips.c (mips_close): Add 'self' argument.
13383 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13384 * record-full.c (record_full_close): Add 'self' argument.
13385 * record-btrace.c (record_btrace_close): Add 'self' argument.
13386 * monitor.h (monitor_close): Add 'self' argument.
13387 * monitor.c (monitor_close): Add 'self' argument.
13388 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13389 * linux-nat.c (linux_nat_close): Add argument.
13390 * go32-nat.c (go32_close): Add 'self' argument.
13391 * exec.c (exec_close_1): Add 'self' argument.
13392 * ctf.c (ctf_close): Add 'self' argument.
13393 * corelow.c (core_close): Add 'self' argument.
13394 (core_close_cleanup): Update.
13395 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13396 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13397
13398 2014-02-19 Tom Tromey <tromey@redhat.com>
13399
13400 * remote.c (remote_load): New function.
13401 (init_remote_ops): Use it.
13402
13403 2014-02-19 Tom Tromey <tromey@redhat.com>
13404
13405 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13406 argument.
13407 * common/linux-btrace.h (linux_supports_btrace): Update.
13408 * remote.c (remote_supports_btrace): Add "self" argument.
13409 * target-delegates.c: Rebuild.
13410 * target.c (target_supports_btrace): Remove.
13411 * target.h (struct target_ops) <to_supports_btrace>: Add
13412 target_ops argument.
13413 (target_supports_btrace): New define.
13414
13415 2014-02-19 Tom Tromey <tromey@redhat.com>
13416
13417 * record-full.c (record_full_beneath_to_resume_ops)
13418 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13419 (record_full_beneath_to_wait)
13420 (record_full_beneath_to_store_registers_ops)
13421 (record_full_beneath_to_store_registers)
13422 (record_full_beneath_to_xfer_partial_ops)
13423 (record_full_beneath_to_xfer_partial)
13424 (record_full_beneath_to_insert_breakpoint_ops)
13425 (record_full_beneath_to_insert_breakpoint)
13426 (record_full_beneath_to_remove_breakpoint_ops)
13427 (record_full_beneath_to_remove_breakpoint)
13428 (record_full_beneath_to_stopped_by_watchpoint)
13429 (record_full_beneath_to_stopped_data_address)
13430 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13431 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13432 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13433 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13434 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13435 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13436 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13437 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13438 (record_full_resume, record_full_wait_1)
13439 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13440 (record_full_store_registers, record_full_xfer_partial)
13441 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13442 (record_full_async, record_full_core_xfer_partial): Use target
13443 delegation.
13444 * target-delegates.c: Rebuild.
13445 * target.c (current_xfer_partial): Remove.
13446 (update_current_target): Do not INHERIT or de_fault
13447 to_insert_breakpoint, to_remove_breakpoint,
13448 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13449 to_is_async_p, to_async. Do not set to_xfer_partial field.
13450 (default_xfer_partial): Simplify.
13451 (current_xfer_partial): Remove.
13452 (target_wait, target_resume): Simplify.
13453 (find_default_can_async_p, find_default_is_async_p): Update.
13454 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13455 to_xfer_partial, to_stopped_by_watchpoint,
13456 to_stopped_data_address.
13457 (target_store_registers): Simplify.
13458 (forward_target_remove_breakpoint)
13459 (forward_target_insert_breakpoint): Remove.
13460 (target_remove_breakpoint, target_insert_breakpoint)
13461 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13462 * target.h (struct target_ops) <to_resume, to_wait,
13463 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13464 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13465 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13466 markup.
13467 (forward_target_remove_breakpoint)
13468 (forward_target_insert_breakpoint): Remove.
13469 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13470 directly.
13471 (record_btrace_insert_breakpoint): Delegate directly.
13472
13473 2014-02-19 Tom Tromey <tromey@redhat.com>
13474
13475 PR build/7701:
13476 * target-delegates.c: New file.
13477 * target.c: Include target-delegates.c.
13478 (init_dummy_target): Call install_dummy_methods.
13479 (complete_target_initialization): Call install_delegators.
13480 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13481 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13482 * make-target-delegates: New file.
13483
13484 2014-02-19 Tom Tromey <tromey@redhat.com>
13485
13486 * record.c (find_record_target): Use find_target_at.
13487 * target.c (find_target_at): New function.
13488 * target.h (find_target_at): Declare.
13489
13490 2014-02-19 Tom Tromey <tromey@redhat.com>
13491
13492 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13493 Add 'ops' argument.
13494 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13495 'ops' argument.
13496 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13497 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13498 'ops' argument.
13499 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13500 argument.
13501 * linux-nat.c (save_sigtrap): Update.
13502 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13503 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13504 (linux_nat_close): Update.
13505 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13506 argument.
13507 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13508 argument.
13509 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13510 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13511 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13512 (tmp_to_async): Add 'ops' argument.
13513 (record_full_stopped_by_watchpoint, record_full_async)
13514 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13515 argument.
13516 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13517 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13518 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13519 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13520 (remote_is_async_p, remote_async): Add 'ops' argument.
13521 (remote_stopped_data_address): Update.
13522 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13523 * target.c (update_current_target)
13524 (find_default_can_async_p, find_default_is_async_p): Update.
13525 (init_dummy_target): Update.
13526 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13527 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13528 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13529 (target_can_async_p, target_is_async_p, target_async)
13530 (target_stopped_by_watchpoint): Update.
13531
13532 2014-02-19 Yao Qi <yao@codesourcery.com>
13533
13534 PR gdb/16220
13535 * gdbarch.sh: Remove startup_gdbarch.
13536 * gdbarch.c: Regenerated.
13537 * gdbarch.h: Likewise.
13538
13539 2014-02-17 Kevin Buettner <kevinb@redhat.com>
13540
13541 * rl78-tdep.c (rl78_g10_register_name): New function.
13542 (rl78_return_value): Add g10 support.
13543 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13544 g10.
13545
13546 2014-02-17 Doug Evans <xdje42@gmail.com>
13547
13548 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13549 (SUBDIR_GUILE_SRCS): Ditto.
13550 (scm-gsmob.o): Ditto.
13551
13552 2014-02-17 Yao Qi <yao@codesourcery.com>
13553
13554 * gnu-nat.c (ILL_RPC): Declare defined function.
13555
13556 2014-02-17 Yao Qi <yao@codesourcery.com>
13557
13558 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13559 mach_msg_type_number_t.
13560 (gnu_write_inferior): Likewise.
13561
13562 2014-02-17 Yao Qi <yao@codesourcery.com>
13563
13564 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13565 in format string.
13566 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13567 (inf_validate_procs, inf_signal): Likewise.
13568 (S_exception_raise_request): Likewise.
13569 (do_mach_notify_dead_name): Likewise.
13570 (steal_exc_port): Likewise.
13571 (gnu_read_inferior): Change 'copy_count''s type to
13572 mach_msg_type_number_t.
13573 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13574 format string.
13575
13576 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13577
13578 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13579 flag. Adjust all users; in particular...
13580 (gnu_wait): ..., don't decrement its value in here...
13581 (gnu_create_inferior): ..., and instead set the flag in here,
13582 around the startup_inferior call, and call that one with
13583 START_INFERIOR_TRAPS_EXPECTED.
13584
13585 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13586 (ILL_RPC): ... new macro.
13587 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13588 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13589 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13590 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13591 functions with ILL_RPC macro.
13592 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13593 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13594 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13595 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13596 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13597 (S_proc_getlogin_reply, S_proc_getsid_reply)
13598 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13599 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13600 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13601 (S_proc_getnports_reply, S_proc_is_important_reply)
13602 (S_proc_get_code_reply): New stub functions, generated with
13603 ILL_RPC macro.
13604
13605 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13606 collected the type check structures.
13607
13608 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13609
13610 2014-02-14 Doug Evans <dje@google.com>
13611
13612 * target.c (target_write_partial): Fix result type.
13613
13614 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13615
13616 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13617 the proper offsets to access fpregset_t.
13618
13619 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13620
13621 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13622 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13623 * h8300-tdep.c (setmachinelist): Remove global.
13624 * hppa-tdep.c (hppa_sigtramp): Remove global.
13625 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13626 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13627 * ravenscar-thread.c (update_target_observer): Remove global.
13628 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13629
13630 2014-02-12 Tom Tromey <tromey@redhat.com>
13631
13632 * common/rsp-low.c: Update comments.
13633 * common/rsp-low.h: Update comments.
13634
13635 2014-02-12 Tom Tromey <tromey@redhat.com>
13636
13637 * common/rsp-low.c (convert_ascii_to_int): Remove.
13638 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13639
13640 2014-02-12 Tom Tromey <tromey@redhat.com>
13641
13642 * common/rsp-low.h (unhexify): Don't declare.
13643 * common/rsp-low.c (unhexify): Remove.
13644
13645 2014-02-12 Tom Tromey <tromey@redhat.com>
13646
13647 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13648 * common/rsp-low.c (convert_int_to_ascii): Remove.
13649
13650 2014-02-12 Tom Tromey <tromey@redhat.com>
13651
13652 * common/rsp-low.h (hexify): Don't declare.
13653 * common/rsp-low.c (hexify): Remove.
13654
13655 2014-02-12 Tom Tromey <tromey@redhat.com>
13656
13657 * common/rsp-low.c (hexify): Never take strlen of argument.
13658
13659 2014-02-12 Tom Tromey <tromey@redhat.com>
13660
13661 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13662 * remote.c (extended_remote_run, remote_rcmd)
13663 (remote_download_trace_state_variable, remote_save_trace_data)
13664 (remote_set_trace_notes): Update.
13665 * tracepoint.c (encode_source_string, tfile_write_status)
13666 (tfile_write_uploaded_tsv): Update.
13667
13668 2014-02-12 Tom Tromey <tromey@redhat.com>
13669
13670 * tracepoint.c: Include rsp-low.h.
13671 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13672 * remote.c: Include rsp-low.h.
13673 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13674 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13675 (remote_unescape_input): Move to common/rsp-low.c.
13676 * common/rsp-low.h: New file.
13677 * common/rsp-low.c: New file.
13678 * Makefile.in (SFILES): Add common/rsp-low.c.
13679 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13680 (COMMON_OBS): Add rsp-low.o.
13681 (rsp-low.o): New target.
13682
13683 2014-02-12 Tom Tromey <tromey@redhat.com>
13684
13685 * utils.h: Include print-utils.h.
13686 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13687 (int_string, core_addr_to_string, core_addr_to_string_nz)
13688 (hex_string, hex_string_custom): Don't declare.
13689 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13690 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13691 (hex_string_custom, int_string, core_addr_to_string)
13692 (core_addr_to_string_nz, host_address_to_string): Move to
13693 common/print-utils.c.
13694 * common/print-utils.h: New file.
13695 * common/print-utils.c: New file
13696 * Makefile.in (SFILES): Add common/print-utils.c.
13697 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13698 (COMMON_OBS): Add print-utils.o.
13699 (print-utils.o): New target.
13700
13701 2014-02-12 Tom Tromey <tromey@redhat.com>
13702
13703 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13704
13705 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13706
13707 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13708
13709 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13710
13711 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13712 if a PT_IO ptrace request returns sucessfully but indicates that 0
13713 bytes were transferred.
13714
13715 2014-02-12 Pedro Alves <palves@redhat.com>
13716 Kevin Buettner <kevinb@redhat.com>
13717
13718 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13719 TYPE_INSTANCE_FLAG_CODE_SPACE.
13720
13721 2014-02-12 Pedro Alves <palves@redhat.com>
13722
13723 * h8300-tdep.c (pseudo_from_raw_register)
13724 (raw_from_pseudo_register): New functions.
13725 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13726 them.
13727
13728 2014-02-12 Pedro Alves <palves@redhat.com>
13729
13730 * h8300-tdep.c (h8300_register_sim_regno): New function.
13731 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13732 gdbarch_register_sim_regno hook.
13733
13734 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13735
13736 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13737
13738 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13739
13740 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13741
13742 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13743
13744 * obsd-tdep.h (obsd_init_abi): New prototype.
13745 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13746 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13747 (obsd_init_abi): New functions.
13748 * i386obsd-tdep.c: Include "obsd-tdep.h".
13749 (i386obsd_init_abi): Call obsd_init_abi.
13750 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13751 (amd64obsd_init_abi): Call obsd_init_abi.
13752 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13753 obsd-tdep.c to gdb_target_obs.
13754
13755 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13756
13757 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13758 double float arguments to 16-byte in the argument slots.
13759
13760 2014-02-11 Doug Evans <xdje42@gmail.com>
13761
13762 * configure.ac: Don't crash if pkg-config is not found and guile
13763 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13764 in guile checks.
13765 * configure: Regenerate.
13766
13767 2014-02-11 Yao Qi <yao@codesourcery.com>
13768
13769 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13770 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13771 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13772 * gnu-nat.c (gnu_xfer_memory): Likewise.
13773 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13774 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13775 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13776 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13777
13778 2014-02-11 Yao Qi <yao@codesourcery.com>
13779
13780 * target.h (enum target_xfer_error): Rename to ...
13781 (enum target_xfer_status): ... it. New. All users updated.
13782 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13783 New.
13784 (TARGET_XFER_STATUS_ERROR_P): New macro.
13785 (target_xfer_error_to_string): Remove declaration.
13786 (target_xfer_status_to_string): Declare.
13787 (target_xfer_partial_ftype): Adjust it.
13788 (struct target_ops) <to_xfer_partial>: Return
13789 target_xfer_status. Add argument xfered_len. Update
13790 comments.
13791 * target.c (target_xfer_error_to_string): Rename to ...
13792 (target_xfer_status_to_string): ... it. New. All callers
13793 updated.
13794 (target_read_live_memory): Likewise. Call target_xfer_partial
13795 instead of target_read.
13796 (memory_xfer_live_readonly_partial): Return
13797 target_xfer_status. Add argument xfered_len.
13798 (raw_memory_xfer_partial): Likewise.
13799 (memory_xfer_partial_1): Likewise.
13800 (memory_xfer_partial): Likewise.
13801 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13802 properly. Update debug message.
13803 (default_xfer_partial, current_xfer_partial): Likewise.
13804 (target_write_partial): Likewise.
13805 (target_read_partial): Likewise. All callers updated.
13806 (read_whatever_is_readable): Likewise.
13807 (target_write_with_progress): Likewise.
13808 (target_read_alloc_1): Likewise.
13809
13810 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13811 * auxv.c (procfs_xfer_auxv): Likewise.
13812 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13813 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13814 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13815 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13816 * corefile.c (read_memory): Adjust.
13817 * corelow.c (core_xfer_partial): Likewise.
13818 * ctf.c (ctf_xfer_partial): Likewise.
13819 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13820 updated.
13821 (darwin_xfer_partial): Likewise.
13822 * exec.c (section_table_xfer_memory_partial): Likewise. All
13823 callers updated.
13824 (exec_xfer_partial): Likewise.
13825 * exec.h (section_table_xfer_memory_partial): Update
13826 declaration.
13827 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13828 negative.
13829 (gnu_xfer_partial): Likewise.
13830 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13831 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13832 (ia64_hpux_xfer_solib_got): Likewise.
13833 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13834 type of 'partial_len' to ULONGEST.
13835 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13836 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13837 (linux_nat_xfer_partial): Likewise.
13838 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13839 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13840 * monitor.c (monitor_xfer_memory): Likewise.
13841 (monitor_xfer_partial): Likewise.
13842 * procfs.c (procfs_xfer_partial): Likewise.
13843 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13844 * record-full.c (record_full_xfer_partial): Likewise.
13845 (record_full_core_xfer_partial): Likewise.
13846 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13847 (gdbsim_xfer_partial): Likewise.
13848 * remote.c (remote_write_bytes_aux): Likewise. All callers
13849 updated.
13850 (remote_write_bytes, remote_read_bytes): Likewise. All
13851 callers updated.
13852 (remote_flash_erase): Likewise. All callers updated.
13853 (remote_write_qxfer): Likewise. All callers updated.
13854 (remote_read_qxfer): Likewise. All callers updated.
13855 (remote_xfer_partial): Likewise.
13856 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13857 (rs6000_xfer_shared_libraries): Likewise.
13858 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13859 (sol_thread_xfer_partial): Likewise.
13860 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13861 (sparc_xfer_partial): Likewise.
13862 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13863 updated.
13864 (spu_xfer_partial): Likewise.
13865 * spu-multiarch.c (spu_xfer_partial): Likewise.
13866 * tracepoint.c (tfile_xfer_partial): Likewise.
13867 * windows-nat.c (windows_xfer_memory): Likewise.
13868 (windows_xfer_shared_libraries): Likewise.
13869 (windows_xfer_partial): Likewise.
13870 * valprint.c: Replace 'target_xfer_error' with
13871 'target_xfer_status' in comments.
13872
13873 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13874
13875 Checked in by Joel Brobecker <brobecker@adacore.com>.
13876 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13877
13878 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13879
13880 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13881 function parameters.
13882
13883 2014-02-10 Will Newton <will.newton@linaro.org>
13884
13885 * elfread.c (elf_rel_plt_read): Look for a .got section if
13886 looking up .got.plt fails.
13887 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13888 on address passed to elf_gnu_ifunc_record_cache.
13889 (elf_gnu_ifunc_resolve_addr): Likewise.
13890 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13891
13892 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13893
13894 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13895 (X_RETTURN): New macro.
13896 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13897
13898 * sparc64-tdep.c (sparc64_init_abi): Hook
13899 sparc_in_function_epilogue_p.
13900
13901 2014-02-10 Gary Benson <gbenson@redhat.com>
13902
13903 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13904 Rename name_matcher to symbol_matcher.
13905
13906 2014-02-10 Gary Benson <gbenson@redhat.com>
13907
13908 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13909 Use expand_symtabs_file_matcher_ftype and
13910 expand_symtabs_symbol_matcher_ftype.
13911
13912 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13913
13914 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13915 (struct ada_symbol_cache): New.
13916 (ada_free_symbol_cache): Forward declare.
13917 (struct ada_pspace_data): New.
13918 (ada_pspace_data_handle): New static global.
13919 (get_ada_pspace_data, ada_pspace_data_cleanup)
13920 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13921 (cache_space, cache): Delete, now folded inside struct
13922 ada_pspace_data.
13923 (ada_get_symbol_cache): New function.
13924 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13925 implementation.
13926 (_initialize_ada_language): Remove initialization of cache_space.
13927 Move call to observer_attach_inferior_exit up, grouping it
13928 with the other observer registrations inside this function.
13929 Rename command to be more general. Add call to
13930 register_program_space_data_with_cleanup.
13931
13932 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13933
13934 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13935 ada_new_objfile_observer.
13936 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13937 (_initialize_tasks): Update uses of ada_new_objfile_observer
13938 and ada_tasks_normal_stop_observer.
13939
13940 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13941
13942 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13943 returned by the 'Length attribute to integer.
13944
13945 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13946
13947 * ada-lang.c (_initialize_ada_language): Initialize
13948 cache_space obstack.
13949
13950 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13951
13952 * ada-lang.c (HASH_SIZE): New macro.
13953 (struct cache_entry): New type.
13954 (cache_space, cache): New static globals.
13955 (ada_clear_symbol_cache, find_entry): New functions.
13956 (lookup_cached_symbol, cache_symbol): Implement.
13957 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13958 (_initialize_ada_language): Attach ada_new_objfile_observer
13959 and ada_free_objfile_observer.
13960
13961 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13962
13963 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13964 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13965 struct block * parameter.
13966 (ada_lookup_symbol_list_worker): Constify local variable "block".
13967 Remove cast which is no longer necessary.
13968
13969 2014-02-10 Doug Evans <xdje42@gmail.com>
13970
13971 Add Guile as an extension language.
13972 * NEWS: Mention Guile scripting.
13973 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13974 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13975 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13976 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13977 (CLIBS): Add GUILE_LIBS.
13978 (install-guile): New rule.
13979 (guile.o): New rule.
13980 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13981 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13982 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13983 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13984 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13985 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13986 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13987 * configure.ac: New option --with-guile.
13988 * configure: Regenerate.
13989 * config.in: Regenerate.
13990 * auto-load.c: Remove #include "python/python.h". Add #include
13991 "gdb/section-scripts.h".
13992 (source_section_scripts): Handle Guile scripts.
13993 (_initialize_auto_load): Add name of Guile objfile script to
13994 scripts-directory help text.
13995 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13996 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13997 (struct breakpoint): New member scm_bp_object.
13998 * defs.h (enum command_control_type): New value guile_control.
13999 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
14000 "extension.h".
14001 (show_user): Update comment.
14002 (_initialize_cli_cmds): Update help text for "show user". Update help
14003 text for max-user-call-depth.
14004 * cli/cli-script.c: Remove #include "python/python.h". Add #include
14005 "extension.h".
14006 (multi_line_command_p): Add guile_control.
14007 (print_command_lines): Handle guile_control.
14008 (execute_control_command, recurse_read_control_structure): Ditto.
14009 (process_next_line): Recognize "guile" commands.
14010 * disasm.c (gdb_disassemble_info): Make non-static.
14011 * disasm.h: #include "dis-asm.h".
14012 (struct gdbarch): Add forward decl.
14013 (gdb_disassemble_info): Declare.
14014 * extension.c: #include "guile/guile.h".
14015 (extension_languages): Add guile.
14016 (get_ext_lang_defn): Handle EXT_LANG_GDB.
14017 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14018 * gdbtypes.c (get_unsigned_type_max): New function.
14019 (get_signed_type_minmax): New function.
14020 * gdbtypes.h (get_unsigned_type_max): Declare.
14021 (get_signed_type_minmax): Declare.
14022 * guile/README: New file.
14023 * guile/guile-internal.h: New file.
14024 * guile/guile.c: New file.
14025 * guile/guile.h: New file.
14026 * guile/scm-arch.c: New file.
14027 * guile/scm-auto-load.c: New file.
14028 * guile/scm-block.c: New file.
14029 * guile/scm-breakpoint.c: New file.
14030 * guile/scm-disasm.c: New file.
14031 * guile/scm-exception.c: New file.
14032 * guile/scm-frame.c: New file.
14033 * guile/scm-gsmob.c: New file.
14034 * guile/scm-iterator.c: New file.
14035 * guile/scm-lazy-string.c: New file.
14036 * guile/scm-math.c: New file.
14037 * guile/scm-objfile.c: New file.
14038 * guile/scm-ports.c: New file.
14039 * guile/scm-pretty-print.c: New file.
14040 * guile/scm-safe-call.c: New file.
14041 * guile/scm-string.c: New file.
14042 * guile/scm-symbol.c: New file.
14043 * guile/scm-symtab.c: New file.
14044 * guile/scm-type.c: New file.
14045 * guile/scm-utils.c: New file.
14046 * guile/scm-value.c: New file.
14047 * guile/lib/gdb.scm: New file.
14048 * guile/lib/gdb/boot.scm: New file.
14049 * guile/lib/gdb/experimental.scm: New file.
14050 * guile/lib/gdb/init.scm: New file.
14051 * guile/lib/gdb/iterator.scm: New file.
14052 * guile/lib/gdb/printing.scm: New file.
14053 * guile/lib/gdb/types.scm: New file.
14054 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14055 (VPATH): Add $(GUILE_SRCDIR).
14056 (GUILE_DIR): New variable.
14057 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14058 (all): Add stamp-guile dependency.
14059 (stamp-guile): New rule.
14060 (clean-guile, install-guile, uninstall-guile): New rules.
14061 (install-only): Add install-guile dependency.
14062 (uninstall): Add uninstall-guile dependency.
14063 (clean): Add clean-guile dependency.
14064
14065 2014-02-09 Doug Evans <xdje42@gmail.com>
14066
14067 Revert this patch (which I approved, mea culpa).
14068
14069 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14070
14071 * Makefile.in (all-lib): Remove.
14072 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14073
14074 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14075
14076 Fix Python stack corruption.
14077 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14078 gdb_py_longest.
14079
14080 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14081
14082 * Makefile.in (all-lib): Remove.
14083 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14084
14085 2014-02-07 Doug Evans <dje@google.com>
14086
14087 * extension-priv.h (extension_language_script_ops): Add comment.
14088 (extension_language_ops): Add comment.
14089 (active_ext_lang_state): Fix typo in comment.
14090
14091 2014-02-07 Pedro Alves <palves@redhat.com>
14092
14093 PR breakpoints/16292
14094 * infrun.c (handle_signal_stop) <signal arrives while stepping
14095 over a breakpoint>: Switch back to the stepping thread.
14096
14097 2014-02-07 Yao Qi <yao@codesourcery.com>
14098
14099 * target.c (target_xfer_partial): Return zero if LEN is zero.
14100
14101 2014-02-07 Yao Qi <yao@codesourcery.com>
14102
14103 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14104 (ld_so_xfer_auxv): Likewise.
14105 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14106 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14107 * corelow.c (core_xfer_partial): Likewise.
14108 * ctf.c (ctf_xfer_partial): Likewise.
14109 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14110 (darwin_xfer_partial): Likewise.
14111 * exec.c (exec_xfer_partial): Likewise.
14112 * gnu-nat.c (gnu_xfer_partial): Likewise.
14113 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14114 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14115 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14116 * linux-nat.c (linux_xfer_siginfo): Likewise.
14117 (linux_proc_xfer_spu): Likewise.
14118 * procfs.c (procfs_xfer_partial): Likewise.
14119 * record-full.c (record_full_xfer_partial): Likewise.
14120 (record_full_core_xfer_partial): Likewise.
14121 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14122 * remote.c (remote_write_qxfer): Likewise.
14123 (remote_write_qxfer, remote_read_qxfer): Likewise.
14124 (remote_xfer_partial): Likewise.
14125 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14126 (rs6000_xfer_shared_libraries): Likewise.
14127 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14128 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14129 (spu_xfer_partial): Likewise.
14130 * target.c (memory_xfer_partial_1): Likewise.
14131 * tracepoint.c (tfile_xfer_partial): Likewise.
14132 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14133 (windows_xfer_partial): Likewise.
14134
14135 2014-02-07 Yao Qi <yao@codesourcery.com>
14136
14137 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14138 comments.
14139 (core_xfer_shared_libraries_aix): Likewise.
14140 * gdbarch.c, gdbarch.h: Regenerated.
14141 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14142 ULONGEST. Change 'len_avail' type to ULONGEST.
14143 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14144 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14145 declaration.
14146 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14147
14148 2014-02-07 Yao Qi <yao@codesourcery.com>
14149
14150 * corefile.c (memory_error): Get 'exception' from ERR and pass
14151 'exception' to throw_error.
14152
14153 2014-02-06 Doug Evans <xdje42@gmail.com>
14154
14155 * configure.ac (libpython checking): Remove all but python.o from
14156 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14157 * configure: Regenerate.
14158
14159 * Makefile.in (SFILES): Add extension.c.
14160 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14161 (COMMON_OBS): Add extension.o.
14162 * extension.h: New file.
14163 * extension-priv.h: New file.
14164 * extension.c: New file.
14165
14166 * python/python-internal.h: #include "extension.h".
14167 (gdbpy_auto_load_enabled): Declare.
14168 (gdbpy_apply_val_pretty_printer): Declare.
14169 (gdbpy_apply_frame_filter): Declare.
14170 (gdbpy_preserve_values): Declare.
14171 (gdbpy_breakpoint_cond_says_stop): Declare.
14172 (gdbpy_breakpoint_has_cond): Declare.
14173 (void source_python_script_for_objfile): Delete.
14174 * python/python.c: #include "extension-priv.h".
14175 Delete inclusion of "observer.h".
14176 (extension_language_python): Moved here and renamed from
14177 script_language_python in py-auto-load.c.
14178 Redefined to be of type extension_language_defn.
14179 (python_extension_script_ops): New global.
14180 (python_extension_ops): New global.
14181 (struct python_env): New member previous_active.
14182 (restore_python_env): Call restore_active_ext_lang.
14183 (ensure_python_env): Call set_active_ext_lang.
14184 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14185 New arg extlang.
14186 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14187 New arg extlang.
14188 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14189 New arg extlang.
14190 (gdbpy_eval_from_control_command): Renamed from
14191 eval_python_from_control_command, made static. New arg extlang.
14192 (gdbpy_source_script) Renamed from source_python_script, made static.
14193 New arg extlang.
14194 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14195 result to int. New arg extlang.
14196 (gdbpy_source_objfile_script): Renamed from
14197 source_python_script_for_objfile, made static. New arg extlang.
14198 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14199 static. New args extlang, extlang_printers. Change result type to
14200 "void".
14201 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14202 static. New arg extlang. Rename arg printers to extlang_printers
14203 and change type to ext_lang_type_printers *.
14204 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14205 static. Replace argument arg with extlang, extlang_printers.
14206 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14207 (!HAVE_PYTHON, source_python_script): Delete.
14208 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14209 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14210 (!HAVE_PYTHON, start_type_printers): Delete.
14211 (!HAVE_PYTHON, apply_type_printers): Delete.
14212 (!HAVE_PYTHON, free_type_printers): Delete.
14213 (_initialize_python): Delete call to observer_attach_before_prompt.
14214 (finalize_python): Set/restore active extension language.
14215 (gdbpy_finish_initialization) Renamed from
14216 finish_python_initialization, made static. New arg extlang.
14217 (gdbpy_initialized): New function.
14218 * python/python.h: #include "extension.h". Delete #include
14219 "value.h", "mi/mi-cmds.h".
14220 (extension_language_python): Declare.
14221 (GDBPY_AUTO_FILE_NAME): Delete.
14222 (enum py_bt_status): Moved to extension.h and renamed to
14223 ext_lang_bt_status.
14224 (enum frame_filter_flags): Moved to extension.h.
14225 (enum py_frame_args): Moved to extension.h and renamed to
14226 ext_lang_frame_args.
14227 (finish_python_initialization): Delete.
14228 (eval_python_from_control_command): Delete.
14229 (source_python_script): Delete.
14230 (apply_val_pretty_printer): Delete.
14231 (apply_frame_filter): Delete.
14232 (preserve_python_values): Delete.
14233 (gdbpy_script_language_defn): Delete.
14234 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14235 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14236
14237 * auto-load.c: #include "extension.h".
14238 (GDB_AUTO_FILE_NAME): Delete.
14239 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14240 (script_language_gdb): Delete, moved to extension.c and renamed to
14241 extension_language_gdb.
14242 (source_gdb_script_for_objfile): Delete.
14243 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14244 (loaded_script): Change type of language member to
14245 struct extension_language_defn *.
14246 (init_loaded_scripts_info): Initialize
14247 unsupported_script_warning_printed.
14248 (maybe_add_script): Make static. Change type of language arg to
14249 struct extension_language_defn *.
14250 (clear_section_scripts): Reset unsupported_script_warning_printed.
14251 (auto_load_objfile_script_1): Rewrite to use extension language API.
14252 (auto_load_objfile_script): Make public. Remove support-compiled-in
14253 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14254 (source_section_scripts): Rewrite to use extension language API.
14255 (load_auto_scripts_for_objfile): Rewrite to use
14256 auto_load_scripts_for_objfile.
14257 (collect_matching_scripts_data): Change type of language member to
14258 struct extension_language_defn *.
14259 (auto_load_info_scripts): Change type of language arg to
14260 struct extension_language_defn *.
14261 (unsupported_script_warning_print): New function.
14262 (script_not_found_warning_print): Make static.
14263 (_initialize_auto_load): Rewrite construction of scripts-directory
14264 help.
14265 * auto-load.h (struct objfile): Add forward decl.
14266 (struct script_language): Delete.
14267 (struct auto_load_pspace_info): Add forward decl.
14268 (struct extension_language_defn): Add forward decl.
14269 (maybe_add_script): Delete.
14270 (auto_load_objfile_script): Declare.
14271 (script_not_found_warning_print): Delete.
14272 (auto_load_info_scripts): Update prototype.
14273 (auto_load_gdb_scripts_enabled): Declare.
14274 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14275 auto_load_python_scripts_enabled and made public.
14276 (script_language_python): Delete, moved to python.c.
14277 (gdbpy_script_language_defn): Delete.
14278 (info_auto_load_python_scripts): Update to use
14279 extension_language_python.
14280
14281 * breakpoint.c (condition_command): Replace call to
14282 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14283 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14284 with call to breakpoint_ext_lang_cond_says_stop.
14285 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14286 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14287 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14288 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14289 New arg slang.
14290 (local_setattro): Print name of extension language with existing
14291 stop condition.
14292
14293 * valprint.c (val_print, value_print): Update to call
14294 apply_ext_lang_val_pretty_printer.
14295 * cp-valprint.c (cp_print_value): Update call to
14296 apply_ext_lang_val_pretty_printer.
14297 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14298 (gdbpy_apply_val_pretty_printer): Renamed from
14299 apply_val_pretty_printer. New arg extlang.
14300 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14301
14302 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14303 extension language API.
14304 * cli/cli-script.c (execute_control_command): Update to call
14305 eval_ext_lang_from_control_command.
14306
14307 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14308 enum ext_lang_bt_status values. Update call to
14309 apply_ext_lang_frame_filter.
14310 (mi_cmd_stack_list_locals): Ditto.
14311 (mi_cmd_stack_list_args): Ditto.
14312 (mi_cmd_stack_list_variables): Ditto.
14313 * mi/mi-main.c: Delete #include "python/python-internal.h".
14314 Add #include "extension.h".
14315 (mi_cmd_list_features): Replace reference to python internal variable
14316 gdb_python_initialized with call to ext_lang_initialized_p.
14317
14318 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14319 Update to use enum ext_lang_frame_args. Update to call
14320 apply_ext_lang_frame_filter.
14321 * python/py-framefilter.c (extract_sym): Update to use enum
14322 ext_lang_bt_status.
14323 (extract_value, py_print_type, py_print_value): Ditto.
14324 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14325 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14326 (py_print_frame): Ditto.
14327 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14328 New arg extlang. Update to use enum ext_lang_bt_status.
14329
14330 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14331 finish_python_initialization. Replace with call to
14332 finish_ext_lang_initialization.
14333
14334 * typeprint.c (do_free_global_table): Update to call
14335 free_ext_lang_type_printers.
14336 (create_global_typedef_table): Update to call
14337 start_ext_lang_type_printers.
14338 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14339 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14340 (type_print_options): Change type of global_printers from "void *"
14341 to "struct ext_lang_type_printers *".
14342
14343 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14344 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14345 (gdbpy_preserve_values): Renamed from preserve_python_values.
14346 New arg extlang.
14347 (!HAVE_PYTHON, preserve_python_values): Delete.
14348
14349 * utils.c (quit_flag): Delete, moved to extension.c.
14350 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14351 extension.c.
14352
14353 * eval.c: Delete #include "python/python.h".
14354 * main.c: Delete #include "python/python.h".
14355
14356 * defs.h: Update comment.
14357
14358 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14359
14360 GDB 7.7 released.
14361
14362 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14363
14364 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14365 defined.
14366
14367 2014-02-05 Yao Qi <yao@codesourcery.com>
14368
14369 * remote.c (remote_pass_signals): Remove local 'buf' and use
14370 rs->buf.
14371 (remote_program_signals): Likewise.
14372
14373 2014-02-05 Yao Qi <yao@codesourcery.com>
14374
14375 * ctf.c: Include "inferior.h" and "gdbthread.h".
14376 (CTF_PID): A new macro.
14377 (ctf_open): Call inferior_appeared and add_thread_silent.
14378 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14379 (ctf_thread_alive): New function.
14380 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14381
14382 2014-02-05 Yao Qi <yao@codesourcery.com>
14383
14384 Revert this patch:
14385
14386 2013-05-24 Yao Qi <yao@codesourcery.com>
14387
14388 * tracepoint.c (TFILE_PID): Remove.
14389 (tfile_open): Don't add thread and inferior.
14390 (tfile_close): Don't set 'inferior_ptid'. Don't call
14391 exit_inferior_silent.
14392 (tfile_thread_alive): Remove.
14393 (init_tfile_ops): Don't set field 'to_thread_alive' of
14394 tfile_ops.
14395
14396 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14397
14398 * remote.c (remote_start_remote): Call remote_check_symbols even
14399 if only symbol-file (not file) has been given.
14400
14401 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14402
14403 * gdbarch.sh (skip_entrypoint): New callback.
14404 * gdbarch.c, gdbarch.h: Regenerate.
14405 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14406 * infrun.c (fill_in_stop_func): Likewise.
14407 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14408 (ppc_elfv2_elf_make_msymbol_special): New function.
14409 (ppc_elfv2_skip_entrypoint): Likewise.
14410 (ppc_linux_init_abi): Install them for ELFv2.
14411
14412 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14413
14414 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14415 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14416 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14417 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14418 structures returned in GPRs.
14419
14420 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14421
14422 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14423 offset to the stack parameter list for the ELFv2 ABI.
14424
14425 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14426
14427 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14428 set_gdbarch_convert_from_func_ptr_addr and
14429 set_gdbarch_elf_make_msymbol_special for ELFv1.
14430 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14431 function descriptors on ELFv1.
14432 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14433 set up r12 at function entry.
14434
14435 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14436
14437 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14438 (struct gdbarch_tdep): New member elf_abi.
14439
14440 * rs6000-tdep.c: Include "elf/ppc64.h".
14441 (rs6000_gdbarch_init): Detect ELF ABI version.
14442
14443 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14444
14445 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14446 within a register pair holding a DFP 128-bit value on little-endian.
14447 (ppc64_sysv_abi_return_value_base): Likewise.
14448 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14449 (dfp_pseudo_register_write): Likewise.
14450
14451 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14452
14453 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14454 offset on little-endian when passing _Decimal32.
14455 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14456
14457 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14458
14459 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14460 of the overlapped FP register within the VSX register on little-
14461 endian platforms.
14462 (efpr_pseudo_register_write): Likewise.
14463
14464 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14465
14466 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14467 offset on little-endian when passing small structures.
14468
14469 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14470
14471 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14472 (struct ppc64_sysv_argpos): New data structure.
14473 (ppc64_sysv_abi_push_float): Remove.
14474 (ppc64_sysv_abi_push_val): New function.
14475 (ppc64_sysv_abi_push_integer): Likewise.
14476 (ppc64_sysv_abi_push_freg): Likewise.
14477 (ppc64_sysv_abi_push_vreg): Likewise.
14478 (ppc64_sysv_abi_push_param): Likewise.
14479 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14480 (ppc64_sysv_abi_return_value_base): New function.
14481 (ppc64_sysv_abi_return_value): Refactor to use it.
14482
14483 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14484
14485 * NEWS: Document new target powerpc64le-*-linux*.
14486
14487 2014-02-04 Mark Kettenis <kettenis@gnu.org>
14488
14489 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14490 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14491 core dumps.
14492 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14493 register set used in ELF core dumps. Add floating-point register set.
14494
14495 2014-02-03 Kevin Buettner <kevinb@redhat.com>
14496
14497 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14498 dwarf2_to_gdb[] table using symbolic constants. Adjust
14499 penultimate entry from number representing the PC register
14500 to symbolic constant representing the MDR register. Add
14501 constant for the PC register to the end of the table.
14502
14503 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14504
14505 * bsd-kvm.c: Include <sys/param.h>
14506
14507 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14508
14509 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14510
14511 2014-01-31 Joel Brobecker <brobecker@adacore.com>
14512
14513 * ada-lang.h (clear_ada_sym_cache): Delete.
14514
14515 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14516
14517 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14518
14519 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14520
14521 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14522 the sigreturn register save area only if the syscall is
14523 sigreturn.
14524
14525 2014-01-29 Joel Brobecker <brobecker@adacore.com>
14526
14527 * valops.c (value_slice): Minor reformatting.
14528
14529 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14530
14531 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14532
14533 2014-01-28 Joel Brobecker <brobecker@adacore.com>
14534
14535 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14536 New static globals.
14537 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14538 (ada_ignore_descriptive_types_p): New static global.
14539 (find_parallel_type_by_descriptive_type): Return immediately
14540 if ada_ignore_descriptive_types_p is set.
14541 (_initialize_ada_language): Register new commands "maintenance
14542 set ada", "maintenance show ada", "maintenance set ada
14543 ignore-descriptive-types" and "maintenance show ada
14544 ignore-descriptive-types".
14545 * NEWS: Add entry for new "maint ada set/show
14546 ignore-descriptive-types" commands.
14547
14548 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14549
14550 * record-btrace.c (record_btrace_close): Call btrace_teardown
14551 for all threads.
14552
14553 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14554
14555 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14556 "ui-out.h".
14557
14558 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14559
14560 * ada-typeprint (type_is_full_subrange_of_target_type):
14561 New function.
14562 (print_range): Add parameter bounds_prefered_p. If not set,
14563 try printing range types using the name of their base type.
14564 (print_range_type): Add parameter bounds_prefered_p.
14565 Use it in call to print_range.
14566 (print_array_type, ada_print_type): Update calls to print_range
14567 and print_range_type.
14568
14569 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14570
14571 * ada-typeprint.c (print_array_type, print_choices, print_range)
14572 (print_range_bound, print_dynamic_range_bound, print_range_type):
14573 Remove declaration.
14574
14575 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14576
14577 * ada-typeprint.c (print_range): Add missing empty line
14578 after local declaration.
14579
14580 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14581
14582 * ada-valprint.c (print_optional_low_bound): Get index_type's
14583 target type for as long as it is a TYPE_CODE_RANGE.
14584
14585 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14586
14587 * procfs.c (procfs_make_note_section): Remove assertion and
14588 associated comment.
14589
14590 2014-01-24 Yao Qi <yao@codesourcery.com>
14591
14592 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14593 * corelow.c (get_core_siginfo): Likewise.
14594
14595 2014-01-24 Yao Qi <yao@codesourcery.com>
14596
14597 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14598 ULONGEST. Don't check 'len' is negative.
14599 (remote_write_bytes): Change type of 'len' to ULONGEST.
14600
14601 2014-01-23 Tom Tromey <tromey@redhat.com>
14602
14603 PR python/16485:
14604 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14605 Handle exception from frame.block.
14606 (FrameVars.fetch_frame_locals): Likewise.
14607
14608 2014-01-23 Tom Tromey <tromey@redhat.com>
14609
14610 PR python/16487:
14611 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14612 on a NULL pointer. Move "goto error" to correct place.
14613
14614 2014-01-23 Tom Tromey <tromey@redhat.com>
14615
14616 PR python/16491:
14617 * python/py-framefilter.c (apply_frame_filter): Call
14618 ensure_python_env after computing gdbarch.
14619
14620 2014-01-23 Yao Qi <yao@codesourcery.com>
14621
14622 * target.c (raw_memory_xfer_partial): Change argument type
14623 from void * to gdb_byte *.
14624 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14625
14626 2014-01-22 Doug Evans <dje@google.com>
14627
14628 New gdbserver option --debug-format=timestamp.
14629 * NEWS: Mention it.
14630
14631 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14632
14633 * syscalls/s390x-linux.xml: New file.
14634 * syscalls/s390-linux.xml: New file.
14635 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14636 (XML_SYSCALL_FILENAME_S390X): Likewise.
14637 (op_svc): New enum value for SVC opcode.
14638 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14639 (s390_linux_get_syscall_number): New function.
14640 (s390_gdbarch_init): Register '*get_syscall_number' and the
14641 syscall xml file name.
14642 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14643 "s390-linux.xml" and "s390x-linux.xml".
14644 * NEWS: Announce new feature.
14645
14646 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14647
14648 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14649
14650 2014-01-22 Pedro Alves <palves@redhat.com>
14651
14652 * xtensa-config.c: Include defs.h.
14653
14654 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14655
14656 * common/common-utils.h: Add "ARI:" comment beside __func__
14657 reference.
14658
14659 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14660
14661 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14662 documentation a bit.
14663
14664 2014-01-21 Roland McGrath <mcgrathr@google.com>
14665
14666 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14667 * configure: Regenerate.
14668 * aclocal.m4: Regenerate.
14669 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14670 New substituted variables.
14671 (install-strip): New target.
14672 (INSTALL_SCRIPT): New substituted variable.
14673 (FLAGS_TO_PASS): Add it.
14674 (install-only): Use $(INSTALL_SCRIPT) rather than
14675 $(INSTALL_PROGRAM) for gcore.
14676
14677 2014-01-20 Tom Tromey <tromey@redhat.com>
14678
14679 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14680 together.
14681
14682 2014-01-20 Tom Tromey <tromey@redhat.com>
14683
14684 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14685 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14686 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14687 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14688 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14689 (struct cmd_list_element) <flags>: Remove.
14690 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14691 doc_allocated>: New fields.
14692 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14693 bitfields.
14694 * maint.c (maintenance_do_deprecate): Update.
14695 * top.c (execute_command): Update.
14696
14697 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14698
14699 * xtensa-linux-nat.c: Include asm/ptrace.h.
14700
14701 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14702
14703 * Makefile.in (SFILES): Add d-support.c.
14704 (COMMON_OBS): Add d-support.o.
14705 * d-lang.h (d_parse_symbol): Add comment, now defined in
14706 d-support.c.
14707 * d-lang.c (parse_call_convention)
14708 (parse_attributes, parse_function_types)
14709 (parse_function_args, parse_type, parse_identifier)
14710 (call_convention_p, d_parse_symbol): Move functions to ...
14711 * d-support.c: ... New file.
14712
14713 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14714
14715 * d-lang.h (d_parse_symbol): Add declaration.
14716 * d-lang.c (extract_identifiers)
14717 (extract_type_info): Remove functions.
14718 (parse_call_convention, parse_attributes)
14719 (parse_function_types, parse_function_args)
14720 (parse_type, parse_identifier, call_convention_p)
14721 (d_parse_symbol): New functions.
14722 (d_demangle): Use d_parse_symbol to demangle D symbols.
14723
14724 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14725
14726 * d-lang.h (struct builtin_d_type): New data type.
14727 (builtin_d_type): Add declaration.
14728 * d-lang.c (d_language_arch_info, build_d_types)
14729 (builtin_d_type): New functions.
14730 (enum d_primitive_types): New data type.
14731 (d_language_defn): Change c_language_arch_info to
14732 d_language_arch_info.
14733 (d_type_data): New static variable.
14734 (_initialize_d_language): Initialize d_type_data.
14735
14736 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14737
14738 * d-lang.h (d_main_name): Add declaration.
14739 * d-lang.c (d_main_name): New function.
14740 * symtab.c (find_main_name): Add call to d_main_name.
14741
14742 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14743
14744 * d-lang.c (d_language_defn): Change macro_expansion_c to
14745 macro_expansion_no.
14746
14747 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14748
14749 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14750
14751 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14752
14753 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14754 gdb_exception" declaration.
14755 * remote.c (getpkt_or_notif_sane): Likewise.
14756
14757 2014-01-17 Doug Evans <dje@google.com>
14758
14759 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14760 function, contents of dirnames_to_char_ptr_vec_append moved here.
14761 (delim_string_to_char_ptr_vec): New function.
14762 (dirnames_to_char_ptr_vec_append): Rewrite.
14763 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14764
14765 2014-01-17 Doug Evans <dje@google.com>
14766
14767 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14768 and moved here ...
14769 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14770 #include "common-utils.h".
14771 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14772 * common/vec.h (VEC_ASSERT_PASS): Update.
14773 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14774 (MACH_CHECK_ERROR): Update.
14775
14776 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14777
14778 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14779 comments.
14780 * gdbarch.h: Regenerate.
14781
14782 2014-01-16 Tom Tromey <tromey@redhat.com>
14783
14784 * value.c (struct value) <regnum>: Move earlier.
14785
14786 2014-01-16 Tom Tromey <tromey@redhat.com>
14787
14788 * remote.c (extended_remote_create_inferior): Rename from
14789 extended_remote_create_inferior_1. Add "ops" argument. Remove
14790 old implementation.
14791
14792 2014-01-16 Pedro Alves <palves@redhat.com>
14793
14794 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14795 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14796 the backchain.
14797
14798 2014-01-16 Doug Evans <dje@google.com>
14799
14800 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14801
14802 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14803
14804 * btrace.h (btrace_thread_flag): New.
14805 (struct btrace_thread_info) <flags>: New.
14806 * record-btrace.c (record_btrace_resume_thread)
14807 (record_btrace_find_thread_to_move, btrace_step_no_history)
14808 (btrace_step_stopped, record_btrace_start_replaying)
14809 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14810 (record_btrace_find_resume_thread): New.
14811 (record_btrace_resume, record_btrace_wait): Extend.
14812 (record_btrace_can_execute_reverse): New.
14813 (record_btrace_open): Fail in non-stop mode.
14814 (record_btrace_set_replay): Split into this, ...
14815 (record_btrace_stop_replaying): ... this, ...
14816 (record_btrace_clear_histories): ... and this.
14817 (init_record_btrace_ops): Init to_can_execute_reverse.
14818 * NEWS: Announce it.
14819
14820 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14821
14822 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14823 (forward_target_decr_pc_after_break)
14824 (target_decr_pc_after_break): New.
14825 * target.c (forward_target_decr_pc_after_break)
14826 (target_decr_pc_after_break): New.
14827 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14828 instead of gdbarch_decr_pc_after_break.
14829 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14830 instead of gdbarch_decr_pc_after_break.
14831 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14832 instead of gdbarch_decr_pc_after_break.
14833 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14834 instead of gdbarch_decr_pc_after_break.
14835 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14836 instead of gdbarch_decr_pc_after_break.
14837 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14838 instead of gdbarch_decr_pc_after_break.
14839
14840 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14841
14842 * btrace.c: Include regcache.h.
14843 (btrace_add_pc): New.
14844 (btrace_enable): Call btrace_add_pc.
14845 (btrace_is_empty): New.
14846 * btrace.h (btrace_is_empty): New.
14847 * record-btrace.c (require_btrace, record_btrace_info): Call
14848 btrace_is_empty.
14849
14850 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14851
14852 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14853 Support delta reads.
14854 (linux_disable_btrace): Change return type.
14855 * common/linux-btrace.h (linux_read_btrace): Change parameters
14856 and return type to allow error reporting. Update users.
14857 (linux_disable_btrace): Change return type. Update users.
14858 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14859 New.
14860 (btrace_error): New.
14861 (btrace_block) <begin>: Comment on BEGIN == 0.
14862 * btrace.c (btrace_compute_ftrace): Start from the end of
14863 the current trace.
14864 (btrace_stitch_trace, btrace_clear_history): New.
14865 (btrace_fetch): Read delta trace, return if replaying.
14866 (btrace_clear): Move clear history code to btrace_clear_history.
14867 (parse_xml_btrace): Throw an error if parsing failed.
14868 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14869 and return type to allow error reporting.
14870 (target_read_btrace): Change parameters and return type to allow
14871 error reporting.
14872 * target.c (target_read_btrace): Update.
14873 * remote.c (remote_read_btrace): Support delta reads. Pass
14874 errors on.
14875 * NEWS: Announce it.
14876
14877 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14878
14879 * record.h (record_btrace_frame_unwind)
14880 (record_btrace_tailcall_frame_unwind): New declarations.
14881 * dwarf2-frame: Include record.h
14882 (dwarf2_frame_cfa): Throw an error for btrace frames.
14883 * record-btrace.c: Include hashtab.h.
14884 (btrace_get_bfun_name): New.
14885 (btrace_call_history): Call btrace_get_bfun_name.
14886 (struct btrace_frame_cache): New.
14887 (bfcache): New.
14888 (bfcache_hash, bfcache_eq, bfcache_new): New.
14889 (btrace_get_frame_function): New.
14890 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14891 (record_btrace_frame_this_id): Compute own id.
14892 (record_btrace_frame_prev_register): Provide PC, throw_error
14893 for all other registers.
14894 (record_btrace_frame_sniffer): Detect btrace frames.
14895 (record_btrace_tailcall_frame_sniffer): New.
14896 (record_btrace_frame_dealloc_cache): New.
14897 (record_btrace_frame_unwind): Add new functions.
14898 (record_btrace_tailcall_frame_unwind): New.
14899 (_initialize_record_btrace): Allocate cache.
14900 * btrace.c (btrace_clear): Call reinit_frame_cache.
14901 * NEWS: Announce it.
14902
14903 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14904
14905 * record-btrace.c (record_btrace_set_replay)
14906 (record_btrace_goto_begin, record_btrace_goto_end)
14907 (record_btrace_goto): New.
14908 (init_record_btrace_ops): Initialize them.
14909 * NEWS: Announce it.
14910
14911 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14912
14913 * record-btrace.c (record_btrace_find_new_threads)
14914 (record_btrace_thread_alive): New.
14915 (init_record_btrace_ops): Initialize to_find_new_threads and
14916 to_thread_alive.
14917
14918 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14919
14920 * record-btrace.c (record_btrace_resume): New.
14921 (record_btrace_wait): New.
14922 (init_record_btrace_ops): Initialize to_wait and to_resume.
14923
14924 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14925
14926 * record-btrace.c (record_btrace_xfer_partial)
14927 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14928 (record_btrace_allow_memory_access): New.
14929 (init_record_btrace_ops): Initialize new methods.
14930 * target.c (raw_memory_xfer_partial): Bail out if target reports
14931 that this memory is not available.
14932
14933 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14934
14935 * target.h (target_ops) <to_insert_breakpoint>
14936 <to_remove_breakpoint>: Add target_ops parameter.
14937 (forward_target_insert_breakpoint): New.
14938 (forward_target_remove_breakpoint): New.
14939 (memory_remove_breakpoint, memory_insert_breakpoint):
14940 Add target_ops parameter.
14941 * target.c (target_insert_breakpoint): Split into this and ...
14942 (forward_target_insert_breakpoint): ... this.
14943 (target_remove_breakpoint): Split into this and ...
14944 (forward_target_remove_breakpoint): ... this.
14945 (debug_to_insert_breakpoint): Add target_ops parameter.
14946 Call forward_target_insert_breakpoint.
14947 (debug_to_remove_breakpoint): Add target_ops parameter.
14948 Call forward_target_remove_breakpoint.
14949 (update_current_target): Do not inherit or default to_insert_breakpoint
14950 and to_remove_breakpoint.
14951 * corelow.c (ignore): Add target_ops parameter.
14952 * exec.c (ignore): Add target_ops parameter.
14953 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14954 Add target_ops parameter.
14955 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14956 Add target_ops parameter.
14957 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14958 Add target_ops parameter.
14959 * record-full.c (record_full_beneath_to_insert_breakpoint)
14960 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14961 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14962 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14963 (record_full_core_remove_breakpoint): Add target_ops parameter.
14964 Update users.
14965 (record_full_beneath_to_insert_breakpoint_ops)
14966 (record_full_beneath_to_remove_breakpoint_ops)
14967 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14968 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14969 tmp_to_remove_breakpoint_ops,
14970 record_full_beneath_to_insert_breakpoint_ops, and
14971 record_full_beneath_to_remove_breakpoint_ops.
14972 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14973 (m32r_remove_breakpoint): Add target_ops parameter.
14974 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14975 Add target_ops parameter.
14976 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14977 Add target_ops parameter.
14978
14979 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14980 Markus Metzger <markus.t.metzger@intel.com>
14981
14982 * record-btrace.c: Include frame-unwind.h.
14983 (record_btrace_frame_unwind_stop_reason)
14984 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14985 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14986 New.
14987 (init_record_btrace_ops): Install it.
14988
14989 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14990
14991 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14992 get_prev_frame_1.
14993
14994 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14995
14996 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14997 earlier.
14998
14999 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
15000
15001 * frame-unwind.c: Include target.h.
15002 (frame_unwind_try_unwinder): New function with code from ...
15003 (frame_unwind_find_by_frame): ... here. New variable
15004 unwinder_from_target, call also target_get_unwinder)
15005 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15006 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15007 * target.h (struct target_ops): New fields to_get_unwinder and
15008 to_get_tailcall_unwinder.
15009 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15010
15011 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15012
15013 * record-btrace.c (record_btrace_fetch_registers)
15014 (record_btrace_store_registers)
15015 (record_btrace_to_prepare_to_store): New.
15016 (init_record_btrace_ops): Add the above.
15017
15018 2014-01-16 Tom Tromey <tromey@redhat.com>
15019
15020 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15021 * target.h (struct target_ops) <to_prepare_to_store>: Add
15022 argument.
15023 (target_prepare_to_store): Add argument.
15024 * target.c (debug_to_prepare_to_store): Add argument.
15025 (update_current_target): Update.
15026 * remote.c (remote_prepare_to_store): Add 'self' argument.
15027 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15028 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15029 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15030 * record-full.c (record_full_core_prepare_to_store): Add 'self'
15031 argument.
15032 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15033 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15034 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15035 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15036 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15037
15038 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15039
15040 * btrace.h (replay) <replay>: New.
15041 (btrace_is_replaying): New.
15042 * btrace.c (btrace_clear): Free replay iterator.
15043 (btrace_is_replaying): New.
15044 * record-btrace.c (record_btrace_is_replaying): New.
15045 (record_btrace_info): Print insn number if replaying.
15046 (record_btrace_insn_history): Start at replay position.
15047 (record_btrace_call_history): Start at replay position.
15048 (init_record_btrace_ops): Init to_record_is_replaying.
15049
15050 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15051
15052 * record-btrace.c (record_btrace_insn_history_range): Include
15053 end.
15054 (record_btrace_insn_history_from): Adjust range.
15055 (record_btrace_call_history_range): Include
15056 end.
15057 (record_btrace_call_history_from): Adjust range.
15058 * NEWS: Announce changes.
15059
15060 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15061
15062 * record.h (enum record_print_flag)
15063 <record_print_indent_calls>: New.
15064 * record.c (get_call_history_modifiers): Recognize /c modifier.
15065 (_initialize_record): Document /c modifier.
15066 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15067 Reorder fields. Optionally indent the function name. Update
15068 all users.
15069 * NEWS: Announce changes.
15070
15071 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15072
15073 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15074
15075 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15076
15077 * btrace.c (ftrace_new_function): Start counting at one.
15078 * record-btrace.c (record_btrace_info): Adjust number of calls
15079 and insns.
15080 * NEWS: Announce it.
15081
15082 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15083
15084 * record-btrace.c (btrace_call_history_insn_range): Print
15085 insn range as [begin, end].
15086
15087 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15088
15089 * btrace.h (struct btrace_func_link): New.
15090 (enum btrace_function_flag): New.
15091 (struct btrace_inst): Rename to ...
15092 (struct btrace_insn): ...this. Update all users.
15093 (struct btrace_func) <ibegin, iend>: Remove.
15094 (struct btrace_func_link): New.
15095 (struct btrace_func): Rename to ...
15096 (struct btrace_function): ...this. Update all users.
15097 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15098 (number, level, flags>: New.
15099 (struct btrace_insn_iterator): Rename to ...
15100 (struct btrace_insn_history): ...this.
15101 Update all users.
15102 (struct btrace_insn_iterator, btrace_call_iterator): New.
15103 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15104 (struct btrace_target_info) <begin, end, level>
15105 <insn_history, call_history>: New.
15106 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15107 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15108 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15109 (btrace_call_number, btrace_call_begin, btrace_call_end)
15110 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15111 (btrace_find_function_by_number, btrace_set_insn_history)
15112 (btrace_set_call_history): New.
15113 * btrace.c (btrace_init_insn_iterator)
15114 (btrace_init_func_iterator, compute_itrace): Remove.
15115 (ftrace_print_function_name, ftrace_print_filename)
15116 (ftrace_skip_file): Change
15117 parameter to const.
15118 (ftrace_init_func): Remove.
15119 (ftrace_debug): Use new btrace_function fields.
15120 (ftrace_function_switched): Also consider gaining and
15121 losing symbol information).
15122 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15123 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15124 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15125 New.
15126 (ftrace_new_function): Move. Remove debug print.
15127 (ftrace_update_lines, ftrace_update_insns): New.
15128 (ftrace_update_function): Check for call, ret, and jump.
15129 (compute_ftrace): Renamed to ...
15130 (btrace_compute_ftrace): ...this. Rewritten to compute call
15131 stack.
15132 (btrace_fetch, btrace_clear): Updated.
15133 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15134 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15135 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15136 (btrace_call_number, btrace_call_begin, btrace_call_end)
15137 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15138 (btrace_find_function_by_number, btrace_set_insn_history)
15139 (btrace_set_call_history): New.
15140 * record-btrace.c (require_btrace): Use new btrace thread
15141 info fields.
15142 (record_btrace_info, btrace_insn_history)
15143 (record_btrace_insn_history, record_btrace_insn_history_range):
15144 Use new btrace thread info fields and new iterator.
15145 (btrace_func_history_src_line): Rename to ...
15146 (btrace_call_history_src_line): ...this. Use new btrace
15147 thread info fields.
15148 (btrace_func_history): Rename to ...
15149 (btrace_call_history): ...this. Use new btrace thread info
15150 fields and new iterator.
15151 (record_btrace_call_history, record_btrace_call_history_range):
15152 Use new btrace thread info fields and new iterator.
15153
15154 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15155
15156 * frame.h (frame_id_build_unavailable_stack_special): New.
15157 * frame.c (frame_id_build_unavailable_stack_special): New.
15158
15159 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15160
15161 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15162 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15163 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15164 to gdbarch.
15165 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15166 (i386_insn_is_jump, i386_jmp_p): New.
15167 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15168 insn_is_jump to gdbarch.
15169 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15170 * gdbarch.h: Regenerated.
15171 * gdbarch.c: Regenerated.
15172 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15173 (default_insn_is_jump): New.
15174 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15175 (default_insn_is_jump): New.
15176
15177 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15178
15179 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15180 Change to ...
15181 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15182 (btrace_read_type) <btrace_read_new>: Change to ...
15183 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15184
15185 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15186
15187 * common/linux-btrace.c (linux_read_btrace): Free trace from
15188 previous iteration.
15189
15190 2014-01-15 Doug Evans <dje@google.com>
15191
15192 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15193 uint32_t.
15194
15195 2014-01-15 Tom Tromey <tromey@redhat.com>
15196
15197 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15198 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15199 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15200 (set_objfile_main_name): New function.
15201 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15202 language_of_main>: New fields.
15203 (set_objfile_main_name): Declare.
15204 * symtab.c (find_main_name): Loop over objfiles to find the main
15205 name and language.
15206 (set_main_name): Now static.
15207 (get_main_info): Add comment.
15208 * symtab.h (set_main_name): Don't declare.
15209
15210 2014-01-15 Tom Tromey <tromey@redhat.com>
15211
15212 * symtab.c (main_progspace_key): New global.
15213 (struct main_info): New.
15214 (name_of_main, language_of_main): Remove.
15215 (get_main_info, main_info_cleanup): New function.
15216 (set_main_name, main_name, main_language): Use get_main_info.
15217 (_initialize_symtab): Initialize main_progspace_key.
15218
15219 2014-01-15 Tom Tromey <tromey@redhat.com>
15220
15221 * dbxread.c (process_one_symbol): Update.
15222 * dwarf2read.c (read_partial_die): Update.
15223 * symfile.c (set_initial_language): Call main_language.
15224 * symtab.c (language_of_main): Now static.
15225 (set_main_name): Add 'lang' parameter.
15226 (find_main_name): Update.
15227 (main_language): New function.
15228 (symtab_observer_executable_changed): Update.
15229 * symtab.h (set_main_name): Update.
15230 (language_of_main): Remove.
15231 (main_language): Declare.
15232
15233 2014-01-15 Tom Tromey <tromey@redhat.com>
15234
15235 * symfile.c (init_entry_point_info): Use new "initialized" field.
15236 Update.
15237 * objfiles.h (struct entry_point) <initialized>: New field.
15238 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15239 (struct objfile) <ei>: ...here. Remove.
15240 * objfiles.c (entry_point_address_query): Update.
15241
15242 2014-01-15 Tom Tromey <tromey@redhat.com>
15243
15244 * objfiles.c (entry_point_address_query): Relocate entry point
15245 address.
15246 (objfile_relocate1): Do not relocate entry point address.
15247 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15248 <the_bfd_section_index>: New field.
15249 * symfile.c (init_entry_point_info): Find the entry point's
15250 section.
15251
15252 2014-01-15 Tom Tromey <tromey@redhat.com>
15253
15254 * solib-frv.c (enable_break): Use entry_point_address_query.
15255
15256 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15257
15258 * NEWS: Add note on improved process record-replay on
15259 arm*-linux* targets.
15260
15261 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15262
15263 * arm-tdep.c (enum arm_record_result): New enum.
15264 (arm_record_unsupported_insn): New function.
15265 (arm_record_coproc_data_proc): Removed.
15266 (thumb2_record_ld_st_multiple): New function.
15267 (thumb2_record_ld_st_dual_ex_tbb): New function.
15268 (thumb2_record_data_proc_sreg_mimm): New function.
15269 (thumb2_record_ps_dest_generic): New function.
15270 (thumb2_record_branch_misc_cntrl): New function.
15271 (thumb2_record_str_single_data): New function.
15272 (thumb2_record_ld_mem_hints): New function.
15273 (thumb2_record_ld_word): New function.
15274 (thumb2_record_lmul_lmla_div): New function.
15275 (thumb2_record_decode_insn_handler): New function.
15276 (decode_insn): Add thumb32 instruction handlers.
15277
15278 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15279
15280 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15281 (struct arm_linux_record_tdep): Declare.
15282 (arm_canonicalize_syscall): New function.
15283 (arm_all_but_pc_registers_record): New function.
15284 (arm_linux_syscall_record): New function.
15285 (arm_linux_init_abi): Add syscall recording constructs.
15286 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15287 decoding. (arm_record_coproc_data_proc): Update arm syscall
15288 decoding.
15289 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15290 <arm_syscall_record>: New field.
15291 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15292 gdb_target_obs.
15293
15294 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15295
15296 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15297 register for push instruction recording.
15298
15299 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15300
15301 * arm-tdep.c (thumb_record_misc): Update to correct logical
15302 error while recording ldm, ldmia and pop instructions.
15303
15304 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15305
15306 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15307
15308 2014-01-15 Pedro Alves <palves@redhat.com>
15309
15310 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15311 (go32_resume, go32_fetch_registers, store_register)
15312 (go32_store_registers, go32_prepare_to_store)
15313 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15314 (go32_create_inferior, go32_can_run, go32_terminal_init)
15315 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15316 declarations.
15317
15318 2014-01-15 Tom Tromey <tromey@redhat.com>
15319
15320 * target.h (async_callback_ftype): New typedef.
15321 (struct target_ops) <to_async>: Use it.
15322
15323 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15324
15325 * python/py-value.c (get_field_type): Remove unnecessary curly
15326 braces for single-statement if block.
15327
15328 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15329
15330 * python/py-type.c (convert_field): Add missing empty line
15331 after declarations.
15332
15333 2014-01-14 Doug Evans <dje@google.com>
15334
15335 * symfile.h (expand_symtabs_matching): Renamed from
15336 expand_partial_symbol_names. Update prototype.
15337 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15338 * symfile.c (expand_symtabs_matching): Renamed from
15339 expand_partial_symbol_names. New args file_matcher, kind.
15340 Rename arg fun to symbol_matcher.
15341 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15342 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15343 ada_expand_partial_symbol_name.
15344 (ada_make_symbol_completion_list): Update to call
15345 expand_symtabs_matching.
15346 (ada_add_global_exceptions): Call expand_symtabs_matching.
15347 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15348 call map_symbol_filenames.
15349 * symtab.c (sources_info): Update to call map_symbol_filenames.
15350 (search_symbols): Call expand_symtabs_matching.
15351 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15352 (default_make_symbol_completion_list_break_on): Update to call
15353 expand_symtabs_matching.
15354 (make_source_files_completion_list): Update to call
15355 map_symbol_filenames.
15356
15357 2014-01-14 Doug Evans <dje@google.com>
15358
15359 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15360 (expand_symtabs_symbol_matcher_ftype): New typedef.
15361 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15362 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15363 * symfile.c (expand_partial_symbol_names): Update to use
15364 expand_symtabs_symbol_matcher_ftype.
15365 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15366 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15367 Arg name_matcher renamed to symbol_matcher.
15368 * psymtab.c (recursively_search_psymtabs): Update to use
15369 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15370 sym_matcher.
15371 (expand_symtabs_matching_via_partial): Update to use
15372 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15373 Arg name_matcher renamed to symbol_matcher.
15374
15375 2014-01-14 Doug Evans <dje@google.com>
15376
15377 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15378 (map_partial_symbol_filenames): Ditto.
15379 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15380 (map_partial_symbol_filenames): Ditto.
15381 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15382 (map_partial_symbol_filenames): Ditto.
15383 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15384 (map_partial_symbol_filenames): Ditto.
15385 * symtab.c: Delete #include "psymtab.h".
15386
15387 2014-01-14 Pedro Alves <palves@redhat.com>
15388 Tom Tromey <tromey@redhat.com>
15389
15390 * infrun.c (use_displaced_stepping): Use find_record_target
15391 instead of RECORD_IS_USED.
15392 (adjust_pc_after_break): Use record_full_is_used instead of
15393 RECORD_IS_USED.
15394 * record-btrace.c (record_btrace_open): Call record_preopen
15395 instead of checking RECORD_IS_USED.
15396 * record-full.c (record_full_shortname)
15397 (record_full_core_shortname): New globals.
15398 (record_full_is_used): New function.
15399 (find_full_open): Call record_preopen instead of checking
15400 RECORD_IS_USED.
15401 (init_record_full_ops): Set the target's shortname to
15402 record_full_shortname.
15403 (init_record_full_core_ops): Set the target's shortname to
15404 record_full_core_shortname.
15405 * record-full.h (record_full_is_used): Declare.
15406 * record.c (find_record_target): Make extern.
15407 (record_preopen): New function.
15408 * record.h (RECORD_IS_USED): Delete macro.
15409 (find_record_target, record_preopen): Declare functions.
15410
15411 2014-01-14 Yao Qi <yao@codesourcery.com>
15412
15413 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15414 'len''s type to ULONGEST.
15415 (core_xfer_shared_libraries_aix): Likewise.
15416 * gdbarch.c, gdbarch.h: Regenerated.
15417 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15418 Change type of 'len' to ULONGEST.
15419 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15420 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15421
15422 2014-01-14 Yao Qi <yao@codesourcery.com>
15423
15424 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15425 type of 'len' to ULONGEST.
15426 (linux_xfer_osdata_processgroups): Likewise.
15427 (linux_xfer_osdata_threads): Likewise.
15428 (linux_xfer_osdata_fds): Likewise.
15429 (linux_xfer_osdata_isockets): Likewise.
15430 (linux_xfer_osdata_shm): Likewise.
15431 (linux_xfer_osdata_sem): Likewise.
15432 (linux_xfer_osdata_msg): Likewise.
15433 (linux_common_xfer_osdata): Likewise.
15434 (struct osdata_type) <getter>: Likewise.
15435 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15436 the declaration.
15437
15438 2014-01-14 Yao Qi <yao@codesourcery.com>
15439
15440 * target.h (target_xfer_partial_ftype): Update.
15441 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15442 ULONGEST.
15443 * aix-thread.c (aix_thread_xfer_partial): Change type of
15444 argument 'len' to ULONGEST.
15445 * auxv.c (procfs_xfer_auxv): Likewise.
15446 (ld_so_xfer_auxv): Likewise.
15447 (memory_xfer_auxv): Likewise.
15448 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15449 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15450 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15451 * corelow.c (core_xfer_partial): Likewise.
15452 * ctf.c (ctf_xfer_partial): Likewise.
15453 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15454 '%u'.
15455 (darwin_read_dyld_info): Likewise.
15456 (darwin_xfer_partial): Likewise.
15457 * exec.c (section_table_xfer_memory_partial): Likewise.
15458 (exec_xfer_partial): Likewise.
15459 * exec.h (section_table_xfer_memory_partial): Update
15460 declaration.
15461 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15462 instead of plongest.
15463 (gnu_xfer_partial): Likewise.
15464 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15465 (ia64_hpux_xfer_solib_got): Likewise.
15466 (ia64_hpux_xfer_partial): Likewise.
15467 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15468 * inf-ptrace.c (inf_ptrace_xfer_partial):
15469 * inf-ttrace.c (inf_ttrace_xfer_partial):
15470 * linux-nat.c (linux_xfer_siginfo): Likewise.
15471 (linux_nat_xfer_partial): Likewise.
15472 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15473 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15474 * monitor.c (monitor_xfer_memory): Likewise.
15475 (monitor_xfer_partial): Likewise.
15476 * procfs.c (procfs_xfer_partial): Likewise.
15477 * record-full.c (record_full_xfer_partial): Likewise.
15478 (record_full_core_xfer_partial): Likewise.
15479 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15480 instead of plongest.
15481 (gdbsim_xfer_partial): Likewise.
15482 * remote.c (remote_xfer_partial): Likewise.
15483 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15484 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15485 declaration.
15486 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15487 (rs6000_xfer_shared_libraries): Likewise.
15488 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15489 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15490 (sparc_xfer_partial): Likewise.
15491 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15492 (spu_xfer_partial): Likewise.
15493 * spu-multiarch.c (spu_xfer_partial): Likewise.
15494 * target.c (target_read_live_memory): Likewise.
15495 (memory_xfer_live_readonly_partial): Likewise.
15496 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15497 (target_xfer_partial, default_xfer_partial): Likewise.
15498 (current_xfer_partial): Likewise.
15499 * tracepoint.c (tfile_xfer_partial): Likewise.
15500 * windows-nat.c (windows_xfer_memory): Likewise. Call
15501 pulongest instead of plongest.
15502 (windows_xfer_partial): Likewise.
15503 (windows_xfer_shared_libraries): Likewise.
15504
15505 2014-01-14 Yao Qi <yao@codesourcery.com>
15506
15507 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15508 target_xfer_partial_ftype.
15509
15510 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15511
15512 PR python/15464
15513 PR python/16113
15514 * valops.c (value_struct_elt_bitpos): New function
15515 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15516 object to 'None' if the field name is an empty string ("").
15517 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15518 attribute to look for a field when 'name' is 'None'.
15519 (get_field_type): New function
15520
15521 2014-01-13 Doug Evans <dje@google.com>
15522
15523 PR symtab/16426
15524 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15525 (try_open_dwop_file): Ditto.
15526 * gdb_bfd.c: #include "vec.h".
15527 (bfdp): New typedef.
15528 (struct gdb_bfd_data): New member included_bfds.
15529 (gdb_bfd_unref): Unref all included bfds.
15530 (gdb_bfd_record_inclusion): New function.
15531 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15532
15533 2014-01-13 Tom Tromey <tromey@redhat.com>
15534
15535 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15536
15537 2014-01-13 Tom Tromey <tromey@redhat.com>
15538
15539 * defs.h (use_windows): Remove.
15540 * gdb.c (main): Update.
15541 * main.c (captured_main, gdb_main): Update.
15542 * main.h (struct captured_main_args) <use_windows>: Remove.
15543 * top.c (use_windows): Remove.
15544
15545 2014-01-13 Tom Tromey <tromey@redhat.com>
15546
15547 * defs.h (deprecated_flush_hook): Remove.
15548
15549 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15550
15551 PR threads/16216
15552 * linux-thread-db.c (try_thread_db_load): Add parameter
15553 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15554 (try_thread_db_load_from_pdir_1): Move it there from here.
15555 (try_thread_db_load_from_sdir): Update caller.
15556 (try_thread_db_load_from_dir): Move it there from here.
15557
15558 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15559
15560 * regformats/regdat.sh: Always rewrite the register file.
15561
15562 2014-01-13 Pedro Alves <palves@redhat.com>
15563
15564 * Makefile.in (CHECK_HEADERS): New variable.
15565 (check-headers:): New rule.
15566
15567 2014-01-13 Tom Tromey <tromey@redhat.com>
15568
15569 * cli/cli-setshow.c (do_set_command): Update.
15570 * defs.h (deprecated_set_hook): Remove.
15571 * top.c (deprecated_set_hook): Remove.
15572
15573 2014-01-13 Pedro Alves <palves@redhat.com>
15574
15575 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15576 the tracepoint if the PC is a pseudo-register.
15577
15578 2014-01-13 Tom Tromey <tromey@redhat.com>
15579
15580 * defs.h (XCALLOC): Remove.
15581 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15582 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15583 * dwarf2loc.c (allocate_piece_closure): Likewise.
15584 * elfread.c (elf_symfile_segments): Likewise.
15585 (elf_symfile_segments): Likewise.
15586 * gdbtypes.c (copy_type_recursive): Likewise.
15587 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15588 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15589 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15590 XCALLOC.
15591 * mt-tdep.c (mt_gdbarch_init): Likewise.
15592 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15593 XCALLOC.
15594 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15595 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15596 * registry.c (registry_alloc_data): Likewise.
15597 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15598 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15599 * serial.c (serial_fdopen_ops): Likewise.
15600 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15601 XCALLOC.
15602 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15603 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15604 not XCALLOC.
15605
15606 2014-01-13 Tom Tromey <tromey@redhat.com>
15607
15608 * defs.h (XMALLOC): Remove.
15609 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15610 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15611 * cli-out.c (struct ui_out *): Likewise.
15612 * cli/cli-dump.c (add_dump_command): Likewise.
15613 (add_dump_command): Likewise.
15614 * complaints.c (get_complaints): Likewise.
15615 (find_complaint): Likewise.
15616 * dwarf2-frame.c (execute_cfa_program): Likewise.
15617 * dwarf2read.c (abbrev_table_read_table): Likewise.
15618 * gdbarch.sh: Likewise.
15619 * gdbarch.c: Rebuild.
15620 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15621 * interps.c (interp_new): Likewise.
15622 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15623 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15624 * mi/mi-console.c (mi_console_file_new): Likewise.
15625 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15626 * mi/mi-out.c (mi_out_new): Likewise.
15627 * mi/mi-parse.c (mi_parse): Likewise.
15628 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15629 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15630 * observer.c (xalloc_observer_list_node): Likewise.
15631 * regcache.c (regcache_xmalloc_1): Likewise.
15632 * reggroups.c (reggroup_new): Likewise.
15633 (_initialize_reggroup): Likewise.
15634 * registry.c (register_data_with_cleanup): Likewise.
15635 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15636 * ser-base.c (serial_ttystate): Likewise.
15637 * ser-mingw.c (make_pipe_state): Likewise.
15638 * ser-pipe.c (pipe_open): Likewise.
15639 * serial.c (serial_open): Likewise.
15640 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15641 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15642 (tui_alloc_win_info): Likewise.
15643 (tui_add_content_elements): Likewise.
15644 * tui/tui-file.c (tui_file_new): Likewise.
15645 * tui/tui-out.c (tui_out_new): Likewise.
15646 * ui-file.c (mem_file_new): Likewise.
15647 * ui-out.c (push_level): Likewise.
15648 (make_cleanup_ui_out_end): Likewise.
15649 (append_header_to_list): Likewise.
15650 (ui_out_new): Likewise.
15651 * user-regs.c (user_reg_add_builtin): Likewise.
15652
15653 2014-01-13 Tom Tromey <tromey@redhat.com>
15654
15655 * defs.h (XZALLOC): Remove.
15656 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15657 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15658 (get_ada_tasks_inferior_data): Likewise.
15659 * auto-load.c (get_auto_load_pspace_data): Likewise.
15660 * auxv.c (get_auxv_inferior_data): Likewise.
15661 * bfd-target.c (target_bfd_reopen): Likewise.
15662 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15663 (deprecated_insert_raw_breakpoint): Likewise.
15664 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15665 * corelow.c (core_open): Likewise.
15666 * darwin-nat.c (darwin_check_new_threads): Likewise.
15667 (darwin_attach_pid): Likewise.
15668 * dummy-frame.c (dummy_frame_push): Likewise.
15669 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15670 * dwarf2loc.c (allocate_piece_closure): Likewise.
15671 * elfread.c (elf_symfile_segments): Likewise.
15672 * eval.c (ptrmath_type_p): Likewise.
15673 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15674 * gdbtypes.c (alloc_type_arch): Likewise.
15675 (alloc_type_instance): Likewise.
15676 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15677 * inf-child.c (inf_child_can_use_agent): Likewise.
15678 * inflow.c (get_inflow_inferior_data): Likewise.
15679 * infrun.c (save_infcall_suspend_state): Likewise.
15680 * jit.c (jit_reader_load): Likewise.
15681 (get_jit_objfile_data): Likewise.
15682 (get_jit_program_space_data): Likewise.
15683 (jit_object_open_impl): Likewise.
15684 (jit_symtab_open_impl): Likewise.
15685 (jit_block_open_impl): Likewise.
15686 (jit_frame_sniffer): Likewise.
15687 * linux-fork.c (add_fork): Likewise.
15688 * maint.c (make_command_stats_cleanup): Likewise.
15689 * objfiles.c (get_objfile_pspace_data): Likewise.
15690 * opencl-lang.c (struct lval_closure): Likewise.
15691 * osdata.c (osdata_start_osdata): Likewise.
15692 * progspace.c (new_address_space): Likewise.
15693 (add_program_space): Likewise.
15694 * remote-sim.c (get_sim_inferior_data): Likewise.
15695 * sh-tdep.c (sh_gdbarch_init): Likewise.
15696 * skip.c (Ignore): Likewise.
15697 (skip_delete_command): Likewise.
15698 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15699 (library_list_start_library): Likewise.
15700 (solib_aix_current_sos): Likewise.
15701 * solib-darwin.c (get_darwin_info): Likewise.
15702 (darwin_current_sos): Likewise.
15703 * solib-dsbt.c (get_dsbt_info): Likewise.
15704 * solib-ia64-hpux.c (new_so_list): Likewise.
15705 (ia64_hpux_get_solib_linkage_addr): Likewise.
15706 * solib-spu.c (append_ocl_sos): Likewise.
15707 (spu_current_sos): Likewise.
15708 * solib-svr4.c (get_svr4_info): Likewise.
15709 (svr4_keep_data_in_core): Likewise.
15710 (library_list_start_library): Likewise.
15711 (svr4_default_sos): Likewise.
15712 (svr4_read_so_list): Likewise.
15713 * solib-target.c (library_list_start_library): Likewise.
15714 (solib_target_current_sos): Likewise.
15715 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15716 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15717 * symfile.c (default_symfile_segments): Likewise.
15718 * target-descriptions.c (tdesc_data_init): Likewise.
15719 (tdesc_create_reg): Likewise.
15720 (struct tdesc_type *): Likewise.
15721 (tdesc_create_vector): Likewise.
15722 (tdesc_set_struct_size): Likewise.
15723 (struct tdesc_type *): Likewise.
15724 (tdesc_free_feature): Likewise.
15725 (tdesc_create_feature): Likewise.
15726 * windows-nat.c (windows_add_thread): Likewise.
15727 (windows_make_so): Likewise.
15728 * xml-support.c (gdb_xml_body_text): Likewise.
15729 (gdb_xml_create_parser_and_cleanup): Likewise.
15730 (xml_process_xincludes): Likewise.
15731 * xml-syscall.c (allocate_syscalls_info): Likewise.
15732 (syscall_create_syscall_desc): Likewise.
15733
15734 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15735
15736 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15737 function, with code from i386_stap_parse_special_token.
15738 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15739 (i386_stap_parse_special_token): Move code to the two functions
15740 above; simplify it.
15741
15742 2014-01-09 Pedro Alves <palves@redhat.com>
15743 Hui Zhu <hui@codesourcery.com>
15744
15745 PR gdb/16101
15746 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15747 bp_err_string. Don't mark the location shlib_disabled if the
15748 error thrown wasn't a generic or memory error. Catch errors
15749 thrown while inserting breakpoints in overlayed code. Output
15750 error message of software breakpoints.
15751 * remote.c (remote_insert_breakpoint): If this breakpoint has
15752 target-side commands but this stub doesn't support Z0 packets,
15753 throw NOT_SUPPORTED_ERROR error.
15754 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15755 * target.h (target_insert_breakpoint): Extend comment.
15756 (target_insert_hw_breakpoint): Add comment.
15757
15758 2014-01-08 Pedro Alves <palves@redhat.com>
15759
15760 * remote.c (remote_add_thread): Add threads silently if starting
15761 up.
15762 (remote_notice_new_inferior): If in all-stop, and starting up,
15763 don't call notice_new_inferior.
15764 (get_current_thread): New function, factored out from ...
15765 (add_current_inferior_and_thread): ... this. Adjust.
15766 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15767 found any thread, then select the remote's current thread as GDB's
15768 current thread too.
15769
15770 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15771
15772 * NEWS: Create a new section for the next release branch.
15773 Rename the section of the current branch, now that it has
15774 been cut.
15775
15776 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15777
15778 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15779 * version.in: Bump version to 7.7.50.DATE-cvs.
15780
15781 2014-01-08 Yao Qi <yao@codesourcery.com>
15782
15783 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15784 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15785 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15786
15787 2014-01-08 Yao Qi <yao@codesourcery.com>
15788
15789 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15790 return value of bfd_get_filename to symbol_file_add_from_bfd.
15791
15792 2014-01-08 Pierre Muller <muller@sourceware.org>
15793
15794 Fix PR16201.
15795 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15796 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15797 to prim_record_mininal_symbol_and_info.
15798 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15799 in call to prim_record_minimal_symbol_and_info.
15800 (read_pe_exported_syms): Set index field of section_data.
15801
15802 2014-01-07 Andrew Pinski <apinski@cavium.com>
15803
15804 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15805 * features/aarch64.c: Regenerate.
15806
15807 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15808
15809 * target.c (return_null): Define.
15810 (update_current_target): Use it instead of return_zero for
15811 functions that return a pointer.
15812
15813 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15814
15815 * source.c (add_path): Fix check for duplicated paths in the previously
15816 included paths.
15817
15818 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15819
15820 * ada-lang.c: Remove duplicated include statements.
15821 * alphabsd-nat.c: Ditto.
15822 * amd64-darwin-tdep.c: Ditto.
15823 * amd64fbsd-nat.c: Ditto.
15824 * auto-load.c: Ditto.
15825 * ax-gdb.c: Ditto.
15826 * breakpoint.c: Ditto.
15827 * dbxread.c: Ditto.
15828 * fork-child.c: Ditto.
15829 * gdb_usleep.c: Ditto.
15830 * i386-darwin-tdep.c: Ditto.
15831 * i386fbsd-nat.c: Ditto.
15832 * infcmd.c: Ditto.
15833 * inferior.c: Ditto.
15834 * jv-lang.c: Ditto.
15835 * linux-nat.c: Ditto.
15836 * linux-tdep.c: Ditto.
15837 * m68kbsd-nat.c: Ditto.
15838 * m68klinux-nat.c: Ditto.
15839 * microblaze-tdep.c: Ditto.
15840 * mips-linux-tdep.c: Ditto.
15841 * mn10300-tdep.c: Ditto.
15842 * nto-tdep.c: Ditto.
15843 * opencl-lang.c: Ditto.
15844 * osdata.c: Ditto.
15845 * printcmd.c: Ditto.
15846 * regcache.c: Ditto.
15847 * remote-m32r-sdi.c: Ditto.
15848 * remote.c: Ditto.
15849 * symfile.c: Ditto.
15850 * symtab.c: Ditto.
15851 * tilegx-linux-nat.c: Ditto.
15852 * tilegx-tdep.c: Ditto.
15853 * tracepoint.c: Ditto.
15854 * valops.c: Ditto.
15855 * vaxbsd-nat.c: Ditto.
15856 * windows-nat.c: Ditto.
15857 * xtensa-tdep.c: Ditto.
15858
15859 2014-01-07 Yao Qi <yao@codesourcery.com>
15860
15861 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15862
15863 2014-01-07 Yao Qi <yao@codesourcery.com>
15864 Joel Brobecker <brobecker@adacore.com>
15865
15866 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15867 (pdc_write_regs): Likewise.
15868 (fetch_regs_kernel_thread): Likewise.
15869 (store_regs_kernel_thread): Likewise.
15870
15871 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15872
15873 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15874 tagged type objects to their actual type.
15875
15876 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15877
15878 * ada-valprint.c (print_field_values): Add "language" parameter.
15879 Update calls to print_field_values and print_variant_part.
15880 Pass new parameter "language" in call to val_print instead
15881 of "current_language". Replace call to ada_val_print by call
15882 to val_print.
15883 (print_variant_part): Add "language" parameter.
15884 (ada_val_print_struct_union): Update call to print_field_values.
15885
15886 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15887
15888 * ada-valprint.c (ui_memcpy): Delete.
15889 (ada_print_floating): Update documentation. Add empty line
15890 between between function documentation and implementation.
15891 Delete variable "buffer". Use ui_file_xstrdup in place of
15892 ui_file_put. Minor adjustments following this change.
15893
15894 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15895
15896 * ada-valprint.c (ada_val_print_string): New function,
15897 extracted from ada_val_print_array.
15898 (ada_val_print_array): Replace extracted code by call
15899 to ada_val_print_string followed by a return. Move
15900 "else" branch to the function's top block.
15901
15902 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15903
15904 * ada-valprint.c (ada_val_print_array): Move implementation
15905 down. Rename parameter "offset" and "val" into "offset_aligned"
15906 and "original_value" respectively. Add parameter "offset".
15907
15908 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15909
15910 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15911 re-organizing the code. Change the "???" message printed
15912 when target type is a TYPE_CODE_UNDEF into
15913 "<ref to undefined type>".
15914
15915 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15916
15917 * ada-valprint.c (print_record): Delete, implementation inlined...
15918 (ada_val_print_struct_union): ... here. Remove call to
15919 ada_check_typedef in inlined implementation.
15920
15921 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15922
15923 * ada-valprint.c (ada_val_print_gnat_array): New function,
15924 extracted from ada_val_print_1;
15925 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15926 (ada_val_print_flt, ada_val_print_struct_union)
15927 (ada_val_print_ref): Likewise.
15928 (ada_val_print_1): Delete variables i and elttype.
15929 Replace extracted-out code by call to corresponding
15930 new functions.
15931
15932 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15933
15934 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15935
15936 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15937
15938 * ada-valprint.c (ada_val_print_1): Replace calls to
15939 ada_val_print_1 by calls to val_print.
15940
15941 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15942
15943 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15944 Update calls to self accordingly. Replace calls to c_val_print
15945 by calls to val_print.
15946
15947 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15948
15949 * ada-valprint.c (print_record): Delete declaration.
15950 (adjust_type_signedness, ada_val_print_1): Likewise.
15951 (ada_val_print): Move function implementation down.
15952 (print_variant_part, print_field_values, print_record):
15953 Move function implementation up.
15954
15955 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15956
15957 * python/py-type.c (typy_get_name): New function.
15958 (type_object_getset): Add entry for attribute "name".
15959 * NEWS: Add entry mentioning this new attribute.
15960
15961 2014-01-07 Yao Qi <yao@codesourcery.com>
15962
15963 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15964 statement.
15965
15966 2014-01-07 Yao Qi <yao@codesourcery.com>
15967
15968 * gnu-nat.c (info_port_rights): Add qualifier const to
15969 argument args.
15970
15971 2014-01-07 Yao Qi <yao@codesourcery.com>
15972
15973 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15974
15975 2014-01-07 Yao Qi <yao@codesourcery.com>
15976
15977 * gnu-nat.c (make_inf) Update declaration.
15978 (make_inf): Make it static.
15979 (inf_set_traced): Likewise.
15980 (inf_port_to_thread, inf_task_died_status): Likewise.
15981
15982 2014-01-07 Yao Qi <yao@codesourcery.com>
15983
15984 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15985
15986 2014-01-07 Yao Qi <yao@codesourcery.com>
15987
15988 * gnu-nat.c (_initialize_gnu_nat): Declare.
15989
15990 2014-01-07 Yao Qi <yao@codesourcery.com>
15991
15992 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15993 'enum bfd_endian'.
15994 (struct gdbarch_info) <byte_order>: Change type to
15995 'enum bfd_endian'.
15996 <byte_order_for_code>: Likewise.
15997 * gdbarch.c, gdbarch.h: Regenerated.
15998
15999 2014-01-06 Sasha Smundak <asmundak@google.com>
16000
16001 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16002
16003 2014-01-06 Tom Tromey <tromey@redhat.com>
16004
16005 * doublest.c (convert_doublest_to_floatformat): Use const, not
16006 CONST.
16007 * somread.c (som_symtab_read): Likewise.
16008
16009 2014-01-07 Hui Zhu <hui@codesourcery.com>
16010
16011 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16012 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16013 (gdb_bfd_fopen): Ditto.
16014 (gdb_bfd_openr): Ditto.
16015 (gdb_bfd_openw): Ditto.
16016 (gdb_bfd_openr_iovec): Ditto.
16017 (gdb_bfd_fdopenr): Ditto.
16018 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16019 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16020 with xstrdup.
16021 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16022 with xstrdup.
16023 * symfile-mem.c (symbol_file_add_from_memory): Removed
16024 gdb_bfd_stash_filename.
16025
16026 2014-01-03 Doug Evans <dje@google.com>
16027
16028 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16029 output.
16030
16031 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16032
16033 Update year range in copyright notice of all files.
16034
16035 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16036
16037 * top.c (print_gdb_version): Set copyright year to 2014.
16038
16039 2014-01-01 Joel Brobecker <brobecker@adacore.com>
16040
16041 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16042
16043 For older changes see ChangeLog-2013.
16044 \f
16045 Local Variables:
16046 mode: change-log
16047 left-margin: 8
16048 fill-column: 74
16049 version-control: never
16050 coding: utf-8
16051 End:
This page took 0.485547 seconds and 3 git commands to generate.