MIPS: Keep the ISA bit in compressed code addresses
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-12-12 Maciej W. Rozycki <macro@codesourcery.com>
2 Maciej W. Rozycki <macro@mips.com>
3 Pedro Alves <pedro@codesourcery.com>
4
5 * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
6 remove `predefault' and `invalid_p' initializers.
7 (make_symbol_special): New architecture method.
8 (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
9 (objfile, symbol): New declarations.
10 * arch-utils.h (default_elf_make_msymbol_special): Remove
11 prototype.
12 (default_make_symbol_special): New prototype.
13 (default_adjust_dwarf2_addr): Likewise.
14 (default_adjust_dwarf2_line): Likewise.
15 * mips-tdep.h (mips_unmake_compact_addr): New prototype.
16 * arch-utils.c (default_elf_make_msymbol_special): Remove
17 function.
18 (default_make_symbol_special): New function.
19 (default_adjust_dwarf2_addr): Likewise.
20 (default_adjust_dwarf2_line): Likewise.
21 * dwarf2-frame.c (decode_frame_entry_1): Call
22 `gdbarch_adjust_dwarf2_addr'.
23 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
24 * dwarf2read.c (create_addrmap_from_index): Likewise.
25 (process_psymtab_comp_unit_reader): Likewise.
26 (add_partial_symbol): Likewise.
27 (add_partial_subprogram): Likewise.
28 (process_full_comp_unit): Likewise.
29 (read_file_scope): Likewise.
30 (read_func_scope): Likewise. Call `gdbarch_make_symbol_special'.
31 (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
32 (read_call_site_scope): Likewise.
33 (dwarf2_ranges_read): Likewise.
34 (dwarf2_record_block_ranges): Likewise.
35 (read_attribute_value): Likewise.
36 (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
37 (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
38 * elfread.c (elf_symtab_read): Don't call
39 `gdbarch_elf_make_msymbol_special' if unset.
40 * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
41 the ISA bit from the PC.
42 * mips-tdep.c (mips_unmake_compact_addr): New function.
43 (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
44 address appropriately.
45 (mips_make_symbol_special): New function.
46 (mips_pc_is_mips): Set the ISA bit before symbol lookup.
47 (mips_pc_is_mips16): Likewise.
48 (mips_pc_is_micromips): Likewise.
49 (mips_pc_isa): Likewise.
50 (mips_adjust_dwarf2_addr): New function.
51 (mips_adjust_dwarf2_line): Likewise.
52 (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
53 (mips_addr_bits_remove): Likewise.
54 (mips_skip_trampoline_code): Likewise.
55 (mips_write_pc): Don't set the ISA bit.
56 (mips_eabi_push_dummy_call): Likewise.
57 (mips_o64_push_dummy_call): Likewise.
58 (mips_gdbarch_init): Install `mips_make_symbol_special',
59 `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
60 handlers.
61 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
62 target-specific symbol address adjustments.
63 * gdbarch.h: Regenerate.
64 * gdbarch.c: Regenerate.
65
66 2014-12-12 Yao Qi <yao@codesourcery.com>
67
68 PR tdep/14261
69 * arm-tdep.c (arm_skip_prologue): Remove unused local variable
70 'skip_pc'. Remove code skipping prologue instructions, use
71 arm_analyze_prologue instead.
72 (arm_analyze_prologue): Stop the scanning for unrecognized
73 instruction when skipping prologue.
74
75 2014-12-12 Yao Qi <yao@codesourcery.com>
76
77 * arm-tdep.c (arm_instruction_restores_sp): New function.
78 (arm_analyze_prologue): Call arm_instruction_restores_sp.
79 (arm_in_function_epilogue_p): Move code to
80 arm_instruction_restores_sp.
81
82 2014-12-11 Doug Evans <xdje42@gmail.com>
83
84 * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
85
86 2014-12-11 Doug Evans <xdje42@gmail.com>
87
88 * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
89 (symbol *lookup_symbol_via_quick_fns): Ditto.
90 (lookup_symbol_in_objfile): Add forward decl.
91 (lookup_global_symbol_from_objfile): Simplify, call
92 lookup_symbol_in_objfile.
93
94 2014-12-11 Doug Evans <xdje42@gmail.com>
95
96 * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
97
98 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
99
100 PR breakpoints/17012
101 * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
102 it is marked as persistent.
103
104 2014-12-10 Doug Evans <xdje42@gmail.com>
105
106 * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
107 closer to its subroutines.
108
109 2014-12-10 Doug Evans <xdje42@gmail.com>
110
111 * cp-namespace.c (lookup_symbol_file): Move next to only caller.
112
113 2014-12-10 Doug Evans <xdje42@gmail.com>
114
115 * cp-namespace.c (cp_lookup_symbol_imports): Make static.
116 * cp-support.c (cp_lookup_symbol_imports): Delete.
117
118 2014-12-10 Simon Marchi <simon.marchi@ericsson.com>
119
120 PR gdb/17627
121 * target.c (cleanup_restore_target_terminal): New function.
122 (make_cleanup_restore_target_terminal): New function.
123 * target.h (make_cleanup_restore_target_terminal): New declaration.
124 * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
125
126 2014-12-08 Doug Evans <dje@google.com>
127
128 * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
129
130 2014-12-08 Doug Evans <dje@google.com>
131
132 * NEWS: Mention gdb.Objfile.owner.
133 * python/py-objfile.c (objfpy_get_owner): New function.
134 (objfile_getset): Add "owner".
135
136 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
137
138 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
139 (lookup_global_symbol_from_objfile): Call it.
140
141 2014-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
142
143 Remove const from struct objfile *.
144 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
145 symtab.c, symtab.h: In these files.
146
147 2014-12-05 Andreas From <andreas.from@ericsson.com>
148
149 * MAINTAINERS (Write After Approval): Add "Andreas From"
150
151 2014-12-05 Doug Evans <xdje42@gmail.com>
152
153 Revert:
154 PR symtab/17602
155 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
156
157 2014-12-04 Doug Evans <dje@google.com>
158
159 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
160 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
161 (objfile_getset): Add "add_separate_debug_file".
162
163 2014-12-04 Doug Evans <dje@google.com>
164
165 * NEWS: Mention gdb.Objfile.build_id.
166 * build-id.c (build_id_bfd_get): Make non-static.
167 * build-id.h (build_id_bfd_get): Add declaration.
168 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
169 (OBJFPY_REQUIRE_VALID): New macro.
170 (objfpy_get_build_id): New function.
171 (objfile_getset): Add "build_id".
172 * utils.c (make_hex_string): New function.
173 * utils.h (make_hex_string): Add declaration.
174
175 2014-12-04 Jan Kratochvil <jan.kratochvil@redhat.com>
176
177 * block.c (block_lookup_symbol_primary): New function.
178 * block.h (block_lookup_symbol_primary): New declaration.
179 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
180 Call block_lookup_symbol_primary.
181
182 2014-12-03 Maciej W. Rozycki <macro@codesourcery.com>
183
184 * tramp-frame.h (tramp_frame): Add `validate' member.
185 * tramp-frame.c (tramp_frame_start): Validate trampoline before
186 scanning.
187 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
188 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
189 (mips_linux_o32_sigframe): Initialize `validate' member.
190 (mips_linux_o32_rt_sigframe): Likewise.
191 (mips_linux_n32_rt_sigframe): Likewise.
192 (mips_linux_n64_rt_sigframe): Likewise.
193 (micromips_linux_o32_sigframe): New variable.
194 (micromips_linux_o32_rt_sigframe): Likewise.
195 (micromips_linux_n32_rt_sigframe): Likewise.
196 (micromips_linux_n64_rt_sigframe): Likewise.
197 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
198 (mips_linux_n32n64_sigframe_init): Likewise.
199 (mips_linux_sigframe_validate): New function.
200 (micromips_linux_sigframe_validate): Likewise.
201 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
202
203 2014-12-03 Ulrich Weigand  <uweigand@de.ibm.com>
204
205 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
206 * sparc-sol2-tdep.c: Include "regset.h".
207 (sparc32_sol2_supply_core_gregset): New function.
208 (sparc32_sol2_collect_core_gregset): Likewise.
209 (sparc32_sol2_supply_core_fpregset): Likewise.
210 (sparc32_sol2_collect_core_fpregset): Likewise.
211 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
212 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
213 tdep->fpregset/sizeof_fpregset.
214 * sparc64-sol2-tdep.c: Include "regset.h".
215 (sparc64_sol2_supply_core_gregset): New function.
216 (sparc64_sol2_collect_core_gregset): Likewise.
217 (sparc64_sol2_supply_core_fpregset): Likewise.
218 (sparc64_sol2_collect_core_fpregset): Likewise.
219 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
220 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
221 tdep->fpregset/sizeof_fpregset.
222
223 2014-12-03 Simon Marchi <simon.marchi@ericsson.com>
224
225 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
226 type.
227
228 2014-12-02 Doug Evans <dje@google.com>
229
230 * symtab.c (symbol_init_cplus_specific): Delete.
231 (symbol_set_demangled_name): Remove special c++ support.
232 (symbol_get_demangled_name, symbol_set_language): Ditto.
233 * symtab.h (struct cplus_specific): Delete.
234 (struct general_symbol_info) <language_specific>: Remove
235 cplus_specific.
236
237 2014-12-02 Doug Evans <dje@google.com>
238
239 PR symtab/17602
240 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
241
242 2014-12-02 Doug Evans <dje@google.com>
243
244 PR symtab/17591
245 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
246 to strip parameters.
247
248 2014-12-02 Doug Evans <dje@google.com>
249
250 * dwarf2read.c (peek_die_abbrev): Improve error message text.
251
252 2014-12-02 Doug Evans <dje@google.com>
253
254 * valops.c (do_search_struct_field): Remove remnant of Chill support.
255 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
256
257 2014-12-02 Simon Marchi <simon.marchi@ericsson.com>
258
259 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
260
261 2014-12-02 Nick Bull <nicholaspbull@gmail.com>
262
263 * NEWS: Mention new Python events.
264 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
265 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
266 (py-infevents.o): New rule.
267 * doc/observer.texi (inferior_call_pre, inferior_call_post)
268 (memory_changed, register_changed): New observers.
269 * infcall.c (call_function_by_hand): Notify observer before and
270 after inferior call.
271 * python/py-event.h (inferior_call_kind): New enum.
272 (emit_inferior_call_event): New prototype.
273 (emit_register_changed_event): New prototype.
274 (emit_memory_changed_event): New prototype.
275 * python/py-events.h (events_object): New registries
276 inferior_call, memory_changed and register_changed.
277 * python/py-evts.c (gdbpy_initialize_py_events): Add the
278 inferior_call, memory_changed and register_changed registries.
279 * python/py-infevents.c: New.
280 * python/py-inferior.c (python_on_inferior_call_pre)
281 (python_on_inferior_call_post, python_on_register_change)
282 (python_on_memory_change): New functions.
283 (gdbpy_initialize_inferior): Attach python handler to new
284 observers.
285 * python/py-infthread.c(gdbpy_create_ptid_object): New.
286 (thpy_get_ptid) Use gdbpy_create_ptid_object.
287 * python/python-internal.h:
288 (gdbpy_create_ptid_object)
289 (gdbpy_initialize_inferior_call_pre_event)
290 (gdbpy_initialize_inferior_call_post_event)
291 (gdbpy_initialize_register_changed_event)
292 (gdbpy_initialize_memory_changed_event): New prototypes.
293 * python/python.c (_initialize_python): Initialize new events.
294 * valops.c (value_assign): Notify register_changed observer.
295
296 2014-12-02 Doug Evans <dje@google.com>
297
298 * python/py-infthread.c: Whitespace fixes.
299
300 2014-12-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
301
302 * features/Makefile (s390-te-linux64-expedite): Replace
303 non-existant r14 and r15 by r14l and r15l, respectively.
304 * regformats/s390-te-linux64.dat: Regenerate.
305
306 2014-12-01 Simon Marchi <simon.marchi@ericsson.com>
307
308 * objfiles.c (allocate_objfile): Remove duplicate comment.
309
310 2014-12-01 Ulrich Weigand  <uweigand@de.ibm.com>
311
312 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
313 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
314 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
315 (supply_gregset, supply_fpregset): Remove.
316 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
317 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
318 and sizeof_gregset.
319
320 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
321
322 Add add-auto-load-scripts-directory.
323 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
324 * auto-load.c (add_auto_load_dir): New function.
325 (_initialize_auto_load): Install it.
326
327 2014-11-30 Martin Galvan <martin.galvan@tallertechnologies.com> (tiny patch, obvious)
328
329 Pushed by Joel Brobecker <brobecker@adacore.com>.
330 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
331
332 2014-11-29 Siva Chandra Reddy <sivachandra@google.com>
333
334 * eval.c (evaluate_subexp): Check that the thread stack temporaries
335 are not already enabled before enabling them.
336
337 2014-11-29 Yao Qi <yao@codesourcery.com>
338
339 * arm-tdep.c (arm_analyze_prologue): Move local variables
340 'framereg' and 'framesize' to inner block. Move code to
341 inner block too.
342
343 2014-11-28 Siva Chandra Reddy <sivachandra@google.com>
344
345 * eval.c: Include gdbthread.h.
346 (evaluate_subexp): Enable thread stack temporaries before
347 evaluating a complete expression and clean them up after the
348 evaluation is complete.
349 * gdbthread.h: Include common/vec.h.
350 (value_ptr): New typedef.
351 (VEC (value_ptr)): New vector type.
352 (value_vec): New typedef.
353 (struct thread_info): Add new fields stack_temporaries_enabled
354 and stack_temporaries.
355 (enable_thread_stack_temporaries)
356 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
357 (get_last_thread_stack_temporary)
358 (value_in_thread_stack_temporaries): Declare.
359 * gdbtypes.c (class_or_union_p): New function.
360 * gdbtypes.h (class_or_union_p): Declare.
361 * infcall.c (call_function_by_hand): Store return values of class
362 type as temporaries on stack.
363 * thread.c (enable_thread_stack_temporaries): New function.
364 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
365 (get_last_thread_stack_temporary): Likewise.
366 (value_in_thread_stack_temporaries): Likewise.
367 * value.c (value_force_lval): New function.
368 * value.h (value_force_lval): Declare.
369
370 2014-11-28 Pierre Muller <muller@sourceware.org>
371
372 Pushed by Joel Brobecker <brobecker@adacore.com>.
373 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
374 registers.
375
376 2014-11-28 Ulrich Weigand  <uweigand@de.ibm.com>
377
378 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
379 * config/sparc/linux.mh (NATDEPFILES): Likewise.
380 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
381 * m68klinux-nat.c (fetch_core_registers): Remove.
382 (linux_elf_core_fns): Remove.
383 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
384
385 2014-11-28 Joel Brobecker <brobecker@adacore.com>
386
387 * utils.c (gdb_realpath): Rework comment about handling on
388 Windows.
389
390 2014-11-28 Yao Qi <yao@codesourcery.com>
391
392 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
393 rename.
394 * gnulib/aclocal.m4: Re-generated.
395 * gnulib/config.in: Re-generated.
396 * gnulib/configure: Re-generated.
397 * gnulib/import/Makefile.am: Re-generated.
398 * gnulib/import/Makefile.in: Re-generated.
399 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
400 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
401 * import/basename-lgpl.c: New file.
402 * import/dirname-lgpl.c: New file.
403 * import/dirname.h: New file.
404 * import/m4/dirname.m4: New file.
405 * import/m4/malloc.m4: New file.
406 * import/m4/rename.m4: New file.
407 * import/m4/rmdir.m4: New file.
408 * import/m4/stdio_h.m4: New file.
409 * import/malloc.c: New file.
410 * import/rename.c: New file.
411 * import/rmdir.c: New file.
412 * import/same-inode.h: New file.
413 * import/stdio.c: New file.
414 * import/stdio.in.h: New file.
415 * import/stripslash.c: New file.
416
417 2014-11-28 Yao Qi <yao@codesourcery.com>
418
419 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
420 and realpath.
421 * config.in: Re-generated.
422 * configure: Re-generated.
423 * utils.c (gdb_realpath): Remove code calling realpath,
424 canonicalize_file_name and pathconf.
425 [!_WIN32]: Call canonicalize_file_name.
426
427 2014-11-28 Yao Qi <yao@codesourcery.com>
428
429 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
430 canonicalize-lgpl.
431 * aclocal.m4: Re-generated.
432 * config.in: Re-generated.
433 * configure: Re-generated.
434 * import/Makefile.am: Re-generated.
435 * import/Makefile.in: Re-generated.
436 * import/m4/gnulib-cache.m4: Re-generated.
437 * import/m4/gnulib-comp.m4: Re-generated.
438 * import/canonicalize-lgpl.c: New file.
439 * import/extra/snippet/_Noreturn.h: New file.
440 * import/m4/canonicalize.m4: New file.
441 * import/m4/double-slash-root.m4: New file.
442 * import/m4/eealloc.m4: New file.
443 * import/m4/malloca.m4: New file.
444 * import/m4/nocrash.m4: New file.
445 * import/m4/stdlib_h.m4: New file.
446 * import/malloca.c: New file.
447 * import/malloca.h: New file.
448 * import/malloca.valgrind: New file.
449
450 2014-11-28 Yao Qi <yao@codesourcery.com>
451
452 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
453 * config.in, configure: Regenerate.
454 * symfile.c (find_separate_debug_file_by_debuglink): Remove
455 code checking HAVE_LSTAT is defined.
456
457 2014-11-28 Yao Qi <yao@codesourcery.com>
458
459 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
460 lstat.
461 * gnulib/aclocal.m4: Re-generated.
462 * gnulib/config.in: Re-generated.
463 * gnulib/configure: Re-generated.
464 * gnulib/import/Makefile.am: Re-generated.
465 * gnulib/import/Makefile.in: Re-generated.
466 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
467 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
468 * gnulib/import/lstat.c: New file.
469 * gnulib/import/m4/lstat.m4: New file.
470
471 2014-11-28 Yao Qi <yao@codesourcery.com>
472
473 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
474 * config.in, configure: Re-generate.
475 * inf-child.c (inf_child_fileio_readlink): Don't check
476 HAVE_READLINK is defined.
477
478 2014-11-28 Yao Qi <yao@codesourcery.com>
479
480 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
481 * gnulib/aclocal.m4: Re-generated.
482 * gnulib/config.in: Likewise.
483 * gnulib/configure: Likewise.
484 * gnulib/import/Makefile.am: Likewise.
485 * gnulib/import/Makefile.in: Likewise.
486 * gnulib/import/m4/gnulib-cache.m4: Likewise.
487 * gnulib/import/m4/gnulib-comp.m4: Likewise.
488 * gnulib/import/dosname.h: New file
489 * gnulib/import/m4/largefile.m4: New file.
490 * gnulib/import/m4/readlink.m4: New file.
491 * gnulib/import/m4/stat.m4: New file.
492 * gnulib/import/readlink.c: New file.
493 * gnulib/import/stat.c: New file.
494
495 2014-11-26 Mark Wielaard <mjw@redhat.com>
496
497 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
498 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
499
500 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
501
502 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
503 that there can be only one stack adjustment in the prologue
504 with tests to detect specific disallowed stack adjustments.
505
506 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
507
508 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
509 adjustments.
510
511 2014-11-25 Sandra Loosemore <sandra@codesourcery.com>
512
513 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
514 the instruction as well as reading it from memory.
515 (nios2_match_add): New.
516 (nios2_match_sub): New.
517 (nios2_match_addi): New.
518 (nios2_match_orhi): New.
519 (nios2_match_stw): New.
520 (nios2_match_ldw): New.
521 (nios2_match_rdctl): New.
522 (enum branch_condition): New.
523 (nios2_match_branch): New.
524 (nios2_match_jmpi): New.
525 (nios2_match_calli): New.
526 (nios2_match_jmpr): New.
527 (nios2_match_callr): New.
528 (nios2_match_break): New.
529 (nios2_match_trap): New.
530 (nios2_in_epilogue_p): Rewrite to use new functions.
531 (nios2_analyze_prologue): Likewise.
532 (nios2_skip_prologue): Delete unused local limit_pc.
533 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
534 (nios2_get_next_pc): Rewrite to use new functions.
535
536 2014-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
537
538 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
539
540 2014-11-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
541
542 Pushed by Joel Brobecker <brobecker@adacore.com>
543 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
544 elements pi_len by the size of the elements before calling
545 vm_deallocate.
546 (inf_validate_task_sc): Likewise, and properly deallocate the
547 noise array.
548
549 2014-11-23 Doug Evans <xdje42@gmail.com>
550
551 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
552 number and name if present. All callers updated.
553 (dump_fn_fieldlists): Fix indentation of args.
554
555 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
556
557 * MAINTAINERS (Write After Approval): Add myself.
558
559 2014-11-23 Joel Brobecker <brobecker@adacore.com>
560
561 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
562 to a bp_call_dummy breakpoint type.
563
564 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
565
566 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
567 registering the signal handler.
568
569 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
570
571 * event-top.h (call_stdin_event_handler_again_p): Declare.
572 * event-top.c (call_stdin_event_handler_again_p): Define.
573 (stdin_event_handler): Use it.
574 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
575 handler again if there is pending input following a
576 start sequence.
577
578 2014-11-23 Patrick Palka <patrick@parcs.ath.cx>
579
580 Pushed by Joel Brobecker <brobecker@adacore.com>
581 * linux-fork.c (checkpoint_command): Print index of new
582 checkpoint in response message.
583
584 2014-11-23 Yao Qi <yao@codesourcery.com>
585
586 * valprint.c (read_string): Move local variables 'found_nul',
587 'chunksize' and 'limit' to inner scope. Update comments.
588
589 2014-11-22 Doug Evans <xdje42@gmail.com>
590
591 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
592 function comment.
593 (search_symbols): Fix comments and whitespace.
594
595 2014-11-22 Doug Evans <xdje42@gmail.com>
596
597 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
598
599 2014-11-21 Doug Evans <dje@google.com>
600
601 * psymtab.c (psymtab_search_name): Fix whitespace.
602
603 2014-11-21 Yao Qi <yao@codesourcery.com>
604
605 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
606 errno.
607 * gnulib/import/Makefile.am: Re-generated.
608 * gnulib/import/Makefile.in: Likewise.
609 * gnulib/import/m4/gnulib-cache.m4: Likewise.
610
611 2014-11-21 Yao Qi <yao@codesourcery.com>
612
613 * gdb_wchar.h: Include wchar.h and wctype.h.
614 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
615 include wchar.h and wctype.h.
616 Don't check HAVE_WCHAR_H.
617
618 2014-11-21 Yao Qi <yao@codesourcery.com>
619
620 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
621 and wctype-h.
622 * gnulib/import/Makefile.am: Re-generated.
623 * gnulib/import/Makefile.in: Likewise.
624 * gnulib/import/m4/gnulib-cache.m4: Likewise.
625
626 2014-11-21 Yao Qi <yao@codesourcery.com>
627
628 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
629 memchr.
630 * gnulib/import/Makefile.am: Re-generated.
631 * gnulib/import/Makefile.in: Likewise.
632 * gnulib/import/m4/gnulib-cache.m4: Likewise.
633
634 2014-11-21 Yao Qi <yao@codesourcery.com>
635
636 * common/common-defs.h: Include alloca.h
637 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
638 * configure: Re-generated.
639 * defs.h: Remove code handling alloca.
640 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
641 or not.
642
643 2014-11-21 Yao Qi <yao@codesourcery.com>
644
645 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
646 alloca.
647 * gnulib/import/Makefile.am: Re-generated.
648 * gnulib/import/Makefile.in: Likewise..
649 * gnulib/import/m4/gnulib-cache.m4: Likewise.
650
651 2014-11-21 Yao Qi <yao@codesourcery.com>
652
653 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
654 alphabetical order.
655
656 2014-11-21 Joel Brobecker <brobecker@adacore.com>
657
658 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
659 flag_unsigned if HIGH_BOUND is constant and negative.
660
661 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
662
663 PR breakpoints/10737
664 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
665 modifier from "struct gdbarch" when compiling without Expat (XML)
666 support.
667 (get_syscall_by_number): Likewise.
668 (get_syscall_by_name): Likewise.
669 (get_syscall_names): Likewise.
670
671 2014-11-20 Sergio Durigan Junior <sergiodj@redhat.com>
672
673 PR breakpoints/10737
674 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
675 set_xml_syscall_file_name to provide gdbarch.
676 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
677 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
678 * breakpoint.c (print_it_catch_syscall): Adjust call to
679 get_syscall_by_number to provide gdbarch.
680 (print_one_catch_syscall): Likewise.
681 (print_mention_catch_syscall): Likewise.
682 (print_recreate_catch_syscall): Likewise.
683 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
684 and get_syscall_by_name to provide gdbarch.
685 (catch_syscall_completer): Adjust call to get_syscall_names to
686 provide gdbarch.
687 * gdbarch.c: Regenerate.
688 * gdbarch.h: Likewise.
689 * gdbarch.sh: Forward declare "struct syscalls_info".
690 (xml_syscall_file): New variable.
691 (syscalls_info): Likewise.
692 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
693 set_xml_syscall_file_name to provide gdbarch.
694 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
695 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
696 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
697 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
698 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
699 * xml-syscall.c: Include gdbarch.h.
700 (set_xml_syscall_file_name): Accept gdbarch parameter.
701 (get_syscall_by_number): Likewise.
702 (get_syscall_by_name): Likewise.
703 (get_syscall_names): Likewise.
704 (my_gdb_datadir): Delete global variable.
705 (struct syscalls_info) <my_gdb_datadir>: New variable.
706 (struct syscalls_info) <sysinfo>: Rename variable to
707 "syscalls_info".
708 (sysinfo): Delete global variable.
709 (have_initialized_sysinfo): Likewise.
710 (xml_syscall_file): Likewise.
711 (sysinfo_free_syscalls_desc): Rename to...
712 (syscalls_info_free_syscalls_desc): ... this.
713 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
714 code to the new layout of "struct syscalls_info".
715 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
716 "syscalls_info".
717 (syscall_create_syscall_desc): Likewise.
718 (syscall_start_syscall): Likewise.
719 (syscall_parse_xml): Likewise.
720 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
721 (init_sysinfo): Rename to...
722 (init_syscalls_info): ...this. Add gdbarch as a parameter.
723 Adjust function to deal with gdbarch.
724 (xml_get_syscall_number): Delete parameter sysinfo. Accept
725 gdbarch as a parameter. Adjust code.
726 (xml_get_syscall_name): Likewise.
727 (xml_list_of_syscalls): Likewise.
728 (set_xml_syscall_file_name): Accept gdbarch as parameter.
729 (get_syscall_by_number): Likewise.
730 (get_syscall_by_name): Likewise.
731 (get_syscall_names): Likewise.
732 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
733 (get_syscall_by_number): Likewise.
734 (get_syscall_by_name): Likewise.
735 (get_syscall_names): Likewise.
736
737 2014-11-20 Doug Evans <xdje42@gmail.com>
738
739 Split struct symtab into two: struct symtab and compunit_symtab.
740 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
741 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
742 to "struct compunit_symtab *". All callers updated.
743 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
744 "struct symtab *" argument to "struct compunit_symtab *".
745 All callers updated.
746 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
747 result to "struct compunit_symtab *". All callers updated.
748 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
749 Change result to "struct compunit_symtab *". All callers updated.
750 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
751 hange type to "struct compunit_symtab *". All uses updated.
752 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
753 Change type to "struct compunit_symtab *". All uses updated.
754 * buildsym.c (struct buildsym_compunit): New struct.
755 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
756 (buildsym_compunit): New static global.
757 (finish_block_internal): Update to fetch objfile from
758 buildsym_compunit.
759 (make_blockvector): Delete objfile argument.
760 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
761 debugformat, producer.
762 (start_buildsym_compunit): New function.
763 (free_buildsym_compunit): Renamed from free_subfiles_list.
764 All callers updated.
765 (patch_subfile_names): Rewrite to use buildsym_compunit.
766 (get_compunit_symtab): New function.
767 (get_macro_table): Delete argument comp_dir. All callers updated.
768 (start_symtab): Change result to "struct compunit_symtab *".
769 All callers updated. Create the subfile of the main source file.
770 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
771 (reset_symtab_globals): Update.
772 (end_symtab_get_static_block): Update to use buildsym_compunit.
773 (end_symtab_without_blockvector): Rewrite.
774 (end_symtab_with_blockvector): Change result to
775 "struct compunit_symtab *". All callers updated.
776 Update to use buildsym_compunit. Don't set symtab->dirname,
777 instead set it in the compunit.
778 Explicitly make sure main symtab is first in its list.
779 Set debugformat, producer, blockvector, block_line_section, and
780 macrotable in the compunit.
781 (end_symtab_from_static_block): Change result to
782 "struct compunit_symtab *". All callers updated.
783 (end_symtab, end_expandable_symtab): Ditto.
784 (set_missing_symtab): Change symtab argument to
785 "struct compunit_symtab *". All callers updated.
786 (augment_type_symtab): Ditto.
787 (record_debugformat): Update to use buildsym_compunit.
788 (record_producer): Update to use buildsym_compunit.
789 * buildsym.h (struct subfile) <dirname>: Delete.
790 <producer, debugformat>: Delete.
791 <buildsym_compunit>: New member.
792 (get_compunit_symtab): Declare.
793 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
794 from primary_symtab. Change type to "struct compunit_symtab *".
795 All uses updated.
796 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
797 All callers updated.
798 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
799 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
800 symtab. Change type to "struct compunit_symtab *". All uses updated.
801 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
802 All callers updated.
803 (dw2_find_last_source_symtab): Ditto.
804 (dw2_lookup_symbol): Ditto.
805 (recursively_find_pc_sect_compunit_symtab): Renamed from
806 recursively_find_pc_sect_symtab. Change result to
807 "struct compunit_symtab *". All callers updated.
808 (dw2_find_pc_sect_compunit_symtab): Renamed from
809 dw2_find_pc_sect_symtab. Change result to
810 "struct compunit_symtab *". All callers updated.
811 (get_compunit_symtab): Renamed from get_symtab. Change result to
812 "struct compunit_symtab *". All callers updated.
813 (recursively_compute_inclusions): Change type of immediate_parent
814 argument to "struct compunit_symtab *". All callers updated.
815 (compute_compunit_symtab_includes): Renamed from
816 compute_symtab_includes. All callers updated. Rewrite to compute
817 includes of compunit_symtabs and not symtabs.
818 (process_full_comp_unit): Update to work with struct compunit_symtab.
819 (process_full_type_unit): Ditto.
820 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
821 (dwarf_decode_lines): Remove special case handling of main subfile.
822 (macro_start_file): Delete argument comp_dir. All callers updated.
823 (dwarf_decode_macro_bytes): Ditto.
824 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
825 use struct compunit_symtab.
826 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
827 * jit.c (finalize_symtab): Build compunit_symtab.
828 * jv-lang.c (get_java_class_symtab): Change result to
829 "struct compunit_symtab *". All callers updated.
830 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
831 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
832 comp_dir. Change type to "struct compunit_symtab *".
833 All uses updated.
834 (new_macro_table): Change comp_dir argument to cust,
835 "struct compunit_symtab *". All callers updated.
836 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
837 nr_primary_symtabs. All uses updated.
838 (count_symtabs_and_blocks): Update to handle compunits.
839 (report_command_stats): Update output, "primary symtabs" renamed to
840 "compunits".
841 * mdebugread.c (new_symtab): Change result to
842 "struct compunit_symtab *". All callers updated.
843 (parse_procedure): Change type of search_symtab argument to
844 "struct compunit_symtab *". All callers updated.
845 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
846 separate loop.
847 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
848 symtabs. Change type to "struct compunit_symtab *". All uses updated.
849 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
850 All uses updated.
851 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
852 All uses updated.
853 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
854 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
855 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
856 symtab. Change type to "struct compunit_symtab *". All uses updated.
857 * psymtab.c (psymtab_to_symtab): Change result type to
858 "struct compunit_symtab *". All callers updated.
859 (find_pc_sect_compunit_symtab_from_partial): Renamed from
860 find_pc_sect_symtab_from_partial. Change result type to
861 "struct compunit_symtab *". All callers updated.
862 (lookup_symbol_aux_psymtabs): Change result type to
863 "struct compunit_symtab *". All callers updated.
864 (find_last_source_symtab_from_partial): Ditto.
865 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
866 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
867 and macro_table from compunit.
868 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
869 type to "struct compunit_symtab *". All callers updated.
870 (debug_qf_lookup_symbol): Ditto.
871 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
872 debug_qf_find_pc_sect_symtab, change result type to
873 "struct compunit_symtab *". All callers updated.
874 * symfile.c (allocate_symtab): Delete objfile argument.
875 New argument cust.
876 (allocate_compunit_symtab): New function.
877 (add_compunit_symtab_to_objfile): New function.
878 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
879 Change result type to "struct compunit_symtab *". All uses updated.
880 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
881 Change result type to "struct compunit_symtab *". All uses updated.
882 * symmisc.c (print_objfile_statistics): Compute blockvector count in
883 separate loop.
884 (dump_symtab_1): Update test for primary source symtab.
885 (maintenance_info_symtabs): Update to handle compunit symtabs.
886 (maintenance_check_symtabs): Ditto.
887 * symtab.c (set_primary_symtab): Delete.
888 (compunit_primary_filetab): New function.
889 (compunit_language): New function.
890 (iterate_over_some_symtabs): Change type of arguments "first",
891 "after_last" to "struct compunit_symtab *". All callers updated.
892 Update to loop over symtabs in each compunit.
893 (error_in_psymtab_expansion): Rename symtab argument to cust,
894 and change type to "struct compunit_symtab *". All callers updated.
895 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
896 Change result type to "struct compunit_symtab *". All callers updated.
897 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
898 Change result type to "struct compunit_symtab *". All callers updated.
899 (find_pc_sect_line): Only loop over symtabs within selected compunit
900 instead of all symtabs in the objfile.
901 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
902 <compunit_symtab> New member.
903 <block_line_section>: Moved to compunit_symtab.
904 <locations_valid>: Ditto.
905 <epilogue_unwind_valid>: Ditto.
906 <macro_table>: Ditto.
907 <dirname>: Ditto.
908 <debugformat>: Ditto.
909 <producer>: Ditto.
910 <objfile>: Ditto.
911 <call_site_htab>: Ditto.
912 <includes>: Ditto.
913 <user>: Ditto.
914 <primary>: Delete
915 (SYMTAB_COMPUNIT): New macro.
916 (SYMTAB_BLOCKVECTOR): Update definition.
917 (SYMTAB_OBJFILE): Update definition.
918 (SYMTAB_DIRNAME): Update definition.
919 (struct compunit_symtab): New type. Common members among all source
920 symtabs within a compilation unit moved here. All uses updated.
921 (COMPUNIT_OBJFILE): New macro.
922 (COMPUNIT_FILETABS): New macro.
923 (COMPUNIT_DEBUGFORMAT): New macro.
924 (COMPUNIT_PRODUCER): New macro.
925 (COMPUNIT_DIRNAME): New macro.
926 (COMPUNIT_BLOCKVECTOR): New macro.
927 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
928 (COMPUNIT_LOCATIONS_VALID): New macro.
929 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
930 (COMPUNIT_CALL_SITE_HTAB): New macro.
931 (COMPUNIT_MACRO_TABLE): New macro.
932 (ALL_COMPUNIT_FILETABS): New macro.
933 (compunit_symtab_ptr): New typedef.
934 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
935
936 2014-11-20 Joel Brobecker <brobecker@adacore.com>
937
938 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
939 if the TYPE_CODE of range_type's base type does not match
940 the TYPE_CODE of encoding_type's base type.
941
942 2014-11-19 Joel Brobecker <brobecker@adacore.com>
943
944 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
945 it starts with '<'.
946
947 2014-11-19 Joel Brobecker <brobecker@adacore.com>
948
949 * ada-lang.c (ada_is_redundant_range_encoding): New function.
950 (ada_is_redundant_index_type_desc): New function.
951 (to_fixed_array_type): Ignore parallel XA type if redundant.
952
953 2014-11-19 Joel Brobecker <brobecker@adacore.com>
954
955 * ada-lang.c (constrained_packed_array_type): Set the length
956 of the return array as if both bounds where zero if that
957 returned array's index type is dynamic.
958
959 2014-11-19 Yao Qi <yao@codesourcery.com>
960
961 * config/i386/go32.mh (CC): Remove.
962
963 2014-11-18 Doug Evans <xdje42@gmail.com>
964
965 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
966 updated.
967
968 2014-11-18 Doug Evans <xdje42@gmail.com>
969
970 * buildsym.c (buildsym_objfile): New static global.
971 (buildsym_comp_dir): New static global.
972 (finish_block_internal): Delete arg objfile. All callers updated.
973 (finish_block): Delete arg objfile. All callers updated.
974 (start_subfile): Delete arg dirname. All callers updated.
975 (patch_subfile_names): Update buildsym_comp_dir.
976 (get_macro_table): Delete arg objfile. All callers updated.
977 (start_symtab): New arg objfile. All callers updated.
978 Rename arg dirname to comp_dir.
979 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
980 (end_symtab_get_static_block): Delete arg objfile. All callers
981 updated.
982 (end_symtab_without_blockvector): Ditto.
983 (end_symtab_with_blockvector): Ditto.
984 (end_symtab_from_static_block): Ditto.
985 (end_symtab): Ditto.
986 (end_expandable_symtab): Ditto.
987 (augment_type_symtab): Ditto.
988 * coffread.c (coff_start_symtab): New arg objfile. All callers
989 updated.
990
991 2014-11-18 Doug Evans <xdje42@gmail.com>
992
993 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
994 updated.
995
996 2014-11-18 Doug Evans <xdje42@gmail.com>
997
998 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
999 symtab.dirname updated to use it.
1000
1001 2014-11-18 Doug Evans <xdje42@gmail.com>
1002
1003 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
1004 symtab.objfile updated to use it.
1005
1006 2014-11-18 Doug Evans <xdje42@gmail.com>
1007
1008 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1009
1010 2014-11-18 Doug Evans <xdje42@gmail.com>
1011
1012 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1013 SYMBOL_OBJFILE.
1014 * findvar.c (default_read_var_value): Ditto.
1015 * jv-lang.c (add_class_symtab_symbol): Ditto.
1016 * parse.c (operator_check_standard): Ditto.
1017 * printcmd.c (address_info): Ditto.
1018 * symtab.c (fixup_symbol_section): Ditto.
1019 (skip_prologue_sal): Ditto.
1020 * tracepoint.c (scope_info): Ditto.
1021 * valops.c (find_function_in_inferior): Ditto.
1022 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1023 * python/py-symbol.c (set_symbol): Ditto.
1024
1025 2014-11-18 Doug Evans <xdje42@gmail.com>
1026
1027 * buildsym.c (main_subfile): New static global.
1028 (free_subfiles_list): New function.
1029 (start_symtab): Set main_subfile.
1030 (restart_symtab): Replace init of subfiles, current_subfile with
1031 call to free_subfiles_list.
1032 (watch_main_source_file_lossage): Use main_subfile.
1033 (reset_symtab_globals): Replace init of current_subfile with call
1034 to free_subfiles_list.
1035 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1036 functions, split out from ...
1037 (end_symtab_from_static_block): ... here. Rewrite to call them.
1038
1039 2014-11-18 Doug Evans <xdje42@gmail.com>
1040
1041 The result of symtab expansion is always a primary symtab.
1042 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1043 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1044 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1045 (psymtab_to_symtab): Add comment and assert.
1046 (map_matching_symbols_psymtab): Remove unnecessary test for
1047 non-primary symtab.
1048
1049 2014-11-15 Doug Evans <xdje42@gmail.com>
1050
1051 PR symtab/17559
1052 * symtab.c (find_pc_line_symtab): New function.
1053 * symtab.h (find_pc_line_symtab): Declare.
1054 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1055 find_pc_symtab.
1056 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1057 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1058 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1059 * tui/tui-win.c (make_visible_with_new_height): Ditto.
1060 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1061 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1062
1063 2014-11-15 Doug Evans <xdje42@gmail.com>
1064
1065 * symtab.c (expand_symtab_containing_pc): Renamed from
1066 find_pc_sect_symtab_via_partial. All callers updated.
1067
1068 2014-11-15 Yao Qi <yao@codesourcery.com>
1069
1070 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1071
1072 2014-11-14 Joel Brobecker <brobecker@adacore.com>
1073
1074 * common/common-defs.h: Move <stdarg.h> #include ahead of
1075 <stdio.h> #include.
1076
1077 2014-11-14 Pedro Alves <palves@redhat.com>
1078
1079 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1080 [!PHONY_ICONV] (gdb_iconv): New function.
1081 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1082
1083 2014-11-13 Doug Evans <dje@google.com>
1084
1085 PR symtab/17591
1086 * dwarf2read.c (find_slot_in_mapped_hash): Handle
1087 "(anonymous namespace)".
1088
1089 2014-11-13 Doug Evans <dje@google.com>
1090
1091 * dwarf2read.c (update_enumeration_type_from_children): Avoid
1092 infinite loop.
1093
1094 2014-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1095
1096 * NEWS (maint set target-async): Fix typo.
1097
1098 2014-11-12 Pedro Alves <palves@redhat.com>
1099
1100 * infrun.c (enum infwait_states, infwait_state): Delete.
1101
1102 2014-11-12 Pedro Alves <palves@redhat.com>
1103
1104 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1105 Rewrite stepping over a permanent breakpoint.
1106 (thread_still_needs_step_over, proceed): Don't set
1107 stepping_over_breakpoint for permanent breakpoints.
1108 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
1109 single-step breakpoints out of the target on hardware step
1110 targets.
1111 (process_event_stop_test): If stepping a permanent breakpoint
1112 doesn't hit the step-resume breakpoint, delete the step-resume
1113 breakpoint.
1114 (switch_back_to_stepped_thread): Also check if the stepped thread
1115 has advanced already on hardware step targets.
1116 (currently_stepping): Return true if the thread stepped a
1117 breakpoint.
1118
1119 2014-11-12 Pedro Alves <palves@redhat.com>
1120
1121 Mark locations as permanent, not the whole breakpoint.
1122 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1123 (mark_breakpoints_out): Don't mark permanent breakpoints as
1124 uninserted.
1125 (breakpoint_init_inferior): Use mark_breakpoints_out.
1126 (breakpoint_here_p): Adjust.
1127 (bpstat_stop_status, describe_other_breakpoints): Remove handling
1128 of permanent breakpoints.
1129 (make_breakpoint_permanent): Mark each location as permanent,
1130 instead of marking the breakpoint.
1131 (add_location_to_breakpoint): If the location is permanent, mark
1132 it as such, and as inserted.
1133 (init_breakpoint_sal): Don't make the breakpoint permanent here.
1134 (bp_location_compare, update_global_location_list): Adjust.
1135 (update_breakpoint_locations): Don't make the breakpoint permanent
1136 here.
1137 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1138 breakpoints.
1139 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1140 (struct bp_location) <permanent>: New field.
1141 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1142 reference to bp_permanent.
1143
1144 2014-11-12 Pedro Alves <palves@redhat.com>
1145
1146 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1147 * arch-utils.h (default_skip_permanent_breakpoint): New
1148 declaration.
1149 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1150 Install default_skip_permanent_breakpoint as default method.
1151 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1152 (i386_gdbarch_init): Don't install it.
1153 * infrun.c (resume): Assume there's always a
1154 gdbarch_skip_permanent_breakpoint implementation.
1155 * gdbarch.h, gdbarch.c: Regenerate.
1156
1157 2014-11-11 Daniel Colascione <dancol@dancol.org>
1158
1159 Warn about cross-PID-namespace debugging.
1160 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1161 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1162 * linux-thread-db.c (check_pid_namespace_match): New function.
1163 (thread_db_inferior_created): Call it.
1164
1165 2014-11-10 Doug Evans <xdje42@gmail.com>
1166
1167 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1168 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1169
1170 2014-11-10 Doug Evans <xdje42@gmail.com>
1171
1172 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1173
1174 2014-11-10 Doug Evans <xdje42@gmail.com>
1175
1176 PR symtab/17564
1177 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1178 (lookup_static_symbol): Move definition to new location and rewrite.
1179 (lookup_symbol_in_objfile): New function.
1180 (lookup_symbol_global_iterator_cb): Call it.
1181
1182 2014-11-10 Ulrich Weigand  <uweigand@de.ibm.com>
1183
1184 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1185
1186 2014-11-07 Pedro Alves <palves@redhat.com>
1187
1188 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1189 check if we did a "nexti" inside a prologue.
1190 * symtab.c (in_prologue): Delete function.
1191 * symtab.h (in_prologue): Delete declaration.
1192
1193 2014-11-06 Doug Evans <xdje42@gmail.com>
1194
1195 * symtab.h (lookup_global_symbol): Improve function comment.
1196
1197 2014-11-06 Doug Evans <xdje42@gmail.com>
1198
1199 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1200 All callers updated.
1201 * symtab.h (lookup_global_symbol): Update decl.
1202 (lookup_static_symbol): Move decl to better location.
1203
1204 2014-11-06 Doug Evans <xdje42@gmail.com>
1205
1206 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1207
1208 2014-11-06 Doug Evans <xdje42@gmail.com>
1209
1210 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1211 All callers updated.
1212 (lookup_symbol_in_all_objfiles): Renamed from
1213 lookup_symbol_aux_symtabs. All callers updated.
1214 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1215 All callers updated.
1216 (lookup_symbol_in_objfile_symtabs): Renamed from
1217 lookup_symbol_aux_objfile. All callers updated.
1218
1219 2014-11-06 Doug Evans <xdje42@gmail.com>
1220
1221 * symtab.c (lookup_symbol_in_block): Renamed from
1222 lookup_symbol_aux_block. All callers updated.
1223
1224 2014-11-06 Doug Evans <xdje42@gmail.com>
1225
1226 * symtab.c (lookup_static_symbol): Renamed from
1227 lookup_static_symbol_aux. All callers updated.
1228 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1229 All callers updated.
1230
1231 2014-11-06 Doug Evans <xdje42@gmail.com>
1232
1233 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1234 * block.c (block_lookup_symbol): Use it.
1235 * cp-support.c (make_symbol_overload_list_block): Use it.
1236 * symtab.c (iterate_over_symbols): Use it.
1237
1238 2014-11-06 Doug Evans <xdje42@gmail.com>
1239
1240 * symtab.c (lookup_block_symbol): Moved to ...
1241 * block.c (block_lookup_symbol): ... here and renamed.
1242 All callers updated.
1243 * block.h (block_lookup_symbol): Declare.
1244 * symtab.h (lookup_block_symbol): Delete.
1245
1246 2014-11-06 Doug Evans <xdje42@gmail.com>
1247
1248 * ada-lang.c (ada_make_symbol_completion_list): Use
1249 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1250 * symtab.c (lookup_objfile_from_block): Ditto.
1251
1252 2014-11-06 Doug Evans <xdje42@gmail.com>
1253
1254 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1255 TYPE_CODE_STRUCT.
1256
1257 2014-11-06 Doug Evans <xdje42@gmail.com>
1258
1259 * objfiles.c (get_objfile_arch): Constify.
1260 * objfiles.h (get_objfile_arch): Update prototype.
1261 * solib.c (solib_global_lookup): Fetch arch from objfile,
1262 not target_gdbarch.
1263
1264 2014-11-06 Sandra Loosemore <sandra@codesourcery.com>
1265
1266 * nios2-tdep.c (wild_insn): Delete.
1267 (profiler_insn, irqentry_insn): Delete.
1268 (nios2_match_sequence): Delete.
1269 (nios2_analyze_prologue): Update comments. Remove matching
1270 of obsolete profiler_insn and irqentry_insn sequences.
1271
1272 2014-11-05 Alan Modra <amodra@gmail.com>
1273
1274 * charset.c (convert_between_encodings): Shrink obstack using
1275 obstack_blank_fast.
1276 * minsyms.c (install_minimal_symbols): Likewise.
1277 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1278 to char* before doing pointer arithmetic.
1279
1280 2014-11-04 Simon Marchi <simon.marchi@ericsson.com>
1281
1282 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1283
1284 2014-11-04 Pedro Alves <palves@redhat.com>
1285
1286 * breakpoint.c (breakpoint_thread_match): Delete function.
1287 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1288
1289 2014-11-03 Siva Chandra Reddy <sivachandra@google.com>
1290
1291 PR c++/17494
1292 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1293 the method args also under EVAL_SKIP when evaluating method
1294 calls under EVAL_SKIP.
1295
1296 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1297
1298 * dwarf2loc.c (read_pieced_value): Do big endian
1299 processing only if gdb_regnum is not -1.
1300 (write_pieced_value): Ditto.
1301
1302 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1303
1304 * arm-linux-tdep.c (arm_linux_init_abi): Use
1305 info.byte_order_for_code to choose endianity of breakpoint
1306 instructions snippets.
1307
1308 2014-11-02 Victor Kamensky <victor.kamensky@linaro.org>
1309
1310 * arm-tdep.c (extract_arm_insn): Use
1311 gdbarch_byte_order_for_code to read arm instruction.
1312
1313 2014-11-02 Doug Evans <xdje42@gmail.com>
1314
1315 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1316
1317 2014-11-02 Doug Evans <xdje42@gmail.com>
1318
1319 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1320 main_subfile before returning.
1321
1322 2014-10-31 Doug Evans <xdje42@gmail.com>
1323
1324 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1325 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1326
1327 2014-10-31 Doug Evans <xdje42@gmail.com>
1328
1329 * valops.c (value_cast_pointers): Fix whitespace.
1330 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1331 Ditto.
1332
1333 2014-10-30 Doug Evans <dje@google.com>
1334
1335 * NEWS: Mention ability add attributes to gdb.Objfile and
1336 gdb.Progspace objects.
1337 * python/py-objfile.c (objfile_object): New member dict.
1338 (objfpy_dealloc): Py_XDECREF dict.
1339 (objfpy_initialize): Initialize dict.
1340 (objfile_getset): Add __dict__.
1341 (objfile_object_type): Set tp_dictoffset member.
1342 * python/py-progspace.c (progspace_object): New member dict.
1343 (pspy_dealloc): Py_XDECREF dict.
1344 (pspy_initialize): Initialize dict.
1345 (pspace_getset): Add __dict__.
1346 (pspace_object_type): Set tp_dictoffset member.
1347
1348 2014-10-30 Yao Qi <yao@codesourcery.com>
1349
1350 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1351 replace '\\' with '\\\\'.
1352
1353 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1354
1355 GDB 7.8.1 released.
1356
1357 2014-10-29 Pedro Alves <palves@redhat.com>
1358
1359 PR gdb/17408
1360 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1361 instead of assuming a thread with a stepping range is always
1362 stepping.
1363
1364 2014-10-29 Pedro Alves <palves@redhat.com>
1365
1366 PR python/17372
1367 * event-top.c (change_line_handler): Call
1368 gdb_rl_callback_handler_remove instead of
1369 rl_callback_handler_remove.
1370 (callback_handler_installed): New global.
1371 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1372 (gdb_rl_callback_handler_reinstall): New functions.
1373 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1374 gdb_rl_callback_handler_install instead of
1375 rl_callback_handler_remove and rl_callback_handler_install.
1376 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1377 instead of rl_callback_handler_remove.
1378 * event-top.h (gdb_rl_callback_handler_remove)
1379 (gdb_rl_callback_handler_install)
1380 (gdb_rl_callback_handler_reinstall): New declarations.
1381 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1382 cleanup function.
1383 (fetch_inferior_event): Install it.
1384 * top.c (gdb_readline_wrapper_line) Call
1385 gdb_rl_callback_handler_remove instead of
1386 rl_callback_handler_remove.
1387 (gdb_readline_wrapper_cleanup): Don't call
1388 rl_callback_handler_install.
1389
1390 2014-10-29 Pedro Alves <palves@redhat.com>
1391
1392 * event-top.c (command_line_handler): Clear the first byte of
1393 linebuffer, when it is first allocated.
1394
1395 2014-10-29 Pedro Alves <palves@redhat.com>
1396
1397 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1398 TRY_CATCH.
1399
1400 2014-10-29 Pedro Alves <palves@redhat.com>
1401
1402 PR tui/16138
1403 PR tui/17519
1404 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1405 (tui_allowed_p): Delete function.
1406 * tui/tui.c: Include "interps.h".
1407 (tui_enable): Don't use tui_allowed_p. Error out here with
1408 detailed error messages if the TUI is the top level interpreter,
1409 or if output is not a terminal. Use newterm instead of initscr,
1410 and error out if initializing the terminal fails. Also error out if
1411 the terminal doesn't support cursor addressing.
1412 * tui/tui.h (tui_allowed_p): Delete declaration.
1413
1414 2014-10-29 Joel Brobecker <brobecker@adacore.com>
1415
1416 * arm-tdep.c (arm_skip_stack_protector): Return early if
1417 address loaded by first "ldr" instruction does not have
1418 a corresponding minimal symbol. Update comment.
1419
1420 2014-10-29 Yao Qi <yao@codesourcery.com>
1421
1422 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1423 loaded address correctly of ldr instruction.
1424
1425 2014-10-28 Pedro Alves <palves@redhat.com>
1426
1427 PR gdb/12623
1428 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1429 field.
1430 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1431 thread's stepped_breakpoint field. Skip if reverse debugging.
1432 Add comment.
1433 (init_thread_stepping_state, handle_signal_stop): Clear the
1434 thread's stepped_breakpoint field.
1435
1436 2014-10-27 Pedro Alves <palves@redhat.com>
1437
1438 * remote.c (remote_thread_alive): New, factored out from ...
1439 (remote_thread_alive): ... this.
1440 (remote_update_thread_list): Bail out before deleting threads if
1441 the target returned an empty list, and, the current thread has a
1442 magic/fake ptid.
1443
1444 2014-10-27 Pedro Alves <palves@redhat.com>
1445
1446 * infrun.c (handle_signal_stop): Also skip handlers when a random
1447 signal arrives while handling a "stepi" or a "nexti". Set the
1448 thread's 'step_after_step_resume_breakpoint' flag.
1449
1450 2014-10-27 Luis Machado <lgustavo@codesourcery.com>
1451
1452 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1453 (arm_record_ld_st_imm_offset): Reimplement to cover all
1454 load/store cases for ARM opcode 010.
1455 (arm_record_ld_st_multiple): Reimplement to cover all
1456 load/store cases for ARM opcode 100.
1457
1458 2014-10-26 Doug Evans <xdje42@gmail.com>
1459
1460 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1461
1462 2014-10-26 Doug Evans <xdje42@gmail.com>
1463
1464 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1465 parameter "kind" to "block_index".
1466 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1467 "block_index".
1468 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1469
1470 2014-10-26 Doug Evans <xdje42@gmail.com>
1471
1472 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1473
1474 2014-10-26 Doug Evans <xdje42@gmail.com>
1475
1476 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1477 obstack_alloc.
1478
1479 2014-10-26 Doug Evans <xdje42@gmail.com>
1480
1481 * parser-defs.h (block_found): Move decl from here ...
1482 * symtab.h (block_found): ... to here.
1483
1484 2014-10-26 Doug Evans <xdje42@gmail.com>
1485
1486 * symtab.h (struct field_of_this_result): Fix typo in comment.
1487 (lookup_symbol_in_language): Move function comment here.
1488 (lookup_symbol): Improve function comment.
1489 (basic_lookup_symbol_nonlocal): Ditto.
1490 (lookup_symbol_static, lookup_symbol_global): Ditto.
1491 (lookup_symbol_aux_block): Ditto.
1492 (lookup_language_this): Add function comment.
1493 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1494 function comment.
1495 (lookup_block_symbol): Improve function comment.
1496 (lookup_struct): Fix capitalization in function comment.
1497 (lookup_transparent_type): Add function comment.
1498 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1499 Improve function comment.
1500 (lookup_objfile_from_block): Add function comment.
1501 * symtab.c (lookup_symbol_in_language): Update function comment.
1502 (lookup_symbol, lookup_language_this): Ditto.
1503 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1504 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1505 (basic_lookup_symbol_nonlocal): Ditto.
1506 (lookup_symbol_static, lookup_symbol_global): Ditto.
1507 (lookup_transparent_type, lookup_block_symbol): Ditto.
1508
1509 2014-10-25 Doug Evans <xdje42@gmail.com>
1510
1511 * symtab.c (types_info): Delete forward decl.
1512 (functions_info, variables_info, sources_info): Ditto.
1513 (_initialize_symtab): Rewrite forward decl to use
1514 initialize_file_ftype.
1515
1516 2014-10-25 Doug Evans <xdje42@gmail.com>
1517
1518 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1519
1520 2014-10-25 Doug Evans <xdje42@gmail.com>
1521
1522 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1523 of local var child_die.
1524
1525 2014-10-24 Don Breazeal <donb@codesourcery.com>
1526
1527 * infrun.c (follow_fork_inferior): Update fork message printing
1528 to use target_terminal_ours_for_output instead of
1529 target_terminal_ours, to use _() for all format strings, to print
1530 "vfork" instead of "fork" for vforks, and to add a detach message.
1531 (handle_vfork_child_exec_or_exit): Update message printing to use
1532 target_terminal_ours_for_output instead of target_terminal_ours, to
1533 use _() for all format strings, and to fix some formatting.
1534
1535 2014-10-24 Pedro Alves <palves@redhat.com>
1536
1537 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1538 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1539 * config/vax/vax.mh: Delete.
1540 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1541 obsolete configurations section.
1542 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1543 * vax-nat.c: Delete file.
1544
1545 2014-10-24 Pedro Alves <palves@redhat.com>
1546
1547 * NEWS (Removed targets): Add OS/arch column.
1548
1549 2014-10-24 Siva Chandra Reddy <sivachandra@google.com>
1550
1551 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1552 on the arg type of a constructor only if it is of reference type.
1553
1554 2014-10-23 Sandra Loosemore <sandra@codesourcery.com>
1555
1556 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1557 accessors and constants from nios2 opcodes update.
1558 (nios2_get_next_pc): Likewise.
1559
1560 2014-10-19 Doug Evans <xdje42@gmail.com>
1561
1562 * gdbthread.h (set_running): Fix comment.
1563 (set_executing, finish_thread_state): Fix comment.
1564
1565 2014-10-18 Doug Evans <xdje42@gmail.com>
1566
1567 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1568
1569 2014-10-17 Doug Evans <dje@google.com>
1570
1571 * NEWS: Mention new event gdb.clear_objfiles.
1572 * python/py-event.h (emit_clear_objfiles_event): Clear
1573 * python/py-events.h (events_object): New member clear_objfiles.
1574 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1575 event.
1576 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1577 emit clear_objfiles event.
1578 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1579 function.
1580 (emit_clear_objfiles_event): New function.
1581 (clear_objfiles): New event.
1582 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1583 Declare.
1584 * python/python.c (_initialize_python): Call
1585 gdbpy_initialize_clear_objfiles_event.
1586
1587 2014-10-17 Doug Evans <dje@google.com>
1588
1589 * NEWS: Mention new gdb.Objfile.progspace attribute.
1590 * python/py-objfile.c (objfpy_get_progspace): New function.
1591 (objfile_getset): New entry for "progspace".
1592
1593 2014-10-17 Pedro Alves <palves@redhat.com>
1594
1595 PR gdb/17471
1596 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1597 returns a copy of the input.
1598 (run_command_1, continue_command, step_1, jump_command)
1599 (signal_command, until_command, advance_command, finish_command)
1600 (attach_command): Adjust and install a cleanup to free the
1601 stripped args.
1602
1603 2014-10-17 Pedro Alves <palves@redhat.com>
1604
1605 PR gdb/17300
1606 * infcmd.c (continue_1): If continuing all threads in the
1607 foreground, make sure the inferior's terminal settings are put in
1608 effect.
1609
1610 2014-10-17 Pedro Alves <palves@redhat.com>
1611
1612 PR gdb/17472
1613 * annotate.c (annotate_breakpoints_invalid): Use
1614 target_terminal_our_for_output instead of target_terminal_ours.
1615 Give back the terminal to the target.
1616 (annotate_frames_invalid): Likewise.
1617
1618 2014-10-17 Pedro Alves <palves@redhat.com>
1619
1620 * target.c (enum terminal_state): New enum.
1621 (terminal_state): New global.
1622 (target_terminal_init): New function.
1623 (target_terminal_inferior): Skip if inferior already owns the
1624 terminal.
1625 (target_terminal_ours, target_terminal_ours_for_output): New
1626 functions.
1627 * target.h (target_terminal_init): Convert to function prototype.
1628 (target_terminal_ours_for_output): Convert to function prototype
1629 and tweak comment.
1630 (target_terminal_ours): Convert to function prototype and tweak
1631 comment.
1632 * windows-nat.c (do_initial_windows_stuff): Call
1633 target_terminal_init instead of child_terminal_init_with_pgrp.
1634
1635 2014-10-17 Pedro Alves <palves@redhat.com>
1636
1637 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1638 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1639 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1640 solib-osf.c.
1641 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1642 * ada-lang.h [__alpha__ && __osf__]
1643 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1644 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1645 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1646 GDB_OSABI_OSF1.
1647 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1648 files.
1649 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1650 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1651 * configure: Regenerate.
1652 * configure.ac: Remove references to osf.
1653 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1654 section. Remove all other references to osf.
1655 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1656 Remove all other references to osf.
1657 * dec-thread.c: Delete file.
1658 * defs.h (GDB_OSABI_OSF1): Delete.
1659 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1660 defined.
1661 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1662 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1663 Delete code.
1664 (unconditionally_kill_inferior)
1665 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1666 * solib-osf.c: Delete file.
1667
1668 2014-10-17 Pedro Alves <palves@redhat.com>
1669
1670 * remote.c (clear_threads_listing_context): Move higher up, out of
1671 the HAVE_LIBEXPAT guard.
1672
1673 2014-10-16 Tristan Gingold <gingold@adacore.com>
1674
1675 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1676 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1677 on amd64.
1678
1679 2014-10-15 Pedro Alves <palves@redhat.com>
1680
1681 * dec-thread.c (dec_thread_count_gdb_threads)
1682 (dec_thread_add_gdb_thread): Delete.
1683 (dec_thread_update_thread_list): Delete.
1684 (dec_thread_find_new_threads): Rename to ...
1685 (dec_thread_update_thread_list): ... this. Delete GDB-size
1686 threads that are no longer found in dec_thread_list.
1687 (resync_thread_list): Delete.
1688 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1689 resync_thread_list.
1690
1691 2014-10-15 Pedro Alves <palves@redhat.com>
1692
1693 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1694 * remote.c (remote_update_thread_list): Skip calling prune_threads
1695 if any thread listing method is supported, and instead walk over
1696 the set of remote threads listed, deleting those that are not
1697 found in GDB's thread list.
1698
1699 2014-10-15 Pedro Alves <palves@redhat.com>
1700
1701 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1702 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1703 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1704 (bsd_uthread_target): Adjust.
1705 * corelow.c (core_open): Adjust.
1706 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1707 (dec_thread_update_thread_list): New function.
1708 (init_dec_thread_ops): Adjust.
1709 * gdbthread.h (prune_threads): New declaration.
1710 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1711 (thread_db_update_thread_list): ... this. Call prune_threads.
1712 (init_thread_db_ops): Adjust.
1713 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1714 (procfs_update_thread_list): ... this. Call prune_threads.
1715 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1716 Adjust.
1717 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1718 (obsd_update_thread_list): ... this. Call prune_threads.
1719 (obsd_add_target): Adjust.
1720 * procfs.c (procfs_target): Adjust.
1721 (procfs_notice_thread): Update comment.
1722 (procfs_find_new_threads): Rename to ...
1723 (procfs_update_thread_list): ... this. Call prune_threads.
1724 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1725 comment.
1726 (ravenscar_wait): Adjust.
1727 (ravenscar_find_new_threads): Rename to ...
1728 (ravenscar_update_thread_list): ... this. Call prune_threads.
1729 (init_ravenscar_thread_ops): Adjust.
1730 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1731 (record_btrace_update_thread_list): ... this. Adjust comment.
1732 (init_record_btrace_ops): Adjust.
1733 * remote.c (remote_threads_info): Rename to ...
1734 (remote_update_thread_list): ... this. Call prune_threads.
1735 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1736 Adjust.
1737 * sol-thread.c (check_for_thread_db): Adjust.
1738 (sol_find_new_threads_callback): Rename to ...
1739 (sol_update_thread_list_callback): ... this.
1740 (sol_find_new_threads): Rename to ...
1741 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1742 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1743 * target-delegates.c: Regenerate.
1744 * target.c (target_find_new_threads): Rename to ...
1745 (target_update_thread_list): ... this.
1746 * target.h (struct target_ops): Rename to_find_new_threads field
1747 to to_update_thread_list.
1748 (target_find_new_threads): Rename to ...
1749 (target_update_thread_list): ... this.
1750 * thread.c (prune_threads): Make extern.
1751 (update_thread_list): Adjust.
1752
1753 2014-10-15 Pedro Alves <palves@redhat.com>
1754
1755 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1756 Add describing comment. Return -1 if the qL packet is not
1757 supported.
1758 (struct thread_item, thread_item_t): Move higher up in
1759 the file. Add comments.
1760 (struct threads_parsing_context): Move higher up in
1761 the file, add comments, and remote to ...
1762 (struct threads_listing_context): ... this.
1763 (remote_newthread_step): Don't add the thread to GDB's thread
1764 database here. Instead push it to the thread_listing_context
1765 list.
1766 (remote_find_new_threads): Rename to ...
1767 (remote_get_threads_with_ql): ... this. Add target_ops and
1768 targets_listing_context parameters. Pass down context.
1769 (start_thread): Adjust.
1770 (clear_threads_parsing_context): Rename to ...
1771 (clear_threads_listing_context): ... this.
1772 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1773 remote_threads_info.
1774 (remote_get_threads_with_qthreadinfo): Ditto.
1775 (remote_threads_info): Reimplement.
1776
1777 2014-10-15 Pedro Alves <palves@redhat.com>
1778
1779 * infrun.c (resume): Don't force displaced-stepping for all
1780 single-steps on software single-stepping archs.
1781
1782 2014-10-15 Pedro Alves <palves@redhat.com>
1783
1784 * breakpoint.c (single_step_breakpoints): Delete global.
1785 (insert_single_step_breakpoint): Adjust to store the breakpoint
1786 pointer in the current thread.
1787 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1788 (cancel_single_step_breakpoints): Delete functions.
1789 (breakpoint_has_location_inserted_here): Make extern.
1790 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1791 breakpoint list.
1792 * breakpoint.h (breakpoint_has_location_inserted_here): New
1793 declaration.
1794 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1795 (cancel_single_step_breakpoints): Remove declarations.
1796 * gdbthread.h (struct thread_control_state)
1797 <single_step_breakpoints>: New field.
1798 (delete_single_step_breakpoints)
1799 (thread_has_single_step_breakpoints_set)
1800 (thread_has_single_step_breakpoint_here): New declarations.
1801 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1802 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1803 (singlestep_pc): Delete globals.
1804 (infrun_thread_ptid_changed): Remove references to removed
1805 globals.
1806 (resume_cleanups): Delete the current thread's single-step
1807 breakpoints.
1808 (maybe_software_singlestep): Remove references to removed globals.
1809 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1810 delete_single_step_breakpoints.
1811 (init_wait_for_inferior): Remove references to removed globals.
1812 (delete_thread_infrun_breakpoints): Delete the thread's
1813 single-step breakpoints too.
1814 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1815 single-step breakpoints here.
1816 (delete_stopped_threads_single_step_breakpoints): New function.
1817 (adjust_pc_after_break): Adjust to use
1818 thread_has_single_step_breakpoints_set.
1819 (handle_inferior_event): Remove references to removed globals.
1820 Use delete_stopped_threads_single_step_breakpoints.
1821 (handle_signal_stop): Adjust to per-thread single-step
1822 breakpoints. Swap test order to do cheaper tests first.
1823 (switch_back_to_stepped_thread): Extend debug output. Remove
1824 references to removed globals.
1825 * record-full.c (record_full_wait_1): Adjust to per-thread
1826 single-step breakpoints.
1827 * thread.c (delete_single_step_breakpoints)
1828 (thread_has_single_step_breakpoints_set)
1829 (thread_has_single_step_breakpoint_here): New functions.
1830 (clear_thread_inferior_resources): Also delete the thread's
1831 single-step breakpoints.
1832
1833 2014-10-15 Pedro Alves <palves@redhat.com>
1834
1835 * thread.c (delete_thread_breakpoint): New function.
1836 (delete_step_resume_breakpoint)
1837 (delete_exception_resume_breakpoint): Use it.
1838 (delete_at_next_stop): New function.
1839 (clear_thread_inferior_resources): Use delete_at_next_stop.
1840
1841 2014-10-15 Pedro Alves <palves@redhat.com>
1842
1843 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1844 (breakpoint_inserted_here_p): ... here. Remove special case for
1845 software single-step breakpoints.
1846 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1847 (software_breakpoint_inserted_here_p): ... here. Remove special
1848 case for software single-step breakpoints.
1849 (bp_target_info_copy_insertion_state)
1850 (deprecated_insert_raw_breakpoint)
1851 (deprecated_remove_raw_breakpoint): Delete functions.
1852 * breakpoint.h (deprecated_insert_raw_breakpoint)
1853 (deprecated_remove_raw_breakpoint): Remove declarations.
1854
1855 2014-10-15 Pedro Alves <palves@redhat.com>
1856
1857 PR breakpoints/9649
1858 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1859 Delete array globals.
1860 (single_step_breakpoints): New global.
1861 (breakpoint_xfer_memory): Remove special handling for single-step
1862 breakpoints.
1863 (update_breakpoints_after_exec): Delete bp_single_step
1864 breakpoints.
1865 (detach_breakpoints): Remove special handling for single-step
1866 breakpoints.
1867 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1868 (bpstat_stop_status): Add comment.
1869 (bpstat_what, bptype_string, print_one_breakpoint_location)
1870 (adjust_breakpoint_address, init_bp_location): Handle
1871 bp_single_step.
1872 (new_single_step_breakpoint): New function.
1873 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1874 handling for single-step breakpoints.
1875 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1876 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1877 Rewrite.
1878 (detach_single_step_breakpoints, find_single_step_breakpoint):
1879 Delete functions.
1880 (breakpoint_has_location_inserted_here): New function.
1881 (single_step_breakpoint_inserted_here_p): Rewrite.
1882 * breakpoint.h: Remove FIXME.
1883 (enum bptype) <bp_single_step>: New enum value.
1884 (insert_single_step_breakpoint): Update comment.
1885 * infrun.c (resume_cleanups)
1886 (delete_step_thread_step_resume_breakpoint): Remove single-step
1887 breakpoints.
1888 (fetch_inferior_event): Install a cleanup that removes infrun
1889 breakpoints.
1890 (switch_back_to_stepped_thread) <expect thread advanced also>:
1891 Clear step-over info.
1892
1893 2014-10-15 Pedro Alves <palves@redhat.com>
1894
1895 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1896 (delete_thread_infrun_breakpoints): New function, with parts
1897 salvaged from delete_step_resume_breakpoint_callback.
1898 (delete_step_thread_step_resume_breakpoint): Delete.
1899 (for_each_just_stopped_thread_callback_func): New typedef.
1900 (for_each_just_stopped_thread): New function.
1901 (delete_just_stopped_threads_infrun_breakpoints): New function.
1902 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1903 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1904 ... this. Adjust.
1905 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1906
1907 2014-10-15 Pedro Alves <palves@redhat.com>
1908
1909 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1910 trying to step past a non-steppable watchpoint.
1911 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1912 field.
1913 * infrun.c (struct step_over_info): Add new field
1914 'nonsteppable_watchpoint_p' and adjust comments.
1915 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1916 Adjust.
1917 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1918 (stepping_past_nonsteppable_watchpoint): New function.
1919 (step_over_info_valid_p): Also return true if stepping past a
1920 nonsteppable watchpoint.
1921 (proceed): Adjust call to set_step_over_info. Remove reference to
1922 init_infwait_state.
1923 (init_wait_for_inferior): Remove reference to init_infwait_state.
1924 (waiton_ptid): Delete global.
1925 (struct execution_control_state)
1926 <stepped_after_stopped_by_watchpoint>: Delete field.
1927 (wait_for_inferior, fetch_inferior_event): Always pass
1928 minus_one_ptid to target_wait.
1929 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1930 field.
1931 (init_infwait_state): Delete function.
1932 (handle_inferior_event): Remove infwait_state handling.
1933 (handle_signal_stop) <watchpoints handling>: Adjust after
1934 stepped_after_stopped_by_watchpoint removal. Don't remove
1935 breakpoints here nor set infwait_state. Set the thread's
1936 stepping_over_watchpoint flag, and call keep_going instead.
1937 (keep_going): Handle stepping_over_watchpoint. Adjust
1938 set_step_over_info calls.
1939 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1940 function.
1941
1942 2014-10-15 Pedro Alves <palves@redhat.com>
1943
1944 * infrun.c (step_over_info_valid_p): New function.
1945 (resume): Use step_over_info_valid_p instead of checking the
1946 threads's trap_expected flag.
1947
1948 2014-10-15 Doug Evans <dje@google.com>
1949 Walfred Tedeschi <walfred.tedeschi@intel.com>
1950
1951 PR python/17364
1952 * python/lib/gdb/__init__.py (packages): Add "printer".
1953 * python/lib/gdb/command/bound_registers.py: Moved to ...
1954 * python/lib/gdb/printer/bound_registers.py: ... here.
1955 Add printer to global set of builtin printers. Rename printer from
1956 "bound" to "mpx_bound128".
1957 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1958 registered as global "builtin" printer.
1959 (add_builtin_pretty_printer): New function.
1960 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1961 gdb/printer/__init__.py.
1962
1963 2014-10-15 Iain Buclaw <ibuclaw@gdcproject.org>
1964
1965 * Makefile.in (SFILES): Remove d-support.c.
1966 (COMMON_OBS): Remove d-support.o.
1967 * d-lang.h (d_parse_symbol): Remove declaration.
1968 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1969 * d-support.c: Remove file.
1970
1971 2014-10-15 Andreas Arnez <arnez@linux.vnet.ibm.com>
1972
1973 * gdb/infrun.c (process_event_stop_test): Apply
1974 gdbarch_addr_bits_remove to longjmp resume address.
1975
1976 2014-10-15 Pedro Alves <palves@redhat.com>
1977
1978 * regformats/microblaze.dat: Delete file.
1979
1980 2014-10-15 Ajit Agarwal <ajitkum@xilinx.com>
1981
1982 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1983 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1984
1985 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1986
1987 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1988 as non-trivial.
1989
1990 2014-10-15 Siva Chandra Reddy <sivachandra@google.com>
1991
1992 PR c++/13403
1993 PR c++/15154
1994 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1995 with qualified args.
1996
1997 2014-10-14 Joel Brobecker <brobecker@adacore.com>
1998
1999 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2000 of the case where the second operand is a pointer.
2001 <BINOP_SUB>: Likewise.
2002
2003 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2004
2005 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2006 only if it is not NULL.
2007 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2008 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2009 (struct probe_ops) <clear_semaphore>: Likewise.
2010 * tracepoint.c (start_tracing): Call set_semaphore only if it is
2011 not NULL.
2012 (stop_tracing): Likewise, for clear_semaphore.
2013
2014 2014-10-14 Sergio Durigan Junior <sergiodj@redhat.com>
2015
2016 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2017 using language_c, instead of current_language.
2018
2019 2014-10-13 Doug Evans <dje@google.com>
2020
2021 * python/py-objfile.c (objfpy_initialize): New function.
2022 (objfpy_new, objfile_to_objfile_object): Call it.
2023 * python/py-progspace.c (pspy_initialize): New function.
2024 (pspy_new, pspace_to_pspace_object): Call it.
2025
2026 2014-10-13 Miroslav Franc <mfranc@redhat.com>
2027 Jan Kratochvil <jan.kratochvil@redhat.com>
2028
2029 Fix "save breakpoints" for "catch" command.
2030 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2031 newline.
2032
2033 2014-10-12 Miroslav Franc <mfranc@redhat.com>
2034
2035 Fix "save breakpoints" for "disable $bpnum" command.
2036 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2037
2038 2014-10-10 Pedro Alves <palves@redhat.com>
2039
2040 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2041 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2042 (HFILES_NO_SRCDIR): Remove solib-irix.h.
2043 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2044 and been removed.
2045 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2046 * configure.ac: Remove references to IRIX.
2047 * configure.host: Add *-*-irix* to the obsolete hosts section.
2048 Remove all other references to irix.
2049 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2050 Delete files.
2051
2052 2014-10-10 Ajit Agarwal <ajitkum@xilinx.com>
2053
2054 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2055 isn't valid, release the tdesc arch data and return NULL.
2056
2057 2014-10-10 Pedro Alves <palves@redhat.com>
2058
2059 * linux-tdep.c: Include observer.h.
2060 (linux_inferior_data): New global.
2061 (struct linux_info): New structure.
2062 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2063 (get_linux_inferior_data): New functions.
2064 (linux_vsyscall_range): Rename to ...
2065 (linux_vsyscall_range_raw): ... this.
2066 (linux_vsyscall_range): New function; handles caching.
2067 (_initialize_linux_tdep): Register linux_inferior_data. Install
2068 inferior_exit and inferior_appeared observers.
2069
2070 2014-10-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2071 Pedro Alves <palves@redhat.com>
2072
2073 PR symtab/14466
2074 * solib-svr4.c (svr4_read_so_list): Rename to ...
2075 (svr4_current_sos_1): ... this and change the function comment.
2076 (svr4_current_sos): New function.
2077
2078 2014-10-10 Pedro Alves <palves@redhat.com>
2079
2080 * arch-utils.c (default_vsyscall_range): New function.
2081 * arch-utils.h (default_vsyscall_range): New declaration.
2082 * gdbarch.sh (vsyscall_range): New hook.
2083 * gdbarch.h, gdbarch.c: Regenerate.
2084 * linux-tdep.c (linux_vsyscall_range): New function.
2085 (linux_init_abi): Install linux_vsyscall_range as
2086 vsyscall_range gdbarch hook.
2087 * memrange.c (address_in_mem_range): New function.
2088 * memrange.h (address_in_mem_range): New declaration.
2089 * symfile-mem.c (find_vdso_size): Delete function.
2090 (add_vsyscall_page): Use gdbarch_vsyscall_range.
2091
2092 2014-10-10 Pedro Alves <palves@redhat.com>
2093
2094 * infrun.c (normal_stop): Fix typo in comment.
2095
2096 2014-10-09 Sergio Durigan Junior <sergiodj@redhat.com>
2097
2098 PR tdep/9390
2099 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2100 typo when using logical AND to determine instruction type.
2101
2102 2014-10-09 Yao Qi <yao@codesourcery.com>
2103
2104 * infrun.c (handle_signal_stop): Remove local variable
2105 'printed'.
2106
2107 2014-10-08 Stan Shebs <stan@codesourcery.com>
2108
2109 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2110
2111 2014-10-08 Gary Benson <gbenson@redhat.com>
2112
2113 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2114
2115 2014-10-08 Gary Benson <gbenson@redhat.com>
2116
2117 * common/common-defs.h: Include common-exceptions.h.
2118 * exceptions.h: Do not include common-exceptions.h.
2119
2120 2014-10-08 Gary Benson <gbenson@redhat.com>
2121
2122 * common/common-defs.h: Include cleanups.h.
2123 * common/common-exceptions.c: Do not include cleanups.h.
2124 * utils.h: Likewise.
2125
2126 2014-10-08 Gary Benson <gbenson@redhat.com>
2127
2128 * ada-lang.c: Do not include exceptions.h.
2129 * ada-valprint.c: Likewise.
2130 * amd64-tdep.c: Likewise.
2131 * auto-load.c: Likewise.
2132 * block.c: Likewise.
2133 * break-catch-throw.c: Likewise.
2134 * breakpoint.c: Likewise.
2135 * btrace.c: Likewise.
2136 * c-lang.c: Likewise.
2137 * cli/cli-cmds.c: Likewise.
2138 * cli/cli-interp.c: Likewise.
2139 * cli/cli-script.c: Likewise.
2140 * completer.c: Likewise.
2141 * corefile.c: Likewise.
2142 * corelow.c: Likewise.
2143 * cp-abi.c: Likewise.
2144 * cp-support.c: Likewise.
2145 * cp-valprint.c: Likewise.
2146 * darwin-nat.c: Likewise.
2147 * dwarf2-frame-tailcall.c: Likewise.
2148 * dwarf2-frame.c: Likewise.
2149 * dwarf2loc.c: Likewise.
2150 * dwarf2read.c: Likewise.
2151 * eval.c: Likewise.
2152 * event-loop.c: Likewise.
2153 * event-top.c: Likewise.
2154 * f-valprint.c: Likewise.
2155 * frame-unwind.c: Likewise.
2156 * frame.c: Likewise.
2157 * gdbtypes.c: Likewise.
2158 * gnu-v2-abi.c: Likewise.
2159 * gnu-v3-abi.c: Likewise.
2160 * guile/scm-auto-load.c: Likewise.
2161 * guile/scm-breakpoint.c: Likewise.
2162 * guile/scm-cmd.c: Likewise.
2163 * guile/scm-frame.c: Likewise.
2164 * guile/scm-lazy-string.c: Likewise.
2165 * guile/scm-param.c: Likewise.
2166 * guile/scm-symbol.c: Likewise.
2167 * guile/scm-type.c: Likewise.
2168 * hppa-hpux-tdep.c: Likewise.
2169 * i386-tdep.c: Likewise.
2170 * inf-loop.c: Likewise.
2171 * infcall.c: Likewise.
2172 * infcmd.c: Likewise.
2173 * infrun.c: Likewise.
2174 * interps.c: Likewise.
2175 * interps.h: Likewise.
2176 * jit.c: Likewise.
2177 * linespec.c: Likewise.
2178 * linux-nat.c: Likewise.
2179 * linux-thread-db.c: Likewise.
2180 * m32r-rom.c: Likewise.
2181 * main.c: Likewise.
2182 * memory-map.c: Likewise.
2183 * mi/mi-cmd-break.c: Likewise.
2184 * mi/mi-cmd-stack.c: Likewise.
2185 * mi/mi-interp.c: Likewise.
2186 * mi/mi-main.c: Likewise.
2187 * monitor.c: Likewise.
2188 * nto-procfs.c: Likewise.
2189 * objc-lang.c: Likewise.
2190 * p-valprint.c: Likewise.
2191 * parse.c: Likewise.
2192 * ppc-linux-tdep.c: Likewise.
2193 * printcmd.c: Likewise.
2194 * probe.c: Likewise.
2195 * python/py-auto-load.c: Likewise.
2196 * python/py-breakpoint.c: Likewise.
2197 * python/py-cmd.c: Likewise.
2198 * python/py-finishbreakpoint.c: Likewise.
2199 * python/py-frame.c: Likewise.
2200 * python/py-framefilter.c: Likewise.
2201 * python/py-function.c: Likewise.
2202 * python/py-gdb-readline.c: Likewise.
2203 * python/py-inferior.c: Likewise.
2204 * python/py-infthread.c: Likewise.
2205 * python/py-lazy-string.c: Likewise.
2206 * python/py-linetable.c: Likewise.
2207 * python/py-param.c: Likewise.
2208 * python/py-prettyprint.c: Likewise.
2209 * python/py-symbol.c: Likewise.
2210 * python/py-type.c: Likewise.
2211 * python/py-value.c: Likewise.
2212 * python/python-internal.h: Likewise.
2213 * python/python.c: Likewise.
2214 * record-btrace.c: Likewise.
2215 * record-full.c: Likewise.
2216 * regcache.c: Likewise.
2217 * remote-fileio.c: Likewise.
2218 * remote-mips.c: Likewise.
2219 * remote.c: Likewise.
2220 * rs6000-aix-tdep.c: Likewise.
2221 * rs6000-nat.c: Likewise.
2222 * skip.c: Likewise.
2223 * solib-darwin.c: Likewise.
2224 * solib-dsbt.c: Likewise.
2225 * solib-frv.c: Likewise.
2226 * solib-ia64-hpux.c: Likewise.
2227 * solib-spu.c: Likewise.
2228 * solib-svr4.c: Likewise.
2229 * solib.c: Likewise.
2230 * spu-tdep.c: Likewise.
2231 * stack.c: Likewise.
2232 * stap-probe.c: Likewise.
2233 * symfile-mem.c: Likewise.
2234 * symmisc.c: Likewise.
2235 * target.c: Likewise.
2236 * thread.c: Likewise.
2237 * top.c: Likewise.
2238 * tracepoint.c: Likewise.
2239 * tui/tui-interp.c: Likewise.
2240 * typeprint.c: Likewise.
2241 * utils.c: Likewise.
2242 * valarith.c: Likewise.
2243 * valops.c: Likewise.
2244 * valprint.c: Likewise.
2245 * value.c: Likewise.
2246 * varobj.c: Likewise.
2247 * windows-nat.c: Likewise.
2248 * xml-support.c: Likewise.
2249
2250 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2251
2252 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2253 name implies.
2254 (extended_mips16_next_pc): Update accordingly.
2255
2256 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2257
2258 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2259 function.
2260 (micromips_instruction_is_compact_branch): Likewise.
2261 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2262 or a compact jump, reaching a jump delay slot, or seeing a
2263 second non-prologue instruction.
2264 (micromips_scan_prologue): Also terminate scanning upon seeing a
2265 compact branch or jump, or reaching a branch or jump delay slot.
2266 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2267 or jump delay slot, or seeing a second non-prologue instruction.
2268 (mips32_instruction_has_delay_slot): Retain instruction
2269 examination code only, update arguments accordingly and move
2270 instruction fetch pieces to...
2271 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2272 (micromips_instruction_has_delay_slot): Likewise and to...
2273 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2274 (mips16_instruction_has_delay_slot): Likewise and to...
2275 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2276 (mips_single_step_through_delay): Update accordingly.
2277 (mips_adjust_breakpoint_address): Likewise.
2278
2279 2014-10-05 Maciej W. Rozycki <macro@codesourcery.com>
2280
2281 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2282 !mustbe32 also return 1 for 32-bit instructions.
2283 (mips16_instruction_has_delay_slot): Likewise. Add an
2284 explanatory comment.
2285
2286 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2287
2288 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2289 symbols special.
2290
2291 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2292
2293 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2294 update comments.
2295 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2296 for the breakpoint's address. Don't preinitialize `placed_size'.
2297 (insert_bp_location): Set `reqstd_address' rather than
2298 `placed_address'.
2299 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2300 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2301 address.
2302 (bkpt_remove_location): Likewise.
2303 (deprecated_insert_raw_breakpoint): Likewise.
2304 (deprecated_remove_raw_breakpoint): Likewise.
2305 (find_single_step_breakpoint): Likewise.
2306 * mem-break.c (default_memory_insert_breakpoint): Use
2307 `reqstd_address' for the breakpoint's address. Don't set
2308 `placed_address' or `placed_size' if breakpoint contents couldn't
2309 have been determined.
2310 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2311 the breakpoint's address.
2312 (remote_insert_hw_breakpoint): Likewise. Don't set
2313 `placed_address' or `placed_size' if breakpoint couldn't have been
2314 set.
2315 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2316 `reqstd_address' for the breakpoint's address.
2317 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2318 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2319 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2320 * microblaze-linux-tdep.c
2321 (microblaze_linux_memory_remove_breakpoint): Likewise.
2322 * monitor.c (monitor_insert_breakpoint): Likewise.
2323 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2324 (procfs_insert_hw_breakpoint): Likewise.
2325 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2326 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2327 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2328 * remote-mips.c (mips_insert_breakpoint): Likewise.
2329 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2330
2331 2014-10-03 Luis Machado <lgustavo@codesourcery.com>
2332
2333 * valops.c (value_assign): Check for bit field assignments
2334 before calling architecture-specific register value
2335 conversion functions.
2336
2337 2014-10-03 Pierre Muller <muller@sourceware.org>
2338
2339 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2340
2341 2014-10-02 Pedro Alves <palves@redhat.com>
2342
2343 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2344 threads_are_executing.
2345 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2346 describing comment.
2347 * gdbthread.h (threads_are_executing): Declare.
2348 (handle_signal_stop) <random signals>: Don't print about the
2349 signal here if stopping.
2350 (end_stepping_range): Don't notify observers here.
2351 (normal_stop): Update the thread list. If stopped by a random
2352 signal or a stepping range ended, notify observers.
2353 * thread.c (threads_executing): New global.
2354 (init_thread_list): Clear 'threads_executing'.
2355 (set_executing): Set or clear 'threads_executing'.
2356 (threads_are_executing): New function.
2357 (update_threads_executing): New function.
2358 (update_thread_list): Use it.
2359
2360 2014-10-02 Pedro Alves <palves@redhat.com>
2361
2362 PR breakpoints/17431
2363 * breakpoint.c (update_breakpoints_after_exec): Don't create
2364 overlay, longjmp, std terminate nor exception breakpoints here.
2365
2366 2014-10-02 Pedro Alves <palves@redhat.com>
2367
2368 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2369 Adjust comments.
2370 * inferior.c (find_inferior_for_program_space): Give preference to
2371 the current inferior.
2372 * inferior.h (find_inferior_for_program_space): Update comment.
2373 * progspace.c (switch_to_program_space_and_thread): Prefer the
2374 current inferior if it's bound to the program space requested. If
2375 the inferior found doesn't have a PID yet, don't bother looking up
2376 a thread.
2377 * progspace.h (switch_to_program_space_and_thread): Adjust
2378 comment.
2379 * thread.c (any_thread_of_process, any_live_thread_of_process):
2380 Give preference to the current thread.
2381
2382 2014-10-01 Pedro Alves <palves@redhat.com>
2383
2384 * breakpoint.c (insert_bp_location): Error out if inserting a
2385 software breakpoint at a read-only address.
2386 * target.c (memory_xfer_check_region): New function, factored out
2387 from ...
2388 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2389 ULONGEST.
2390 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2391 against the memory region attributes.
2392
2393 2014-10-01 Simon Marchi <simon.marchi@ericsson.com>
2394
2395 * NEWS: Announce new exit-code field in -list-thread-groups
2396 output.
2397 * inferior.c (exit_inferior_1): Don't clear exit code.
2398 (inferior_appeared): Clear exit code.
2399 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2400 code.
2401
2402 2014-10-01 Pedro Alves <palves@redhat.com>
2403
2404 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2405 GENERATED" along with emacs/vi read-only markers.
2406 * regformats/aarch64.dat: Regenerate.
2407 * regformats/arm-with-iwmmxt.dat: Regenerate.
2408 * regformats/arm-with-neon.dat: Regenerate.
2409 * regformats/arm-with-vfpv2.dat: Regenerate.
2410 * regformats/arm-with-vfpv3.dat: Regenerate.
2411 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2412 * regformats/i386/amd64-avx.dat: Regenerate.
2413 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2414 * regformats/i386/amd64-avx512.dat: Regenerate.
2415 * regformats/i386/amd64-linux.dat: Regenerate.
2416 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2417 * regformats/i386/amd64-mpx.dat: Regenerate.
2418 * regformats/i386/amd64.dat: Regenerate.
2419 * regformats/i386/i386-avx-linux.dat: Regenerate.
2420 * regformats/i386/i386-avx.dat: Regenerate.
2421 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2422 * regformats/i386/i386-avx512.dat: Regenerate.
2423 * regformats/i386/i386-linux.dat: Regenerate.
2424 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2425 * regformats/i386/i386-mmx.dat: Regenerate.
2426 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2427 * regformats/i386/i386-mpx.dat: Regenerate.
2428 * regformats/i386/i386.dat: Regenerate.
2429 * regformats/i386/x32-avx-linux.dat: Regenerate.
2430 * regformats/i386/x32-avx.dat: Regenerate.
2431 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2432 * regformats/i386/x32-avx512.dat: Regenerate.
2433 * regformats/i386/x32-linux.dat: Regenerate.
2434 * regformats/i386/x32.dat: Regenerate.
2435 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2436 * regformats/mips-dsp-linux.dat: Regenerate.
2437 * regformats/mips-linux.dat: Regenerate.
2438 * regformats/mips64-dsp-linux.dat: Regenerate.
2439 * regformats/mips64-linux.dat: Regenerate.
2440 * regformats/nios2-linux.dat: Regenerate.
2441 * regformats/rs6000/powerpc-32.dat: Regenerate.
2442 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2443 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2444 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2445 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2446 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2447 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2448 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2449 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2450 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2451 * regformats/s390-linux32.dat: Regenerate.
2452 * regformats/s390-linux32v1.dat: Regenerate.
2453 * regformats/s390-linux32v2.dat: Regenerate.
2454 * regformats/s390-linux64.dat: Regenerate.
2455 * regformats/s390-linux64v1.dat: Regenerate.
2456 * regformats/s390-linux64v2.dat: Regenerate.
2457 * regformats/s390-te-linux64.dat: Regenerate.
2458 * regformats/s390x-linux64.dat: Regenerate.
2459 * regformats/s390x-linux64v1.dat: Regenerate.
2460 * regformats/s390x-linux64v2.dat: Regenerate.
2461 * regformats/s390x-te-linux64.dat: Regenerate.
2462 * regformats/tic6x-c62x-linux.dat: Regenerate.
2463 * regformats/tic6x-c62x.dat: Regenerate.
2464 * regformats/tic6x-c64x-linux.dat: Regenerate.
2465 * regformats/tic6x-c64x.dat: Regenerate.
2466 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2467 * regformats/tic6x-c64xp.dat: Regenerate.
2468
2469 2014-10-01 Pedro Alves <palves@redhat.com>
2470
2471 * features/Makefile: Update comments.
2472 (XMLTOC): List all xml files we build C files from.
2473 (clean-cfiles): New rule.
2474
2475 2014-10-01 Pedro Alves <palves@redhat.com>
2476
2477 * features/i386/amd64-avx512-linux.c: Regenerate.
2478 * features/i386/amd64-avx512.c: Regenerate.
2479 * features/i386/x32-avx512-linux.c: Regenerate.
2480 * features/i386/x32-avx512.c: Regenerate.
2481
2482 2014-10-01 Pedro Alves <palves@redhat.com>
2483
2484 * features/Makefile (WHICH): Remove arm-with-m,
2485 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2486
2487 2014-10-01 Pedro Alves <palves@redhat.com>
2488
2489 * features/Makefile (clean): New rule.
2490
2491 2014-10-01 Pedro Alves <palves@redhat.com>
2492
2493 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2494 (zmm14h): Add missing end quotes.
2495
2496 2014-10-01 Pedro Alves <palves@redhat.com>
2497
2498 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2499 * features/aarch64.c: Regenerate.
2500
2501 2014-09-30 Don Breazeal <donb@codesourcery.com>
2502
2503 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2504 code so as to work with follow_fork_inferior.
2505 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2506 (inf_ttrace_create_inferior): Remove reference to
2507 inf_ttrace_vfork_ppid.
2508 (inf_ttrace_attach): Ditto.
2509 (inf_ttrace_detach): Ditto.
2510 (inf_ttrace_kill): Use current_inferior instead of
2511 inf_ttrace_vfork_ppid.
2512 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2513 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2514 inferior away from the parent.
2515 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2516 target_follow_fork.
2517 (follow_fork_inferior): New function.
2518 (follow_inferior_reset_breakpoints): Make function static.
2519 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2520 * linux-nat.c (linux_child_follow_fork): Move target-independent
2521 code to infrun.c:follow_fork_inferior.
2522
2523 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2524
2525 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2526 * gdbarch.c: Regenerate.
2527 * gdbarch.h: Likewise.
2528 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2529 gdbarch method 'regset_from_core_section'.
2530 (get_core_register_section): Remove handling for the case that
2531 regset == NULL and regset_from_core_section is defined.
2532 (get_core_registers): Drop check for deleted method.
2533 * procfs.c (procfs_do_thread_registers): Adjust comment.
2534
2535 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2536
2537 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2538 (linux_nat_make_corefile_notes): Remove.
2539 (linux_target_install_ops): Do not set target method
2540 'make_corefile_notes'.
2541 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2542 Remove field.
2543 (linux_corefile_thread_callback): Instead of args->collect, call
2544 linux_collect_thread_registers.
2545 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2546 NULL unless there is a regset iterator.
2547 (linux_make_corefile_notes_1): Remove.
2548 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2549 by linux_make_corefile_notes.
2550 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2551
2552 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2553
2554 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2555 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2556 Remove.
2557 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2558
2559 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2560
2561 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2562 (xtensa_iterate_over_regset_sections): New.
2563 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2564
2565 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2566
2567 * vax-tdep.c (vax_regset_from_core_section): Remove.
2568 (vax_iterate_over_regset_sections): New.
2569 (vax_gdbarch_init): Adjust gdbarch initialization.
2570
2571 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2572
2573 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2574 (tilegx_regset_from_core_section): Remove.
2575 (tilegx_iterate_over_regset_sections): New.
2576 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2577
2578 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2579
2580 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2581 (sparc_iterate_over_regset_sections): New.
2582 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2583 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2584 targets.
2585 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2586 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2587 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2588 target method 'make_corefile_notes'.
2589
2590 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2591
2592 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2593 'sizeof_gregset' and 'sizeof_fpregset'.
2594 * sh-tdep.c (sh_regset_from_core_section): Remove.
2595 (sh_iterate_over_regset_sections): New.
2596 (sh_gdbarch_init): Adjust gdbarch initialization.
2597 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2598 sizeof_fpregset.
2599 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2600 'sizeof_gregset'.
2601
2602 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2603
2604 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2605 (score7_linux_iterate_over_regset_sections): New.
2606 (score_gdbarch_init): Adjust gdbarch initialization.
2607
2608 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2609
2610 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2611 FreeBSD targets.
2612 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2613 method 'make_corefile_notes'.
2614 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2615 (ppcfbsd_regset_from_core_section): Remove.
2616 (ppcfbsd_iterate_over_regset_sections): New.
2617 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2618 initialization.
2619 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2620 (ppcnbsd_iterate_over_regset_sections): New.
2621 (ppcnbsd_init_abi): Adjust.
2622 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2623 (ppcobsd_iterate_over_regset_sections): New.
2624 (ppcobsd_init_abi): Adjust.
2625 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2626 (rs6000_aix_iterate_over_regset_sections): New.
2627 (rs6000_aix_init_osabi): Adjust.
2628
2629 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2630
2631 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2632 (nios2_regset_from_core_section): Remove.
2633 (nios2_iterate_over_regset_sections): New.
2634 (nios2_linux_init_abi): Adjust gdbarch initialization.
2635
2636 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2637
2638 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2639 (am33_iterate_over_regset_sections): New.
2640 (am33_linux_init_osabi): Adjust gdbarch initialization.
2641
2642 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2643
2644 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2645 (mips_linux_iterate_over_regset_sections): New.
2646 (mips_linux_init_abi): Adjust gdbarch initialization.
2647 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2648 (mips64obsd_iterate_over_regset_sections): New.
2649 (mips64obsd_init_abi): Adjust.
2650 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2651 (mipsnbsd_iterate_over_regset_sections): New.
2652 (mipsnbsd_init_abi): Adjust.
2653
2654 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2655
2656 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2657 (m88k_iterate_over_regset_sections): New.
2658 (m88k_gdbarch_init): Adjust gdbarch initialization.
2659
2660 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2661
2662 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2663 (ia64_linux_iterate_over_regset_sections): New.
2664 (ia64_linux_init_abi): Adjust gdbarch initialization.
2665
2666 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2667
2668 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2669 (m68kbsd_iterate_over_regset_sections): New.
2670 (m68kbsd_init_abi): Adjust gdbarch initialization.
2671 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2672 (m68k_linux_iterate_over_regset_sections): New.
2673 (m68k_linux_init_abi): Adjust gdbarch initialization.
2674
2675 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2676
2677 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2678 (m32r_linux_regset_from_core_section): Remove.
2679 (m32r_linux_iterate_over_regset_sections): New.
2680 (m32r_linux_init_abi): Adjust gdbarch initialization.
2681
2682 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2683
2684 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2685 (amd64obsd_iterate_over_regset_sections): New.
2686 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2687 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2688 Remove.
2689 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2690 regset_from_core_section initialization.
2691 * i386-tdep.c (i386_regset_from_core_section): Remove.
2692 (i386_iterate_over_regset_sections): New.
2693 (i386_gdbarch_init): Adjust gdbarch initialization.
2694 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2695 (i386_iterate_over_regset_sections): New prototype.
2696 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2697 Remove.
2698 (i386obsd_aout_iterate_over_regset_sections): New.
2699 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2700 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2701 targets.
2702 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2703 (amd64fbsd_init_abi): Call fbsd_init_abi.
2704 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2705 (i386fbsd4_init_abi): Call fbsd_init_abi.
2706 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2707 target method 'make_corefile_notes'.
2708 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2709
2710 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2711
2712 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2713 (hppa_hpux_iterate_over_regset_sections): New.
2714 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2715 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2716 (hppa_linux_iterate_over_regset_sections): New.
2717 (hppa_linux_init_abi): Adjust.
2718 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2719 (hppanbsd_iterate_over_regset_sections): New.
2720 (hppanbsd_init_abi): Adjust.
2721 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2722 (hppaobsd_iterate_over_regset_sections): New.
2723 (hppaobsd_init_abi): Adjust.
2724
2725 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2726
2727 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2728 (frv_linux_iterate_over_regset_sections): New.
2729 (frv_linux_init_abi): Adjust gdbarch initialization.
2730
2731 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2732
2733 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2734 (armbsd_iterate_over_regset_sections): New prototype.
2735 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2736 (armbsd_iterate_over_regset_sections): New.
2737 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2738 initialization.
2739
2740 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2741
2742 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2743 (alpha_linux_iterate_over_regset_sections): New.
2744 (alpha_linux_init_abi): Adjust gdbarch initialization.
2745 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2746 prototype.
2747 (alphanbsd_iterate_over_regset_sections): New prototype.
2748
2749 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2750
2751 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2752 Remove.
2753 (aarch64_linux_iterate_over_regset_sections): New.
2754 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2755
2756 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2757
2758 * fbsd-tdep.c: New file.
2759 * fbsd-tdep.h: New file.
2760 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2761 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2762 (ALLDEPFILES): Add fbsd-tdep.c.
2763
2764 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2765
2766 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2767 parameter.
2768 * gdbarch.h: Regenerate.
2769 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2770 iterator.
2771 (get_core_register_section): Add parameter 'regset' and use it, if
2772 set. Add parameter 'min_size' and verify the bfd section size
2773 against it.
2774 (get_core_registers_cb): Add parameter 'regset' and pass it to
2775 get_core_register section. For the "standard" register sections
2776 ".reg" and ".reg2", set an appropriate default for human_name.
2777 (get_core_registers): Don't abort when the gdbarch has an iterator
2778 but no regset_from_core_section. Add NULL/0 for parameters
2779 'regset'/'min_size' in calls to get_core_register_section.
2780 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2781 'regset' and use it instead of calling the
2782 regset_from_core_section gdbarch method.
2783 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2784 * i386-tdep.c (i386_supply_xstateregset)
2785 (i386_collect_xstateregset, i386_xstateregset): Moved to
2786 i386-linux-tdep.c.
2787 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2788 .reg-xstate.
2789 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2790 core file support only if the regset iterator hasn't been set.
2791 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2792 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2793 Moved from i386-tdep.c and renamed to *_linux*.
2794 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2795 each callback invocation. Allow any .reg-xstate size when reading
2796 from a core file.
2797 * amd64-tdep.c (amd64_supply_xstateregset)
2798 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2799 amd64-linux-tdep.c.
2800 (amd64_regset_from_core_section): Remove.
2801 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2802 install an amd64-specific regset_from_core_section gdbarch method.
2803 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2804 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2805 Moved from amd64-tdep.c and renamed to *_linux*.
2806 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2807 to each callback invocation. Allow any .reg-xstate size when
2808 reading from a core file.
2809 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2810 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2811 each callback invocation.
2812 (arm_linux_init_abi): No longer set the regset_from_core_section
2813 gdbarch method.
2814 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2815 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2816 each callback invocation.
2817 (ppc_linux_init_abi): No longer set the regset_from_core_section
2818 gdbarch method.
2819 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2820 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2821 (s390_regset_from_core_section): Remove.
2822 (s390_iterate_over_regset_sections): Add regset parameter to each
2823 callback invocation.
2824 (s390_gdbarch_init): No longer set the regset_from_core_section
2825 gdbarch method. Drop initialization of deleted tdep fields.
2826
2827 2014-09-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
2828
2829 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2830 (amd64_linux_iterate_over_regset_sections): New.
2831 (amd64_linux_init_abi_common): Don't install the regset section
2832 list, but the new iterator in gdbarch.
2833 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2834 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2835 (arm_linux_iterate_over_regset_sections): ...here. New function.
2836 (arm_linux_init_abi): Set iterator instead of section list.
2837 * corelow.c (get_core_registers_cb): New function, logic moved
2838 from...
2839 (get_core_registers): ...loop body here. Use new iterator method
2840 instead of walking through the regset section list.
2841 * gdbarch.sh: Remove 'core_regset_sections'. New method
2842 'iterate_over_regset_sections'. New typedef
2843 'iterate_over_regset_sections_cb'.
2844 * gdbarch.c: Regenerate.
2845 * gdbarch.h: Likewise.
2846 * i386-linux-tdep.c (i386_linux_regset_sections)
2847 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2848 Remove.
2849 (i386_linux_iterate_over_regset_sections): New.
2850 (i386_linux_init_abi): Don't choose a regset section list, but
2851 install new iterator in gdbarch.
2852 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2853 (linux_collect_regset_section_cb): New function, logic moved
2854 from...
2855 (linux_collect_thread_registers): ...loop body here. Use iterator
2856 method instead of walking through list.
2857 (linux_make_corefile_notes_1): Check for presence of iterator
2858 method instead of regset section list.
2859 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2860 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2861 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2862 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2863 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2864 (ppc_linux_init_abi): Don't choose from above regset section
2865 lists, but install new iterator in gdbarch.
2866 * regset.h (struct core_regset_section): Remove.
2867 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2868 have_linux_v1, have_linux_v2, and have_tdb.
2869 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2870 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2871 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2872 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2873 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2874 (s390_iterate_over_regset_sections): ...here. New function. Use
2875 new tdep fields.
2876 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2877 regset section lists, but install new iterator.
2878
2879 2014-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2880
2881 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2882
2883 2014-09-26 Simon Marchi <simon.marchi@ericsson.com>
2884
2885 * progspace.c (print_program_space): Don't prune program spaces
2886 before printing them.
2887
2888 2014-09-25 Pedro Alves <palves@redhat.com>
2889
2890 * infrun.c (user_visible_resume_ptid): Don't check
2891 singlestep_breakpoints_inserted_p.
2892
2893 2014-09-25 Pedro Alves <palves@redhat.com>
2894
2895 * breakpoint.c (should_be_inserted): Add debug output.
2896
2897 2014-09-25 Pedro Alves <palves@redhat.com>
2898
2899 * infrun.c (stepping_past_instruction_at)
2900 (clear_exit_convenience_vars): Point at infrun.h instead of
2901 inferior.h.
2902 (handle_signal_stop): Fix typo.
2903
2904 2014-09-24 Yao Qi <yao@codesourcery.com>
2905
2906 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2907 bitmask.
2908
2909 2014-09-22 Gary Benson <gbenson@redhat.com>
2910
2911 * target.c (target_stop): Updated comment.
2912
2913 2014-09-22 Gary Benson <gbenson@redhat.com>
2914
2915 * target/target.h (target_stop_ptid): Renamed as...
2916 (target_stop_and_wait): New function. Updated comment.
2917 All uses updated.
2918 (target_continue_ptid): Renamed as...
2919 (target_continue_no_signal): New function. Updated comment.
2920 All uses updated.
2921
2922 2014-09-22 Pedro Alves <palves@redhat.com>
2923
2924 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2925 and "auto" merged.
2926 * breakpoint.c (enum ugll_insert_mode): New enum.
2927 (always_inserted_mode): Now a plain boolean.
2928 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2929 (breakpoints_always_inserted_mode): Delete.
2930 (breakpoints_should_be_inserted_now): New function.
2931 (insert_breakpoints): Pass UGLL_INSERT to
2932 update_global_location_list instead of calling
2933 insert_breakpoint_locations manually.
2934 (create_solib_event_breakpoint_1): New, factored out from ...
2935 (create_solib_event_breakpoint): ... this.
2936 (create_and_insert_solib_event_breakpoint): Use
2937 create_solib_event_breakpoint_1 instead of calling
2938 insert_breakpoint_locations manually.
2939 (update_global_location_list): Change parameter type from boolean
2940 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2941 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2942 (update_global_location_list_nothrow): Change parameter type from
2943 boolean to enum ugll_insert_mode.
2944 (_initialize_breakpoint): "breakpoint always-inserted" option is
2945 now a boolean command. Update help text.
2946 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2947 (breakpoints_should_be_inserted_now): New declaration.
2948 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2949 Remove breakpoints_always_inserted_mode check.
2950 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2951 * remote.c (remote_start_remote): Likewise.
2952
2953 2014-09-22 Pedro Alves <palves@redhat.com>
2954
2955 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2956 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2957 Instead, pass UGLL_INSERT to update_global_location_list.
2958 (update_global_location_list): Change parameter type from boolean
2959 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2960 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2961 (create_solib_event_breakpoint_1): New, factored out from ...
2962 (create_solib_event_breakpoint): ... this.
2963 (create_and_insert_solib_event_breakpoint): Use
2964 create_solib_event_breakpoint_1 instead of calling
2965 insert_breakpoint_locations manually.
2966 (update_global_location_list): Handle UGLL_INSERT.
2967
2968 2014-09-22 Pedro Alves <palves@redhat.com>
2969
2970 * breakpoint.c (enum ugll_insert_mode): New enum.
2971 (update_global_location_list)
2972 (update_global_location_list_nothrow): Change parameter type from
2973 boolean to enum ugll_insert_mode. All callers adjusted.
2974
2975 2014-09-19 Joel Brobecker <brobecker@adacore.com>
2976
2977 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2978 SystemTap support in GDB.
2979
2980 2014-09-19 Don Breazeal <donb@codesourcery.com>
2981
2982 * linux-nat.c (linux_handle_extended_wait): Call
2983 linux_ptrace_get_extended_event.
2984 (wait_lwp): Call linux_is_extended_waitstatus.
2985 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2986 and linux_is_extended_waitstatus.
2987 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2988 linux_ptrace_get_extended_event.
2989 (linux_ptrace_get_extended_event): New function.
2990 (linux_is_extended_waitstatus): New function.
2991 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2992 (linux_is_extended_waitstatus): New declarations.
2993
2994 2014-09-19 Yao Qi <yao@codesourcery.com>
2995
2996 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2997 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2998 comments. Callers update.
2999 (dwarf_decode_lines): Likewise.
3000 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
3001 comments. Skip the line table if 'lowpc' is greater than
3002 'address'. Don't check
3003 dwarf2_per_objfile->has_section_at_zero.
3004
3005 2014-09-18 Doug Evans <dje@google.com>
3006
3007 * NEWS: Mention new "producer" attribute of gdb.Symtab.
3008 * python/py-symtab.c (stpy_get_producer): New function.
3009 (symtab_object_getset): Add "producer" attribute.
3010
3011 2014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
3012
3013 PR gdb/17384
3014 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3015 (do_captured_read_memory_integer): Remove.
3016 (safe_read_memory_integer): Use target_read_memory directly instead
3017 of catching errors in do_captured_read_memory_integer.
3018
3019 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3020
3021 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3022 not gdb/doc.
3023
3024 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3025
3026 * objc-lang.c (find_implementation_from_class): Remove dead code.
3027
3028 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3029
3030 PR cli/7233
3031 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3032 "fprintf_unfiltered (gdb_stdlog...)".
3033
3034 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
3035
3036 PR breakpoints/12526
3037 * breakpoint.h (struct watchpoint): New fields val_bitpos and
3038 val_bitsize.
3039 * breakpoint.c (watch_command_1): Use these fields to retain
3040 bitfield information.
3041 (extract_bitfield_from_watchpoint_value): New function.
3042 (watchpoint_check): Use it.
3043 (update_watchpoint): Use it. Optimize the address and length of a
3044 HW watchpoint pointing to a bitfield.
3045 * value.h (unpack_value_bitfield): New prototype.
3046 * value.c (unpack_value_bitfield): Make extern.
3047
3048 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
3049
3050 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3051 x86-dregs.o.
3052 * gnu-nat.c (inf_threads): New function.
3053 * gnu-nat.h (inf_threads_ftype): New typedef.
3054 (inf_threads): New declaration.
3055 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3056 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3057 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3058 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3059 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3060 (i386_gnu_dr_get_control): New functions.
3061 (reg_addr): New structure.
3062 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3063 i386 debugging register hooks.
3064 * NEWS: Mention this.
3065
3066 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3067
3068 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3069 vector data transfer instructions.
3070 (arm_record_coproc_data_proc): Updated.
3071
3072 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3073
3074 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3075 arm_record_exreg_ld_st_insn.
3076 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3077 load/store insns.
3078
3079 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3080
3081 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3082 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3083 processing instructions.
3084
3085 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3086
3087 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3088 for advance SIMD struct ld/st insn.
3089 (thumb2_record_decode_insn_handler): Replace stub handler with
3090 thumb2_record_asimd_struct_ld_st.
3091
3092 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3093
3094 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3095 for asimd, vfp and coprocessor insns.
3096 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3097 and coprocessor insns.
3098 (thumb2_record_coproc_insn): New function.
3099 (thumb2_record_decode_insn_handler): Update coprocessor insns record
3100 handlers.
3101 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3102 opcode 110 insns.
3103
3104 2014-09-13 Doug Evans <xdje42@gmail.com>
3105
3106 * NEWS: Mention new "queue-signal" command.
3107 * infcmd.c (queue_signal_command): New function.
3108 (_initialize_infcmd): Add new queue-signal command.
3109
3110 2014-09-13 Doug Evans <xdje42@gmail.com>
3111
3112 * linux-nat.c (wait_lwp): Add debugging printf.
3113 (linux_nat_wait_1): Ditto.
3114
3115 2014-09-12 Pedro Alves <palves@redhat.com>
3116
3117 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3118 (create_and_insert_solib_event_breakpoint): New functions.
3119 * breakpoint.h (create_and_insert_solib_event_breakpoint)
3120 (remove_solib_event_breakpoints_at_next_stop): New declarations.
3121 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3122 (remove_dbx_link_breakpoint): Delete function.
3123 (insert_dbx_link_bpt_in_file): Use
3124 create_and_insert_solib_event_breakpoint instead of
3125 deprecated_insert_raw_breakpoint.
3126 (procfs_wait): Don't check whether we hit __dbx_link here.
3127 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3128 here.
3129 * solib-irix.c (base_breakpoint): Delete global.
3130 (disable_break): Delete function.
3131 (enable_break): Use create_solib_event_breakpoint
3132 instead of deprecated_insert_raw_breakpoint.
3133 (irix_solib_handle_event): New function.
3134 (irix_solib_create_inferior_hook): Don't run the target or disable
3135 the mapping-complete breakpoint here.
3136 (_initialize_irix_solib): Install irix_solib_handle_event as
3137 so_ops->handle_event hook.
3138
3139 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3140 Ulrich Weigand  <uweigand@de.ibm.com>
3141
3142 PR tdep/17379
3143 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3144 instead of read_memory_unsigned_integer.
3145
3146 2014-09-12 Gary Benson <gbenson@redhat.com>
3147
3148 * nat/linux-waitpid.c: Include common-defs.h.
3149 [GDBSERVER]: Add FIXME comment.
3150 [!GDBSERVER]: Don't include defs.h or signal.h.
3151 (linux_debug) [!GDBSERVER]: Remove empty block.
3152
3153 2014-09-12 Gary Benson <gbenson@redhat.com>
3154
3155 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3156 Don't include defs.h or server.h.
3157
3158 2014-09-12 Gary Benson <gbenson@redhat.com>
3159
3160 * nat/linux-btrace.c: Include common-defs.h.
3161 Don't include defs.h, server.h or gdbthread.h.
3162 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3163
3164 2014-09-12 Gary Benson <gbenson@redhat.com>
3165
3166 * common/agent.c: Include common-defs.h.
3167 Don't include defs.h or server.h.
3168 * common/buffer.c: Likewise.
3169 * common/common-debug.c: Likewise.
3170 * common/common-utils.c: Likewise.
3171 * common/errors.c: Likewise.
3172 * common/filestuff.c: Likewise.
3173 * common/format.c: Likewise.
3174 * common/gdb_vecs.c: Likewise.
3175 * common/print-utils.c: Likewise.
3176 * common/ptid.c: Likewise.
3177 * common/rsp-low.c: Likewise.
3178 * common/signals.c: Likewise.
3179 * common/vec.c: Likewise.
3180 * common/xml-utils.c: Likewise.
3181 * nat/linux-osdata.c: Likewise.
3182 * nat/linux-procfs.c: Likewise.
3183 * nat/linux-ptrace.c: Likewise.
3184 * nat/mips-linux-watch.c: Likewise.
3185 * target/waitstatus.c: Likewise.
3186
3187 2014-09-12 Tom Tromey <tromey@redhat.com>
3188 Gary Benson <gbenson@redhat.com>
3189
3190 * common/common-regcache.h: New file.
3191 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3192 * regcache.h: Include common-regcache.h.
3193 (regcache_read_pc): Don't declare.
3194 * regcache.c (get_thread_regcache_for_ptid): New function.
3195 * nat/linux-btrace.c: Don't include regcache.h.
3196 Include common-regcache.h.
3197 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3198
3199 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
3200
3201 * regcache.h (struct regset): Declare.
3202
3203 2014-09-11 Pedro Alves <palves@redhat.com>
3204
3205 PR gdb/17347
3206 * main.c: Include "infrun.h".
3207 (catch_command_errors, catch_command_errors_const): Wait for the
3208 foreground command to complete.
3209 * top.c (maybe_wait_sync_command_done): New function, factored out
3210 from ...
3211 (maybe_wait_sync_command_done): ... here.
3212 * top.h (maybe_wait_sync_command_done): New declaration.
3213
3214 2014-09-11 Tom Tromey <tromey@redhat.com>
3215 Gary Benson <gbenson@redhat.com>
3216
3217 * common/symbol.h: New file.
3218 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3219 * minsyms.c (find_minimal_symbol_address): New function.
3220 * common/agent.c: Include common/symbol.h.
3221 [!GDBSERVER]: Don't include objfiles.h.
3222 (agent_look_up_symbols): Use find_minimal_symbol_address.
3223
3224 2014-09-11 Gary Benson <gbenson@redhat.com>
3225
3226 * target/target.h (target_stop_ptid, target_continue_ptid):
3227 Declare.
3228 * target.c (target_stop_ptid, target_continue_ptid): New
3229 functions.
3230 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3231 (agent_run_command): Always use target_stop_ptid and
3232 target_continue_ptid.
3233
3234 2014-09-11 Tom Tromey <tromey@redhat.com>
3235 Gary Benson <gbenson@redhat.com>
3236
3237 * target/target.h: New file.
3238 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3239 * target.h: Include target/target.h.
3240 (target_read_memory, target_write_memory): Don't declare.
3241 * target.c (target_read_uint32): New function.
3242 * common/agent.c: Include target/target.h.
3243 [!GDBSERVER]: Don't include target.h.
3244 (helper_thread_id): Type changed to uint32_t.
3245 (agent_get_helper_thread_id): Use target_read_uint32.
3246 (agent_run_command): Always use target_read_memory and
3247 target_write_memory.
3248 (agent_capability): Type changed to uint32_t.
3249 (agent_capability_check): Use target_read_uint32.
3250
3251 2014-09-11 Gary Benson <gbenson@redhat.com>
3252
3253 * common/common-debug.h (show_debug_regs): Declare.
3254 * common/common-debug.c (show_debug_regs): Define.
3255 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3256 all uses with show_debug_regs. Replace all uses that considered
3257 debug_hw_points as a multi-value integer with straight boolean
3258 uses.
3259 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3260 with show_debug_regs.
3261 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3262 all uses with show_debug_regs.
3263 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3264 uses with show_debug_regs.
3265
3266 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3267
3268 * findvar.c (address_from_register): Handle targets requiring
3269 a special conversion routine even for plain pointer types.
3270
3271 2014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
3272
3273 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3274 (store_register): Do not call exec_one_dummy_insn.
3275
3276 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3277
3278 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3279 dereference it first. Use value_enclosing_type instead of
3280 value_type.
3281 (ada_array_length): Likewise.
3282
3283 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3284
3285 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3286 Adjust function implementation and documentation accordingly.
3287 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3288 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3289 Update call to ada_value_ptr_subscript.
3290
3291 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3292
3293 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3294 instead of VAL's type.
3295
3296 2014-09-10 Joel Brobecker <brobecker@adacore.com>
3297
3298 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3299
3300 2014-09-09 Doug Evans <xdje42@gmail.com>
3301
3302 PR guile/17367
3303 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3304 last parameter to pkg-config, not first.
3305 * configure.ac: Pass --with-guile provided pkg-config path to
3306 GDB_GUILE_PROGRAM_NAMES.
3307 * configure: Regenerate.
3308
3309 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
3310
3311 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3312 Bertazi".
3313
3314 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
3315
3316 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3317 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3318 the list of sections determining GDB_OSABI_IRIX.
3319
3320 2014-09-09 James Hogan <james.hogan@imgtec.com>
3321
3322 * MAINTAINERS (Write After Approval): Add "James Hogan".
3323
3324 2014-09-09 James Hogan <james.hogan@imgtec.com>
3325
3326 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3327
3328 2014-09-09 Joel Brobecker <brobecker@adacore.com>
3329
3330 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3331
3332 2014-09-08 Doug Evans <xdje42@gmail.com>
3333
3334 PR 17247
3335 * guile.c: #include <signal.h>.
3336 (_initialize_guile): Block SIGCHLD while initializing Guile.
3337
3338 Replaces the following, which is reverted.
3339
3340 2014-07-26 Doug Evans <xdje42@gmail.com>
3341
3342 PR 17185
3343 * configure.ac: Add check for header gc/gc.h.
3344 Add check for function setenv.
3345 * configure: Regenerate.
3346 * config.in: Regenerate.
3347 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3348
3349 2014-09-08 Doug Evans <xdje42@gmail.com>
3350
3351 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3352 with named constant. Fix style of pointer comparison.
3353 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3354
3355 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
3356
3357 PR gdb/17035
3358 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3359 decide whether we display the command on "show user".
3360 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3361 printing command name.
3362 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3363 * cli/cli-decode.c (cli_user_command_p): Create helper function
3364 to verify whether cmd_list_element is a user-defined command.
3365
3366 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3367
3368 PR python/17355
3369 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3370 Fix goto out of TRY_CATCH.
3371
3372 2014-09-06 Doug Evans <xdje42@gmail.com>
3373 Tom Tromey <tromey@redhat.com>
3374
3375 PR 15276
3376 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3377 $_any_caller_matches.
3378 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3379 * python/lib/gdb/function/caller_is.py: New file.
3380
3381 2014-09-06 Doug Evans <xdje42@gmail.com>
3382
3383 * infcmd.c (program_info): Fix typo.
3384
3385 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
3386
3387 PR gdb/17235
3388 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3389 'number'. New variable 'has_digit'. Rewrite code to deal with
3390 subexpressions on SDT probes.
3391
3392 2014-09-04 Pedro Alves <palves@redhat.com>
3393
3394 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3395 the input is only one character long.
3396
3397 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
3398
3399 PR fortran/17237
3400 * f-valprint.c (f_val_print): Specify the correct print option to
3401 use when printing integer values.
3402
3403 2014-09-04 Gary Benson <gbenson@redhat.com>
3404
3405 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3406 Remove code to cope with LWPs wrapped as PIDs.
3407 Add assertions to ensure no wrapped LWPs are passed.
3408
3409 2014-09-04 Pedro Alves <palves@redhat.com>
3410
3411 * value.c (value_ranges_copy_adjusted): New function, factored out
3412 from ...
3413 (value_contents_copy_raw): ... here.
3414 (unpack_value_bits_as_long_1): Rename back to ...
3415 (unpack_bits_as_long): ... this. Remove 'original_value' and
3416 'result' parameters. Change return type to LONGEST.
3417 (unpack_value_bits_as_long): Delete.
3418 (unpack_value_field_as_long_1): Delete.
3419 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3420 (unpack_value_bitfield): New function.
3421 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3422 (value_fetch_lazy): Use unpack_value_bitfield.
3423 * value.h (unpack_value_bits_as_long): Delete declaration.
3424
3425 2014-09-03 Sasha Smundak <asmundak@google.com>
3426
3427 * python/py-frame.c (frapy_read_register): New function.
3428
3429 2014-09-03 James Hogan <james.hogan@imgtec.com>
3430
3431 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3432 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3433
3434 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
3435
3436 PR python/16699
3437 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3438 function.
3439 (add_cmd): Set "completer_handle_brkchars" to NULL.
3440 * cli/cli-decode.h (struct cmd_list_element)
3441 <completer_handle_brkchars>: New field.
3442 * command.h (completer_ftype_void): New typedef.
3443 (set_cmd_completer_handle_brkchars): New prototype.
3444 * completer.c (set_gdb_completion_word_break_characters): New
3445 function.
3446 (complete_line_internal): Call "completer_handle_brkchars"
3447 callback from command.
3448 * completer.h: Include "command.h".
3449 (set_gdb_completion_word_break_characters): New prototype.
3450 * python/py-cmd.c (cmdpy_completer_helper): New function.
3451 (cmdpy_completer_handle_brkchars): New function.
3452 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3453 (cmdpy_init): Set completer_handle_brkchars to
3454 cmdpy_completer_handle_brkchars.
3455
3456 2014-09-03 Gary Benson <gbenson@redhat.com>
3457
3458 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3459 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3460 Loop conditions changed to equivalent form.
3461 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3462 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3463 ALL_DEBUG_ADDRESS_REGISTERS.
3464
3465 2014-09-03 Joel Brobecker <brobecker@adacore.com>
3466
3467 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3468 description fix.
3469
3470 2014-09-02 Doug Evans <dje@google.com>
3471
3472 * typeprint.c (find_global_typedef): Fix comment.
3473
3474 2014-09-02 Gary Benson <gbenson@redhat.com>
3475
3476 * i386-nat.h: Renamed as...
3477 * x86-nat.h: New file. All type, function and variable name
3478 prefixes changed from "i386_" to "x86_". All references updated.
3479 * i386-nat.c: Renamed as...
3480 * x86-nat.c: New file. All type, function and variable name
3481 prefixes changed from "i386_" to "x86_". All references updated.
3482 * common/i386-xstate.h: Renamed as...
3483 * common/x86-xstate.h: New file. All type, function and variable
3484 name prefixes changed from "i386_" to "x86_". All references
3485 updated.
3486 * nat/i386-cpuid.h: Renamed as...
3487 * nat/x86-cpuid.h: New file. All type, function and variable name
3488 prefixes changed from "i386_" to "x86_". All references updated.
3489 * nat/i386-gcc-cpuid.h: Renamed as...
3490 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3491 name prefixes changed from "i386_" to "x86_". All references
3492 updated.
3493 * nat/i386-dregs.h: Renamed as...
3494 * nat/x86-dregs.h: New file. All type, function and variable name
3495 prefixes changed from "i386_" to "x86_". All references updated.
3496 * nat/i386-dregs.c: Renamed as...
3497 * nat/x86-dregs.c: New file. All type, function and variable name
3498 prefixes changed from "i386_" to "x86_". All references updated.
3499
3500 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
3501
3502 * varobj.c (_initialize_varobj): Move to the end of file.
3503
3504 2014-08-29 Gary Benson <gbenson@redhat.com>
3505
3506 * common/common-exceptions.h: New file.
3507 * common/common-exceptions.c: Likewise.
3508 * Makefile.in (SFILES): Add common/common-exceptions.c.
3509 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3510 (COMMON_OBS): Add common-exceptions.o.
3511 (common-exceptions.o): New rule.
3512 * exceptions.h (common-exceptions.h): Include.
3513 (gdb_setjmp.h): Do not include.
3514 (return_reason): Moved to common-exceptions.h.
3515 (enum return_reason): Likewise.
3516 (RETURN_MASK): Likewise.
3517 (typedef return_mask): Likewise.
3518 (enum errors): Likewise.
3519 (struct gdb_exception): Likewise.
3520 (exceptions_state_mc_init): Likewise.
3521 (exceptions_state_mc_action_iter): Likewise.
3522 (exceptions_state_mc_action_iter_1): Likewise.
3523 (TRY_CATCH): Likewise.
3524 (throw_exception): Likewise.
3525 (throw_verror): Likewise.
3526 (throw_vquit): Likewise.
3527 (throw_error): Likewise.
3528 (throw_quit): Likewise.
3529 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3530 (enum catcher_action): Likewise.
3531 (struct catcher): Likewise.
3532 (current_catcher): Likewise.
3533 (catcher_list_size): Likewise.
3534 (exceptions_state_mc_init): Likewise.
3535 (catcher_pop): Likewise.
3536 (exceptions_state_mc): Likewise.
3537 (exceptions_state_mc_action_iter): Likewise.
3538 (exceptions_state_mc_action_iter_1): Likewise.
3539 (throw_exception): Likewise.
3540 (exception_messages): Likewise.
3541 (exception_messages_size): Likewise.
3542 (throw_it): Likewise.
3543 (throw_verror): Likewise.
3544 (throw_vquit): Likewise.
3545 (throw_error): Likewise.
3546 (throw_quit): Likewise.
3547 (prepare_to_throw_exception): New function.
3548
3549 2014-08-29 Gary Benson <gbenson@redhat.com>
3550
3551 * common/gdb_setjmp.h: New file.
3552 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3553 * configure.ac: Move sigsetjmp check...
3554 * common/common.m4: ...here.
3555 * configure: Regenerate.
3556 * cp-support.c (SIGJMP_BUF): Delete.
3557 (SIGSETJMP): Likewise.
3558 (SIGLONGJMP): Likewise.
3559 * exceptions.h (gdb_setjmp.h): Include.
3560 (setjmp.h): Do not include.
3561 (EXCEPTIONS_SIGJMP_BUF): Delete.
3562 (EXCEPTIONS_SIGSETJMP): Likewise.
3563 (EXCEPTIONS_SIGLONGJMP): Likewise.
3564 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3565 from gdb_setjmp.h.
3566 * exceptions.c: Likewise.
3567
3568 2014-08-29 Gary Benson <gbenson@redhat.com>
3569
3570 * cleanups.h: Moved to...
3571 * common/cleanups.h: New file.
3572 * cleanups.c: Moved to...
3573 * common/cleanups.c: New file. Include common-defs.h and
3574 cleanups.h. Do not include defs.h.
3575 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3576 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3577 (cleanups.o): New rule.
3578
3579 2014-08-29 Gary Benson <gbenson@redhat.com>
3580
3581 * common/errors.h (internal_warning): New declaration.
3582 (internal_vwarning): Likewise.
3583 * common/errors.c (internal_warning): New function.
3584 * utils.h (internal_warning): Don't declare.
3585 (internal_vwarning): Likewise.
3586 * utils.c (internal_warning): Removed.
3587
3588 2014-08-29 Gary Benson <gbenson@redhat.com>
3589
3590 * main.c (captured_main): Use warning during startup.
3591 Prefix startup warning messages with command name.
3592
3593 2014-08-29 Gary Benson <gbenson@redhat.com>
3594
3595 * main.c (captured_main): Handle usage errors with error.
3596
3597 2014-08-29 Gary Benson <gbenson@redhat.com>
3598
3599 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3600 exit pair with a call to error. Wrap the message with _().
3601
3602 2014-08-29 Gary Benson <gbenson@redhat.com>
3603
3604 * main.c (captured_main): Replace a fprintf/exit
3605 pair with a call to error. Wrap the message with _().
3606
3607 2014-08-29 Gary Benson <gbenson@redhat.com>
3608
3609 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3610 pairs with calls to error. Wrap the message with _().
3611
3612 2014-08-29 Gary Benson <gbenson@redhat.com>
3613
3614 * utils.c (vwarning): Protect calls to target_terminal_ours
3615 and wrap_here.
3616
3617 2014-08-29 Gary Benson <gbenson@redhat.com>
3618
3619 * exceptions.c (print_flush): Protect calls to
3620 target_terminal_ours and wrap_here.
3621
3622 2014-08-29 Gary Benson <gbenson@redhat.com>
3623
3624 * utils.h (filtered_printing_initialized): New declaration.
3625 * utils.c (abort_with_message): New function.
3626 (internal_vproblem): Use abort_with_message for first level
3627 recursive internal problems, and if gdb_stderr is not set up.
3628 Protect calls to target_terminal_ours, begin_line and query.
3629
3630 2014-08-28 Doug Evans <dje@google.com>
3631
3632 * symtab.c (in_prologue): Move definition to better spot.
3633 (skip_prologue_using_sal): Ditto.
3634
3635 2014-08-28 Doug Evans <dje@google.com>
3636
3637 * symtab.c (find_function_start_sal): Move definition to better spot.
3638
3639 2014-08-28 Yao Qi <yao@codesourcery.com>
3640
3641 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3642 found_stack_adjust in forward scan. Remove condition check
3643 on found_stack_adjust which is always true. Indent the code.
3644
3645 2014-08-28 Yao Qi <yao@codesourcery.com>
3646
3647 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3648 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3649 (dwarf_decode_lines): Remove argument
3650 want_line_info. Remove condition check on want_line_info.
3651 Callers update.
3652
3653 2014-08-27 Doug Evans <dje@google.com>
3654
3655 * dwarf2read.c (dwarf_record_line): Fix typo.
3656
3657 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
3658
3659 * target.h (struct target_ops::to_terminal_save_ours): Remove
3660 declaration.
3661 (target_terminal_save_ours): Remove macro.
3662 * target-delegates.c: Regenerate.
3663 * inf-child.c (inf_child_target): Don't set the nonexistent
3664 field to_terminal_save_ours.
3665 * inferior.h (child_terminal_save_ours): Remove declaration.
3666 * terminal.h (gdb_save_tty_state): New declaration.
3667 * inflow.c (child_terminal_save_ours): Rename to ...
3668 (gdb_save_tty_state): ... this.
3669 * tui/tui.c: Include terminal.h.
3670 (tui_enable): Use gdb_save_tty_state instead of
3671 target_terminal_save_ours.
3672 (tui_disable): Likewise.
3673
3674 2014-08-25 Doug Evans <dje@google.com>
3675
3676 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3677 Pass NULL instead of 0 for context pointer.
3678
3679 2014-08-25 Yao Qi <yao@codesourcery.com>
3680
3681 * dwarf2read.c: Fix grammatical error.
3682
3683 2014-08-24 Yao Qi <yao@codesourcery.com>
3684
3685 * dwarf2read.c (scan_partial_symbols): Update comments.
3686 Rename argument 'need_pc' with 'set_addrmap'.
3687 (add_partial_namespace): Rename argument 'need_pc' with
3688 'set_addrmap'.
3689 (add_partial_module): Likewise.
3690 (add_partial_subprogram): Likewise. Update comments.
3691 (dwarf2_name): Fix typo.
3692
3693 2014-08-22 Doug Evans <dje@google.com>
3694
3695 PR 17276
3696 * dwarf2read.c (dwarf_record_line_p): New function.
3697 (dwarf_decode_lines_1): Ignore subsequent line number entries
3698 for the same line if any entry had a non-zero discriminator.
3699
3700 2014-08-22 Doug Evans <dje@google.com>
3701
3702 * buildsym.h (record_line_ftype): New typedef.
3703 (record_line): Use it.
3704 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3705 (dwarf_decode_lines_1): Call them.
3706
3707 2014-08-22 Yao Qi <yao@codesourcery.com>
3708
3709 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3710 (ctf_end): Remove code.
3711
3712 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3713
3714 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3715 (linux_make_corefile_notes): call update_thread_list, protected against
3716 exceptions.
3717
3718 2014-08-21 Pedro Alves <palves@redhat.com>
3719
3720 * infcmd.c (attach_command): Remove comment.
3721
3722 2014-08-21 Bin Cheng <bin.cheng@arm.com>
3723
3724 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3725 unsigned LONGEST to ULONGEST.
3726
3727 2014-08-20 Pedro Alves <palves@redhat.com>
3728
3729 * Makefile.in (check-read1): New rule.
3730
3731 2014-08-20 Joel Brobecker <brobecker@adacore.com>
3732
3733 * value.c (value_from_contents_and_address): Strip resolved_type's
3734 typedef layers before checking its TYPE_DATA_LOCATION.
3735
3736 2014-08-20 Pedro Alves <palves@redhat.com>
3737
3738 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3739
3740 2014-08-20 Yao Qi <yao@codesourcery.com>
3741
3742 * amd64-tdep.c (amd64_classify): Add a blank line after the
3743 example. Move "*/" to a new line.
3744 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3745 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3746 * dwarf2read.c (psymtab_include_file_name): Likewise.
3747
3748 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
3749 Pedro Alves <palves@redhat.com>
3750
3751 PR symtab/14604
3752 PR symtab/14605
3753 * ada-lang.c (coerce_unspec_val_to_type): Use
3754 value_contents_copy_raw.
3755 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3756 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3757 * cp-valprint.c (cp_print_value_fields): Let the common printing
3758 code handle optimized out values.
3759 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3760 * d-valprint.c (dynamic_array_type): Use
3761 value_bits_any_optimized_out.
3762 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3763 check_any_valid fields.
3764 (check_pieced_value_bits): Delete and inline ...
3765 (check_pieced_synthetic_pointer): ... here.
3766 (check_pieced_value_validity): Delete.
3767 (check_pieced_value_invalid): Delete.
3768 (pieced_value_funcs): Remove check_validity and check_any_valid
3769 fields.
3770 (read_pieced_value): Use mark_value_bits_optimized_out.
3771 (write_pieced_value): Switch to use
3772 mark_value_bytes_optimized_out.
3773 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3774 of assuming the whole value is optimized out.
3775 * findvar.c (read_frame_register_value): Remove special handling
3776 of optimized out registers.
3777 (value_from_register): Use mark_value_bytes_optimized_out.
3778 * frame-unwind.c (frame_unwind_got_optimized): Use
3779 mark_value_bytes_optimized_out.
3780 * jv-valprint.c (java_value_print): Adjust.
3781 (java_print_value_fields): Let the common printing code handle
3782 optimized out values.
3783 * mips-tdep.c (mips_print_register): Remove special handling of
3784 optimized out registers.
3785 * opencl-lang.c (lval_func_check_validity): Delete.
3786 (lval_func_check_any_valid): Delete.
3787 (opencl_value_funcs): Remove check_validity and check_any_valid
3788 fields.
3789 * p-valprint.c (pascal_object_print_value_fields): Let the common
3790 printing code handle optimized out values.
3791 * stack.c (read_frame_arg): Remove special handling of optimized
3792 out values. Fetch both VAL and ENTRYVAL before comparing
3793 contents. Adjust to value_available_contents_eq rename.
3794 * valprint.c (valprint_check_validity)
3795 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3796 (val_print_array_elements): Adjust.
3797 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3798 (value_bits_any_optimized_out): New function.
3799 (value_entirely_covered_by_range_vector): New function, factored
3800 out from value_entirely_unavailable.
3801 (value_entirely_unavailable): Reimplement.
3802 (value_entirely_optimized_out): New function.
3803 (insert_into_bit_range_vector): New function, factored out from
3804 mark_value_bits_unavailable.
3805 (mark_value_bits_unavailable): Reimplement.
3806 (struct ranges_and_idx): New struct.
3807 (find_first_range_overlap_and_match): New function, factored out
3808 from value_available_contents_bits_eq.
3809 (value_available_contents_bits_eq): Rename to ...
3810 (value_contents_bits_eq): ... this. Check both unavailable
3811 contents and optimized out contents.
3812 (value_available_contents_eq): Rename to ...
3813 (value_contents_eq): ... this.
3814 (allocate_value_lazy): Remove reference to the old optimized_out
3815 boolean.
3816 (allocate_optimized_out_value): Use
3817 mark_value_bytes_optimized_out.
3818 (require_not_optimized_out): Adjust to check whether the
3819 optimized_out vec is empty.
3820 (ranges_copy_adjusted): New function, factored out from
3821 value_contents_copy_raw.
3822 (value_contents_copy_raw): Also copy the optimized out ranges.
3823 Assert the destination ranges aren't optimized out.
3824 (value_contents_copy): Update comment, remove call to
3825 require_not_optimized_out.
3826 (value_contents_equal): Adjust to check whether the optimized_out
3827 vec is empty.
3828 (set_value_optimized_out, value_optimized_out_const): Delete.
3829 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3830 New functions.
3831 (value_entirely_optimized_out, value_bits_valid): Delete.
3832 (value_copy): Take a VEC copy of the 'optimized_out' field.
3833 (value_primitive_field): Remove special handling of optimized out.
3834 (value_fetch_lazy): Assert that lazy values have no unavailable
3835 regions. Use value_bits_any_optimized_out. Remove some special
3836 handling for optimized out values.
3837 * value.h: Add intro comment about <optimized out> and
3838 <unavailable>.
3839 (struct lval_funcs): Remove check_validity and check_any_valid
3840 fields.
3841 (set_value_optimized_out, value_optimized_out_const): Remove.
3842 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3843 New declarations.
3844 (value_bits_any_optimized_out): New declaration.
3845 (value_bits_valid): Delete declaration.
3846 (value_available_contents_eq): Rename to ...
3847 (value_contents_eq): ... this, and extend comments.
3848
3849 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3850
3851 Fix -fsanitize=address on unreadable inferior strings.
3852 * valprint.c (val_print_string): Fix access before BUFFER.
3853
3854 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
3855
3856 * target.c (target_struct_size): Remove.
3857 (target_struct_allocsize): Remove.
3858 (DEFAULT_ALLOCSIZE): Remove.
3859 (target_ops_p): New typedef.
3860 (DEF_VEC_P (target_ops_p)): New vector type.
3861 (target_structs): Change type to VEC (target_ops_p).
3862 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3863 (find_default_run_target): Rewrite for loop following changes to
3864 target_structs.
3865
3866 2014-08-19 Joel Brobecker <brobecker@adacore.com>
3867
3868 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3869 Adjust code accordingly. Adjust function description comment.
3870
3871 2014-08-19 Yao Qi <yao@codesourcery.com>
3872
3873 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3874 types.
3875
3876 2014-08-19 Alan Modra <amodra@gmail.com>
3877
3878 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3879 * config.in: Regenerate.
3880 * configure: Regenerate.
3881
3882 2014-08-19 Tom Tromey <tromey@redhat.com>
3883 Gary Benson <gbenson@redhat.com>
3884
3885 * common/common-debug.h: New file.
3886 * common/common-debug.c: Likewise.
3887 * debug.c: Likewise.
3888 * Makefile.in (SFILES): Add common/common-debug.c.
3889 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3890 (COMMON_OBS): Add common-debug.o and debug.o.
3891 (common-debug.o): New rule.
3892 * common/common-defs.h: Include common-debug.h.
3893 * common/agent.c (debug_agent_printf): New function.
3894 (DEBUG_AGENT): Redefine.
3895 * nat/i386-dregs.c (debug_printf): Undefine.
3896
3897 2014-08-19 Gary Benson <gbenson@redhat.com>
3898
3899 * common/common-defs.h: Include print-utils.h.
3900 * utils.h: Do not include print-utils.h.
3901
3902 2014-08-19 Tom Tromey <tromey@redhat.com>
3903 Gary Benson <gbenson@redhat.com>
3904
3905 * common/common-types.h: New file.
3906 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3907 * common/common-defs.h: Include common-types.h.
3908 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3909 (ULONGEST): Remove.
3910
3911 2014-08-19 Tom Tromey <tromey@redhat.com>
3912 Gary Benson <gbenson@redhat.com>
3913
3914 * common/errors.h: New file.
3915 * common/errors.c: Likewise.
3916 * Makefile.in (SFILES): Add common/errors.c.
3917 (HFILES_NO_SRCDIR): Add common/errors.h.
3918 (COMMON_OBS): Add errors.o.
3919 (errors.o): New rule.
3920 * common/common-defs.h: Include errors.h.
3921 * utils.h (perror_with_name, error, verror, warning, vwarning):
3922 Don't declare.
3923 * common/common-utils.h: (malloc_failure, internal_error):
3924 Likewise.
3925
3926 2014-08-19 Gary Benson <gbenson@redhat.com>
3927
3928 * utils.c (internal_vproblem): Always print the message.
3929
3930 2014-08-18 Doug Evans <dje@google.com>
3931
3932 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3933
3934 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3935
3936 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3937 Return 0 if TYPE is dynamic.
3938 (print_range): Add handling of dynamic ranges.
3939
3940 2014-08-18 Keven Boell <keven.boell@intel.com>
3941 Joel Brobecker <brobecker@adacore.com>
3942
3943 * gdbtypes.h (struct main_type): Add field "data_location".
3944 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3945 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3946 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3947 a dynamic data location.
3948 (resolve_dynamic_type): Add DW_AT_data_location handling.
3949 (copy_recursive, copy_type): Copy the data_location information
3950 when present.
3951 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3952 * value.c (value_from_contents_and_address): Add
3953 DW_AT_data_location handling.
3954
3955 2014-08-18 Keven Boell <keven.boell@intel.com>
3956 Joel Brobecker <brobecker@adacore.com>
3957
3958 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3959 field "get_object_address".
3960 * dwarf2expr.c (execute_stack_op): Add handling for
3961 DW_OP_push_object_address.
3962 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3963 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3964 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3965 (dwarf_expr_get_obj_addr): New function.
3966 (dwarf_expr_ctx_funcs): Add get_object_address field.
3967 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3968 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3969 (dwarf2_evaluate_property): Add parameter "address". Use it.
3970 (needs_get_obj_addr): New function.
3971 (needs_frame_ctx_funcs): Add get_object_address field.
3972 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3973 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3974 (resolve_dynamic_array): Likewise.
3975
3976 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3977
3978 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3979 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3980 fixed value for records and unions for which some GNAT encodings
3981 are present.
3982
3983 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3984
3985 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3986 rewrite to avoid "else if" and "else" constructs. Should be
3987 a no-op in practice.
3988
3989 2014-08-18 Joel Brobecker <brobecker@adacore.com>
3990
3991 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3992 of lexical block.
3993
3994 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
3995
3996 PR c++/17132
3997 * eval.c: Update all calls to find_overload_match.
3998 * valarith.c: Likewise.
3999 (value_user_defined_cpp_op, value_user_defined_op): New
4000 argument NOSIDE. Update all callers.
4001 * valops.c (find_overload_match): New argument NOSIDE.
4002 * value.h (find_overload_match): Update signature.
4003
4004 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
4005
4006 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4007 'items' methods instead of 'iteritems' method on dictionaries.
4008
4009 2014-08-15 Doug Evans <dje@google.com>
4010
4011 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4012 closer to use.
4013
4014 2014-08-15 Doug Evans <dje@google.com>
4015
4016 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4017
4018 2014-08-15 Doug Evans <dje@google.com>
4019
4020 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4021
4022 2014-08-15 Doug Evans <dje@google.com>
4023
4024 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4025 unused.
4026
4027 2014-08-15 Eli Zaretskii <eliz@gnu.org>
4028
4029 * dcache.h: Include target.h, to avoid compile time warnings.
4030
4031 2014-08-15 Joel Brobecker <brobecker@adacore.com>
4032
4033 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
4034 frame_info" partial declaration.
4035 * gdbarch.h: Regenerate.
4036
4037 2014-08-15 Yao Qi <yao@codesourcery.com>
4038
4039 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4040 Add parameter 'decode_for_pst_p'. Callers update.
4041
4042 2014-08-13 Yao Qi <yao@codesourcery.com>
4043
4044 PR build/17104
4045 * configure.ac: Use local variable 'pos'.
4046 * configure: Regenerated.
4047
4048 2014-08-11 Doug Evans <dje@google.com>
4049
4050 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4051 message, it is redundant with "Reading symbols from ..." message.
4052
4053 2014-08-10 Doug Evans <xdje42@gmail.com>
4054
4055 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4056
4057 2014-08-09 Yao Qi <yao@codesourcery.com>
4058
4059 PR remote/9053
4060 * remote.c (remote_xfer_partial): Remove dead code.
4061
4062 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4063
4064 * ia64-linux-tdep.c: Include "regset.h".
4065 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4066 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4067 (ia64_linux_supply_fpregset): New function.
4068 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4069 (ia64_linux_regset_from_core_section): New function.
4070 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4071 method.
4072
4073 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4074
4075 * m68klinux-tdep.c: Include "regset.h".
4076 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4077 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4078 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4079 (m68k_linux_regset_from_core_section): New function.
4080 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4081 method.
4082
4083 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4084
4085 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4086 function. Move logic to...
4087 (tilegx_linux_regmap): ... this new register map.
4088 (tilegx_linux_regset): Refer to register map, replace supply
4089 method by regcache_supply_regset, and add collect method.
4090 * tilegx-tdep.h (enum tilegx_regnum): New enum value
4091 TILEGX_FIRST_EASY_REGNUM.
4092
4093 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4094
4095 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4096 that calls regcache_supply_regset and handles the EPC register
4097 separately. Move main logic to...
4098 (score7_linux_gregmap): ... this new register map.
4099 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4100 (score7_linux_gregset): Refer to register map. Add collect method.
4101 (score7_linux_regset_from_core_section): Replace
4102 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4103 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4104 (struct regset): Delete unused forward declaraction.
4105 (struct pt_regs): Delete structure definition.
4106 (elf_gregset_t): Delete typedef.
4107
4108 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4109
4110 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4111 (nios2_core_regset): Add collect method.
4112
4113 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4114
4115 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4116 platform-independent and don't write to read-only input buffer.
4117 (m32r_linux_collect_gregset): New function.
4118 (m32r_linux_gregset): Add collect method.
4119
4120 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4121
4122 * hppa-linux-tdep.c (greg_map): Rename to...
4123 (hppa_linux_gregmap): ... this. Also convert to
4124 regcache_map_entry format.
4125 (hppa_linux_supply_regset): Delete function.
4126 (hppa_linux_supply_fpregset): Delete function. Move logic to...
4127 (hppa_linux_fpregmap): ... this new register map.
4128 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4129 register map, replace supply method by regcache_supply_regset, and
4130 add collect method regcache_collect_regset.
4131
4132 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4133
4134 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4135 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4136 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4137 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4138 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4139 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4140 (frv_linux_supply_gregset): Replace main logic by call to
4141 regcache_supply_regset, but keep clearing gr32-gr63.
4142 (frv_linux_supply_fpregset): Delete function.
4143 (frv_linux_gregset): Refer to appropriate register map and add
4144 regcache_collect_regset as the collect method.
4145 (frv_linux_fpregset): Likewise. Also exchange the supply method
4146 by regcache_supply_regset.
4147
4148 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4149
4150 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4151 by call to alpha_supply_int_regs.
4152 (alpha_linux_collect_gregset): New function.
4153 (alpha_linux_supply_fpregset): Replace logic by call to
4154 alpha_supply_fp_regs.
4155 (alpha_linux_collect_fpregset): New function.
4156 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4157
4158 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4159
4160 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4161 by call to regcache_collect_regset.
4162 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4163 instead of aarch64_linux_supply_gregset/_fpregset.
4164 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4165 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4166 header file instead.
4167 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4168 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4169 functions. Move logic to ...
4170 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4171 register maps.
4172 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4173 refer to new register maps, replace *_regset_from_core by
4174 regcache_supply_regset, and also use regcache_collect_regset.
4175 * aarch64-linux-tdep.h: Include "regset.h".
4176 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4177 Delete prototypes.
4178 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4179 macros, moved from C source file.
4180 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4181 variable declarations.
4182
4183 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4184
4185 * s390-linux-nat.c: Include "regset.h".
4186 (regmap_gregset): Delete macro.
4187 (s390_64_regmap_gregset): New register map for
4188 regcache_supply/_collect_regset.
4189 (s390_64_gregset): New regset.
4190 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4191 (regmap_fpregset): Delete macro.
4192 (s390_native_supply, s390_native_collect): Delete functions.
4193 (supply_gregset, fill_gregset): Replace s390-specific regmap
4194 handling by a call to regcache_supply/_collect_regset.
4195 (supply_fpregset, fill_fpregset): Call regcache_supply/
4196 _collect_regset instead of s390_native_supply/_collect.
4197 (fetch_regset, store_regset): Likewise. Also change the last
4198 parameter to a regset instead of a regmap.
4199 (s390_linux_fetch_inferior_registers)
4200 (390_linux_store_inferior_registers): Adjust last parameter in
4201 calls to fetch_regset and store_regset.
4202 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4203 (s390_gregmap): ... this. Also make static const and convert to
4204 regcache_map_entry format.
4205 (s390x_regmap_gregset): Delete.
4206 (s390_regmap_fpregset): Rename to...
4207 (s390_fpregmap): ... this. Make static const and convert to
4208 regcache_map_entry format.
4209 (s390_regmap_upper, s390_regmap_last_break)
4210 (s390x_regmap_last_break, s390_regmap_system_call)
4211 (s390_regmap_tdb): Likewise.
4212 (s390_supply_regset, s390_collect_regset): Remove functions.
4213 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4214 s390_supply_regset.
4215 (s390_gregset, s390_fpregset, s390_upper_regset)
4216 (s390_last_break_regset, s390x_last_break_regset)
4217 (s390_system_call_regset, s390_tdb_regset): Make global and
4218 replace s390_supply/_collect_regset by regcache_supply/
4219 _collect_regset.
4220 (s390x_gregset): Delete.
4221 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4222 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4223 (s390_regmap_fpregset, s390_regmap_last_break)
4224 (s390x_regmap_last_break, s390_regmap_system_call)
4225 (s390_regmap_tdb): Delete global variable declarations.
4226 (s390_gregset, s390_fpregset, s390_last_break_regset)
4227 (s390x_last_break_regset, s390_system_call_regset)
4228 (s390_tdb_regset): New global variable declarations.
4229
4230 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4231
4232 * regcache.c: Include "regset.h".
4233 (regcache_transfer_regset): New local function.
4234 (regcache_supply_regset, regcache_collect_regset): New functions.
4235 * regcache.h (struct regcache_map_entry): New structure.
4236 (REGCACHE_MAP_SKIP): New enum value.
4237 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4238
4239 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
4240
4241 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4242 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4243 (ppc_linux_collect_gregset ): Likewise.
4244 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4245 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4246 (ppc_collect_vrregset): Likewise.
4247 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4248 Likewise.
4249
4250 2014-08-07 Yao Qi <yao@codesourcery.com>
4251
4252 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4253 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4254 * remote.c (remote_read_bytes): Likewise.
4255
4256 2014-08-07 Yao Qi <yao@codesourcery.com>
4257
4258 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4259
4260 2014-08-07 Yao Qi <yao@codesourcery.com>
4261
4262 PR remote/17230
4263 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4264 TARGET_XFER_OK instead of 0.
4265
4266 2014-08-07 Gary Benson <gbenson@redhat.com>
4267
4268 * common/common-defs.h: Include errno.h.
4269 * defs.h: Do not include errno.h.
4270 * ada-typeprint.c: Likewise.
4271 * c-typeprint.c: Likewise.
4272 * core-regset.c: Likewise.
4273 * corefile.c: Likewise.
4274 * corelow.c: Likewise.
4275 * event-loop.c: Likewise.
4276 * f-typeprint.c: Likewise.
4277 * gnu-nat.c: Likewise.
4278 * go32-nat.c: Likewise.
4279 * i386gnu-nat.c: Likewise.
4280 * m2-typeprint.c: Likewise.
4281 * nat/linux-btrace.c: Likewise.
4282 * p-typeprint.c: Likewise.
4283 * procfs.c: Likewise.
4284 * remote-sim.c: Likewise.
4285 * rs6000-nat.c: Likewise.
4286 * target.c: Likewise.
4287 * typeprint.c: Likewise.
4288 * ui-file.c: Likewise.
4289 * valops.c: Likewise.
4290 * valprint.c: Likewise.
4291
4292 2014-08-07 Gary Benson <gbenson@redhat.com>
4293
4294 * common/common-defs.h: Include string.h.
4295 * aarch64-tdep.c: Do not include string.h.
4296 * ada-exp.y: Likewise.
4297 * ada-lang.c: Likewise.
4298 * ada-lex.l: Likewise.
4299 * ada-typeprint.c: Likewise.
4300 * ada-valprint.c: Likewise.
4301 * aix-thread.c: Likewise.
4302 * alpha-linux-tdep.c: Likewise.
4303 * alpha-mdebug-tdep.c: Likewise.
4304 * alpha-nat.c: Likewise.
4305 * alpha-osf1-tdep.c: Likewise.
4306 * alpha-tdep.c: Likewise.
4307 * alphanbsd-tdep.c: Likewise.
4308 * amd64-dicos-tdep.c: Likewise.
4309 * amd64-linux-tdep.c: Likewise.
4310 * amd64-nat.c: Likewise.
4311 * amd64-sol2-tdep.c: Likewise.
4312 * amd64fbsd-tdep.c: Likewise.
4313 * amd64obsd-tdep.c: Likewise.
4314 * arch-utils.c: Likewise.
4315 * arm-linux-nat.c: Likewise.
4316 * arm-linux-tdep.c: Likewise.
4317 * arm-tdep.c: Likewise.
4318 * arm-wince-tdep.c: Likewise.
4319 * armbsd-tdep.c: Likewise.
4320 * armnbsd-nat.c: Likewise.
4321 * armnbsd-tdep.c: Likewise.
4322 * armobsd-tdep.c: Likewise.
4323 * avr-tdep.c: Likewise.
4324 * ax-gdb.c: Likewise.
4325 * ax-general.c: Likewise.
4326 * bcache.c: Likewise.
4327 * bfin-tdep.c: Likewise.
4328 * breakpoint.c: Likewise.
4329 * build-id.c: Likewise.
4330 * buildsym.c: Likewise.
4331 * c-exp.y: Likewise.
4332 * c-lang.c: Likewise.
4333 * c-typeprint.c: Likewise.
4334 * c-valprint.c: Likewise.
4335 * charset.c: Likewise.
4336 * cli-out.c: Likewise.
4337 * cli/cli-cmds.c: Likewise.
4338 * cli/cli-decode.c: Likewise.
4339 * cli/cli-dump.c: Likewise.
4340 * cli/cli-interp.c: Likewise.
4341 * cli/cli-logging.c: Likewise.
4342 * cli/cli-script.c: Likewise.
4343 * cli/cli-setshow.c: Likewise.
4344 * cli/cli-utils.c: Likewise.
4345 * coffread.c: Likewise.
4346 * common/agent.c: Likewise.
4347 * common/buffer.c: Likewise.
4348 * common/buffer.h: Likewise.
4349 * common/common-utils.c: Likewise.
4350 * common/filestuff.c: Likewise.
4351 * common/filestuff.c: Likewise.
4352 * common/format.c: Likewise.
4353 * common/print-utils.c: Likewise.
4354 * common/rsp-low.c: Likewise.
4355 * common/signals.c: Likewise.
4356 * common/vec.h: Likewise.
4357 * common/xml-utils.c: Likewise.
4358 * core-regset.c: Likewise.
4359 * corefile.c: Likewise.
4360 * corelow.c: Likewise.
4361 * cp-abi.c: Likewise.
4362 * cp-name-parser.y: Likewise.
4363 * cp-support.c: Likewise.
4364 * cp-valprint.c: Likewise.
4365 * cris-tdep.c: Likewise.
4366 * d-exp.y: Likewise.
4367 * darwin-nat.c: Likewise.
4368 * dbxread.c: Likewise.
4369 * dcache.c: Likewise.
4370 * demangle.c: Likewise.
4371 * dicos-tdep.c: Likewise.
4372 * disasm.c: Likewise.
4373 * doublest.c: Likewise.
4374 * dsrec.c: Likewise.
4375 * dummy-frame.c: Likewise.
4376 * dwarf2-frame.c: Likewise.
4377 * dwarf2loc.c: Likewise.
4378 * dwarf2read.c: Likewise.
4379 * elfread.c: Likewise.
4380 * environ.c: Likewise.
4381 * eval.c: Likewise.
4382 * event-loop.c: Likewise.
4383 * exceptions.c: Likewise.
4384 * exec.c: Likewise.
4385 * expprint.c: Likewise.
4386 * f-exp.y: Likewise.
4387 * f-lang.c: Likewise.
4388 * f-typeprint.c: Likewise.
4389 * f-valprint.c: Likewise.
4390 * fbsd-nat.c: Likewise.
4391 * findcmd.c: Likewise.
4392 * findvar.c: Likewise.
4393 * fork-child.c: Likewise.
4394 * frame.c: Likewise.
4395 * frv-linux-tdep.c: Likewise.
4396 * frv-tdep.c: Likewise.
4397 * gdb.c: Likewise.
4398 * gdb_bfd.c: Likewise.
4399 * gdbarch.c: Likewise.
4400 * gdbarch.sh: Likewise.
4401 * gdbtypes.c: Likewise.
4402 * gnu-nat.c: Likewise.
4403 * gnu-v2-abi.c: Likewise.
4404 * gnu-v3-abi.c: Likewise.
4405 * go-exp.y: Likewise.
4406 * go-lang.c: Likewise.
4407 * go32-nat.c: Likewise.
4408 * guile/guile.c: Likewise.
4409 * guile/scm-auto-load.c: Likewise.
4410 * hppa-hpux-tdep.c: Likewise.
4411 * hppa-linux-nat.c: Likewise.
4412 * hppanbsd-tdep.c: Likewise.
4413 * hppaobsd-tdep.c: Likewise.
4414 * i386-cygwin-tdep.c: Likewise.
4415 * i386-dicos-tdep.c: Likewise.
4416 * i386-linux-tdep.c: Likewise.
4417 * i386-nto-tdep.c: Likewise.
4418 * i386-sol2-tdep.c: Likewise.
4419 * i386-tdep.c: Likewise.
4420 * i386bsd-tdep.c: Likewise.
4421 * i386gnu-nat.c: Likewise.
4422 * i386nbsd-tdep.c: Likewise.
4423 * i386obsd-tdep.c: Likewise.
4424 * i387-tdep.c: Likewise.
4425 * ia64-libunwind-tdep.c: Likewise.
4426 * ia64-linux-nat.c: Likewise.
4427 * inf-child.c: Likewise.
4428 * inf-ptrace.c: Likewise.
4429 * inf-ttrace.c: Likewise.
4430 * infcall.c: Likewise.
4431 * infcmd.c: Likewise.
4432 * inflow.c: Likewise.
4433 * infrun.c: Likewise.
4434 * interps.c: Likewise.
4435 * iq2000-tdep.c: Likewise.
4436 * irix5-nat.c: Likewise.
4437 * jv-exp.y: Likewise.
4438 * jv-lang.c: Likewise.
4439 * jv-typeprint.c: Likewise.
4440 * jv-valprint.c: Likewise.
4441 * language.c: Likewise.
4442 * linux-fork.c: Likewise.
4443 * linux-nat.c: Likewise.
4444 * lm32-tdep.c: Likewise.
4445 * m2-exp.y: Likewise.
4446 * m2-typeprint.c: Likewise.
4447 * m32c-tdep.c: Likewise.
4448 * m32r-linux-nat.c: Likewise.
4449 * m32r-linux-tdep.c: Likewise.
4450 * m32r-rom.c: Likewise.
4451 * m32r-tdep.c: Likewise.
4452 * m68hc11-tdep.c: Likewise.
4453 * m68k-tdep.c: Likewise.
4454 * m68kbsd-tdep.c: Likewise.
4455 * m68klinux-nat.c: Likewise.
4456 * m68klinux-tdep.c: Likewise.
4457 * m88k-tdep.c: Likewise.
4458 * machoread.c: Likewise.
4459 * macrocmd.c: Likewise.
4460 * main.c: Likewise.
4461 * mdebugread.c: Likewise.
4462 * mem-break.c: Likewise.
4463 * memattr.c: Likewise.
4464 * memory-map.c: Likewise.
4465 * mep-tdep.c: Likewise.
4466 * mi/mi-cmd-break.c: Likewise.
4467 * mi/mi-cmd-disas.c: Likewise.
4468 * mi/mi-cmd-env.c: Likewise.
4469 * mi/mi-cmd-stack.c: Likewise.
4470 * mi/mi-cmd-var.c: Likewise.
4471 * mi/mi-cmds.c: Likewise.
4472 * mi/mi-console.c: Likewise.
4473 * mi/mi-getopt.c: Likewise.
4474 * mi/mi-interp.c: Likewise.
4475 * mi/mi-main.c: Likewise.
4476 * mi/mi-parse.c: Likewise.
4477 * microblaze-rom.c: Likewise.
4478 * microblaze-tdep.c: Likewise.
4479 * mingw-hdep.c: Likewise.
4480 * minidebug.c: Likewise.
4481 * minsyms.c: Likewise.
4482 * mips-irix-tdep.c: Likewise.
4483 * mips-linux-tdep.c: Likewise.
4484 * mips-tdep.c: Likewise.
4485 * mips64obsd-tdep.c: Likewise.
4486 * mipsnbsd-tdep.c: Likewise.
4487 * mipsread.c: Likewise.
4488 * mn10300-linux-tdep.c: Likewise.
4489 * mn10300-tdep.c: Likewise.
4490 * monitor.c: Likewise.
4491 * moxie-tdep.c: Likewise.
4492 * mt-tdep.c: Likewise.
4493 * nat/linux-btrace.c: Likewise.
4494 * nat/linux-osdata.c: Likewise.
4495 * nat/linux-procfs.c: Likewise.
4496 * nat/linux-ptrace.c: Likewise.
4497 * nat/linux-waitpid.c: Likewise.
4498 * nbsd-tdep.c: Likewise.
4499 * nios2-linux-tdep.c: Likewise.
4500 * nto-procfs.c: Likewise.
4501 * nto-tdep.c: Likewise.
4502 * objc-lang.c: Likewise.
4503 * objfiles.c: Likewise.
4504 * opencl-lang.c: Likewise.
4505 * osabi.c: Likewise.
4506 * osdata.c: Likewise.
4507 * p-exp.y: Likewise.
4508 * p-lang.c: Likewise.
4509 * p-typeprint.c: Likewise.
4510 * parse.c: Likewise.
4511 * posix-hdep.c: Likewise.
4512 * ppc-linux-nat.c: Likewise.
4513 * ppc-sysv-tdep.c: Likewise.
4514 * ppcfbsd-tdep.c: Likewise.
4515 * ppcnbsd-tdep.c: Likewise.
4516 * ppcobsd-tdep.c: Likewise.
4517 * printcmd.c: Likewise.
4518 * procfs.c: Likewise.
4519 * prologue-value.c: Likewise.
4520 * python/py-auto-load.c: Likewise.
4521 * python/py-gdb-readline.c: Likewise.
4522 * ravenscar-thread.c: Likewise.
4523 * regcache.c: Likewise.
4524 * registry.c: Likewise.
4525 * remote-fileio.c: Likewise.
4526 * remote-m32r-sdi.c: Likewise.
4527 * remote-mips.c: Likewise.
4528 * remote-notif.c: Likewise.
4529 * remote-sim.c: Likewise.
4530 * remote.c: Likewise.
4531 * reverse.c: Likewise.
4532 * rs6000-aix-tdep.c: Likewise.
4533 * ser-base.c: Likewise.
4534 * ser-go32.c: Likewise.
4535 * ser-mingw.c: Likewise.
4536 * ser-pipe.c: Likewise.
4537 * ser-tcp.c: Likewise.
4538 * ser-unix.c: Likewise.
4539 * serial.c: Likewise.
4540 * sh-tdep.c: Likewise.
4541 * sh64-tdep.c: Likewise.
4542 * shnbsd-tdep.c: Likewise.
4543 * skip.c: Likewise.
4544 * sol-thread.c: Likewise.
4545 * solib-dsbt.c: Likewise.
4546 * solib-frv.c: Likewise.
4547 * solib-osf.c: Likewise.
4548 * solib-som.c: Likewise.
4549 * solib-spu.c: Likewise.
4550 * solib-target.c: Likewise.
4551 * solib.c: Likewise.
4552 * somread.c: Likewise.
4553 * source.c: Likewise.
4554 * sparc-nat.c: Likewise.
4555 * sparc-sol2-tdep.c: Likewise.
4556 * sparc-tdep.c: Likewise.
4557 * sparc64-tdep.c: Likewise.
4558 * sparc64fbsd-tdep.c: Likewise.
4559 * sparc64nbsd-tdep.c: Likewise.
4560 * sparcnbsd-tdep.c: Likewise.
4561 * spu-linux-nat.c: Likewise.
4562 * spu-multiarch.c: Likewise.
4563 * spu-tdep.c: Likewise.
4564 * stabsread.c: Likewise.
4565 * stack.c: Likewise.
4566 * std-regs.c: Likewise.
4567 * symfile.c: Likewise.
4568 * symmisc.c: Likewise.
4569 * symtab.c: Likewise.
4570 * target.c: Likewise.
4571 * thread.c: Likewise.
4572 * tilegx-linux-nat.c: Likewise.
4573 * tilegx-tdep.c: Likewise.
4574 * top.c: Likewise.
4575 * tracepoint.c: Likewise.
4576 * tui/tui-command.c: Likewise.
4577 * tui/tui-data.c: Likewise.
4578 * tui/tui-disasm.c: Likewise.
4579 * tui/tui-file.c: Likewise.
4580 * tui/tui-layout.c: Likewise.
4581 * tui/tui-out.c: Likewise.
4582 * tui/tui-regs.c: Likewise.
4583 * tui/tui-source.c: Likewise.
4584 * tui/tui-stack.c: Likewise.
4585 * tui/tui-win.c: Likewise.
4586 * tui/tui-windata.c: Likewise.
4587 * tui/tui-winsource.c: Likewise.
4588 * typeprint.c: Likewise.
4589 * ui-file.c: Likewise.
4590 * ui-out.c: Likewise.
4591 * user-regs.c: Likewise.
4592 * utils.c: Likewise.
4593 * v850-tdep.c: Likewise.
4594 * valarith.c: Likewise.
4595 * valops.c: Likewise.
4596 * valprint.c: Likewise.
4597 * value.c: Likewise.
4598 * varobj.c: Likewise.
4599 * vax-tdep.c: Likewise.
4600 * vaxnbsd-tdep.c: Likewise.
4601 * vaxobsd-tdep.c: Likewise.
4602 * windows-nat.c: Likewise.
4603 * xcoffread.c: Likewise.
4604 * xml-support.c: Likewise.
4605 * xstormy16-tdep.c: Likewise.
4606 * xtensa-linux-nat.c: Likewise.
4607
4608 2014-08-07 Gary Benson <gbenson@redhat.com>
4609
4610 * common/common-defs.h: Include gdb_assert.h.
4611 * aarch64-tdep.c: Do not include gdb_assert.h.
4612 * addrmap.c: Likewise.
4613 * aix-thread.c: Likewise.
4614 * alpha-linux-tdep.c: Likewise.
4615 * alpha-mdebug-tdep.c: Likewise.
4616 * alphanbsd-tdep.c: Likewise.
4617 * amd64-nat.c: Likewise.
4618 * amd64-tdep.c: Likewise.
4619 * amd64bsd-nat.c: Likewise.
4620 * amd64fbsd-nat.c: Likewise.
4621 * amd64fbsd-tdep.c: Likewise.
4622 * amd64nbsd-nat.c: Likewise.
4623 * amd64nbsd-tdep.c: Likewise.
4624 * amd64obsd-nat.c: Likewise.
4625 * amd64obsd-tdep.c: Likewise.
4626 * arch-utils.c: Likewise.
4627 * arm-tdep.c: Likewise.
4628 * armbsd-tdep.c: Likewise.
4629 * auxv.c: Likewise.
4630 * bcache.c: Likewise.
4631 * bfin-tdep.c: Likewise.
4632 * blockframe.c: Likewise.
4633 * breakpoint.c: Likewise.
4634 * bsd-kvm.c: Likewise.
4635 * bsd-uthread.c: Likewise.
4636 * buildsym.c: Likewise.
4637 * c-exp.y: Likewise.
4638 * c-lang.c: Likewise.
4639 * charset.c: Likewise.
4640 * cleanups.c: Likewise.
4641 * cli-out.c: Likewise.
4642 * cli/cli-decode.c: Likewise.
4643 * cli/cli-dump.c: Likewise.
4644 * cli/cli-logging.c: Likewise.
4645 * cli/cli-script.c: Likewise.
4646 * cli/cli-utils.c: Likewise.
4647 * coffread.c: Likewise.
4648 * common/common-utils.c: Likewise.
4649 * common/queue.h: Likewise.
4650 * common/signals.c: Likewise.
4651 * common/vec.h: Likewise.
4652 * complaints.c: Likewise.
4653 * completer.c: Likewise.
4654 * corelow.c: Likewise.
4655 * cp-abi.c: Likewise.
4656 * cp-name-parser.y: Likewise.
4657 * cp-namespace.c: Likewise.
4658 * cp-support.c: Likewise.
4659 * cris-tdep.c: Likewise.
4660 * dbxread.c: Likewise.
4661 * dictionary.c: Likewise.
4662 * doublest.c: Likewise.
4663 * dsrec.c: Likewise.
4664 * dummy-frame.c: Likewise.
4665 * dwarf2-frame-tailcall.c: Likewise.
4666 * dwarf2-frame.c: Likewise.
4667 * dwarf2expr.c: Likewise.
4668 * dwarf2loc.c: Likewise.
4669 * dwarf2read.c: Likewise.
4670 * eval.c: Likewise.
4671 * event-loop.c: Likewise.
4672 * exceptions.c: Likewise.
4673 * expprint.c: Likewise.
4674 * f-valprint.c: Likewise.
4675 * fbsd-nat.c: Likewise.
4676 * findvar.c: Likewise.
4677 * frame-unwind.c: Likewise.
4678 * frame.c: Likewise.
4679 * frv-tdep.c: Likewise.
4680 * gcore.c: Likewise.
4681 * gdb-dlfcn.c: Likewise.
4682 * gdb_bfd.c: Likewise.
4683 * gdbarch.c: Likewise.
4684 * gdbarch.sh: Likewise.
4685 * gdbtypes.c: Likewise.
4686 * gnu-nat.c: Likewise.
4687 * gnu-v3-abi.c: Likewise.
4688 * go-lang.c: Likewise.
4689 * guile/scm-exception.c: Likewise.
4690 * guile/scm-gsmob.c: Likewise.
4691 * guile/scm-lazy-string.c: Likewise.
4692 * guile/scm-math.c: Likewise.
4693 * guile/scm-pretty-print.c: Likewise.
4694 * guile/scm-safe-call.c: Likewise.
4695 * guile/scm-utils.c: Likewise.
4696 * guile/scm-value.c: Likewise.
4697 * h8300-tdep.c: Likewise.
4698 * hppa-hpux-nat.c: Likewise.
4699 * hppa-tdep.c: Likewise.
4700 * hppanbsd-tdep.c: Likewise.
4701 * hppaobsd-tdep.c: Likewise.
4702 * i386-darwin-nat.c: Likewise.
4703 * i386-darwin-tdep.c: Likewise.
4704 * i386-nto-tdep.c: Likewise.
4705 * i386-tdep.c: Likewise.
4706 * i386bsd-nat.c: Likewise.
4707 * i386fbsd-tdep.c: Likewise.
4708 * i386gnu-nat.c: Likewise.
4709 * i386nbsd-tdep.c: Likewise.
4710 * i386obsd-tdep.c: Likewise.
4711 * i387-tdep.c: Likewise.
4712 * ia64-libunwind-tdep.c: Likewise.
4713 * ia64-tdep.c: Likewise.
4714 * inf-ptrace.c: Likewise.
4715 * inf-ttrace.c: Likewise.
4716 * infcall.c: Likewise.
4717 * infcmd.c: Likewise.
4718 * infrun.c: Likewise.
4719 * inline-frame.c: Likewise.
4720 * interps.c: Likewise.
4721 * jv-lang.c: Likewise.
4722 * jv-typeprint.c: Likewise.
4723 * linux-fork.c: Likewise.
4724 * linux-nat.c: Likewise.
4725 * linux-thread-db.c: Likewise.
4726 * m32c-tdep.c: Likewise.
4727 * m32r-linux-nat.c: Likewise.
4728 * m32r-tdep.c: Likewise.
4729 * m68k-tdep.c: Likewise.
4730 * m68kbsd-nat.c: Likewise.
4731 * m68kbsd-tdep.c: Likewise.
4732 * m88k-tdep.c: Likewise.
4733 * machoread.c: Likewise.
4734 * macroexp.c: Likewise.
4735 * macrotab.c: Likewise.
4736 * maint.c: Likewise.
4737 * mdebugread.c: Likewise.
4738 * memory-map.c: Likewise.
4739 * mep-tdep.c: Likewise.
4740 * mi/mi-common.c: Likewise.
4741 * microblaze-tdep.c: Likewise.
4742 * mingw-hdep.c: Likewise.
4743 * mips-linux-nat.c: Likewise.
4744 * mips-linux-tdep.c: Likewise.
4745 * mips-tdep.c: Likewise.
4746 * mips64obsd-tdep.c: Likewise.
4747 * mipsnbsd-tdep.c: Likewise.
4748 * mn10300-linux-tdep.c: Likewise.
4749 * mn10300-tdep.c: Likewise.
4750 * moxie-tdep.c: Likewise.
4751 * mt-tdep.c: Likewise.
4752 * nat/linux-btrace.c: Likewise.
4753 * nat/linux-osdata.c: Likewise.
4754 * nat/linux-ptrace.c: Likewise.
4755 * nat/mips-linux-watch.c: Likewise.
4756 * nios2-linux-tdep.c: Likewise.
4757 * nios2-tdep.c: Likewise.
4758 * objc-lang.c: Likewise.
4759 * objfiles.c: Likewise.
4760 * obsd-nat.c: Likewise.
4761 * opencl-lang.c: Likewise.
4762 * osabi.c: Likewise.
4763 * parse.c: Likewise.
4764 * ppc-linux-nat.c: Likewise.
4765 * ppc-sysv-tdep.c: Likewise.
4766 * ppcfbsd-nat.c: Likewise.
4767 * ppcfbsd-tdep.c: Likewise.
4768 * ppcnbsd-nat.c: Likewise.
4769 * ppcnbsd-tdep.c: Likewise.
4770 * ppcobsd-nat.c: Likewise.
4771 * ppcobsd-tdep.c: Likewise.
4772 * printcmd.c: Likewise.
4773 * procfs.c: Likewise.
4774 * prologue-value.c: Likewise.
4775 * psymtab.c: Likewise.
4776 * python/py-lazy-string.c: Likewise.
4777 * python/py-value.c: Likewise.
4778 * regcache.c: Likewise.
4779 * reggroups.c: Likewise.
4780 * registry.c: Likewise.
4781 * remote-sim.c: Likewise.
4782 * remote.c: Likewise.
4783 * rs6000-aix-tdep.c: Likewise.
4784 * rs6000-tdep.c: Likewise.
4785 * s390-linux-tdep.c: Likewise.
4786 * score-tdep.c: Likewise.
4787 * ser-base.c: Likewise.
4788 * ser-mingw.c: Likewise.
4789 * sh-tdep.c: Likewise.
4790 * sh64-tdep.c: Likewise.
4791 * solib-darwin.c: Likewise.
4792 * solib-spu.c: Likewise.
4793 * solib-svr4.c: Likewise.
4794 * source.c: Likewise.
4795 * sparc-nat.c: Likewise.
4796 * sparc-sol2-tdep.c: Likewise.
4797 * sparc-tdep.c: Likewise.
4798 * sparc64-sol2-tdep.c: Likewise.
4799 * sparc64-tdep.c: Likewise.
4800 * sparc64fbsd-tdep.c: Likewise.
4801 * sparc64nbsd-tdep.c: Likewise.
4802 * sparc64obsd-tdep.c: Likewise.
4803 * sparcnbsd-tdep.c: Likewise.
4804 * sparcobsd-tdep.c: Likewise.
4805 * spu-multiarch.c: Likewise.
4806 * spu-tdep.c: Likewise.
4807 * stabsread.c: Likewise.
4808 * stack.c: Likewise.
4809 * symfile.c: Likewise.
4810 * symtab.c: Likewise.
4811 * target-descriptions.c: Likewise.
4812 * target-memory.c: Likewise.
4813 * target.c: Likewise.
4814 * tic6x-linux-tdep.c: Likewise.
4815 * tic6x-tdep.c: Likewise.
4816 * tilegx-linux-nat.c: Likewise.
4817 * tilegx-tdep.c: Likewise.
4818 * top.c: Likewise.
4819 * tramp-frame.c: Likewise.
4820 * tui/tui-out.c: Likewise.
4821 * tui/tui-winsource.c: Likewise.
4822 * ui-out.c: Likewise.
4823 * user-regs.c: Likewise.
4824 * utils.c: Likewise.
4825 * v850-tdep.c: Likewise.
4826 * valops.c: Likewise.
4827 * value.c: Likewise.
4828 * varobj.c: Likewise.
4829 * vax-nat.c: Likewise.
4830 * xml-syscall.c: Likewise.
4831 * xml-tdesc.c: Likewise.
4832 * xstormy16-tdep.c: Likewise.
4833 * xtensa-linux-nat.c: Likewise.
4834 * xtensa-tdep.c: Likewise.
4835
4836 2014-08-07 Gary Benson <gbenson@redhat.com>
4837
4838 * common/common-defs.h: Include common-utils.h.
4839 * defs.h: Do not include common-utils.h.
4840 * common/gdb_assert.h: Likewise.
4841 * darwin-nat.h: Likewise.
4842 * nat/linux-btrace.c: Likewise.
4843 * target/waitstatus.h: Likewise.
4844
4845 2014-08-07 Gary Benson <gbenson@redhat.com>
4846
4847 * common/common-defs.h: Include ptid.h.
4848 * defs.h: Do not include ptid.h.
4849 * inferior.h: Likewise.
4850 * infrun.h: Likewise.
4851 * nat/linux-btrace.h: Likewise.
4852 * nat/linux-osdata.h: Likewise.
4853 * target/waitstatus.h: Likewise.
4854
4855 2014-08-07 Gary Benson <gbenson@redhat.com>
4856
4857 * common/common-defs.h: Include gdb_locale.h.
4858 * defs.h: Do not include gdb_locale.h.
4859
4860 2014-08-07 Gary Benson <gbenson@redhat.com>
4861
4862 * common/common-defs.h: Include gdb/signals.h.
4863 * defs.h: Do not include gdb/signals.h.
4864
4865 2014-08-07 Gary Benson <gbenson@redhat.com>
4866
4867 * common/common-defs.h: Include pathmax.h.
4868 * defs.h: Do not include pathmax.h.
4869
4870 2014-08-07 Gary Benson <gbenson@redhat.com>
4871
4872 * common/common-defs.h: Include libiberty.h.
4873 * defs.h: Do not include libiberty.h.
4874 * common/queue.h: Likewise.
4875 * cp-name-parser.y: Likewise.
4876 * mi/mi-cmd-catch.c: Likewise.
4877 * python/python.c: Likewise.
4878
4879 2014-08-07 Gary Benson <gbenson@redhat.com>
4880
4881 * common/common-defs.h: Include ansidecl.h.
4882 * defs.h: Do not include ansidecl.h.
4883 * common/buffer.h: Likewise.
4884 * common/common-utils.h: Likewise.
4885
4886 2014-08-07 Gary Benson <gbenson@redhat.com>
4887
4888 * common/common-defs.h: Include stddef.h.
4889 * defs.h: Do not include stddef.h.
4890 * common/common-utils.h: Likewise.
4891 * amd64fbsd-nat.c: Likewise.
4892 * bcache.c: Likewise.
4893 * charset.c: Likewise.
4894 * common/buffer.h: Likewise.
4895 * common/vec.h: Likewise.
4896 * i386bsd-nat.c: Likewise.
4897 * nat/linux-btrace.h: Likewise.
4898 * ppcfbsd-nat.c: Likewise.
4899 * ppcnbsd-tdep.h: Likewise.
4900 * ppcobsd-nat.c: Likewise.
4901 * ppcobsd-tdep.h: Likewise.
4902 * python/py-gdb-readline.c: Likewise.
4903
4904 2014-08-07 Gary Benson <gbenson@redhat.com>
4905
4906 * common/common-defs.h: Include stdarg.h.
4907 * defs.h: Do not include stdarg.h.
4908 * ada-lang.c: Likewise.
4909 * common/common-utils.h: Likewise.
4910 * guile/scm-string.c: Likewise.
4911 * guile/scm-utils.c: Likewise.
4912 * m32c-tdep.c: Likewise.
4913
4914 2014-08-07 Gary Benson <gbenson@redhat.com>
4915
4916 * common/common-defs.h: Include stdlib.h.
4917 * defs.h: Do not include stdlib.h.
4918 * addrmap.c: Likewise.
4919 * bcache.c: Likewise.
4920 * common/buffer.c: Likewise.
4921 * common/common-utils.c: Likewise.
4922 * cp-name-parser.y: Likewise.
4923 * go32-nat.c: Likewise.
4924 * mn10300-linux-tdep.c: Likewise.
4925 * nat/linux-osdata.c: Likewise.
4926 * tui/tui.c: Likewise.
4927 * windows-nat.c: Likewise.
4928
4929 2014-08-07 Gary Benson <gbenson@redhat.com>
4930
4931 * common/common-defs.h: Include stdio.h.
4932 * defs.h: Do not include stdio.h.
4933 * ada-lang.c: Likewise.
4934 * common/buffer.c: Likewise.
4935 * common/common-utils.c: Likewise.
4936 * cp-name-parser.y: Likewise.
4937 * gnu-nat.c: Likewise.
4938 * go32-nat.c: Likewise.
4939 * i386gnu-nat.c: Likewise.
4940 * proc-api.c: Likewise.
4941 * proc-events.c: Likewise.
4942 * proc-flags.c: Likewise.
4943 * proc-why.c: Likewise.
4944 * python/python-internal.h: Likewise.
4945 * target-memory.c: Likewise.
4946 * tui/tui-io.c: Likewise.
4947 * tui/tui.c: Likewise.
4948
4949 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
4950
4951 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4952 (scan_dyntag_auxv): Same.
4953
4954 2014-08-06 Yao Qi <yao@codesourcery.com>
4955
4956 * amd64-linux-nat.c: Remove duplicated include
4957 "x86-linux-nat.h".
4958 * i386-linux-nat.c: Likewise.
4959
4960 2014-08-06 Yao Qi <yao@codesourcery.com>
4961
4962 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4963 operand" with "Special opcode" in comments.
4964
4965 2014-08-05 Gary Benson <gbenson@redhat.com>
4966
4967 * interps.c (initialize_interps): Remove prototype.
4968 (interpreter_initialized): Remove static global.
4969 (interp_add): Do not call initialize_interps.
4970 (initialize_interps): Remove function.
4971
4972 2014-08-05 Gary Benson <gbenson@redhat.com>
4973
4974 * utils.c (vwarning): Remove spurious va_end.
4975
4976 2014-08-05 Alan Modra <amodra@gmail.com>
4977
4978 * charset.c (convert_between_encodings): Cast result of obstack_base.
4979 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4980 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4981 (read_unwind_info): Use size_t for some locals.
4982 * jit.c (finalize_symtab): Likewise.
4983 * utils.c (hashtab_obstack_allocate): Likewise.
4984 * symmisc.c (print_objfile_statistics): Update format strings.
4985
4986 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4987
4988 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4989 (Changes in GDB 7.8): ... here.
4990
4991 2014-08-04 Tom Tromey <tromey@redhat.com>
4992
4993 * target.c (set_targetdebug): New function.
4994 (initialize_targets): Pass set_targetdebug when creating "set
4995 debug target".
4996
4997 2014-08-01 Joel Brobecker <brobecker@adacore.com>
4998
4999 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5000 if detecting a variable-sized field that is not the last field.
5001 Fix struct type length computation.
5002
5003 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5004
5005 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5006 Add debug trace.
5007
5008 2014-08-01 Joel Brobecker <brobecker@adacore.com>
5009
5010 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5011 Remove "+ 8" offset in computation of CHAIN_VMA.
5012
5013 2014-07-31 Doug Evans <dje@google.com>
5014
5015 * inflow.c (child_terminal_inferior): Add comment.
5016 (child_terminal_ours_for_output): Add comment.
5017 (child_terminal_ours): Add comment.
5018 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5019 (linux_nat_terminal_ours): Add comment.
5020
5021 2014-07-31 Gary Benson <gbenson@redhat.com>
5022
5023 * common/btrace-common.h: Do not include defs.h or server.h.
5024 * nat/mips-linux-watch.h: Likewise.
5025 * gdb-dlfcn.h: Do not include defs.h.
5026 * tracefile.h: Likewise.
5027
5028 2014-07-30 Roland McGrath <mcgrathr@google.com>
5029
5030 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5031
5032 2014-07-30 Tom Tromey <tromey@redhat.com>
5033
5034 * bsd-kvm.c (bsd_kvm_open): Constify.
5035 * corelow.c (core_open): Constify.
5036 * ctf.c (ctf_open): Constify.
5037 * dbug-rom.c (dbug_open): Constify.
5038 * exec.c (exec_open): Constify.
5039 * m32r-rom.c (m32r_open, mon2000_open): Constify.
5040 * microblaze-rom.c (picobug_open): Constify.
5041 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5042 Constify.
5043 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5044 * record-btrace.c (record_btrace_open): Constify.
5045 * record-full.c (record_full_core_open_1, record_full_open_1)
5046 (record_full_open): Constify.
5047 * remote-m32r-sdi.c (m32r_open): Constify.
5048 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5049 (rockhopper_open, lsi_open): Constify.
5050 * remote-sim.c (gdbsim_open): Constify.
5051 * remote.c (remote_open, extended_remote_open, remote_open_1):
5052 Constify.
5053 * target.h (struct target_ops) <to_open>: Make "arg" const.
5054 * tracefile-tfile.c (tfile_open): Constify.
5055
5056 2014-07-30 Tom Tromey <tromey@redhat.com>
5057
5058 * breakpoint.c (map_breakpoint_numbers): Update.
5059 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
5060 (get_number_const): New function.
5061 (get_number): Rewrite using get_number_const.
5062 (init_number_or_range): Make "string" const.
5063 (number_is_in_list): Make "list" const.
5064 * cli/cli-utils.h (get_number_const): Declare.
5065 (struct get_number_or_range_state) <string, end_ptr>: Now const.
5066 (init_number_or_range, number_is_in_list): Update.
5067 * printcmd.c (map_display_numbers): Update.
5068 * value.c (value_from_history_ref): Constify.
5069 * value.h (value_from_history_ref): Update.
5070
5071 2014-07-30 Tom Tromey <tromey@redhat.com>
5072
5073 * corefile.c (hook_type, call_extra_exec_file_hooks)
5074 (specify_exec_file_hook): Constify.
5075 * exec.c (exec_file_attach): Make "filename" const.
5076 * gdbcore.h (deprecated_exec_file_display_hook)
5077 (specify_exec_file_hook, exec_file_attach): Constify.
5078 * main.c (captured_main): Use catch_command_errors_const.
5079
5080 2014-07-30 Tom Tromey <tromey@redhat.com>
5081
5082 * target.c (open_target): New function.
5083 (add_target_with_completer, add_deprecated_target_alias): Use
5084 set_cmd_sfunc, set_cmd_context.
5085 (debug_to_open): Remove.
5086 (setup_target_debug): Update.
5087
5088 2014-07-30 Yao Qi <yao@codesourcery.com>
5089
5090 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5091 comments.
5092 * parse.c (exp_iterate): Update comments.
5093
5094 2014-07-30 Gary Benson <gbenson@redhat.com>
5095
5096 * common/common-defs.h: New file.
5097 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5098 * defs.h: Include common-defs.h.
5099 Do not include config.h or build-gnulib/config.h.
5100
5101 2014-07-30 Gary Benson <gbenson@redhat.com>
5102
5103 * common/common-utils.h: Do not include config.h.
5104 * nat/linux-btrace.h: Likewise.
5105
5106 2014-07-30 Gary Benson <gbenson@redhat.com>
5107
5108 * btrace.c: Include defs.h.
5109 * common/ptid.c: Include defs.h or server.h as appropriate.
5110 * nat/mips-linux-watch.c: Likewise.
5111
5112 2014-07-29 Tom Tromey <tromey@redhat.com>
5113
5114 * target.c (target_is_pushed): Simplify.
5115
5116 2014-07-29 Joel Brobecker <brobecker@adacore.com>
5117
5118 GDB 7.8 released.
5119
5120 2014-07-29 Yao Qi <yao@codesourcery.com>
5121
5122 PR gdb/17206
5123 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5124
5125 2014-07-28 Doug Evans <xdje42@gmail.com>
5126
5127 PR guile/17203
5128 * guile/scm-param.c (pascm_parameter_defined_p): New function.
5129 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
5130 parameters.
5131
5132 2014-07-28 Will Newton <will.newton@linaro.org>
5133
5134 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5135 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5136 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5137 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5138 (THUMB2_EABI_SYSCALL): Likewise.
5139 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5140 struct tramp_frame.
5141 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5142 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5143
5144 2014-07-27 Doug Evans <xdje42@gmail.com>
5145
5146 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5147
5148 2014-07-27 Doug Evans <xdje42@gmail.com>
5149
5150 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5151
5152 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5153 Doug Evans <xdje42@gmail.com>
5154
5155 PR guile/17146
5156 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5157 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5158 * configure.ac: Try to use guild to compile an scm file, if it fails
5159 then disable guile support.
5160 * configure: Regenerate.
5161 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5162 GUILE_FILE_LIST.
5163 (GUILE_COMPILED_FILES): New variable.
5164 (GUILE_FILES) Update.
5165 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5166 (stamp-guile): Compile scm files.
5167 * guile/guile.c (boot_guile_support): New function.
5168 (standard_throw_args_p): New function.
5169 (print_standard_throw_error, print_throw_error): New functions.
5170 (handle_boot_error): New function.
5171 (initialize_scheme_side): Rewrite to call boot_guile_support.
5172 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5173 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5174
5175 2014-07-26 Ludovic Courtès <ludo@gnu.org>
5176 Doug Evans <xdje42@gmail.com>
5177
5178 PR guile/17146
5179 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5180 * guile/lib/gdb/support.scm: New file.
5181 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5182 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5183 All uses updated.
5184 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5185 All uses updated.
5186 (%assert-type): Ditto, and renamed to assert-type.
5187 (%exception-print-style): Delete.
5188
5189 2014-07-26 Doug Evans <xdje42@gmail.com>
5190
5191 PR build/17105
5192 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5193 * configure: Regenerate.
5194 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5195 PYTHON_FILES.
5196 (PYTHON_FILES): New variable.
5197 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5198 (GUILE_FILES): New variable.
5199 (stamp-python, install-python, uninstall-python): Handle empty
5200 file list.
5201 (stamp-guile, install-guile, uninstall-guile): Ditto.
5202
5203 2014-07-26 Doug Evans <xdje42@gmail.com>
5204
5205 PR guile/17177
5206 * guile/lib/gdb.scm (pretty-printers): Export.
5207 (set-pretty-printers!): Export.
5208 * guile/lib/gdb/printing.scm (gdb module): Update.
5209 (prepend-pretty-printer!, append-pretty-printer!): Update.
5210 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5211 (pretty_printer_list_var): Delete.
5212 (pretty_printer_list): New static global.
5213 (gdbscm_pretty_printers): New function.
5214 (gdbscm_set_pretty_printers_x): New function.
5215 (ppscm_find_pretty_printer_from_gdb): Update.
5216 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5217 (gdbscm_initialize_pretty_printers): Update.
5218
5219 2014-07-26 Doug Evans <xdje42@gmail.com>
5220
5221 PR 17185
5222 * configure.ac: Add check for header gc/gc.h.
5223 Add check for function setenv.
5224 * configure: Regenerate.
5225 * config.in: Regenerate.
5226 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5227
5228 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
5229
5230 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5231 variation in gdbarch matching.
5232
5233 2014-07-25 Tom Tromey <tromey@redhat.com>
5234
5235 * exec.c (using_exec_ops): Remove.
5236 (exec_close_1): Update. Remove extraneous block, reindent.
5237 (add_target_sections): Use target_is_pushed.
5238
5239 2014-07-25 Pedro Alves <palves@redhat.com>
5240
5241 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5242 * monitor.c (monitor_create_inferior): Likewise.
5243 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5244 * remote-sim.c (gdbsim_create_inferior): Likewise.
5245 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5246 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5247 * windows-nat.c (do_initial_windows_stuff): Likewise.
5248
5249 2014-07-25 Pedro Alves <palves@redhat.com>
5250
5251 * NEWS: Mention signal passing and "signal" command changes.
5252 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5253 comment.
5254 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5255 call.
5256 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5257 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5258 (jump_command): Adjust clear_proceed_status call.
5259 (signal_command): Warn if other thread that are resumed have
5260 signals that will be delivered. Adjust clear_proceed_status call.
5261 (until_next_command, finish_command)
5262 (proceed_after_attach_callback, attach_command_post_wait)
5263 (attach_command): Adjust clear_proceed_status call.
5264 * infrun.c (proceed_after_vfork_done): Likewise.
5265 (proceed_after_attach_callback): Adjust comment.
5266 (clear_proceed_status_thread): Clear stop_signal if not in pass
5267 state.
5268 (clear_proceed_status_callback): Delete.
5269 (clear_proceed_status): New 'step' parameter. Only clear the
5270 proceed status of threads the command being prepared is about to
5271 resume.
5272 (proceed): If passed in an explicit signal, override stop_signal
5273 with it. Don't pass the last stop signal to the thread we're
5274 resuming.
5275 (init_wait_for_inferior): Adjust clear_proceed_status call.
5276 (switch_back_to_stepped_thread): Clear the signal if it should not
5277 be passed.
5278 * infrun.h (clear_proceed_status): New 'step' parameter.
5279 (user_visible_resume_ptid): Add comment.
5280 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5281 signal is in pass state.
5282 * remote.c (append_pending_thread_resumptions): Likewise.
5283 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5284
5285 2014-07-25 Tom Tromey <tromey@redhat.com>
5286
5287 * target.h (target_stopped_data_address)
5288 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5289 parentheses.
5290
5291 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
5292
5293 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5294 comments.
5295 (avr_pointer_to_address): Likewise.
5296
5297 2014-07-24 Tom Tromey <tromey@redhat.com>
5298
5299 * monitor.c (compile_pattern): Update.
5300 * target.h (struct target_ops) <to_shortname, to_longname,
5301 to_doc>: Now const.
5302
5303 2014-07-24 Tom Tromey <tromey@redhat.com>
5304
5305 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5306 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5307 (add_info_alias, add_com): Make "doc" const.
5308 (print_doc_line): Make "str" const.
5309 (delete_cmd): Update.
5310 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5311 (print_doc_line): Update.
5312 * cli/cli-script.c (document_command): Update.
5313 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5314 (add_com, add_info, add_info_alias): Update.
5315 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5316 * python/py-cmd.c (cmdpy_destroyer): Update.
5317
5318 2014-07-24 Tom Tromey <tromey@redhat.com>
5319
5320 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5321 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5322 (help_cmd_list): Constify.
5323 (lookup_cmd): Update.
5324 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5325 const.
5326 (help_cmd_list, apropos_cmd): Update.
5327 * cli/cli-script.c (show_user): Update.
5328 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5329 * cli/cli-setshow.h (cmd_show_list): Update.
5330 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5331 (cmd_show_list): Update.
5332 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5333 * python/py-cmd.c (cmdpy_destroyer): Update.
5334
5335 2014-07-24 Tom Tromey <tromey@redhat.com>
5336
5337 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5338 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5339 const.
5340 * command.h (deprecate_cmd): Update.
5341 * maint.c (maintenance_do_deprecate): Add casts.
5342
5343 2014-07-24 Tom Tromey <tromey@redhat.com>
5344
5345 * cli/cli-decode.c (help_cmd): Make parameter "const".
5346 * cli/cli-decode.h (help_cmd): Update.
5347
5348 2014-07-24 Tom Tromey <tromey@redhat.com>
5349
5350 * stack.c (up_silently_base, down_silently_base): Make argument
5351 const.
5352
5353 2014-07-24 Tom Tromey <tromey@redhat.com>
5354
5355 * solib.c (solib_add): Make "pattern" const.
5356 * solib.h (solib_add): Update.
5357
5358 2014-07-24 Tom Tromey <tromey@redhat.com>
5359
5360 * remote.c (remote_serial_open, print_packet, putpkt)
5361 (putpkt_binary): Constify.
5362 * remote.h (putpkt): Update.
5363
5364 2014-07-24 Tom Tromey <tromey@redhat.com>
5365
5366 * monitor.c (monitor_open): Make "args" const.
5367 * monitor.h (monitor_open): Update.
5368
5369 2014-07-24 Tom Tromey <tromey@redhat.com>
5370
5371 * maint.c (match_bfd_flags): Make "string" const.
5372 (print_bfd_section_info): Remove casts.
5373 (print_objfile_section_info): Make "string" const.
5374
5375 2014-07-24 Tom Tromey <tromey@redhat.com>
5376
5377 * inf-child.c (inf_child_open_target): Make "arg" const.
5378 * inf-child.h (inf_child_open_target): Update.
5379
5380 2014-07-24 Tom Tromey <tromey@redhat.com>
5381
5382 * environ.c (unset_in_environ): Make "var" const.
5383 * environ.h (unset_in_environ): Update.
5384
5385 2014-07-24 Tom Tromey <tromey@redhat.com>
5386
5387 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5388 Make "cmd" const.
5389 (scan_filename_with_cleanup): Likewise.
5390 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5391 Make arguments const.
5392 (restore_command): Update.
5393
5394 2014-07-24 Pedro Alves <palves@redhat.com>
5395
5396 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5397
5398 2014-07-24 Tom Tromey <tromey@redhat.com>
5399 Gary Benson <gbenson@redhat.com>
5400
5401 * nat/linux-ptrace.c (additional_flags): New global.
5402 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5403 additional_flags; don't check GDBSERVER.
5404 (linux_ptrace_set_additional_flags): New function.
5405 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5406 Declare.
5407 * linux-nat.c (_initialize_linux_nat): Call
5408 linux_ptrace_set_additional_flags.
5409
5410 2014-07-24 Tom Tromey <tromey@redhat.com>
5411
5412 * make-target-delegates (munge_type, write_debugmethod): New
5413 functions.
5414 (debug_names): New global.
5415 ($TARGET_DEBUG_PRINTER): New global.
5416 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5417 name.
5418 Write debug methods. Generate init_debug_target.
5419 * target-debug.h: New file.
5420 * target-delegates.c: Rebuild.
5421 * target.c: Include target-debug.h.
5422 (debug_target): Hoist definition.
5423 (target_kill, target_get_section_table, target_memory_map)
5424 (target_flash_erase, target_flash_done, target_detach)
5425 (target_disconnect, target_wait, target_resume)
5426 (target_pass_signals, target_program_signals, target_follow_fork)
5427 (target_mourn_inferior, target_search_memory)
5428 (target_thread_address_space, target_close)
5429 (target_find_new_threads, target_core_of_thread)
5430 (target_verify_memory, target_insert_mask_watchpoint)
5431 (target_remove_mask_watchpoint): Remove targetdebug code.
5432 (debug_to_post_attach, debug_to_prepare_to_store)
5433 (debug_to_files_info, debug_to_insert_breakpoint)
5434 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5435 (debug_to_region_ok_for_hw_watchpoint)
5436 (debug_to_can_accel_watchpoint_condition)
5437 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5438 (debug_to_watchpoint_addr_within_range)
5439 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5440 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5441 (debug_to_terminal_init, debug_to_terminal_inferior)
5442 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5443 (debug_to_terminal_save_ours, debug_to_terminal_info)
5444 (debug_to_load, debug_to_post_startup_inferior)
5445 (debug_to_insert_fork_catchpoint)
5446 (debug_to_remove_fork_catchpoint)
5447 (debug_to_insert_vfork_catchpoint)
5448 (debug_to_remove_vfork_catchpoint)
5449 (debug_to_insert_exec_catchpoint)
5450 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5451 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5452 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5453 (setup_target_debug): Call init_debug_target.
5454 * target.h (TARGET_DEBUG_PRINTER): New macro.
5455 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5456 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5457
5458 2014-07-24 Gary Benson <gbenson@redhat.com>
5459
5460 * exceptions.h (throw_vfatal): Renamed to...
5461 (throw_vquit): New declaration.
5462 (throw_quit): Likewise.
5463 * exceptions.c (throw_vfatal): Renamed to...
5464 (throw_vquit): New function.
5465 (throw_quit): Likewise.
5466 (throw_error): Call throw_verror rather than throw_it.
5467 * utils.h (vfatal): Removed.
5468 (fatal): Likewise.
5469 * utils.c (vfatal): Removed.
5470 (fatal): Likewise.
5471 (internal_verror): Replaced call to fatal with call to throw_quit.
5472 (quit): Replaced calls to fatal with calls to throw_quit.
5473
5474 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
5475
5476 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5477 target_read_code.
5478
5479 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
5480
5481 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5482 less than zero in conditional expression.
5483
5484 2014-07-23 Tom Tromey <tromey@redhat.com>
5485
5486 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5487 ($INTRO_PART): Don't match whitespace.
5488 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5489 argument matching.
5490 ($METHOD): Add $METHOD_TRAILER.
5491 (trim): Rewrite.
5492 (scan_target_h): New sub.
5493 Change main loop not to collect state.
5494 * target-delegates.c: Rebuild.
5495
5496 2014-07-23 Gary Benson <gbenson@redhat.com>
5497
5498 * cp-support.c (gdb_demangle): Fix build on systems without
5499 sigaltstack.
5500
5501 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5502
5503 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5504 for reference entry value target data value.
5505
5506 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5507
5508 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5509 value_available_contents_eq.
5510
5511 2014-07-22 Pedro Alves <palves@redhat.com>
5512
5513 * value.c (allocate_optimized_out_value): Don't mark value as
5514 non-lazy.
5515
5516 2014-07-22 Jiong Wang <jiong.wang@arm.com>
5517
5518 * MAINTAINERS (Write After Approval): Update my email address.
5519
5520 2014-07-20 Doug Evans <dje@google.com>
5521
5522 PR server/17147
5523 * remote.c (putpkt_binary): Add text to error message.
5524
5525 2014-07-20 Yao Qi <yao@codesourcery.com>
5526
5527 * eval.c: Remove "Chill" from comments.
5528 * gdbtypes.h: Likewise.
5529 * symtab.h: Likewise.
5530
5531 2014-07-20 Yao Qi <yao@codesourcery.com>
5532
5533 * std-operator.def: Update comments to TERNOP_SLICE.
5534
5535 2014-07-20 Yao Qi <yao@codesourcery.com>
5536
5537 * std-operator.def: Remove BINOP_RANGE.
5538 * breakpoint.c (watchpoint_exp_is_const): Update.
5539 * expprint.c (dump_subexp_body_standard): Likewise.
5540 * eval.c (init_array_element): Remove dead code.
5541 (evaluate_subexp_standard): Likewise.
5542
5543 2014-07-20 Yao Qi <yao@codesourcery.com>
5544
5545 * std-operator.def: Remove BINOP_IN.
5546 * breakpoint.c (watchpoint_exp_is_const): Update.
5547 * eval.c (evaluate_subexp_standard): Likewise.
5548 * expprint.c (dump_subexp_body_standard): Likewise.
5549
5550 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
5551
5552 * microblaze-tdep.c (microblaze_register_names): Add
5553 the rshr and rslr register names.
5554 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5555 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5556 Use of tdesc_numbered_register. Use of
5557 microblaze_register_g_packet_guesses. Use of
5558 tdesc_use_registers. Use of set_gdbarch_register_type.
5559 (microblaze_register_g_packet_guesses): New.
5560 * microblaze-tdep.h (microblaze_reg_num): Add
5561 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5562 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5563 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5564 * features/microblaze-core.xml: New file.
5565 * features/microblaze-stack-protect.xml: New file.
5566 * features/microblaze-with-stack-protect.c: New file.
5567 * features/microblaze-with-stack-protect.xml: New file.
5568 * features/microblaze.xml: New file.
5569 * features/microblaze.c: New file.
5570 * features/Makefile (microblaze-with-stack-protect): Add
5571 microblaze-with-stack-protect microblaze and microblaze-expedite.
5572 * regformats/microblaze-with-stack-protect.dat: New file.
5573 * regformats/microblaze.dat: New file.
5574 * doc/gdb.texinfo (MicroBlaze Features): Added.
5575
5576 2014-07-18 Tom Tromey <tromey@redhat.com>
5577
5578 * exec.c (exec_ops): Now static.
5579 * exec.h (exec_ops): Don't declare.
5580
5581 2014-07-18 Tom Tromey <tromey@redhat.com>
5582
5583 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5584 to find_target_beneath.
5585 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5586 find_target_beneath.
5587 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5588
5589 2014-07-18 Tom Tromey <tromey@redhat.com>
5590
5591 PR gdb/17130:
5592 * utils.c (quit): Use target_supports_terminal_ours.
5593 * target.h (target_supports_terminal_ours): Declare.
5594 * target.c (target_supports_delete_record): Don't check
5595 to_delete_record against NULL.
5596 (target_supports_terminal_ours): New function.
5597
5598 2014-07-18 Tom Tromey <tromey@redhat.com>
5599
5600 PR gdb/17130:
5601 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5602 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5603 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5604 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5605 * windows-nat.c (windows_xfer_partial): Always delegate.
5606 * record-btrace.c (record_btrace_xfer_partial): Simplify
5607 delegation.
5608 (record_btrace_fetch_registers, record_btrace_store_registers)
5609 (record_btrace_prepare_to_store, record_btrace_resume)
5610 (record_btrace_wait, record_btrace_find_new_threads)
5611 (record_btrace_thread_alive): Likewise.
5612 * procfs.c (procfs_xfer_partial): Always delegate.
5613 * corelow.c (core_xfer_partial): Always delegate.
5614 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5615
5616 2014-07-18 Tom Tromey <tromey@redhat.com>
5617
5618 * exec.c (exec_make_note_section): Move earlier.
5619
5620 2014-07-17 Doug Evans <dje@google.com>
5621
5622 PR gdb/17170
5623 * maint.c (count_symtabs_and_blocks): Handle NULL
5624 current_program_space.
5625 (report_command_stats): Check global enabled flag in addition to
5626 recorded enabled flag.
5627 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5628
5629 2014-07-16 Pedro Alves <palves@redhat.com>
5630
5631 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5632
5633 2014-07-16 Tom Tromey <tromey@redhat.com>
5634
5635 * target.h (struct target_ops) <to_delete_record>: Reformat
5636 comment.
5637
5638 2014-07-16 Tom Tromey <tromey@redhat.com>
5639
5640 * target-delegates.c: Rebuild.
5641
5642 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
5643
5644 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5645 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5646 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5647 (avr_pointer_to_address): Likewise.
5648 (avr_address_class_type_flags): New function.
5649 (avr_address_class_type_flags_to_name): Likewise.
5650 (avr_address_class_name_to_type_flags): Likewise.
5651 (avr_gdbarch_init): Set address_class_type_flags,
5652 address_class_type_flags_to_name and
5653 address_class_name_to_type_flags.
5654
5655 2014-07-15 Pedro Alves <palves@redhat.com>
5656
5657 * linux-nat.c (kill_callback): Save errno and work with saved
5658 copy.
5659
5660 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
5661
5662 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5663
5664 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5665
5666 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5667 breakpoint support correctly.
5668
5669 2014-07-14 Pedro Alves <palves@redhat.com>
5670
5671 * utils.c (prompt_for_continue): Call target_terminal_ours.
5672
5673 2014-07-14 Pedro Alves <palves@redhat.com>
5674
5675 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5676 catch_errors. Don't re-enable stdin or notify observers where,
5677 and rethrow error.
5678 (fetch_inferior_event_wrapper): Delete.
5679
5680 2014-07-14 Pedro Alves <palves@redhat.com>
5681
5682 PR gdb/17072
5683 * top.c: Include "inf-loop.h".
5684 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5685 field.
5686 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5687 was async before.
5688 (gdb_readline_wrapper): Store whether the target is async, and
5689 make it sync.
5690
5691 2014-07-14 Pedro Alves <palves@redhat.com>
5692
5693 PR gdb/17072
5694 * top.c (gdb_readline_wrapper_line): Tweak comment.
5695 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5696 the input handler callback.
5697
5698 2014-07-14 Pedro Alves <palves@redhat.com>
5699
5700 PR gdb/17072
5701 * main.c: Include event-top.h.
5702 (handle_command_errors): New function.
5703 (catch_command_errors, catch_command_errors_const): Use it.
5704
5705 2014-07-14 Pedro Alves <palves@redhat.com>
5706
5707 * exceptions.c (catch_command_errors, catch_command_errors_const):
5708 Moved to main.c.
5709 * exceptions.h (catch_command_errors_ftype)
5710 (catch_command_errors_const_ftype): Moved to main.c.
5711 (catch_command_errors, catch_command_errors_const): Delete
5712 declarations.
5713 * main.c (catch_command_errors_ftype)
5714 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5715 (catch_command_errors, catch_command_errors_const)): Moved here
5716 from exceptions.c and make static.
5717
5718 2014-07-14 Pedro Alves <palves@redhat.com>
5719
5720 * exceptions.c (print_any_exception): Delete.
5721 (catch_exceptions_with_msg): Use exception_print instead of
5722 print_any_exception.
5723 (catch_errors): Use exception_fprintf instead of
5724 print_any_exception.
5725 (catch_command_errors, catch_command_errors_const): Use
5726 exception_print instead of print_any_exception.
5727
5728 2014-07-14 Pedro Alves <palves@redhat.com>
5729
5730 * infcall.c (run_inferior_call): Set 'sync_execution' while
5731 running the inferior call.
5732
5733 2014-07-14 Pedro Alves <palves@redhat.com>
5734
5735 * value.c (value_contents_equal): Delete function.
5736 * value.h (value_contents_equal): Delete declaration.
5737
5738 2014-07-14 Tom Tromey <tromey@redhat.com>
5739
5740 PR exp/17106:
5741 * gdbtypes.c (is_dynamic_type_internal): New function, from
5742 is_dynamic_type.
5743 (is_dynamic_type): Rewrite.
5744 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5745 (resolve_dynamic_struct): Likewise.
5746 (resolve_dynamic_type_internal): New function, from
5747 resolve_dynamic_type.
5748 (resolve_dynamic_type): Rewrite.
5749
5750 2014-07-14 Tom Tromey <tromey@redhat.com>
5751
5752 * target.c (target_require_runnable): Also check record_stratum.
5753 Update comment.
5754
5755 2014-07-11 Yao Qi <yao@codesourcery.com>
5756
5757 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5758 thumb_instruction_restores_sp return true.
5759
5760 2014-07-11 Yao Qi <yao@codesourcery.com>
5761
5762 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5763 (thumb_in_function_epilogue_p): Call
5764 thumb_instruction_restores_sp.
5765
5766 2014-07-11 Yao Qi <yao@codesourcery.com>
5767
5768 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5769 'add sp, #imm'.
5770 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5771
5772 2014-07-11 Gary Benson <gbenson@redhat.com>
5773
5774 * amd64-linux-nat.c (gdbcore.h): Remove include.
5775 (regset.h): Likewise.
5776 (nat/linux-btrace.h): Likewise.
5777 (btrace.h): Likewise.
5778 (gdb_assert.h): Likewise.
5779 (string.h): Likewise.
5780 (sys/uio.h): Likewise.
5781 (sys/debugreg.h): Likewise.
5782 (sys/syscall.h): Likewise.
5783 (sys/procfs.h): Likewise.
5784 (sys/user.h): Likewise.
5785 (asm/ptrace.h): Likewise.
5786 (i386-nat.h): Likewise.
5787 * i386-linux-nat.c (i386-nat.h): Likewise.
5788 (regset.h): Likewise.
5789 (target.h): Likewise.
5790 (linux-nat.h): Likewise.
5791 (nat/linux-btrace.h): Likewise.
5792 (btrace.h): Likewise.
5793 (gdb_assert.h): Likewise.
5794 (string.h): Likewise.
5795 (sys/uio.h): Likewise.
5796 (sys/user.h): Likewise.
5797 (sys/procfs.h): Likewise.
5798 (sys/reg.h): Likewise.
5799 (sys/debugreg.h): Likewise.
5800 (ORIG_EAX): Remove definition.
5801
5802 2014-07-11 Gary Benson <gbenson@redhat.com>
5803
5804 * i386-linux-nat.h: New file.
5805 * x86-linux-nat.h: Likewise.
5806 * x86-linux-nat.c: Likewise.
5807 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5808 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5809 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5810 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5811 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5812 (PTRACE_SETREGSET): Likewise.
5813 (arch_lwp_info): Now in x86-linux-nat.c.
5814 (have_ptrace_getregset): Now in x86-linux-nat.h.
5815 (x86_linux_dr_get): Now in x86-linux-nat.c.
5816 (x86_linux_dr_set): Likewise.
5817 (x86_linux_dr_get_addr): Likewise.
5818 (x86_linux_dr_get_control): Likewise.
5819 (x86_linux_dr_get_status): Likewise.
5820 (update_debug_registers_callback): Likewise.
5821 (x86_linux_dr_set_control): Likewise.
5822 (x86_linux_dr_set_addr): Likewise.
5823 (x86_linux_prepare_to_resume): Likewise.
5824 (x86_linux_new_thread): Likewise.
5825 (x86_linux_new_fork): Likewise.
5826 (x86_linux_get_thread_area): Likewise.
5827 (super_post_startup_inferior): Likewise.
5828 (x86_linux_child_post_startup_inferior): Likewise.
5829 (AMD64_LINUX_USER64_CS): Likewise.
5830 (AMD64_LINUX_X32_DS): Likewise.
5831 (x86_linux_read_description): Likewise.
5832 (x86_linux_enable_btrace): Likewise.
5833 (x86_linux_disable_btrace): Likewise.
5834 (x86_linux_teardown_btrace): Likewise.
5835 (x86_linux_read_btrace): Likewise.
5836 (x86_linux_create_target): Likewise.
5837 (x86_linux_add_target): Likewise.
5838 * i386-linux-nat.c (x86-linux-nat.h): New include.
5839 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5840 (PTRACE_SETREGSET): Likewise.
5841 (arch_lwp_info): Now in x86-linux-nat.c.
5842 (have_ptrace_getregset): Now in x86-linux-nat.h.
5843 (x86_linux_dr_get): Now in x86-linux-nat.c.
5844 (x86_linux_dr_set): Likewise.
5845 (x86_linux_dr_get_addr): Likewise.
5846 (x86_linux_dr_get_control): Likewise.
5847 (x86_linux_dr_get_status): Likewise.
5848 (update_debug_registers_callback): Likewise.
5849 (x86_linux_dr_set_control): Likewise.
5850 (x86_linux_dr_set_addr): Likewise.
5851 (x86_linux_prepare_to_resume): Likewise.
5852 (x86_linux_new_thread): Likewise.
5853 (x86_linux_new_fork): Likewise.
5854 (x86_linux_get_thread_area): Likewise.
5855 (super_post_startup_inferior): Likewise.
5856 (x86_linux_child_post_startup_inferior): Likewise.
5857 (AMD64_LINUX_USER64_CS): Likewise.
5858 (AMD64_LINUX_X32_DS): Likewise.
5859 (x86_linux_read_description): Likewise.
5860 (x86_linux_enable_btrace): Likewise.
5861 (x86_linux_disable_btrace): Likewise.
5862 (x86_linux_teardown_btrace): Likewise.
5863 (x86_linux_read_btrace): Likewise.
5864 (x86_linux_create_target): Likewise.
5865 (x86_linux_add_target): Likewise.
5866
5867 2014-07-11 Gary Benson <gbenson@redhat.com>
5868
5869 * amd64-linux-nat.c: Comment and whitespace changes.
5870 * i386-linux-nat.c: Comment and whitespace changes.
5871
5872 2014-07-11 Gary Benson <gbenson@redhat.com>
5873
5874 * amd64-linux-nat.c (x86_linux_create_target): New function.
5875 (x86_linux_add_target): Likewise.
5876 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5877 * i386-linux-nat.c (x86_linux_create_target): New function.
5878 (x86_linux_add_target): Likewise.
5879 (_initialize_i386_linux_nat): Delegate to the above new functions.
5880
5881 2014-07-11 Gary Benson <gbenson@redhat.com>
5882
5883 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5884 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5885 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5886 (ps_get_thread_area): Delegate to the above.
5887
5888 2014-07-11 Gary Benson <gbenson@redhat.com>
5889
5890 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5891 x86_linux_read_description. All uses updated. amd64-specific
5892 code conditionalized. Conditionalized i386-specific code added.
5893 Redundant cast removed.
5894 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5895 x86_linux_read_description. All uses updated. i386-specific
5896 code conditionalized. Conditionalized amd64-specific code added.
5897 One sizeof replaced with the actual type it is describing.
5898
5899 2014-07-11 Gary Benson <gbenson@redhat.com>
5900
5901 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5902 x86_linux_dr_get. All uses updated.
5903 (amd64_linux_dr_set): Renamed to
5904 x86_linux_dr_set. All uses updated.
5905 (amd64_linux_dr_get_addr): Renamed to
5906 x86_linux_dr_get_addr. All uses updated.
5907 (amd64_linux_dr_get_control): Renamed to
5908 x86_linux_dr_get_control. All uses updated.
5909 (amd64_linux_dr_get_status): Renamed to
5910 x86_linux_dr_get_status. All uses updated.
5911 (amd64_linux_dr_set_control): Renamed to
5912 x86_linux_dr_set_control. All uses updated.
5913 (amd64_linux_dr_set_addr): Renamed to
5914 x86_linux_dr_set_addr. All uses updated.
5915 (amd64_linux_prepare_to_resume): Renamed to
5916 x86_linux_prepare_to_resume. All uses updated.
5917 (amd64_linux_new_thread): Renamed to
5918 x86_linux_new_thread. All uses updated.
5919 (amd64_linux_new_fork): Renamed to
5920 x86_linux_new_fork. All uses updated.
5921 (amd64_linux_child_post_startup_inferior): Renamed to
5922 x86_linux_child_post_startup_inferior. All uses updated.
5923 (amd64_linux_enable_btrace): Renamed to
5924 x86_linux_enable_btrace. All uses updated.
5925 (amd64_linux_disable_btrace): Renamed to
5926 x86_linux_disable_btrace. All uses updated.
5927 (amd64_linux_teardown_btrace): Renamed to
5928 x86_linux_teardown_btrace. All uses updated.
5929 (amd64_linux_read_btrace): Renamed to
5930 x86_linux_read_btrace. All uses updated.
5931 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5932 x86_linux_dr_get. All uses updated.
5933 (i386_linux_dr_set): Renamed to
5934 x86_linux_dr_set. All uses updated.
5935 (i386_linux_dr_get_addr): Renamed to
5936 x86_linux_dr_get_addr. All uses updated.
5937 (i386_linux_dr_get_control): Renamed to
5938 x86_linux_dr_get_control. All uses updated.
5939 (i386_linux_dr_get_status): Renamed to
5940 x86_linux_dr_get_status. All uses updated.
5941 (i386_linux_dr_set_control): Renamed to
5942 x86_linux_dr_set_control. All uses updated.
5943 (i386_linux_dr_set_addr): Renamed to
5944 x86_linux_dr_set_addr. All uses updated.
5945 (i386_linux_prepare_to_resume): Renamed to
5946 x86_linux_prepare_to_resume. All uses updated.
5947 (i386_linux_new_thread): Renamed to
5948 x86_linux_new_thread. All uses updated.
5949 (i386_linux_new_fork): Renamed to
5950 x86_linux_new_fork. All uses updated.
5951 (i386_linux_child_post_startup_inferior): Renamed to
5952 x86_linux_child_post_startup_inferior. All uses updated.
5953 (i386_linux_enable_btrace): Renamed to
5954 x86_linux_enable_btrace. All uses updated.
5955 (i386_linux_disable_btrace): Renamed to
5956 x86_linux_disable_btrace. All uses updated.
5957 (i386_linux_teardown_btrace): Renamed to
5958 x86_linux_teardown_btrace. All uses updated.
5959 (i386_linux_read_btrace): Renamed to
5960 x86_linux_read_btrace. All uses updated.
5961
5962 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
5963
5964 * remote.c (extended_remote_post_attach): New function.
5965 (init_extended_remote_ops): Install it as to_post_attach method.
5966
5967 2014-07-09 Pedro Alves <palves@redhat.com>
5968
5969 * infcmd.c (attach_command_post_wait): Don't call
5970 target_terminal_inferior here.
5971 (attach_command): Call it here instead.
5972
5973 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5974
5975 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5976 field.
5977 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5978 from varobj.c, with additional checks.
5979 (c_varobj_ops): Fill in is_path_expr_parent field.
5980 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5981 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5982 field.
5983 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5984 ops method.
5985 (varobj_default_is_path_expr_parent): New function.
5986 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5987 (varobj_default_is_path_expr_parent): Declare new function.
5988
5989 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
5990
5991 * infcmd.c (finish_backward): Turn internal error into normal error.
5992
5993 2014-07-07 Pedro Alves <palves@redhat.com>
5994
5995 PR gdb/17096
5996 * remote.c (async_handle_remote_sigint)
5997 (async_handle_remote_sigint_twice): Call
5998 gdb_call_async_signal_handler instead of
5999 mark_async_signal_handler.
6000
6001 2014-07-07 Tom Tromey <tromey@redhat.com>
6002
6003 * target-delegates.c: Rebuild.
6004 * target.c (target_info_record): Remove.
6005 * record.c (info_record_command): Unconditionally call
6006 to_info_record.
6007 * target.h (struct target_ops) <to_info_record>: Use
6008 TARGET_DEFAULT_IGNORE.
6009 (target_info_record): Remove.
6010
6011 2014-07-07 Tom Tromey <tromey@redhat.com>
6012
6013 * target.h (struct target_ops) <to_get_thread_local_address>: Use
6014 TARGET_DEFAULT_NORETURN.
6015 * target.c (generic_tls_error): New function.
6016 (target_translate_tls_address): Don't search target stack.
6017 * target-delegates.c: Rebuild.
6018 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6019 stack.
6020 * linux-thread-db.c (thread_db_get_thread_local_address):
6021 Unconditionally call beneath target.
6022
6023 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
6024
6025 * cli/cli-logging.c (pop_output_files): Assign targerr to
6026 gdb_stdtargerr.
6027
6028 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
6029
6030 * MAINTAINERS (Write After Approval): Update my email address.
6031
6032 2014-07-02 Gary Benson <gbenson@redhat.com>
6033
6034 * proc-service.c (ps_xfer_memory): Update comment.
6035 (ps_pstop): Remove unused function.
6036 (ps_pcontinue): Likewise.
6037 (ps_lstop): Likewise.
6038 (ps_lcontinue): Likewise.
6039 (ps_lgetxregsize): Likewise.
6040 (ps_lgetxregs): Likewise.
6041 (ps_lsetxregs): Likewise.
6042 (ps_plog): Likewise.
6043 (ps_ptread): Likewise.
6044 (ps_ptwrite): Likewise.
6045
6046 2014-07-01 Mark Wielaard <mjw@redhat.com>
6047
6048 * dwarf2read.c (add_array_cv_type): New function.
6049 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6050 (read_tag_volatile_type): Likewise.
6051
6052 2014-07-01 Tom Tromey <tromey@redhat.com>
6053
6054 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6055 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6056 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6057 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6058 * command.h (cmd_cfunc_ftype): Move earlier.
6059 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6060 (add_com, add_info): Use cmd_cfunc_ftype.
6061
6062 2014-06-30 Tom Tromey <tromey@redhat.com>
6063
6064 * symtab.c (operator_chars): Make parameters and return type
6065 const.
6066 (file_matches): Make "files" const.
6067 (struct search_symbols_data) <files>: Now const.
6068 (search_symbols): Make "regexp" and "files" parameters const.
6069 Update.
6070 (symtab_symbol_info): Remove cast.
6071 (rbreak_command): Update.
6072 * symtab.h (search_symbols): Update.
6073
6074 2014-06-27 Yao Qi <yao@codesourcery.com>
6075
6076 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6077 Change parameter type to 'struct thread_info *'. Caller
6078 updated.
6079 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6080 Update declaration.
6081 * dummy-frame.c (struct dummy_frame_id): New.
6082 (dummy_frame_id_eq): New function.
6083 (struct dummy_frame) <id>: Change its type to 'struct
6084 dummy_frame_id'.
6085 (dummy_frame_push): Add parameter ptid and save it in
6086 dummy_frame_id.
6087 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6088 inferior_ptid.
6089 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6090 to inferior_ptid.
6091 (lookup_dummy_frame): Change parameter type to 'struct
6092 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
6093 instead of frame_id_eq.
6094 (dummy_frame_pop): Add parameter ptid. Callers updated.
6095 Update comments. Compose dummy_frame_id and pass it to
6096 lookup_dummy_frame.
6097 (dummy_frame_discard): Add parameter ptid.
6098 (dummy_frame_sniffer): Compose dummy_frame_id and call
6099 dummy_frame_id_eq instead of frame_id_eq.
6100 (fprint_dummy_frames): Print ptid.
6101 * dummy-frame.h: Remove comments.
6102 (dummy_frame_push): Add ptid in declaration.
6103 (dummy_frame_pop, dummy_frame_discard): Likewise.
6104
6105 2014-06-26 Tom Tromey <tromey@redhat.com>
6106
6107 * cli/cli-cmds.c (error_no_arg): Make "why" const.
6108 * command.h (error_no_arg): Update.
6109
6110 2014-06-26 Tom Tromey <tromey@redhat.com>
6111
6112 * cli/cli-setshow.c (do_set_command): Make "arg" const.
6113 (do_show_command): Make "arg" const.
6114 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6115
6116 2014-06-26 Tom Tromey <tromey@redhat.com>
6117
6118 * record-full.c (record_full_get_bookmark): Make "args" const.
6119 (record_full_goto_bookmark): Make "raw_bookmark" const.
6120 * record.c (record_goto): New function.
6121 (cmd_record_goto): Use it. Now static.
6122 * record.h (record_goto): Declare.
6123 (cmd_record_goto): Remove declaration.
6124 * target-delegates.c: Rebuild.
6125 * target.h (struct target_ops) <to_get_bookmark,
6126 to_goto_bookmark>: Make parameter const.
6127
6128 2014-06-26 Tom Tromey <tromey@redhat.com>
6129
6130 * defs.h (generic_load): Update.
6131 * m32r-rom.c (m32r_load_gen): Make "filename" const.
6132 * monitor.c (monitor_load): Make "args" const.
6133 * remote-m32r-sdi.c (m32r_load): Make "args" const.
6134 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6135 const.
6136 (mips_load): Make "file" const.
6137 * remote-sim.c (gdbsim_load): Make "args" const.
6138 * remote.c (remote_load): Make "name" const.
6139 * symfile.c (generic_load): Make "args" const.
6140 * target-delegates.c: Rebuild.
6141 * target.c (target_load): Make "arg" const.
6142 (debug_to_load): Make "args" const.
6143 * target.h (struct target_ops) <to_load>: Make parameter const.
6144 (target_load): Update.
6145
6146 2014-06-26 Tom Tromey <tromey@redhat.com>
6147
6148 PR symtab/16902:
6149 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6150 (dwarf2_physname, read_partial_die)
6151 (guess_partial_die_structure_name, fixup_partial_die)
6152 (guess_full_die_structure_name, anonymous_struct_prefix)
6153 (dwarf2_name): Use per-BFD obstack.
6154
6155 2014-06-26 Yao Qi <yao@codesourcery.com>
6156
6157 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6158 dummyframe and this_id into inner block below.
6159
6160 2014-06-26 Yao Qi <yao@codesourcery.com>
6161
6162 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6163 with "signal_pass[0]" in the initialization of signal_pass.
6164
6165 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6166
6167 * record-btrace.c (record_btrace_generating_corefile)
6168 (record_btrace_prepare_to_generate_core)
6169 (record_btrace_done_generating_core): New.
6170 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6171 (record_btrace_store_registers, record_btrace_prepare_to_store):
6172 Forward request when generating a core file.
6173 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6174 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6175 to_done_generating_core.
6176
6177 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6178
6179 * target.h (target_ops) <to_prepare_to_generate_core>
6180 <to_done_generating_core>: New.
6181 (target_prepare_to_generate_core, target_done_generating_core): New.
6182 * target.c (target_prepare_to_generate_core)
6183 (target_done_generating_core): New.
6184 * target-delegates.c: Regenerate.
6185 * gcore.c: (write_gcore_file): Rename to ...
6186 (write_gcore_file_1): ...this.
6187 (write_gcore_file): Call target_prepare_to_generate_core
6188 and target_done_generating_core.
6189
6190 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
6191
6192 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6193 * gcore.c (write_gcore_file): Free memory returned from
6194 make_corefile_notes.
6195 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6196 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6197
6198 2014-06-24 Yao Qi <yao@codesourcery.com>
6199
6200 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6201 (arm_linux_init_abi): Set skip_trampoline_code with
6202 gdbarch_skip_trampoline_code instead of
6203 find_solib_trampoline_target.
6204
6205 2014-06-24 Yao Qi <yao@codesourcery.com>
6206
6207 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6208 arm_skip_bx_reg returns non-zero.
6209
6210 2014-06-24 Yao Qi <yao@codesourcery.com>
6211
6212 * arm-tdep.c (arm_skip_bx_reg): New function.
6213 (arm_skip_stub): Call arm_skip_bx_reg.
6214
6215 2014-06-23 Don Breazeal <donb@codesourcery.com>
6216
6217 * MAINTAINERS: Add myself as write-after-approval maintainer.
6218
6219 2014-06-23 Pedro Alves <palves@redhat.com>
6220
6221 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6222 DR_CONTROL before setting DR0..DR3.
6223 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6224 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6225 bits of DR_CONTROL related to the debug register slot being
6226 disabled. If all slots are vacant, clear local slowdown as well,
6227 and assert DR_CONTROL is 0.
6228
6229 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
6230
6231 * python/lib/gdb/command/xmethods.py
6232 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6233 current progspace only if the string "progspace" matches LOCUS_RE.
6234
6235 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6236
6237 Fix --with-system-readline with readline-6.3 patch 5.
6238 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6239 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6240 types.
6241
6242 2014-06-20 Tom Tromey <tromey@redhat.com>
6243
6244 * dwarf2read.c (dw2_get_real_path): Use correct type in
6245 OBSTACK_CALLOC.
6246 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6247
6248 2014-06-20 Gary Benson <gbenson@redhat.com>
6249
6250 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6251 * common/glibc_thread_db.h: Likewise.
6252 * common/i386-cpuid.h: Likewise.
6253 * common/i386-gcc-cpuid.h: Likewise.
6254 * common/linux-btrace.h: Likewise.
6255 * common/linux-osdata.h: Likewise.
6256 * common/linux-procfs.h: Likewise.
6257 * common/linux-ptrace.h: Likewise.
6258 * common/mips-linux-watch.h: Likewise.
6259 * common/linux-btrace.c: Moved to nat.
6260 * common/linux-osdata.c: Likewise.
6261 * common/linux-procfs.c: Likewise.
6262 * common/linux-ptrace.c: Likewise.
6263 * common/mips-linux-watch.c: Likewise.
6264 * nat/gdb_thread_db.h: Moved from common.
6265 * nat/glibc_thread_db.h: Likewise.
6266 * nat/i386-cpuid.h: Likewise.
6267 * nat/i386-gcc-cpuid.h: Likewise.
6268 * nat/linux-btrace.c: Likewise.
6269 * nat/linux-btrace.h: Likewise.
6270 * nat/linux-osdata.c: Likewise.
6271 * nat/linux-osdata.h: Likewise.
6272 * nat/linux-procfs.c: Likewise.
6273 * nat/linux-procfs.h: Likewise.
6274 * nat/linux-ptrace.c: Likewise.
6275 * nat/linux-ptrace.h: Likewise.
6276 * nat/mips-linux-watch.c: Likewise.
6277 * nat/mips-linux-watch.h: Likewise.
6278 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6279 (object file files): Reordered.
6280 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6281 of glibc_thread_db.h.
6282
6283 2014-06-20 Gary Benson <gbenson@redhat.com>
6284
6285 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6286 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6287 (i386_dr_low): Likewise.
6288 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6289 (i386_dr_low_set_addr): Likewise.
6290 (i386_dr_low_get_addr): Likewise.
6291 (i386_dr_low_can_set_control): Likewise.
6292 (i386_dr_low_set_control): Likewise.
6293 (i386_dr_low_get_control): Likewise.
6294 (i386_dr_low_get_status): Likewise.
6295 (i386_get_debug_register_length): Likewise.
6296 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6297 (i386_dr_low): Likewise.
6298 * nat/i386-dregs.c (i386-low.h): Remove include.
6299 (i386-nat.h): Likewise.
6300 (nat/i386-dregs.h): New include.
6301 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6302 (i386_dr_low_set_addr): Likewise.
6303 (i386_dr_low_get_addr): Likewise.
6304 (i386_dr_low_can_set_control): Likewise.
6305 (i386_dr_low_set_control): Likewise.
6306 (i386_dr_low_get_control): Likewise.
6307 (i386_dr_low_get_status): Likewise.
6308 (i386_get_debug_register_length): Likewise.
6309 (debug_hw_points): Likewise.
6310
6311 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
6312
6313 * Makefile.in (SFILES): Add d-exp.y.
6314 (YYFILES): Add d-exp.c.
6315 (YYOBJ): Add d-exp.o.
6316 (local-maintainer-clean): Delete d-exp.c.
6317 * d-exp.y: New file.
6318 * d-lang.h (d_parse): New declaration.
6319 (d_error): New declaration.
6320 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6321 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6322 PREC_ORDER operators.
6323 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6324
6325 2014-06-19 Yao Qi <yao@codesourcery.com>
6326
6327 * gdbthread.h (any_running): Remove the declaration.
6328 * thread.c (any_running): Remove.
6329
6330 2014-06-19 Yao Qi <yao@codesourcery.com>
6331
6332 * gdbthread.h (struct thread_info) <state>: Change its type to
6333 'enum thread_state'. Update comments.
6334
6335 2014-06-19 Pedro Alves <palves@redhat.com>
6336
6337 * gdbthread.h (ALL_THREADS): Delete.
6338 (ALL_NON_EXITED_THREADS): New macro.
6339 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6340 instead of ALL_THREADS.
6341 * infrun.c (find_thread_needs_step_over)
6342 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6343 instead of ALL_THREADS.
6344 * record-btrace.c (record_btrace_open)
6345 (record_btrace_stop_recording, record_btrace_close)
6346 (record_btrace_is_replaying, record_btrace_resume)
6347 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6348 * remote.c (append_pending_thread_resumptions): Likewise.
6349 * thread.c (thread_apply_all_command): Likewise.
6350
6351 2014-06-19 Gary Benson <gbenson@redhat.com>
6352
6353 * i386-nat.c (i386_stopped_by_watchpoint):
6354 Use i386_dr_stopped_by_watchpoint.
6355 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6356 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6357
6358 2014-06-19 Gary Benson <gbenson@redhat.com>
6359
6360 * nat/i386-dregs.c: New file.
6361 * Makefile.in (i386-dregs.o): New rule.
6362 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6363 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6364 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6365 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6366 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6367 * config/i386/go32.mh (NATDEPFILES): Likewise.
6368 * config/i386/linux.mh (NATDEPFILES): Likewise.
6369 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6370 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6371 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6372 * i386-nat.h (debug_hw_points): New declaration.
6373 * i386-nat.c (breakpoint.h): Remove include.
6374 (command.h): Likewise.
6375 (target.h): Likewise.
6376 (gdb_assert.h): Likewise.
6377 (debug_hw_points): Made nonstatic.
6378 (debug_printf): Now in i386-dregs.c.
6379 (TARGET_HAS_DR_LEN_8): Likewise.
6380 (DR_CONTROL_SHIFT): Likewise.
6381 (DR_CONTROL_SIZE): Likewise.
6382 (DR_RW_EXECUTE): Likewise.
6383 (DR_RW_WRITE): Likewise.
6384 (DR_RW_READ): Likewise.
6385 (DR_RW_IORW): Likewise.
6386 (DR_LEN_1): Likewise.
6387 (DR_LEN_2): Likewise.
6388 (DR_LEN_4): Likewise.
6389 (DR_LEN_8): Likewise.
6390 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6391 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6392 (DR_ENABLE_SIZE): Likewise.
6393 (DR_LOCAL_SLOWDOWN): Likewise.
6394 (DR_GLOBAL_SLOWDOWN): Likewise.
6395 (DR_CONTROL_RESERVED): Likewise.
6396 (I386_DR_CONTROL_MASK): Likewise.
6397 (I386_DR_VACANT): Likewise.
6398 (I386_DR_LOCAL_ENABLE): Likewise.
6399 (I386_DR_GLOBAL_ENABLE): Likewise.
6400 (I386_DR_DISABLE): Likewise.
6401 (I386_DR_SET_RW_LEN): Likewise.
6402 (I386_DR_GET_RW_LEN): Likewise.
6403 (I386_DR_WATCH_HIT): Likewise.
6404 (i386_wp_op_t): Likewise.
6405 (i386_show_dr): Likewise.
6406 (i386_length_and_rw_bits): Likewise.
6407 (i386_insert_aligned_watchpoint): Likewise.
6408 (i386_remove_aligned_watchpoint): Likewise.
6409 (i386_handle_nonaligned_watchpoint): Likewise.
6410 (i386_update_inferior_debug_regs): Likewise.
6411 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6412 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6413 (i386_region_ok_for_watchpoint):
6414 Use i386_dr_region_ok_for_watchpoint.
6415 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6416
6417 2014-06-19 Gary Benson <gbenson@redhat.com>
6418
6419 * i386-nat.c (i386_insert_hw_breakpoint): Use
6420 i386_insert_watchpoint.
6421 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6422
6423 2014-06-19 Gary Benson <gbenson@redhat.com>
6424
6425 * i386-nat.c (i386_dr_show): Renamed to
6426 i386_show_dr and made static. All uses updated.
6427 (i386_dr_length_and_rw_bits): Renamed to
6428 i386_length_and_rw_bits and made static.
6429 All uses updated.
6430 (i386_dr_insert_aligned_watchpoint): Renamed to
6431 i386_insert_aligned_watchpoint and made static.
6432 All uses updated.
6433 (i386_dr_remove_aligned_watchpoint): Renamed to
6434 i386_remove_aligned_watchpoint and made static.
6435 All uses updated.
6436 (i386_dr_update_inferior_debug_regs): Renamed to
6437 i386_update_inferior_debug_regs and made static.
6438 All uses updated.
6439 * nat/i386-dregs.h (i386_dr_show): Removed.
6440 (i386_dr_length_and_rw_bits): Likewise.
6441 (i386_dr_insert_aligned_watchpoint): Likewise.
6442 (i386_dr_remove_aligned_watchpoint): Likewise.
6443 (i386_dr_update_inferior_debug_regs): Likewise.
6444
6445 2014-06-19 Gary Benson <gbenson@redhat.com>
6446
6447 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6448 * configure: Regenerate.
6449 * config.in: Likewise.
6450 * main.c (signal.h): New include.
6451 (setup_alternate_signal_stack): New function.
6452 (captured_main): Call the above.
6453 * cp-support.c (signal.h): New include.
6454 (catch_demangler_crashes): New flag.
6455 (SIGJMP_BUF): New define.
6456 (SIGSETJMP): Likewise.
6457 (SIGLONGJMP): Likewise.
6458 (gdb_demangle_jmp_buf): New static global.
6459 (gdb_demangle_attempt_core_dump): Likewise.
6460 (gdb_demangle_signal_handler): New function.
6461 (gdb_demangle): If catch_demangler_crashes is set, install the
6462 above signal handler before calling bfd_demangle, and restore
6463 the original signal handler afterwards. Display the offending
6464 symbol and call demangler_warning the first time a segmentation
6465 fault is caught.
6466 (_initialize_cp_support): New maint set/show command.
6467
6468 2014-06-19 Gary Benson <gbenson@redhat.com>
6469
6470 * utils.h (resource_limit_kind): New enum.
6471 (can_dump_core): New declaration.
6472 (warn_cant_dump_core): Likewise.
6473 (dump_core): Likewise.
6474 * utils.c (dump_core): Made nonstatic. Added new
6475 parameter "limit_kind".
6476 (can_dump_core): Made nonstatic. Moved printing code to...
6477 (warn_cant_dump_core): New function.
6478 (can_dump_core_warn): Likewise.
6479 (internal_vproblem): Replace calls to can_dump_core with
6480 calls to can_dump_core_warn. Supply new argument to each.
6481
6482 2014-06-19 Gary Benson <gbenson@redhat.com>
6483
6484 * utils.h (demangler_vwarning): New declaration.
6485 (demangler_warning): Likewise.
6486 * utils.c (struct internal_problem)
6487 <user_settable_should_quit>: New field.
6488 <user_settable_should_dump_core>: Likewise
6489 (internal_error_problem): Add values for above new fields.
6490 (internal_warning_problem): Likewise.
6491 (demangler_warning_problem): New static global.
6492 (demangler_vwarning): New function.
6493 (demangler_warning): Likewise.
6494 (add_internal_problem_command): Selectively add commands.
6495 (_initialize_utils): New internal problem command.
6496 * maint.c (maintenance_demangler_warning): New function.
6497 (_initialize_maint_cmds): New command.
6498
6499 2014-06-18 Tom Tromey <tromey@redhat.com>
6500
6501 * f-valprint.c (info_common_command_for_block): Update.
6502 * symtab.h (struct general_symbol_info) <common_block>: Now
6503 const.
6504
6505 2014-06-18 Tom Tromey <tromey@redhat.com>
6506
6507 * symtab.h (struct symtab) <blockvector>: Now const.
6508 * ada-lang.c (ada_add_global_exceptions): Update.
6509 * buildsym.c (augment_type_symtab): Update.
6510 * dwarf2read.c (dw2_lookup_symbol): Update.
6511 * jit.c (finalize_symtab): Update.
6512 * jv-lang.c (add_class_symtab_symbol): Update.
6513 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6514 Update.
6515 * objfiles.c (objfile_relocate1): Update.
6516 * psymtab.c (lookup_symbol_aux_psymtabs)
6517 (maintenance_check_psymtabs): Update.
6518 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6519 Update.
6520 * spu-tdep.c (spu_catch_start): Update.
6521 * symmisc.c (dump_symtab_1): Update.
6522 * symtab.c (lookup_global_symbol_from_objfile)
6523 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6524 (basic_lookup_transparent_type_quick)
6525 (basic_lookup_transparent_type, find_pc_sect_symtab)
6526 (find_pc_sect_line, search_symbols): Update.
6527 * block.c (find_block_in_blockvector): Make "bl" const.
6528 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6529 const.
6530 (blockvector_contains_pc): Make "bv" const.
6531 (block_for_pc_sect): Update.
6532 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6533 (blockvector_contains_pc): Update.
6534 * breakpoint.c (resolve_sal_pc): Update.
6535 * inline-frame.c (block_starting_point_at): Update.
6536
6537 2014-06-18 Tom Tromey <tromey@redhat.com>
6538
6539 * completer.c (complete_line): Make "line_buffer" const.
6540 * completer.h (complete_line): Update.
6541
6542 2014-06-18 Tom Tromey <tromey@redhat.com>
6543
6544 * symtab.c (add_macro_name): Remove unneeded cast.
6545
6546 2014-06-18 Tom Tromey <tromey@redhat.com>
6547
6548 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6549 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6550
6551 2014-06-18 Tom Tromey <tromey@redhat.com>
6552
6553 * probe.c (info_probes_for_ops): Make "arg" const.
6554 * probe.h (info_probes_for_ops): Update.
6555
6556 2014-06-18 Tom Tromey <tromey@redhat.com>
6557
6558 * varobj.c (varobj_create): Update.
6559 * valops.c (value_of_this): Update.
6560 * tracepoint.c (add_local_symbols, scope_info): Update.
6561 * symtab.h (struct general_symbol_info) <block>: Now const.
6562 * symtab.c (skip_prologue_sal)
6563 (default_make_symbol_completion_list_break_on)
6564 (skip_prologue_using_sal): Update.
6565 * stack.h (iterate_over_block_locals)
6566 (iterate_over_block_local_vars): Update.
6567 * stack.c (print_frame_args): Update.
6568 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6569 parameter const.
6570 (get_selected_block): Make return type const.
6571 * python/py-frame.c (frapy_block): Update.
6572 * python/py-block.c (gdbpy_block_for_pc): Update.
6573 * p-exp.y (%union) <bval>: Now const.
6574 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6575 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6576 * m2-exp.y (%union) <bval>: Now const.
6577 * linespec.c (get_current_search_block): Make return type const.
6578 (create_sals_line_offset, find_label_symbols): Update.
6579 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6580 Update.
6581 (block_starting_point_at): Make "block" const.
6582 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6583 (check_exception_resume): Update.
6584 * guile/scm-frame.c (gdbscm_frame_block): Update.
6585 * guile/scm-block.c (gdbscm_lookup_block): Update.
6586 * frame.h (get_frame_block): Update.
6587 (get_selected_block): Make return type const.
6588 * frame.c (frame_id_inner): Update.
6589 * f-valprint.c (info_common_command_for_block)
6590 (info_common_command): Update.
6591 * dwarf2loc.c (dwarf2_find_location_expression)
6592 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6593 (locexpr_describe_location_piece): Update.
6594 * c-exp.y (%union) <bval>: Now const.
6595 * breakpoint.c (resolve_sal_pc): Update.
6596 * blockframe.c (get_frame_block):Make return type const.
6597 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6598 (block_innermost_frame): Update.
6599 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6600 (block_for_pc, block_for_pc_sect): Update.
6601 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6602 'pblock' const.
6603 (block_for_pc_sect, block_for_pc): Make return type const.
6604 * ax-gdb.c (gen_expr): Update.
6605 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6606 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6607 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6608 (ada_read_var_value): Update.
6609 * ada-exp.y (struct name_info) <block>: Now const.
6610 (%union): Likewise.
6611 (block_lookup): Constify.
6612
6613 2014-06-18 Gary Benson <gbenson@redhat.com>
6614
6615 * nat/i386-dregs.h: New file.
6616 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6617 * i386-nat.h (i386-dregs.h): New include.
6618 (DR_FIRSTADDR): Now in i386-dregs.h.
6619 (DR_LASTADDR): Likewise.
6620 (DR_NADDR): Likewise.
6621 (DR_STATUS): Likewise.
6622 (DR_CONTROL): Likewise.
6623 (i386_debug_reg_state): Likewise.
6624 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6625
6626 2014-06-18 Don Breazeal <donb@codesourcery.com>
6627
6628 * breakpoint.c (set_longjmp_breakpoint): Call
6629 momentary_breakpoint_from_master with additional argument.
6630 (set_longjmp_breakpoint_for_call_dummy): Call
6631 momentary_breakpoint_from_master with additional argument.
6632 (set_std_terminate_breakpoint): Call
6633 momentary_breakpoint_from_master with additional argument.
6634 (momentary_breakpoint_from_master): Add argument to function
6635 definition and use it to initialize structure member flag.
6636 (clone_momentary_breakpoint): Call
6637 momentary_breakpoint_from_master with additional argument.
6638 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6639 member flags set in momentary_breakpoint_from_master.
6640
6641 2014-06-18 Gary Benson <gbenson@redhat.com>
6642
6643 * i386-nat.c (i386_show_dr): Renamed to
6644 i386_dr_show and made nonstatic. All uses updated.
6645 (i386_length_and_rw_bits): Renamed to
6646 i386_dr_length_and_rw_bits and made nonstatic.
6647 All uses updated.
6648 (i386_insert_aligned_watchpoint): Renamed to
6649 i386_dr_insert_aligned_watchpoint and made nonstatic.
6650 All uses updated.
6651 (i386_remove_aligned_watchpoint): Renamed to
6652 i386_dr_remove_aligned_watchpoint and made nonstatic.
6653 All uses updated.
6654 (i386_update_inferior_debug_regs): Renamed to
6655 i386_dr_update_inferior_debug_regs and made nonstatic.
6656 All uses updated.
6657
6658 2014-06-18 Gary Benson <gbenson@redhat.com>
6659
6660 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6661 (i386_dr_low_can_set_control): Likewise.
6662 (i386_dr_low_set_addr): Likewise.
6663 (i386_dr_low_set_control): Likewise.
6664 (i386_dr_low_get_addr): Likewise.
6665 (i386_dr_low_get_status): Likewise.
6666 (i386_dr_low_get_control): Likewise.
6667 (i386_insert_aligned_watchpoint): Use new macros.
6668 (i386_update_inferior_debug_regs): Likewise.
6669 (i386_stopped_data_address): Likewise.
6670
6671 2014-06-18 Gary Benson <gbenson@redhat.com>
6672
6673 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6674 New parameter. All uses updated.
6675
6676 2014-06-18 Gary Benson <gbenson@redhat.com>
6677
6678 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6679 All uses updated.
6680
6681 2014-06-18 Gary Benson <gbenson@redhat.com>
6682
6683 * i386-nat.c (debug_printf): New macro.
6684 (i386_get_debug_register_length): Likewise.
6685 (TARGET_HAS_DR_LEN_8): Use above macro.
6686 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6687 and printf_unfiltered. Use phex to format values.
6688
6689 2014-06-18 Gary Benson <gbenson@redhat.com>
6690
6691 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6692 Make const.
6693
6694 2014-06-18 Gary Benson <gbenson@redhat.com>
6695
6696 * i386-nat.c: Comment changes.
6697
6698 2014-06-18 Gary Benson <gbenson@redhat.com>
6699
6700 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6701
6702 2014-06-18 Gary Benson <gbenson@redhat.com>
6703
6704 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6705 (i386_insert_aligned_watchpoint): Likewise.
6706 (i386_remove_aligned_watchpoint): Likewise.
6707 (i386_handle_nonaligned_watchpoint): Likewise.
6708
6709 2014-06-18 Gary Benson <gbenson@redhat.com>
6710
6711 * i386-nat.c: Whitespace changes.
6712
6713 2014-06-17 Samuel Bronson <naesten@gmail.com>
6714
6715 * MAINTAINERS: Update Roland McGrath's email address.
6716 Thanks to Sergio Durigan Junior for pointing out that he left
6717 Red Hat a while ago, and giving me a current address.
6718
6719 2014-06-17 Tom Tromey <tromey@redhat.com>
6720
6721 * utils.h (savestring): Remove declaration.
6722
6723 2014-06-17 Tom Tromey <tromey@redhat.com>
6724
6725 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6726
6727 2014-06-16 Keith Seitz <keiths@redhat.com>
6728
6729 PR mi/15863
6730 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6731 to update the varobj if inferior_ptid is null_ptid.
6732
6733 2014-06-16 Tom Tromey <tromey@redhat.com>
6734
6735 * target.h (struct target_ops) <to_info_proc>: Make parameter
6736 const.
6737 (target_info_proc): Update.
6738 * target.c (target_info_proc): Make "args" const.
6739 * procfs.c (procfs_info_proc): Update.
6740 * linux-tdep.c (linux_info_proc): Update.
6741 (linux_core_info_proc_mappings): Make "args" const.
6742 (linux_core_info_proc): Update.
6743 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6744 * gdbarch.c: Rebuild.
6745 * gdbarch.h: Rebuild.
6746 * corelow.c (core_info_proc): Update.
6747
6748 2014-06-16 Tom Tromey <tromey@redhat.com>
6749
6750 * target.h (struct target_ops) <to_disconnect>: Make parameter
6751 const.
6752 (target_disconnect): Update.
6753 * target.c (target_disconnect): Make "args" const.
6754 * target-delegates.c: Rebuild.
6755 * remote.c (remote_disconnect): Update.
6756 * record.h (record_disconnect): Update.
6757 * record.c (record_disconnect): Update.
6758 * inf-child.c (inf_child_disconnect): Update.
6759
6760 2014-06-16 Tom Tromey <tromey@redhat.com>
6761
6762 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6763 * target.c (debug_to_rcmd, default_rcmd): Update.
6764 * target-delegates.c: Rebuild.
6765 * remote.c (remote_rcmd): Update.
6766 * monitor.c (monitor_rcmd): Update.
6767
6768 2014-06-16 Pedro Alves <palves@redhat.com>
6769
6770 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6771 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6772 have OBJF_SHARED set.
6773 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6774 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6775 instead of OBJF_USERLOADED.
6776 * objfiles.h (OBJF_SHARED): Update comment.
6777 (userloaded_objfile_contains_address_p): Rename to ...
6778 (shared_objfile_contains_address_p): ... this, and update
6779 comments.
6780 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6781 new objfile.
6782 (remove_symbol_file_command): Skip objfiles that don't have
6783 OBJF_SHARED set.
6784
6785 2014-06-16 Tom Tromey <tromey@redhat.com>
6786
6787 * minsyms.h (prim_record_minimal_symbol)
6788 (prim_record_minimal_symbol_and_info): Update comments.
6789
6790 2014-06-14 Eli Zaretskii <eliz@gnu.org>
6791
6792 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6793 or --without-guile, according to how GDB was built.
6794
6795 2014-06-13 Tom Tromey <tromey@redhat.com>
6796
6797 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6798 to help_list.
6799 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6800 to help_list.
6801 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6802 help_list.
6803 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6804 help_list.Pass all_commands, not -1, to help_list.
6805 * cli/cli-dump.c (dump_command, append_command)
6806 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6807 (binary_dump_command, binary_append_command): Pass all_commands,
6808 not -1, to help_list.
6809 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6810 -1, to help_list.
6811 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6812 -1, to help_list.
6813 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6814 help_list.
6815 * top.c (set_history): Pass all_commands, not -1, to help_list.
6816 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6817 all_commands, not -1, to help_list.
6818 * symfile.c (overlay_command): Pass all_commands, not -1, to
6819 help_list.
6820 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6821 help_list.
6822 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6823 help_list.
6824 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6825 -1, to help_list.
6826 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6827 not -1, to help_list.
6828 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6829 not -1, to help_list.
6830 * maint.c (maintenance_command, maintenance_info_command)
6831 (maintenance_print_command, maintenance_set_cmd): Pass
6832 all_commands, not -1, to help_list.
6833 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6834 help_list.
6835 * language.c (set_check): Pass all_commands, not -1, to help_list.
6836 * infcmd.c (unset_command): Pass all_commands, not -1, to
6837 help_list.
6838 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6839 help_list.
6840 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6841 help_list.
6842 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6843 help_list.
6844 * breakpoint.c (save_command): Pass all_commands, not -1, to
6845 help_list.
6846 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6847 all_commands, not -1, to help_list.
6848
6849 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
6850
6851 * regcache.c (struct register_to_invalidate): New structure.
6852 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6853 functions.
6854 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6855
6856 2014-06-12 Yao Qi <yao@codesourcery.com>
6857
6858 * varobj.c (varobj_get_num_children): Call
6859 varobj_is_dynamic_p.
6860 (varobj_list_children): Likewise.
6861 (varobj_update): Likewise. Update comments.
6862
6863 2014-06-12 Yao Qi <yao@codesourcery.com>
6864
6865 * varobj.c (varobj_pretty_printed_p): Rename to ...
6866 (varobj_is_dynamic_p): ... this. New function.
6867 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6868 (varobj_is_dynamic_p): Declare.
6869 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6870 (mi_print_value_p, varobj_update_one): Likewise.
6871
6872 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6873 Yao Qi <yao@codesourcery.com>
6874
6875 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6876 (varobj_get_iterator): Wrap up code for pretty-printer by
6877 "#if HAVE_PYTHON" and "#endif".
6878 (update_dynamic_varobj_children): Likewise.
6879
6880 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6881 Yao Qi <yao@codesourcery.com>
6882
6883 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6884 gdb_python_initialized is false. Move some code from varobj.c.
6885 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6886 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6887 (struct varobj_item): Moved to varobj-iter.h".
6888 (varobj_clear_saved_item): New function.
6889 (update_dynamic_varobj_children): Move python-related code to
6890 py-varobj.c.
6891 (free_variable): Call varobj_clear_saved_item and
6892 varobj_iter_delete.
6893
6894 2014-06-12 Pedro Alves <pedro@codesourcery.com>
6895 Yao Qi <yao@codesourcery.com>
6896
6897 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6898 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6899 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6900 (py-varobj.o): New rule.
6901 * python/py-varobj.c: New file.
6902 * python/python-internal.h (py_varobj_get_iterator): Declare.
6903 * varobj-iter.h: New file.
6904 * varobj.c: Include "varobj-iter.h"
6905 (struct varobj) <child_iter>: Change its type from "PyObject *"
6906 to "struct varobj_iter *".
6907 <saved_item>: Likewise.
6908 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6909 [HAVE_PYTHON] (varobj_get_iterator): New function.
6910 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6911 python-specific code to python/py-varobj.c.
6912 (install_visualizer): Call varobj_iter_delete instead of
6913 Py_XDECREF.
6914 * varobj.h (varobj_ensure_python_env): Declare.
6915
6916 2014-06-12 Yao Qi <yao@codesourcery.com>
6917
6918 * varobj.c (struct varobj_item): New structure.
6919 (create_child_with_value): Update declaration.
6920 (varobj_add_child): Replace arguments 'name' and 'value' with
6921 'item'. All callers updated.
6922 (install_dynamic_child): Likewise.
6923 (update_dynamic_varobj_children): Likewise.
6924 (varobj_add_child): Likewise.
6925 (create_child_with_value): Likewise.
6926
6927 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6928
6929 * NEWS: Create a new section for the next release branch.
6930 Rename the section of the current branch, now that it has
6931 been cut.
6932
6933 2014-06-11 Joel Brobecker <brobecker@adacore.com>
6934
6935 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6936 * version.in: Bump version to 7.8.50.DATE-cvs.
6937
6938 2014-06-11 Pedro Alves <palves@redhat.com>
6939
6940 PR remote/17028
6941 * ser-mingw.c (net_windows_socket_check_pending): New function.
6942 (net_windows_select_thread): Ignore spurious wakeups. Use
6943 net_windows_socket_check_pending.
6944 (net_windows_wait_handle): Check for pending events with
6945 ioctlsocket, through net_windows_socket_check_pending, instead of
6946 checking the socket's event.
6947
6948 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
6949
6950 * python/python-internal.h (gdb_PyObject_GetAttrString)
6951 (gdb_PyObject_HasAttrString): New inline function definitions.
6952 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6953 char * of the second argument to PyObject_GetAttrString.
6954
6955 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6956
6957 * serial.c (serial_write): Fix index of character to be printed
6958 in call to serial_logchar when serial debug traces are enabled.
6959
6960 2014-06-10 Joel Brobecker <brobecker@adacore.com>
6961
6962 * gdbtypes (resolve_dynamic_range): Add function description.
6963
6964 2014-06-09 Pedro Alves <palves@redhat.com>
6965
6966 * linux-nat.c (linux_child_follow_fork): Initialize status with
6967 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6968 inner block. Only pass the signal to PTRACE_DETACH if in pass
6969 state.
6970
6971 2014-06-09 Gary Benson <gbenson@redhat.com>
6972
6973 * common/signals.c (gdb_signal_from_host): Reorder to separate
6974 the always-available ANSI-standard signals from the signals that
6975 require checking.
6976 (do_gdb_signal_to_host): Likewise.
6977 * proc-events.c (signal_table): Likewise.
6978
6979 2014-06-08 Hui Zhu <hui@codesourcery.com>
6980
6981 * common/linux-ptrace.c (linux_disable_event_reporting): New
6982 function.
6983 * common/linux-ptrace.h (linux_disable_event_reporting): New
6984 declaration.
6985 * linux-nat.c (linux_child_follow_fork): Do a single step before
6986 detach.
6987
6988 2014-06-07 Keith Seitz <keiths@redhat.com>
6989
6990 Revert:
6991 PR c++/16253
6992 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6993 from symbol_matches_domain in symtab.c. All local callers
6994 of symbol_matches_domain updated.
6995 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6996 search STRUCT_DOMAIN.
6997 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6998 independently. standard_lookup will do that automatically.
6999 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7000 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7001 (cp_lookup_symbol_in_namespace): Likewise.
7002 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7003 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7004 may return a STRUCT_DOMAIN match.
7005 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7006 * cp-support.c: Include language.h.
7007 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7008 VAR_DOMAIN.
7009 * psymtab.c (match_partial_symbol): Compare the requested
7010 domain with the symbol's domain directly.
7011 (lookup_partial_symbol): Likewise.
7012 * symtab.c (lookup_symbol_in_language): Explain when/why
7013 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7014 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7015 appropriate languages.
7016 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7017 and moved to ada-lang.c
7018 (lookup_block_symbol): Explain that this function only returns
7019 symbol matching the requested DOMAIN.
7020 Compare the requested domain with the symbol's domain directly.
7021 (iterate_over_symbols): Compare the requested domain with the
7022 symbol's domain directly.
7023 * symtab.h (symbol_matches_domain): Remove.
7024
7025 2014-06-06 Doug Evans <xdje42@gmail.com>
7026
7027 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7028 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7029 (gdbscm_guile_version_is_at_least): Declare.
7030 (gdbscm_scm_string_to_int): Declare.
7031 * guile/guile.c (gdbscm_guile_major_version): New global.
7032 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7033 (guile_datadir): New static global.
7034 (gdbscm_guile_data_directory): New function.
7035 (initialize_scheme_side): Update.
7036 (misc_guile_functions): Add guile-data-directory.
7037 (initialize_gdb_module): Fetch guile version number.
7038 * guile/lib/gdb.scm: Remove call to add-to-load-path.
7039 * guile/lib/gdb/init.scm (%initialize!): Ditto.
7040 * guile/lib/gdb/boot.scm: Use guile-data-directory.
7041 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7042 comments.
7043 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7044 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7045 * guile/scm-value.c (gdbscm_value_to_string): Only call
7046 scm_port_conversion_strategy if Guile version >= 2.0.6.
7047
7048 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
7049
7050 * main.c (print_gdb_help): Add -q and --silent.
7051
7052 2014-06-06 Gary Benson <gbenson@redhat.com>
7053
7054 * common/signals.c: Remove preprocessor conditionals for
7055 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7056 SIGSEGV and SIGTERM.
7057 * proc-events.c: Likewise.
7058
7059 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
7060
7061 * symfile.c (symfile_free_objfile): Remove restriction to
7062 OBJF_USERLOADED.
7063 * symfile-mem.c (symbol_file_add_from_memory): Call
7064 add_target_sections_of_objfile.
7065
7066 2014-06-05 Ludovic Courtès <ludo@gnu.org>
7067
7068 * guile/scm-value.c (gdbscm_history_append_x): Use
7069 'vlscm_get_value_smob_arg_unsafe' instead of
7070 'vlscm_scm_to_value'.
7071
7072 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
7073
7074 PR mi/15806
7075 * utils.c (printchar): Don't escape at all if quoter is NUL.
7076 Update function documentation to clarify effect of parameter
7077 QUOTER.
7078 * remote.c (escape_buffer): Pass '\\' as the quoter to
7079 fputstrn_unfiltered.
7080 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7081 generate the output.
7082 (mi_solib_unloaded): Same.
7083
7084 2014-06-05 Joel Brobecker <brobecker@adacore.com>
7085
7086 * development.sh: Delete.
7087 * Makefile.in (config.status): Adjust dependency on development.sh.
7088 * configure.ac: Adjust development.sh source call.
7089 * configure: Regenerate.
7090
7091 2014-06-04 Doug Evans <xdje42@gmail.com>
7092
7093 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7094 is_scheme_bkpt, spec.
7095 (bpscm_make_breakpoint_smob): Initialize new members.
7096 (gdbscm_create_breakpoint_x): Split into two ...
7097 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7098 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7099 (scheme_function breakpoint_functions): Update.
7100 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
7101 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
7102 register-breakpoint!.
7103
7104 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
7105
7106 PR server/17023
7107 * mem-break.c (z_type_supported): Return zero if
7108 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7109
7110 2014-06-04 Tom Tromey <tromey@redhat.com>
7111
7112 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7113 value_from_contents_and_address_unresolved.
7114 (ada_template_to_fixed_record_type_1): Likewise.
7115 (ada_which_variant_applies): Likewise.
7116 * value.h (value_from_contents_and_address_unresolved): Declare.
7117 * value.c (value_from_contents_and_address_unresolved): New
7118 function.
7119 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7120 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7121 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7122
7123 2014-06-04 Tom Tromey <tromey@redhat.com>
7124
7125 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7126
7127 2014-06-04 Tom Tromey <tromey@redhat.com>
7128
7129 * procfs.c (procfs_attach): Make "args" const.
7130 * windows-nat.c (windows_attach): Make "args" const.
7131 * nto-procfs.c (procfs_attach): Make "args" const.
7132 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7133 * go32-nat.c (go32_attach): Make "args" const.
7134 * gnu-nat.c (gnu_attach): Make "args" const.
7135 * darwin-nat.c (darwin_attach): Make "args" const.
7136 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7137 * linux-nat.c (linux_nat_attach): Make "args" const.
7138 * remote.c (extended_remote_attach_1, extended_remote_attach):
7139 Make "args" const.
7140 * target.h (struct target_ops) <to_attach>: Make "args" const.
7141 (find_default_attach): Likewise.
7142 * utils.c (parse_pid_to_attach): Make "args" const.
7143 * utils.h (parse_pid_to_attach): Update.
7144
7145 2014-06-04 Tom Tromey <tromey@redhat.com>
7146
7147 * target-delegates.c: Rebuild.
7148 * target.c (default_thread_address_space): New function.
7149 (target_thread_address_space): Simplify.
7150 * target.h (struct target_ops) <to_thread_address_space>: Add
7151 TARGET_DEFAULT_FUNC.
7152
7153 2014-06-04 Doug Evans <xdje42@gmail.com>
7154
7155 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7156
7157 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
7158
7159 * record-btrace.c: Include event-loop.h and inf-loop.h.
7160 (record_btrace_resume_exec_dir)
7161 (record_btrace_async_inferior_event_handler)
7162 (record_btrace_handle_async_inferior_event): New.
7163 (record_btrace_open): Create async event handler.
7164 (record_btrace_close): Delete async event handler.
7165 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7166 Mark async event handler.
7167 (record_btrace_execution_direction): New.
7168 (init_record_btrace_ops): Initialize to_execution_direction.
7169
7170 2014-06-03 Doug Evans <xdje42@gmail.com>
7171
7172 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7173 (gdbscm_make_parameter): Ditto.
7174
7175 2014-06-03 Doug Evans <dje@google.com>
7176
7177 * exec.c (exec_close_1): Call clear_section_table instead of
7178 resize_section_table.
7179 (clear_section_table): New function.
7180 (resize_section_table): Make static. Rename arg num_added to
7181 adjustment.
7182 * exec.h (clear_section_table): Declare.
7183 (resize_section_table): Delete.
7184 * progspace.c (release_program_space): Call clear_section_table
7185 instead of resize_section_table.
7186
7187 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7188
7189 * NEWS (Python Scripting): Add entry about the new xmethods
7190 feature.
7191
7192 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7193
7194 * python/py-xmethods.c: New file.
7195 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7196 (objfpy_dealloc): XDECREF on the new xmethods field.
7197 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7198 field.
7199 (objfpy_get_xmethods): New function.
7200 (objfile_getset): New entry 'xmethods'.
7201 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7202 (pspy_dealloc): XDECREF on the new xmethods field.
7203 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7204 field.
7205 (pspy_get_xmethods): New function.
7206 (pspace_getset): New entry 'xmethods'.
7207 * python/python-internal.h: Add declarations for new functions.
7208 * python/python.c (_initialize_python): Invoke
7209 gdbpy_initialize_xmethods.
7210 * python/lib/gdb/__init__.py (xmethods): New
7211 attribute.
7212 * python/lib/gdb/xmethod.py: New file.
7213 * python/lib/gdb/command/xmethods.py: New file.
7214
7215 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7216
7217 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7218 best match method returned by find_overload_match is an xmethod.
7219 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7220 the best matching operator returned by find_overload_match is an
7221 xmethod.
7222 * valops.c: #include "extension.h".
7223 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7224 Return void. The list of matching source methods is returned in
7225 "fn_list" and a vector of matching debug method workers is
7226 returned in "xm_worker_vec". Update all callers.
7227 (value_find_oload_method_list): Likewise.
7228 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7229 non-NULL, then the index of the best matching method in this
7230 vector is returned. Update all callers.
7231 (find_overload_match): Include xmethods while performing overload
7232 resolution.
7233
7234 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
7235
7236 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7237 * extension-priv.h (struct extension_language_ops): Add the
7238 xmethod interface.
7239 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7240 get_matching_xmethod_workers, get_xmethod_argtypes,
7241 invoke_xmethod, free_xmethod_worker,
7242 free_xmethod_worker_vec): New functions.
7243 * extension.h: #include "common/vec.h".
7244 New function declarations.
7245 (struct xmethod_worker): New struct.
7246 (VEC (xmethod_worker_ptr)): New vector type.
7247 (xmethod_worker_ptr): New typedef.
7248 (xmethod_worker_vec): Likewise.
7249 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7250 builtin_type.
7251 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7252 (struct builtin_type): New field "xmethod".
7253 * valarith.c (value_ptradd): Assert that the value argument is not
7254 lval_xcallable.
7255 * valops.c (value_must_coerce_to_target): Return 0 for
7256 lval_xcallable values.
7257 * value.c (struct value): New field XM_WORKER in the field
7258 LOCATION.
7259 (value_address, value_raw_address): Return 0 for lval_xcallable
7260 values.
7261 (set_value_address): Assert that the value is not an
7262 lval_xcallable.
7263 (value_free): Free the associated xmethod worker when freeing
7264 lval_xcallable values.
7265 (set_value_component_location): Assert that the WHOLE value is not
7266 lval_xcallable.
7267 (value_of_xmethod, call_xmethod): New functions.
7268 * value.h: Declare "struct xmethod_worker".
7269 Declare new functions value_of_xmethod, call_xmethod.
7270
7271 2014-06-03 Joel Brobecker <brobecker@adacore.com>
7272 Pedro Alves <palves@redhat.com>
7273
7274 PR breakpoints/17000
7275 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7276 New function, extracted from software_breakpoint_inserted_here_p.
7277 (software_breakpoint_inserted_here_p): Replace factored out code
7278 by call to find_non_raw_software_breakpoint_inserted_here.
7279 (bp_target_info_copy_insertion_state): New function.
7280 (bkpt_insert_location): Handle the case of a single-step
7281 breakpoint already inserted at the same address.
7282 (bkpt_remove_location): Handle the case of a single-step
7283 breakpoint still inserted at the same address.
7284 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7285 breakpoint already inserted at the same address.
7286 (deprecated_remove_raw_breakpoint): Handle the case of a
7287 non-raw breakpoint still inserted at the same address.
7288 (find_single_step_breakpoint): New function, extracted from
7289 single_step_breakpoint_inserted_here_p.
7290 (find_single_step_breakpoint): New function,
7291 factored out from single_step_breakpoint_inserted_here_p.
7292 (single_step_breakpoint_inserted_here_p): Reimplement.
7293
7294 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
7295
7296 Pushed by Joel Brobecker <brobecker@adacore.com>
7297 * source.c (show_substitute_path_command): Fix display of matching
7298 substitution rules.
7299
7300 2014-06-03 Gary Benson <gbenson@redhat.com>
7301
7302 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7303
7304 2014-06-02 Doug Evans <xdje42@gmail.com>
7305
7306 Add parameter support for Guile.
7307 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7308 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7309 (scm-param.o): New rule.
7310 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7311 (gdbscm_misc_error): Declare.
7312 (gdbscm_canonicalize_command_name): Declare.
7313 (gdbscm_scm_to_host_string): Declare.
7314 (gdbscm_scm_from_host_string): Declare.
7315 (gdbscm_initialize_parameters): Declare.
7316 * guile/guile.c (initialize_gdb_module): Call
7317 gdbscm_initialize_parameters.
7318 * guile/lib/gdb.scm: Export parameter symbols.
7319 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7320 cmdscm_canonicalize_name and made public. All callers updated.
7321 * guile/scm-exception.c (gdbscm_misc_error): New function.
7322 * guile/scm-param.c: New file.
7323 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7324 (gdbscm_scm_to_host_string): New function.
7325 (gdbscm_scm_from_host_string): New function.
7326 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7327
7328 2014-06-02 Doug Evans <xdje42@gmail.com>
7329
7330 Add command support for Guile.
7331 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7332 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7333 (scm-cmd.o): New rule.
7334 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7335 (gdbscm_user_error_p): Declare.
7336 (gdbscm_parse_command_name): Declare.
7337 (gdbscm_valid_command_class_p): Declare.
7338 (gdbscm_initialize_commands): Declare.
7339 * guile/guile.c (initialize_gdb_module): Call
7340 gdbscm_initialize_commands.
7341 * guile/lib/gdb.scm: Export command symbols.
7342 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7343 (throw-user-error): New function.
7344 * guile/scm-cmd.c: New file.
7345 * guile/scm-exception.c (user_error_symbol): New static global.
7346 (gdbscm_user_error_p): New function.
7347 (gdbscm_initialize_exceptions): Set user_error_symbol.
7348 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7349
7350 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
7351
7352 * top.c (command_loop): Handle comments here...
7353 (command_line_input): ... not here.
7354
7355 2014-06-02 Doug Evans <xdje42@gmail.com>
7356
7357 Add progspace support for Guile.
7358 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7359 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7360 (scm-progspace.o): New rule.
7361 * guile/guile-internal.h (pspace_smob): New typedef.
7362 (psscm_pspace_smob_pretty_printers): Declare.
7363 (psscm_pspace_smob_from_pspace): Declare.
7364 (psscm_scm_from_pspace): Declare.
7365 * guile/guile.c (initialize_gdb_module): Call
7366 gdbscm_initialize_pspaces.
7367 * guile/lib/gdb.scm: Export progspace symbols.
7368 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7369 support.
7370 (append-pretty-printer!): Ditto.
7371 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7372 Implement.
7373 * guile/scm-progspace.c: New file.
7374
7375 2014-06-03 Alan Modra <amodra@gmail.com>
7376
7377 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7378 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7379
7380 2014-06-02 Doug Evans <dje@google.com>
7381
7382 Add support for skeletonless type units.
7383 * dwarf2read.c (struct dwarf2_per_objfile): New member
7384 n_allocated_type_units.
7385 (struct dwarf2_per_objfile) <tu_stats>: New member
7386 nr_all_type_units_reallocs.
7387 (create_signatured_type_table_from_index): Initialize
7388 n_allocated_type_units
7389 (create_all_type_units): Ditto.
7390 (add_type_unit): Move up in file. New arg slot.
7391 All callers updated. Increase space for all_type_units more
7392 efficiently.
7393 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7394 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7395 (lookup_dwp_signatured_type): Ditto.
7396 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7397 All callers updated.
7398 (build_type_psymtabs_1): Leave type_unit_groups as
7399 NULL if no TUs present.
7400 (print_tu_stats): New function.
7401 (process_skeletonless_type_unit): New function.
7402 (process_dwo_file_for_skeletonless_type_units): New
7403 function.
7404 (process_skeletonless_type_units): New function.
7405 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7406 Call print tu_stats if debugging enabled.
7407
7408 2014-06-02 Pedro Alves <palves@redhat.com>
7409
7410 * breakpoint.c (build_target_command_list): Don't build a command
7411 list if we have any duplicate location that isn't a dprintf.
7412
7413 2014-06-02 Pedro Alves <palves@redhat.com>
7414
7415 * breakpoint.c (dprintf_breakpoint_hit): New function.
7416 (initialize_breakpoint_ops): Install it as dprintf's
7417 breakpoint_hit method.
7418
7419 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7420
7421 * source.c (substitute_path_rule_matches): Simplify using
7422 filename_ncmp instead of FILENAME_CMP.
7423
7424 2014-06-02 Joel Brobecker <brobecker@adacore.com>
7425
7426 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7427
7428 2014-06-01 Ludovic Courtès <ludo@gnu.org>
7429
7430 * configure.ac: When Guile is available, check for the
7431 availability of 'scm_new_smob'.
7432 * configure, config.h.in: Regenerate.
7433 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7434 function.
7435
7436 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7437
7438 * frame.c (struct frame_info): Add stop_string field.
7439 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7440 (get_prev_frame_always): Old content moved into
7441 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7442 TRY_CATCH, handle MEMORY_ERROR exceptions.
7443 (frame_stop_reason_string): New function definition.
7444 * frame.h (unwind_stop_reason_to_string): Extend comment to
7445 mention frame_stop_reason_string.
7446 (frame_stop_reason_string): New function declaration.
7447 * stack.c (frame_info): Switch to frame_stop_reason_string.
7448 (backtrace_command_1): Switch to frame_stop_reason_string.
7449 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7450 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7451 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7452
7453 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7454
7455 * frame.c (frame_stop_reason_string): Rename to ...
7456 (unwind_stop_reason_to_string): this.
7457 * frame.h (frame_stop_reason_string): Rename to ...
7458 (unwind_stop_reason_to_string): this.
7459 * stack.c (frame_info): Update call to frame_stop_reason_string.
7460 (backtrace_command_1): Likewise.
7461 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7462 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7463
7464 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
7465
7466 * frame.c (remove_prev_frame): New function.
7467 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7468 remove_prev_frame.
7469
7470 2014-05-29 Pedro Alves <palves@redhat.com>
7471
7472 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7473 and make it const. When a single-step decays to a continue,
7474 clear 'step', not 'hw_step'. Pass whether the caller wanted
7475 to step to user_visible_resume_ptid, not what we ask the
7476 target to do.
7477
7478 2014-05-29 Pedro Alves <palves@redhat.com>
7479
7480 * infrun.c (process_event_stop_test, handle_step_into_function)
7481 (handle_step_into_function_backward): Adjust.
7482 Don't set the even thread's stop_step and call stop_waiting before
7483 calling end_stepping_range. Instead do that ...
7484 (end_stepping_range): ... here. Take an ecs pointer parameter.
7485
7486 2014-05-29 Pedro Alves <palves@redhat.com>
7487
7488 * infrun.c (stop_stepping): Rename to ...
7489 (stop_waiting): ... this.
7490 (proceed): Update comment.
7491 (process_event_stop_test, handle_inferior_event)
7492 (handle_signal_stop, handle_step_into_function)
7493 (handle_step_into_function_backward): Update.
7494
7495 2014-05-29 Pedro Alves <palves@redhat.com>
7496
7497 * infcall.c (run_inferior_call): Don't check whether the current
7498 thread is running after the proceed call.
7499
7500 2014-05-29 Pedro Alves <palves@redhat.com>
7501 Tom Tromey <tromey@redhat.com>
7502
7503 * NEWS: Mention "maint set target-async", "set mi-async", and that
7504 background execution commands are now always available.
7505 * target.h (target_async_permitted): Update comment.
7506 * target.c (target_async_permitted, target_async_permitted_1):
7507 Default to 1.
7508 (set_target_async_command): Rename to ...
7509 (maint_set_target_async_command): ... this.
7510 (show_target_async_command): Rename to ...
7511 (maint_show_target_async_command): ... this.
7512 (_initialize_target): Adjust.
7513 * infcmd.c (prepare_execution_command): Make extern.
7514 * inferior.h (prepare_execution_command): Declare.
7515 * infrun.c (set_observer_mode): Leave target async alone.
7516 * mi/mi-interp.c (mi_interpreter_init): Install
7517 mi_on_sync_execution_done as sync_execution_done observer.
7518 (mi_on_sync_execution_done): New function.
7519 (mi_execute_command_input_handler): Don't print the prompt if we
7520 just started a synchronous command with an async target.
7521 (mi_on_resume): Check sync_execution before printing prompt.
7522 * mi/mi-main.h (mi_async_p): Declare.
7523 * mi/mi-main.c: Include gdbcmd.h.
7524 (mi_async_p): New function.
7525 (mi_async, mi_async_1): New globals.
7526 (set_mi_async_command, show_mi_async_command, mi_async): New
7527 functions.
7528 (exec_continue): Call prepare_execution_command.
7529 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7530 (mi_execute_async_cli_command): Use mi_async_p.
7531 (_initialize_mi_main): Install "set mi-async". Make
7532 "target-async" a deprecated alias.
7533
7534 2014-05-29 Pedro Alves <palves@redhat.com>
7535
7536 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7537 (_initialize_cli_interp): Adjust.
7538 * event-loop.c: Include "observer.h".
7539 (start_event_loop): Notify 'command_error' observers instead of
7540 calling display_gdb_prompt. Remove FIXME comment.
7541 * event-top.c (display_gdb_prompt): Remove call into the
7542 interpreters.
7543 * inf-loop.c: Include "observer.h".
7544 (inferior_event_handler): Notify 'command_error' observers instead
7545 of calling display_gdb_prompt.
7546 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7547 observers instead of calling display_gdb_prompt.
7548 * interps.c (interp_set): Don't call display_gdb_prompt.
7549 (current_interp_display_prompt_p): Delete.
7550 * interps.h (interp_prompt_p): Delete declaration.
7551 (interp_prompt_p_ftype): Delete.
7552 (struct interp_procs) <prompt_proc_p>: Delete field.
7553 (current_interp_display_prompt_p): Delete declaration.
7554 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7555 (_initialize_mi_interp): Adjust.
7556 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7557 'command_error' observers.
7558 (tui_on_sync_execution_done, tui_on_command_error): New
7559 functions.
7560 (tui_display_prompt_p): Delete.
7561 (_initialize_tui_interp): Adjust.
7562
7563 2014-05-29 Pedro Alves <palves@redhat.com>
7564
7565 PR gdb/13860
7566 * cli/cli-interp.c: Include infrun.h and observer.h.
7567 (cli_uiout, cli_interp): New globals.
7568 (cli_on_signal_received, cli_on_end_stepping_range)
7569 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7570 functions.
7571 (cli_interpreter_init): Install them as 'end_stepping_range',
7572 'signal_received' 'signal_exited', 'exited' and 'no_history'
7573 observers.
7574 (_initialize_cli_interp): Remove cli_interp local.
7575 * infrun.c (handle_inferior_event): Call the several stop reason
7576 observers instead of printing the stop reason directly.
7577 (end_stepping_range): New function.
7578 (print_end_stepping_range_reason, print_signal_exited_reason)
7579 (print_exited_reason, print_signal_received_reason)
7580 (print_no_history_reason): Make static, and add an uiout
7581 parameter. Print to that instead of to CURRENT_UIOUT.
7582 * infrun.h (print_end_stepping_range_reason)
7583 (print_signal_exited_reason, print_exited_reason)
7584 (print_signal_received_reason print_no_history_reason): New
7585 declarations.
7586 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7587 'mi_uiout'.
7588 <cli_uiout>: New field.
7589 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7590 uiout for CLI output. Install 'signal_received',
7591 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7592 observers.
7593 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7594 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7595 (mi_on_no_history): New functions.
7596 (ui_out_free_cleanup): Delete function.
7597 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7598 instead use the one already stored in the MI interpreter data.
7599 (mi_ui_out): Adjust.
7600 * tui/tui-interp.c: Include infrun.h and observer.h.
7601 (tui_interp): New global.
7602 (tui_on_signal_received, tui_on_end_stepping_range)
7603 (tui_on_signal_exited, tui_on_exited)
7604 (tui_on_no_history): New functions.
7605 (tui_init): Install them as 'end_stepping_range',
7606 'signal_received' 'signal_exited', 'exited' and 'no_history'
7607 observers.
7608 (_initialize_tui_interp): Delete tui_interp local.
7609
7610 2014-05-29 Pedro Alves <palves@redhat.com>
7611
7612 PR gdb/15713
7613 * linux-nat.c (linux_nat_resume_callback): Rename the second
7614 parameter to 'except'. Skip LP if it points to EXCEPT.
7615 (linux_nat_resume): Don't mark the event lwp as not stopped
7616 before resuming sibling lwps. Instead ask
7617 linux_nat_resume_callback to skip the event lwp. Mark it as not
7618 stopped after actually resuming it.
7619 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7620 resuming it.
7621 (wait_lwp): Mark the lwp as stopped here.
7622 (stop_wait_callback): Mark the lwp as not stopped right after
7623 resuming it. Don't mark lwps as stopped here.
7624 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7625 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7626
7627 2014-05-29 Pedro Alves <palves@redhat.com>
7628
7629 PR PR15693
7630 * infrun.c (resume): Determine how much to resume depending on
7631 whether the caller wanted a step, not whether we can hardware step
7632 the target. Mark all threads that we intend to run as running,
7633 unless we're calling an inferior function.
7634 (normal_stop): If the thread is running an infcall, don't finish
7635 thread state.
7636 * target.c (target_resume): Don't mark threads as running here.
7637
7638 2014-05-28 Joel Brobecker <brobecker@adacore.com>
7639
7640 * serial.c (_initialize_serial): Remove support for
7641 the "set remotebaud" and "show remotebaud" commands.
7642 * NEWS: Add entry documenting the removal of that command.
7643
7644 2014-05-28 Yao Qi <yao@codesourcery.com>
7645
7646 * charset.c: Fix typo in comments.
7647
7648 2014-05-27 Gary Benson <gbenson@redhat.com>
7649
7650 * utils.c (internal_vproblem): Prompt for a bug report.
7651
7652 2014-05-26 Andy Wingo <wingo@igalia.com>
7653
7654 * guile/scm-arch.c (arscm_mark_arch_smob):
7655 * guile/scm-block.c (bkscm_mark_block_smob)
7656 (bkscm_mark_block_syms_progress_smob):
7657 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7658 * guile/scm-exception.c (exscm_mark_exception_smob):
7659 * guile/scm-frame.c (frscm_mark_frame_smob):
7660 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7661 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7662 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7663 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7664 (ppscm_mark_pretty_printer_worker_smob):
7665 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7666 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7667 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7668 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7669 mark functions.
7670 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7671 function.
7672
7673 2014-05-26 Andy Wingo <wingo@igalia.com>
7674 Doug Evans <xdje42@gmail.com>
7675
7676 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7677 empty_base_class. All uses updated.
7678 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7679 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7680 Adapt all callers.
7681 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7682 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7683 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7684 (gdbscm_gsmob_has_property_p, add_property_name)
7685 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7686 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7687 (gdb-object-has-property?, gdb-object-properties): Remove.
7688 (gdb-object-kind): Renamed from gsmob-kind.
7689
7690 2014-05-26 Andy Wingo <wingo@igalia.com>
7691
7692 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7693 * configure: Regenerate.
7694
7695 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7696
7697 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7698
7699 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
7700
7701 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7702 (replay_memory_access_read_only, replay_memory_access_read_write)
7703 (replay_memory_access_types, replay_memory_access)
7704 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7705 (cmd_set_record_btrace, cmd_show_record_btrace)
7706 (cmd_show_replay_memory_access): New.
7707 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7708 (record_btrace_remove_breakpoint): Replace
7709 record_btrace_allow_memory_access with replay_memory_access.
7710 (_initialize_record_btrace): Add commands.
7711 * NEWS: Announce it.
7712
7713 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7714
7715 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7716
7717 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7718
7719 * MAINTAINERS (Write After Approval): Move self back from
7720 paper trail.
7721
7722 2014-05-22 Pedro Alves <palves@redhat.com>
7723
7724 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7725 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7726 (disable_randomization, enum exec_direction_kind)
7727 (execution_direction, stop_registers, start_remote)
7728 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7729 (wait_for_inferior, normal_stop, get_last_target_status)
7730 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7731 (insert_step_resume_breakpoint_at_sal)
7732 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7733 (set_step_info, print_stop_event, signal_stop_state)
7734 (signal_print_state, signal_pass_state, signal_stop_update)
7735 (signal_print_update, signal_pass_update)
7736 (update_signals_program_target, clear_exit_convenience_vars)
7737 (displaced_step_dump_bytes, update_observer_mode)
7738 (signal_catch_update, gdb_signal_from_command): Move
7739 declarations ...
7740 * infrun.h: ... to this new file.
7741 * amd64-tdep.c: Include infrun.h.
7742 * annotate.c: Include infrun.h.
7743 * arch-utils.c: Include infrun.h.
7744 * arm-linux-tdep.c: Include infrun.h.
7745 * arm-tdep.c: Include infrun.h.
7746 * break-catch-sig.c: Include infrun.h.
7747 * breakpoint.c: Include infrun.h.
7748 * common/agent.c: Include infrun.h instead of inferior.h.
7749 * corelow.c: Include infrun.h.
7750 * event-top.c: Include infrun.h.
7751 * go32-nat.c: Include infrun.h.
7752 * i386-tdep.c: Include infrun.h.
7753 * inf-loop.c: Include infrun.h.
7754 * infcall.c: Include infrun.h.
7755 * infcmd.c: Include infrun.h.
7756 * infrun.c: Include infrun.h.
7757 * linux-fork.c: Include infrun.h.
7758 * linux-nat.c: Include infrun.h.
7759 * linux-thread-db.c: Include infrun.h.
7760 * monitor.c: Include infrun.h.
7761 * nto-tdep.c: Include infrun.h.
7762 * procfs.c: Include infrun.h.
7763 * record-btrace.c: Include infrun.h.
7764 * record-full.c: Include infrun.h.
7765 * remote-m32r-sdi.c: Include infrun.h.
7766 * remote-mips.c: Include infrun.h.
7767 * remote-notif.c: Include infrun.h.
7768 * remote-sim.c: Include infrun.h.
7769 * remote.c: Include infrun.h.
7770 * reverse.c: Include infrun.h.
7771 * rs6000-tdep.c: Include infrun.h.
7772 * s390-linux-tdep.c: Include infrun.h.
7773 * solib-irix.c: Include infrun.h.
7774 * solib-osf.c: Include infrun.h.
7775 * solib-svr4.c: Include infrun.h.
7776 * target.c: Include infrun.h.
7777 * top.c: Include infrun.h.
7778 * windows-nat.c: Include infrun.h.
7779 * mi/mi-interp.c: Include infrun.h.
7780 * mi/mi-main.c: Include infrun.h.
7781 * python/py-threadevent.c: Include infrun.h.
7782
7783 2014-05-22 Pedro Alves <palves@redhat.com>
7784
7785 * infrun.c (handle_inferior_event): Store the exit code for
7786 --return-child-result here, instead of ...
7787 (print_exited_reason): ... here.
7788
7789 2014-05-21 Pedro Alves <palves@redhat.com>
7790
7791 PR gdb/13860
7792 * gdbthread.h (struct thread_control_state): New field
7793 `command_interp'.
7794 * infrun.c (follow_fork): Copy the new thread control field to the
7795 child fork thread.
7796 (clear_proceed_status_thread): Clear the new thread control field.
7797 (proceed): Set the new thread control field.
7798 * interps.h (command_interp): Declare.
7799 * interps.c (command_interpreter): New global.
7800 (command_interp): New function.
7801 (interp_exec): Set `command_interpreter' while here.
7802 * cli-out.c (cli_uiout_dtor): New function.
7803 (cli_ui_out_impl): Install it.
7804 * mi/mi-interp.c: Include cli-out.h.
7805 (mi_cmd_interpreter_exec): Add comment.
7806 (restore_current_uiout_cleanup): New function.
7807 (ui_out_free_cleanup): New function.
7808 (mi_on_normal_stop): If finishing an execution command started by
7809 a CLI command, or any kind of breakpoint-like event triggered,
7810 print the stop event to the output (CLI) stream.
7811 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7812
7813 2014-05-21 Pedro Alves <palves@redhat.com>
7814
7815 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7816 current source line having changed.
7817 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7818 * infrun.c (normal_stop): Adjust call to
7819 set_current_sal_from_frame.
7820 * source.c (clear_lines_listed_range): New function.
7821 (set_current_source_symtab_and_line, identify_source_line): Clear
7822 the lines listed range.
7823 (line_info): Handle the first "info line" after the current source
7824 line having changed.
7825 * stack.c (print_stack_frame): Remove center handling.
7826 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7827 center sal.line.
7828
7829 2014-05-21 Pedro Alves <palves@redhat.com>
7830
7831 * inf-child.c (inf_child_mourn_inferior): New function.
7832 * inf-child.h (inf_child_mourn_inferior): New declaration.
7833 * darwin-nat.c (darwin_mourn_inferior): Use
7834 inf_child_mourn_inferior.
7835 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7836 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7837 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7838 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7839 * windows-nat.c (windows_mourn_inferior): Likewise.
7840
7841 2014-05-21 Doug Evans <xdje42@gmail.com>
7842
7843 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7844
7845 2014-05-21 Doug Evans <xdje42@gmail.com>
7846
7847 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7848 (gdbscm_out_of_range_error): Ditto.
7849 (gdbscm_memory_error): Ditto.
7850 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7851 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7852 (gdbscm_out_of_range_error): Update.
7853 (gdbscm_memory_error): Update.
7854 (gdbscm_scm_to_target_string_unsafe): Delete.
7855
7856 2014-05-21 Pedro Alves <palves@redhat.com>
7857
7858 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7859 globals.
7860 (inf_child_open_target): New function.
7861 (inf_child_open): Use inf_child_open_target to push the target
7862 instead of erroring out.
7863 (inf_child_disconnect, inf_child_close)
7864 (inf_child_maybe_unpush_target): New functions.
7865 (inf_child_target): Install inf_child_disconnect and
7866 inf_child_close. Store a pointer to the returned object.
7867 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7868 declarations.
7869 * target.c (auto_connect_native_target): New global.
7870 (show_default_run_target): New function.
7871 (find_default_run_target): Return NULL if automatically connecting
7872 to the native target is disabled.
7873 (_initialize_target): Install set/show auto-connect-native-target.
7874 * NEWS: Mention "set auto-connect-native-target", and "target
7875 native".
7876 * linux-nat.c (super_close): New global.
7877 (linux_nat_close): Call super_close.
7878 (linux_nat_add_target): Store a pointer to the base class's
7879 to_close method.
7880 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7881 inf_child_maybe_unpush.
7882 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7883 already pushed.
7884 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7885 the inferior. Use inf_child_maybe_unpush_target.
7886 (inf_ttrace_attach): Don't push the target if it is already
7887 pushed.
7888 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7889 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7890 after mourning the inferior. Use inf_child_maybe_unpush_target.
7891 (darwin_attach_pid): Don't push the target if it is already
7892 pushed.
7893 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7894 mourning the inferior. Use inf_child_maybe_unpush_target.
7895 (gnu_detach): Use inf_child_maybe_unpush_target.
7896 * go32-nat.c (go32_create_inferior): Don't push the target if it
7897 is already pushed.
7898 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7899 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7900 (procfs_open): Rename to ...
7901 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7902 comments. Can target_preopen before changing node. Call
7903 inf_child_open_target to push the target explicitly.
7904 (procfs_attach): Don't push the target if it is already pushed.
7905 (procfs_detach): Use inf_child_maybe_unpush_target.
7906 (procfs_create_inferior): Don't push the target if it is already
7907 pushed.
7908 (nto_native_ops): New global.
7909 (procfs_open): Reimplement.
7910 (procfs_native_open): New function.
7911 (init_procfs_targets): Install procfs_native_open as to_open of
7912 "target native". Store a pointer to the "native" target in
7913 nto_native_ops.
7914 * procfs.c (procfs_attach): Don't push the target if it is already
7915 pushed.
7916 (procfs_detach): Use inf_child_maybe_unpush_target.
7917 (procfs_mourn_inferior): Only unpush the target after mourning the
7918 inferior. Use inf_child_maybe_unpush_target.
7919 (procfs_init_inferior): Don't push the target if it is already
7920 pushed.
7921 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7922 if it is already pushed.
7923
7924 2014-05-21 Pedro Alves <palves@redhat.com>
7925
7926 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7927 and "procfs" targets are now called "native" instead.
7928
7929 2014-05-21 Pedro Alves <palves@redhat.com>
7930
7931 * go32-nat.c (go32_open): Delete.
7932 (go32_target): Don't override the to_open method.
7933
7934 2014-05-21 Pedro Alves <palves@redhat.com>
7935
7936 * nto-procfs.c (procfs_can_run): New function.
7937 (nto_procfs_ops): New global.
7938 (init_procfs_targets): New, based on procfs_target. Install
7939 "target native" in addition to "target procfs".
7940 (_initialize_procfs): Call init_procfs_targets instead of adding
7941 the target here.
7942
7943 2014-05-21 Pedro Alves <palves@redhat.com>
7944
7945 * windows-nat.c (windows_target): Don't override to_shortname,
7946 to_longname or to_doc.
7947
7948 2014-05-21 Pedro Alves <palves@redhat.com>
7949
7950 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7951 to_doc.
7952
7953 2014-05-21 Pedro Alves <palves@redhat.com>
7954
7955 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7956 to_shortname, to_longname or to_doc.
7957
7958 2014-05-21 Pedro Alves <palves@redhat.com>
7959
7960 * go32-nat.c (go32_target): Don't override to_shortname,
7961 to_longname or to_doc.
7962
7963 2014-05-21 Pedro Alves <palves@redhat.com>
7964
7965 * inf-child.c (inf_child_open): Remove mention of "child".
7966 (inf_child_target): Rename target to "native" instead of "child".
7967
7968 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7969
7970 * Makefile.in (SFILES): Delete "regset.c".
7971 (COMMON_OBS): Delete "regset.o".
7972 * regset.c: Remove.
7973 * regset.h (regset_alloc): Delete prototype.
7974
7975 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7976
7977 * sparc-linux-tdep.c (sparc32_linux_gregset)
7978 (sparc32_linux_fpregset): New static regset structures.
7979 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7980 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7981 'fpregset' fields.
7982 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7983 (sparc64_linux_fpregset): New static regset structures.
7984 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7985 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7986 New static regset structures.
7987 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7988 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7989 New static regset structures.
7990 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7991 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7992 New static regset structures.
7993 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7994 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7995 New static regset structures.
7996 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7997
7998 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7999
8000 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8001 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8002 register maps ("regmaps") from "*regset" to "*regmap". Do this
8003 for all regmap types and variables.
8004 * sparc-linux-tdep.c (sparc32_linux_step_trap)
8005 (sparc32_linux_supply_core_gregset)
8006 (sparc32_linux_collect_core_gregset)
8007 (sparc32_linux_supply_core_fpregset)
8008 (sparc32_linux_collect_core_fpregset): Likewise.
8009 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8010 (sparc_gregmap, sparc_fpregmap): ... these.
8011 (sparc_supply_gregset, sparc_collect_gregset)
8012 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8013 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8014 (_initialize_sparc_nat): Rename regmaps.
8015 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8016 (sparc_gregmap, sparc_fpregmap): ... these.
8017 (sparc_supply_gregset, sparc_collect_gregset)
8018 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8019 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8020 Rename macros to...
8021 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8022 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8023 Likewise.
8024 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8025 Rename to...
8026 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8027 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8028 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8029 regmaps.
8030 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8031 (sparc32_bsd_fpregset): Rename to...
8032 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8033 (sparc32_bsd_fpregmap): ... these.
8034 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8035 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8036 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8037 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8038 (struct sparc_gregmap, struct sparc_fpregmap)
8039 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8040 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8041 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8042 (sparc32_supply_regset, sparc32_collect_gregset)
8043 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8044 prototypes.
8045 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8046 (sparc64_linux_ptrace_gregmap): ... this.
8047 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8048 (_initialize_sparc64_linux_nat): Rename regmaps.
8049 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8050 (sparc64_linux_core_gregmap): ... this.
8051 (sparc64_linux_supply_core_gregset)
8052 (sparc64_linux_collect_core_gregset)
8053 (sparc64_linux_supply_core_fpregset)
8054 (sparc64_linux_collect_core_fpregset): Rename regmaps.
8055 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8056 (sparc64_sol2_fpregset): Rename to...
8057 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8058 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8059 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8060 regmaps.
8061 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8062 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8063 (sparc64_bsd_fpregset): Rename to...
8064 (struct sparc_gregmap, sparc64_sol2_gregmap)
8065 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8066 (sparc64_bsd_fpregmap): ... these.
8067 (sparc64_supply_gregset, sparc64_collect_gregset)
8068 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8069 prototypes.
8070 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8071 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8072 (sparc64fbsd_gregmap): ... this.
8073 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8074 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8075 Rename regmaps.
8076 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8077 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8078 (sparc64nbsd_collect_fpregset): Likewise.
8079 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8080 (sparc64nbsd_gregmap): ... this.
8081 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8082 regmaps.
8083 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8084 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8085 (sparc64obsd_gregmap): ... this.
8086 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8087 regmaps.
8088 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8089 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8090 (sparc32nbsd_gregmap): ... this.
8091 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8092 regmaps.
8093
8094 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8095
8096 * score-tdep.c (score7_linux_gregset): New static regset
8097 structure.
8098 (score7_linux_regset_from_core_section): Remove dynamic regset
8099 allocation.
8100 (score_gdbarch_init): Drop allocation of tdep structure.
8101 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8102
8103 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8104
8105 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8106 regset structures.
8107 (am33_regset_from_core_section): Remove dynamic regset
8108 allocations.
8109
8110 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8111
8112 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8113 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8114 structures.
8115 (mips_linux_regset_from_core_section): Remove dynamic regset
8116 allocations.
8117 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8118 'gregset64', 'fpregset', and 'fpregset64'.
8119 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8120 deleted tdep fields.
8121
8122 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8123
8124 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8125 regset structures.
8126 (amd64_regset_from_core_section): Remove dynamic regset
8127 allocations.
8128 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8129 structure.
8130 (amd64obsd_regset_from_core_section): Remove dynamic regset
8131 allocation.
8132 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8133 Likewise.
8134 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8135 x86-common regset supply function.
8136 * i386-tdep.c (i386_collect_gregset): Make static.
8137 (i386_gregset): New global regset structure.
8138 (i386_fpregset, i386_xstateregset): New static regset structures.
8139 (i386_regset_from_core_section): Remove dynamic regset
8140 allocations.
8141 (i386_gdbarch_init): Remove initialization of tdep fields
8142 'gregset', 'fpregset', and 'xstateregset'.
8143 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8144 'fpregset', and 'xstateregset'.
8145 (i386_collect_gregset): Remove prototype.
8146 (i386_gregset): New declaration.
8147 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8148 structure.
8149 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8150 allocation.
8151
8152 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8153
8154 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8155 (arm_linux_vfpregset): New static regset structures.
8156 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8157 regset structures.
8158 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8159 and 'vfpregset' fields.
8160
8161 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8162
8163 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8164 (aarch64_linux_fpregset): New static regset structures.
8165 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8166 of regset structures.
8167 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8168 'fpregset' fields.
8169
8170 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8171
8172 * regset.h (struct regset): Remove gdbarch field.
8173 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8174 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8175 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8176 Likewise.
8177 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8178 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8179 (ppc32_linux_vsxregset): Likewise.
8180 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8181 via the regcache instead of the regset.
8182 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8183 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8184 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8185 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8186 Likewise.
8187
8188 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8189
8190 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8191 Constify structures.
8192 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8193 (alphanbsd_aout_gregset): Likewise.
8194 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8195 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8196 Likewise.
8197 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8198 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8199 Likewise.
8200 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8201 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8202 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8203 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8204 * m88k-tdep.c (m88k_gregset): Likewise.
8205 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8206 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8207 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8208 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8209 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8210 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8211 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8212 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8213 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8214 Likewise.
8215 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8216 * sh-tdep.h (sh_corefile_gregset): Likewise.
8217 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8218 * vax-tdep.c (vax_gregset): Likewise.
8219
8220 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8221
8222 Fix TLS access for -static -pthread.
8223 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8224 (try_thread_db_load_1): Initialize it.
8225 (thread_db_get_thread_local_address): Call it if LM is zero.
8226 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8227 * target.h (struct target_ops) (to_get_thread_local_address): Add
8228 load_module_addr comment.
8229
8230 2014-05-21 Pedro Alves <palves@redhat.com>
8231
8232 * dcache.c (dcache_read_memory_partial): If reading the cache line
8233 fails, fallback to reading just the memory the caller wanted.
8234
8235 2014-05-20 Doug Evans <dje@google.com>
8236
8237 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8238 instead of get_current_arch.
8239
8240 2014-05-20 Pedro Alves <palves@redhat.com>
8241
8242 * NEWS: Mention that compare-sections now works with all targets.
8243
8244 * remote.c (PACKET_qCRC): New enum value.
8245 (remote_verify_memory): Don't send qCRC if the target has no
8246 execution. Use packet_support/packet_ok. If the target doesn't
8247 support the qCRC packet, fallback to a deep memory copy.
8248 (compare_sections_command): Say "target image" instead of "remote
8249 executable".
8250 (_initialize_remote): Add PACKET_qCRC to the list of config
8251 packets that have no associated command. Extend comment.
8252 * target.c (simple_verify_memory, default_verify_memory): New
8253 function.
8254 * target.h (struct target_ops) <to_verify_memory>: Default to
8255 default_verify_memory.
8256 (simple_verify_memory): New declaration.
8257 * target-delegates.c: Regenerate.
8258
8259 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
8260
8261 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8262
8263 2014-05-20 Hui Zhu <hui@codesourcery.com>
8264 Yao Qi <yao@codesourcery.com>
8265
8266 PR backtrace/16558
8267 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8268 and change address of sp and pc.
8269
8270 2014-05-19 Tom Tromey <tromey@redhat.com>
8271
8272 * gdbtypes.c (rank_function): Use XNEWVEC.
8273 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8274
8275 2014-05-19 Doug Evans <dje@google.com>
8276
8277 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8278 build_type_unit_groups and moved closer to only caller. Remove
8279 arguments. All references updated. Remove outdated .gdb_index
8280 comment.
8281 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8282 build_type_psymtabs_1.
8283
8284 2014-05-19 Doug Evans <dje@google.com>
8285
8286 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8287 n_type_unit_groups, all_type_unit_groups. All uses removed.
8288 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8289 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8290 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8291 (add_type_unit_group_to_table): Delete.
8292
8293 2014-05-19 Doug Evans <dje@google.com>
8294
8295 * eval.c (evaluate_subexp_standard): Add some comments.
8296
8297 2014-05-17 Doug Evans <xdje42@gmail.com>
8298
8299 * progspace.c (remove_program_space): Delete, unused.
8300 * progspace.h (remove_program_space): Ditto.
8301
8302 2014-05-17 Doug Evans <xdje42@gmail.com>
8303
8304 * inferior.c (prune_inferiors): Fix comment.
8305 (remove_inferior_command): Call prune_program_spaces.
8306
8307 2014-05-16 Doug Evans <dje@google.com>
8308
8309 New command line option -D.
8310 * NEWS: Mention it.
8311 * main.c (set_gdb_data_directory): New function.
8312 (captured_main): Recognize -D. Flag error for --data-directory "".
8313 Call set_gdb_data_directory.
8314 (print_gdb_help): Print --data-directory, -D.
8315 * main.h (set_gdb_data_directory): Declare.
8316 * top.c (staged_gdb_datadir): New static global.
8317 (set_gdb_datadir): Call set_gdb_data_directory
8318 (show_gdb_datadir): New function.
8319 (init_main): Update init of data-directory parameter.
8320
8321 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
8322
8323 Import the "dirfd" gnulib module.
8324 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8325 * gnulib/aclocal.m4: Update.
8326 * gnulib/config.in: Update.
8327 * gnulib/configure: Update.
8328 * gnulib/import/Makefile.am: Update.
8329 * gnulib/import/Makefile.in: Update.
8330 * gnulib/import/dirfd.c: New.
8331 * gnulib/import/m4/dirfd.m4: New.
8332 * gnulib/import/m4/gnulib-cache.m4: Update.
8333 * gnulib/import/m4/gnulib-comp.m4: Update.
8334
8335 2014-05-16 Pierre Muller <muller@sourceware.org>
8336 Yao Qi <yao@codesourcery.com>
8337
8338 * valprint.c (print_wchar): Move the code on checking whether
8339 W is a printable wide char to the default branch of switch
8340 statement below. Call wchar_printable instead of gdb_iswprint.
8341
8342 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
8343
8344 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8345 ldr.w and ldrd instructions.
8346
8347 2014-05-15 Doug Evans <dje@google.com>
8348
8349 * dwarf2read.c (read_structure_type): Delete outdated comments.
8350
8351 2014-05-14 Tom Tromey <tromey@redhat.com>
8352
8353 * macrocmd.c (print_macro_definition): Reindent.
8354
8355 2014-05-13 Doug Evans <xdje42@gmail.com>
8356
8357 * python/py-cmd.c (cmdpy_completer): Add comment.
8358 (completers): Make const.
8359
8360 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
8361
8362 * infrun.c (resume): Remove should_resume (unused). Move up
8363 declaration of resume_ptid.
8364
8365 2014-05-13 Tom Tromey <tromey@redhat.com>
8366
8367 * language.h (unop_type_check): Remove.
8368 (binop_type_check): Don't declare.
8369
8370 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
8371
8372 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8373 call to regcache_raw_collect.
8374
8375 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8376
8377 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8378 mi_console->quote as the quoting character.
8379
8380 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
8381
8382 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8383
8384 2014-04-29 Tom Tromey <tromey@redhat.com>
8385
8386 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8387 "show debug varobj".
8388
8389 2014-05-07 Kyle McMartin <kyle@redhat.com>
8390
8391 Pushed by Joel Brobecker <brobecker@adacore.com>.
8392 * aarch64-tdep.c (aarch64_software_single_step): New function.
8393 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8394 with aarch64_software_single_step.
8395
8396 2014-05-05 Joel Brobecker <brobecker@adacore.com>
8397
8398 GDB 7.7.1 released.
8399
8400 2014-05-05 Keith Seitz <keiths@redhat.com>
8401
8402 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8403 variable or history value is successfully parsed.
8404
8405 2014-05-05 Yao Qi <yao@codesourcery.com>
8406 Pedro Alves <palves@redhat.com>
8407
8408 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8409 address of blocks that intersects the requested range. Trim
8410 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8411 sections.
8412 * ctf.c (ctf_xfer_partial): Likewise.
8413
8414 2014-05-05 Yao Qi <yao@codesourcery.com>
8415
8416 * printcmd.c (display_command): Remove the check to
8417 target_has_execution.
8418
8419 2014-05-03 Mark Kettenis <kettenis@gnu.org>
8420
8421 * ppcobsd-nat.c: Include "obsd-nat.h".
8422 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8423 add_target.
8424 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8425
8426 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8427
8428 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8429 and 16-bit signed and unsigned arguments. Update comment.
8430 (stap_parse_probe_arguments): Extend code to handle such
8431 arguments. Use warning instead of complaint to notify about
8432 unrecognized bitness.
8433
8434 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
8435
8436 PR breakpoints/16889
8437 * stap-probe.c (stap_parse_probe_arguments): Simplify
8438 check for non-prefixed probes (i.e., probes whose
8439 arguments do not start with "N@"). Always set the
8440 argument type to a sane value.
8441
8442 2014-05-01 David Taylor <dtaylor@emc.com>
8443
8444 * remote.c (compare_sections_command): Add -r option to compare
8445 all loadable read-only sections.
8446
8447 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
8448
8449 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8450 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8451 Update all callers.
8452 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8453 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8454 Remove unused CORE_ADDR argument. Update all callers.
8455
8456 2014-04-29 Pedro Alves <palves@redhat.com>
8457
8458 * remote.c (struct packet_config) <detect>: Extend comment.
8459 (add_packet_config_cmd): Don't set the config's detect or support
8460 fields here.
8461 (init_all_packet_configs): Also initialize the config's 'detect'
8462 field.
8463 (reset_all_packet_configs_support): New function.
8464 (remote_open_1): Call reset_all_packet_configs_support instead of
8465 init_all_packet_configs.
8466 (_initialize_remote): Initialize all packet configs. Assert that
8467 all packets have an associated command, except a few known
8468 outliers.
8469
8470 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8471
8472 * dwarf2read.c (read_subrange_type): Handle dynamic
8473 DW_AT_lower_bound attributes.
8474
8475 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8476
8477 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8478 dynamic bounds before computing its upper bound.
8479 (ada_discrete_type_low_bound): Same as above with the lower bound.
8480
8481 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8482
8483 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8484 range types. Adjust the array handling implementation to
8485 take advantage of this change.
8486 (resolve_dynamic_range): New function, mostly extracted from
8487 resolve_dynamic_bounds.
8488 (resolve_dynamic_array): New function, mostly extracted from
8489 resolve_dynamic_bounds.
8490 (resolve_dynamic_bounds): Delete.
8491 (resolve_dynamic_type): Reimplement. Add handling of
8492 TYPE_CODE_RANGE types.
8493
8494 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8495
8496 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8497 handling of parallel ___XA types.
8498
8499 2014-04-28 Joel Brobecker <brobecker@adacore.com>
8500
8501 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8502 unnecessary second call to static_unwrap_type.
8503
8504 2014-04-27 Hui Zhu <hui@codesourcery.com>
8505
8506 * stack.c (print_frame_info): Call do_gdb_disassembly with
8507 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8508
8509 2014-04-26 Doug Evans <xdje42@gmail.com>
8510
8511 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8512
8513 2014-04-25 Pedro Alves <palves@redhat.com>
8514
8515 PR server/16255
8516 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8517 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8518 and newline from built string.
8519 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8520 (linux_ptrace_attach_fail_reason): ... this.
8521 * linux-nat.c (linux_nat_attach): Adjust to use
8522 linux_ptrace_attach_fail_reason.
8523
8524 2014-04-25 Pedro Alves <palves@redhat.com>
8525
8526 * remote.c (struct remote_state): Remove multi_process_aware,
8527 non_stop_aware, cond_tracepoints, cond_breakpoints,
8528 breakpoint_commands, fast_tracepoints, static_tracepoints,
8529 install_in_trace, disconnected_tracing,
8530 enable_disable_tracepoints, string_tracing, and
8531 augmented_libraries_svr4_read fields.
8532 (remote_multi_process_p): Move further below in the file.
8533 (struct packet_config): Add comments.
8534 (update_packet_config): Delete function.
8535 (show_packet_config_cmd): Use packet_config_support.
8536 (add_packet_config_cmd): Use NULL as set callback.
8537 (packet_ok): "set remote foo-packet"-style commands no longer
8538 change config->supported -- adjust.
8539 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8540 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8541 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8542 (PACKET_QNonStop, PACKET_multiprocess_feature)
8543 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8544 (PACKET_DisconnectedTracing_feature)
8545 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8546 (set_remote_protocol_packet_cmd): Delete function.
8547 (packet_config_support, packet_support): New functions.
8548 (set_remote_protocol_Z_packet_cmd): Don't call
8549 update_packet_config.
8550 (remote_query_attached, remote_pass_signals)
8551 (remote_program_signals, remote_threads_info)
8552 (remote_threads_extra_info, remote_start_remote): Use
8553 packet_support.
8554 (remote_start_remote): Use packet_config_support and
8555 packet_support.
8556 (init_all_packet_configs): Set all packets to unknown support,
8557 instead of calling update_packet_config.
8558 (remote_check_symbols): Use packet_support.
8559 (remote_supported_packet): Unconditionally set the packet config's
8560 support status.
8561 (remote_multi_process_feature, remote_non_stop_feature)
8562 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8563 (remote_breakpoint_commands_feature)
8564 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8565 (remote_install_in_trace_feature)
8566 (remote_disconnected_tracing_feature)
8567 (remote_enable_disable_tracepoint_feature)
8568 (remote_string_tracing_feature)
8569 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8570 (remote_protocol_features): Adjust to use remote_supported_packet
8571 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8572 "ConditionalTracepoints", "ConditionalBreakpoints",
8573 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8574 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8575 "EnableDisableTracepoints", and "tracenz".
8576 (remote_query_supported): Use packet_support.
8577 (remote_open_1): Adjust.
8578 (extended_remote_attach_1): Use packet_support. Switch on the
8579 result of packet_ok instead of checking whether the packet ended
8580 up disabled.
8581 (remote_vcont_resume): Use packet_support.
8582 (remote_resume, remote_stop_ns, fetch_register_using_p)
8583 (remote_prepare_to_store, store_register_using_P)
8584 (check_binary_download, remote_write_bytes): Use packet_support.
8585 (remote_vkill): Use packet_support. Switch on the result of
8586 packet_ok instead of checking whether the packet ended up
8587 disabled.
8588 (extended_remote_supports_disable_randomization): Use
8589 packet_support.
8590 (extended_remote_run): Switch on the result of packet_ok instead
8591 of checking whether the packet ended up disabled.
8592 (remote_insert_breakpoint, remote_remove_breakpoint)
8593 (remote_insert_watchpoint, remote_remove_watchpoint)
8594 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8595 packet_support.
8596 (remote_search_memory): Use packet_config_support.
8597 (remote_get_thread_local_address, remote_get_tib_address)
8598 (remote_hostio_send_command, remote_can_execute_reverse): Use
8599 packet_support.
8600 (remote_supports_cond_tracepoints)
8601 (remote_supports_cond_breakpoints)
8602 (remote_supports_fast_tracepoints)
8603 (remote_supports_static_tracepoints)
8604 (remote_supports_install_in_trace)
8605 (remote_supports_enable_disable_tracepoint)
8606 (remote_supports_string_tracing)
8607 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8608 the packet config says the feature is enabled or disabled.
8609 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8610 (remote_get_trace_status): Use packet_support.
8611 (remote_set_disconnected_tracing): Adjust to check whether the
8612 feature is enabled with packet_support.
8613 (remote_set_trace_buffer_size, remote_use_agent)
8614 (remote_can_use_agent, remote_supports_btrace): Use
8615 packet_support.
8616 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8617 Use packet_config_support.
8618 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8619 the packet config says the feature is enabled or disabled.
8620 (set_range_stepping): Use packet_support.
8621
8622 2014-04-25 Tom Tromey <tromey@redhat.com>
8623
8624 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8625 argument.
8626
8627 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
8628
8629 * NEWS: Mention support for C99 variable length arrays.
8630
8631 2014-04-24 Joel Brobecker <brobecker@adacore.com>
8632
8633 * ada-lang.c (standard_exc): Expand introductory comment.
8634
8635 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
8636 Walfred Tedeschi <walfred.tedeschi@intel.com>
8637
8638 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8639 AVX512 registers.
8640 (amd64_linux_read_description): Add code to handle AVX512 xstate
8641 mask and return respective tdesc.
8642 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8643 and features/i386/x32-avx512-linux.c.
8644 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8645 (amd64_linux_core_read_description): Add code to handle AVX512
8646 xstate mask and return respective tdesc.
8647 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8648 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8649 calculation.
8650 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8651 (tdesc_amd64_avx512_linux): New prototype.
8652 (tdesc_x32_avx512_linux): Likewise.
8653 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8654 features/i386/x32-avx512.c.
8655 (amd64_ymm_avx512_names): New register names for pseudo
8656 registers YMM16-31.
8657 (amd64_ymmh_avx512_names): New register names for raw registers
8658 YMMH16-31.
8659 (amd64_k_names): New register names for K registers.
8660 (amd64_zmmh_names): New register names for ZMM raw registers.
8661 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8662 (amd64_xmm_avx512_names): New register names for XMM16-31
8663 registers.
8664 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8665 registers.
8666 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8667 if feature is present.
8668 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8669 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8670 (AMD64_NUM_REGS): Adjust to new number of registers.
8671 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8672 registers supplied via XSTATE by AVX512 registers.
8673 (i386_linux_read_description): Add case for AVX512.
8674 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8675 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8676 (i386_linux_core_read_description): Add case for AVX512.
8677 (i386_linux_init_abi): Install supported register note section
8678 for AVX512.
8679 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8680 AVX512.
8681 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8682 registers to be number of zmm7h + 1.
8683 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8684 * i386-tdep.c: Include features/i386/i386-avx512.c.
8685 (i386_zmm_names): Add ZMM pseudo register names array.
8686 (i386_zmmh_names): Add ZMM raw register names array.
8687 (i386_k_names): Add K raw register names array.
8688 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8689 registers. AVX512 has 16 more ZMM registers than there are YMM
8690 registers.
8691 (i386_zmmh_regnum_p): Add function to look up register number of
8692 ZMM raw registers.
8693 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8694 (i386_k_regnum_p): Likewise for K raw registers.
8695 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8696 registers added by AVX512.
8697 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8698 registers added by AVX512.
8699 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8700 added by AVX512.
8701 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8702 (i386_pseudo_register_name): Add ZMM pseudo registers.
8703 (i386_zmm_type): Construct and return vector registers type for ZMM
8704 registers.
8705 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8706 ZMM0-31 pseudo registers and K registers.
8707 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8708 and YMM16-31 registers from register cache.
8709 (i386_pseudo_register_write): Add code to write K, ZMM and
8710 YMM16-31 registers.
8711 (i386_register_reggroup_p): Add code to include/exclude AVX512
8712 registers in/from respective register groups.
8713 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8714 registers if feature is present in xcr0.
8715 (i386_gdbarch_init): Add code to initialize AVX512 feature
8716 variables in tdep structure, wire in pseudo registers and call
8717 initialize_tdesc_i386_avx512.
8718 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8719 variables.
8720 (i386_regnum): Add AVX512 registers.
8721 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8722 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8723 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8724 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8725 512 bits wide.
8726 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8727 (i386_ymm_avx512_regnum_p): Likewise.
8728 (i386_k_regnum_p): Likewise.
8729 (i386_zmm_regnum_p): Likewise.
8730 (i386_zmmh_regnum_p): Likewise.
8731 * i387-tdep.c : Update year in copyright notice.
8732 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8733 XSAVE buffer.
8734 (XSAVE_YMM_AVX512_ADDR): New macro.
8735 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8736 XSAVE buffer.
8737 (XSAVE_XMM_AVX512_ADDR): New macro.
8738 (xsave_avx512_k_offset): New table for K register offsets in
8739 XSAVE buffer.
8740 (XSAVE_AVX512_K_ADDR): New macro.
8741 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8742 in XSAVE buffer.
8743 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8744 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8745 buffer.
8746 (i387_collect_xsave): Add code to collect AVX512 registers from
8747 XSAVE buffer.
8748 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8749 of XMM16-31 registers.
8750 (I387_NUM_K_REGS): New define for number of K registers.
8751 (I387_K0_REGNUM): New define for K0 register number.
8752 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8753 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8754 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8755 registers.
8756 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8757 (I387_XMM16_REGNUM): New define for XMM16 register number.
8758 (I387_YMM0_REGNUM): New define for YMM0 register number.
8759 (I387_KEND_REGNUM): New define for last K register number.
8760 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8761 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8762 number.
8763 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8764 number.
8765 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8766 size.
8767 * features/Makefile: Add AVX512 related files.
8768 * features/i386/32bit-avx512.xml: New file.
8769 * features/i386/64bit-avx512.xml: Likewise.
8770 * features/i386/amd64-avx512-linux.c: Likewise.
8771 * features/i386/amd64-avx512-linux.xml: Likewise.
8772 * features/i386/amd64-avx512.c: Likewise.
8773 * features/i386/amd64-avx512.xml: Likewise.
8774 * features/i386/i386-avx512-linux.c: Likewise.
8775 * features/i386/i386-avx512-linux.xml: Likewise.
8776 * features/i386/i386-avx512.c: Likewise.
8777 * features/i386/i386-avx512.xml: Likewise.
8778 * features/i386/x32-avx512-linux.c: Likewise.
8779 * features/i386/x32-avx512-linux.xml: Likewise.
8780 * features/i386/x32-avx512.c: Likewise.
8781 * features/i386/x32-avx512.xml: Likewise.
8782 * regformats/i386/amd64-avx512-linux.dat: New file.
8783 * regformats/i386/amd64-avx512.dat: Likewise.
8784 * regformats/i386/i386-avx512-linux.dat: Likewise.
8785 * regformats/i386/i386-avx512.dat: Likewise.
8786 * regformats/i386/x32-avx512-linux.dat: Likewise.
8787 * regformats/i386/x32-avx512.dat: Likewise.
8788 * NEWS: Add note about new support for AVX512.
8789
8790
8791 2014-04-23 Pedro Alves <palves@redhat.com>
8792
8793 * breakpoint.c (insert_bp_location): Tolerate errors if the
8794 breakpoint is set in a user-loaded objfile.
8795 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8796 location is marked shlib_disabled. If the breakpoint is set in a
8797 user-loaded objfile is a GDB-side memory breakpoint, validate it
8798 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8799 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8800 flag.
8801 * mem-break.c (memory_validate_breakpoint): New function.
8802 * objfiles.c (userloaded_objfile_contains_address_p): New
8803 function.
8804 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8805 * target.h (memory_validate_breakpoint): New declaration.
8806
8807 2014-04-23 Pedro Alves <palves@redhat.com>
8808
8809 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8810 the breakpoint is set in a shared library, only suppress
8811 errors for software breakpoints, not hardware breakpoints.
8812
8813 2014-04-22 Pedro Alves <palves@redhat.com>
8814
8815 * infrun.c (schedlock_applies): New function, factored out from
8816 find_thread_needs_step_over.
8817 (find_thread_needs_step_over): Use it.
8818 (switch_back_to_stepped_thread): Always clear trap_expected if the
8819 step over is finished. Return early if scheduler locking applies.
8820 Look for the stepping thread and a potential step-over thread with
8821 a single loop.
8822 (currently_stepping_or_nexting_callback): Delete.
8823
8824 2014-04-22 Nick Clifton <nickc@redhat.com>
8825
8826 * NEWS: Mention that ARM sim now supports tracing.
8827
8828 2014-04-22 Yao Qi <yao@codesourcery.com>
8829
8830 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8831 to ...
8832 * tracefile.c (tracefile_fetch_registers): ... it. New
8833 function.
8834 * tracefile.h (tracefile_fetch_registers): Declare.
8835 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8836 tracefile_fetch_registers.
8837
8838 2014-04-19 Eli Zaretskii <eliz@gnu.org>
8839
8840 PR gdb/14018
8841 * windows-nat.c (thread_rec): Don't display a warning when
8842 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8843 fails for any reason, set th->suspended to -1, so that we don't
8844 try to resume such a thread. Also, don't return NULL in these
8845 cases, to avoid completely ruin the session due to "PC register is
8846 not available" error.
8847 (do_windows_fetch_inferior_registers): Check errors in
8848 GetThreadContext call.
8849 (windows_continue): Accept an additional argument KILLED; if not
8850 zero, ignore errors in the SetThreadContext call, since the
8851 inferior was killed and is shutting down.
8852 (windows_resume, get_windows_debug_event)
8853 (windows_create_inferior, windows_mourn_inferior)
8854 (windows_kill_inferior): All callers of windows_continue changed
8855 to adjust to its new calling sequence.
8856
8857 2014-04-19 Yao Qi <yao@codesourcery.com>
8858
8859 * ctf.c (ctf_open): Call post_create_inferior.
8860
8861 2014-04-19 Yao Qi <yao@codesourcery.com>
8862
8863 * ctf.c (handle_id): New static variable.
8864 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8865 value. Get the declaration of event "register" and get length
8866 of field "contents".
8867
8868 2014-04-19 Yao Qi <yao@codesourcery.com>
8869
8870 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8871
8872 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
8873
8874 * valops.c (oload_method_static): Remove unnecessary argument
8875 METHOD. Update all callers.
8876
8877 2014-04-18 Pedro alves <palves@redhat.com>
8878 Tom Tromey <tromey@redhat.com>
8879
8880 PR backtrace/15558
8881 * frame.c (get_prev_frame_1): Rename to ...
8882 (get_prev_frame_always): ... this, and make extern. Adjust.
8883 (skip_artificial_frames): Use get_prev_frame_always.
8884 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8885 (get_frame_unwind_stop_reason): Adjust to rename.
8886 * frame.h (get_prev_frame_always): Declare.
8887 * inline-frame.c: Include frame.h.
8888 (inline_frame_this_id): Use get_prev_frame_always.
8889
8890 2014-04-18 Tristan Gingold <gingold@adacore.com>
8891
8892 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8893 code by using bfd_mach_o_get_base_address.
8894
8895 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8896
8897 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8898 (spu_ax_pseudo_register_collect): New function.
8899 (spu_ax_pseudo_register_push_stack): Likewise.
8900 (spu_dwarf_reg_to_regnum): Likewise.
8901 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8902
8903 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
8904
8905 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8906 Replace FRAME argument with FRAME_ID.
8907 * gdbarch.c, gdbarch.h: Regenerate.
8908 * findvar.c (default_value_from_register): Add GDBARCH argument;
8909 replace FRAME by FRAME_ID. No longer call get_frame_id.
8910 (value_from_register): Update call to gdbarch_value_from_register.
8911 * value.h (default_value_from_register): Update prototype.
8912 * s390-linux-tdep.c (s390_value_from_register): Update interface
8913 and call to default_value_from_register.
8914 * spu-tdep.c (spu_value_from_register): Likewise.
8915
8916 * findvar.c (address_from_register): Remove TYPE argument.
8917 Do not call value_from_register; use gdbarch_value_from_register
8918 with null_frame_id instead.
8919 * value.h (address_from_register): Update prototype.
8920 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8921 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8922 address_from_register interface change.
8923
8924 2014-04-17 Yao Qi <yao@codesourcery.com>
8925
8926 * gdbtypes.h: Update comments to link to types and macros'
8927 definitions.
8928
8929 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
8930
8931 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8932
8933 2014-04-16 Keith Seitz <keiths@redhat.com>
8934
8935 PR gdb/15827
8936 * dwarf2read.c (skip_one_die): Check that all relative-offset
8937 sibling DIEs fall within range of the current reader's buffer.
8938 (read_partial_die): Likewise.
8939
8940 2014-04-16 Keith Seitz <keiths@redhat.com>
8941
8942 PR c++/16597
8943 * cp-namespace.c (lookup_symbol_file): If the type name of
8944 `this' is NULL, return immediately.
8945
8946 2014-04-14 Keith Seitz <keiths@redhat.com>
8947
8948 PR c++/16253
8949 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8950 from symbol_matches_domain in symtab.c. All local callers
8951 of symbol_matches_domain updated.
8952 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8953 search STRUCT_DOMAIN.
8954 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8955 independently. standard_lookup will do that automatically.
8956 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8957 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8958 (cp_lookup_symbol_in_namespace): Likewise.
8959 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8960 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8961 may return a STRUCT_DOMAIN match.
8962 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8963 * cp-support.c: Include language.h.
8964 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8965 VAR_DOMAIN.
8966 * psymtab.c (match_partial_symbol): Compare the requested
8967 domain with the symbol's domain directly.
8968 (lookup_partial_symbol): Likewise.
8969 * symtab.c (lookup_symbol_in_language): Explain when/why
8970 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8971 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8972 appropriate languages.
8973 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8974 and moved to ada-lang.c
8975 (lookup_block_symbol): Explain that this function only returns
8976 symbol matching the requested DOMAIN.
8977 Compare the requested domain with the symbol's domain directly.
8978 (iterate_over_symbols): Compare the requested domain with the
8979 symbol's domain directly.
8980 * symtab.h (symbol_matches_domain): Remove.
8981
8982 2014-04-14 Tom Tromey <tromey@redhat.com>
8983
8984 PR c++/15246:
8985 * c-exp.y (type_aggregate_p): New function.
8986 (qualified_name, classify_inner_name): Use it.
8987 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8988 and TYPE_TARGET_TYPE of an enum type.
8989 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8990 an enum type.
8991 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8992 handle TYPE_DECLARED_CLASS.
8993 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8994 types.
8995 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8996 * valops.c (enum_constant_from_type): New function.
8997 (value_aggregate_elt): Use it.
8998 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8999 TYPE_CODE_ENUM.
9000
9001 2014-04-14 Tom Tromey <tromey@redhat.com>
9002
9003 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9004 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9005 const.
9006 * value.h (value_aggregate_elt): Update.
9007
9008 2014-04-14 Tom Tromey <tromey@redhat.com>
9009
9010 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9011
9012 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9013
9014 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9015 (evaluate_subexp_standard): Pass noside argument.
9016 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9017 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9018 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9019 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9020 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9021
9022 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9023
9024 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9025 points to a constant blob.
9026
9027 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9028
9029 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9030 property and store it as the high bound and flag the range accordingly.
9031 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9032 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9033 * gdbtypes.h (enum range_flags): New enum.
9034 (struct range_bounds): Add flags member.
9035
9036 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9037
9038 * c-typeprint.c (c_type_print_varspec_suffix): Added
9039 check for not yet resolved high bound. If unresolved, print
9040 "variable length" string to the console instead of random
9041 length.
9042
9043 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9044
9045 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9046 value.
9047 (ada_template_to_fixed_record_type_1): Likewise.
9048 (ada_to_fixed_type_1): Likewise.
9049 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9050 (cp_print_value): Likewise.
9051 * d-valprint.c (dynamic_array_type): Likewise.
9052 * findvar.c (address_of_variable): Likewise.
9053 * jv-valprint.c (java_value_print): Likewise.
9054 * valops.c (value_ind): Likewise.
9055 * value.c (coerce_ref): Likewise.
9056
9057 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9058
9059 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9060 value and retrieve the dynamic type size.
9061
9062 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9063
9064 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9065 passed to sizeof is dynamic evaluate the argument to compute the length.
9066
9067 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
9068 Joel Brobecker <brobecker@adacore.com>
9069
9070 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9071 (dwarf2_evaluate_property): New function.
9072 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9073 * dwarf2read.c (attr_to_dynamic_prop): New function.
9074 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9075 attribute.
9076 * gdbtypes.c: Include dwarf2loc.h.
9077 (is_dynamic_type): New function.
9078 (resolve_dynamic_type): New function.
9079 (resolve_dynamic_bounds): New function.
9080 (get_type_length): New function.
9081 (check_typedef): Use get_type_length to compute type length.
9082 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9083 (TYPE_LOW_BOUND_KIND): New macro.
9084 (is_dynamic_type): New function prototype.
9085 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9086 to resolve dynamic properties of the type. Update comment.
9087 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9088
9089 2014-04-14 Richard Henderson <rth@redhat.com>
9090
9091 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9092
9093 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
9094 Doug Evans <xdje42@gmail.com>
9095
9096 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9097 dereference TYPE_CODE_REF values.
9098
9099 2014-04-11 Joel Brobecker <brobecker@adacore.com>
9100
9101 Revert the following changes due to regressions:
9102
9103 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9104 (dwarf2_evaluate_property): New function.
9105 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9106 * dwarf2read.c (attr_to_dynamic_prop): New function.
9107 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9108 attribute.
9109 * gdbtypes.c: Include dwarf2loc.h.
9110 (is_dynamic_type): New function.
9111 (resolve_dynamic_type): New function.
9112 (resolve_dynamic_bounds): New function.
9113 (get_type_length): New function.
9114 (check_typedef): Use get_type_length to compute type length.
9115 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9116 (TYPE_LOW_BOUND_KIND): New macro.
9117 (is_dynamic_type): New function prototype.
9118 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9119 to resolve dynamic properties of the type. Update comment.
9120 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9121
9122 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9123 passed to sizeof is dynamic evaluate the argument to compute the length.
9124
9125 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9126 value and retrieve the dynamic type size.
9127
9128 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9129 (ada_template_to_fixed_record_type_1): Likewise.
9130 (ada_to_fixed_type_1): Likewise.
9131 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9132 (cp_print_value): Likewise.
9133 * d-valprint.c (dynamic_array_type): Likewise.
9134 * eval.c (evaluate_subexp_with_coercion): Likewise.
9135 * findvar.c (address_of_variable): Likewise.
9136 * jv-valprint.c (java_value_print): Likewise.
9137 * valops.c (value_ind): Likewise.
9138 * value.c (coerce_ref): Likewise.
9139
9140 * c-typeprint.c (c_type_print_varspec_suffix): Added
9141 check for not yet resolved high bound. If unresolved, print
9142 "variable length" string to the console instead of random
9143 length.
9144
9145 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9146 property and store it as the high bound and flag the range accordingly.
9147 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9148 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9149 * gdbtypes.h (enum range_flags): New enum.
9150 (struct range_bounds): Add flags member.
9151
9152 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9153 points to a constant blob.
9154
9155 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9156 (evaluate_subexp_standard): Pass noside argument.
9157 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9158 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9159 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9160 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9161 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9162
9163 2014-04-11 Keith Seitz <keiths@redhat.com>
9164
9165 PR c++/16675
9166 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9167 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9168 reference types.
9169
9170 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9171
9172 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9173 (evaluate_subexp_standard): Pass noside argument.
9174 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9175 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9176 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9177 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9178 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9179
9180 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9181
9182 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9183 points to a constant blob.
9184
9185 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9186
9187 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9188 property and store it as the high bound and flag the range accordingly.
9189 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9190 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9191 * gdbtypes.h (enum range_flags): New enum.
9192 (struct range_bounds): Add flags member.
9193
9194 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9195
9196 * c-typeprint.c (c_type_print_varspec_suffix): Added
9197 check for not yet resolved high bound. If unresolved, print
9198 "variable length" string to the console instead of random
9199 length.
9200
9201 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9202
9203 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9204 (ada_template_to_fixed_record_type_1): Likewise.
9205 (ada_to_fixed_type_1): Likewise.
9206 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9207 (cp_print_value): Likewise.
9208 * d-valprint.c (dynamic_array_type): Likewise.
9209 * eval.c (evaluate_subexp_with_coercion): Likewise.
9210 * findvar.c (address_of_variable): Likewise.
9211 * jv-valprint.c (java_value_print): Likewise.
9212 * valops.c (value_ind): Likewise.
9213 * value.c (coerce_ref): Likewise.
9214
9215 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9216
9217 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9218 value and retrieve the dynamic type size.
9219
9220 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9221
9222 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9223 passed to sizeof is dynamic evaluate the argument to compute the length.
9224
9225 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9226
9227 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9228 (dwarf2_evaluate_property): New function.
9229 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9230 * dwarf2read.c (attr_to_dynamic_prop): New function.
9231 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9232 attribute.
9233 * gdbtypes.c: Include dwarf2loc.h.
9234 (is_dynamic_type): New function.
9235 (resolve_dynamic_type): New function.
9236 (resolve_dynamic_bounds): New function.
9237 (get_type_length): New function.
9238 (check_typedef): Use get_type_length to compute type length.
9239 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9240 (TYPE_LOW_BOUND_KIND): New macro.
9241 (is_dynamic_type): New function prototype.
9242 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9243 to resolve dynamic properties of the type. Update comment.
9244 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9245
9246 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9247
9248 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9249 declaring high/low bounds and change uses accordingly. Call
9250 create_range_type instead of create_static_range_type.
9251 * gdbtypes.c (create_range_type): New function.
9252 (create_range_type): Convert bounds into struct bound_prop and pass
9253 them to create_range_type.
9254 * gdbtypes.h (struct bound_prop): New struct.
9255 (create_range_type): New function prototype.
9256 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9257 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9258 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9259 part of the bound.
9260 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9261
9262 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
9263
9264 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9265 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9266 * ada-lang.c: All uses of create_range_type updated.
9267 * coffread.c: All uses of create_range_type updated.
9268 * dwarf2read.c: All uses of create_range_type updated.
9269 * f-exp.y: All uses of create_range_type updated.
9270 * m2-valprint.c: All uses of create_range_type updated.
9271 * mdebugread.c: All uses of create_range_type updated.
9272 * stabsread.c: All uses of create_range_type updated.
9273 * valops.c: All uses of create_range_type updated.
9274 * valprint.c: All uses of create_range_type updated.
9275
9276 2014-04-10 Pedro Alves <palves@redhat.com>
9277
9278 * breakpoint.c (single_step_breakpoints)
9279 (single_step_gdbarch): Move up in the file.
9280 (one_breakpoint_xfer_memory): New function, factored out from ...
9281 (breakpoint_xfer_memory): ... here. Also process single-step
9282 breakpoints.
9283
9284 2014-04-09 Tristan Gingold <gingold@adacore.com>
9285
9286 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9287 comments.
9288 (darwin_decode_exception_message): Free port only after use.
9289
9290 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
9291
9292 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9293 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9294 when setting the size of call_length.
9295
9296 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
9297
9298 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9299 dereference TYPE_CODE_REF values.
9300
9301 2014-04-07 Joel Brobecker <brobecker@adacore.com>
9302
9303 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9304 end of warning message.
9305
9306 2014-04-03 Doug Evans <dje@google.com>
9307
9308 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9309 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9310
9311 2014-04-02 Alan Modra <amodra@gmail.com>
9312
9313 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9314 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9315 (struct symbol_file_add_from_memory_args): Add size field.
9316 (find_vdso_size): New function.
9317 (add_vsyscall_page): Attempt to find vdso size.
9318
9319 2014-04-01 Doug Evans <dje@google.com>
9320
9321 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9322
9323 2014-04-01 Tristan Gingold <gingold@adacore.com>
9324
9325 * darwin-nat.c (darwin_encode_reply): Add prototype.
9326 (darwin_decode_exception_message): Reply to unknown inferiors.
9327 (darwin_decode_message): Handle message by id. Ignore message
9328 to unknown inferior.
9329 (darwin_wait): Discard unknown messages, add debug trace.
9330
9331 2014-03-31 Doug Evans <dje@google.com>
9332
9333 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9334 comp_dir_string.
9335
9336 2014-03-31 Doug Evans <dje@google.com>
9337
9338 New option "set print symbol-loading".
9339 * NEWS: Mention it.
9340 * solib.c (solib_read_symbols): Only print symbol loading messages
9341 if requested.
9342 (solib_add): If symbol loading is in "brief" mode, notify user
9343 symbols are being loaded.
9344 (reload_shared_libraries_1): Ditto.
9345 * symfile.c (print_symbol_loading_off): New static global.
9346 (print_symbol_loading_brief): New static global.
9347 (print_symbol_loading_full): New static global.
9348 (print_symbol_loading_enums): New static global.
9349 (print_symbol_loading): New static global.
9350 (print_symbol_loading_p): New function.
9351 (symbol_file_add_with_addrs): Only print symbol loading messages
9352 if requested.
9353 (_initialize_symfile): Register "print symbol-loading" set/show
9354 command.
9355 * symfile.h (print_symbol_loading_p): Declare.
9356
9357 2014-03-30 Doug Evans <xdje42@gmail.com>
9358
9359 * infrun.c (set_last_target_status): New function.
9360 (handle_inferior_event): Call it.
9361
9362 2014-03-30 Doug Evans <xdje42@gmail.com>
9363
9364 * inferior.h (enum stop_kind): Improve comment.
9365
9366 2014-03-28 Joel Brobecker <brobecker@adacore.com>
9367
9368 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9369 a reference, strip the reference layer before calling
9370 the lang_ops value_has_mutated callback.
9371
9372 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
9373
9374 Remove some globals from our parser.
9375 * language.c (unk_lang_parser): Add "struct parser_state"
9376 argument.
9377 * language.h (struct language_defn) <la_parser>: Likewise.
9378 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9379 (initialize_expout): Add "struct parser_state" argument.
9380 Rewrite function to use the parser state.
9381 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9382 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9383 write_exp_elt_longcst, write_exp_elt_dblcst,
9384 write_exp_elt_decfloatcst, write_exp_elt_type,
9385 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9386 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9387 write_dollar_variable): Likewise.
9388 (parse_exp_in_context_1): Use parser state.
9389 (insert_type_address_space): Add "struct parser_state" argument.
9390 Use parser state.
9391 (increase_expout_size): New function.
9392 * parser-defs.h: Forward declare "struct language_defn" and
9393 "struct parser_state".
9394 (expout, expout_size, expout_ptr): Remove extern declarations.
9395 (parse_gdbarch, parse_language): Rewrite macro declarations to
9396 accept the parser state.
9397 (struct parser_state): New struct.
9398 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9399 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9400 write_exp_elt_decfloatcst, write_exp_elt_type,
9401 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9402 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9403 write_exp_msymbol, write_dollar_variable,
9404 mark_struct_expression, insert_type_address_space): Add "struct
9405 parser_state" argument.
9406 (increase_expout_size): New function.
9407 * utils.c (do_clear_parser_state): New function.
9408 (make_cleanup_clear_parser_state): Likewise.
9409 * utils.h (make_cleanup_clear_parser_state): New function
9410 prototype.
9411 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9412 Update calls to write_exp* in order to pass the parser state.
9413 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9414 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9415 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9416 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9417 * stap-probe.c (stap_parse_register_operand): Likewise.
9418 (stap_parse_single_operand): Likewise.
9419 (stap_parse_argument_1): Likewise.
9420 (stap_parse_argument): Use parser state.
9421 * stap-probe.h: Include "parser-defs.h".
9422 (struct stap_parse_info) <pstate>: New field.
9423 * c-exp.y (parse_type): Rewrite to use parser state.
9424 (yyparse): Redefine to c_parse_internal.
9425 (pstate): New global variable.
9426 (parse_number): Add "struct parser_state" argument.
9427 (write_destructor_name): Likewise.
9428 (type_exp): Update calls to write_exp* and similars in order to
9429 use parser state.
9430 (exp1, exp, variable, qualified_name, space_identifier,
9431 typename, typebase): Likewise.
9432 (write_destructor_name, parse_number, lex_one_token,
9433 classify_name, classify_inner_name, c_parse): Add "struct
9434 parser_state" argument. Update function to use parser state.
9435 * c-lang.h: Forward declare "struct parser_state".
9436 (c_parse): Add "struct parser_state" argument.
9437 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9438 (yyparse): Redefine macro to ada_parse_internal.
9439 (pstate): New variable.
9440 (write_int, write_object_renaming, write_var_or_type,
9441 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9442 type_int, type_long, type_long_long, type_float, type_double,
9443 type_long_double, type_char, type_boolean, type_system_address):
9444 Add "struct parser_state" argument.
9445 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9446 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9447 var_or_type, aggregate, aggregate_component_list,
9448 positional_list, others, component_group,
9449 component_associations): Update calls to write_exp* and similar
9450 functions in order to use parser state.
9451 (ada_parse, write_var_from_sym, write_int,
9452 write_exp_op_with_string, write_object_renaming,
9453 find_primitive_type, write_selectors, write_ambiguous_var,
9454 write_var_or_type, write_name_assoc, type_int, type_long,
9455 type_long_long, type_float, type_double, type_long_double,
9456 type_char, type_boolean, type_system_address): Add "struct
9457 parser_state" argument. Adjust function to use parser state.
9458 * ada-lang.c (parse): Likewise.
9459 * ada-lang.h: Forward declare "struct parser_state".
9460 (ada_parse): Add "struct parser_state" argument.
9461 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9462 calls to both functions.
9463 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9464 parser state.
9465 (yyparse): Redefine macro to f_parse_internal.
9466 (pstate): New variable.
9467 (parse_number): Add "struct parser_state" argument.
9468 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9469 and similars in order to use parser state.
9470 (parse_number): Adjust code to use parser state.
9471 (yylex): Likewise.
9472 (f_parse): New function.
9473 * f-lang.h: Forward declare "struct parser_state".
9474 (f_parse): Add "struct parser_state" argument.
9475 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9476 parser state.
9477 (yyparse): Redefine macro for java_parse_internal.
9478 (pstate): New variable.
9479 (push_expression_name, push_expression_name, insert_exp): Add
9480 "struct parser_state" argument.
9481 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9482 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9483 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9484 PostIncrementExpression, PostDecrementExpression,
9485 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9486 UnaryExpressionNotPlusMinus, CastExpression,
9487 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9488 RelationalExpression, EqualityExpression, AndExpression,
9489 ExclusiveOrExpression, InclusiveOrExpression,
9490 ConditionalAndExpression, ConditionalOrExpression,
9491 ConditionalExpression, Assignment, LeftHandSide): Update
9492 calls to write_exp* and similars in order to use parser state.
9493 (parse_number): Ajust code to use parser state.
9494 (yylex): Likewise.
9495 (java_parse): New function.
9496 (push_variable): Add "struct parser_state" argument. Adjust
9497 code to user parser state.
9498 (push_fieldnames, push_qualified_expression_name,
9499 push_expression_name, insert_exp): Likewise.
9500 * jv-lang.h: Forward declare "struct parser_state".
9501 (java_parse): Add "struct parser_state" argument.
9502 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9503 parser state.
9504 (yyparse): Redefine macro to m2_parse_internal.
9505 (pstate): New variable.
9506 (type_exp, exp, fblock, variable, type): Update calls to
9507 write_exp* and similars to use parser state.
9508 (yylex): Likewise.
9509 (m2_parse): New function.
9510 * m2-lang.h: Forward declare "struct parser_state".
9511 (m2_parse): Add "struct parser_state" argument.
9512 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9513 * objc-lang.h: Forward declare "struct parser_state".
9514 (end_msglist): Add "struct parser_state" argument.
9515 * p-exp.y (parse_type): Rewrite macro to use parser state.
9516 (yyparse): Redefine macro to pascal_parse_internal.
9517 (pstate): New variable.
9518 (parse_number): Add "struct parser_state" argument.
9519 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9520 write_exp* and similars in order to use parser state.
9521 (parse_number, yylex): Adjust code to use parser state.
9522 (pascal_parse): New function.
9523 * p-lang.h: Forward declare "struct parser_state".
9524 (pascal_parse): Add "struct parser_state" argument.
9525 * go-exp.y (parse_type): Rewrite macro to use parser state.
9526 (yyparse): Redefine macro to go_parse_internal.
9527 (pstate): New variable.
9528 (parse_number): Add "struct parser_state" argument.
9529 (type_exp, exp1, exp, variable, type): Update calls to
9530 write_exp* and similars in order to use parser state.
9531 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9532 to use parser state.
9533 (go_parse): Likewise.
9534 * go-lang.h: Forward declare "struct parser_state".
9535 (go_parse): Add "struct parser_state" argument.
9536
9537 2014-03-27 Doug Evans <dje@google.com>
9538
9539 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9540
9541 2014-03-27 Doug Evans <dje@google.com>
9542
9543 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9544 Remove argument abbrev_section. All callers updated.
9545
9546 2014-03-27 Doug Evans <dje@google.com>
9547
9548 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9549 addr_base, ranges_base.
9550
9551 2014-03-26 Keith Seitz <keiths@redhat.com>
9552
9553 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9554 types, not VAR_DOMAIN.
9555
9556 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
9557
9558 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9559 "ra" registers.
9560 * features/nios2-linux.c: Regenerated.
9561 * features/nios2.c: Regenerated.
9562
9563 2014-03-25 Pedro Alves <palves@redhat.com>
9564
9565 * cli/cli-script.c (script_from_file): Force the interpreter to
9566 sync mode.
9567
9568 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9569
9570 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9571 small stack allocation.
9572
9573 2014-03-24 Tristan Gingold <gingold@adacore.com>
9574
9575 * darwin-nat.c (exc_server): Remove unused prototype.
9576 (darwin_dump_message): Correctly display data on x86_64.
9577 (darwin_encode_reply): Fix style.
9578 Add comments and fix indentation.
9579
9580 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
9581
9582 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9583
9584 2014-03-22 Doug Evans <xdje42@gmail.com>
9585
9586 * infcmd.c: Whitespace fixes.
9587 (interrupt_command): Merge two function comments into one.
9588
9589 2014-03-22 Doug Evans <xdje42@gmail.com>
9590
9591 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9592 All uses updated.
9593
9594 2014-03-22 Yao Qi <yao@codesourcery.com>
9595
9596 * remote.c (target_read_live_memory): Remove.
9597 (memory_xfer_live_readonly_partial): Rename it to
9598 remote_xfer_live_readonly_partial. Remove argument 'object'.
9599 All callers updated. Call remote_read_bytes_1
9600 instead of target_read_live_memory.
9601 * tracepoint.c (set_traceframe_number): Remove.
9602 (make_cleanup_restore_traceframe_number): Likewise .
9603 * tracepoint.h (set_traceframe_number): Remove declaration.
9604 (make_cleanup_restore_traceframe_number): Likewise.
9605
9606 2014-03-22 Yao Qi <yao@codesourcery.com>
9607
9608 * remote.c (remote_read_bytes): Move code on reading from the
9609 remote stub to ...
9610 (remote_read_bytes_1): ... here. New function.
9611
9612 2014-03-22 Yao Qi <yao@codesourcery.com>
9613
9614 * ctf.c (ctf_xfer_partial): Check the return value of
9615 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9616 return TARGET_XFER_UNAVAILABLE.
9617 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9618 * target.c (target_read_live_memory): Move it to remote.c.
9619 (memory_xfer_live_readonly_partial): Likewise.
9620 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9621 * remote.c (target_read_live_memory): Moved from target.c.
9622 (memory_xfer_live_readonly_partial): Likewise.
9623 (remote_read_bytes): Factored out from
9624 memory_xfer_partial_1.
9625
9626 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
9627
9628 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9629 NULL pointer.
9630
9631 2014-03-21 Pedro Alves <palves@redhat.com>
9632
9633 * infrun.c (normal_stop): Extend comment.
9634
9635 2014-03-21 Hui Zhu <hui@codesourcery.com>
9636 Pedro Alves <palves@redhat.com>
9637
9638 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9639 static buffer.
9640 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9641 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9642 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9643
9644 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
9645
9646 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9647 `z' formatted output modifier.
9648
9649 2014-03-20 Tom Tromey <tromey@redhat.com>
9650 Sergio Durigan Junior <sergiodj@redhat.com>
9651
9652 * probe.c (parse_probes): Turn assert into an ordinary error.
9653 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9654 exceptions when parsing probes. Rearrange the code for clarity.
9655
9656 2014-03-20 Tom Tromey <tromey@redhat.com>
9657
9658 PR gdb/14135
9659 * top.c (execute_command): Only dispatch events if the command
9660 started the target.
9661
9662 2014-03-20 Tom Tromey <tromey@redhat.com>
9663
9664 PR cli/15718
9665 * infcall.c: Include event-top.h.
9666 (run_inferior_call): Call async_disable_stdin if needed.
9667
9668 2014-03-20 Pedro Alves <palves@redhat.com>
9669
9670 * infrun.c (prepare_to_proceed): Delete.
9671 (thread_still_needs_step_over): New function.
9672 (find_thread_needs_step_over): New function.
9673 (proceed): If the current thread needs a step-over, set its
9674 steping_over_breakpoint flag. Adjust to use
9675 find_thread_needs_step_over instead of prepare_to_proceed.
9676 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9677 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9678 breakpoint.
9679 (switch_back_to_stepped_thread): Step over breakpoints of all
9680 threads not the stepping thread, before switching back to the
9681 stepping thread.
9682
9683 2014-03-20 Pedro Alves <palves@redhat.com>
9684
9685 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9686 extern.
9687 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9688 * infrun.c (saved_singlestep_ptid)
9689 (stepping_past_singlestep_breakpoint): Delete.
9690 (resume): Remove stepping_past_singlestep_breakpoint handling.
9691 (proceed): Store the prev_pc of the stepping thread too.
9692 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9693 singlestep_pc.
9694 (enum infwait_states): Delete infwait_thread_hop_state.
9695 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9696 field.
9697 (handle_inferior_event): Adjust.
9698 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9699 handling and the thread-hop code. Before removing single-step
9700 breakpoints, check whether the thread hit a single-step breakpoint
9701 of another thread. If it did, the trap is not a random signal.
9702 (switch_back_to_stepped_thread): If the event thread hit a
9703 single-step breakpoint, unblock it before switching to the
9704 stepping thread. Handle the case of the stepped thread having
9705 advanced already.
9706 (keep_going): Handle the case of the current thread moving past a
9707 single-step breakpoint.
9708
9709 2014-03-20 Pedro Alves <palves@redhat.com>
9710
9711 PR breakpoints/7143
9712 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9713 are being stepped over.
9714 (breakpoint_address_match): Make extern.
9715 * breakpoint.h (breakpoint_address_match): New declaration.
9716 * inferior.h (stepping_past_instruction_at): New declaration.
9717 * infrun.c (struct step_over_info): New type.
9718 (step_over_info): New global.
9719 (set_step_over_info, clear_step_over_info)
9720 (stepping_past_instruction_at): New functions.
9721 (handle_inferior_event): Clear the step-over info when
9722 trap_expected is cleared.
9723 (resume): Remove now stale comment.
9724 (clear_proceed_status): Clear step-over info.
9725 (proceed): Adjust step-over handling to set or clear the step-over
9726 info instead of removing all breakpoints.
9727 (handle_signal_stop): When setting up a thread-hop, don't remove
9728 breakpoints here.
9729 (stop_stepping): Clear step-over info.
9730 (keep_going): Adjust step-over handling to set or clear step-over
9731 info and then always inserting breakpoints, instead of removing
9732 all breakpoints when stepping over one.
9733
9734 2014-03-20 Pedro Alves <palves@redhat.com>
9735
9736 * infrun.c (previous_inferior_ptid): Adjust comment.
9737 (deferred_step_ptid): Delete.
9738 (infrun_thread_ptid_changed, prepare_to_proceed)
9739 (init_wait_for_inferior): Adjust.
9740 (handle_signal_stop): Delete deferred_step_ptid handling.
9741
9742 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9743
9744 PR gdb/15358
9745 * defs.h (sync_quit_force_run): New declaration.
9746 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9747 * event-top.c (async_sigterm_handler): New declaration.
9748 (async_sigterm_token): New variable.
9749 (async_init_signals): Create also async_sigterm_token.
9750 (async_sigterm_handler): New function.
9751 (sync_quit_force_run): New variable.
9752 (handle_sigterm): Replace quit_force call by other calls.
9753 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9754
9755 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
9756
9757 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9758 offset into SPE pseudo registers.
9759
9760 2014-03-18 Pedro Alves <palves@redhat.com>
9761
9762 PR gdb/13860
9763 * inferior.h (print_stop_event): Declare.
9764 * infrun.c (print_stop_event): New, factored out from ...
9765 (normal_stop): ... this.
9766 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9767 of bpstat_print/print_stack_frame.
9768
9769 2014-03-17 Tom Tromey <tromey@redhat.com>
9770
9771 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9772
9773 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
9774
9775 * ada-lang.c (decode_constrained_packed_array): Perform a
9776 minimal coercion for reference with coerce_ref instead of
9777 ada_coerce_ref.
9778
9779 2014-03-17 Tristan Gingold <gingold@adacore.com>
9780
9781 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9782 (darwin_solib_create_inferior_hook): Emit a warning if version
9783 is unhandled.
9784
9785 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
9786
9787 * python/py-value.c (get_field_flag): Cast flag_name argument to
9788 PyObject_GetAttrString to support Python 2.4.
9789
9790 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9791
9792 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9793 (Global Maintainers): Remove Jan Kratochvil.
9794
9795 2014-03-14 Pedro Alves <palves@redhat.com>
9796
9797 * inferior.h (terminal_ours_for_output): Rename to ...
9798 (child_terminal_ours_for_output): ... this.
9799 (terminal_save_ours): Rename to ...
9800 (child_terminal_save_ours): ... this.
9801 (terminal_ours): Rename to ...
9802 (child_terminal_ours): ... this.
9803 (terminal_inferior): Rename to ...
9804 (child_terminal_inferior): ... this.
9805 (terminal_init_inferior): Rename to ...
9806 (child_terminal_init_inferior): ... this.
9807 (terminal_init_inferior_with_pgrp): Rename to ...
9808 (child_terminal_init_inferior_with_pgrp): ... this.
9809 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9810 (child_terminal_init_with_pgrp): ... this.
9811 (terminal_save_ours): Rename to ...
9812 (child_terminal_save_ours): ... this.
9813 (terminal_init_inferior): Rename to ...
9814 (child_terminal_init): ... this. Adjust.
9815 (terminal_inferior): Rename to ...
9816 (child_terminal_inferior): ... this.
9817 (terminal_ours_for_output): Rename to ...
9818 (child_terminal_ours_for_output): ... this. Adjust.
9819 (terminal_ours): Rename to ...
9820 (child_terminal_ours): ... this.
9821 (terminal_ours_1): Rename to ...
9822 (child_terminal_ours_1): ... this. Adjust.
9823 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9824 * windows-nat.c (do_initial_windows_stuff): Adjust.
9825 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9826 (gnu_terminal_init): ... this. Adjust.
9827 (gnu_target): Adjust.
9828 * inf-child.c (inf_child_target): Adjust.
9829
9830 2014-03-13 Doug Evans <xdje42@gmail.com>
9831
9832 PR guile/16612
9833 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9834 new eq?-hashtab.
9835
9836 2014-03-13 Doug Evans <xdje42@gmail.com>
9837
9838 * value.c (record_latest_value): Call release_value_or_incref
9839 instead of release_value.
9840
9841 2014-03-13 Pedro Alves <palves@redhat.com>
9842
9843 * procfs.c (procfs_target): Don't override to_shortname,
9844 to_longname or to_doc.
9845
9846 2014-03-13 Pedro Alves <palves@redhat.com>
9847
9848 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9849 Unix in user visible strings.
9850
9851 2014-03-12 Stan Shebs <stan@codesourcery.com>
9852
9853 * gdbtypes.h: Annotate comments for Doxygen, add a page
9854 block comment with some general info.
9855
9856 2014-03-12 Pedro Alves <palves@redhat.com>
9857
9858 * infcmd.c (prepare_execution_command): New function, factored out
9859 from several execution commands.
9860 (run_command_1, continue_command, step_1, jump_command)
9861 (signal_command, until_command, advance_command, finish_command)
9862 (attach_command): Use prepare_execution_command.
9863
9864 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
9865
9866 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9867 (MAX_BPTS): Define.
9868 (MAX_WPTS): Define.
9869 (struct arm_linux_thread_points): Removed.
9870 (struct arm_linux_process_info): New.
9871 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9872 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9873 (arm_linux_find_breakpoints_by_tid): Removed.
9874 (struct arch_lwp_info): New.
9875 (arm_linux_find_process_pid): New functions.
9876 (arm_linux_add_process): New functions.
9877 (arm_linux_process_info_get): New functions.
9878 (arm_linux_forget_process): New function.
9879 (arm_linux_get_debug_reg_state): New function.
9880 (struct update_registers_data): New.
9881 (update_registers_callback): New function.
9882 (arm_linux_insert_hw_breakpoint1): Updated.
9883 (arm_linux_remove_hw_breakpoint1): Updated.
9884 (arm_linux_insert_hw_breakpoint): Updated.
9885 (arm_linux_remove_hw_breakpoint): Updated.
9886 (arm_linux_insert_watchpoint): Updated.
9887 (arm_linux_remove_watchpoint): Updated.
9888 (arm_linux_new_thread): Updated.
9889 (arm_linux_prepare_to_resume): New function.
9890 (arm_linux_new_fork): New function.
9891 (_initialize_arm_linux_nat): Updated.
9892
9893 2014-03-12 Pedro Alves <palves@redhat.com>
9894
9895 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9896
9897 2014-03-12 Tom Tromey <tromey@redhat.com>
9898
9899 * inf-child.c (return_zero): New function.
9900 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9901 * aix-thread.c (aix_thread_inferior_created): New function.
9902 (aix_thread_attach): Remove.
9903 (init_aix_thread_ops): Don't set to_attach.
9904 (_initialize_aix_thread): Register inferior_created observer.
9905 * corelow.c (init_core_ops): Don't set to_attach or
9906 to_create_inferior.
9907 * exec.c (init_exec_ops): Don't set to_attach or
9908 to_create_inferior.
9909 * infcmd.c (run_command_1): Use find_run_target. Make direct
9910 target calls.
9911 (attach_command): Use find_attach_target. Make direct target
9912 calls.
9913 * record-btrace.c (init_record_btrace_ops): Don't set
9914 to_create_inferior.
9915 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9916 Remove.
9917 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9918 set to_create_inferior.
9919 * target.c (complete_target_initialization): Add assertion.
9920 (target_create_inferior): Remove.
9921 (find_default_attach, find_default_create_inferior): Remove.
9922 (find_attach_target, find_run_target): New functions.
9923 (find_default_is_async_p, find_default_can_async_p)
9924 (target_supports_non_stop, target_attach): Remove.
9925 (init_dummy_target): Don't set to_create_inferior or
9926 to_supports_non_stop.
9927 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9928 TARGET_DEFAULT_FUNC.
9929 <to_create_inferior>: Add comment.
9930 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9931 TARGET_DEFAULT_RETURN.
9932 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9933 (find_attach_target, find_run_target): Declare.
9934 (target_create_inferior): Remove.
9935 (target_has_execution_1): Update comment.
9936 (target_supports_non_stop): Remove.
9937 * target-delegates.c: Rebuild.
9938
9939 2014-03-12 Pedro Alves <palves@redhat.com>
9940
9941 * inf-child.h: Update comment to not mention Unix.
9942
9943 2014-03-12 Pedro Alves <palves@redhat.com>
9944
9945 * inf-child.c: Update top comment to not mention Unix. Add
9946 generic comment describing how this target is meant to be used.
9947 (inf_child_post_attach, inf_child_post_startup_inferior)
9948 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9949 Unix in comment.
9950
9951 2014-03-12 Pedro Alves <palves@redhat.com>
9952
9953 * nto-procfs.c: Include inf-child.h.
9954 (procfs_ops): Delete global.
9955 (procfs_can_run): Delete method.
9956 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9957 target pointer instead of referencing procfs_ops.
9958 (procfs_prepare_to_store): Delete.
9959 (init_procfs_ops): Delete function.
9960 (procfs_target): New function, based on init_procfs_ops, but
9961 inherit inf_child_target.
9962 (_initialize_procfs): Use procfs_target.
9963
9964 2014-03-12 Pedro Alves <palves@redhat.com>
9965
9966 * windows-nat.c: Include inf-child.h.
9967 (windows_ops): Delete global.
9968 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9969 methods.
9970 (init_windows_ops): Delete function.
9971 (windows_target): New function, based on init_windows_ops, but
9972 inherit inf_child_target.
9973 (_initialize_windows_nat): Use windows_target. Install x86
9974 specific target methods here.
9975
9976 2014-03-10 Doug Evans <xdje42@gmail.com>
9977
9978 * guile/guile.c (call_initialize_gdb_module): New function.
9979 (initialize_guile): Replace call to scm_init_guile with call to
9980 scm_with_guile.
9981
9982 2014-03-10 Joel Brobecker <brobecker@adacore.com>
9983
9984 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9985 in call to TYPE_CODE macro.
9986
9987 2014-03-10 Jerome Guitton <guitton@adacore.com>
9988
9989 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9990 Resolve tagged types to full view.
9991
9992 2014-03-10 Hui Zhu <hui@codesourcery.com>
9993
9994 * target.h (target_insert_breakpoint): Remove "hardware" from its
9995 comments.
9996
9997 2014-03-07 Doug Evans <dje@google.com>
9998
9999 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10000
10001 2014-03-07 Doug Evans <dje@google.com>
10002
10003 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10004 Remove unused local comp_dir_attr. Assert exactly one of
10005 stub_comp_unit_die, stub_comp_dir is non-NULL.
10006
10007 2014-03-07 Joel Brobecker <brobecker@adacore.com>
10008
10009 * target.h (complete_target_initialization, add_target):
10010 Add comment.
10011
10012 2014-03-07 Pedro Alves <palves@redhat.com>
10013
10014 * go32-nat.c: Include inf-child.h.
10015 (go32_ops): Delete global.
10016 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10017 Delete methods.
10018 (go32_create_inferior): Push the passed in target pointer instead
10019 of referencing go32_ops.
10020 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
10021 (go32_target): New function, based on init_go32_ops, but inherit
10022 inf_child_target.
10023 (_initialize_go32_nat): Use go32_target. Move parts of
10024 init_go32_ops here.
10025
10026 2014-03-06 Joel Brobecker <brobecker@adacore.com>
10027
10028 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10029 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10030 SYMBOL_VALUE_ADDRESS.
10031 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10032
10033 2014-03-06 Yao Qi <yao@codesourcery.com>
10034
10035 * breakpoint.c (get_tracepoint_by_number): Remove argument
10036 optional_p. All callers updated. Adjust comments. Update
10037 output message.
10038 * breakpoint.h (get_tracepoint_by_number): Update declaration.
10039
10040 2014-03-06 Yao Qi <yao@codesourcery.com>
10041
10042 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
10043 early if get_number returns zero. Use 'p' instead of 'args'.
10044
10045 2014-03-06 Yao Qi <yao@codesourcery.com>
10046
10047 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10048 message.
10049
10050 2014-03-06 Yao Qi <yao@codesourcery.com>
10051
10052 PR breakpoints/16508
10053 * tracepoint.c (check_trace_running): New function.
10054 (trace_find_command): Move code to check_trace_running and
10055 call check_trace_running.
10056 (trace_find_pc_command): Likewise.
10057 (trace_find_tracepoint_command): Likewise.
10058 (trace_find_line_command): Likewise.
10059 (trace_find_range_command): Likewise.
10060 * tracepoint.h (check_trace_running): Likewise.
10061 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10062
10063 2014-03-06 Yao Qi <yao@codesourcery.com>
10064
10065 * target.h (struct target_ops) <to_traceframe_info>: Use
10066 TARGET_DEFAULT_NORETURN (tcomplain ()).
10067 * target-delegates.c: Regenerated.
10068
10069 2014-03-05 Pedro Alves <palves@redhat.com>
10070
10071 PR gdb/16575
10072 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
10073 void. Update comment.
10074 (dcache_xfer_memory): Delete.
10075 (dcache_read_memory_partial): New, based on the read bits of
10076 dcache_xfer_memory.
10077 (dcache_update): Add status parameter. Use ULONGEST for len, and
10078 adjust. Discard cache lines if the reason for the update was
10079 error.
10080 * dcache.h (dcache_xfer_memory): Delete declaration.
10081 (dcache_read_memory_partial): New declaration.
10082 (dcache_update): Update prototype.
10083 * target.c (raw_memory_xfer_partial): Update the dcache here.
10084 (memory_xfer_partial_1): Don't handle dcache writes here.
10085
10086 2014-03-05 Mike Frysinger <vapier@gentoo.org>
10087
10088 * remote-sim.c (gdbsim_load): Add const to prog.
10089
10090 2014-03-03 Tom Tromey <tromey@redhat.com>
10091
10092 * elfread.c (probe_key): Change to bfd_data.
10093 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10094 now per-BFD, not per-objfile.
10095 * stap-probe.c (stap_probe_destroy): Update comment.
10096 (handle_stap_probe): Allocate on the per-BFD obstack.
10097
10098 2014-03-03 Tom Tromey <tromey@redhat.com>
10099
10100 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10101 * breakpoint.c (create_longjmp_master_breakpoint): Use
10102 get_probe_address.
10103 (add_location_to_breakpoint, bkpt_probe_insert_location)
10104 (bkpt_probe_remove_location): Update.
10105 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10106 * elfread.c (elf_symfile_relocate_probe): Remove.
10107 (elf_probe_fns): Update.
10108 (insert_exception_resume_breakpoint): Change type of "probe"
10109 parameter to bound_probe.
10110 (check_exception_resume): Update.
10111 * objfiles.c (objfile_relocate1): Don't relocate probes.
10112 * probe.c (bound_probe_s): New typedef.
10113 (parse_probes): Use get_probe_address. Set sal's objfile.
10114 (find_probe_by_pc): Return a bound_probe.
10115 (collect_probes): Return a VEC(bound_probe_s).
10116 (compare_probes): Update.
10117 (gen_ui_out_table_header_info): Change type of "probes"
10118 parameter. Update.
10119 (info_probes_for_ops): Update.
10120 (get_probe_address): New function.
10121 (probe_safe_evaluate_at_pc): Update.
10122 * probe.h (struct probe_ops) <get_probe_address>: New field.
10123 <set_semaphore, clear_semaphore>: Add objfile parameter.
10124 (struct probe) <objfile>: Remove field.
10125 <arch>: New field.
10126 <address>: Update comment.
10127 (struct bound_probe): New.
10128 (find_probe_by_pc): Return a bound_probe.
10129 (get_probe_address): Declare.
10130 * solib-svr4.c (struct probe_and_action) <address>: New field.
10131 (hash_probe_and_action, equal_probe_and_action): Update.
10132 (register_solib_event_probe): Add address parameter.
10133 (solib_event_probe_at): Update.
10134 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10135 get_probe_address.
10136 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10137 (stap_get_probe_address): New function.
10138 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10139 (compile_probe_arg): Update.
10140 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10141 address.
10142 (handle_stap_probe): Don't relocate the probe.
10143 (stap_relocate): Remove.
10144 (stap_gen_info_probes_table_values): Update.
10145 (stap_probe_ops): Remove stap_relocate.
10146 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10147 (debug_sym_probe_fns): Update.
10148 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10149 * symtab.c (init_sal): Use memset.
10150 * symtab.h (struct symtab_and_line) <objfile>: New field.
10151 * tracepoint.c (start_tracing, stop_tracing): Update.
10152
10153 2014-03-03 Tom Tromey <tromey@redhat.com>
10154
10155 * probe.h (parse_probes, find_probe_by_pc)
10156 (find_probes_in_objfile): Fix comments.
10157
10158 2014-03-02 Doug Evans <xdje42@gmail.com>
10159
10160 * infrun.c (handle_signal_stop): Replace test for
10161 TARGET_WAITKIND_STOPPED with an assert.
10162
10163 2014-03-02 Doug Evans <xdje42@gmail.com>
10164
10165 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10166
10167 2014-03-02 Doug Evans <xdje42@gmail.com>
10168
10169 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10170
10171 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10172
10173 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10174
10175 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10176
10177 * i386obsd-nat.c: Include "obsd-nat.h".
10178 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10179 add_target.
10180 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10181
10182 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10183
10184 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10185
10186 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10187
10188 * mips64obsd-nat.c: Include "obsd-nath".
10189 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10190 add_target
10191 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10192
10193 2014-03-01 Mark Kettenis <kettenis@gnu.org>
10194
10195 * amd64obsd-nat.c: Include "obsd-nat,h.
10196 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10197 add_target.
10198 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10199
10200 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
10201
10202 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10203 (find_overload_match): Update call to find_oload_champ.
10204 (find_oload_champ_namespace_loop): Likewise
10205
10206 2014-02-28 Mark Kettenis <kettenis@gnu.org>
10207
10208 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10209
10210 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10211 * config/sparc/obsd64.mh: New file.
10212 * sparc64obsd-nat.c: New file.
10213
10214 * obsd-nat.h: New file.
10215 * obsd-nat.c: New file.
10216 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10217 (ALLDEPFILES): Add obsd-nat.c.
10218
10219 2014-02-28 Tom Tromey <tromey@redhat.com>
10220
10221 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10222 * cli-out.h (cli_ui_out_impl): Now const.
10223 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10224 * ui-out.c (struct ui_out) <impl>: Now const.
10225 (default_ui_out_impl): Now const.
10226 (ui_out_new): Make 'impl' parameter const.
10227 * ui-out.h (ui_out_new): Update.
10228
10229 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10230
10231 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10232
10233 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10234
10235 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10236
10237 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10238
10239 Additional PR 8882 fix.
10240 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10241
10242 2014-02-27 Pedro Alves <palves@redhat.com>
10243
10244 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10245 isn't set.
10246
10247 2014-02-27 Pedro Alves <palves@redhat.com>
10248
10249 PR 12702
10250 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10251 * nat/linux-waitpid.c: Include string.h.
10252 (status_to_str): Moved here and made extern.
10253 * nat/linux-waitpid.h (status_to_str): New declaration.
10254
10255 2014-02-27 Hui Zhu <hui@codesourcery.com>
10256
10257 PR 12702
10258 * infrun.c (ptid_match): Move ...
10259 * common/ptid.c (ptid_match): ... here.
10260 * inferior.h (ptid_match): Move ...
10261 * common/ptid.h (ptid_match): ... here.
10262
10263 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10264
10265 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10266 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10267 gdb_target_obs.
10268
10269 2014-02-27 Mark Kettenis <kettenis@gnu.org>
10270
10271 * obsd-tdep.c (obsd_auxv_parse): New function.
10272 (obsd_init_abi): Set auxv_parse.
10273
10274 * gdbarch.sh (auxv_parse): New.
10275 * gdbarch.h: Regenerated.
10276 * gdbarch.c: Regenerated.
10277 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10278
10279 2014-02-26 Ludovic Courtès <ludo@gnu.org>
10280
10281 * guile/scm-value.c (gdbscm_history_append_x): New function.
10282 (value_functions): Add it.
10283
10284 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10285
10286 * dwarf2read.c (attr_value_as_address): New function.
10287 (dwarf2_find_base_address, read_call_site_scope): Use
10288 attr_value_as_address in place of DW_ADDR.
10289 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10290 the low and high addresses. Slight rework of the handling
10291 of the high pc being a constant form, and limit it to
10292 DWARF verson 4 or higher.
10293 (dwarf2_record_block_ranges): Likewise.
10294 (read_partial_die): Likewise.
10295 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10296
10297 2014-02-26 Tom Tromey <tromey@redhat.com>
10298
10299 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10300
10301 2014-02-26 Tom Tromey <tromey@redhat.com>
10302
10303 * elfread.c (elf_read_minimal_symbols): Return early if
10304 minimal symbols have already been read. Add "ei" parameter.
10305 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10306 * minsyms.c (prim_record_minimal_symbol_full): Update.
10307 * objfiles.h (struct objstats) <n_minsyms>: Move...
10308 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10309 * symmisc.c (print_objfile_statistics): Update.
10310
10311 2014-02-26 Tom Tromey <tromey@redhat.com>
10312
10313 * elfread.c (elf_read_minimal_symbols): New function, from
10314 elf_symfile_read.
10315 (elf_symfile_read): Call it.
10316
10317 2014-02-26 Tom Tromey <tromey@redhat.com>
10318
10319 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10320 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10321 (lookup_minimal_symbol_solib_trampoline)
10322 (lookup_minimal_symbol_by_pc_section_1)
10323 (lookup_minimal_symbol_and_objfile): Update.
10324 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10325 Don't allocate a minimal symbol if minsyms have already been read.
10326 (build_minimal_symbol_hash_tables): Update.
10327 (install_minimal_symbols): Do nothing if minsyms already read.
10328 Use the per-BFD obstack.
10329 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10330 * objfiles.c (allocate_objfile): Call
10331 terminate_minimal_symbol_table later.
10332 (have_minimal_symbols): Update.
10333 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10334 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10335 Move from struct objfile.
10336 <minsyms_read>: New field.
10337 (struct objfile) <msymbols, minimal_symbol_count,
10338 msymbol_hash, msymbol_demangled_hash>: Move.
10339 (ALL_OBJFILE_MSYMBOLS): Update.
10340 * symfile.c (read_symbols): Set minsyms_read.
10341 (reread_symbols): Update.
10342 * symmisc.c (dump_objfile, dump_msymbols): Update.
10343
10344 2014-02-26 Tom Tromey <tromey@redhat.com>
10345
10346 * minsyms.c (msymbols_sort): Remove.
10347 * minsyms.h (msymbols_sort): Remove.
10348 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10349 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10350 * elfread.c (elf_symtab_read): Don't add section offsets.
10351 * xcoffread.c (record_minimal_symbol): Don't add section offset
10352 to minimal symbol address.
10353 * somread.c (text_offset, data_offset): Remove.
10354 (som_symtab_read): Don't add section offsets to minimal symbol
10355 addresses.
10356 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10357 Don't add section offsets to minimal symbols.
10358 * coffread.c (coff_symtab_read): Don't add section offsets
10359 to minimal symbol addresses.
10360 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10361 to minimal symbol addresses.
10362 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10363 section offset to minimal symbol addresses.
10364 * mdebugread.c (parse_partial_symbols): Don't add section
10365 offset to minimal symbol addresses.
10366 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10367 offset to minimal symbol addresses.
10368
10369 2014-02-26 Tom Tromey <tromey@redhat.com>
10370
10371 * ada-lang.c (ada_main_name): Update.
10372 (ada_add_standard_exceptions): Update.
10373 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10374 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10375 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10376 * auxv.c (ld_so_xfer_auxv): Update.
10377 * avr-tdep.c (avr_scan_prologue): Update.
10378 * ax-gdb.c (gen_var_ref): Update.
10379 * blockframe.c (get_pc_function_start)
10380 (find_pc_partial_function_gnu_ifunc): Update.
10381 * breakpoint.c (create_overlay_event_breakpoint)
10382 (create_longjmp_master_breakpoint)
10383 (create_std_terminate_master_breakpoint)
10384 (create_exception_master_breakpoint): Update.
10385 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10386 * c-valprint.c (c_val_print): Update.
10387 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10388 * common/agent.c (agent_look_up_symbols): Update.
10389 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10390 * dwarf2loc.c (call_site_to_target_addr): Update.
10391 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10392 * elfread.c (elf_gnu_ifunc_record_cache)
10393 (elf_gnu_ifunc_resolve_by_got): Update.
10394 * findvar.c (default_read_var_value): Update.
10395 * frame.c (inside_main_func): Update.
10396 * frv-tdep.c (frv_frame_this_id): Update.
10397 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10398 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10399 Update.
10400 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10401 (hppa_hpux_find_dummy_bpaddr): Update.
10402 * hppa-tdep.c (hppa_symbol_address): Update.
10403 * infcmd.c (until_next_command): Update.
10404 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10405 Update.
10406 * linespec.c (minsym_found, add_minsym): Update.
10407 * linux-nat.c (get_signo): Update.
10408 * linux-thread-db.c (inferior_has_bug): Update.
10409 * m32c-tdep.c (m32c_return_value)
10410 (m32c_m16c_address_to_pointer): Update.
10411 * m32r-tdep.c (m32r_frame_this_id): Update.
10412 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10413 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10414 * maint.c (maintenance_translate_address): Update.
10415 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10416 (frob_address): New function.
10417 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10418 frob_address. Rename parameter to "pc_in".
10419 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10420 addresses.
10421 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10422 Update.
10423 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10424 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10425 * objc-lang.c (find_objc_msgsend): Update.
10426 * objfiles.c (objfile_relocate1): Update.
10427 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10428 * p-valprint.c (pascal_val_print): Update.
10429 * parse.c (write_exp_msymbol): Update.
10430 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10431 (ppc_elfv2_skip_entrypoint): Update.
10432 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10433 * printcmd.c (build_address_symbolic, msym_info)
10434 (address_info): Update.
10435 * proc-service.c (ps_pglobal_lookup): Update.
10436 * psymtab.c (find_pc_sect_psymtab_closer)
10437 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10438 Change msymbol parameter to bound_minimal_symbol.
10439 * ravenscar-thread.c (get_running_thread_id): Update.
10440 * remote.c (remote_check_symbols): Update.
10441 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10442 address.
10443 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10444 * solib-dsbt.c (lm_base): Update.
10445 * solib-frv.c (lm_base, main_got): Update.
10446 * solib-irix.c (locate_base): Update.
10447 * solib-som.c (som_solib_create_inferior_hook)
10448 (link_map_start): Update.
10449 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10450 * solib-svr4.c (elf_locate_base, enable_break): Update.
10451 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10452 (flush_ea_cache): Update.
10453 * stabsread.c (define_symbol, scan_file_globals): Update.
10454 * stack.c (find_frame_funname): Update.
10455 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10456 (debug_qf_find_pc_sect_symtab): Update.
10457 * symfile.c (simple_read_overlay_table)
10458 (simple_overlay_update): Update.
10459 * symfile.h (struct quick_symbol_functions)
10460 <find_pc_sect_symtab>: Change type of msymbol to
10461 bound_minimal_symbol.
10462 * symmisc.c (dump_msymbols): Update.
10463 * symtab.c (find_pc_sect_symtab_via_partial)
10464 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10465 (search_symbols, print_msymbol_info): Update.
10466 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10467 (MSYMBOL_VALUE_ADDRESS): Redefine.
10468 (BMSYMBOL_VALUE_ADDRESS): New macro.
10469 * tracepoint.c (scope_info): Update.
10470 * tui/tui-disasm.c (tui_find_disassembly_address)
10471 (tui_get_begin_asm_address): Update.
10472 * valops.c (find_function_in_inferior): Update.
10473 * value.c (value_static_field, value_fn_field): Update.
10474
10475 2014-02-26 Tom Tromey <tromey@redhat.com>
10476
10477 * ada-lang.c (ada_update_initial_language): Update.
10478 (ada_main_name, ada_has_this_exception_support): Update.
10479 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10480 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10481 * arm-tdep.c (arm_skip_stub): Update.
10482 * auxv.c (ld_so_xfer_auxv): Update.
10483 * avr-tdep.c (avr_scan_prologue): Update.
10484 * ax-gdb.c (gen_var_ref): Update.
10485 * breakpoint.c (struct breakpoint_objfile_data)
10486 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10487 type to bound_minimal_symbol.
10488 (create_overlay_event_breakpoint)
10489 (create_longjmp_master_breakpoint)
10490 (create_std_terminate_master_breakpoint)
10491 (create_exception_master_breakpoint): Update.
10492 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10493 * c-exp.y (classify_name): Update.
10494 * coffread.c (coff_symfile_read): Update.
10495 * common/agent.c (agent_look_up_symbols): Update.
10496 * d-lang.c (d_main_name): Update.
10497 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10498 * dec-thread.c (enable_dec_thread): Update.
10499 * dwarf2loc.c (call_site_to_target_addr): Update.
10500 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10501 * eval.c (evaluate_subexp_standard): Update.
10502 * findvar.c (struct minsym_lookup_data) <result>: Change type
10503 to bound_minimal_symbol.
10504 <objfile>: Remove.
10505 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10506 * frame.c (inside_main_func): Update.
10507 * frv-tdep.c (frv_frame_this_id): Update.
10508 * gcore.c (call_target_sbrk): Update.
10509 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10510 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10511 Update.
10512 * go-lang.c (go_main_name): Update.
10513 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10514 (hppa_hpux_find_import_stub_for_addr): Update.
10515 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10516 Update. Change return type.
10517 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10518 type.
10519 * jit.c (jit_breakpoint_re_set_internal): Update.
10520 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10521 Update.
10522 * linux-nat.c (get_signo): Update.
10523 * linux-thread-db.c (inferior_has_bug): Update
10524 * m32c-tdep.c (m32c_return_value)
10525 (m32c_m16c_address_to_pointer): Update.
10526 * m32r-tdep.c (m32r_frame_this_id): Update.
10527 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10528 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10529 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10530 lookup_minimal_symbol. Change return type.
10531 (lookup_minimal_symbol): Remove.
10532 (lookup_bound_minimal_symbol): Update.
10533 (lookup_minimal_symbol_text): Change return type.
10534 (lookup_minimal_symbol_solib_trampoline): Change return type.
10535 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10536 (lookup_minimal_symbol_solib_trampoline): Change return type.
10537 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10538 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10539 (value_nsstring, find_imps): Update.
10540 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10541 * p-lang.c (pascal_main_name): Update.
10542 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10543 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10544 * proc-service.c (ps_pglobal_lookup): Update.
10545 * ravenscar-thread.c (get_running_thread_msymbol): Change
10546 return type.
10547 (has_ravenscar_runtime, get_running_thread_id): Update.
10548 * remote.c (remote_check_symbols): Update.
10549 * sol-thread.c (ps_pglobal_lookup): Update.
10550 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10551 * solib-dsbt.c (lm_base): Update.
10552 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10553 Update.
10554 * solib-irix.c (locate_base): Update.
10555 * solib-som.c (som_solib_create_inferior_hook)
10556 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10557 Update.
10558 * solib-spu.c (spu_enable_break): Update.
10559 * solib-svr4.c (elf_locate_base, enable_break): Update.
10560 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10561 (flush_ea_cache): Update.
10562 * stabsread.c (define_symbol): Update.
10563 * symfile.c (simple_read_overlay_table): Update.
10564 * symtab.c (find_pc_sect_line): Update.
10565 * tracepoint.c (scope_info): Update.
10566 * tui-disasm.c (tui_get_begin_asm_address): Update.
10567 * value.c (value_static_field): Update.
10568
10569 2014-02-26 Tom Tromey <tromey@redhat.com>
10570
10571 * minsyms.c (prim_record_minimal_symbol_full): Use
10572 SET_MSYMBOL_VALUE_ADDRESS.
10573 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10574 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10575 SET_MSYMBOL_VALUE_ADDRESS.
10576 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10577 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10578
10579 2014-02-26 Tom Tromey <tromey@redhat.com>
10580
10581 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10582 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10583 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10584 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10585 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10586 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10587 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10588 * ada-lang.c (ada_main_name): Update.
10589 (ada_lookup_simple_minsym): Update.
10590 (ada_make_symbol_completion_list): Update.
10591 (ada_add_standard_exceptions): Update.
10592 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10593 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10594 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10595 * arm-tdep.c (skip_prologue_function): Update.
10596 (arm_skip_stack_protector, arm_skip_stub): Update.
10597 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10598 (arm_wince_skip_main_prologue): Update.
10599 * auxv.c (ld_so_xfer_auxv): Update.
10600 * avr-tdep.c (avr_scan_prologue): Update.
10601 * ax-gdb.c (gen_var_ref): Update.
10602 * block.c (call_site_for_pc): Update.
10603 * blockframe.c (get_pc_function_start): Update.
10604 (find_pc_partial_function_gnu_ifunc): Update.
10605 * breakpoint.c (create_overlay_event_breakpoint): Update.
10606 (create_longjmp_master_breakpoint): Update.
10607 (create_std_terminate_master_breakpoint): Update.
10608 (create_exception_master_breakpoint): Update.
10609 (resolve_sal_pc): Update.
10610 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10611 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10612 Update.
10613 * c-valprint.c (c_val_print): Update.
10614 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10615 * coffread.c (coff_symfile_read): Update.
10616 * common/agent.c (agent_look_up_symbols): Update.
10617 * dbxread.c (find_stab_function_addr): Update.
10618 (end_psymtab): Update.
10619 * dwarf2loc.c (call_site_to_target_addr): Update.
10620 (func_verify_no_selftailcall): Update.
10621 (tailcall_dump): Update.
10622 (call_site_find_chain_1): Update.
10623 (dwarf_expr_reg_to_entry_parameter): Update.
10624 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10625 (elf_gnu_ifunc_resolve_by_got): Update.
10626 * f-valprint.c (info_common_command): Update.
10627 * findvar.c (read_var_value): Update.
10628 * frame.c (get_prev_frame_1): Update.
10629 (inside_main_func): Update.
10630 * frv-tdep.c (frv_skip_main_prologue): Update.
10631 (frv_frame_this_id): Update.
10632 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10633 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10634 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10635 (gnuv3_skip_trampoline): Update.
10636 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10637 (hppa64_hpux_in_solib_call_trampoline): Update.
10638 (hppa_hpux_skip_trampoline_code): Update.
10639 (hppa64_hpux_search_dummy_call_sequence): Update.
10640 (hppa_hpux_find_import_stub_for_addr): Update.
10641 (hppa_hpux_find_dummy_bpaddr): Update.
10642 * hppa-tdep.c (hppa_symbol_address)
10643 (hppa_lookup_stub_minimal_symbol): Update.
10644 * i386-tdep.c (i386_skip_main_prologue): Update.
10645 (i386_pe_skip_trampoline_code): Update.
10646 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10647 * infcall.c (get_function_name): Update.
10648 * infcmd.c (until_next_command): Update.
10649 * jit.c (jit_breakpoint_re_set_internal): Update.
10650 (jit_inferior_init): Update.
10651 * linespec.c (minsym_found): Update.
10652 (add_minsym): Update.
10653 * linux-fork.c (info_checkpoints_command): Update.
10654 * linux-nat.c (get_signo): Update.
10655 * linux-thread-db.c (inferior_has_bug): Update.
10656 * m32c-tdep.c (m32c_return_value): Update.
10657 (m32c_m16c_address_to_pointer): Update.
10658 (m32c_m16c_pointer_to_address): Update.
10659 * m32r-tdep.c (m32r_frame_this_id): Update.
10660 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10661 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10662 * maint.c (maintenance_translate_address): Update.
10663 * minsyms.c (add_minsym_to_hash_table): Update.
10664 (add_minsym_to_demangled_hash_table): Update.
10665 (msymbol_objfile): Update.
10666 (lookup_minimal_symbol): Update.
10667 (iterate_over_minimal_symbols): Update.
10668 (lookup_minimal_symbol_text): Update.
10669 (lookup_minimal_symbol_by_pc_name): Update.
10670 (lookup_minimal_symbol_solib_trampoline): Update.
10671 (lookup_minimal_symbol_by_pc_section_1): Update.
10672 (lookup_minimal_symbol_and_objfile): Update.
10673 (prim_record_minimal_symbol_full): Update.
10674 (compare_minimal_symbols): Update.
10675 (compact_minimal_symbols): Update.
10676 (build_minimal_symbol_hash_tables): Update.
10677 (install_minimal_symbols): Update.
10678 (terminate_minimal_symbol_table): Update.
10679 (find_solib_trampoline_target): Update.
10680 (minimal_symbol_upper_bound): Update.
10681 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10682 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10683 (mips_skip_pic_trampoline_code): Update.
10684 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10685 * objc-lang.c (selectors_info): Update.
10686 (classes_info): Update.
10687 (find_methods): Update.
10688 (find_imps): Update.
10689 (find_objc_msgsend): Update.
10690 * objfiles.c (objfile_relocate1): Update.
10691 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10692 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10693 * p-valprint.c (pascal_val_print): Update.
10694 * parse.c (write_exp_msymbol): Update.
10695 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10696 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10697 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10698 * printcmd.c (build_address_symbolic): Update.
10699 (sym_info): Update.
10700 (address_info): Update.
10701 * proc-service.c (ps_pglobal_lookup): Update.
10702 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10703 (find_pc_sect_psymtab): Update.
10704 * python/py-framefilter.c (py_print_frame): Update.
10705 * ravenscar-thread.c (get_running_thread_id): Update.
10706 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10707 Update.
10708 * remote.c (remote_check_symbols): Update.
10709 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10710 (rs6000_skip_trampoline_code): Update.
10711 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10712 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10713 * solib-dsbt.c (lm_base): Update.
10714 * solib-frv.c (lm_base): Update.
10715 (main_got): Update.
10716 * solib-irix.c (locate_base): Update.
10717 * solib-som.c (som_solib_create_inferior_hook): Update.
10718 (som_solib_desire_dynamic_linker_symbols): Update.
10719 (link_map_start): Update.
10720 * solib-spu.c (spu_enable_break): Update.
10721 (ocl_enable_break): Update.
10722 * solib-svr4.c (elf_locate_base): Update.
10723 (enable_break): Update.
10724 * spu-tdep.c (spu_get_overlay_table): Update.
10725 (spu_catch_start): Update.
10726 (flush_ea_cache): Update.
10727 * stabsread.c (define_symbol): Update.
10728 (scan_file_globals): Update.
10729 * stack.c (find_frame_funname): Update.
10730 (frame_info): Update.
10731 * symfile.c (simple_read_overlay_table): Update.
10732 (simple_overlay_update): Update.
10733 * symmisc.c (dump_msymbols): Update.
10734 * symtab.c (fixup_section): Update.
10735 (find_pc_sect_line): Update.
10736 (skip_prologue_sal): Update.
10737 (search_symbols): Update.
10738 (print_msymbol_info): Update.
10739 (rbreak_command): Update.
10740 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10741 (completion_list_objc_symbol): Update.
10742 (default_make_symbol_completion_list_break_on): Update.
10743 * tracepoint.c (scope_info): Update.
10744 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10745 (tui_get_begin_asm_address): Update.
10746 * valops.c (find_function_in_inferior): Update.
10747 * value.c (value_static_field): Update.
10748 (value_fn_field): Update.
10749
10750 2014-02-26 Tom Tromey <tromey@redhat.com>
10751
10752 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10753 bound minimal symbols. Move code that knows about minsym
10754 table layout...
10755 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10756 function.
10757 * minsyms.h (minimal_symbol_upper_bound): Declare.
10758 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10759 minimal_symbol_upper_bound.
10760
10761 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10762
10763 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10764 Use the type's name if its basic type does not have a tag.
10765
10766 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10767
10768 * dwarf2read.c (read_subrange_type): Add comment.
10769
10770 2014-02-27 Joel Brobecker <brobecker@adacore.com>
10771
10772 * dwarf2read.c (update_enumeration_type_from_children): New
10773 function, mostly extracted from process_structure_scope.
10774 (read_enumeration_type): Call update_enumeration_type_from_children.
10775 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10776 and flag_flag_enum fields.
10777
10778 2014-02-26 Pedro Alves <palves@redhat.com>
10779
10780 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10781 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10782 to_xfer_partial method.
10783
10784 2014-02-26 Pedro Alves <palves@redhat.com>
10785
10786 * target.c (complete_target_initialization): Don't install
10787 default_xfer_partial as to_xfer_partial hook.
10788 (nomemory): Delete.
10789 (update_current_target): Don't INHERIT nor de_fault
10790 deprecated_xfer_memory. Delete de_fault macro.
10791 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10792 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10793 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10794 field.
10795
10796 2014-02-26 Pedro Alves <palves@redhat.com>
10797
10798 * go32-nat.c (my_write_child): New function.
10799 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10800 (go32_xfer_partial): New function.
10801 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10802 Instead install a to_xfer_partial hook.
10803
10804 2014-02-26 Pedro Alves <palves@redhat.com>
10805
10806 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10807 to_xfer_partial helper. Rewrite.
10808 (procfs_xfer_partial): New function.
10809 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10810 Install a to_xfer_partial hook.
10811
10812 2014-02-26 Pedro Alves <palves@redhat.com>
10813
10814 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10815 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10816 (m32r_xfer_partial): New function.
10817 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10818 Install a to_xfer_partial hook.
10819
10820 2014-02-26 Pedro Alves <palves@redhat.com>
10821
10822 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10823 helper.
10824 (mips_xfer_partial): New function.
10825 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10826 hook. Install a to_xfer_partial hook.
10827
10828 2014-02-26 Joel Brobecker <brobecker@adacore.com>
10829
10830 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10831 * gdbtypes.c (create_array_type_with_stride): New function,
10832 renaming create_array_type, but with an added parameter
10833 called "bit_stride".
10834 (create_array_type): Re-implement using
10835 create_array_type_with_stride.
10836 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10837 and DW_AT_bit_stride attributes.
10838
10839 2014-02-26 Pedro Alves <palves@redhat.com>
10840
10841 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10842 task-specific breakpoints.
10843
10844 2014-02-25 Pedro Alves <palves@redhat.com>
10845
10846 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10847 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10848
10849 2014-02-25 Stan Shebs <stan@codesourcery.com>
10850
10851 * defs.h: Annotate comments for Doxygen.
10852
10853 2014-02-25 Tom Tromey <tromey@redhat.com>
10854
10855 * target.h (target_ignore): Don't declare.
10856 * target.c (target_ignore): Remove.
10857
10858 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10859
10860 PR gdb/16626
10861 * auto-load.c (auto_load_objfile_script_1): Change filename to
10862 debugfile.
10863
10864 2014-02-25 Joel Brobecker <brobecker@adacore.com>
10865
10866 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10867 documentation. Adjust prototype to match the target_ops
10868 to_xfer_partial method. Adjust implementation accordingly.
10869
10870 2014-02-25 Hui Zhu <hui@codesourcery.com>
10871
10872 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10873 to_traceframe_info.
10874
10875 2014-02-25 Kevin Buettner <kevinb@redhat.com>
10876
10877 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10878 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10879 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10880 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10881 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10882 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10883 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10884 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10885 New constants.
10886 (rl78_register_type): Use a data pointer type for SP and
10887 new pseudo registers mentioned above. Use a 16 bit integer
10888 type for all other register pairs.
10889 (rl78_register_name, rl78_g10_register_name): Update for
10890 new pseudo registers.
10891 (rl78_pseudo_register_read): Likewise.
10892 (rl78_pseudo_register_write): Likewise.
10893 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10894 to the newly added pseudo registers.
10895
10896 2014-02-24 Doug Evans <dje@google.com>
10897
10898 * value.c (record_latest_value): Fix comment.
10899 * printcmd.c (print_command_1): Remove code to handle -1 return from
10900 record_latest_value.
10901
10902 2014-02-24 Pedro Alves <palves@redhat.com>
10903
10904 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10905 deprecated_xfer_memory hook.
10906 (procfs_xfer_partial): Call procfs_xfer_memory instead
10907 of the deprecated_xfer_memory target hook.
10908 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10909 helper.
10910
10911 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
10912
10913 * windows-nat.c (windows_xfer_shared_libraries): Return
10914 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10915 requested object is TARGET_OBJECT_LIBRARIES.
10916
10917 2014-02-24 Yao Qi <yao@codesourcery.com>
10918
10919 * target.h (enum target_xfer_status)
10920 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10921 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10922 explicitly. New.
10923 * corefile.c (memory_error_message): User updated.
10924 * exec.c (section_table_read_available_memory): Likewise.
10925 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10926 * target.c (target_xfer_status_to_string): Likewise.
10927 (raw_memory_xfer_partial): Likewise.
10928 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10929 * valops.c (read_value_memory): Likewise.
10930 * exec.h: Update comments.
10931
10932 2014-02-24 Yao Qi <yao@codesourcery.com>
10933
10934 * target.c (target_xfer_status_to_string): Rename argument err
10935 to status.
10936 * target.h (target_xfer_status_to_string): Update declaration.
10937 Replace target_xfer_error_to_string with
10938 target_xfer_status_to_string in comment.
10939
10940 2014-02-24 Yao Qi <yao@codesourcery.com>
10941
10942 * mips-linux-nat.c (super_close): Update its type.
10943 (mips_linux_close): Pass 'self' to super_close.
10944
10945 2014-02-24 Yao Qi <yao@codesourcery.com>
10946
10947 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10948 * corefile.c (read_memory): Adjusted.
10949 * target.c (target_write_with_progress): Adjusted.
10950
10951 2014-02-23 Yao Qi <yao@codesourcery.com>
10952
10953 Revert two patches:
10954
10955 2013-10-25 Yao Qi <yao@codesourcery.com>
10956
10957 * remote.c (remote_traceframe_info): Return early if
10958 traceframe is not selected.
10959
10960 2013-07-19 Yao Qi <yao@codesourcery.com>
10961
10962 * target.c (update_current_target): Change the default action
10963 of 'to_traceframe_info' from tcomplain to return_zero.
10964 * target.h (struct target_ops) <to_traceframe_info>: Add more
10965 comments.
10966
10967 2014-02-23 Yao Qi <yao@codesourcery.com>
10968
10969 * valops.c (read_value_memory): Rewrite it. Call
10970 target_xfer_partial in a loop.
10971 * exec.h (section_table_available_memory): Remove declaration.
10972 Move comments to ...
10973 * exec.c (section_table_available_memory): ... here. Make it
10974 static.
10975
10976 2014-02-23 Yao Qi <yao@codesourcery.com>
10977
10978 * exec.c (section_table_read_available_memory): New function.
10979 * exec.h (section_table_read_available_memory): Declare.
10980 * ctf.c (ctf_xfer_partial): Call
10981 section_table_read_available_memory.
10982 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10983
10984 2014-02-23 Yao Qi <yao@codesourcery.com>
10985
10986 * ctf.c (ctf_xfer_partial): Move code to ...
10987 * exec.c (exec_read_partial_read_only): ... it. New function.
10988 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10989 * tracefile.c: Include "exec.h".
10990 * exec.h (exec_read_partial_read_only): Declare.
10991
10992 2014-02-23 Yao Qi <yao@codesourcery.com>
10993
10994 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10995 (tfile_has_memory): Remove.
10996 (init_tfile_ops): Don't set fields to_has_all_memory and
10997 to_has_memory of tfile_ops.
10998 * tracefile.c (tracefile_has_all_memory): New function.
10999 (tracefile_has_memory): New function.
11000 (init_tracefile_ops): Initialize fields to_has_all_memory and
11001 to_has_memory of 'ops'.
11002
11003 2014-02-23 Yao Qi <yao@codesourcery.com>
11004
11005 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11006 (ctf_thread_alive, ctf_get_trace_status): Remove.
11007 (init_ctf_ops): Don't set some fields of ctf_ops. Call
11008 init_tracefile_ops.
11009 * tracefile-tfile.c (tfile_get_trace_status): Remove.
11010 (tfile_has_stack, tfile_has_registers): Remove.
11011 (tfile_thread_alive): Remove.
11012 (init_tfile_ops): Don't set some fields of tfile_ops. Call
11013 init_tracefile_ops.
11014 * tracefile.c (tracefile_has_stack): New function.
11015 (tracefile_has_registers): New function.
11016 (tracefile_thread_alive): New function.
11017 (tracefile_get_trace_status): New function.
11018 (init_tracefile_ops): New function.
11019 * tracefile.h (init_tracefile_ops): Declare.
11020
11021 2014-02-23 Yao Qi <yao@codesourcery.com>
11022
11023 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11024 (O_LARGEFILE): Likewise.
11025 (tfile_ops): Likewise.
11026 (TRACE_HEADER_SIZE): Likewise.
11027 (trace_fd, trace_frames_offset, cur_offset): Likewise.
11028 (cur_data_size): Likewise.
11029 (tfile_read, tfile_open, tfile_interp_line): Likewise.
11030 (tfile_close, tfile_files_info): Likewise.
11031 (tfile_get_trace_status): Likewise.
11032 (tfile_get_tracepoint_status): Likewise.
11033 (tfile_get_traceframe_address): Likewise.
11034 (tfile_trace_find, match_blocktype): Likewise.
11035 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11036 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11037 (tfile_get_trace_state_variable_value): Likewise.
11038 (tfile_has_all_memory, tfile_has_memory): Likewise.
11039 (tfile_has_stack, tfile_has_registers): Likewise.
11040 (tfile_thread_alive, build_traceframe_info): Likewise.
11041 (tfile_traceframe_info, init_tfile_ops): Likewise.
11042 (_initialize_tracepoint): Don't call init_tfile_ops
11043 and add_target_with_completer.
11044 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11045 exec.h, completer.h and filenames.h.
11046 (_initialize_tracefile_tfile): New function.
11047
11048 2014-02-23 Yao Qi <yao@codesourcery.com>
11049
11050 * Makefile.in (REMOTE_OBS): Append tracefile.o and
11051 tracefile-tfile.o.
11052 (HFILES_NO_SRCDIR): Add tracefile.h.
11053 * ctf.c: Include "tracefile.h".
11054 * tracefile.h: New file.
11055 * tracefile.c: New file
11056 * tracefile-tfile.c: New file.
11057 * tracepoint.c: Include "tracefile.h".
11058 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11059 (stop_reason_names): Add const.
11060 (trace_file_writer_xfree): Move it to tracefile.c.
11061 (trace_save, trace_save_command, trace_save_tfile): Likewise.
11062 (trace_save_ctf): Likewise.
11063 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11064 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11065 (tfile_write_header, tfile_write_regblock_type): Likewise.
11066 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11067 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11068 (tfile_write_raw_data, tfile_end): Likewise.
11069 (tfile_trace_file_writer_new): Likewise.
11070 (free_uploaded_tp): Make it extern.
11071 (free_uploaded_tsv): Make it extern.
11072 (_initialize_tracepoint): Move code to register command 'tsave'
11073 to tracefile.c.
11074 * tracepoint.h (stop_reason_names): Declare.
11075 (struct trace_frame_write_ops): Move it to tracefile.h.
11076 (struct trace_file_write_ops): Likewise.
11077 (struct trace_file_writer): Likewise.
11078 (free_uploaded_tsvs, free_uploaded_tps): Declare.
11079
11080 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11081
11082 PR gdb/16594
11083 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11084 process name.
11085 (get_cores_used_by_process): New parameter num_cores, use it.
11086 (linux_xfer_osdata_processes): Pass num_cores to it.
11087 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11088 process name.
11089
11090 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
11091
11092 * target.c (memory_xfer_partial): Fix length arg in call to
11093 breakpoint_xfer_memory.
11094
11095 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11096
11097 PR tdep/16397
11098 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11099 number comes after the + or - signs. Adjust length of register
11100 name to be extracted.
11101
11102 2014-02-20 Tom Tromey <tromey@redhat.com>
11103
11104 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11105 (ada_varobj_ops): Mark "extern".
11106
11107 2014-02-20 Tom Tromey <tromey@redhat.com>
11108
11109 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11110
11111 2014-02-20 Doug Evans <xdje42@gmail.com>
11112
11113 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11114 All callers updated.
11115 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11116 All callers updated.
11117 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11118 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11119
11120 2014-02-20 lin zuojian <manjian2006@gmail.com>
11121 Joel Brobecker <brobecker@adacore.com>
11122 Doug Evans <xdje42@gmail.com>
11123
11124 PR symtab/16581
11125 * dwarf2read.c (struct die_info): New member in_process.
11126 (reset_die_in_process): New function.
11127 (process_die): Set it at the start, reset when returning.
11128 (inherit_abstract_dies): Only call process_die if origin_child_die
11129 not already being processed.
11130
11131 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11132
11133 * windows-nat.c (handle_unload_dll): Add function documentation.
11134 (do_initial_windows_stuff): Add comment explaining why we wait
11135 until after inferior initialization has finished before
11136 processing all DLLs.
11137
11138 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11139
11140 * windows-nat.c (get_module_name): Delete.
11141 (windows_get_exec_module_filename): New function, mostly
11142 inspired from get_module_name.
11143 (windows_pid_to_exec_file): Replace call to get_module_name
11144 by call to windows_get_exec_module_filename.
11145
11146 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11147
11148 * windows-nat.c (handle_load_dll): Rewrite this function's
11149 introductory comment. Remove code using get_module_name
11150 to get the DLL's name.
11151
11152 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11153
11154 * windows-nat.c (get_windows_debug_event): Ignore
11155 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11156 if windows_initialization_done == 0.
11157 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11158 Adjust implementation to always load all DLLs.
11159 (do_initial_windows_stuff): Replace call to
11160 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11161
11162 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11163
11164 * windows-nat.c (_initialize_windows_nat): Deprecate the
11165 "dll-symbols" command. Turn the "add-shared-symbol-files"
11166 and "assf" aliases into commands, and deprecate them as well.
11167 * NEWS: Add entry explaining that "dll-symbols" and its two
11168 aliases are now deprecated.
11169
11170 2014-02-20 Joel Brobecker <brobecker@adacore.com>
11171
11172 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11173 new-line in debug string. Remove trailing spaces.
11174
11175 2014-02-19 Stan Shebs <stan@codesourcery.com>
11176
11177 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11178
11179 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
11180
11181 * NEWS: Add entry for the new feature
11182 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11183 and class values.
11184
11185 2014-02-19 Stan Shebs <stan@codesourcery.com>
11186
11187 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11188
11189 2014-02-19 Pedro Alves <palves@redhat.com>
11190
11191 * common/ptid.h (struct ptid): Mention that process_stratum
11192 targets should prefer ptid.lwp.
11193
11194 2014-02-19 Pedro Alves <palves@redhat.com>
11195
11196 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11197 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11198 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11199 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11200 store remote thread ids rather than ptid.tid.
11201 (_initialize_remote): Adjust.
11202
11203 2014-02-19 Tom Tromey <tromey@redhat.com>
11204
11205 * target.c (target_get_unwinder): Rewrite.
11206 (target_get_tailcall_unwinder): Rewrite.
11207 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11208 (record_btrace_to_get_tailcall_unwinder): New function.
11209 (init_record_btrace_ops): Update.
11210 * target.h (struct target_ops) <to_get_unwinder,
11211 to_get_tailcall_unwinder>: Now function pointers. Use
11212 TARGET_DEFAULT_RETURN.
11213
11214 2014-02-19 Tom Tromey <tromey@redhat.com>
11215
11216 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11217 argument.
11218 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11219
11220 2014-02-19 Tom Tromey <tromey@redhat.com>
11221
11222 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11223 directly.
11224 * target-delegates.c: Rebuild.
11225 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11226 TARGET_DEFAULT_FUNC.
11227 * target.c (default_target_decr_pc_after_break): Rename from
11228 forward_target_decr_pc_after_break. Simplify.
11229 (target_decr_pc_after_break): Rely on delegation.
11230
11231 2014-02-19 Tom Tromey <tromey@redhat.com>
11232
11233 * target.c (update_current_target): Do not INHERIT to_doc or
11234 to_magic. Do not de_fault to_open or to_close.
11235
11236 2014-02-19 Tom Tromey <tromey@redhat.com>
11237
11238 * gcore.h (objfile_find_memory_regions): Declare.
11239 * gcore.c (objfile_find_memory_regions): No longer static. Add
11240 "self" argument.
11241 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11242 * exec.c: Include gcore.h.
11243 (exec_set_find_memory_regions): Remove.
11244 (exec_find_memory_regions): Remove.
11245 (exec_do_find_memory_regions): Remove.
11246 (init_exec_ops): Update.
11247 * defs.h (exec_set_find_memory_regions): Remove.
11248
11249 2014-02-19 Tom Tromey <tromey@redhat.com>
11250
11251 * target-delegates.c: Rebuild.
11252 * target.h (struct target_ops) <to_extra_thread_info,
11253 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11254 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11255 not 0, in TARGET_DEFAULT_RETURN.
11256
11257 2014-02-19 Tom Tromey <tromey@redhat.com>
11258
11259 * target.c (complete_target_initialization): Remove casts. Use
11260 return_zero_has_execution.
11261 (return_zero): Add "ignore" argument.
11262 (return_zero_has_execution): New function.
11263 (init_dummy_target): Remove casts. Use
11264 return_zero_has_execution.
11265
11266 2014-02-19 Tom Tromey <tromey@redhat.com>
11267
11268 * target.c (update_current_target): Update comments. Do not
11269 INHERIT to_stratum.
11270
11271 2014-02-19 Tom Tromey <tromey@redhat.com>
11272
11273 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11274 needed.
11275 * corelow.c (core_read_description): Delegate when needed.
11276 * remote.c (remote_read_description): Delegate when needed.
11277 * target-delegates.c: Rebuild.
11278 * target.c (target_read_description): Rewrite.
11279 * target.h (struct target_ops) <to_read_description>: Update
11280 comment. Use TARGET_DEFAULT_RETURN.
11281
11282 2014-02-19 Tom Tromey <tromey@redhat.com>
11283
11284 * target-delegates.c: Rebuild.
11285 * target.c (update_current_target): Don't inherit or default
11286 to_can_run.
11287 (find_default_run_target): Check against delegate_can_run.
11288 * target.h (struct target_ops) <to_can_run>: Use
11289 TARGET_DEFAULT_RETURN.
11290
11291 2014-02-19 Tom Tromey <tromey@redhat.com>
11292
11293 * target-delegates.c: Rebuild.
11294 * target.c (target_disconnect): Unconditionally delegate.
11295 * target.h (struct target_ops) <to_disconnect>: Use
11296 TARGET_DEFAULT_NORETURN.
11297
11298 2014-02-19 Tom Tromey <tromey@redhat.com>
11299
11300 * record.c (record_stop): Unconditionally delegate.
11301 * target-delegates.c: Rebuild.
11302 * target.c (target_stop_recording): Unconditionally delegate.
11303 * target.h (struct target_ops) <to_stop_recording>: Use
11304 TARGET_DEFAULT_IGNORE.
11305
11306 2014-02-19 Tom Tromey <tromey@redhat.com>
11307
11308 * target-delegates.c: Rebuild.
11309 * target.c (target_enable_btrace): Unconditionally delegate.
11310 * target.h (struct target_ops) <to_enable_btrace>: Use
11311 TARGET_DEFAULT_NORETURN.
11312
11313 2014-02-19 Tom Tromey <tromey@redhat.com>
11314
11315 * target-delegates.c: Rebuild.
11316 * target.c (target_read_btrace): Unconditionally delegate.
11317 * target.h (struct target_ops) <to_read_btrace>: Use
11318 TARGET_DEFAULT_NORETURN.
11319
11320 2014-02-19 Tom Tromey <tromey@redhat.com>
11321
11322 * target-delegates.c: Rebuild.
11323 * target.c (target_teardown_btrace): Unconditionally delegate.
11324 * target.h (struct target_ops) <to_teardown_btrace>: Use
11325 TARGET_DEFAULT_NORETURN.
11326
11327 2014-02-19 Tom Tromey <tromey@redhat.com>
11328
11329 * target-delegates.c: Rebuild.
11330 * target.c (target_disable_btrace): Unconditionally delegate.
11331 * target.h (struct target_ops) <to_disable_btrace>: Use
11332 TARGET_DEFAULT_NORETURN.
11333
11334 2014-02-19 Tom Tromey <tromey@redhat.com>
11335
11336 * target-delegates.c: Rebuild.
11337 * target.c (default_search_memory): New function.
11338 (simple_search_memory): Update comment.
11339 (target_search_memory): Unconditionally delegate.
11340 * target.h (struct target_ops) <to_search_memory>: Use
11341 TARGET_DEFAULT_FUNC.
11342
11343 2014-02-19 Tom Tromey <tromey@redhat.com>
11344
11345 * auxv.c (default_auxv_parse): No longer static.
11346 (target_auxv_parse): Unconditionally delegate.
11347 * auxv.h (default_auxv_parse): Declare.
11348 * target-delegates.c: Rebuild.
11349 * target.c: Include auxv.h.
11350 * target.h (struct target_ops) <to_auxv_parse>: Use
11351 TARGET_DEFAULT_FUNC.
11352
11353 2014-02-19 Tom Tromey <tromey@redhat.com>
11354
11355 * target-delegates.c: Rebuild.
11356 * target.c (target_memory_map): Unconditionally delegate.
11357 * target.h (struct target_ops) <to_memory_map>: Use
11358 TARGET_DEFAULT_RETURN.
11359
11360 2014-02-19 Tom Tromey <tromey@redhat.com>
11361
11362 * target-delegates.c: Rebuild.
11363 * target.c (target_thread_alive): Unconditionally delegate.
11364 * target.h (struct target_ops) <to_thread_alive>: Use
11365 TARGET_DEFAULT_RETURN.
11366
11367 2014-02-19 Tom Tromey <tromey@redhat.com>
11368
11369 * target-delegates.c: Rebuild.
11370 * target.c (target_save_record): Unconditionally delegate.
11371 * target.h (struct target_ops) <to_save_record>: 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_delete_record): Unconditionally delegate.
11378 * target.h (struct target_ops) <to_delete_record>: 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_record_is_replaying): Unconditionally
11385 delegate.
11386 * target.h (struct target_ops) <to_record_is_replaying>: Use
11387 TARGET_DEFAULT_RETURN.
11388
11389 2014-02-19 Tom Tromey <tromey@redhat.com>
11390
11391 * target-delegates.c: Rebuild.
11392 * target.c (target_goto_record_begin): Unconditionally delegate.
11393 * target.h (struct target_ops) <to_goto_record_begin>: Use
11394 TARGET_DEFAULT_NORETURN.
11395
11396 2014-02-19 Tom Tromey <tromey@redhat.com>
11397
11398 * target-delegates.c: Rebuild.
11399 * target.c (target_goto_record_end): Unconditionally delegate.
11400 * target.h (struct target_ops) <to_goto_record_end>: Use
11401 TARGET_DEFAULT_NORETURN.
11402
11403 2014-02-19 Tom Tromey <tromey@redhat.com>
11404
11405 * target-delegates.c: Rebuild.
11406 * target.c (target_goto_record): Unconditionally delegate.
11407 * target.h (struct target_ops) <to_goto_record>: Use
11408 TARGET_DEFAULT_NORETURN.
11409
11410 2014-02-19 Tom Tromey <tromey@redhat.com>
11411
11412 * target-delegates.c: Rebuild.
11413 * target.c (target_insn_history): Unconditionally delegate.
11414 * target.h (struct target_ops) <to_insn_history>: Use
11415 TARGET_DEFAULT_NORETURN.
11416
11417 2014-02-19 Tom Tromey <tromey@redhat.com>
11418
11419 * target-delegates.c: Rebuild.
11420 * target.c (target_insn_history_from): Unconditionally delegate.
11421 * target.h (struct target_ops) <to_insn_history_from>: Use
11422 TARGET_DEFAULT_NORETURN.
11423
11424 2014-02-19 Tom Tromey <tromey@redhat.com>
11425
11426 * target-delegates.c: Rebuild.
11427 * target.c (target_insn_history_range): Unconditionally delegate.
11428 * target.h (struct target_ops) <to_insn_history_range>: Use
11429 TARGET_DEFAULT_NORETURN.
11430
11431 2014-02-19 Tom Tromey <tromey@redhat.com>
11432
11433 * target-delegates.c: Rebuild.
11434 * target.c (target_call_history): Unconditionally delegate.
11435 * target.h (struct target_ops) <to_call_history>: Use
11436 TARGET_DEFAULT_NORETURN.
11437
11438 2014-02-19 Tom Tromey <tromey@redhat.com>
11439
11440 * target-delegates.c: Rebuild.
11441 * target.c (target_call_history_from): Unconditionally delegate.
11442 * target.h (struct target_ops) <to_call_history_from>: Use
11443 TARGET_DEFAULT_NORETURN.
11444
11445 2014-02-19 Tom Tromey <tromey@redhat.com>
11446
11447 * target-delegates.c: Rebuild.
11448 * target.c (target_call_history_range): Unconditionally delegate.
11449 * target.h (struct target_ops) <to_call_history_range>: Use
11450 TARGET_DEFAULT_NORETURN.
11451
11452 2014-02-19 Tom Tromey <tromey@redhat.com>
11453
11454 * target-delegates.c: Rebuild.
11455 * target.c (target_verify_memory): Unconditionally delegate.
11456 * target.h (struct target_ops) <to_verify_memory>: Use
11457 TARGET_DEFAULT_NORETURN.
11458
11459 2014-02-19 Tom Tromey <tromey@redhat.com>
11460
11461 * target-delegates.c: Rebuild.
11462 * target.c (target_core_of_thread): Unconditionally delegate.
11463 * target.h (struct target_ops) <to_core_of_thread>: Use
11464 TARGET_DEFAULT_RETURN.
11465
11466 2014-02-19 Tom Tromey <tromey@redhat.com>
11467
11468 * target-delegates.c: Rebuild.
11469 * target.c (target_flash_done): Unconditionally delegate.
11470 * target.h (struct target_ops) <to_flash_done>: Use
11471 TARGET_DEFAULT_NORETURN.
11472
11473 2014-02-19 Tom Tromey <tromey@redhat.com>
11474
11475 * target-delegates.c: Rebuild.
11476 * target.c (target_flash_erase): Unconditionally delegate.
11477 * target.h (struct target_ops) <to_flash_erase>: Use
11478 TARGET_DEFAULT_NORETURN.
11479
11480 2014-02-19 Tom Tromey <tromey@redhat.com>
11481
11482 * target-delegates.c: Rebuild.
11483 * target.c (target_get_section_table): Unconditionally delegate.
11484 * target.h (struct target_ops) <to_get_section_table>: Use
11485 TARGET_DEFAULT_RETURN.
11486
11487 2014-02-19 Tom Tromey <tromey@redhat.com>
11488
11489 * target-delegates.c: Rebuild.
11490 * target.c (target_pid_to_str): Unconditionally delegate.
11491 (init_dummy_target): Don't initialize to_pid_to_str.
11492 (default_pid_to_str): Rename from dummy_pid_to_str.
11493 * target.h (struct target_ops) <to_pid_to_str>: Use
11494 TARGET_DEFAULT_FUNC.
11495
11496 2014-02-19 Tom Tromey <tromey@redhat.com>
11497
11498 * target-delegates.c: Rebuild.
11499 * target.c (target_find_new_threads): Unconditionally delegate.
11500 * target.h (struct target_ops) <to_find_new_threads>: Use
11501 TARGET_DEFAULT_RETURN.
11502
11503 2014-02-19 Tom Tromey <tromey@redhat.com>
11504
11505 * target-delegates.c: Rebuild.
11506 * target.c (target_program_signals): Unconditionally delegate.
11507 * target.h (struct target_ops) <to_program_signals>: Use
11508 TARGET_DEFAULT_IGNORE.
11509
11510 2014-02-19 Tom Tromey <tromey@redhat.com>
11511
11512 * target-delegates.c: Rebuild.
11513 * target.c (target_pass_signals): Unconditionally delegate.
11514 * target.h (struct target_ops) <to_pass_signals>: Use
11515 TARGET_DEFAULT_IGNORE.
11516
11517 2014-02-19 Tom Tromey <tromey@redhat.com>
11518
11519 * target-delegates.c: Rebuild.
11520 * target.c (default_mourn_inferior): New function.
11521 (target_mourn_inferior): Unconditionally delegate.
11522 * target.h (struct target_ops) <to_mourn_inferior>: Use
11523 TARGET_DEFAULT_FUNC.
11524
11525 2014-02-19 Tom Tromey <tromey@redhat.com>
11526
11527 * target-delegates.c: Rebuild.
11528 * target.c (default_follow_fork): New function.
11529 (target_follow_fork): Unconditionally delegate.
11530 * target.h (struct target_ops) <to_follow_fork>: Use
11531 TARGET_DEFAULT_FUNC.
11532
11533 2014-02-19 Tom Tromey <tromey@redhat.com>
11534
11535 * target-delegates.c: Rebuild.
11536 * target.c (target_kill): Unconditionally delegate.
11537 * target.h (struct target_ops) <to_kill>: Use
11538 TARGET_DEFAULT_NORETURN.
11539
11540 2014-02-19 Tom Tromey <tromey@redhat.com>
11541
11542 * target-delegates.c: Rebuild.
11543 * target.c (target_masked_watch_num_registers): Unconditionally
11544 delegate.
11545 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11546 Use TARGET_DEFAULT_RETURN.
11547
11548 2014-02-19 Tom Tromey <tromey@redhat.com>
11549
11550 * target-delegates.c: Rebuild.
11551 * target.c (target_remove_mask_watchpoint): Unconditionally
11552 delegate.
11553 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11554 TARGET_DEFAULT_RETURN.
11555
11556 2014-02-19 Tom Tromey <tromey@redhat.com>
11557
11558 * target-delegates.c: Rebuild.
11559 * target.c (target_insert_mask_watchpoint): Unconditionally
11560 delegate.
11561 * target.h (struct target_ops) <to_insert_mask_watchpoint>: 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_ranged_break_num_registers): Unconditionally
11568 delegate.
11569 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11570 Use TARGET_DEFAULT_RETURN.
11571
11572 2014-02-19 Tom Tromey <tromey@redhat.com>
11573
11574 * target-delegates.c: Rebuild.
11575 * target.c (target_fetch_registers): Unconditionally delegate.
11576 * target.h (struct target_ops) <to_fetch_registers>: Use
11577 TARGET_DEFAULT_NORETURN.
11578
11579 2014-02-19 Tom Tromey <tromey@redhat.com>
11580
11581 * target-delegates.c: Rebuild.
11582 * target.c (update_current_target): Don't inherit or default
11583 to_stop.
11584 * target.h (struct target_ops) <to_stop>: Use
11585 TARGET_DEFAULT_IGNORE.
11586
11587 2014-02-19 Tom Tromey <tromey@redhat.com>
11588
11589 * target-delegates.c: Rebuild.
11590 * target.c (update_current_target): Don't inherit or default
11591 to_can_run_breakpoint_commands.
11592 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11593 Use TARGET_DEFAULT_RETURN.
11594
11595 2014-02-19 Tom Tromey <tromey@redhat.com>
11596
11597 * target-delegates.c: Rebuild.
11598 * target.c (update_current_target): Don't inherit or default
11599 to_supports_evaluation_of_breakpoint_conditions.
11600 * target.h (struct target_ops)
11601 <to_supports_evaluation_of_breakpoint_conditions>: Use
11602 TARGET_DEFAULT_RETURN.
11603
11604 2014-02-19 Tom Tromey <tromey@redhat.com>
11605
11606 * target-delegates.c: Rebuild.
11607 * target.c (update_current_target): Don't inherit or default
11608 to_augmented_libraries_svr4_read.
11609 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11610 Use TARGET_DEFAULT_RETURN.
11611
11612 2014-02-19 Tom Tromey <tromey@redhat.com>
11613
11614 * target-delegates.c: Rebuild.
11615 * target.c (update_current_target): Don't inherit or default
11616 to_can_use_agent.
11617 * target.h (struct target_ops) <to_can_use_agent>: Use
11618 TARGET_DEFAULT_RETURN.
11619
11620 2014-02-19 Tom Tromey <tromey@redhat.com>
11621
11622 * target-delegates.c: Rebuild.
11623 * target.c (update_current_target): Don't inherit or default
11624 to_use_agent.
11625 * target.h (struct target_ops) <to_use_agent>: Use
11626 TARGET_DEFAULT_NORETURN.
11627
11628 2014-02-19 Tom Tromey <tromey@redhat.com>
11629
11630 * target-delegates.c: Rebuild.
11631 * target.c (update_current_target): Don't inherit or default
11632 to_traceframe_info.
11633 (return_null): Remove.
11634 * target.h (struct target_ops) <to_traceframe_info>: Use
11635 TARGET_DEFAULT_RETURN.
11636
11637 2014-02-19 Tom Tromey <tromey@redhat.com>
11638
11639 * target-delegates.c: Rebuild.
11640 * target.c (update_current_target): Don't inherit or default
11641 to_static_tracepoint_markers_by_strid.
11642 * target.h (struct target_ops)
11643 <to_static_tracepoint_markers_by_strid>: Use
11644 TARGET_DEFAULT_NORETURN.
11645
11646 2014-02-19 Tom Tromey <tromey@redhat.com>
11647
11648 * target-delegates.c: Rebuild.
11649 * target.c (update_current_target): Don't inherit or default
11650 to_static_tracepoint_marker_at.
11651 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11652 Use TARGET_DEFAULT_RETURN.
11653
11654 2014-02-19 Tom Tromey <tromey@redhat.com>
11655
11656 * target-delegates.c: Rebuild.
11657 * target.c (update_current_target): Don't inherit or default
11658 to_set_permissions.
11659 * target.h (struct target_ops) <to_set_permissions>: Use
11660 TARGET_DEFAULT_IGNORE.
11661
11662 2014-02-19 Tom Tromey <tromey@redhat.com>
11663
11664 * target-delegates.c: Rebuild.
11665 * target.c (update_current_target): Don't inherit or default
11666 to_get_tib_address.
11667 * target.h (struct target_ops) <to_get_tib_address>: Use
11668 TARGET_DEFAULT_NORETURN.
11669
11670 2014-02-19 Tom Tromey <tromey@redhat.com>
11671
11672 * target-delegates.c: Rebuild.
11673 * target.c (update_current_target): Don't inherit or default
11674 to_set_trace_notes.
11675 * target.h (struct target_ops) <to_set_trace_notes>: Use
11676 TARGET_DEFAULT_RETURN.
11677
11678 2014-02-19 Tom Tromey <tromey@redhat.com>
11679
11680 * target-delegates.c: Rebuild.
11681 * target.c (update_current_target): Don't initialize
11682 to_set_trace_buffer_size.
11683 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11684 TARGET_DEFAULT_IGNORE.
11685
11686 2014-02-19 Tom Tromey <tromey@redhat.com>
11687
11688 * target-delegates.c: Rebuild.
11689 * target.c (update_current_target): Don't inherit or default
11690 to_set_circular_trace_buffer.
11691 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11692 TARGET_DEFAULT_IGNORE.
11693
11694 2014-02-19 Tom Tromey <tromey@redhat.com>
11695
11696 * target-delegates.c: Rebuild.
11697 * target.c (update_current_target): Don't inherit or default
11698 to_set_disconnected_tracing.
11699 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11700 TARGET_DEFAULT_IGNORE.
11701
11702 2014-02-19 Tom Tromey <tromey@redhat.com>
11703
11704 * target-delegates.c: Rebuild.
11705 * target.c (update_current_target): Don't inherit or default
11706 to_get_min_fast_tracepoint_insn_len.
11707 (return_minus_one): Remove.
11708 * target.h (struct target_ops)
11709 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11710
11711 2014-02-19 Tom Tromey <tromey@redhat.com>
11712
11713 * target-delegates.c: Rebuild.
11714 * target.c (update_current_target): Don't inherit or default
11715 to_get_raw_trace_data.
11716 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11717 TARGET_DEFAULT_NORETURN.
11718
11719 2014-02-19 Tom Tromey <tromey@redhat.com>
11720
11721 * target-delegates.c: Rebuild.
11722 * target.c (update_current_target): Don't inherit or default
11723 to_upload_trace_state_variables.
11724 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11725 Use TARGET_DEFAULT_RETURN.
11726
11727 2014-02-19 Tom Tromey <tromey@redhat.com>
11728
11729 * target-delegates.c: Rebuild.
11730 * target.c (update_current_target): Don't inherit or default
11731 to_upload_tracepoints.
11732 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11733 TARGET_DEFAULT_RETURN.
11734
11735 2014-02-19 Tom Tromey <tromey@redhat.com>
11736
11737 * target-delegates.c: Rebuild.
11738 * target.c (update_current_target): Don't inherit or default
11739 to_save_trace_data.
11740 * target.h (struct target_ops) <to_save_trace_data>: Use
11741 TARGET_DEFAULT_NORETURN.
11742
11743 2014-02-19 Tom Tromey <tromey@redhat.com>
11744
11745 * target-delegates.c: Rebuild.
11746 * target.c (update_current_target): Don't inherit or default
11747 to_get_trace_state_variable_value.
11748 * target.h (struct target_ops)
11749 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11750
11751 2014-02-19 Tom Tromey <tromey@redhat.com>
11752
11753 * target-delegates.c: Rebuild.
11754 * target.c (update_current_target): Don't inherit or default
11755 to_trace_find.
11756 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11757
11758 2014-02-19 Tom Tromey <tromey@redhat.com>
11759
11760 * target-delegates.c: Rebuild.
11761 * target.c (update_current_target): Don't inherit or default
11762 to_trace_stop.
11763 * target.h (struct target_ops) <to_trace_stop>: Use
11764 TARGET_DEFAULT_NORETURN.
11765
11766 2014-02-19 Tom Tromey <tromey@redhat.com>
11767
11768 * target-delegates.c: Rebuild.
11769 * target.c (update_current_target): Don't inherit or default
11770 to_get_tracepoint_status.
11771 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11772 TARGET_DEFAULT_NORETURN.
11773
11774 2014-02-19 Tom Tromey <tromey@redhat.com>
11775
11776 * target-delegates.c: Rebuild.
11777 * target.c (update_current_target): Don't inherit or default
11778 to_get_trace_status.
11779 * target.h (struct target_ops) <to_get_trace_status>: Use
11780 TARGET_DEFAULT_RETURN.
11781
11782 2014-02-19 Tom Tromey <tromey@redhat.com>
11783
11784 * target-delegates.c: Rebuild.
11785 * target.c (update_current_target): Don't inherit or default
11786 to_trace_start.
11787 * target.h (struct target_ops) <to_trace_start>: Use
11788 TARGET_DEFAULT_NORETURN.
11789
11790 2014-02-19 Tom Tromey <tromey@redhat.com>
11791
11792 * target-delegates.c: Rebuild.
11793 * target.c (update_current_target): Don't inherit or default
11794 to_trace_set_readonly_regions.
11795 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11796 Use TARGET_DEFAULT_NORETURN.
11797
11798 2014-02-19 Tom Tromey <tromey@redhat.com>
11799
11800 * target-delegates.c: Rebuild.
11801 * target.c (update_current_target): Don't inherit or default
11802 to_disable_tracepoint.
11803 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11804 TARGET_DEFAULT_NORETURN.
11805
11806 2014-02-19 Tom Tromey <tromey@redhat.com>
11807
11808 * target-delegates.c: Rebuild.
11809 * target.c (update_current_target): Don't inherit or default
11810 to_enable_tracepoint.
11811 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11812 TARGET_DEFAULT_NORETURN.
11813
11814 2014-02-19 Tom Tromey <tromey@redhat.com>
11815
11816 * target-delegates.c: Rebuild.
11817 * target.c (update_current_target): Don't inherit or default
11818 to_download_trace_state_variable.
11819 * target.h (struct target_ops) <to_download_trace_state_variable>:
11820 Use TARGET_DEFAULT_NORETURN.
11821
11822 2014-02-19 Tom Tromey <tromey@redhat.com>
11823
11824 * target-delegates.c: Rebuild.
11825 * target.c (update_current_target): Don't inherit or default
11826 to_can_download_tracepoint.
11827 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11828 TARGET_DEFAULT_RETURN.
11829
11830 2014-02-19 Tom Tromey <tromey@redhat.com>
11831
11832 * target-delegates.c: Rebuild.
11833 * target.c (update_current_target): Don't inherit or default
11834 to_download_tracepoint.
11835 * target.h (struct target_ops) <to_download_tracepoint>: Use
11836 TARGET_DEFAULT_NORETURN.
11837
11838 2014-02-19 Tom Tromey <tromey@redhat.com>
11839
11840 * target-delegates.c: Rebuild.
11841 * target.c (update_current_target): Don't inherit or default
11842 to_trace_init.
11843 * target.h (struct target_ops) <to_trace_init>: Use
11844 TARGET_DEFAULT_RETURN.
11845
11846 2014-02-19 Tom Tromey <tromey@redhat.com>
11847
11848 * target-delegates.c: Rebuild.
11849 * target.c (update_current_target): Don't inherit or default
11850 to_supports_string_tracing.
11851 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11852 TARGET_DEFAULT_RETURN.
11853
11854 2014-02-19 Tom Tromey <tromey@redhat.com>
11855
11856 * target-delegates.c: Rebuild.
11857 * target.c (update_current_target): Don't inherit or default
11858 to_supports_enable_disable_tracepoint.
11859 * target.h (struct target_ops)
11860 <to_supports_enable_disable_tracepoint>: Use
11861 TARGET_DEFAULT_RETURN.
11862
11863 2014-02-19 Tom Tromey <tromey@redhat.com>
11864
11865 * target-delegates.c: Rebuild.
11866 * target.c (update_current_target): Don't inherit or default
11867 to_supports_multi_process.
11868 * target.h (struct target_ops) <to_supports_multi_process>: Use
11869 TARGET_DEFAULT_RETURN.
11870
11871 2014-02-19 Tom Tromey <tromey@redhat.com>
11872
11873 * target-delegates.c: Rebuild.
11874 * target.c (update_current_target): Don't inherit or default
11875 to_get_ada_task_ptid.
11876 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11877 TARGET_DEFAULT_FUNC.
11878
11879 2014-02-19 Tom Tromey <tromey@redhat.com>
11880
11881 * target-delegates.c: Rebuild.
11882 * target.c (update_current_target): Don't inherit or default
11883 to_thread_architecture.
11884 * target.h (struct target_ops) <to_thread_architecture>: Use
11885 TARGET_DEFAULT_FUNC.
11886
11887 2014-02-19 Tom Tromey <tromey@redhat.com>
11888
11889 * target-delegates.c: Rebuild.
11890 * target.c (update_current_target): Don't inherit or default
11891 to_execution_direction.
11892 * target.h (struct target_ops) <to_execution_direction>: Use
11893 TARGET_DEFAULT_FUNC.
11894
11895 2014-02-19 Tom Tromey <tromey@redhat.com>
11896
11897 * target-delegates.c: Rebuild.
11898 * target.c (update_current_target): Don't inherit or default
11899 to_can_execute_reverse.
11900 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11901 TARGET_DEFAULT_RETURN.
11902 (target_can_execute_reverse): Unconditionally delegate.
11903
11904 2014-02-19 Tom Tromey <tromey@redhat.com>
11905
11906 * target-delegates.c: Rebuild.
11907 * target.c (update_current_target): Don't inherit or default
11908 to_goto_bookmark.
11909 (dummy_goto_bookmark): Remove.
11910 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11911 * target.h (struct target_ops) <to_goto_bookmark>: Use
11912 TARGET_DEFAULT_NORETURN.
11913
11914 2014-02-19 Tom Tromey <tromey@redhat.com>
11915
11916 * target-delegates.c: Rebuild.
11917 * target.c (update_current_target): Don't inherit or default
11918 to_get_bookmark.
11919 (dummy_get_bookmark): Remove.
11920 (init_dummy_target): Don't inherit or default to_get_bookmark.
11921 * target.h (struct target_ops) <to_get_bookmark>: Use
11922 TARGET_DEFAULT_NORETURN
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_make_corefile_notes.
11929 (init_dummy_target): Don't initialize to_make_corefile_notes.
11930 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11931 TARGET_DEFAULT_FUNC.
11932
11933 2014-02-19 Tom Tromey <tromey@redhat.com>
11934
11935 * target-delegates.c: Rebuild.
11936 * target.c (update_current_target): Don't inherit or default
11937 to_find_memory_regions.
11938 (init_dummy_target): Don't initialize to_find_memory_regions.
11939 * target.h (struct target_ops) <to_find_memory_regions>: Use
11940 TARGET_DEFAULT_FUNC.
11941
11942 2014-02-19 Tom Tromey <tromey@redhat.com>
11943
11944 * target-delegates.c: Rebuild.
11945 * target.c (update_current_target): Don't inherit or default
11946 to_log_command.
11947 * target.h (struct target_ops) <to_log_command>: Use
11948 TARGET_DEFAULT_IGNORE.
11949 (target_log_command): Unconditionally delegate.
11950
11951 2014-02-19 Tom Tromey <tromey@redhat.com>
11952
11953 * target-delegates.c: Rebuild.
11954 * target.c (update_current_target): Don't inherit or default
11955 to_pid_to_exec_file.
11956 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11957 TARGET_DEFAULT_RETURN.
11958
11959 2014-02-19 Tom Tromey <tromey@redhat.com>
11960
11961 * target-delegates.c: Rebuild.
11962 * target.c (update_current_target): Don't inherit or default
11963 to_thread_name.
11964 (target_thread_name): Unconditionally delegate.
11965 * target.h (struct target_ops) <to_thread_name>: Use
11966 TARGET_DEFAULT_RETURN.
11967
11968 2014-02-19 Tom Tromey <tromey@redhat.com>
11969
11970 * target-delegates.c: Rebuild.
11971 * target.c (update_current_target): Don't inherit or default
11972 to_extra_thread_info.
11973 * target.h (struct target_ops) <to_extra_thread_info>: Use
11974 TARGET_DEFAULT_RETURN.
11975
11976 2014-02-19 Tom Tromey <tromey@redhat.com>
11977
11978 * target-delegates.c: Rebuild.
11979 * target.c (update_current_target): Don't inherit or default
11980 to_has_exited.
11981 * target.h (struct target_ops) <to_has_exited>: Use
11982 TARGET_DEFAULT_RETURN..
11983
11984 2014-02-19 Tom Tromey <tromey@redhat.com>
11985
11986 * target-delegates.c: Rebuild.
11987 * target.c (update_current_target): Don't inherit or default
11988 to_set_syscall_catchpoint.
11989 (return_one): Remove.
11990 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11991 TARGET_DEFAULT_RETURN.
11992
11993 2014-02-19 Tom Tromey <tromey@redhat.com>
11994
11995 * target-delegates.c: Rebuild.
11996 * target.c (update_current_target): Don't inherit or default
11997 to_insert_exec_catchpoint.
11998 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11999 TARGET_DEFAULT_RETURN.
12000
12001 2014-01-08 Tom Tromey <tromey@redhat.com>
12002
12003 * target-delegates.c: Rebuild.
12004 * target.c (update_current_target): Don't inherit or default
12005 to_insert_exec_catchpoint.
12006 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12007 TARGET_DEFAULT_RETURN.
12008
12009 2014-02-19 Tom Tromey <tromey@redhat.com>
12010
12011 * target-delegates.c: Rebuild.
12012 * target.c (update_current_target): Don't inherit or default
12013 to_remove_vfork_catchpoint.
12014 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12015 TARGET_DEFAULT_RETURN.
12016
12017 2014-02-19 Tom Tromey <tromey@redhat.com>
12018
12019 * target-delegates.c: Rebuild.
12020 * target.c (update_current_target): Don't inherit or default
12021 to_insert_vfork_catchpoint.
12022 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12023 TARGET_DEFAULT_RETURN.
12024
12025 2014-02-19 Tom Tromey <tromey@redhat.com>
12026
12027 * target-delegates.c: Rebuild.
12028 * target.c (update_current_target): Don't inherit or default
12029 to_remove_fork_catchpoint.
12030 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12031 TARGET_DEFAULT_RETURN.
12032
12033 2014-02-19 Tom Tromey <tromey@redhat.com>
12034
12035 * target-delegates.c: Rebuild.
12036 * target.c (update_current_target): Don't inherit or default
12037 to_insert_fork_catchpoint.
12038 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12039 TARGET_DEFAULT_RETURN.
12040
12041 2014-02-19 Tom Tromey <tromey@redhat.com>
12042
12043 * target-delegates.c: Rebuild.
12044 * target.c (update_current_target): Don't inherit or default
12045 to_post_startup_inferior.
12046 * target.h (struct target_ops) <to_post_startup_inferior>: Use
12047 TARGET_DEFAULT_IGNORE.
12048
12049 2014-02-19 Tom Tromey <tromey@redhat.com>
12050
12051 * target-delegates.c: Rebuild.
12052 * target.c (update_current_target): Don't inherit or default
12053 to_load.
12054 * target.h (struct target_ops) <to_load>: Use
12055 TARGET_DEFAULT_NORETURN.
12056
12057 2014-02-19 Tom Tromey <tromey@redhat.com>
12058
12059 * target-delegates.c: Rebuild.
12060 * target.c (update_current_target): Don't inherit or default
12061 to_terminal_info.
12062 * target.h (struct target_ops) <to_terminal_info>: Use
12063 TARGET_DEFAULT_FUNC.
12064
12065 2014-02-19 Tom Tromey <tromey@redhat.com>
12066
12067 * target-delegates.c: Rebuild.
12068 * target.c (update_current_target): Don't inherit or default
12069 to_terminal_save_ours.
12070 * target.h (struct target_ops) <to_terminal_save_ours>: Use
12071 TARGET_DEFAULT_IGNORE.
12072
12073 2014-02-19 Tom Tromey <tromey@redhat.com>
12074
12075 * target-delegates.c: Rebuild.
12076 * target.c (update_current_target): Don't inherit or default
12077 to_terminal_ours.
12078 * target.h (struct target_ops) <to_terminal_ours>: Use
12079 TARGET_DEFAULT_IGNORE.
12080
12081 2014-02-19 Tom Tromey <tromey@redhat.com>
12082
12083 * target-delegates.c: Rebuild.
12084 * target.c (update_current_target): Don't inherit or default
12085 to_terminal_ours_for_output.
12086 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12087 TARGET_DEFAULT_IGNORE.
12088
12089 2014-02-19 Tom Tromey <tromey@redhat.com>
12090
12091 * target-delegates.c: Rebuild.
12092 * target.c (update_current_target): Don't inherit or default
12093 to_terminal_inferior.
12094 * target.h (struct target_ops) <to_terminal_inferior>: Use
12095 TARGET_DEFAULT_IGNORE.
12096
12097 2014-02-19 Tom Tromey <tromey@redhat.com>
12098
12099 * target-delegates.c: Rebuild.
12100 * target.c (update_current_target): Don't inherit or default
12101 to_terminal_init.
12102 * target.h (struct target_ops) <to_terminal_init>: Use
12103 TARGET_DEFAULT_IGNORE.
12104
12105 2014-02-19 Tom Tromey <tromey@redhat.com>
12106
12107 * target-delegates.c: Rebuild.
12108 * target.c (update_current_target): Don't inherit or default
12109 to_can_accel_watchpoint_condition.
12110 * target.h (struct target_ops)
12111 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12112
12113 2014-02-19 Tom Tromey <tromey@redhat.com>
12114
12115 * target-delegates.c: Rebuild.
12116 * target.c (update_current_target): Don't inherit or default
12117 to_region_ok_for_hw_watchpoint.
12118 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12119 Use TARGET_DEFAULT_FUNC.
12120
12121 2014-02-19 Tom Tromey <tromey@redhat.com>
12122
12123 * target-delegates.c: Rebuild.
12124 * target.c (update_current_target): Don't inherit or default
12125 to_watchpoint_addr_within_range.
12126 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12127 Use TARGET_DEFAULT_FUNC.
12128
12129 2014-02-19 Tom Tromey <tromey@redhat.com>
12130
12131 * target-delegates.c: Rebuild.
12132 * target.c (update_current_target): Don't inherit or default
12133 to_remove_watchpoint.
12134 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12135 TARGET_DEFAULT_NORETURN.
12136
12137 2014-02-19 Tom Tromey <tromey@redhat.com>
12138
12139 * target-delegates.c: Rebuild.
12140 * target.c (update_current_target): Don't inherit or default
12141 to_insert_watchpoint.
12142 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12143 TARGET_DEFAULT_RETURN.
12144
12145 2014-02-19 Tom Tromey <tromey@redhat.com>
12146
12147 * target-delegates.c: Rebuild.
12148 * target.c (update_current_target): Don't inherit or default
12149 to_remove_hw_breakpoint.
12150 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12151 TARGET_DEFAULT_RETURN.
12152
12153 2014-02-19 Tom Tromey <tromey@redhat.com>
12154
12155 * target-delegates.c: Rebuild.
12156 * target.c (update_current_target): Don't inherit or default
12157 to_insert_hw_breakpoint.
12158 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12159 TARGET_DEFAULT_RETURN.
12160
12161 2014-02-19 Tom Tromey <tromey@redhat.com>
12162
12163 * target-delegates.c: Rebuild.
12164 * target.c (update_current_target): Don't inherit or default
12165 to_can_use_hw_breakpoint.
12166 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12167 TARGET_DEFAULT_RETURN.
12168
12169 2014-02-19 Tom Tromey <tromey@redhat.com>
12170
12171 * target-delegates.c: Rebuild.
12172 * target.c (update_current_target): Don't inherit or default
12173 to_files_info.
12174 * target.h (struct target_ops) <to_files_info>: Use
12175 TARGET_DEFAULT_IGNORE.
12176
12177 2014-02-19 Tom Tromey <tromey@redhat.com>
12178
12179 * target-delegates.c: Rebuild.
12180 * target.c (update_current_target): Don't inherit or default
12181 to_store.
12182 * target.h (struct target_ops) <to_store>: Use
12183 TARGET_DEFAULT_NORETURN.
12184
12185 2014-02-19 Tom Tromey <tromey@redhat.com>
12186
12187 * target-delegates.c: Rebuild.
12188 * target.c (update_current_target): Don't inherit or default
12189 to_post_attach.
12190 * target.h (struct target_ops) <to_post_attach>: Use
12191 TARGET_DEFAULT_IGNORE.
12192
12193 2014-02-19 Tom Tromey <tromey@redhat.com>
12194
12195 * target-delegates.c: Rebuild.
12196 * target.c (update_current_target): Don't inherit or default
12197 to_rcmd.
12198 (default_rcmd): New function.
12199 (do_monitor_command): Unconditionally delegate.
12200 * target.h (struct target_ops) <to_rmcd>: Use
12201 TARGET_DEFAULT_FUNC.
12202
12203 2014-02-19 Tom Tromey <tromey@redhat.com>
12204
12205 * target-delegates.c: Rebuild.
12206 * target.c (init_dummy_target): Don't initialize to_attach.
12207 (target_attach): Unconditionally delegate.
12208 * target.h (struct target_ops) <to_attach>: Use
12209 TARGET_DEFAULT_FUNC.
12210
12211 2014-02-19 Tom Tromey <tromey@redhat.com>
12212
12213 * target-delegates.c: Rebuild.
12214 * target.c (target_detach): Unconditionally delegate.
12215 (init_dummy_target): Don't initialize to_detach.
12216 * target.h (struct target_ops) <to_detach>: Use
12217 TARGET_DEFAULT_IGNORE.
12218
12219 2014-02-19 Tom Tromey <tromey@redhat.com>
12220
12221 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12222 Add argument.
12223 (target_augmented_libraries_svr4_read): Add argument.
12224 * target.c (update_current_target): Update.
12225 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12226 argument.
12227
12228 2014-02-19 Tom Tromey <tromey@redhat.com>
12229
12230 * target.h (struct target_ops) <to_call_history_range>: Add
12231 argument.
12232 * target.c (target_call_history_range): Add argument.
12233 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12234 argument.
12235 (record_btrace_call_history_from): Update.
12236
12237 2014-02-19 Tom Tromey <tromey@redhat.com>
12238
12239 * target.h (struct target_ops) <to_call_history_from>: Add
12240 argument.
12241 * target.c (target_call_history_from): Add argument.
12242 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12243 argument.
12244
12245 2014-02-19 Tom Tromey <tromey@redhat.com>
12246
12247 * target.h (struct target_ops) <to_call_history>: Add argument.
12248 * target.c (target_call_history): Add argument.
12249 * record-btrace.c (record_btrace_call_history): Add 'self'
12250 argument.
12251
12252 2014-02-19 Tom Tromey <tromey@redhat.com>
12253
12254 * target.h (struct target_ops) <to_insn_history_range>: Add
12255 argument.
12256 * target.c (target_insn_history_range): Add argument.
12257 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12258 argument.
12259 (record_btrace_insn_history_from): Update.
12260
12261 2014-02-19 Tom Tromey <tromey@redhat.com>
12262
12263 * target.h (struct target_ops) <to_insn_history_from>: Add
12264 argument.
12265 * target.c (target_insn_history_from): Add argument.
12266 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12267 argument.
12268
12269 2014-02-19 Tom Tromey <tromey@redhat.com>
12270
12271 * target.h (struct target_ops) <to_insn_history>: Add argument.
12272 * target.c (target_insn_history): Add argument.
12273 * record-btrace.c (record_btrace_insn_history): Add 'self'
12274 argument.
12275
12276 2014-02-19 Tom Tromey <tromey@redhat.com>
12277
12278 * target.h (struct target_ops) <to_goto_record>: Add argument.
12279 * target.c (target_goto_record): Add argument.
12280 * record-full.c (record_full_goto): Add 'self' argument.
12281 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12282
12283 2014-02-19 Tom Tromey <tromey@redhat.com>
12284
12285 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12286 * target.c (target_goto_record_end): Add argument.
12287 * record-full.c (record_full_goto_end): Add 'self' argument.
12288 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12289
12290 2014-02-19 Tom Tromey <tromey@redhat.com>
12291
12292 * target.h (struct target_ops) <to_goto_record_begin>: Add
12293 argument.
12294 * target.c (target_goto_record_begin): Add argument.
12295 * record-full.c (record_full_goto_begin): Add 'self' argument.
12296 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12297 argument.
12298
12299 2014-02-19 Tom Tromey <tromey@redhat.com>
12300
12301 * target.h (struct target_ops) <to_record_is_replaying>: Add
12302 argument.
12303 * target.c (target_record_is_replaying): Add argument.
12304 * record-full.c (record_full_is_replaying): Add 'self' argument.
12305 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12306 argument.
12307 (record_btrace_xfer_partial, record_btrace_store_registers)
12308 (record_btrace_prepare_to_store, record_btrace_resume)
12309 (record_btrace_wait, record_btrace_decr_pc_after_break)
12310 (record_btrace_find_new_threads, record_btrace_thread_alive):
12311 Update.
12312
12313 2014-02-19 Tom Tromey <tromey@redhat.com>
12314
12315 * target.h (struct target_ops) <to_delete_record>: Add argument.
12316 * target.c (target_delete_record): Add argument.
12317 * record-full.c (record_full_delete): Add 'self' argument.
12318
12319 2014-02-19 Tom Tromey <tromey@redhat.com>
12320
12321 * target.h (struct target_ops) <to_save_record>: Add argument.
12322 * target.c (target_save_record): Add argument.
12323 * record-full.c (record_full_save): Add 'self' argument.
12324 (record_full_save): Add 'self' argument.
12325
12326 2014-02-19 Tom Tromey <tromey@redhat.com>
12327
12328 * target.h (struct target_ops) <to_info_record>: Add argument.
12329 * target.c (target_info_record): Add argument.
12330 * record.c (info_record_command): Add argument.
12331 * record-full.c (record_full_info): Add 'self' argument.
12332 * record-btrace.c (record_btrace_info): Add 'self' argument.
12333
12334 2014-02-19 Tom Tromey <tromey@redhat.com>
12335
12336 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12337 * target.c (target_stop_recording): Add argument.
12338 * record.c (record_stop): Add argument.
12339 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12340 argument.
12341
12342 2014-02-19 Tom Tromey <tromey@redhat.com>
12343
12344 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12345 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12346 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12347 argument.
12348 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12349 (_initialize_amd64_linux_nat): Use it.
12350 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12351 (_initialize_i386_linux_nat): Use it.
12352
12353 2014-02-19 Tom Tromey <tromey@redhat.com>
12354
12355 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12356 * target.c (target_teardown_btrace): Add argument.
12357 * remote.c (remote_teardown_btrace): Add 'self' argument.
12358 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12359 argument.
12360 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12361 argument.
12362
12363 2014-02-19 Tom Tromey <tromey@redhat.com>
12364
12365 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12366 * target.c (target_disable_btrace): Add argument.
12367 * remote.c (remote_disable_btrace): Add 'self' argument.
12368 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12369 argument.
12370 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12371 argument.
12372
12373 2014-02-19 Tom Tromey <tromey@redhat.com>
12374
12375 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12376 * target.c (target_enable_btrace): Add argument.
12377 * remote.c (remote_enable_btrace): Add 'self' argument.
12378 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12379 argument.
12380 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12381 argument.
12382
12383 2014-02-19 Tom Tromey <tromey@redhat.com>
12384
12385 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12386 (target_can_use_agent): Add argument.
12387 * target.c (update_current_target): Update.
12388 * remote.c (remote_can_use_agent): Add 'self' argument.
12389 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12390
12391 2014-02-19 Tom Tromey <tromey@redhat.com>
12392
12393 * target.h (struct target_ops) <to_use_agent>: Add argument.
12394 (target_use_agent): Add argument.
12395 * target.c (update_current_target): Update.
12396 * remote.c (remote_use_agent): Add 'self' argument.
12397 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12398
12399 2014-02-19 Tom Tromey <tromey@redhat.com>
12400
12401 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12402 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12403 (target_traceframe_info): Add argument.
12404 * target.c (update_current_target): Update.
12405 * remote.c (remote_traceframe_info): Add 'self' argument.
12406 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12407
12408 2014-02-19 Tom Tromey <tromey@redhat.com>
12409
12410 * target.h (target_static_tracepoint_markers_by_strid): Add
12411 argument.
12412 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12413 'self' argument.
12414 * target.c (update_current_target): Update.
12415 * remote.c (struct target_ops)
12416 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12417 * linux-nat.c (struct target_ops)
12418 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12419
12420 2014-02-19 Tom Tromey <tromey@redhat.com>
12421
12422 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12423 Add argument.
12424 (target_static_tracepoint_marker_at): Add argument.
12425 * target.c (update_current_target): Update.
12426 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12427 argument.
12428
12429 2014-02-19 Tom Tromey <tromey@redhat.com>
12430
12431 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12432 (target_set_permissions): Add argument.
12433 * target.c (update_current_target): Update.
12434 * remote.c (remote_set_permissions): Add 'self' argument.
12435 (remote_start_remote): Update.
12436
12437 2014-02-19 Tom Tromey <tromey@redhat.com>
12438
12439 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12440 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12441 (target_get_tib_address): Add argument.
12442 * target.c (update_current_target): Update.
12443 * remote.c (remote_get_tib_address): Add 'self' argument.
12444
12445 2014-02-19 Tom Tromey <tromey@redhat.com>
12446
12447 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12448 (target_set_trace_notes): Add argument.
12449 * target.c (update_current_target): Update.
12450 * remote.c (remote_set_trace_notes): Add 'self' argument.
12451
12452 2014-02-19 Tom Tromey <tromey@redhat.com>
12453
12454 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12455 argument.
12456 (target_set_trace_buffer_size): Add argument.
12457 * target.c (update_current_target): Update.
12458 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12459
12460 2014-02-19 Tom Tromey <tromey@redhat.com>
12461
12462 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12463 argument.
12464 (target_set_circular_trace_buffer): Add argument.
12465 * target.c (update_current_target): Update.
12466 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12467 argument.
12468
12469 2014-02-19 Tom Tromey <tromey@redhat.com>
12470
12471 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12472 argument.
12473 (target_set_disconnected_tracing): Add argument.
12474 * target.c (update_current_target): Update.
12475 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12476
12477 2014-02-19 Tom Tromey <tromey@redhat.com>
12478
12479 * target.h (struct target_ops)
12480 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12481 (target_get_min_fast_tracepoint_insn_len): Add argument.
12482 * target.c (update_current_target): Update.
12483 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12484 argument.
12485
12486 2014-02-19 Tom Tromey <tromey@redhat.com>
12487
12488 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12489 argument.
12490 (target_get_raw_trace_data): Add argument.
12491 * target.c (update_current_target): Update.
12492 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12493
12494 2014-02-19 Tom Tromey <tromey@redhat.com>
12495
12496 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12497 Add argument.
12498 (target_upload_trace_state_variables): Add argument.
12499 * target.c (update_current_target): Update.
12500 * remote.c (remote_upload_trace_state_variables): Add 'self'
12501 argument.
12502 (remote_start_remote): Update.
12503
12504 2014-02-19 Tom Tromey <tromey@redhat.com>
12505
12506 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12507 argument.
12508 (target_upload_tracepoints): Add argument.
12509 * target.c (update_current_target): Update.
12510 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12511 (remote_start_remote): Update.
12512
12513 2014-02-19 Tom Tromey <tromey@redhat.com>
12514
12515 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12516 (target_save_trace_data): Add argument.
12517 * target.c (update_current_target): Update.
12518 * remote.c (remote_save_trace_data): Add 'self' argument.
12519
12520 2014-02-19 Tom Tromey <tromey@redhat.com>
12521
12522 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12523 argument.
12524 * target.h (struct target_ops)
12525 <to_get_trace_state_variable_value>: Add argument.
12526 (target_get_trace_state_variable_value): Add argument.
12527 * target.c (update_current_target): Update.
12528 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12529 argument.
12530 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12531
12532 2014-02-19 Tom Tromey <tromey@redhat.com>
12533
12534 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12535 * target.h (struct target_ops) <to_trace_find>: Add argument.
12536 (target_trace_find): Add argument.
12537 * target.c (update_current_target): Update.
12538 * remote.c (remote_trace_find): Add 'self' argument.
12539 * ctf.c (ctf_trace_find): Add 'self' argument.
12540
12541 2014-02-19 Tom Tromey <tromey@redhat.com>
12542
12543 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12544 (target_trace_stop): Add argument.
12545 * target.c (update_current_target): Update.
12546 * remote.c (remote_trace_stop): Add 'self' argument.
12547
12548 2014-02-19 Tom Tromey <tromey@redhat.com>
12549
12550 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12551 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12552 argument.
12553 (target_get_tracepoint_status): Add argument.
12554 * target.c (update_current_target): Update.
12555 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12556
12557 2014-02-19 Tom Tromey <tromey@redhat.com>
12558
12559 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12560 * target.h (struct target_ops) <to_get_trace_status>: Add
12561 argument.
12562 (target_get_trace_status): Add argument.
12563 * target.c (update_current_target): Update.
12564 * remote.c (remote_get_trace_status): Add 'self' argument.
12565 (remote_start_remote, remote_can_download_tracepoint): Update.
12566 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12567
12568 2014-02-19 Tom Tromey <tromey@redhat.com>
12569
12570 * target.h (struct target_ops) <to_trace_start>: Add argument.
12571 (target_trace_start): Add argument.
12572 * target.c (update_current_target): Update.
12573 * remote.c (remote_trace_start): Add 'self' argument.
12574
12575 2014-02-19 Tom Tromey <tromey@redhat.com>
12576
12577 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12578 Add argument.
12579 (target_trace_set_readonly_regions): Add argument.
12580 * target.c (update_current_target): Update.
12581 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12582 argument.
12583
12584 2014-02-19 Tom Tromey <tromey@redhat.com>
12585
12586 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12587 argument.
12588 (target_disable_tracepoint): Add argument.
12589 * target.c (update_current_target): Update.
12590 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12591
12592 2014-02-19 Tom Tromey <tromey@redhat.com>
12593
12594 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12595 argument.
12596 (target_enable_tracepoint): Add argument.
12597 * target.c (update_current_target): Update.
12598 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12599
12600 2014-02-19 Tom Tromey <tromey@redhat.com>
12601
12602 * target.h (struct target_ops) <to_download_trace_state_variable>:
12603 Add argument.
12604 (target_download_trace_state_variable): Add argument.
12605 * target.c (update_current_target): Update.
12606 * remote.c (remote_download_trace_state_variable): Add 'self'
12607 argument.
12608
12609 2014-02-19 Tom Tromey <tromey@redhat.com>
12610
12611 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12612 argument.
12613 (target_can_download_tracepoint): Add argument.
12614 * target.c (update_current_target): Update.
12615 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12616
12617 2014-02-19 Tom Tromey <tromey@redhat.com>
12618
12619 * target.h (struct target_ops) <to_download_tracepoint>: Add
12620 argument.
12621 (target_download_tracepoint): Add argument.
12622 * target.c (update_current_target): Update.
12623 * remote.c (remote_download_tracepoint): Add 'self' argument.
12624
12625 2014-02-19 Tom Tromey <tromey@redhat.com>
12626
12627 * target.h (struct target_ops) <to_trace_init>: Add argument.
12628 (target_trace_init): Add argument.
12629 * target.c (update_current_target): Update.
12630 * remote.c (remote_trace_init): Add 'self' argument.
12631
12632 2014-02-19 Tom Tromey <tromey@redhat.com>
12633
12634 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12635 * target.c (target_fileio_readlink): Add argument.
12636 * remote.c (remote_hostio_readlink): Add 'self' argument.
12637 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12638
12639 2014-02-19 Tom Tromey <tromey@redhat.com>
12640
12641 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12642 * target.c (target_fileio_unlink): Add argument.
12643 * remote.c (remote_hostio_unlink): Add 'self' argument.
12644 (remote_file_delete): Update.
12645 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12646
12647 2014-02-19 Tom Tromey <tromey@redhat.com>
12648
12649 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12650 * target.c (target_fileio_close): Add argument.
12651 * remote.c (remote_hostio_close): Add 'self' argument.
12652 (remote_hostio_close_cleanup): Update.
12653 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12654 Update.
12655 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12656
12657 2014-02-19 Tom Tromey <tromey@redhat.com>
12658
12659 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12660 * target.c (target_fileio_pread): Add argument.
12661 * remote.c (remote_hostio_pread): Add 'self' argument.
12662 (remote_bfd_iovec_pread, remote_file_get): Update.
12663 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12664
12665 2014-02-19 Tom Tromey <tromey@redhat.com>
12666
12667 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12668 * target.c (target_fileio_pwrite): Add argument.
12669 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12670 (remote_file_put): Update.
12671 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12672
12673 2014-02-19 Tom Tromey <tromey@redhat.com>
12674
12675 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12676 * target.c (target_fileio_open): Add argument.
12677 * remote.c (remote_hostio_open): Add 'self' argument.
12678 (remote_bfd_iovec_open): Add 'self' argument.
12679 (remote_file_put): Add 'self' argument.
12680 (remote_file_get): Add 'self' argument.
12681 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12682
12683 2014-02-19 Tom Tromey <tromey@redhat.com>
12684
12685 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12686 Add argument.
12687 (target_can_run_breakpoint_commands): Add argument.
12688 * target.c (update_current_target): Update.
12689 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12690 argument.
12691 (remote_insert_breakpoint): Add 'self' argument.
12692 (remote_insert_hw_breakpoint): Add 'self' argument.
12693 (remote_can_run_breakpoint_commands): Add 'self' argument.
12694
12695 2014-02-19 Tom Tromey <tromey@redhat.com>
12696
12697 * target.h (struct target_ops)
12698 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12699 (target_supports_evaluation_of_breakpoint_conditions): Add
12700 argument.
12701 * target.c (update_current_target): Update.
12702 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12703 argument.
12704 (remote_insert_breakpoint): Add 'self' argument.
12705 (remote_insert_hw_breakpoint): Add 'self' argument.
12706 (remote_supports_cond_breakpoints): Add 'self' argument.
12707
12708 2014-02-19 Tom Tromey <tromey@redhat.com>
12709
12710 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12711 argument.
12712 (target_supports_string_tracing): Add argument.
12713 * target.c (update_current_target): Update.
12714 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12715
12716 2014-02-19 Tom Tromey <tromey@redhat.com>
12717
12718 * target.h (struct target_ops)
12719 <to_supports_disable_randomization>: Add argument.
12720 * target.c (find_default_supports_disable_randomization): Add
12721 argument.
12722 (target_supports_disable_randomization): Add argument.
12723 (find_default_supports_disable_randomization): Add 'self'
12724 argument.
12725 * remote.c (extended_remote_supports_disable_randomization): Add
12726 'self' argument.
12727 (remote_supports_disable_randomization): Add 'self' argument.
12728 (extended_remote_create_inferior): Update.
12729 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12730 'self' argument.
12731
12732 2014-02-19 Tom Tromey <tromey@redhat.com>
12733
12734 * target.h (struct target_ops)
12735 <to_supports_enable_disable_tracepoint>: Add argument.
12736 (target_supports_enable_disable_tracepoint): Add argument.
12737 * target.c (update_current_target): Update.
12738 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12739 argument.
12740
12741 2014-02-19 Tom Tromey <tromey@redhat.com>
12742
12743 * target.h (struct target_ops) <to_supports_multi_process>: Add
12744 argument.
12745 (target_supports_multi_process): Add argument.
12746 * target.c (update_current_target): Update.
12747 * remote.c (remote_supports_multi_process): Add 'self' argument.
12748 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12749 argument.
12750 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12751 argument.
12752
12753 2014-02-19 Tom Tromey <tromey@redhat.com>
12754
12755 * target.h (struct target_ops) <to_execution_direction>: Add
12756 argument.
12757 (target_execution_direction): Add argument.
12758 * target.c (default_execution_direction): Add 'self' argument.
12759 * record-full.c (record_full_execution_direction): Add 'self'
12760 argument.
12761
12762 2014-02-19 Tom Tromey <tromey@redhat.com>
12763
12764 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12765 argument.
12766 (target_can_execute_reverse): Add argument.
12767 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12768 * record-full.c (record_full_can_execute_reverse): Add 'self'
12769 argument.
12770 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12771 argument.
12772
12773 2014-02-19 Tom Tromey <tromey@redhat.com>
12774
12775 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12776 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12777 argument.
12778 (target_get_ada_task_ptid): Add argument.
12779 * target.c (update_current_target): Update.
12780 (default_get_ada_task_ptid): Add 'self' argument.
12781 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12782 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12783 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12784 argument.
12785 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12786 argument.
12787 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12788 argument.
12789 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12790 argument.
12791 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12792 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12793 argument.
12794
12795 2014-02-19 Tom Tromey <tromey@redhat.com>
12796
12797 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12798 (target_goto_bookmark): Add argument.
12799 * target.c (dummy_goto_bookmark): Add 'self' argument.
12800 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12801
12802 2014-02-19 Tom Tromey <tromey@redhat.com>
12803
12804 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12805 (target_get_bookmark): Add argument.
12806 * target.c (dummy_get_bookmark): Add 'self' argument.
12807 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12808
12809 2014-02-19 Tom Tromey <tromey@redhat.com>
12810
12811 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12812 argument.
12813 (target_make_corefile_notes): Add argument.
12814 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12815 * procfs.c (procfs_make_note_section): Add 'self' argument.
12816 (procfs_make_note_section): Add 'self' argument.
12817 (procfs_make_note_section): Add 'self' argument.
12818 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12819 argument.
12820 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12821 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12822 * exec.c (exec_make_note_section): Add 'self' argument.
12823 (exec_make_note_section): Add 'self' argument.
12824
12825 2014-02-19 Tom Tromey <tromey@redhat.com>
12826
12827 * target.h (struct target_ops) <to_find_memory_regions>: Add
12828 argument.
12829 (target_find_memory_regions): Add argument.
12830 * target.c (dummy_find_memory_regions): Add 'self' argument.
12831 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12832 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12833 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12834 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12835 * exec. (exec_do_find_memory_regions): New global.
12836 (exec_set_find_memory_regions): Rewrite.
12837 (exec_find_memory_regions): New function.
12838 (init_exec_ops): Use exec_find_memory_regions.
12839
12840 2014-02-19 Tom Tromey <tromey@redhat.com>
12841
12842 * target.h (struct target_ops) <to_supports_non_stop>: Add
12843 argument.
12844 * target.c (find_default_supports_non_stop): Add argument.
12845 (target_supports_non_stop): Add argument.
12846 (find_default_supports_non_stop): Add 'self' argument.
12847 * remote.c (remote_supports_non_stop): Add 'self' argument.
12848 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12849
12850 2014-02-19 Tom Tromey <tromey@redhat.com>
12851
12852 * target.h (struct target_ops) <to_log_command>: Add argument.
12853 (target_log_command): Add argument.
12854 * serial.h (serial_log_command): Add 'self' argument.
12855 * serial.c (serial_log_command): Add 'self' argument.
12856
12857 2014-02-19 Tom Tromey <tromey@redhat.com>
12858
12859 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12860 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12861 argument.
12862 (target_pid_to_exec_file): Add argument.
12863 * target.c (debug_to_pid_to_exec_file): Add argument.
12864 (update_current_target): Update.
12865 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12866 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12867 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12868 (linux_handle_extended_wait): Update.
12869 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12870 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12871 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12872 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12873
12874 2014-02-19 Tom Tromey <tromey@redhat.com>
12875
12876 * target.h (struct target_ops) <to_rcmd>: Add argument.
12877 (target_rcmd): Add argument.
12878 * target.c (debug_to_rcmd): Add argument.
12879 (update_current_target, do_monitor_command): Update.
12880 * remote.c (remote_rcmd): Add 'self' argument.
12881 * monitor.c (monitor_rcmd): Add 'self' argument.
12882
12883 2014-02-19 Tom Tromey <tromey@redhat.com>
12884
12885 * windows-nat.c (windows_stop): Add 'self' argument.
12886 * target.h (struct target_ops) <to_stop>: Add argument.
12887 * target.c (target_stop): Add argument.
12888 (debug_to_stop): Add argument.
12889 (update_current_target): Update.
12890 * remote.c (remote_stop): Add 'self' argument.
12891 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12892 (gdbsim_cntrl_c): Update.
12893 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12894 * procfs.c (procfs_stop): Add 'self' argument.
12895 * nto-procfs.c (procfs_stop): Add 'self' argument.
12896 * monitor.c (monitor_stop): Add 'self' argument.
12897 (monitor_open): Update.
12898 * linux-nat.c (linux_nat_stop): Add argument.
12899 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12900 * gnu-nat.c (gnu_stop): Add 'self' argument.
12901 * darwin-nat.c (darwin_stop): Add 'self' argument.
12902
12903 2014-02-19 Tom Tromey <tromey@redhat.com>
12904
12905 * target.h (struct target_ops) <to_thread_name>: Add argument.
12906 * target.c (target_thread_name): Add argument.
12907 (update_current_target): Update.
12908 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12909
12910 2014-02-19 Tom Tromey <tromey@redhat.com>
12911
12912 * target.h (struct target_ops) <to_extra_thread_info>: Add
12913 argument.
12914 (target_extra_thread_info): Add argument.
12915 * target.c (update_current_target): Update.
12916 * remote.c (remote_threads_extra_info): Add 'self' argument.
12917 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12918 argument.
12919 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12920 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12921 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12922 argument.
12923 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12924 argument.
12925 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12926 argument.
12927 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12928 argument.
12929
12930 2014-02-19 Tom Tromey <tromey@redhat.com>
12931
12932 * target.h (struct target_ops) <to_program_signals>: Add argument.
12933 * target.c (target_program_signals): Add argument.
12934 * remote.c (remote_program_signals): Add 'self' argument.
12935
12936 2014-02-19 Tom Tromey <tromey@redhat.com>
12937
12938 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12939 * target.c (target_pass_signals): Add argument.
12940 * remote.c (remote_pass_signals): Add 'self' argument.
12941 (remote_start_remote): Update.
12942 * procfs.c (procfs_pass_signals): Add 'self' argument.
12943 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12944 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12945 (linux_nat_create_inferior, linux_nat_attach): Update.
12946
12947 2014-02-19 Tom Tromey <tromey@redhat.com>
12948
12949 * windows-nat.c (windows_can_run): Add 'self' argument.
12950 * target.h (struct target_ops) <to_can_run>: Add argument.
12951 (target_can_run): Add argument.
12952 * target.c (debug_to_can_run): Add argument.
12953 (update_current_target): Update.
12954 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12955 * inf-child.c (inf_child_can_run): Add 'self' argument.
12956 * go32-nat.c (go32_can_run): Add 'self' argument.
12957
12958 2014-02-19 Tom Tromey <tromey@redhat.com>
12959
12960 * target.h (struct target_ops) <to_has_exited>: Add argument.
12961 (target_has_exited): Add argument.
12962 * target.c (debug_to_has_exited): Add argument.
12963 (update_current_target): Update.
12964
12965 2014-02-19 Tom Tromey <tromey@redhat.com>
12966
12967 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12968 argument.
12969 (target_set_syscall_catchpoint): Add argument.
12970 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12971 argument.
12972 * target.c (update_current_target): Update.
12973
12974 2014-02-19 Tom Tromey <tromey@redhat.com>
12975
12976 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12977 argument.
12978 (target_remove_exec_catchpoint): Add argument.
12979 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12980 (update_current_target): Update.
12981 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12982 argument.
12983
12984 2014-02-19 Tom Tromey <tromey@redhat.com>
12985
12986 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12987 argument.
12988 (target_insert_exec_catchpoint): Add argument.
12989 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12990 (update_current_target): Update.
12991 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12992 argument.
12993
12994 2014-02-19 Tom Tromey <tromey@redhat.com>
12995
12996 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12997 argument.
12998 (target_remove_vfork_catchpoint): Add argument.
12999 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13000 (update_current_target): Update.
13001 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13002 argument.
13003
13004 2014-02-19 Tom Tromey <tromey@redhat.com>
13005
13006 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13007 argument.
13008 (target_insert_vfork_catchpoint): Add argument.
13009 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13010 (update_current_target): Update.
13011 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13012 argument.
13013
13014 2014-02-19 Tom Tromey <tromey@redhat.com>
13015
13016 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13017 argument.
13018 (target_remove_fork_catchpoint): Add argument.
13019 * target.c (debug_to_remove_fork_catchpoint): Add argument.
13020 (update_current_target): Update.
13021 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13022 argument.
13023
13024 2014-02-19 Tom Tromey <tromey@redhat.com>
13025
13026 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13027 argument.
13028 (target_insert_fork_catchpoint): Add argument.
13029 * target.c (debug_to_insert_fork_catchpoint): Add argument.
13030 (update_current_target): Update.
13031 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13032 argument.
13033
13034 2014-02-19 Tom Tromey <tromey@redhat.com>
13035
13036 * target.h (struct target_ops) <to_post_startup_inferior>: Add
13037 argument.
13038 (target_post_startup_inferior): Add argument.
13039 * target.c (debug_to_post_startup_inferior): Add argument.
13040 (update_current_target): Update.
13041 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13042 argument.
13043 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13044 argument.
13045 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13046 argument.
13047 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13048 argument.
13049 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13050 'self' argument.
13051 (super_post_startup_inferior): Likewise.
13052 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13053 'self' argument.
13054 (super_post_startup_inferior): Likewise.
13055 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13056 Add 'self' argument.
13057 (super_post_startup_inferior): Likewise.
13058
13059 2014-02-19 Tom Tromey <tromey@redhat.com>
13060
13061 * target.h (struct target_ops) <to_load>: Add argument.
13062 * target.c (target_load): Add argument.
13063 (debug_to_load): Add argument.
13064 (update_current_target): Update.
13065 * remote.c (remote_load): Add 'self' argument.
13066 * remote-sim.c (gdbsim_load): Add 'self' argument.
13067 * remote-mips.c (mips_load): Add 'self' argument.
13068 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13069 * monitor.c (monitor_load): Add 'self' argument.
13070 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13071
13072 2014-02-19 Tom Tromey <tromey@redhat.com>
13073
13074 * target.h (struct target_ops) <to_terminal_info>: Add argument.
13075 (target_terminal_info): Add argument.
13076 * target.c (debug_to_terminal_info): Add argument.
13077 (default_terminal_info): Likewise.
13078 * inflow.c (child_terminal_info): Add 'self' argument.
13079 * inferior.h (child_terminal_info): Add 'self' argument.
13080 * go32-nat.c (go32_terminal_info): Add 'self' argument.
13081
13082 2014-02-19 Tom Tromey <tromey@redhat.com>
13083
13084 * target.h (struct target_ops) <to_terminal_save_ours>: Add
13085 argument.
13086 (target_terminal_save_ours): Add argument.
13087 * target.c (debug_to_terminal_save_ours): Add argument.
13088 (update_current_target): Update.
13089 * inflow.c (terminal_save_ours): Add 'self' argument.
13090 * inferior.h (terminal_save_ours): Add 'self' argument.
13091
13092 2014-02-19 Tom Tromey <tromey@redhat.com>
13093
13094 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13095 (target_terminal_ours): Add argument.
13096 * target.c (debug_to_terminal_ours): Add argument.
13097 (update_current_target): Update.
13098 * remote.c (remote_terminal_ours): Add 'self' argument.
13099 (remote_close): Update.
13100 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13101 * inflow.c (terminal_ours): Add 'self' argument.
13102 * inferior.h (terminal_ours): Add 'self' argument.
13103 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13104
13105 2014-02-19 Pedro Alves <palves@redhat.com>
13106 Tom Tromey <tromey@redhat.com>
13107
13108 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13109 argument.
13110 (target_terminal_ours_for_output): Add argument.
13111 * target.c (debug_to_terminal_ours_for_output): Add argument.
13112 (update_current_target): Update.
13113 * inflow.c (terminal_ours_for_output): Add 'self' argument.
13114 * inferior.h (terminal_ours_for_output): Add 'self' argument.
13115 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13116
13117 2014-02-19 Tom Tromey <tromey@redhat.com>
13118
13119 * target.h (struct target_ops) <to_terminal_inferior>: Add
13120 argument.
13121 * target.c (target_terminal_inferior): Add argument.
13122 (update_current_target): Update.
13123 * remote.c (remote_terminal_inferior): Add 'self' argument.
13124 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13125 * inflow.c (terminal_inferior): Add 'self' argument.
13126 * inferior.h (terminal_inferior): Add 'self' argument.
13127 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13128 (go32_terminal_inferior): Add 'self' argument.
13129
13130 2014-02-19 Tom Tromey <tromey@redhat.com>
13131
13132 * target.h (struct target_ops) <to_terminal_init>: Add argument.
13133 (target_terminal_init): Add argument.
13134 * target.c (debug_to_terminal_init): Add argument.
13135 (update_current_target): Update.
13136 * inflow.c (terminal_init_inferior): Add 'self' argument.
13137 * inferior.h (terminal_init_inferior): Add 'self' argument.
13138 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13139 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13140
13141 2014-02-19 Tom Tromey <tromey@redhat.com>
13142
13143 * target.h (struct target_ops)
13144 <to_can_accel_watchpoint_condition>: Add argument.
13145 (target_can_accel_watchpoint_condition): Add argument.
13146 * target.c (debug_to_can_accel_watchpoint_condition): Add
13147 argument.
13148 (update_current_target): Update.
13149 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13150 'self' argument.
13151
13152 2014-02-19 Tom Tromey <tromey@redhat.com>
13153
13154 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13155 Add argument.
13156 (target_region_ok_for_hw_watchpoint): Add argument.
13157 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13158 (default_region_ok_for_hw_watchpoint): Add argument.
13159 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13160 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13161 argument.
13162 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13163 argument.
13164 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13165 argument.
13166 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13167 'self' argument.
13168 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13169 'self' argument.
13170 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13171 'self' argument.
13172 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13173 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13174 'self' argument.
13175 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13176 Add 'self' argument.
13177
13178 2014-02-19 Tom Tromey <tromey@redhat.com>
13179
13180 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13181 argument.
13182 (target_insert_watchpoint): Add argument.
13183 * target.c (debug_to_insert_watchpoint): Add argument.
13184 (update_current_target): Update.
13185 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13186 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13187 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13188 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13189 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13190 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13191 argument.
13192 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13193 (procfs_insert_hw_watchpoint): Add 'self' argument.
13194 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13195 argument.
13196 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13197 argument.
13198 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13199 argument.
13200 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13201 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13202 argument.
13203 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13204 'self' argument.
13205
13206 2014-02-19 Tom Tromey <tromey@redhat.com>
13207
13208 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13209 argument.
13210 (target_remove_watchpoint): Add argument.
13211 * target.c (debug_to_remove_watchpoint): Add argument.
13212 (update_current_target): Update.
13213 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13214 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13215 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13216 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13217 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13218 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13219 argument.
13220 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13221 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13222 argument.
13223 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13224 argument.
13225 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13226 argument.
13227 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13228 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13229 argument.
13230 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13231 'self' argument.
13232
13233 2014-02-19 Tom Tromey <tromey@redhat.com>
13234
13235 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13236 argument.
13237 (target_remove_hw_breakpoint): Add argument.
13238 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13239 (update_current_target): Update.
13240 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13241 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13242 argument.
13243 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13244 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13245 argument.
13246 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13247 'self' argument.
13248
13249 2014-02-19 Tom Tromey <tromey@redhat.com>
13250
13251 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13252 argument.
13253 (target_insert_hw_breakpoint): Add argument.
13254 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13255 (update_current_target): Update.
13256 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13257 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13258 argument.
13259 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13260 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13261 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13262 argument.
13263 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13264 'self' argument.
13265
13266 2014-02-19 Tom Tromey <tromey@redhat.com>
13267
13268 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13269 argument.
13270 (target_can_use_hardware_watchpoint): Add argument.
13271 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13272 (update_current_target): Update.
13273 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13274 argument.
13275 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13276 argument.
13277 * remote.c (remote_check_watch_resources): Add 'self' argument.
13278 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13279 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13280 argument.
13281 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13282 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13283 argument.
13284 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13285 argument.
13286 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13287 argument.
13288 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13289 argument.
13290 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13291 argument.
13292 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13293 argument.
13294 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13295 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13296 argument.
13297 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13298 'self' argument.
13299
13300 2014-02-19 Tom Tromey <tromey@redhat.com>
13301
13302 * target.h (struct target_ops) <to_post_attach>: Add argument.
13303 (target_post_attach): Add argument.
13304 * target.c (debug_to_post_attach): Add argument.
13305 (update_current_target): Update.
13306 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13307 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13308 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13309 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13310 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13311
13312 2014-02-19 Tom Tromey <tromey@redhat.com>
13313
13314 * windows-nat.c (windows_close): Add 'self' argument.
13315 * tracepoint.c (tfile_close): Add 'self' argument.
13316 * target.h (struct target_ops) <to_close>: Add argument.
13317 * target.c (target_close): Add argument.
13318 (update_current_target): Update.
13319 * remote.c (remote_close): Add 'self' argument.
13320 * remote-sim.c (gdbsim_close): Add 'self' argument.
13321 * remote-mips.c (mips_close): Add 'self' argument.
13322 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13323 * record-full.c (record_full_close): Add 'self' argument.
13324 * record-btrace.c (record_btrace_close): Add 'self' argument.
13325 * monitor.h (monitor_close): Add 'self' argument.
13326 * monitor.c (monitor_close): Add 'self' argument.
13327 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13328 * linux-nat.c (linux_nat_close): Add argument.
13329 * go32-nat.c (go32_close): Add 'self' argument.
13330 * exec.c (exec_close_1): Add 'self' argument.
13331 * ctf.c (ctf_close): Add 'self' argument.
13332 * corelow.c (core_close): Add 'self' argument.
13333 (core_close_cleanup): Update.
13334 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13335 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13336
13337 2014-02-19 Tom Tromey <tromey@redhat.com>
13338
13339 * remote.c (remote_load): New function.
13340 (init_remote_ops): Use it.
13341
13342 2014-02-19 Tom Tromey <tromey@redhat.com>
13343
13344 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13345 argument.
13346 * common/linux-btrace.h (linux_supports_btrace): Update.
13347 * remote.c (remote_supports_btrace): Add "self" argument.
13348 * target-delegates.c: Rebuild.
13349 * target.c (target_supports_btrace): Remove.
13350 * target.h (struct target_ops) <to_supports_btrace>: Add
13351 target_ops argument.
13352 (target_supports_btrace): New define.
13353
13354 2014-02-19 Tom Tromey <tromey@redhat.com>
13355
13356 * record-full.c (record_full_beneath_to_resume_ops)
13357 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13358 (record_full_beneath_to_wait)
13359 (record_full_beneath_to_store_registers_ops)
13360 (record_full_beneath_to_store_registers)
13361 (record_full_beneath_to_xfer_partial_ops)
13362 (record_full_beneath_to_xfer_partial)
13363 (record_full_beneath_to_insert_breakpoint_ops)
13364 (record_full_beneath_to_insert_breakpoint)
13365 (record_full_beneath_to_remove_breakpoint_ops)
13366 (record_full_beneath_to_remove_breakpoint)
13367 (record_full_beneath_to_stopped_by_watchpoint)
13368 (record_full_beneath_to_stopped_data_address)
13369 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13370 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13371 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13372 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13373 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13374 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13375 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13376 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13377 (record_full_resume, record_full_wait_1)
13378 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13379 (record_full_store_registers, record_full_xfer_partial)
13380 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13381 (record_full_async, record_full_core_xfer_partial): Use target
13382 delegation.
13383 * target-delegates.c: Rebuild.
13384 * target.c (current_xfer_partial): Remove.
13385 (update_current_target): Do not INHERIT or de_fault
13386 to_insert_breakpoint, to_remove_breakpoint,
13387 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13388 to_is_async_p, to_async. Do not set to_xfer_partial field.
13389 (default_xfer_partial): Simplify.
13390 (current_xfer_partial): Remove.
13391 (target_wait, target_resume): Simplify.
13392 (find_default_can_async_p, find_default_is_async_p): Update.
13393 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13394 to_xfer_partial, to_stopped_by_watchpoint,
13395 to_stopped_data_address.
13396 (target_store_registers): Simplify.
13397 (forward_target_remove_breakpoint)
13398 (forward_target_insert_breakpoint): Remove.
13399 (target_remove_breakpoint, target_insert_breakpoint)
13400 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13401 * target.h (struct target_ops) <to_resume, to_wait,
13402 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13403 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13404 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13405 markup.
13406 (forward_target_remove_breakpoint)
13407 (forward_target_insert_breakpoint): Remove.
13408 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13409 directly.
13410 (record_btrace_insert_breakpoint): Delegate directly.
13411
13412 2014-02-19 Tom Tromey <tromey@redhat.com>
13413
13414 PR build/7701:
13415 * target-delegates.c: New file.
13416 * target.c: Include target-delegates.c.
13417 (init_dummy_target): Call install_dummy_methods.
13418 (complete_target_initialization): Call install_delegators.
13419 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13420 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13421 * make-target-delegates: New file.
13422
13423 2014-02-19 Tom Tromey <tromey@redhat.com>
13424
13425 * record.c (find_record_target): Use find_target_at.
13426 * target.c (find_target_at): New function.
13427 * target.h (find_target_at): Declare.
13428
13429 2014-02-19 Tom Tromey <tromey@redhat.com>
13430
13431 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13432 Add 'ops' argument.
13433 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13434 'ops' argument.
13435 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13436 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13437 'ops' argument.
13438 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13439 argument.
13440 * linux-nat.c (save_sigtrap): Update.
13441 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13442 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13443 (linux_nat_close): Update.
13444 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13445 argument.
13446 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13447 argument.
13448 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13449 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13450 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13451 (tmp_to_async): Add 'ops' argument.
13452 (record_full_stopped_by_watchpoint, record_full_async)
13453 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13454 argument.
13455 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13456 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13457 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13458 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13459 (remote_is_async_p, remote_async): Add 'ops' argument.
13460 (remote_stopped_data_address): Update.
13461 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13462 * target.c (update_current_target)
13463 (find_default_can_async_p, find_default_is_async_p): Update.
13464 (init_dummy_target): Update.
13465 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13466 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13467 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13468 (target_can_async_p, target_is_async_p, target_async)
13469 (target_stopped_by_watchpoint): Update.
13470
13471 2014-02-19 Yao Qi <yao@codesourcery.com>
13472
13473 PR gdb/16220
13474 * gdbarch.sh: Remove startup_gdbarch.
13475 * gdbarch.c: Regenerated.
13476 * gdbarch.h: Likewise.
13477
13478 2014-02-17 Kevin Buettner <kevinb@redhat.com>
13479
13480 * rl78-tdep.c (rl78_g10_register_name): New function.
13481 (rl78_return_value): Add g10 support.
13482 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13483 g10.
13484
13485 2014-02-17 Doug Evans <xdje42@gmail.com>
13486
13487 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13488 (SUBDIR_GUILE_SRCS): Ditto.
13489 (scm-gsmob.o): Ditto.
13490
13491 2014-02-17 Yao Qi <yao@codesourcery.com>
13492
13493 * gnu-nat.c (ILL_RPC): Declare defined function.
13494
13495 2014-02-17 Yao Qi <yao@codesourcery.com>
13496
13497 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13498 mach_msg_type_number_t.
13499 (gnu_write_inferior): Likewise.
13500
13501 2014-02-17 Yao Qi <yao@codesourcery.com>
13502
13503 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13504 in format string.
13505 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13506 (inf_validate_procs, inf_signal): Likewise.
13507 (S_exception_raise_request): Likewise.
13508 (do_mach_notify_dead_name): Likewise.
13509 (steal_exc_port): Likewise.
13510 (gnu_read_inferior): Change 'copy_count''s type to
13511 mach_msg_type_number_t.
13512 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13513 format string.
13514
13515 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
13516
13517 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13518 flag. Adjust all users; in particular...
13519 (gnu_wait): ..., don't decrement its value in here...
13520 (gnu_create_inferior): ..., and instead set the flag in here,
13521 around the startup_inferior call, and call that one with
13522 START_INFERIOR_TRAPS_EXPECTED.
13523
13524 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13525 (ILL_RPC): ... new macro.
13526 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13527 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13528 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13529 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13530 functions with ILL_RPC macro.
13531 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13532 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13533 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13534 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13535 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13536 (S_proc_getlogin_reply, S_proc_getsid_reply)
13537 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13538 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13539 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13540 (S_proc_getnports_reply, S_proc_is_important_reply)
13541 (S_proc_get_code_reply): New stub functions, generated with
13542 ILL_RPC macro.
13543
13544 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13545 collected the type check structures.
13546
13547 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13548
13549 2014-02-14 Doug Evans <dje@google.com>
13550
13551 * target.c (target_write_partial): Fix result type.
13552
13553 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
13554
13555 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13556 the proper offsets to access fpregset_t.
13557
13558 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
13559
13560 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13561 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13562 * h8300-tdep.c (setmachinelist): Remove global.
13563 * hppa-tdep.c (hppa_sigtramp): Remove global.
13564 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13565 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13566 * ravenscar-thread.c (update_target_observer): Remove global.
13567 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13568
13569 2014-02-12 Tom Tromey <tromey@redhat.com>
13570
13571 * common/rsp-low.c: Update comments.
13572 * common/rsp-low.h: Update comments.
13573
13574 2014-02-12 Tom Tromey <tromey@redhat.com>
13575
13576 * common/rsp-low.c (convert_ascii_to_int): Remove.
13577 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13578
13579 2014-02-12 Tom Tromey <tromey@redhat.com>
13580
13581 * common/rsp-low.h (unhexify): Don't declare.
13582 * common/rsp-low.c (unhexify): Remove.
13583
13584 2014-02-12 Tom Tromey <tromey@redhat.com>
13585
13586 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13587 * common/rsp-low.c (convert_int_to_ascii): Remove.
13588
13589 2014-02-12 Tom Tromey <tromey@redhat.com>
13590
13591 * common/rsp-low.h (hexify): Don't declare.
13592 * common/rsp-low.c (hexify): Remove.
13593
13594 2014-02-12 Tom Tromey <tromey@redhat.com>
13595
13596 * common/rsp-low.c (hexify): Never take strlen of argument.
13597
13598 2014-02-12 Tom Tromey <tromey@redhat.com>
13599
13600 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13601 * remote.c (extended_remote_run, remote_rcmd)
13602 (remote_download_trace_state_variable, remote_save_trace_data)
13603 (remote_set_trace_notes): Update.
13604 * tracepoint.c (encode_source_string, tfile_write_status)
13605 (tfile_write_uploaded_tsv): Update.
13606
13607 2014-02-12 Tom Tromey <tromey@redhat.com>
13608
13609 * tracepoint.c: Include rsp-low.h.
13610 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13611 * remote.c: Include rsp-low.h.
13612 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13613 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13614 (remote_unescape_input): Move to common/rsp-low.c.
13615 * common/rsp-low.h: New file.
13616 * common/rsp-low.c: New file.
13617 * Makefile.in (SFILES): Add common/rsp-low.c.
13618 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13619 (COMMON_OBS): Add rsp-low.o.
13620 (rsp-low.o): New target.
13621
13622 2014-02-12 Tom Tromey <tromey@redhat.com>
13623
13624 * utils.h: Include print-utils.h.
13625 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13626 (int_string, core_addr_to_string, core_addr_to_string_nz)
13627 (hex_string, hex_string_custom): Don't declare.
13628 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13629 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13630 (hex_string_custom, int_string, core_addr_to_string)
13631 (core_addr_to_string_nz, host_address_to_string): Move to
13632 common/print-utils.c.
13633 * common/print-utils.h: New file.
13634 * common/print-utils.c: New file
13635 * Makefile.in (SFILES): Add common/print-utils.c.
13636 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13637 (COMMON_OBS): Add print-utils.o.
13638 (print-utils.o): New target.
13639
13640 2014-02-12 Tom Tromey <tromey@redhat.com>
13641
13642 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13643
13644 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13645
13646 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13647
13648 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13649
13650 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13651 if a PT_IO ptrace request returns sucessfully but indicates that 0
13652 bytes were transferred.
13653
13654 2014-02-12 Pedro Alves <palves@redhat.com>
13655 Kevin Buettner <kevinb@redhat.com>
13656
13657 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13658 TYPE_INSTANCE_FLAG_CODE_SPACE.
13659
13660 2014-02-12 Pedro Alves <palves@redhat.com>
13661
13662 * h8300-tdep.c (pseudo_from_raw_register)
13663 (raw_from_pseudo_register): New functions.
13664 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13665 them.
13666
13667 2014-02-12 Pedro Alves <palves@redhat.com>
13668
13669 * h8300-tdep.c (h8300_register_sim_regno): New function.
13670 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13671 gdbarch_register_sim_regno hook.
13672
13673 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13674
13675 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13676
13677 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
13678
13679 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13680
13681 2014-02-12 Mark Kettenis <kettenis@gnu.org>
13682
13683 * obsd-tdep.h (obsd_init_abi): New prototype.
13684 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13685 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13686 (obsd_init_abi): New functions.
13687 * i386obsd-tdep.c: Include "obsd-tdep.h".
13688 (i386obsd_init_abi): Call obsd_init_abi.
13689 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13690 (amd64obsd_init_abi): Call obsd_init_abi.
13691 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13692 obsd-tdep.c to gdb_target_obs.
13693
13694 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
13695
13696 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13697 double float arguments to 16-byte in the argument slots.
13698
13699 2014-02-11 Doug Evans <xdje42@gmail.com>
13700
13701 * configure.ac: Don't crash if pkg-config is not found and guile
13702 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13703 in guile checks.
13704 * configure: Regenerate.
13705
13706 2014-02-11 Yao Qi <yao@codesourcery.com>
13707
13708 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13709 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13710 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13711 * gnu-nat.c (gnu_xfer_memory): Likewise.
13712 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13713 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13714 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13715 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13716
13717 2014-02-11 Yao Qi <yao@codesourcery.com>
13718
13719 * target.h (enum target_xfer_error): Rename to ...
13720 (enum target_xfer_status): ... it. New. All users updated.
13721 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13722 New.
13723 (TARGET_XFER_STATUS_ERROR_P): New macro.
13724 (target_xfer_error_to_string): Remove declaration.
13725 (target_xfer_status_to_string): Declare.
13726 (target_xfer_partial_ftype): Adjust it.
13727 (struct target_ops) <to_xfer_partial>: Return
13728 target_xfer_status. Add argument xfered_len. Update
13729 comments.
13730 * target.c (target_xfer_error_to_string): Rename to ...
13731 (target_xfer_status_to_string): ... it. New. All callers
13732 updated.
13733 (target_read_live_memory): Likewise. Call target_xfer_partial
13734 instead of target_read.
13735 (memory_xfer_live_readonly_partial): Return
13736 target_xfer_status. Add argument xfered_len.
13737 (raw_memory_xfer_partial): Likewise.
13738 (memory_xfer_partial_1): Likewise.
13739 (memory_xfer_partial): Likewise.
13740 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13741 properly. Update debug message.
13742 (default_xfer_partial, current_xfer_partial): Likewise.
13743 (target_write_partial): Likewise.
13744 (target_read_partial): Likewise. All callers updated.
13745 (read_whatever_is_readable): Likewise.
13746 (target_write_with_progress): Likewise.
13747 (target_read_alloc_1): Likewise.
13748
13749 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13750 * auxv.c (procfs_xfer_auxv): Likewise.
13751 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13752 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13753 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13754 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13755 * corefile.c (read_memory): Adjust.
13756 * corelow.c (core_xfer_partial): Likewise.
13757 * ctf.c (ctf_xfer_partial): Likewise.
13758 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13759 updated.
13760 (darwin_xfer_partial): Likewise.
13761 * exec.c (section_table_xfer_memory_partial): Likewise. All
13762 callers updated.
13763 (exec_xfer_partial): Likewise.
13764 * exec.h (section_table_xfer_memory_partial): Update
13765 declaration.
13766 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13767 negative.
13768 (gnu_xfer_partial): Likewise.
13769 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13770 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13771 (ia64_hpux_xfer_solib_got): Likewise.
13772 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13773 type of 'partial_len' to ULONGEST.
13774 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13775 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13776 (linux_nat_xfer_partial): Likewise.
13777 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13778 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13779 * monitor.c (monitor_xfer_memory): Likewise.
13780 (monitor_xfer_partial): Likewise.
13781 * procfs.c (procfs_xfer_partial): Likewise.
13782 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13783 * record-full.c (record_full_xfer_partial): Likewise.
13784 (record_full_core_xfer_partial): Likewise.
13785 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13786 (gdbsim_xfer_partial): Likewise.
13787 * remote.c (remote_write_bytes_aux): Likewise. All callers
13788 updated.
13789 (remote_write_bytes, remote_read_bytes): Likewise. All
13790 callers updated.
13791 (remote_flash_erase): Likewise. All callers updated.
13792 (remote_write_qxfer): Likewise. All callers updated.
13793 (remote_read_qxfer): Likewise. All callers updated.
13794 (remote_xfer_partial): Likewise.
13795 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13796 (rs6000_xfer_shared_libraries): Likewise.
13797 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13798 (sol_thread_xfer_partial): Likewise.
13799 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13800 (sparc_xfer_partial): Likewise.
13801 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13802 updated.
13803 (spu_xfer_partial): Likewise.
13804 * spu-multiarch.c (spu_xfer_partial): Likewise.
13805 * tracepoint.c (tfile_xfer_partial): Likewise.
13806 * windows-nat.c (windows_xfer_memory): Likewise.
13807 (windows_xfer_shared_libraries): Likewise.
13808 (windows_xfer_partial): Likewise.
13809 * valprint.c: Replace 'target_xfer_error' with
13810 'target_xfer_status' in comments.
13811
13812 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
13813
13814 Checked in by Joel Brobecker <brobecker@adacore.com>.
13815 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13816
13817 2014-02-11 Joel Brobecker <brobecker@adacore.com>
13818
13819 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13820 function parameters.
13821
13822 2014-02-10 Will Newton <will.newton@linaro.org>
13823
13824 * elfread.c (elf_rel_plt_read): Look for a .got section if
13825 looking up .got.plt fails.
13826 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13827 on address passed to elf_gnu_ifunc_record_cache.
13828 (elf_gnu_ifunc_resolve_addr): Likewise.
13829 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13830
13831 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
13832
13833 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13834 (X_RETTURN): New macro.
13835 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13836
13837 * sparc64-tdep.c (sparc64_init_abi): Hook
13838 sparc_in_function_epilogue_p.
13839
13840 2014-02-10 Gary Benson <gbenson@redhat.com>
13841
13842 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13843 Rename name_matcher to symbol_matcher.
13844
13845 2014-02-10 Gary Benson <gbenson@redhat.com>
13846
13847 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13848 Use expand_symtabs_file_matcher_ftype and
13849 expand_symtabs_symbol_matcher_ftype.
13850
13851 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13852
13853 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13854 (struct ada_symbol_cache): New.
13855 (ada_free_symbol_cache): Forward declare.
13856 (struct ada_pspace_data): New.
13857 (ada_pspace_data_handle): New static global.
13858 (get_ada_pspace_data, ada_pspace_data_cleanup)
13859 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13860 (cache_space, cache): Delete, now folded inside struct
13861 ada_pspace_data.
13862 (ada_get_symbol_cache): New function.
13863 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13864 implementation.
13865 (_initialize_ada_language): Remove initialization of cache_space.
13866 Move call to observer_attach_inferior_exit up, grouping it
13867 with the other observer registrations inside this function.
13868 Rename command to be more general. Add call to
13869 register_program_space_data_with_cleanup.
13870
13871 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13872
13873 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13874 ada_new_objfile_observer.
13875 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13876 (_initialize_tasks): Update uses of ada_new_objfile_observer
13877 and ada_tasks_normal_stop_observer.
13878
13879 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13880
13881 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13882 returned by the 'Length attribute to integer.
13883
13884 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13885
13886 * ada-lang.c (_initialize_ada_language): Initialize
13887 cache_space obstack.
13888
13889 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13890
13891 * ada-lang.c (HASH_SIZE): New macro.
13892 (struct cache_entry): New type.
13893 (cache_space, cache): New static globals.
13894 (ada_clear_symbol_cache, find_entry): New functions.
13895 (lookup_cached_symbol, cache_symbol): Implement.
13896 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13897 (_initialize_ada_language): Attach ada_new_objfile_observer
13898 and ada_free_objfile_observer.
13899
13900 2014-02-10 Joel Brobecker <brobecker@adacore.com>
13901
13902 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13903 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13904 struct block * parameter.
13905 (ada_lookup_symbol_list_worker): Constify local variable "block".
13906 Remove cast which is no longer necessary.
13907
13908 2014-02-10 Doug Evans <xdje42@gmail.com>
13909
13910 Add Guile as an extension language.
13911 * NEWS: Mention Guile scripting.
13912 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13913 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13914 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13915 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13916 (CLIBS): Add GUILE_LIBS.
13917 (install-guile): New rule.
13918 (guile.o): New rule.
13919 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13920 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13921 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13922 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13923 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13924 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13925 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13926 * configure.ac: New option --with-guile.
13927 * configure: Regenerate.
13928 * config.in: Regenerate.
13929 * auto-load.c: Remove #include "python/python.h". Add #include
13930 "gdb/section-scripts.h".
13931 (source_section_scripts): Handle Guile scripts.
13932 (_initialize_auto_load): Add name of Guile objfile script to
13933 scripts-directory help text.
13934 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13935 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13936 (struct breakpoint): New member scm_bp_object.
13937 * defs.h (enum command_control_type): New value guile_control.
13938 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13939 "extension.h".
13940 (show_user): Update comment.
13941 (_initialize_cli_cmds): Update help text for "show user". Update help
13942 text for max-user-call-depth.
13943 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13944 "extension.h".
13945 (multi_line_command_p): Add guile_control.
13946 (print_command_lines): Handle guile_control.
13947 (execute_control_command, recurse_read_control_structure): Ditto.
13948 (process_next_line): Recognize "guile" commands.
13949 * disasm.c (gdb_disassemble_info): Make non-static.
13950 * disasm.h: #include "dis-asm.h".
13951 (struct gdbarch): Add forward decl.
13952 (gdb_disassemble_info): Declare.
13953 * extension.c: #include "guile/guile.h".
13954 (extension_languages): Add guile.
13955 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13956 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13957 * gdbtypes.c (get_unsigned_type_max): New function.
13958 (get_signed_type_minmax): New function.
13959 * gdbtypes.h (get_unsigned_type_max): Declare.
13960 (get_signed_type_minmax): Declare.
13961 * guile/README: New file.
13962 * guile/guile-internal.h: New file.
13963 * guile/guile.c: New file.
13964 * guile/guile.h: New file.
13965 * guile/scm-arch.c: New file.
13966 * guile/scm-auto-load.c: New file.
13967 * guile/scm-block.c: New file.
13968 * guile/scm-breakpoint.c: New file.
13969 * guile/scm-disasm.c: New file.
13970 * guile/scm-exception.c: New file.
13971 * guile/scm-frame.c: New file.
13972 * guile/scm-gsmob.c: New file.
13973 * guile/scm-iterator.c: New file.
13974 * guile/scm-lazy-string.c: New file.
13975 * guile/scm-math.c: New file.
13976 * guile/scm-objfile.c: New file.
13977 * guile/scm-ports.c: New file.
13978 * guile/scm-pretty-print.c: New file.
13979 * guile/scm-safe-call.c: New file.
13980 * guile/scm-string.c: New file.
13981 * guile/scm-symbol.c: New file.
13982 * guile/scm-symtab.c: New file.
13983 * guile/scm-type.c: New file.
13984 * guile/scm-utils.c: New file.
13985 * guile/scm-value.c: New file.
13986 * guile/lib/gdb.scm: New file.
13987 * guile/lib/gdb/boot.scm: New file.
13988 * guile/lib/gdb/experimental.scm: New file.
13989 * guile/lib/gdb/init.scm: New file.
13990 * guile/lib/gdb/iterator.scm: New file.
13991 * guile/lib/gdb/printing.scm: New file.
13992 * guile/lib/gdb/types.scm: New file.
13993 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13994 (VPATH): Add $(GUILE_SRCDIR).
13995 (GUILE_DIR): New variable.
13996 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13997 (all): Add stamp-guile dependency.
13998 (stamp-guile): New rule.
13999 (clean-guile, install-guile, uninstall-guile): New rules.
14000 (install-only): Add install-guile dependency.
14001 (uninstall): Add uninstall-guile dependency.
14002 (clean): Add clean-guile dependency.
14003
14004 2014-02-09 Doug Evans <xdje42@gmail.com>
14005
14006 Revert this patch (which I approved, mea culpa).
14007
14008 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14009
14010 * Makefile.in (all-lib): Remove.
14011 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14012
14013 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14014
14015 Fix Python stack corruption.
14016 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14017 gdb_py_longest.
14018
14019 2014-02-08 Mark Kettenis <kettenis@gnu.org>
14020
14021 * Makefile.in (all-lib): Remove.
14022 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14023
14024 2014-02-07 Doug Evans <dje@google.com>
14025
14026 * extension-priv.h (extension_language_script_ops): Add comment.
14027 (extension_language_ops): Add comment.
14028 (active_ext_lang_state): Fix typo in comment.
14029
14030 2014-02-07 Pedro Alves <palves@redhat.com>
14031
14032 PR breakpoints/16292
14033 * infrun.c (handle_signal_stop) <signal arrives while stepping
14034 over a breakpoint>: Switch back to the stepping thread.
14035
14036 2014-02-07 Yao Qi <yao@codesourcery.com>
14037
14038 * target.c (target_xfer_partial): Return zero if LEN is zero.
14039
14040 2014-02-07 Yao Qi <yao@codesourcery.com>
14041
14042 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14043 (ld_so_xfer_auxv): Likewise.
14044 * bfd-target.c (target_bfd_xfer_partial): Likewise.
14045 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14046 * corelow.c (core_xfer_partial): Likewise.
14047 * ctf.c (ctf_xfer_partial): Likewise.
14048 * darwin-nat.c (darwin_read_dyld_info): Likewise.
14049 (darwin_xfer_partial): Likewise.
14050 * exec.c (exec_xfer_partial): Likewise.
14051 * gnu-nat.c (gnu_xfer_partial): Likewise.
14052 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14053 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14054 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14055 * linux-nat.c (linux_xfer_siginfo): Likewise.
14056 (linux_proc_xfer_spu): Likewise.
14057 * procfs.c (procfs_xfer_partial): Likewise.
14058 * record-full.c (record_full_xfer_partial): Likewise.
14059 (record_full_core_xfer_partial): Likewise.
14060 * remote-sim.c (gdbsim_xfer_partial): Likewise.
14061 * remote.c (remote_write_qxfer): Likewise.
14062 (remote_write_qxfer, remote_read_qxfer): Likewise.
14063 (remote_xfer_partial): Likewise.
14064 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14065 (rs6000_xfer_shared_libraries): Likewise.
14066 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14067 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14068 (spu_xfer_partial): Likewise.
14069 * target.c (memory_xfer_partial_1): Likewise.
14070 * tracepoint.c (tfile_xfer_partial): Likewise.
14071 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14072 (windows_xfer_partial): Likewise.
14073
14074 2014-02-07 Yao Qi <yao@codesourcery.com>
14075
14076 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
14077 comments.
14078 (core_xfer_shared_libraries_aix): Likewise.
14079 * gdbarch.c, gdbarch.h: Regenerated.
14080 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14081 ULONGEST. Change 'len_avail' type to ULONGEST.
14082 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14083 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14084 declaration.
14085 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14086
14087 2014-02-07 Yao Qi <yao@codesourcery.com>
14088
14089 * corefile.c (memory_error): Get 'exception' from ERR and pass
14090 'exception' to throw_error.
14091
14092 2014-02-06 Doug Evans <xdje42@gmail.com>
14093
14094 * configure.ac (libpython checking): Remove all but python.o from
14095 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
14096 * configure: Regenerate.
14097
14098 * Makefile.in (SFILES): Add extension.c.
14099 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14100 (COMMON_OBS): Add extension.o.
14101 * extension.h: New file.
14102 * extension-priv.h: New file.
14103 * extension.c: New file.
14104
14105 * python/python-internal.h: #include "extension.h".
14106 (gdbpy_auto_load_enabled): Declare.
14107 (gdbpy_apply_val_pretty_printer): Declare.
14108 (gdbpy_apply_frame_filter): Declare.
14109 (gdbpy_preserve_values): Declare.
14110 (gdbpy_breakpoint_cond_says_stop): Declare.
14111 (gdbpy_breakpoint_has_cond): Declare.
14112 (void source_python_script_for_objfile): Delete.
14113 * python/python.c: #include "extension-priv.h".
14114 Delete inclusion of "observer.h".
14115 (extension_language_python): Moved here and renamed from
14116 script_language_python in py-auto-load.c.
14117 Redefined to be of type extension_language_defn.
14118 (python_extension_script_ops): New global.
14119 (python_extension_ops): New global.
14120 (struct python_env): New member previous_active.
14121 (restore_python_env): Call restore_active_ext_lang.
14122 (ensure_python_env): Call set_active_ext_lang.
14123 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14124 New arg extlang.
14125 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14126 New arg extlang.
14127 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14128 New arg extlang.
14129 (gdbpy_eval_from_control_command): Renamed from
14130 eval_python_from_control_command, made static. New arg extlang.
14131 (gdbpy_source_script) Renamed from source_python_script, made static.
14132 New arg extlang.
14133 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
14134 result to int. New arg extlang.
14135 (gdbpy_source_objfile_script): Renamed from
14136 source_python_script_for_objfile, made static. New arg extlang.
14137 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14138 static. New args extlang, extlang_printers. Change result type to
14139 "void".
14140 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14141 static. New arg extlang. Rename arg printers to extlang_printers
14142 and change type to ext_lang_type_printers *.
14143 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14144 static. Replace argument arg with extlang, extlang_printers.
14145 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14146 (!HAVE_PYTHON, source_python_script): Delete.
14147 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14148 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14149 (!HAVE_PYTHON, start_type_printers): Delete.
14150 (!HAVE_PYTHON, apply_type_printers): Delete.
14151 (!HAVE_PYTHON, free_type_printers): Delete.
14152 (_initialize_python): Delete call to observer_attach_before_prompt.
14153 (finalize_python): Set/restore active extension language.
14154 (gdbpy_finish_initialization) Renamed from
14155 finish_python_initialization, made static. New arg extlang.
14156 (gdbpy_initialized): New function.
14157 * python/python.h: #include "extension.h". Delete #include
14158 "value.h", "mi/mi-cmds.h".
14159 (extension_language_python): Declare.
14160 (GDBPY_AUTO_FILE_NAME): Delete.
14161 (enum py_bt_status): Moved to extension.h and renamed to
14162 ext_lang_bt_status.
14163 (enum frame_filter_flags): Moved to extension.h.
14164 (enum py_frame_args): Moved to extension.h and renamed to
14165 ext_lang_frame_args.
14166 (finish_python_initialization): Delete.
14167 (eval_python_from_control_command): Delete.
14168 (source_python_script): Delete.
14169 (apply_val_pretty_printer): Delete.
14170 (apply_frame_filter): Delete.
14171 (preserve_python_values): Delete.
14172 (gdbpy_script_language_defn): Delete.
14173 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14174 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14175
14176 * auto-load.c: #include "extension.h".
14177 (GDB_AUTO_FILE_NAME): Delete.
14178 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14179 (script_language_gdb): Delete, moved to extension.c and renamed to
14180 extension_language_gdb.
14181 (source_gdb_script_for_objfile): Delete.
14182 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14183 (loaded_script): Change type of language member to
14184 struct extension_language_defn *.
14185 (init_loaded_scripts_info): Initialize
14186 unsupported_script_warning_printed.
14187 (maybe_add_script): Make static. Change type of language arg to
14188 struct extension_language_defn *.
14189 (clear_section_scripts): Reset unsupported_script_warning_printed.
14190 (auto_load_objfile_script_1): Rewrite to use extension language API.
14191 (auto_load_objfile_script): Make public. Remove support-compiled-in
14192 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14193 (source_section_scripts): Rewrite to use extension language API.
14194 (load_auto_scripts_for_objfile): Rewrite to use
14195 auto_load_scripts_for_objfile.
14196 (collect_matching_scripts_data): Change type of language member to
14197 struct extension_language_defn *.
14198 (auto_load_info_scripts): Change type of language arg to
14199 struct extension_language_defn *.
14200 (unsupported_script_warning_print): New function.
14201 (script_not_found_warning_print): Make static.
14202 (_initialize_auto_load): Rewrite construction of scripts-directory
14203 help.
14204 * auto-load.h (struct objfile): Add forward decl.
14205 (struct script_language): Delete.
14206 (struct auto_load_pspace_info): Add forward decl.
14207 (struct extension_language_defn): Add forward decl.
14208 (maybe_add_script): Delete.
14209 (auto_load_objfile_script): Declare.
14210 (script_not_found_warning_print): Delete.
14211 (auto_load_info_scripts): Update prototype.
14212 (auto_load_gdb_scripts_enabled): Declare.
14213 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14214 auto_load_python_scripts_enabled and made public.
14215 (script_language_python): Delete, moved to python.c.
14216 (gdbpy_script_language_defn): Delete.
14217 (info_auto_load_python_scripts): Update to use
14218 extension_language_python.
14219
14220 * breakpoint.c (condition_command): Replace call to
14221 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14222 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14223 with call to breakpoint_ext_lang_cond_says_stop.
14224 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14225 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14226 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14227 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14228 New arg slang.
14229 (local_setattro): Print name of extension language with existing
14230 stop condition.
14231
14232 * valprint.c (val_print, value_print): Update to call
14233 apply_ext_lang_val_pretty_printer.
14234 * cp-valprint.c (cp_print_value): Update call to
14235 apply_ext_lang_val_pretty_printer.
14236 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14237 (gdbpy_apply_val_pretty_printer): Renamed from
14238 apply_val_pretty_printer. New arg extlang.
14239 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14240
14241 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14242 extension language API.
14243 * cli/cli-script.c (execute_control_command): Update to call
14244 eval_ext_lang_from_control_command.
14245
14246 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14247 enum ext_lang_bt_status values. Update call to
14248 apply_ext_lang_frame_filter.
14249 (mi_cmd_stack_list_locals): Ditto.
14250 (mi_cmd_stack_list_args): Ditto.
14251 (mi_cmd_stack_list_variables): Ditto.
14252 * mi/mi-main.c: Delete #include "python/python-internal.h".
14253 Add #include "extension.h".
14254 (mi_cmd_list_features): Replace reference to python internal variable
14255 gdb_python_initialized with call to ext_lang_initialized_p.
14256
14257 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14258 Update to use enum ext_lang_frame_args. Update to call
14259 apply_ext_lang_frame_filter.
14260 * python/py-framefilter.c (extract_sym): Update to use enum
14261 ext_lang_bt_status.
14262 (extract_value, py_print_type, py_print_value): Ditto.
14263 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14264 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14265 (py_print_frame): Ditto.
14266 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14267 New arg extlang. Update to use enum ext_lang_bt_status.
14268
14269 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14270 finish_python_initialization. Replace with call to
14271 finish_ext_lang_initialization.
14272
14273 * typeprint.c (do_free_global_table): Update to call
14274 free_ext_lang_type_printers.
14275 (create_global_typedef_table): Update to call
14276 start_ext_lang_type_printers.
14277 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14278 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14279 (type_print_options): Change type of global_printers from "void *"
14280 to "struct ext_lang_type_printers *".
14281
14282 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14283 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14284 (gdbpy_preserve_values): Renamed from preserve_python_values.
14285 New arg extlang.
14286 (!HAVE_PYTHON, preserve_python_values): Delete.
14287
14288 * utils.c (quit_flag): Delete, moved to extension.c.
14289 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14290 extension.c.
14291
14292 * eval.c: Delete #include "python/python.h".
14293 * main.c: Delete #include "python/python.h".
14294
14295 * defs.h: Update comment.
14296
14297 2014-02-06 Joel Brobecker <brobecker@adacore.com>
14298
14299 GDB 7.7 released.
14300
14301 2014-02-05 Mark Kettenis <kettenis@gnu.org>
14302
14303 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14304 defined.
14305
14306 2014-02-05 Yao Qi <yao@codesourcery.com>
14307
14308 * remote.c (remote_pass_signals): Remove local 'buf' and use
14309 rs->buf.
14310 (remote_program_signals): Likewise.
14311
14312 2014-02-05 Yao Qi <yao@codesourcery.com>
14313
14314 * ctf.c: Include "inferior.h" and "gdbthread.h".
14315 (CTF_PID): A new macro.
14316 (ctf_open): Call inferior_appeared and add_thread_silent.
14317 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14318 (ctf_thread_alive): New function.
14319 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14320
14321 2014-02-05 Yao Qi <yao@codesourcery.com>
14322
14323 Revert this patch:
14324
14325 2013-05-24 Yao Qi <yao@codesourcery.com>
14326
14327 * tracepoint.c (TFILE_PID): Remove.
14328 (tfile_open): Don't add thread and inferior.
14329 (tfile_close): Don't set 'inferior_ptid'. Don't call
14330 exit_inferior_silent.
14331 (tfile_thread_alive): Remove.
14332 (init_tfile_ops): Don't set field 'to_thread_alive' of
14333 tfile_ops.
14334
14335 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
14336
14337 * remote.c (remote_start_remote): Call remote_check_symbols even
14338 if only symbol-file (not file) has been given.
14339
14340 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14341
14342 * gdbarch.sh (skip_entrypoint): New callback.
14343 * gdbarch.c, gdbarch.h: Regenerate.
14344 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14345 * infrun.c (fill_in_stop_func): Likewise.
14346 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14347 (ppc_elfv2_elf_make_msymbol_special): New function.
14348 (ppc_elfv2_skip_entrypoint): Likewise.
14349 (ppc_linux_init_abi): Install them for ELFv2.
14350
14351 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14352
14353 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14354 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14355 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14356 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14357 structures returned in GPRs.
14358
14359 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14360
14361 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14362 offset to the stack parameter list for the ELFv2 ABI.
14363
14364 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14365
14366 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14367 set_gdbarch_convert_from_func_ptr_addr and
14368 set_gdbarch_elf_make_msymbol_special for ELFv1.
14369 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14370 function descriptors on ELFv1.
14371 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14372 set up r12 at function entry.
14373
14374 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14375
14376 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14377 (struct gdbarch_tdep): New member elf_abi.
14378
14379 * rs6000-tdep.c: Include "elf/ppc64.h".
14380 (rs6000_gdbarch_init): Detect ELF ABI version.
14381
14382 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14383
14384 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14385 within a register pair holding a DFP 128-bit value on little-endian.
14386 (ppc64_sysv_abi_return_value_base): Likewise.
14387 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14388 (dfp_pseudo_register_write): Likewise.
14389
14390 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14391
14392 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14393 offset on little-endian when passing _Decimal32.
14394 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14395
14396 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14397
14398 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14399 of the overlapped FP register within the VSX register on little-
14400 endian platforms.
14401 (efpr_pseudo_register_write): Likewise.
14402
14403 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14404
14405 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14406 offset on little-endian when passing small structures.
14407
14408 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14409
14410 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14411 (struct ppc64_sysv_argpos): New data structure.
14412 (ppc64_sysv_abi_push_float): Remove.
14413 (ppc64_sysv_abi_push_val): New function.
14414 (ppc64_sysv_abi_push_integer): Likewise.
14415 (ppc64_sysv_abi_push_freg): Likewise.
14416 (ppc64_sysv_abi_push_vreg): Likewise.
14417 (ppc64_sysv_abi_push_param): Likewise.
14418 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14419 (ppc64_sysv_abi_return_value_base): New function.
14420 (ppc64_sysv_abi_return_value): Refactor to use it.
14421
14422 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
14423
14424 * NEWS: Document new target powerpc64le-*-linux*.
14425
14426 2014-02-04 Mark Kettenis <kettenis@gnu.org>
14427
14428 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14429 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14430 core dumps.
14431 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14432 register set used in ELF core dumps. Add floating-point register set.
14433
14434 2014-02-03 Kevin Buettner <kevinb@redhat.com>
14435
14436 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14437 dwarf2_to_gdb[] table using symbolic constants. Adjust
14438 penultimate entry from number representing the PC register
14439 to symbolic constant representing the MDR register. Add
14440 constant for the PC register to the end of the table.
14441
14442 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14443
14444 * bsd-kvm.c: Include <sys/param.h>
14445
14446 2014-02-03 Mark Kettenis <kettenis@gnu.org>
14447
14448 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14449
14450 2014-01-31 Joel Brobecker <brobecker@adacore.com>
14451
14452 * ada-lang.h (clear_ada_sym_cache): Delete.
14453
14454 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
14455
14456 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14457
14458 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
14459
14460 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14461 the sigreturn register save area only if the syscall is
14462 sigreturn.
14463
14464 2014-01-29 Joel Brobecker <brobecker@adacore.com>
14465
14466 * valops.c (value_slice): Minor reformatting.
14467
14468 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
14469
14470 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14471
14472 2014-01-28 Joel Brobecker <brobecker@adacore.com>
14473
14474 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14475 New static globals.
14476 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14477 (ada_ignore_descriptive_types_p): New static global.
14478 (find_parallel_type_by_descriptive_type): Return immediately
14479 if ada_ignore_descriptive_types_p is set.
14480 (_initialize_ada_language): Register new commands "maintenance
14481 set ada", "maintenance show ada", "maintenance set ada
14482 ignore-descriptive-types" and "maintenance show ada
14483 ignore-descriptive-types".
14484 * NEWS: Add entry for new "maint ada set/show
14485 ignore-descriptive-types" commands.
14486
14487 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
14488
14489 * record-btrace.c (record_btrace_close): Call btrace_teardown
14490 for all threads.
14491
14492 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14493
14494 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14495 "ui-out.h".
14496
14497 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14498
14499 * ada-typeprint (type_is_full_subrange_of_target_type):
14500 New function.
14501 (print_range): Add parameter bounds_prefered_p. If not set,
14502 try printing range types using the name of their base type.
14503 (print_range_type): Add parameter bounds_prefered_p.
14504 Use it in call to print_range.
14505 (print_array_type, ada_print_type): Update calls to print_range
14506 and print_range_type.
14507
14508 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14509
14510 * ada-typeprint.c (print_array_type, print_choices, print_range)
14511 (print_range_bound, print_dynamic_range_bound, print_range_type):
14512 Remove declaration.
14513
14514 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14515
14516 * ada-typeprint.c (print_range): Add missing empty line
14517 after local declaration.
14518
14519 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14520
14521 * ada-valprint.c (print_optional_low_bound): Get index_type's
14522 target type for as long as it is a TYPE_CODE_RANGE.
14523
14524 2014-01-27 Joel Brobecker <brobecker@adacore.com>
14525
14526 * procfs.c (procfs_make_note_section): Remove assertion and
14527 associated comment.
14528
14529 2014-01-24 Yao Qi <yao@codesourcery.com>
14530
14531 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14532 * corelow.c (get_core_siginfo): Likewise.
14533
14534 2014-01-24 Yao Qi <yao@codesourcery.com>
14535
14536 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14537 ULONGEST. Don't check 'len' is negative.
14538 (remote_write_bytes): Change type of 'len' to ULONGEST.
14539
14540 2014-01-23 Tom Tromey <tromey@redhat.com>
14541
14542 PR python/16485:
14543 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14544 Handle exception from frame.block.
14545 (FrameVars.fetch_frame_locals): Likewise.
14546
14547 2014-01-23 Tom Tromey <tromey@redhat.com>
14548
14549 PR python/16487:
14550 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14551 on a NULL pointer. Move "goto error" to correct place.
14552
14553 2014-01-23 Tom Tromey <tromey@redhat.com>
14554
14555 PR python/16491:
14556 * python/py-framefilter.c (apply_frame_filter): Call
14557 ensure_python_env after computing gdbarch.
14558
14559 2014-01-23 Yao Qi <yao@codesourcery.com>
14560
14561 * target.c (raw_memory_xfer_partial): Change argument type
14562 from void * to gdb_byte *.
14563 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14564
14565 2014-01-22 Doug Evans <dje@google.com>
14566
14567 New gdbserver option --debug-format=timestamp.
14568 * NEWS: Mention it.
14569
14570 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
14571
14572 * syscalls/s390x-linux.xml: New file.
14573 * syscalls/s390-linux.xml: New file.
14574 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14575 (XML_SYSCALL_FILENAME_S390X): Likewise.
14576 (op_svc): New enum value for SVC opcode.
14577 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14578 (s390_linux_get_syscall_number): New function.
14579 (s390_gdbarch_init): Register '*get_syscall_number' and the
14580 syscall xml file name.
14581 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14582 "s390-linux.xml" and "s390x-linux.xml".
14583 * NEWS: Announce new feature.
14584
14585 2014-01-22 Baruch Siach <baruch@tkos.co.il>
14586
14587 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14588
14589 2014-01-22 Pedro Alves <palves@redhat.com>
14590
14591 * xtensa-config.c: Include defs.h.
14592
14593 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14594
14595 * common/common-utils.h: Add "ARI:" comment beside __func__
14596 reference.
14597
14598 2014-01-22 Joel Brobecker <brobecker@adacore.com>
14599
14600 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14601 documentation a bit.
14602
14603 2014-01-21 Roland McGrath <mcgrathr@google.com>
14604
14605 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14606 * configure: Regenerate.
14607 * aclocal.m4: Regenerate.
14608 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14609 New substituted variables.
14610 (install-strip): New target.
14611 (INSTALL_SCRIPT): New substituted variable.
14612 (FLAGS_TO_PASS): Add it.
14613 (install-only): Use $(INSTALL_SCRIPT) rather than
14614 $(INSTALL_PROGRAM) for gcore.
14615
14616 2014-01-20 Tom Tromey <tromey@redhat.com>
14617
14618 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14619 together.
14620
14621 2014-01-20 Tom Tromey <tromey@redhat.com>
14622
14623 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14624 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14625 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14626 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14627 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14628 (struct cmd_list_element) <flags>: Remove.
14629 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14630 doc_allocated>: New fields.
14631 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14632 bitfields.
14633 * maint.c (maintenance_do_deprecate): Update.
14634 * top.c (execute_command): Update.
14635
14636 2014-01-20 Baruch Siach <baruch@tkos.co.il>
14637
14638 * xtensa-linux-nat.c: Include asm/ptrace.h.
14639
14640 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14641
14642 * Makefile.in (SFILES): Add d-support.c.
14643 (COMMON_OBS): Add d-support.o.
14644 * d-lang.h (d_parse_symbol): Add comment, now defined in
14645 d-support.c.
14646 * d-lang.c (parse_call_convention)
14647 (parse_attributes, parse_function_types)
14648 (parse_function_args, parse_type, parse_identifier)
14649 (call_convention_p, d_parse_symbol): Move functions to ...
14650 * d-support.c: ... New file.
14651
14652 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14653
14654 * d-lang.h (d_parse_symbol): Add declaration.
14655 * d-lang.c (extract_identifiers)
14656 (extract_type_info): Remove functions.
14657 (parse_call_convention, parse_attributes)
14658 (parse_function_types, parse_function_args)
14659 (parse_type, parse_identifier, call_convention_p)
14660 (d_parse_symbol): New functions.
14661 (d_demangle): Use d_parse_symbol to demangle D symbols.
14662
14663 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14664
14665 * d-lang.h (struct builtin_d_type): New data type.
14666 (builtin_d_type): Add declaration.
14667 * d-lang.c (d_language_arch_info, build_d_types)
14668 (builtin_d_type): New functions.
14669 (enum d_primitive_types): New data type.
14670 (d_language_defn): Change c_language_arch_info to
14671 d_language_arch_info.
14672 (d_type_data): New static variable.
14673 (_initialize_d_language): Initialize d_type_data.
14674
14675 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14676
14677 * d-lang.h (d_main_name): Add declaration.
14678 * d-lang.c (d_main_name): New function.
14679 * symtab.c (find_main_name): Add call to d_main_name.
14680
14681 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14682
14683 * d-lang.c (d_language_defn): Change macro_expansion_c to
14684 macro_expansion_no.
14685
14686 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
14687
14688 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14689
14690 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
14691
14692 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14693 gdb_exception" declaration.
14694 * remote.c (getpkt_or_notif_sane): Likewise.
14695
14696 2014-01-17 Doug Evans <dje@google.com>
14697
14698 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14699 function, contents of dirnames_to_char_ptr_vec_append moved here.
14700 (delim_string_to_char_ptr_vec): New function.
14701 (dirnames_to_char_ptr_vec_append): Rewrite.
14702 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14703
14704 2014-01-17 Doug Evans <dje@google.com>
14705
14706 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14707 and moved here ...
14708 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14709 #include "common-utils.h".
14710 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14711 * common/vec.h (VEC_ASSERT_PASS): Update.
14712 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14713 (MACH_CHECK_ERROR): Update.
14714
14715 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
14716
14717 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14718 comments.
14719 * gdbarch.h: Regenerate.
14720
14721 2014-01-16 Tom Tromey <tromey@redhat.com>
14722
14723 * value.c (struct value) <regnum>: Move earlier.
14724
14725 2014-01-16 Tom Tromey <tromey@redhat.com>
14726
14727 * remote.c (extended_remote_create_inferior): Rename from
14728 extended_remote_create_inferior_1. Add "ops" argument. Remove
14729 old implementation.
14730
14731 2014-01-16 Pedro Alves <palves@redhat.com>
14732
14733 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14734 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14735 the backchain.
14736
14737 2014-01-16 Doug Evans <dje@google.com>
14738
14739 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14740
14741 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14742
14743 * btrace.h (btrace_thread_flag): New.
14744 (struct btrace_thread_info) <flags>: New.
14745 * record-btrace.c (record_btrace_resume_thread)
14746 (record_btrace_find_thread_to_move, btrace_step_no_history)
14747 (btrace_step_stopped, record_btrace_start_replaying)
14748 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14749 (record_btrace_find_resume_thread): New.
14750 (record_btrace_resume, record_btrace_wait): Extend.
14751 (record_btrace_can_execute_reverse): New.
14752 (record_btrace_open): Fail in non-stop mode.
14753 (record_btrace_set_replay): Split into this, ...
14754 (record_btrace_stop_replaying): ... this, ...
14755 (record_btrace_clear_histories): ... and this.
14756 (init_record_btrace_ops): Init to_can_execute_reverse.
14757 * NEWS: Announce it.
14758
14759 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14760
14761 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14762 (forward_target_decr_pc_after_break)
14763 (target_decr_pc_after_break): New.
14764 * target.c (forward_target_decr_pc_after_break)
14765 (target_decr_pc_after_break): New.
14766 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14767 instead of gdbarch_decr_pc_after_break.
14768 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14769 instead of gdbarch_decr_pc_after_break.
14770 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14771 instead of gdbarch_decr_pc_after_break.
14772 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14773 instead of gdbarch_decr_pc_after_break.
14774 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14775 instead of gdbarch_decr_pc_after_break.
14776 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14777 instead of gdbarch_decr_pc_after_break.
14778
14779 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14780
14781 * btrace.c: Include regcache.h.
14782 (btrace_add_pc): New.
14783 (btrace_enable): Call btrace_add_pc.
14784 (btrace_is_empty): New.
14785 * btrace.h (btrace_is_empty): New.
14786 * record-btrace.c (require_btrace, record_btrace_info): Call
14787 btrace_is_empty.
14788
14789 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14790
14791 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14792 Support delta reads.
14793 (linux_disable_btrace): Change return type.
14794 * common/linux-btrace.h (linux_read_btrace): Change parameters
14795 and return type to allow error reporting. Update users.
14796 (linux_disable_btrace): Change return type. Update users.
14797 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14798 New.
14799 (btrace_error): New.
14800 (btrace_block) <begin>: Comment on BEGIN == 0.
14801 * btrace.c (btrace_compute_ftrace): Start from the end of
14802 the current trace.
14803 (btrace_stitch_trace, btrace_clear_history): New.
14804 (btrace_fetch): Read delta trace, return if replaying.
14805 (btrace_clear): Move clear history code to btrace_clear_history.
14806 (parse_xml_btrace): Throw an error if parsing failed.
14807 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14808 and return type to allow error reporting.
14809 (target_read_btrace): Change parameters and return type to allow
14810 error reporting.
14811 * target.c (target_read_btrace): Update.
14812 * remote.c (remote_read_btrace): Support delta reads. Pass
14813 errors on.
14814 * NEWS: Announce it.
14815
14816 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14817
14818 * record.h (record_btrace_frame_unwind)
14819 (record_btrace_tailcall_frame_unwind): New declarations.
14820 * dwarf2-frame: Include record.h
14821 (dwarf2_frame_cfa): Throw an error for btrace frames.
14822 * record-btrace.c: Include hashtab.h.
14823 (btrace_get_bfun_name): New.
14824 (btrace_call_history): Call btrace_get_bfun_name.
14825 (struct btrace_frame_cache): New.
14826 (bfcache): New.
14827 (bfcache_hash, bfcache_eq, bfcache_new): New.
14828 (btrace_get_frame_function): New.
14829 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14830 (record_btrace_frame_this_id): Compute own id.
14831 (record_btrace_frame_prev_register): Provide PC, throw_error
14832 for all other registers.
14833 (record_btrace_frame_sniffer): Detect btrace frames.
14834 (record_btrace_tailcall_frame_sniffer): New.
14835 (record_btrace_frame_dealloc_cache): New.
14836 (record_btrace_frame_unwind): Add new functions.
14837 (record_btrace_tailcall_frame_unwind): New.
14838 (_initialize_record_btrace): Allocate cache.
14839 * btrace.c (btrace_clear): Call reinit_frame_cache.
14840 * NEWS: Announce it.
14841
14842 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14843
14844 * record-btrace.c (record_btrace_set_replay)
14845 (record_btrace_goto_begin, record_btrace_goto_end)
14846 (record_btrace_goto): New.
14847 (init_record_btrace_ops): Initialize them.
14848 * NEWS: Announce it.
14849
14850 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14851
14852 * record-btrace.c (record_btrace_find_new_threads)
14853 (record_btrace_thread_alive): New.
14854 (init_record_btrace_ops): Initialize to_find_new_threads and
14855 to_thread_alive.
14856
14857 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14858
14859 * record-btrace.c (record_btrace_resume): New.
14860 (record_btrace_wait): New.
14861 (init_record_btrace_ops): Initialize to_wait and to_resume.
14862
14863 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14864
14865 * record-btrace.c (record_btrace_xfer_partial)
14866 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14867 (record_btrace_allow_memory_access): New.
14868 (init_record_btrace_ops): Initialize new methods.
14869 * target.c (raw_memory_xfer_partial): Bail out if target reports
14870 that this memory is not available.
14871
14872 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14873
14874 * target.h (target_ops) <to_insert_breakpoint>
14875 <to_remove_breakpoint>: Add target_ops parameter.
14876 (forward_target_insert_breakpoint): New.
14877 (forward_target_remove_breakpoint): New.
14878 (memory_remove_breakpoint, memory_insert_breakpoint):
14879 Add target_ops parameter.
14880 * target.c (target_insert_breakpoint): Split into this and ...
14881 (forward_target_insert_breakpoint): ... this.
14882 (target_remove_breakpoint): Split into this and ...
14883 (forward_target_remove_breakpoint): ... this.
14884 (debug_to_insert_breakpoint): Add target_ops parameter.
14885 Call forward_target_insert_breakpoint.
14886 (debug_to_remove_breakpoint): Add target_ops parameter.
14887 Call forward_target_remove_breakpoint.
14888 (update_current_target): Do not inherit or default to_insert_breakpoint
14889 and to_remove_breakpoint.
14890 * corelow.c (ignore): Add target_ops parameter.
14891 * exec.c (ignore): Add target_ops parameter.
14892 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14893 Add target_ops parameter.
14894 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14895 Add target_ops parameter.
14896 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14897 Add target_ops parameter.
14898 * record-full.c (record_full_beneath_to_insert_breakpoint)
14899 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14900 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14901 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14902 (record_full_core_remove_breakpoint): Add target_ops parameter.
14903 Update users.
14904 (record_full_beneath_to_insert_breakpoint_ops)
14905 (record_full_beneath_to_remove_breakpoint_ops)
14906 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14907 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14908 tmp_to_remove_breakpoint_ops,
14909 record_full_beneath_to_insert_breakpoint_ops, and
14910 record_full_beneath_to_remove_breakpoint_ops.
14911 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14912 (m32r_remove_breakpoint): Add target_ops parameter.
14913 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14914 Add target_ops parameter.
14915 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14916 Add target_ops parameter.
14917
14918 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14919 Markus Metzger <markus.t.metzger@intel.com>
14920
14921 * record-btrace.c: Include frame-unwind.h.
14922 (record_btrace_frame_unwind_stop_reason)
14923 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14924 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14925 New.
14926 (init_record_btrace_ops): Install it.
14927
14928 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14929
14930 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14931 get_prev_frame_1.
14932
14933 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14934
14935 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14936 earlier.
14937
14938 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
14939
14940 * frame-unwind.c: Include target.h.
14941 (frame_unwind_try_unwinder): New function with code from ...
14942 (frame_unwind_find_by_frame): ... here. New variable
14943 unwinder_from_target, call also target_get_unwinder)
14944 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14945 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14946 * target.h (struct target_ops): New fields to_get_unwinder and
14947 to_get_tailcall_unwinder.
14948 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14949
14950 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14951
14952 * record-btrace.c (record_btrace_fetch_registers)
14953 (record_btrace_store_registers)
14954 (record_btrace_to_prepare_to_store): New.
14955 (init_record_btrace_ops): Add the above.
14956
14957 2014-01-16 Tom Tromey <tromey@redhat.com>
14958
14959 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14960 * target.h (struct target_ops) <to_prepare_to_store>: Add
14961 argument.
14962 (target_prepare_to_store): Add argument.
14963 * target.c (debug_to_prepare_to_store): Add argument.
14964 (update_current_target): Update.
14965 * remote.c (remote_prepare_to_store): Add 'self' argument.
14966 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14967 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14968 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14969 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14970 argument.
14971 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14972 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14973 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14974 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14975 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14976
14977 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14978
14979 * btrace.h (replay) <replay>: New.
14980 (btrace_is_replaying): New.
14981 * btrace.c (btrace_clear): Free replay iterator.
14982 (btrace_is_replaying): New.
14983 * record-btrace.c (record_btrace_is_replaying): New.
14984 (record_btrace_info): Print insn number if replaying.
14985 (record_btrace_insn_history): Start at replay position.
14986 (record_btrace_call_history): Start at replay position.
14987 (init_record_btrace_ops): Init to_record_is_replaying.
14988
14989 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
14990
14991 * record-btrace.c (record_btrace_insn_history_range): Include
14992 end.
14993 (record_btrace_insn_history_from): Adjust range.
14994 (record_btrace_call_history_range): Include
14995 end.
14996 (record_btrace_call_history_from): Adjust range.
14997 * NEWS: Announce changes.
14998
14999 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15000
15001 * record.h (enum record_print_flag)
15002 <record_print_indent_calls>: New.
15003 * record.c (get_call_history_modifiers): Recognize /c modifier.
15004 (_initialize_record): Document /c modifier.
15005 * record-btrace.c (btrace_call_history): Add btinfo parameter.
15006 Reorder fields. Optionally indent the function name. Update
15007 all users.
15008 * NEWS: Announce changes.
15009
15010 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15011
15012 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15013
15014 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15015
15016 * btrace.c (ftrace_new_function): Start counting at one.
15017 * record-btrace.c (record_btrace_info): Adjust number of calls
15018 and insns.
15019 * NEWS: Announce it.
15020
15021 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15022
15023 * record-btrace.c (btrace_call_history_insn_range): Print
15024 insn range as [begin, end].
15025
15026 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15027
15028 * btrace.h (struct btrace_func_link): New.
15029 (enum btrace_function_flag): New.
15030 (struct btrace_inst): Rename to ...
15031 (struct btrace_insn): ...this. Update all users.
15032 (struct btrace_func) <ibegin, iend>: Remove.
15033 (struct btrace_func_link): New.
15034 (struct btrace_func): Rename to ...
15035 (struct btrace_function): ...this. Update all users.
15036 (struct btrace_function) <segment, flow, up, insn, insn_offset)
15037 (number, level, flags>: New.
15038 (struct btrace_insn_iterator): Rename to ...
15039 (struct btrace_insn_history): ...this.
15040 Update all users.
15041 (struct btrace_insn_iterator, btrace_call_iterator): New.
15042 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15043 (struct btrace_target_info) <begin, end, level>
15044 <insn_history, call_history>: New.
15045 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15046 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15047 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15048 (btrace_call_number, btrace_call_begin, btrace_call_end)
15049 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15050 (btrace_find_function_by_number, btrace_set_insn_history)
15051 (btrace_set_call_history): New.
15052 * btrace.c (btrace_init_insn_iterator)
15053 (btrace_init_func_iterator, compute_itrace): Remove.
15054 (ftrace_print_function_name, ftrace_print_filename)
15055 (ftrace_skip_file): Change
15056 parameter to const.
15057 (ftrace_init_func): Remove.
15058 (ftrace_debug): Use new btrace_function fields.
15059 (ftrace_function_switched): Also consider gaining and
15060 losing symbol information).
15061 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15062 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15063 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15064 New.
15065 (ftrace_new_function): Move. Remove debug print.
15066 (ftrace_update_lines, ftrace_update_insns): New.
15067 (ftrace_update_function): Check for call, ret, and jump.
15068 (compute_ftrace): Renamed to ...
15069 (btrace_compute_ftrace): ...this. Rewritten to compute call
15070 stack.
15071 (btrace_fetch, btrace_clear): Updated.
15072 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15073 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15074 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15075 (btrace_call_number, btrace_call_begin, btrace_call_end)
15076 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15077 (btrace_find_function_by_number, btrace_set_insn_history)
15078 (btrace_set_call_history): New.
15079 * record-btrace.c (require_btrace): Use new btrace thread
15080 info fields.
15081 (record_btrace_info, btrace_insn_history)
15082 (record_btrace_insn_history, record_btrace_insn_history_range):
15083 Use new btrace thread info fields and new iterator.
15084 (btrace_func_history_src_line): Rename to ...
15085 (btrace_call_history_src_line): ...this. Use new btrace
15086 thread info fields.
15087 (btrace_func_history): Rename to ...
15088 (btrace_call_history): ...this. Use new btrace thread info
15089 fields and new iterator.
15090 (record_btrace_call_history, record_btrace_call_history_range):
15091 Use new btrace thread info fields and new iterator.
15092
15093 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15094
15095 * frame.h (frame_id_build_unavailable_stack_special): New.
15096 * frame.c (frame_id_build_unavailable_stack_special): New.
15097
15098 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15099
15100 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15101 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15102 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15103 to gdbarch.
15104 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15105 (i386_insn_is_jump, i386_jmp_p): New.
15106 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15107 insn_is_jump to gdbarch.
15108 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15109 * gdbarch.h: Regenerated.
15110 * gdbarch.c: Regenerated.
15111 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15112 (default_insn_is_jump): New.
15113 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15114 (default_insn_is_jump): New.
15115
15116 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15117
15118 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15119 Change to ...
15120 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
15121 (btrace_read_type) <btrace_read_new>: Change to ...
15122 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
15123
15124 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
15125
15126 * common/linux-btrace.c (linux_read_btrace): Free trace from
15127 previous iteration.
15128
15129 2014-01-15 Doug Evans <dje@google.com>
15130
15131 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15132 uint32_t.
15133
15134 2014-01-15 Tom Tromey <tromey@redhat.com>
15135
15136 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15137 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15138 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15139 (set_objfile_main_name): New function.
15140 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15141 language_of_main>: New fields.
15142 (set_objfile_main_name): Declare.
15143 * symtab.c (find_main_name): Loop over objfiles to find the main
15144 name and language.
15145 (set_main_name): Now static.
15146 (get_main_info): Add comment.
15147 * symtab.h (set_main_name): Don't declare.
15148
15149 2014-01-15 Tom Tromey <tromey@redhat.com>
15150
15151 * symtab.c (main_progspace_key): New global.
15152 (struct main_info): New.
15153 (name_of_main, language_of_main): Remove.
15154 (get_main_info, main_info_cleanup): New function.
15155 (set_main_name, main_name, main_language): Use get_main_info.
15156 (_initialize_symtab): Initialize main_progspace_key.
15157
15158 2014-01-15 Tom Tromey <tromey@redhat.com>
15159
15160 * dbxread.c (process_one_symbol): Update.
15161 * dwarf2read.c (read_partial_die): Update.
15162 * symfile.c (set_initial_language): Call main_language.
15163 * symtab.c (language_of_main): Now static.
15164 (set_main_name): Add 'lang' parameter.
15165 (find_main_name): Update.
15166 (main_language): New function.
15167 (symtab_observer_executable_changed): Update.
15168 * symtab.h (set_main_name): Update.
15169 (language_of_main): Remove.
15170 (main_language): Declare.
15171
15172 2014-01-15 Tom Tromey <tromey@redhat.com>
15173
15174 * symfile.c (init_entry_point_info): Use new "initialized" field.
15175 Update.
15176 * objfiles.h (struct entry_point) <initialized>: New field.
15177 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15178 (struct objfile) <ei>: ...here. Remove.
15179 * objfiles.c (entry_point_address_query): Update.
15180
15181 2014-01-15 Tom Tromey <tromey@redhat.com>
15182
15183 * objfiles.c (entry_point_address_query): Relocate entry point
15184 address.
15185 (objfile_relocate1): Do not relocate entry point address.
15186 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15187 <the_bfd_section_index>: New field.
15188 * symfile.c (init_entry_point_info): Find the entry point's
15189 section.
15190
15191 2014-01-15 Tom Tromey <tromey@redhat.com>
15192
15193 * solib-frv.c (enable_break): Use entry_point_address_query.
15194
15195 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15196
15197 * NEWS: Add note on improved process record-replay on
15198 arm*-linux* targets.
15199
15200 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15201
15202 * arm-tdep.c (enum arm_record_result): New enum.
15203 (arm_record_unsupported_insn): New function.
15204 (arm_record_coproc_data_proc): Removed.
15205 (thumb2_record_ld_st_multiple): New function.
15206 (thumb2_record_ld_st_dual_ex_tbb): New function.
15207 (thumb2_record_data_proc_sreg_mimm): New function.
15208 (thumb2_record_ps_dest_generic): New function.
15209 (thumb2_record_branch_misc_cntrl): New function.
15210 (thumb2_record_str_single_data): New function.
15211 (thumb2_record_ld_mem_hints): New function.
15212 (thumb2_record_ld_word): New function.
15213 (thumb2_record_lmul_lmla_div): New function.
15214 (thumb2_record_decode_insn_handler): New function.
15215 (decode_insn): Add thumb32 instruction handlers.
15216
15217 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15218
15219 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15220 (struct arm_linux_record_tdep): Declare.
15221 (arm_canonicalize_syscall): New function.
15222 (arm_all_but_pc_registers_record): New function.
15223 (arm_linux_syscall_record): New function.
15224 (arm_linux_init_abi): Add syscall recording constructs.
15225 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15226 decoding. (arm_record_coproc_data_proc): Update arm syscall
15227 decoding.
15228 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15229 <arm_syscall_record>: New field.
15230 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15231 gdb_target_obs.
15232
15233 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15234
15235 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15236 register for push instruction recording.
15237
15238 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15239
15240 * arm-tdep.c (thumb_record_misc): Update to correct logical
15241 error while recording ldm, ldmia and pop instructions.
15242
15243 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
15244
15245 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15246
15247 2014-01-15 Pedro Alves <palves@redhat.com>
15248
15249 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15250 (go32_resume, go32_fetch_registers, store_register)
15251 (go32_store_registers, go32_prepare_to_store)
15252 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15253 (go32_create_inferior, go32_can_run, go32_terminal_init)
15254 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15255 declarations.
15256
15257 2014-01-15 Tom Tromey <tromey@redhat.com>
15258
15259 * target.h (async_callback_ftype): New typedef.
15260 (struct target_ops) <to_async>: Use it.
15261
15262 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15263
15264 * python/py-value.c (get_field_type): Remove unnecessary curly
15265 braces for single-statement if block.
15266
15267 2014-01-15 Joel Brobecker <brobecker@adacore.com>
15268
15269 * python/py-type.c (convert_field): Add missing empty line
15270 after declarations.
15271
15272 2014-01-14 Doug Evans <dje@google.com>
15273
15274 * symfile.h (expand_symtabs_matching): Renamed from
15275 expand_partial_symbol_names. Update prototype.
15276 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15277 * symfile.c (expand_symtabs_matching): Renamed from
15278 expand_partial_symbol_names. New args file_matcher, kind.
15279 Rename arg fun to symbol_matcher.
15280 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15281 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15282 ada_expand_partial_symbol_name.
15283 (ada_make_symbol_completion_list): Update to call
15284 expand_symtabs_matching.
15285 (ada_add_global_exceptions): Call expand_symtabs_matching.
15286 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15287 call map_symbol_filenames.
15288 * symtab.c (sources_info): Update to call map_symbol_filenames.
15289 (search_symbols): Call expand_symtabs_matching.
15290 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15291 (default_make_symbol_completion_list_break_on): Update to call
15292 expand_symtabs_matching.
15293 (make_source_files_completion_list): Update to call
15294 map_symbol_filenames.
15295
15296 2014-01-14 Doug Evans <dje@google.com>
15297
15298 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15299 (expand_symtabs_symbol_matcher_ftype): New typedef.
15300 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15301 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15302 * symfile.c (expand_partial_symbol_names): Update to use
15303 expand_symtabs_symbol_matcher_ftype.
15304 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15305 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15306 Arg name_matcher renamed to symbol_matcher.
15307 * psymtab.c (recursively_search_psymtabs): Update to use
15308 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15309 sym_matcher.
15310 (expand_symtabs_matching_via_partial): Update to use
15311 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15312 Arg name_matcher renamed to symbol_matcher.
15313
15314 2014-01-14 Doug Evans <dje@google.com>
15315
15316 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15317 (map_partial_symbol_filenames): Ditto.
15318 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15319 (map_partial_symbol_filenames): Ditto.
15320 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15321 (map_partial_symbol_filenames): Ditto.
15322 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15323 (map_partial_symbol_filenames): Ditto.
15324 * symtab.c: Delete #include "psymtab.h".
15325
15326 2014-01-14 Pedro Alves <palves@redhat.com>
15327 Tom Tromey <tromey@redhat.com>
15328
15329 * infrun.c (use_displaced_stepping): Use find_record_target
15330 instead of RECORD_IS_USED.
15331 (adjust_pc_after_break): Use record_full_is_used instead of
15332 RECORD_IS_USED.
15333 * record-btrace.c (record_btrace_open): Call record_preopen
15334 instead of checking RECORD_IS_USED.
15335 * record-full.c (record_full_shortname)
15336 (record_full_core_shortname): New globals.
15337 (record_full_is_used): New function.
15338 (find_full_open): Call record_preopen instead of checking
15339 RECORD_IS_USED.
15340 (init_record_full_ops): Set the target's shortname to
15341 record_full_shortname.
15342 (init_record_full_core_ops): Set the target's shortname to
15343 record_full_core_shortname.
15344 * record-full.h (record_full_is_used): Declare.
15345 * record.c (find_record_target): Make extern.
15346 (record_preopen): New function.
15347 * record.h (RECORD_IS_USED): Delete macro.
15348 (find_record_target, record_preopen): Declare functions.
15349
15350 2014-01-14 Yao Qi <yao@codesourcery.com>
15351
15352 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15353 'len''s type to ULONGEST.
15354 (core_xfer_shared_libraries_aix): Likewise.
15355 * gdbarch.c, gdbarch.h: Regenerated.
15356 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15357 Change type of 'len' to ULONGEST.
15358 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15359 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15360
15361 2014-01-14 Yao Qi <yao@codesourcery.com>
15362
15363 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15364 type of 'len' to ULONGEST.
15365 (linux_xfer_osdata_processgroups): Likewise.
15366 (linux_xfer_osdata_threads): Likewise.
15367 (linux_xfer_osdata_fds): Likewise.
15368 (linux_xfer_osdata_isockets): Likewise.
15369 (linux_xfer_osdata_shm): Likewise.
15370 (linux_xfer_osdata_sem): Likewise.
15371 (linux_xfer_osdata_msg): Likewise.
15372 (linux_common_xfer_osdata): Likewise.
15373 (struct osdata_type) <getter>: Likewise.
15374 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15375 the declaration.
15376
15377 2014-01-14 Yao Qi <yao@codesourcery.com>
15378
15379 * target.h (target_xfer_partial_ftype): Update.
15380 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15381 ULONGEST.
15382 * aix-thread.c (aix_thread_xfer_partial): Change type of
15383 argument 'len' to ULONGEST.
15384 * auxv.c (procfs_xfer_auxv): Likewise.
15385 (ld_so_xfer_auxv): Likewise.
15386 (memory_xfer_auxv): Likewise.
15387 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15388 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15389 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15390 * corelow.c (core_xfer_partial): Likewise.
15391 * ctf.c (ctf_xfer_partial): Likewise.
15392 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15393 '%u'.
15394 (darwin_read_dyld_info): Likewise.
15395 (darwin_xfer_partial): Likewise.
15396 * exec.c (section_table_xfer_memory_partial): Likewise.
15397 (exec_xfer_partial): Likewise.
15398 * exec.h (section_table_xfer_memory_partial): Update
15399 declaration.
15400 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15401 instead of plongest.
15402 (gnu_xfer_partial): Likewise.
15403 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15404 (ia64_hpux_xfer_solib_got): Likewise.
15405 (ia64_hpux_xfer_partial): Likewise.
15406 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15407 * inf-ptrace.c (inf_ptrace_xfer_partial):
15408 * inf-ttrace.c (inf_ttrace_xfer_partial):
15409 * linux-nat.c (linux_xfer_siginfo): Likewise.
15410 (linux_nat_xfer_partial): Likewise.
15411 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15412 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15413 * monitor.c (monitor_xfer_memory): Likewise.
15414 (monitor_xfer_partial): Likewise.
15415 * procfs.c (procfs_xfer_partial): Likewise.
15416 * record-full.c (record_full_xfer_partial): Likewise.
15417 (record_full_core_xfer_partial): Likewise.
15418 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15419 instead of plongest.
15420 (gdbsim_xfer_partial): Likewise.
15421 * remote.c (remote_xfer_partial): Likewise.
15422 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15423 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15424 declaration.
15425 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15426 (rs6000_xfer_shared_libraries): Likewise.
15427 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15428 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15429 (sparc_xfer_partial): Likewise.
15430 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15431 (spu_xfer_partial): Likewise.
15432 * spu-multiarch.c (spu_xfer_partial): Likewise.
15433 * target.c (target_read_live_memory): Likewise.
15434 (memory_xfer_live_readonly_partial): Likewise.
15435 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15436 (target_xfer_partial, default_xfer_partial): Likewise.
15437 (current_xfer_partial): Likewise.
15438 * tracepoint.c (tfile_xfer_partial): Likewise.
15439 * windows-nat.c (windows_xfer_memory): Likewise. Call
15440 pulongest instead of plongest.
15441 (windows_xfer_partial): Likewise.
15442 (windows_xfer_shared_libraries): Likewise.
15443
15444 2014-01-14 Yao Qi <yao@codesourcery.com>
15445
15446 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15447 target_xfer_partial_ftype.
15448
15449 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
15450
15451 PR python/15464
15452 PR python/16113
15453 * valops.c (value_struct_elt_bitpos): New function
15454 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15455 object to 'None' if the field name is an empty string ("").
15456 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15457 attribute to look for a field when 'name' is 'None'.
15458 (get_field_type): New function
15459
15460 2014-01-13 Doug Evans <dje@google.com>
15461
15462 PR symtab/16426
15463 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15464 (try_open_dwop_file): Ditto.
15465 * gdb_bfd.c: #include "vec.h".
15466 (bfdp): New typedef.
15467 (struct gdb_bfd_data): New member included_bfds.
15468 (gdb_bfd_unref): Unref all included bfds.
15469 (gdb_bfd_record_inclusion): New function.
15470 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15471
15472 2014-01-13 Tom Tromey <tromey@redhat.com>
15473
15474 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15475
15476 2014-01-13 Tom Tromey <tromey@redhat.com>
15477
15478 * defs.h (use_windows): Remove.
15479 * gdb.c (main): Update.
15480 * main.c (captured_main, gdb_main): Update.
15481 * main.h (struct captured_main_args) <use_windows>: Remove.
15482 * top.c (use_windows): Remove.
15483
15484 2014-01-13 Tom Tromey <tromey@redhat.com>
15485
15486 * defs.h (deprecated_flush_hook): Remove.
15487
15488 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15489
15490 PR threads/16216
15491 * linux-thread-db.c (try_thread_db_load): Add parameter
15492 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15493 (try_thread_db_load_from_pdir_1): Move it there from here.
15494 (try_thread_db_load_from_sdir): Update caller.
15495 (try_thread_db_load_from_dir): Move it there from here.
15496
15497 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
15498
15499 * regformats/regdat.sh: Always rewrite the register file.
15500
15501 2014-01-13 Pedro Alves <palves@redhat.com>
15502
15503 * Makefile.in (CHECK_HEADERS): New variable.
15504 (check-headers:): New rule.
15505
15506 2014-01-13 Tom Tromey <tromey@redhat.com>
15507
15508 * cli/cli-setshow.c (do_set_command): Update.
15509 * defs.h (deprecated_set_hook): Remove.
15510 * top.c (deprecated_set_hook): Remove.
15511
15512 2014-01-13 Pedro Alves <palves@redhat.com>
15513
15514 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15515 the tracepoint if the PC is a pseudo-register.
15516
15517 2014-01-13 Tom Tromey <tromey@redhat.com>
15518
15519 * defs.h (XCALLOC): Remove.
15520 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15521 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15522 * dwarf2loc.c (allocate_piece_closure): Likewise.
15523 * elfread.c (elf_symfile_segments): Likewise.
15524 (elf_symfile_segments): Likewise.
15525 * gdbtypes.c (copy_type_recursive): Likewise.
15526 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15527 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15528 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15529 XCALLOC.
15530 * mt-tdep.c (mt_gdbarch_init): Likewise.
15531 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15532 XCALLOC.
15533 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15534 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15535 * registry.c (registry_alloc_data): Likewise.
15536 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15537 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15538 * serial.c (serial_fdopen_ops): Likewise.
15539 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15540 XCALLOC.
15541 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15542 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15543 not XCALLOC.
15544
15545 2014-01-13 Tom Tromey <tromey@redhat.com>
15546
15547 * defs.h (XMALLOC): Remove.
15548 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15549 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15550 * cli-out.c (struct ui_out *): Likewise.
15551 * cli/cli-dump.c (add_dump_command): Likewise.
15552 (add_dump_command): Likewise.
15553 * complaints.c (get_complaints): Likewise.
15554 (find_complaint): Likewise.
15555 * dwarf2-frame.c (execute_cfa_program): Likewise.
15556 * dwarf2read.c (abbrev_table_read_table): Likewise.
15557 * gdbarch.sh: Likewise.
15558 * gdbarch.c: Rebuild.
15559 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15560 * interps.c (interp_new): Likewise.
15561 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15562 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15563 * mi/mi-console.c (mi_console_file_new): Likewise.
15564 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15565 * mi/mi-out.c (mi_out_new): Likewise.
15566 * mi/mi-parse.c (mi_parse): Likewise.
15567 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15568 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15569 * observer.c (xalloc_observer_list_node): Likewise.
15570 * regcache.c (regcache_xmalloc_1): Likewise.
15571 * reggroups.c (reggroup_new): Likewise.
15572 (_initialize_reggroup): Likewise.
15573 * registry.c (register_data_with_cleanup): Likewise.
15574 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15575 * ser-base.c (serial_ttystate): Likewise.
15576 * ser-mingw.c (make_pipe_state): Likewise.
15577 * ser-pipe.c (pipe_open): Likewise.
15578 * serial.c (serial_open): Likewise.
15579 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15580 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15581 (tui_alloc_win_info): Likewise.
15582 (tui_add_content_elements): Likewise.
15583 * tui/tui-file.c (tui_file_new): Likewise.
15584 * tui/tui-out.c (tui_out_new): Likewise.
15585 * ui-file.c (mem_file_new): Likewise.
15586 * ui-out.c (push_level): Likewise.
15587 (make_cleanup_ui_out_end): Likewise.
15588 (append_header_to_list): Likewise.
15589 (ui_out_new): Likewise.
15590 * user-regs.c (user_reg_add_builtin): Likewise.
15591
15592 2014-01-13 Tom Tromey <tromey@redhat.com>
15593
15594 * defs.h (XZALLOC): Remove.
15595 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15596 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15597 (get_ada_tasks_inferior_data): Likewise.
15598 * auto-load.c (get_auto_load_pspace_data): Likewise.
15599 * auxv.c (get_auxv_inferior_data): Likewise.
15600 * bfd-target.c (target_bfd_reopen): Likewise.
15601 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15602 (deprecated_insert_raw_breakpoint): Likewise.
15603 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15604 * corelow.c (core_open): Likewise.
15605 * darwin-nat.c (darwin_check_new_threads): Likewise.
15606 (darwin_attach_pid): Likewise.
15607 * dummy-frame.c (dummy_frame_push): Likewise.
15608 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15609 * dwarf2loc.c (allocate_piece_closure): Likewise.
15610 * elfread.c (elf_symfile_segments): Likewise.
15611 * eval.c (ptrmath_type_p): Likewise.
15612 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15613 * gdbtypes.c (alloc_type_arch): Likewise.
15614 (alloc_type_instance): Likewise.
15615 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15616 * inf-child.c (inf_child_can_use_agent): Likewise.
15617 * inflow.c (get_inflow_inferior_data): Likewise.
15618 * infrun.c (save_infcall_suspend_state): Likewise.
15619 * jit.c (jit_reader_load): Likewise.
15620 (get_jit_objfile_data): Likewise.
15621 (get_jit_program_space_data): Likewise.
15622 (jit_object_open_impl): Likewise.
15623 (jit_symtab_open_impl): Likewise.
15624 (jit_block_open_impl): Likewise.
15625 (jit_frame_sniffer): Likewise.
15626 * linux-fork.c (add_fork): Likewise.
15627 * maint.c (make_command_stats_cleanup): Likewise.
15628 * objfiles.c (get_objfile_pspace_data): Likewise.
15629 * opencl-lang.c (struct lval_closure): Likewise.
15630 * osdata.c (osdata_start_osdata): Likewise.
15631 * progspace.c (new_address_space): Likewise.
15632 (add_program_space): Likewise.
15633 * remote-sim.c (get_sim_inferior_data): Likewise.
15634 * sh-tdep.c (sh_gdbarch_init): Likewise.
15635 * skip.c (Ignore): Likewise.
15636 (skip_delete_command): Likewise.
15637 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15638 (library_list_start_library): Likewise.
15639 (solib_aix_current_sos): Likewise.
15640 * solib-darwin.c (get_darwin_info): Likewise.
15641 (darwin_current_sos): Likewise.
15642 * solib-dsbt.c (get_dsbt_info): Likewise.
15643 * solib-ia64-hpux.c (new_so_list): Likewise.
15644 (ia64_hpux_get_solib_linkage_addr): Likewise.
15645 * solib-spu.c (append_ocl_sos): Likewise.
15646 (spu_current_sos): Likewise.
15647 * solib-svr4.c (get_svr4_info): Likewise.
15648 (svr4_keep_data_in_core): Likewise.
15649 (library_list_start_library): Likewise.
15650 (svr4_default_sos): Likewise.
15651 (svr4_read_so_list): Likewise.
15652 * solib-target.c (library_list_start_library): Likewise.
15653 (solib_target_current_sos): Likewise.
15654 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15655 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15656 * symfile.c (default_symfile_segments): Likewise.
15657 * target-descriptions.c (tdesc_data_init): Likewise.
15658 (tdesc_create_reg): Likewise.
15659 (struct tdesc_type *): Likewise.
15660 (tdesc_create_vector): Likewise.
15661 (tdesc_set_struct_size): Likewise.
15662 (struct tdesc_type *): Likewise.
15663 (tdesc_free_feature): Likewise.
15664 (tdesc_create_feature): Likewise.
15665 * windows-nat.c (windows_add_thread): Likewise.
15666 (windows_make_so): Likewise.
15667 * xml-support.c (gdb_xml_body_text): Likewise.
15668 (gdb_xml_create_parser_and_cleanup): Likewise.
15669 (xml_process_xincludes): Likewise.
15670 * xml-syscall.c (allocate_syscalls_info): Likewise.
15671 (syscall_create_syscall_desc): Likewise.
15672
15673 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
15674
15675 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15676 function, with code from i386_stap_parse_special_token.
15677 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15678 (i386_stap_parse_special_token): Move code to the two functions
15679 above; simplify it.
15680
15681 2014-01-09 Pedro Alves <palves@redhat.com>
15682 Hui Zhu <hui@codesourcery.com>
15683
15684 PR gdb/16101
15685 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15686 bp_err_string. Don't mark the location shlib_disabled if the
15687 error thrown wasn't a generic or memory error. Catch errors
15688 thrown while inserting breakpoints in overlayed code. Output
15689 error message of software breakpoints.
15690 * remote.c (remote_insert_breakpoint): If this breakpoint has
15691 target-side commands but this stub doesn't support Z0 packets,
15692 throw NOT_SUPPORTED_ERROR error.
15693 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15694 * target.h (target_insert_breakpoint): Extend comment.
15695 (target_insert_hw_breakpoint): Add comment.
15696
15697 2014-01-08 Pedro Alves <palves@redhat.com>
15698
15699 * remote.c (remote_add_thread): Add threads silently if starting
15700 up.
15701 (remote_notice_new_inferior): If in all-stop, and starting up,
15702 don't call notice_new_inferior.
15703 (get_current_thread): New function, factored out from ...
15704 (add_current_inferior_and_thread): ... this. Adjust.
15705 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15706 found any thread, then select the remote's current thread as GDB's
15707 current thread too.
15708
15709 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15710
15711 * NEWS: Create a new section for the next release branch.
15712 Rename the section of the current branch, now that it has
15713 been cut.
15714
15715 2014-01-08 Joel Brobecker <brobecker@adacore.com>
15716
15717 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15718 * version.in: Bump version to 7.7.50.DATE-cvs.
15719
15720 2014-01-08 Yao Qi <yao@codesourcery.com>
15721
15722 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15723 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15724 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15725
15726 2014-01-08 Yao Qi <yao@codesourcery.com>
15727
15728 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15729 return value of bfd_get_filename to symbol_file_add_from_bfd.
15730
15731 2014-01-08 Pierre Muller <muller@sourceware.org>
15732
15733 Fix PR16201.
15734 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15735 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15736 to prim_record_mininal_symbol_and_info.
15737 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15738 in call to prim_record_minimal_symbol_and_info.
15739 (read_pe_exported_syms): Set index field of section_data.
15740
15741 2014-01-07 Andrew Pinski <apinski@cavium.com>
15742
15743 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15744 * features/aarch64.c: Regenerate.
15745
15746 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
15747
15748 * target.c (return_null): Define.
15749 (update_current_target): Use it instead of return_zero for
15750 functions that return a pointer.
15751
15752 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
15753
15754 * source.c (add_path): Fix check for duplicated paths in the previously
15755 included paths.
15756
15757 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
15758
15759 * ada-lang.c: Remove duplicated include statements.
15760 * alphabsd-nat.c: Ditto.
15761 * amd64-darwin-tdep.c: Ditto.
15762 * amd64fbsd-nat.c: Ditto.
15763 * auto-load.c: Ditto.
15764 * ax-gdb.c: Ditto.
15765 * breakpoint.c: Ditto.
15766 * dbxread.c: Ditto.
15767 * fork-child.c: Ditto.
15768 * gdb_usleep.c: Ditto.
15769 * i386-darwin-tdep.c: Ditto.
15770 * i386fbsd-nat.c: Ditto.
15771 * infcmd.c: Ditto.
15772 * inferior.c: Ditto.
15773 * jv-lang.c: Ditto.
15774 * linux-nat.c: Ditto.
15775 * linux-tdep.c: Ditto.
15776 * m68kbsd-nat.c: Ditto.
15777 * m68klinux-nat.c: Ditto.
15778 * microblaze-tdep.c: Ditto.
15779 * mips-linux-tdep.c: Ditto.
15780 * mn10300-tdep.c: Ditto.
15781 * nto-tdep.c: Ditto.
15782 * opencl-lang.c: Ditto.
15783 * osdata.c: Ditto.
15784 * printcmd.c: Ditto.
15785 * regcache.c: Ditto.
15786 * remote-m32r-sdi.c: Ditto.
15787 * remote.c: Ditto.
15788 * symfile.c: Ditto.
15789 * symtab.c: Ditto.
15790 * tilegx-linux-nat.c: Ditto.
15791 * tilegx-tdep.c: Ditto.
15792 * tracepoint.c: Ditto.
15793 * valops.c: Ditto.
15794 * vaxbsd-nat.c: Ditto.
15795 * windows-nat.c: Ditto.
15796 * xtensa-tdep.c: Ditto.
15797
15798 2014-01-07 Yao Qi <yao@codesourcery.com>
15799
15800 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15801
15802 2014-01-07 Yao Qi <yao@codesourcery.com>
15803 Joel Brobecker <brobecker@adacore.com>
15804
15805 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15806 (pdc_write_regs): Likewise.
15807 (fetch_regs_kernel_thread): Likewise.
15808 (store_regs_kernel_thread): Likewise.
15809
15810 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15811
15812 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15813 tagged type objects to their actual type.
15814
15815 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15816
15817 * ada-valprint.c (print_field_values): Add "language" parameter.
15818 Update calls to print_field_values and print_variant_part.
15819 Pass new parameter "language" in call to val_print instead
15820 of "current_language". Replace call to ada_val_print by call
15821 to val_print.
15822 (print_variant_part): Add "language" parameter.
15823 (ada_val_print_struct_union): Update call to print_field_values.
15824
15825 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15826
15827 * ada-valprint.c (ui_memcpy): Delete.
15828 (ada_print_floating): Update documentation. Add empty line
15829 between between function documentation and implementation.
15830 Delete variable "buffer". Use ui_file_xstrdup in place of
15831 ui_file_put. Minor adjustments following this change.
15832
15833 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15834
15835 * ada-valprint.c (ada_val_print_string): New function,
15836 extracted from ada_val_print_array.
15837 (ada_val_print_array): Replace extracted code by call
15838 to ada_val_print_string followed by a return. Move
15839 "else" branch to the function's top block.
15840
15841 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15842
15843 * ada-valprint.c (ada_val_print_array): Move implementation
15844 down. Rename parameter "offset" and "val" into "offset_aligned"
15845 and "original_value" respectively. Add parameter "offset".
15846
15847 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15848
15849 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15850 re-organizing the code. Change the "???" message printed
15851 when target type is a TYPE_CODE_UNDEF into
15852 "<ref to undefined type>".
15853
15854 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15855
15856 * ada-valprint.c (print_record): Delete, implementation inlined...
15857 (ada_val_print_struct_union): ... here. Remove call to
15858 ada_check_typedef in inlined implementation.
15859
15860 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15861
15862 * ada-valprint.c (ada_val_print_gnat_array): New function,
15863 extracted from ada_val_print_1;
15864 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15865 (ada_val_print_flt, ada_val_print_struct_union)
15866 (ada_val_print_ref): Likewise.
15867 (ada_val_print_1): Delete variables i and elttype.
15868 Replace extracted-out code by call to corresponding
15869 new functions.
15870
15871 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15872
15873 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15874
15875 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15876
15877 * ada-valprint.c (ada_val_print_1): Replace calls to
15878 ada_val_print_1 by calls to val_print.
15879
15880 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15881
15882 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15883 Update calls to self accordingly. Replace calls to c_val_print
15884 by calls to val_print.
15885
15886 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15887
15888 * ada-valprint.c (print_record): Delete declaration.
15889 (adjust_type_signedness, ada_val_print_1): Likewise.
15890 (ada_val_print): Move function implementation down.
15891 (print_variant_part, print_field_values, print_record):
15892 Move function implementation up.
15893
15894 2014-01-07 Joel Brobecker <brobecker@adacore.com>
15895
15896 * python/py-type.c (typy_get_name): New function.
15897 (type_object_getset): Add entry for attribute "name".
15898 * NEWS: Add entry mentioning this new attribute.
15899
15900 2014-01-07 Yao Qi <yao@codesourcery.com>
15901
15902 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15903 statement.
15904
15905 2014-01-07 Yao Qi <yao@codesourcery.com>
15906
15907 * gnu-nat.c (info_port_rights): Add qualifier const to
15908 argument args.
15909
15910 2014-01-07 Yao Qi <yao@codesourcery.com>
15911
15912 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15913
15914 2014-01-07 Yao Qi <yao@codesourcery.com>
15915
15916 * gnu-nat.c (make_inf) Update declaration.
15917 (make_inf): Make it static.
15918 (inf_set_traced): Likewise.
15919 (inf_port_to_thread, inf_task_died_status): Likewise.
15920
15921 2014-01-07 Yao Qi <yao@codesourcery.com>
15922
15923 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15924
15925 2014-01-07 Yao Qi <yao@codesourcery.com>
15926
15927 * gnu-nat.c (_initialize_gnu_nat): Declare.
15928
15929 2014-01-07 Yao Qi <yao@codesourcery.com>
15930
15931 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15932 'enum bfd_endian'.
15933 (struct gdbarch_info) <byte_order>: Change type to
15934 'enum bfd_endian'.
15935 <byte_order_for_code>: Likewise.
15936 * gdbarch.c, gdbarch.h: Regenerated.
15937
15938 2014-01-06 Sasha Smundak <asmundak@google.com>
15939
15940 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15941
15942 2014-01-06 Tom Tromey <tromey@redhat.com>
15943
15944 * doublest.c (convert_doublest_to_floatformat): Use const, not
15945 CONST.
15946 * somread.c (som_symtab_read): Likewise.
15947
15948 2014-01-07 Hui Zhu <hui@codesourcery.com>
15949
15950 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15951 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15952 (gdb_bfd_fopen): Ditto.
15953 (gdb_bfd_openr): Ditto.
15954 (gdb_bfd_openw): Ditto.
15955 (gdb_bfd_openr_iovec): Ditto.
15956 (gdb_bfd_fdopenr): Ditto.
15957 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15958 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15959 with xstrdup.
15960 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15961 with xstrdup.
15962 * symfile-mem.c (symbol_file_add_from_memory): Removed
15963 gdb_bfd_stash_filename.
15964
15965 2014-01-03 Doug Evans <dje@google.com>
15966
15967 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15968 output.
15969
15970 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15971
15972 Update year range in copyright notice of all files.
15973
15974 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15975
15976 * top.c (print_gdb_version): Set copyright year to 2014.
15977
15978 2014-01-01 Joel Brobecker <brobecker@adacore.com>
15979
15980 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15981
15982 For older changes see ChangeLog-2013.
15983 \f
15984 Local Variables:
15985 mode: change-log
15986 left-margin: 8
15987 fill-column: 74
15988 version-control: never
15989 coding: utf-8
15990 End:
This page took 0.369452 seconds and 4 git commands to generate.